/* ═══════════════════════════════════════════════════════════════
   ISABELLE & VINCENT — « Les Noces de Minuit » · styles.css
   Gothique romantique · mobile-first · aucune dépendance
═══════════════════════════════════════════════════════════════ */

/* Polices de secours calibrées sur Cormorant / Cinzel : pas de saut au chargement */
@font-face { font-family: 'Cormorant Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 88%; ascent-override: 96%; descent-override: 30%; }
@font-face { font-family: 'Cinzel Fallback'; src: local('Georgia'), local('Times New Roman'); size-adjust: 112%; ascent-override: 84%; descent-override: 28%; }

:root {
  --noir: #0b0a10;
  --nuit: #120d1b;
  --violet: #4b2a6b;
  --violet-d: #2a1840;
  --citrouille: #ff7a1a;
  --citrouille-l: #ffa25a;
  --citrouille-ink: #b14d0c;      /* orange lisible sur papier */
  --or: #c9a227;
  --or-l: #e9cf75;
  --creme: #f3e9d2;
  --creme-d: rgba(243, 233, 210, .74);
  --papier: #eae6de;
  --encre: #1d1424;
  --encre-violet: #3b2850;

  --serif: 'Cormorant Garamond', 'Cormorant Fallback', Georgia, serif;
  --deco: 'Cinzel Decorative', 'Cinzel Fallback', Georgia, serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--noir);
  color: var(--creme);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
em { font-style: italic; }
::selection { background: var(--citrouille); color: var(--noir); }
:focus-visible { outline: 2px solid var(--citrouille); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(100% - 40px, 1080px); margin-inline: auto; position: relative; }
.section { position: relative; padding: 96px 0; overflow-x: clip; }

.ico {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.bat-ico { fill: currentColor; }

/* ─── En-têtes de section ─────────────────────────── */
.head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.head__tag {
  font-size: 14px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--citrouille);
}
.head__title {
  margin-top: 12px;
  font-family: var(--deco); font-weight: 400;
  font-size: clamp(28px, 7.6vw, 48px); line-height: 1.12;
  color: var(--creme);
  text-wrap: balance;
}
.head__title em {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  color: var(--citrouille);
}
.head__sub { margin-top: 14px; font-style: italic; font-size: 20px; color: var(--creme-d); text-wrap: balance; }
.head__sub strong { color: var(--creme); font-style: normal; font-weight: 600; }

/* ─── Boutons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--serif); font-weight: 600; font-size: 18px; letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s, background-color .3s, border-color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ico { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn--pumpkin {
  background: linear-gradient(180deg, #ff9442, #e25f08);
  color: #1a0d05;
  box-shadow: 0 8px 26px rgba(255, 122, 26, .32), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn--line { border-color: rgba(243, 233, 210, .32); color: var(--creme); background: rgba(11, 10, 16, .35); }
.btn--gold {
  background: linear-gradient(180deg, #ecd47e, #c9a227 55%, #a8841c);
  color: #1a1206;
  box-shadow: 0 8px 24px rgba(201, 162, 39, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--sm { min-height: 42px; padding: 9px 18px; font-size: 16.5px; }
.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 20px; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--pumpkin:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 122, 26, .45), inset 0 1px 0 rgba(255, 255, 255, .35); }
  .btn--line:hover { border-color: var(--citrouille); }
  .btn--gold:hover { transform: translateY(-2px); }
}

/* ─── Monogramme « I 🦇 V » ───────────────────────── */
.monogram {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--deco); font-weight: 700; font-size: 30px; line-height: 1;
  color: var(--or-l);
}
.monogram .bat-ico {
  width: 68px; height: 17px; color: var(--citrouille);
  animation: hover-bat 3.2s ease-in-out infinite;
}
@keyframes hover-bat { 50% { transform: translateY(-4px); } }

/* ═══════════════════════════════════════════════════
   AMBIANCE : bougies, brume, étincelles, chauves-souris
═══════════════════════════════════════════════════ */
.candle {
  --w: 14px;
  position: relative; display: inline-block; flex: none;
  width: var(--w); height: var(--h, 60px);
  border-radius: 3px 3px 2px 2px;
  background: linear-gradient(90deg, #b9aa8a, #f3e9d2 38%, #fff8e6 50%, #d8caa9 80%, #a99a7c);
  box-shadow: 0 0 22px rgba(255, 150, 50, .18);
}
.candle--sm { --w: 10px; }
.candle::before { /* coulure de cire */
  content: ''; position: absolute; top: -1px; left: 18%; width: 34%; height: 38%;
  border-radius: 0 0 6px 6px; background: linear-gradient(90deg, #efe3c8, #fff8e6);
}
.candle::after { /* mèche */
  content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 6px; margin-left: -1px;
  background: #2b1d10; border-radius: 1px;
}
.candle__flame {
  position: absolute; left: 50%; bottom: calc(100% + 3px);
  width: calc(var(--w) * .8); height: calc(var(--w) * 1.7);
  transform: translateX(-50%);
  transform-origin: 50% 90%;
  border-radius: 50% 50% 35% 35% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fff8d8 0 18%, #ffd36a 34%, #ff9a2a 58%, rgba(255, 122, 26, 0) 74%);
  animation: flicker var(--d, 1.6s) ease-in-out infinite alternate;
}
.candle__flame::after { /* halo */
  content: ''; position: absolute; left: 50%; top: 55%; width: 90px; height: 90px; margin: -45px 0 0 -45px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 40, .32), rgba(255, 122, 26, .08) 45%, transparent 68%);
  animation: halo calc(var(--d, 1.6s) * 1.3) ease-in-out infinite alternate;
}
@keyframes flicker {
  0%   { transform: translateX(-50%) scale(1, 1) skewX(0); }
  25%  { transform: translateX(-50%) scale(.9, 1.1) skewX(3deg); }
  50%  { transform: translateX(-50%) scale(1.05, .93) skewX(-2deg); }
  75%  { transform: translateX(-50%) scale(.95, 1.06) skewX(1.5deg); }
  100% { transform: translateX(-50%) scale(1.02, .97) skewX(-1deg); }
}
@keyframes halo { from { opacity: .7; } to { opacity: 1; transform: scale(1.08); } }

/* Brume CSS : deux nappes qui dérivent en boucle parfaite (translate -50 %) */
.fog { pointer-events: none; overflow: hidden; }
.fog i {
  position: absolute; left: 0; bottom: -12%;
  width: 200%; height: 120%;
  background-image:
    radial-gradient(ellipse 22% 48% at 12% 72%, rgba(196, 184, 226, .30), transparent 70%),
    radial-gradient(ellipse 26% 40% at 38% 82%, rgba(170, 160, 210, .26), transparent 70%),
    radial-gradient(ellipse 20% 46% at 66% 70%, rgba(205, 195, 235, .24), transparent 70%),
    radial-gradient(ellipse 24% 38% at 88% 86%, rgba(180, 168, 220, .28), transparent 70%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  animation: fog-drift 70s linear infinite;
  will-change: transform;
}
.fog i:nth-child(2) { bottom: -24%; opacity: .75; animation-duration: 110s; animation-direction: reverse; }
@keyframes fog-drift { to { transform: translate3d(-50%, 0, 0); } }
.fog--page { position: fixed; left: 0; right: 0; bottom: 0; height: 24vh; z-index: 6; opacity: .5; }
.fog--gate { position: absolute; left: 0; right: 0; bottom: 0; height: 46vh; z-index: 2; opacity: 1; }

.embers { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; }

.bats { position: fixed; inset: 0; z-index: 50; pointer-events: none; overflow: hidden; }
.bat { position: absolute; left: 0; top: 0; width: var(--s, 30px); height: calc(var(--s, 30px) * .25); will-change: transform; }
.bat svg {
  width: 100%; height: 100%; overflow: visible;
  fill: #1c1428; stroke: rgba(255, 150, 70, .75); stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
  transform-origin: 50% 40%;
  animation: flap var(--flap, .18s) ease-in-out infinite alternate;
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.22); } }

/* ═══════════════════════════════════════════════════
   1 · ÉCRAN D’OUVERTURE
═══════════════════════════════════════════════════ */
.gate { display: none; }
.js .gate {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--noir);
  overflow: hidden;
  transition: opacity 1.1s ease, visibility 0s linear 1.1s;
}
.gate.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.gate::after { /* fondu au noir de fin de vidéo */
  content: ''; position: absolute; inset: 0; z-index: 5;
  background: var(--noir); opacity: 0; pointer-events: none;
  transition: opacity .8s ease;
}
.gate.is-ending::after { opacity: 1; }

.gate__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity .9s ease;
  background: var(--noir);
}
.gate.is-video .gate__video { opacity: 1; }
/* Copie image par image de la vidéo : certains navigateurs intégrés (aperçus,
   WebViews) n’affichent pas une vidéo plein écran, un canvas toujours. */
.gate__screen {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity .9s ease;
}
.gate.is-video .gate__screen { opacity: 1; }

.gate__glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 50% 38%, rgba(75, 42, 107, .45), transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 105%, rgba(255, 122, 26, .22), transparent 70%);
  transition: opacity .8s;
}
.gate__candles {
  position: absolute; left: 0; right: 0; bottom: calc(7vh + var(--safe-b)); z-index: 3;
  display: flex; justify-content: center; align-items: flex-end; gap: 12px;
  pointer-events: none; transition: opacity .8s;
}
.gate__candles-gap { flex: 0 0 min(52vw, 460px); }

.gate__content {
  position: relative; z-index: 4;
  width: min(100%, 560px); padding: 24px 22px 80px;
  text-align: center;
  transition: opacity .7s ease, transform 1s var(--ease);
}
/* Ni filter: blur ni visibility: hidden ici : sinon Chromium peut cesser d’afficher la vidéo dessous */
.gate.is-playing .gate__content { opacity: 0; transform: scale(1.06); pointer-events: none; }
.gate.is-playing .gate__glow,
.gate.is-playing .gate__candles { opacity: 0; }
.gate.is-video .fog--gate { opacity: .35; transition: opacity 1s; }

.gate__tag {
  margin-top: 26px;
  font-size: 14px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  color: var(--or-l);
}
.gate__names {
  margin-top: 14px;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--deco); font-weight: 400;
  font-size: clamp(40px, 12.4vw, 84px); line-height: 1.02;
  color: var(--creme);
  text-shadow: 0 0 34px rgba(255, 122, 26, .28);
}
.gate__amp { font-family: var(--serif); font-style: italic; font-size: .62em; color: var(--citrouille); margin: 2px 0 4px; }
.gate__date { margin-top: 22px; font-size: 22px; font-weight: 500; letter-spacing: .06em; }
.gate__places { margin-top: 4px; font-style: italic; font-size: clamp(14px, 4.5vw, 18px); color: var(--creme-d); white-space: nowrap; }

.gate__enter {
  position: relative; margin-top: 36px;
  padding: 18px 34px;
  border: 1px solid rgba(255, 122, 26, .75); border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 122, 26, .2), rgba(75, 42, 107, .4));
  color: var(--creme);
  font-family: var(--deco); font-weight: 700; font-size: 18px; letter-spacing: .03em;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .2), 0 0 40px rgba(255, 122, 26, .3);
  animation: breathe 2.8s ease-in-out infinite;
  -webkit-tap-highlight-color: transparent;
}
.gate__enter-label { position: relative; }
.gate__enter-ring {
  position: absolute; inset: -1px; border-radius: inherit;
  border: 1px solid rgba(255, 122, 26, .6);
  animation: ring 2.8s ease-out infinite;
}
@keyframes breathe { 50% { box-shadow: inset 0 0 0 1px rgba(201, 162, 39, .3), 0 0 60px rgba(255, 122, 26, .5); } }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.3, 1.6); opacity: 0; } }
.gate__sound {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  font-style: italic; font-size: 17px; color: var(--creme-d);
}
.gate__skip {
  position: absolute; z-index: 6;
  top: calc(14px + var(--safe-t)); right: 14px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(243, 233, 210, .25);
  background: rgba(11, 10, 16, .5);
  font-size: 16px; color: var(--creme-d);
  cursor: pointer;
}
.gate__skip .ico { transform: rotate(-90deg); }
.gate__loading {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: calc(16vh + var(--safe-b));
  text-align: center; font-style: italic; font-size: 18px; color: var(--creme-d);
  opacity: 0; transition: opacity .5s;
}
.gate.is-waiting .gate__loading { opacity: 1; }

/* Bouton son flottant */
.sound-btn {
  position: fixed; z-index: 45;
  top: calc(12px + var(--safe-t)); right: 12px;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid rgba(201, 162, 39, .45); border-radius: 50%;
  background: rgba(11, 10, 16, .72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--or-l); cursor: pointer;
  opacity: 0; pointer-events: none; transform: scale(.8);
  transition: opacity .5s, transform .5s var(--ease);
}
.sound-btn.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.sound-btn .ico { width: 22px; height: 22px; }
.sound-btn__off { display: none; }
.sound-btn.is-muted .sound-btn__on { display: none; }
.sound-btn.is-muted .sound-btn__off { display: block; }

/* ═══════════════════════════════════════════════════
   2 · HERO — le portrait vivant
═══════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: 12px 0 18px;
  display: flex; flex-direction: column; align-items: center;
  overflow: hidden;
}
.hero__wall {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(201, 162, 39, .035) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(-45deg, rgba(201, 162, 39, .035) 0 1px, transparent 1px 30px),
    radial-gradient(ellipse 85% 60% at 50% 42%, #2c1a42 0%, #170f24 48%, var(--noir) 88%);
}

.portrait {
  position: relative; z-index: 2;
  width: min(100% - 20px, 560px);
  height: calc(100vh - 72px); height: calc(100svh - 72px);
  min-height: 540px; max-height: 960px;
}
.portrait__frame {
  position: absolute; inset: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, #3a2a12 0%, #c9a227 14%, #6b4f12 30%, #ecd47e 48%, #7a5a14 64%, #c9a227 82%, #3a2a12 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 240, 190, .3);
}
.portrait__frame::before {
  content: ''; position: absolute; inset: 5px; border-radius: 2px;
  border: 1.5px solid rgba(50, 30, 4, .55);
  pointer-events: none;
}
.portrait__canvas {
  position: absolute; inset: 12px;
  overflow: hidden; isolation: isolate;
  container-type: size;
  background: radial-gradient(ellipse 90% 70% at 50% 34%, #f3efe7 0%, var(--papier) 55%, #ddd6c9 100%);
  box-shadow: inset 0 0 0 2px rgba(40, 24, 6, .75), inset 0 0 70px rgba(70, 50, 30, .35);
}
.portrait__video {
  position: absolute; left: 50%; bottom: 0; z-index: 0;
  width: 100%; max-width: none; height: auto; aspect-ratio: 704 / 720;
  transform: translateX(-50%);
  object-fit: cover;
  background: transparent;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
          mask-image: linear-gradient(to bottom, transparent 0, #000 16%);
  opacity: 0; transition: opacity 1.4s ease;
}
.portrait__video.is-ready { opacity: 1; }
@supports (width: 1cqh) {
  /* hauteur restante sous le texte (≈ 65cqw + 11cqh), la danse peut déborder sur les côtés */
  .portrait__video { width: clamp(70cqw, (89cqh - 65cqw + 40px) * .978, 125cqw); }
}
.portrait__light {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 0% 100%, rgba(255, 140, 40, .2), transparent 70%),
    radial-gradient(ellipse 60% 45% at 100% 100%, rgba(255, 140, 40, .16), transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 50%, transparent 55%, rgba(40, 22, 50, .28) 100%);
  animation: candlelight 3.4s ease-in-out infinite alternate;
}
@keyframes candlelight { 0% { opacity: .75; } 30% { opacity: .95; } 55% { opacity: .82; } 100% { opacity: 1; } }

.portrait__corner {
  position: absolute; z-index: 3; width: 42px; height: 42px;
  fill: none; stroke: rgba(59, 40, 80, .5); stroke-width: 1.4;
  pointer-events: none;
}
.portrait__corner .fill { fill: rgba(177, 77, 12, .75); stroke: none; }
.portrait__corner.tl { top: 20px; left: 20px; }
.portrait__corner.tr { top: 20px; right: 20px; transform: scaleX(-1); }
.portrait__corner.bl { bottom: 20px; left: 20px; transform: scaleY(-1); }
.portrait__corner.br { bottom: 20px; right: 20px; transform: scale(-1); }

.portrait__text {
  position: relative; z-index: 2;
  padding: 44px 9% 0;
  text-align: center; color: var(--encre);
}
@supports (width: 1cqh) { .portrait__text { padding-top: clamp(26px, 6.5cqh, 64px); } }

.hero__whisper { font-style: italic; font-size: 21px; line-height: 1.3; color: #2a1d33; }
@supports (width: 1cqw) { .hero__whisper { font-size: clamp(18px, 6.2cqw, 27px); } }
.hero__line { display: block; }
.hero__line--chute { font-weight: 600; color: var(--citrouille-ink); }
.word { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; }

.hero__names {
  margin-top: 16px;
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--deco); font-weight: 700;
  font-size: 36px; line-height: 1.02;
  color: var(--encre-violet);
}
@supports (width: 1cqw) { .hero__names { font-size: clamp(30px, 11.6cqw, 58px); margin-top: 2.6cqh; } }
.hero__amp { display: block; color: var(--citrouille-ink); margin: .14em 0 .1em; }
.hero__amp .bat-ico { width: 1.4em; height: .36em; }
.hero__date {
  margin-top: 14px;
  font-size: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
@supports (width: 1cqw) { .hero__date { font-size: clamp(13px, 4.2cqw, 18px); margin-top: 2.2cqh; } }
.hero__places { margin-top: 2px; font-style: italic; font-size: 16px; color: #4a3a52; text-wrap: balance; }
@supports (width: 1cqw) { .hero__places { font-size: clamp(14px, 4.4cqw, 18px); } }

/* Écriture lettre par lettre (déclenchée à l’ouverture) */
.js .hero .ch { opacity: 0; }
.js .hero__names, .js .hero__date, .js .hero__places {
  opacity: 0; transform: translateY(12px);
}
.hero.is-awake .ch {
  animation: ink .55s var(--ease) both;
  animation-delay: calc(var(--i) * 52ms + .35s);
}
@keyframes ink {
  from { opacity: 0; transform: translateY(.22em) scale(.92); }
  to   { opacity: 1; transform: none; }
}
.hero.is-awake .hero__names,
.hero.is-awake .hero__date,
.hero.is-awake .hero__places {
  opacity: 1; transform: none;
  transition: opacity 1.3s ease, transform 1.3s var(--ease);
  transition-delay: var(--after, 2.4s);
}
.hero.is-awake .hero__date { transition-delay: calc(var(--after, 2.4s) + .45s); }
.hero.is-awake .hero__places { transition-delay: calc(var(--after, 2.4s) + .75s); }

.portrait__plaque {
  position: absolute; left: 50%; bottom: -13px; z-index: 4;
  transform: translateX(-50%);
  padding: 6px 18px; border-radius: 3px;
  background: linear-gradient(180deg, #f0d985, #b8901f 58%, #7a5a14);
  color: #2a1a06;
  font-family: var(--deco); font-weight: 700; font-size: 12px; letter-spacing: .08em;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.hero__candelabra { display: none; }
@media (min-width: 1000px) {
  .hero__candelabra {
    position: absolute; z-index: 1; bottom: 18%;
    display: flex; align-items: flex-end; gap: 16px;
  }
  .hero__candelabra::after {
    content: ''; position: absolute; left: -14px; right: -14px; bottom: -10px; height: 10px;
    border-radius: 6px; background: linear-gradient(180deg, #ecd47e, #7a5a14);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
  }
  .hero__candelabra--l { right: calc(50% + 330px); }
  .hero__candelabra--r { left: calc(50% + 330px); }
}

.hero__scroll {
  position: relative; z-index: 3;
  margin-top: 26px;
  display: inline-flex; align-items: center; gap: 6px;
  font-style: italic; font-size: 17px; color: var(--creme-d); text-decoration: none;
}
.hero__scroll .ico { animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }

/* ═══════════════════════════════════════════════════
   3 · LE FAIRE-PART
═══════════════════════════════════════════════════ */
.invite {
  overflow: hidden;
  padding-top: 110px;
  background: linear-gradient(180deg, var(--noir) 0%, #120c1c 50%, var(--noir) 100%);
}
.invite__card {
  position: relative;
  width: min(100% - 32px, 540px); margin: 0 auto;
  padding: 104px 26px 64px;
  text-align: center;
  border: 1px solid rgba(201, 162, 39, .5);
  border-radius: 270px 270px 14px 14px / 230px 230px 14px 14px;
  background: radial-gradient(ellipse 120% 70% at 50% 0%, rgba(75, 42, 107, .55), rgba(18, 13, 27, .94) 62%);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 60px rgba(75, 42, 107, .3);
}
.invite__card::before {
  content: ''; position: absolute; inset: 9px; pointer-events: none;
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: 262px 262px 9px 9px / 222px 222px 9px 9px;
}
.invite__card::after { /* rosace */
  content: ''; position: absolute; top: 30px; left: 50%; width: 56px; height: 56px; margin-left: -28px;
  border-radius: 50%; border: 1px solid rgba(201, 162, 39, .6);
  background:
    radial-gradient(circle, var(--citrouille) 0 3px, transparent 4px),
    radial-gradient(circle, transparent 0 9px, rgba(201, 162, 39, .55) 10px 11px, transparent 12px),
    repeating-conic-gradient(rgba(201, 162, 39, .5) 0 2deg, transparent 2deg 30deg),
    radial-gradient(circle, #2a1840 55%, #1a1028 100%);
  box-shadow: 0 0 24px rgba(255, 122, 26, .2);
}
.invite__kicker { font-style: italic; font-size: 21px; line-height: 1.4; text-wrap: balance; }
.invite__kicker em { color: var(--citrouille-l); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.invite__parents { margin-top: 10px; font-size: 19px; font-weight: 500; letter-spacing: .02em; text-wrap: balance; }
.invite__parents + .invite__parents { margin-top: 2px; }
.invite__phrase { margin-top: 14px; font-style: italic; font-size: 19px; color: var(--creme-d); text-wrap: balance; }
.invite__names {
  margin: 20px 0 4px;
  font-family: var(--deco); font-weight: 700;
  font-size: clamp(32px, 9vw, 50px); line-height: 1.12;
}
.invite__amp { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--citrouille); -webkit-text-fill-color: var(--citrouille); }
.invite__text { margin-top: 14px; font-size: 19px; text-wrap: pretty; }
.invite__text em { color: var(--or-l); }
.invite__chute { margin-top: 24px; font-size: 21px; font-style: italic; }
.invite__chute em { color: var(--citrouille-l); }
.invite__candles {
  position: absolute; left: 22px; right: 22px; bottom: -2px;
  display: flex; justify-content: space-between; align-items: flex-end;
  pointer-events: none;
}

.foil {
  background: linear-gradient(100deg, #9a7814 0%, #ecd47e 28%, #c9a227 46%, #fff2bf 58%, #b38b1d 76%, #ecd47e 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: foil 7s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px auto 18px; color: var(--or); }
.divider span { width: 64px; height: 1px; background: linear-gradient(90deg, transparent, var(--or)); }
.divider span:last-child { background: linear-gradient(90deg, var(--or), transparent); }
.divider .bat-ico { width: 38px; height: 10px; }

/* Fantôme qui sort du mot « fantômes » */
.ghost-pop {
  position: fixed; z-index: 55; width: 64px; height: 80px; pointer-events: none;
}
.ghost-pop svg { width: 100%; height: 100%; fill: rgba(243, 233, 210, .92); filter: drop-shadow(0 0 14px rgba(243, 233, 210, .5)); }
.ghost-pop .eye { fill: var(--noir); }
.ghost-pop .mouth { fill: var(--noir); }
.ghost-pop__bubble {
  position: absolute; left: 70%; top: -18px;
  padding: 3px 10px; border-radius: 12px 12px 12px 2px;
  background: var(--creme); color: var(--noir);
  font-family: var(--deco); font-weight: 700; font-size: 14px; white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   4 · LE JEU — LES SIX TOMBES
═══════════════════════════════════════════════════ */
.cemetery {
  padding: 120px 0 84px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--noir) 0%, #150d22 26%, #1d1233 58%, #0d0a14 100%);
}
.cemetery__sky { position: absolute; left: 0; right: 0; top: 0; height: 380px; pointer-events: none; }
.moon {
  position: absolute; top: 34px; right: 7%;
  width: 88px; height: 88px; padding: 0; border: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 62%, rgba(150, 128, 80, .35) 0 7px, transparent 8px),
    radial-gradient(circle at 62% 32%, rgba(150, 128, 80, .3) 0 10px, transparent 11px),
    radial-gradient(circle at 66% 70%, rgba(150, 128, 80, .25) 0 5px, transparent 6px),
    radial-gradient(circle at 38% 36%, #fffaf0 0%, #f3e3b5 46%, #d9c48e 78%, #b7a06a 100%);
  box-shadow: 0 0 40px rgba(243, 227, 181, .45), 0 0 140px rgba(243, 227, 181, .16);
  cursor: pointer; pointer-events: auto;
  transition: filter 1.2s ease, box-shadow 1.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.cemetery.is-witch .moon { filter: sepia(1) saturate(4) hue-rotate(-18deg) brightness(.95); box-shadow: 0 0 50px rgba(255, 100, 40, .6), 0 0 160px rgba(255, 90, 30, .25); }
.witch {
  position: absolute; top: 46px; right: 7%;
  width: 104px; fill: #07060a;
  opacity: 0; pointer-events: none;
}
.cemetery.is-witch .witch { animation: witch-fly 4.2s ease-in-out forwards; }
@keyframes witch-fly {
  0%   { opacity: 1; transform: translate(260px, 50px) rotate(-6deg); }
  42%  { opacity: 1; transform: translate(20px, 8px) rotate(-8deg); }
  58%  { opacity: 1; transform: translate(-70px, -4px) rotate(-9deg); }
  100% { opacity: 1; transform: translate(-620px, -80px) rotate(-14deg); }
}
.cloud {
  position: absolute; height: 22px; border-radius: 30px;
  background: rgba(120, 100, 160, .16); filter: blur(6px);
  animation: cloud 48s linear infinite;
}
.cloud--1 { top: 64px; width: 160px; left: -20%; }
.cloud--2 { top: 118px; width: 220px; left: -40%; animation-duration: 66s; animation-delay: -20s; }
@keyframes cloud { to { transform: translateX(160vw); } }

.counter { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: -10px auto 26px; }
.counter__flames { display: flex; gap: 12px; }
.counter__flames i {
  width: 11px; height: 17px;
  border-radius: 50% 50% 38% 38% / 62% 62% 38% 38%;
  background: rgba(243, 233, 210, .1); border: 1px solid rgba(243, 233, 210, .22);
  transition: background .5s, border-color .5s, box-shadow .5s;
}
.counter__flames i.is-lit {
  border-color: transparent;
  background: radial-gradient(ellipse at 50% 78%, #fff6d0 0 18%, #ffbf4a 40%, #ff7a1a 76%);
  box-shadow: 0 0 14px rgba(255, 122, 26, .85);
  animation: lit-flicker 1.4s ease-in-out infinite alternate;
}
@keyframes lit-flicker { 50% { transform: scale(.9, 1.1) skewX(3deg); } }
.counter__text { font-style: italic; font-size: 19px; color: var(--creme-d); }
.counter__text strong { font-family: var(--deco); font-style: normal; color: var(--citrouille); font-size: 22px; }

.graveyard {
  position: relative;
  width: min(100% - 16px, 1000px); margin: 0 auto;
  padding: 26px 4px 92px;
}
.graveyard::after { /* le sol */
  content: ''; position: absolute; left: -30%; right: -30%; bottom: -90px; height: 82%; z-index: 0;
  background: radial-gradient(ellipse 56% 50% at 50% 50%, #24182f 0%, #170f20 55%, transparent 100%);
  pointer-events: none;
}
.graveyard__fence {
  position: absolute; left: -10%; width: 120%; top: 6%; height: 74px; z-index: 0;
  fill: none; stroke: #07060a; stroke-width: 3; opacity: .95;
}
.graveyard__tree {
  position: absolute; left: -36px; top: -150px; width: 150px; z-index: 0;
  fill: #07060a; opacity: .95;
}

.graves {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px 12px;
  margin: 0; padding: 0; list-style: none;
}
.graves__item { position: relative; }
.graves__item:nth-child(-n+3) { transform: scale(.9) translateY(10px); }
.graves__item:nth-child(1) .grave { --r: -3deg; }
.graves__item:nth-child(2) .grave { --r: 1.5deg; }
.graves__item:nth-child(3) .grave { --r: -1deg; }
.graves__item:nth-child(4) .grave { --r: 2.5deg; }
.graves__item:nth-child(5) .grave { --r: -2deg; }
.graves__item:nth-child(6) .grave { --r: 1deg; }
@media (min-width: 900px) {
  .graves { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .graves__item:nth-child(-n+3) { transform: none; }
  .graves__item:nth-child(even) { transform: translateY(18px); }
}

.grave {
  position: relative; display: block; width: 100%;
  aspect-ratio: 120 / 172;
  padding: 0; border: 0; background: none;
  color: var(--creme); cursor: pointer;
  isolation: isolate;
  transform: rotate(var(--r, 0deg)); transform-origin: 50% 100%;
  transition: transform .4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.grave:focus-visible { outline: 2px solid var(--citrouille); outline-offset: 6px; border-radius: 40% 40% 8px 8px; }
@media (hover: hover) { .grave:hover { transform: rotate(var(--r, 0deg)) translateY(-4px); } }

.grave__stone {
  position: absolute; left: 0; top: 0; z-index: 1;
  width: 100%; height: 93%;
  fill: url(#g-stone); stroke: rgba(255, 255, 255, .09); stroke-width: 2;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .55));
}
.grave.is-awake .grave__stone { fill: url(#g-stone-lit); }
.grave__bevel { fill: none; stroke: rgba(0, 0, 0, .38); stroke-width: 1.6; }
.grave::before { /* lueur une fois réveillée */
  content: ''; position: absolute; inset: 0 -12% 6%; z-index: 0;
  background: radial-gradient(ellipse at 50% 55%, rgba(255, 122, 26, .38), transparent 66%);
  filter: blur(10px); opacity: 0; transition: opacity .8s;
}
.grave.is-awake::before { opacity: 1; }
.grave__mound {
  position: absolute; left: -10%; right: -10%; bottom: 0; height: 13%; z-index: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 28%, #33263f, #170f1f 66%, transparent 70%);
}
.grave__face {
  position: absolute; z-index: 2; inset: 21% 13% 13%;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.grave--ogive .grave__face { top: 27%; }
.grave--epaules .grave__face { top: 24%; }
.grave__num {
  font-family: var(--deco); font-weight: 700; font-size: clamp(15px, 4.6vw, 22px); line-height: 1;
  color: rgba(243, 233, 210, .5);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 -1px 0 rgba(255, 255, 255, .1);
}
.grave__sleep, .grave__awake { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: space-between; gap: 6px; }
.grave__epitaph {
  font-style: italic; font-size: clamp(12px, 3.5vw, 15px); line-height: 1.15;
  color: rgba(243, 233, 210, .8);
  text-shadow: 0 1px 0 rgba(0, 0, 0, .6);
}
.grave__touch {
  font-size: clamp(10px, 2.7vw, 12px); font-weight: 600; line-height: 1.2;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--citrouille-l);
  animation: beckon 2.4s ease-in-out infinite;
}
@keyframes beckon { 50% { opacity: .45; } }
.grave__awake { display: none; justify-content: flex-start; padding-top: 4px; }
.grave.is-awake .grave__sleep { display: none; }
.grave.is-awake .grave__awake { display: flex; }
.grave.is-awake .grave__num { color: var(--citrouille-l); text-shadow: 0 0 10px rgba(255, 122, 26, .7); }
.grave__ico { width: clamp(22px, 7vw, 30px); height: clamp(22px, 7vw, 30px); stroke: var(--citrouille-l); stroke-width: 1.6; filter: drop-shadow(0 0 6px rgba(255, 122, 26, .8)); }
.grave__title {
  font-family: var(--deco); font-weight: 700; font-size: clamp(11px, 3.3vw, 15px); line-height: 1.15;
  color: var(--creme); text-shadow: 0 0 12px rgba(255, 122, 26, .65);
}

.grave.is-shaking { animation: shake .75s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake {
  10%, 90% { transform: rotate(var(--r)) translateX(-1px); }
  20%, 80% { transform: rotate(calc(var(--r) + 1deg)) translateX(3px); }
  30%, 50%, 70% { transform: rotate(calc(var(--r) - 2.5deg)) translateX(-5px); }
  40%, 60% { transform: rotate(calc(var(--r) + 2.5deg)) translateX(5px); }
}
.puff {
  position: absolute; z-index: 3; left: 50%; bottom: 22%;
  width: 56px; height: 56px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(226, 216, 245, .6), rgba(170, 150, 200, .22) 55%, transparent 70%);
  filter: blur(4px);
  animation: puff 1.5s ease-out forwards;
}
@keyframes puff {
  from { opacity: .95; transform: translate(-50%, 0) scale(.35); }
  to   { opacity: 0; transform: translate(calc(-50% + var(--x)), var(--y)) scale(var(--s)); }
}

/* Easter egg : la main du zombie */
.mound { position: absolute; z-index: 2; left: 7%; bottom: 14px; width: 92px; height: 112px; pointer-events: none; }
.mound::before, .mound::after { /* croix de bois */
  content: ''; position: absolute; background: #3a2a1c; border-radius: 1px;
}
.mound::before { right: 14px; bottom: 16px; width: 3px; height: 26px; }
.mound::after { right: 7px; bottom: 32px; width: 17px; height: 3px; }
.mound__clip { position: absolute; left: 0; right: 0; top: 0; bottom: 14px; overflow: hidden; }
.zombie-hand {
  position: absolute; left: 50%; bottom: 0; width: 40px; height: 66px;
  transform: translate(-50%, 105%);
  transition: transform 1s cubic-bezier(.3, 1.35, .5, 1);
}
.zombie-hand__skin { fill: #8a9a72; stroke: #3d4630; stroke-width: 1.2; }
.zombie-hand__sleeve { fill: #2b2233; }
.zombie-hand__g { transform-box: fill-box; transform-origin: 50% 100%; }
.mound.is-risen .zombie-hand { transform: translate(-50%, 6%); }
.mound.is-risen .zombie-hand__g { animation: wave .45s ease-in-out 1s 6 alternate; }
@keyframes wave { from { transform: rotate(-10deg); } to { transform: rotate(10deg); } }
.mound__soil {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  padding: 0; border: 0; cursor: pointer; pointer-events: auto;
  border-radius: 50% 50% 10px 10px / 100% 100% 10px 10px;
  background: radial-gradient(ellipse at 50% 18%, #5a4030, #2c1e15 62%, #1a120d);
  -webkit-tap-highlight-color: transparent;
}
.mound.is-poked .mound__soil { animation: wiggle .35s ease-in-out; }
@keyframes wiggle { 30% { transform: translateY(-3px) scaleX(1.03); } 60% { transform: translateY(1px) scaleX(.98); } }

.finale {
  margin: 34px auto 0; max-width: 540px;
  padding: 28px 22px;
  text-align: center;
  border: 1px solid rgba(255, 122, 26, .5); border-radius: 18px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 122, 26, .16), rgba(11, 10, 16, .6) 70%);
  animation: rise .9s var(--ease) both;
}
.finale[hidden] { display: none; }
.finale__title { margin-bottom: 18px; font-family: var(--deco); font-weight: 700; font-size: 22px; line-height: 1.3; text-wrap: balance; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }

/* Carte révélée par une tombe */
.crypt { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.crypt[hidden] { display: none; }
.crypt__backdrop {
  position: absolute; inset: 0;
  background: rgba(5, 4, 8, .74);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .4s;
}
.crypt.is-open .crypt__backdrop { opacity: 1; }
.crypt__card {
  position: relative; width: 100%; max-width: 580px; max-height: 88vh; max-height: 88svh;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 34px 22px calc(24px + var(--safe-b));
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(255, 122, 26, .14), transparent 70%),
    linear-gradient(180deg, #1e1431 0%, #120c1d 100%);
  border: 1px solid rgba(201, 162, 39, .45); border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .6);
  transform: translateY(60px); opacity: 0; filter: blur(10px);
  transition: transform .6s var(--ease), opacity .45s ease, filter .6s ease;
}
.crypt.is-open .crypt__card { transform: none; opacity: 1; filter: none; }
.crypt__card:focus { outline: none; }
@media (min-width: 700px) {
  .crypt { align-items: center; padding: 24px; }
  .crypt__card { border-radius: 24px; border-bottom: 1px solid rgba(201, 162, 39, .45); padding-bottom: 28px; max-height: 86vh; }
}
.crypt__close {
  position: absolute; top: 12px; right: 12px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid rgba(243, 233, 210, .2); border-radius: 50%;
  background: rgba(11, 10, 16, .5); cursor: pointer;
}
.crypt__close .ico { width: 20px; height: 20px; }
.crypt__num { font-size: 13px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--citrouille); text-align: center; }
.crypt__num span { font-family: var(--deco); letter-spacing: .1em; }
.crypt__title { margin-top: 8px; text-align: center; font-family: var(--deco); font-weight: 700; font-size: 28px; line-height: 1.15; }
.crypt__epitaph { margin-top: 4px; text-align: center; font-style: italic; color: var(--creme-d); }
.crypt__body { margin-top: 22px; }
.crypt__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }

.place { padding: 18px; border: 1px solid rgba(243, 233, 210, .12); border-radius: 16px; background: rgba(11, 10, 16, .35); }
.place + .place { margin-top: 12px; }
.place__kind { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--citrouille-l); }
.place__name { margin-top: 4px; font-family: var(--deco); font-weight: 700; font-size: 21px; line-height: 1.2; }
.place__addr { margin-top: 6px; display: flex; align-items: flex-start; gap: 8px; }
.place__addr .ico { margin-top: 5px; color: var(--or-l); }
.place__note { margin-top: 6px; font-style: italic; font-size: 17.5px; color: var(--creme-d); }
.place__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.acts { position: relative; margin: 0; padding: 0 0 0 26px; list-style: none; }
.acts::before { content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(180deg, var(--citrouille), rgba(201, 162, 39, .3)); }
.act { position: relative; }
.act + .act { margin-top: 18px; }
.act::before {
  content: ''; position: absolute; left: -25px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--noir); border: 2px solid var(--citrouille); box-shadow: 0 0 10px rgba(255, 122, 26, .6);
}
.act__head { display: flex; align-items: center; gap: 10px; }
.act__num { font-family: var(--deco); font-weight: 700; font-size: 14px; color: var(--citrouille-l); }
.act__time { padding: 1px 10px; border-radius: 999px; border: 1px solid rgba(201, 162, 39, .4); font-size: 15px; color: var(--or-l); }
.act__title { margin-top: 2px; font-size: 21px; font-weight: 600; }
.act__text { font-size: 17.5px; color: var(--creme-d); }

.dress { text-align: center; }
.dress__title { font-family: var(--deco); font-weight: 700; font-size: 24px; color: var(--or-l); }
.dress__text { margin-top: 6px; font-size: 20px; }
.dress__text em { color: var(--citrouille-l); }
.swatches { display: flex; justify-content: center; gap: 18px; margin: 18px 0; padding: 0; list-style: none; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; color: var(--creme-d); }
.swatch__dot { width: 46px; height: 46px; border-radius: 50%; background: var(--c); border: 2px solid rgba(243, 233, 210, .4); box-shadow: 0 6px 18px rgba(0, 0, 0, .5); }
.dress__tip { margin-top: 10px; font-size: 17.5px; color: var(--creme-d); }

.infos { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.info { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 14px; border: 1px solid rgba(243, 233, 210, .1); border-radius: 14px; background: rgba(11, 10, 16, .35); }
.info__ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 122, 26, .12); color: var(--citrouille-l); }
.info__ico .ico { width: 22px; height: 22px; }
.info__title { display: block; font-size: 19px; font-weight: 600; line-height: 1.3; }
.info__text { display: block; margin-top: 2px; font-size: 17.5px; color: var(--creme-d); }
.info__text em { color: var(--or-l); }

/* ═══════════════════════════════════════════════════
   5 · COMPTE À REBOURS
═══════════════════════════════════════════════════ */
.countdown {
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 38% at 50% 62%, rgba(255, 122, 26, .1), transparent 70%),
    linear-gradient(180deg, #0d0a14 0%, #160e22 55%, var(--noir) 100%);
}
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 660px; margin: 22px auto 0; }
.cd__box {
  position: relative; padding: 26px 4px 14px;
  text-align: center;
  border: 1px solid rgba(201, 162, 39, .3); border-radius: 14px;
  background: linear-gradient(180deg, rgba(75, 42, 107, .3), rgba(11, 10, 16, .65));
}
.cd__flame {
  position: absolute; top: -14px; left: 50%; width: 12px; height: 20px; margin-left: -6px;
  border-radius: 50% 50% 38% 38% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 78%, #fff6d0 0 18%, #ffbf4a 40%, #ff7a1a 72%, rgba(255, 122, 26, 0) 78%);
  transform-origin: 50% 90%;
  animation: lit-flicker 1.2s ease-in-out infinite alternate;
  box-shadow: 0 0 18px rgba(255, 122, 26, .6);
}
.cd__num {
  display: block;
  font-family: var(--deco); font-weight: 700;
  font-size: clamp(26px, 8.6vw, 52px); line-height: 1.05;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff3c8 0%, #ffc552 34%, #ff7a1a 72%, #c2410c 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 8px rgba(255, 122, 26, .55));
  transform-origin: 50% 100%;
  animation: flame-text 2.6s ease-in-out infinite;
}
.cd__box:nth-child(2) .cd__num, .cd__box:nth-child(2) .cd__flame { animation-delay: -.7s; }
.cd__box:nth-child(3) .cd__num, .cd__box:nth-child(3) .cd__flame { animation-delay: -1.3s; }
.cd__box:nth-child(4) .cd__num, .cd__box:nth-child(4) .cd__flame { animation-delay: -1.9s; }
@keyframes flame-text {
  0%, 100% { transform: skewX(0) scaleY(1); opacity: 1; }
  18% { transform: skewX(-1.6deg) scaleY(1.04); opacity: .9; }
  40% { transform: skewX(1deg) scaleY(.98); opacity: 1; }
  62% { transform: skewX(-.6deg) scaleY(1.03); opacity: .86; }
  80% { transform: skewX(.8deg) scaleY(.99); opacity: .97; }
}
.cd__label { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--creme-d); }
.cd__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.cd.is-over .cd__box { opacity: .5; }

/* Easter egg : la citrouille */
.pumpkin {
  position: absolute; z-index: 2; right: 4%; bottom: 10px;
  width: 50px; height: 46px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: brightness(.3) saturate(.45);
  transition: filter .7s ease, transform .3s;
  -webkit-tap-highlight-color: transparent;
}
.pumpkin svg { width: 100%; height: 100%; overflow: visible; }
.pumpkin__lobe { fill: #d9661a; stroke: #7a3208; stroke-width: 1.5; }
.pumpkin__lobe--mid { fill: #e8761f; }
.pumpkin__stem { fill: #4d5a2a; }
.pumpkin__face path { fill: #1a0d05; transition: fill .4s; }
.pumpkin.is-lit { filter: drop-shadow(0 0 20px rgba(255, 140, 30, .85)); }
.pumpkin.is-lit .pumpkin__face path { fill: url(#g-pumpkin-glow); }
.pumpkin.is-lit .pumpkin__face { animation: pumpkin-glow 1.1s ease-in-out infinite alternate; }
.pumpkin.is-cackling { animation: cackle .18s ease-in-out 10 alternate; }
@keyframes pumpkin-glow { to { opacity: .72; } }
@keyframes cackle { from { transform: rotate(-4deg); } to { transform: rotate(4deg) translateY(-2px); } }

/* ═══════════════════════════════════════════════════
   6 · QUELQUES SOUVENIRS
═══════════════════════════════════════════════════ */
.memories { overflow: hidden; background: linear-gradient(180deg, var(--noir), #110b1a 50%, var(--noir)); }
.memories__list { display: grid; gap: 46px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; }
.memory figure { margin: 0; }
.memory__frame {
  position: relative;
  width: min(86%, 380px); aspect-ratio: 1 / 1; margin: 0 auto;
  padding: 10px; border-radius: 4px;
  background: linear-gradient(135deg, #3a2a12, #c9a227 22%, #6b4f12 46%, #ecd47e 68%, #7a5a14);
  box-shadow: 0 26px 56px rgba(0, 0, 0, .65);
}
.memory:nth-child(odd) .memory__frame { transform: rotate(-1.5deg); }
.memory:nth-child(even) .memory__frame { transform: rotate(1.5deg); }
.memory__frame img, .memory__placeholder {
  width: 100%; height: 100%; object-fit: cover;
  box-shadow: inset 0 0 0 2px rgba(40, 24, 6, .6);
}
/* Illustrations fournies : le cadre épouse leur format (rien n’est rogné) */
.memory__frame--img { aspect-ratio: auto; }
.memory__frame--img img { height: auto; display: block; }
.memory__frame--wide { width: min(100%, 560px); }
.memory__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: radial-gradient(ellipse at 50% 40%, #f3efe7, var(--papier) 60%, #d8d1c3);
  box-shadow: inset 0 0 0 2px rgba(40, 24, 6, .6), inset 0 0 50px rgba(70, 50, 30, .3);
  color: #4a3a52;
}
.memory__placeholder svg { width: 46%; fill: none; stroke: var(--encre-violet); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .78; }
.memory__placeholder span { font-style: italic; font-size: 16px; }
.memory__cap { display: block; margin-top: 18px; text-align: center; }
.memory__when { display: block; font-size: 13px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--citrouille); }
.memory__title { display: block; margin-top: 4px; font-family: var(--deco); font-weight: 700; font-size: 23px; }
.memory__text { display: block; max-width: 400px; margin: 4px auto 0; font-style: italic; font-size: 18px; color: var(--creme-d); text-wrap: pretty; }
.memory__text em { color: var(--or-l); }
@media (min-width: 760px) {
  .memories__list { grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
  .memory:nth-child(even) { margin-top: 70px; }
}

/* Apparition dans la fumée */
.js .smoke { opacity: 0; transform: translateY(28px); filter: blur(10px); transition: opacity 1.1s ease, transform 1.2s var(--ease), filter 1.3s ease; }
.smoke.is-visible { opacity: 1; transform: none; filter: none; }
.js .smoke .memory__frame::after {
  content: ''; position: absolute; inset: -30% -22%; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse 45% 40% at 30% 70%, rgba(222, 212, 242, .8), transparent 70%),
    radial-gradient(ellipse 50% 45% at 70% 40%, rgba(205, 195, 235, .7), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(235, 228, 248, .65), transparent 72%);
  filter: blur(14px);
  transition: opacity 1.9s ease .35s, transform 2.4s var(--ease) .35s;
}
.smoke.is-visible .memory__frame::after { opacity: 0; transform: translateY(-34%) scale(1.45); }

/* ═══════════════════════════════════════════════════
   7 · RSVP
═══════════════════════════════════════════════════ */
.rsvp { background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(75, 42, 107, .4), transparent 70%), var(--noir); }
.rsvp__cta { text-align: center; }
.rsvp__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease); }
.rsvp__panel.is-open { grid-template-rows: 1fr; }
.rsvp__inner { min-height: 0; overflow: hidden; }
.rsvp__panel.is-open .rsvp__inner { overflow: visible; }

.form, .thanks {
  max-width: 560px; margin: 26px auto 4px;
  padding: 26px 20px;
  border: 1px solid rgba(201, 162, 39, .35); border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 20, 49, .9), rgba(14, 10, 22, .92));
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
}
.form[hidden], .thanks[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.field > label, .field > legend, .field__label {
  display: block; margin-bottom: 8px; padding: 0;
  font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--or-l);
}
.field input[type="text"], .field textarea {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 18px; color: var(--creme);
  background: rgba(11, 10, 16, .65);
  border: 1px solid rgba(243, 233, 210, .2); border-radius: 12px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(243, 233, 210, .38); font-style: italic; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--citrouille); box-shadow: 0 0 0 3px rgba(255, 122, 26, .2); }
.field .is-invalid { border-color: #ff7b6b; box-shadow: 0 0 0 3px rgba(255, 123, 107, .18); }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px;
  border: 1px solid rgba(243, 233, 210, .22); border-radius: 12px;
  font-size: 19px; font-weight: 600; cursor: pointer;
  transition: background-color .25s, border-color .25s;
}
.seg__opt input:checked + span { border-color: var(--citrouille); background: rgba(255, 122, 26, .16); color: #fff; }
.seg__opt--no input:checked + span { border-color: #9a7ac0; background: rgba(75, 42, 107, .4); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--citrouille); outline-offset: 2px; }

.attend { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .5s var(--ease), opacity .4s; }
.attend.is-collapsed { grid-template-rows: 0fr; opacity: 0; }
.attend__inner { min-height: 0; overflow: hidden; }

.stepper { display: inline-flex; align-items: center; border: 1px solid rgba(243, 233, 210, .22); border-radius: 999px; background: rgba(11, 10, 16, .5); }
.stepper__btn { width: 50px; height: 50px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--citrouille-l); }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper__btn .ico { width: 20px; height: 20px; }
.stepper__val {
  width: 54px; padding: 0; border: 0; background: none;
  text-align: center; font-family: var(--deco); font-weight: 700; font-size: 24px; color: var(--creme);
  -moz-appearance: textfield; appearance: textfield;
}
.stepper__val::-webkit-inner-spin-button, .stepper__val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.check { position: relative; display: flex; align-items: center; gap: 12px; margin: 2px 0 18px; font-size: 18px; cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  position: relative; flex: none; width: 26px; height: 26px; border-radius: 7px;
  border: 1px solid rgba(243, 233, 210, .35); background: rgba(11, 10, 16, .5);
  transition: background-color .2s, border-color .2s;
}
.check input:checked + .check__box { background: var(--citrouille); border-color: var(--citrouille); }
.check input:checked + .check__box::after {
  content: ''; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px;
  border: solid #1a0d05; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.check input:focus-visible + .check__box { outline: 2px solid var(--citrouille); outline-offset: 2px; }

.form__status { min-height: 0; margin-bottom: 10px; font-style: italic; color: #ffb4a0; }
.form__status:empty { display: none; }

.thanks { text-align: center; padding: 34px 22px; }
.thanks:focus { outline: none; }
.thanks__ghost { display: none; width: 76px; margin: 0 auto 12px; fill: rgba(243, 233, 210, .92); filter: drop-shadow(0 0 16px rgba(243, 233, 210, .45)); }
.thanks__ghost .eye { fill: var(--noir); }
.thanks__ghost .mouth { fill: none; stroke: var(--noir); stroke-width: 2.4; stroke-linecap: round; }
.thanks__ghost .tear { fill: #9fd0ff; }
.thanks.is-no .thanks__ghost { display: block; animation: ghost-away 4.2s ease-in .9s forwards; }
@keyframes ghost-away {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-8px, -8px) rotate(-5deg); }
  100% { transform: translate(150px, -200px) rotate(12deg) scale(.55); opacity: 0; }
}
.thanks__title { font-family: var(--deco); font-weight: 700; font-size: 30px; color: var(--citrouille); }
.thanks.is-no .thanks__title { color: var(--creme); }
.thanks__text { margin: 10px auto 22px; max-width: 420px; font-size: 19px; color: var(--creme-d); text-wrap: balance; }

/* ═══════════════════════════════════════════════════
   8 · PIED DE PAGE
═══════════════════════════════════════════════════ */
.footer {
  position: relative;
  padding: 72px 0 calc(116px + var(--safe-b));
  text-align: center;
  background: linear-gradient(180deg, var(--noir), #07060a);
  border-top: 1px solid rgba(201, 162, 39, .15);
}
.monogram--footer { font-size: 36px; }
.monogram__bat { padding: 6px; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.monogram__bat .bat-ico { width: 72px; height: 18px; }
.monogram__bat.is-away { visibility: hidden; }
.footer__date { margin-top: 14px; font-size: 20px; font-weight: 500; letter-spacing: .06em; }
.footer__places { font-style: italic; color: var(--creme-d); }
.footer__secrets { margin-top: 18px; font-style: italic; font-size: 16.5px; color: rgba(243, 233, 210, .55); }
.footer__secrets strong { color: var(--citrouille-l); font-weight: 600; }
.promo {
  max-width: 460px; margin: 38px auto 0; padding: 26px 22px;
  border: 1px solid rgba(201, 162, 39, .3); border-radius: 18px;
  background: rgba(201, 162, 39, .05);
}
.promo__q { font-family: var(--deco); font-weight: 700; font-size: 19px; line-height: 1.3; }
.promo__sub { margin: 6px 0 16px; font-size: 16px; color: var(--creme-d); }
.footer__credit { margin-top: 26px; font-size: 15.5px; color: rgba(243, 233, 210, .55); }
.footer__credit a { color: var(--or-l); text-underline-offset: 3px; }

/* Bouton RSVP collant */
.sticky-cta {
  position: fixed; z-index: 40; left: 50%; bottom: calc(14px + var(--safe-b));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: linear-gradient(180deg, #ff9442, #e25f08);
  color: #1a0d05; text-decoration: none;
  font-weight: 700; font-size: 17.5px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), 0 0 30px rgba(255, 122, 26, .35);
  transform: translate(-50%, 160%);
  transition: transform .55s var(--ease);
}
.sticky-cta.is-shown { transform: translate(-50%, 0); }
.sticky-cta .bat-ico { width: 36px; height: 9px; }

/* Toast des secrets */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(14px + var(--safe-t));
  max-width: calc(100% - 120px);
  padding: 10px 18px; border-radius: 18px;
  background: rgba(20, 13, 30, .92); border: 1px solid rgba(255, 122, 26, .5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 16px; text-align: center; line-height: 1.3;
  transform: translate(-50%, -160%); opacity: 0;
  transition: transform .5s var(--ease), opacity .4s;
  pointer-events: none;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }

/* ─── Apparitions au scroll ───────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ─── Petits écrans (iPhone SE, aperçu catalogue) ─── */
@media (max-height: 700px) {
  .gate__names { font-size: clamp(36px, 11vw, 64px); }
  .gate__enter { margin-top: 26px; }
  .gate__date { margin-top: 14px; }
  .gate__candles { bottom: 3vh; }
}

/* ─── Animations allégées ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .fog i, .cloud, .gate__enter-ring { animation: none !important; }
  .hero.is-awake .ch { animation: none; opacity: 1; }
}

/* ═══════════════════════════════════════════════════
   JEU CONCOURS « MAGIE »
═══════════════════════════════════════════════════ */

/* Zones de toucher d’au moins 44 px sur les secrets (sans changer leur aspect) */
.monogram__bat { min-width: 64px; min-height: 44px; padding: 13px 8px; }
.mound__soil::before, .invite__kicker em::after {
  content: ''; position: absolute; inset: -12px -6px;
}
.invite__kicker em { position: relative; }
.pumpkin:not(.is-lit) { animation: pumpkin-wink 7s ease-in-out infinite; }
@keyframes pumpkin-wink { 0%, 86%, 100% { filter: brightness(.3) saturate(.45); } 92% { filter: brightness(.62) saturate(.8); } }

/* Étincelles orange et lettre qui s’envole vers le compteur */
.spark {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff6d0 0 20%, #ffb340 45%, #ff7a1a 70%, rgba(255, 122, 26, 0) 72%);
  box-shadow: 0 0 10px rgba(255, 122, 26, .9);
}
.fly-letter {
  position: absolute; left: 0; top: 0; pointer-events: none;
  font-family: var(--deco); font-weight: 700; font-size: 44px; line-height: 1;
  color: var(--citrouille-l); text-shadow: 0 0 18px rgba(255, 122, 26, .9), 0 0 4px #fff3c4;
}

/* Bandeau d’introduction (après l’ouverture) */
.quest-intro {
  position: fixed; z-index: 48; left: 12px; right: 12px; bottom: calc(14px + var(--safe-b));
  max-width: 460px; margin: 0 auto;
  padding: 18px 46px 16px 18px;
  border: 1px solid rgba(255, 122, 26, .6); border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 22, 54, .97), rgba(16, 11, 26, .97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6), 0 0 40px rgba(255, 122, 26, .2);
  animation: rise .6s var(--ease) both;
}
.quest-intro__text { font-size: 18px; line-height: 1.4; }
.quest-intro__text strong { color: var(--citrouille-l); }
.quest-intro__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quest-intro__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; background: none; cursor: pointer; color: var(--creme-d);
}
.quest-intro__close .ico { width: 18px; height: 18px; }

/* Compteur flottant « 🎃 M A _ _ _ — 2 / 5 secrets » */
.quest-bar {
  position: fixed; z-index: 41; left: 50%; bottom: calc(12px + var(--safe-b));
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, .5);
  background: rgba(16, 11, 26, .9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--creme); font: inherit; font-size: 16px; white-space: nowrap; cursor: pointer;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5);
  transform: translateX(-50%);
  -webkit-tap-highlight-color: transparent;
}
.quest-bar__word { display: inline-flex; gap: 5px; font-family: var(--deco); font-weight: 700; letter-spacing: .02em; }
.quest-bar__l { min-width: .7em; text-align: center; color: rgba(243, 233, 210, .45); }
.quest-bar__l.is-on { color: var(--citrouille-l); text-shadow: 0 0 10px rgba(255, 122, 26, .8); }
.quest-bar__l.is-pop { animation: letter-pop .7s var(--ease); }
@keyframes letter-pop { 40% { transform: scale(1.8); } }
.quest-bar__count { font-size: 14.5px; color: var(--creme-d); }
.quest-bar.is-complete { border-color: var(--citrouille); box-shadow: 0 0 26px rgba(255, 122, 26, .45); animation: breathe 2.8s ease-in-out infinite; }
/* Le bouton « Répondre au faire-part » passe au-dessus du compteur */
body.has-quest .sticky-cta { bottom: calc(66px + var(--safe-b)); }
body.has-quest .footer { padding-bottom: calc(170px + var(--safe-b)); }

/* Fenêtre du jeu */
.quest__word { display: flex; justify-content: center; gap: 8px; margin: 16px 0 6px; }
.quest__tile {
  width: 46px; height: 54px; display: grid; place-items: center;
  border: 1px solid rgba(201, 162, 39, .45); border-radius: 10px;
  background: rgba(11, 10, 16, .55);
  font-family: var(--deco); font-weight: 700; font-size: 26px; color: rgba(243, 233, 210, .3);
}
.quest__tile.is-on { color: var(--citrouille-l); border-color: var(--citrouille); text-shadow: 0 0 12px rgba(255, 122, 26, .8); background: rgba(255, 122, 26, .1); }
.quest__lead { margin-top: 12px; text-align: center; color: var(--creme-d); }
.quest__lead strong { color: var(--citrouille-l); }
.quest__bravo { margin-top: 14px; text-align: center; font-family: var(--deco); font-weight: 700; font-size: 22px; line-height: 1.3; color: var(--citrouille-l); }
.quest__small { margin-top: 14px; text-align: center; font-size: 15.5px; color: rgba(243, 233, 210, .6); }
.quest__small a, .quest__form a { color: var(--or-l); }
.quest__pane > .btn { margin-top: 18px; }
.quest__hints { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.quest__hint {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border: 1px solid rgba(243, 233, 210, .12); border-radius: 14px;
  background: rgba(11, 10, 16, .35); font-size: 17px; line-height: 1.3;
}
.quest__hint-ico { font-size: 22px; text-align: center; }
.quest__hint-go { min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; font-size: 15px; color: var(--citrouille-l); white-space: nowrap; }
.quest__hint-ok { display: none; font-size: 20px; color: #7ee08a; padding: 0 8px; }
.quest__hint.is-found { opacity: .55; }
.quest__hint.is-found .quest__hint-txt { text-decoration: line-through; text-decoration-color: rgba(243, 233, 210, .4); }
.quest__hint.is-found .quest__hint-go { display: none; }
.quest__hint.is-found .quest__hint-ok { display: inline; }
.quest__form { margin-top: 18px; }
.quest__form .check { font-size: 17px; align-items: flex-start; }
.quest__form .check__box { margin-top: 2px; }
.field-row { display: grid; gap: 0 12px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field input[type="email"], .field input[type="date"], .field input[type="tel"] {
  width: 100%; padding: 13px 16px;
  font: inherit; font-size: 18px; color: var(--creme);
  background: rgba(11, 10, 16, .65);
  border: 1px solid rgba(243, 233, 210, .2); border-radius: 12px;
  color-scheme: dark;
}
.field input[type="email"]:focus, .field input[type="date"]:focus, .field input[type="tel"]:focus {
  outline: none; border-color: var(--citrouille); box-shadow: 0 0 0 3px rgba(255, 122, 26, .2);
}
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--creme-d); }
#qMot { text-transform: uppercase; letter-spacing: .2em; }
#qMot::placeholder { text-transform: none; letter-spacing: 0; }
.seg--stack { grid-template-columns: 1fr; }
@media (min-width: 520px) { .seg--stack { grid-template-columns: repeat(3, 1fr); } .seg--stack .seg__opt span { font-size: 16px; } }
.quest__code {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 18px; padding: 18px; border: 1px dashed rgba(255, 122, 26, .7); border-radius: 16px;
  background: rgba(255, 122, 26, .08); text-align: center;
}
.quest__code span { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--creme-d); }
.quest__code strong { font-family: var(--deco); font-size: 32px; letter-spacing: .08em; color: var(--citrouille-l); user-select: all; }

/* Page du règlement */
.rules-page { background: var(--noir); }
.rules { width: min(100% - 40px, 720px); margin: 0 auto; padding: 40px 0 80px; }
.rules__back { display: inline-flex; min-height: 44px; align-items: center; color: var(--or-l); }
.rules__title { margin: 10px 0 26px; font-family: var(--deco); font-weight: 700; font-size: clamp(28px, 7vw, 40px); line-height: 1.15; }
.rules section { padding: 16px 0; border-top: 1px solid rgba(201, 162, 39, .2); }
.rules h2 { font-family: var(--deco); font-weight: 700; font-size: 19px; color: var(--citrouille-l); }
.rules p { margin-top: 8px; color: var(--creme-d); }
.rules strong { color: var(--creme); }
.rules a { color: var(--or-l); }
.rules__foot { margin-top: 26px; text-align: center; }
.rules__foot .btn { color: #1a0d05; }
