/* =============================================================================
   Portfolio « film » — Next Flow
   Le site se regarde comme un film : barres noires du lecteur en haut et en bas,
   séquence d'ouverture, cartons entre les scènes, sous-titres, travelling, générique.
   Défilement natif. Le mouvement lié au défilement passe par les animations CSS
   liées au défilement (repli immobile si non pris en charge) et disparaît avec
   « réduire les animations ».
   ============================================================================= */

/* Police de marque : déposer Montserrat (variable, droit normal) dans polices/montserrat.woff2.
   Tant que le fichier est absent, le navigateur utilise la police du système. */
@font-face {
  font-family: "Montserrat Portfolio";
  src: url("polices/montserrat.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --fond: #0B1420;
  --fond-2: #111c2b;
  --noir: #05080d;
  --carte: rgba(255, 255, 255, 0.04);
  --trait: rgba(240, 190, 160, 0.18);
  --texte: #EDE7E0;
  --texte-doux: #B9B2AB;
  --saumon: #E9A98C;
  --cuivre: #C77B4F;
  --max: 1200px;
  --sans: "Montserrat Portfolio", "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* Courbes (fortes) : entrées/sorties, et mouvements à l'écran */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  /* Barres du lecteur et hauteur d'une « scène » entre elles */
  --barre-h: 56px;
  --barre-b: 40px;
  --scene-h: calc(100svh - var(--barre-h) - var(--barre-b));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--fond); scroll-padding-top: calc(var(--barre-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; padding: var(--barre-h) 0 var(--barre-b);
  background: var(--fond); color: var(--texte);
  font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Grain de pellicule (fixe, immobile) et vignettage */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 39; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.36) 100%);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--saumon); outline-offset: 3px; border-radius: 4px; }
.visuellement-cache {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typographie ---------- */
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; margin: 0 0 16px; }
h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 10px; }
.etiquette { font: 500 0.72rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--saumon); margin: 0 0 14px; }
.lede { color: var(--texte-doux); max-width: 620px; margin: 0 0 24px; font-size: 1.05rem; }
.note { color: var(--texte-doux); font-size: 0.85rem; }
.accroche-petite { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--saumon); }

/* ---------- Boutons ---------- */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--saumon); color: #2a1408; border: 1px solid var(--saumon);
  padding: 13px 24px; border-radius: 999px; font: 700 0.88rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.bouton:active { transform: scale(0.97); }
.bouton.contour { background: transparent; color: var(--texte); border-color: rgba(237, 231, 224, 0.3); }
.bouton.grand { padding: 18px 36px; font-size: 1rem; }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover { background: #f1b89d; }
  .bouton.contour:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(237, 231, 224, 0.55); }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Barres du lecteur ---------- */
.barre {
  position: fixed; left: 0; right: 0; z-index: 50; background: var(--noir);
  display: flex; align-items: center; gap: 16px;
  padding: 0 max(16px, calc((100% - var(--max)) / 2));
}
.barre-haut { top: 0; height: var(--barre-h); justify-content: space-between; border-bottom: 1px solid rgba(240, 190, 160, 0.1); view-transition-name: barre-haut; }
.barre-bas {
  bottom: 0; height: var(--barre-b); border-top: 1px solid rgba(240, 190, 160, 0.1); view-transition-name: barre-bas;
  font: 500 0.66rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-doux);
}
.marque { display: flex; align-items: baseline; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: 0.18em; font-size: 0.9rem; white-space: nowrap; }
.signature { font: 500 0.66rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--saumon); }
.barre-scene {
  flex: 1; min-width: 0; text-align: center; margin: 0;
  font: 500 0.66rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--saumon);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.barre-actions { display: flex; align-items: center; gap: 10px; }
.pastille-brouillon { font: 600 0.6rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #2a1408; background: var(--saumon); border-radius: 999px; padding: 4px 9px; }
.barre-bouton, .barre-contact {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px;
  font: 500 0.68rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  color: var(--texte); background: transparent; border: 1px solid rgba(240, 190, 160, 0.24); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.barre-contact { color: var(--saumon); }
.barre-bouton:active, .barre-contact:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .barre-bouton:hover, .barre-contact:hover { border-color: var(--saumon); } }
.icone-chapitres {
  width: 12px; height: 9px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.m-court { display: none; }

.lecteur-num { min-width: 52px; }
.lecteur-piste { position: relative; flex: 1; height: 2px; background: rgba(240, 190, 160, 0.16); border-radius: 2px; }
.lecteur-rempli { position: absolute; inset: 0; background: var(--saumon); transform-origin: left center; transform: scaleX(0); }
.lecteur-reperes { position: absolute; inset: 0; }
.repere { position: absolute; top: -3px; width: 1px; height: 8px; background: rgba(237, 231, 224, 0.55); }
.lecteur-tc { font-variant-numeric: tabular-nums; color: var(--texte); white-space: nowrap; }
.lecteur-tc::before { content: "TC "; color: var(--texte-doux); }
.lecteur-suivant {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 0.9rem;
  background: transparent; color: var(--saumon); border: 1px solid rgba(240, 190, 160, 0.24);
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.lecteur-suivant:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .lecteur-suivant:hover { border-color: var(--saumon); } }

/* ---------- Chapitres (s'ouvrent depuis le bouton, en haut à droite) ---------- */
.chapitres {
  position: fixed; inset: auto; margin: 0;
  top: calc(var(--barre-h) + 8px); right: max(16px, calc((100% - var(--max)) / 2));
  width: min(340px, calc(100vw - 32px)); max-height: calc(100svh - var(--barre-h) - var(--barre-b) - 24px); overflow: auto;
  padding: 18px; border: 1px solid var(--trait); border-radius: 16px;
  background: #0d1826; color: var(--texte); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  transform-origin: top right;
  opacity: 0; transform: scale(0.95);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), overlay 200ms allow-discrete, display 200ms allow-discrete;
}
.chapitres:popover-open { opacity: 1; transform: none; }
@starting-style { .chapitres:popover-open { opacity: 0; transform: scale(0.95); } }
.chapitres ol { list-style: none; margin: 0; padding: 0; }
.chapitres a { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 8px; border-radius: 10px; text-decoration: none; }
.chapitres a[aria-current] { background: rgba(233, 169, 140, 0.12); }
@media (hover: hover) and (pointer: fine) { .chapitres a:hover { background: rgba(255, 255, 255, 0.05); } }
.chapitres .num, .chapitres .tc { font: 500 0.66rem var(--mono); letter-spacing: 0.1em; color: var(--saumon); }
.chapitres .tc { color: var(--texte-doux); font-variant-numeric: tabular-nums; }
.chapitres .nom { font-weight: 600; }

/* ---------- Viseur (étiquette qui suit la souris sur les plans) ---------- */
.viseur { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; }
.viseur-texte {
  display: inline-block; padding: 6px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--saumon); color: #2a1408; font: 600 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; transform: translate(16px, 16px) scale(0.95);
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.viseur.actif .viseur-texte { opacity: 1; transform: translate(16px, 16px) scale(1); }

/* ---------- Séquence d'ouverture (accueil, une fois par visite) ---------- */
.intro { display: none; }
html.ouverture-film .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 100;
  animation: intro-fin 2.95s linear forwards;
}
html.ouverture-film .intro.passe { animation: intro-passe 250ms var(--ease-out) forwards; }
.intro-volet { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--noir); }
.intro-volet.haut { top: 0; animation: volet-haut 700ms var(--ease-in-out) 2.2s both; }
.intro-volet.bas { bottom: 0; animation: volet-bas 700ms var(--ease-in-out) 2.2s both; }
.intro-amorce {
  position: relative; z-index: 1; display: grid; place-items: center; overflow: hidden;
  width: min(46vmin, 280px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(237, 231, 224, 0.45);
  animation: amorce 1.25s linear both;
}
.intro-amorce::before, .intro-amorce::after { content: ""; position: absolute; background: rgba(237, 231, 224, 0.28); }
.intro-amorce::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.intro-amorce::after { top: 50%; left: 0; right: 0; height: 1px; }
.amorce-balayage {
  position: absolute; inset: 0;
  background: conic-gradient(rgba(233, 169, 140, 0.32) 0deg 90deg, transparent 90deg);
  animation: balayage 400ms linear 3 both;
}
.amorce-chiffre { grid-area: 1 / 1; position: relative; font: 800 clamp(4rem, 18vmin, 9rem)/1 var(--sans); color: var(--texte); opacity: 0; }
.a3 { animation: chiffre-3 1.2s linear both; }
.a2 { animation: chiffre-2 1.2s linear both; }
.a1 { animation: chiffre-1 1.2s linear both; }
.intro-presente {
  position: absolute; z-index: 1; margin: 0; opacity: 0;
  font: 500 0.8rem var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--texte-doux);
  animation: presente 1s var(--ease-out) 1.25s both;
}
.intro-marque { color: var(--texte); font-weight: 700; }
.intro-passer {
  position: absolute; z-index: 2; right: 20px; bottom: 20px;
  font: 500 0.68rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--texte); background: transparent; border: 1px solid rgba(240, 190, 160, 0.3); border-radius: 999px;
  padding: 9px 16px; cursor: pointer; transition: transform 160ms var(--ease-out);
}
.intro-passer:active { transform: scale(0.97); }
@keyframes intro-fin { 0%, 99% { visibility: visible; } 100% { visibility: hidden; pointer-events: none; } }
@keyframes intro-passe { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes volet-haut { to { transform: translateY(-100%); } }
@keyframes volet-bas { to { transform: translateY(100%); } }
@keyframes amorce { 0%, 96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes balayage { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes chiffre-3 { 0%, 32% { opacity: 1; } 34%, 100% { opacity: 0; } }
@keyframes chiffre-2 { 0%, 32% { opacity: 0; } 34%, 65% { opacity: 1; } 67%, 100% { opacity: 0; } }
@keyframes chiffre-1 { 0%, 65% { opacity: 0; } 67%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes presente { 0% { opacity: 0; transform: translateY(8px); } 30%, 72% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ---------- Emplacements « à fournir » et notes ---------- */
/* Emplacement vide = écran de visée : lumière cuivre (position propre à chaque plan),
   grille des tiers, croix centrale, format du plan en haut à droite. */
.vide {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  background:
    radial-gradient(58% 55% at var(--gx, 70%) var(--gy, 30%), rgba(214, 128, 72, 0.4), transparent 70%),
    radial-gradient(42% 45% at calc(100% - var(--gx, 70%)) calc(100% - var(--gy, 30%)), rgba(118, 58, 36, 0.32), transparent 72%),
    linear-gradient(160deg, #16263b, #0B1420 66%);
}
.vide::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(237, 231, 224, 0.07), rgba(237, 231, 224, 0.07)) 33.333% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(237, 231, 224, 0.07), rgba(237, 231, 224, 0.07)) 66.666% 0 / 1px 100% no-repeat,
    linear-gradient(rgba(237, 231, 224, 0.07), rgba(237, 231, 224, 0.07)) 0 33.333% / 100% 1px no-repeat,
    linear-gradient(rgba(237, 231, 224, 0.07), rgba(237, 231, 224, 0.07)) 0 66.666% / 100% 1px no-repeat,
    linear-gradient(rgba(233, 169, 140, 0.65), rgba(233, 169, 140, 0.65)) 50% 50% / 20px 1px no-repeat,
    linear-gradient(rgba(233, 169, 140, 0.65), rgba(233, 169, 140, 0.65)) 50% 50% / 1px 20px no-repeat;
}
.vide::after {
  content: attr(data-format); position: absolute; top: 14px; right: 16px;
  font: 500 0.6rem var(--mono); letter-spacing: 0.16em; color: rgba(233, 169, 140, 0.85);
}
.vide-texte {
  position: absolute; left: 16px; bottom: 14px;
  font: 500 0.6rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--texte-doux);
}
.vide-texte::before { content: "▸ "; color: var(--cuivre); }
.vide-ouverture {
  background:
    radial-gradient(52% 62% at 76% 30%, rgba(214, 128, 72, 0.46), transparent 70%),
    radial-gradient(38% 48% at 14% 84%, rgba(150, 70, 40, 0.3), transparent 70%),
    linear-gradient(160deg, #142235, #0B1420 62%);
}
.vide-ouverture::before, .vide-ouverture .vide-texte { display: none; }
.afournir {
  font: 500 0.7rem/1.5 var(--mono); letter-spacing: 0.06em; color: var(--saumon);
  border: 1px dashed var(--trait); border-radius: 10px; padding: 8px 12px; margin: 12px 0 0; max-width: 640px;
}

/* ---------- Coins de viseur sur les plans ---------- */
.coins {
  position: absolute; inset: 12px; pointer-events: none; opacity: 0.75;
  background:
    linear-gradient(var(--saumon), var(--saumon)) left top / 16px 1px,
    linear-gradient(var(--saumon), var(--saumon)) left top / 1px 16px,
    linear-gradient(var(--saumon), var(--saumon)) right top / 16px 1px,
    linear-gradient(var(--saumon), var(--saumon)) right top / 1px 16px,
    linear-gradient(var(--saumon), var(--saumon)) left bottom / 16px 1px,
    linear-gradient(var(--saumon), var(--saumon)) left bottom / 1px 16px,
    linear-gradient(var(--saumon), var(--saumon)) right bottom / 16px 1px,
    linear-gradient(var(--saumon), var(--saumon)) right bottom / 1px 16px;
  background-repeat: no-repeat;
  transition: transform 300ms ease;
}

/* =============================== ACCUEIL =============================== */

/* Scène 01 · Ouverture */
.ouverture { position: relative; min-height: var(--scene-h); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.ouverture-plan { position: absolute; inset: 0; z-index: -2; }
.ouverture-plan > img { width: 100%; height: 100%; object-fit: cover; }
.ouverture-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 20, 32, 0.96) 8%, rgba(11, 20, 32, 0.38) 55%, rgba(11, 20, 32, 0.12)); }
.ouverture-texte { width: 100%; max-width: var(--max); margin: 0 auto; padding: 96px 16px 76px; }
.ouverture h1 { font-size: clamp(2.4rem, 7vw, 5.4rem); line-height: 1.02; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 22px; }
.ligne { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.ligne-int { display: inline-block; }
.ouverture h1 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--saumon); }
.tiret { color: var(--saumon); font-weight: 300; }
.sous-titre-film { margin: 0 0 28px; }
.sous-titre-film span { display: inline; padding: 0.2em 0.55em; background: rgba(5, 8, 13, 0.74); font-size: clamp(1rem, 1.6vw, 1.2rem); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.indice-defile { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); margin: 0; font: 500 0.62rem var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--texte-doux); }
.indice-defile::after { content: ""; display: block; width: 1px; height: 26px; margin: 8px auto 0; background: linear-gradient(var(--saumon), transparent); }

/* Cartons (intertitres entre les scènes) */
.carton {
  min-height: 72svh; display: grid; place-items: center; text-align: center; padding: 48px 16px;
  background: radial-gradient(60% 50% at 50% 50%, rgba(199, 123, 79, 0.1), transparent 70%);
}
.carton-titre { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 1.04; letter-spacing: 0; color: var(--saumon); margin: 0; }
.carton.petit { min-height: 52svh; }
.carton.petit .carton-titre { font-size: clamp(1.8rem, 5vw, 3.4rem); }

/* Scène 02 · Les réalisations : compositions variées */
.plans { display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px 20px; max-width: var(--max); margin: 0 auto; padding: 8px 16px 112px; }
.plan-carte { display: block; text-decoration: none; color: inherit; --ratio: 4 / 3; }
.plan-cadre { position: relative; aspect-ratio: var(--ratio); overflow: hidden; border-radius: 6px; background: var(--fond-2); }
.plan-zoom { width: 100%; height: 100%; transition: transform 300ms ease; }
.plan-zoom > img { width: 100%; height: 100%; object-fit: cover; }
.plan-legende { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; }
.plan-legende .etiquette { margin: 0; }
.plan-titre { font-size: 1.15rem; line-height: 1.3; }
.plan-carte:focus-visible { outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .plan-carte:hover .plan-zoom { transform: scale(1.03); }
  .plan-carte:hover .coins { transform: scale(0.985); }
}
.c1 { grid-column: 1 / span 7; --ratio: 16 / 10; }
.c2 { grid-column: 9 / span 4; --ratio: 4 / 5; margin-top: 120px; }
.c3 { grid-column: 2 / span 5; --ratio: 4 / 5; }
.c4 { grid-column: 7 / span 6; --ratio: 16 / 10; margin-top: 160px; }
.c5 { grid-column: 1 / span 6; --ratio: 1 / 1; }
.c6 { grid-column: 8 / span 5; --ratio: 3 / 4; margin-top: 80px; }

/* Scène 03 · Le studio : sous-titres */
.sequence-scene { display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 40px 16px 72px; text-align: center; }
.sequence-ligne { margin: 0; max-width: 20ch; font-size: clamp(1.8rem, 4.8vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.sequence-ligne.derniere { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: 0; color: var(--saumon); }
.sequence.longue .sequence-ligne { max-width: 24ch; font-size: clamp(1.6rem, 4vw, 3.1rem); }

.studio-gabin { display: grid; gap: 32px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 32px 16px 72px; }
.studio-gabin.avec-portrait { grid-template-columns: minmax(220px, 320px) 1fr; }
.portrait { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: var(--fond-2); }
.portrait > img { width: 100%; height: 100%; object-fit: cover; }
.gabin-texte h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.gabin-texte p { color: var(--texte-doux); max-width: 560px; margin: 0; }

/* Les trois temps, en bande de pellicule */
.etapes { position: relative; list-style: none; max-width: var(--max); margin: 0 auto 24px; padding: 22px 16px; display: grid; grid-template-columns: repeat(3, 1fr); }
.etapes::before, .etapes::after {
  content: ""; position: absolute; left: 16px; right: 16px; height: 9px;
  background: repeating-linear-gradient(90deg, rgba(240, 190, 160, 0.3) 0 10px, transparent 10px 22px);
}
.etapes::before { top: 0; }
.etapes::after { bottom: 0; }
.etape { display: flex; flex-direction: column; gap: 6px; padding: 26px 22px; border-left: 1px solid var(--trait); }
.etape:first-child { border-left: 0; }
.etape-num { font: 500 0.7rem var(--mono); letter-spacing: 0.14em; color: var(--saumon); }
.etape strong { font-size: 1.2rem; }
.etape span:last-child { color: var(--texte-doux); }

/* Travelling des disciplines : bande que l'on fait glisser (repli) */
.travelling { margin: 40px 0 0; }
.travelling-scene { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; padding-bottom: 14px; }
.travelling-piste { display: flex; gap: 16px; padding: 0 16px; width: max-content; }
.travelling-panneau {
  flex: 0 0 min(84vw, 520px); scroll-snap-align: start;
  display: grid; gap: 18px; align-content: start; border-top: 1px solid var(--trait); padding-top: 18px;
}
.panneau-num { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 8vw, 7rem); line-height: 0.9; color: transparent; -webkit-text-stroke: 1px var(--cuivre); }
.panneau-texte h3 { font-size: clamp(1.6rem, 3.4vw, 3rem); margin: 8px 0 12px; }
.panneau-texte p { color: var(--texte-doux); margin: 0 0 16px; max-width: 420px; }
.panneau-lien { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--saumon); text-decoration: none; }
.panneau-plan { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 6px; background: var(--fond-2); }
@media (min-width: 600px) { .panneau-plan { aspect-ratio: 4 / 5; } }
.panneau-plan > img { width: 100%; height: 100%; object-fit: cover; }

/* Plan bonus : Léa */
.lea { padding-bottom: 40px; }
.lea-carte {
  max-width: 760px; margin: 0 auto; padding: 32px; text-align: center;
  border: 1px solid var(--cuivre); border-radius: 18px;
  background: linear-gradient(135deg, rgba(199, 123, 79, 0.14), rgba(255, 255, 255, 0.02));
}
.lea-carte p { color: var(--texte-doux); }
.lea-carte .accroche-petite { color: var(--saumon); }

/* Générique et fin */
.generique { background: var(--noir); border-top: 1px solid rgba(240, 190, 160, 0.1); }
.generique-scene { position: relative; overflow: hidden; padding: 96px 16px; }
.generique-liste { max-width: 640px; margin: 0 auto; text-align: center; }
.generique-titre { margin: 0 0 48px; }
.generique-liste dl { margin: 0; display: grid; gap: 34px; }
.credit dt { font: 500 0.68rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--texte-doux); margin-bottom: 6px; }
.credit dd { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.6rem); font-weight: 700; }
.fin { text-align: center; padding: 96px 16px 120px; background: var(--noir); }
.fin-titre { font-family: var(--serif); font-style: italic; font-size: clamp(2rem, 6vw, 4rem); line-height: 1.1; color: var(--saumon); margin: 0 0 30px; }
.fin-mail { color: var(--texte-doux); }

/* Pied de page */
.pied {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 28px max(16px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--trait); background: var(--noir); font-size: 0.82rem; color: var(--texte-doux);
}
.pied p { margin: 0; }
.fleche { font-size: 1.4rem; color: var(--saumon); text-decoration: none; }

/* =========================== PAGE PROJET =========================== */
.projet-ouverture { position: relative; min-height: calc(var(--scene-h) * 0.92); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.projet-plan { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.projet-plan > img { width: 100%; height: 100%; object-fit: cover; }
.projet-plan > .vide::before { display: none; }
.projet-voile { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(11, 20, 32, 0.97) 6%, rgba(11, 20, 32, 0.4) 55%, rgba(11, 20, 32, 0.1)); }
.projet-titres { width: 100%; max-width: var(--max); margin: 0 auto; padding: 120px 16px 56px; }
.projet-titres h1 { font-size: clamp(2.2rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.fil { position: absolute; top: 20px; left: max(16px, calc((100% - var(--max)) / 2)); z-index: 1; }
.fil a { font: 500 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--texte-doux); }
@media (hover: hover) and (pointer: fine) { .fil a:hover { color: var(--saumon); } }

.acte { display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 40px; max-width: var(--max); margin: 0 auto; padding: 96px 16px; border-top: 1px solid var(--trait); }
.acte-num {
  position: sticky; top: calc(var(--barre-h) + 24px); align-self: start;
  font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 12vw, 9rem); line-height: 0.9;
  color: transparent; -webkit-text-stroke: 1px var(--cuivre);
}
.acte-corps p { margin: 0 0 14px; max-width: 640px; font-size: 1.05rem; }
.acte-corps .liste { margin: 0; padding-left: 20px; max-width: 640px; }
.acte-corps .liste li { margin-bottom: 8px; }
.rushes { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.rushes > .afournir { grid-column: 1 / -1; }
.vue { display: block; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; }
.vue .cadre-vue { position: relative; overflow: hidden; border-radius: 6px; background: var(--fond-2); }
.vue .cadre-vue > img { width: 100%; height: 100%; object-fit: cover; }
.vue.ensemble { grid-column: span 12; } .vue.ensemble .cadre-vue { aspect-ratio: 16 / 9; }
.vue.gros-plan { grid-column: span 6; } .vue.gros-plan .cadre-vue { aspect-ratio: 1 / 1; }
.vue.situation { grid-column: 3 / span 8; } .vue.situation .cadre-vue { aspect-ratio: 3 / 2; }
.legende-simple { display: block; padding-top: 8px; font-size: 0.85rem; color: var(--texte-doux); }

.prochaine { text-align: center; padding: 96px 16px 120px; background: var(--noir); border-top: 1px solid rgba(240, 190, 160, 0.1); }
.prochaine-lien { display: inline-flex; flex-direction: column; gap: 10px; text-decoration: none; margin-bottom: 40px; }
.prochaine-lien strong { font-size: clamp(2rem, 6vw, 4.2rem); line-height: 1.05; transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .prochaine-lien:hover strong { color: var(--saumon); } }

/* Comparateur première piste / rendu final */
.compar {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 10px; background: var(--fond-2);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.compar .couche { position: absolute; inset: 0; }
.compar .couche img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compar .avant { clip-path: inset(0 50% 0 0); }
.compar-etiquette {
  position: absolute; bottom: 12px; padding: 4px 10px; border-radius: 999px; pointer-events: none;
  background: rgba(5, 8, 13, 0.78); font: 500 0.66rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--saumon);
}
.compar-etiquette.gauche { left: 12px; }
.compar-etiquette.droite { right: 12px; }
.compar-poignee { position: absolute; top: 0; bottom: 0; left: 0; width: 48px; margin-left: -24px; padding: 0; background: transparent; border: 0; cursor: ew-resize; }
.compar-poignee::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--saumon); }
.compar-poignee::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  display: grid; place-items: center; border-radius: 50%; background: var(--saumon); color: #2a1408; font-size: 1.1rem; font-weight: 700;
}
.compar-poignee:focus-visible { outline: none; }
.compar-poignee:focus-visible::after { outline: 3px solid var(--texte); outline-offset: 3px; }

/* Visionneuse (galerie agrandie) */
.visionneuse {
  border: 1px solid var(--trait); border-radius: 18px; background: var(--fond); color: var(--texte);
  padding: 0; width: min(1000px, 94vw); max-height: 92vh;
  opacity: 0; transform: scale(0.96);
  transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), overlay 250ms allow-discrete, display 250ms allow-discrete;
}
.visionneuse[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; opacity: 1; transform: none; }
@starting-style { .visionneuse[open] { opacity: 0; transform: scale(0.96); } }
.visionneuse::backdrop { background: rgba(5, 8, 13, 0.86); opacity: 0; transition: opacity 250ms var(--ease-out), overlay 250ms allow-discrete, display 250ms allow-discrete; }
.visionneuse[open]::backdrop { opacity: 1; }
@starting-style { .visionneuse[open]::backdrop { opacity: 0; } }
.visionneuse figure { margin: 0; padding: 20px 0; min-width: 0; }
.visionneuse .cadre { max-height: 74vh; min-height: 200px; border-radius: 10px; overflow: hidden; display: grid; place-items: center; background: var(--fond-2); }
.visionneuse .cadre img { max-height: 74vh; width: 100%; object-fit: contain; }
.visionneuse .cadre .vide { min-height: 300px; }
.visionneuse figcaption { padding: 14px 4px 0; color: var(--texte-doux); font-size: 0.9rem; }
.visionneuse .nav, .visionneuse .fermer { background: transparent; color: var(--saumon); border: 0; font-size: 1.6rem; cursor: pointer; height: 56px; }
.visionneuse .fermer { position: absolute; top: 8px; right: 10px; width: 44px; height: 44px; z-index: 2; font-size: 1.8rem; }

/* =========================== PAGE OFFRES =========================== */
.offres-ouverture { max-width: var(--max); margin: 0 auto; padding: 96px 16px 56px; }
.offres-ouverture h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; }
.scene-offres { max-width: var(--max); margin: 0 auto; padding: 72px 16px 32px; border-top: 1px solid var(--trait); }
.tickets, .cartes { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ticket {
  --coupe: 92px;
  position: relative; padding: 0; border: 1px solid var(--trait); border-radius: 16px;
  background: linear-gradient(180deg, rgba(199, 123, 79, 0.12), rgba(255, 255, 255, 0.02));
  -webkit-mask: radial-gradient(circle 11px at 0 var(--coupe), transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--coupe), transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 11px at 0 var(--coupe), transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 11px at 100% var(--coupe), transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket-haut { height: var(--coupe); padding: 20px 24px 0; border-bottom: 1px dashed rgba(240, 190, 160, 0.35); }
.ticket-haut h3 { margin: 0 0 4px; font-size: 1.1rem; }
.tarif { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--saumon); margin: 0; line-height: 1.2; }
.ticket-bas { padding: 18px 24px 24px; }
.ticket-bas p, .carte p { margin: 0 0 12px; color: var(--texte-doux); font-size: 0.92rem; }
.ticket-bas ul, .carte ul { margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--texte-doux); }
.a-valider { display: inline-block; margin-left: 8px; font: 500 0.62rem var(--mono); letter-spacing: 0.1em; color: var(--saumon); border: 1px solid var(--trait); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.carte { border: 1px solid var(--trait); border-radius: 16px; padding: 24px; background: var(--carte); }
.carte h4 { margin: 0 0 4px; font-size: 1.1rem; }
.carte .tarif { margin: 0 0 10px; }
.citation { margin: 0; }
.citation blockquote { margin: 0 0 12px; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.citation figcaption { font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--saumon); }
.deux-colonnes { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.prix { list-style: none; margin: 0; padding: 0; }
.prix li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--trait); font-size: 0.92rem; }
.prix li span:last-child { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--saumon); white-space: nowrap; }
.formulaire { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); max-width: 760px; }
.formulaire label { display: flex; flex-direction: column; gap: 6px; font: 500 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-doux); }
.formulaire .large { grid-column: 1 / -1; }
.formulaire input, .formulaire select, .formulaire textarea {
  font: 400 0.95rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--texte);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--trait); border-radius: 10px; padding: 12px;
}
.formulaire select option { background: var(--fond-2); color: var(--texte); }
.formulaire .bouton { justify-self: start; }
.resultat { margin: 20px 0 8px; padding: 18px 20px; border: 1px solid var(--trait); border-radius: 14px; background: var(--carte); max-width: 760px; min-height: 64px; }
.resultat strong { color: var(--saumon); }

/* ======================= MOUVEMENT : RÉVÉLATIONS ======================= */
/* Une seule fois par élément, au premier passage (jamais à chaque défilement). */
@media (prefers-reduced-motion: no-preference) {
  html.js .revele { clip-path: inset(0 0 100% 0); transition: clip-path 600ms var(--ease-in-out); transition-delay: calc(var(--i, 0) * 60ms); }
  html.js .revele[data-visible] { clip-path: inset(0 0 0 0); }
  html.js.js-secours:not(.js-pret) .revele { clip-path: none; }

  /* Entrée du titre d'ouverture (déclenchée à la fin de la séquence d'ouverture) */
  html.js .ouverture:not(.joue) .ligne-int { transform: translateY(110%); }
  html.js .ouverture:not(.joue) .apparait { opacity: 0; transform: translateY(14px); }
  .ouverture.joue .ligne-int { animation: monte 900ms var(--ease-out) both; }
  .ouverture.joue .ligne:nth-child(2) .ligne-int { animation-delay: 90ms; }
  .ouverture.joue .apparait { animation: fondu-monte 700ms var(--ease-out) both; animation-delay: calc(220ms + var(--i, 0) * 70ms); }
  html.js-secours .ouverture:not(.joue) .ligne-int,
  html.js-secours .ouverture:not(.joue) .apparait { transform: none; opacity: 1; }

  /* Survol des images de la galerie (souris uniquement) */
  @media (hover: hover) and (pointer: fine) {
    .vue .cadre-vue { transition: transform 300ms ease; }
    .vue:hover .cadre-vue { transform: scale(1.015); }
  }
}
@media (prefers-reduced-motion: reduce) {
  html.js .revele { opacity: 0; transition: opacity 200ms ease; }
  html.js .revele[data-visible] { opacity: 1; }
  html.js.js-secours:not(.js-pret) .revele { opacity: 1; }
  .chapitres, .visionneuse { transform: none; }
  @starting-style { .chapitres:popover-open, .visionneuse[open] { transform: none; } }
  .viseur-texte { transition: none; }
}
@keyframes monte { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes fondu-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =================== MOUVEMENT LIÉ AU DÉFILEMENT ===================
   Uniquement si le navigateur sait lier une animation au défilement
   et si « réduire les animations » n'est pas demandé. Sinon : mise en page immobile. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Ouverture : la caméra avance quand on quitte la scène, le texte s'éloigne */
    .ouverture-plan > img, .ouverture-plan > .vide, .projet-plan > img, .projet-plan > .vide {
      animation: camera-pousse linear both; animation-timeline: view(); animation-range: exit 0% exit 100%;
    }
    .ouverture-texte, .projet-titres { animation: texte-sortie linear both; animation-timeline: view(); animation-range: exit 0% exit 75%; }

    /* Cartons : le titre apparaît au centre de l'écran puis s'efface */
    .carton-texte { animation: carton linear both; animation-timeline: view(); animation-range: cover 12% cover 88%; }

    /* Plans : léger mouvement de caméra à l'intérieur du cadre */
    .plan-zoom > img, .panneau-plan > img, .vue .cadre-vue > img {
      animation: parallaxe linear both; animation-timeline: view(); animation-range: cover 0% cover 100%;
    }

    /* Sous-titres : chaque ligne occupe sa tranche de la séquence (réglée en JavaScript) */
    .sequence { height: calc(var(--lignes, 3) * 45svh + 100svh); view-timeline-inset: var(--barre-h) var(--barre-b); }
    .sequence-scene { position: sticky; top: var(--barre-h); height: var(--scene-h); display: grid; place-items: center; padding: 0 16px; gap: 0; }
    .sequence-ligne { grid-area: 1 / 1; animation: ligne linear both; }
    .sequence-ligne.derniere { animation-name: ligne-fin; }

    /* Générique : les noms montent comme à la fin d'un film */
    .generique-roule { height: 260svh; view-timeline-name: --generique; view-timeline-inset: var(--barre-h) var(--barre-b); }
    .generique-scene { position: sticky; top: var(--barre-h); height: var(--scene-h); overflow: hidden; padding: 0 16px; }
    .generique-liste { animation: generique linear both; animation-timeline: --generique; animation-range: contain 0% contain 100%; }

    /* Travelling horizontal des disciplines (écrans larges) */
    @media (min-width: 600px) {
      .travelling { height: calc(var(--n, 4) * 75svh); margin: 0; view-timeline-name: --travelling; view-timeline-inset: var(--barre-h) var(--barre-b); }
      .travelling-scene { position: sticky; top: var(--barre-h); height: var(--scene-h); overflow: hidden; scroll-snap-type: none; padding: 0; }
      .travelling-piste {
        width: calc(var(--n, 4) * 100%); height: 100%; gap: 0; padding: 0;
        animation: travelling linear both; animation-timeline: --travelling; animation-range: contain 0% contain 100%;
      }
      .travelling-panneau {
        flex: 0 0 calc(100% / var(--n, 4)); scroll-snap-align: none; border-top: 0; padding: 0 6vw;
        grid-template-columns: 1fr minmax(240px, 30vw); align-items: center; align-content: center; gap: 56px;
      }
    }
  }
  /* Changement de page : l'image du projet passe de la vignette à la couverture */
  @view-transition { navigation: auto; }
}
@keyframes camera-pousse { from { transform: scale(1.02); } to { transform: scale(1.14) translateY(3%); } }
@keyframes texte-sortie { to { opacity: 0; transform: translateY(-6%); } }
@keyframes carton { 0% { opacity: 0; transform: scale(0.96); } 35%, 65% { opacity: 1; transform: none; } 100% { opacity: 0; transform: scale(1.03); } }
@keyframes parallaxe { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }
@keyframes ligne { 0% { opacity: 0; transform: translateY(18px); } 25%, 75% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes ligne-fin { 0% { opacity: 0; transform: translateY(18px); } 30%, 100% { opacity: 1; transform: none; } }
@keyframes generique { from { transform: translateY(var(--scene-h)); } to { transform: translateY(-100%); } }
@keyframes travelling { to { transform: translateX(calc(-100% + 100% / var(--n, 4))); } }

/* Transitions entre pages (navigateurs compatibles) : courtes, les barres restent en place */
::view-transition-group(*) { animation-duration: 450ms; animation-timing-function: cubic-bezier(0.77, 0, 0.175, 1); }
::view-transition-old(*.plan), ::view-transition-new(*.plan) { height: 100%; object-fit: cover; }

/* ============================== PETITS ÉCRANS ============================== */
@media (max-width: 820px) {
  .barre-scene, .signature, .lecteur-num { display: none; }
  .plans { display: block; padding-bottom: 72px; }
  .plans .plan-carte { margin: 0 0 40px; }
  .studio-gabin.avec-portrait { grid-template-columns: 1fr; }
  .etapes { grid-template-columns: 1fr; }
  .etape { border-left: 0; border-top: 1px solid var(--trait); }
  .etape:first-child { border-top: 0; }
  .acte { grid-template-columns: 1fr; gap: 8px; padding: 64px 16px; }
  .acte-num { position: static; font-size: 4rem; }
  .vue.gros-plan, .vue.situation { grid-column: span 12; }
  .pied { flex-direction: column; align-items: flex-start; }
  .visionneuse[open] { grid-template-columns: 1fr; }
  .visionneuse .nav { position: absolute; top: 42%; z-index: 2; width: 44px; height: 44px; background: rgba(11, 20, 32, 0.72); border-radius: 50%; }
  .visionneuse .prec { left: 8px; }
  .visionneuse .suiv { right: 8px; }
  .visionneuse figure { padding: 52px 12px 16px; }
}
@media (max-width: 560px) {
  :root { --barre-h: 52px; --barre-b: 38px; }
  .m-long { display: none; }
  .m-court { display: inline; }
  .barre { gap: 10px; }
  .marque { letter-spacing: 0.14em; font-size: 0.82rem; }
  .pastille-brouillon { display: none; }
  .lecteur-tc::before { content: ""; }
  .intro-passer { right: 50%; transform: translateX(50%); }
  .intro-passer:active { transform: translateX(50%) scale(0.97); }
}

/* Sécurité : jamais de séquence d'ouverture si « réduire les animations » est demandé. */
@media (prefers-reduced-motion: reduce) { html.ouverture-film .intro { display: none; } }

/* ============================ PASSE DESIGN ============================
   Direction artistique « cinéma » dans la charte : lumière cuivre, repères de visée,
   typographie géante en contour, claquettes, pellicule, bobine. */

/* Halo cuivre en haut de page (charte : fond bleu nuit avec halo cuivre/brun) */
body { background: radial-gradient(1100px 620px at 88% -6%, rgba(176, 100, 52, 0.2), transparent 70%), var(--fond); }

/* Pagination « 01 / 04 » (charte, en haut à droite) */
.pagination { margin: 0; font: 500 0.66rem var(--mono); letter-spacing: 0.18em; color: var(--texte-doux); }

/* Flèche des boutons */
.bouton-fleche { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .bouton:hover .bouton-fleche { transform: translateX(3px); }
  a.bouton[href^="#"]:hover .bouton-fleche { transform: translateY(3px); }
}

/* Liens soulignés au survol par un trait qui se déploie */
.panneau-lien, .fil a, .fin-mail, .pied p a { position: relative; text-decoration: none; }
.panneau-lien::after, .fil a::after, .fin-mail::after, .pied p a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform 250ms var(--ease-out);
}
.panneau-lien:focus-visible::after, .fil a:focus-visible::after, .fin-mail:focus-visible::after, .pied p a:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .panneau-lien:hover::after, .fil a:hover::after, .fin-mail:hover::after, .pied p a:hover::after { transform: scaleX(1); }
}

/* ---------- Ouverture : composition ---------- */
.ouverture-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mot-geant {
  position: absolute; right: -3vw; bottom: 4%; white-space: nowrap;
  font: 800 19vw/0.8 var(--sans); letter-spacing: -0.045em;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 169, 140, 0.2);
}
/* Reflet horizontal d'objectif anamorphique */
.flare {
  position: absolute; left: -10%; right: -10%; top: 24%; height: 2px; transform-origin: 62% 50%;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 190, 0) 10%, rgba(255, 196, 160, 0.85) 52%, rgba(255, 214, 190, 0) 90%, transparent);
}
.flare::after {
  content: ""; position: absolute; left: 30%; right: 18%; top: -44px; height: 90px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(233, 150, 100, 0.26), transparent 70%);
}
/* Repères de visée : coins et croix */
.visee {
  position: absolute; inset: 24px;
  background:
    linear-gradient(rgba(237, 231, 224, 0.5), rgba(237, 231, 224, 0.5)) left top / 26px 1px,
    linear-gradient(rgba(237, 231, 224, 0.5), rgba(237, 231, 224, 0.5)) left top / 1px 26px,
    linear-gradient(rgba(237, 231, 224, 0.5), rgba(237, 231, 224, 0.5)) right top / 26px 1px,
    linear-gradient(rgba(237, 231, 224, 0.5), rgba(237, 231, 224, 0.5)) right top / 1px 26px,
    linear-gradient(rgba(237, 231, 224, 0.5), rgba(237, 231, 224, 0.5)) left bottom / 26px 1px,
    linear-gradient(rgba(237, 231, 224, 0.5), rgba(237, 231, 224, 0.5)) left bottom / 1px 26px,
    linear-gradient(rgba(237, 231, 224, 0.5), rgba(237, 231, 224, 0.5)) right bottom / 26px 1px,
    linear-gradient(rgba(237, 231, 224, 0.5), rgba(237, 231, 224, 0.5)) right bottom / 1px 26px,
    linear-gradient(rgba(233, 169, 140, 0.55), rgba(233, 169, 140, 0.55)) 50% 50% / 22px 1px,
    linear-gradient(rgba(233, 169, 140, 0.55), rgba(233, 169, 140, 0.55)) 50% 50% / 1px 22px;
  background-repeat: no-repeat;
}
.visee-label { position: absolute; font: 500 0.62rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: rgba(237, 231, 224, 0.6); }
.visee-label.hg { top: 38px; left: 42px; }
.visee-label.hd { top: 38px; right: 42px; color: var(--saumon); }
.visee-label.bd { bottom: 38px; right: 42px; }

/* ---------- Bandeaux typographiques ---------- */
.bandeau { overflow: hidden; padding: 22px 0 18px; background: var(--noir); border-block: 1px solid rgba(240, 190, 160, 0.12); }
.bandeau-ligne { display: flex; width: max-content; white-space: nowrap; }
.bandeau-ligne.gauche {
  font: 800 clamp(1.8rem, 4.2vw, 3.6rem)/1 var(--sans); letter-spacing: -0.02em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 169, 140, 0.6);
}
.bandeau-ligne.droite { margin-top: 6px; font: italic 500 clamp(1.2rem, 2.6vw, 2.2rem)/1.1 var(--serif); color: var(--saumon); }

/* ---------- Cartons : iris et numéro géant ---------- */
.carton { position: relative; overflow: hidden; isolation: isolate; background: none; }
.carton-iris { position: absolute; inset: 0; z-index: -2; background: radial-gradient(42% 54% at 50% 50%, rgba(199, 123, 79, 0.3), rgba(11, 20, 32, 0) 72%); }
.carton-num {
  position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; user-select: none;
  font: 800 clamp(11rem, 40vw, 34rem)/1 var(--sans); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 169, 140, 0.13);
}
.carton .pagination { position: absolute; top: 22px; right: max(16px, calc((100% - var(--max)) / 2)); }
.carton-texte::before, .carton-texte::after { content: ""; display: block; width: 64px; height: 1px; margin: 0 auto; background: var(--cuivre); opacity: 0.75; }
.carton-texte::before { margin-bottom: 22px; }
.carton-texte::after { margin-top: 28px; }

/* ---------- Réalisations : numéros et claquettes ---------- */
.plan-carte { position: relative; }
.plan-num {
  position: absolute; z-index: 2; top: -0.52em; left: -0.06em; pointer-events: none;
  font: italic 500 clamp(3.6rem, 8vw, 7rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--saumon);
}
.c2 .plan-num, .c4 .plan-num, .c6 .plan-num { left: auto; right: -0.06em; }
.plan-legende { padding-top: 0; gap: 0; }
.clap { position: relative; display: block; height: 12px; margin-top: 14px; overflow: hidden; border-radius: 3px 3px 0 0; }
.clap::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -30px; right: -30px;
  background: repeating-linear-gradient(-45deg, var(--saumon) 0 10px, var(--noir) 10px 20px);
  transition: transform 300ms ease;
}
@media (hover: hover) and (pointer: fine) { .plan-carte:hover .clap::before { transform: translateX(14px); } }
.clap-champs { display: grid; grid-template-columns: auto auto minmax(0, 1fr); border: 1px solid rgba(240, 190, 160, 0.22); border-top: 0; }
.clap-champs span {
  padding: 7px 10px; border-left: 1px solid rgba(240, 190, 160, 0.22); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 500 0.62rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--texte-doux);
}
.clap-champs span:first-child { border-left: 0; color: var(--saumon); }
.plan-titre { display: block; margin-top: 12px; }

/* ---------- Les trois temps : bande de pellicule inclinée ---------- */
.pellicule { overflow: hidden; padding: 48px 0 64px; }
.etapes {
  max-width: none; margin: 0 -3vw; rotate: -1.5deg;
  padding: 26px max(calc(16px + 3vw), calc((100% - var(--max)) / 2));
  background: #070b11; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.etapes::before, .etapes::after { left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, rgba(240, 190, 160, 0.34) 0 12px, transparent 12px 26px); }
.etapes::before { top: 7px; }
.etapes::after { bottom: 7px; }
.etape { position: relative; padding-top: 34px; }
.etape::before { content: attr(data-code); position: absolute; top: 12px; left: 22px; font: 500 0.56rem var(--mono); letter-spacing: 0.2em; color: rgba(233, 169, 140, 0.55); }

/* ---------- Travelling : mot géant derrière chaque panneau ---------- */
.panneau-fond { display: none; }

/* ---------- Générique : bobine ; fin : « Fin » géant ---------- */
.bobine { position: absolute; right: -70px; bottom: -70px; width: min(360px, 60vw); height: auto; color: rgba(233, 169, 140, 0.32); pointer-events: none; }
.fin { position: relative; overflow: hidden; isolation: isolate; }
.fin-mot {
  position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; user-select: none;
  font: italic 500 clamp(10rem, 36vw, 28rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1px rgba(233, 169, 140, 0.14);
}

/* ---------- Mouvement de la passe design ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Le reflet s'étire à l'ouverture du film */
  .ouverture.joue .flare { animation: flare-entree 1400ms var(--ease-out) both; animation-delay: 120ms; }
  @supports (animation-timeline: view()) {
    .mot-geant { animation: mot-glisse linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .bandeau-ligne.gauche { animation: defile-gauche linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .bandeau-ligne.droite { animation: defile-droite linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .carton-iris { animation: iris linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
    .carton-num { animation: carton-num linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .etapes { animation: pellicule-glisse linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .bobine { animation: bobine-tourne linear both; animation-timeline: --generique; animation-range: contain 0% contain 100%; }
    .fin-mot { animation: fin-mot linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    @media (min-width: 600px) {
      .travelling-panneau { position: relative; isolation: isolate; overflow: hidden; }
      .panneau-fond {
        display: block; position: absolute; left: 3vw; bottom: -0.1em; z-index: -1; white-space: nowrap; pointer-events: none;
        font: 800 12vw/0.9 var(--sans); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(233, 169, 140, 0.12);
      }
    }
  }
}
@keyframes flare-entree { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes mot-glisse { to { transform: translateX(-10%); } }
@keyframes defile-gauche { from { transform: translateX(0); } to { transform: translateX(-30%); } }
@keyframes defile-droite { from { transform: translateX(-30%); } to { transform: translateX(0); } }
@keyframes iris { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
@keyframes carton-num { 0% { opacity: 0; transform: scale(0.86); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.08); } }
@keyframes pellicule-glisse { from { transform: translateX(3%); } to { transform: translateX(-3%); } }
@keyframes bobine-tourne { from { transform: rotate(0deg); } to { transform: rotate(540deg); } }
@keyframes fin-mot { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .visee { inset: 14px; }
  .visee-label.hg { top: 24px; left: 26px; }
  .visee-label.hd { top: 24px; right: 26px; }
  .visee-label.bd { display: none; }
  .mot-geant { font-size: 24vw; bottom: 34%; }
  .plan-num { font-size: 3.4rem; }
  .etapes { rotate: -1deg; }
  .etape { border-left: 0; }
}

/* Libellés des écrans de visée à l'écart des coins des vignettes */
.plan-cadre .vide-texte { left: 26px; bottom: 24px; }
.plan-cadre .vide::after { top: 24px; right: 28px; }
.c2 .plan-cadre .vide::after, .c4 .plan-cadre .vide::after, .c6 .plan-cadre .vide::after { right: auto; left: 28px; }

/* Fil d'Ariane de la page projet : à l'intérieur des repères de visée */
.projet-ouverture .fil { top: 34px; left: 42px; }
@media (max-width: 820px) { .projet-ouverture .fil { top: 22px; left: 26px; } }

/* ============================== ANIMATIONS ==============================
   Rien ne bouge si « réduire les animations » est demandé.
   Ce qui tourne en boucle (classe .continu, grain) s'arrête avec le bouton pause du lecteur. */

/* Bouton pause du lecteur */
.lecteur-pause {
  width: 30px; height: 30px; padding: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: transparent; border: 1px solid rgba(240, 190, 160, 0.24); color: var(--saumon);
  transition: transform 160ms var(--ease-out), border-color 200ms ease;
}
.lecteur-pause:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .lecteur-pause:hover { border-color: var(--saumon); } }
.icone-pause { width: 9px; height: 10px; background: linear-gradient(currentColor, currentColor) left / 3px 100% no-repeat, linear-gradient(currentColor, currentColor) right / 3px 100% no-repeat; }
.lecteur-pause[aria-pressed="true"] .icone-pause { width: 0; height: 0; background: none; border-style: solid; border-width: 5px 0 5px 9px; border-color: transparent transparent transparent currentColor; margin-left: 2px; }

/* Lumière qui dérive dans l'ouverture */
.fuite {
  position: absolute; left: 42%; top: -30%; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(214, 128, 72, 0.3), rgba(214, 128, 72, 0));
}

/* Mots des titres */
.mot { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 0.06em 0.12em 0; margin: 0 -0.06em -0.12em 0; }
.mot-int { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* Grain de pellicule animé (10 images par seconde) */
  body::before { inset: -50%; animation: grain 1s steps(1, end) infinite; }

  /* Ambiance de l'ouverture */
  .fuite { animation: fuite 16s var(--ease-in-out) infinite alternate; }
  .flare::after { animation: halo-flare 9s var(--ease-in-out) infinite alternate; }
  .indice-defile::after { transform-origin: top center; animation: coule 2.2s var(--ease-in-out) infinite; }

  /* Bandeaux : défilement continu en plus du défilement de la page ; pause au survol */
  .bandeau-flux { display: flex; width: max-content; animation: flux 42s linear infinite; }
  .bandeau-ligne.droite .bandeau-flux { animation-duration: 54s; animation-direction: reverse; }
  .bandeau:hover .bandeau-flux { animation-play-state: paused; }

  /* Titres : les mots montent l'un après l'autre */
  html.js .mots .mot-int { transform: translateY(108%); transition: transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 55ms); }
  html.js .mots[data-visible] .mot-int { transform: none; }
  html.js.js-secours:not(.js-pret) .mots .mot-int { transform: none; }

  /* Claquette : la barre rayée se rabat quand la vignette apparaît */
  html.js .plan-legende.revele[data-visible] { clip-path: inset(-60px -12px 0 -12px); }
  html.js .plan-legende .clap { transform-origin: 0 100%; transform: rotate(-14deg); transition: transform 420ms var(--ease-out) 480ms; }
  html.js .plan-legende[data-visible] .clap { transform: none; }
  html.js.js-secours:not(.js-pret) .plan-legende .clap { transform: none; }

  /* Reflet qui balaie « Studio créatif à Bordeaux » une fois l'ouverture jouée */
  .ouverture.joue h1 em {
    background: linear-gradient(100deg, var(--saumon) 42%, #fff1e6 50%, var(--saumon) 58%) 100% 0 / 260% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: reflet 1600ms ease 1100ms both;
  }

  /* Survols (souris uniquement) */
  @media (hover: hover) and (pointer: fine) {
    .plan-carte { transition: transform 200ms var(--ease-out); }
    .bouton { position: relative; overflow: hidden; isolation: isolate; transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease; }
    .bouton.contour::before {
      content: ""; position: absolute; inset: 0; z-index: -1; background: var(--saumon);
      clip-path: inset(0 100% 0 0); transition: clip-path 300ms var(--ease-out);
    }
    .bouton.contour:hover { color: #2a1408; background: transparent; border-color: var(--saumon); }
    .bouton.contour:hover::before { clip-path: inset(0 0 0 0); }
    .ticket, .carte { transition: transform 200ms var(--ease-out), border-color 200ms ease; }
    .ticket:hover, .carte:hover { transform: translateY(-4px); border-color: rgba(240, 190, 160, 0.4); }
  }

  /* Changement de page : la nouvelle page s'ouvre en iris (les barres du lecteur restent en place) */
  ::view-transition-old(root) { animation: none; }
  ::view-transition-new(root) { animation: iris-page 520ms cubic-bezier(0.77, 0, 0.175, 1) both; }
}

/* Bouton pause : tout ce qui tourne en boucle s'arrête */
html.anim-pause body::before,
html.anim-pause .continu, html.anim-pause .continu::before, html.anim-pause .continu::after,
html.anim-pause .continu .bandeau-flux { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  html.js .mots .mot-int { opacity: 0; transition: opacity 200ms ease; }
  html.js .mots[data-visible] .mot-int { opacity: 1; }
  html.js.js-secours:not(.js-pret) .mots .mot-int { opacity: 1; }
}

@keyframes grain {
  0% { transform: translate(0, 0); } 10% { transform: translate(-5%, -8%); } 20% { transform: translate(-12%, 4%); }
  30% { transform: translate(6%, -14%); } 40% { transform: translate(-4%, 18%); } 50% { transform: translate(-12%, 8%); }
  60% { transform: translate(12%, 0); } 70% { transform: translate(0, 12%); } 80% { transform: translate(3%, 22%); }
  90% { transform: translate(-8%, 8%); } 100% { transform: translate(0, 0); }
}
@keyframes fuite { from { transform: translate(0, 0) scale(1); } to { transform: translate(-22%, 16%) scale(1.15); } }
@keyframes halo-flare { from { transform: translateX(-10%); } to { transform: translateX(12%); } }
@keyframes coule { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes flux { from { transform: translateX(0); } to { transform: translateX(-25%); } }
@keyframes reflet { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes iris-page { from { clip-path: circle(0% at 50% 52%); } to { clip-path: circle(80% at 50% 52%); } }

/* ================================ LOGO ================================
   Le mot-logo « NextFlow » (PNG transparent) sert de pochoir : sa couleur suit le texte. */
.logo-masque {
  display: inline-block; background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}
.marque { align-items: center; }
.marque-logo { width: 112px; height: 24px; color: var(--texte); }
.pied-logo { width: 84px; height: 18px; margin-right: 10px; vertical-align: -3px; color: var(--texte-doux); }
/* Filigrane géant de l'ouverture */
.mot-geant.logo-masque { width: 94vw; height: auto; aspect-ratio: 1870 / 393; color: rgba(233, 169, 140, 0.065); -webkit-text-stroke: 0; }
/* Séquence d'ouverture : monogramme NF, mot-logo, « présente » */
.intro-presente { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.intro-monogramme { width: min(130px, 30vw); height: auto; filter: url(#nf-cle); }
.intro-marque.logo-masque { width: min(220px, 52vw); height: auto; aspect-ratio: 1870 / 393; color: var(--texte); }
.intro-mot { font: 500 0.72rem var(--mono); letter-spacing: 0.32em; text-transform: uppercase; color: var(--texte-doux); }
@media (max-width: 560px) { .marque-logo { width: 96px; height: 20px; } }

/* Photo d'ouverture : cadrage sur l'horizon (photo verticale recadrée en paysage) */
.ouverture-plan > img { object-position: 50% 62%; filter: saturate(0.82) contrast(1.08) sepia(0.14) brightness(0.92); }

/* ======================= ANIMATIONS (2e série) ======================= */
/* Ouverture en fondu enchaîné : les images se superposent */
.ouverture-plan > img { position: absolute; inset: 0; }
.ouverture-plan.diaporama > img { opacity: 0; transition: opacity 1600ms ease; }
.ouverture-plan.diaporama > img.visible { opacity: 1; }

/* Pellicule au survol : les images de la série passent dans la vignette */
.plan-zoom { position: relative; }
.plan-zoom > img.pellicule-img { position: absolute; inset: 0; opacity: 0; transition: opacity 700ms ease; }
.plan-zoom > img.pellicule-img.devant { opacity: 1; }

/* Bouton bande-annonce et barre de progression de la visionneuse */
.bande-annonce { margin: 0 0 20px; }
.vis-progres { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--saumon); transform-origin: left center; transform: scaleX(0); opacity: 0; }
.visionneuse.auto .vis-progres { opacity: 1; }

/* Curseur viseur */
.curseur { position: fixed; left: 0; top: 0; z-index: 61; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; opacity: 0; transition: opacity 200ms ease; }
.curseur.actif { opacity: 1; }
.curseur-cadre {
  position: absolute; inset: 0; color: rgba(237, 231, 224, 0.7);
  background:
    linear-gradient(currentColor, currentColor) left top / 9px 1px, linear-gradient(currentColor, currentColor) left top / 1px 9px,
    linear-gradient(currentColor, currentColor) right top / 9px 1px, linear-gradient(currentColor, currentColor) right top / 1px 9px,
    linear-gradient(currentColor, currentColor) left bottom / 9px 1px, linear-gradient(currentColor, currentColor) left bottom / 1px 9px,
    linear-gradient(currentColor, currentColor) right bottom / 9px 1px, linear-gradient(currentColor, currentColor) right bottom / 1px 9px;
  background-repeat: no-repeat;
  transition: transform 200ms var(--ease-out), color 200ms ease;
}
.curseur.sur-lien .curseur-cadre { transform: scale(0.62); color: var(--saumon); }

#hud-num { display: inline-block; }

@media (prefers-reduced-motion: no-preference) {
  /* Mise au point : la photo arrive floue puis devient nette */
  html.js .plan-cadre img, html.js .vue img, html.js .mise-au-point img { filter: blur(14px) saturate(0.6); transition: filter 1100ms var(--ease-out); }
  html.js .plan-cadre[data-visible] img, html.js .vue[data-visible] img, html.js .mise-au-point[data-visible] img { filter: none; }
  html.js.js-secours:not(.js-pret) .plan-cadre img, html.js.js-secours:not(.js-pret) .vue img, html.js.js-secours:not(.js-pret) .mise-au-point img { filter: none; }

  /* Compteur de scène */
  .roule { animation: compteur 340ms var(--ease-out); }

  /* Relief : l'image suit doucement le pointeur */
  @media (hover: hover) and (pointer: fine) { .plan-zoom { transition: transform 300ms var(--ease-out); } }

  /* Progression de la bande-annonce */
  .vis-progres.joue { animation: progres 10000ms linear both; }
}
@keyframes compteur { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes progres { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Portrait de Gabin : cadrage sur lui */
.portrait > img { object-position: 47% 50%; }

/* Disciplines en cartes (demande de Gabin, 2026-11-21) : plus de bande qui glisse, rien ne dépasse. */
.travelling.cartes-disciplines { height: auto; margin: 24px auto 40px; max-width: var(--max); padding: 0 16px; animation: none; }
.travelling.cartes-disciplines .travelling-scene { position: static; height: auto; overflow: visible; scroll-snap-type: none; padding: 0; }
.travelling.cartes-disciplines .travelling-piste {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  width: auto; height: auto; padding: 0; animation: none; transform: none;
}
.travelling.cartes-disciplines .travelling-panneau {
  flex: none; display: flex; flex-direction: column; gap: 14px; padding: 18px;
  border: 1px solid var(--trait); border-radius: 14px; background: var(--carte); overflow: hidden; scroll-snap-align: none;
}
.travelling.cartes-disciplines .panneau-plan { order: -1; aspect-ratio: 4 / 3; }
.travelling.cartes-disciplines .panneau-num { font-size: 2.6rem; }
.travelling.cartes-disciplines .panneau-texte h3 { font-size: 1.3rem; margin: 4px 0 8px; }
.travelling.cartes-disciplines .panneau-fond { display: none; }
.travelling.cartes-disciplines .panneau-plan:has(.vide) { display: none; }

.formulaire .ok { color: var(--saumon); }
.formulaire .erreur { color: #e8836b; }
.formulaire .bouton:disabled { opacity: .5; cursor: wait; }

/* ===================== EFFETS 1, 5, 6 (2026-11-24) ===================== */
/* 5 · Tirages : repli immobile = planche de tirages posés de travers */
.tirages { position: relative; padding: 48px 16px; }
.tirages-scene { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; max-width: var(--max); margin: 0 auto; }
.tirages-titre { grid-column: 1 / -1; text-align: center; margin: 0 0 12px; }
.tirage { margin: 0; padding: 10px 10px 30px; background: #f3efe8; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); transform: rotate(var(--angle, 0deg)); }
.tirage img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* 6 · Pellicule : bande perforée */
.pellicule-film { position: relative; overflow: hidden; margin: 24px 0 64px; padding: 24px 0; background: #070b11; rotate: 1deg; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.pellicule-film::before, .pellicule-film::after {
  content: ""; position: absolute; left: 0; right: 0; height: 10px;
  background: repeating-linear-gradient(90deg, rgba(240, 190, 160, 0.34) 0 12px, transparent 12px 26px);
}
.pellicule-film::before { top: 7px; }
.pellicule-film::after { bottom: 7px; }
.pellicule-bande { display: flex; gap: 10px; width: max-content; padding: 0 10px; }
.photogramme { position: relative; flex: 0 0 auto; width: clamp(160px, 18vw, 250px); aspect-ratio: 3 / 2; overflow: hidden; border-radius: 3px; background: var(--fond-2); }
.photogramme img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.15) saturate(0.9); }
.photogramme-num { position: absolute; left: 6px; bottom: 4px; font: 500 0.56rem var(--mono); letter-spacing: 0.16em; color: rgba(233, 169, 140, 0.9); }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* 1 · Séries en travelling : une série par écran (écrans de 600 px et plus) */
    @media (min-width: 600px) {
      .defile { height: calc(var(--n, 6) * 80svh); view-timeline-name: --defile-plans; view-timeline-inset: var(--barre-h) var(--barre-b); }
      .defile-scene { position: sticky; top: var(--barre-h); height: var(--scene-h); overflow: hidden; }
      .defile .plans {
        display: flex; width: calc(var(--n, 6) * 100%); max-width: none; height: 100%; margin: 0; padding: 0; gap: 0;
        animation: travelling linear both; animation-timeline: --defile-plans; animation-range: contain 0% contain 100%;
      }
      .defile .plan-carte {
        flex: 0 0 calc(100% / var(--n, 6)); margin: 0; display: grid; align-items: center; gap: 48px; padding: 6vh 7vw;
        grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr);
      }
      .defile .plan-cadre { height: calc(var(--scene-h) * 0.7); width: auto; max-width: 100%; justify-self: center; }
      .defile .plan-num { top: 3vh; left: 4vw; right: auto; }
      .defile .plan-titre { font-size: clamp(1.6rem, 3vw, 2.6rem); }
    }

    /* 5 · Tirages qui tombent en pile */
    .tirages { height: calc(var(--tirages, 8) * 40svh + 100svh); padding: 0; view-timeline-inset: var(--barre-h) var(--barre-b); }
    .tirages-scene { position: sticky; top: var(--barre-h); height: var(--scene-h); display: grid; place-items: center; max-width: none; }
    .tirages-titre { position: absolute; top: 24px; left: 0; right: 0; }
    .tirage { grid-area: 1 / 1; width: min(34vw, 300px); animation: tirage-tombe linear both; }

    /* 6 · La bande défile avec la page */
    .pellicule-bande { animation: pellicule-defile linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes tirage-tombe {
  from { transform: translate(var(--dx), -110vh) rotate(calc(var(--angle) * 3)); opacity: 0; }
  50% { opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--angle)); opacity: 1; }
}
@keyframes pellicule-defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Scène 3D de l'ouverture (scene3d.js) ---------- */
.ouverture-3d { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1800ms ease; pointer-events: none; }
.ouverture-3d.pret { opacity: 1; }
.ouverture-3d canvas { display: block; width: 100%; height: 100%; }
.avec-3d .ouverture-plan > img { filter: saturate(0.6) contrast(1.05) sepia(0.14) brightness(0.42) blur(2px); transition: filter 1800ms ease; }
