/* ==========================================================================
   LucidQuest — Landing liste d'attente
   Design system : cinématique sombre, bleu nuit / or, Cinzel + Inter
   ========================================================================== */

:root {
  --bg: #070B1A;
  --bg-2: #0A102A;
  --surface: rgba(20, 28, 58, 0.55);
  --text: #E8ECF8;
  --text-muted: #9AA3C4;
  --gold: #D9A94E;
  --gold-bright: #F0CE86;
  --gold-dim: rgba(217, 169, 78, 0.28);
  --indigo: #37427E;
  --danger: #E2646B;
  --success: #7ED9A2;
  --radius: 10px;
  --container: 1120px;
  --header-h: 64px;
  --font-display: 'Cinzel', 'Georgia', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain cinématique très léger sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typographie ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--text);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.12rem; letter-spacing: 0.04em; }

.kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.prose p { margin: 0 0 1.1em; color: var(--text-muted); }
.prose em { color: var(--text); font-style: italic; }
.prose strong { color: var(--gold-bright); font-weight: 600; }

.highlight-line {
  color: var(--text) !important;
  font-size: 1.06rem;
  border-left: 2px solid var(--gold);
  padding-left: 16px;
}

/* ---------- Barre de progression de lecture ---------- */

.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 60;
  background: transparent;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(7, 11, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 169, 78, 0.12);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
a.logo { text-decoration: none; }
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease;
}
.btn:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1A1204;
  box-shadow: 0 4px 24px rgba(217, 169, 78, 0.35);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 32px rgba(217, 169, 78, 0.5); }
.btn-gold:active { transform: scale(0.98); }
.btn-gold[disabled] { opacity: 0.55; cursor: default; transform: none; }

.btn-ghost {
  border-color: var(--gold-dim);
  color: var(--gold-bright);
  background: transparent;
}
.btn-ghost:hover { background: rgba(217, 169, 78, 0.1); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.85rem; }

/* ---------- Formulaire ---------- */

.waitlist-form { max-width: 520px; margin-top: 28px; }

.field-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.field-row input[type="email"] {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(154, 163, 196, 0.35);
  background: rgba(7, 11, 26, 0.65);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.field-row input[type="email"]::placeholder { color: rgba(154, 163, 196, 0.55); }
.field-row input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 169, 78, 0.22);
}
.field-row input[type="email"].invalid { border-color: var(--danger); }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--gold-bright);
}
.form-feedback {
  margin: 8px 0 0;
  font-size: 0.9rem;
  min-height: 1.4em;
}
.form-feedback.error { color: var(--danger); }
.form-feedback.success { color: var(--success); }

.micro-proof {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.micro-proof .count { color: var(--gold-bright); font-weight: 600; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/img/hero.webp?v=3");
  background-size: cover;
  background-position: 72% center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 26, 0.88) 0%, rgba(7, 11, 26, 0.55) 42%, rgba(7, 11, 26, 0.05) 70%),
    linear-gradient(180deg, rgba(7, 11, 26, 0.35) 0%, rgba(7, 11, 26, 0) 30%, rgba(7, 11, 26, 0.55) 100%);
}
.hero-content { max-width: var(--container); width: 100%; padding-block: 72px; }
.hero-content .lead {
  max-width: 34rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text);
  margin: 18px 0 0;
}
.hero-content .lead-sub {
  max-width: 34rem;
  color: var(--text-muted);
  margin: 14px 0 0;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  color: var(--gold-bright);
  opacity: 0.7;
  padding: 10px;
}
.scroll-hint:hover { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-hint svg { animation: bob 2.2s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 10vw, 128px); }
.section-alt { background: var(--bg-2); }

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.grid-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.img-col { margin: 0; }
.img-col img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(217, 169, 78, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- Cartes « fausses explications » ---------- */

.myth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 4px 0 24px;
}
.myth-card {
  border: 1px solid rgba(154, 163, 196, 0.18);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.myth-quote {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-style: italic;
  text-decoration: line-through;
  text-decoration-color: rgba(226, 100, 107, 0.65);
  text-decoration-thickness: 1.5px;
}
.myth-truth { margin: 0; color: var(--text); font-size: 0.92rem; }
.myth-truth span { color: var(--gold-bright); font-weight: 600; }

.story-question {
  color: var(--text);
  font-size: 1.04rem;
  margin: 0 0 18px;
}

/* ---------- Journal de bord (frise de l'histoire) ---------- */

.story-steps {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  position: relative;
}
.story-steps::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-dim), rgba(217, 169, 78, 0.05));
}
.story-steps li {
  position: relative;
  padding: 0 0 18px 40px;
}
.story-steps li:last-child { padding-bottom: 0; }
.story-steps li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--bg);
}
.story-steps h3 {
  margin: 0 0 4px;
  color: var(--gold-bright);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}
.story-steps p { margin: 0; color: var(--text-muted); }
.story-steps em { color: var(--text); }

/* ---------- Grille de features ---------- */

.intro-line { margin-bottom: 0; }
.intro-line, .text-col > .prose.intro-line { color: var(--text-muted); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0 26px;
}
.feature-card {
  border: 1px solid rgba(154, 163, 196, 0.18);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: border-color 200ms ease, transform 200ms ease;
}
.feature-card:hover { border-color: var(--gold-dim); transform: translateY(-2px); }
.feature-card svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: 10px; }
.feature-card h3 { margin: 0 0 4px; font-size: 0.95rem; color: var(--text); letter-spacing: 0.03em; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Étapes lignée (stepper) ---------- */

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 24px;
}
.step {
  padding: 14px 16px;
  border-left: 2px solid var(--gold-dim);
  background: linear-gradient(90deg, rgba(217, 169, 78, 0.07), transparent 70%);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.step span {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.step h3 { margin: 0 0 4px; font-size: 0.92rem; color: var(--text); }
.step p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Bandeau de chiffres ---------- */

.stat-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 4px 0 26px;
}
.stat {
  border: 1px solid rgba(217, 169, 78, 0.16);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---------- Roadmap ---------- */

.roadmap-head { max-width: 620px; }
.roadmap-intro { margin-bottom: 0; }

.progress-wrap { margin-top: 30px; }
.progress-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.progress-label strong { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(154, 163, 196, 0.18);
  overflow: hidden;
}
.progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  transition: width 700ms ease;
}

.roadmap-body {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(40px, 6vw, 64px);
}

.milestones {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.milestones::before {
  content: "";
  position: absolute;
  left: 31px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-dim), rgba(217, 169, 78, 0.05));
}
.milestone {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 0 0 40px 0;
}
.milestone:last-child { padding-bottom: 0; }

.milestone-num {
  flex: 0 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--gold-dim);
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold-bright);
  z-index: 1;
  font-variant-numeric: tabular-nums;
}
.milestone h3 { margin: 8px 0 6px; color: var(--gold-bright); }
.milestone p { margin: 0; color: var(--text-muted); max-width: 46ch; }
.milestone strong { color: var(--gold-bright); }

.milestone-sealed .milestone-num {
  border-style: dashed;
  color: var(--text-muted);
}
.milestone-sealed h3 { color: var(--text-muted); letter-spacing: 0.08em; }

.roadmap-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(217, 169, 78, 0.16);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

/* ---------- CTA final ---------- */

.final-cta {
  position: relative;
  isolation: isolate;
  padding-block: clamp(88px, 12vw, 160px);
}
.final-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/img/cta.webp?v=3");
  background-size: cover;
  background-position: 78% center;
}
.final-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 11, 26, 0.92) 0%, rgba(7, 11, 26, 0.72) 46%, rgba(7, 11, 26, 0.15) 78%),
    linear-gradient(180deg, rgba(7, 11, 26, 0.6) 0%, rgba(7, 11, 26, 0.15) 40%, rgba(7, 11, 26, 0.7) 100%);
}
.final-content { max-width: var(--container); }
.final-content .prose { max-width: 36rem; }
.final-content .prose p { color: var(--text); opacity: 0.88; }
.final-content .highlight-line { opacity: 1; }

/* ---------- Aperçus app au survol ---------- */

.preview-stack { position: relative; }
.preview-stack .preview-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 280ms ease;
  border-radius: 14px;
  border: 1px solid rgba(217, 169, 78, 0.16);
}
.preview-stack .preview-img.active { opacity: 1; }
.preview-hint {
  position: absolute;
  left: 0; right: 0;
  bottom: -32px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
@media (hover: none) { .preview-hint { display: none; } }
.feature-card { cursor: pointer; }
.feature-card:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }

/* ---------- Section finale « Ce soir » ---------- */

.final-cinema {
  position: relative;
  isolation: isolate;
  min-height: 92dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: clamp(88px, 12vw, 140px);
}
.cinema-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/img/dawn.webp");
  background-size: cover;
  background-position: center 60%;
}
.cinema-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 60% at 50% 50%, rgba(7, 11, 26, 0) 15%, rgba(7, 11, 26, 0.7) 85%),
    linear-gradient(180deg, rgba(7, 11, 26, 0.85) 0%, rgba(7, 11, 26, 0.1) 45%, rgba(7, 11, 26, 0.5) 100%);
}
.cinema-content { text-align: center; }
.final-cinema .kicker { margin-bottom: 18px; }
.final-cinema h2 {
  font-weight: 500;
  font-size: clamp(1.9rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  max-width: 20ch;
  margin: 0 auto 22px;
  text-shadow: 0 2px 24px rgba(7, 11, 26, 0.8);
}
.final-cinema h2 em {
  font-style: italic;
  white-space: nowrap;
  background: linear-gradient(120deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cinema-sub {
  color: var(--text);
  opacity: 0.88;
  max-width: 32rem;
  margin: 0 auto 34px;
  text-shadow: 0 1px 12px rgba(7, 11, 26, 0.8);
}

/* ---------- FAQ ---------- */

.faq-container { max-width: 680px; }
.faq-item {
  border: 1px solid rgba(154, 163, 196, 0.18);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-right: 48px;
  transition: color 180ms ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 400;
  transition: transform 200ms ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:hover { color: var(--gold-bright); }
.faq-item summary:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: -3px; }
.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(217, 169, 78, 0.12);
  padding-block: 36px;
  background: var(--bg-2);
}
.logo-small { font-size: 0.95rem; }
.site-footer p {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Page du test des Lignées ---------- */

.quiz-main {
  min-height: 100dvh;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
}
.quiz-container { max-width: 720px; }
.quiz-screen h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.quiz-intro-text { max-width: 34rem; }
.quiz-intro-warn { color: var(--gold-bright); font-size: 0.92rem; margin-bottom: 28px; }

.quiz-progress { margin-bottom: 28px; }
.quiz-progress-label {
  font-family: var(--font-display);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.quiz-question { min-height: 2.6em; }
.quiz-answers { display: grid; gap: 12px; margin-top: 18px; }
.quiz-answer {
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(154, 163, 196, 0.25);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}
.quiz-answer:hover { border-color: var(--gold); background: rgba(217, 169, 78, 0.08); transform: translateY(-1px); }
.quiz-answer:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.quiz-answer.selected { border-color: var(--gold); background: rgba(217, 169, 78, 0.12); }

.quiz-back {
  margin-top: 22px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  cursor: pointer;
  padding: 8px 0;
}
.quiz-back:hover { color: var(--gold-bright); }

.quiz-trace { color: var(--text); font-style: italic; margin: 0 0 26px; }
.quiz-result-card {
  border: 1px solid rgba(217, 169, 78, 0.25);
  background: var(--surface);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 26px;
}
.quiz-archive-label {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}
.quiz-result-card h3 { color: var(--gold-bright); margin-bottom: 12px; }
.quiz-result-card .prose { color: var(--text-muted); }
.quiz-ff { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 6px; }
.quiz-ff h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin: 0 0 8px;
  text-transform: uppercase;
}
.quiz-ff ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 0.9rem; }
.quiz-ff li { margin-bottom: 5px; }
.quiz-provisoire { margin-bottom: 28px; }
.quiz-result-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .quiz-ff { grid-template-columns: 1fr; }
  .quiz-result-actions .btn { flex: 1 1 100%; }
}

/* ---------- Portrait + carte de stats (résultat du test) ---------- */

.result-portrait {
  margin: 0 auto 22px;
  max-width: 320px;
}
.result-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(217, 169, 78, 0.3);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
}

.stat-card {
  display: grid;
  gap: 12px;
  margin: 0 0 26px;
  padding: 20px 22px;
  border: 1px solid rgba(217, 169, 78, 0.25);
  background: var(--surface);
  border-radius: 14px;
}
.stat-row {
  display: grid;
  grid-template-columns: 88px 1fr 30px;
  align-items: center;
  gap: 14px;
}
.stat-name {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.stat-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(154, 163, 196, 0.18);
  overflow: hidden;
}
.stat-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--gold);
}
.stat-grade {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
}
/* Couleurs de tier */
.grade-S { color: #F0CE86; }
.stat-fill.grade-S { background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.grade-A { color: #7ED9A2; }
.stat-fill.grade-A { background: #7ED9A2; }
.grade-B { color: #6FC9D6; }
.stat-fill.grade-B { background: #6FC9D6; }
.grade-C { color: #9AA3C4; }
.stat-fill.grade-C { background: #9AA3C4; }
.grade-D { color: #D9A06B; }
.stat-fill.grade-D { background: #D9A06B; }
.grade-E { color: #E2646B; }
.stat-fill.grade-E { background: #E2646B; }

@media (max-width: 640px) {
  .stat-row { grid-template-columns: 74px 1fr 26px; gap: 10px; }
  .stat-name { font-size: 0.82rem; }
}

/* ---------- Écran de confirmation ---------- */

.confirm-overlay[hidden] { display: none; }
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-y: auto;
}
.confirm-card {
  max-width: 460px;
  width: 100%;
  background: linear-gradient(180deg, #101733, var(--bg-2));
  border: 1px solid rgba(217, 169, 78, 0.35);
  border-radius: 16px;
  padding: 30px 28px 28px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
@media (prefers-reduced-motion: no-preference) {
  .confirm-card { animation: confirm-in 320ms ease; }
  @keyframes confirm-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
  }
}
.confirm-img {
  width: 200px;
  height: auto;
  border-radius: 10px;
  border: 1px solid rgba(217, 169, 78, 0.25);
  margin-bottom: 18px;
}
.confirm-card h2 { font-size: 1.6rem; margin-bottom: 10px; }
.confirm-text { color: var(--text-muted); margin: 0 0 12px; }
.confirm-text strong { color: var(--gold-bright); word-break: break-all; }
.confirm-rank { color: var(--text); margin: 0 0 12px; }
.confirm-rank strong { color: var(--gold-bright); }
.confirm-note { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 20px; }
.confirm-cta { margin-bottom: 10px; }

/* ---------- Animations de révélation ---------- */

/* L'état masqué n'existe que si JS est actif (html.js) — sans JS, tout reste visible. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 500ms ease, transform 500ms ease;
  }
  html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-2, .grid-flip { grid-template-columns: 1fr; }
  .grid-flip .img-col { order: 2; }
  .img-col { max-width: 440px; }
  .roadmap-body { grid-template-columns: 1fr; }
  .roadmap-art { max-width: 380px; }
}

@media (max-width: 640px) {
  .myth-grid, .feature-grid, .stepper { grid-template-columns: 1fr; }
  .stat-band { gap: 8px; }
  .stat { padding: 14px 8px; }
  .stat-value { font-size: 1.35rem; }
  .stat-label { font-size: 0.72rem; }
  .hero-bg { background-position: 68% center; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(7, 11, 26, 0.82) 0%, rgba(7, 11, 26, 0.6) 55%, rgba(7, 11, 26, 0.82) 100%);
  }
  .field-row .btn { flex: 1 1 100%; }
  .milestone { gap: 16px; }
  .milestone-num { flex-basis: 52px; height: 52px; font-size: 0.85rem; }
  .milestones::before { left: 25px; }
  .final-bg { background-position: 70% center; }
  .final-scrim {
    background: linear-gradient(180deg, rgba(7, 11, 26, 0.88) 0%, rgba(7, 11, 26, 0.72) 60%, rgba(7, 11, 26, 0.88) 100%);
  }
}
