/* ============================================================
   Franco2Canada — design system "Bleu ardoise institutionnel + rouge drapeau"
   (palette volontairement proche de canada.ca, sans être identique)
   Généré depuis design-system/capcanada/MASTER.md (ui-ux-pro-max)
   Style : Minimal & Direct · Pattern : Scroll-Triggered Storytelling
   ============================================================ */

:root {
  /* Couleurs — famille canada.ca (bleu ardoise institutionnel + rouge drapeau),
     volontairement proches mais non identiques à la charte officielle. */
  --primary: #26374A;         /* bleu ardoise (proche du bandeau canada.ca) */
  --on-primary: #FFFFFF;
  --secondary: #284162;       /* bleu lien institutionnel */
  --accent: #B8323A;          /* rouge drapeau assagi — texte/CTA (WCAG ok) */
  --accent-strong: #98262D;
  --gold-bright: #F0888D;     /* rouge clair décoratif sur fond sombre */
  --background: #F7F9FB;
  --surface: #FFFFFF;
  --foreground: #1A2530;
  --text-muted: #4B5C6B;
  --text-faint: #64748B;
  --muted: #E8ECF1;
  --border: #E2E8F0;
  --destructive: #B91C1C;
  --success: #15803D;
  --success-soft: #EAF6EE;
  --warn-soft: #FBF3E2;
  --warn-text: #854D0E;
  --info-soft: #EEF2FA;

  /* Sombre (héro, chapitre récit, CTA final) */
  --dark-bg: #1F3145;
  --dark-bg-2: #2A4562;
  --dark-text: #E2E8F0;
  --dark-muted: #9DB0C2;
  --dark-border: rgba(157, 176, 194, .2);

  /* Typo */
  --font-display: "Satoshi", "Segoe UI", system-ui, sans-serif;
  --font-body: "General Sans", "Segoe UI", system-ui, sans-serif;

  /* Espacements (densité 3/10 — aéré) */
  --space-section: clamp(88px, 12vw, 148px);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(2, 6, 23, .06);
  --shadow-md: 0 2px 6px rgba(2, 6, 23, .05), 0 16px 40px rgba(2, 6, 23, .08);
  --shadow-lg: 0 4px 12px rgba(2, 6, 23, .07), 0 32px 80px rgba(2, 6, 23, .14);
  --ease: cubic-bezier(.22, .8, .32, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }
::selection { background: #26374A; color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--primary);
  line-height: 1.12;
  letter-spacing: -0.005em;
  font-weight: 700;
  /* Principe typographique du site : grandes capitales initiales + petites capitales */
  font-variant-caps: small-caps;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 900; }
h3 { font-size: 1.18rem; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-muted); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.on-dark .eyebrow { color: var(--gold-bright); }
.on-dark .eyebrow::before { background: var(--gold-bright); }

/* Barre de progression de lecture (pattern storytelling) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-bright), var(--accent));
  z-index: 90;
}

/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; text-align: center; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  font-variant-caps: small-caps; letter-spacing: .015em;
  padding: 16px 30px; border-radius: 12px;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), color .18s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 6px rgba(184, 50, 58, .28), 0 14px 34px rgba(184, 50, 58, .22);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(184, 50, 58, .3), 0 20px 44px rgba(184, 50, 58, .26); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid rgba(38, 55, 74, .4); }
.btn-secondary:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.on-dark .btn-secondary { color: var(--dark-text); border-color: rgba(226, 232, 240, .4); }
.on-dark .btn-secondary:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: #fff; }
.btn-small { padding: 11px 20px; font-size: .93rem; border-radius: 10px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 80;
  background: rgba(31, 49, 69, .85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, .14);
}
.site-header.header-light {
  background: rgba(248, 250, 252, .85);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.26rem;
  letter-spacing: 0; color: #fff; text-decoration: none;
  font-variant-caps: small-caps;
}
.header-light .logo { color: var(--primary); }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #2A4562, #1F3145);
  border: 1px solid rgba(240, 136, 141, .5);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 20px; height: 20px; }
.logo .cap { color: var(--gold-bright); }
.header-light .logo .cap { color: var(--accent); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { font-family: var(--font-display); color: var(--dark-text); font-weight: 500; font-size: .98rem; font-variant-caps: small-caps; }
.header-light .nav-links a { color: var(--primary); }
.nav-links a:hover { color: var(--gold-bright); text-decoration: none; }
.header-light .nav-links a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-links a.hide-mobile { display: none; } }

/* ---------- Héro (sombre) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(40, 65, 98, .6), transparent 62%),
    radial-gradient(760px 420px at 12% 108%, rgba(240, 136, 141, .13), transparent 60%),
    linear-gradient(180deg, #1F3145 0%, #24405C 100%);
  color: var(--dark-text);
  padding: clamp(84px, 11vw, 138px) 0 clamp(170px, 19vw, 220px);
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.028 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(226, 232, 240, .07); border: 1px solid var(--dark-border);
  color: var(--dark-text); border-radius: 999px; padding: 8px 18px;
  font-size: .86rem; font-weight: 500; margin-bottom: 30px;
}
.hero-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 0 4px rgba(240, 136, 141, .18); flex: none; }
.hero-chip strong { color: #fff; font-weight: 600; }
.hero h1 { color: #fff; max-width: 880px; margin: 0 auto 24px; }
.hero h1 .accent {
  color: var(--gold-bright);
  background: linear-gradient(0deg, rgba(240, 136, 141, .16), rgba(240, 136, 141, .16)) no-repeat 0 78% / 100% 26%;
  padding: 0 2px;
}
.hero .lead { color: var(--dark-muted); max-width: 640px; margin: 0 auto 38px; }
.hero .lead strong { color: var(--dark-text); font-weight: 600; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note { font-size: .86rem; color: var(--dark-muted); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 15px; height: 15px; color: var(--gold-bright); }

/* Cartes stats en chevauchement héro → section claire.
   Le bloc est HORS de la section héro (flux normal + marge négative) :
   quelle que soit la hauteur des cartes, rien ne peut être coupé. */
.hero-stats { position: relative; z-index: 2; margin-top: clamp(-160px, -13vw, -100px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-lg); text-align: left;
}
.stat-card .num {
  font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.45rem);
  font-weight: 900; color: var(--primary); line-height: 1.1; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat-card .num .u { color: var(--accent); }
.stat-card .label { font-size: .92rem; color: var(--text-muted); margin-top: 8px; }
.stat-card .label strong { color: var(--foreground); }
.stats-source { text-align: center; font-size: .82rem; color: var(--text-faint); margin-top: 22px; }

/* ---------- Sections / chapitres ---------- */
section.block { padding: var(--space-section) 0; }
section.block.tight { padding-top: calc(var(--space-section) * .55); }
.section-head { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: 16px; }
.chapter-tag {
  font-family: var(--font-display); font-variant-numeric: tabular-nums;
  color: var(--text-faint); font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  display: block; margin-bottom: 10px;
}

/* ---------- Douleurs ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .pain-grid { grid-template-columns: 1fr; } }
.pain-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.pain-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #D8DEE7; }
.pain-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, #F9E2E3, #FDF0F0);
  border: 1px solid #F0CFD1;
  display: flex; align-items: center; justify-content: center;
}
.pain-icon svg { width: 22px; height: 22px; color: var(--accent); }
.pain-card h3 { margin-bottom: 10px; }
.pain-card p { font-size: .95rem; color: var(--text-muted); }

/* ---------- Récit (chapitre sombre + timeline) ---------- */
.story-band {
  background:
    radial-gradient(900px 460px at 88% 0%, rgba(40, 65, 98, .55), transparent 60%),
    linear-gradient(180deg, #1F3145, #233D58);
  color: var(--dark-text);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(40px, 6vw, 76px);
  box-shadow: var(--shadow-lg);
}
.story-band h2 { color: #fff; }
.story-band .lead { color: var(--dark-muted); }
.story-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.story-copy p { color: var(--dark-muted); margin-top: 16px; font-size: .99rem; }
.story-copy p strong { color: #fff; font-weight: 600; }
.story-sig { margin-top: 26px; font-family: var(--font-display); font-weight: 700; color: #fff; }
.timeline { border-left: 2px solid rgba(240, 136, 141, .35); padding-left: 26px; display: grid; gap: 26px; }
.timeline .t-item { position: relative; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -33px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-bright); box-shadow: 0 0 0 5px rgba(240, 136, 141, .16);
}
.t-head { font-family: var(--font-display); font-variant-caps: small-caps; font-weight: 700; color: #fff; font-size: 1.05rem; margin-bottom: 20px; }
.timeline .t-year { font-family: var(--font-display); font-weight: 700; color: var(--gold-bright); font-size: .86rem; letter-spacing: .08em; }
.timeline .t-title { color: #fff; font-weight: 600; margin: 3px 0 4px; font-size: .99rem; }
.timeline .t-text { color: var(--dark-muted); font-size: .9rem; }

/* ---------- Étapes solution ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 34px 28px 30px; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-card.current { border-color: rgba(184, 50, 58, .45); box-shadow: 0 0 0 1px rgba(184, 50, 58, .25), var(--shadow-md); }
.step-num {
  font-family: var(--font-display); font-weight: 900; font-size: 2.6rem;
  color: transparent; -webkit-text-stroke: 1.5px rgba(38, 55, 74, .3);
  line-height: 1; margin-bottom: 16px; font-variant-numeric: tabular-nums;
}
.step-card.current .step-num { -webkit-text-stroke: 1.5px var(--accent); }
.step-card h3 { margin-bottom: 10px; }
.step-card p { font-size: .95rem; color: var(--text-muted); }
.badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.badge-live { background: var(--success-soft); color: var(--success); }
.badge-soon { background: var(--warn-soft); color: var(--warn-text); }

/* ---------- CTA final / waitlist ---------- */
.waitlist-box {
  position: relative; overflow: hidden;
  background:
    radial-gradient(720px 380px at 85% -20%, rgba(240, 136, 141, .16), transparent 60%),
    linear-gradient(180deg, #1F3145, #26425F);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(44px, 6vw, 80px);
  text-align: center; color: var(--dark-text); box-shadow: var(--shadow-lg);
}
.waitlist-box h2 { color: #fff; margin-bottom: 14px; }
.waitlist-box > p { color: var(--dark-muted); max-width: 560px; margin: 0 auto 30px; }
.waitlist-box > p strong { color: var(--gold-bright); font-weight: 600; }
.waitlist-form { display: flex; gap: 12px; max-width: 540px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.waitlist-form input[type="email"] {
  flex: 1 1 260px; padding: 16px 20px; border-radius: 12px;
  border: 1.5px solid rgba(148, 163, 184, .3); background: rgba(15, 26, 38, .4);
  color: #fff; font-size: 1rem; font-family: var(--font-body);
  transition: border-color .18s var(--ease);
}
.waitlist-form input[type="email"]::placeholder { color: #7C8BA1; }
.waitlist-form input[type="email"]:focus { outline: none; border-color: var(--gold-bright); }
.form-feedback { margin-top: 16px; font-weight: 600; font-size: .95rem; }
.form-feedback.ok { color: #6FCF97; }
.form-feedback.err { color: #F1998E; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* Formulaire waitlist sur fond clair (page simulateur) */
.light-form .waitlist-form input[type="email"] {
  background: var(--surface); color: var(--foreground); border-color: var(--border);
}
.light-form .form-feedback.ok { color: var(--success); }
.light-form .form-feedback.err { color: var(--destructive); }

/* ---------- Lexique ---------- */
abbr[title] {
  text-decoration: underline dotted;
  text-decoration-color: rgba(184, 50, 58, .5);
  text-underline-offset: 3px;
  cursor: help;
}
.lex-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .lex-grid { grid-template-columns: 1fr; } }
.lex-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 18px 22px; box-shadow: var(--shadow-sm);
}
.lex-term { font-family: var(--font-display); font-variant-caps: small-caps; font-weight: 700; color: var(--accent); font-size: 1.05rem; }
.lex-item p { font-size: .9rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 22px 26px; box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: rgba(184, 50, 58, .4); }
.faq summary {
  font-family: var(--font-display); font-weight: 700; cursor: pointer;
  color: var(--primary); list-style: none; position: relative; padding-right: 34px;
  font-size: 1.05rem; font-variant-caps: small-caps;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-54%);
  font-size: 1.5rem; color: var(--accent); font-weight: 400;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; color: var(--text-muted); font-size: .96rem; }

/* ---------- Contact ---------- */
.contact-form { display: grid; gap: 14px; max-width: 620px; margin: 0 auto; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .contact-form .field-row { grid-template-columns: 1fr; } }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%; padding: 15px 18px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font-body); background: var(--surface); color: var(--foreground);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 50, 58, .14);
}
.contact-form .btn { justify-self: start; }
@media (max-width: 560px) { .contact-form .btn { justify-self: stretch; } }
.contact-alt { text-align: center; color: var(--text-muted); font-size: .92rem; margin-top: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-muted); padding: 60px 0 44px; margin-top: var(--space-section); }
.site-footer .disclaimer { font-size: .8rem; max-width: 880px; margin: 0 auto 22px; text-align: center; color: #7C8BA1; }
.site-footer .foot-meta { text-align: center; font-size: .86rem; }
.site-footer a { color: var(--dark-text); }

/* ================== SIMULATEUR ================== */
.sim-main { padding: 56px 0 100px; background: var(--background); }
.sim-shell { max-width: 700px; margin: 0 auto; }
.sim-intro { text-align: center; margin-bottom: 36px; }
.sim-intro h1 { font-size: clamp(1.85rem, 3.8vw, 2.6rem); margin-bottom: 12px; }
.sim-intro p { color: var(--text-muted); }

.progress { height: 6px; background: var(--muted); border-radius: 999px; overflow: hidden; margin-bottom: 28px; }
.progress .bar {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-bright), var(--accent));
  transition: width .35s var(--ease);
}
.progress-label { font-size: .82rem; color: var(--text-faint); text-align: right; margin: -22px 0 20px; font-variant-numeric: tabular-nums; }

.sim-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(28px, 4.5vw, 44px); box-shadow: var(--shadow-md);
}
.sim-step h2 { font-size: 1.45rem; margin-bottom: 8px; }
.sim-step .step-hint { color: var(--text-muted); font-size: .94rem; margin-bottom: 26px; }

.field { margin-bottom: 22px; }
.field > label { display: block; font-family: var(--font-display); font-weight: 600; margin-bottom: 9px; font-size: .98rem; color: var(--primary); }
.field .sub { font-family: var(--font-body); font-weight: 400; color: var(--text-faint); font-size: .85rem; }
.field select, .field input[type="number"] {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: 1rem; font-family: var(--font-body); background: var(--background); color: var(--foreground);
  transition: border-color .18s var(--ease);
}
.field select:focus, .field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(184, 50, 58, .14); }

.choices { display: grid; gap: 12px; }
.choices.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .choices.cols-2 { grid-template-columns: 1fr; } }
.choice {
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--background);
  padding: 15px 18px; font-family: var(--font-body); font-size: .97rem; text-align: left;
  transition: border-color .16s var(--ease), background .16s var(--ease), transform .16s var(--ease);
  color: var(--foreground);
}
.choice:hover { border-color: var(--secondary); transform: translateY(-1px); }
.choice.selected {
  border-color: var(--accent); background: #FDF0F0; font-weight: 600;
  box-shadow: 0 0 0 1px rgba(184, 50, 58, .3);
}
.choice .choice-sub { display: block; font-size: .82rem; color: var(--text-faint); font-weight: 400; margin-top: 3px; }

.detail-toggle {
  background: none; border: none; color: var(--accent); font-weight: 600;
  font-size: .89rem; font-family: var(--font-body); padding: 0; margin: -6px 0 18px;
}
.detail-toggle:hover { text-decoration: underline; }
.abilities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .abilities-grid { grid-template-columns: 1fr; } }

.sim-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; }
.sim-nav .btn-back {
  background: none; border: none; color: var(--text-muted); font-weight: 600;
  font-size: .95rem; font-family: var(--font-display);
  padding: 10px 6px; border-radius: 8px;
}
.sim-nav .btn-back:hover { color: var(--primary); }

.callout { border-radius: var(--radius-sm); padding: 15px 18px; font-size: .91rem; margin-bottom: 20px; line-height: 1.55; }
.callout.info { background: var(--info-soft); color: #1E3A5F; border: 1px solid #DCE5F3; }
.callout.warn { background: var(--warn-soft); color: var(--warn-text); border: 1px solid #EFDFBB; }

/* ---------- Résultat ---------- */
.result-hero { text-align: center; padding: 10px 0 6px; }
.result-hero .score-label {
  font-family: var(--font-display); font-size: .82rem; color: var(--text-faint);
  font-weight: 700; text-transform: uppercase; letter-spacing: .16em;
}
.result-hero .score {
  font-family: var(--font-display); font-size: clamp(3.8rem, 10vw, 5.2rem);
  font-weight: 900; color: var(--primary); line-height: 1.05; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.result-hero .score .of { font-size: 1.15rem; color: var(--text-faint); font-weight: 600; letter-spacing: 0; }
.verdict {
  display: inline-block; padding: 9px 20px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .96rem; margin-top: 14px;
}
.verdict.good { background: var(--success-soft); color: var(--success); }
.verdict.mid { background: var(--warn-soft); color: var(--warn-text); }
.verdict.low { background: #FBEAE8; color: var(--destructive); }
.result-summary { max-width: 560px; margin: 18px auto 0; color: var(--text-muted); }
.result-summary strong { color: var(--foreground); }

.result-section { margin-top: 42px; }
.result-section > h3 { margin-bottom: 16px; font-size: 1.18rem; }

.draw-list { display: grid; gap: 9px; }
.draw-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 13px 17px;
  font-size: .93rem; background: var(--background);
}
.draw-row .d-date { font-weight: 600; font-family: var(--font-display); }
.draw-row .d-meta { color: var(--text-faint); font-size: .84rem; font-variant-numeric: tabular-nums; }
.draw-row .d-flag { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.draw-row.pass { border-color: #CBE5D4; background: var(--success-soft); }
.draw-row.pass .d-flag { color: var(--success); }
.draw-row.fail .d-flag { color: var(--destructive); }

.tips { display: grid; gap: 14px; }
.tip-card {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm); padding: 20px 22px; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.tip-card .gain {
  font-family: var(--font-display); font-weight: 900; color: var(--accent);
  white-space: nowrap; font-size: 1.15rem; font-variant-numeric: tabular-nums;
}
.tip-card h4 { font-size: 1rem; color: var(--primary); }
.tip-card p { font-size: .92rem; color: var(--text-muted); margin-top: 4px; }

.breakdown table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.breakdown td { padding: 10px 6px; border-bottom: 1px solid var(--border); }
.breakdown td:last-child { text-align: right; font-weight: 700; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.breakdown tr.total td { border-bottom: none; font-size: 1.05rem; color: var(--primary); font-weight: 900; }
.breakdown summary { font-family: var(--font-display); }
.breakdown-note { font-size: .82rem; color: var(--text-faint); margin-top: 12px; }

.result-cta {
  position: relative; overflow: hidden; margin-top: 44px;
  background:
    radial-gradient(560px 300px at 85% -20%, rgba(240, 136, 141, .16), transparent 60%),
    linear-gradient(180deg, #1F3145, #26425F);
  border-radius: var(--radius); padding: clamp(28px, 4.5vw, 44px);
  text-align: center; color: var(--dark-text);
}
.result-cta h3 { color: #fff; font-size: 1.35rem; margin-bottom: 10px; }
.result-cta p { color: var(--dark-muted); font-size: .95rem; max-width: 500px; margin: 0 auto 22px; }
.result-cta p strong { color: var(--gold-bright); }

.restart-row { text-align: center; margin-top: 30px; }
.small-print { font-size: .8rem; color: var(--text-faint); text-align: center; margin-top: 26px; }

/* ---------- Accessibilité mouvement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pain-card, .step-card, .choice { transition: none; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
