/* ============================================================
   NOVA AUTO-ÉCOLE — cinematic sunset theme
   Committed dark visual world (deliberate single theme).
   ============================================================ */

/* ---- reset (light; artifact host also ships one) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ---- tokens ---- */
:root {
  /* Palette "LE DÉPART" — base froide + accent chaud (réf. client) */
  --ink:      #0c1118;
  --ink-1:    #121822;
  --ink-2:    #1f2937;
  --ink-3:    #263243;
  --line:     rgba(230, 238, 247, 0.10);
  --line-2:   rgba(230, 238, 247, 0.17);
  --paper:    #f6f3ec;
  --muted:    #9aa3ae;
  --muted-2:  #6b7480;
  --amber:    #eea23a;
  --amber-2:  #f6d6a5;
  --amber-deep:#c87e1c;
  --glow:     rgba(238, 162, 58, 0.30);

  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Hanken Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 1.9rem + 3.4vw, 4.5rem);
  --step-hero: clamp(2.9rem, 1.6rem + 6vw, 7rem);
}

/* Anchor navigation is driven by JS (short, capped duration) for snappy,
   consistent jumps — so we keep the native behavior off here. */
html { scroll-behavior: auto; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
}

/* ---- shared bits ---- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
  opacity: 0.7;
}

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }

.accent { color: var(--amber); }

/* buttons */
.btn {
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.85em 1.5em;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 600;
  font-size: var(--step-0);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
  will-change: transform;
}
.btn:active { transform: translateY(1px); }
.btn--amber {
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 10px 30px -12px var(--glow);
}
.btn--amber:hover { background: var(--amber-2); box-shadow: 0 16px 40px -12px var(--glow); transform: translateY(-2px); }
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-2);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { border-color: var(--paper); transform: translateY(-2px); }
.btn--block { width: 100%; }

.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.8rem, 1.4vw, 1.15rem) var(--gutter);
  transition: background-color .4s ease, border-color .4s ease, backdrop-filter .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
/* Header stays transparent over the hero footage — no dark bar. */
.nav.is-scrolled {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
.nav__link, .brand__name, .brand__name small { text-shadow: 0 1px 12px rgba(0,0,0,0.6); }

/* …but becomes a solid header once past the hero, over content sections,
   so it never collides with (or shows through) section text. */
.nav.nav--solid {
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}
.nav--solid .nav__link, .nav--solid .brand__name, .nav--solid .brand__name small { text-shadow: none; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--amber), var(--amber-deep));
  color: var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.1rem;
  box-shadow: 0 6px 18px -8px var(--glow);
}
.brand__name { font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.02em; line-height: 1; }
.brand__name small { display: block; font-family: var(--body); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.34em; color: var(--muted); margin-top: 3px; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__link {
  font-size: 0.94rem; font-weight: 500; color: var(--muted);
  position: relative; padding: 0.3em 0; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--amber); transition: width .28s cubic-bezier(.2,.7,.2,1);
}
.nav__link:hover { color: var(--paper); }
.nav__link:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__toggle {
  display: none; width: 44px; height: 40px; border-radius: 10px;
  background: transparent; border: 1px solid var(--line-2); cursor: pointer;
  padding: 0; place-items: center; color: var(--paper);
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 1.6px; background: currentColor; position: relative; transition: transform .3s, opacity .3s;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }

/* ============================================================
   HERO — cinematic scroll scrub
   ============================================================ */
.hero { position: relative; }
.hero__track { position: relative; height: 300vh; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; width: 100%; overflow: hidden;
  background: var(--ink);
  --reveal: 0; /* driven by JS: 0 = clean scene, 1 = text fully in */
}
#seq { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Very soft top fade for nav legibility — subtle enough that the video
   clearly shows through the (transparent) header. */
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(11,15,22,0.30) 0%, rgba(11,15,22,0) 16%);
}
/* Soft vignette that fades IN only as the text is revealed near the end,
   so nothing darkens the scene while it plays. */
.hero__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to left, rgba(10,14,20,0.70) 0%, rgba(10,14,20,0.10) 40%, rgba(10,14,20,0) 60%),
    radial-gradient(80% 95% at 84% 52%, rgba(10,14,20,0.46), transparent 62%);
  opacity: var(--reveal);
}

/* Text block sits on the RIGHT side so it never covers the driver. */
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  text-align: right;
  padding: 6vh clamp(1.5rem, 5vw, 5.5rem);
}
.hero__inner {
  width: auto; max-width: 33rem; margin: 0;
  display: flex; flex-direction: column; align-items: flex-end;
}
.hero h1 {
  font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3.25rem);   /* medium, not huge */
  font-weight: 700; line-height: 1.06; margin: 0;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero__sub {
  margin: 1.35rem 0 0; max-width: 34ch;
  color: rgba(246,243,236,0.88);
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.18rem); font-weight: 400; line-height: 1.5;
}
.hero__cta { margin-top: clamp(1.5rem, 3vh, 2.3rem); }
.hero__cta .btn { padding: 0.95em 1.7em; font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.1rem); }

/* Text starts hidden; JS reveals it toward the end of the scroll scene. */
.hero h1, .hero__sub, .hero__cta { opacity: 0; will-change: opacity, transform; }

.hero__hint {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%); z-index: 2;
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  transition: opacity .4s ease;
}
.hero__hint .chev {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--line-2);
  display: grid; place-items: center; color: var(--amber);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translateY(-2px); } 50%{ transform: translateY(3px); } }

.hero__progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 3;
  background: var(--line);
}
.hero__progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(to right, var(--amber-deep), var(--amber-2));
  box-shadow: 0 0 16px 1px var(--glow);
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
.section--tint { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-1) 100%); }

.section__head { display: flex; flex-direction: column; gap: 1rem; max-width: 60ch; }
.section__head.center { align-items: center; text-align: center; margin-inline: auto; }
.section__title { font-size: var(--step-4); }
.section__lead { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 52ch; }

/* stat strip */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; margin-top: clamp(3.5rem, 7vw, 5.5rem); position: relative; z-index: 4;
}
.stat { background: var(--ink-1); padding: clamp(1.4rem, 3vw, 2.2rem); text-align: center; }
.stat__num { font-family: var(--display); font-weight: 800; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; }
.stat__num .accent { color: var(--amber); }
.stat__label { color: var(--muted); font-size: var(--step--1); margin-top: 0.5rem; letter-spacing: 0.02em; }

/* formations grid */
.grid-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.9rem, 1.6vw, 1.3rem); margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.fcard {
  position: relative; padding: clamp(1.5rem, 2.4vw, 2.1rem);
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 0.7rem; min-height: 100%;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, background-color .3s;
  overflow: hidden;
}
.fcard::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 100% 0%, var(--glow), transparent 55%);
  opacity: 0; transition: opacity .35s;
}
.fcard:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--ink-3); }
.fcard:hover::after { opacity: 0.5; }
.fcard__tag {
  align-self: flex-start; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--amber); border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  padding: 0.3em 0.7em; border-radius: 999px; font-weight: 600;
}
.fcard h3 { font-size: var(--step-2); font-weight: 600; }
.fcard p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.fcard__foot { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); }
.fcard__price { font-family: var(--display); font-weight: 700; font-size: var(--step-1); }
.fcard__price small { color: var(--muted); font-family: var(--body); font-weight: 400; font-size: 0.8rem; }
.fcard__link { color: var(--amber); font-weight: 600; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.35em; transition: gap .25s; }
.fcard:hover .fcard__link { gap: 0.7em; }

/* méthode — numbered steps (real sequence) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 1.6vw, 1.4rem); margin-top: clamp(2.2rem, 4vw, 3.2rem); counter-reset: step; }
.step { position: relative; padding-top: 2.6rem; }
.step__n { font-family: var(--display); font-weight: 800; font-size: var(--step-3); color: transparent; -webkit-text-stroke: 1.5px var(--line-2); letter-spacing: -0.03em; line-height: 1; }
.step__bar { height: 2px; background: var(--line); margin: 1rem 0 1.2rem; position: relative; overflow: hidden; }
.step__bar::after { content:""; position:absolute; left:0; top:0; height:100%; width:38%; background: var(--amber); }
.step h3 { font-size: var(--step-1); font-weight: 600; }
.step p { color: var(--muted); margin: 0.5rem 0 0; font-size: 0.95rem; }

/* notre école — split editorial */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media .badge {
  position: absolute; left: 1rem; bottom: 1rem; right: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
  background: color-mix(in srgb, var(--ink) 70%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 0.85rem 1rem;
}
.split__media .badge > div > strong { display: block; line-height: 1.2; }
.split__media .badge > div > span { display: block; line-height: 1.3; margin-top: 1px; }
.split__body { display: flex; flex-direction: column; gap: 1.1rem; }
.split__body p { color: var(--muted); margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.7rem; }
.checklist li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--paper); font-size: 0.98rem; }
.checklist svg { flex: none; color: var(--amber); margin-top: 3px; }

/* avis */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 1.6vw, 1.3rem); margin-top: clamp(2.2rem, 4vw, 3.2rem); }
.review { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: clamp(1.4rem, 2.2vw, 1.9rem); display: flex; flex-direction: column; gap: 1rem; }
.review__stars { color: var(--amber); letter-spacing: 0.15em; font-size: 0.9rem; }
.review p { margin: 0; font-size: 1.02rem; line-height: 1.55; }
.review__who { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.review__ava { width: 40px; height: 40px; border-radius: 999px; background: linear-gradient(150deg, var(--amber), var(--amber-deep)); color: var(--ink); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.review__meta strong { display: block; font-weight: 600; font-size: 0.95rem; }
.review__meta span { color: var(--muted); font-size: 0.82rem; }

/* tarifs */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 1.6vw, 1.3rem); margin-top: clamp(2.2rem, 4vw, 3.2rem); align-items: stretch; }
.plan { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 2.4vw, 2.2rem); display: flex; flex-direction: column; gap: 1.2rem; position: relative; }
.plan--featured { background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border-color: color-mix(in srgb, var(--amber) 45%, transparent); box-shadow: 0 30px 80px -40px var(--glow); }
.plan__badge { position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%); background: var(--amber); color: var(--ink); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 0.4em 0.9em; border-radius: 999px; }
.plan__name { font-family: var(--display); font-weight: 600; font-size: var(--step-1); }
.plan__price { font-family: var(--display); font-weight: 800; font-size: var(--step-4); line-height: 1; letter-spacing: -0.03em; }
.plan__price small { display: block; font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--muted); letter-spacing: 0; margin-top: 0.35rem; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.plan li { display: flex; gap: 0.6rem; color: var(--muted); font-size: 0.95rem; }
.plan li svg { flex: none; color: var(--amber); margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* contact (styles regroupés plus bas, section 08) */
.info-row { display: flex; gap: 0.9rem; align-items: flex-start; }
.info-row svg { flex: none; color: var(--amber); margin-top: 2px; }
.info-row strong { display: block; font-weight: 600; }
.info-row span { color: var(--muted); font-size: 0.95rem; }

.form { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field.row2 { grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.8rem; color: var(--muted); font-weight: 500; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  background: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0.8em 0.95em; color: var(--paper); font-size: 0.98rem; transition: border-color .2s, background-color .2s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); outline: none; background: var(--ink-1); }
.field textarea { resize: vertical; min-height: 110px; }
.form__note { color: var(--muted-2); font-size: 0.8rem; text-align: center; }
.form__ok { display: none; align-items: center; gap: 0.6rem; color: var(--amber); font-weight: 600; }
.form.is-sent .form__ok { display: flex; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(2.2rem, 5vw, 4rem); text-align: center; background: var(--ink-2); }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(90% 140% at 50% 0%, var(--glow), transparent 60%); opacity: .6; }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--step-4); }
.cta-band p { color: var(--muted); max-width: 46ch; margin: 1rem auto 2rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; margin-top: clamp(3rem, 6vw, 5rem); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.footer h4 { font-family: var(--body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin: 0 0 1rem; font-weight: 600; }
.footer__col a { display: block; color: var(--muted); font-size: 0.95rem; padding: 0.25em 0; transition: color .2s; }
.footer__col a:hover { color: var(--paper); }
.footer__about p { color: var(--muted); font-size: 0.92rem; max-width: 32ch; margin: 1rem 0 0; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.85rem; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: grid; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: color-mix(in srgb, var(--ink) 96%, transparent); backdrop-filter: blur(14px);
    padding: 1.4rem var(--gutter) 1.8rem; border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav__link { font-size: 1.1rem; color: var(--paper); }
  .grid-cards, .reviews, .plans { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 16/11; order: -1; }
  .stats { grid-template-columns: 1fr; }
  .nav__cta .btn--ghost { display: none; }
}
@media (max-width: 900px) {
  /* On narrow screens the right column is cramped — center it instead. */
  .hero__overlay { align-items: center; text-align: center; padding-inline: var(--gutter); }
  .hero__inner { align-items: center; max-width: 92%; }
  .hero__stage::after {
    background: linear-gradient(to top, rgba(10,14,20,0.82) 0%, rgba(10,14,20,0.10) 52%, rgba(10,14,20,0) 72%);
  }
}
@media (max-width: 640px) {
  .hero__hint { display: none; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .field.row2 { grid-template-columns: 1fr; }
  .hero__track { height: 300vh; }
  .hero__overlay { padding-bottom: 3.5rem; }
}

/* motion / a11y */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__hint .chev { animation: none; }
  .btn, .fcard, .nav__link::after { transition: none; }
}

/* ============================================================
   PREMIUM POLISH + RESPONSIVE (mobile → ultra-wide → landscape)
   ============================================================ */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --nav-h: 80px; }

/* Small-viewport height so the mobile URL bar doesn't jump the hero. */
.hero__stage { height: 100svh; }

/* Cinematic edge vignette — frames the scene, keeps the centre sharp. */
.hero__vignette {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(135% 120% at 50% 42%, transparent 52%, rgba(5,8,12,0.50) 100%);
}

/* Nav eases in once the experience is ready. */
.nav { opacity: 0; transition: opacity 1s ease 0.2s, background-color .4s ease, border-color .4s ease, padding .4s ease; }
body.frames-ready .nav { opacity: 1; }
.brand { transition: transform .3s var(--ease); }
.brand:hover { transform: translateY(-1px); }

/* Buttons — refined gradient, inner highlight, animated arrow. */
.btn--amber {
  background: linear-gradient(180deg, var(--amber-2) -10%, var(--amber) 62%);
  color: #2a1c07;
  box-shadow: 0 12px 34px -14px var(--glow), inset 0 1px 0 rgba(255,255,255,0.42);
}
.btn--amber:hover {
  background: linear-gradient(180deg, var(--amber-2) 0%, var(--amber-2) 100%);
  box-shadow: 0 18px 46px -14px var(--glow), inset 0 1px 0 rgba(255,255,255,0.55);
}
.btn__arrow { transition: transform .28s var(--ease); flex: none; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Hero CTA stack + reassurance microcopy. */
.hero__cta { display: flex; flex-direction: column; align-items: flex-end; gap: 0.7rem; }
.hero__note { font-size: 0.82rem; letter-spacing: 0.02em; color: var(--muted); text-shadow: 0 1px 10px rgba(0,0,0,0.5); }

/* Branded preloader. */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  background: radial-gradient(120% 120% at 50% 38%, #141b25 0%, var(--ink) 72%);
  transition: opacity .8s ease, visibility .8s;
}
body.frames-ready .preloader { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; color: var(--paper); }
.preloader__bar { width: min(220px, 56vw); height: 2px; background: rgba(246,243,236,0.12); border-radius: 2px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--amber-deep), var(--amber-2)); box-shadow: 0 0 16px var(--glow); transition: width .25s ease; }
.preloader__label { font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted); }

/* Centre the CTA stack when the hero text is centred (tablet/mobile). */
@media (max-width: 900px) {
  .hero__cta { align-items: center; }
}

/* Ultra-wide — scale up gracefully, keep line lengths controlled. */
@media (min-width: 1600px) {
  .nav { padding-inline: clamp(2.5rem, 4vw, 6rem); }
  .hero h1 { font-size: clamp(3rem, 1.6rem + 1.8vw, 4rem); }
  .hero__inner { max-width: 40rem; }
  .hero__overlay { padding-right: clamp(4rem, 6vw, 9rem); }
}
@media (min-width: 2200px) {
  .hero__inner { max-width: 46rem; }
  .hero__sub { font-size: 1.3rem; }
}

/* Landscape / short viewports — keep everything on screen. */
@media (max-height: 560px) and (min-width: 640px) {
  .hero__overlay { padding-block: 2vh; }
  .hero h1 { font-size: clamp(1.6rem, 1rem + 2.2vw, 2.5rem); }
  .hero__sub { margin-top: 0.8rem; }
  .hero__cta { margin-top: 1rem; }
  .hero__hint { display: none; }
}

.brand__name small { white-space: nowrap; }

/* Phones — sit the text low (over the dashboard) so it never covers the
   driver, and keep the header compact. */
@media (max-width: 640px) {
  .hero__overlay { justify-content: flex-end; padding-bottom: clamp(3.5rem, 14vh, 7rem); }
}
@media (max-width: 560px) {
  .brand__name small { letter-spacing: 0.24em; }
  .nav__cta .btn--amber { padding: 0.7em 1.05em; font-size: 0.9rem; }
  .nav__cta .btn--amber .btn__arrow { display: none; }
}

/* Small phones. */
@media (max-width: 380px) {
  .hero h1 { font-size: 1.72rem; line-height: 1.1; }
  .hero__sub { font-size: 0.98rem; }
  .brand__name { font-size: 0.95rem; }
  .hero__cta .btn { padding: 0.82em 1.2em; font-size: 0.95rem; }
}

/* Respect reduced-motion for the new premium transitions too. */
@media (prefers-reduced-motion: reduce) {
  .nav, .brand, .btn__arrow, .preloader, .btn--amber { transition: none; }
}

/* ============================================================
   02 · NOTRE MÉTHODE — minimalist floating panel
   ============================================================ */
.method {
  position: sticky; top: 0;              /* pinned while Formations slides over it */
  background: var(--ink);
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + clamp(1.5rem, 4vh, 3rem)) var(--gutter) clamp(2rem, 5vh, 4rem);
}
.method__card {
  width: min(1320px, 100%);
  display: grid;
  grid-template-columns: 1.4fr 2.35fr 1fr;
  grid-template-areas: "head cards media";
  column-gap: clamp(1rem, 1.6vw, 1.7rem);
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: clamp(20px, 2vw, 30px);
  overflow: hidden;
  background: radial-gradient(120% 150% at 0% 0%, #141b26 0%, #0b0e14 58%);
  box-shadow: 0 50px 130px -60px rgba(0, 0, 0, 0.85);
}
.method__head {
  grid-area: head;
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
  padding: clamp(1.8rem, 2.6vw, 2.8rem);
}
.method__title { font-size: clamp(1.3rem, 0.95rem + 1vw, 1.7rem); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; }

.method__cards {
  grid-area: cards;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.85rem, 1.2vw, 1.25rem);
  align-content: center;
  padding: clamp(1.8rem, 2.6vw, 2.8rem) 0;
}
.mcard {
  aspect-ratio: 1 / 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(1.2rem, 1.7vw, 1.75rem);
  background: color-mix(in srgb, #0f1622 42%, transparent);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
}
.mcard:hover { border-color: var(--line-2); background: color-mix(in srgb, #131b28 65%, transparent); transform: translateY(-4px); }
.mcard__icon { color: var(--amber); }
.mcard__foot { display: flex; flex-direction: column; gap: 0.4rem; }
.mcard h3 { font-family: var(--display); font-weight: 600; font-size: clamp(0.92rem, 0.88rem + 0.2vw, 1.02rem); line-height: 1.25; margin: 0; }
.mcard p { color: var(--muted); font-size: 0.82rem; line-height: 1.4; margin: 0; }

.method__media { grid-area: media; position: relative; min-height: 100%; }
.method__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.method__media::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to right, #0b0e14 0%, rgba(11,14,20,0.35) 14%, rgba(11,14,20,0) 32%);
}

/* Cascade the reveal of the panel's pieces. */
.method__cards .mcard:nth-child(1) { transition-delay: 0.06s; }
.method__cards .mcard:nth-child(2) { transition-delay: 0.14s; }
.method__cards .mcard:nth-child(3) { transition-delay: 0.22s; }
.method__media.reveal { transition-delay: 0.12s; }

/* Responsive: stack the panel, image becomes a bottom banner. */
@media (max-width: 1080px) {
  /* Stacked layout → drop the pinned stacking so the code image isn't covered. */
  .method { position: relative; }
  .method__card { grid-template-columns: 1fr; grid-template-areas: "head" "cards" "media"; }
  .method__head { padding-bottom: 0.5rem; }
  .method__cards { padding: clamp(1.2rem, 3vw, 1.8rem) clamp(1.4rem, 3vw, 2rem) clamp(1.4rem, 3vw, 2rem); }
  .method__media { min-height: 0; aspect-ratio: 3 / 2; }
  .method__media::before { background: linear-gradient(to bottom, #0b0e14 0%, rgba(11,14,20,0) 26%); }
}
@media (max-width: 680px) {
  /* No pinned stacking on phones — the whole méthode (image included) scrolls
     into view instead of being covered by the Formations card sliding over it. */
  .method { position: relative; min-height: auto; padding-top: calc(var(--nav-h) + 1.5rem); }
  .method__cards { grid-template-columns: 1fr; }
  .mcard { aspect-ratio: auto; min-height: 118px; }
  .method__media { min-height: 0; aspect-ratio: 3 / 2; }
}

/* ============================================================
   TRANSITION · parallaxe multi-couches (hero → méthode)
   ============================================================ */
.plx { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #05070b; }
.plx__layers { position: absolute; inset: -12% 0; }
.plx__layer { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; pointer-events: none; transform: translateZ(0); backface-visibility: hidden; }
.plx__layer--bg img { width: 100%; height: 118%; object-fit: cover; opacity: 0.85; transform: translateZ(0); backface-visibility: hidden; }
.plx__layer--bg::after {
  content: ""; position: absolute; inset: 0;
  /* Light overall — the image stays visible; a soft centre vignette keeps
     the text legible without darkening the whole frame. */
  background:
    radial-gradient(68% 54% at 50% 47%, rgba(5,7,11,0.5) 0%, transparent 72%),
    linear-gradient(180deg, rgba(5,7,11,0.22) 0%, rgba(5,7,11,0.16) 46%, rgba(5,7,11,0.5) 100%);
}
.plx__title {
  font-family: var(--display); font-weight: 500; text-align: center;
  font-size: clamp(1.5rem, 1rem + 2.1vw, 2.9rem); line-height: 1.12; letter-spacing: -0.005em;
  text-shadow: 0 4px 34px rgba(0,0,0,0.6);
}
.plx__layer--fg { background: radial-gradient(120% 75% at 50% 118%, rgba(238,162,58,0.16), transparent 55%); }
.plx__fade { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--ink) 100%); }

@media (prefers-reduced-motion: reduce) {
  .plx__layer { transform: none !important; }
}

/* CTA in the méthode head — compact, single line, premium */
.method__cta { align-self: flex-start; margin-top: 0.9rem; white-space: nowrap; padding: 0.7em 1.3em; font-size: 0.9rem; }
@media (max-width: 900px) { .method__cta { align-self: stretch; justify-content: center; } }

/* Parallax CTA (in the title layer, moves with it) */
.plx__titlewrap { display: flex; flex-direction: column; align-items: center; gap: clamp(1.3rem, 3.5vh, 2.4rem); }
.plx__cta { pointer-events: auto; }

/* ============================================================
   03 · NOS FORMATIONS — scroll image tunnel (photos zoom in)
   ============================================================ */
/* Formations slides up over the pinned Méthode like a stacked card. */
.formations {
  position: relative; z-index: 2; background: var(--ink-1);
  border-top-left-radius: clamp(22px, 3vw, 44px);
  border-top-right-radius: clamp(22px, 3vw, 44px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -50px 90px -30px rgba(0,0,0,0.75);
}
.formations__intro {
  min-height: 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 1rem; padding: calc(var(--nav-h) + 2rem) var(--gutter) 1.5rem;
}
.formations__title { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.4rem); font-weight: 700; max-width: 20ch; line-height: 1.08; }
.formations__lead { color: var(--muted); max-width: 52ch; font-size: clamp(1rem, 0.96rem + 0.3vw, 1.15rem); line-height: 1.6; }
.formations__hint { font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); position: relative; padding-bottom: 2rem; margin-top: 0.5rem; }
.formations__hint::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 1.4rem; background: linear-gradient(to bottom, var(--muted), transparent); }

.tunnel { position: relative; width: 100%; height: calc(6 * 145vh); }
.tunnel__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.tunnel__frame { position: absolute; inset: var(--nav-h) 0 0 0; display: grid; place-items: center; pointer-events: none; }
.tunnel__media {
  margin: 0;                                    /* reset default <figure> margin (kept it off-centre) */
  width: min(1500px, 94vw); height: 80vh; overflow: hidden;
  border-radius: clamp(14px, 1.6vw, 22px); border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -50px rgba(0,0,0,0.9);
  opacity: 0; will-change: transform, opacity, filter; transform: scale(0.05);
}
.tunnel__media img { width: 100%; height: 100%; object-fit: cover; }
.tunnel__cap {
  position: absolute; width: min(1500px, 94vw); height: 80vh;
  border-radius: clamp(14px, 1.6vw, 22px); overflow: hidden; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: clamp(1.3rem, 2.6vw, 2.2rem); opacity: 0;
}
.tunnel__cap::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(to top, rgba(6,9,13,0.9) 0%, rgba(6,9,13,0.35) 42%, transparent 68%);
}
.tunnel__cap h3 { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.2rem); font-weight: 700; }
.tunnel__cap p { color: rgba(246,243,236,0.85); margin: 0.35rem 0 1.1rem; font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem); }
.tunnel__cap .btn { pointer-events: none; }   /* toggled to auto per-frame in JS */

/* Reduced-motion / no-JS fallback: simple stacked gallery. */
.tunnel.is-static { height: auto; }
.tunnel.is-static .tunnel__stage { position: static; height: auto; display: grid; gap: 2rem; padding: 2rem var(--gutter) 3rem; }
.tunnel.is-static .tunnel__frame { position: relative; inset: auto; }
.tunnel.is-static .tunnel__media { opacity: 1; transform: none; filter: none; }
.tunnel.is-static .tunnel__cap { opacity: 1; }

@media (max-width: 640px) {
  .tunnel { height: calc(6 * 130vh); }
  /* Keep the parallax subject in view on portrait. */
  .plx__layer--bg img { object-position: center; }
  /* « La liberté » : cadrer sur la main / la vitre / le rétro (côté droit). */
  .plx:not(.plx--bridge) .plx__layer--bg img { object-position: 62% 42%; }
}
/* Any upright screen (phones + tablets held vertically): each formation photo
   fills the whole screen, edge to edge (so it's always perfectly centred). */
@media (orientation: portrait) {
  .tunnel__frame { inset: 0; }
  .tunnel__media, .tunnel__cap { width: 100vw; height: 100vh; height: 100svh; aspect-ratio: auto; border-radius: 0; }
  .tunnel__media { border: none; box-shadow: none; }
  .tunnel__cap { padding: 0 clamp(1.3rem, 5vw, 2.2rem) clamp(2.4rem, 7vh, 3.6rem); }
  /* « Votre liberté, au juste prix » : sur portrait, cadrer pour qu'on voie
     le bras sortir de la fenêtre de la voiture (montant, portière, rétro) et
     les clés, plutôt que le seul ciel. */
  .plx--cles .plx__layer--bg img { object-position: 30% 60%; }
}

/* ============================================================
   05 · AVIS — stagger testimonials (pile de cartes)
   ============================================================ */
/* Anchor jumps (nav links) shouldn't hide headings under the fixed nav. */
section[id] { scroll-margin-top: var(--nav-h); }

/* Avis slides up over the pinned Tarifs like a stacked, rounded card. */
.avis {
  position: relative; z-index: 4; background: var(--ink-1);
  border-top-left-radius: clamp(22px, 3vw, 44px);
  border-top-right-radius: clamp(22px, 3vw, 44px);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -50px 90px -30px rgba(0,0,0,0.75);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + clamp(0.5rem, 2vh, 1.3rem)) 0 clamp(1rem, 3vh, 2rem);
  overflow: hidden;
}
.avis__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding-inline: var(--gutter); margin-bottom: clamp(0.6rem, 1.6vh, 1.2rem); }
.avis__title { font-size: clamp(1.5rem, 1rem + 1.8vw, 2.5rem); font-weight: 700; max-width: 22ch; line-height: 1.1; }
.avis__lead { color: var(--muted); max-width: 50ch; font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem); line-height: 1.6; }
.avis__tip {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.2rem;
  font-size: 0.78rem; letter-spacing: 0.02em; color: var(--amber);
  border: 1px solid color-mix(in srgb, var(--amber) 32%, transparent);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
  padding: 0.4rem 0.9rem; border-radius: 999px;
}
.avis__tip svg { color: var(--amber); }
/* Desktop: the lifted centre card rises ~42px; give the tip clear air so the
   fanned cards never creep up over it (mobile already has room). */
@media (min-width: 900px) {
  .avis__head { margin-bottom: clamp(2.4rem, 5.2vh, 3.6rem); }
}

.stagger { position: relative; width: 100%; height: clamp(300px, 40vh, 400px); overflow: visible; }
.stag-card {
  --card: 300px;
  position: absolute; left: 50%; top: 50%;
  width: var(--card); height: var(--card);
  padding: clamp(1.15rem, 2.4vw, 1.55rem);
  background: var(--ink-2); color: var(--paper);
  border: 1px solid var(--line-2);
  cursor: pointer; user-select: none;
  display: flex; flex-direction: column;
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, calc(100% - 28px) 100%, 28px 100%, 0 100%, 0 0);
  transition: transform .5s var(--ease), background .5s ease, color .5s ease, box-shadow .5s ease, border-color .5s ease;
  will-change: transform;
}
.stag-card.is-center { background: var(--amber); color: #14100a; border-color: var(--amber); box-shadow: 0 7px 0 4px var(--amber-deep); }
/* Non-centre cards read as clickable: subtle amber edge on hover. */
@media (hover: hover) {
  .stag-card:not(.is-center):hover { border-color: color-mix(in srgb, var(--amber) 55%, transparent); box-shadow: 0 0 0 1px var(--glow); }
}
.stag-card__slash { position: absolute; right: -2px; top: 38px; width: 56px; height: 2px; background: var(--line-2); transform-origin: top right; transform: rotate(45deg); }
.stag-card.is-center .stag-card__slash { background: color-mix(in srgb, var(--amber-deep) 80%, #14100a); }
.stag-card__top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.85rem; }
.stag-av {
  width: 38px; height: 44px; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  background: var(--ink-1); color: var(--amber); box-shadow: 3px 3px 0 var(--ink);
}
.stag-card.is-center .stag-av { background: #14100a; color: var(--amber); box-shadow: 3px 3px 0 var(--amber-deep); }
.stag-stars { letter-spacing: 2px; font-size: 0.85rem; color: var(--amber); }
.stag-card.is-center .stag-stars { color: #14100a; }
.stag-card__quote { font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.14rem); font-weight: 500; line-height: 1.4; letter-spacing: -0.01em; }
.stag-card__by { margin-top: auto; font-size: 0.84rem; font-style: italic; opacity: 0.82; }

.stagger__nav { display: flex; justify-content: center; gap: 0.75rem; margin-top: clamp(0.6rem, 1.6vh, 1.1rem); }
.stagger__btn {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--ink-1); border: 1px solid var(--line-2); border-radius: 14px;
  color: var(--paper); cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--ease);
}
.stagger__btn:hover { background: var(--amber); color: #14100a; border-color: var(--amber); transform: translateY(-2px); }
.stagger__btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.avis__cta { display: flex; justify-content: center; margin-top: clamp(0.9rem, 2.4vh, 1.6rem); padding-inline: var(--gutter); }

@media (prefers-reduced-motion: reduce) {
  .stag-card { transition: none; }
}

/* ============================================================
   06 · INTRO VIDÉO — scroll-expand media (pinned scrub)
   ============================================================ */
.svm { position: relative; z-index: 5; height: 400vh; background: var(--ink); }
.svm__track { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.svm__stage { position: absolute; inset: 0; }

.svm__bg { position: absolute; inset: 0; will-change: opacity; }
.svm__bg img { width: 100%; height: 100%; object-fit: cover; }
.svm__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,9,13,0.45) 0%, rgba(6,9,13,0.3) 45%, rgba(6,9,13,0.6) 100%);
}

.svm__frame {
  position: absolute; z-index: 2;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 400px; max-width: none; max-height: none;
  border-radius: 22px; overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.8);
  will-change: width, height;
}
.svm__media { position: absolute; inset: 0; background: #06090d; }
.svm__media img, .svm__media video, .svm__canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.svm__scrim { position: absolute; inset: 0; background: #06090d; opacity: 0.35; pointer-events: none; }

.svm__titles { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; pointer-events: none; }
.svm__word {
  font-family: var(--display); font-weight: 700; color: var(--paper);
  font-size: clamp(2rem, 1rem + 4.4vw, 4.6rem); line-height: 1.05; letter-spacing: -0.02em;
  text-shadow: 0 6px 40px rgba(0,0,0,0.6); will-change: transform, opacity;
}

.svm__hint {
  position: absolute; left: 50%; bottom: clamp(1.6rem, 5vh, 3rem); transform: translateX(-50%);
  z-index: 3; font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  padding-bottom: 1.8rem;
}
.svm__hint::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 1.3rem; background: linear-gradient(to bottom, var(--muted), transparent); }

@media (prefers-reduced-motion: reduce) {
  .svm { height: auto; }
  .svm__track { position: static; height: 100vh; }
  .svm__frame { width: min(95vw, 1100px); height: min(85vh, 680px); }
  .svm__titles, .svm__hint { display: none; }
}

/* ============================================================
   04 · NOS TARIFS — holographic pricing cards
   ============================================================ */
/* One-screen panel — the whole offer (cards + CTA + note) fits in a viewport.
   Relative (not pinned), so on very short screens it simply scrolls, never clips. */
.pricing {
  position: relative; z-index: 3; background: var(--ink);
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + clamp(1rem, 3vh, 2rem)) 0 clamp(1.5rem, 4vh, 3rem);
}
.pricing__inner { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.pricing__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.2rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.3rem, 2.6vh, 2.2rem); }
.pricing__title { font-size: clamp(1.5rem, 1rem + 1.6vw, 2.4rem); font-weight: 600; line-height: 1.12; margin-top: 0.8rem; max-width: 16ch; }
.pricing__link { color: var(--amber); font-weight: 600; font-size: 0.92rem; display: inline-flex; gap: 0.45em; align-items: center; transition: gap .25s var(--ease); }
.pricing__link:hover { gap: 0.75em; }

.pricing__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.9rem, 1.3vw, 1.4rem); align-items: stretch; }

.pcard {
  position: relative; border-radius: 18px; padding: clamp(1.1rem, 1.5vw, 1.5rem);
  border: 1px solid var(--line); background: color-mix(in srgb, var(--ink-2) 60%, transparent);
  transform-style: preserve-3d; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  will-change: transform; --x: 50%; --y: 50%;
}
.pcard--featured {
  border-color: color-mix(in srgb, var(--amber) 55%, transparent);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow: 0 34px 90px -46px var(--glow);
}
.pcard__badge {
  position: absolute; top: -0.72rem; left: 50%; transform: translateX(-50%); z-index: 4;
  background: var(--amber); color: var(--ink); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.13em; text-transform: uppercase; padding: 0.42em 0.9em; border-radius: 999px;
  box-shadow: 0 8px 20px -8px var(--glow); white-space: nowrap;
}
/* Amber holographic glow following the cursor (adapted to the DA). */
.pcard__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; border-radius: inherit; overflow: hidden;
  opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(238,162,58,0.20), rgba(246,214,165,0.06) 34%, transparent 62%);
}
.pcard:hover { border-color: var(--line-2); }
.pcard:hover .pcard__glow { opacity: 1; }
.pcard--featured:hover .pcard__glow { opacity: 1; }

.pcard__body { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.pcard__name { font-family: var(--display); font-weight: 600; font-size: 1.08rem; }
.pcard__sub { color: var(--muted); font-size: 0.82rem; margin: 0.28rem 0 0; min-height: 2.3em; line-height: 1.3; }
.pcard__price { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 1.25rem + 0.9vw, 2.1rem); letter-spacing: -0.03em; margin: 0.65rem 0 0; }
.pcard__price span { font-size: 0.46em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.pcard__feats { list-style: none; margin: 0.8rem 0 1rem; padding: 0.8rem 0 0; border-top: 1px solid var(--line); display: grid; gap: 0.45rem; }
.pcard__feats li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.pcard__feats svg { color: var(--amber); flex: none; margin-top: 2px; }
.pcard__cta { margin-top: auto; width: 100%; }

.pricing__note { display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-align: center; color: var(--muted-2); font-size: 0.8rem; margin-top: clamp(1rem, 2.4vh, 1.8rem); }
.pricing__note svg { color: var(--amber); }

@media (max-width: 1000px) {
  .pricing__grid { grid-template-columns: repeat(2, 1fr); }
  .pcard__sub { min-height: 0; }
}
@media (max-width: 560px) {
  .pricing__grid { grid-template-columns: 1fr; }
}

/* Compact single-line pricing CTA */
.pcard__cta { font-size: 0.9rem; padding: 0.8em 1em; white-space: nowrap; }

/* ============================================================
   07 · NOTRE ÉCOLE — agence + mission + engagements
   ============================================================ */
.ecole { position: relative; z-index: 5; background: var(--ink); }
.eyebrow--center::before { display: none; }
.eyebrow--center { justify-content: center; }

/* --- Bandeau agence (image plein cadre + texte à gauche) --- */
/* Plein écran : la section occupe tout l'écran dès qu'on arrive dessus. */
.ecole__hero { position: relative; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
/* Overscan (150% tall, pulled up) : parallaxe prononcé sans jamais révéler de bord. */
.ecole__bg { position: absolute; left: 0; right: 0; top: -25%; bottom: auto; width: 100%; height: 150%; object-fit: cover; object-position: 70% center; will-change: transform; }
.ecole__heroinner { will-change: transform; }
.ecole__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,9,13,0.92) 0%, rgba(6,9,13,0.72) 34%, rgba(6,9,13,0.18) 62%, transparent 82%),
    linear-gradient(0deg, var(--ink) 0%, rgba(12,17,24,0.1) 26%, transparent 46%);
}
.ecole__heroinner { position: relative; z-index: 2; max-width: var(--maxw); }
.ecole__heroinner .eyebrow { margin-bottom: 1.1rem; }
.ecole__title { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); font-weight: 700; line-height: 1.02; max-width: 15ch; }
.ecole__lead { color: var(--paper); opacity: 0.86; max-width: 42ch; margin: 1.3rem 0 2rem; font-size: var(--step-0); line-height: 1.55; }

/* --- Notre mission --- */
.ecole__mission { background: var(--ink); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.ecole__missionhead { text-align: center; max-width: 760px; margin-inline: auto; }
.ecole__missionhead .eyebrow { margin-bottom: 1.1rem; }
.ecole__missiontitle { font-size: clamp(1.6rem, 1rem + 2.4vw, 2.9rem); font-weight: 700; line-height: 1.08; }
.ecole__missionlead { color: var(--muted); margin: 1.2rem auto 0; max-width: 52ch; }

.ecole__pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  background: color-mix(in srgb, var(--ink-1) 55%, transparent);
}
.pillar { padding: clamp(1.8rem, 3vw, 2.6rem); text-align: center; position: relative; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar__icon {
  display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 999px;
  color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 30%, transparent); margin-bottom: 1.1rem;
}
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.14rem; margin-bottom: 0.55rem; }
.pillar p { color: var(--muted); font-size: 0.92rem; line-height: 1.5; max-width: 30ch; margin-inline: auto; }

/* --- Bandeau d'appel --- */
.ecole__join {
  position: relative; overflow: hidden; margin-top: clamp(2.2rem, 4vw, 3.2rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1.6rem 2.5rem; flex-wrap: wrap;
  padding: clamp(1.7rem, 3.4vw, 2.6rem) clamp(1.7rem, 3.6vw, 3rem);
  border: 1px solid color-mix(in srgb, var(--amber) 22%, var(--line)); border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--ink-2), var(--ink-1));
}
.ecole__join::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 130% at 100% 0%, var(--glow), transparent 58%); opacity: 0.5; }
.ecole__jointext { position: relative; z-index: 2; }
.ecole__jointext .eyebrow { margin-bottom: 0.8rem; }
.ecole__jointitle { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 0.9rem + 1.4vw, 1.9rem); line-height: 1.14; max-width: 20ch; }
.ecole__join .btn { position: relative; z-index: 2; flex: none; white-space: nowrap; }

@media (max-width: 820px) {
  .ecole__pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: none; border-top: 1px solid var(--line); }
  .ecole__join { flex-direction: column; align-items: flex-start; text-align: left; }
  .ecole__join .btn { align-self: stretch; }
}
@media (max-width: 640px) {
  .ecole__hero { height: 100vh; height: 100svh; align-items: flex-end; padding-bottom: clamp(2.5rem, 8vh, 4rem); }
  .ecole__bg { object-position: 60% 42%; }
  .ecole__scrim {
    background:
      linear-gradient(0deg, rgba(6,9,13,0.94) 4%, rgba(6,9,13,0.6) 34%, rgba(6,9,13,0.12) 62%, transparent 84%),
      linear-gradient(0deg, var(--ink) 0%, transparent 30%);
  }
  .ecole__lead { opacity: 0.9; }
}

/* ============================================================
   08b · SÉQUENCE DÉFILABLE « liberté » (avant contact)
   Uniquement la séquence d'images, plein écran, pilotée au scroll.
   ============================================================ */
.seqx { position: relative; z-index: 5; height: 320vh; background: var(--ink); }
.seqx__track { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.seqx__stage { position: absolute; inset: 0; background: #06090d; }
.seqx__canvas { display: block; width: 100%; height: 100%; }
/* Titre + CTA révélés au climax (piloté au scroll par le JS). */
.seqx__overlay {
  position: absolute; inset: 0; z-index: 3; display: flex; align-items: flex-end; justify-content: center;
  padding: 0 var(--gutter) clamp(2.4rem, 9vh, 5.5rem); pointer-events: none; opacity: 0; will-change: opacity, transform;
}
.seqx__overlay::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(6,9,13,0.9) 0%, rgba(6,9,13,0.55) 26%, rgba(6,9,13,0.1) 52%, transparent 72%);
}
.seqx__inner { position: relative; z-index: 1; text-align: center; max-width: 42rem; }
.seqx__inner .eyebrow { margin-bottom: 1rem; }
.seqx__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; text-shadow: 0 6px 34px rgba(0,0,0,0.6); }
.seqx__lead { color: rgba(246,243,236,0.92); font-size: var(--step-0); line-height: 1.55; max-width: 40ch; margin: 1.1rem auto 1.15rem; text-shadow: 0 2px 18px rgba(0,0,0,0.65); }
/* Preuve sociale + autorité (leviers de persuasion) juste avant le CTA. */
.seqx__proof { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.35rem 0.85rem; margin: 0 auto 1.6rem; font-size: 0.9rem; color: rgba(246,243,236,0.94); text-shadow: 0 1px 12px rgba(0,0,0,0.75); }
.seqx__proof strong { font-weight: 700; }
.seqx__proof .stars { color: var(--amber); letter-spacing: 0.08em; }
.seqx__proof .sep { opacity: 0.4; }
@media (max-width: 560px) { .seqx__proof .sep { display: none; } .seqx__proof { gap: 0.2rem 1.15rem; } }
.seqx__cta { pointer-events: none; margin-top: clamp(1.8rem, 4vh, 2.6rem); }  /* activé par le JS une fois révélé */
.seqx__note { color: rgba(246,243,236,0.62); font-size: 0.82rem; letter-spacing: 0.02em; margin-top: 0.95rem; text-shadow: 0 1px 12px rgba(0,0,0,0.65); }

/* ============================================================
   08 · CONTACT / INSCRIPTION
   ============================================================ */
.contact { position: relative; z-index: 5; background: var(--ink); padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.contact__intro .eyebrow { margin-bottom: 1.1rem; }
.contact__title { font-size: clamp(1.7rem, 1.1rem + 2.4vw, 3rem); font-weight: 700; line-height: 1.06; }
.contact__lead { color: var(--muted); margin: 1.2rem 0 1.8rem; max-width: 42ch; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: flex-start; gap: 0.85rem; color: var(--paper); font-size: 0.96rem; line-height: 1.4; }
.contact__list a { color: var(--paper); transition: color .2s; }
.contact__list a:hover { color: var(--amber); }
.contact__ic {
  flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  color: var(--amber); background: color-mix(in srgb, var(--amber) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--amber) 28%, transparent);
}

@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; gap: clamp(1.8rem, 5vw, 2.6rem); align-items: stretch; }
}

/* ============================================================
   SIGNATURE AGENCE · CSB MOTION (identité claire du studio)
   ============================================================ */
.csb {
  /* Fond identique aux coins du logo → le logo se fond sans bord visible. */
  background: #f6f3f2;
  color: #171320;
  padding: clamp(3.5rem, 8vw, 6rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  text-align: center;
}
.csb__inner { max-width: 640px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.csb__logo { width: clamp(160px, 42vw, 230px); height: auto; display: block; }
.csb__kicker {
  color: #7c5cff; font-family: var(--body); font-weight: 600;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; margin-top: 0.4rem;
}
.csb__title {
  font-family: var(--display); font-weight: 700; color: #171320;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); letter-spacing: -0.02em;
  line-height: 1.08; margin-top: 0.75rem;
}
.csb__brand {
  background: linear-gradient(90deg, #7c5cff, #b49bff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.csb__lead { color: #5a5560; font-size: var(--step-0); line-height: 1.6; max-width: 46ch; margin: 1.1rem auto 0; }
.csb__tags { list-style: none; padding: 0; margin: 1.4rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 34rem; }
.csb__tags li {
  font-family: var(--body); font-size: 0.78rem; font-weight: 500; color: #4b4557;
  padding: 0.42em 0.95em; border-radius: 999px;
  background: rgba(124, 92, 255, 0.08); border: 1px solid rgba(124, 92, 255, 0.22);
}
.csb__cta {
  display: inline-flex; align-items: center; gap: 0.55em; margin-top: 1.9rem;
  padding: 0.9em 1.7em; border-radius: 999px; background: #171320; color: #fff;
  font-family: var(--body); font-weight: 600; font-size: var(--step-0); letter-spacing: 0.01em;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s;
}
.csb__cta:hover { transform: translateY(-2px); background: #241d33; box-shadow: 0 18px 44px -18px rgba(124, 92, 255, 0.65); }
.csb__cta svg { transition: transform .25s var(--ease); }
.csb__cta:hover svg { transform: translateX(3px); }
.csb__note { color: #9a94a6; font-size: 0.82rem; letter-spacing: 0.05em; margin-top: 1.05rem; }
