/* ═══════════════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #05060a;
  --bg-soft: #0b0d14;
  --text: #f5f5f7;
  --muted: #8a8a94;
  --line: rgba(255, 255, 255, 0.09);
  --card: rgba(255, 255, 255, 0.035);

  --c1: #5ac8fa;
  --c2: #a855f7;
  --c3: #ff375f;
  --grad: linear-gradient(100deg, var(--c1), var(--c2) 48%, var(--c3));

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --wrap: 1180px;
  --nav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    Inter, Roboto, Helvetica, Arial, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

::selection { background: rgba(168, 85, 247, 0.45); color: #fff; }

img, svg, canvas { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: clamp(11px, 1.4vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(34px, 6.4vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 56px;
}

/* ═══════════════════════════════════════════════════════════
   OVERLAYS : progression, grain, halo curseur
   ═══════════════════════════════════════════════════════════ */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.06);
}
.progress i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grainShift 0.6s steps(2) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(-2%, 1.5%); }
  100% { transform: translate(1%, -1%); }
}

.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 480px;
  margin: -240px 0 0 -240px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(circle, rgba(90, 200, 250, 0.13), transparent 62%);
  transition: opacity 0.5s var(--ease-soft);
  will-change: transform;
}
body.has-cursor .cursor-glow { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 80;
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft),
    backdrop-filter 0.4s var(--ease-soft);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { font-size: 20px; text-decoration: none; line-height: 1; }
.nav-links {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.25s var(--ease-soft);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.25s var(--ease-soft), transform 0.25s var(--ease);
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-1px); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-cta { margin-inline-start: auto; }
}

/* ═══════════════════════════════════════════════════════════
   BOUTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  --btn-y: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--text);
  transform: translateY(var(--btn-y));
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    background 0.3s var(--ease-soft), opacity 0.3s;
  font-family: inherit;
}
.btn-primary {
  background: var(--grad);
  background-size: 180% 180%;
  color: #fff;
  box-shadow: 0 8px 30px -10px rgba(168, 85, 247, 0.75);
  animation: gradShift 9s ease infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.btn-primary:hover { --btn-y: -2px; box-shadow: 0 16px 44px -12px rgba(168, 85, 247, 0.9); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}
.btn-ghost:hover { --btn-y: -2px; background: rgba(255, 255, 255, 0.1); }
.btn-big { padding: 18px 40px; font-size: 17px; margin-top: 44px; }

/* ═══════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.7;
}
.aurora {
  position: absolute;
  inset: -20%;
  z-index: -3;
  filter: blur(90px);
  opacity: 0.55;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
}
.blob-1 {
  width: 46vw; height: 46vw;
  background: radial-gradient(circle, var(--c1), transparent 68%);
  top: 4%; left: 8%;
  animation: float1 18s ease-in-out infinite;
}
.blob-2 {
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--c2), transparent 68%);
  top: 28%; right: 6%;
  animation: float2 22s ease-in-out infinite;
}
.blob-3 {
  width: 34vw; height: 34vw;
  background: radial-gradient(circle, var(--c3), transparent 68%);
  bottom: 2%; left: 38%;
  animation: float3 26s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(9vw, 6vh) scale(1.14); } }
@keyframes float2 { 0%,100% { transform: translate(0,0) scale(1.08); } 50% { transform: translate(-8vw, 8vh) scale(0.92); } }
@keyframes float3 { 0%,100% { transform: translate(0,0) scale(0.95); } 50% { transform: translate(6vw, -7vh) scale(1.15); } }

.hero-content { position: relative; z-index: 2; max-width: 900px; }

.hero-number {
  font-size: clamp(140px, 30vw, 380px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  font-weight: 800;
  margin: 6px 0 12px;
  display: flex;
  justify-content: center;
  will-change: transform;
}
.hero-number .digit {
  display: inline-block;
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(0.28em) rotateX(-55deg);
  animation: digitIn 1.15s var(--ease) forwards, gradShift 9s ease infinite;
  animation-delay: var(--d, 0s), 1s;
  filter: drop-shadow(0 20px 60px rgba(168, 85, 247, 0.4));
}
@keyframes digitIn {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.hero-name {
  font-size: clamp(24px, 4.2vw, 46px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-name em {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.9vw, 19px);
  line-height: 1.6;
  max-width: 560px;
  margin-inline: auto;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

.scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  translate: -50% 0;
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-cue i {
  width: 1px;
  height: 46px;
  background: linear-gradient(var(--muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 1px;
  height: 14px;
  background: var(--c1);
  animation: cueRun 2s var(--ease-soft) infinite;
}
@keyframes cueRun {
  0%   { transform: translateY(-14px); opacity: 0; }
  35%  { opacity: 1; }
  100% { transform: translateY(46px); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   TEXTE SCRUBBÉ
   ═══════════════════════════════════════════════════════════ */
.scrub-section { height: 300vh; position: relative; }
.scrub-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
  padding: 0 clamp(20px, 6vw, 60px);
}
.scrub-text {
  max-width: 1000px;
  font-size: clamp(24px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}
.scrub-text .w {
  display: inline-block;
  color: rgba(245, 245, 247, 0.12);
  transition: color 0.28s linear, opacity 0.28s linear;
  will-change: color;
}
.scrub-text .w.lit { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   PIN PRODUIT
   ═══════════════════════════════════════════════════════════ */
.pin-section { height: 420vh; position: relative; }
.pin-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: clamp(20px, 5vw, 70px);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  overflow: hidden;
}
.pin-stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}
.pin-glow {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.4), transparent 66%);
  filter: blur(60px);
  animation: pulseGlow 6s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.12); }
}
.pin-card {
  position: relative;
  width: min(400px, 74vw);
  aspect-ratio: 1 / 1.16;
  border-radius: 34px;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform-style: preserve-3d;
  will-change: transform;
}
.pin-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.28), transparent 42%);
  opacity: 0.5;
  pointer-events: none;
}
.pin-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 100px;
}
.pin-chip {
  width: 46%;
  color: rgba(255, 255, 255, 0.8);
  filter: drop-shadow(0 0 22px rgba(90, 200, 250, 0.55));
  animation: chipFloat 7s ease-in-out infinite;
}
@keyframes chipFloat {
  0%, 100% { transform: translateY(-4px); }
  50%      { transform: translateY(6px); }
}
.pin-card-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.pin-card-name span { font-size: 11px; vertical-align: super; color: var(--muted); }

/* Les phrases sont empilées dans la MÊME cellule de grille : la hauteur
   suit toujours la phrase la plus longue, même sur deux ou trois lignes.
   (En absolute, le dégradé `background-clip:text` était coupé à la
   hauteur de la boîte et les lignes suivantes disparaissaient.) */
.pin-copy { position: relative; display: grid; align-items: center; }
.pin-line {
  grid-area: 1 / 1;
  text-wrap: balance;
  font-size: clamp(28px, 4.6vw, 58px);
  font-weight: 700;
  letter-spacing: -0.035em;
  /* Interligne + respiration : le dégradé est découpé sur le texte, il doit
     couvrir jusqu'au bas des jambages (le « g » de « genoux »). */
  line-height: 1.18;
  padding-block: 0.06em;
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.6s var(--ease), transform 0.7s var(--ease), filter 0.6s var(--ease);
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pin-line.is-active { opacity: 1; transform: translateY(0); filter: blur(0); }

@media (max-width: 860px) {
  .pin-sticky { grid-template-columns: 1fr; text-align: center; align-content: center; gap: 34px; }
  .pin-card { width: min(300px, 64vw); }
}

/* ═══════════════════════════════════════════════════════════
   SPECS
   ═══════════════════════════════════════════════════════════ */
.specs { padding: clamp(90px, 14vh, 170px) 0; position: relative; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 72px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span {
  display: block;
  margin-top: 10px;
  font-size: clamp(11px, 1.4vw, 13px);
  color: var(--muted);
  letter-spacing: 0.04em;
}
@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.card {
  grid-column: span 2;
  position: relative;
  padding: 34px 30px;
  border-radius: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease-soft),
    background 0.4s var(--ease-soft);
  transform-style: preserve-3d;
  will-change: transform;
}
.card-lg { grid-column: span 3; }
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease-soft);
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 50%),
    rgba(168, 85, 247, 0.16),
    transparent 62%
  );
  pointer-events: none;
}
/* Pendant le survol, le tilt suit la souris : transition raccourcie */
.card.is-tilting { transition: transform 0.12s linear, border-color 0.4s var(--ease-soft), background 0.4s var(--ease-soft); }
.card:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.card:hover::before { opacity: 1; }
.card-icon { font-size: 26px; display: block; margin-bottom: 18px; }
.card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card, .card-lg { grid-column: span 1; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   TIMELINE VERTICALE
   ═══════════════════════════════════════════════════════════ */
.timeline { position: relative; padding: clamp(80px, 12vh, 150px) 0 clamp(90px, 14vh, 170px); }
.timeline-head .section-title { margin-bottom: clamp(48px, 7vh, 80px); }

.tl-list {
  position: relative;
  display: grid;
  gap: clamp(26px, 4.5vh, 52px);
}

/* Le rail + sa barre de progression */
.tl-rail {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 11px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.tl-rail i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--grad);
  transform-origin: 50% 0;
  transform: scaleY(0);
  will-change: transform;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.7);
}

.tl-item {
  position: relative;
  padding: 26px 26px;
  padding-left: 26px;
  margin-left: 44px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.4s var(--ease-soft), background 0.4s var(--ease-soft),
    transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tl-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

/* La pastille posée sur le rail */
.tl-dot {
  position: absolute;
  top: 30px;
  left: -41px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: 2px solid rgba(255, 255, 255, 0.22);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
    box-shadow 0.5s var(--ease), transform 0.5s var(--ease);
}
.tl-item.is-in .tl-dot {
  background: var(--c2);
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 5px rgba(168, 85, 247, 0.16), 0 0 18px rgba(168, 85, 247, 0.85);
  transform: scale(1.14);
}

.tl-year {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}
.tl-item h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.tl-item p { color: var(--muted); font-size: 14.5px; line-height: 1.6; text-wrap: pretty; }
.tl-next {
  background: linear-gradient(155deg, rgba(168, 85, 247, 0.16), rgba(90, 200, 250, 0.06));
  border-color: rgba(168, 85, 247, 0.32);
}

/* Révélation : glissement vertical sur mobile */
.tl-item[data-anim="tl"] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.85s var(--ease), transform 0.95s var(--ease);
}
.tl-item[data-anim="tl"].is-in { opacity: 1; transform: none; }

/* Desktop : rail centré, cartes en quinconce.
   Le rail est en `absolute` : il ne compte pas comme case de grille, mais
   il reste le 1er enfant du conteneur — les cartes vont donc de nth-child(2)
   à nth-child(11). D'où le pair/impair inversé pour démarrer à gauche. */
@media (min-width: 900px) {
  .tl-rail { left: 50%; translate: -50% 0; }
  .tl-item { margin-left: 0; width: calc(50% - 46px); }
  .tl-item:nth-child(even) { justify-self: start; text-align: right; }
  .tl-item:nth-child(odd) { justify-self: end; }
  .tl-item:nth-child(even) .tl-dot { left: auto; right: -53px; }
  .tl-item:nth-child(odd) .tl-dot { left: -53px; }

  /* ... et chaque carte entre par son propre côté */
  .tl-item:nth-child(even)[data-anim="tl"] { transform: translate(-34px, 24px); }
  .tl-item:nth-child(odd)[data-anim="tl"] { transform: translate(34px, 24px); }
  .tl-item:nth-child(even)[data-anim="tl"].is-in,
  .tl-item:nth-child(odd)[data-anim="tl"].is-in { transform: none; }
}

/* ═══════════════════════════════════════════════════════════
   CITATION
   ═══════════════════════════════════════════════════════════ */
.quote-section {
  padding: clamp(110px, 20vh, 220px) 0;
  text-align: center;
}
.quote {
  font-size: clamp(26px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.035em;
  max-width: 950px;
  margin-inline: auto;
  text-wrap: balance;
}

/* ═══════════════════════════════════════════════════════════
   FINAL
   ═══════════════════════════════════════════════════════════ */
.final {
  position: relative;
  padding: clamp(100px, 16vh, 190px) 0 clamp(110px, 18vh, 210px);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.final::before {
  content: "";
  position: absolute;
  inset: auto 0 -40% 0;
  height: 90%;
  z-index: -2;
  background: radial-gradient(ellipse at 50% 100%, rgba(168, 85, 247, 0.3), transparent 66%);
  filter: blur(40px);
}
.confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}
.final-inner { position: relative; z-index: 2; }
.final-title {
  font-size: clamp(38px, 7.4vw, 92px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.final-text {
  color: var(--muted);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.7;
  max-width: 620px;
  margin-inline: auto;
  text-wrap: pretty;
}
.final-sign {
  margin-top: 26px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.footer-dim { opacity: 0.6; }

/* ═══════════════════════════════════════════════════════════
   RÉVÉLATIONS AU SCROLL
   ═══════════════════════════════════════════════════════════ */
[data-anim] {
  opacity: 0;
  transition:
    opacity 0.9s var(--ease) var(--d, 0s),
    transform 1s var(--ease) var(--d, 0s),
    filter 0.9s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}
[data-anim="up"]   { transform: translateY(42px); }
[data-anim="fade"] { transform: translateY(16px); }
[data-anim="blur"] { transform: scale(0.97); filter: blur(14px); }

[data-anim].is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Le hero s'anime tout seul au chargement */
.hero [data-anim] { animation: heroIn 1.1s var(--ease) var(--d, 0s) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════
   ACCESSIBILITÉ : mouvement réduit
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-anim], .hero [data-anim], .hero-number .digit {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .scrub-text .w { color: var(--text) !important; }
  .pin-copy { display: block; }
  .pin-line { opacity: 1; transform: none; filter: none; margin-bottom: 12px; }
  .grain { display: none; }
  .scrub-section { height: auto; }
  .scrub-sticky { position: static; height: auto; padding-block: 120px; }
  .pin-section { height: auto; }
  .pin-sticky { position: static; height: auto; padding-block: 120px; }
  /* Le rail est affiché plein : sa progression dépend du scroll */
  .tl-rail i { transform: scaleY(1) !important; }
  .tl-item[data-anim="tl"] { opacity: 1 !important; transform: none !important; }
}
