/* ═══════════════════════════════════════════════════════════════
   Émerveil'Créa — La facture électronique expliquée
   Palette : charte du site (ivoire / lavande / violet / bleu nuit / jaune CTA)
   Typo    : Baloo 2 (display) · Poppins (texte) · Kalam (accents & étiquettes)
             servies par next/font depuis le layout (site)
   ═══════════════════════════════════════════════════════════════ */

/* Palette remappée sur la charte du site (globals.css). */
:root {
  --paper: #FFFDF7;
  --paper-deep: #ede9fb;
  --paper-card: #FFFFFF;
  --ink: #050e4e;
  --ink-soft: #5a5570;
  --magenta: #6351d0;
  --magenta-deep: #4c3db2;
  --magenta-soft: #ede9fb;
  --kraft: #FFD54F;
  --kraft-deep: #FFCA28;
  --font-display: var(--font-baloo, 'Baloo 2'), system-ui, sans-serif;
  --font-body: var(--font-poppins, 'Poppins'), system-ui, sans-serif;
  --font-mono: var(--font-kalam, 'Kalam'), cursive;
  --font-accent: var(--font-kalam, 'Kalam'), cursive;
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.05), 0 12px 32px rgba(99, 81, 208, 0.18);
  --ease-out: cubic-bezier(.22,.9,.3,1);
}

/* Pas de reset global `*` ici : cette feuille n'est pas dans un @layer,
   elle écraserait les utilitaires Tailwind (padding du Footer du site…).
   Le preflight Tailwind de globals.css fait déjà ce travail. */

/* La Navbar du site est transparente en haut de page : ailleurs elle repose
   sur le fond ivoire (même rendu), mais ici elle est posée sur l'illustration.
   On force donc son fond blanc dès le haut — identique à son état "scrolled". */
nav[aria-label="Navigation principale"] {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Le Footer du site (sibling de <main> dans le layout (site)) doit passer
   devant le décor fixe du carnet (.stage). Le <main> du site porte un
   z-index de 10 qui englobe le stage : il faut donc dépasser 10. */
body > footer { position: relative; z-index: 11; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.br-desktop { display: none; }
@media (min-width: 700px) { .br-desktop { display: block; } }

/* grain papier global */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ══════════ Loader ══════════ */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; gap: 18px; justify-items: center;
  background: var(--paper);
  transition: opacity .5s var(--ease-out), visibility .5s;
}
.loader.gone { opacity: 0; visibility: hidden; }
.loader-mark { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; }
.loader-mark span { color: var(--magenta); }
.loader-line { width: 130px; height: 3px; background: var(--paper-deep); border-radius: 2px; overflow: hidden; }
.loader-line i { display: block; height: 100%; width: 100%; background: var(--magenta); transform-origin: left; transform: scaleX(0); animation: loadbar 0.9s var(--ease-out) forwards; }
@keyframes loadbar { to { transform: scaleX(1); } }

/* ══════════ Stage fixe ══════════ */
.stage { position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.scene { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.scene img, .scene video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 72% 32%;
}
.scene[data-scene="1"] img, .scene[data-scene="1"] video { object-position: 30% 35%; }
.scene[data-scene="2"] img, .scene[data-scene="2"] video { object-position: 64% 40%; }
@media (max-aspect-ratio: 4/5) {
  .scene img, .scene video { object-position: 74% 45%; }
  .scene[data-scene="1"] img, .scene[data-scene="1"] video { object-position: 24% 50%; }
  .scene[data-scene="2"] img, .scene[data-scene="2"] video { object-position: 62% 52%; }
}
/* la vidéo se révèle par-dessus l'image dès qu'elle sait se lire */
.scene video { opacity: 0; transition: opacity 1.2s linear; }
.scene.video-ready video { opacity: 1; }
/* halo magenta qui respire sur la bascule numérique */
.scene-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 46% 52% at 38% 34%, rgba(233,156,196,.34), transparent 70%);
  opacity: .5; animation: glowpulse 4.5s ease-in-out infinite alternate;
}
@keyframes glowpulse {
  from { opacity: .25; }
  to   { opacity: .75; }
}
/* voile pour la lisibilité du texte par-dessus */
.stage-wash {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(246,239,227,.55) 0%, rgba(246,239,227,.06) 30%, rgba(246,239,227,.06) 62%, rgba(246,239,227,.6) 100%);
}

/* reçus flottants */
.papers { position: absolute; inset: -10% 0; pointer-events: none; }
.paper {
  position: absolute; width: clamp(26px, 3.2vw, 44px); overflow: visible;
  fill: var(--paper-card); stroke: var(--ink-soft); stroke-width: 1.6; stroke-linecap: round;
  opacity: .5; filter: drop-shadow(0 3px 4px rgba(42,33,28,.14));
  animation: flotte 7s ease-in-out infinite alternate;
}
.paper .check { stroke: var(--magenta); stroke-width: 3; fill: none; }
.paper.p1 { left: 6%;  top: 16%; rotate: -14deg; animation-delay: -1s; }
.paper.p2 { left: 88%; top: 24%; rotate: 11deg;  animation-delay: -3s; }
.paper.p3 { left: 12%; top: 70%; rotate: 8deg;   animation-delay: -5s; }
.paper.p4 { left: 82%; top: 76%; rotate: -9deg;  animation-delay: -2s; }
.paper.p5 { left: 48%; top: 10%; rotate: 4deg;   animation-delay: -4s; }
@keyframes flotte {
  from { translate: 0 -8px; }
  to   { translate: 0 12px; }
}

/* ══════════ CTA « Espace Pro » — étiquette kraft ficelée ══════════ */
.cta-pro {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 600; font-size: .78rem; letter-spacing: .06em;
  color: var(--ink); background: var(--paper-card); border: 1.6px solid var(--ink);
  padding: 9px 16px 9px 13px; text-transform: uppercase; text-decoration: none;
  border-radius: 3px 12px 3px 3px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  box-shadow: 2px 2px 0 rgba(42,33,28,.25);
  transition: translate .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.cta-pro::before {
  content: ''; position: absolute; left: 5px; top: 50%; translate: 0 -50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--paper); border: 1.4px solid var(--ink);
}
.cta-pro svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta-pro:hover, .cta-pro:focus-visible { translate: -1px -2px; box-shadow: 4px 5px 0 rgba(42,33,28,.28); }
.cta-pro--big { font-size: .95rem; padding: 15px 26px 15px 22px; }

/* ══════════ CTA « Créer ma facture » — capsule magenta timbrée ══════════ */
.cta-facture {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: .92rem;
  color: var(--ink); background: linear-gradient(to bottom, var(--kraft), var(--kraft-deep));
  border: none; border-radius: 999px; padding: 14px 26px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(255,213,79,.35), inset 0 -2px 0 rgba(0,0,0,.08);
  transition: scale .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s;
}
.cta-facture-heart {
  display: grid; place-content: center; width: 22px; height: 22px;
  background: #FFFFFF; color: var(--magenta); border-radius: 50%;
  font-size: .8rem; transition: rotate .25s var(--ease-out), scale .25s var(--ease-out);
}
.cta-facture:hover, .cta-facture:focus-visible { scale: 1.04; background: linear-gradient(to bottom, #FFE9A0, var(--kraft)); box-shadow: 0 4px 14px rgba(255,213,79,.50), inset 0 -2px 0 rgba(0,0,0,.08); }
.cta-facture:hover .cta-facture-heart { rotate: -14deg; scale: 1.15; }
.cta-facture:active { scale: .97; }
.cta-facture--big { font-size: 1.1rem; padding: 18px 34px; }

/* ══════════ CTA « Lire le carnet » — lien couture ══════════ */
.cta-lire {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-weight: 600; font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink); text-decoration: none;
  padding: 13px 4px; border-bottom: 2px dashed var(--ink-soft);
  transition: border-color .18s, color .18s;
}
.cta-lire svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .2s var(--ease-out); }
.cta-lire:hover { color: var(--magenta-deep); border-bottom-color: var(--magenta); }
.cta-lire:hover svg { translate: 0 3px; }

/* ══════════ Rail de progression ══════════ */
.rail {
  position: fixed; right: clamp(10px, 2vw, 26px); top: 50%; translate: 0 -50%; z-index: 45;
  list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.rail li {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: .62rem; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; opacity: .55; transition: opacity .25s, color .25s;
}
.rail li i { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink-soft); transition: background .25s, border-color .25s, scale .25s; }
.rail li.on { opacity: 1; color: var(--magenta-deep); }
.rail li.on i { background: var(--magenta); border-color: var(--magenta); scale: 1.25; }
@media (max-width: 899px) { .rail { display: none; } }

/* ══════════ Contenu au-dessus du stage ══════════ */
main { position: relative; z-index: 10; }

/* ══════════ Hero ══════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px clamp(20px, 6vw, 90px) 80px;
  max-width: 1400px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(94deg, rgba(246,239,227,.88) 0%, rgba(246,239,227,.55) 34%, rgba(246,239,227,0) 62%);
}
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(180deg, rgba(246,239,227,.92) 0%, rgba(246,239,227,.6) 46%, rgba(246,239,227,0) 78%); }
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.tag {
  font-family: var(--font-mono); font-weight: 600; font-size: .68rem; letter-spacing: .1em;
  padding: 6px 12px; border-radius: 3px; display: inline-block;
}
.tag--ink { color: var(--paper-card); background: var(--ink); }
.tag--magenta { color: var(--paper-card); background: var(--magenta); }
.tag--mini { font-size: .6rem; padding: 3px 8px; color: var(--magenta-deep); background: var(--magenta-soft); border-radius: 3px; }
.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 7.2vw, 5.4rem);
  line-height: 1.04; letter-spacing: -.01em; margin-bottom: 26px;
  text-shadow: 0 2px 24px rgba(246,239,227,.85);
}
.hero-title span { display: block; }
.hero-title em { font-style: normal; color: var(--magenta); font-family: var(--font-accent); font-weight: 700; font-size: 1.06em; line-height: 1; }
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.25rem); font-weight: 500; color: var(--ink-soft);
  max-width: 34em; margin-bottom: 34px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  padding: 8px 14px; border-radius: 6px; align-self: flex-start;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0;
  font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); display: grid; justify-items: center; gap: 8px;
}
.hero-scroll span { display: block; width: 1.5px; height: 34px; background: var(--ink-soft); transform-origin: top; animation: scrollhint 1.8s ease-in-out infinite; }
@keyframes scrollhint { 0% { scale: 1 0; } 45% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }

/* ══════════ Chapitres — fiches d'atelier ══════════ */
.chapter {
  min-height: 96svh;
  display: flex; align-items: center;
  padding: 60px clamp(18px, 5vw, 80px);
}
.fiche {
  position: relative;
  background: var(--paper-card);
  border: 1px solid rgba(42,33,28,.1);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  padding: clamp(26px, 4vw, 46px);
  max-width: 560px;
  rotate: -0.4deg;
}
.fiche--right { margin-left: auto; rotate: 0.5deg; }
.fiche--left { margin-right: auto; }
.fiche-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.fiche-num { font-family: var(--font-mono); font-weight: 600; font-size: .72rem; letter-spacing: .14em; color: var(--magenta-deep); background: var(--magenta-soft); padding: 5px 10px; border-radius: 3px; }
.fiche-tape {
  position: absolute; top: -12px; left: 50%; translate: -50% 0; rotate: -3deg;
  width: 92px; height: 26px; opacity: .85;
  background: repeating-linear-gradient(45deg, var(--magenta-soft) 0 6px, color-mix(in srgb, var(--magenta-soft) 72%, var(--magenta)) 6px 12px);
  box-shadow: 0 1px 4px rgba(42,33,28,.15);
}
.fiche-icon { width: 44px; height: 44px; margin-left: auto; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fiche-icon .accent { stroke: var(--magenta); stroke-width: 2.6; }
.fiche h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.2; margin-bottom: 14px;
}
.fiche h2 em { font-style: normal; color: var(--magenta); font-family: var(--font-accent); font-weight: 700; font-size: 1.06em; line-height: 1; }
.fiche p { color: var(--ink-soft); margin-bottom: 12px; }
.fiche strong { color: var(--ink); }
.fiche-list { list-style: none; margin: 6px 0 12px; display: grid; gap: 10px; }
.fiche-list li { position: relative; padding-left: 24px; color: var(--ink-soft); }
.fiche-list li::before {
  content: ''; position: absolute; left: 2px; top: .52em;
  width: 9px; height: 9px; rotate: 45deg;
  background: var(--magenta-soft); border: 1.5px solid var(--magenta);
}
.fiche-note {
  /* note manuscrite dans la marge, plutôt qu'un callout à barre latérale */
  font-family: var(--font-accent);
  font-size: 1.05rem; font-weight: 400; color: var(--magenta-deep);
  margin-top: 16px;
}
.fiche-ctas { margin-top: 22px; }

/* dates du chapitre 2 */
.dates { display: grid; gap: 16px; margin: 14px 0 4px; }
.date-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.date-row dd { color: var(--ink-soft); }

/* circuit du chapitre 4 */
.circuit { list-style: none; display: grid; gap: 12px; margin: 12px 0; counter-reset: step; }
.circuit li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); }
.circuit li span {
  display: grid; place-content: center; width: 26px; height: 26px; border-radius: 50%;
  font-family: var(--font-mono); font-weight: 600; font-size: .72rem;
  color: var(--paper-card); background: var(--ink);
}

/* checklist du chapitre 6 */
.checklist { list-style: none; display: grid; gap: 12px; margin: 12px 0 4px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--ink-soft); font-weight: 500; }
.checklist li i {
  width: 20px; height: 20px; margin-top: 2px;
  border: 2px solid var(--ink); border-radius: 4px; position: relative;
  background: var(--paper-card);
}
.checklist li i::after {
  content: ''; position: absolute; inset: 2px;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13l5 5L20 6' fill='none' stroke='%23C2265E' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  scale: 0; transition: scale .3s var(--ease-out);
}
.checklist li.done i::after { scale: 1; }
.checklist li { cursor: pointer; }

/* ══════════ Frise ══════════ */
.timeline-sec { padding: 20svh clamp(18px, 5vw, 80px); }
.timeline-title {
  /* position:relative obligatoire : sans elle, le titre (seul élément statique
     de la page) est peint DERRIÈRE le décor fixe et ne se voit plus. */
  position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  max-width: 22em; width: fit-content; margin-bottom: 30px;
  /* posé sur l'illustration : pastille blanche, comme le sous-titre du hero */
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 20px; border-radius: 14px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1100px; position: relative; }
.timeline::before {
  content: ''; position: absolute; top: -14px; left: 4px; right: 4px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink-soft) 0 8px, transparent 8px 16px);
  opacity: .5;
}
.tl-card {
  background: var(--paper-card); border: 1px solid rgba(42,33,28,.1); border-radius: 6px;
  box-shadow: var(--shadow-card); padding: 20px;
}
.tl-card p { font-size: .92rem; color: var(--ink-soft); margin-top: 12px; }
.tl-card--magenta { border-top: 4px solid var(--magenta); }
@media (max-width: 780px) {
  .timeline { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .timeline { scrollbar-width: thin; scrollbar-color: var(--paper-deep) transparent; }
  .timeline::-webkit-scrollbar { height: 5px; }
  .timeline::-webkit-scrollbar-thumb { background: var(--paper-deep); border-radius: 3px; }
  .timeline::-webkit-scrollbar-track { background: transparent; }
  .tl-card { scroll-snap-align: center; }
}

/* ══════════ Newsletter ══════════ */
.news { padding: 16svh clamp(18px, 5vw, 80px); display: flex; }
.news-card {
  display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 40px);
  background: var(--paper-card); border: 1px solid rgba(42,33,28,.1); border-radius: 8px;
  box-shadow: var(--shadow-card); padding: clamp(24px, 3.6vw, 44px);
  max-width: 820px; margin-inline: auto; rotate: -0.4deg;
}
.news-portrait { align-self: center; }
.news-portrait img { border-radius: 6px; border: 1px solid rgba(42,33,28,.12); box-shadow: 0 6px 18px rgba(42,33,28,.14); rotate: 1.6deg; }
.news-body h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 10px 0 12px; }
.news-body > p { color: var(--ink-soft); max-width: 34em; }
.news-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.news-form input {
  flex: 1 1 200px; font: 500 .95rem var(--font-body); color: var(--ink);
  background: var(--paper); border: 1.6px solid var(--ink-soft); border-radius: 6px;
  padding: 13px 16px; outline: none; transition: border-color .18s, box-shadow .18s;
}
.news-form input::placeholder { color: color-mix(in srgb, var(--ink-soft) 62%, transparent); }
.news-form input:focus-visible { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(194,38,94,.18); }

/* CTA « Je m'abonne » — cachet de cire */
.cta-cachet {
  font-family: var(--font-mono); font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: radial-gradient(circle at 32% 28%, #FFE9A0, var(--kraft) 55%, var(--kraft-deep));
  border: none; border-radius: 999px; padding: 13px 24px;
  box-shadow: 0 4px 0 #E3B322, 0 8px 18px rgba(255,213,79,.40);
  transition: translate .12s var(--ease-out), box-shadow .12s var(--ease-out);
}
.cta-cachet:hover, .cta-cachet:focus-visible { translate: 0 1px; box-shadow: 0 3px 0 #E3B322, 0 6px 14px rgba(255,213,79,.40); }
.cta-cachet:active { translate: 0 4px; box-shadow: 0 0 0 #E3B322, 0 3px 8px rgba(255,213,79,.35); }
.news-ok { margin-top: 16px; font-weight: 600; color: var(--magenta-deep); }
.news-ok b { color: var(--magenta); }
.news-err { margin-top: 16px; font-weight: 500; color: #8C3A18; }
@media (max-width: 680px) {
  .news-card { grid-template-columns: none; }
  .news-portrait { max-width: 300px; margin-inline: auto; }
}

/* ══════════ Finale ══════════ */
.finale {
  position: relative;
  min-height: 88svh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 80px clamp(20px, 6vw, 90px);
  max-width: 1400px;
}
.finale::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(94deg, rgba(246,239,227,.85) 0%, rgba(246,239,227,.5) 36%, rgba(246,239,227,0) 64%);
}
@media (max-width: 640px) {
  .finale::before { background: linear-gradient(180deg, rgba(246,239,227,0) 0%, rgba(246,239,227,.65) 30%, rgba(246,239,227,.9) 70%); }
}
.finale-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5.6vw, 4.2rem); line-height: 1.08; margin-bottom: 34px;
  text-shadow: 0 2px 24px rgba(246,239,227,.85);
}
.finale-title em { font-style: normal; color: var(--magenta); font-family: var(--font-accent); font-weight: 700; font-size: 1.06em; line-height: 1; }
.finale-ctas { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.finale-note {
  margin-top: 22px; font-size: .9rem; font-weight: 500; color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  padding: 8px 14px; border-radius: 6px;
}

/* ══════════ Footer ══════════ */
.footer {
  position: relative; z-index: 10;
  background: var(--ink); color: var(--paper-deep);
  padding: 54px clamp(20px, 6vw, 90px) 44px;
  display: grid; gap: 10px;
}
.footer-legal { font-size: .82rem; color: color-mix(in srgb, var(--paper-deep) 75%, transparent); max-width: 62em; margin-top: 14px; }
.footer-legal a { color: var(--magenta-soft); }

/* ══════════ Révélations (transform only, jamais opacity:0) ══════════ */
.js .reveal { translate: 0 26px; transition: translate .8s var(--ease-out); }
.js .reveal.in { translate: 0 0; }
.js .fiche, .js .tl-card, .js .news-card { translate: 0 34px; transition: translate .9s var(--ease-out), rotate .9s var(--ease-out); }
.js .fiche.in, .js .tl-card.in, .js .news-card.in { translate: 0 0; }

/* ══════════ Mobile ══════════ */
@media (max-width: 640px) {
  .hero { padding-top: 96px; }
  .date-row { grid-template-columns: none; gap: 6px; }
  .hero-ctas { gap: 16px; }
  .chapter { padding: 40px 16px; min-height: 92svh; }
  .fiche { max-width: none; rotate: 0deg; }
  .fiche--right { rotate: 0deg; }
  .hero-scroll { display: none; }
  .finale { align-items: stretch; text-align: center; }
  .finale-ctas { flex-direction: column; }
  .finale-note { text-align: center; }
}

/* ══════════ Reduced motion ══════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .paper { animation: none; }
  .scene-glow { animation: none; opacity: .4; }
  .hero-scroll span { animation: none; }
  .loader-line i { animation-duration: .01s; }
  .scene { transition: opacity .2s linear; will-change: auto; }
  .js .reveal, .js .fiche, .js .tl-card, .js .news-card { translate: 0 0; transition: none; }
  .cta-facture, .cta-cachet, .cta-pro { transition: none; }
}
