/* MaCompo — landing.
 * Palette de l'application (app/styles/tokens.css) : le stylo bleu compose,
 * le stylo rouge corrige, sur le papier de la copie double. Le rouge ne sert
 * qu'à ce qui corrige — barème, total, soulignements — jamais ailleurs.
 * Polices système uniquement : la page doit s'ouvrir vite en 4G. */

:root {
  --stylo: #1f3a8a;
  --stylo-fonce: #16296a;
  --nuit: #0f1d3d;
  --stylo-clair: #e9eef9;
  --vif: #a9bdf5;
  --correction: #c8102e;
  --correction-texte: #a50e26;
  --correction-vif: #ff6b7d;
  --correction-fond: #fcecee;
  --marge: var(--correction);
  --encre: #141a2b;
  --encre-douce: #525a6e;
  --papier: #f7f5ef;
  --papier-2: #f1efe8;
  --trait: #ddd8cc;
  --papier-nuit: #eef1f8;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Roboto Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.25, .46, .45, .94);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gouttiere: clamp(16px, 4vw, 56px);
  --r-l: clamp(20px, 2.4vw, 36px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--nuit);
  color: var(--encre);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
em { font-style: italic; }
.mono { font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: var(--vif); color: var(--nuit); }
:focus-visible { outline: 2px solid var(--vif); outline-offset: 3px; border-radius: 6px; }

.grain { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 90; opacity: .07; mix-blend-mode: multiply; }

/* ── Curseur ─────────────────────────────────────── */
.curseur { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; display: none; }
.curseur span { display: block; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--vif); transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background .3s; mix-blend-mode: difference; }
.curseur.is-survol span { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: var(--papier-nuit); }
@media (hover: hover) and (pointer: fine) { .curseur { display: block; } }

/* ── Boutons ───────────────────────────────────────────── */
.bouton {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; isolation: isolate; border-radius: 999px; text-decoration: none;
  padding: .72em 1.35em; font: 600 .92rem/1 var(--sans); letter-spacing: .01em; white-space: nowrap;
  transition: transform .45s var(--ease), color .45s var(--ease);
}
.bouton:hover { transform: scale(1.03); }
.bouton__fond { position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .55s var(--ease-out); }
.bouton:hover .bouton__fond { transform: translateY(0); }
.bouton--vif { background: var(--vif); color: var(--nuit); }
.nav.is-papier .bouton--vif, .papier .bouton--vif { background: var(--stylo); color: var(--papier); }
.bouton--vif .bouton__fond { background: var(--papier-nuit); }
.bouton--fantome { color: var(--papier-nuit); box-shadow: inset 0 0 0 1px rgba(238, 241, 248, .35); }
.bouton--fantome .bouton__fond { background: var(--papier-nuit); }
.bouton--fantome:hover { color: var(--nuit); }
.bouton--grand { padding: 1.05em 1.8em; font-size: 1rem; }
.lien-discret { text-decoration: none; font: 500 .9rem var(--sans); opacity: .85; transition: opacity .3s, transform .3s var(--ease); display: inline-block; }
.lien-discret:hover { opacity: 1; transform: translateY(-1px); }

/* ── Navigation flottante ─────────────────────────────── */
.nav {
  position: fixed; z-index: 80; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 24px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 18px; border-radius: 999px; color: var(--papier-nuit);
  border: 1px solid transparent;
  transition: background .5s var(--ease), color .5s var(--ease), border-color .5s, box-shadow .5s, transform .6s var(--ease-out);
}
.nav.is-papier { background: rgba(247, 245, 239, .72); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); color: var(--encre); border-color: rgba(20, 26, 43, .08); box-shadow: 0 10px 40px -18px rgba(15, 29, 61, .35); }
.nav.is-nuit { background: rgba(15, 29, 61, .55); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-color: rgba(238, 241, 248, .1); }
.nav.is-cachee { transform: translate(-50%, -140%); }
.nav__marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.15rem var(--serif); letter-spacing: -.01em; }
.nav__marque svg { width: 30px; }
.nav__marque rect { fill: var(--stylo); }
.nav__marque .m { fill: var(--papier); }
.nav__marque .trait { fill: none; stroke: var(--correction-vif); stroke-width: 1.8; stroke-linecap: round; }
.nav__marque em { font-style: normal; color: var(--vif); }
.nav.is-papier .nav__marque em { color: var(--stylo); }
.nav__liens { display: flex; gap: 28px; }
.nav__liens a { text-decoration: none; font-size: .9rem; opacity: .8; position: relative; transition: opacity .3s; }
.nav__liens a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out); }
.nav__liens a:hover { opacity: 1; }
.nav__liens a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
@media (max-width: 860px) {
  .nav__liens { display: none; }
  .nav { padding-left: 14px; }
  /* « Se connecter » reste dans l'en-tête sur téléphone : caché, un professeur
     déjà inscrit ne le retrouvait qu'en bas de page, 20 000 px plus loin. */
  .nav__actions { gap: 12px; }
  .nav .lien-discret { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .nav .bouton { min-height: 40px; }
}
/* Petit écran : le sigle seul et « Essayer » font la place du lien de connexion. */
@media (max-width: 480px) {
  .nav > .nav__marque span, .nav__long { display: none; }
}

/* ── Typo ──────────────────────────────────────────────── */
.h-hero { font: 700 clamp(2.4rem, 6.6vw, 6.4rem)/.98 var(--serif); letter-spacing: -.035em; color: var(--papier-nuit); }
.h-hero .ligne { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.h-hero .ligne > span { display: inline-block; }
.h-hero .ligne--ital { font-style: italic; font-weight: 400; color: var(--vif); letter-spacing: -.02em; }
.h-section { font: 700 clamp(2.1rem, 5vw, 4.4rem)/1.02 var(--serif); letter-spacing: -.03em; color: var(--encre); }
.h-section em { font-weight: 400; color: var(--stylo); }
.h-section--clair { color: var(--papier-nuit); }
.h-section--clair em { color: var(--vif); }
.etiquette { color: var(--stylo); display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.etiquette::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.etiquette--claire { color: var(--vif); }
.surtitre { color: var(--vif); margin-bottom: 26px; }

.papier { background: var(--papier) url(../assets/papier.jpg); background-size: 720px; position: relative; }

/* ═══════ 1. FILM ═══════ */
/* 520 vh (contre 620) : le hero dit déjà l'essentiel, le film le montre. */
.film { position: relative; height: 520vh; background: var(--nuit); }
.film__scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film__fond { position: absolute; inset: -6%; background: url(../assets/nuit.jpg) center/cover; will-change: transform; }
.film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1s; }
.film.a-video .film__video { opacity: 1; }
.film__hero-media { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.film__hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
/* Le texte du hero est à gauche : le voile bleu nuit y est dense, puis s'ouvre
 * sur l'enseignant. Mesuré : texte blanc ≥ 7:1 sur tout le tiers gauche. */
.film__hero-voile { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(15, 29, 61, .94) 0%, rgba(15, 29, 61, .86) 34%, rgba(15, 29, 61, .42) 62%, rgba(15, 29, 61, .18) 100%),
  linear-gradient(0deg, rgba(15, 29, 61, .7) 0%, transparent 35%); }
@media (max-width: 860px) {
  .film__hero-video { object-position: 78% center; }
  .film__hero-voile { background: linear-gradient(180deg, rgba(15, 29, 61, .55) 0%, rgba(15, 29, 61, .88) 45%, rgba(15, 29, 61, .95) 100%); }
}
.film__voile { position: absolute; inset: 0; background: radial-gradient(120% 90% at 30% 70%, transparent 0 30%, rgba(15, 29, 61, .78) 100%), linear-gradient(180deg, rgba(15, 29, 61, .45), transparent 30%, transparent 70%, rgba(15, 29, 61, .7)); }
.film__lampe { position: absolute; width: 90vmax; height: 90vmax; left: 50%; top: 50%; margin: -45vmax 0 0 -45vmax; background: radial-gradient(circle, rgba(232, 196, 110, .22), rgba(232, 196, 110, .06) 35%, transparent 62%); mix-blend-mode: screen; opacity: 0; pointer-events: none; }
.film__ombre { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 29, 61, .92) 0 30%, rgba(15, 29, 61, .4) 60%, transparent); opacity: 0; z-index: 6; pointer-events: none; }
.film__poussiere { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.film__heure { position: absolute; top: 92px; left: var(--gouttiere); color: var(--papier-nuit); display: flex; align-items: center; gap: 10px; opacity: .8; z-index: 5; }
.point { width: 7px; height: 7px; border-radius: 50%; background: var(--vif); box-shadow: 0 0 0 0 rgba(169, 189, 245, .6); animation: pouls 2.2s infinite; }
.point--vert { background: #5fbf8a; box-shadow: 0 0 0 0 rgba(95, 191, 138, .6); }
@keyframes pouls { 70% { box-shadow: 0 0 0 10px rgba(169, 189, 245, 0); } 100% { box-shadow: 0 0 0 0 rgba(169, 189, 245, 0); } }

/* Calé en bas, mais jamais sous le menu : `top` borne le bloc (18/10/2026,
 * le surtitre chevauchait le menu sur un portable). */
.film__titre { position: absolute; left: var(--gouttiere); right: var(--gouttiere); top: clamp(88px, 12vh, 120px); bottom: clamp(40px, 10vh, 110px); max-width: 1100px; z-index: 4; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
.souligne-rouge { width: min(560px, 70%); margin-top: 18px; overflow: visible; }
.souligne-rouge path { fill: none; stroke: var(--correction-vif); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.h-hero--resultat { font-size: clamp(2rem, min(4.2vw, 8vh), 4.4rem); max-width: 30ch; }

.film__sous-titre { color: #c9d2ea; max-width: 560px; margin-top: 22px; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.film__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.film__exemple { margin-top: 14px; font-size: .95rem; }
.film__exemple a { color: var(--vif); text-underline-offset: 3px; }
@media (max-width: 860px) { .film__titre { bottom: clamp(28px, 6vh, 56px); } .film__cta .bouton { flex: 1 1 100%; justify-content: center; text-align: center; } }
.film__indice { margin-top: 34px; color: #b9c4e2; display: flex; align-items: center; gap: 14px; }
.molette { width: 20px; height: 32px; border: 1.5px solid currentColor; border-radius: 12px; position: relative; }
.molette::after { content: ""; position: absolute; left: 50%; top: 6px; width: 2px; height: 6px; margin-left: -1px; background: var(--vif); border-radius: 2px; animation: molette 1.8s var(--ease-out) infinite; }
@keyframes molette { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }

.film__encre { position: absolute; inset: 0; display: grid; place-items: center; padding: 90px var(--gouttiere) 40px; z-index: 3; pointer-events: none; }
.encre-svg { width: min(1200px, 100%); height: 100%; overflow: visible; }
.encre-texte { fill: var(--papier-nuit); font-family: "Segoe Print", "Bradley Hand", "Comic Neue", var(--serif); }
.encre-petit { font-size: 22px; fill: #9fb0de; letter-spacing: .12em; text-transform: uppercase; font-family: var(--mono); }
.encre-moyen { font-size: 38px; }
.encre-grand { font-size: 72px; fill: var(--vif); }
.dessin { fill: none; stroke: var(--papier-nuit); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.courbe { stroke: var(--vif); stroke-width: 4.5; }
.coche { stroke: var(--vif); stroke-width: 4; }

.film__table { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1600px; z-index: 6; pointer-events: none; }
.copie {
  position: absolute; width: min(620px, 88vw); aspect-ratio: 1 / 1.3; max-height: 82vh;
  background: #fcfbf7 url(../assets/papier.jpg); background-size: 520px; border-radius: 6px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 40px 80px -30px rgba(0,0,0,.65), 0 18px 30px -20px rgba(0,0,0,.4);
  padding: clamp(18px, 3.2vw, 38px) clamp(18px, 3.2vw, 38px) clamp(18px, 3vw, 34px) clamp(46px, 7vw, 82px);
  color: var(--encre); overflow: hidden; transform-style: preserve-3d; will-change: transform;
}
.copie::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 27px, rgba(80, 120, 170, .14) 27px 28px); background-position: 0 86px; pointer-events: none; }
.copie__marge { position: absolute; top: 0; bottom: 0; left: clamp(34px, 5.4vw, 64px); width: 2px; background: var(--marge); opacity: .7; }
.copie__entete { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font: 700 clamp(.58rem, 1.1vw, .72rem)/1.3 var(--mono); letter-spacing: .1em; border-bottom: 2px solid var(--encre); padding-bottom: 10px; margin-bottom: 16px; position: relative; }
.copie__corps { position: relative; font: clamp(.72rem, 1.3vw, .9rem)/1.62 var(--serif); }
.copie__corps p { margin-bottom: .7em; }
.copie__ex { font: 700 clamp(.78rem, 1.4vw, .95rem)/1.3 var(--serif); margin: .5em 0 .3em; text-decoration: underline; text-underline-offset: 3px; }
.copie__ex i { font-weight: 400; text-decoration: none; display: inline-block; color: var(--encre-douce); }
.copie__ex--sit { color: var(--stylo); }
.copie__figure { margin: 0 0 .6em; }
.copie__figure svg { width: 72%; max-width: 320px; }
.copie__figure .axe { stroke: var(--encre); stroke-width: 1.2; fill: none; }
.copie__figure .encre-courbe { stroke: var(--stylo); stroke-width: 2.2; fill: none; }
.copie__figure text { font: italic 11px var(--serif); fill: var(--encre); }
.copie--corrige { background-color: #fbf8f1; }
.copie--corrige::after { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(34px, 5.4vw, 64px); width: 2px; background: var(--marge); opacity: .7; }
.copie--corrige .copie__entete { color: var(--correction-texte); border-bottom-color: var(--correction); }
.bareme__total b { color: var(--correction) !important; }
.bareme { list-style: none; margin: 8px 0 0; padding: 0; font: clamp(.8rem, 1.4vw, .98rem)/1.4 var(--serif); position: relative; }
.bareme li { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px dashed rgba(20, 26, 43, .25); }
.bareme b { font-family: var(--mono); font-size: .85em; color: var(--correction-texte); }
.bareme__total small { display: block; font: .72em var(--mono); letter-spacing: .04em; color: var(--correction-texte); font-weight: 400; margin-top: 2px; }
.bareme__total { border-bottom: 0 !important; border-top: 2px solid var(--encre); margin-top: 10px; font-weight: 700; color: var(--correction); font-size: 1.15em; }

.film__fin { position: absolute; left: var(--gouttiere); right: var(--gouttiere); bottom: clamp(48px, 12vh, 120px); z-index: 7; max-width: 900px; }
.h-hero--fin { font-size: clamp(2.6rem, 7vw, 6.6rem); }
.souligne-fin { width: min(520px, 76%); margin-top: 10px; }
.film__fin-txt { color: #c9d2ea; max-width: 520px; margin: 22px 0 30px; font-size: 1.05rem; }
.film__fin-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.film__progres { position: absolute; left: var(--gouttiere); right: var(--gouttiere); bottom: 22px; height: 1px; background: rgba(238, 241, 248, .15); z-index: 8; }
.film__progres span { display: block; height: 100%; background: var(--vif); transform-origin: left; transform: scaleX(0); }

/* ═══════ 2. Manifeste ═══════ */
/* ── 1 bis. Film explicatif : sur la nuit du hero, avant le papier ── */
.demo { background: var(--nuit); color: var(--papier-nuit); padding: clamp(90px, 12vw, 160px) var(--gouttiere) clamp(110px, 14vw, 190px); position: relative; }
.demo__tete { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px 60px; align-items: end; }
.demo__tete .etiquette { grid-column: 1 / -1; }
.demo__txt { color: #bcc7e4; max-width: 420px; }
.demo__cadre { position: relative; max-width: min(1180px, calc(84vh * 16 / 9)); margin: clamp(40px, 6vw, 70px) auto 0; border-radius: var(--r-l); overflow: hidden; background: #0b1630; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(169, 189, 245, .16); aspect-ratio: 16 / 9; }
.demo__video { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--papier); }
.demo__lecture { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; gap: 16px; padding: clamp(18px, 3vw, 36px); border: 0; cursor: pointer; color: var(--papier-nuit); font: inherit; text-align: left; background: linear-gradient(180deg, rgba(15, 29, 61, 0) 45%, rgba(15, 29, 61, .82)); transition: background .4s var(--ease); }
.demo__lecture[hidden] { display: none; }
.demo__lecture:hover { background: linear-gradient(180deg, rgba(15, 29, 61, 0) 35%, rgba(15, 29, 61, .9)); }
.demo__lecture:focus-visible { outline: 3px solid var(--vif); outline-offset: -6px; }
.demo__lecture-rond { flex: none; width: clamp(58px, 6vw, 78px); aspect-ratio: 1; border-radius: 50%; background: var(--vif); display: grid; place-items: center; transition: transform .4s var(--ease-out); }
.demo__lecture:hover .demo__lecture-rond { transform: scale(1.08); }
.demo__lecture-rond svg { width: 42%; fill: var(--nuit); margin-left: 6%; }
.demo__lecture-txt { display: grid; gap: 4px; font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1.2 var(--sans); }
.demo__lecture-txt small { font-size: .7rem; font-weight: 400; color: #bcc7e4; letter-spacing: .04em; }

.manifeste { padding: clamp(110px, 18vw, 240px) var(--gouttiere) clamp(90px, 14vw, 180px); overflow: hidden; border-radius: var(--r-l) var(--r-l) 0 0; margin-top: -1px; }
.manifeste > * { max-width: 1180px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; }
.manifeste .etiquette { display: flex; }
.manifeste__neutre { font: italic 1.3rem var(--serif); color: var(--encre-douce); margin-bottom: 22px; }
.manifeste__texte { font: 400 clamp(1.8rem, 4.3vw, 3.9rem)/1.16 var(--serif); letter-spacing: -.025em; color: var(--encre); }
.manifeste__texte strong { font-style: italic; color: var(--stylo); font-weight: 400; text-decoration: underline; text-decoration-color: var(--correction); text-decoration-thickness: 2px; text-underline-offset: .14em; }
.manifeste__texte .mot { opacity: .14; transition: opacity .1s; }
.orn { position: absolute !important; fill: none; stroke: var(--stylo); stroke-width: 1.2; opacity: .35; z-index: 0 !important; }
.orn--compas { width: clamp(120px, 16vw, 220px); right: 4%; top: 8%; margin: 0 !important; }
.orn--rapporteur { width: clamp(160px, 22vw, 300px); left: 3%; bottom: 4%; margin: 0 !important; }

/* ═══════ 3. Chiffres ═══════ */
.chiffres { padding: 0 var(--gouttiere) clamp(90px, 12vw, 160px); }
.chiffres__grille { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--trait); }
.chiffre { padding: 34px 26px 0 0; border-right: 1px solid var(--trait); margin-right: 26px; }
.chiffre:last-child { border-right: 0; margin-right: 0; }
.chiffre b { display: block; font: 700 clamp(3rem, 6.4vw, 5.6rem)/1 var(--serif); letter-spacing: -.04em; color: var(--stylo); font-variant-numeric: tabular-nums; }
.chiffre b small { font-size: .32em; letter-spacing: 0; font-weight: 400; font-style: italic; color: var(--stylo); }
.chiffre > span { display: block; margin-top: 14px; color: var(--encre-douce); font-size: .95rem; max-width: 240px; }
@media (max-width: 860px) {
  .chiffres__grille { grid-template-columns: 1fr 1fr; }
  .chiffre { border-right: 0; margin-right: 0; padding-right: 12px; }
}

/* ═══════ 4. Méthode ═══════ */
.methode { background: var(--stylo-fonce); color: var(--papier-nuit); overflow: hidden; border-radius: var(--r-l); position: relative; }
.methode::before { content: ""; position: absolute; inset: 0; background: url(../assets/nuit.jpg) center/cover; opacity: .55; }
.methode__piste { position: relative; display: flex; gap: clamp(20px, 3vw, 44px); padding: clamp(90px, 12vh, 140px) var(--gouttiere); width: max-content; min-height: 100vh; align-items: center; }
.methode__intro { width: min(460px, 84vw); flex: none; }
.methode__intro-txt { color: #bcc7e4; margin-top: 24px; max-width: 380px; }
.panneau { width: min(560px, 84vw); flex: none; background: rgba(247, 245, 239, .05); border: 1px solid rgba(238, 241, 248, .12); border-radius: var(--r-l); padding: clamp(24px, 3vw, 40px); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panneau__num { color: var(--vif); margin-bottom: 18px; }
.panneau h3 { font: 700 clamp(1.5rem, 2.4vw, 2rem)/1.12 var(--serif); letter-spacing: -.02em; margin-bottom: 12px; }
.panneau > p:not(.panneau__num) { color: #bcc7e4; font-size: .98rem; max-width: 440px; }
.ecran { margin-top: 28px; background: var(--papier); color: var(--encre); border-radius: 18px; padding: 16px; min-height: 250px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.ecran--sombre { background: #0b1530; color: var(--papier-nuit); border: 1px solid rgba(238, 241, 248, .1); }
.ecran__barre { display: flex; align-items: center; gap: 6px; margin-bottom: 16px; font: .7rem var(--mono); letter-spacing: .06em; color: var(--encre-douce); }
.ecran--sombre .ecran__barre { color: #8c9bc4; }
.ecran__barre i { width: 9px; height: 9px; border-radius: 50%; background: var(--trait); }
.ecran--sombre .ecran__barre i { background: #22305a; }
.ecran__barre span { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.direct { width: 7px; height: 7px; border-radius: 50%; background: var(--marge); animation: clign 1.1s infinite; }
@keyframes clign { 50% { opacity: .2; } }
.niveaux { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.niveaux span { font: 600 .78rem var(--sans); padding: 7px 12px; border-radius: 999px; background: var(--papier-2); color: var(--encre-douce); transition: background .4s var(--ease), color .4s; }
.niveaux span.actif { background: var(--stylo); color: var(--vif); }
.lecons { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lecons li { display: flex; align-items: center; gap: 12px; font: .95rem var(--serif); padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; transition: border-color .4s, background .4s; }
.lecons li i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--encre-douce); flex: none; position: relative; transition: background .3s, border-color .3s; }
.lecons li.coche { border-color: var(--stylo); background: var(--stylo-clair); }
.lecons li.coche i { background: var(--stylo); border-color: var(--stylo); }
.lecons li.coche i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--vif); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.lecons li.grise { opacity: .45; }
.lecons small { margin-left: auto; font: .66rem var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.machine { margin: 0; white-space: pre-wrap; font-size: .8rem; line-height: 1.7; text-transform: none; letter-spacing: 0; min-height: 200px; color: #d8def0; }
.machine .cur { display: inline-block; width: .55em; height: 1.1em; background: var(--vif); vertical-align: -3px; animation: clign .9s steps(1) infinite; }
.machine .k { color: var(--vif); }
.fichiers { display: grid; gap: 12px; }
.fichier { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--trait); transform: translateY(20px); opacity: 0; }
.fichier__ico { width: 42px; height: 52px; border-radius: 6px; background: var(--stylo); color: var(--vif); display: grid; place-items: center; font: 700 1.2rem var(--serif); flex: none; }
.fichier__ico--pdf { font: 700 .78rem var(--sans); letter-spacing: .04em; }
.fichier div { flex: 1; min-width: 0; }
.fichier b { display: block; font: 600 .86rem var(--sans); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fichier small { color: var(--encre-douce); font-size: .78rem; }
.jauge { display: block; height: 3px; background: var(--papier-2); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.jauge i { display: block; height: 100%; width: 100%; background: var(--vif); transform: scaleX(0); transform-origin: left; }
.fichiers__ok { color: var(--stylo); opacity: 0; text-transform: none; letter-spacing: .02em; font-size: .8rem; padding: 4px 4px 0; }
@media (max-width: 860px) {
  .methode__piste { flex-direction: column; width: auto; align-items: stretch; }
  .methode__intro, .panneau { width: 100%; }
}

/* ═══════ 5. Formats — pile ═══════ */
.formats { padding: clamp(110px, 14vw, 180px) var(--gouttiere) 0; }
.formats__tete { max-width: 1180px; margin: 0 auto clamp(50px, 7vw, 90px); }
.pile { max-width: 1180px; margin: 0 auto; }
.carte-format {
  position: relative; min-height: min(78vh, 640px); border-radius: var(--r-l); overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 32px;
  padding: clamp(28px, 5vw, 72px); margin-bottom: 4vh;
  background: #fffefb; border: 1px solid var(--trait); box-shadow: 0 40px 80px -50px rgba(15, 29, 61, .5);
  transform-origin: center top; will-change: transform, filter;
}
.carte-format__meta { color: var(--stylo); margin-bottom: 18px; }
.carte-format h3 { font: 700 clamp(2.4rem, 5.6vw, 5rem)/1 var(--serif); letter-spacing: -.035em; margin-bottom: 20px; }
.carte-format p:not(.carte-format__meta) { font-size: 1.08rem; color: var(--encre-douce); max-width: 440px; }
.carte-format--vert { background: var(--stylo); color: var(--papier-nuit); border-color: transparent; }
.carte-format--vert .carte-format__meta { color: var(--vif); }
.carte-format--vert p:not(.carte-format__meta) { color: #c3cde8; }
.carte-format--clair { background: var(--stylo-clair); }
.carte-format--clair::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(18px, 3vw, 40px); width: 2px; background: var(--marge); opacity: .6; }
.carte-format__art svg { width: 100%; max-width: 380px; margin: 0 auto; overflow: visible; }
.art-horloge circle { fill: none; stroke: var(--encre); stroke-width: 1.5; }
.art-horloge .graduations line { stroke: var(--encre); stroke-width: 1.5; }
.art-horloge .aiguille { stroke: var(--marge); stroke-width: 3; stroke-linecap: round; }
.art-horloge .secteur { fill: rgba(31, 58, 138, .12); }
.art-thales .tri { fill: none; stroke: var(--papier-nuit); stroke-width: 2; stroke-linejoin: round; }
.art-thales .para { stroke: var(--vif); stroke-width: 3; stroke-linecap: round; }
.art-thales circle { fill: var(--vif); }
.art-thales text { font: italic 18px var(--serif); fill: var(--papier-nuit); }
.art-courbe .grille { stroke: rgba(31, 58, 138, .14); stroke-width: 1; }
.art-courbe .onde { fill: none; stroke: var(--stylo); stroke-width: 3; stroke-linecap: round; }
.art-courbe .curseur-courbe { fill: var(--correction); stroke: #fff; stroke-width: 2; }
@media (max-width: 860px) {
  .carte-format { grid-template-columns: 1fr; min-height: 0; }
  .carte-format__art svg { max-width: 220px; }
}

/* ═══════ 6. Ancrage ═══════ */
.ancrage { background: var(--nuit); color: var(--papier-nuit); padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; margin-top: clamp(80px, 10vw, 140px); }
.ancrage__tete, .ancrage__bas { max-width: 1180px; margin: 0 auto; padding: 0 var(--gouttiere); }
.defile { margin: clamp(56px, 8vw, 100px) 0; display: grid; gap: 10px; }
.defile__rang { display: flex; gap: 0; white-space: nowrap; width: max-content; font: italic 400 clamp(2.2rem, 6vw, 5.4rem)/1.15 var(--serif); letter-spacing: -.03em; will-change: transform; }
.defile__rang span { padding: 0 .45em; display: inline-flex; align-items: center; }
.defile__rang span::after { content: ""; width: .18em; height: .18em; border-radius: 50%; background: var(--vif); margin-left: .9em; flex: none; }
.defile__rang--or { color: var(--vif); font-style: normal; font-weight: 700; }
.defile__rang--or span::after { background: var(--papier-nuit); }
.ancrage__txt { font: 1.25rem/1.5 var(--serif); max-width: 640px; color: #c3cde8; margin-left: auto; }
.ancrage__txt strong { color: var(--papier-nuit); }

/* ═══════ 7. Règles ═══════ */
/* Ordre du 18/10/2026 : les règles suivent le prix (papier), les questions
 * suivent l'ancrage (nuit), le partage suit les formats. */
.regles { padding: 0 var(--gouttiere) clamp(110px, 14vw, 180px); }
.regles__tete, .regles__liste { max-width: 1180px; margin: 0 auto; }
.regles__intro { max-width: 620px; margin-top: 26px; color: var(--encre-douce); font-size: 1.08rem; }
.regles__liste { list-style: none; padding: 0; margin-top: clamp(50px, 7vw, 90px); display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--encre); }
.regles__liste li { display: flex; gap: 22px; padding: 34px 28px 34px 0; border-bottom: 1px solid var(--trait); }
.regles__liste li:nth-child(odd) { border-right: 1px solid var(--trait); }
.regles__liste li:nth-child(even) { padding-left: 28px; }
.regles__liste li > span { color: var(--correction-texte); font-size: .9rem; padding-top: 6px; min-width: 32px; }
.regles__liste h3 { font: 700 clamp(1.3rem, 2vw, 1.7rem)/1.15 var(--serif); letter-spacing: -.015em; margin-bottom: 10px; }
.regles__liste p { color: var(--encre-douce); }
@media (max-width: 860px) {
  .regles__liste { grid-template-columns: 1fr; }
  .regles__liste li:nth-child(odd) { border-right: 0; }
  .regles__liste li:nth-child(even) { padding-left: 0; }
}

.regle__statut { margin-top: 12px; font: .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-douce); }
.regle__statut--ok { color: var(--stylo); }
.regle__statut--ok::before { content: "✓ "; }

/* ═══════ 7 bis. État des matières ═══════ */
.etats { padding: 0 var(--gouttiere) clamp(110px, 14vw, 180px); }
.etats__liste { list-style: none; padding: 0; max-width: 1180px; margin: clamp(40px, 6vw, 70px) auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.etat-matiere { background: #fffefb; border: 1px solid var(--trait); border-radius: 18px; padding: 22px 22px 24px; }
.etat-matiere__nom { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.etat-matiere__nom h3 { font: 700 1.3rem/1.2 var(--serif); letter-spacing: -.01em; }
.etat-matiere__pastille { font-size: .64rem; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--trait); color: var(--encre-douce); white-space: nowrap; }
.etat-matiere--validee .etat-matiere__pastille { background: var(--stylo); border-color: var(--stylo); color: var(--papier-nuit); }
.etat-matiere--relue .etat-matiere__pastille { background: var(--stylo-clair); border-color: #c9d4f0; color: var(--stylo); }
.etat-matiere__chiffres { margin-top: 12px; color: var(--stylo); font-size: .68rem; }
.etat-matiere__txt { margin-top: 8px; color: var(--encre-douce); font-size: .95rem; }

/* ═══════ 7 ter. Prix ═══════ */
.prix { padding: 0 var(--gouttiere) clamp(110px, 14vw, 180px); }
.prix__grille { max-width: 1180px; margin: clamp(40px, 6vw, 70px) auto 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; }
.offre { background: #fffefb; border: 1px solid var(--trait); border-radius: var(--r-l); padding: clamp(24px, 3.4vw, 40px); }
.offre--pro { background: var(--stylo); border-color: var(--stylo); color: var(--papier-nuit); }
.offre__nom { color: var(--encre-douce); }
.offre--pro .offre__nom { color: var(--vif); }
.offre__prix { margin-top: 14px; font: 700 clamp(2.4rem, 5vw, 3.6rem)/1 var(--serif); letter-spacing: -.03em; color: var(--stylo); }
.offre--pro .offre__prix { color: var(--papier-nuit); }
.offre__prix small { font: italic 400 1.05rem var(--serif); letter-spacing: 0; }
.offre__detail { margin-top: 14px; color: var(--encre-douce); }
.offre--pro .offre__detail { color: #c3cde8; }
.offre__liste { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; border-top: 1px solid var(--trait); padding-top: 20px; }
.offre--pro .offre__liste { border-top-color: rgba(238, 241, 248, .18); }
.offre__liste li { padding-left: 24px; position: relative; }
.offre__liste li::before { content: "✓"; position: absolute; left: 0; color: var(--stylo); font-weight: 700; }
.offre--pro .offre__liste li::before { color: var(--vif); }
.prix__note { max-width: 1180px; margin: 22px auto 0; color: var(--encre-douce); }
.prix__note a { color: var(--stylo); }
@media (max-width: 760px) { .prix__grille { grid-template-columns: 1fr; } }

/* ═══════ 8. Comparaison ═══════ */
.comparer { padding: clamp(110px, 14vw, 180px) var(--gouttiere); }
.comparer__tete, .tableau-comparer { max-width: 1180px; margin: 0 auto; }
.tableau-comparer { margin-top: clamp(40px, 6vw, 70px); border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--trait); background: #fffefb; }
.tc__ligne { display: grid; grid-template-columns: 1fr 1fr 1.2fr; }
.tc__ligne > span { padding: 20px 24px; border-bottom: 1px solid var(--trait); }
.tc__ligne:last-child > span { border-bottom: 0; }
.tc__ligne > span:first-child { font: 700 1rem var(--serif); }
.tc__ligne > span:nth-child(2) { color: var(--encre); }
.tc__ligne > span:nth-child(3) { background: var(--stylo); color: var(--papier-nuit); border-bottom-color: rgba(238, 241, 248, .1); }
.tc__ligne--tete > span { font: .72rem var(--mono) !important; letter-spacing: .08em; text-transform: uppercase; text-decoration: none !important; color: var(--encre-douce); }
.tc__ligne--tete > span:nth-child(3) { color: var(--vif) !important; }
@media (max-width: 700px) {
  .tc__ligne { grid-template-columns: 1fr 1fr; }
  .tc__ligne > span:first-child { grid-column: 1 / -1; padding-bottom: 4px; border-bottom: 0; }
  .tc__ligne--tete > span:first-child { display: none; }
  .tc__ligne > span { padding: 14px 16px; font-size: .92rem; }
}

/* ═══════ 9. Questions ═══════ */
.questions { padding: clamp(110px, 14vw, 180px) var(--gouttiere); }
.questions__grille { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.accordeon { border-top: 1px solid var(--encre); }
.accordeon details { border-bottom: 1px solid var(--trait); }
.accordeon summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 700 clamp(1.1rem, 1.8vw, 1.35rem)/1.3 var(--serif); letter-spacing: -.01em; transition: color .3s; }
.accordeon summary::-webkit-details-marker { display: none; }
.accordeon summary:hover { color: var(--stylo); }
.accordeon summary i { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--trait); position: relative; flex: none; transition: transform .5s var(--ease-out), background .3s; }
.accordeon summary i::before, .accordeon summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; }
.accordeon summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease-out); }
.accordeon details[open] summary i { background: var(--vif); border-color: var(--vif); }
.accordeon details[open] summary i::after { transform: rotate(0); }
.accordeon p { padding: 0 50px 26px 0; color: var(--encre-douce); }
@media (max-width: 860px) { .questions__grille { grid-template-columns: 1fr; } }

/* ═══════ 10. Final ═══════ */
.final { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; background: var(--nuit); color: var(--papier-nuit); border-radius: var(--r-l) var(--r-l) 0 0; margin-top: -1px; }
.final__fond { position: absolute; inset: -12% 0; background: url(../assets/nuit.jpg) center/cover; will-change: transform; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 29, 61, .2), rgba(15, 29, 61, .85)); }
.final__contenu { position: relative; z-index: 1; padding: clamp(120px, 18vh, 200px) var(--gouttiere) clamp(70px, 10vh, 120px); max-width: 1180px; width: 100%; margin: 0 auto; }
.h-final { font: 700 clamp(2.8rem, 8.4vw, 8rem)/.95 var(--serif); letter-spacing: -.045em; }
.h-final span, .h-final em { display: block; }
.h-final em { font-weight: 400; color: var(--vif); text-decoration: underline; text-decoration-color: var(--correction-vif); text-decoration-thickness: 3px; text-underline-offset: .12em; text-decoration-skip-ink: auto; }
.final__txt { max-width: 520px; margin: 28px 0 34px; color: #c3cde8; font-size: 1.1rem; }
.final__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ═══════ Pied ═══════ */
.pied { background: var(--nuit); color: #c3cde8; padding: 0 var(--gouttiere) 24px; position: relative; overflow: hidden; }
.pied__grille { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 70px 0 50px; border-top: 1px solid rgba(238, 241, 248, .1); }
.nav__marque--pied { color: var(--papier-nuit); font-size: 1.4rem; }
.pied__slogan { margin-top: 18px; font: italic 1.05rem/1.5 var(--serif); }
.pied nav { display: grid; gap: 10px; align-content: start; }
.pied nav p { color: var(--vif); margin-bottom: 6px; }
.pied nav a { text-decoration: none; opacity: .8; transition: opacity .3s, transform .3s var(--ease); width: fit-content; }
.pied nav a:hover { opacity: 1; transform: translateY(-1px); }
.pied__bas { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #8c9bc4; position: relative; z-index: 1; }
.etat { display: flex; align-items: center; gap: 10px; }
.pied__geant { font: 700 clamp(5rem, 24vw, 22rem)/.8 var(--serif); letter-spacing: -.06em; color: rgba(238, 241, 248, .04); text-align: center; margin: 30px 0 -.12em; user-select: none; }
@media (max-width: 700px) {
  .pied__grille { grid-template-columns: 1fr 1fr; } .pied__grille > div:first-child { grid-column: 1 / -1; }
  /* Au doigt : 44 px de haut par lien, au lieu de 27. */
  .pied nav { gap: 0; }
  .pied nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── Mouvement réduit : tout reste lisible, rien ne bouge ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sans-mouvement .film { height: auto; }
.sans-mouvement .film__scene { position: relative; height: auto; min-height: 100vh; }
.sans-mouvement .film__encre, .sans-mouvement .film__table, .sans-mouvement .film__progres { display: none; }
.sans-mouvement .film__fin { position: relative; left: auto; right: auto; bottom: auto; padding: 0 var(--gouttiere) 80px; }
.sans-mouvement .souligne-rouge path { stroke-dashoffset: 0; }
.sans-mouvement .film__indice { display: none; } /* rien ne « s'écrit » sans animation */
.sans-mouvement .film__titre { position: relative; top: auto; bottom: auto; left: auto; right: auto; padding: 160px var(--gouttiere) 60px; }
.sans-mouvement .manifeste__texte .mot { opacity: 1; }
.sans-mouvement .fichier, .sans-mouvement .fichiers__ok { opacity: 1; transform: none; }
.sans-mouvement .curseur { display: none !important; }

/* Petits écrans en hauteur (360 × 640) : tout le hero tient sous le menu. */
@media (max-height: 720px) {
  .film__heure, .film__indice { display: none; }
  .h-hero--resultat { font-size: clamp(1.8rem, 3.6vw, 3.4rem); }
  .surtitre { margin-bottom: 14px; }
  .souligne-rouge { margin-top: 10px; }
  .film__sous-titre { margin-top: 12px; font-size: .95rem; }
  .film__cta { margin-top: 16px; }
}
/* Portables 1366 × 768 : l'horodatage décoratif touchait la ligne des matières ;
 * l'invitation à défiler alourdissait un hero déjà plein. */
@media (max-height: 900px) { .film__heure, .film__indice { display: none; } }

/* Film explicatif, petits écrans (en fin de fichier : une règle @media placée
 * avant la règle de base serait écrasée). Téléphone tenu droit : `landing.js`
 * charge la version 9:16 et pose `demo--vertical`. */
@media (max-width: 860px) {
  .demo__tete { grid-template-columns: 1fr; }
}
.demo--vertical .demo__cadre { aspect-ratio: 9 / 16; max-width: min(420px, 100%); max-height: 86vh; }
