/* ===== COMRUND.COM - Meilleur Casino en Ligne ===== */
/* Color Palette: Navy #0f1923, Gold #f0c040, Dark #0a0e14, White #f5f5f5 */

:root {
  --primary: #f0c040;
  --primary-dark: #d4a020;
  --primary-light: #ffe680;
  --bg-dark: #0f1923;
  --bg-darker: #0a0e14;
  --bg-card: #162333;
  --bg-card-hover: #1d2f44;
  --text-light: #e8e8e8;
  --text-muted: #9aa5b4;
  --text-white: #ffffff;
  --accent-green: #2ecc71;
  --accent-red: #e74c3c;
  --accent-blue: #3498db;
  --border-color: #1e3048;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --max-width: 1200px;
  --transition: 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-darker);
  color: var(--text-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ===== BREADCRUMB (canonical) ===== */
.breadcrumb {
  background: var(--bg-darker);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}
.breadcrumb .container {
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
}
.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin: 0 10px;
  color: var(--primary);
  font-weight: 700;
}
.breadcrumb a {
  color: var(--text-light);
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li[aria-current="page"] {
  color: var(--primary);
  font-weight: 600;
}
@media (max-width: 768px) {
  .breadcrumb { font-size: 0.78rem; }
  .breadcrumb .container { padding: 10px 16px; }
  .breadcrumb li:not(:last-child)::after { margin: 0 6px; }
}

/* ===== NAVBAR (canonical — see [[mobile-nav]]) ===== */
.navbar {
  background: var(--bg-dark);
  border-bottom: 2px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  position: relative;
}
.navbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.navbar-logo {
  height: 40px;
  width: auto;
  max-width: 300px;
  display: block;
}
@media (max-width: 768px) {
  .navbar-logo { height: 32px; max-width: 240px; }
}

.main-nav { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.main-nav > li { list-style: none; position: relative; }
.main-nav > li > a {
  display: block;
  padding: 22px 14px;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.main-nav > li > a:hover,
.main-nav > li.active > a {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* Dropdown — desktop hover */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  min-width: 260px;
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  z-index: 100;
  max-height: 70vh;
  overflow-y: auto;
  list-style: none;
  margin: 0;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-light);
  font-size: 0.9rem;
  transition: background var(--transition);
  text-decoration: none;
}
.dropdown-menu a:hover {
  background: var(--bg-card-hover);
  color: var(--primary);
}

/* Hamburger button (44x44 tap target) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
  z-index: 1002;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Close button — visible only inside slide-out */
.nav-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1003;
}

/* Overlay — visible when panel is open */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 999;
}
.nav-overlay.open { display: block; }

/* CTA inside the slide-out panel */
.nav-cta {
  display: none;
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

/* ===== MOBILE: slide-out panel (≤ 767px) ===== */
@media (max-width: 767px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 360px);
    background: var(--bg-dark);
    border-left: 1px solid var(--border-color);
    box-shadow: -8px 0 24px rgba(0,0,0,.4);
    padding: 64px 20px 24px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
    z-index: 1001;
    display: flex;
    flex-direction: column;
  }
  .nav-links.open { transform: translateX(0); }

  .nav-close { display: block; }
  .nav-cta { display: block; }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .main-nav > li { width: 100%; }
  .main-nav > li > a {
    padding: 14px 8px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-color);
  }
  .main-nav > li.active > a,
  .main-nav > li > a:hover {
    border-bottom-color: var(--border-color);
    color: var(--primary);
  }

  .has-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0 0 8px 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
    display: block;
  }
  .has-dropdown.open .dropdown-menu {
    max-height: 600px;
  }
  .dropdown-menu a { padding: 10px 12px; font-size: 0.95rem; }
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1a2940 50%, var(--bg-dark) 100%);
  padding: 60px 0 50px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

/* Desktop hero ~35% smaller on keyword/category landings (not guides). */
body.page-keyword .hero {
  padding: 38px 0 32px;
}
body.page-keyword .hero h1 { margin-bottom: 10px; }
body.page-keyword .hero p { margin-bottom: 16px; }
body.page-keyword .hero .review-byline { margin: 4px 0 14px; }
.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-white);
  margin-bottom: 16px;
  line-height: 1.2;
}
.hero h1 .highlight { color: var(--primary); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 24px;
}
.hero-badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.hero-badge {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-badge strong { color: var(--primary); }
.hero-cta {
  display: inline-block;
  margin-top: 28px;
}

/* Collapsible description (hero p / toplist lead) — mobile only */
.collapsible { position: relative; }
.collapse-toggle { display: none; }

@media (max-width: 768px) {
  .collapsible .collapsible-content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin-bottom: 6px;
    transition: max-height .25s ease;
  }
  .collapsible.expanded .collapsible-content {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  .collapse-toggle {
    display: inline-block;
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    text-decoration: underline;
    text-decoration-color: rgba(240, 192, 64, 0.35);
    text-underline-offset: 3px;
    transition: color .15s ease;
  }
  .collapse-toggle:hover { color: var(--primary-light); }
  .collapse-toggle::after { content: " ▾"; font-size: 0.75rem; }
  .collapsible.expanded .collapse-toggle::after { content: " ▴"; }
}

/* ===== REVIEW PAGES (per [[review-page-format]]) ===== */
.hero-review {
  background:
    radial-gradient(ellipse at center top, rgba(240,192,64,0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
  padding: 48px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.hero-review .container { max-width: 760px; }

.hero-brand {
  display: flex;
  justify-content: center;
  margin: 16px 0 18px;
}
.hero-brand-logo {
  background: #fff;
  padding: 14px 22px;
  border-radius: 14px;
  height: 86px;
  max-width: 260px;
  width: auto;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    0 12px 36px rgba(0,0,0,0.45),
    0 0 0 4px rgba(240,192,64,0.18);
}
.hero-brand-fallback {
  width: 130px;
  height: 86px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--bg-darker);
  border-radius: 14px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 36px rgba(240,192,64,0.30);
}

/* Star-rating chip */
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(240,192,64,0.10);
  border: 1px solid rgba(240,192,64,0.30);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 14px;
}
.hero-stars {
  color: var(--primary);
  letter-spacing: 1px;
  font-size: 1.05rem;
  line-height: 1;
}
.hero-rating-value {
  color: var(--text-white);
  font-weight: 800;
  font-size: 1rem;
}
.hero-rating-value small { color: var(--text-muted); font-weight: 600; }

.hero-review h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--text-white);
  margin: 4px auto 14px;
  max-width: 640px;
  letter-spacing: -0.01em;
}
.hero-review h1 .highlight { color: var(--primary); }

.review-byline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 6px 0 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.review-byline > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.review-byline .byline-author { gap: 10px; }
.byline-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
  flex-shrink: 0;
}
.review-byline a { color: var(--primary); font-weight: 600; }
.review-byline a:hover { color: var(--primary-light); }

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.hero-review-cta {
  min-width: 280px;
  padding: 18px 40px;
  font-size: 1.05rem;
}
.hero-review-secondary {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.18);
  text-underline-offset: 4px;
}
.hero-review-secondary:hover { color: var(--primary); }

@media (max-width: 768px) {
  .hero-review { padding: 24px 0 30px; }
  .hero-brand { margin: 10px 0 14px; }
  .hero-brand-logo {
    height: 64px;
    max-width: 200px;
    padding: 10px 18px;
    border-radius: 12px;
  }
  .hero-brand-fallback { width: 100px; height: 64px; font-size: 1.6rem; }
  .hero-rating { padding: 4px 12px; gap: 8px; margin-bottom: 10px; }
  .hero-stars { font-size: 0.9rem; }
  .hero-rating-value { font-size: 0.9rem; }
  .hero-review h1 {
    font-size: 1.5rem;
    margin: 4px auto 10px;
  }
  .review-byline {
    flex-direction: column;
    gap: 4px;
    font-size: 0.78rem;
    margin: 6px 0 14px;
  }
  .hero-review-cta {
    width: 100%;
    min-width: 0;
    padding: 14px 18px;
    font-size: 0.98rem;
  }
  .hero-review-secondary { font-size: 0.82rem; }
}

/* ===== AUTHOR PAGES (per [[authors]]) ===== */
.author-hero {
  display: flex;
  gap: 28px;
  align-items: center;
  text-align: left;
  flex-wrap: wrap;
}
.author-portrait { flex-shrink: 0; }
.author-portrait-img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
}
.author-portrait-initials {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  font-size: 4rem;
  border: 4px solid var(--primary);
}
.author-hero-meta { flex: 1; min-width: 240px; }
.author-hero-meta h1 { margin-bottom: 8px; }
.author-role { color: var(--primary); font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }

.author-body { max-width: 820px; }
.author-body h2 {
  font-size: 1.5rem;
  color: var(--text-white);
  margin-top: 36px;
  margin-bottom: 16px;
}
.author-body p { color: var(--text-muted); margin-bottom: 14px; line-height: 1.7; }

.author-expertise-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.author-expertise-tags span {
  background: rgba(240,192,64,0.1);
  border: 1px solid rgba(240,192,64,0.3);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.88rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 20px 16px;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}
.stat-card span { color: var(--text-muted); font-size: 0.85rem; }

.credentials-list, .recent-articles {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}
.credentials-list li, .recent-articles li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-muted);
}
.credentials-list li:before {
  content: "✓ ";
  color: var(--primary);
  font-weight: 700;
  margin-right: 6px;
}

/* Authors index */
.authors-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.author-index-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: all var(--transition);
}
.author-index-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 0 20px rgba(240, 192, 64, 0.1);
}
.author-index-portrait img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  margin: 0 auto 16px;
  display: block;
}
.author-index-portrait .initials-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  font-size: 2.4rem;
  margin: 0 auto 16px;
  display: flex;
}
.author-index-card h3 { margin-bottom: 6px; }
.author-index-card h3 a { color: var(--text-white); }
.author-index-card .author-role { font-size: 0.92rem; margin-bottom: 6px; }
.author-index-card .author-location { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.author-index-link { display: inline-block; margin-top: 8px; font-weight: 600; }

/* ===== TOPLIST TABLE (canonical — see [[toplist-horizontal-table]]) ===== */
.toplist-section { padding: 56px 0; }
.toplist-section h2 {
  font-size: 2rem;
  color: var(--text-white);
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.toplist-section h2 .highlight {
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 60%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.toplist-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

.table-wrapper { overflow-x: auto; }

.toplist-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 12px;
  margin: 0;
  background: transparent;
  border-radius: 0;
}
.toplist-table thead th {
  text-align: left;
  padding: 0.65rem 1.1rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: none;
}

.toplist-row {
  background: linear-gradient(180deg, var(--bg-card) 0%, #18253a 100%);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.toplist-row td {
  padding: 1.1rem 1.1rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
  color: var(--text-light);
}
.toplist-row td:first-child {
  border-left: 1px solid var(--border-color);
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}
.toplist-row td:last-child {
  border-right: 1px solid var(--border-color);
  border-top-right-radius: 14px;
  border-bottom-right-radius: 14px;
}
.toplist-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35), 0 0 0 1px rgba(240,192,64,0.18);
}
.toplist-row:hover td { border-color: rgba(240,192,64,0.30); }

.toplist-row.highlight-row {
  background: linear-gradient(180deg, #1a2a3d 0%, #0f1923 100%);
}
.toplist-row.highlight-row td {
  border-color: rgba(240,192,64,0.45);
}
.toplist-row.highlight-row td:first-child {
  box-shadow: inset 5px 0 0 var(--primary);
}

/* Rank chip: gold circle, dark text */
.toplist-table .col-rank {
  width: 76px;
  text-align: center;
}
.toplist-table .col-rank strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #2a3548 0%, #1a2638 100%);
  color: var(--text-muted);
  border: 1.5px solid var(--border-color);
  letter-spacing: -0.02em;
}
.toplist-row.highlight-row .col-rank strong,
.toplist-row[data-rank-medal] .col-rank strong {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 55%, var(--primary-dark) 100%);
  color: var(--bg-darker);
  border: none;
  box-shadow: 0 4px 14px rgba(240, 192, 64, 0.40), inset 0 1px 0 rgba(255,255,255,0.45);
}
/* Auto-medal ranks 1-3 via :nth-of-type (rank 1 already has highlight-row) */
.toplist-row:nth-of-type(2) .col-rank strong {
  background: linear-gradient(135deg, #e0e5ec 0%, #b0b6c1 50%, #8a909c 100%);
  color: var(--bg-darker);
  border: none;
  box-shadow: 0 4px 14px rgba(176, 182, 193, 0.30), inset 0 1px 0 rgba(255,255,255,0.45);
}
.toplist-row:nth-of-type(3) .col-rank strong {
  background: linear-gradient(135deg, #d49467 0%, #b56e3a 50%, #8a5024 100%);
  color: var(--bg-darker);
  border: none;
  box-shadow: 0 4px 14px rgba(181, 110, 58, 0.30), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Logo cell */
.toplist-table .col-logo {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.toplist-logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 72px;
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.toplist-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.toplist-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.toplist-brand strong {
  font-size: 1.05rem;
}
.toplist-brand strong a { color: var(--text-white); }
.toplist-brand strong a:hover { color: var(--primary); }
.toplist-descriptor {
  font-size: 0.78rem;
  color: var(--primary);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Bonus: callout — never a button */
.toplist-bonus {
  display: inline-block;
  background: linear-gradient(135deg, rgba(240,192,64,0.25) 0%, rgba(240,192,64,0.10) 100%);
  border: 1px solid rgba(240,192,64,0.40);
  border-left: 4px solid var(--primary);
  color: var(--primary-light);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  white-space: nowrap;
}

.toplist-table .col-metric {
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.95rem;
}
.toplist-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.98rem;
}
.toplist-rating::before {
  content: "★";
  font-size: 1.05rem;
  line-height: 1;
}

.toplist-table .col-cta {
  width: 220px;
  text-align: right;
  padding-right: 1.4rem !important;
}
.toplist-table .col-cta .btn {
  white-space: nowrap;
  padding: 12px 22px;
  font-size: 0.95rem;
}
.toplist-review-link {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.15);
  text-underline-offset: 3px;
}
.toplist-review-link:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

/* Initials avatar (placeholder logo per [[initials-avatar]]) */
.initials-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 44px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--bg-darker);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

/* ===== MOBILE: reflow table → vertical cards (≤ 768px) ===== */
@media (max-width: 768px) {
  .toplist-table thead { display: none; }
  .toplist-table,
  .toplist-table tbody,
  .toplist-table tr,
  .toplist-table td {
    display: block;
    width: 100%;
  }
  .toplist-table tr {
    border: 1.5px solid var(--primary);
    border-radius: 14px;
    margin-bottom: 0.8rem;
    padding: 0.85rem;
    background: var(--bg-card);
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  }
  .toplist-row.highlight-row {
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a2a3d 100%);
  }
  .toplist-table td {
    border: none;
    padding: 0.3rem 0;
    text-align: center;
  }
  .toplist-table .col-rank { font-size: 1rem; }
  .toplist-table .col-logo {
    flex-direction: column;
    min-width: 0;
    gap: 0.4rem;
    justify-content: center;
  }
  .toplist-logo-box { width: 140px; height: 70px; }
  .initials-avatar { width: 120px; height: 60px; font-size: 1.5rem; }
  .toplist-bonus {
    display: inline-block;
    background: linear-gradient(135deg, rgba(240,192,64,0.22) 0%, rgba(240,192,64,0.10) 100%);
    border: 1px solid rgba(240,192,64,0.40);
    border-left: 5px solid var(--primary);
    color: var(--primary-light);
    font-size: 1.1rem;
    padding: 0.6rem 0.95rem;
    border-radius: 4px;
    box-shadow: none;
  }
  .toplist-table .col-cta { width: 100%; text-align: center; }
  .toplist-table .col-cta .btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1.02rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-dark) 100%);
    color: var(--bg-darker);
    border-radius: 10px;
    box-shadow:
      0 0 0 2px rgba(255, 230, 128, 0.20),
      0 8px 26px rgba(240, 192, 64, 0.45),
      inset 0 1px 0 rgba(255, 255, 255, 0.40);
    font-weight: 800;
    letter-spacing: 0.02em;
    animation: btn-glow 2.4s ease-in-out infinite;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 45%, var(--primary-dark) 100%);
  color: var(--bg-darker);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 2px rgba(255, 230, 128, 0.18),
    0 6px 24px rgba(240, 192, 64, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  animation: btn-glow 2.4s ease-in-out infinite;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ffeea0 0%, var(--primary-light) 45%, var(--primary) 100%);
  color: var(--bg-darker);
  box-shadow:
    0 0 0 2px rgba(255, 230, 128, 0.35),
    0 10px 32px rgba(240, 192, 64, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }

@keyframes btn-glow {
  0%, 100% { box-shadow:
    0 0 0 2px rgba(255, 230, 128, 0.18),
    0 6px 24px rgba(240, 192, 64, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }
  50% { box-shadow:
    0 0 0 3px rgba(255, 230, 128, 0.30),
    0 8px 32px rgba(240, 192, 64, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.50);
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--bg-darker);
}
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ===== CONTENT SECTIONS ===== */
.content-section {
  padding: 50px 0;
  border-bottom: 1px solid var(--border-color);
}
.content-section:last-child { border-bottom: none; }

.content-section h2 {
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.content-section h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin: 24px 0 12px;
}
.content-section p {
  margin-bottom: 16px;
  color: var(--text-light);
}
.content-section ul, .content-section ol {
  margin: 12px 0 20px 24px;
  color: var(--text-light);
}
.content-section li { margin-bottom: 8px; }

/* ===== INFO GRID ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.info-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.info-card h4 {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.info-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 0.92rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.comparison-table thead th {
  background: linear-gradient(180deg, #1a2638 0%, #131e2c 100%);
  color: var(--primary);
  padding: 14px 16px;
  text-align: left;
  border-bottom: 2px solid var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.comparison-table tbody tr {
  transition: background .15s ease;
}
.comparison-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
.comparison-table tbody tr:hover {
  background: rgba(240,192,64,0.06);
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-light);
  vertical-align: middle;
}
.comparison-table tbody tr:last-child td { border-bottom: none; }

/* Brand cell: white logo pill + brand name */
.comparison-brand-cell {
  min-width: 200px;
}
.comparison-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.comparison-brand-logo {
  width: 92px;
  height: 50px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.22);
  flex-shrink: 0;
}
.comparison-brand-name {
  font-weight: 700;
  color: var(--text-white);
  font-size: 0.95rem;
}
.comparison-brand-link:hover .comparison-brand-name { color: var(--primary); }

/* Bonus + rating + retrait cells */
.comparison-table td:nth-child(2) {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}
.comparison-table td:nth-child(3) {
  color: var(--primary-light);
  font-weight: 700;
  white-space: nowrap;
}

.check {
  color: #34d399;
  font-weight: 800;
  font-size: 1.1rem;
}
.cross {
  color: #f87171;
  font-weight: 800;
  font-size: 1.05rem;
}

@media (max-width: 768px) {
  .comparison-table { font-size: 0.82rem; }
  .comparison-table th, .comparison-table td { padding: 10px 10px; }
  .comparison-brand-logo { width: 70px; height: 40px; padding: 3px 6px; }
  .comparison-brand-name { font-size: 0.82rem; }
}

/* ===== Mobile stacked data tables (no horizontal scroll) =====
   Opt-in via .mobile-stack on narrow data tables. On phones each row
   becomes a labelled card; wide toplist/comparison tables are unaffected. */
@media (max-width: 600px) {
  .comparison-table.mobile-stack { font-size: 0.9rem; box-shadow: none; border: none; background: none; }
  .comparison-table.mobile-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .comparison-table.mobile-stack tbody tr {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    padding: 6px 14px;
  }
  .comparison-table.mobile-stack tbody tr:nth-child(even) { background: var(--bg-card); }
  .comparison-table.mobile-stack td,
  .comparison-table.mobile-stack td:nth-child(2),
  .comparison-table.mobile-stack td:nth-child(3) {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
    white-space: normal;
    text-align: right;
  }
  .comparison-table.mobile-stack tbody tr td:last-child { border-bottom: none; }
  /* brand/logo cell = card header (left-aligned, no label) */
  .comparison-table.mobile-stack .comparison-brand-cell {
    justify-content: flex-start;
    min-width: 0;
    padding: 2px 0 11px;
    margin-bottom: 3px;
  }
  .comparison-table.mobile-stack .comparison-brand-cell::before { display: none; }
  .comparison-table.mobile-stack td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--text-muted, #9fb0c3);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    text-align: left;
    flex: 0 0 auto;
  }
}

/* ===== FAQ / ACCORDION ===== */
.faq-section { padding: 40px 0; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--text-white);
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-card-hover); }
.faq-question::after { content: '+'; color: var(--primary); font-size: 1.3rem; }
.faq-item.active .faq-question::after { content: '-'; }
.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--text-muted);
  line-height: 1.6;
}
.faq-item.active .faq-answer { display: block; }

/* ===== REVIEW PAGE ===== */
.review-header {
  background: linear-gradient(135deg, var(--bg-dark), #1a2940);
  padding: 50px 0 40px;
  border-bottom: 2px solid var(--primary);
}
.review-header h1 {
  font-size: 2.2rem;
  color: var(--text-white);
  margin-bottom: 12px;
}
.review-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.review-meta span { display: flex; align-items: center; gap: 6px; }

.review-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.summary-item { text-align: center; }
.summary-item .label { font-size: 0.8rem; color: var(--text-muted); display: block; }
.summary-item .value { font-size: 1.4rem; font-weight: 700; color: var(--primary); }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.pros, .cons {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
}
.pros { border-left: 4px solid var(--accent-green); }
.cons { border-left: 4px solid var(--accent-red); }
.pros h4 { color: var(--accent-green); margin-bottom: 12px; }
.cons h4 { color: var(--accent-red); margin-bottom: 12px; }
.pros li, .cons li { margin-bottom: 8px; font-size: 0.9rem; }

/* ===== GUIDES GRID ===== */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.guide-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.guide-card h3 {
  color: var(--text-white);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.guide-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.guide-card .read-more {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== BREADCRUMBS ===== */
.breadcrumbs {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 8px; }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--primary);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-disclaimer {
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 30px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.age-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-red);
  color: white;
  border-radius: 50px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* ===== AUTHOR BOX ===== */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 20px;
  margin: 30px 0;
}
.author-avatar {
  width: 80px;
  height: 80px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--bg-darker);
  font-weight: 800;
  flex-shrink: 0;
}
.author-avatar-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
  flex-shrink: 0;
}
.author-info h4 { color: var(--text-white); margin-bottom: 4px; }
.author-info h4 a { color: var(--text-white); }
.author-info h4 a:hover { color: var(--primary); }
.author-info .title { color: var(--primary); font-size: 0.85rem; margin-bottom: 8px; }
.author-info p { color: var(--text-muted); font-size: 0.9rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 968px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review-summary-box { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* Generic hero (non-transactional, non-review) — modest tightening */
  .hero { padding: 18px 0 16px; }
  .hero h1 { line-height: 1.2; margin-bottom: 8px; }
  .hero p,
  .hero .collapsible-content {
    max-width: 100%;
    margin-bottom: 6px;
  }
  .hero-badges { display: none; }
  .hero-cta { margin-top: 10px; padding: 10px 22px; }
  .update-date { padding: 3px 10px; }
  .review-byline { gap: 12px; margin: 4px 0 10px; }

  /* H2 toplist lead — hide entirely on mobile (text + Voir plus toggle) */
  .toplist-lead-wrap,
  .toplist-lead { display: none; }
  .toplist-section { padding: 20px 0; }
  /* Toplist H2 sized to match article H2s (~1.25rem) per operator request */
  .toplist-section h2 {
    font-size: 1.25rem;
    margin-bottom: 6px;
    line-height: 1.3;
  }

  /* Transactional pages — hero ~35% smaller (padding/margins; text kept) */
  body:has(.toplist-section) .hero:not(.hero-review) {
    padding: 10px 0 8px;
  }
  body:has(.toplist-section) .hero:not(.hero-review) h1 {
    margin-bottom: 4px;
  }
  body:has(.toplist-section) .hero:not(.hero-review) .review-byline {
    gap: 8px;
    margin: 2px 0 6px;
  }
  body:has(.toplist-section) .hero:not(.hero-review) .update-date {
    padding: 2px 8px;
  }
  /* Hide hero sub-line entirely on transactional pages — the toplist
     H2 immediately below the hero is the lead, the description is noise */
  body:has(.toplist-section) .hero:not(.hero-review) .collapsible {
    display: none;
  }

  /* On guide pages AND keyword/category pages with a toplist, hide the
     hero entirely on mobile — H1 still rendered for SEO (in DOM) but
     visually the H2 toplist leads. Homepage hero stays. */
  body.page-guide:has(.toplist-section) .hero,
  body.page-keyword:has(.toplist-section) .hero { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
}

/* ===== MISC ===== */
.update-date {
  background: var(--bg-card);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.highlight-box {
  background: rgba(240,192,64,0.08);
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
}
.highlight-box p { color: var(--text-light); margin: 0; }

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.payment-icon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.rating-bar {
  background: var(--bg-darker);
  border-radius: 10px;
  height: 8px;
  overflow: hidden;
  margin: 4px 0;
}
.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px;
}

.tag {
  display: inline-block;
  background: rgba(52,152,219,0.15);
  color: var(--accent-blue);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.numbered-list { counter-reset: item; list-style: none; padding: 0; margin: 0; }
.numbered-list li {
  counter-increment: item;
  padding: 12px 0 12px 40px;
  position: relative;
  border-bottom: 1px solid var(--border-color);
}
.numbered-list li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 12px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: var(--bg-darker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}
