/* =========================================================
   La Gen Z ne postule pas. Elle choisit.
   Landing page — Hippolyte.ai x Kantar Media, 2026
   DA : fichier Figma « Hippolyte.ai x Kantar Media – Étude Gen Z 2026 – DA »
   ========================================================= */

:root {
  /* Couleurs de la DA (page 01 · Fondations) */
  --navy: #0B1120;
  --blue: #164EE2;
  --violet: #8631F4;
  --white: #FFFFFF;
  --gray-200: #F3F5F7;
  --gray-400: #9CA3AF;
  --gray-600: #4B5563;

  /* Dérivés */
  --navy-80: rgba(11, 17, 32, 0.8);
  --navy-60: rgba(11, 17, 32, 0.6);
  --white-12: rgba(255, 255, 255, 0.12);
  --white-24: rgba(255, 255, 255, 0.24);
  --white-70: rgba(255, 255, 255, 0.7);
  --grad-chapter: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);

  /* Typographie : Roc Grotesk via Adobe Fonts (nom de famille Typekit : roc-grotesk).
     Le fallback reste visuellement proche tant que le kit n'est pas chargé. */
  --font: "roc-grotesk", "Roc Grotesk", "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;

  /* Échelle (fondations Figma : 150 / 60 / 30 / 18 / 11) adaptée au web */
  --fs-hero: clamp(3rem, 9vw, 8.5rem);
  --fs-h2: clamp(2.25rem, 5vw, 4.25rem);
  --fs-h3: clamp(1.5rem, 2.6vw, 2.125rem);
  --fs-lead: clamp(1.25rem, 2vw, 1.75rem);
  --fs-body: 1.125rem;
  --fs-small: 0.8125rem;
  --fs-figure: clamp(4rem, 10vw, 9rem);

  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 5vw, 80px);
  --max: 1400px;
  --nav-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 0.75rem 1rem;
  background: var(--violet); color: var(--white); border-radius: 999px; text-decoration: none; font-weight: 500;
}
.skip:focus { top: 16px; }
.js-only { display: none; }
.js .js-only { display: inline; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- Étiquettes et petites typos ---------- */
.tag {
  display: inline-block;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-bottom: 1.25rem;
}
.tag::before { content: "( " / ""; }
.tag::after { content: " )" / ""; }

.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.pill--violet { border-color: var(--violet); color: var(--violet); }
.pill--filled { background: var(--violet); border-color: var(--violet); color: var(--white); }

.source {
  font-size: var(--fs-small);
  line-height: 1.4;
  color: var(--gray-600);
  max-width: 70ch;
}
.dark .source { color: var(--white-70); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); }
.dark .btn { background: var(--white); border-color: var(--white); color: var(--navy); }
.dark .btn--ghost { background: transparent; color: var(--white); border-color: var(--white-24); }
.dark .btn--ghost:hover { border-color: var(--white); }
.btn--violet { background: var(--violet); border-color: var(--violet); color: var(--white); }
.dark .btn--violet { background: var(--violet); border-color: var(--violet); color: var(--white); }
.btn[disabled] { opacity: 0.6; cursor: wait; transform: none; }

/* ---------- Sections ---------- */
section, header.hero, footer { position: relative; }
section[id] { scroll-margin-top: 12px; }
.section { padding-block: clamp(5rem, 10vw, 9rem); }
.dark { background: var(--navy); color: var(--white); }
.light { background: var(--white); color: var(--navy); }
.soft { background: var(--gray-200); color: var(--navy); }

/* Fond flou (Visuel/Flou 1-3) avec voile de lisibilité et dégradé bas */
.flou { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.flou img { width: 100%; height: 100%; object-fit: cover; }
.flou::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,17,32,0.25) 0%, rgba(11,17,32,0.15) 40%, rgba(11,17,32,0.85) 100%);
}
.flou--soft::after { background: rgba(11,17,32,0.35); }
section > .wrap, header > .wrap, footer > .wrap { position: relative; z-index: 1; }

/* ---------- Navigation flottante ---------- */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 50;
  width: min(1120px, calc(100% - 32px));
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 0 18px;
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--white-12);
  color: var(--white);
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.nav.is-hidden { transform: translate(-50%, -120%); opacity: 0; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: 0.9375rem; text-decoration: none; opacity: 0.85; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav .btn { padding: 0.65rem 1.1rem; font-size: 0.9375rem; }
.nav__burger {
  display: none; width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: transparent; color: var(--white); cursor: pointer; align-items: center; justify-content: center;
}
.nav__burger svg { width: 22px; height: 22px; }
.nav__mobile {
  display: none; position: fixed; inset: calc(var(--nav-h) + 24px) 16px auto 16px; z-index: 49;
  background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 1.25rem; border: 1px solid var(--white-12);
}
.nav__mobile.is-open { display: block; }
.nav__mobile a { display: block; padding: 0.75rem 0.5rem; text-decoration: none; font-size: 1.125rem; border-bottom: 1px solid var(--white-12); }
.nav__mobile a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid; align-items: end;
  padding: calc(var(--nav-h) + 56px) 0 clamp(3rem, 6vw, 5rem);
  color: var(--white);
  background: var(--navy);
  overflow: hidden;
}
.hero__z {
  position: absolute; z-index: 0; right: -6vw; top: 38%; transform: translateY(-50%);
  width: clamp(360px, 40vw, 680px); color: var(--white); opacity: 0.45; pointer-events: none;
}
.hero__z path { stroke: currentColor; stroke-width: 1.2; fill: none; }
.hero__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.hero__title {
  font-size: var(--fs-hero);
  line-height: 0.92;
  font-weight: 300;
  letter-spacing: -0.015em;
}
.hero__title strong { font-weight: 700; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(110%); }
.hero__sub {
  margin-top: 2rem;
  font-size: var(--fs-lead);
  font-weight: 300;
  max-width: 34ch;
}
.hero__meta {
  display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start;
  padding-bottom: 0.5rem;
  text-shadow: 0 1px 24px rgba(11,17,32,0.6);
}
.hero__meta p { max-width: 36ch; color: var(--white-70); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__scroll {
  position: absolute; left: var(--gutter); bottom: 1.5rem; z-index: 1;
  font-size: var(--fs-small); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6;
}

/* ---------- Prologue : texte avec images au survol ---------- */
.prologue { padding-block: clamp(5rem, 10vw, 8rem); }
.prologue__text {
  font-size: clamp(1.5rem, 2.9vw, 2.6rem);
  line-height: 1.3;
  font-weight: 300;
  max-width: 28ch;
}
.prologue__text + .prologue__text { margin-top: 3rem; }
.prologue__text strong { font-weight: 500; }
.ref {
  display: inline-block; vertical-align: -0.18em;
  height: 1.1em; width: 1.6em; border-radius: 0.3em;
  overflow: hidden; margin: 0 0.1em;
  background: var(--gray-400);
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.ref img { width: 100%; height: 100%; object-fit: cover; }
.ref:hover { transform: scale(1.12) rotate(-2deg); }
.ref-preview {
  position: fixed; z-index: 60; pointer-events: none;
  width: 260px; aspect-ratio: 4 / 5; border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: 0 30px 60px rgba(11,17,32,0.35);
  opacity: 0; transform: scale(0.9) rotate(-4deg);
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: var(--navy);
}
.ref-preview.is-on { opacity: 1; transform: scale(1) rotate(-2deg); }
.ref-preview img { width: 100%; height: 100%; object-fit: cover; }
.ref-preview figcaption {
  position: absolute; inset: auto 0 0 0; padding: 0.75rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(11,17,32,0.85));
  color: var(--white); font-size: var(--fs-small);
}
.prologue__hint { margin-top: 2rem; font-size: var(--fs-small); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-600); }

/* ---------- Polaroïds ---------- */
.polaroids { height: 260vh; background: var(--white); }
.polaroids.is-static { height: 100vh; height: 100svh; }
.polaroids__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; place-items: center;
}
.polaroids__center {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  text-align: center; max-width: 22ch; z-index: 1;
}
.js .polaroids__center { opacity: 0; transform: translateY(10px); }
.polaroids__center h2 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 300; line-height: 1.25; }
.polaroids__center p { margin-top: 0.6rem; color: var(--gray-600); font-size: 0.875rem; }
.card {
  margin: 0;
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: min(clamp(140px, 13.5vw, 190px), 20vh);
  background: var(--white); padding: 8px 8px 0;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(11,17,32,0.08), 0 24px 48px -12px rgba(11,17,32,0.35);
  transform-origin: center;
  will-change: transform;
}
.card__img { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 3px; background: var(--gray-200); }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__cap {
  display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem;
  padding: 0.6rem 0.25rem 0.7rem;
  font-size: 0.75rem; line-height: 1.25; color: var(--gray-600);
}
.card__cap strong { color: var(--navy); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.card__cap span { text-align: right; }

@media (max-height: 760px) and (min-width: 641px) {
  .polaroids__center { max-width: 20ch; }
  .polaroids__center h2 { font-size: 1.125rem; }
  .polaroids__center p { font-size: 0.8125rem; margin-top: 0.4rem; }
  .card__cap { font-size: 0.6875rem; padding: 0.45rem 0.2rem 0.5rem; }
  .card__cap strong { font-size: 0.9rem; }
}

/* ---------- Chapitres ---------- */
.chapter {
  min-height: 78vh; display: grid; align-items: end;
  padding: calc(var(--nav-h) + 60px) 0 clamp(3rem, 6vw, 5rem);
  color: var(--white); background: var(--navy); overflow: hidden;
}
.chapter__num {
  font-size: clamp(8rem, 26vw, 24rem); line-height: 0.8; font-weight: 300;
  letter-spacing: -0.04em; opacity: 0.9;
}
.chapter__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; }
.chapter__title {
  font-size: var(--fs-h2); font-weight: 300; line-height: 1.02; margin-top: 1rem;
}
.chapter__title strong { font-weight: 700; }
.chapter__lead { margin-top: 1.5rem; font-size: var(--fs-lead); font-weight: 300; max-width: 30ch; }
.chapter__z {
  position: absolute; right: -10vw; top: 6%; width: clamp(280px, 34vw, 560px);
  color: var(--white); opacity: 0.4; z-index: 0; pointer-events: none;
}
.chapter__z path { stroke: currentColor; stroke-width: 1.2; fill: none; }

/* Blocs d'enseignement */
.insight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.insight + .insight { margin-top: clamp(4rem, 8vw, 7rem); padding-top: clamp(4rem, 8vw, 7rem); border-top: 1px solid rgba(11,17,32,0.1); }
.dark .insight + .insight { border-top-color: var(--white-12); }
.insight--reverse > :first-child { order: 2; }
.insight h3 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.05; letter-spacing: -0.01em; max-width: 18ch; }
.insight h3 strong { font-weight: 700; }
.insight .lead { margin-top: 1.5rem; font-size: var(--fs-lead); font-weight: 300; max-width: 34ch; line-height: 1.35; }
.insight .body { margin-top: 1.25rem; max-width: 48ch; color: var(--gray-600); }
.dark .insight .body { color: var(--white-70); }
.insight .source { margin-top: 1.5rem; }

/* Chiffre clé XL */
.figure { display: flex; flex-direction: column; gap: 0.5rem; }
.figure__num {
  font-size: var(--fs-figure); line-height: 0.9; font-weight: 400; letter-spacing: -0.03em;
  display: inline-flex; align-items: flex-start; gap: 0;
}
/* Pastille % du Figma (composant « Chiffre clé/Pastille % ») : un tiers de la hauteur du chiffre, fond Blue, % blanc.
   La taille est exprimée en em de la pastille elle-même (font-size 0.15em du chiffre), d'où le facteur 2.4. */
.figure__num .pct {
  display: inline-grid; place-items: center;
  width: 2.4em; height: 2.4em; border-radius: 50%;
  background: var(--blue); color: var(--white);
  font-size: 0.15em; font-weight: 500; margin-top: 0.1em; margin-left: 0.3em; line-height: 1;
}
.figure__num--bold { font-weight: 700; }
.figure__cap { font-size: var(--fs-body); max-width: 30ch; line-height: 1.4; }

/* Carte chiffre sur fond (photo + chiffre superposés) */
.figure-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  min-height: 460px; display: grid; align-items: end; padding: 2rem;
  color: var(--white); background: var(--navy);
}
.figure-card img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Voile de lisibilité (Figma) : voile navy uniforme + dégradé bas, pour que le chiffre reste lisible sur la photo */
.figure-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(11,17,32,0.4) 0%, rgba(11,17,32,0.55) 45%, rgba(11,17,32,0.95) 100%); }
.figure-card > * { position: relative; z-index: 1; }
.figure-card .figure__num { font-size: clamp(4rem, 8vw, 7rem); }

/* Barres horizontales */
.bars { display: grid; gap: 0.9rem; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; }
.bar__label { font-size: 0.9375rem; margin-bottom: 0.3rem; display: flex; align-items: center; gap: 0.5rem; }
.bar__label svg { width: 16px; height: 16px; opacity: 0.8; }
.bar__track { height: 14px; border-radius: 999px; background: rgba(11,17,32,0.08); overflow: hidden; }
.dark .bar__track { background: var(--white-12); }
.bar__fill {
  height: 100%; width: var(--w); border-radius: inherit;
  background: var(--grad-chapter);
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.js .bar__fill { width: 0; }
.js .in-view .bar__fill { width: var(--w); }
.bar__val { font-weight: 700; font-size: 1.125rem; text-align: right; white-space: nowrap; min-width: 3.5ch; }
.bar--muted .bar__fill { background: var(--gray-400); }

/* Trio de chiffres */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.trio__item { padding-top: 1.5rem; border-top: 1.5px solid currentColor; }
.trio__item .figure__num { font-size: clamp(3rem, 5.5vw, 5.5rem); }
.trio__item p { margin-top: 1rem; max-width: 26ch; }
.trio__item .ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); margin-bottom: 1.25rem; }
.dark .trio__item .ico { background: var(--white); color: var(--navy); }
.trio__item .ico svg { width: 20px; height: 20px; }

/* Anneau de répartition */
.ring { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; }
.ring__svg { width: clamp(220px, 26vw, 340px); height: auto; }
.ring__svg circle { fill: none; stroke-width: 26; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring__svg .seg { stroke-dasharray: var(--d) 600; transition: stroke-dasharray 1.2s cubic-bezier(0.22,1,0.36,1); }
.js .ring__svg .seg { stroke-dasharray: 0 600; }
.js .in-view .ring__svg .seg { stroke-dasharray: var(--d) 600; }
.ring__center { font-size: 34px; font-weight: 700; fill: var(--navy); }
.ring__sub { font-size: 12px; fill: var(--gray-600); }
.legend { display: grid; gap: 1rem; }
.legend li { display: grid; grid-template-columns: 14px auto; gap: 0.75rem; align-items: start; list-style: none; }
.legend ul { padding: 0; margin: 0; }
.legend .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 0.55rem; }
.legend strong { font-size: 1.75rem; font-weight: 700; display: block; line-height: 1.1; }
.legend span { color: var(--gray-600); }

/* Verbatim : composant Figma « Verbatim/Fond de carte » (dégradé périwinkle vers Blue vers navy, chevrons filaires) et « Verbatim/Avatar » */
.verbatim-panel {
  background: var(--gray-200); border-radius: var(--radius); padding: 1.5rem 1.5rem 1.75rem;
}
.verbatim-panel__label { font-size: var(--fs-small); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-600); margin-bottom: 2.75rem; }
.verbatim {
  position: relative; margin: 0; border-radius: 18px; padding: 3.25rem 3rem 1.75rem; color: var(--white);
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='white' stroke-opacity='0.75' stroke-width='1'><path d='M70 10 L18 60 L70 110'/><path d='M100 10 L48 60 L100 110'/></svg>") no-repeat -28px 14px / 120px 120px,
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120' fill='none' stroke='white' stroke-opacity='0.75' stroke-width='1'><path d='M50 10 L102 60 L50 110'/><path d='M20 10 L72 60 L20 110'/></svg>") no-repeat right -28px bottom 14px / 120px 120px,
    linear-gradient(45deg, #C5CDF6 0%, #5C73EA 28%, #164EE2 50%, #1B2E9E 78%, #10195F 100%);
  box-shadow: 0 24px 48px -20px rgba(11,17,32,0.45);
}
.verbatim__avatar {
  position: absolute; top: -32px; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gray-200);
}
.verbatim blockquote { margin: 0; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 300; line-height: 1.4; text-align: center; }
.verbatim blockquote strong { font-weight: 700; }
.verbatim figcaption { margin-top: 1.5rem; font-size: 0.875rem; line-height: 1.45; color: var(--white); text-align: center; }
.verbatim__dots { display: block; width: 4px; height: 4px; margin: 0 auto 0.9rem; border-radius: 50%; background: var(--white); box-shadow: 0 -8px 0 var(--white), 0 8px 0 var(--white); position: relative; top: 0; }

/* ---------- À retenir ---------- */
.retenir { background: var(--navy); color: var(--white); overflow: hidden; }
.retenir__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.retenir h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.05; }
.retenir h2 strong { font-weight: 700; }
.retenir__intro { margin-top: 1.5rem; color: var(--white-70); max-width: 34ch; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--white-24); }
.steps li {
  display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: start;
  padding: 1.6rem 0; border-bottom: 1px solid var(--white-24);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .steps li { opacity: 0; transform: translateY(16px); }
.js .steps.in-view li { opacity: 1; transform: none; }
.steps li:nth-child(2) { transition-delay: 0.08s; }
.steps li:nth-child(3) { transition-delay: 0.16s; }
.steps li:nth-child(4) { transition-delay: 0.24s; }
.steps li:nth-child(5) { transition-delay: 0.32s; }
.steps .num { font-size: 2.5rem; font-weight: 300; line-height: 1; opacity: 0.7; }
.steps h3 { font-size: 1.375rem; font-weight: 500; line-height: 1.25; }
.steps p { margin-top: 0.5rem; color: var(--white-70); max-width: 52ch; }
.steps .pill { margin-bottom: 0.6rem; }

/* ---------- Téléchargement (gates) ---------- */
.gates { background: var(--gray-200); }
.gates__head { max-width: 60ch; }
.gates__head h2 { font-size: var(--fs-h2); font-weight: 300; line-height: 1.05; }
.gates__head h2 strong { font-weight: 700; }
.gates__head p { margin-top: 1.25rem; color: var(--gray-600); max-width: 50ch; }
.gates__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 5rem); margin-top: 3rem; align-items: start; }
.extraits { display: grid; gap: 1rem; }
.extrait {
  display: grid; grid-template-columns: 56px 1fr auto; gap: 1.25rem; align-items: center;
  padding: 1.25rem 1.5rem; border-radius: var(--radius); background: var(--white);
  border: 1px solid rgba(11,17,32,0.06); cursor: pointer; margin: 0;
  transition: border-color 0.2s ease;
}
.extrait:hover, .extrait:focus-within { border-color: var(--violet); }
.extrait__body { display: block; }
.extrait__ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--white); }
.extrait__ico svg { width: 24px; height: 24px; }
.extrait__title { display: block; font-size: 1.125rem; font-weight: 500; line-height: 1.3; }
.extrait__desc { display: block; font-size: 0.9375rem; color: var(--gray-600); margin-top: 0.25rem; }
.extrait .pill { margin-bottom: 0.5rem; }
.extrait__check { display: grid; place-items: center; }
.extrait__check input { width: 24px; height: 24px; accent-color: var(--violet); cursor: pointer; }

.form { background: var(--white); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid rgba(11,17,32,0.06); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field select {
  font: inherit; font-size: 1rem; padding: 0.85rem 1rem;
  border-radius: var(--radius-sm); border: 1px solid rgba(11,17,32,0.18); background: var(--white); color: var(--navy);
  width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: var(--violet); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #B42318; }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field--consent { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem; }
.field--consent input { width: 20px; height: 20px; margin-top: 0.15rem; accent-color: var(--violet); }
.field--consent label { font-weight: 400; font-size: 0.875rem; color: var(--gray-600); }
.form__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.form__note { font-size: var(--fs-small); color: var(--gray-600); max-width: 36ch; }
.form__error { display: none; margin-top: 1rem; outline: none; padding: 0.85rem 1rem; border-radius: var(--radius-sm); background: #FDECEC; color: #8A1C1C; font-size: 0.9375rem; }
.form__error.is-on { display: block; }
.form__success { display: none; }
.form__success.is-on { display: block; }
.form__success h3 { font-size: 1.5rem; font-weight: 500; }
.form__success p { margin-top: 0.75rem; color: var(--gray-600); }
.downloads { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.75rem; }
.downloads a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius-sm); background: var(--gray-200);
  text-decoration: none; font-weight: 500;
}
.downloads a svg { width: 20px; height: 20px; flex: none; }
.downloads a:hover { background: var(--navy); color: var(--white); }

/* ---------- Présentation ---------- */
.presentation { color: var(--white); background: var(--navy); overflow: hidden; }
.presentation__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: end; }
.presentation h2 { font-size: clamp(2.5rem, 6.5vw, 6rem); font-weight: 300; line-height: 0.98; letter-spacing: -0.015em; }
.presentation h2 strong { font-weight: 700; }
.presentation__lead { margin-top: 2rem; font-size: var(--fs-lead); font-weight: 300; max-width: 34ch; }
.presentation__facts { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1rem; border-top: 1px solid var(--white-24); }
.presentation__facts li { padding-top: 1rem; border-bottom: 1px solid var(--white-24); padding-bottom: 1rem; display: grid; grid-template-columns: 28px 1fr; gap: 0.9rem; align-items: start; }
.presentation__facts svg { width: 22px; height: 22px; margin-top: 0.1rem; }
.presentation__facts strong { display: block; font-weight: 500; }
.presentation__facts span { color: var(--white-70); font-size: 0.9375rem; }
.presentation__alt { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--white-70); }
.presentation__alt a { color: var(--white); }

/* ---------- Méthodologie + footer ---------- */
.methodo { background: var(--gray-200); padding-block: clamp(3rem, 6vw, 5rem); }
.methodo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 2rem; }
.methodo__item { border-top: 1.5px solid var(--navy); padding-top: 1rem; }
.methodo__item small { display: block; font-size: var(--fs-small); color: var(--gray-600); margin-bottom: 0.35rem; }
.methodo__item strong { font-weight: 500; font-size: 1.125rem; line-height: 1.3; }
.methodo p.source { margin-top: 2rem; max-width: 90ch; }

.footer { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 2rem; }
.footer__logo img { height: 56px; width: auto; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; color: var(--white-70); }
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--white-24);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-size: var(--fs-small); color: var(--white-70);
}
.footer__bottom a { color: var(--white-70); text-decoration: none; }
.footer__bottom a:hover { color: var(--white); }
.clock { font-variant-numeric: tabular-nums; }

/* ---------- Révélations (IntersectionObserver) ---------- */
.reveal { transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__grid, .chapter__grid, .insight, .retenir__grid, .gates__grid, .presentation__grid { grid-template-columns: 1fr; }
  .insight--reverse > :first-child { order: 0; }
  .trio { grid-template-columns: 1fr; gap: 2.5rem; }
  .methodo__grid { grid-template-columns: 1fr 1fr; }
  .hero__z { opacity: 0.35; width: 70vw; right: -20vw; }
  .chapter__z { opacity: 0.3; }
}
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .nav { width: calc(100% - 20px); top: 10px; padding-left: 12px; }
  .nav__logo img { height: 32px; }
  .nav .btn { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__title { font-size: clamp(2.8rem, 15vw, 4.5rem); }
  /* Mobile : les polaroïds passent en grille statique, sans épinglage */
  .polaroids { height: auto; padding: 4rem 0 3rem; }
  .polaroids__stage {
    position: static; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 1rem; padding: 0 var(--gutter); overflow: visible; place-items: stretch;
  }
  .polaroids__center, .js .polaroids__center { position: static; translate: none; opacity: 1; transform: none; grid-column: 1 / -1; text-align: left; max-width: none; margin-bottom: 0.5rem; }
  .card { position: static; translate: none; width: auto; min-width: 0; transform: none !important; }
  .card__cap { flex-direction: column; gap: 0.2rem; }
  .card__cap span { text-align: left; }
  .card:nth-child(odd) { transform: rotate(-1.5deg) !important; }
  .card:nth-child(even) { transform: rotate(1.5deg) translateY(10px) !important; }
  .form__grid { grid-template-columns: 1fr; }
  .ring { grid-template-columns: 1fr; justify-items: center; }
  .extrait { grid-template-columns: 44px 1fr auto; gap: 0.9rem; padding: 1rem; }
  .extrait__ico { width: 44px; height: 44px; }
  .methodo__grid { grid-template-columns: 1fr; }
  .ref-preview { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .steps li, .js .polaroids__center { opacity: 1; transform: none; transition: none; }
  .js .bar__fill { transition: none; width: var(--w); }
  .js .ring__svg .seg { transition: none; stroke-dasharray: var(--d) 600; }
  .js .hero__title .line > span { transform: none; }
  .btn:hover, .ref:hover { transform: none; }
}
@media (hover: none) {
  .prologue__hint, .ref-preview { display: none; }
  .ref { cursor: default; }
  .ref:hover { transform: none; }
}
