/* LottoScopIA — Design tokens */
:root {
  --bg-dark: #0a0e1a;
  --bg-card: #111827;
  --bg-elevated: #1c1f27;
  --border: #1f2937;
  --border-hover: #2a2f3a;
  --accent: #6366f1;
  --accent-hover: #4f52e5;
  --accent-translucent: rgba(99, 102, 241, 0.06);
  --success: #10b981;
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6e7384;
  --hot: #f59e0b;
  --cold: #3b82f6;
  --very-hot: #ef4444;
  --very-cold: #1e3a8a;
  --neutral: #6b7280;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body {
  overflow-x: hidden;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
::selection {
  background: var(--accent);
  color: #fff;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* Layout */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 64px;
}
@media (max-width: 900px) {
  .shell {
    padding: 0 32px;
  }
}
@media (max-width: 640px) {
  .shell {
    padding: 0 20px;
  }
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}
/* Lien icone Accueil : bleu accent permanent, plus visible que les liens texte */
.nav-links a.nav-icon-home {
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  padding: 4px;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.nav-links a.nav-icon-home:hover,
.nav-links a.nav-icon-home.active {
  color: var(--accent);
  transform: scale(1.1);
}
/* Lien icone Favoris : contour blanc/gris au repos, rouge plein hover/active.
   Coherent avec les coeurs des favoris (rouge #ef4444 = valide). */
.nav-links a.nav-icon-fav {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  padding: 4px;
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}
.nav-links a.nav-icon-fav:hover,
.nav-links a.nav-icon-fav.active {
  color: #ef4444;
  transform: scale(1.1);
}
.nav-right {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-burger {
  display: none;
}
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: inline-flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 10px 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}
.btn-block {
  width: 100%;
  padding: 14px 18px;
  font-size: 14px;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Pills / labels */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.pill-accent {
  background: var(--accent-translucent);
  border-color: rgba(99, 102, 241, 0.3);
  color: var(--accent);
}
.pill-hot {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--hot);
}
.pill-cold {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--cold);
}
.pill-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--success);
}
.pill-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--very-hot);
}

.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.eyebrow-muted {
  color: var(--text-secondary);
}

.h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--text-primary);
}
.h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.8px;
}
.h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}
.small {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.mono-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}
@media (max-width: 640px) {
  .h1 {
    font-size: 36px;
    letter-spacing: -0.8px;
  }
  .h2 {
    font-size: 26px;
    letter-spacing: -0.5px;
  }
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.18s ease;
}
.card:hover {
  border-color: var(--border-hover);
}
.card-flat {
  padding: 18px;
  border-radius: 10px;
}
.card-bare {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Live ticker */
.ticker {
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 48px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
}
.ticker-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--text-secondary);
}
.ticker-item .name {
  color: var(--text-primary);
  font-weight: 500;
}
.ticker-up {
  color: var(--success);
}
.ticker-down {
  color: var(--very-hot);
}
.ticker-flat {
  color: var(--text-muted);
}
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 28px;
  height: 28px;
}
.logo-word {
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.logo-word .ia {
  color: var(--accent);
}

/* Section */
.section {
  padding: 96px 0;
}
.section-tight {
  padding: 64px 0;
}
@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }
}
.section-divider {
  border-top: 1px solid var(--border);
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
}
.hero-card {
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  min-height: 460px;
}
.hero-card .h1 {
  font-size: clamp(48px, 6vw, 80px);
}
.hero-card .small {
  max-width: 720px !important;
  font-size: 16px !important;
}
.hero-card .hero-meta {
  gap: 56px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta-item .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}
.hero-meta-item .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Terminal */
.terminal {
  background: #07090f;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 460px;
}
.terminal-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2f3a;
}
.terminal-title {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 8px;
  letter-spacing: 0.05em;
}
.t-line {
  color: var(--text-secondary);
}
.t-prompt {
  color: var(--text-muted);
}
.t-ok {
  color: var(--success);
}
.t-hot {
  color: var(--hot);
}
.t-cold {
  color: var(--cold);
}
.t-pick {
  color: var(--text-primary);
}
.t-accent {
  color: var(--accent);
}
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Radial Card (replaces terminal) */
.radial-card {
  background: linear-gradient(180deg, #07090f 0%, #0a0d18 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.radial-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 0%,
    rgba(99, 102, 241, 0.08),
    transparent 60%
  );
  pointer-events: none;
}
.radial-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.radial-title {
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 18px;
  position: relative;
}
.radial-body {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  align-items: start;
  position: relative;
}
@media (max-width: 720px) {
  .radial-body {
    grid-template-columns: 1fr;
  }
}
.radial-stage {
  display: flex;
  align-items: center;
  justify-content: center;
}
.radial-stage svg {
  max-width: 100%;
  height: auto;
}
.radial-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.radial-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}
.radial-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.radial-balls {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.rb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
}
.rb.hot {
  background: var(--hot);
  color: #1a1208;
  border-color: #fbbf24;
}
.rb.cold {
  background: var(--cold);
  color: #fff;
  border-color: #818cf8;
}
.rb.star {
  font-size: 10px;
  min-width: 22px;
  height: 22px;
}
.rb.star.on {
  background: rgba(245, 158, 11, 0.18);
  color: var(--hot);
  border-color: rgba(245, 158, 11, 0.4);
}
.rb.star.off {
  background: transparent;
  color: var(--text-muted);
}

/* Legal docs */
.legal-doc {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px 0 80px;
}
.legal-doc section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.legal-doc h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.legal-doc p,
.legal-doc li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.legal-doc ul {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.legal-doc strong {
  color: var(--text-primary);
  font-weight: 600;
}
.legal-doc a {
  color: var(--accent);
  text-decoration: none;
}
.legal-doc a:hover {
  text-decoration: underline;
}

/* Heatmap visualization */
.heat-stats {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.heat-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.heat-stat-k {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.heat-stat-v {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}
.heat-legend {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
}
.hl-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 2px;
}
.hl-dot.hl-cold {
  background: rgba(99, 102, 241, 0.55);
}
.hl-dot.hl-mid {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.hl-dot.hl-hot {
  background: rgba(245, 158, 11, 0.85);
}

.heat-grid {
  display: grid;
  gap: 4px;
  width: 100%;
}
.heat-cell {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  transition: transform 0.15s ease;
  cursor: default;
}
.heat-cell:hover {
  transform: scale(1.08);
  z-index: 2;
  border-color: rgba(255, 255, 255, 0.2);
}
.heat-cell.is-hot {
  border-color: rgba(251, 191, 36, 0.45);
}
.heat-cell.is-cold {
  border-color: rgba(129, 140, 248, 0.45);
}
.heat-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}
.heat-freq {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  opacity: 0.75;
  line-height: 1;
  margin-top: 2px;
}
.heat-bar {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  border-radius: 1px;
  opacity: 0.85;
  height: 3px;
}
.heat-stars-row {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.heat-stars-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.heat-stars {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.heat-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.heat-star.on {
  background: rgba(245, 158, 11, 0.18);
  color: var(--hot);
  border-color: rgba(245, 158, 11, 0.45);
}
@media (max-width: 540px) {
  .heat-num {
    font-size: 11px;
  }
  .heat-freq {
    display: none;
  }
}

/* KPI grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  .kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 540px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.kpi {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.18s ease;
}
.kpi:hover {
  border-color: var(--border-hover);
}
.kpi .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.kpi .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* Heatmap (home) */
.heatmap-home {
  display: grid;
  grid-template-columns: repeat(25, 1fr);
  gap: 4px;
}
.heatmap-cell {
  aspect-ratio: 1;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.heatmap-cell:hover {
  transform: scale(1.15);
  z-index: 5;
  outline: 1px solid var(--accent);
}

/* Heatmap canonical — draw-ball style (circles with gloss) */
.heatmap-canonical {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  padding: 6px 2px;
}
.heatmap-canonical-cell {
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease;
  position: relative;
  /* base radial fill; --ball-color set inline per-cell tier */
  background:
    radial-gradient(
      circle at 32% 28%,
      rgba(255, 255, 255, 0.45) 0%,
      rgba(255, 255, 255, 0.12) 22%,
      rgba(255, 255, 255, 0) 45%
    ),
    radial-gradient(
      circle at 65% 75%,
      rgba(0, 0, 0, 0.28) 0%,
      rgba(0, 0, 0, 0) 60%
    ),
    var(--ball-color, #6b7280);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.35),
    inset 0 2px 3px rgba(255, 255, 255, 0.18),
    0 4px 10px rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.heatmap-canonical-cell.emphasis {
  font-size: 16px;
  font-weight: 700;
}
.heatmap-canonical-cell:hover {
  transform: translateY(-2px) scale(1.06);
  z-index: 5;
}

.heatmap-stars {
  display: grid;
  /* Auto-fill : adapte le nombre de colonnes à la largeur dispo, taille mini = 46px */
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 10px;
  padding: 6px 2px;
}
.heatmap-stars .heatmap-canonical-cell {
  aspect-ratio: 1;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}
.feature-cell {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  transition: background 0.18s ease;
}
.feature-cell:hover {
  background: var(--bg-elevated);
}
.feature-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  min-width: 24px;
}
.feature-body h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-body p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  cursor: pointer;
}
.price-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.18);
}
.price-card.is-selected {
  border-color: var(--accent);
  box-shadow:
    0 0 0 2px var(--accent) inset,
    0 12px 30px rgba(99, 102, 241, 0.22);
}
.price-card.pop {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.04) 0%,
    var(--bg-card) 60%
  );
}
.price-card .pop-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 500;
}
.price-card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: "JetBrains Mono", monospace;
}
.price-card .price {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}
.price-card .price small {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}
.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 0;
}
.price-card li {
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.price-card li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8l3.5 3.5L13 5'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
.footer-disclaimer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 980px;
}

/* Ball component */
.ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 13px;
  border: 1.4px solid;
  flex-shrink: 0;
}
.ball-normal {
  background: #fff;
  color: #0a0e1a;
  border-color: rgba(0, 0, 0, 0.1);
}
.ball-star {
  background: radial-gradient(
    circle at 35% 30%,
    #ffd66b 0%,
    #f5a623 60%,
    #c97c0a 100%
  );
  color: #1a1206;
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.18),
    0 1px 2px rgba(0, 0, 0, 0.25);
  font-weight: 700;
}
.ball-red {
  background: radial-gradient(
    circle at 35% 30%,
    #ff8a96 0%,
    #e63946 55%,
    #9c1828 100%
  );
  color: #fff;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}
.ball-green {
  background: radial-gradient(
    circle at 35% 30%,
    #7be09a 0%,
    #1f8a5b 55%,
    #0c5236 100%
  );
  color: #fff;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}
.ball-blue {
  background: radial-gradient(
    circle at 35% 30%,
    #93b5ff 0%,
    #2a6fdb 55%,
    #143b7a 100%
  );
  color: #fff;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}
.ball-purple {
  background: radial-gradient(
    circle at 35% 30%,
    #c8a2ff 0%,
    #6c3bd0 55%,
    #36186e 100%
  );
  color: #fff;
  border-color: rgba(0, 0, 0, 0.22);
  box-shadow:
    inset 0 -3px 6px rgba(0, 0, 0, 0.22),
    0 1px 2px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}
.ball-hot {
  background: rgba(245, 158, 11, 0.18);
  color: var(--hot);
  border-color: var(--hot);
}
.ball-cold {
  background: rgba(59, 130, 246, 0.18);
  color: var(--cold);
  border-color: var(--cold);
}
.ball-accent {
  background: rgba(99, 102, 241, 0.18);
  color: var(--accent);
  border-color: var(--accent);
}
.ball-locked {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  font-weight: 700;
}
.ball-bonus-locked {
  background: #f5b400;
  color: #1a1208;
  border-color: #f5b400;
  font-weight: 700;
}
.ball-grey {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border-color: var(--border);
}
.ball-sm {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.ball-lg {
  width: 38px;
  height: 38px;
  font-size: 14px;
}

/* Pop animation for generator */
@keyframes ballpop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  60% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.ball-pop {
  animation: ballpop 380ms cubic-bezier(0.2, 0.9, 0.3, 1.2) both;
}

/* Zone filter chips */
.zone-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.zone-chip {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.zone-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}
.zone-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.zone-chip .count {
  color: inherit;
  opacity: 0.7;
  margin-left: 6px;
  font-size: 10px;
}

/* Geo strip */
.geo-strip {
  background: linear-gradient(
    90deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(99, 102, 241, 0) 60%
  );
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.geo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}
.geo-row .glyph {
  font-size: 14px;
}
.geo-row .accent {
  color: var(--accent);
}
.geo-row .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}
.geo-zones {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
}
.geo-zone-btn {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  letter-spacing: 0.04em;
}
.geo-zone-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.geo-zone-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.lang-wrap {
  position: relative;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  background: transparent;
}
.lang-btn:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.lang-btn .glyph {
  font-size: 13px;
}
.lang-btn .chev {
  font-size: 9px;
  opacity: 0.6;
}
.lang-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 320px;
  max-height: 460px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.lang-search {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.lang-search input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-primary);
  outline: none;
  font-family: "JetBrains Mono", monospace;
}
.lang-search input:focus {
  border-color: var(--accent);
}
.lang-list {
  overflow-y: auto;
  padding: 6px 0;
}
.lang-group {
  padding: 8px 14px 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.12s ease;
  font-size: 13px;
}
.lang-item:hover {
  background: var(--bg-elevated);
}
.lang-item.active {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
}
.lang-item .glyph {
  font-size: 16px;
  line-height: 1;
  width: 22px;
}
.lang-item .name {
  flex: 1;
}
.lang-item .code {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.lang-item.active .code {
  color: var(--accent);
}
.lang-empty {
  padding: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}
.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  padding-bottom: 0;
}
.tabs .tab {
  font-size: 12.5px;
}
.tab .flag {
  margin-right: 6px;
  font-size: 13px;
}
.tab {
  padding: 14px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.tab:hover {
  color: var(--text-primary);
}
.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.table tbody tr {
  transition: background 0.15s ease;
}
.table tbody tr:hover {
  background: var(--bg-elevated);
}
.table-mono {
  font-family: "JetBrains Mono", monospace;
}

/* Sub-pages section header */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.page-header-l {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.page-header-r {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Generator radio cards */
.strat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 540px) {
  .strat-grid {
    grid-template-columns: 1fr;
  }
}
.strat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.strat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}
.strat-card.active {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
}
.strat-card .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.strat-card .title {
  font-size: 13px;
  font-weight: 600;
}
.strat-card .desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Top 3 strategies (Home) */
.top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .top3-grid {
    grid-template-columns: 1fr;
  }
}
.top3-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition:
    border-color 0.15s,
    transform 0.15s,
    background 0.15s;
}
.top3-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  background: linear-gradient(
    180deg,
    rgba(99, 102, 241, 0.05),
    transparent 60%
  );
}
.top3-rank {
  position: absolute;
  top: -10px;
  left: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 2;
}
.top3-card:hover .top3-rank {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
}
.top3-expand-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.top3-expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.08);
}
.top3-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-right: 30px;
}
.top3-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
}
.top3-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}
.top3-desc {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.top3-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}
.top3-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
}
.top3-metric .v {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.top3-metric .v.accent {
  color: var(--accent);
}
.top3-metric .l {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.top3-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
}
.top3-cta button {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.top3-cta button:hover {
  text-decoration: underline;
}
.top3-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-elevated);
  overflow: hidden;
  margin-top: 4px;
}
.top3-bar .fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* Form controls */
.field-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: block;
}
.field-label .right {
  float: right;
  color: var(--text-primary);
}
.select,
.input {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s;
  appearance: none;
}
.select:hover,
.input:hover {
  border-color: var(--border-hover);
}
.select:focus,
.input:focus {
  border-color: var(--accent);
}
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%239CA3AF' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
/* Loteries sans données dans les menus déroulants */
.select option:disabled {
  color: #4b5563;
  font-style: italic;
}
.select optgroup[label^="○"] {
  color: #6b7280;
  font-style: italic;
}
.select optgroup[label^="○"] option {
  color: #4b5563;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 999px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--bg-dark);
}
.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--bg-dark);
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.toggle-track {
  width: 36px;
  height: 20px;
  background: var(--bg-elevated);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
  border: 1px solid var(--border);
}
.toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.2s;
}
.toggle.on .toggle-track {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle.on .toggle-track::after {
  left: 18px;
  background: #fff;
}

/* Result grilles */
.grille-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.grille-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.grille-balls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.grille-plus {
  color: var(--text-muted);
  font-size: 16px;
  padding: 0 4px;
}
.grille-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Blog cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 540px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.15s ease;
  cursor: pointer;
}
.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.blog-cover {
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 6px,
      rgba(99, 102, 241, 0.04) 6px 12px
    ),
    var(--bg-elevated);
  border-bottom: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.blog-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.blog-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.blog-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category section */
.cat-row {
  margin-bottom: 56px;
}
.cat-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.cat-head h3 {
  font-size: 18px;
  font-weight: 600;
}
.cat-head .right {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-secondary);
  cursor: pointer;
}
.cat-head .right:hover {
  color: var(--text-primary);
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  cursor: pointer;
}
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  font-weight: 500;
}
.faq-q .chev {
  transition: transform 0.2s;
  color: var(--text-secondary);
}
.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
  color: var(--accent);
}
.faq-a {
  padding-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  display: none;
}
.faq-item.open .faq-a {
  display: block;
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.compare-table th:first-child,
.compare-table td:first-child {
  width: 40%;
}
.compare-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 500;
}
.compare-table th:not(:first-child),
.compare-table td:not(:first-child) {
  text-align: center;
}
.compare-table tbody tr:last-child td {
  border-bottom: 0;
}
.compare-table .check {
  color: var(--success);
  font-weight: 600;
}
.compare-table .dash {
  color: var(--text-muted);
}

/* Toasts */
.toasts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  min-width: 260px;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: slidein 0.25s ease;
  pointer-events: auto;
}
.toast.success {
  border-left-color: var(--success);
}
.toast .ttitle {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
}
.toast .tbody {
  color: var(--text-secondary);
  font-size: 12px;
}
@keyframes slidein {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadein 0.2s ease;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: fadein 0.25s ease;
}
@keyframes fadein {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Radial */
.radial-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) {
  .radial-wrap {
    grid-template-columns: 1fr;
  }
}
.radial-canvas {
  position: relative;
  aspect-ratio: 1;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}
.radial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  gap: 4px;
}
.radial-center .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
}
.radial-center .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.radial-ball {
  position: absolute;
  transform: translate(-50%, -50%);
}
.radial-annot {
  position: absolute;
  bottom: 8px;
  left: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.radial-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Locked card */
.locked {
  position: relative;
  overflow: hidden;
}
.locked .blurred {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
}
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(10, 14, 26, 0.55);
  text-align: center;
  padding: 24px;
}

/* Countdown */
.countdown {
  display: flex;
  gap: 6px;
  align-items: baseline;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
}
.countdown .v {
  color: var(--text-primary);
  font-size: 14px;
}
.countdown .u {
  color: var(--text-muted);
  font-size: 11px;
  margin-right: 4px;
}

/* Tooltip */
.tt {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  background: #07090f;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.tt .muted {
  color: var(--text-muted);
}

/* Icon button */
.iconbtn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.iconbtn:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  font-family: "JetBrains Mono", monospace;
}
.pagination button {
  min-width: 32px;
  height: 32px;
  border-radius: 6px;
  padding: 0 8px;
  font-size: 12px;
  color: var(--text-secondary);
}
.pagination button:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}
.pagination button.active {
  background: var(--accent);
  color: #fff;
}
.pagination .gap {
  color: var(--text-muted);
  padding: 0 4px;
}

/* Search */
.search-input {
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%239CA3AF' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='6' cy='6' r='4.5'/%3E%3Cpath d='M9.5 9.5L13 13'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 12px center;
}

/* Section title row */
.title-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.title-row.center {
  text-align: center;
  align-items: center;
}
.title-row.center .h2 {
  max-width: 720px;
}

/* Lock icon ::before for locked features */
.locked-pill::before {
  content: "";
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236e7384' stroke-width='1.6' stroke-linecap='round'%3E%3Crect x='3' y='7' width='10' height='7' rx='1'/%3E%3Cpath d='M5 7V5a3 3 0 016 0v2'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  display: inline-block;
  margin-right: 4px;
  vertical-align: -1px;
}

/* Mobile drawer */
.drawer {
  position: fixed;
  top: 64px;
  right: 0;
  width: 100%;
  max-width: 320px;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  height: calc(100vh - 64px);
  padding: 24px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.drawer.open {
  transform: translateX(0);
}
.drawer a {
  padding: 12px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}

/* Disclaimer mini */
.mini-disclaimer {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.7;
  max-width: 560px;
  margin: 16px auto 0;
}

/* Combination Tester */
.ct-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .ct-wrap {
    grid-template-columns: 1fr;
  }
}
.ct-col {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.ct-section-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.ct-range {
  color: var(--text-muted);
}
.ct-pad {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.ct-pad button.ct-num {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.12s;
}
.ct-pad button.ct-num:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}
.ct-pad button.ct-num.selected.num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.ct-pad button.ct-num.selected.star {
  background: #f5b400;
  color: #1a1208;
  border-color: #f5b400;
  font-weight: 600;
}
.ct-actions {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.ct-actions .btn {
  flex: 0 1 auto;
}
.ct-actions .btn:first-child {
  flex: 1;
}
.ct-actions .btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ct-result {
  display: flex;
  flex-direction: column;
}
.ct-empty {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 240px;
}
.ct-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.ct-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-left: 2px solid var(--border);
}
.ct-stat .v {
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  color: var(--text-primary);
  font-weight: 600;
}
.ct-stat .l {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.ct-verdict {
  padding: 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.ct-verdict.hit {
  border-color: var(--success);
  background: color-mix(in oklab, var(--success) 8%, transparent);
}
.ct-verdict.miss {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}
.ct-verdict-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.ct-verdict.hit .ct-verdict-tag {
  color: var(--success);
}
.ct-verdict.miss .ct-verdict-tag {
  color: var(--accent);
}
.ct-verdict-title {
  font-size: 18px;
  font-weight: 600;
  margin: 6px 0 0;
  line-height: 1.3;
  color: var(--text-primary);
}
.ct-matches {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.ct-match {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
}
.ct-match.exact {
  border-color: var(--success);
}
.ct-match-head {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.ct-match-score {
  color: var(--accent);
  font-weight: 600;
}
.ct-match-balls {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.ct-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  border: 1px solid var(--border);
}
.ct-ball.hit {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 600;
}
.ct-ball.star {
  background: rgba(245, 180, 0, 0.08);
  border-color: rgba(245, 180, 0, 0.3);
  color: #f5b400;
}
.ct-ball.star.hit {
  background: #f5b400;
  color: #1a1208;
  border-color: #f5b400;
}

/* Strategy expand */
.strat-card {
  position: relative;
}
.strat-card.expanded {
  grid-column: 1 / -1;
}
.strat-expand-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.12s;
}
.strat-expand-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
}
.strat-explain {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
@media (max-width: 700px) {
  .strat-explain {
    grid-template-columns: 1fr;
  }
}
.strat-explain-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.strat-explain-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.strat-explain-label.vulg {
  color: var(--success);
}
.strat-explain-label.math {
  color: var(--accent);
}
.strat-explain p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ─────────────────────────────────────────────────────────────────────────
   BIGGEST JACKPOT HERO
   ────────────────────────────────────────────────────────────────────── */
.biggest-jackpot-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border-radius: 18px;
  background: linear-gradient(135deg, #c81d4e 0%, #8a1a5e 100%);
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 8px 24px rgba(200, 29, 78, 0.25);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.biggest-jackpot-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(200, 29, 78, 0.35);
}
.biggest-jackpot-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/balls-bg.jpg") center/cover no-repeat;
  opacity: 0.15;
  pointer-events: none;
}
.bjh-left {
  position: relative;
  z-index: 1;
}
.bjh-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.95;
  font-weight: 700;
}
.bjh-amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.bjh-currency {
  font-size: 28px;
  font-weight: 700;
  opacity: 0.95;
  color: #fff;
}
.bjh-value {
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
}
.bjh-unit {
  font-size: 30px;
  font-weight: 600;
  opacity: 0.98;
  color: #fff;
}
.bjh-countdown {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  letter-spacing: 0.04em;
  opacity: 0.95;
  margin-top: 18px;
  color: #fff;
  font-weight: 600;
}
.bjh-countdown strong {
  font-weight: 800;
  opacity: 1;
}
/* Variante compacte : 2 encarts superposés (pays + zone) */
.bjh-compact {
  padding: 14px 20px;
  margin-bottom: 0;
}
.bjh-compact .bjh-label {
  font-size: 12px;
}
.bjh-compact .bjh-amount {
  margin-top: 6px;
}
.bjh-compact .bjh-value {
  font-size: 48px;
}
.bjh-compact .bjh-unit {
  font-size: 18px;
}
.bjh-compact .bjh-countdown {
  font-size: 12px;
  margin-top: 8px;
}
.bjh-right {
  position: relative;
  z-index: 1;
}
.bjh-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 110px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.bjh-flag {
  font-size: 38px;
  line-height: 1;
}
.bjh-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ─────────────────────────────────────────────────────────────────────────
   LOTTERY CAROUSEL
   ────────────────────────────────────────────────────────────────────── */
.lottery-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 6px 0;
  --balls-bg: url("assets/balls-bg.jpg");
}
.lottery-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--balls-bg) center/cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
  border-radius: 14px;
}
.lc-track {
  display: flex;
  gap: 12px;
  width: max-content;
  /* Anime via JS (requestAnimationFrame) pour permettre l'injection de
     velocite au swipe/clic-drag. La pause au hover et la decroissance de
     vitesse sont aussi gerees en JS — voir LotteryCarousel dans pages.jsx. */
  will-change: transform;
  /* Empeche la selection de texte pendant le drag pour un meilleur ressenti
     du « flick » a la souris/au doigt. */
  user-select: none;
  -webkit-user-select: none;
}
/* Ancienne animation conservee en reference (non utilisee) ; le contrôle
   JS la remplace mais on garde le keyframes au cas où on voudrait revenir.
@keyframes lc-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
*/
.lc-card {
  position: relative;
  flex: 0 0 auto;
  width: 170px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 16px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: #0d1f4d;
  background-image: url("assets/balls-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
  font-family: inherit;
  text-align: center;
  overflow: hidden;
}
/* Overlay bleu foncé semi-transparent par-dessus la photo des balles */
.lc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 31, 77, 0.72) 0%,
    rgba(8, 18, 48, 0.85) 100%
  );
  z-index: 0;
  border-radius: inherit;
}
.lc-card > * {
  position: relative;
  z-index: 1;
}
.lc-card:hover {
  transform: translateY(-4px);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
/* Accent de zone : liseré bas coloré (subtil) au lieu du fond plein */
.lc-card-europe::after,
.lc-card-amerique::after,
.lc-card-afrique::after,
.lc-card-asie::after,
.lc-card-oceanie::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  z-index: 1;
}
.lc-card-europe::after {
  background: #4361ee;
}
.lc-card-amerique::after {
  background: #e63946;
}
.lc-card-afrique::after {
  background: #f4a261;
}
.lc-card-asie::after {
  background: #f4d35e;
}
.lc-card-oceanie::after {
  background: #06d6a0;
}
.lc-flag {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 4px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.lc-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  min-height: 34px;
  letter-spacing: 0.01em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-transform: uppercase;
}
.lc-jackpot {
  margin-top: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
  /* Toujours sur une seule ligne, taille uniforme */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.lc-jackpot-muted {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-size: 15px;
}
/* Ligne secondaire du jackpot (ex. Keno : « ou 100 K€/an a vie »).
   Plus petite et legerement transparente pour la hierarchie visuelle. */
.lc-jackpot-sub {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
  margin-top: 2px;
}
.lc-countdown {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 10px;
  border-radius: 8px;
  margin-top: 4px;
}
.lc-countdown-muted {
  opacity: 0.5;
}

@media (max-width: 640px) {
  .biggest-jackpot-hero {
    grid-template-columns: 1fr;
    padding: 18px 18px;
  }
  .bjh-value {
    font-size: 56px;
  }
  .bjh-currency {
    font-size: 20px;
  }
  .bjh-unit {
    font-size: 22px;
  }
  .lc-card {
    width: 150px;
    height: 200px;
    padding: 12px 10px 10px;
  }
  .lc-flag {
    font-size: 34px;
  }
  .lc-name {
    font-size: 12px;
  }
  .lc-jackpot {
    font-size: 17px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   HERO SECTION avec fond balles à 20% d'opacité
   ────────────────────────────────────────────────────────────────────── */
.hero-section-bg {
  position: relative;
  overflow: hidden;
}
.hero-section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/balls-bg.jpg") center/cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}
.hero-section-bg > * {
  position: relative;
  z-index: 1;
}

/* Grid 2 colonnes : terminal card (gauche, large) + biggest jackpot (droite) */
.hero-grid-2col {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: stretch;
}
.hero-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-side .biggest-jackpot-hero {
  margin-bottom: 0;
  /* flex:1 → les encarts (1 ou 2) se partagent équitablement la hauteur
     de .hero-side, qui vaut celle du bloc terminal à gauche (align stretch) */
  flex: 1;
  min-height: 0;
  flex-direction: column;
  display: flex;
  grid-template-columns: none;
  text-align: left;
  padding: 22px 24px;
}
.hero-side .bjh-left {
  width: 100%;
}
.hero-side .bjh-right {
  margin-top: auto;
  align-self: flex-end;
}
.hero-side .bjh-value {
  font-size: 88px;
}
.hero-side .bjh-currency {
  font-size: 24px;
}
.hero-side .bjh-unit {
  font-size: 26px;
}
.hero-side .bjh-label {
  font-size: 15px;
}
.hero-side .bjh-countdown {
  font-size: 15px;
}

@media (max-width: 960px) {
  .hero-grid-2col {
    grid-template-columns: 1fr;
  }
  .hero-side .biggest-jackpot-hero {
    flex-direction: row;
    align-items: center;
  }
}

/* ─── Gating : verrouillage des fonctionnalités payantes ──────────────────── */
.locked-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.locked-content {
  filter: blur(5px) saturate(0.6);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}
.locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  background: rgba(10, 14, 26, 0.55);
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 12px;
  transition: background 0.15s ease;
}
.locked-overlay:hover {
  background: rgba(10, 14, 26, 0.4);
}
.locked-lock {
  font-size: 26px;
  line-height: 1;
}
.locked-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary, #cbd5e1);
  max-width: 280px;
}

/* Petite pastille de verrouillage (sélecteurs, options) */
.lock-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #c7d2fe;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.lock-pill:hover {
  background: rgba(99, 102, 241, 0.26);
}

/* Badge "Essai Pro · J-5" */
.trial-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #052e16;
  background: linear-gradient(135deg, #34d399, #10b981);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  /* Largeur minimale fixe : le badge ne change PAS de taille selon que le
     texte est « Invité », « Free », « Pro », « Premium »… ou « Essai Pro
     · J-XX ». Sans ça, l'apparition de Premium au login fait un
     layout-shift, ce qui déclenchait un dézoom auto sur iOS Safari. */
  min-width: 80px;
}

/* Menu déroulant du compte */
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 70;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: #0f1635;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}
.account-email {
  font-size: 13px;
  font-weight: 600;
  color: #f9fafb;
  word-break: break-all;
}
.account-tier {
  font-size: 12px;
  color: var(--text-secondary, #cbd5e1);
  padding-bottom: 8px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

/* Anti zoom-out iOS Safari : sans ça, un seul élément qui dépasse la
   largeur viewport (typiquement la navbar quand l'utilisateur logged-in
   affiche son pseudo) provoque un dézoom global de toute la page.
   IMPORTANT : on utilise `overflow-x: clip` (et non `hidden`) car
   `hidden` casse `position: sticky` sur la navbar — elle disparaissait
   au scroll. `clip` est supporté par tous les navigateurs récents
   (Safari 16+, Chrome 90+, Firefox 81+) et fait la même chose sans
   créer de contexte de scroll qui désactive sticky. La déclaration
   `hidden` reste en repli pour les très vieux navigateurs. */
html,
body {
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
}

/* Bouton « Générer → » dans la navbar : sur très petit mobile, on cache
   le mot pour ne garder que la flèche → la navbar tient sans déborder. */
.nav-generate-label {
  display: inline;
}
@media (max-width: 480px) {
  .nav-generate-label {
    display: none;
  }
}

/* Compactage de la navbar sur petit mobile : sans ça, l'enchaînement
   Logo + LangPicker + TrialBadge(Premium) + Générer→ + Burger
   dépassait la largeur viewport. Premium (7 lettres) déclenche le
   débordement là où Free (4) tenait juste. iOS Safari réagit par un
   dézoom global. On compresse tout. */
@media (max-width: 640px) {
  /* Filet de sécurité : même si un élément déborde, la navbar elle-même
     ne sort jamais du viewport — donc iOS Safari ne dézoome plus la
     page à la connexion. */
  .nav-inner {
    min-width: 0;
    gap: 6px;
  }
  .nav-right {
    gap: 4px;
    min-width: 0;
    flex-shrink: 1;
  }
  /* Logo et son texte plus petits sur mobile (gagne ~20px de largeur),
     mais on garde « LottoScopIA » lisible. */
  .logo {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }
  .logo-mark {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }
  .logo-word {
    font-size: 14px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }
  /* Boutons plus compacts dans la nav uniquement (n'affecte pas les
     boutons du reste du site). */
  .nav-right .btn-sm {
    padding: 6px 10px;
    font-size: 12px;
  }
  .nav-right .btn-primary {
    padding: 6px 10px;
  }
  /* Badge tier (Free/Pro/Premium/Invité) : padding et fonte réduits. */
  .nav-right .trial-badge {
    padding: 2px 7px;
    font-size: 10px;
    letter-spacing: 0;
    flex-shrink: 0;
  }
  /* LangPicker : compact. */
  .nav-right .lang-picker,
  .nav-right select {
    padding: 4px 6px;
    font-size: 11px;
  }
  /* Burger toujours visible (priorité maximale, ne se rétrécit pas). */
  .nav-burger {
    flex-shrink: 0;
  }
}

/* Très petit écran (≤ 340px) : on retire le mot LottoScopIA en dernier
   recours pour les vieux téléphones ou Display Zoom iOS. */
@media (max-width: 340px) {
  .logo-word {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
 * RESPONSIVE MOBILE / TABLETTE — passe globale
 * Beaucoup de composants ont des `style={{fontSize: ...}}` inline sur leur
 * h1, ce qui écrase les media queries des classes .h1/.h2. On ré-applique
 * des tailles raisonnables sur mobile via !important, plus quelques
 * normalisations utiles (page-header empilé, inputs full-width, tableaux
 * scrollables, etc.).
 * ───────────────────────────────────────────────────────────────────────── */

/* Tablette ≤ 900px */
@media (max-width: 900px) {
  .h1[style] {
    font-size: 32px !important;
    letter-spacing: -0.6px !important;
  }
  .h2[style] {
    font-size: 24px !important;
  }
  .page-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .page-header-r {
    justify-content: flex-start;
  }
  .card {
    padding: 18px;
  }
}

/* Mobile ≤ 640px */
@media (max-width: 640px) {
  .h1[style] {
    font-size: 26px !important;
    letter-spacing: -0.4px !important;
  }
  .h2[style] {
    font-size: 20px !important;
  }
  .h3 {
    font-size: 18px;
  }
  .card {
    padding: 14px;
    border-radius: 10px;
  }
  /* Footer : laisse-le respirer sur mobile, alignement gauche, sans
     écraser les liens à droite. */
  .footer-row {
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left;
  }
  .footer-row > div {
    align-items: flex-start !important;
    text-align: left !important;
    width: 100%;
  }
  .footer-row > div > div {
    justify-content: flex-start !important;
  }
  .footer-disclaimer {
    font-size: 10px;
  }
  /* Champs de formulaire : par défaut, pleine largeur pour éviter les
     éléments coupés ou alignés bizarrement. Surchargeable avec style={{
     width: 'auto' }} si besoin. */
  .input,
  .select,
  select,
  textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  /* Modale : occupe presque tout l'écran. */
  .modal,
  .modal-backdrop > div {
    max-width: 100% !important;
    margin: 0 !important;
  }
  /* Tableaux : permettent de scroller horizontalement plutôt que de
     déborder de la page. */
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  /* Code blocks (ApiDocs, etc.) : scroll horizontal au lieu de couper. */
  pre,
  code {
    max-width: 100%;
    overflow-x: auto;
  }
  /* Boutons « stack » sur mobile dans les flex-row. */
  .btn-block {
    width: 100%;
  }
}

/* Très petit écran ≤ 400px (vieux téléphones, fenêtres réduites) */
@media (max-width: 400px) {
  .h1[style] {
    font-size: 22px !important;
  }
  .h2[style] {
    font-size: 18px !important;
  }
  .shell {
    padding: 0 14px;
  }
}

/* Titres principaux : forcer le wrap pour qu'un mot très long
   (« data-driven », un email, un pseudo) ne déborde plus du viewport. */
.h1,
.h2,
.h3 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

/* Hero card : sur mobile, le padding latéral 48px est trop grand
   (presque 100px hors texte) et la clamp(48px, 6vw, 80px) de
   .hero-card .h1 reste à 48px (le min), ce qui fait déborder « data-
   driven » sur la droite. On force des tailles raisonnables. */
@media (max-width: 640px) {
  .hero-card {
    padding: 24px 18px !important;
    min-height: 0 !important;
  }
  .hero-card .h1 {
    font-size: 26px !important;
    letter-spacing: -0.4px !important;
    line-height: 1.2 !important;
  }
  .hero-card .small {
    font-size: 13px !important;
    max-width: 100% !important;
  }
  .hero-card .hero-meta {
    gap: 16px !important;
  }
  /* Carte JACKPOT MAX : sur mobile en flex-row, le logo de la loterie
     à droite débordait. On le réduit fortement (déjà géré pour la
     valeur). */
  .hero-side .biggest-jackpot-hero .bjh-right img {
    max-height: 40px !important;
    max-width: 80px !important;
  }
}

/* Heatmap des étoiles : sur mobile le auto-fill minmax(46px,...) donnait
   des boules plus grosses que les principaux. On force la même grille
   à 10 colonnes que les numéros principaux → tailles identiques.
   Avec 12 étoiles max, la 2e ligne a 2 cellules (laisse de l'espace à
   droite mais visuellement homogène avec les principaux). */
@media (max-width: 640px) {
  .heatmap-canonical,
  .heatmap-stars {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  /* Tableau de comparaison Free/Pro/Premium : sans paddings réduits,
     la colonne Premium était poussée hors viewport. */
  .compare-table {
    overflow: visible !important;
    font-size: 11px !important;
  }
  .compare-table th,
  .compare-table td {
    padding: 10px 6px !important;
    font-size: 11px !important;
  }
  .compare-table th:first-child,
  .compare-table td:first-child {
    width: 32% !important;
    padding-left: 10px !important;
  }
}

/* Carte « Biggest jackpot » : les énormes 88px de .bjh-value débordaient
   sur mobile (carte sur fond rose avec « 83 Millions € »). On scale down
   progressivement. */
@media (max-width: 640px) {
  .hero-side .bjh-value {
    font-size: 56px;
  }
  .hero-side .bjh-currency {
    font-size: 18px;
  }
  .hero-side .bjh-unit {
    font-size: 18px;
  }
  .hero-side .bjh-label {
    font-size: 13px;
  }
  .hero-side .bjh-countdown {
    font-size: 13px;
  }
}
@media (max-width: 400px) {
  .hero-side .bjh-value {
    font-size: 42px;
  }
}
