/* ─────────────────────────────────────────────
   Affiliate Page Template — CSS
   Light theme, mobile-first, pure CSS
───────────────────────────────────────────── */

:root {
  --bg-body:        #f5f5f7;
  --bg-card:        #ffffff;
  --text-primary:   #1a1a2e;
  --text-secondary: #6b7280;
  --gold:           #d4a017;
  --gold-light:     #fef3c7;
  --silver:         #9ca3af;
  --bronze:         #b45309;
  --accent:         #16a34a;
  --accent-hover:   #049138;
  --border:         #e5e7eb;
  --shadow:         0 4px 20px rgba(0,0,0,0.06);
  --radius-card:    16px;
  --radius-btn:     10px;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 1rem;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Sticky Header ── */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Logo ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}
.site-logo:hover { text-decoration: none; color: var(--text-primary); }
.site-logo i { font-size: 1.6rem; color: var(--accent); }
.logo-accent { color: var(--accent); }

/* ── Nav Desktop ── */
.nav-desktop {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-desktop a:hover { color: var(--accent); }

/* ── Hamburger — caché par défaut, visible < 768px ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ── Nav Mobile — cachée par défaut ── */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}
.nav-mobile a {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--accent); }

/* ── Main container ── */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* ── Hero / Intro ── */
.hero-intro {
  padding: 2.5rem 0 1.5rem;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.update-date {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.hero-intro h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.intro-text p { margin-bottom: 0.5rem; }
.intro-text strong { color: var(--text-primary); font-weight: 600; }

/* ── Comparison Table Section ── */
.comparison-table-section {
  margin: 2rem 0;
}
.comparison-table-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* ── Ranking Section ── */
.ranking-section {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Rank Card ── */
.rank-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  border-left: 5px solid var(--silver);
  display: grid;
  grid-template-columns: 52px 72px 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.rank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.rank-card--gold   {
  border-left-color: var(--gold);
  background: linear-gradient(135deg, #fffbeb 0%, var(--bg-card) 40%);
}
.rank-card--silver { border-left-color: var(--silver); }
.rank-card--bronze { border-left-color: var(--bronze); }

/* Rank number badge */
.rank-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  flex-shrink: 0;
  background: var(--bg-body);
  color: var(--text-secondary);
  border: 2px solid var(--border);
}
.rank-card--gold   .rank-number { background: var(--gold-light); color: #92400e; border-color: var(--gold); }
.rank-card--silver .rank-number { background: #f3f4f6; color: #374151; border-color: var(--silver); }
.rank-card--bronze .rank-number { background: #fef3c7; color: var(--bronze); border-color: var(--bronze); }

/* Casino logo placeholder */
.rank-logo {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-initials {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Card body */
.rank-body { flex: 1; min-width: 0; }

.rank-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.3rem;
}

.rank-icon {
  font-size: 1.2rem;
  color: var(--accent);
  margin-right: 0.4rem;
}

.rank-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.rank-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent);
  color: #fff;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Stars */
.rank-stars {
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
  letter-spacing: 1px;
}
.star-empty { color: var(--silver); }

/* Meta */
.rank-meta {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}
.rank-speed::before { content: '⚡ '; }

/* Bonus */
.rank-bonus {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.rank-bonus strong { color: #16a34a; font-weight: 700; }

/* CTA button */
.rank-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  flex-shrink: 0;
}
.rank-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

/* ── Summary Table ── */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.9rem;
}

.summary-table th {
  background: var(--text-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.summary-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.summary-table tr:last-child td { border-bottom: none; }
.summary-table tr:hover td { background: var(--bg-body); }

.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 99px;
}
.trend-badge--hot    { background: #fef2f2; color: #dc2626; }
.trend-badge--stable { background: #f0fdf4; color: #16a34a; }
.trend-badge--new    { background: #eff6ff; color: #2563eb; }

.table-stars { color: var(--gold); font-size: 0.85rem; }

/* ── Reviews Section ── */
.reviews-section {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.review-section {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.review-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.review-section p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}

/* Review screenshot placeholder */
.review-screenshot {
  height: 160px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

/* Pros / Cons — supprimé (remplacé par casino-specs-emoji) */

/* Review details (collapsible table) */
.review-details {
  margin: 1.25rem 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.review-details summary {
  padding: 0.7rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  background: var(--bg-body);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.review-details summary::-webkit-details-marker { display: none; }
.review-details summary::before { content: '▶'; font-size: 0.7rem; transition: transform 0.2s; }
.review-details[open] summary::before { transform: rotate(90deg); }
.review-details[open] summary { border-bottom: 1px solid var(--border); }

.review-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.review-details td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
}
.review-details tr:last-child td { border-bottom: none; }
.review-details td:first-child { color: var(--text-secondary); font-weight: 500; width: 40%; }
.review-details td:last-child { color: var(--text-primary); font-weight: 600; }

/* Review CTA */
.review-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 11px 26px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none !important;
  margin-top: 1rem;
  transition: background 0.2s, transform 0.1s;
}
.review-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

/* ── Casino Cards — refonte fiches ── */
.casino-card { background:#fff; border-radius:12px; box-shadow:0 2px 16px rgba(0,0,0,.08); margin-bottom:32px; overflow:hidden; border:1px solid #e5e7eb }
.casino-header { display:flex; align-items:center; gap:12px; padding:16px 20px; background:#f9fafb; border-bottom:2px solid var(--accent) }
.casino-rank { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1rem; font-weight:800; flex-shrink:0 }
.casino-rank.gold { background:linear-gradient(135deg,#ffd700,#ff8c00); color:#fff }
.casino-rank.silver { background:linear-gradient(135deg,#c0c0c0,#888); color:#fff }
.casino-rank.bronze { background:linear-gradient(135deg,#cd7f32,#8b4513); color:#fff }
.casino-rank.default { background:#f3f4f6; color:#666 }
.casino-header h3 { flex:1; font-size:1.05rem; font-weight:700; color:#1a1a2e; margin:0 }
.casino-screenshot { width:100%; max-height:280px; object-fit:cover; object-position:top; display:block }
.casino-screenshot-placeholder { height:160px; background:linear-gradient(135deg,#4ade80,#16a34a); display:flex; align-items:center; justify-content:center; font-size:2rem; font-weight:800; color:#fff }
.casino-card > p { padding:16px 20px 0; margin:0; color:#444; line-height:1.7; font-size:.95rem }
.casino-card > p + p { padding-top:8px }
.casino-atout { background:#f0fdf4; border-left:3px solid var(--accent); padding:10px 14px; border-radius:0 8px 8px 0; margin:12px 20px; font-size:.92rem; line-height:1.5 }
.casino-specs-emoji { width:100%; margin:16px 0 0; border-collapse:collapse; font-size:.9rem }
.casino-specs-emoji td { padding:8px 16px; border-bottom:1px solid #f3f4f6 }
.casino-specs-emoji td:first-child { color:#666; width:45%; font-weight:500 }
.casino-specs-emoji td:last-child { font-weight:600; color:#1a1a2e }
.btn-cta { display:inline-flex; align-items:center; background:var(--accent); color:#fff !important; padding:11px 24px; border-radius:var(--radius-btn); font-weight:700; font-size:.95rem; text-decoration:none !important; white-space:nowrap; transition:background .2s,transform .1s }
.btn-cta:hover { background:var(--accent-hover); transform:scale(1.02) }
.btn-cta--block { display:flex; justify-content:center; margin:16px 20px 20px; font-size:1rem; padding:14px 24px }
.ranking-section .container { max-width:1100px; margin:0 auto }
.ranking-section h2 { font-size:1.6rem; font-weight:800; color:var(--text-primary); margin-bottom:.5rem }
.section-intro { color:var(--text-secondary); margin-bottom:1.5rem; font-size:1rem; line-height:1.7 }

/* ── Content Sections (nouvelles) ── */
.content-section {
  margin: 2rem 0;
}
.content-section--alt {
  background: var(--bg-card);
}
.content-section .container,
.content-section--alt .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}
.content-section h2,
.content-section--alt h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.content-section p,
.content-section--alt p {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}
.content-section strong,
.content-section--alt strong {
  color: var(--text-primary);
  font-weight: 600;
}
.content-section ul,
.content-section ol,
.content-section--alt ul,
.content-section--alt ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}
.content-section li,
.content-section--alt li { margin-bottom: 0.3rem; line-height: 1.6; }
.section-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-icon {
  font-size: 1.8rem;
  color: var(--accent);
}
.section-header h2 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}
.section-body {
  color: var(--text-secondary);
  line-height: 1.75;
}
.section-body p { margin-bottom: 0.8rem; }
.section-body strong { color: var(--text-primary); font-weight: 600; }
.section-body ul, .section-body ol {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}
.section-body li { margin-bottom: 0.3rem; line-height: 1.6; }

/* ── FAQ Section ── */
.faq-section {
  margin: 2rem 0;
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 2rem;
}

.faq-section h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-item details {
  padding: 0;
}
.faq-item summary {
  padding: 1rem 0;
  font-size: 0.97rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}
.faq-item details[open] summary::after {
  transform: rotate(45deg);
}
.faq-item details p {
  padding: 0 0 1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Author Section ── */
.author-section {
  margin: 2rem 0;
}
.author-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.author-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}
.author-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
}
.author-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px;
  display: block;
}
.author-title {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 8px;
}
.author-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 12px;
}
.author-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.author-social {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: .2s;
}
.author-social:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.author-social i { font-size: 1rem; }

/* ── Footer ── */
.minimal-footer {
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.minimal-footer p { margin-bottom: 0.3rem; }
.footer-helpline { font-size: 0.78rem; color: #9ca3af; }

/* ── Responsive 768px ── */
@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .nav-mobile.is-open { display: flex; }

  .hero-intro h1 { font-size: 1.6rem; }

  .rank-card {
    grid-template-columns: 44px 56px 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }
  .rank-cta {
    grid-column: 1 / -1;
    text-align: center;
    padding: 10px 20px;
  }
  .rank-logo { width: 56px; height: 56px; }

  .pros-cons { grid-template-columns: 1fr; gap: 1rem; }

  .comparison-table-section {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .summary-table { min-width: 560px; }

  .review-section { padding: 1.25rem; }
  .faq-section { padding: 1.25rem; }
  .section-card { padding: 1.25rem; }
  .author-card { flex-direction: column; text-align: center; }

  .casino-header { flex-direction:column; align-items:flex-start; gap:8px }
  .casino-screenshot,.casino-screenshot-placeholder { max-width:100% }
  .btn-cta--block { margin:12px 12px 16px; padding:12px 20px; font-size:.95rem }
}

/* ── Responsive 480px ── */
@media (max-width: 480px) {
  .hero-intro h1 { font-size: 1.35rem; }
  .header-inner { padding: 0 1rem; }
  .rank-number { width: 36px; height: 36px; font-size: 0.9rem; }
  .rank-name { font-size: 1rem; }
  .review-section h2 { font-size: 1.2rem; }
  .sticky-cta span { display:none }
}

/* Sticky CTA bottom bar */
.sticky-cta { position:fixed; bottom:0; left:0; right:0; z-index:200; background:#1a1a2e; padding:10px 20px; display:none; align-items:center; justify-content:space-between; gap:12px; box-shadow:0 -2px 12px rgba(0,0,0,.2) }
.sticky-cta span { color:#fff; font-size:.9rem; font-weight:600 }

/* ── Inline CTA Banner ── */
.inline-cta { display:flex; align-items:center; gap:16px; background:linear-gradient(135deg, var(--accent), var(--accent-hover)); border-radius:12px; padding:20px 24px; margin:24px 0; color:#fff }
.inline-cta img { width:100px; height:56px; object-fit:cover; border-radius:8px; flex-shrink:0 }
.inline-cta-body { flex:1; min-width:0 }
.inline-cta-name { font-size:1rem; font-weight:700 }
.inline-cta-bonus { font-size:.85rem; opacity:.9; margin-top:2px }
.inline-cta .btn-cta { background:#fff; color:var(--accent) !important; flex-shrink:0 }
.inline-cta .btn-cta:hover { background:#f0fdf4 }
@media(max-width:600px){ .inline-cta img { display:none } .inline-cta { flex-direction:column; text-align:center } }

/* ── Section casino image ── */
.section-casino-img { margin-top:16px; border-radius:10px; overflow:hidden; position:relative }
.section-casino-img img { width:100%; max-height:200px; object-fit:cover; object-position:top; display:block }
.section-casino-caption { display:block; padding:6px 12px; background:#f9fafb; font-size:.8rem; color:#666; border-top:1px solid #e5e7eb }
