/* ============================================================
   theme.css — 0xSaidoss | Design Pro Cybersécurité
   Inspiration: HackTheBox, dark corpo, clean & premium
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&amp;family=JetBrains+Mono:wght@300;400;500;700&amp;family=Syne:wght@700;800&amp;display=swap');

:root {
  /* ── Palette Pro ── */
  --bg:       #080c10;
  --bg2:      #0c1118;
  --bg3:      #111820;
  --bg4:      #161e28;
  --bg5:      #1a2332;

  /* Accent — bleu acier professionnel (pas fluo) */
  --accent:   #4f9cf9;
  --accent2:  #3b82f6;
  --accent3:  #1d4ed8;
  --green:    #22c55e;
  --red:      #ef4444;
  --amber:    #f59e0b;
  --purple:   #a78bfa;

  /* Texte */
  --txt:      #e2e8f0;
  --txt2:     #94a3b8;
  --txt3:     #475569;
  --txt4:     #1e293b;

  /* Borders */
  --border:   rgba(255,255,255,.06);
  --border2:  rgba(79,156,249,.25);
  --border3:  rgba(79,156,249,.5);

  /* Shadows */
  --shadow:   0 4px 24px rgba(0,0,0,.4);
  --shadow2:  0 8px 48px rgba(0,0,0,.6);
  --glow:     0 0 20px rgba(79,156,249,.2);
  --glow2:    0 0 40px rgba(79,156,249,.12);

  /* Typography */
  --mono:     'JetBrains Mono', monospace;
  --display:  'Syne', sans-serif;
  --body:     'Inter', sans-serif;

  /* Layout */
  --nav:      64px;
  --radius:   8px;
  --radius2:  12px;
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease2:    cubic-bezier(.34,1.56,.64,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: rgba(79,156,249,.2); color: var(--accent); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav);
  background: rgba(8,12,16,.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem,4vw,3rem);
  z-index: 500;
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(8,12,16,.95);
  border-bottom-color: var(--border2);
  box-shadow: 0 1px 0 var(--border2), var(--glow2);
}
.nav-logo {
  font-family: var(--mono); font-size: .9rem; font-weight: 700;
  color: var(--txt); letter-spacing: .05em;
  display: flex; align-items: center; gap: .2rem;
}
.nav-logo .br { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .82rem; font-weight: 500;
  color: var(--txt2); letter-spacing: .02em;
  transition: color .2s; position: relative; padding: .2rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--txt); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.nav-links a.active::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-admin-btn {
  font-size: .78rem; font-weight: 500; letter-spacing: .03em;
  padding: .45rem 1.1rem;
  border: 1px solid var(--border2); color: var(--accent);
  background: rgba(79,156,249,.06); border-radius: var(--radius);
  cursor: pointer; transition: all .2s;
}
.nav-admin-btn--discreet {
  font-size: .72rem;
  padding: .3rem .65rem;
  opacity: .75;
  border-color: var(--border);
  color: var(--txt3);
  background: transparent;
}
.nav-admin-btn:hover {
  background: rgba(79,156,249,.12);
  border-color: var(--border3);
  box-shadow: var(--glow);
}
.nav-admin-btn--discreet:hover {
  opacity: 1;
  color: var(--accent);
  border-color: var(--border2);
  background: rgba(79,156,249,.06);
  box-shadow: none;
}
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--txt2); transition: all .3s; border-radius: 2px; }

/* ── SECTIONS ── */
.section {
  max-width: 1160px; margin: 0 auto;
  padding: clamp(4rem,8vw,7rem) clamp(1.5rem,4vw,3rem);
}
.s-tag {
  font-family: var(--mono); font-size: .72rem; color: var(--accent);
  letter-spacing: .15em; text-transform: uppercase;
  display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem;
  font-weight: 400;
}
.s-tag::before {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.s-title {
  font-family: var(--display); font-size: clamp(1.6rem,3.5vw,2.4rem);
  font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-bottom: .75rem;
  color: var(--txt);
}
.s-title .ac { color: var(--accent); }
.s-divider { width: 40px; height: 2px; background: var(--accent); border-radius: 2px; opacity: .6; }

/* ── CARDS ── */
.card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius2);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: var(--shadow), var(--glow2);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .83rem; font-weight: 600; letter-spacing: .02em;
  padding: .65rem 1.5rem; border-radius: var(--radius);
  border: 1px solid; cursor: pointer;
  transition: all .22s var(--ease); background: transparent;
  position: relative; overflow: hidden;
}
.btn-cyan, .btn-accent {
  border-color: var(--accent2);
  background: rgba(59,130,246,.1);
  color: var(--accent);
}
.btn-cyan:hover, .btn-accent:hover {
  background: rgba(59,130,246,.18);
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-1px);
}
.btn-green { border-color: var(--green); color: var(--green); background: rgba(34,197,94,.06); }
.btn-green:hover { background: rgba(34,197,94,.12); box-shadow: 0 0 20px rgba(34,197,94,.15); }
.btn-red   { border-color: var(--red);   color: var(--red);   background: rgba(239,68,68,.06); }
.btn-red:hover   { background: rgba(239,68,68,.12); }
.btn-ghost { border-color: var(--border); color: var(--txt2); }
.btn-ghost:hover { border-color: var(--border2); color: var(--txt); background: rgba(255,255,255,.03); }
.btn-amber { border-color: var(--amber); color: var(--amber); background: rgba(245,158,11,.06); }
.btn-sm { font-size: .75rem; padding: .35rem .85rem; border-radius: 6px; }

/* ── BADGES ── */
.badge {
  font-family: var(--mono); font-size: .62rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 4px; border: 1px solid;
}
.badge-green  { border-color: rgba(34,197,94,.3);   color: var(--green);  background: rgba(34,197,94,.08); }
.badge-amber  { border-color: rgba(245,158,11,.3);  color: var(--amber);  background: rgba(245,158,11,.08); }
.badge-red    { border-color: rgba(239,68,68,.3);   color: var(--red);    background: rgba(239,68,68,.08); }
.badge-cyan   { border-color: rgba(79,156,249,.3);  color: var(--accent); background: rgba(79,156,249,.08); }

/* ── TAGS ── */
.tag {
  font-family: var(--mono); font-size: .65rem; color: var(--txt3);
  border: 1px solid var(--border); padding: .18rem .5rem; border-radius: 4px;
  transition: all .2s; background: var(--bg2); font-weight: 400;
}
.tag:hover { color: var(--accent); border-color: var(--border2); background: rgba(79,156,249,.05); }

/* ── FORMS ── */
.field { display: flex; flex-direction: column; gap: .4rem; }
.label {
  font-size: .72rem; font-weight: 600; color: var(--txt2);
  letter-spacing: .05em; text-transform: uppercase;
}
.input, .textarea, .select {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--txt); font-family: var(--mono); font-size: .85rem;
  padding: .65rem .9rem; border-radius: var(--radius); outline: none;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}
.input::placeholder, .textarea::placeholder { color: var(--txt3); }
.textarea { resize: vertical; min-height: 100px; }
.select option { background: var(--bg3); }

/* ── GRID ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
@media(max-width:900px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media(max-width:640px) { .grid-2, .grid-3, .grid-auto { grid-template-columns: 1fr; } }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ── FOOTER ── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1.5rem,4vw,3rem);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo { font-family: var(--mono); font-size: .8rem; color: var(--accent); font-weight: 500; }
.footer-copy { font-size: .78rem; color: var(--txt3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: .78rem; color: var(--txt3); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  background: var(--bg3); border: 1px solid var(--border2);
  color: var(--txt); font-size: .82rem; font-weight: 500;
  padding: .75rem 1.4rem; border-radius: var(--radius); z-index: 9000;
  box-shadow: var(--shadow), var(--glow2);
  transform: translateY(80px) scale(.95); opacity: 0;
  transition: all .3s var(--ease2);
}
.toast.show { transform: translateY(0) scale(1); opacity: 1; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(8,12,16,.8);
  backdrop-filter: blur(8px);
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius2);
  width: 100%; max-width: 480px;
  padding: 2rem;
  transform: translateY(12px) scale(.98); transition: transform .28s var(--ease2);
  box-shadow: var(--shadow2);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal h2 {
  font-family: var(--display); font-size: 1.1rem; font-weight: 800;
  color: var(--txt); letter-spacing: -.01em; margin-bottom: 1.5rem;
}

/* ── RESPONSIVE NAV ── */
@media(max-width:768px) {
  .nav-links { display: none; }
  .nav-admin-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: var(--nav); left: 0; right: 0;
    background: rgba(8,12,16,.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem clamp(1.5rem,4vw,3rem);
    gap: 1.2rem; backdrop-filter: blur(20px); z-index: 499;
  }
}

/* ── CUSTOM CURSOR (public pages only) ── */
body:not(.admin-page) { cursor: none; }
body:not(.admin-page) * { cursor: none; }
body.admin-page,
body.admin-page * { cursor: auto; }
body.admin-page button,
body.admin-page .snav-btn,
body.admin-page .btn { cursor: pointer !important; }
body.admin-page .cursor,
body.admin-page .cursor-follower { display: none !important; }

.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  box-shadow: 0 0 12px rgba(79,156,249,.6);
  transition: transform .1s, width .2s, height .2s, background .2s;
}
.cursor-follower {
  position: fixed; top: 0; left: 0;
  width: 32px; height: 32px;
  border: 1px solid rgba(79,156,249,.4);
  border-radius: 50%; pointer-events: none; z-index: 99998;
  transition: transform .08s, border-color .2s, width .25s, height .25s;
}
.cursor.active { background: var(--txt); width: 5px; height: 5px; }
.cursor-follower.active { width: 44px; height: 44px; border-color: var(--accent); }
@media(hover:none) {
  body:not(.admin-page) { cursor: auto; }
  body:not(.admin-page) * { cursor: auto; }
  .cursor, .cursor-follower { display: none; }
}

/* ── COMMENTS & LIKES ── */
.interact-bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 0; border-top: 1px solid var(--border); margin-top: 1.5rem;
}
.like-btn {
  display: flex; align-items: center; gap: .45rem;
  background: none; border: 1px solid var(--border);
  border-radius: 20px; padding: .38rem 1rem;
  color: var(--txt2); font-size: .78rem;
  cursor: pointer; transition: all .2s; font-weight: 500;
}
.like-btn:hover { border-color: rgba(239,68,68,.4); color: var(--red); background: rgba(239,68,68,.06); }
.like-btn.liked { border-color: rgba(239,68,68,.5); color: var(--red); background: rgba(239,68,68,.08); }
.like-btn .heart { transition: transform .25s var(--ease2); }
.like-btn.liked .heart { transform: scale(1.3); }
.comment-count { font-size: .78rem; color: var(--txt3); margin-left: auto; font-weight: 500; }

.comments-section { margin-top: 3rem; }
.comments-section h3 { font-size: .85rem; font-weight: 700; color: var(--txt); letter-spacing: .05em; margin-bottom: 1.5rem; text-transform: uppercase; }
.comment-form { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.comment-form input, .comment-form textarea {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .65rem .9rem;
  color: var(--txt); font-size: .88rem; transition: border-color .2s; resize: vertical;
  font-family: var(--body);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.comment-form textarea { min-height: 90px; }
.comment-form-row { display: flex; gap: .75rem; }
.comment-form-row input { flex: 1; }
.comment-submit {
  align-self: flex-start; background: rgba(59,130,246,.1);
  border: 1px solid var(--accent2); color: var(--accent);
  font-size: .82rem; font-weight: 600;
  padding: .55rem 1.4rem; border-radius: var(--radius);
  cursor: pointer; transition: all .2s;
}
.comment-submit:hover { background: rgba(59,130,246,.18); box-shadow: var(--glow); }

.comment-list { display: flex; flex-direction: column; gap: 1rem; }
.comment-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-left: 3px solid var(--accent2); border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.comment-meta { display: flex; align-items: baseline; gap: .65rem; margin-bottom: .4rem; }
.comment-author { font-size: .8rem; font-weight: 700; color: var(--accent); }
.comment-date { font-family: var(--mono); font-size: .65rem; color: var(--txt3); }
.comment-text { font-size: .9rem; color: var(--txt2); line-height: 1.65; }
.no-comments { font-size: .8rem; color: var(--txt3); text-align: center; padding: 2rem; }

/* ── SKILLS ADMIN ── */
.arsenal-admin-grid { display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; }
.arsenal-item-row { display: grid; grid-template-columns: 1fr 1fr 60px 32px; gap: .5rem; align-items: center; }
.pct-input { width: 60px; }
.ars-range {
  -webkit-appearance: none; height: 3px; background: var(--border2); border-radius: 2px; outline: none;
}
.ars-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); cursor: pointer; box-shadow: 0 0 6px rgba(79,156,249,.5);
}

/* ── LOADING ── */
.fb-loading {
  font-size: .82rem; color: var(--txt3); font-weight: 500;
  display: flex; align-items: center; gap: .6rem; padding: 2rem 0;
}
.fb-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--border2); border-top-color: var(--accent);
  animation: spin .7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── NOTIFICATION BELL (admin) ── */
.notif-bell-btn,
#notifBellBtn {
  position: relative; background: var(--bg3); border: 1px solid var(--border2);
  border-radius: 50%; width: 48px; height: 48px;
  cursor: pointer; color: var(--txt2); transition: all .22s;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.notif-bell-btn:hover,
#notifBellBtn:hover {
  border-color: var(--border3); color: var(--accent);
  background: var(--bg4); transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0,0,0,.5), 0 0 0 3px rgba(79,156,249,.12);
}
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--red); color: #fff;
  font-size: .55rem; font-weight: 700; line-height: 1;
  min-width: 16px; height: 16px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--bg2);
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50%      { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}
.notif-panel {
  position: fixed;
  bottom: 80px; right: 1.5rem;
  width: 340px; background: var(--bg3);
  border: 1px solid var(--border2); border-radius: var(--radius2);
  box-shadow: 0 -4px 32px rgba(0,0,0,.6), 0 0 0 1px rgba(79,156,249,.1);
  z-index: 9100; overflow: hidden;
  max-height: 460px;
  /* Caché par défaut - JS ajoute/retire .open */
  visibility: hidden; opacity: 0; pointer-events: none;
  flex-direction: column; display: flex;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.notif-panel.open {
  visibility: visible; opacity: 1; pointer-events: all;
  transform: translateY(0);
}
.notif-header {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.notif-header h4 { font-size: .82rem; font-weight: 700; color: var(--txt); }
.notif-mark-read { font-size: .72rem; color: var(--accent); cursor: pointer; background: none; border: none; font-weight: 500; }
.notif-mark-read:hover { text-decoration: underline; }
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  display: flex; gap: .75rem; align-items: flex-start;
  transition: background .15s; cursor: default;
}
.notif-item.unread { background: rgba(79,156,249,.04); }
.notif-item:hover { background: rgba(255,255,255,.02); }
.notif-icon { font-size: 1rem; flex-shrink: 0; margin-top: .1rem; }
.notif-body { flex: 1; min-width: 0; }
.notif-body strong { font-size: .8rem; font-weight: 600; color: var(--txt); display: block; }
.notif-body span { font-size: .72rem; color: var(--txt3); }
.notif-time { font-size: .65rem; color: var(--txt3); flex-shrink: 0; margin-top: .2rem; font-family: var(--mono); }
.notif-empty { padding: 2rem 1rem; text-align: center; font-size: .8rem; color: var(--txt3); }

/* ── NOTIF BELL WRAPPER (fixed bottom-right) ── */
#notifWrap {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9000;
}

/* ════════════════════════════════════════════════════════
   THREADED COMMENTS — Replies
   ════════════════════════════════════════════════════════ */
.comments-section h3 {
  font-size: .88rem; font-weight: 700; color: var(--txt);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: .6rem;
}
.comments-count {
  background: rgba(79,156,249,.1); color: var(--accent);
  font-size: .72rem; padding: .15rem .5rem; border-radius: 10px;
  font-weight: 600;
}

/* ── COMMENTAIRES HORIZONTAUX (scroll) ── */
.comment-thread {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
/* Scrollbar fine */
.comment-thread::-webkit-scrollbar { height: 4px; }
.comment-thread::-webkit-scrollbar-track { background: var(--bg3); border-radius: 2px; }
.comment-thread::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
.comment-thread::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.comment-item-wrap {
  flex: 0 0 300px;
  min-width: 300px;
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: .6rem;
}

.comment-item-row {
  display: flex; gap: .75rem; align-items: flex-start; height: 100%;
}

.comment-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 800; color: #fff;
  flex-shrink: 0; text-transform: uppercase;
}
.reply-avatar {
  width: 26px; height: 26px; font-size: .7rem;
  background: linear-gradient(135deg, var(--green), var(--accent));
}

.comment-bubble {
  flex: 1; min-width: 0;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 0 var(--radius2) var(--radius2) var(--radius2);
  padding: .85rem 1rem;
  display: flex; flex-direction: column;
}
.comment-meta {
  display: flex; align-items: baseline; gap: .5rem; margin-bottom: .4rem; flex-wrap: wrap;
}
.comment-author { font-size: .82rem; font-weight: 700; color: var(--accent); }
.comment-date   { font-family: var(--mono); font-size: .62rem; color: var(--txt3); }
.comment-text   { font-size: .85rem; color: var(--txt2); line-height: 1.6; margin-bottom: .5rem; flex: 1; }

.reply-toggle-btn {
  background: none; border: none; padding: 0;
  font-size: .72rem; font-weight: 600; color: var(--txt3);
  cursor: pointer; transition: color .2s; text-align: left;
}
.reply-toggle-btn:hover { color: var(--accent); }

/* Réponses sous chaque commentaire */
.replies-list {
  display: flex; flex-direction: column; gap: .5rem;
  margin-left: .5rem; padding-left: .75rem;
  border-left: 2px solid var(--border2);
}
.reply-item {
  display: flex; gap: .55rem; align-items: flex-start;
}
.reply-item .comment-bubble {
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  padding: .55rem .75rem;
  background: var(--bg2); border-color: var(--border);
  font-size: .82rem;
}

/* Formulaire de réponse */
.reply-form-wrap {
  background: var(--bg3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: .75rem;
  animation: slideDown .2s ease;
}
@keyframes slideDown { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:none} }
.reply-form { display: flex; flex-direction: column; gap: .5rem; }
.reply-form input, .reply-form textarea {
  background: var(--bg2); border: 1px solid var(--border);
  color: var(--txt); font-size: .82rem; padding: .5rem .75rem;
  border-radius: var(--radius); outline: none; width: 100%;
  transition: border-color .2s; font-family: var(--body);
}
.reply-form input:focus, .reply-form textarea:focus {
  border-color: var(--accent2); box-shadow: 0 0 0 2px rgba(59,130,246,.08);
}
.reply-form textarea { min-height: 60px; resize: none; }
.comment-cancel {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius); padding: .38rem .85rem;
  color: var(--txt2); font-size: .78rem; cursor: pointer; transition: all .2s;
}
.comment-cancel:hover { border-color: var(--red); color: var(--red); }

/* Formulaire principal */
.comment-form { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 2rem; }
.comment-form input, .comment-form textarea {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--txt); font-size: .88rem; padding: .7rem 1rem;
  border-radius: var(--radius); outline: none; width: 100%;
  transition: border-color .2s; font-family: var(--body);
}
.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(59,130,246,.08);
}
.comment-form textarea { min-height: 90px; resize: vertical; }
.comment-submit {
  align-self: flex-start;
  background: rgba(59,130,246,.1); border: 1px solid var(--accent2);
  color: var(--accent); font-size: .82rem; font-weight: 600;
  padding: .55rem 1.4rem; border-radius: var(--radius);
  cursor: pointer; transition: all .2s;
}
.comment-submit:hover { background: rgba(59,130,246,.18); box-shadow: var(--glow); }
.no-comments { font-size: .82rem; color: var(--txt3); text-align: center; padding: 2rem 0; }
