/* Pinapp V2 voyage — tokens + Geist (self-host, fichiers locaux) */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-sans-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-sans-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-sans-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist-sans-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Fraunces (SIL OFL) — italique cinéma V3.0 — self-host existant */
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/fraunces-italic-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* PR #182 — fondations Awwwards / Avalon (noir profond + warm ; hublot = accent) */
  --nuit: #0a0a0a;
  --noir-warm: #140c08;
  --ivoire-avalon: #f4ecd9;
  --or-cuivre-avalon: #c8965a;
  --hublot: #1e3a5f;
  --glass-dark: #0f0a06;
  --hublot-avalon: var(--hublot);

  --bg-void: #050b14;
  --bg-deep: #0a1425;
  --bg-elevated: #0f1a2e;
  /* V2.6 « monastique » — tri-chrome cinéma (or · cyan rare · ivoire) */
  --v26-warm-gold: #e6b973;
  --v26-ivory: #f4e4c1;
  --v26-cta-primary: var(--v26-warm-gold);
  --v26-cta-primary-text: #0a1425;

  /* V3.0 Phase 1 — cadre cinéma (aliases + espacements) */
  --black-night: #0a1425;
  --black-deeper: #050a15;
  --gold-primary: #e6b973;
  --gold-light: #ffd99f;
  --gold-deep: #b89968;
  --cyan-bright: #62ffe8;
  --ivory-text: #f4e4c1;
  --ivory-muted: rgba(244, 228, 193, 0.7);
  --red-sacred: #8b1e3f;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-accent: 'Fraunces', Georgia, serif;
  --space-cinema-xs: 0.75rem;
  --space-cinema-sm: 1.5rem;
  --space-cinema-md: clamp(3rem, 6vw, 5rem);
  --space-cinema-lg: clamp(6rem, 12vw, 10rem);
  --space-cinema-xl: clamp(10rem, 20vw, 16rem);
  /* V2.3 Aladdin — overlay image + calibrage glows (~50 % vs V2.1) */
  --voyage-overlay-dark: rgba(0, 0, 0, 0.45);
  --voyage-overlay-heavy: rgba(0, 0, 0, 0.5);
  --particles-density-base: 50;
  --cyan-glow: #3ef5e0;
  --cyan-soft: rgba(62, 245, 224, 0.72);
  --violet-glow: rgba(230, 185, 115, 0.55);
  --magenta-rare: var(--v26-warm-gold);
  --amber-warm: #e6b973;
  --amber-deep: #b89968;
  --text-primary: var(--v26-ivory);
  --text-secondary: rgba(244, 228, 193, 0.82);
  --text-muted: rgba(244, 228, 193, 0.48);
  --text-whisper: rgba(244, 228, 193, 0.28);
  --success: var(--cyan-glow);
  --error: #c17a5c;
  --warning: var(--amber-warm);
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;
  --s-32: 128px;
  --r-sm: 4px;
  --r-md: 12px;
  --r-lg: 24px;
  --r-full: 999px;
  --glow-cyan: 0 0 28px rgba(62, 245, 224, 0.14);
  --glow-magenta: 0 0 24px rgba(230, 185, 115, 0.2);
  --glow-gold: 0 0 24px rgba(230, 185, 115, 0.22);
  --shadow-depth: 0 24px 48px rgba(0, 0, 0, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0, 0.55, 0.45, 1);
  --ease-out: cubic-bezier(0.55, 0, 1, 0.45);
  --d-micro: 150ms;
  --d-short: 300ms;
  --d-med: 600ms;
  --d-long: 1200ms;

  /* V2.4 DREAM — pont chromatique (overlay radial ; rgba alignés sur --cyan-glow / --violet-glow / --magenta-rare) */
  --v24-bridge-opacity: 0.88;
  --v24-bridge-blur: 2px;
  --v24-bridge-gradient: radial-gradient(
    circle at 50% 42%,
    rgba(62, 245, 224, 0.22) 0%,
    rgba(230, 185, 115, 0.2) 42%,
    rgba(244, 228, 193, 0.08) 68%,
    transparent 78%
  );
  --v24-bridge-timing: 250ms;

  /* Motion blur court (couche transition §3 spec) */
  --v24-motion-blur: blur(6px) saturate(0.85);
  --v24-motion-blur-duration: 250ms;

  /* Texte / particules « sable Dune » (tons chauds, lisibles sur void) */
  --v24-sand-fill: rgba(255, 248, 240, 0.94);
  --v24-sand-stroke: rgba(232, 166, 97, 0.55);
  --v24-sand-shadow: 0 0 1px rgba(232, 166, 97, 0.35), 0 0 22px rgba(232, 166, 97, 0.18);
  --v24-sand-grain: rgba(232, 166, 97, 0.14);
  --v24-sand-form-min: 800ms;
  --v24-sand-form-max: 1200ms;

  /* Chapitre 1 — cercle holo + modal présentation (couleurs = déclinaisons --cyan-glow) */
  --v24-holo-stroke: rgba(62, 245, 224, 0.65);
  --v24-holo-stroke-strong: rgba(62, 245, 224, 0.95);
  --v24-holo-text: var(--text-primary);
  --v24-holo-pulse-border: rgba(62, 245, 224, 0.35);
  --v24-holo-ring-border: rgba(62, 245, 224, 0.3);
  --v24-holo-shadow-rest: 0 0 24px rgba(62, 245, 224, 0.25), inset 0 0 32px rgba(62, 245, 224, 0.1);
  --v24-holo-shadow-hover: 0 0 36px rgba(62, 245, 224, 0.45), inset 0 0 40px rgba(62, 245, 224, 0.18);
  --v24-holo-badge-bg: rgba(15, 26, 46, 0.86);
  --v24-holo-badge-border: rgba(62, 245, 224, 0.58);
  --v24-holo-modal-backdrop: rgba(5, 11, 20, 0.78);
  --v24-holo-modal-inner-top: rgba(20, 28, 52, 0.96);
  --v24-holo-modal-inner-bot: rgba(14, 20, 40, 0.98);
  --v24-holo-modal-border: rgba(62, 245, 224, 0.35);
  --v24-holo-modal-glow: rgba(62, 245, 224, 0.18);
  --v24-holo-modal-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  --v24-holo-tag-bg: rgba(62, 245, 224, 0.12);
  --v24-holo-tag-border: rgba(62, 245, 224, 0.35);
  --v24-holo-close-bg: rgba(14, 20, 40, 0.6);
  --v24-holo-close-border: rgba(62, 245, 224, 0.25);
  --v24-holo-close-border-hover: rgba(62, 245, 224, 0.55);
  --v24-holo-close-bg-hover: rgba(62, 245, 224, 0.12);
  --v24-holo-btn-hover-bg: rgba(62, 245, 224, 0.08);
  --v24-holo-modal-inset-top: rgba(255, 255, 255, 0.04);

  /* Cinéma scroll-scrub (V2.4) — z-index lisibles au-dessus du fond page */
  /* Cinéma : sous le contenu chapitre (main reste au-dessus) */
  --v24-cinema-z: 0;
  --v24-chapter-content-z: 10;
  --v24-fx-bridge-z: 4;
  --v24-fx-bridge-canvas-z: 5;
  --v24-fx-leak-z: 6;
  --v24-fx-dust-z: 7;
  --v24-fx-flash-z: 8;
  --v24-crossfade-duration: 400ms;

  /* Light leak (flash doré entre chapitres) */
  --v24-light-leak-gradient: radial-gradient(
    circle at 50% 38%,
    rgba(232, 166, 97, 0.42) 0%,
    rgba(232, 166, 97, 0.12) 38%,
    transparent 62%
  );
  --v24-light-leak-duration: 150ms;

  /* Ponts chromatiques (indices sections +1 dans bridgeVarName) */
  /* 1–2 : accueil → couloir */
  --v24-bridge-cut-1-2: radial-gradient(
    circle at 50% 42%,
    rgba(232, 166, 97, 0.28) 0%,
    rgba(62, 245, 224, 0.14) 48%,
    transparent 70%
  );
  --v24-bridge-cut-2-3: radial-gradient(
    circle at 50% 45%,
    rgba(62, 245, 224, 0.2) 0%,
    rgba(230, 185, 115, 0.16) 50%,
    transparent 72%
  );
  --v24-bridge-cut-3-4: radial-gradient(
    circle at 50% 45%,
    rgba(230, 185, 115, 0.18) 0%,
    rgba(62, 245, 224, 0.14) 48%,
    transparent 72%
  );
  --v24-bridge-cut-4-5: radial-gradient(
    circle at 50% 45%,
    rgba(230, 185, 115, 0.16) 0%,
    rgba(62, 245, 224, 0.16) 55%,
    transparent 72%
  );
  --v24-bridge-cut-5-6: radial-gradient(
    circle at 50% 45%,
    rgba(62, 245, 224, 0.2) 0%,
    rgba(232, 166, 97, 0.16) 52%,
    transparent 72%
  );
  --v24-bridge-cut-6-7: radial-gradient(
    circle at 50% 45%,
    rgba(232, 166, 97, 0.16) 0%,
    rgba(62, 245, 224, 0.12) 50%,
    transparent 72%
  );
  --v24-bridge-cut-7-8: radial-gradient(
    circle at 50% 45%,
    rgba(230, 185, 115, 0.18) 0%,
    rgba(62, 245, 224, 0.12) 52%,
    transparent 72%
  );
  --v24-bridge-cut-8-9: radial-gradient(
    circle at 50% 45%,
    rgba(62, 245, 224, 0.16) 0%,
    rgba(230, 185, 115, 0.12) 48%,
    transparent 72%
  );
  --v24-bridge-cut-9-10: radial-gradient(
    circle at 50% 45%,
    rgba(230, 185, 115, 0.12) 0%,
    rgba(62, 245, 224, 0.14) 52%,
    transparent 72%
  );
  /* Tourbillon → atterrissage sable (contact) */
  --v24-bridge-cut-8-9-sand: radial-gradient(
    circle at 50% 55%,
    rgba(230, 185, 115, 0.22) 0%,
    rgba(62, 245, 224, 0.1) 45%,
    rgba(20, 27, 56, 0.35) 70%,
    transparent 88%
  );

  /* Encart automation n8n (#s5b) — aligné spec V24 wow */
  --v24-auto-honey: #e8b864;
  --v24-auto-honey-soft: rgba(232, 184, 100, 0.85);
  --v24-auto-cyan-node: rgba(77, 208, 225, 1);
  --v24-auto-violet-node: rgba(184, 153, 104, 1);
  --v24-auto-magenta-node: rgba(230, 185, 115, 1);
  --v24-auto-flow-dash: rgba(77, 208, 225, 0.3);
  --v24-auto-bg-a: #0a1425;
  --v24-auto-bg-b: #141b38;
  /* P8 — warm workflow plate (SVG cinéma #s5b) */
  --v24-auto-bg-warm: linear-gradient(135deg, #e8d4a8 0%, #d4b87e 45%, #b89968 100%);
  --v24-auto-grain-opacity: 0.04;

  /* V2.5 mastering — LUT « cold gold Interstellar » (base + variantes chapitre) */
  --v24-lut-filter-neutral: contrast(1.08) saturate(0.92) brightness(0.95) hue-rotate(-5deg);
  --v24-lut-filter-warm: contrast(1.08) saturate(0.92) brightness(0.95) hue-rotate(-2deg);
  --v24-lut-filter-cool: contrast(1.08) saturate(0.92) brightness(0.95) hue-rotate(-8deg);
  --v24-lut-grain-opacity: 0.03;
  --v24-lut-vignette: rgba(5, 11, 20, 0.02);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html.voyage-page {
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  scroll-behavior: auto;
}

html.voyage-page body {
  margin: 0;
  line-height: 1.5;
  overflow-x: hidden;
}

.h-hero {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.h-1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h-2 {
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  text-wrap: balance;
}

.body-lg {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 42rem;
}

.label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan-glow);
}

::selection {
  background: var(--cyan-glow);
  color: var(--bg-void);
}

::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-thumb {
  background: rgba(62, 245, 224, 0.28);
  border-radius: 4px;
}

.btn {
  display: inline-block;
  padding: var(--s-4) var(--s-8);
  border-radius: var(--r-full);
  font-weight: 600;
  text-decoration: none;
  transition:
    transform var(--d-short) var(--ease),
    box-shadow var(--d-short) var(--ease),
    background var(--d-short) var(--ease);
  cursor: pointer;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  touch-action: manipulation;
}

.btn-primary {
  background: var(--v26-cta-primary);
  color: var(--v26-cta-primary-text);
  box-shadow: var(--glow-gold);
}
.btn-primary:hover {
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--cyan-glow);
  color: var(--cyan-glow);
}
.btn-secondary:hover {
  background: rgba(62, 245, 224, 0.08);
}

.btn-tertiary {
  background: none;
  color: var(--cyan-glow);
  border-bottom: 1px solid var(--cyan-glow);
  padding: var(--s-2) 0;
  border-radius: 0;
}

input,
textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(62, 245, 224, 0.28);
  padding: var(--s-4) 0;
  color: var(--v26-ivory);
  font: 1rem/1.5 'Geist', sans-serif;
  width: 100%;
  outline: none;
  transition: border-color var(--d-short) var(--ease);
}
input:focus,
textarea:focus {
  border-bottom-color: var(--cyan-glow);
  border-bottom-width: 2px;
}
input::placeholder,
textarea::placeholder {
  color: rgba(244, 228, 193, 0.35);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  filter: blur(36px);
  transform: translateY(60px);
  transition:
    opacity 1.2s var(--ease),
    filter 1.2s var(--ease),
    transform 1.2s var(--ease);
}
.reveal.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html.voyage-page *,
  html.voyage-page *::before,
  html.voyage-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    filter: none;
    transition: none;
  }
}

@media (max-width: 767px) {
  .reveal {
    filter: none;
    transform: translateY(24px);
    transition:
      opacity var(--d-med) var(--ease),
      transform var(--d-med) var(--ease);
  }
  .reveal.is-revealed {
    transform: translateY(0);
  }
}

html.voyage-page.low-perf .reveal {
  filter: none;
}

/* ═══════════════════════════════════════════════════════════════════
   V7 — NEUTRAL-ON-FILM TOKEN SYSTEM
   ──────────────────────────────────────────────────────────────────
   Principe : le film scroll-scrubbé V6 est la star visuelle.
   L'UI overlay doit s'effacer (ivoire + or rare + cyan signature rare).
   Zéro couleur UI saturée ne doit concurrencer les couleurs du film.
   Aligne avec la règle AVATAR : "si on remarque l'effet, c'est raté".
   ═══════════════════════════════════════════════════════════════════ */
:root {
  /* ── Neutrals graduels (ivoire dérivé) ─────────────────────── */
  --ivory-50: rgba(244, 228, 193, 0.04);
  --ivory-100: rgba(244, 228, 193, 0.08);
  --ivory-200: rgba(244, 228, 193, 0.16);
  --ivory-300: rgba(244, 228, 193, 0.28);
  --ivory-400: rgba(244, 228, 193, 0.42);
  --ivory-500: rgba(244, 228, 193, 0.56);
  --ivory-600: rgba(244, 228, 193, 0.72);
  --ivory-700: rgba(244, 228, 193, 0.84);
  --ivory-800: rgba(244, 228, 193, 0.94);
  --ivory-900: #f4e4c1;

  /* ── Textes sémantiques (au-dessus du film) ────────────────── */
  --text-primary: var(--ivory-900);           /* titres, H1, CTA label */
  --text-secondary: var(--ivory-700);         /* body, paragraphes */
  --text-muted: var(--ivory-500);             /* labels, metadata */
  --text-whisper: var(--ivory-300);           /* captions discrètes, tapestry */

  /* ── Background OLED (fallback quand film masqué) ──────────── */
  --bg-oled: #04040e;                         /* dossier-ultime ref */
  --bg-void-elevated: #0a1425;
  --bg-glass: rgba(10, 20, 37, 0.35);
  --bg-glass-strong: rgba(10, 20, 37, 0.55);

  /* ── Borders hairline ──────────────────────────────────────── */
  --border-hairline: var(--ivory-100);        /* 8% ivoire */
  --border-subtle: var(--ivory-200);          /* 16% pour hover */
  --border-focus: var(--cyan-glow);           /* focus-visible */

  /* ── Accents rares (pas d'UI saturée en continu) ───────────── */
  --accent-primary: var(--gold-primary);      /* CTA principal seul */
  --accent-primary-hover: var(--gold-light);
  --accent-signature: var(--cyan-glow);       /* signature states : focus, scene-active, holo-circle */

  /* ── Overlay film (pour lisibilité textes sur vidéo) ───────── */
  --film-overlay-top: rgba(10, 20, 37, 0.25);
  --film-overlay-mid: rgba(10, 20, 37, 0.45);
  --film-overlay-bottom: rgba(10, 20, 37, 0.65);

  /* ── Semantic states ───────────────────────────────────────── */
  --state-success-bg: rgba(62, 245, 224, 0.08);
  --state-success-border: rgba(62, 245, 224, 0.35);
  --state-success-text: var(--cyan-glow);
  --state-warning-bg: rgba(230, 185, 115, 0.1);
  --state-warning-border: rgba(230, 185, 115, 0.4);
  --state-warning-text: var(--gold-primary);
  --state-error-bg: rgba(220, 92, 75, 0.12);
  --state-error-border: rgba(220, 92, 75, 0.45);
  --state-error-text: #ff8366;
  --state-info-bg: rgba(120, 180, 255, 0.08);
  --state-info-border: rgba(120, 180, 255, 0.3);
  --state-info-text: #7fb4ff;

  /* ── Beauty demos palette (ongles / cils Tier M) ────────────── */
  --beauty-nude: #e8d4c5;
  --beauty-rose: #d4899d;
  --beauty-bordeaux: #5a1a2b;
  --beauty-gold: #c9a875;
  --beauty-ivory: #f4ede1;
  --beauty-velvet: #2a1218;

  /* ── Verticales produit (hues accessoires, pas core chrome) ── */
  --vertical-mp: var(--gold-primary);         /* or core M&P */
  --vertical-formation: var(--cyan-glow);     /* cyan pédagogie */

  /* ── Elevation (glass layers) ──────────────────────────────── */
  --elevation-0: none;
  --elevation-1: 0 1px 2px rgba(0,0,0,0.15), 0 1px 4px rgba(0,0,0,0.1);
  --elevation-2: 0 4px 12px rgba(0,0,0,0.2), 0 2px 6px rgba(0,0,0,0.12);
  --elevation-3: 0 12px 32px rgba(0,0,0,0.3), 0 4px 12px rgba(0,0,0,0.15);
  --elevation-glow-cyan: 0 0 24px rgba(62,245,224,0.25);
  --elevation-glow-gold: 0 0 24px rgba(230,185,115,0.3);

  /* ── z-index stack ─────────────────────────────────────────── */
  --z-film: 0;
  --z-film-overlay: 1;
  --z-content: 2;
  --z-chrome: 100;                            /* nav, header, CTAs fixed */
  --z-tapestry: 10;                           /* morse STAY, etc */
  --z-modal: 1000;
  --z-tooltip: 2000;
  --z-cursor: 100000;
}

/* ── Règle cohérence : ::selection signature biolumi ────────── */
::selection {
  background: rgba(62, 245, 224, 0.35);
  color: var(--ivory-900);
  text-shadow: 0 0 12px rgba(62, 245, 224, 0.4);
}

/* ── Scrollbar fine or→cyan (contextes hors Lenis) ──────────── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--ivory-300) transparent;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-primary), var(--cyan-glow));
  border-radius: 999px;
}

/* ── Tapestry whisper (phrases italiques discrètes easter eggs) ─ */
.tapestry-whisper {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-whisper);
  letter-spacing: 0.01em;
  margin-top: var(--s-4);
  display: block;
  text-align: inherit;
}

/* ── Morse STAY (easter egg M&P section s4) ─────────────────────
   4 dots/dashes en bas-gauche · visible quand s4 est la section active
   Tape "S T A Y" en morse · ZÉRO attribution visible */
.morse-stay {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 800ms var(--ease),
    transform 800ms var(--ease);
  z-index: var(--z-tapestry, 10);
  pointer-events: none;
  will-change: opacity;
}
html[data-active-section="s4"] .morse-stay {
  opacity: 0.55;
  transform: translateY(0);
}
.morse-stay .dot,
.morse-stay .dash {
  background: rgba(62, 245, 224, 0.7);
  border-radius: 999px;
  animation: morse-blink 4s infinite ease-in-out;
}
.morse-stay .dot { width: 6px; height: 6px; }
.morse-stay .dash { width: 16px; height: 6px; }
.morse-stay .letter-gap { width: 8px; height: 6px; }
@keyframes morse-blink {
  0%, 45%, 100% { opacity: 0.35; }
  20% { opacity: 1; }
  60% { opacity: 0.6; }
}
@media (max-width: 767px) {
  .morse-stay {
    bottom: 1rem;
    left: 1rem;
    gap: 4px;
  }
  .morse-stay .dot { width: 5px; height: 5px; }
  .morse-stay .dash { width: 12px; height: 5px; }
  .morse-stay .letter-gap { width: 6px; height: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .morse-stay .dot,
  .morse-stay .dash {
    animation: none;
    opacity: 0.6;
  }
}
html.voyage-sober .morse-stay {
  display: none;
}

/* ── Scene Counter (signature awwards-worthy) ──────────────────
   Format : "01 / 08" fixed top-right
   Slot-machine animation au changement de scène */
.scene-counter {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  opacity: 0.6;
  z-index: var(--z-tapestry, 10);
  pointer-events: none;
  user-select: none;
  transition: opacity 400ms var(--ease);
  mix-blend-mode: screen;
}
.scene-counter__current {
  position: relative;
  display: inline-block;
  width: 1.4em;
  height: 1em;
  overflow: hidden;
  vertical-align: baseline;
}
.scene-counter__num {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 600ms cubic-bezier(0.7, 0, 0.3, 1),
    opacity 400ms ease-out;
}
.scene-counter__num--enter {
  transform: translateY(100%);
  opacity: 0;
}
.scene-counter__num--active {
  transform: translateY(0);
  opacity: 1;
}
.scene-counter__num--exit {
  transform: translateY(-100%);
  opacity: 0;
}
.scene-counter__sep {
  margin: 0 2px;
  color: var(--ivory-400);
}
.scene-counter__total {
  color: var(--ivory-500);
}
html[data-active-section] .scene-counter {
  opacity: 0.85;
}
@media (max-width: 767px) {
  .scene-counter {
    top: 1rem;
    right: 1rem;
    font-size: 0.6875rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene-counter__num {
    transition: none;
  }
}
html.voyage-sober .scene-counter {
  display: none;
}

/* ── Cursor Cinema Timecode (signature awwards #3) ─────────────
   Micro-label sous le curseur qui affiche "MM:SS / MM:SS" en continu.
   Signe que l'utilisateur est DANS un film. */
#cursor-timecode {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: var(--z-cursor, 100000);
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: rgba(244, 228, 193, 0.42);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 300ms ease;
  will-change: transform;
  user-select: none;
  white-space: nowrap;
}
#cursor-timecode.is-visible {
  opacity: 1;
}
@media (hover: none), (pointer: coarse) {
  #cursor-timecode { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #cursor-timecode { display: none; }
}
html.voyage-sober #cursor-timecode {
  display: none;
}

/* ── Tourbillon Vertical Ascendant (signature Aladdin) ──────────
   Canvas fixed plein écran pour particules dorées qui montent à s6.
   Inspiration "A Whole New World" — lanternes qui se lèvent. */
#tourbillon-vertical {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 1200ms var(--ease);
  will-change: opacity;
}
#tourbillon-vertical.is-active {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  #tourbillon-vertical { display: none; }
}
html.voyage-sober #tourbillon-vertical,
html.low-perf #tourbillon-vertical {
  display: none;
}

/* ── Language Switcher FR/EN (header) ──────────────────────────
   Pill minimaliste "FR · EN" dans le header __actions */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 0.75rem;
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--ivory-500);
}
.lang-switcher__btn {
  background: transparent;
  border: 0;
  padding: 4px 6px;
  color: inherit;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: inherit;
  font: inherit;
  transition: color 200ms ease;
  border-radius: 3px;
}
.lang-switcher__btn:hover {
  color: var(--ivory-800);
}
.lang-switcher__btn.is-active {
  color: var(--gold-primary);
}
.lang-switcher__btn:focus-visible {
  outline: 2px solid var(--cyan-glow);
  outline-offset: 2px;
}
.lang-switcher__sep {
  color: var(--ivory-300);
  user-select: none;
}
@media (max-width: 767px) {
  .lang-switcher {
    margin-right: 0.5rem;
    font-size: 0.625rem;
  }
  .lang-switcher__btn {
    padding: 4px 4px;
  }
}
