/* Univers sombre assumé (salle serveur). Questionnaire plein centre, progression horizontale au-dessus,
   illustration réactive à droite de chaque question. Aucun prix avant l'email. Rapport sur papier A4. */
:root {
  --bg: #070B16;
  --glass: rgba(15, 24, 46, .74);
  --glass-2: rgba(26, 38, 70, .6);
  --line: rgba(139, 163, 222, .18);
  --line-strong: rgba(139, 163, 222, .38);
  --ink: #EAF0FF;
  --muted: #8F9CBD;
  --accent: #4F7BFF;
  --accent-hi: #93ABFF;
  --accent-ink: #FFFFFF;
  --amber: #F5B23D;
  --coral: #FF7A59;
  --ok: #34D399;
  --paper: #FFFFFF;
  --paper-ink: #0E1424;
  --paper-muted: #5E6880;
  --paper-line: #E2E6EE;
  --paper-soft: #F3F5FA;
  --paper-accent: #2346E6;
  --rack: #03060D;
  --rack-slot: #121A2D;
  --rack-ink: #AEB9CF;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 0 72px;
  overflow-x: hidden;
}
#net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60vw 50vh at 15% -10%, rgba(79,123,255,.28), transparent 70%), radial-gradient(40vw 40vh at 100% 100%, rgba(245,178,61,.10), transparent 70%); }
.app { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 2px; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--rack); border: 1px solid var(--line-strong); display: grid; align-content: center; gap: 3px; padding: 0 5px; }
.brand-mark i { display: block; height: 3px; border-radius: 1px; background: var(--rack-ink); }
.brand-mark i:nth-child(2) { background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.icon-btn svg { width: 18px; height: 18px; }

/* Accueil */
.home { min-height: calc(100vh - 100px); display: grid; place-content: center; justify-items: center; text-align: center; gap: 44px; padding-block: 10px 70px; }
.home-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 7.4vw, 100px); line-height: .98; letter-spacing: -.045em; margin: 0; max-width: 17ch; text-wrap: balance; }
.rot { display: inline-block; color: var(--amber); }
.cta-wrap { position: relative; border-radius: 999px; padding: 2px; overflow: hidden; isolation: isolate; animation: breathe 2.8s ease-in-out infinite; }
.cta-wrap::before { content: ""; position: absolute; inset: -160%; background: conic-gradient(from 0deg, var(--accent), var(--amber), var(--accent-hi), var(--coral), var(--accent)); animation: spin 3.2s linear infinite; z-index: -1; }
@keyframes breathe { 50% { box-shadow: 0 0 70px -6px rgba(79,123,255,.75), 0 0 140px -30px rgba(245,178,61,.6); } 0%, 100% { box-shadow: 0 0 40px -10px rgba(79,123,255,.55); } }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; border: 0; border-radius: 999px; padding: 14px 14px 14px 38px; background: #0A1022; font-family: var(--font-display); font-weight: 800; font-size: clamp(20px, 2.5vw, 30px); letter-spacing: -.02em; transition: background .3s; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1.2px 1.2px at 20% 30%, #fff, transparent), radial-gradient(1px 1px at 60% 70%, #cfe0ff, transparent), radial-gradient(1.4px 1.4px at 85% 25%, #fff, transparent), radial-gradient(1px 1px at 40% 80%, #fff, transparent), radial-gradient(1.2px 1.2px at 72% 50%, #ffe7b0, transparent); opacity: .5; animation: drift 6s linear infinite; }
@keyframes drift { to { transform: translateX(-30px); } }
.cta:hover { background: #111A36; }
.cta-label { position: relative; }
.cta-go { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px -6px rgba(79,123,255,.9); transition: transform .4s var(--ease), background .3s; }
.cta-go svg { width: 26px; height: 26px; }
.cta:hover .cta-go { transform: translateX(6px) scale(1.06); background: var(--amber); color: #1A1204; }
.cta-sub { margin: -24px 0 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
#warp { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 40; pointer-events: none; }
.hero p { margin: 0; color: var(--muted); font-size: 17px; max-width: 58ch; }

/* Progression horizontale */
.steps { position: relative; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps-in { position: relative; display: grid; grid-template-columns: repeat(13, minmax(30px, 1fr)); min-width: 560px; padding: 4px 0 2px; }
.steps-track, .steps-fill { position: absolute; left: calc(100% / 26); right: calc(100% / 26); top: 10px; height: 2px; border-radius: 2px; background: var(--line); }
.steps-fill { right: auto; width: 0; background: linear-gradient(90deg, var(--accent), var(--amber)); transition: width .6s var(--ease); }
.sb { position: relative; display: grid; justify-items: center; gap: 4px; background: none; border: 0; padding: 0; color: var(--muted); font-size: 11px; }
.sb .d { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); transition: all .35s var(--ease); }
.sb .n { white-space: nowrap; opacity: 0; transform: translateY(-4px); transition: opacity .3s, transform .3s; }
.sb.done { color: var(--ink); }
.sb.done .d { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sb.cur { color: var(--ink); font-weight: 600; }
.sb.cur .d { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 5px rgba(245,178,61,.18); }
.sb.cur .n, .sb:hover .n { opacity: 1; transform: none; }
.sb[disabled] { cursor: default; }

/* Questionnaire */
.stage { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,.7); }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); min-height: 440px; }
.q { padding: 30px 32px 22px; min-width: 0; }
.q-num { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: .08em; margin-bottom: 10px; }
.q h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 10px; text-wrap: balance; }
.q .lead { color: var(--muted); margin: 0 0 24px; max-width: 54ch; font-size: 16px; }
.group-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }

.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choices.one { grid-template-columns: minmax(0, 1fr); }
.choice { position: relative; overflow: hidden; text-align: left; background: var(--glass-2); border: 1.5px solid var(--line); border-radius: 18px; padding: 15px 44px 15px 15px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 2px 12px; align-items: center; transition: border-color .25s, background .25s, transform .3s var(--ease), box-shadow .3s; }
.choice .ic svg, .counter .ic svg, .toggle .ic svg, .config .ic svg { width: 14px; height: 14px; }
.choice .ic { grid-row: span 2; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(79,123,255,.12); color: var(--accent-hi); transition: background .3s, color .3s, transform .4s var(--ease); }
.choice b { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.choice .key { position: absolute; right: 12px; bottom: 10px; font-family: var(--font-mono); font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; transition: opacity .2s; }
.choice:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: 0 16px 32px -16px rgba(79,123,255,.6); }
.choice:hover .ic { transform: rotate(-6deg) scale(1.08); }
.choice[aria-pressed="true"] { border-color: var(--accent); background: rgba(79,123,255,.2); box-shadow: 0 0 0 4px rgba(79,123,255,.14), 0 18px 36px -18px rgba(79,123,255,.85); }
.choice[aria-pressed="true"] .ic { background: var(--accent); color: var(--accent-ink); }
.choice[aria-pressed="true"] .key { opacity: 0; }
.choice .tagline { grid-column: 2; justify-self: start; margin-top: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #1A1204; background: var(--amber); border-radius: 999px; padding: 2px 8px; }
.check { position: absolute; top: 12px; right: 12px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: all .3s var(--ease); }
.check svg { width: 12px; height: 12px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s var(--ease) .05s; }
[aria-pressed="true"] > .check { background: var(--accent); border-color: var(--accent); transform: scale(1.1); }
[aria-pressed="true"] > .check svg { stroke-dashoffset: 0; }
.ripple { position: absolute; border-radius: 50%; background: var(--accent-hi); pointer-events: none; width: 20px; height: 20px; margin: -10px 0 0 -10px; }

.counters { display: grid; gap: 10px; }
.counter { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; background: var(--glass-2); border: 1px solid var(--line); border-radius: 18px; padding: 13px 15px; }
.counter .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(79,123,255,.12); color: var(--accent-hi); }
.counter small { display: block; color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: transparent; font-size: 20px; line-height: 1; transition: background .2s, transform .12s; }
.stepper button:hover { background: rgba(79,123,255,.22); }
.stepper button:active { transform: scale(.88); }
.stepper output { min-width: 42px; text-align: center; font-family: var(--font-display); font-size: 26px; font-weight: 800; display: inline-block; }

.range-row { display: flex; align-items: center; gap: 16px; }
.range-row output { font-family: var(--font-display); font-size: 32px; font-weight: 800; min-width: 120px; text-align: right; letter-spacing: -.02em; }
input[type="range"] { flex: 1; accent-color: var(--accent); height: 30px; min-width: 0; }
.field input { width: 100%; background: var(--glass-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 16px 18px; color: var(--ink); font: inherit; font-size: 18px; transition: border-color .2s, box-shadow .2s; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,123,255,.2); }
.mt { margin-top: 22px; }

.toggles { display: grid; gap: 10px; }
.toggle { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; text-align: left; background: var(--glass-2); border: 1.5px solid var(--line); border-radius: 18px; padding: 13px 15px; transition: border-color .25s, background .25s; }
.toggle .ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(79,123,255,.12); color: var(--accent-hi); transition: all .3s; }
.toggle small { display: block; color: var(--muted); font-size: 13px; }
.toggle[aria-pressed="true"] { border-color: var(--accent); background: rgba(79,123,255,.16); }
.toggle[aria-pressed="true"] .ic { background: var(--accent); color: var(--accent-ink); }
.switch { width: 46px; height: 26px; border-radius: 13px; background: var(--line); position: relative; transition: background .25s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: transform .35s var(--ease), background .25s; }
.toggle[aria-pressed="true"] .switch { background: var(--accent); }
.toggle[aria-pressed="true"] .switch::after { transform: translateX(20px); background: var(--accent-ink); }

/* Illustration réactive */
.scene { position: relative; border-left: 1px solid var(--line); background: radial-gradient(120% 80% at 50% 0%, rgba(79,123,255,.18), transparent 60%), rgba(5,9,20,.35); display: grid; place-items: center; padding: 28px; overflow: hidden; min-width: 0; }
.scene-in { width: 100%; display: grid; justify-items: center; gap: 16px; text-align: center; }
.scene-cap { font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.scene-big { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.orb { position: relative; width: 190px; height: 190px; display: grid; place-items: center; }
.orb::before, .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 26s linear infinite; }
.orb::after { inset: 26px; border-style: solid; border-color: var(--line); animation-duration: 16s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-core { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 0 20px 60px -10px rgba(79,123,255,.8); }
.orb-core svg { width: 46px; height: 46px; }
.orb-sat { position: absolute; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line-strong); color: var(--accent-hi); }
.orb-sat svg { width: 18px; height: 18px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, 46px); gap: 10px; width: 100%; max-width: 340px; justify-content: center; }
.person { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line-strong); }
.person svg { width: 24px; height: 24px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.bars { display: flex; align-items: end; justify-content: center; gap: 28px; height: 220px; }
.bars div { width: 74px; border-radius: 12px 12px 4px 4px; background: var(--glass-2); border: 1px solid var(--line-strong); display: grid; align-content: start; justify-items: center; padding-top: 10px; transition: height .7s var(--ease); font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.bars div.fut { background: linear-gradient(var(--accent), rgba(79,123,255,.3)); border-color: var(--accent); }
.bars-cap { display: flex; justify-content: center; gap: 28px; font-size: 12px; color: var(--muted); }
.bars-cap span { width: 74px; }
.plan-svg { width: 100%; max-width: 330px; }
.ap-pulse { transform-box: fill-box; transform-origin: center; animation: ap 2.6s var(--ease) infinite; }
@keyframes ap { 0% { transform: scale(.3); opacity: .7; } 100% { transform: scale(1); opacity: 0; } }
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 320px; }
.split2 div { border-radius: 18px; border: 1px solid var(--line-strong); padding: 18px 10px; display: grid; justify-items: center; gap: 8px; transition: all .5s var(--ease); }
.split2 b { font-family: var(--font-display); font-size: 30px; }
.disks { display: grid; gap: 6px; width: 200px; }
.disk { height: 30px; border-radius: 8px; background: var(--rack-slot); border: 1px solid var(--line-strong); display: flex; align-items: center; padding: 0 12px; gap: 8px; font-family: var(--font-mono); font-size: 10px; color: var(--rack-ink); }
.disk b { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 1.4s infinite; }
.disk:nth-child(even) b { animation-delay: .5s; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.shield { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.shield .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--line); transition: all .5s var(--ease); }
.shield .ring.on { border-color: var(--accent); box-shadow: 0 0 30px -6px var(--accent); }
.shield svg { width: 64px; height: 64px; color: var(--accent-hi); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 300px; }
.chip { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--accent); font-size: 13px; }
.chip svg { width: 16px; height: 16px; color: var(--accent-hi); }
.gear { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gear div { width: 82px; height: 82px; border-radius: 20px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--muted); opacity: .4; transition: all .45s var(--ease); }
.gear div.on { opacity: 1; color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 16px 40px -14px rgba(79,123,255,.9); }
.gear svg { width: 34px; height: 34px; }
.weeks { display: grid; grid-template-columns: repeat(6, 34px); gap: 6px; }
.weeks i { height: 34px; border-radius: 8px; background: var(--glass-2); border: 1px solid var(--line); transition: all .4s var(--ease); }
.weeks i.on { background: var(--accent); border-color: var(--accent); }
.meter { display: grid; gap: 8px; width: 220px; }
.meter i { height: 22px; border-radius: 8px; background: var(--glass-2); border: 1px solid var(--line); transition: all .45s var(--ease); }
.meter i.on { background: linear-gradient(90deg, var(--accent), var(--amber)); border-color: transparent; }

.nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 32px 22px; border-top: 1px solid var(--line); }
.btn { position: relative; overflow: hidden; border-radius: 14px; padding: 13px 22px; font-weight: 600; border: 1px solid var(--line-strong); background: transparent; transition: transform .2s var(--ease), box-shadow .3s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 12px 30px -10px rgba(79,123,255,.8); }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn.primary:hover::after { transform: translateX(120%); }
.btn.amber { background: var(--amber); color: #1A1204; border-color: var(--amber); box-shadow: 0 12px 30px -10px rgba(245,178,61,.7); }
.btn.big { padding: 17px 26px; font-size: 17px; border-radius: 16px; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.kbd { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* Analyse */
.analyse { min-height: 70vh; display: grid; place-items: center; padding-block: 40px; }
.analyse-card { width: min(520px, 100%); text-align: center; }
.ring-wrap { width: 150px; height: 150px; margin: 0 auto 22px; position: relative; }
.ring-wrap svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-wrap circle { fill: none; stroke-width: 6; }
.ring-wrap .track { stroke: var(--line); }
.ring-wrap .prog { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 440; stroke-dashoffset: 440; }
.ring-wrap .pct { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.analyse h2 { font-family: var(--font-display); font-size: 28px; margin: 0 0 18px; letter-spacing: -.02em; }
.checks { list-style: none; padding: 0; margin: 0 auto; display: grid; gap: 8px; text-align: left; max-width: 400px; }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--muted); opacity: .35; transition: opacity .3s, color .3s; font-size: 14px; }
.checks li.on { opacity: 1; color: var(--ink); }
.checks li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: all .3s; }
.checks li.on i { background: var(--ok); border-color: var(--ok); }
.checks li.on i::after { content: ""; width: 5px; height: 9px; border: solid #04120C; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

/* Écran email */
.gate { position: relative; min-height: 82vh; display: grid; place-items: center; padding-block: 30px; }
.ghosts { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: 24px; filter: blur(5px); opacity: .5; pointer-events: none; overflow: hidden; }
.ghost { width: 240px; aspect-ratio: 210 / 297; background: var(--paper); border-radius: 6px; padding: 22px; display: grid; align-content: start; gap: 10px; flex: none; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); }
.ghost:nth-child(1) { transform: rotate(-7deg) translateY(30px); }
.ghost:nth-child(3) { transform: rotate(6deg) translateY(40px); }
.ghost i { display: block; height: 10px; border-radius: 3px; background: var(--paper-line); }
.ghost i.h { height: 26px; width: 70%; background: var(--paper-ink); }
.ghost i.a { height: 60px; background: var(--paper-accent); }
.gate-card { position: relative; width: min(640px, 100%); background: var(--glass); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border: 1px solid var(--line-strong); border-radius: 30px; padding: 36px; box-shadow: 0 50px 120px -30px rgba(0,0,0,.85); }
.gate-card .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; color: var(--ok); letter-spacing: .06em; }
.gate-card .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink 1.4s infinite; }
.gate-card h2 { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 44px); line-height: 1.04; letter-spacing: -.03em; margin: 12px 0 10px; text-wrap: balance; }
.gate-card > p { color: var(--muted); margin: 0 0 22px; font-size: 16px; }
.gets { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gets li { display: flex; gap: 10px; align-items: center; font-size: 14px; background: var(--glass-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.gets svg { width: 20px; height: 20px; color: var(--amber); }
.form { display: grid; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl { position: relative; }
.fl input { width: 100%; background: var(--glass-2); border: 1.5px solid var(--line); border-radius: 16px; padding: 24px 16px 9px; color: var(--ink); font: inherit; font-size: 17px; transition: border-color .2s, box-shadow .2s; }
.fl label { position: absolute; left: 17px; top: 17px; color: var(--muted); font-size: 16px; pointer-events: none; transition: all .2s var(--ease); }
.fl input:focus, .fl input:not(:placeholder-shown) { outline: none; }
.fl input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(79,123,255,.2); }
.fl input:focus + label, .fl input:not(:placeholder-shown) + label { top: 7px; font-size: 11.5px; color: var(--accent-hi); letter-spacing: .02em; }
.fl.valid input { border-color: rgba(52,211,153,.6); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.err { color: var(--coral); font-size: 13.5px; min-height: 1.2em; }
.privacy { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.privacy svg { width: 14px; height: 14px; }

/* Résultat */
.res-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; padding-block: 10px 22px; }
.res-head h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 46px); line-height: 1.04; letter-spacing: -.03em; margin: 6px 0 0; text-wrap: balance; }
.res-head .eyebrow { font-family: var(--font-mono); font-size: 12px; color: var(--amber); letter-spacing: .08em; text-transform: uppercase; }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 20px; padding: 18px; min-width: 0; }
.kpi:first-child { background: var(--accent); border-color: var(--accent); }
.kpi span { display: block; font-size: 13px; color: var(--muted); }
.kpi:first-child span { color: rgba(255,255,255,.8); }
.kpi b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.duo { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 12px; margin-bottom: 34px; }
.card { background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 22px; padding: 20px; min-width: 0; }
.card h3 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; display: flex; justify-content: space-between; gap: 8px; }
.config { display: grid; gap: 0; }
.config div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.config div:last-child { border-bottom: 0; }
.config .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(79,123,255,.14); color: var(--accent-hi); }
.config small { display: block; color: var(--muted); font-size: 12.5px; }
.rack { background: var(--rack); border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; display: grid; grid-template-columns: 20px minmax(0, 1fr) 20px; gap: 0 6px; }
.rack-col { display: grid; gap: 3px; }
.rack-num { font-family: var(--font-mono); font-size: 9px; color: var(--rack-ink); opacity: .5; height: 17px; display: flex; align-items: center; justify-content: center; }
.units { display: grid; gap: 3px; }
.u { height: 17px; border-radius: 3px; background: var(--rack-slot); opacity: .6; }
.dev { border-radius: 3px; display: flex; align-items: center; gap: 6px; padding: 0 8px; font-family: var(--font-mono); font-size: 10px; color: var(--rack-ink); background: var(--rack-slot); border-left: 3px solid var(--c, var(--accent)); overflow: hidden; white-space: nowrap; animation: slotIn .6s var(--ease) both; }
.dev .leds { margin-left: auto; display: flex; gap: 3px; }
.dev .leds b { width: 4px; height: 4px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok); animation: blink 1.4s infinite; }
.dev .leds b:nth-child(2) { animation-delay: .35s; background: var(--amber); box-shadow: 0 0 6px var(--amber); }
@keyframes slotIn { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 55%, 100% { opacity: 1; } 65% { opacity: .15; } }
.sec-title { font-family: var(--font-display); font-size: 26px; letter-spacing: -.02em; margin: 0 0 16px; text-align: center; }
.pages { display: grid; gap: 26px; max-width: 780px; margin: 0 auto 40px; }
.paid { background: linear-gradient(135deg, rgba(245,178,61,.14), rgba(79,123,255,.12)); border: 1px solid rgba(245,178,61,.4); border-radius: 26px; padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; align-items: center; margin-bottom: 30px; }
.paid h3 { font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.1; }
.paid p { color: var(--muted); margin: 0 0 14px; }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -.03em; margin-bottom: 12px; }
.price-big small { font-family: var(--font-mono); font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.offer { display: grid; gap: 7px; margin: 0 0 18px; padding: 0; list-style: none; font-size: 14px; }
.offer li { display: flex; gap: 9px; }
.offer li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-top: 8px; flex: none; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thumbs .sheet { pointer-events: none; overflow: hidden; }

/* Feuille A4 */
.sheet { position: relative; background: var(--paper); color: var(--paper-ink); width: 100%; aspect-ratio: 210 / 297; container-type: inline-size; border-radius: 6px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.75); }
.sheet-body { min-height: 100%; padding: 7cqw 7.5cqw 4cqw; font-size: 1.95cqw; line-height: 1.5; display: flex; flex-direction: column; transition: filter .9s var(--ease); }
.sheet.locked .sheet-body { filter: blur(3px); user-select: none; }
.sheet-foot { margin-top: auto; padding-top: 1.2em; border-top: 1px solid var(--paper-line); display: flex; justify-content: space-between; gap: 1em; font-family: var(--font-mono); font-size: .72em; color: var(--paper-muted); }
.lockmark { position: absolute; inset: 0; display: grid; place-items: center; }
.lockmark span { width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--paper-ink); color: var(--amber); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.5); }
.lockmark svg { width: 45%; height: 45%; }
.s-eyebrow { font-family: var(--font-mono); font-size: .72em; letter-spacing: .12em; text-transform: uppercase; color: var(--paper-accent); }
.s-h { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: .3em 0 .9em; font-size: 2.3em; }
.s-h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25em; margin: 1.5em 0 .6em; letter-spacing: -.01em; }
.s-muted { color: var(--paper-muted); }
.sheet-body.cover { padding: 0 0 4cqw; }
.cover-band { background: var(--paper-ink); color: #fff; padding: 7cqw 7.5cqw 9cqw; position: relative; overflow: hidden; border-radius: 6px 6px 0 0; }
.cover-band::after { content: ""; position: absolute; right: -4cqw; top: 6cqw; width: 30cqw; height: 40cqw; background: repeating-linear-gradient(0deg, rgba(255,255,255,.09) 0 2.4cqw, transparent 2.4cqw 3.2cqw); border-left: 3px solid var(--paper-accent); }
.cover-brand { display: flex; align-items: center; gap: .6em; font-family: var(--font-display); font-weight: 800; font-size: 1.3em; }
.cover-title { font-family: var(--font-display); font-weight: 800; font-size: 3.6em; line-height: .98; letter-spacing: -.04em; margin: 2.2em 0 .4em; max-width: 8.5em; position: relative; z-index: 1; }
.cover-sub { font-size: 1.2em; opacity: .75; position: relative; z-index: 1; }
.cover-main { padding: 6cqw 7.5cqw 0; display: grid; gap: 2.2em; }
.cover-main + .sheet-foot { margin-left: 7.5cqw; margin-right: 7.5cqw; }
.cover-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2em 2em; }
.cover-meta div { border-top: 2px solid var(--paper-ink); padding-top: .5em; }
.lbl { display: block; font-family: var(--font-mono); font-size: .7em; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); }
.cover-fig { background: var(--paper-soft); border-radius: .6em; padding: 1.4em 1.6em; display: grid; gap: .3em; }
.cover-fig b { font-family: var(--font-display); font-size: 3em; letter-spacing: -.04em; line-height: 1; color: var(--paper-accent); font-variant-numeric: tabular-nums; }
.kpis4 { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; }
.kpis4 div { background: var(--paper-soft); border-radius: .5em; padding: .9em 1em; }
.kpis4 div:first-child { background: var(--paper-accent); color: #fff; }
.kpis4 div:first-child .lbl { color: rgba(255,255,255,.75); }
.kpis4 b { display: block; font-family: var(--font-display); font-size: 1.7em; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: .2em; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2em; align-items: center; }
.donut-legend { display: grid; gap: .55em; font-size: .9em; }
.donut-legend div { display: grid; grid-template-columns: .9em minmax(0, 1fr) auto; gap: .6em; align-items: center; }
.donut-legend i { width: .9em; height: .9em; border-radius: .2em; }
.donut-legend b { font-family: var(--font-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.reco { display: grid; gap: .55em; margin: 0; padding: 0; list-style: none; }
.reco li { display: grid; grid-template-columns: 1.6em minmax(0, 1fr); gap: .3em; }
.reco li::before { content: "✓"; color: var(--paper-accent); font-weight: 700; }
.stable { width: 100%; border-collapse: collapse; font-size: .86em; }
.stable th { text-align: left; font-family: var(--font-mono); font-weight: 500; font-size: .78em; letter-spacing: .07em; text-transform: uppercase; color: var(--paper-muted); padding: .5em .4em; border-bottom: 1.5px solid var(--paper-ink); }
.stable td { padding: .45em .4em; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.stable .num { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stable tr.cat td { font-family: var(--font-display); font-weight: 700; padding-top: 1em; border-bottom: none; color: var(--paper-accent); }
.stable tr.tot td { font-weight: 700; border-top: 1.5px solid var(--paper-ink); border-bottom: none; }
.stable .why { display: block; color: var(--paper-muted); font-size: .88em; }
.paper-rack { background: var(--rack); border-radius: .5em; padding: .8em; display: grid; gap: .25em; }
.paper-rack div { height: 1.6em; border-radius: .2em; background: var(--rack-slot); border-left: .3em solid var(--c, transparent); color: var(--rack-ink); font-family: var(--font-mono); font-size: .75em; display: flex; align-items: center; padding: 0 .8em; white-space: nowrap; overflow: hidden; }
.kv { display: grid; gap: .8em; }
.plan { display: grid; gap: .5em; font-size: .9em; }
.plan-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 1em; align-items: center; }
.plan-track { position: relative; height: 1.4em; background: var(--paper-soft); border-radius: .3em; }
.plan-track i { position: absolute; top: 0; bottom: 0; border-radius: .3em; background: var(--paper-accent); }
.sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; padding-top: 2em; }
.sign div { border-top: 1px solid var(--paper-ink); padding-top: .5em; font-size: .85em; color: var(--paper-muted); height: 5em; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent a { color: var(--accent-hi); }
.legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding-block: 34px 0; font-size: 12.5px; color: var(--muted); }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--ink); }
.btn { color: inherit; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 22px); transform: translate(-50%, 30px); opacity: 0; z-index: 20; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; max-width: min(560px, calc(100vw - 32px)); box-shadow: 0 20px 50px -10px rgba(0,0,0,.6); transition: transform .4s var(--ease), opacity .4s; pointer-events: none; }
.toast.on { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .stage-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .scene { border-left: 0; border-bottom: 1px solid var(--line); order: -1; padding: 20px; min-height: 230px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .paid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .choices { grid-template-columns: minmax(0, 1fr); }
  .q { padding: 22px 18px 10px; }
  .nav { padding: 14px 18px 18px; }
  .kbd, .choice .key { display: none; }
  .gate-card { padding: 24px 18px; border-radius: 24px; }
  .gets, .row2 { grid-template-columns: minmax(0, 1fr); }
  .ghost { width: 170px; }
  .thumbs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .scene .orb { transform: scale(.75); }
}
