/* Module VSST — v2. Mobile d'abord, Marianne + Spectral, couleurs de l'État. */

@font-face { font-family: 'Marianne'; font-weight: 400; font-display: swap; src: url('assets/fonts/Marianne-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Marianne'; font-weight: 500; font-display: swap; src: url('assets/fonts/Marianne-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Marianne'; font-weight: 700; font-display: swap; src: url('assets/fonts/Marianne-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Spectral'; font-weight: 400; font-display: swap; src: url('assets/fonts/Spectral-Regular.woff2') format('woff2'); }

:root {
  --bf: #000091;          /* blue-france-sun-113 */
  --bf-hover: #1212ff;
  --bf-active: #2323ff;
  --bf-525: #6a6af4;
  --bf-950: #ececfe;
  --bf-975: #f5f5fe;
  --rm: #e1000f;          /* red-marianne-main-472 */
  --rm-950: #fee9e9;
  --ok: #18753c;
  --ok-950: #e6feda;
  --ink: #161616;
  --ink-2: #3a3a3a;
  --muted: #666666;
  --line: #dddddd;
  --paper: #ffffff;

  --sans: 'Marianne', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Spectral', Georgia, serif;

  --fs-xs: 0.8125rem;   /* 13 */
  --fs-s: 0.9375rem;    /* 15 */
  --fs-m: 1.0625rem;    /* 17 */
  --fs-l: 1.25rem;      /* 20 */
  --fs-xl: 1.625rem;    /* 26 */
  --fs-2xl: 2.125rem;   /* 34 */

  --gutter: 20px;
  --col: 640px;
  --bar-h: 6px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-m)/1.5 var(--sans);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--bf-525); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 var(--gutter); }
.screen { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 8px;
  font-weight: 700; font-size: var(--fs-m); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }
.btn--primary { background: var(--bf); color: #fff; }
.btn--primary:active { background: var(--bf-active); }
.btn--primary:disabled { background: #e5e5e5; color: #929292; cursor: default; transform: none; }
.btn--light { background: #fff; color: var(--bf); }
.btn--quiet { background: transparent; color: var(--bf); padding: 0 12px; min-height: 44px; font-weight: 500; }
.btn svg { width: 20px; height: 20px; flex: none; }
.link { background: none; border: 0; padding: 8px 0; color: var(--bf); font-weight: 500; text-decoration: underline;
        text-underline-offset: 3px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.link svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- motif « prise de parole » (logo) */
.speech { --tone: currentColor; position: relative; padding: 0 0 26px; }
.speech__bar { display: block; height: var(--bar-h); background: var(--tone); transform-origin: left; }
.speech__body { padding: 22px 0 24px; }
.speech__bar--tail { position: relative; }
.speech__bar--tail::after {   /* bulle : triangle sous la barre, côté droit, comme le logo */
  content: ''; position: absolute; right: 13%; top: calc(var(--bar-h) - 1px);
  width: 30px; height: 26px; background: var(--tone);
  clip-path: polygon(0 0, 100% 0, 100% 100%); transform-origin: top right;
}

/* ---------------------------------------------------------------- accueil */
.home { background: var(--bf); color: #fff; }
.home .wrap { flex: 1; display: flex; flex-direction: column; padding-top: calc(28px + var(--safe-t)); padding-bottom: calc(28px + var(--safe-b)); }
.home__logo { width: 92px; height: auto; }
.home__main { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 24px; }
.home__statement { font-weight: 700; font-size: clamp(1.875rem, 8.6vw, 3.25rem); line-height: 1.06; letter-spacing: -0.02em; }
.home__source { font-size: var(--fs-xs); color: rgba(255,255,255,.72); margin-top: 6px; }
.home__call { font-size: var(--fs-l); font-weight: 500; line-height: 1.35; margin-top: 24px; max-width: 22ch; }
.home__actions { display: grid; gap: 14px; }
.home__meta { font-size: var(--fs-s); color: rgba(255,255,255,.8); text-align: center; }
.home__by { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; gap: 10px; margin-top: 20px;
            font-size: var(--fs-xs); color: rgba(255,255,255,.8); }
.home__by img { justify-self: end; width: auto; height: 32px; border-radius: 3px; }

/* ---------------------------------------------------------------- parcours */
.parcours { background: var(--paper); }
.parcours__head { padding-top: calc(20px + var(--safe-t)); padding-bottom: 8px; }
.parcours__brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.parcours__brand img { width: 92px; }
.parcours h1 { font-size: var(--fs-2xl); line-height: 1.1; letter-spacing: -0.015em; color: var(--bf); }
.parcours__lead { margin-top: 10px; color: var(--ink-2); max-width: 34ch; }
.progress { margin-top: 22px; }
.progress__bar { display: flex; gap: 4px; }
.progress__bar span { flex: 1; height: 6px; border-radius: 3px; background: var(--bf-950); }
.progress__bar span.is-done { background: var(--bf); }
.progress__label { font-size: var(--fs-s); color: var(--muted); margin-top: 8px; }

.scenarios { list-style: none; padding: 12px 0 0; margin: 0; }
.scenario { border-top: 1px solid var(--line); }
.scenario:first-child { border-top: 0; }
.scenario__btn {
  display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center;
  width: 100%; padding: 18px 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.scenario__thumb { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bf-950); }
.scenario__thumb img { width: 100%; height: 100%; object-fit: cover; }
.scenario__time { position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px;
                  background: rgba(0,0,0,.66); color: #fff; font-size: var(--fs-xs); font-weight: 500; }
.scenario__title { display: block; font-size: var(--fs-l); font-weight: 700; color: var(--bf); line-height: 1.2; }
.scenario__theme { display: block; font-size: var(--fs-s); color: var(--ink-2); margin-top: 4px; line-height: 1.4; }
.scenario__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); }
.scenario__status svg { width: 16px; height: 16px; }
.scenario__status.is-done { color: var(--ok); }
.scenario__status.is-started { color: var(--bf); }
.scenario--locked .scenario__btn { cursor: default; }
.scenario--locked .scenario__title { color: var(--muted); }
.scenario--locked .scenario__btn:hover .scenario__title { text-decoration: none; }
.scenario__lock { display: grid; place-items: center; width: 100%; height: 100%; color: var(--bf); background: var(--bf-975); }
.scenario__lock svg { width: 34px; height: 34px; }

.helpbox { margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.helpbox h2 { font-size: var(--fs-l); color: var(--bf); }
.helpbox ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 8px; }
.helpbox li { padding-left: 18px; position: relative; }
.helpbox li::before { content: ''; position: absolute; left: 0; top: .62em; width: 8px; height: 3px; background: var(--rm); }
.parcours__foot { margin-top: 28px; padding-top: 22px; padding-bottom: calc(32px + var(--safe-b)); border-top: 1px solid var(--line);
                  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; font-size: var(--fs-xs); color: var(--muted); }
.parcours__hcl { width: 56px; height: 56px; border-radius: 4px; }
.parcours__anap { width: auto; height: 36px; }
/* sur mobile, le logo complet de l'Anap prend la place : « Recommencer à zéro » passe sous les logos */
.parcours__foot .link { order: 1; }

/* ---------------------------------------------------------------- écran d'étape */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px);
          -webkit-backdrop-filter: saturate(1.4) blur(10px); padding-top: var(--safe-t); }
.topbar__row { display: flex; align-items: center; gap: 8px; min-height: 56px; }
.topbar__close { width: 44px; height: 44px; margin-left: -10px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--bf); cursor: pointer; }
.topbar__close svg { width: 24px; height: 24px; }
.topbar__title { font-size: var(--fs-s); font-weight: 700; color: var(--bf); line-height: 1.2; }
.topbar__chapter { font-weight: 400; color: var(--muted); }
.topbar__count { margin-left: auto; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.steps { display: flex; gap: 3px; padding-bottom: 10px; }
.steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--bf-950); }
.steps span.is-done { background: var(--bf); }
.steps span.is-current { background: var(--bf-525); }
.on-color .topbar { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.on-color .topbar__close, .on-color .topbar__title, .on-color .topbar__count, .on-color .topbar__chapter { color: #fff; }
.on-color .steps span { background: rgba(255,255,255,.3); }
.on-color .steps span.is-done, .on-color .steps span.is-current { background: #fff; }

.step-body { flex: 1; padding-top: 20px; padding-bottom: 32px; }
.actionbar { position: sticky; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line);
             padding: 12px 0 calc(12px + var(--safe-b)); }
.actionbar .wrap { display: flex; gap: 12px; align-items: center; }
.actionbar .btn--primary { flex: 1; }

.context { font-size: var(--fs-l); font-weight: 500; line-height: 1.35; color: var(--ink); margin-bottom: 18px; max-width: 34ch; }
.eyebrow-chapter { font-size: var(--fs-s); color: var(--muted); margin-bottom: 6px; }

/* ---------------------------------------------------------------- lecteur vidéo */
.player { position: relative; margin: 0 calc(var(--gutter) * -1); background: #000; aspect-ratio: 1.9; overflow: hidden; }
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.player__big { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; border: 0;
               background: #fff; color: var(--bf); display: grid; place-items: center; cursor: pointer;
               box-shadow: 0 6px 24px rgba(0,0,0,.28); transition: transform .15s var(--ease-out), opacity .2s; }
.player__big svg { width: 30px; height: 30px; }
.player.is-playing .player__big { opacity: 0; pointer-events: none; transform: scale(.8); }
.player__controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px; padding: 26px 8px 6px;
                    background: linear-gradient(transparent, rgba(0,0,0,.62)); color: #fff; transition: opacity .25s; }
.player.is-playing.is-idle .player__controls { opacity: 0; }
.player__ctl { width: 40px; height: 40px; border: 0; border-radius: 6px; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.player__ctl svg { width: 22px; height: 22px; }
.player__ctl[aria-pressed="false"] { opacity: .55; }
.player__seek { flex: 1; height: 28px; margin: 0 6px; -webkit-appearance: none; appearance: none; background: none; cursor: pointer; }
.player__seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(#fff, #fff) 0 / var(--p, 0%) 100% no-repeat, rgba(255,255,255,.35); }
.player__seek::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); }
.player__seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #fff; }
.player__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: #fff; border: 0; }
.player__seek::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 0; }
.player__time { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; padding-right: 4px; }
.player__caption { position: absolute; left: 12px; right: 12px; bottom: 54px; text-align: center; pointer-events: none; }
.player__caption span { display: inline; padding: 3px 8px; border-radius: 4px; background: rgba(0,0,0,.76); color: #fff;
                        font-size: var(--fs-s); line-height: 1.75; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.player:not(.is-playing) .player__caption { bottom: 14px; }
.player__label { position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--bf);
                 font-size: var(--fs-xs); font-weight: 700; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.player__note { position: absolute; left: 12px; top: 12px; max-width: min(78%, 360px); padding: 10px 14px 12px; border-radius: 14px 14px 14px 4px;
                background: #fff; color: var(--ink); box-shadow: 0 6px 22px rgba(0,0,0,.25); animation: pop .35s var(--ease-out); }
.player__note b { display: block; font-size: var(--fs-xs); color: var(--bf); margin-bottom: 2px; }
.player__note p { font-family: var(--serif); font-size: var(--fs-m); line-height: 1.35; }
.player__note.is-right { left: auto; right: 12px; border-radius: 14px 14px 4px 14px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }

.video-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.transcript { margin-top: 8px; border-top: 1px solid var(--line); }
.transcript summary { cursor: pointer; padding: 14px 0; color: var(--bf); font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
.transcript summary::-webkit-details-marker { display: none; }
.transcript summary::after { content: '+'; font-size: 22px; line-height: 1; }
.transcript[open] summary::after { content: '–'; }
/* liste à hauteur limitée, qui défile seule : la vidéo reste à l'écran pendant la lecture */
.transcript ol { position: relative; list-style: none; max-height: min(34vh, 16rem); overflow-y: auto; overscroll-behavior: contain;
                 margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bf-975);
                 display: grid; gap: 6px; font-size: var(--fs-s); color: var(--ink-2); }
.transcript ol::-webkit-scrollbar { width: 6px; }   /* barre toujours visible (macOS la masque par défaut) */
.transcript ol::-webkit-scrollbar-track { margin: 10px 0; }
.transcript ol::-webkit-scrollbar-thumb { border-radius: 3px; background: #9a9ab8; }
@supports not selector(::-webkit-scrollbar) { .transcript ol { scrollbar-width: thin; scrollbar-color: #9a9ab8 transparent; } }
.transcript li { transition: color .25s; }
.transcript li.is-now { color: var(--bf); font-weight: 500; }
.transcript time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; font-size: var(--fs-xs); font-weight: 400; }

/* cartouches qui arrêtent la vidéo */
.cues { display: grid; gap: 12px; margin-top: 18px; }
.cue { padding: 18px 18px 16px; border-radius: 14px; background: var(--bf-975); animation: rise .4s var(--ease-out); }
.cue.is-current { background: #fff; box-shadow: inset 0 0 0 2px var(--rm); }
.cue--info.is-current { box-shadow: inset 0 0 0 2px var(--bf); }
.cue__tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--rm); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.cue--info .cue__tag { background: var(--bf); }
.cue__quote { font-family: var(--serif); font-size: var(--fs-l); line-height: 1.35; margin-top: 10px; }
.cue__text { margin-top: 10px; }
.cue .btn { margin-top: 14px; }
.cue:not(.is-current) { padding: 14px 16px; }
.cue:not(.is-current) .cue__quote { font-size: var(--fs-m); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------------------------------------------------------------- question */
.q__prompt { font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--bf); }
.q__hint { margin-top: 8px; font-size: var(--fs-s); color: var(--muted); }
.q fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.q__options { display: grid; gap: 10px; margin-top: 22px; }
.opt { position: relative; display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; padding: 15px 16px;
       border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer;
       transition: box-shadow .15s, background-color .15s; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__mark { width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 0 0 2px #929292; display: grid; place-items: center; color: #fff; transition: all .15s; }
.opt--multi .opt__mark { border-radius: 6px; }
.opt__mark svg { width: 16px; height: 16px; opacity: 0; }
.opt__text { font-size: var(--fs-m); line-height: 1.4; padding-top: 1px; }
.opt__note { grid-column: 2; font-size: var(--fs-s); line-height: 1.45; color: var(--ink-2); padding-top: 8px; margin-top: 2px; border-top: 1px solid rgba(0,0,0,.08); }
.opt:has(input:focus-visible) { outline: 3px solid var(--bf-525); outline-offset: 2px; }
.opt.is-selected { background: var(--bf-975); box-shadow: inset 0 0 0 2px var(--bf); }
.opt.is-selected .opt__mark { background: var(--bf); box-shadow: none; }
.opt.is-selected .opt__mark svg { opacity: 1; }
.opt:not(.opt--multi).is-selected .opt__mark { background: #fff; box-shadow: inset 0 0 0 7px var(--bf); }
.opt:not(.opt--multi).is-selected .opt__mark svg { opacity: 0; }
.q.is-locked .opt { cursor: default; }
.q.is-locked .opt:hover { box-shadow: inset 0 0 0 1.5px var(--line); }
.q.is-locked .opt.is-selected:hover { box-shadow: inset 0 0 0 2px var(--bf); }
.opt.is-right { background: var(--ok-950) !important; box-shadow: inset 0 0 0 2px var(--ok) !important; }
.opt.is-right .opt__mark { background: var(--ok) !important; box-shadow: none !important; }
.opt.is-right .opt__mark svg { opacity: 1 !important; }
.opt.is-wrong { background: var(--rm-950) !important; box-shadow: inset 0 0 0 2px var(--rm) !important; }
.opt.is-wrong .opt__mark { background: var(--rm) !important; box-shadow: none !important; }
.opt.is-wrong .opt__mark svg { opacity: 1 !important; }
.opt.is-missed { box-shadow: inset 0 0 0 2px var(--ok) !important; background: #fff !important; }
.opt.is-missed .opt__mark { box-shadow: inset 0 0 0 2px var(--ok) !important; background: #fff !important; }
.q__replay { margin-top: 18px; }
.q__image { margin-top: 18px; border-radius: 12px; overflow: hidden; max-width: 320px; }

/* résultat : carte insérée sous les réponses */
.result { margin-top: 24px; padding: 20px 20px 18px; border-radius: 16px; scroll-margin-top: 96px; animation: rise .4s var(--ease-out); }
.result--ok { background: var(--ok-950); }
.result--ko { background: var(--rm-950); }
.result--neutral { background: var(--bf-975); }
.result__verdict { display: flex; align-items: center; gap: 12px; font-size: var(--fs-l); font-weight: 700; }
.result__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.result__icon svg { width: 20px; height: 20px; }
.result--ok .result__verdict { color: var(--ok); } .result--ok .result__icon { background: var(--ok); }
.result--ko .result__verdict { color: var(--rm); } .result--ko .result__icon { background: var(--rm); }
.result--neutral .result__verdict { color: var(--bf); } .result--neutral .result__icon { background: var(--bf); }
.result__title { font-size: var(--fs-l); font-weight: 700; color: var(--bf); margin-top: 16px; line-height: 1.3; }
.result__text { margin-top: 10px; color: var(--ink-2); }
.result__text b { color: var(--ink); }
.result__answer { margin-top: 12px; font-size: var(--fs-s); }
.result__answer b { color: var(--ok); }
.result__source { margin-top: 12px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------------------------------------------------------------- grands messages */
.statement { color: #fff; }
.statement--red { background: var(--rm); }
.statement--blue { background: var(--bf); }
.statement .step-body { display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
.statement__text { font-weight: 700; font-size: clamp(2.5rem, 12.5vw, 4.5rem); line-height: 1.02; letter-spacing: -0.025em; }
.statement .actionbar { background: transparent; border: 0; }

.verdict__images { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: 14px; overflow: hidden; }
.verdict__images img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.verdict .speech { color: var(--bf); margin-top: 28px; }
.verdict__lead { font-size: var(--fs-l); font-weight: 500; color: var(--ink); }
.verdict__term { display: block; font-weight: 700; font-size: clamp(2.25rem, 11vw, 3.75rem); line-height: 1.02; letter-spacing: -0.025em; margin-top: 6px; }

/* animation du motif : barres qui se tracent, texte qui monte, bulle qui tombe */
.reveal .speech__bar { animation: bar .55s var(--ease-out) both; }
.reveal .speech__bar--tail { animation-delay: .15s; }
.reveal .speech__bar--tail::after { animation: tail .3s var(--ease-out) .6s both; }
.reveal .speech__body > * { animation: lift .5s var(--ease-out) .2s both; }
@keyframes bar { from { transform: scaleX(0); } }
@keyframes tail { from { transform: scale(0); } }
@keyframes lift { from { opacity: 0; transform: translateY(18px); } }

/* ---------------------------------------------------------------- contenus */
.h2 { font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--bf); }
.prose { margin-top: 14px; color: var(--ink-2); }
.points { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 14px; }
.points li { position: relative; padding-left: 26px; font-size: var(--fs-m); }
.points li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 12px; height: var(--bar-h); background: var(--bf); }
.callout { margin-top: 28px; color: var(--rm); }
.callout .speech__body { padding: 14px 0 16px; font-size: var(--fs-xl); font-weight: 700; line-height: 1.2; color: var(--ink); }
.intro__image { margin: 24px calc(var(--gutter) * -1) 0; }
.intro__image img { width: 100%; }

/* narration */
.voice__card { margin-top: 22px; padding: 18px; border-radius: 16px; background: var(--bf-975); }
.voice__row { display: flex; align-items: center; gap: 14px; }
.voice__play { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--bf); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.voice__play svg { width: 26px; height: 26px; }
.voice__meter { flex: 1; }
.voice__label { font-weight: 700; font-size: var(--fs-s); color: var(--bf); }
.voice__track { height: 4px; border-radius: 2px; background: var(--bf-950); margin-top: 10px; overflow: hidden; }
.voice__track span { display: block; height: 100%; width: 0; background: var(--bf); }
.voice__lines { margin-top: 18px; font-size: var(--fs-m); line-height: 1.55; color: #9a9ab8; }
.voice__lines span { transition: color .25s; }
.voice__lines span.is-past { color: var(--ink-2); }
.voice__lines span.is-now { color: var(--bf); font-weight: 500; }
.notions { list-style: none; padding: 0; margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.notions li { padding: 8px 14px; border-radius: 999px; font-family: var(--serif); font-size: var(--fs-m); background: #fff;
              box-shadow: inset 0 0 0 1.5px var(--bf-950); color: #9a9ab8; transition: all .35s var(--ease-out); }
.notions li.is-on { background: var(--bf); color: #fff; box-shadow: none; }
.bonus { margin-top: 28px; display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: center; width: 100%;
         padding: 0; background: none; border: 0; text-align: left; cursor: pointer; }
.bonus img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.bonus b { display: block; color: var(--bf); font-size: var(--fs-m); line-height: 1.3; }
.bonus span { display: block; font-size: var(--fs-s); color: var(--muted); margin-top: 4px; }

/* SMS */
.chat { margin: 18px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 22px; background: var(--bf-975); border-radius: 0; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bf-950); position: sticky; top: 70px; background: var(--bf-975); z-index: 2; }
.chat__head img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.chat__head b { display: block; font-size: var(--fs-m); }
.chat__head span { display: block; font-size: var(--fs-xs); color: var(--muted); }
.chat__list { list-style: none; padding: 16px 0 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.chat__list > li, .chat-after { scroll-margin-bottom: 96px; }   /* au-dessus de la barre d'action */
.msg { max-width: 78%; padding: 10px 14px; border-radius: 20px; font-size: var(--fs-m); line-height: 1.35; animation: pop .3s var(--ease-out); position: relative; }
.msg--them { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 2px rgba(0,0,60,.08); }
.msg--me { align-self: flex-end; background: var(--bf); color: #fff; border-bottom-right-radius: 6px; }
.msg--me + .msg--them, .msg--them + .msg--me { margin-top: 10px; }
.msg--typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.msg--typing i { width: 7px; height: 7px; border-radius: 50%; background: #9a9ab8; animation: blink 1s infinite; }
.msg--typing i:nth-child(2) { animation-delay: .15s; } .msg--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .3; } }
.chat.is-reviewed .msg--pushy { box-shadow: inset 0 0 0 2px var(--rm); }
.msg__flag { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--rm); margin: 2px 0 4px 6px; animation: rise .3s var(--ease-out); }
.better { margin-top: 22px; animation: rise .45s var(--ease-out); }
.better p { font-size: var(--fs-s); font-weight: 700; color: var(--ok); }
.better .msg { margin-top: 8px; display: inline-flex; gap: 8px; align-items: center; box-shadow: inset 0 0 0 2px var(--ok); }
.better .msg svg { width: 18px; height: 18px; color: var(--ok); }
.voiceover { display: flex; gap: 12px; align-items: flex-start; margin: 12px 0; padding: 14px 16px; border-radius: 16px; background: #fff;
             box-shadow: inset 0 0 0 1px var(--bf-950); animation: rise .45s var(--ease-out); }
.voiceover__play { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bf); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.voiceover__play svg { width: 18px; height: 18px; }
.voiceover p { font-size: var(--fs-s); line-height: 1.5; color: var(--ink-2); }
.voiceover__tag { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--bf); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.voiceover__line { transition: color .25s; }
.voiceover.is-live .voiceover__line { color: #9a9ab8; }
.voiceover.is-live .voiceover__line.is-past { color: var(--ink-2); }
.voiceover.is-live .voiceover__line.is-now { color: var(--bf); }

/* émotions */
.emotions__cloud { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.emotions__cloud li { padding: 12px 20px; border-radius: 999px; font-weight: 700; color: #fff; background: var(--bf); animation: rise .5s var(--ease-out) both; }
.emotions__cloud li:nth-child(2) { background: var(--bf-525); animation-delay: .08s; }
.emotions__cloud li:nth-child(3) { background: var(--rm); animation-delay: .16s; }
.emotions__cloud li:nth-child(4) { background: var(--ink-2); animation-delay: .24s; }
.emotions__cloud li:nth-child(5) { background: var(--bf-525); animation-delay: .32s; }
.emotions__image { margin-top: 20px; max-width: 360px; }

/* synthèse */
.classify__list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 28px; }
.classify__num { font-size: var(--fs-s); color: var(--muted); }
.classify__situation { margin-top: 8px; font-size: var(--fs-l); line-height: 1.4; }
.classify__situation.is-quote { font-family: var(--serif); font-size: 1.375rem; }
.classify.is-locked .classify__item + .classify__item { padding-top: 24px; border-top: 1px solid var(--line); }
.classify.is-locked .q__options { margin-top: 14px; }
.defs { margin-top: 20px; display: grid; gap: 0; }
.defs dt { font-size: var(--fs-l); font-weight: 700; color: var(--bf); padding-top: 18px; border-top: 1px solid var(--line); }
.defs dt:first-child { border-top: 0; padding-top: 0; }
.defs dd { margin: 6px 0 18px; color: var(--ink-2); }

/* fin de scénario et fin du module */
.done .step-body { display: flex; flex-direction: column; justify-content: center; }
.done__badge { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.done__badge svg { width: 34px; height: 34px; }
.done h1 { font-size: var(--fs-2xl); line-height: 1.1; letter-spacing: -0.015em; color: var(--bf); margin-top: 22px; }
.done__score { margin-top: 10px; font-size: var(--fs-l); color: var(--ink-2); }
.done__actions { display: grid; gap: 8px; margin-top: 32px; }
.final { background: var(--bf); color: #fff; }
.final .step-body { padding-top: calc(28px + var(--safe-t)); }
.final .speech { color: #fff; margin-top: 36px; }
.final__thanks { font-size: var(--fs-l); font-weight: 500; }
.final__big { font-weight: 700; font-size: clamp(2.25rem, 11vw, 3.75rem); line-height: 1.04; letter-spacing: -0.025em; }
.final .helpbox { border-color: rgba(255,255,255,.25); }
.final .helpbox h2 { color: #fff; }
.final .helpbox li::before { background: #fff; }

/* fenêtre vidéo (revoir / bonus) */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,20,.82); display: flex; flex-direction: column; justify-content: center;
         padding: calc(16px + var(--safe-t)) 0 calc(16px + var(--safe-b)); animation: fade .25s; }
.modal__inner { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 var(--gutter); }
.modal__bar { display: flex; justify-content: space-between; align-items: center; color: #fff; margin-bottom: 12px; gap: 12px; }
.modal__bar b { font-size: var(--fs-m); }
.modal__close { width: 44px; height: 44px; border: 0; border-radius: 8px; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.modal__close svg { width: 22px; height: 22px; }
.modal .player { margin: 0; border-radius: 12px; }
.modal__credit { color: rgba(255,255,255,.7); font-size: var(--fs-xs); margin-top: 10px; }
@keyframes fade { from { opacity: 0; } }

/* ---------------------------------------------------------------- grands écrans */
@media (min-width: 680px) {
  :root { --gutter: 32px; }
  .player { margin: 0; border-radius: 14px; }
  .intro__image { margin: 24px 0 0; }
  .intro__image img { border-radius: 14px; }
  .chat { margin: 18px 0 0; padding: 0 24px 24px; border-radius: 20px; }
  .scenario__btn { grid-template-columns: 200px 1fr; gap: 22px; }
  .scenario__thumb { aspect-ratio: 16 / 10; }
  .parcours__foot .link { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* transitions entre écrans (View Transitions API, si disponible) */
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .32s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-24px); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(32px); } }
.vt-back::view-transition-old(root) { animation-name: vt-out-back; }
.vt-back::view-transition-new(root) { animation-name: vt-in-back; }
@keyframes vt-out-back { to { opacity: 0; transform: translateX(24px); } }
@keyframes vt-in-back { from { opacity: 0; transform: translateX(-32px); } }

@media (hover: hover) {
  .on-color .topbar__close:hover { background: rgba(255,255,255,.14); }
  .voice__play:hover { background: var(--bf-hover); }
  .opt:not(.is-selected):hover { box-shadow: inset 0 0 0 1.5px var(--bf-525); }
  .player__big:hover { transform: scale(1.06); }
  .topbar__close:hover { background: var(--bf-975); }
  .scenario__btn:hover .scenario__title { text-decoration: underline; text-underline-offset: 4px; }
  .btn--quiet:hover { background: var(--bf-975); }
  .btn--light:hover { background: var(--bf-950); }
  .btn--primary:not(:disabled):hover { background: var(--bf-hover); }
}
