/* =====================================================================
   Level Up Academy · Formation complète en orthodontie
   Feuille de styles unique. Mobile d’abord, puis ≥ 861px.
   ===================================================================== */

:root {
  --navy-950: #050B18;
  --navy-900: #081430;
  --navy-850: #0A1A3D;
  --navy-800: #0E2350;
  --navy-700: #16316B;
  --blue-600: #1B55F0;
  --blue-500: #2F6BFF;
  --blue-400: #5B93FF;
  --sky-300: #8CC4FF;
  --sky-200: #BCDDFF;
  --ice-50: #F3F8FF;
  --ink: #0A1733;
  --ink-2: #3E4D6B;
  --ink-3: #5F6E8C;
  --on-dark: #EAF2FF;
  --on-dark-2: #A9BCDD;
  --paper: #F4EEE3;
  --paper-ink: #2A2419;
  --paper-ink-2: #62584A;
  --paper-blue: #1F4FD1;
  --green: #0E7A3F;

  --f-display: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-text: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4.4vw, 48px);
  --topbar: 64px;
  --sheet: clamp(22px, 2.6vw, 36px);
  --r-md: 14px;
  --r-lg: 22px;
}

/* ---------- Polices (hébergées localement, sous-ensemble latin) ---------- */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 300 900; font-stretch: 100% 125%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  font-kerning: normal;
  color: var(--ink);
  background: var(--navy-900);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: var(--blue-500); color: #fff; }
:focus-visible { outline: 2px solid var(--focus, var(--blue-500)); outline-offset: 3px; border-radius: 6px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top .2s; }
.skip:focus { top: 12px; }

[data-theme="dark"]  { --soft: var(--on-dark-2); --accent: var(--sky-300); --focus: var(--sky-300); color: var(--on-dark); }
[data-theme="light"] { --soft: var(--ink-2); --accent: var(--blue-600); --focus: var(--blue-600); color: var(--ink); }
[data-theme="paper"] { --soft: var(--paper-ink-2); --accent: var(--paper-blue); --focus: var(--paper-blue); color: var(--paper-ink); }
[data-theme="sky"]   { --soft: #24406F; --accent: var(--navy-900); --focus: var(--navy-900); color: var(--navy-900); }

/* ---------- Typographie ---------- */
.kicker, .tag {
  display: inline-flex; align-items: center; gap: .6em;
  font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.tag .ico { width: 17px; height: 17px; }
.display {
  font-family: var(--f-display); font-weight: 820; font-stretch: 116%;
  text-transform: uppercase; letter-spacing: -.03em; line-height: .93;
}
.h-xxl { font-size: clamp(2.3rem, 1rem + 5.4vw, 6rem); }
.h-xl {
  font-family: var(--f-display); font-weight: 760; font-stretch: 104%;
  font-size: clamp(1.85rem, 1.15rem + 2.9vw, 3.5rem); line-height: 1.02; letter-spacing: -.026em;
  text-wrap: balance;
}
.lead { font-size: clamp(1.12rem, .98rem + .55vw, 1.4rem); line-height: 1.42; font-weight: 500; }
.mask .ln { display: block; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 54px; padding: 0 1.6em; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 .8rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: transform .14s var(--ease), background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn .ico { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--primary { background: var(--blue-500); color: #fff; box-shadow: 0 14px 30px -14px rgba(27, 85, 240, .8), inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: #fff; box-shadow: inset 0 0 0 1px rgba(188, 221, 255, .4); }
.btn--wa { background: var(--green); color: #fff; }
.btn--sm { min-height: 40px; padding: 0 1.2em; font-size: .7rem; }
.btn--lg { min-height: 60px; padding: 0 2em; font-size: .86rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #4079FF; box-shadow: 0 18px 36px -14px rgba(27, 85, 240, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
  .btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(188, 221, 255, .7); }
  .btn--wa:hover { background: #0C6A37; }
  .btn:hover .ico { transform: translateX(3px); }
}

/* ---------- Barre de progression & en-tête ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--blue-500); transform-origin: 0 50%; transform: scaleX(var(--page, 0)); }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 50; height: calc(var(--topbar) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  transition: background-color .35s, color .35s, box-shadow .35s;
}
.topbar.is-stuck { background: var(--tb-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--tb-line); }
.topbar[data-theme="dark"]  { --tb-bg: rgba(8, 20, 48, .64); --tb-line: rgba(140, 196, 255, .12); }
.topbar[data-theme="light"] { --tb-bg: rgba(255, 255, 255, .76); --tb-line: rgba(10, 23, 51, .08); }
.topbar[data-theme="paper"] { --tb-bg: rgba(244, 238, 227, .8); --tb-line: rgba(42, 36, 25, .1); }
.topbar[data-theme="sky"]   { --tb-bg: rgba(220, 238, 255, .7); --tb-line: rgba(8, 20, 48, .1); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 .8rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .15em; text-transform: uppercase; }
.brand b { font-weight: 800; }
.brand-mark { width: 28px; height: 28px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark path:first-child { stroke: var(--blue-500); }
.brand-mark path:last-child { stroke: currentColor; opacity: .5; }
.topbar .btn--primary { box-shadow: none; }

/* ---------- Questions de fin de chapitre + chapitres en « feuilles » ---------- */
.cliff {
  --edge: max(var(--gutter), calc((100% - 1240px) / 2));
  position: relative; background: var(--from);
  padding: clamp(52px, 8vw, 112px) 0 calc(clamp(60px, 9vw, 128px) + var(--sheet));
}
.cliff[data-theme="dark"]  { --cliff-em: #fff; }
.cliff[data-theme="light"] { --cliff-em: var(--navy-900); }
.cliff[data-theme="paper"] { --cliff-em: var(--paper-ink); }
.cliff[data-theme="sky"]   { --cliff-em: var(--navy-900); }
.cliff-q {
  max-width: 22ch; margin: 0 var(--gutter) 0 var(--edge);
  font: 380 clamp(1.75rem, 1rem + 3vw, 3.7rem)/1.1 var(--f-display);
  letter-spacing: -.028em; color: var(--cliff-ink); text-wrap: balance;
}
.cliff-q em { font-style: normal; font-weight: 760; color: var(--cliff-em); }
.cliff--note .eighty-note {
  max-width: 62ch; margin: 0 var(--gutter) clamp(28px, 4vw, 48px) var(--edge);
  font: 400 .76rem/1.55 var(--f-mono); letter-spacing: .01em; color: #7D90B5;
}
main > section:not(.hero) {
  position: relative; margin-top: calc(-1 * var(--sheet));
  border-radius: var(--sheet) var(--sheet) 0 0;
  box-shadow: 0 -18px 40px -26px rgba(3, 8, 20, .4);
}

/* ---------- Apparitions au défilement ---------- */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .9s var(--ease), translate 1s var(--ease); transition-delay: calc(var(--d, 0) * 1ms); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }
.js .mask[data-reveal] { opacity: 1; translate: none; }
.js .mask .ln { overflow-x: visible; overflow-y: clip; padding-bottom: .08em; margin-bottom: -.08em; }
.js .mask .ln > span { display: block; translate: 0 106%; transition: translate 1.15s var(--ease); transition-delay: calc(var(--l, 0) * 110ms); }
.js .mask.is-in .ln > span { translate: 0 0; }

/* ---------- Sections épinglées (sticky storytelling) ---------- */
.scrub { position: relative; height: calc(100svh + (var(--steps) - 1) * var(--sh)); --step: 0; --p: 0; }
.stage { position: sticky; top: 0; height: 100svh; overflow: clip; }

/* =====================================================================
   1. HERO
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; flex-direction: column; overflow: clip;
  color: var(--on-dark);
  background:
    radial-gradient(80% 70% at 84% 58%, rgba(47, 107, 255, .5) 0%, rgba(47, 107, 255, 0) 62%),
    linear-gradient(172deg, #081430 0%, #0A1A3D 62%, #0A1A3D 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: -8%;
  background-image: linear-gradient(rgba(140, 196, 255, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 196, 255, .075) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(58% 58% at 72% 46%, #000 10%, transparent 72%);
  mask-image: radial-gradient(58% 58% at 72% 46%, #000 10%, transparent 72%);
  translate: 0 calc(var(--hp, 0) * 90px);
}
.hero-inner { position: relative; flex: 1; display: grid; }
.hero-copy { position: relative; z-index: 2; }
.hero-title {
  margin-top: 14px;
  font: 820 clamp(2.3rem, .9rem + 3.9vw, 4.4rem)/.92 var(--f-display); font-stretch: 106%;
  letter-spacing: -.034em; text-transform: uppercase; text-wrap: balance;
}
.hero-title .ln { display: inline; }
.hero-schools {
  display: flex; flex-wrap: wrap; align-items: center; gap: .15em .5em; margin-top: clamp(14px, 2.2svh, 24px);
  font: 700 clamp(.82rem, .66rem + .6vw, 1.2rem)/1.2 var(--f-display); font-stretch: 125%;
  letter-spacing: .1em; text-transform: uppercase;
}
.hero-schools i { font-style: normal; font-family: var(--f-mono); font-weight: 400; font-size: 1.1em; line-height: .8; color: var(--sky-300); }
.hero-schools span:last-child { color: var(--sky-300); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px;
  font: 500 .72rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 14px; }
.hero-meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue-400); }
.hero-head {
  margin-top: clamp(18px, 3.2svh, 40px); max-width: 24ch;
  font: 620 clamp(1.25rem, .95rem + 1.1vw, 1.85rem)/1.2 var(--f-display); letter-spacing: -.015em;
}
.hero-head span { color: var(--sky-300); }
.hero-sub { margin-top: 12px; max-width: 46ch; color: var(--on-dark-2); font-size: clamp(.97rem, .92rem + .2vw, 1.08rem); line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(20px, 3.2svh, 36px); }

.hero-visual { position: relative; z-index: 1; pointer-events: none; }
.plane { position: absolute; inset: 0; transition: translate .5s var(--ease), scale .5s var(--ease); }
.plane svg { width: 100%; height: 100%; overflow: visible; }
.plane--teeth { translate: calc(var(--mx, 0) * -6px) calc(var(--hp, 0) * 80px + var(--my, 0) * -6px); scale: calc(1 - var(--hp, 0) * .06); }
.plane--wire  { translate: calc(var(--mx, 0) * 10px) calc(var(--hp, 0) * -55px + var(--my, 0) * 10px); }
.plane--notes { translate: calc(var(--mx, 0) * 18px) calc(var(--hp, 0) * -120px + var(--my, 0) * 18px); opacity: calc(1 - var(--hp, 0) * 2.2); }
.plane--teeth .teeth path { fill: rgba(22, 52, 118, .55); stroke: rgba(140, 196, 255, .8); stroke-width: 1.1; }
.plane--teeth .details path { fill: none; stroke: rgba(140, 196, 255, .42); stroke-width: .8; stroke-linecap: round; }
.plane--wire .wire { fill: none; stroke: #E8EFFA; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.plane--wire .br rect { fill: url(#steel); stroke: #0A1A3D; stroke-width: .8; }
.plane--wire .br path { stroke: #0A1A3D; stroke-width: 1.3; opacity: .6; }
.leaders path { fill: none; stroke: rgba(188, 221, 255, .5); stroke-width: 1; }
.note {
  position: absolute; left: var(--x); top: var(--y); transform: translate(6px, -50%);
  font: 500 .64rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sky-200); white-space: nowrap;
}
.note--l { transform: translate(calc(-100% - 6px), -50%); }
.note--c { transform: translate(-50%, 0); color: var(--on-dark-2); opacity: .75; }

/* entrée du hero */
.js .hero-copy > * { opacity: 0; translate: 0 18px; animation: rise 1s var(--ease) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: .05s; }
.js .hero-copy > :nth-child(2) { animation-delay: .12s; }
.js .hero-copy > :nth-child(3) { animation-delay: .24s; }
.js .hero-copy > :nth-child(4) { animation-delay: .32s; }
.js .hero-copy > :nth-child(5) { animation-delay: .42s; }
.js .hero-copy > :nth-child(6) { animation-delay: .5s; }
.js .hero-copy > :nth-child(7) { animation-delay: .58s; }
.js .hero .teeth { opacity: 0; animation: fadeIn 1.2s var(--ease) .15s forwards; }
.js .hero .details { opacity: 0; animation: fadeIn 1.2s var(--ease) .6s forwards; }
.js .hero .wire { stroke-dasharray: 1px 2px; stroke-dashoffset: 1px; animation: draw 2.1s var(--ease-io) .55s forwards; }
.js .hero .br { opacity: 0; animation: fadeIn .5s var(--ease) forwards; animation-delay: calc(.8s + var(--o) * 75ms); }
.js .plane--notes > * { opacity: 0; animation: fadeIn 1s var(--ease) 2.3s forwards; }
@keyframes rise { to { opacity: 1; translate: 0 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.benefits { position: relative; z-index: 2; overflow: hidden; border-top: 1px solid rgba(140, 196, 255, .14); background: rgba(5, 11, 24, .35); }
.benefits-track {
  display: flex; width: max-content; padding-block: 17px;
  font: 650 .74rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase;
}
.benefits li { display: inline-flex; align-items: center; gap: 10px; padding-right: 34px; white-space: nowrap; }
.benefits .ico { width: 18px; height: 18px; color: var(--sky-300); }
.benefits b { color: var(--sky-300); font-weight: 800; }
.benefits-track.is-looped { animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =====================================================================
   2. LE DÉFI (blanc)
   ===================================================================== */
.problem { background: #fff; color: var(--ink); }
.problem .stage { display: flex; align-items: center; padding-top: calc(var(--topbar) - 8px); }
.problem-grid { display: grid; gap: clamp(18px, 3svh, 32px); }
.problem-head .h-xl { font-size: clamp(1.9rem, 1.05rem + 3.4vw, 4rem); color: var(--navy-900); max-width: 14ch; }
.problem-deco { display: none; }
.problem-lead { margin-top: 14px; max-width: 38ch; color: var(--ink-2); font-size: clamp(.98rem, .9rem + .4vw, 1.2rem); line-height: 1.5; }
.questions { position: relative; display: grid; gap: clamp(4px, 1.3svh, 16px); padding-left: 32px; --fin: clamp(0, var(--step) - 6, 1); }
.questions li {
  --vis: clamp(0, var(--step) - var(--i) + 1, 1);
  --past: clamp(0, var(--step) - var(--i), 1);
  --cur: calc(var(--vis) * (1 - var(--past)) * (1 - var(--fin)));
  position: relative;
  font: 720 clamp(1.22rem, .7rem + 2.2vw, 2.6rem)/1.1 var(--f-display); letter-spacing: -.022em;
  opacity: calc(.08 + .92 * var(--vis) * (1 - .64 * var(--past) * (1 - var(--fin))));
  translate: 0 calc((1 - var(--vis)) * 26px);
  color: color-mix(in srgb, var(--blue-600) calc(var(--cur) * 100%), var(--navy-900));
  transition: opacity .55s var(--ease), translate .7s var(--ease), color .4s;
}
.questions li::before {
  content: ""; position: absolute; left: -32px; top: .36em; width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid currentColor; background: #fff; transition: background-color .4s, border-color .4s;
}
.questions::before {
  content: ""; position: absolute; left: 4.5px; top: .7em; bottom: .7em; width: 2px; background: var(--blue-600);
  transform-origin: top; transform: scaleY(var(--fin)); transition: transform 1.1s var(--ease);
}
.problem[data-step="7"] .questions li::before { background: var(--blue-600); border-color: var(--blue-600); }
.problem-end {
  --pe: clamp(0, var(--step) - 6, 1);
  margin-top: clamp(16px, 3.4svh, 40px); padding-left: 32px; max-width: 34ch;
  font: 500 clamp(1.05rem, .9rem + .6vw, 1.5rem)/1.35 var(--f-display); color: var(--ink-2);
  opacity: var(--pe); translate: 0 calc((1 - var(--pe)) * 18px);
  transition: opacity .7s var(--ease), translate .8s var(--ease);
}
.problem-end strong { color: var(--navy-900); font-weight: 780; }

/* =====================================================================
   3. PLUSIEURS ÉCOLES (navy → bleu électrique au DIGITAL)
   ===================================================================== */
.schools {
  background: var(--navy-900); color: var(--on-dark);
  --on1: clamp(0, min(var(--step), 2 - var(--step)), 1);
  --on2: clamp(0, min(var(--step) - 1, 3 - var(--step)), 1);
  --on3: clamp(0, min(var(--step) - 2, 4 - var(--step)), 1);
  --on4: clamp(0, min(var(--step) - 3, 5 - var(--step)), 1);
  --q: clamp(0, 1 - var(--step), 1);
  --mid: clamp(0, min(var(--step), 5 - var(--step)), 1);
  --conv: clamp(0, var(--step) - 4, 1);
  --fin: clamp(0, var(--step) - 5, 1);
  --tip: 0deg;
}
.schools[data-step="1"] { --tip: 4deg; }
.schools[data-step="2"] { --tip: 11deg; }
.schools[data-step="3"] { --tip: 7deg; }
.schools .stage { padding-top: var(--topbar); }
.schools-digital {
  position: absolute; inset: 0;
  background: radial-gradient(85% 75% at 62% 50%, #3C7BFF 0%, #1B55F0 45%, #0B2A95 100%);
  opacity: var(--on4); transition: opacity .9s var(--ease);
}
.schools-layout { position: relative; height: 100%; display: grid; grid-template: 1fr / 1fr; }
.schools-layout > * { grid-area: 1 / 1; }
.schools-q {
  align-self: center; max-width: 12ch;
  font: 820 clamp(2.1rem, 1rem + 4.6vw, 5.4rem)/.95 var(--f-display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -.03em; text-wrap: balance;
  opacity: var(--q); translate: 0 calc((1 - var(--q)) * -40px);
  transition: opacity .6s var(--ease), translate .8s var(--ease);
}
.schools-q span { color: var(--sky-300); }
.schools-label {
  align-self: start; margin-top: clamp(10px, 3svh, 32px);
  font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2);
  opacity: var(--mid); transition: opacity .5s;
}
.schools-words { align-self: center; display: grid; }
.school { grid-area: 1 / 1; --on: 0; opacity: var(--on); transition: opacity .6s var(--ease); }
.school:nth-child(1) { --on: var(--on1); }
.school:nth-child(2) { --on: var(--on2); }
.school:nth-child(3) { --on: var(--on3); }
.school:nth-child(4) { --on: var(--on4); }
.school-name {
  font: 860 clamp(3.6rem, 1rem + 12vw, 11rem)/.84 var(--f-display); font-stretch: 125%;
  letter-spacing: -.045em; text-transform: uppercase; color: #fff;
  clip-path: inset(calc((1 - var(--on)) * 100%) 0 -10% 0);
  transition: clip-path .9s var(--ease);
}
.school-name i { font-style: normal; font-weight: 250; color: var(--sky-200); margin-right: .04em; }
.school-desc {
  margin-top: clamp(14px, 2.4svh, 26px); max-width: 30ch;
  font-size: clamp(1rem, .9rem + .5vw, 1.3rem); line-height: 1.45; color: var(--on-dark-2);
  translate: 0 calc((1 - var(--on)) * 20px); transition: translate .8s var(--ease);
}
.school--digital .school-desc { color: #E6EEFF; }

.schools-converge { align-self: center; display: grid; justify-items: center; text-align: center; opacity: var(--conv); transition: opacity .6s; }
.converge-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .05em .3em;
  font: 860 clamp(1.5rem, .55rem + 3.05vw, 4rem)/1 var(--f-display); font-stretch: 125%;
  text-transform: uppercase; letter-spacing: -.02em;
  translate: 0 calc(var(--fin) * -4svh); transition: translate .9s var(--ease);
}
.converge-row span { display: inline-block; translate: calc((1 - var(--conv)) * var(--dx)) 0; transition: translate 1.2s var(--ease); }
.converge-row span:last-child { color: var(--sky-300); }
.converge-row i { font-style: normal; font-family: var(--f-mono); font-weight: 400; font-size: .8em; color: var(--sky-300); }
.converge-line, .schools-final { grid-row: 2; grid-column: 1; }
.converge-line {
  margin-top: clamp(16px, 3svh, 32px);
  font: 500 clamp(1rem, .85rem + .7vw, 1.5rem)/1.3 var(--f-display); color: var(--on-dark-2);
  opacity: calc(var(--conv) * (1 - var(--fin))); transition: opacity .6s;
}
.converge-line strong {
  display: block; margin-top: 12px; color: #fff;
  font: 860 clamp(1.5rem, .9rem + 2.6vw, 3.4rem)/1 var(--f-display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -.015em; text-wrap: balance;
}
.schools-final { margin-top: clamp(16px, 3svh, 32px); opacity: var(--fin); translate: 0 calc((1 - var(--fin)) * 24px); transition: opacity .7s var(--ease), translate .8s var(--ease); }
.schools-final .h-xl span { display: block; color: var(--sky-300); }
.schools-body { margin: 18px auto 0; max-width: 50ch; color: var(--on-dark-2); }

.schools-ticks {
  align-self: end; justify-self: center; display: flex; gap: clamp(14px, 3vw, 36px); margin-bottom: clamp(24px, 5svh, 48px);
  font: 500 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase;
  opacity: var(--mid); transition: opacity .5s;
}
.schools-ticks li { --on: 0; position: relative; padding-top: 12px; opacity: calc(.45 + .55 * var(--on)); transition: opacity .5s; }
.schools-ticks li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: currentColor; transform-origin: left; transform: scaleX(calc(.3 + .7 * var(--on))); transition: transform .6s var(--ease); }
.schools-ticks li:nth-child(1) { --on: var(--on1); }
.schools-ticks li:nth-child(2) { --on: var(--on2); }
.schools-ticks li:nth-child(3) { --on: var(--on3); }
.schools-ticks li:nth-child(4) { --on: var(--on4); }

.bracket-fig {
  position: absolute; left: 50%; top: 52%; width: min(96vw, 440px);
  transform: translate(-50%, -50%);
  opacity: calc((var(--mid) * .95 + var(--q) * .3) * .34);
  transition: opacity .8s var(--ease);
}
.bracket-fig svg { width: 100%; height: auto; overflow: visible; }
.bk-ref { stroke: rgba(188, 221, 255, .3); stroke-width: 1.5; stroke-dasharray: 4 6; }
.bk-tooth { transform-box: view-box; transform-origin: 120px 184px; transform: rotate(var(--tip)); transition: transform 1.2s var(--ease); }
.bk-gum-line { fill: none; stroke: rgba(188, 221, 255, .5); stroke-width: 1.6; stroke-linecap: round; }
.bk-root { fill: rgba(140, 196, 255, .04); stroke: rgba(188, 221, 255, .4); stroke-width: 1.6; stroke-dasharray: 4 5; }
.bk-canal { fill: none; stroke: rgba(188, 221, 255, .22); stroke-width: 1.2; }
.bk-crown { fill: url(#bk-enamel); stroke: var(--sky-200); stroke-width: 2.2; fill-opacity: calc(1 - var(--on4)); transition: fill-opacity .6s; }
.bk-lobe { fill: none; stroke: rgba(188, 221, 255, .22); stroke-width: 1.4; stroke-linecap: round; }
.bk-incisal { fill: none; stroke: rgba(188, 221, 255, .4); stroke-width: 1.3; stroke-linecap: round; }
.bk-mesh { opacity: var(--on4); transition: opacity .8s; }
.bk-axis { stroke: var(--sky-300); stroke-width: 1.6; stroke-dasharray: 7 6; }
.bk-pad { fill: #6F83A8; fill-opacity: calc(1 - var(--on4) * .85); transition: fill-opacity .6s; }
.bk-pad-mesh { opacity: calc(.55 - var(--on4) * .55); }
.bk-core { fill: #A9B8D0; stroke: #0A1A3D; stroke-width: 1; fill-opacity: calc(1 - var(--on4) * .85); transition: fill-opacity .6s; }
.bk-wing { fill: url(#bk-steel); stroke: #0A1A3D; stroke-width: 1.1; fill-opacity: calc(1 - var(--on4) * .9); transition: fill-opacity .6s; }
.schools[data-step="4"] .bk-wing, .schools[data-step="4"] .bk-core { stroke: #fff; }
.bk-undercut { stroke: #0A1A3D; stroke-width: 1.2; opacity: .45; }
.bk-id { fill: var(--blue-500); }
.bk-lig { fill: none; stroke: var(--blue-500); stroke-width: 6; }
.schools[data-step="4"] .bk-lig { stroke: #fff; stroke-dasharray: 3 5; stroke-width: 2.5; }
.bk-slot { fill: #0A1A3D; }
.bk-wire { fill: url(#bk-wire); stroke: #0A1A3D; stroke-width: .8; }
.bk-wire-hl { stroke: #fff; stroke-width: 1.2; opacity: .7; }
.bk-caption {
  display: flex; justify-content: center; gap: 18px; margin-top: 10px;
  font: 500 .66rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-200);
}

/* =====================================================================
   4. +80 % (moment fort, quasi-noir)
   ===================================================================== */
.eighty {
  background: var(--navy-950); color: var(--on-dark);
  --s1: clamp(0, var(--step), 1);
  --s2: clamp(0, var(--step) - 1, 1);
  --s3: clamp(0, var(--step) - 2, 1);
  --s4: clamp(0, var(--step) - 3, 1);
  --c: 0; --v: 0; --ny: 3svh; --ns: 1;
}
.eighty[data-step="2"], .eighty[data-step="3"] { --ny: -19svh; --ns: .5; }
.eighty[data-step="4"] { --ny: 0svh; --ns: 1.3; }
.eighty-glow { position: absolute; inset: 0; background: radial-gradient(48% 42% at 50% 47%, rgba(47, 107, 255, .3), transparent 72%); opacity: calc(.35 + .65 * var(--c)); }
.eighty-ring, .eighty-num-wrap {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) translateY(var(--ny)) scale(var(--ns));
  transition: transform 1.1s var(--ease), opacity .8s var(--ease);
}
.eighty-ring { width: min(92vw, 76svh); aspect-ratio: 1; opacity: calc(1 - var(--s4) * .9); }
.eighty-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(47, 107, 255, 0) calc(var(--v) * 3.6deg - 70deg), rgba(47, 107, 255, .34) calc(var(--v) * 3.6deg), transparent calc(var(--v) * 3.6deg + .4deg));
  -webkit-mask: radial-gradient(closest-side, transparent 51%, #000 52%, #000 88%, transparent 88.5%);
  mask: radial-gradient(closest-side, transparent 51%, #000 52%, #000 88%, transparent 88.5%);
}
.dial-ring { fill: none; stroke: rgba(140, 196, 255, .12); stroke-width: 1; }
.dial-scale { fill: none; stroke: rgba(140, 196, 255, .28); stroke-width: 5; stroke-dasharray: .5 3.5; transform-box: view-box; transform-origin: 200px 200px; transform: rotate(calc(var(--v) * -1.5deg)); }
.dial-track { fill: none; stroke: rgba(140, 196, 255, .08); stroke-width: 1.5; }
.dial-arc { fill: none; stroke: var(--blue-500); stroke-width: 1.5; stroke-dasharray: 100px 200px; stroke-dashoffset: calc(100px - var(--v) * 1px); transform-box: view-box; transform-origin: 200px 200px; transform: rotate(-90deg); }
.dial-ticks line { --lit: clamp(0, var(--v) - var(--i), 1); stroke: color-mix(in srgb, var(--sky-300) calc(var(--lit) * 100%), #3D5480); stroke-opacity: calc(.35 + .65 * var(--lit)); stroke-width: 1.1; stroke-linecap: round; }
.dial-ticks .t5 { stroke-width: 1.5; }
.dial-ticks .t10 { stroke-width: 2.2; stroke: color-mix(in srgb, #fff calc(var(--lit) * 100%), #3D5480); }
.dial-labels text { --lit: clamp(0, var(--v) - var(--i) + 1, 1); font: 500 9.5px var(--f-mono); text-anchor: middle; fill: var(--sky-300); fill-opacity: calc(.3 + .7 * var(--lit)); }
.dial-labels .l80 { fill: #fff; font-weight: 600; }
.dial-needle { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(calc(var(--v) * 3.6deg)); }
.dial-needle line { stroke: #fff; stroke-width: 1.5; }
.dial-tip { fill: #fff; stroke: var(--blue-500); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.eighty.is-full .dial-tip { animation: tipPulse 2.2s ease-in-out infinite; }
@keyframes tipPulse { 50% { transform: scale(1.6); } }
.eighty-num-wrap { opacity: calc(1 - var(--s4) * .92); }
.eighty-num {
  position: relative; white-space: nowrap; color: #fff;
  font: 860 min(26vw, 34svh)/.8 var(--f-display); font-stretch: 116%; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.e-plus, .e-pct { position: absolute; top: 0; color: var(--sky-300); opacity: var(--s1); transition: opacity .6s var(--ease), translate .9s var(--ease); }
.e-plus { right: 100%; font-weight: 300; translate: calc((1 - var(--s1)) * .3em) 0; }
.e-pct { left: 100%; top: .06em; font-size: .6em; translate: calc((1 - var(--s1)) * -.3em) 0; }
.eighty-b {
  position: absolute; left: 50%; top: 50%; width: min(100% - 2 * var(--gutter), 1160px);
  transform: translate(-50%, 4svh); display: grid; justify-items: center; text-align: center;
}
.eighty-caption {
  grid-row: 1; max-width: 22ch;
  font: 820 clamp(1.15rem, .7rem + 1.8vw, 2.3rem)/1.06 var(--f-display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -.01em; text-wrap: balance;
  opacity: calc(var(--s2) * (1 - var(--s4))); translate: 0 calc((1 - var(--s2)) * 24px);
  transition: opacity .6s var(--ease), translate .8s var(--ease);
}
.eighty-support, .eighty-verbs { grid-row: 2; grid-column: 1; }
.eighty-support {
  margin-top: 18px; max-width: 44ch; color: var(--on-dark-2); font-size: clamp(1rem, .92rem + .35vw, 1.2rem);
  opacity: calc(var(--s2) * (1 - var(--s3))); transition: opacity .6s var(--ease);
}
.eighty-verbs { margin-top: clamp(18px, 3svh, 30px); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 0; opacity: calc(1 - var(--s4)); transition: opacity .5s; }
.eighty-verbs li {
  display: inline-flex; align-items: center;
  font: 720 clamp(.86rem, .66rem + .62vw, 1.2rem)/1 var(--f-display); font-stretch: 118%; letter-spacing: .06em; text-transform: uppercase;
  opacity: var(--s3); translate: 0 calc((1 - var(--s3)) * 16px);
  transition: opacity .5s var(--ease), translate .6s var(--ease); transition-delay: calc(var(--k) * 150ms);
}
.eighty-verbs li + li::before { content: ""; width: clamp(12px, 2.6vw, 36px); height: 1px; background: rgba(140, 196, 255, .55); margin-inline: clamp(8px, 1.2vw, 14px); }
.eighty-verbs li:last-child { color: var(--sky-300); }
.eighty-final {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(100% - 2 * var(--gutter), 1100px); text-align: center;
  opacity: var(--s4); transition: opacity .8s var(--ease);
}
.eighty-final span { display: block; font: 350 clamp(1.3rem, .9rem + 1.8vw, 2.4rem)/1.2 var(--f-display); color: var(--on-dark-2); translate: 0 calc((1 - var(--s4)) * 20px); transition: translate .9s var(--ease); }
.eighty-final strong {
  display: block; margin-top: 14px; color: #fff;
  font: 860 clamp(2.1rem, .9rem + 5.2vw, 5.8rem)/.94 var(--f-display); font-stretch: 112%;
  text-transform: uppercase; letter-spacing: -.03em; text-wrap: balance;
  clip-path: inset(0 0 calc((1 - var(--s4)) * 100%) 0); transition: clip-path 1.1s var(--ease) .15s;
}

/* =====================================================================
   5. LES 5 MODULES (blanc / glace)
   ===================================================================== */
.program { background: linear-gradient(180deg, #fff 0%, var(--ice-50) 100%); color: var(--ink); padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.program-layout { display: grid; gap: 40px; }
.program-head .h-xxl { color: var(--navy-900); }
.program-head .ln:last-child { color: var(--blue-600); }
.program-sub { margin-top: 20px; max-width: 38ch; color: var(--ink-2); font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); }
.days { display: flex; gap: 10px; margin-top: 28px; }
.days-g { display: flex; gap: 4px; }
.days-g i { width: clamp(11px, 1.3vw, 16px); height: 38px; border-radius: 4px; background: #D6E4F7; transition: background-color .4s, transform .5s var(--ease); }
.days-g.is-done i { background: var(--navy-800); }
.days-g.is-on i { background: var(--blue-500); transform: scaleY(1.18); }
.days-legend { margin-top: 14px; font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.days-legend span { color: var(--blue-600); }

.modules-wrap { --mw: 60px; position: relative; padding-left: var(--mw); }
.modules { position: relative; }
.modules::before, .modules::after { content: ""; position: absolute; left: calc(20px - var(--mw)); top: 20px; bottom: 40px; width: 3px; border-radius: 2px; }
.modules::before { background: repeating-linear-gradient(180deg, #C9D8EE 0 6px, transparent 6px 12px); }
.modules::after { background: linear-gradient(90deg, #7E93B6, #F6F9FF 45%, #7E93B6); transform-origin: top; transform: scaleY(var(--lp, 0)); }
.module { position: relative; padding-block: 34px; border-top: 1px solid rgba(10, 23, 51, .1); display: grid; gap: 6px; }
.module:first-child { border-top: 0; padding-top: 0; }
.module-node {
  position: absolute; left: -60px; top: 30px; width: 43px; height: 43px; display: grid; place-items: center;
  border-radius: 12px; background: #fff; border: 1px solid #CAD8EC; color: var(--ink-3);
  transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s, transform .35s var(--ease);
}
.module:first-child .module-node { top: -4px; }
.module-node .ico { width: 22px; height: 22px; }
.module.is-lit .module-node { background: var(--navy-900); border-color: var(--navy-900); color: var(--sky-300); box-shadow: 0 10px 24px -12px rgba(8, 20, 48, .6); }
.module-num {
  font: 820 clamp(2.4rem, 1.6rem + 3vw, 5rem)/.8 var(--f-display); font-stretch: 118%; letter-spacing: -.05em;
  color: transparent; -webkit-text-stroke: 1.5px #B4C6E2; transition: -webkit-text-stroke-color .4s;
}
.module.is-lit .module-num { -webkit-text-stroke-color: var(--blue-600); }
.module-meta { margin-top: 10px; font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.module-dates::before { content: " · "; }
.module h3 { margin-top: 6px; font: 760 clamp(1.35rem, 1.05rem + 1.1vw, 2.05rem)/1.1 var(--f-display); letter-spacing: -.02em; color: var(--navy-900); text-wrap: balance; }
.module-focus {
  justify-self: start; margin-top: 8px; padding: 8px 12px; border-radius: 999px; background: #E3EDFF; color: var(--blue-600);
  font: 650 .72rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase;
}
.module-summary { margin-top: 6px; max-width: 52ch; color: var(--ink-2); }
.module-topics { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.module-topics li { font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid #CAD8EC; color: var(--ink-2); }
.program-note { margin-top: 12px; font: 500 .74rem/1.5 var(--f-mono); color: var(--ink-3); }

/* =====================================================================
   6. LE CYCLE (bleu glace)
   ===================================================================== */
.loop { background: #E6F1FF; color: var(--ink); padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.loop-layout { display: grid; gap: 36px; align-items: center; }
.loop .h-xxl { color: var(--navy-900); }
.loop .ln:last-child { color: var(--blue-600); }
.loop-sub { margin-top: 20px; font: 700 clamp(1.1rem, .95rem + .6vw, 1.45rem)/1.3 var(--f-display); color: var(--navy-900); max-width: 30ch; }
.loop-body { margin-top: 12px; max-width: 44ch; color: var(--ink-2); }
.cycle { position: relative; width: min(100%, 560px); aspect-ratio: 1; justify-self: center; }
.cycle-disc { position: absolute; inset: 24%; }
.cycle-disc svg { width: 100%; height: 100%; overflow: visible; }
.cycle-track { fill: none; stroke: #9DBDEA; stroke-width: 2; stroke-dasharray: 3 7; }
.cycle-marks circle { fill: #fff; stroke: #8FB2E6; stroke-width: 2; }
.cycle-runner { transform-box: view-box; transform-origin: 200px 200px; transform: rotate(calc(var(--cur) * 45deg)); transition: transform 1.1s var(--ease); }
.cycle-runner circle { fill: var(--blue-500); stroke: #fff; stroke-width: 5; }
.cycle-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.cycle-center strong { font: 860 clamp(2.4rem, 1.6rem + 3.4vw, 5rem)/.9 var(--f-display); font-stretch: 118%; letter-spacing: -.04em; color: var(--navy-900); }
.cycle-center span { margin-top: 6px; font: 500 .66rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.cycle-steps li {
  --a: calc(var(--k) * 45deg - 90deg);
  position: absolute; left: calc(50% + cos(var(--a)) * 30%); top: calc(50% + sin(var(--a)) * 30%);
  transform: translate(calc(-50% + cos(var(--a)) * 50%), -50%);
  max-width: 7.5em; padding: 6px 9px; border-radius: 10px; text-align: center;
  font: 680 .64rem/1.15 var(--f-display); font-stretch: 106%; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2);
  transition: color .3s, background-color .3s;
}
.cycle-steps li.is-on { background: var(--navy-900); color: #fff; }

/* =====================================================================
   7. SUIVI WHATSAPP (clair, accent vert)
   ===================================================================== */
.wa { background: #EFF7F2; color: var(--ink); padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.wa-layout { display: grid; gap: 48px; align-items: center; }
.tag--wa { color: var(--green); }
.wa .h-xl { margin-top: 16px; font-size: clamp(2rem, 1.05rem + 3.4vw, 4rem); color: var(--navy-900); }
.wa-accent { color: var(--green); }
.wa .lead { margin-top: 20px; color: var(--navy-900); max-width: 30ch; }
.wa-body { margin-top: 12px; max-width: 48ch; color: var(--ink-2); }
.wa-flow { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; }
.wa-flow li { position: relative; display: inline-flex; align-items: center; font: 650 .7rem/1 var(--f-display); font-stretch: 108%; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.wa-flow li + li { margin-left: 30px; }
.wa-flow li + li::before { content: ""; position: absolute; left: -23px; top: 50%; width: 16px; height: 1px; background: #8FB19D; }
.wa-flow li.is-wa { color: #fff; background: var(--green); padding: 8px 12px; border-radius: 999px; }

.phone { justify-self: center; width: min(86vw, 330px); }
.phone-frame {
  position: relative; aspect-ratio: 9 / 18.6; border-radius: 46px; background: #EFEAE2; border: 11px solid #0B1220;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(8, 20, 48, .45), 0 14px 26px -14px rgba(8, 20, 48, .35);
}
.phone-notch { position: absolute; top: 8px; left: 50%; width: 32%; height: 22px; border-radius: 14px; background: #0B1220; transform: translateX(-50%); z-index: 3; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 40px 14px 12px; background: var(--navy-900); color: #fff; }
.chat-head b { display: block; font-size: .8rem; line-height: 1.2; }
.chat-head small { font-size: .66rem; color: var(--on-dark-2); }
.chat-avatar { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--navy-700); display: grid; place-items: center; }
.chat-avatar svg { width: 20px; height: 20px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chat-avatar path:first-child { stroke: var(--blue-400); }
.chat-avatar path:last-child { stroke: #fff; opacity: .6; }
.chat-body {
  flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 12px 10px; overflow: hidden;
  background-image: radial-gradient(rgba(10, 23, 51, .06) 1px, transparent 1px); background-size: 14px 14px;
}
.msg { position: relative; max-width: 84%; padding: 7px 10px 17px; border-radius: 12px; font-size: .76rem; line-height: 1.35; color: #111B21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.msg time { position: absolute; right: 8px; bottom: 3px; font-size: .58rem; color: #667781; }
.msg--out { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 4px; }
.msg--in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.msg--in b { display: block; margin-bottom: 2px; font-size: .68rem; color: var(--green); }
.msg--sys { align-self: center; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, .85); font-size: .64rem; color: #54656F; box-shadow: none; }
.msg--media { display: flex; flex-direction: column; gap: 6px; }
.media-thumb { display: block; width: 168px; aspect-ratio: 4 / 3; border-radius: 8px; background: var(--navy-850); color: var(--sky-300); padding: 6px; }
.media-thumb svg { width: 100%; height: 100%; }
.msg--typing { align-self: flex-start; display: flex; gap: 4px; padding: 11px 12px; background: #fff; }
.msg--typing span { width: 6px; height: 6px; border-radius: 50%; background: #8696A0; animation: typing 1.2s infinite; }
.msg--typing span:nth-child(2) { animation-delay: .15s; }
.msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .35; } 30% { opacity: 1; } }
.chat-input { display: flex; align-items: center; gap: 8px; margin: 6px 8px 10px; }
.chat-input span { flex: 1; padding: 9px 14px; border-radius: 20px; background: #fff; font-size: .7rem; color: #8696A0; }
.chat-input i { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--green); }
.phone figcaption { margin-top: 14px; text-align: center; font: 500 .66rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.js .phone .msg { opacity: 0; translate: 0 10px; }
.js .phone.is-in .msg { animation: rise .5s var(--ease) forwards; animation-delay: calc(.5s + var(--i) * .8s); }

/* =====================================================================
   8. REPLAY (cinématique sombre)
   ===================================================================== */
.replay { position: relative; overflow: clip; background: #04070F; color: var(--on-dark); padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.replay::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 40% at 50% 40%, rgba(47, 107, 255, .16), transparent 70%); }
.replay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.replay > .wrap { position: relative; z-index: 1; }
.replay-intro { text-align: center; }
.replay .h-xxl { color: #fff; }
.replay-normal { margin-top: 16px; font: 860 clamp(2.2rem, 1rem + 5vw, 5.6rem)/1 var(--f-display); font-stretch: 118%; text-transform: uppercase; letter-spacing: -.03em; color: var(--sky-300); }
.replay-lead { margin-top: 16px; font-size: clamp(1.05rem, .95rem + .5vw, 1.35rem); color: var(--on-dark-2); }
.player { margin-top: clamp(48px, 8vw, 96px); }
.player-screen { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-950); box-shadow: 0 50px 100px -40px rgba(47, 107, 255, .4), 0 0 0 1px rgba(140, 196, 255, .14); }
.player-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.player-top {
  position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: clamp(12px, 2vw, 22px);
  background: linear-gradient(rgba(4, 7, 15, .75), transparent);
  font: 500 clamp(.58rem, .5rem + .3vw, .76rem)/1.25 var(--f-mono); letter-spacing: .12em; text-transform: uppercase;
}
.rec { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sky-300); }
.player-kicker { color: var(--sky-300); }
.player-title { color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-play {
  position: absolute; left: 50%; top: 50%; width: clamp(56px, 9vw, 96px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.player-play .ico { width: 40%; height: 40%; margin-left: 8%; }
.player-bar { position: absolute; left: clamp(12px, 2vw, 22px); right: clamp(12px, 2vw, 22px); bottom: clamp(12px, 2vw, 20px); height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.player-progress { position: absolute; inset: 0; border-radius: inherit; background: var(--sky-300); transform-origin: left; transform: scaleX(0); }
.player.is-playing .player-progress { animation: prog 3.4s linear forwards; }
@keyframes prog { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.player-bar i { position: absolute; top: -2px; left: var(--x); width: 2px; height: 8px; background: rgba(255, 255, 255, .5); }
.replay-rail { display: flex; gap: 12px; margin: 14px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.replay-rail::-webkit-scrollbar { display: none; }
.tile {
  position: relative; flex: 0 0 62%; scroll-snap-align: start; display: flex; flex-direction: column; min-height: 150px; padding: 14px;
  border-radius: var(--r-md); overflow: hidden; border: 1.5px solid rgba(140, 196, 255, .12);
  background: linear-gradient(160deg, hsl(var(--h) 68% 24%), hsl(var(--h) 60% 9%));
  transition: border-color .3s, opacity .3s;
}
.tile.is-on { border-color: var(--sky-300); }
.tile-num { font: 860 2.3rem/.9 var(--f-display); font-stretch: 118%; letter-spacing: -.04em; color: #fff; }
.tile-title { flex: 1; margin-top: 8px; font-size: .8rem; line-height: 1.3; color: var(--on-dark-2); }
.tile-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 650 .66rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.tile-cta .ico { width: 14px; height: 14px; color: var(--sky-300); }
.replay-outro { margin-top: clamp(64px, 10vw, 120px); display: grid; gap: 28px; }
.replay-outro .h-xl span { display: block; color: var(--sky-300); }
.replay-uses li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(140, 196, 255, .14); font: 620 clamp(1rem, .9rem + .4vw, 1.2rem)/1.3 var(--f-display); }
.replay-uses li::before { content: ""; width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--sky-300); }
.replay-note { font: 500 .72rem/1.5 var(--f-mono); color: var(--on-dark-2); }

/* =====================================================================
   9. LOGBOOK (papier chaud)
   ===================================================================== */
.logbook { background: var(--paper); color: var(--paper-ink); }
.logbook-scrub { --open: clamp(0, (var(--p) - .03) / .17, 1); }
.logbook-scrub .stage { display: flex; align-items: center; padding-top: var(--topbar); }
.logbook-layout { display: grid; gap: clamp(18px, 3svh, 40px); align-items: center; }
.logbook .tag { color: var(--paper-blue); }
.logbook .h-xl { margin-top: 12px; font-size: clamp(1.7rem, 1.05rem + 2.9vw, 3.5rem); max-width: 16ch; }
.logbook-body { margin-top: 12px; max-width: 42ch; color: var(--paper-ink-2); font-size: clamp(.95rem, .9rem + .25vw, 1.08rem); }

.book-scene { display: grid; place-items: center; perspective: 1800px; padding-block: 10px; }
.book {
  --pw: clamp(138px, 21vw, 310px);
  position: relative; width: var(--pw); aspect-ratio: 3 / 4; transform-style: preserve-3d;
  transform: translateX(calc(var(--open) * 50% - 12px)) rotateX(calc((1 - var(--open)) * 14deg)) rotateZ(calc((1 - var(--open)) * -4deg));
  transition: transform .25s linear;
}
.book-page {
  position: absolute; inset: 0; padding: 9% 9% 8% 10%; border-radius: 3px 10px 10px 3px; background: #FBF8F2;
  box-shadow: inset 8px 0 14px -10px rgba(60, 45, 20, .25), 1px 1px 0 #E7DFD0, 2px 2px 0 #FBF8F2, 3px 3px 0 #E7DFD0, 4px 4px 0 #FBF8F2, 5px 5px 0 #DDD2BF, 14px 20px 34px -12px rgba(60, 45, 20, .38);
}
.page-head { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 6%; border-bottom: 1px solid #E4DACA; font: 500 clamp(.36rem, .24rem + .3vw, .58rem)/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #8A7E69; }
.page-rows { height: 84%; margin-top: 4%; display: grid; grid-template-rows: repeat(8, 1fr); }
.page-rows li {
  --done: clamp(0, var(--step) - var(--i), 1);
  --cur: clamp(0, min(var(--step) - var(--i), var(--i) + 2 - var(--step)), 1);
  display: flex; align-items: center; gap: 6%; border-bottom: 1px dashed #E4DACA;
}
.page-rows li > span {
  flex: none; width: 36%;
  font: 650 clamp(.34rem, .22rem + .32vw, .6rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper-blue) calc(var(--cur) * 100%), #6A5F4D); transition: color .3s;
}
.page-rows svg { flex: 1; height: 10px; overflow: visible; }
.page-rows path { fill: none; stroke: #1F3F9E; stroke-width: 1.3; stroke-linecap: round; stroke-dasharray: 1px 2px; stroke-dashoffset: calc(1px - var(--done) * 1px); transition: stroke-dashoffset .9s var(--ease); }
.row-photos b { width: 13%; aspect-ratio: 1; border-radius: 2px; background: #D9CEBA; opacity: calc(.3 + .7 * var(--done)); transition: opacity .5s; }
.book-cover { position: absolute; inset: 0; z-index: 2; transform-origin: left center; transform-style: preserve-3d; transform: rotateY(calc(var(--open) * -178deg)); transition: transform .25s linear; }
.cover-front, .cover-back { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.cover-front {
  display: flex; flex-direction: column; padding: 12% 11%; border-radius: 3px 10px 10px 3px; color: #fff;
  background: radial-gradient(120% 90% at 30% 18%, #17336F, #0A1A3D 72%);
  box-shadow: inset 7px 0 0 rgba(255, 255, 255, .05), inset 12px 0 18px -8px rgba(0, 0, 0, .55), 0 22px 40px -18px rgba(8, 20, 48, .6);
}
.cover-emblem { width: 58%; margin-bottom: auto; }
.cover-emblem path { fill: none; stroke: var(--sky-300); stroke-width: 7; stroke-linecap: round; opacity: .6; }
.cover-title { font: 860 clamp(.9rem, .45rem + 1.7vw, 1.9rem)/.92 var(--f-display); font-stretch: 118%; text-transform: uppercase; letter-spacing: -.01em; }
.cover-sub { margin-top: 8px; font: 500 clamp(.4rem, .28rem + .35vw, .66rem)/1 var(--f-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--sky-300); }
.cover-brand { margin-top: 14%; font: 600 clamp(.36rem, .26rem + .3vw, .58rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
.cover-strap { position: absolute; top: -1.5%; bottom: -1.5%; right: 11%; width: 5%; border-radius: 2px; background: linear-gradient(90deg, #1B55F0, #3F7BFF 50%, #1B55F0); box-shadow: 1px 0 2px rgba(0, 0, 0, .35); }
.cover-back { transform: rotateY(180deg); padding: 9% 10% 8% 9%; border-radius: 10px 3px 3px 10px; background: #FBF8F2; box-shadow: inset -8px 0 14px -10px rgba(60, 45, 20, .25); }
.left-photos { margin-top: 7%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; }
.left-photos b { aspect-ratio: 4 / 3; border-radius: 2px; background: linear-gradient(135deg, #E6DCCB, #D3C6AF); }
.left-ceph { width: 80%; margin: 8% auto 0; color: #3F5E9E; opacity: .85; }
.book-tabs { position: absolute; top: 5%; bottom: 5%; left: 100%; display: grid; grid-template-rows: repeat(8, 1fr); gap: 2px; }
.book-tabs li {
  --cur: clamp(0, min(var(--step) - var(--i), var(--i) + 2 - var(--step)), 1);
  display: flex; align-items: center; padding: 0 7px 0 5px; border-radius: 0 5px 5px 0;
  font: 650 clamp(.32rem, .2rem + .3vw, .56rem)/1 var(--f-display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase;
  background: color-mix(in srgb, var(--blue-500) calc(var(--cur) * 100%), #E4DACA);
  color: color-mix(in srgb, #fff calc(var(--cur) * 100%), #6A5F4D);
  translate: calc(var(--cur) * 5px) 0; transition: background-color .3s, color .3s, translate .4s var(--ease);
}

.logbook-after { padding-block: clamp(24px, 5vw, 60px) clamp(56px, 7vw, 104px); }
.logbook-enrich { max-width: 30ch; font: 500 clamp(1.2rem, .95rem + 1vw, 1.8rem)/1.3 var(--f-display); }
.logbook-enrich strong { font-weight: 800; color: var(--paper-blue); }
.learn-loop {
  margin-top: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0;
  font: 820 clamp(.95rem, .3rem + 1.1vw, 1.4rem)/1 var(--f-display); font-stretch: 118%; text-transform: uppercase;
}
.learn-loop li { display: inline-flex; align-items: center; }
.learn-loop li + li::before {
  content: ""; width: .8em; height: .8em; margin-inline: .45em; background: #A8987B;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h17m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 12h17m-6-6 6 6-6 6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.learn-loop li:last-child { color: var(--paper-blue); }
.logbook-quote { max-width: 24ch; font: 350 clamp(1.4rem, 1rem + 2vw, 2.8rem)/1.15 var(--f-display); letter-spacing: -.02em; }
.logbook-quote span { display: block; font-weight: 760; }
.toc { margin-top: clamp(48px, 7vw, 88px); padding-top: 26px; border-top: 1px solid #DDD1BD; }
.toc-title { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--paper-ink-2); }
.toc-list { margin-top: 16px; columns: 2 200px; column-gap: 40px; counter-reset: toc; }
.toc-list li { counter-increment: toc; display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid #E4DACA; break-inside: avoid; font-weight: 600; }
.toc-list li::before { content: counter(toc, decimal-leading-zero); font: 500 .7rem/1 var(--f-mono); color: var(--paper-blue); }

/* =====================================================================
   10. LOGICIELS (bleu numérique sombre)
   ===================================================================== */
.soft { position: relative; overflow: clip; background: #041233; color: var(--on-dark); padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.soft-floor {
  position: absolute; left: -30%; right: -30%; bottom: 0; height: 60%; pointer-events: none; opacity: .75;
  background-image: linear-gradient(rgba(91, 147, 255, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(91, 147, 255, .22) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(600px) rotateX(64deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%);
}
.soft > .wrap { position: relative; }
.soft-q { font: 350 clamp(1.4rem, 1rem + 1.8vw, 2.4rem)/1.1 var(--f-display); color: var(--sky-300); }
.soft .h-xxl { margin-top: 10px; color: #fff; }
.soft .h-xxl .ln:last-child { color: var(--sky-300); }
.soft-lockup { margin-top: clamp(56px, 9vw, 120px); text-align: center; }
.soft-kicker { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
.soft-names {
  margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 0;
  font: 860 clamp(2.4rem, .9rem + 6.2vw, 7rem)/.96 var(--f-display); font-stretch: 116%; letter-spacing: -.035em; text-transform: uppercase; color: #fff;
}
.soft-names i { font-style: normal; font-weight: 250; font-size: .62em; line-height: 1.1; color: var(--sky-300); }
.js .soft-names span { display: inline-block; opacity: 0; transition: opacity .9s var(--ease) .15s, translate 1.1s var(--ease) .15s; }
.js .soft-names .sn-a { translate: -8vw 0; }
.js .soft-names .sn-b { translate: 8vw 0; }
.js .soft-lockup.is-in .soft-names span { opacity: 1; translate: 0 0; }
.soft-badge {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px;
  background: var(--blue-500); color: #fff; font: 720 .8rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase;
}
.soft-apps { margin-top: clamp(48px, 7vw, 96px); display: grid; gap: 28px; }
.app-win { border-radius: var(--r-md); overflow: hidden; background: #071A45; border: 1px solid rgba(140, 196, 255, .2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(140, 196, 255, .12); font: 500 .66rem/1 var(--f-mono); letter-spacing: .1em; color: var(--on-dark-2); }
.app-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(188, 221, 255, .25); }
.app-bar span { margin-left: 10px; }
.app-view { position: relative; aspect-ratio: 16 / 10; background: radial-gradient(80% 80% at 50% 40%, #0C2A6E, #061233); }
.app-illu { position: absolute; inset: 0; }
.arch3d { position: absolute; inset: 8% 12% 18%; perspective: 700px; }
.arch3d svg { width: 100%; height: 100%; overflow: visible; transform: rotateX(50deg); transform-origin: 50% 60%; }
.arch3d .teeth path { fill: rgba(140, 196, 255, .2); stroke: var(--sky-200); stroke-width: 1.4; }
.arch3d .details path { fill: none; stroke: rgba(188, 221, 255, .5); stroke-width: 1; }
.arch3d .wire { fill: none; stroke: var(--sky-300); stroke-width: 3; }
.app-tools { position: absolute; left: 12px; top: 12px; display: grid; gap: 8px; }
.app-tools li { width: 22px; height: 22px; border-radius: 6px; background: rgba(140, 196, 255, .14); border: 1px solid rgba(140, 196, 255, .22); }
.app-tools li:first-child { background: var(--blue-500); border-color: transparent; }
.app-steps { position: absolute; left: 14%; right: 14%; bottom: 8%; display: flex; gap: 4px; }
.app-steps span { flex: 1; height: 5px; border-radius: 3px; background: rgba(140, 196, 255, .2); }
.app-steps span:nth-child(-n+3) { background: var(--sky-300); }
.ceph-view { position: absolute; left: 3%; top: 5%; height: 90%; width: auto; color: var(--sky-200); }
.ceph-panel { position: absolute; right: 5%; top: 14%; width: 30%; display: grid; gap: 12px; }
.ceph-panel li { display: grid; gap: 5px; font: 500 .6rem/1 var(--f-mono); letter-spacing: .1em; color: var(--on-dark-2); }
.ceph-panel b { position: relative; display: block; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(140, 196, 255, .15); }
.ceph-panel b::after { content: ""; position: absolute; inset: 0; background: var(--sky-300); transform-origin: left; transform: scaleX(var(--w)); }
.app figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.app figcaption strong { font: 820 1.1rem/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: .02em; }
.app figcaption span { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--sky-300); }
.app.has-photo .app-illu { display: none; }
.app-disclaimer { margin-top: 14px; font: 500 .64rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(169, 188, 221, .65); }
.soft-body { margin: clamp(56px, 8vw, 100px) auto 0; max-width: 30ch; text-align: center; font: 400 clamp(1.3rem, 1rem + 1.4vw, 2.2rem)/1.25 var(--f-display); letter-spacing: -.015em; color: var(--on-dark-2); }
.soft-body strong { color: #fff; font-weight: 760; }
.pipeline { position: relative; margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.pipeline::before {
  content: ""; position: absolute; left: 26px; top: 20px; bottom: 20px; width: 1px;
  background: linear-gradient(180deg, rgba(140, 196, 255, .15), rgba(140, 196, 255, .6) 50%, rgba(140, 196, 255, .15));
}
.pipeline li { position: relative; display: flex; align-items: center; gap: 16px; font: 660 .82rem/1.25 var(--f-display); font-stretch: 108%; letter-spacing: .06em; text-transform: uppercase; }
.pipeline .ico { width: 54px; height: 54px; padding: 14px; border-radius: 50%; background: #0A2566; border: 1px solid rgba(140, 196, 255, .3); color: var(--sky-300); }
.pipeline li:last-child .ico { background: var(--blue-500); border-color: transparent; color: #fff; }
.soft-licence { margin-top: 40px; text-align: center; font: 500 .72rem/1.5 var(--f-mono); color: var(--on-dark-2); }

/* =====================================================================
   11. PRATIQUE & CAS CLINIQUES (blanc éditorial)
   ===================================================================== */
.practice { background: #fff; color: var(--ink); padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.practice-head { display: grid; gap: 20px; align-items: end; }
.practice .h-xxl { color: var(--navy-900); }
.practice .ln:last-child { color: var(--blue-600); }
.practice-lead { color: var(--ink-2); max-width: 40ch; }
.practice-grid { margin-top: clamp(40px, 6vw, 80px); display: grid; gap: 14px; }
.ph { display: flex; flex-direction: column; }
.ph-frame { position: relative; flex: 1; min-height: 220px; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: var(--ice-50); border: 1px solid #E1EAF6; }
.ph-illu { position: absolute; inset: 0; width: 100%; height: 100%; }
.ph-grid-lines { stroke: #DCE7F6; stroke-width: 1; }
.ph-wire { fill: none; stroke: var(--navy-800); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1px 2px; stroke-dashoffset: 1px; transition: stroke-dashoffset 2.2s var(--ease-io) .3s; }
.ph.is-in .ph-wire { stroke-dashoffset: 0; }
.ph-dim { fill: none; stroke: var(--blue-600); stroke-width: 1.5; }
.ph-dot { fill: var(--blue-600); }
.ph-crown { fill: #fff; stroke: var(--navy-800); stroke-width: 2.2; }
.ph-guide { stroke: var(--blue-600); stroke-width: 1.2; stroke-dasharray: 4 5; }
.ph-bracket rect { fill: #DCE6F4; stroke: var(--navy-800); stroke-width: 2.2; }
.ph-bracket path { stroke: var(--navy-800); stroke-width: 2.2; }
.ph-gauge { fill: none; stroke: var(--blue-600); stroke-width: 1.6; }
.ph figcaption { margin-top: 12px; font: 720 .78rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-900); }
.ph.has-photo .ph-illu, .ph.has-photo .ph-case { display: none; }
.photo-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.practice-list { margin-top: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid #DCE5F2; }
.practice-list li { display: flex; align-items: center; gap: 12px; padding: 20px 12px 20px 0; border-bottom: 1px solid #DCE5F2; font: 720 clamp(.92rem, .85rem + .4vw, 1.15rem)/1.2 var(--f-display); color: var(--navy-900); }
.practice-list .ico { width: 22px; height: 22px; color: var(--blue-600); }
.cases { margin-top: clamp(48px, 7vw, 88px); }
.cases-title { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.cases-list { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.case figcaption { margin-top: 10px; font-weight: 650; color: var(--navy-900); }
.ba { --pos: 50%; position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; background: var(--ice-50); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; box-shadow: 0 0 6px rgba(0, 0, 0, .35); }
.ba-tag { position: absolute; bottom: 10px; padding: 5px 9px; border-radius: 999px; background: rgba(8, 20, 48, .7); color: #fff; font: 600 .62rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.ba-tag--l { left: 10px; }
.ba-tag--r { right: 10px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }

/* =====================================================================
   12. FORMATEUR (navy profond)
   ===================================================================== */
.trainer { background: var(--navy-900); color: var(--on-dark); padding-block: clamp(64px, 8vw, 120px) clamp(56px, 7vw, 104px); }
.trainer-layout { display: grid; gap: 40px; align-items: center; }
.trainer-portrait { position: relative; width: min(100%, 460px); justify-self: center; }
.portrait-frame {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden;
  background: radial-gradient(90% 70% at 30% 20%, #17336F, #081430 75%); border: 1px solid rgba(140, 196, 255, .16);
}
.portrait-frame::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(rgba(140, 196, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 196, 255, .08) 1px, transparent 1px);
  background-size: 40px 40px;
}
.portrait-mono { position: absolute; inset: 0; display: grid; place-items: center; }
.portrait-mono span { font: 860 clamp(7rem, 5rem + 9vw, 14rem)/.8 var(--f-display); font-stretch: 125%; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(140, 196, 255, .5); }
.trainer-portrait.has-photo .portrait-mono { display: none; }
.portrait-tag {
  position: absolute; left: -10px; bottom: 26px; padding: 12px 18px; border-radius: 12px; background: var(--blue-500); color: #fff;
  font: 720 .76rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 18px 30px -14px rgba(0, 0, 0, .55);
}
.trainer-name { margin-top: 14px; font: 860 clamp(2.8rem, 1.2rem + 6vw, 7rem)/.9 var(--f-display); font-stretch: 118%; letter-spacing: -.04em; text-transform: uppercase; }
.trainer-name .ln:last-child { color: var(--sky-300); }
.trainer-role { margin-top: 18px; font: 500 .74rem/1.55 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.trainer-bio { margin-top: 20px; max-width: 54ch; font-size: 1.06rem; }
.trainer-facts { margin-top: 24px; }
.trainer-facts > div { display: grid; gap: 6px; padding: 14px 0; border-top: 1px solid rgba(140, 196, 255, .14); }
.trainer-facts dt { font: 500 .68rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky-300); }
.trainer-facts dd ul { display: grid; gap: 4px; }
.trainer-method { margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(140, 196, 255, .14); color: var(--on-dark-2); font-size: .95rem; }

/* =====================================================================
   13. ÉCOSYSTÈME (dégradé bleu ciel)
   ===================================================================== */
.eco { background: linear-gradient(180deg, #DCEEFF 0%, #B9DBFF 55%, #6FA8FF 100%); color: var(--navy-900); padding-block: clamp(64px, 8vw, 112px) clamp(40px, 5vw, 72px); }
.eco-head { text-align: center; }
.eco .h-xxl .ln:last-child { color: var(--blue-600); }
.eco .lead { margin-top: 16px; color: #24406F; }
.eco-map { --r: 39%; position: relative; width: min(100%, 820px); aspect-ratio: 1; margin: clamp(28px, 5vw, 56px) auto 0; }
.eco-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.eco-orbit { fill: none; stroke: rgba(8, 20, 48, .28); stroke-width: .25; stroke-dasharray: .8 1.2; }
.eco-spokes line { stroke: rgba(8, 20, 48, .32); stroke-width: .25; stroke-dasharray: 1px 2px; stroke-dashoffset: 1px; transition: stroke-dashoffset 1s var(--ease); transition-delay: calc(.3s + var(--k) * 90ms); }
.eco-map.is-in .eco-spokes line { stroke-dashoffset: 0; }
.eco-core {
  position: absolute; left: 50%; top: 50%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: grid; place-content: center; padding: 8%; border-radius: 50%; text-align: center; color: #fff;
  background: radial-gradient(90% 90% at 30% 25%, #16316B, #081430 70%);
  box-shadow: 0 40px 80px -30px rgba(8, 20, 48, .6), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.eco-core-title { font: 860 clamp(.72rem, .4rem + 1.8vw, 2rem)/1 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.015em; text-wrap: balance; }
.eco-core-schools { margin-top: 10px; font: 650 clamp(.46rem, .36rem + .45vw, .82rem)/1.3 var(--f-display); font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; color: var(--sky-300); }
.eco-core-meta { margin-top: 6px; font: 500 clamp(.44rem, .36rem + .35vw, .72rem)/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }
.eco-sats li {
  --a: calc(var(--k) * 45deg - 90deg);
  position: absolute; left: calc(50% + cos(var(--a)) * var(--r)); top: calc(50% + sin(var(--a)) * var(--r));
  transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px 7px 8px;
  border-radius: 999px; background: #fff; color: var(--navy-900); white-space: nowrap;
  font: 720 .6rem/1.1 var(--f-display); font-stretch: 108%; letter-spacing: .03em; text-transform: uppercase;
  box-shadow: 0 14px 30px -16px rgba(8, 20, 48, .5);
}
.eco-sats .ico { width: 15px; height: 15px; color: var(--blue-600); }
.eco-sats .l { display: none; }
.js .eco-sats li { opacity: 0; scale: .92; transition: opacity .6s var(--ease), scale .6s var(--ease); transition-delay: calc(.5s + var(--k) * 90ms); }
.eco-map.is-in .eco-sats li { opacity: 1; scale: 1; }

/* =====================================================================
   14. INSCRIPTION (navy / bleu intense)
   ===================================================================== */
.final {
  position: relative; text-align: center; color: var(--on-dark);
  background: radial-gradient(70% 38% at 50% 34%, rgba(27, 85, 240, .45), rgba(27, 85, 240, 0) 72%), var(--navy-900);
  padding-block: clamp(64px, 8vw, 112px) clamp(56px, 7vw, 104px);
}
.final-lockup { display: grid; justify-items: center; gap: 8px; }
.final-title { font: 820 clamp(1rem, .8rem + .8vw, 1.4rem)/1.1 var(--f-display); font-stretch: 118%; text-transform: uppercase; letter-spacing: .04em; color: #fff; }
.final-schools { font: 700 clamp(.78rem, .7rem + .4vw, 1rem)/1 var(--f-display); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: var(--sky-300); }
.final-schools i { font-style: normal; color: var(--blue-400); margin-inline: .15em; }
.final-meta, .final-by { font: 500 .72rem/1.3 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }
.final-q { margin-top: clamp(32px, 5vw, 56px); color: #fff; }
.final-q .ln:last-child { color: var(--sky-300); }
.final-ctas { margin-top: clamp(26px, 4vw, 44px); display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.final-grid { margin-top: clamp(56px, 8vw, 100px); display: grid; gap: 20px; text-align: left; align-items: start; }
.final-h3 { font: 820 clamp(1.3rem, 1.1rem + .8vw, 1.8rem)/1.05 var(--f-display); font-stretch: 112%; text-transform: uppercase; letter-spacing: -.01em; }
.modalites { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); border: 1px solid rgba(140, 196, 255, .18); background: rgba(10, 26, 61, .55); }
.mod-list { margin-top: 18px; }
.mod-list > div { display: grid; grid-template-columns: 118px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid rgba(140, 196, 255, .14); }
.mod-list dt { display: flex; align-items: center; gap: 8px; font: 500 .66rem/1.4 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sky-300); }
.mod-list dt .ico { width: 16px; height: 16px; }
.mod-list dd { font-weight: 620; color: #fff; }
.cal { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(140, 196, 255, .14); }
.cal li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.cal span { font: 500 .7rem/1.7 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.cal b { font-weight: 620; font-size: .92rem; color: #fff; text-align: right; }
.form-card { padding: clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: #fff; color: var(--ink); box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .6); --focus: var(--blue-600); scroll-margin-top: 84px; }
.form-card .final-h3 { color: var(--navy-900); }
.form-intro { margin-top: 10px; color: var(--ink-2); font-size: .95rem; }
.field { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 7px; }
.field label, .field legend { padding: 0; font: 650 .82rem/1.2 var(--f-text); color: var(--navy-900); }
.field small { font-weight: 400; color: var(--ink-3); }
.field input:not([type="radio"]), .field select {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #D3DEEE; background: #F8FBFF; font-size: 1rem;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #8C9AB5; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%233E4D6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field input:not([type="radio"]):focus, .field select:focus { outline: none; border-color: var(--blue-500); background-color: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .16); }
.field--radios { gap: 8px; }
.field--radios legend { margin-bottom: 8px; }
.radio { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid #D3DEEE; border-radius: 12px; cursor: pointer; font-size: .92rem; line-height: 1.35; transition: border-color .15s, background-color .15s; }
.radio input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue-500); }
.radio:has(input:checked) { border-color: var(--blue-500); background: #F0F5FF; }
.radio:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(47, 107, 255, .3); }
@media (hover: hover) and (pointer: fine) { .radio:hover { border-color: #A9BEDF; } }
.field-err { display: none; font-size: .8rem; color: #C62828; }
.field.is-invalid .field-err { display: block; }
.field.is-invalid input:not([type="radio"]), .field.is-invalid select, .field.is-invalid .radio { border-color: #E53935; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn--block { margin-top: 24px; }
.form-legal { margin-top: 12px; font-size: .75rem; line-height: 1.45; color: var(--ink-3); }
.form-status { margin-top: 10px; font-size: .88rem; color: #C62828; }
.form-status:empty { display: none; }
.form-done { padding-block: 20px; text-align: center; }
.form-done:focus { outline: none; }
.done-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 16px; border-radius: 50%; background: #E3F5EA; color: var(--green); }
.done-ico .ico { width: 30px; height: 30px; }
.form-done p { margin-top: 10px; color: var(--ink-2); }
.form-done .btn { margin-top: 20px; }
.form-external .btn { margin-top: 22px; }
.form-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid #E3EAF4; text-align: center; font-size: .88rem; color: var(--ink-2); }
.form-alt a { font-weight: 700; color: var(--green); }


/* =====================================================================
   FINITIONS : blocs ajoutés (CTA programme, replay, logbook, formateur)
   ===================================================================== */
.program-cta {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  padding: clamp(20px, 2.4vw, 30px); border-radius: var(--r-lg); background: var(--navy-900); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(8, 20, 48, .5);
}
.program-cta-title { font: 760 clamp(1.15rem, 1rem + .6vw, 1.45rem)/1.15 var(--f-display); letter-spacing: -.015em; }
.program-cta-text { margin-top: 6px; max-width: 46ch; font-size: .95rem; color: var(--on-dark-2); }

.replay-left { display: grid; gap: clamp(22px, 3vw, 36px); align-content: start; }
.replay-count { display: flex; align-items: center; gap: 18px; }
.replay-count b { font: 860 clamp(3.2rem, 2rem + 4vw, 5.4rem)/.8 var(--f-display); font-stretch: 118%; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--sky-300); }
.replay-count span { font: 500 .74rem/1.55 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-2); }

.logbook-pair { display: grid; gap: 24px 64px; align-items: end; }

.ph-label { font: 500 11px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-3); }
.ph-lead { fill: none; stroke: var(--blue-600); stroke-width: 1.2; }
.ph-ruler path { fill: none; stroke: #A3B6D3; stroke-width: 1.2; }
.ph-ruler text { font: 500 10px var(--f-mono); fill: #8C9AB5; }
.ph-beak { fill: #DCE6F4; stroke: var(--navy-800); stroke-width: 2; stroke-linejoin: round; }
.ph-split { stroke: var(--navy-800); stroke-width: 1.2; opacity: .45; }
.ph-pivot { fill: #fff; stroke: var(--navy-800); stroke-width: 2; }
.ph-handle { fill: none; stroke: var(--navy-800); stroke-width: 12; stroke-linecap: round; }
.ph-bracket rect.w { fill: url(#steel); stroke: var(--navy-800); stroke-width: 1.6; }
.ph-bracket rect.slot { fill: var(--navy-800); stroke: none; }
.ph-tweezer path { fill: none; stroke: #7F93B4; stroke-width: 5; stroke-linecap: round; }
.ph-tweezer circle { fill: #fff; stroke: #7F93B4; stroke-width: 3; }
.js .ph-plier { opacity: 0; translate: 36px 0; transition: opacity .8s var(--ease) 1.7s, translate 1s var(--ease) 1.7s; }
.js .ph-tweezer { opacity: 0; translate: -36px -8px; transition: opacity .8s var(--ease) .5s, translate 1s var(--ease) .5s; }
.js .ph.is-in .ph-plier, .js .ph.is-in .ph-tweezer { opacity: 1; translate: 0 0; }
.ph-case { position: absolute; inset: 0; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 14px 6%; padding: 6%; color: var(--navy-800); }
.ph-case-ceph { width: 100%; height: 100%; min-height: 0; }
.ph-shots { display: grid; gap: 8px; min-height: 0; }
.ph-shots b { display: grid; place-items: center; min-height: 0; border-radius: 8px; background: linear-gradient(135deg, #E3ECF8, #C9D8EE); }
.ph-shots svg { width: 44%; max-height: 80%; fill: none; stroke: var(--navy-800); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .65; }
.ph-checks { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.ph-checks i {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: #fff; border: 1px solid #DCE5F2;
  font: 650 .64rem/1 var(--f-display); font-style: normal; font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-800);
}
.ph-checks i::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-500); }
.js .ph-checks i { opacity: 0; translate: 0 8px; transition: opacity .5s var(--ease), translate .6s var(--ease); }
.js .ph.is-in .ph-checks i { opacity: 1; translate: 0 0; }
.js .ph.is-in .ph-checks i:nth-child(1) { transition-delay: .7s; }
.js .ph.is-in .ph-checks i:nth-child(2) { transition-delay: .85s; }
.js .ph.is-in .ph-checks i:nth-child(3) { transition-delay: 1s; }

.portrait-ceph { position: absolute; right: -10%; bottom: -8%; width: 80%; color: var(--sky-300); opacity: .16; }
.crop { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(140, 196, 255, .55); }
.crop--tl { top: 16px; left: 16px; border-top-width: 1.5px; border-left-width: 1.5px; }
.crop--tr { top: 16px; right: 16px; border-top-width: 1.5px; border-right-width: 1.5px; }
.crop--bl { bottom: 16px; left: 16px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.crop--br { bottom: 16px; right: 16px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.trainer-steps { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.trainer-steps li {
  flex: 1 1 auto; display: grid; gap: 8px; padding: 13px 14px; border-radius: var(--r-md);
  background: rgba(140, 196, 255, .06); border: 1px solid rgba(140, 196, 255, .16);
  font: 720 clamp(.72rem, .64rem + .22vw, .84rem)/1.1 var(--f-display); font-stretch: 108%; letter-spacing: .05em; text-transform: uppercase; color: #fff;
}
.trainer-steps span { font: 500 .66rem/1 var(--f-mono); letter-spacing: .12em; color: var(--sky-300); }
.trainer-steps li:last-child { background: var(--blue-500); border-color: transparent; }
.trainer-steps li:last-child span { color: #fff; opacity: .8; }

/* ---------- Chiffres ---------- */
.days-legend, .cal, .module-meta, .tile-num, .module-num, .cycle-center strong, .replay-count b, .trainer-steps span, .eighty-num { font-variant-numeric: tabular-nums; }

/* =====================================================================
   FINITIONS : animations
   ===================================================================== */
.js .topbar { animation: dropIn .9s var(--ease) .15s both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-24px); } }

.btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-115%); transition: transform .8s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover::after { transform: translateX(115%); }
  .module:hover .module-node { transform: scale(1.08); }
  .module:hover .module-num { -webkit-text-stroke-color: var(--blue-500); }
  .footer-nav a:hover, .footer-links a:hover, .footer-copy a:hover { color: #fff; text-decoration: underline; }
}

.js .cliff-q[data-reveal] { opacity: 1; translate: none; }
.cliff-q .w { display: inline-block; }
.js .cliff-q .w { opacity: 0; translate: 0 .45em; filter: blur(6px); transition: opacity .7s var(--ease), translate .8s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--w) * 60ms); }
.js .cliff-q.is-in .w { opacity: 1; translate: 0 0; filter: blur(0); }

.js [data-stagger] > * { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease), translate .7s var(--ease); transition-delay: calc(var(--n, 0) * 80ms + 120ms); }
.js [data-stagger].is-in > * { opacity: 1; translate: 0 0; }

.js .days[data-reveal] { opacity: 1; translate: none; }
.js .days i { scale: 1 0; transform-origin: 50% 100%; transition: scale .6s var(--ease) calc(var(--n, 0) * 45ms), background-color .4s, transform .5s var(--ease); }
.js .days.is-in i { scale: 1 1; }

.plane--teeth svg { animation: floatB 8s ease-in-out infinite alternate; }
.plane--wire svg { animation: floatA 8s ease-in-out infinite alternate; }
@keyframes floatA { from { transform: translateY(0); } to { transform: translateY(-7px); } }
@keyframes floatB { from { transform: translateY(0); } to { transform: translateY(4px); } }

.eco-map.is-in .eco-sats li { animation: bob 6s ease-in-out infinite; animation-delay: calc(var(--k) * -.75s); }
@keyframes bob { 50% { translate: 0 -6px; } }


.mcta.is-nudge .btn { animation: nudge 1.2s var(--ease) .8s 1; }
@keyframes nudge { 30% { transform: scale(1.05); } 60% { transform: scale(.98); } }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy-950); color: var(--on-dark-2); padding: clamp(56px, 7vw, 88px) 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 36px 48px; }
.footer .brand { color: #fff; }
.footer-brand { display: grid; gap: 14px; align-content: start; }
.footer-about { max-width: 36ch; }
.footer-product { font: 720 .95rem/1.35 var(--f-display); color: #fff; }
.footer-product span { font: 500 .68rem/1.7 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.footer-h { margin-bottom: 14px; font: 500 .7rem/1 var(--f-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--sky-300); }
.footer-nav, .footer-links { display: grid; gap: 10px; }
.footer-nav a, .footer-links a { color: var(--on-dark); font-weight: 560; text-decoration: none; }
.footer-cta { margin-top: 20px; }
.footer-legal { padding-top: 24px; border-top: 1px solid rgba(140, 196, 255, .12); max-width: none; font-size: .76rem; line-height: 1.6; }
.footer-legal, .footer-copy { grid-column: 1 / -1; }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 .68rem/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-copy a { color: var(--on-dark-2); text-decoration: none; }

/* ---------- CTA mobile flottant ---------- */
.mcta {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px;
  background: rgba(8, 20, 48, .8); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .08);
  transform: translate(-50%, calc(100% + 40px)); transition: transform .35s var(--ease);
}
.mcta.is-on { transform: translate(-50%, 0); }
.mcta .btn { min-height: 46px; padding: 0 22px; font-size: .74rem; box-shadow: none; }
.mcta-wa { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: #fff; }
.mcta-wa .ico { width: 22px; height: 22px; }

/* ---------- Mode édition (?edit) ---------- */
.edit-mode [data-bind], .edit-mode [data-list], .edit-mode [data-photo], .edit-mode [data-href], .edit-mode [data-mail] { outline: 1.5px dashed #FF9F1C; outline-offset: 3px; }
.edit-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; padding: 12px 16px; border-radius: 12px; background: #FF9F1C; color: #1B1200; font: 600 .8rem/1.4 var(--f-text); text-align: center; }

/* =====================================================================
   PETITS ÉCRANS
   ===================================================================== */
@media (max-width: 860px) {
  .topbar-cta { display: none; }
  .hero-inner { align-content: start; }
  .hero-visual { order: -1; height: clamp(170px, 30svh, 290px); margin: 0 calc(-1 * var(--gutter)); }
  .plane { inset: calc(var(--topbar) + env(safe-area-inset-top) - 6px) 10px 0; }
  .leaders, .note--l, .note--r { display: none; }
  .note { font-size: .5rem; letter-spacing: .1em; }
  .bracket-fig { top: 31%; width: min(62vw, 290px); opacity: calc(var(--mid) * .95 + var(--q) * .55); }
  .schools-q, .schools-words { align-self: end; margin-bottom: 15svh; }
  .bk-caption { display: none; }
  .learn-loop { flex-direction: column; align-items: flex-start; gap: 12px; font-size: 1.15rem; }
  .learn-loop li + li::before { margin-inline: 0 .5em; }
  .eighty-verbs { flex-direction: column; gap: 9px; }
  .eighty-verbs li + li::before { display: none; }
  .hero-copy { padding-bottom: 28px; }
  .benefits-track li[aria-hidden] { display: inline-flex; }
}
@media (max-width: 860px) and (max-height: 720px) {
  .hero-sub { display: none; }
  .problem-lead { display: none; }
}

/* =====================================================================
   ÉCRANS ≥ 861px
   ===================================================================== */
@media (min-width: 861px) {
  .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); padding-top: var(--topbar); }
  .hero-copy { padding-block: clamp(24px, 5svh, 64px); }
  .hero-visual { aspect-ratio: 600 / 379; width: calc(100% + 3vw); }
  .benefits-track { width: auto; justify-content: center; flex-wrap: wrap; padding-inline: var(--gutter); row-gap: 12px; }
  .benefits-track.is-looped { animation: none; }
  .benefits-track li[aria-hidden] { display: none; }

  .problem-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

  .bracket-fig { left: auto; right: calc(max(var(--gutter), (100vw - 1240px) / 2) - 3vw); top: 50%; width: min(40vw, 560px); transform: translateY(-50%); opacity: calc(var(--mid) * .95 + var(--q) * .3); }
  .school-desc { max-width: 34ch; }
  .school-name { font-size: clamp(5rem, 1rem + 8.4vw, 8.6rem); }

  .program-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
  .program-head { position: sticky; top: calc(var(--topbar) + 40px); }
  .program-head .h-xxl { font-size: clamp(2.3rem, 1rem + 3.4vw, 4.2rem); }
  .loop .h-xxl { font-size: clamp(2.3rem, 1rem + 3.7vw, 4.8rem); }
  .modules-wrap { --mw: clamp(64px, 7vw, 88px); }
  .module { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(18px, 3vw, 40px); padding-block: clamp(32px, 4vw, 52px); }
  .module > .module-num { grid-row: 1 / span 2; }
  .module-node { left: calc(-1 * clamp(64px, 7vw, 88px)); top: clamp(32px, 4vw, 52px); }
  .module-meta { margin-top: 0; }

  .loop-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); }
  .cycle-disc { inset: 21%; }
  .cycle-steps li { left: calc(50% + cos(var(--a)) * 32%); top: calc(50% + sin(var(--a)) * 32%); max-width: 9.5em; font-size: .76rem; padding: 7px 11px; }
  .cycle-center span { font-size: .7rem; }

  .wa-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 96px); }

  .replay-rail { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-inline: 0; padding: 0; overflow: visible; }
  .tile { min-height: clamp(150px, 13vw, 180px); }
  .replay-outro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
  .replay-note { grid-column: 1 / -1; }

  .logbook-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 5vw, 72px); }
  .book { transform: translateX(calc(var(--open) * 50% - 20px)) rotateX(calc((1 - var(--open)) * 14deg)) rotateZ(calc((1 - var(--open)) * -4deg)); }
  .toc-list { columns: 3 200px; }

  .soft-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
  .pipeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
  .pipeline::before { left: 10%; right: 10%; top: 27px; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, rgba(140, 196, 255, .15), rgba(140, 196, 255, .6) 50%, rgba(140, 196, 255, .15)); }
  .pipeline li { flex-direction: column; justify-content: flex-start; text-align: center; gap: 14px; font-size: clamp(.7rem, .6rem + .35vw, .86rem); }

  .practice-head { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); }
  .practice .h-xxl { font-size: clamp(2.3rem, 1rem + 3.7vw, 5rem); }
  .practice-grid { grid-template-columns: 1.25fr 1fr; gap: clamp(12px, 1.8vw, 24px); }
  .ph--a { grid-row: span 2; }
  .ph--a .ph-frame { aspect-ratio: auto; }
  .ph--b .ph-frame, .ph--c .ph-frame { aspect-ratio: 16 / 10; }
  .practice-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .trainer-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); }
  .trainer-facts > div { grid-template-columns: minmax(140px, .8fr) 2fr; gap: 16px; }

  .eco-map { --r: 41%; }
  .eco-sats li { gap: 8px; padding: 10px 16px 10px 12px; font-size: clamp(.64rem, .5rem + .4vw, .84rem); }
  .eco-sats .ico { width: 18px; height: 18px; }
  .eco-sats .l { display: inline; }
  .eco-sats .s { display: none; }

  .final-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); }
  .mcta { display: none; }
  .problem-deco { display: block; position: absolute; left: calc(max(var(--gutter), (100vw - 1240px) / 2) - 50px); bottom: -10%; width: min(30vw, 440px); color: var(--navy-900); opacity: .05; pointer-events: none; }
  .logbook-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); }
  .trainer-steps li { flex: 0 1 auto; }
}



/* =====================================================================
   MOUVEMENT RÉDUIT : on garde les fondus, on supprime les déplacements
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { translate: none !important; animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; }
  .benefits-track.is-looped { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .benefits-track li[aria-hidden] { display: none !important; }
  .msg--typing span { animation: none !important; }
  .plane { scale: none !important; }
  .school-name, .eighty-final strong { clip-path: none !important; }
  .js .mask .ln > span { translate: none !important; }
  .book, .book-cover, .cycle-runner, .bk-tooth { transition: none; }
  .plane svg, .eco-sats li, .mcta .btn { animation: none !important; }
  .eighty.is-full .dial-tip { animation: none; }
  .js .cliff-q .w { filter: none !important; }
  .eighty-ring, .eighty-num-wrap { transition: opacity .6s; }
}
