/* ═══════════════════════════════════════════════════════════════
   POUR MADINATOU — feuille de style
   Une lettre d'amour, écrite en CSS.
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --night:      #140310;
  --night-2:    #2a0a20;
  --plum:       #3d0f2c;
  --rose:       #ff7fae;
  --rose-soft:  #ffb3cd;
  --rose-deep:  #e0316f;
  --gold:       #f6d9a0;
  --gold-deep:  #d9a84f;
  --cream:      #fff4f7;
  --ink:        rgba(255, 244, 247, .86);
  --ink-soft:   rgba(255, 244, 247, .58);

  --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --script: 'Great Vibes', 'Brush Script MT', cursive;
  --sans:   'Josefin Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.05rem, .75rem + .9vw, 1.35rem);
  line-height: 1.85;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; height: 100vh; }

::selection { background: var(--rose-deep); color: #fff; }

/* Barre de défilement tendre */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #1a0512; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--rose), var(--rose-deep));
  border-radius: 99px;
}

/* ═══════════ CIEL & ATMOSPHÈRE ═══════════ */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

.sky__gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 0%,   #4a1030 0%, transparent 58%),
    radial-gradient(90% 70%  at 10% 100%, #5c1339 0%, transparent 60%),
    radial-gradient(90% 70%  at 90% 85%,  #2d0b3f 0%, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 45%, #1b0414 100%);
  background-size: 200% 200%;
  animation: breathe 22s var(--ease) infinite alternate;
}

@keyframes breathe {
  0%   { background-position: 50% 0%,   10% 100%, 90% 85%, 0 0; filter: saturate(1); }
  100% { background-position: 55% 12%,  18% 92%,  82% 78%, 0 0; filter: saturate(1.18); }
}

.sky__aurora {
  position: absolute; inset: -25%;
  background:
    conic-gradient(from 0deg at 50% 50%,
      transparent 0deg, rgba(255,127,174,.10) 60deg,
      transparent 120deg, rgba(216,150,255,.09) 200deg,
      transparent 260deg, rgba(255,196,120,.07) 320deg, transparent 360deg);
  filter: blur(70px);
  animation: swirl 46s linear infinite;
  opacity: .85;
}
@keyframes swirl { to { transform: rotate(360deg); } }

#stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }

.sky__glow {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%;
  filter: blur(90px); opacity: .34; mix-blend-mode: screen;
}
.sky__glow--left  { left: -16vmax; top: 8vh;  background: radial-gradient(circle, var(--rose-deep), transparent 65%); animation: drift 28s ease-in-out infinite alternate; }
.sky__glow--right { right: -18vmax; bottom: 4vh; background: radial-gradient(circle, #8a4cff, transparent 65%);      animation: drift 34s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(6vw, -5vh, 0) scale(1.18); }
}

.vignette {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, transparent 52%, rgba(8,0,6,.72) 100%);
}

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

/* ═══════════ PÉTALES ═══════════ */
.petals, .floating-hearts, .burst-layer {
  position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden;
}

.petal {
  position: absolute; top: -8vh;
  width: 16px; height: 16px;
  background: linear-gradient(140deg, var(--rose-soft), var(--rose-deep));
  border-radius: 82% 18% 74% 26% / 66% 62% 38% 34%;
  opacity: 0;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,.28));
  animation: petal-fall linear infinite, petal-spin linear infinite;
}
@keyframes petal-fall {
  0%   { transform: translate3d(0, -10vh, 0); opacity: 0; }
  8%   { opacity: .9; }
  50%  { transform: translate3d(6vw, 50vh, 0); }
  92%  { opacity: .7; }
  100% { transform: translate3d(-4vw, 110vh, 0); opacity: 0; }
}
@keyframes petal-spin {
  0%   { rotate: 0deg; }
  100% { rotate: 540deg; }
}

/* ═══════════ CŒURS FLOTTANTS ═══════════ */
.f-heart {
  position: absolute; bottom: -6vh;
  font-size: 18px; color: var(--rose);
  opacity: 0;
  text-shadow: 0 0 14px rgba(255,127,174,.8);
  animation: heart-rise linear infinite;
}
@keyframes heart-rise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .85; }
  50%  { transform: translate3d(3vw, -50vh, 0) scale(1.05); }
  85%  { opacity: .5; }
  100% { transform: translate3d(-3vw, -108vh, 0) scale(.7); opacity: 0; }
}

/* ═══════════ 1. LE SEUIL ═══════════ */
.gate {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  text-align: center; padding: 6vh 5vw;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), visibility 1.1s;
}
.gate.is-open { opacity: 0; transform: scale(1.22); visibility: hidden; pointer-events: none; }

.gate__inner { position: relative; z-index: 2; max-width: 40rem; }

.gate__whisper {
  font-family: var(--sans); font-weight: 200;
  letter-spacing: .5em; text-transform: uppercase;
  font-size: .68rem; color: var(--ink-soft);
  margin: 0 0 1.6rem;
  animation: fade-up 1.4s var(--ease-out) both .2s, flicker 5s ease-in-out infinite 2s;
}
@keyframes flicker { 0%,100%{opacity:.62} 45%{opacity:.28} 55%{opacity:.7} }

.gate__name {
  font-family: var(--script);
  font-size: clamp(3.2rem, 13vw, 7rem);
  font-weight: 400; line-height: 1;
  margin: 0 0 1.4rem;
  filter: drop-shadow(0 0 26px rgba(255,127,174,.42));
}
@keyframes shine { to { background-position: 280% center; } }

/* Le dégradé est porté par chaque lettre : `background-clip: text` ne peint
   pas le texte des enfants transformés, et les lettres flottent. */
.gate__name .glyph {
  display: inline-block;
  background: linear-gradient(100deg, var(--gold) 0%, var(--rose-soft) 30%, #fff 45%, var(--rose) 62%, var(--gold) 100%);
  background-size: 280% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation:
    letter-in 1s var(--ease-out) both,
    float-letter 4.5s ease-in-out infinite,
    shine 7s linear infinite;
}
.gate__name .glyph:nth-child(1){ animation-delay:.30s, 1.6s, 0s }
.gate__name .glyph:nth-child(2){ animation-delay:.40s, 1.7s, -.4s }
.gate__name .glyph:nth-child(3){ animation-delay:.50s, 1.8s, -.8s }
.gate__name .glyph:nth-child(4){ animation-delay:.60s, 1.9s, -1.2s }
.gate__name .glyph:nth-child(5){ animation-delay:.70s, 2.0s, -1.6s }
.gate__name .glyph:nth-child(6){ animation-delay:.80s, 2.1s, -2s }
.gate__name .glyph:nth-child(7){ animation-delay:.90s, 2.2s, -2.4s }
.gate__name .glyph:nth-child(8){ animation-delay:1.0s, 2.3s, -2.8s }
.gate__name .glyph:nth-child(9){ animation-delay:1.1s, 2.4s, -3.2s }
@keyframes letter-in {
  from { opacity: 0; transform: translateY(38px) rotate(-8deg) scale(.7); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes float-letter {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-7px); }
}

.gate__sub {
  font-style: italic; color: var(--ink-soft);
  font-size: clamp(1rem, .8rem + .5vw, 1.2rem);
  margin: 0 0 3rem;
  animation: fade-up 1.4s var(--ease-out) both 1.5s;
}

.gate__hint {
  font-family: var(--sans); font-weight: 200;
  font-size: .78rem; letter-spacing: .18em; text-wrap: balance;
  color: rgba(255,244,247,.4); margin-top: 2.4rem;
  animation: fade-up 1.4s var(--ease-out) both 2.6s, pulse-soft 3.4s ease-in-out infinite 3s;
}
@keyframes pulse-soft { 0%,100%{opacity:.45} 50%{opacity:.9} }

/* Enveloppe */
.envelope {
  position: relative; display: inline-grid; justify-items: center; gap: 1.4rem;
  background: none; border: 0; cursor: pointer; padding: 1rem;
  overflow: visible;
  animation: fade-up 1.4s var(--ease-out) both 2s;
  -webkit-tap-highlight-color: transparent;
}
.envelope__glow {
  position: absolute; top: 34%; left: 50%; translate: -50% -50%;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,127,174,.45), transparent 62%);
  filter: blur(22px);
  animation: halo 3s ease-in-out infinite;
}
@keyframes halo {
  0%,100% { transform: scale(.85); opacity: .55; }
  50%     { transform: scale(1.18); opacity: 1; }
}

/* La scène ne bouge jamais : elle porte les ombres portées.
   (Un élément animé en `transform` est composité dans une couche dont les
   bornes ignorent sa `box-shadow` — l'ombre serait coupée au carré.) */
.envelope__stage {
  position: relative; display: block;
  width: clamp(170px, 46vw, 220px); height: clamp(115px, 31vw, 148px);
  border-radius: 8px;
  box-shadow:
    0 22px 45px rgba(0,0,0,.5),
    0 0 44px rgba(255,127,174,.5);
}
.envelope__body {
  position: absolute; inset: 0; display: block;
  background: linear-gradient(160deg, #fff0f4, #ffd7e4 55%, #f7bfd2);
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.5) inset;
  animation: env-beat 2.2s ease-in-out infinite;
  transform-style: preserve-3d;
}
@keyframes env-beat {
  0%,100%   { transform: scale(1) rotate(-1deg); }
  14%       { transform: scale(1.07) rotate(-1deg); }
  28%       { transform: scale(1) rotate(-1deg); }
  42%       { transform: scale(1.05) rotate(-1deg); }
}

.envelope__flap {
  position: absolute; inset: 0 0 auto 0; height: 62%;
  background: linear-gradient(170deg, #ffe3ec, #f3aec6);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  border-radius: 8px 8px 0 0;
  transition: transform .75s var(--ease);
  z-index: 3;
}
.envelope__paper {
  position: absolute; inset: auto 0 8% 0; text-align: center;
  font-size: 2.6rem; opacity: 0; transition: all .6s var(--ease) .25s; z-index: 2;
}
.envelope__seal {
  position: absolute; left: 50%; top: 54%; translate: -50% -50%;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; z-index: 4;
  background: radial-gradient(circle at 34% 30%, #ff6f9f, #a4113f 70%);
  color: #ffe6ee; font-family: var(--script); font-size: 1.6rem; line-height: 1;
  box-shadow: 0 6px 16px rgba(0,0,0,.45), inset 0 2px 6px rgba(255,255,255,.4);
  transition: transform .5s var(--ease), opacity .5s;
}

.envelope:hover  .envelope__body,
.envelope:focus-visible .envelope__body { animation-play-state: paused; transform: scale(1.09) rotate(0deg); }
.envelope:hover  .envelope__flap { transform: rotateX(48deg); }
.envelope:hover  .envelope__seal { transform: translate(-50%,-50%) scale(1.12) rotate(9deg); }

.envelope.is-opening .envelope__flap { transform: rotateX(178deg); }
.envelope.is-opening .envelope__seal { transform: translate(-50%,-50%) scale(.2) rotate(180deg); opacity: 0; }
.envelope.is-opening .envelope__paper { opacity: 1; transform: translateY(-42px) scale(1.5); }
.envelope.is-opening .envelope__body { animation: none; transform: scale(1.05); }

.envelope__label {
  font-family: var(--sans); font-weight: 300;
  letter-spacing: .4em; text-transform: uppercase; font-size: .74rem;
  color: var(--gold);
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(246,217,160,.35);
  transition: color .4s, letter-spacing .4s;
}
.envelope:hover .envelope__label { color: #fff; letter-spacing: .55em; }

/* Rideaux de théâtre */
.gate__curtain {
  position: absolute; top: 0; bottom: 0; width: 52%;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 6px, transparent 6px 26px),
    linear-gradient(90deg, #48072a, #7a0f3f 45%, #3d0522);
  box-shadow: 0 0 70px rgba(0,0,0,.7);
  transition: transform 1.5s var(--ease-out);
  z-index: 1;
}
.gate__curtain--l { left: 0;  transform: translateX(0); }
.gate__curtain--r { right: 0; transform: translateX(0); }
.gate.is-ready .gate__curtain--l { transform: translateX(-101%); }
.gate.is-ready .gate__curtain--r { transform: translateX(101%); }

/* ═══════════ 2. LA LETTRE ═══════════ */
.letter {
  position: relative; z-index: 5;
  max-width: 46rem; margin: 0 auto; padding: 0 6vw 4rem;
}
.letter[hidden] { display: none; }

/* — Héros — */
.hero {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: .4rem;
}
.hero__over {
  font-family: var(--sans); font-weight: 200;
  letter-spacing: .34em; text-transform: uppercase;
  font-size: .66rem; color: var(--gold-deep); margin: 0 0 1.2rem;
  max-width: 100%; text-wrap: balance;
}
.hero__title { margin: 0; font-weight: 400; }
.hero__line {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); color: var(--ink-soft);
}
.hero__signature {
  display: block; font-family: var(--script);
  font-size: clamp(3.6rem, 15vw, 8rem); line-height: 1.1;
  background: linear-gradient(105deg, #fff 0%, var(--rose-soft) 25%, var(--gold) 50%, var(--rose) 75%, #fff 100%);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 30px rgba(255,127,174,.45));
  animation: shine 8s linear infinite, sign-in 2.4s var(--ease-out) both .5s;
}
@keyframes sign-in {
  from { opacity: 0; transform: translateY(30px) scale(.9) rotate(-3deg); filter: blur(14px); }
  to   { opacity: 1; transform: none; }
}
.hero__tag {
  font-family: var(--sans); font-weight: 200;
  letter-spacing: .26em; font-size: .76rem; text-transform: uppercase;
  color: var(--ink-soft); margin: 1.6rem 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.1rem;
}
.hero__tag span { position: relative; }
.hero__tag span + span::before {
  content: '•'; position: absolute; left: -.75rem;
  color: var(--rose); opacity: .6;
}

/* Électrocardiogramme */
.heartbeat { position: relative; width: min(300px, 74vw); margin: 3rem 0 1rem; }
.heartbeat__svg { width: 100%; height: 60px; overflow: visible; }
.heartbeat__line {
  fill: none; stroke: var(--rose); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 8px var(--rose));
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: trace 2.6s linear infinite;
}
@keyframes trace { to { stroke-dashoffset: -420; } }
.heartbeat__heart {
  position: absolute; right: -6px; top: 50%; translate: 0 -50%;
  color: var(--rose); font-size: 1.5rem;
  text-shadow: 0 0 16px var(--rose);
  animation: beat 1.3s ease-in-out infinite;
}
@keyframes beat {
  0%,100% { transform: scale(1); }
  14%     { transform: scale(1.32); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.22); }
}

.scroll-cue {
  margin-top: 2.6rem; display: grid; gap: .7rem; justify-items: center;
  font-family: var(--sans); font-weight: 200;
  font-size: .66rem; letter-spacing: .34em; text-transform: uppercase;
  color: rgba(255,244,247,.45);
}
.scroll-cue__arrow {
  width: 1px; height: 46px;
  background: linear-gradient(var(--rose), transparent);
  animation: cue 2.2s ease-in-out infinite;
}
@keyframes cue {
  0%,100% { transform: translateY(0) scaleY(1); opacity: .3; }
  50%     { transform: translateY(10px) scaleY(1.25); opacity: 1; }
}

/* — Chapitres — */
.chapter { padding: 14vh 0; }
.chapter--center { text-align: center; }

.chapter__num {
  font-family: var(--sans); font-weight: 300;
  letter-spacing: .5em; text-transform: uppercase;
  font-size: .66rem; color: var(--gold-deep); margin: 0 0 .5rem;
}
.chapter__title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1.15;
  margin: 0 0 2.4rem; color: var(--cream);
  text-shadow: 0 4px 26px rgba(255,127,174,.35);
}
.chapter__lead { font-style: italic; color: var(--ink-soft); margin-bottom: 2.4rem; }
.chapter__body p { margin: 0 0 1.7rem; }
.chapter__body p.big {
  font-family: var(--script);
  font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.4;
  text-align: center; color: var(--rose-soft);
  margin: 2.6rem 0; text-shadow: 0 0 30px rgba(255,127,174,.5);
}
.chapter__body em { color: var(--rose-soft); font-style: italic; }
.chapter__body strong, .promise strong { color: var(--gold); font-weight: 600; }

.divider {
  text-align: center; margin: 2rem 0; color: var(--gold-deep);
  font-size: 1.2rem; position: relative;
}
.divider::before, .divider::after {
  content: ''; position: absolute; top: 50%; width: 26%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(246,217,160,.4), transparent);
}
.divider::before { left: 12%; } .divider::after { right: 12%; }
.divider span { display: inline-block; animation: spin-slow 12s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }

/* — Cartes — */
.cards {
  list-style: none; padding: 0; margin: 3rem 0 0;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.3rem 1.4rem; border-radius: 16px;
  background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,127,174,.05));
  border: 1px solid rgba(255,179,205,.18);
  backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
  font-size: .96em; line-height: 1.55;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s;
}
.card:hover {
  transform: translateY(-8px) rotate(-.7deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 34px rgba(255,127,174,.28);
  border-color: rgba(255,179,205,.5);
}
.card__icon { font-size: 1.7rem; animation: bob 3.4s ease-in-out infinite; }
.card:nth-child(2) .card__icon { animation-delay: .4s; }
.card:nth-child(3) .card__icon { animation-delay: .8s; }
.card:nth-child(4) .card__icon { animation-delay: 1.2s; }
@keyframes bob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }

/* — Compteur — */
.counter {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: .7rem; margin: 2.5rem 0 1.6rem;
}
.counter__item {
  padding: 1.1rem .4rem; border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,127,174,.14), rgba(255,255,255,.04));
  border: 1px solid rgba(255,179,205,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.counter__value {
  display: block; font-family: var(--sans); font-weight: 300;
  font-size: clamp(1.3rem, 5.2vw, 2.1rem); color: var(--cream);
  text-shadow: 0 0 18px rgba(255,127,174,.6);
  font-variant-numeric: tabular-nums;
}
.counter__value.tick { animation: tick .45s var(--ease); }
@keyframes tick {
  0%   { transform: translateY(0) scale(1); color: var(--cream); }
  40%  { transform: translateY(-5px) scale(1.15); color: var(--rose); }
  100% { transform: none; }
}
.counter__label {
  font-family: var(--sans); font-weight: 200;
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft);
}
.counter__beats { font-style: italic; color: var(--ink-soft); }
.counter__beats strong { color: var(--rose-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

/* — Promesses — */
.promises { list-style: none; counter-reset: p; padding: 0; margin: 0; }
.promise {
  position: relative; padding: 1.4rem 0 1.4rem 4.4rem;
  border-bottom: 1px solid rgba(255,179,205,.13);
}
.promise:last-child { border-bottom: 0; }
.promise p { margin: 0; }
.promise__n {
  position: absolute; left: 0; top: 1.5rem;
  font-family: var(--sans); font-weight: 200; font-size: 1.5rem;
  color: transparent; -webkit-text-stroke: 1px var(--gold-deep);
  transition: color .5s, transform .5s var(--ease);
}
.promise:hover .promise__n { color: var(--gold); transform: scale(1.2) rotate(-6deg); }
.promise:last-child p { font-size: 1.08em; }

/* ═══════════ 3. SUSPENSE ═══════════ */
.suspense {
  min-height: 96svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 1rem;
  padding: 8vh 0;
}
.suspense__intro {
  margin: 0; font-style: italic;
  font-size: clamp(1.2rem, 1rem + 1.2vw, 1.7rem);
  color: var(--ink-soft);
}
.suspense__intro:nth-of-type(3) { color: var(--rose-soft); letter-spacing: .2em; }

.pulse-btn {
  position: relative; margin-top: 3rem;
  width: clamp(150px, 44vw, 190px); aspect-ratio: 1;
  border: 0; background: none; cursor: pointer; border-radius: 50%;
  display: grid; place-items: center;
  overflow: visible;            /* sinon la boîte du bouton écrête le halo */
  -webkit-tap-highlight-color: transparent;
}
.pulse-btn__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(255,127,174,.55);
  animation: ripple 2.8s var(--ease-out) infinite;
}
.pulse-btn__ring--2 { animation-delay: 1.4s; }
@keyframes ripple {
  0%   { transform: scale(.7); opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.pulse-btn__core {
  position: relative; z-index: 2;
  width: 78%; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; padding: 1rem;
  background: radial-gradient(circle at 34% 28%, #ff85ae, var(--rose-deep) 62%, #8c0e38);
  color: #fff2f7; font-family: var(--sans); font-weight: 300;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5;
  box-shadow: inset 0 4px 14px rgba(255,255,255,.28);
  animation: beat 1.4s ease-in-out infinite;
}
/* La lueur vit en dehors de la couche animée, sinon elle est coupée au carré. */
.pulse-btn::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 70%; aspect-ratio: 1; border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 55px 22px rgba(255,49,111,.5);
  transition: box-shadow .4s var(--ease);
}
.pulse-btn:hover::before { box-shadow: 0 0 85px 34px rgba(255,49,111,.8); }
.pulse-btn.is-gone { animation: btn-out .7s var(--ease) forwards; pointer-events: none; }
@keyframes btn-out { to { transform: scale(2.6); opacity: 0; filter: blur(20px); } }

.countdown {
  min-height: 9rem; display: grid; place-items: center;
  font-family: var(--script);
  font-size: clamp(4rem, 22vw, 9rem); line-height: 1;
  color: var(--rose-soft);
  text-shadow: 0 0 46px rgba(255,127,174,.85);
}
.countdown span { display: block; animation: count-pop 1s var(--ease-out) both; }
@keyframes count-pop {
  0%   { opacity: 0; transform: scale(2.6); filter: blur(16px); }
  35%  { opacity: 1; transform: scale(1); filter: blur(0); }
  75%  { opacity: 1; }
  100% { opacity: 0; transform: scale(.55); filter: blur(6px); }
}

/* ═══════════ 4. LA DÉCLARATION ═══════════ */
.finale {
  position: relative; text-align: center;
  padding: 10vh 0 6vh;
  animation: finale-in 1.8s var(--ease-out) both;
}
.finale[hidden] { display: none; }
@keyframes finale-in {
  from { opacity: 0; transform: translateY(40px) scale(.96); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}
.finale__halo {
  position: absolute; left: 50%; top: 12%; translate: -50% -50%;
  width: min(120vw, 900px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,127,174,.3), transparent 62%);
  filter: blur(50px); animation: halo 5s ease-in-out infinite; z-index: -1;
}
.finale__small {
  font-family: var(--script); font-size: clamp(2rem, 8vw, 3rem);
  color: var(--gold); margin: 0 0 .4rem;
  text-shadow: 0 0 26px rgba(246,217,160,.5);
}
.finale__title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 17vw, 8.5rem); line-height: 1.05;
  margin: 0 0 2.5rem; min-height: 1.1em;
  background: linear-gradient(100deg, #fff, var(--rose-soft) 28%, var(--gold) 52%, var(--rose) 78%, #fff);
  background-size: 300% auto;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 36px rgba(255,127,174,.7));
  animation: shine 6s linear infinite;
}
.finale__title::after {
  content: '|'; -webkit-text-fill-color: var(--rose);
  animation: caret .8s step-end infinite; margin-left: .04em;
}
.finale__title.is-done::after { display: none; }
@keyframes caret { 50% { opacity: 0; } }

.finale__text { margin: 0 auto 1.8rem; max-width: 34rem; }
.finale__text--strong {
  font-size: 1.15em; color: var(--cream);
  padding: 1.8rem 1.4rem; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,127,174,.13), rgba(255,255,255,.03));
  border: 1px solid rgba(255,179,205,.24);
  box-shadow: 0 0 50px rgba(255,127,174,.16) inset;
  animation: glow-box 4.5s ease-in-out infinite;
}
@keyframes glow-box {
  0%,100% { box-shadow: 0 0 40px rgba(255,127,174,.12) inset; }
  50%     { box-shadow: 0 0 70px rgba(255,127,174,.28) inset; }
}
.finale__sign {
  font-style: italic; color: var(--ink-soft); margin: 3rem 0 2rem; line-height: 2;
}
.finale__me {
  font-family: var(--script); font-style: normal;
  font-size: 2.2rem; color: var(--rose-soft);
  text-shadow: 0 0 22px rgba(255,127,174,.5);
}

.love-btn {
  font-family: var(--sans); font-weight: 300;
  font-size: .82rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--cream); cursor: pointer;
  padding: 1.05rem 2.4rem; border-radius: 999px;
  border: 1px solid rgba(255,179,205,.45);
  background: linear-gradient(120deg, rgba(255,127,174,.22), rgba(255,255,255,.06));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  overflow: visible;
  transition: transform .4s var(--ease), box-shadow .4s, background .4s;
  animation: pulse-soft 3s ease-in-out infinite;
}
.love-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: linear-gradient(120deg, rgba(255,127,174,.45), rgba(255,255,255,.12));
  box-shadow: 0 16px 40px rgba(255,49,111,.4);
}
.love-btn:active { transform: scale(.97); }

.love-reply {
  margin-top: 1.6rem; font-style: italic; color: var(--rose-soft);
  animation: fade-up 1.2s var(--ease-out) both;
}
.love-reply[hidden] { display: none; }

.foot {
  margin-top: 6rem; padding-top: 2.4rem;
  border-top: 1px solid rgba(255,179,205,.14);
  font-family: var(--sans); font-weight: 200;
  font-size: .7rem; letter-spacing: .2em; color: rgba(255,244,247,.35);
}
.foot__heart {
  display: block; color: var(--rose); font-size: 1.3rem; margin-bottom: .8rem;
  animation: beat 1.3s ease-in-out infinite;
}

/* ═══════════ Explosion de cœurs ═══════════ */
.burst-heart {
  position: absolute; font-size: 22px; color: var(--rose);
  text-shadow: 0 0 16px rgba(255,127,174,.9);
  animation: burst .0s ease-out forwards; /* durée injectée en JS */
}
@keyframes burst {
  0%   { transform: translate(0,0) scale(.2) rotate(0deg); opacity: 1; }
  70%  { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(var(--sc)) rotate(var(--rot)); opacity: 0; }
}

/* ═══════════ Bouton son ═══════════ */
.sound-btn {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 30;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  color: var(--rose-soft); font-size: 1.1rem;
  background: rgba(61,15,44,.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,179,205,.3);
  transition: transform .35s var(--ease), color .35s, box-shadow .35s;
}
.sound-btn[hidden] { display: none; }
.sound-btn:hover { transform: scale(1.12); box-shadow: 0 0 26px rgba(255,127,174,.5); }
.sound-btn.is-on { color: #fff; box-shadow: 0 0 26px rgba(255,127,174,.6); }
.sound-btn.is-on .sound-btn__icon { animation: bob 1.2s ease-in-out infinite; }

/* ═══════════ Révélations au défilement ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(7px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

:focus-visible { outline: 2px dashed var(--rose-soft); outline-offset: 6px; border-radius: 6px; }

/* ═══════════ Petits écrans ═══════════ */
@media (max-width: 480px) {
  .hero__over  { letter-spacing: .22em; }
  .hero__tag   { letter-spacing: .18em; }
  .gate__hint  { letter-spacing: .12em; font-size: .72rem; }
  .scroll-cue  { letter-spacing: .24em; }
  .chapter { padding: 11vh 0; }
  .counter { gap: .45rem; }
  .counter__item { padding: .85rem .2rem; border-radius: 11px; }
  .promise { padding-left: 3.6rem; }
  .divider::before { left: 4%; } .divider::after { right: 4%; }
  .finale__text--strong { padding: 1.4rem 1rem; }
}

/* ═══════════ Respect du confort ═══════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
  .petals, .floating-hearts, .grain { display: none; }
}
