/* ======================================================================
   Millennium Casino Forum — Reddit-style dark
   ----------------------------------------------------------------------
   Inspiration : Reddit dark mode + Quora threading. Niche casino : touche
   d'or pour les éléments "verdict" / sticky.
   Typo : DM Sans (sans-serif unique) + JetBrains Mono pour les meta.
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,300..800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg: #0E0E10;
  --surface: #1A1A1B;
  --surface-2: #272729;
  --surface-3: #343536;
  --surface-hover: #2D2D2F;

  /* Borders */
  --border: #343536;
  --border-strong: #4F5355;

  /* Text */
  --fg: #D7DADC;
  --fg-secondary: #B7B9BA;
  --fg-muted: #818384;
  --fg-faint: #4F5355;

  /* Accents */
  --accent: #FF6B1F;        /* upvote, CTA, primary */
  --accent-soft: #FF8A4C;
  --accent-deep: #B84D14;
  --downvote: #6E7B8A;
  --link: #58A6FF;
  --gold: #E8B547;          /* verdict, featured */
  --gold-soft: #F5D77A;

  /* Status */
  --pos: #46D160;
  --neg: #FF585B;
  --warn: #FFB000;

  /* Type */
  --font: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   Top bar (Reddit-style header)
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}
.topbar__brand:hover { text-decoration: none; }
.topbar__logo {
  width: 36px; height: 36px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(232, 181, 71, 0.25));
}
.topbar__brand-text { font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 600px) { .topbar__brand-text { display: none; } }

.topbar__search {
  flex: 1;
  max-width: 700px;
  position: relative;
}
.topbar__search input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 8px 12px 8px 36px;
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.9rem;
}
.topbar__search input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
.topbar__search::before {
  content: "⌕";
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--fg-muted);
  font-size: 1.1rem;
  pointer-events: none;
}

.topbar__btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.topbar__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.topbar__btn--primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); }

/* ============================================================
   Sub-nav (sticky, sous le topbar)
   ============================================================ */

.subnav {
  position: sticky;
  top: 52px;
  z-index: 49;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1rem;
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }

.subnav__inner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 0;
  max-width: 1140px;
}

.subnav a {
  display: inline-block;
  color: var(--fg-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.subnav a:hover { background: var(--surface-2); color: var(--fg); text-decoration: none; }
.subnav a.is-active { background: var(--surface-3); color: var(--fg); }
.subnav a.is-active::before { content: "★ "; color: var(--accent); }
.subnav a.is-cta {
  background: rgba(255, 107, 31, 0.1);
  color: var(--accent-soft);
}
.subnav a.is-cta:hover { background: rgba(255, 107, 31, 0.18); color: var(--accent-soft); }

.subnav__sep {
  color: var(--fg-faint);
  padding: 0 6px;
  font-family: var(--font-mono);
}

/* ============================================================
   Sommaire (table of contents) sur la home
   ============================================================ */

.toc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.toc-card__head {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.toc-card__head::before { content: "📜 "; }
.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 12px;
}
.toc-list li { font-size: 0.88rem; }
.toc-list a {
  color: var(--fg);
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 0;
}
.toc-list a:hover { color: var(--accent); text-decoration: none; }
.toc-list__rating {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.toc-list__name { font-weight: 600; }

/* ============================================================
   Hub page (avis casino en ligne — SEO)
   ============================================================ */

.hub-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.75rem 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}
.hub-hero__chip-art {
  position: absolute;
  top: -10px;
  right: -20px;
  width: 200px;
  height: 200px;
  opacity: 0.85;
  filter: drop-shadow(0 8px 24px rgba(232, 181, 71, 0.2));
  z-index: 0;
  pointer-events: none;
}
.hub-hero h1, .hub-hero__lede, .hub-hero__chips {
  position: relative;
  z-index: 1;
}
.hub-hero h1 { max-width: calc(100% - 160px); }
.hub-hero__lede { max-width: calc(100% - 160px); }
@media (max-width: 700px) {
  .hub-hero__chip-art { width: 130px; height: 130px; opacity: 0.4; right: -30px; top: -10px; }
  .hub-hero h1, .hub-hero__lede { max-width: 100%; }
}
.hub-hero h1 {
  margin: 0 0 0.7rem;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  line-height: 1.2;
}
.hub-hero__lede {
  font-size: 1.05rem;
  color: var(--fg-secondary);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.hub-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hub-hero__chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
}

.hub-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 0.75rem;
}
.hub-section h2 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.hub-section h3 {
  margin: 1.2rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
}
.hub-section p, .hub-section li {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}
.hub-section a { color: var(--link); }
.hub-section ul { padding-left: 1.2rem; }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}
.compare-table thead th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--fg-muted);
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--border);
}
.compare-table tbody td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  vertical-align: top;
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr:hover { background: var(--surface-2); }
.compare-table a { color: var(--fg); font-weight: 600; }
.compare-table a:hover { color: var(--accent); text-decoration: none; }
.compare-table__rating {
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-mono);
}
.compare-table__small { color: var(--fg-muted); font-size: 0.78rem; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}
.faq details:last-of-type { border-bottom: none; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--accent); }
.faq details > p {
  margin: 0.6rem 0 0;
  color: var(--fg-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   Layout — 2 colonnes (Reddit-style)
   ============================================================ */

.shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 880px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
}

/* ============================================================
   Subreddit header
   ============================================================ */

.sub-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.sub-header__icon {
  width: 72px; height: 72px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(232, 181, 71, 0.3));
}
.sub-header__text h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sub-header__handle {
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}
.sub-header__meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.sub-header__meta strong { color: var(--fg); font-weight: 600; }

/* ============================================================
   Sort tabs
   ============================================================ */

.sort-tabs {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.sort-tabs__btn {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.sort-tabs__btn:hover { background: var(--surface-2); color: var(--fg); }
.sort-tabs__btn.is-active { background: var(--surface-3); color: var(--fg); }

/* Card suit decorations — touche casino subtile */
.suit {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 0.95em;
  margin-right: 2px;
  line-height: 1;
}
.suit--spade, .suit--club { color: var(--fg-secondary); }
.suit--heart, .suit--diamond { color: var(--neg); }
.sort-tabs__btn.is-active .suit { color: var(--gold); }
.sort-tabs__btn:hover .suit { color: var(--accent); }

/* ============================================================
   Thread card (feed item)
   ============================================================ */

.thread {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 40px 1fr;
  margin-bottom: 0.6rem;
  overflow: hidden;
  transition: border-color 0.1s;
}
.thread:hover { border-color: var(--border-strong); }
.thread a.thread__link {
  display: block;
  color: var(--fg);
  padding: 0.75rem 1rem 0.75rem 0.5rem;
}
.thread a.thread__link:hover { text-decoration: none; }

.votes {
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px;
  gap: 2px;
  border-right: 1px solid var(--border);
}
.votes__btn {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  width: 28px; height: 28px;
  border-radius: 4px;
  display: grid; place-items: center;
  font-size: 1rem;
  line-height: 1;
}
.votes__btn:hover { background: var(--surface-3); color: var(--accent); }
.votes__btn--down:hover { color: var(--downvote); }
.votes__count {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fg);
  margin: 2px 0;
}
.votes__count--up { color: var(--accent); }

.thread__meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 0.2rem;
}
.thread__meta a, .thread__meta span { color: var(--fg-muted); }
.thread__meta strong { color: var(--fg-secondary); }
.thread__title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0.1rem 0 0.4rem;
  line-height: 1.3;
}
.thread__excerpt {
  font-size: 0.9rem;
  color: var(--fg-secondary);
  margin: 0 0 0.6rem;
  line-height: 1.45;
}

.thread__flair {
  display: inline-block;
  background: var(--surface-3);
  color: var(--fg-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
  letter-spacing: 0.02em;
}
.thread__flair--gold {
  background: rgba(232, 181, 71, 0.15);
  color: var(--gold);
}
.thread__flair--accent {
  background: rgba(255, 107, 31, 0.15);
  color: var(--accent-soft);
}

.thread__actions {
  display: flex;
  gap: 0.6rem;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 0.4rem;
}
.thread__actions span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
}
.thread__actions span:hover { background: var(--surface-2); color: var(--fg); }

/* ============================================================
   Thread (page review) — original post
   ============================================================ */

.thread-detail {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: grid;
  grid-template-columns: 40px 1fr;
  overflow: hidden;
}

.op {
  padding: 1rem 1.25rem 1rem 0.5rem;
}
.op__meta {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 0.6rem;
}
.op__meta strong { color: var(--fg-secondary); font-weight: 600; }
.op__meta a { color: var(--fg-secondary); font-weight: 600; }
.op__title {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
  line-height: 1.25;
  color: var(--fg);
}
.op__flairs { margin-bottom: 0.8rem; }
.op__body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fg-secondary);
}
.op__body p { margin: 0 0 0.8em; }
.op__body strong { color: var(--fg); font-weight: 600; }

.specs-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.specs-inline dt {
  color: var(--fg-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.specs-inline dd { margin: 0; color: var(--fg); font-weight: 500; }

.proscons-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 600px) { .proscons-inline { grid-template-columns: 1fr; } }
.proscons-inline__col {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.proscons-inline__head {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.proscons-inline__col--pos .proscons-inline__head { color: var(--pos); }
.proscons-inline__col--neg .proscons-inline__head { color: var(--neg); }
.proscons-inline ul { list-style: none; padding: 0; margin: 0; }
.proscons-inline li {
  font-size: 0.85rem;
  padding-left: 1em;
  position: relative;
  margin-bottom: 0.3rem;
  color: var(--fg-secondary);
}
.proscons-inline__col--pos li::before { content: "+"; position: absolute; left: 0; color: var(--pos); font-weight: 700; }
.proscons-inline__col--neg li::before { content: "−"; position: absolute; left: 0; color: var(--neg); font-weight: 700; }

.verdict-callout {
  background: linear-gradient(135deg, rgba(232, 181, 71, 0.08), rgba(255, 107, 31, 0.04));
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}
.verdict-callout strong {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.verdict-callout p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--fg);
  font-style: italic;
  line-height: 1.55;
}

.disclaimer-inline {
  background: rgba(255, 88, 91, 0.08);
  border-left: 3px solid var(--neg);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin: 1rem 0;
  color: var(--fg-secondary);
}
.disclaimer-inline strong { color: var(--neg); }

.op__actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}
.op__action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font);
}
.op__action:hover { background: var(--surface-2); color: var(--fg); }

/* ============================================================
   Comments section
   ============================================================ */

.comments-block {
  margin-top: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.comments-block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.comments-block__count {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}
.comments-block__count em {
  color: var(--accent);
  font-style: normal;
}

.comments-sort {
  display: flex;
  gap: 4px;
}
.comments-sort__btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-secondary);
  padding: 4px 10px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.comments-sort__btn.is-active { background: var(--surface-3); color: var(--fg); border-color: var(--border-strong); }

/* Reply box mock */
.reply-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--fg-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: not-allowed;
}
.reply-box::before { content: "🔒"; opacity: 0.6; }

/* Comment */
.comment {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.comment__voter {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}
.comment__voter::before {
  content: "";
  position: absolute;
  top: 32px;
  bottom: -1.25rem;
  width: 2px;
  background: var(--border);
  left: 50%;
  transform: translateX(-50%);
}
.comment__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  color: var(--bg);
  font-size: 0.78rem;
  z-index: 1;
  position: relative;
  flex-shrink: 0;
}
.comment__avatar--lea { background: linear-gradient(135deg, var(--gold), var(--accent-deep)); }
.comment__avatar--thomas { background: linear-gradient(135deg, #4FD1FF, #2997C9); }
.comment__avatar--camille { background: linear-gradient(135deg, #FF74C2, #B82A6E); }
.comment__avatar--antoine { background: linear-gradient(135deg, #9F8CFF, #5847C9); }
.comment__avatar--sarah { background: linear-gradient(135deg, var(--pos), #1F8A50); }
.comment__avatar--hugo { background: linear-gradient(135deg, var(--warn), #B8881F); }

.comment__body {
  flex: 1;
  min-width: 0;
}
.comment__head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
  font-size: 0.83rem;
}
.comment__author {
  font-weight: 600;
  color: var(--fg);
}
.comment__handle {
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.comment__flair {
  background: var(--surface-3);
  color: var(--fg-secondary);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.comment__flair--mod {
  background: rgba(70, 209, 96, 0.15);
  color: var(--pos);
}
.comment__flair--op {
  background: rgba(88, 166, 255, 0.15);
  color: var(--link);
}
.comment__time { color: var(--fg-muted); font-size: 0.78rem; }
.comment__content {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--fg-secondary);
  margin: 0;
}
.comment__content p { margin: 0 0 0.4em; }
.comment__content strong { color: var(--fg); font-weight: 600; }

.comment__actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
}
.comment__action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  color: var(--fg-muted);
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  border: none;
  font-family: var(--font);
}
.comment__action:hover { background: var(--surface-2); color: var(--fg); }
.comment__action--up:hover { color: var(--accent); }
.comment__action--down:hover { color: var(--downvote); }
.comment__score {
  font-weight: 700;
  color: var(--fg);
  padding: 0 4px;
  font-size: 0.78rem;
}

/* Nested reply */
.comment--reply {
  margin-left: 2rem;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border);
}
.comment--reply .comment__voter::before { display: none; }

/* ============================================================
   Sidebar widgets
   ============================================================ */

.sidebar { display: flex; flex-direction: column; gap: 0.75rem; }

.widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.widget__head {
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.widget__head--gold { background: linear-gradient(135deg, var(--gold), var(--accent-deep)); color: var(--bg); }
.widget__body { padding: 1rem; }
.widget__body p { margin: 0 0 0.7em; font-size: 0.88rem; color: var(--fg-secondary); line-height: 1.5; }
.widget__body p:last-child { margin-bottom: 0; }

.widget-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.widget-stat { padding: 0.4rem 0; }
.widget-stat__num { font-size: 1.05rem; font-weight: 700; color: var(--fg); display: block; }
.widget-stat__label { font-size: 0.72rem; color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.widget-rules {
  list-style: none;
  margin: 0; padding: 0;
  counter-reset: rule;
}
.widget-rules li {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--fg-secondary);
  display: flex;
  gap: 0.6rem;
}
.widget-rules li:last-child { border-bottom: none; }
.widget-rules li::before {
  counter-increment: rule;
  content: counter(rule);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
}

.widget-related {
  list-style: none;
  margin: 0; padding: 0;
}
.widget-related li {
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}
.widget-related li:last-child { border-bottom: none; }
.widget-related a { color: var(--fg); flex: 1; }
.widget-related a:hover { color: var(--accent); text-decoration: none; }
.widget-related__score {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  font-family: var(--font-mono);
}

/* ============================================================
   Static pages (about, legal, responsable)
   ============================================================ */

.page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
}
.page h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 1.25rem;
  color: var(--fg);
}
.page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  color: var(--fg);
}
.page p, .page li {
  font-size: 0.95rem;
  color: var(--fg-secondary);
  line-height: 1.65;
}
.page ul { padding-left: 1.2rem; }
.page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.page table th, .page table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.page table th { color: var(--fg-muted); font-weight: 600; width: 30%; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.page table td { color: var(--fg); }
.page a { color: var(--link); }

.breadcrumb {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
  font-family: var(--font-mono);
}
.breadcrumb a { color: var(--fg-muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }

/* ============================================================
   Search dropdown (topbar)
   ============================================================ */

.topbar__search { position: relative; }
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  max-height: 460px;
  overflow-y: auto;
  z-index: 100;
}
.search-dropdown__item {
  display: block;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-decoration: none !important;
  color: var(--fg);
}
.search-dropdown__item:last-child { border-bottom: none; }
.search-dropdown__item:hover { background: var(--surface-2); }
.search-dropdown__title { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.search-dropdown__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-soft);
  margin-top: 2px;
}
.search-dropdown__excerpt { font-size: 0.82rem; color: var(--fg-muted); margin-top: 4px; line-height: 1.4; }
.search-dropdown__empty { padding: 1.5rem; color: var(--fg-muted); text-align: center; font-size: 0.88rem; }

/* ============================================================
   Comment form (utilisateur)
   ============================================================ */

.comments-form {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.comments-form__head {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.comments-form__head::before { content: "💬"; font-size: 1rem; }

.comments-form__row { margin-bottom: 0.6rem; }
.comments-form input[type="text"],
.comments-form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.92rem;
  resize: vertical;
}
.comments-form input[type="text"]:focus,
.comments-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg);
}
.comments-form textarea { line-height: 1.55; min-height: 88px; }

.comments-form__honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.comments-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.comments-form__legal { font-size: 0.78rem; color: var(--fg-muted); }
.comments-form__legal a { color: var(--fg-muted); border-bottom: 1px dotted var(--fg-muted); }
.comments-form__submit {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 8px 18px;
  border-radius: 100px;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}
.comments-form__submit:hover:not([disabled]) { background: var(--accent-soft); }
.comments-form__submit[disabled] { opacity: 0.5; cursor: not-allowed; }

.comments-form__status {
  margin-top: 0.7rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  display: none;
}
.comments-form__status--ok {
  display: block;
  background: rgba(70,209,96,0.10);
  border: 1px solid rgba(70,209,96,0.3);
  color: var(--pos);
}
.comments-form__status--err {
  display: block;
  background: rgba(255,88,91,0.10);
  border: 1px solid rgba(255,88,91,0.3);
  color: var(--neg);
}

.comments-block__divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.comments-block__divider::before,
.comments-block__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* User comment avatar */
.comment__avatar--user {
  background: linear-gradient(135deg, var(--surface-3), var(--border-strong));
  color: var(--fg);
}

.comment--user { opacity: 0.96; }
.comment--user .comment__flair {
  background: var(--surface-3);
  color: var(--fg-muted);
}

.comments-user-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.comments-user-list .muted {
  color: var(--fg-muted);
  font-size: 0.88rem;
  text-align: center;
  padding: 1.2rem;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* ============================================================
   Footer
   ============================================================ */

.foot {
  text-align: center;
  font-size: 0.8rem;
  color: var(--fg-muted);
  padding: 2rem 1rem 3rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.foot__line { margin: 0.3rem 0; }
.foot a { color: var(--fg-muted); }
.foot a:hover { color: var(--accent); }
.foot__age {
  display: inline-block;
  border: 1px solid var(--neg);
  color: var(--neg);
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
  margin-right: 4px;
}
