/* ═══════════════════════════════════════════════════════════════
   JULIE & HENRI — « Le Fil Rouge du Destin » · styles.css
   Ghibli × Your Name. Mobile-first (600 / 768 / 1024).
   Le ciel passe de l’heure dorée à la nuit au fil du scroll (--dusk, --night,
   pilotés par app.js). Le fil rouge relie toutes les sections.
═══════════════════════════════════════════════════════════════ */

:root {
  /* Palette cosmique */
  --nuit: #1b264f;
  --nuit-deep: #0b1030;
  --abysse: #060920;
  --amethyste: #3b224c;
  --lilas: #8e7cc3;
  --kataware: #f28482;
  --or: #f6bd60;
  --or-pale: #fde3b0;
  --cristal: #f7f7f9;
  --fil: #e8334a;
  --fil-glow: rgba(255, 92, 110, .55);

  --text: var(--cristal);
  --text-soft: rgba(247, 247, 249, .78);
  --text-faint: rgba(247, 247, 249, .58);
  --line: rgba(247, 247, 249, .18);

  --glass-bg: rgba(20, 22, 58, .34);
  --glass-border: rgba(255, 255, 255, .16);
  --glass-blur: 16px;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --radius: 22px;
  --gutter: clamp(18px, 5vw, 40px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.45, 0, .2, 1);

  --dusk: 0;
  --night: 0;

  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--nuit-deep);
}
html.is-locked, html.is-locked body { overflow: hidden; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font: 300 17px/1.65 var(--sans);
  color: var(--text);
  background: var(--nuit-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

img, video, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
em { font-style: italic; }
[hidden] { display: none !important; }

[tabindex="-1"]:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 3px;
  border-radius: 6px;
}

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--xs { width: .8em; height: .8em; display: inline-block; vertical-align: -.05em; color: var(--or); }
.amp {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--kataware);
  text-shadow: 0 0 22px rgba(242, 132, 130, .55);
}

/* ═════════════ LE CIEL ═════════════ */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Heure dorée */
  background:
    radial-gradient(120% 60% at 50% 105%, rgba(246, 189, 96, .55), transparent 60%),
    linear-gradient(180deg, #2a2a62 0%, #5b3a72 34%, #c46a8a 62%, #f28482 80%, #f6bd60 100%);
}
.sky__layer { position: absolute; inset: 0; will-change: opacity; }
.sky__layer--dusk {
  opacity: var(--dusk);
  /* Kataware-doki : l’heure entre chien et loup */
  background:
    radial-gradient(90% 40% at 50% 100%, rgba(242, 132, 130, .45), transparent 70%),
    linear-gradient(180deg, #121a44 0%, var(--nuit) 30%, var(--amethyste) 66%, #7a3e6b 100%);
}
.sky__layer--night {
  opacity: var(--night);
  background:
    radial-gradient(70% 45% at 80% 10%, rgba(142, 124, 195, .18), transparent 70%),
    radial-gradient(60% 40% at 15% 85%, rgba(59, 34, 76, .65), transparent 70%),
    linear-gradient(180deg, var(--abysse) 0%, var(--nuit-deep) 45%, #18153d 100%);
}
.sky__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.sky__comets { position: absolute; inset: 0; overflow: hidden; }

/* Comète / étoile filante (créée par app.js) */
.comet {
  position: absolute;
  top: 0; left: 0;
  width: var(--len, 180px);
  height: 2px;
  transform-origin: 100% 50%;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(253, 227, 176, .15) 30%, rgba(255, 255, 255, .95));
  filter: drop-shadow(0 0 6px rgba(253, 227, 176, .9));
  opacity: 0;
  will-change: transform, opacity;
}
.comet::after {
  content: "";
  position: absolute;
  right: -3px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(255, 240, 210, .9), 0 0 24px 8px rgba(246, 189, 96, .45);
}
.comet--big { height: 3px; --len: 340px; }
.comet--big::after { width: 10px; height: 10px; margin-top: -5px; box-shadow: 0 0 16px 6px #fff, 0 0 46px 18px rgba(246, 189, 96, .6), 0 0 80px 30px rgba(242, 132, 130, .35); }

/* ═════════════ LE FIL ROUGE ═════════════ */
.thread {
  position: absolute;
  top: 0; left: 0;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
  transition: opacity .8s ease;
}
.thread path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.thread__glow { stroke: var(--fil-glow); stroke-width: 9; opacity: .32; }
.thread__core { stroke: var(--fil); stroke-width: 2.4; transition: stroke-width 2.4s var(--ease-soft); }
.thread__twist { stroke: #ff8a95; stroke-width: 1; stroke-dasharray: 5 7; opacity: .85; transition: opacity 2s ease; }
.thread__tip {
  fill: #fff;
  filter: drop-shadow(0 0 4px #ff6b7d) drop-shadow(0 0 10px rgba(255, 107, 125, .8));
}
.thread.is-tense .thread__core { stroke-width: 1.1; }
.thread.is-tense .thread__glow { opacity: .14; }
.thread.is-tense .thread__twist { opacity: 0; }

/* ═════════════ BOUTONS ═════════════ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 52px;
  padding: .85em 1.9em;
  border: 0;
  border-radius: 999px;
  font: 500 .82rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform .5s var(--ease-out), box-shadow .5s ease, background .4s ease, color .4s ease;
  isolation: isolate;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 44px; padding: .7em 1.4em; font-size: .72rem; }
.btn--gold {
  color: #2a1a2f;
  background: linear-gradient(120deg, #fde3b0, var(--or) 45%, #f3a46b);
  box-shadow: 0 10px 30px -10px rgba(246, 189, 96, .75), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.btn--gold::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%) -150% 0 / 60% 100% no-repeat;
  z-index: -1;
  animation: sheen 5s ease-in-out infinite 2s;
}
.btn--line {
  color: var(--cristal);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
}
.btn--line:hover { background: rgba(255, 255, 255, .14); }

/* Le bouton d’ouverture : un fil se noue au survol */
.btn--thread {
  color: var(--cristal);
  background: rgba(27, 38, 79, .38);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 18px 50px -14px rgba(232, 51, 74, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding-inline: 2.2em;
}
.btn__knot {
  position: absolute;
  left: 8%; right: 8%; bottom: -12px;
  width: 84%; height: 18px;
  overflow: visible;
}
.btn__knot path {
  fill: none;
  stroke: var(--fil);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 4px rgba(232, 51, 74, .8));
  animation: draw 2.4s var(--ease-soft) 1.4s forwards;
}
.btn--thread:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .8), 0 22px 60px -12px rgba(232, 51, 74, .8); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  padding: .55em 1.1em;
  border-radius: 999px;
  font: 400 .85rem/1 var(--sans);
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--cristal);
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  transition: background .35s ease, box-shadow .35s ease, transform .35s var(--ease-out);
}
.chip .ico { color: var(--or); }
.chip:hover { background: rgba(246, 189, 96, .14); box-shadow: inset 0 0 0 1px rgba(246, 189, 96, .6), 0 0 22px -4px rgba(246, 189, 96, .6); transform: translateY(-1px); }

/* ═════════════ MONOGRAMME ═════════════ */
.mono { overflow: visible; }
.mono__trail {
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.6s var(--ease-soft) .3s forwards;
}
.mono__trail + .mono__trail { animation-delay: .55s; }
.mono__star { fill: #fff; filter: drop-shadow(0 0 3px var(--or)); opacity: 0; animation: starIn .8s ease 2.4s forwards, twinkle 3s ease-in-out 3.2s infinite; transform-box: fill-box; transform-origin: center; }
.mono__star + .mono__star { animation-delay: 2.7s, 3.6s; }

/* ═════════════ 1. INTRO ═════════════ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-t)) var(--gutter) calc(24px + var(--safe-b));
  overflow: hidden;
  text-align: center;
  background: linear-gradient(180deg, #1e2a5a 0%, #4a3570 30%, #b06a8e 58%, #f28482 76%, #fbd2a0 100%);
  transition: opacity 1.6s var(--ease-soft), visibility 0s linear 1.6s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__dawn { position: absolute; inset: 0; pointer-events: none; }
.intro__cloud {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 228, .75), rgba(255, 210, 200, .25) 60%, transparent);
  filter: blur(6px);
  animation: drift 38s linear infinite;
  opacity: .8;
}
.intro__cloud--1 { width: 120vw; height: 30vh; bottom: -6vh; left: -40vw; }
.intro__cloud--2 { width: 90vw; height: 22vh; bottom: 12vh; left: 30vw; opacity: .55; animation-duration: 52s; animation-direction: reverse; }
.intro__cloud--3 { width: 70vw; height: 16vh; top: 16vh; left: -20vw; opacity: .25; animation-duration: 64s; }
/* Rayons sacrés : ils montent de l’horizon, à peine perceptibles */
.intro__ray {
  position: absolute;
  left: 50%; top: calc(100% - 80vmax);
  width: 160vmax; height: 160vmax;
  margin-left: -80vmax;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 240, 210, .5) 0 2.5deg, transparent 2.5deg 11deg);
  -webkit-mask: radial-gradient(closest-side, rgba(0, 0, 0, .9) 0%, transparent 85%);
  mask: radial-gradient(closest-side, rgba(0, 0, 0, .9) 0%, transparent 85%);
  filter: blur(3px);
  animation: spin 160s linear infinite;
  opacity: .16;
}
/* Les premières étoiles, encore visibles dans le bleu de l’aube */
.intro__dawn::before {
  content: "";
  position: absolute;
  inset: 0 0 45%;
  background:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff, transparent),
    radial-gradient(1px 1px at 28% 8%, #fff, transparent),
    radial-gradient(1.6px 1.6px at 44% 26%, #fff6dc, transparent),
    radial-gradient(1px 1px at 63% 12%, #fff, transparent),
    radial-gradient(1.8px 1.8px at 81% 22%, #fff, transparent),
    radial-gradient(1px 1px at 90% 6%, #ffe9e6, transparent),
    radial-gradient(1.2px 1.2px at 7% 40%, #fff, transparent),
    radial-gradient(1px 1px at 55% 44%, #fff, transparent),
    radial-gradient(1.3px 1.3px at 72% 38%, #fff6dc, transparent),
    radial-gradient(1px 1px at 36% 52%, #fff, transparent);
  -webkit-mask: linear-gradient(#000, transparent);
  mask: linear-gradient(#000, transparent);
  animation: twinkle 4.5s ease-in-out infinite;
}
.intro__card { position: relative; display: grid; justify-items: center; gap: 0; max-width: 34rem; }
.intro__card > * { opacity: 0; animation: rise 1.6s var(--ease-out) forwards; }
.mono--intro { width: 74px; height: 64px; margin-bottom: 18px; animation-delay: .1s; }
.intro__kicker { margin: 0 0 12px; font-size: .74rem; letter-spacing: .42em; text-transform: uppercase; color: rgba(255, 255, 255, .85); animation-delay: .3s; }
.intro__names {
  margin: 0;
  font: italic 400 clamp(3.1rem, 15vw, 6.6rem)/1 var(--serif);
  letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(59, 34, 76, .45);
  animation-delay: .5s;
}
.intro__date { margin: 16px 0 44px; font: 400 1.05rem/1.4 var(--serif); letter-spacing: .3em; text-transform: uppercase; animation-delay: .75s; }
.intro__cta { animation-delay: 1s; }
.intro__sound { margin: 26px 0 6px; font-size: .9rem; color: rgba(255, 255, 255, .85); animation-delay: 1.3s; }
.intro__skip {
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  background: none;
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(255, 255, 255, .3);
  animation-delay: 1.5s;
}
.intro__skip:hover { color: #fff; }
.intro.is-playing .intro__card { opacity: 0; transform: scale(.98); transition: opacity .8s ease, transform 1.2s ease; pointer-events: none; }

/* Le film */
.film {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #05060f;
  animation: fadeIn 1s ease forwards;
}
.film__video { width: 100%; height: 100%; object-fit: cover; }
.film__caption {
  /* Sous-titre de film, posé sur l’image puis effacé */
  position: absolute;
  left: 0; right: 0;
  bottom: calc(15vh + var(--safe-b));
  margin: 0;
  padding: 0 var(--gutter);
  font: italic 400 clamp(1.15rem, 5vw, 1.6rem)/1.3 var(--serif);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 0 24px rgba(20, 18, 56, .7);
  opacity: 0;
  pointer-events: none;
  animation: subtitle 4.2s ease 1s forwards;
}
.film__skip {
  position: absolute;
  right: calc(14px + env(safe-area-inset-right, 0px));
  bottom: calc(18px + var(--safe-b));
  min-height: 44px;
  padding: 0 1.1rem;
  border: 0;
  border-radius: 999px;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  background: rgba(0, 0, 0, .28);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Éblouissement entre le film et la page */
.flash {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 55%, #fff 0%, #fff6e0 30%, rgba(246, 189, 96, .6) 60%, rgba(242, 132, 130, 0) 100%);
}
.flash.is-on { animation: flash 2.2s var(--ease-soft) forwards; }

/* ═════════════ BOUTON SON ═════════════ */
.sound {
  position: fixed;
  top: calc(14px + var(--safe-t));
  right: calc(14px + env(safe-area-inset-right, 0px));
  z-index: 120;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(14, 18, 48, .42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 24px -6px rgba(232, 51, 74, .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease-out), opacity .6s ease;
  animation: fadeIn 1.2s ease;
}
.sound .ico { width: 24px; height: 24px; }
.sound .ico--off { display: none; }
.sound[aria-pressed="false"] .ico--on { display: none; }
.sound[aria-pressed="false"] .ico--off { display: block; }
.sound[aria-pressed="true"] .ico--on { color: #ff8a95; }
.sound[aria-pressed="true"] .snd-thread { stroke-dasharray: 26; animation: wave 2.4s linear infinite; }
.sound:hover { transform: scale(1.06); }

/* ═════════════ STRUCTURE ═════════════ */
main { position: relative; z-index: 2; }
.section { position: relative; padding: clamp(84px, 14vw, 150px) var(--gutter); }
.section__head { max-width: 40rem; margin: 0 auto clamp(40px, 7vw, 70px); text-align: center; }
.kicker {
  margin: 0 0 14px;
  font: 400 .72rem/1.5 var(--sans);
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--or-pale);
}
.title {
  margin: 0;
  font: italic 400 clamp(2.2rem, 9vw, 3.9rem)/1.08 var(--serif);
  letter-spacing: -.005em;
  background: linear-gradient(100deg, #fff 0%, #fff 40%, var(--or-pale) 50%, #fff 60%, #fff 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.is-in .title, .title.is-in { animation: shimmer 3.2s var(--ease-soft) .4s both; }

.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  box-shadow: 0 30px 80px -40px rgba(6, 9, 32, .9), inset 0 1px 0 rgba(255, 255, 255, .14);
}

/* Apparition par « éblouissement lumineux contrôlé » */
.reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(10px) brightness(1.9);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition: opacity 1.4s ease, transform 1.8s var(--ease-out), filter 1.9s var(--ease-soft);
}

/* ═════════════ 2. HERO ═════════════ */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; background: #4a3570 center / cover no-repeat; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 18, 56, .62) 0%, rgba(40, 30, 80, .2) 34%, transparent 52%),
    linear-gradient(0deg, rgba(42, 42, 98, .9) 0%, transparent 22%);
}
.hero__text {
  padding: calc(clamp(64px, 11vh, 120px) + var(--safe-t)) var(--gutter) 0;
  text-align: center;
}
.subs { display: grid; gap: 4px; margin: 0 0 clamp(14px, 3vh, 26px); }
.subs__line {
  font: 400 clamp(.98rem, 4vw, 1.25rem)/1.45 var(--sans);
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 0 18px rgba(20, 18, 56, .8);
  opacity: 0;
  filter: blur(6px);
}
.is-open .subs__line { animation: subIn 1.6s var(--ease-out) forwards; animation-delay: calc(var(--d) * 2.1s + .8s); }
.hero__names {
  margin: 0;
  font: italic 400 clamp(2.9rem, 13.4vw, 7.4rem)/1 var(--serif);
  white-space: nowrap;
  text-shadow: 0 4px 40px rgba(20, 18, 56, .55);
  opacity: 0;
}
.is-open .hero__names { animation: glare 2.4s var(--ease-out) 4.6s forwards; }
.hero__date {
  display: flex;
  justify-content: center;
  margin: 16px 0 0;
  opacity: 0;
}
.hero__date span {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font: 400 .8rem/1.4 var(--sans);
  letter-spacing: .34em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(20, 18, 56, .8);
}
.hero__date span::before, .hero__date span::after { content: ""; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, var(--or)); }
.hero__date span::after { transform: scaleX(-1); }
.is-open .hero__date { animation: rise 1.6s var(--ease-out) 5.6s forwards; }
.hero__cue {
  position: absolute;
  left: 50%;
  bottom: calc(26px + var(--safe-b));
  display: grid;
  justify-items: center;
  gap: 6px;
  transform: translateX(-50%);
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, .85);
  opacity: 0;
}
.hero__cue .ico { animation: bob 2.6s ease-in-out infinite; }
.is-open .hero__cue { animation: fadeIn 1.4s ease 6.6s forwards; }

/* ═════════════ 3. INVITATION ═════════════ */
.invitation { padding-top: clamp(70px, 12vw, 130px); }
.invitation__card {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(40px, 9vw, 72px) clamp(24px, 7vw, 64px);
  text-align: center;
}
.invitation__card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(253, 227, 176, .22);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.invitation__parents { display: grid; gap: 10px; margin-bottom: 28px; font: 400 1.05rem/1.4 var(--serif); }
.invitation__parents p { margin: 0; }
.invitation__parents span { display: block; font: 400 .7rem/1.6 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--text-faint); }
.invitation__annonce { margin: 0 auto 18px; max-width: 24rem; font-size: .98rem; color: var(--text-soft); }
.invitation__names { margin: 0 0 28px; font: italic 400 clamp(2.8rem, 12vw, 4.6rem)/1.02 var(--serif); }
.invitation__text { margin: 0 auto 16px; max-width: 30rem; font: 400 clamp(1.08rem, 4.4vw, 1.26rem)/1.7 var(--serif); }
.invitation__text em { color: var(--or-pale); }
.invitation__chute { margin: 30px 0 0; font: italic 400 1.15rem/1.5 var(--serif); color: var(--kataware); }

/* Phrase clé enlacée par le fil */
.knot { position: relative; display: inline-block; white-space: nowrap; color: #fff !important; }
.knot__loop {
  position: absolute;
  left: -8%; top: -30%;
  width: 116%; height: 160%;
  overflow: visible;
  pointer-events: none;
}
.knot__loop path {
  fill: none;
  stroke: var(--fil);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: .9;
  filter: drop-shadow(0 0 3px rgba(232, 51, 74, .7));
}
.is-in .knot__loop path { transition: stroke-dashoffset 2.6s var(--ease-soft); transition-delay: calc(var(--k, 0) * .5s + .9s); stroke-dashoffset: 0; }

/* ═════════════ 4. LE FIL DES INFORMATIONS ═════════════ */
.fil__list {
  position: relative;
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 0 0 38px;
  list-style: none;
}
.node { position: relative; margin-bottom: clamp(34px, 7vw, 60px); }
.node:last-child { margin-bottom: 0; }
.node__dot {
  position: absolute;
  left: -38px; top: 34px;
  width: 16px; height: 16px;
  margin-left: 7px;
  border-radius: 50%;
  background: var(--nuit-deep);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .45);
  transition: background .8s ease, box-shadow .8s ease, transform .8s var(--ease-out);
}
.node__dot::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: var(--fil);
  transform: scale(0);
  transition: transform .8s var(--ease-out);
}
.node.is-lit .node__dot { transform: scale(1.15); box-shadow: 0 0 0 1.5px var(--or), 0 0 18px 4px rgba(246, 189, 96, .55), 0 0 40px 10px rgba(232, 51, 74, .3); }
.node.is-lit .node__dot::after { transform: scale(1); }
.node__card { padding: clamp(22px, 5vw, 36px); }
.node__head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.node__icon { flex: none; width: 58px; height: 58px; padding: 5px; border-radius: 50%; background: radial-gradient(circle, rgba(246, 189, 96, .12), transparent 70%); }
.node__num { margin: 0 0 4px; font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--or-pale); }
.node__title { margin: 0; font: italic 400 clamp(1.45rem, 5.6vw, 2.1rem)/1.1 var(--serif); }
.node__text { margin: 14px 0 0; color: var(--text-soft); }
.node__text--soft { font-size: .92rem; color: var(--text-faint); }
.node em { color: var(--or-pale); }

/* Constellations */
.const { width: 100%; height: 100%; overflow: visible; }
.const__lines polyline {
  fill: none;
  stroke: rgba(253, 227, 176, .7);
  stroke-width: .8;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s var(--ease-soft) .2s;
}
.const__stars circle {
  fill: #fff;
  opacity: .35;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity .6s ease, transform .6s var(--ease-out);
  transition-delay: calc(var(--i) * 80ms);
}
.node.is-lit .const__lines polyline { stroke-dashoffset: 0; }
.node.is-lit .const__stars circle { opacity: 1; filter: drop-shadow(0 0 2.5px var(--or)); animation: twinkle 3.4s ease-in-out infinite; animation-delay: calc(var(--i) * -.6s); }
@media (hover: hover) {
  .node__card:hover .const__stars circle { transform: scale(1.6); }
  .node__card:hover .const__lines polyline { stroke: #fff; }
}

/* Programme */
.program { margin: 0; padding: 0; list-style: none; }
.program__item { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.program__item:first-child { border-top: 0; padding-top: 0; }
.program__time { font: 500 1.05rem/1.4 var(--serif); color: var(--or); font-variant-numeric: lining-nums; }
.program__body { display: grid; gap: 2px; }
.program__body strong { font: italic 400 1.18rem/1.3 var(--serif); }
.program__body span { font-size: .95rem; color: var(--text-soft); }

/* Lieux */
.place { padding: 18px 0; border-top: 1px solid var(--line); }
.place:first-of-type { border-top: 0; padding-top: 0; }
.place__role { margin: 0 0 4px; font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--text-faint); }
.place__name { margin: 0 0 6px; font: italic 400 1.45rem/1.2 var(--serif); }
.place__coord { margin: 0 0 8px; font-size: .86rem; letter-spacing: .04em; color: var(--or-pale); }
.place__note { margin: 0 0 14px; font-size: .95rem; color: var(--text-soft); }
.place__links { display: flex; flex-wrap: wrap; gap: 10px; }

/* Palette */
.palette__title { margin: 0 0 16px; font: italic 400 1.3rem/1.3 var(--serif); color: var(--kataware); }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; text-align: center; font-size: .74rem; letter-spacing: .04em; color: var(--text-soft); }
.palette__orb { display: grid; justify-items: center; gap: 8px; }
.palette__swatch {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55), transparent 40%), var(--c);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 8px 26px -6px var(--c), 0 0 30px -8px var(--c);
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.palette__orb:hover .palette__swatch { transform: translateY(-3px) scale(1.06); box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 40px 0 var(--c); }

/* Listes d’infos */
.facts { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.facts__item { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; }
.facts__item .ico { width: 24px; height: 24px; margin-top: 2px; color: var(--or); }
.facts__item > span { display: grid; gap: 2px; }
.facts__item strong { font: italic 400 1.15rem/1.3 var(--serif); }
.facts__item > span > span { font-size: .95rem; color: var(--text-soft); }

/* Le petit chat noir, assis sur le bord de la carte */
.cat {
  position: absolute;
  right: 22px; top: -50px;
  z-index: 3;
  width: 54px; height: 58px;
  padding: 0;
  border: 0;
  background: none;
}
.cat svg { width: 100%; height: 100%; overflow: visible; }
.cat__tail { transform-origin: 42px 58px; animation: tail 4s ease-in-out infinite; }
.cat__head { transform-origin: 30px 40px; transition: transform .9s var(--ease-out); }
.cat__eyes { transition: transform .9s var(--ease-out); animation: blink 6s infinite; transform-origin: 30px 32px; }
.cat__heart { opacity: 0; transform: translateY(6px) scale(.8); transform-origin: 30px 8px; transition: opacity 1s ease, transform 1.4s var(--ease-out); }
.cat__heart circle { filter: drop-shadow(0 0 2px var(--or)); }
.cat.is-looking .cat__head { transform: rotate(-14deg) translateY(-2px); }
.cat.is-looking .cat__eyes { transform: translate(-1px, -2.5px); }
.cat.is-looking .cat__heart { opacity: 1; transform: translateY(-14px) scale(1.25); }

/* ═════════════ 5. COMPTE À REBOURS ═════════════ */
.countdown { text-align: center; }
.cd {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 2.5vw, 26px);
  max-width: 46rem;
  margin: 0 auto;
}
.cd__unit { display: grid; gap: 8px; justify-items: center; }
.cd__num {
  font: 400 clamp(2.4rem, 12vw, 5.6rem)/1 var(--serif);
  font-variant-numeric: lining-nums tabular-nums;
  color: #fff;
  text-shadow: 0 0 6px rgba(255, 255, 255, .7), 0 0 22px rgba(246, 189, 96, .65), 0 0 60px rgba(242, 132, 130, .45);
  animation: glow 4s ease-in-out infinite;
}
.cd__unit:nth-child(2) .cd__num { animation-delay: -1s; }
.cd__unit:nth-child(3) .cd__num { animation-delay: -2s; }
.cd__unit:nth-child(4) .cd__num { animation-delay: -3s; }
.cd__label { font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; color: var(--text-faint); }
.cd__done { grid-column: 1 / -1; font: italic 400 clamp(1.6rem, 7vw, 2.6rem)/1.2 var(--serif); }
.align {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 24rem;
  height: 30px;
  margin: 34px auto 34px;
  --k: 0;
}
.align__line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); }
.align__star {
  position: absolute;
  top: 50%;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px 3px rgba(246, 189, 96, .8), 0 0 24px 8px rgba(242, 132, 130, .4);
  transition: left 2.4s var(--ease-out);
}
.align__star--a { left: calc(6% + var(--k) * 41%); }
.align__star--b { left: calc(94% - var(--k) * 41%); }
.cd__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ═════════════ 6. LE PLANÉTARIUM ═════════════ */
.planetarium__help { margin: 16px auto 0; max-width: 22rem; font-size: .95rem; color: var(--text-soft); }
.observatory { position: relative; max-width: 620px; margin: 0 auto; }

.progress { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); }
.progress__stars { display: inline-flex; gap: 6px; }
.progress__stars i {
  width: 11px; height: 11px;
  background: rgba(255, 255, 255, .2);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  transition: background .6s ease, transform .6s var(--ease-out);
}
.progress__stars i.is-on { background: var(--or); transform: scale(1.3) rotate(45deg); filter: drop-shadow(0 0 4px var(--or)); }

/* La carte : un planisphère qui tourne au rythme du ciel */
.map {
  position: relative;
  width: min(100%, 92vw, 600px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(253, 227, 176, .3), 0 0 0 10px rgba(14, 18, 48, .55), 0 0 0 11px rgba(253, 227, 176, .18), 0 40px 120px -30px rgba(142, 124, 195, .6), 0 0 90px -20px rgba(246, 189, 96, .25);
}
.map__rot { position: absolute; inset: 0; border-radius: 50%; animation: skyTurn 420s linear infinite; }
.planetarium:not(.is-live) .map__rot, .map.is-paused .map__rot { animation-play-state: paused; }
.map__svg { width: 100%; height: 100%; }
.map__grid circle, .map__grid line { fill: none; stroke: rgba(201, 189, 240, .14); stroke-width: 1; }
.map__ecliptic { fill: none; stroke: rgba(246, 189, 96, .28); stroke-width: 1.4; stroke-dasharray: 3 9; }
.map__ring circle, .map__ring line { fill: none; stroke: rgba(253, 227, 176, .45); stroke-width: 1.2; }
.map__hours text { font: 400 17px var(--sans); fill: rgba(253, 227, 176, .55); letter-spacing: .05em; }
.map__dust circle { fill: #fff; opacity: .55; animation: twinkle 4s ease-in-out infinite; animation-delay: calc(var(--i) * -.45s); transform-box: fill-box; transform-origin: center; }
.map__name { font: italic 400 22px var(--serif); fill: rgba(253, 227, 176, .5); letter-spacing: .03em; transition: fill .8s ease; }
.cst__line { fill: none; stroke: rgba(201, 189, 240, .4); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linejoin: round; transition: stroke .8s ease; }
.cst__star { fill: #fff; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .8)); }
.is-in .cst__line { animation: drawFrom 3s var(--ease-soft) both; }
.cst--chat .cst__line { stroke: rgba(201, 189, 240, .18); stroke-dasharray: .02 .02; }
.cst--chat .cst__star { opacity: .55; }
.map__thread {
  fill: none;
  stroke: var(--fil);
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(232, 51, 74, .9));
}
.map.is-complete .map__thread { transition: stroke-dashoffset 4s var(--ease-soft); stroke-dashoffset: 0; }
.map.is-complete { box-shadow: 0 0 0 1px rgba(253, 227, 176, .5), 0 0 0 10px rgba(14, 18, 48, .55), 0 0 0 11px rgba(232, 51, 74, .4), 0 40px 120px -30px rgba(232, 51, 74, .7), 0 0 120px -10px rgba(246, 189, 96, .45); transition: box-shadow 2s ease; }

/* Reflet de verre sur la carte */
.map__glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(120% 70% at 30% 0%, rgba(255, 255, 255, .1), transparent 45%),
    radial-gradient(closest-side, transparent 80%, rgba(6, 9, 32, .55));
}

/* Étoiles-souvenirs : de vrais boutons, généreux au toucher */
.mstar {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 48px; height: 48px;
  margin: -24px 0 0 -24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  z-index: 2;
}
.mstar__core {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px 2px #fff6dc, 0 0 16px 6px rgba(246, 189, 96, .85), 0 0 34px 12px rgba(242, 132, 130, .4);
  animation: beacon 2.4s ease-in-out infinite;
}
.mstar::before, .mstar::after {
  /* Aigrettes de diffraction, comme sur les photos de télescope */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 40px; height: 1.5px;
  margin: -.75px 0 0 -20px;
  background: linear-gradient(90deg, transparent, #fff6dc, transparent);
  animation: beacon 2.4s ease-in-out infinite;
}
.mstar::after { transform: rotate(90deg); }
.mstar.is-seen .mstar__core { background: var(--fil); box-shadow: 0 0 6px 2px #ffb3bd, 0 0 18px 6px rgba(232, 51, 74, .8); animation: none; }
.mstar.is-seen::before, .mstar.is-seen::after { opacity: .4; animation: none; }
.mstar.is-target .mstar__core { animation: flare .9s ease-out; }
.mstar:hover .mstar__core { transform: scale(1.25); }
.mstar--polaris .mstar__core { width: 10px; height: 10px; margin: -5px 0 0 -5px; box-shadow: 0 0 6px 2px #dff0ff, 0 0 18px 6px rgba(142, 197, 255, .6); animation-duration: 3.4s; }
.mstar--polaris::before, .mstar--polaris::after { width: 54px; margin-left: -27px; background: linear-gradient(90deg, transparent, #dff0ff, transparent); }
.mstar--cat .mstar__core { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #c9bdf0; box-shadow: 0 0 8px 2px rgba(201, 189, 240, .7); animation: twinkle 2s ease-in-out infinite; }
.mstar--cat::before, .mstar--cat::after { display: none; }

/* Faisceau de la lunette */
.beam { position: absolute; inset: -40% -10% -60%; width: 120%; height: 200%; pointer-events: none; overflow: visible; z-index: 3; }
.beam line { stroke: rgba(253, 227, 176, .85); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 6; filter: drop-shadow(0 0 6px rgba(246, 189, 96, .9)); opacity: 0; }
.beam.is-on line { animation: beam 1.3s ease forwards; }

/* La colline : Julie, Henri, la lunette et le chat */
.hill { position: relative; z-index: 4; display: block; width: min(100%, 520px); margin: -31% auto 0; overflow: visible; pointer-events: none; }
.hill__rim { stroke: rgba(246, 189, 96, .6); stroke-width: .9; filter: drop-shadow(0 -1px 3px rgba(246, 189, 96, .5)); }
.hill__grass path { fill: none; stroke: #0b1030; stroke-width: 1.2; stroke-linecap: round; }
.hill__flowers circle { fill: #fde3b0; opacity: .8; animation: twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hill__flowers circle:nth-child(2n) { fill: #f4b6b0; animation-delay: -1.4s; }
/* Les personnages : un léger halo de lune pour les détacher de la nuit */
.henri, .julie, .hcat { filter: drop-shadow(0 0 3px rgba(253, 227, 176, .35)); }
.henri { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe2 4s ease-in-out infinite; }
.julie { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe2 4s ease-in-out -2s infinite; }
.spyglass { transform-box: view-box; transform-origin: 115px 67px; transform: rotate(-38deg); transition: transform 1.1s var(--ease-out); }
.spyglass__lens { filter: drop-shadow(0 0 2px #dff0ff); }
.julie__arm { transform-box: view-box; transform-origin: 205px 80px; transform: rotate(-55deg); transition: transform 1s var(--ease-out) .1s; }
.julie__tail { transform-box: fill-box; transform-origin: 30% 0; animation: ponytail 3s ease-in-out infinite; }
.julie__eyes { transform-box: fill-box; transform-origin: center; animation: blink 4.6s infinite; }
.hcat { transform-box: view-box; transform-origin: 236px 115px; }
.hcat__tail { transform-box: view-box; transform-origin: 243px 111px; animation: tail 2.8s ease-in-out infinite; }
.hcat__head { transform-box: view-box; transform-origin: 236px 104px; animation: catTilt 6s ease-in-out infinite; }
.hcat__eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.4s -1s infinite; }
.hcat.is-jump { animation: catJump .6s var(--ease-out) 2; }
@keyframes breathe2 { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.015); } }
@keyframes ponytail { 0%, 100% { transform: rotate(18deg); } 50% { transform: rotate(26deg); } }
@keyframes catTilt { 0%, 70%, 100% { transform: rotate(0); } 80%, 92% { transform: rotate(-12deg); } }
.hill__heart path { fill: var(--kataware); filter: drop-shadow(0 0 4px rgba(242, 132, 130, .9)); }
.hill__heart { opacity: 0; transform-box: fill-box; transform-origin: center; }
.hill.is-happy .hill__heart { animation: heartUp 2.4s var(--ease-out); }
.hill.is-happy .julie, .hill.is-happy .henri { animation: hop .5s var(--ease-out) 2; transform-box: fill-box; transform-origin: bottom; }

.map__end { margin: 26px auto 0; text-align: center; animation: rise 1.6s var(--ease-out); }
.map__end-text { margin: 0 auto 18px; max-width: 24rem; font: italic 400 clamp(1.3rem, 5.4vw, 1.8rem)/1.3 var(--serif); }

/* La vue à travers la lunette */
.scope { position: fixed; inset: 0; z-index: 125; display: grid; place-items: center; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); overflow-y: auto; }
.scope__backdrop { position: fixed; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(11, 16, 48, .88), rgba(3, 4, 16, .97) 70%); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fadeIn .6s ease; }
.scope__panel { position: relative; width: min(100%, 460px); text-align: center; outline: none; animation: rise .9s var(--ease-out); }
.scope__lens {
  position: relative;
  width: min(80vw, 46vh, 400px);
  aspect-ratio: 1;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  background: #05060f;
  box-shadow: 0 0 0 6px #0b0f2a, 0 0 0 8px rgba(253, 227, 176, .5), 0 0 0 16px #0b0f2a, 0 0 0 17px rgba(253, 227, 176, .2), 0 0 80px 10px rgba(142, 124, 195, .35);
  animation: lensIn 1s var(--ease-out);
}
.scope__img {
  position: absolute;
  inset: -6%;
  background: var(--img) center / cover no-repeat, linear-gradient(180deg, var(--nuit), var(--amethyste) 55%, var(--kataware));
  filter: blur(16px) brightness(1.7) saturate(.6);
  transform: scale(1.5) rotate(-6deg);
}
.scope.is-focused .scope__img { filter: none; transform: scale(1.06); transition: filter 1.7s var(--ease-soft) .25s, transform 2.2s var(--ease-out) .1s; }
.scope__lens::after {
  /* Vignette + aberration chromatique sur le bord */
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 50px 18px rgba(3, 4, 16, .85), inset 0 0 6px 3px rgba(142, 197, 255, .35), inset 0 0 14px 6px rgba(242, 132, 130, .2);
  pointer-events: none;
}
.scope__noise { position: absolute; inset: -50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .1; mix-blend-mode: overlay; animation: grain 1s steps(4) infinite; pointer-events: none; }
.scope__reticle { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scope__reticle circle, .scope__reticle path, .scope__reticle line { fill: none; stroke: rgba(253, 227, 176, .55); stroke-width: .6; }
.scope__ticks { transform-origin: 100px 100px; transition: transform 2s var(--ease-out); }
.scope.is-focused .scope__ticks { transform: rotate(40deg); }
.scope__focus { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(246, 189, 96, .0); }
.scope.is-focused .scope__focus { animation: focusPing 1.4s ease 1.5s; }
.scope__hud { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0 0 10px; font: 400 .7rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--or-pale); font-variant-numeric: tabular-nums; }
.scope__num { margin: 0 0 2px; font: 500 .95rem/1 var(--serif); letter-spacing: .2em; color: var(--or); }
.scope__title { margin: 0 0 8px; font: italic 400 clamp(1.7rem, 7vw, 2.3rem)/1.15 var(--serif); }
.scope__text { margin: 0 auto 10px; max-width: 26rem; color: var(--text-soft); }
.scope__text em { color: var(--or-pale); }
.scope__hint { margin: 0 0 18px; font: italic 400 .82rem/1.4 var(--serif); color: var(--text-faint); }
.scope__nav { display: flex; align-items: center; justify-content: center; gap: 14px; }
.scope__arrow { width: 46px; height: 46px; border: 0; border-radius: 50%; font: 300 1.6rem/1 var(--serif); color: #fff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.scope__arrow:hover { background: rgba(246, 189, 96, .18); }

@keyframes skyTurn { to { transform: rotate(360deg); } }
@keyframes drawFrom { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes beacon { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
@keyframes flare { 0% { transform: scale(1); } 40% { transform: scale(3.2); box-shadow: 0 0 20px 10px #fff, 0 0 60px 30px rgba(246, 189, 96, .9); } 100% { transform: scale(1); } }
@keyframes beam { 0% { opacity: 0; stroke-dashoffset: 60; } 25% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: 0; } }
@keyframes heartUp { 0% { opacity: 0; transform: translateY(10px) scale(.5); } 25% { opacity: 1; transform: translateY(0) scale(1.2); } 100% { opacity: 0; transform: translateY(-30px) scale(1); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes lensIn { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes focusPing { 0% { box-shadow: inset 0 0 0 2px rgba(246, 189, 96, .9); } 100% { box-shadow: inset 0 0 0 30px rgba(246, 189, 96, 0); } }

/* ═════════════ 7. LETTRE AU DESTIN ═════════════ */
.letter, .letter__done {
  max-width: 36rem;
  margin: 0 auto;
  padding: clamp(28px, 7vw, 52px);
  background: rgba(10, 14, 42, .38);
}
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field label, .field legend {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--or-pale);
}
.field input[type="text"], .field textarea, .stepper input {
  width: 100%;
  min-height: 48px;
  padding: 10px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0;
  background: transparent;
  font: 400 1.12rem/1.4 var(--serif);
  color: #fff;
  transition: border-color .4s ease, box-shadow .4s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .42); font-style: italic; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--or); box-shadow: 0 1px 0 var(--or), 0 10px 20px -16px var(--or); }
.field.is-invalid input { border-color: var(--kataware); }

.choice { display: grid; gap: 10px; }
.choice--inline { grid-template-columns: 1fr 1fr; }
.choice__opt { position: relative; display: block; margin: 0 !important; letter-spacing: normal !important; text-transform: none !important; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border-radius: 14px;
  font: 400 1rem/1.35 var(--sans);
  color: var(--cristal);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  cursor: pointer;
  transition: background .4s ease, box-shadow .4s ease;
}
.choice--inline .choice__opt span { justify-content: center; text-align: center; }
.choice__opt .ico { width: 20px; height: 20px; color: var(--or); opacity: .6; transition: opacity .4s ease, transform .6s var(--ease-out); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--or); outline-offset: 2px; }
.choice__opt input:checked + span { background: rgba(246, 189, 96, .14); box-shadow: inset 0 0 0 1px var(--or), 0 0 26px -8px rgba(246, 189, 96, .8); }
.choice__opt input:checked + span .ico { opacity: 1; transform: rotate(72deg) scale(1.15); }
.choice__opt--no input:checked + span { background: rgba(142, 124, 195, .16); box-shadow: inset 0 0 0 1px var(--lilas), 0 0 26px -8px rgba(142, 124, 195, .8); }
.choice__opt--no input:checked + span .ico { color: var(--lilas); transform: none; }

.letter__yes { display: grid; overflow: hidden; transition: opacity .6s ease; }
.letter__yes.is-hidden { display: none; }

.stepper { display: flex; align-items: center; gap: 10px; }
.stepper input { width: 70px; text-align: center; font-family: var(--sans); font-weight: 400; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__btn {
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
  transition: background .3s ease;
}
.stepper__btn:hover { background: rgba(246, 189, 96, .18); }

.letter__error { min-height: 1.4em; margin: -6px 0 14px; font-size: .92rem; color: #ffb3b1; }
.letter__send { width: 100%; }
.letter__send[disabled] { opacity: .6; pointer-events: none; }

.letter__done { text-align: center; }
.letter__done:focus { outline: none; }
.mono--done { width: 84px; height: 74px; margin: 0 auto 16px; }
.letter__done-title { margin: 0 0 10px; font: italic 400 clamp(1.7rem, 7vw, 2.3rem)/1.15 var(--serif); }
.letter__done-text { margin: 0 auto 24px; max-width: 26rem; color: var(--text-soft); }

/* ═════════════ 8. FOOTER ═════════════ */
.footer {
  position: relative;
  z-index: 2;
  padding: 70px var(--gutter) calc(110px + var(--safe-b));
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(59, 34, 76, .55) 55%, rgba(242, 132, 130, .28));
}
.footer__mono {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border: 0;
  background: none;
  font: italic 400 2.6rem/1 var(--serif);
}
.mono--footer { width: 58px; height: 50px; }
.footer__mono:hover .mono__star { animation: twinkle .6s ease-in-out 2; }
.footer__date { margin: 10px 0 4px; font: 400 .95rem/1.4 var(--serif); letter-spacing: .32em; }
.footer__places { margin: 0 0 36px; font-size: .88rem; color: var(--text-faint); }
.promo { display: grid; justify-items: center; gap: 12px; margin: 0 auto 26px; }
.promo__q { margin: 0; font: italic 400 1.1rem/1.4 var(--serif); }
.footer__credit { margin: 0; font-size: .82rem; color: var(--text-faint); }
.footer__credit a { color: var(--or-pale); text-underline-offset: 3px; }

/* Bouton « Répondre » collant */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-b));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font: 500 .76rem/1 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: #2a1a2f;
  background: linear-gradient(120deg, #fde3b0, var(--or) 50%, #f3a46b);
  box-shadow: 0 12px 30px -10px rgba(246, 189, 96, .8);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .7s var(--ease-out), opacity .5s ease;
}
.sticky-cta .ico { width: 16px; height: 16px; }
.sticky-cta.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ═════════════ EFFETS ═════════════ */
.fx { position: fixed; inset: 0; z-index: 110; pointer-events: none; overflow: hidden; }
.spark {
  position: absolute;
  top: 0; left: 0;
  width: var(--s, 8px); height: var(--s, 8px);
  background: var(--c, var(--or));
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(0 0 4px rgba(246, 189, 96, .9));
  will-change: transform, opacity;
}
.letter__done.is-yes .letter__done-title { animation: glare 2.4s var(--ease-out) both; }
.letter__done.is-yes .mono--done { filter: drop-shadow(0 0 14px rgba(246, 189, 96, .7)); }

.toast {
  position: fixed;
  left: 50%; top: calc(18px + var(--safe-t));
  z-index: 130;
  max-width: min(90vw, 26rem);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: .92rem;
  text-align: center;
  background: rgba(10, 14, 42, .7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translate(-50%, -160%);
  opacity: 0;
  transition: transform .6s var(--ease-out), opacity .4s ease;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ═════════════ ANIMATIONS ═════════════ */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes starIn { from { opacity: 0; transform: scale(0) rotate(-90deg); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.7); } }
@keyframes drift { from { transform: translateX(-12vw); } to { transform: translateX(12vw); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheen { 0%, 70% { background-position: -150% 0; } 100% { background-position: 250% 0; } }
@keyframes flash { 0% { opacity: 0; } 28% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wave { to { stroke-dashoffset: -52; } }
@keyframes subtitle { 0% { opacity: 0; filter: blur(6px); } 25%, 70% { opacity: 1; filter: none; } 100% { opacity: 0; } }
@keyframes subIn { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes glare {
  0% { opacity: 0; filter: blur(12px) brightness(2.4); letter-spacing: .06em; }
  45% { opacity: 1; filter: blur(2px) brightness(1.6); }
  100% { opacity: 1; filter: none; letter-spacing: 0; }
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes glow { 0%, 100% { opacity: .92; } 50% { opacity: 1; text-shadow: 0 0 8px rgba(255, 255, 255, .9), 0 0 30px rgba(246, 189, 96, .85), 0 0 80px rgba(242, 132, 130, .6); } }
@keyframes leak { from { transform: translate(-4%, -2%) rotate(0); opacity: .35; } to { transform: translate(4%, 3%) rotate(6deg); opacity: .7; } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-6%, 4%); } 50% { transform: translate(5%, -5%); } 75% { transform: translate(-3%, -7%); } 100% { transform: translate(0, 0); } }
@keyframes tail { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-12deg); } }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }

/* ═════════════ RESPONSIVE ═════════════ */
@media (min-width: 600px) {
  .palette { gap: 18px; }
  .program__item { grid-template-columns: 90px 1fr; }
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

/* Desktop : la timeline au centre, cartes en quinconce */
@media (min-width: 1024px) {
  .fil__list { padding: 0; }
  .node { display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; margin-bottom: 30px; }
  .node__dot { left: 50%; top: 40px; margin-left: -8px; }
  .node:nth-child(odd) .node__card { grid-column: 1; }
  .node:nth-child(even) .node__card { grid-column: 2; margin-top: 90px; }
  .node:nth-child(even) .node__dot { top: 130px; }
  .node + .node { margin-top: -90px; }
  .cat { right: auto; left: 22px; }
  .node:nth-child(even) .cat { left: calc(50% + 70px); }
}

/* Petits écrans */
@media (max-width: 380px) {
  .palette__swatch { width: 42px; height: 42px; }
  .program__item { grid-template-columns: 64px 1fr; gap: 10px; }
}

/* Mouvement réduit : tout est là, tout de suite, sans voyage */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .subs__line, .hero__names, .hero__date, .hero__cue, .intro__card > * { opacity: 1 !important; filter: none !important; }
}

/* Le fil passe derrière les titres : il s’y fond en une lueur douce */
.section__head, .cd { position: relative; isolation: isolate; }
.section__head::before, .cd::before {
  content: "";
  position: absolute;
  inset: -18px -6px;
  z-index: -1;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent);
  mask: radial-gradient(closest-side, #000 55%, transparent);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   MAGIE & CLINS D’ŒIL KAWAII
═══════════════════════════════════════════════════════════════ */

/* Hero : reflet de soleil (lens flare anamorphique) qui respire */
.hero__flare {
  position: absolute;
  left: -20%; right: -20%;
  top: 58%;
  height: 120px;
  margin-top: -60px;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 236, 200, .55), rgba(255, 190, 140, .18) 45%, transparent 70%) 72% 50% / 260px 260px no-repeat,
    linear-gradient(90deg, transparent 5%, rgba(255, 214, 170, .28) 50%, transparent 95%) 0 50% / 100% 2px no-repeat;
  mix-blend-mode: screen;
  opacity: 0;
}
.is-open .hero__flare { animation: fadeIn 3s ease 1s forwards, breathe 7s ease-in-out 4s infinite; }
@media (max-aspect-ratio: 4/5) { .hero__flare { background-position: 40% 50%, 0 50%; top: 52%; } }

/* Nuages kawaii de l’invitation */
.kumo {
  position: absolute;
  z-index: 3;
  width: 116px; height: 44px;
  padding: 0;
  border: 0;
  border-radius: 40px;
  background: linear-gradient(180deg, #fff 30%, #ffe3dc 75%, #fbc8b6);
  box-shadow: 0 10px 30px -8px rgba(242, 132, 130, .55), inset 0 -6px 10px rgba(242, 132, 130, .2);
  animation: float 6s ease-in-out infinite;
}
.kumo::before, .kumo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
  background: linear-gradient(180deg, #fff 45%, #ffece6);
}
.kumo::before { width: 54px; height: 54px; left: 16px; top: -26px; }
.kumo::after { width: 40px; height: 40px; left: 56px; top: -16px; }
.kumo--shy { top: clamp(44px, 9vw, 86px); right: max(10px, calc(50% - 21rem)); cursor: pointer; }
.kumo--back { z-index: 0; top: 46%; left: max(-30px, calc(50% - 26rem)); transform: scale(1.4); opacity: .55; animation-duration: 9s; animation-delay: -3s; filter: blur(1px); }
.kumo__face { position: absolute; inset: 0; z-index: 1; }
.kumo__eye {
  position: absolute; top: 14px;
  width: 6px; height: 7px;
  border-radius: 50%;
  background: #3b224c;
  transition: all .4s var(--ease-out);
  animation: blink 5s infinite;
}
.kumo__eye:first-child { left: 40px; }
.kumo__eye:nth-child(2) { left: 66px; }
.kumo__blush { position: absolute; top: 22px; width: 11px; height: 6px; border-radius: 50%; background: #f28482; opacity: .45; transition: opacity .5s ease, transform .5s ease; }
.kumo__blush:nth-child(3) { left: 30px; }
.kumo__blush:nth-child(4) { left: 72px; }
.kumo__mouth { position: absolute; left: 54px; top: 22px; width: 7px; height: 4px; border: 2px solid #3b224c; border-top: 0; border-radius: 0 0 8px 8px; }
.kumo.is-shy .kumo__blush { opacity: 1; transform: scale(1.4); }
.kumo.is-shy .kumo__eye { height: 3px; border-radius: 3px 3px 0 0; background: none; border: 2px solid #3b224c; border-bottom: 0; animation: none; }
.kumo.is-shy { animation: wiggle .6s ease, float 6s ease-in-out .6s infinite; }

/* Petits cœurs qui s’envolent (nuage, chat) */
.puff {
  position: fixed;
  z-index: 112;
  font-size: 18px;
  color: var(--kataware);
  text-shadow: 0 0 10px rgba(242, 132, 130, .8);
  pointer-events: none;
}

/* Nuit : la grande comète qui se divise */
.nightdeco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.tiamat {
  position: absolute;
  top: 6%; left: 0;
  width: min(560px, 120vw);
  opacity: 0;
  transform: translate(-60%, 0) rotate(14deg);
  filter: drop-shadow(0 0 12px rgba(223, 240, 255, .5));
}
.countdown.is-live .tiamat { animation: tiamat 46s linear infinite; }
.tiamat__frag { animation: twinkle 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* La lune endormie (kawaii) */
.moon {
  position: absolute;
  top: clamp(4px, 4vw - 10px, 50px);
  right: max(10px, calc(50% - 26rem));
  width: 74px; height: 74px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  filter: drop-shadow(0 0 18px rgba(253, 227, 176, .55)) drop-shadow(0 0 50px rgba(246, 189, 96, .25));
  animation: float 7s ease-in-out infinite;
}
.moon svg { width: 100%; height: 100%; overflow: visible; }
.moon__awake { opacity: 0; transition: opacity .4s ease; }
.moon__asleep { transition: opacity .4s ease; }
.moon.is-awake .moon__awake { opacity: 1; }
.moon.is-awake .moon__asleep, .moon.is-awake .moon__z { opacity: 0; }
.moon.is-awake { animation: wiggle .7s ease, float 7s ease-in-out .7s infinite; }
.moon__z {
  position: absolute;
  right: -10px; top: -14px;
  font: italic 500 .9rem/1 var(--serif);
  color: var(--or-pale);
  transition: opacity .4s ease;
}
.moon__z, .moon__z span { display: inline-block; animation: zzz 3s ease-in-out infinite; }
.moon__z span { margin-left: 2px; font-size: .8em; animation-delay: .4s; }
.moon__z span + span { animation-delay: .8s; }

/* Véga & Altaïr */
.align__name {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  font: italic 400 .78rem/1 var(--serif);
  letter-spacing: .06em;
  white-space: nowrap;
  color: var(--text-faint);
}
.cd__legend { max-width: 24rem; margin: -6px auto 30px; font: italic 400 .98rem/1.5 var(--serif); color: var(--text-soft); }

/* Lanternes célestes derrière la lettre */
.lanterns { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lantern {
  position: absolute;
  left: var(--x); bottom: -60px;
  width: 24px; height: 32px;
  border-radius: 8px 8px 12px 12px;
  background: radial-gradient(circle at 50% 70%, #fff3c4, #f6bd60 45%, #e0703f 100%);
  box-shadow: 0 0 14px 4px rgba(246, 189, 96, .55), 0 0 44px 14px rgba(242, 132, 130, .25);
  transform: scale(var(--s));
  opacity: 0;
  animation: lantern var(--t) linear var(--d) infinite;
  animation-play-state: paused;
}
.lantern::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -3px; height: 3px; border-radius: 2px; background: #ffb267; filter: blur(1px); }
.rsvp.is-live .lantern { animation-play-state: running; }

/* Tanabata : bambou et papiers de vœux */
.tanabata {
  position: absolute;
  top: -40px;
  right: max(4px, calc(50% - 24rem));
  width: 90px; height: 150px;
  pointer-events: none;
  transform-origin: 90% 0;
  animation: sway 6s ease-in-out infinite;
}
.tanabata__bamboo { width: 100%; height: 100%; }
.tanzaku {
  position: absolute;
  width: 18px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  font: 400 11px/1 var(--serif);
  color: rgba(59, 34, 76, .7);
  pointer-events: auto;
  transform-origin: 50% 0;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .5);
  transition: transform .4s var(--ease-out);
  animation: tanzaku 3.6s ease-in-out infinite;
}
.tanzaku::before { content: ""; position: absolute; left: 50%; top: -9px; width: 1px; height: 9px; background: rgba(255, 255, 255, .5); }
.tanzaku span { writing-mode: vertical-rl; }
.tanzaku--1 { left: 50px; top: 36px; background: #f4b6b0; }
.tanzaku--2 { left: 26px; top: 86px; background: #fde3b0; animation-delay: -1.2s; }
.tanzaku--3 { left: 60px; top: 70px; background: #c9bdf0; animation-delay: -2.3s; }
.tanzaku:hover, .tanzaku.is-read { transform: rotate(-8deg) scale(1.08); }

/* Le sceau (hanko) */
.hanko {
  position: absolute;
  top: 24px;
  left: max(14px, calc(50% - 23rem));
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 2px solid rgba(232, 51, 74, .85);
  border-radius: 10px;
  font: 600 1.7rem/1 "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: rgba(232, 51, 74, .9);
  background: rgba(232, 51, 74, .06);
  transform: rotate(-6deg);
  box-shadow: inset 0 0 0 3px rgba(232, 51, 74, .15);
  transition: transform .3s var(--ease-out);
}
.hanko.is-stamped { animation: stamp .6s var(--ease-out); }
.stamp-mark {
  position: fixed;
  z-index: 112;
  display: grid;
  place-items: center;
  width: 92px; height: 92px;
  border: 3px solid rgba(232, 51, 74, .85);
  border-radius: 14px;
  font: 600 3rem/1 "Hiragino Mincho ProN", "Yu Mincho", serif;
  color: rgba(232, 51, 74, .9);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Grues en origami */
.crane { position: fixed; top: 0; left: 0; z-index: 111; width: 46px; height: 32px; pointer-events: none; will-change: transform; }
.crane svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 4px 6px rgba(6, 9, 32, .35)); }
.crane__wing { transform-origin: 22px 15px; animation: flap .5s ease-in-out infinite alternate; }

/* Le chat saute de joie */
.cat.is-jump svg { animation: catJump .7s var(--ease-out) 2; }

@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-7deg); } 60% { transform: rotate(6deg); } }
@keyframes tiamat {
  0% { opacity: 0; transform: translate(-70%, -10%) rotate(14deg); }
  8% { opacity: .95; }
  85% { opacity: .95; }
  100% { opacity: 0; transform: translate(110vw, 60%) rotate(14deg); }
}
@keyframes zzz { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-6px); opacity: 1; } }
@keyframes lantern {
  0% { opacity: 0; transform: translate(0, 0) scale(var(--s)); }
  10% { opacity: .95; }
  50% { transform: translate(18px, -95vh) scale(var(--s)); }
  85% { opacity: .8; }
  100% { opacity: 0; transform: translate(-10px, -190vh) scale(calc(var(--s) * .6)); }
}
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes tanzaku { 0%, 100% { rotate: -6deg; } 50% { rotate: 7deg; } }
@keyframes stamp { 0% { transform: rotate(-6deg) scale(1); } 40% { transform: rotate(-6deg) scale(.82); } 100% { transform: rotate(-6deg) scale(1); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.55); } }
@keyframes catJump { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-16px) rotate(-6deg); } }

@media (prefers-reduced-motion: reduce) {
  .lantern, .tiamat, .crane { display: none; }
}

/* Hero : le compte à rebours, discret, au-dessus de « Suivre le fil » */
.hero__cd {
  position: absolute;
  left: 50%;
  bottom: calc(84px + var(--safe-b));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  font: 400 .78rem/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  background: rgba(14, 18, 48, .32);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
  opacity: 0;
}
.hero__cd b { font: 500 .95rem/1 var(--serif); letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; color: #fff; }
.hero__cd i { font-style: normal; font-size: .6rem; color: var(--or); }
.hero__cd-t { letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.is-open .hero__cd { animation: fadeIn 1.6s ease 6.2s forwards; }
@media (prefers-reduced-motion: reduce) { .hero__cd { opacity: 1; } .map__rot { animation: none; } }
