/* ═══════════════════════════════════════════════
   « Poussière d’Étoiles » · theme.css (moteur de faire-part CelebraPlume)
   Noir · Blanc · Or · Paillettes. Couleurs : variables de :root, remplacées par la
   palette choisie (InvitationRenderer::head() fournit aussi --<couleur>-rgb).
═══════════════════════════════════════════════ */

:root {
  --noir:        #0b0b0d;
  --noir-2:      #131316;
  --noir-3:      #1b1b1f;
  --blanc:       #fdfcf9;
  --ivoire:      #f6f3ec;
  --perle:       #e9e4d9;

  --or:          #cfa55b;
  --or-clair:    #f0dca8;
  --or-pale:     #fbf1d6;
  --or-profond:  #9c7a36;
  --or-texte:    #7a5c22;   /* or lisible sur fond clair (AA) */

  --encre:       #141416;
  --gris:        #5f5b55;
  --noir-rgb: 11 11 13; --noir-2-rgb: 19 19 22; --or-rgb: 207 165 91; --or-clair-rgb: 240 220 168;
  --or-profond-rgb: 156 122 54; --or-pale-rgb: 251 241 214;
  --gris-clair:  rgba(255, 255, 255, .66);

  --foil: linear-gradient(105deg, var(--or-profond) 0%, var(--or-clair) 16%, var(--or-pale) 28%, var(--or) 42%, var(--or-profond) 55%, var(--or-clair) 70%, var(--or-pale) 80%, var(--or) 100%);
  --foil-btn: linear-gradient(120deg, var(--or-profond) 0%, var(--or-clair) 30%, var(--or-pale) 48%, var(--or) 66%, var(--or-profond) 100%);
  --foil-dark: linear-gradient(105deg, var(--or-texte) 0%, var(--or-profond) 18%, var(--or) 30%, var(--or-texte) 46%, var(--or-texte) 58%, var(--or-profond) 74%, var(--or) 84%, var(--or-texte) 100%);

  --deco:   "Cinzel", "Cormorant Garamond", Georgia, serif;
  --serif:  "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans:   "Jost", system-ui, -apple-system, sans-serif;

  --ease:     cubic-bezier(.22, 1, .36, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --gutter:   20px;
  --nav-h:    68px;
}

/* ── Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--noir);
  color: var(--blanc);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.js body.is-locked { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
::selection { background: var(--or); color: var(--noir); }
:focus-visible { outline: 2px solid var(--or-clair); outline-offset: 3px; border-radius: 4px; }

.ico {
  width: 1.15em; height: 1.15em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.ico--fill { fill: currentColor; stroke: none; }

.container { width: min(1120px, 100% - var(--gutter) * 2); margin-inline: auto; }
.section { position: relative; padding: clamp(80px, 12vw, 150px) 0; }

/* Dorure animée (texte) */
.foil {
  background: var(--foil);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: foil 7s linear infinite;
}
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }

/* Ornements Art déco */
.deco, .crest { fill: none; stroke: var(--or); stroke-width: 1.2; }
.deco .deco-fill, .crest .deco-fill, .deco-fill { fill: var(--or); stroke: none; }
.deco { position: absolute; width: 56px; height: 56px; pointer-events: none; }
.deco.tl { top: 14px; left: 14px; }
.deco.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.deco.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.deco.br { bottom: 14px; right: 14px; transform: scale(-1, -1); }
.crest { display: block; width: 170px; height: 51px; margin: 0 auto; }
.crest--sm { width: 130px; height: 39px; }

/* Paillettes (texture SVG, aucune image) */
.glitter { position: absolute; left: 0; right: 0; height: 150px; pointer-events: none; z-index: 1; opacity: .75; }
.glitter::before, .glitter::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='2' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .84 0 0 0 0 .55 0 0 0 30 -20.4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  animation: twinkle 2.8s ease-in-out infinite alternate;
}
.glitter::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.5' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .82 0 0 0 32 -22.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  animation-delay: -1.4s; animation-duration: 3.4s;
}
.glitter--bottom { bottom: 0; -webkit-mask-image: linear-gradient(to top, transparent, #000 35%, transparent); mask-image: linear-gradient(to top, transparent, #000 35%, transparent); }
.glitter--top { top: 0; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 35%, transparent); }
@keyframes twinkle { from { opacity: .2; } to { opacity: .85; } }

/* ── Boutons ─────────────────────────── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 15px 30px; border-radius: 999px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s, border-color .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn--gold {
  color: var(--noir); background: var(--foil-btn); background-size: 160% 100%;
  box-shadow: 0 14px 34px rgb(var(--or-rgb) / .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .42); backdrop-filter: blur(6px); background: rgba(255, 255, 255, .04); }
.btn--line  { color: var(--or-clair); border: 1px solid rgb(var(--or-rgb) / .55); }
.btn--sm    { min-height: 44px; padding: 11px 20px; font-size: 11.5px; letter-spacing: .16em; }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgb(var(--or-rgb) / .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
  .btn--gold:hover::after { transform: translateX(120%); }
  .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
  .btn--line:hover { border-color: var(--or-clair); background: rgb(var(--or-rgb) / .1); }
}

/* ── En-têtes de section ─────────────── */
.head { text-align: center; margin-bottom: clamp(44px, 7vw, 76px); }
.head .crest { margin-bottom: 18px; }
.head__tag {
  font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
  color: var(--or);
}
.head__title {
  margin-top: 14px; font-family: var(--serif); font-weight: 400;
  font-size: clamp(38px, 7.4vw, 70px); line-height: 1.05; letter-spacing: -.01em;
}
.head__title em {
  font-family: var(--script); font-style: normal; font-weight: 400; font-size: 1.18em;
  background: var(--foil); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: foil 7s linear infinite; padding: 0 .08em;
}
.head__sub {
  max-width: 560px; margin: 18px auto 0; font-style: italic;
  font-size: clamp(18px, 2.4vw, 21px); color: var(--gris-clair);
}
.head__sub strong { font-style: normal; font-weight: 600; color: var(--or-clair); }

/* Sections claires */
.announce, .program, .infos { background: var(--ivoire); color: var(--encre); }
.announce .head__tag, .program .head__tag, .infos .head__tag { color: var(--or-texte); }
.announce .head__sub, .program .head__sub, .infos .head__sub { color: var(--gris); }
.program .deco, .program .crest, .infos .crest, .announce .crest, .announce .deco { stroke: var(--or-profond); }
.program .deco-fill, .infos .deco-fill, .announce .deco-fill { fill: var(--or-profond); }
.announce .head__title em, .program .head__title em, .infos .head__title em { background-image: var(--foil-dark); }

/* ── Progression + poussière d'étoiles ─ */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 160;
  background: var(--foil); transform-origin: 0 50%; transform: scaleX(0);
}
.stardust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 300; pointer-events: none; }

/* ════════════════════════════════════════
   INTRO
═══════════════════════════════════════════ */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 45%, var(--noir-3) 0%, var(--noir) 62%);
  transition: opacity 1.3s var(--ease), visibility 1.3s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }

.intro__veil {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(5, 5, 6, .75) 100%);
}
.intro__flash {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fffaf0, #f3e6c8 70%);
  opacity: 0; transition: opacity .7s var(--ease-io);
}
.intro.is-flash .intro__flash { opacity: 1; }

.intro__frame { position: absolute; inset: 0; z-index: 3; pointer-events: none; transition: opacity .8s var(--ease); }
.intro__frame .deco { width: 64px; height: 64px; }
.intro__frame .deco.tl { top: 22px; left: 22px; }
.intro__frame .deco.tr { top: 22px; right: 22px; }
.intro__frame .deco.bl { bottom: 22px; left: 22px; }
.intro__frame .deco.br { bottom: 22px; right: 22px; }
.intro.is-open .intro__frame { opacity: 0; }

.intro__content {
  position: relative; z-index: 5; text-align: center; padding: 40px 24px;
  transition: opacity .7s var(--ease), transform .9s var(--ease), filter .7s;
}
.intro.is-flash .intro__content { opacity: 0; transform: scale(.96); filter: blur(6px); pointer-events: none; }

.intro__tag {
  margin-top: min(30px, 3.5vh); font-family: var(--sans); font-size: 11.5px; letter-spacing: .5em; text-transform: uppercase;
  color: var(--gris-clair); opacity: 0; animation: rise 1.2s var(--ease) .45s forwards;
}
.intro__names {
  margin-top: 8px; font-family: var(--script); font-weight: 400; line-height: 1;
  font-size: clamp(52px, min(23vw, 14vh), 150px); display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 6px 30px rgb(var(--or-rgb) / .25));
  opacity: 0; animation: rise 1.4s var(--ease) .65s forwards;
}
.intro__names .foil { padding: 0 .12em .06em; }
.intro__amp { font-family: var(--deco); font-size: .26em; color: #fff; letter-spacing: .1em; margin: -.1em 0 .05em; }
.intro__date {
  margin-top: 14px; font-family: var(--deco); font-size: clamp(15px, 3.4vw, 19px); letter-spacing: .38em; color: var(--or-clair);
  opacity: 0; animation: rise 1.2s var(--ease) .9s forwards;
}
.intro__hint {
  margin-top: 20px; font-family: var(--sans); font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gris-clair); opacity: 0; animation: rise 1.2s var(--ease) 1.35s forwards;
}
.intro__hint span { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .24em; color: var(--or); }
.intro__skip {
  position: absolute; z-index: 9; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .7); border: 1px solid rgba(255, 255, 255, .22); background: rgba(0, 0, 0, .3);
  backdrop-filter: blur(6px); transition: color .3s, border-color .3s;
}
.intro__skip:hover { color: #fff; border-color: rgba(255, 255, 255, .6); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ── Bouton musique ─────────────────── */
.sound {
  position: fixed; z-index: 150; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  color: var(--noir); background: var(--foil-btn); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.sound.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.sound__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.sound__bars i { width: 3px; height: 100%; border-radius: 2px; background: var(--noir); transform-origin: bottom; animation: bars 1.1s ease-in-out infinite; }
.sound__bars i:nth-child(2) { animation-delay: .25s; }
.sound__bars i:nth-child(3) { animation-delay: .5s; }
.sound__bars i:nth-child(4) { animation-delay: .15s; }
@keyframes bars { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.sound__mute { display: none; width: 22px; height: 22px; }
.sound.is-muted .sound__bars { display: none; }
.sound.is-muted .sound__mute { display: block; }

/* ════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 140;
  padding-top: env(safe-area-inset-top);
  transition: transform .6s var(--ease), background-color .5s, box-shadow .5s;
}
.nav.is-scrolled {
  background: rgb(var(--noir-rgb) / .8); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgb(var(--or-rgb) / .22);
}
.nav.is-hidden { transform: translateY(-105%); }
.nav__inner {
  width: min(1200px, 100% - var(--gutter) * 2); margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}
.nav__brand { font-family: var(--deco); font-size: 20px; letter-spacing: .14em; color: #fff; margin-right: auto; }
.nav__brand span { font-family: var(--script); font-size: 1.3em; letter-spacing: 0; color: var(--or); }
.nav__links { display: none; gap: 34px; }
.nav__link {
  position: relative; font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85); padding: 6px 0; transition: color .3s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--or);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
@media (hover: hover) {
  .nav__link:hover { color: #fff; }
  .nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__cta {
  display: none; font-family: var(--sans); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 11px 20px; border-radius: 999px; color: var(--or-clair); border: 1px solid rgb(var(--or-rgb) / .6);
  transition: background-color .3s, color .3s;
}
.nav__cta:hover { background: var(--or); color: var(--noir); }

.burger { position: relative; width: 44px; height: 44px; margin-right: -10px; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; border-radius: 2px;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.drawer-overlay {
  position: fixed; inset: 0; z-index: 135; background: rgba(5, 5, 6, .6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 138; width: min(86vw, 360px);
  padding: calc(var(--nav-h) + 24px + env(safe-area-inset-top)) 32px calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--noir-2), var(--noir)); border-left: 1px solid rgb(var(--or-rgb) / .25);
  transform: translateX(100%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer__brand { font-family: var(--script); font-size: 42px; line-height: 1; color: var(--or-clair); }
.drawer__brand span { font-size: .7em; color: #fff; }
.drawer__links { display: flex; flex-direction: column; margin-top: 30px; }
.drawer__links a {
  padding: 14px 0; font-family: var(--serif); font-size: 24px; color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .08); transition: color .3s, padding-left .4s var(--ease);
}
.drawer__links a:hover { color: var(--or-clair); padding-left: 6px; }
.drawer__links .drawer__cta {
  margin-top: 26px; border: 0; text-align: center; padding: 15px; border-radius: 999px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--noir); background: var(--foil-btn);
}
.drawer__links .drawer__cta:hover { color: var(--noir); padding-left: 15px; }
.drawer__foot { margin-top: auto; font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--or); }

/* ════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center; background: var(--noir);
}
.hero__media { position: absolute; inset: 0; }
.hero__photo {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.6);
  transform: scale(1.1); transition: transform 12s var(--ease);
}
.is-open-site .hero__photo { transform: scale(1); }
.hero__sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(1px 1px at 12% 18%, rgb(var(--or-pale-rgb) / .9), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 22%, rgb(var(--or-clair-rgb) / .9), transparent 60%),
    radial-gradient(1px 1px at 33% 72%, rgb(var(--or-pale-rgb) / .7), transparent 60%),
    radial-gradient(1.5px 1.5px at 64% 58%, rgb(var(--or-clair-rgb) / .8), transparent 60%),
    radial-gradient(1px 1px at 88% 80%, rgb(var(--or-pale-rgb) / .8), transparent 60%),
    radial-gradient(1px 1px at 22% 44%, rgb(var(--or-clair-rgb) / .6), transparent 60%),
    radial-gradient(ellipse 70% 55% at 50% 38%, rgb(var(--or-rgb) / .16), transparent 70%),
    linear-gradient(180deg, var(--noir-3) 0%, var(--noir) 70%);
  background-size: 260px 260px, 340px 340px, 300px 300px, 420px 420px, 380px 380px, 220px 220px, 100% 100%, 100% 100%;
  animation: sky 120s linear infinite;
}
@keyframes sky { to { background-position: 260px 520px, -340px 680px, 300px 600px, -420px 840px, 380px 760px, -220px 440px, 0 0, 0 0; } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 42%, rgb(var(--or-rgb) / .12), transparent 60%),
    linear-gradient(to bottom, rgb(var(--noir-rgb) / .55) 0%, rgb(var(--noir-rgb) / .1) 30%, rgb(var(--noir-rgb) / .35) 70%, var(--noir) 100%);
}
.hero__content { position: relative; z-index: 2; padding: calc(var(--nav-h) + 30px) var(--gutter) 110px; }
.hero__eyebrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: var(--or-clair);
  opacity: 0; animation: rise 1.2s var(--ease) .3s forwards; animation-play-state: paused;
}
.hero__title {
  margin-top: 10px; display: flex; flex-direction: column; align-items: center; line-height: .98;
  font-weight: 400; filter: drop-shadow(0 8px 30px rgba(0, 0, 0, .55));
}
.hero__name {
  font-family: var(--script); font-size: clamp(76px, 21vw, 172px); font-size: clamp(76px, min(21vw, 17svh), 172px); padding: 0 .14em .04em;
  opacity: 0; animation: rise 1.5s var(--ease) .5s forwards, foil 7s linear infinite; animation-play-state: paused;
}
.hero__name + .hero__amp + .hero__name { animation-delay: .8s, 0s; }
.hero__amp {
  font-family: var(--deco); font-size: clamp(18px, 4.4vw, 30px); letter-spacing: .2em; color: #fff; margin: -.2em 0 -.1em;
  opacity: 0; animation: rise 1.2s var(--ease) .7s forwards; animation-play-state: paused;
}
.hero__crest { margin-top: 22px; opacity: 0; animation: rise 1.2s var(--ease) 1s forwards; animation-play-state: paused; }
.hero__date {
  margin-top: 16px; font-family: var(--deco); font-size: clamp(17px, 3.6vw, 24px); letter-spacing: .14em;
  opacity: 0; animation: rise 1.2s var(--ease) 1.1s forwards; animation-play-state: paused;
}
.hero__place {
  margin-top: 8px; font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gris-clair);
  opacity: 0; animation: rise 1.2s var(--ease) 1.2s forwards; animation-play-state: paused;
}
.hero__cta {
  margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  opacity: 0; animation: rise 1.2s var(--ease) 1.35s forwards; animation-play-state: paused;
}
.hero__cta .btn { width: min(100%, 320px); }
.is-open-site .hero__eyebrow, .is-open-site .hero__name, .is-open-site .hero__amp,
.is-open-site .hero__crest, .is-open-site .hero__date, .is-open-site .hero__place, .is-open-site .hero__cta { animation-play-state: running; }
html:not(.js) .hero__eyebrow, html:not(.js) .hero__name, html:not(.js) .hero__amp, html:not(.js) .hero__crest,
html:not(.js) .hero__date, html:not(.js) .hero__place, html:not(.js) .hero__cta { opacity: 1; animation: none; }

.hero__scroll {
  position: absolute; z-index: 2; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: 44px; height: 60px; display: grid; place-items: center;
}
.hero__scroll-line { position: relative; width: 1px; height: 48px; overflow: hidden; background: rgb(var(--or-clair-rgb) / .25); }
.hero__scroll-line::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--or-clair);
  animation: scrollDot 2.2s var(--ease-io) infinite;
}
@keyframes scrollDot { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

/* ════════════════════════════════════════
   COMPTE À REBOURS
═══════════════════════════════════════════ */
.countdown { overflow: hidden; }
.countdown__bg {
  position: absolute; inset: 0; opacity: .32;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgb(var(--or-rgb) / .35), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 55%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 55%, #000 10%, transparent 72%);
}
.countdown .container { position: relative; }
.cd { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; }
.cd__box {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 26px 10px 22px; background: rgb(var(--noir-rgb) / .6); backdrop-filter: blur(6px);
  border: 1px solid rgb(var(--or-rgb) / .45);
}
.cd__box::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgb(var(--or-rgb) / .18); pointer-events: none; }
.cd__num { font-family: var(--deco); font-size: clamp(42px, 11vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.cd__label { margin-top: 12px; font-family: var(--sans); font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--gris-clair); }
.cd__actions { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ════════════════════════════════════════
   FAIRE-PART
═══════════════════════════════════════════ */
.card-deco {
  position: relative; max-width: 760px; margin: 0 auto; text-align: center;
  padding: clamp(70px, 10vw, 100px) clamp(26px, 7vw, 80px);
  background: var(--blanc);
  box-shadow: 0 40px 90px -30px rgba(20, 20, 22, .28), 0 0 0 1px rgb(var(--or-profond-rgb) / .18);
}
.card-deco::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgb(var(--or-profond-rgb) / .22); pointer-events: none; }
.announce__kicker { font-family: var(--sans); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: var(--or-texte); }
.announce__names {
  margin: 18px 0 20px; display: flex; flex-direction: column; align-items: center; line-height: 1;
  font-family: var(--script); font-weight: 400; font-size: clamp(64px, 15vw, 112px); color: var(--encre);
}
.announce__amp {
  font-family: var(--deco); font-size: .3em; letter-spacing: .1em; margin: -.05em 0 .1em;
  background: var(--foil-dark); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; animation: foil 7s linear infinite;
}
.announce__text { font-size: clamp(19px, 2.6vw, 22px); line-height: 1.65; color: #34322e; text-wrap: balance; }
@media (max-width: 599px) {
  .announce__text br { display: none; }
  .announce__kicker { letter-spacing: .26em; }
}
.announce__text + .announce__text { margin-top: 14px; }
.announce__text strong { font-weight: 600; color: var(--encre); }
.card-deco .crest--sm { margin: 26px auto; }
.announce__foot { margin-top: 34px; font-family: var(--script); font-size: clamp(30px, 6vw, 40px); line-height: 1.2; color: var(--or-texte); }

/* ════════════════════════════════════════
   PHOTOS
═══════════════════════════════════════════ */
.photos { background: radial-gradient(ellipse at 50% 0%, var(--noir-3), var(--noir) 60%); }
.gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; grid-auto-flow: dense; gap: 10px;
}
.gallery__item {
  position: relative; overflow: hidden; display: block; padding: 0; background: var(--noir-3);
  outline-offset: 4px;
}
.gallery__item::after {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(255, 255, 255, .28); pointer-events: none;
  transition: inset .6s var(--ease), border-color .6s;
}
.gallery--1 { grid-template-columns: 1fr; grid-auto-rows: 70vw; max-width: 720px; margin-inline: auto; }
.gallery--1 .gallery__item, .gallery--3 .gallery__item:first-child, .gallery--5 .gallery__item:first-child { grid-column: 1 / -1; }
.gallery--2 .gallery__item { grid-row: span 2; }
.gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(.92);
  transition: transform 1.2s var(--ease), filter 1s var(--ease);
}
@media (hover: hover) {
  .gallery__item:hover img { transform: scale(1.05); filter: grayscale(.15) sepia(.2) contrast(1.02); }
  .gallery__item:hover::after { inset: 12px; border-color: var(--or-clair); }
}
.gallery__note { margin-top: 18px; text-align: center; font-family: var(--sans); font-size: 12px; letter-spacing: .06em; color: rgba(255, 255, 255, .42); }

/* ════════════════════════════════════════
   PROGRAMME — timeline
═══════════════════════════════════════════ */
.timeline { position: relative; max-width: 980px; margin: 0 auto; --fill: 0; }
.timeline::before, .timeline::after {
  content: ""; position: absolute; top: 10px; bottom: 10px; left: 17px; width: 1px;
}
.timeline::before { background: rgb(var(--or-profond-rgb) / .25); }
.timeline::after {
  background: linear-gradient(to bottom, var(--or-profond), var(--or), var(--or-profond));
  transform-origin: top; transform: scaleY(var(--fill)); box-shadow: 0 0 10px rgb(var(--or-rgb) / .6);
}
.step { position: relative; padding-left: 52px; }
.step + .step { margin-top: 26px; }
.step__star {
  position: absolute; left: 7px; top: 22px; width: 21px; height: 21px; z-index: 1;
  background: #cfc7b6;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  transition: background-color .6s, transform .8s var(--ease), filter .6s;
}
.step.is-lit .step__star { background: var(--or); transform: rotate(45deg) scale(1.15); filter: drop-shadow(0 0 6px rgb(var(--or-rgb) / .9)); }
.step__card {
  position: relative; background: var(--blanc); padding: 28px 24px 26px;
  border: 1px solid rgb(var(--or-profond-rgb) / .2); box-shadow: 0 24px 60px -30px rgba(20, 20, 22, .25);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
@media (hover: hover) { .step__card:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(20, 20, 22, .35); } }
.step__time {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-family: var(--deco); font-size: 14px; letter-spacing: .12em; color: var(--or-clair); background: var(--noir);
}
.step__time .ico { width: 14px; height: 14px; color: var(--or); }
.step__icon {
  position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; color: var(--or-profond); border: 1px solid rgb(var(--or-profond-rgb) / .35);
}
.step__icon .ico { width: 22px; height: 22px; }
/* Moment sans heure : le titre arrive en première ligne, à côté de l'icône */
.step__icon:first-child + .step__title { margin-top: 6px; padding-right: 56px; }
.step__title { margin-top: 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 34px); line-height: 1.1; color: var(--encre); }
.step__place { margin-top: 6px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--or-texte); }
.step__text { margin-top: 12px; font-size: 18.5px; line-height: 1.6; color: var(--gris); }

/* ════════════════════════════════════════
   LIEUX
═══════════════════════════════════════════ */
.venues { background: var(--noir); }
.venues__grid { display: flex; flex-direction: column; align-items: stretch; max-width: 1060px; margin: 0 auto; }
.venue { background: var(--noir-2); border: 1px solid rgb(var(--or-rgb) / .28); display: flex; flex-direction: column; overflow: hidden; }
.venue__map { position: relative; height: 230px; background: var(--noir-3); }
.venue__map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(1) invert(.9) contrast(.9) sepia(.18);
}
.venue__body { padding: 26px 24px 28px; }
.venue__kind { display: inline-flex; align-items: center; gap: 8px; font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--or); }
.venue__title { margin-top: 10px; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 38px); line-height: 1.1; }
.venue__addr { margin-top: 6px; font-size: 18px; color: var(--gris-clair); }
.venue__actions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }

.route { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0; }
.route__line { width: 1px; height: 34px; background-image: linear-gradient(to bottom, var(--or) 50%, transparent 50%); background-size: 1px 8px; opacity: .7; }
.route__car {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--noir);
  background: var(--foil-btn); box-shadow: 0 0 0 6px rgb(var(--or-rgb) / .12);
}
.route__car .ico { width: 24px; height: 24px; }
.route__label { font-family: var(--sans); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--or-clair); text-align: center; }

/* ════════════════════════════════════════
   INFOS PRATIQUES
═══════════════════════════════════════════ */
.infos__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.info {
  background: var(--blanc); padding: 30px 26px; text-align: center;
  border: 1px solid rgb(var(--or-profond-rgb) / .18); transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
@media (hover: hover) { .info:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(20, 20, 22, .3); } }
.info__ico {
  width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  color: var(--or-profond); border: 1px solid rgb(var(--or-profond-rgb) / .35);
}
.info__ico .ico { width: 24px; height: 24px; }
.info__title { font-family: var(--serif); font-weight: 500; font-size: 27px; line-height: 1.15; color: var(--encre); }
.info__text { margin-top: 10px; font-size: 18px; line-height: 1.6; color: var(--gris); }
.info__text strong { color: var(--encre); font-weight: 600; }

.info--feature { position: relative; background: var(--noir); color: #fff; border-color: rgb(var(--or-rgb) / .45); padding: 40px 28px; }
.info--feature::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgb(var(--or-rgb) / .2); pointer-events: none; }
.info--feature .info__ico { color: var(--or-clair); border-color: rgb(var(--or-rgb) / .5); }
.info--feature .info__title { color: #fff; font-size: 32px; }
.info--feature .info__text { color: var(--gris-clair); max-width: 520px; margin-inline: auto; }
.info--feature .info__text strong { color: var(--or-clair); }
.swatches { margin-top: 20px; display: flex; justify-content: center; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 0 4px var(--noir), 0 0 0 5px rgb(var(--or-rgb) / .35); }
.swatch { background: var(--c); }

/* ════════════════════════════════════════
   RSVP
═══════════════════════════════════════════ */
.rsvp { background: radial-gradient(ellipse at 50% 0%, var(--noir-3), var(--noir) 65%); overflow: hidden; }
.rsvp .container { position: relative; z-index: 2; }
.form {
  position: relative; max-width: 740px; margin: 0 auto; padding: 44px 20px 34px;
  background: rgb(var(--noir-2-rgb) / .82); border: 1px solid rgb(var(--or-rgb) / .32);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8);
}
.form .deco { width: 44px; height: 44px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.field { display: flex; flex-direction: column; margin-bottom: 22px; border: 0; min-width: 0; }
.field > label, .field > legend {
  margin-bottom: 10px; padding: 0; font-family: var(--sans); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--or-clair);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 0;
  font-family: var(--serif); font-size: 19px; color: #fff;
  background: rgba(255, 255, 255, .04); border: 1px solid rgb(var(--or-clair-rgb) / .22);
  transition: border-color .3s, background-color .3s, box-shadow .3s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23cfa55b' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field select option { background: var(--noir-2); color: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--or); background-color: rgba(255, 255, 255, .07); box-shadow: 0 0 0 3px rgb(var(--or-rgb) / .15);
}
.field input.is-invalid { border-color: #e39a8f; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0 18px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.seg__opt { position: relative; }
.seg__opt input, .pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 12px;
  font-family: var(--sans); font-size: 14px; letter-spacing: .04em; color: rgba(255, 255, 255, .72);
  border: 1px solid rgb(var(--or-clair-rgb) / .22); cursor: pointer; transition: all .35s var(--ease);
}
.seg__opt input:checked + span { color: var(--noir); background: var(--foil-btn); border-color: transparent; }
.seg__opt--no input:checked + span { color: #fff; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.seg__opt input:focus-visible + span, .pick input:focus-visible + .pick__box { outline: 2px solid var(--or-clair); outline-offset: 2px; }

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

.picks { display: grid; gap: 10px; }
.pick { cursor: pointer; }
.pick__box {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px;
  border: 1px solid rgb(var(--or-clair-rgb) / .22); background: rgba(255, 255, 255, .03);
  transition: border-color .35s, background-color .35s;
}
.pick__ico { width: 22px; height: 22px; color: var(--or); }
.pick__txt { display: flex; flex-direction: column; line-height: 1.25; }
.pick__txt strong { font-family: var(--serif); font-size: 19px; font-weight: 600; color: #fff; }
.pick__txt em { margin-top: 2px; font-family: var(--sans); font-style: normal; font-size: 12px; letter-spacing: .04em; color: rgba(255, 255, 255, .55); }
.pick__check {
  margin-left: auto; width: 24px; height: 24px; padding: 4px; border-radius: 50%;
  color: transparent; border: 1px solid rgb(var(--or-clair-rgb) / .35); transition: all .35s var(--ease);
}
.pick input:checked + .pick__box { border-color: var(--or); background: rgb(var(--or-rgb) / .1); }
.pick input:checked + .pick__box .pick__check { color: var(--noir); background: var(--or); border-color: var(--or); }

.form__status { min-height: 24px; margin-top: 18px; text-align: center; font-family: var(--sans); font-size: 15px; line-height: 1.5; }
.form__status.is-error { color: #f0b1a7; }
.form__status.is-success { color: var(--or-clair); }
.form.is-sent .form__fields { display: none; }

.thanks { display: none; text-align: center; padding: 20px 0 10px; }
.thanks:focus { outline: none; }   /* focalisé par le script pour l'annoncer aux lecteurs d'écran */
.form.is-sent .thanks { display: block; animation: rise 1s var(--ease) both; }
.thanks__title { font-family: var(--script); font-size: clamp(52px, 12vw, 76px); line-height: 1.1; }
.thanks__text { margin-top: 10px; font-size: 20px; color: var(--gris-clair); }
.thanks__again { margin-top: 26px; }

/* ════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.footer { position: relative; overflow: hidden; background: var(--noir); text-align: center; padding: 100px 0 calc(90px + env(safe-area-inset-bottom)); }
.footer__inner { position: relative; z-index: 2; width: min(680px, 100% - var(--gutter) * 2); margin-inline: auto; }
.footer__names { font-family: var(--script); font-size: clamp(58px, 13vw, 86px); line-height: 1.1; color: var(--or-clair); }
.footer__names span { font-size: .6em; color: #fff; }
.footer__date { margin-top: 4px; font-family: var(--sans); font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gris-clair); }
.footer .crest--sm { margin: 26px auto 18px; }
.footer__thanks { font-style: italic; font-size: clamp(20px, 3vw, 24px); color: #fff; }
.footer__promo { margin-top: 56px; padding: 30px 22px; border: 1px solid rgb(var(--or-rgb) / .22); background: rgba(255, 255, 255, .02); }
.footer__promo-q { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 27px); color: #fff; }
.footer__promo-sub { margin: 8px 0 20px; font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.footer__credit { margin-top: 30px; font-family: var(--sans); font-size: 12px; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.footer__credit a { color: var(--or-clair); border-bottom: 1px solid rgb(var(--or-clair-rgb) / .35); }

/* ════════════════════════════════════════
   VISIONNEUSE
═══════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 250; display: grid; place-items: center;
  background: rgba(5, 5, 6, .95); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__img {
  max-width: min(92vw, 1200px); max-height: 84vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6); outline: 1px solid rgb(var(--or-rgb) / .3); outline-offset: 8px;
  transform: scale(.96); transition: transform .5s var(--ease), opacity .3s;
}
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color .3s, border-color .3s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgb(var(--or-rgb) / .25); border-color: var(--or); }
.lightbox__close { top: calc(16px + env(safe-area-inset-top)); right: 16px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox .ico { width: 22px; height: 22px; }

/* ════════════════════════════════════════
   APPARITIONS AU SCROLL
═══════════════════════════════════════════ */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ════════════════════════════════════════
   ≥ 600px
═══════════════════════════════════════════ */
@media (min-width: 600px) {
  :root { --gutter: 32px; }
  .nav__cta { display: inline-flex; }
  .hero__cta { flex-direction: row; justify-content: center; }
  .hero__cta .btn { width: auto; }
  .cd { grid-template-columns: repeat(4, 1fr); max-width: 760px; gap: 16px; }
  .gallery { grid-auto-rows: 240px; }
  .form { padding: 56px 48px 44px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .infos__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .info--feature { grid-column: 1 / -1; }
  .deco { width: 64px; height: 64px; }
}

/* ════════════════════════════════════════
   ≥ 768px
═══════════════════════════════════════════ */
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 14px; }
  .gallery--1 { grid-template-columns: 1fr; grid-auto-rows: 460px; }
  .gallery--2, .gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery--3 .gallery__item:first-child, .gallery--5 .gallery__item:first-child { grid-column: auto; grid-row: span 2; }
  .gallery--5 { grid-template-columns: repeat(3, 1fr); }

  /* Timeline centrée, étapes en quinconce */
  .timeline::before, .timeline::after { left: 50%; }
  .step { width: 50%; padding-left: 0; padding-right: 56px; }
  .step + .step { margin-top: -96px; }
  .step:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 56px; }
  .step__star { left: auto; right: -10.5px; top: 30px; }
  .step:nth-child(even) .step__star { right: auto; left: -10.5px; }
  .step:nth-child(odd) .step__card { text-align: right; }
  .step:nth-child(odd) .step__icon { right: auto; left: 22px; }
  .step:nth-child(odd) .step__icon:first-child + .step__title { padding: 0 0 0 56px; }
  .step__card { padding: 32px 30px 30px; }

  .venue__map { height: 260px; }
}

/* ════════════════════════════════════════
   ≥ 1024px
═══════════════════════════════════════════ */
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .burger { display: none; }
  .venues__grid { flex-direction: row; align-items: center; }
  .venue { flex: 1; }
  .route {
    flex: 0 0 170px; padding: 0 6px;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px 8px;
  }
  .route__line { width: 100%; height: 1px; background-image: linear-gradient(to right, var(--or) 50%, transparent 50%); background-size: 8px 1px; }
  .route__line:first-child { grid-area: 1 / 1; }
  .route__car { grid-area: 1 / 2; }
  .route__line:last-child { grid-area: 1 / 3; }
  .route__label { grid-area: 2 / 1 / 3 / 4; }
  .infos__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Petits écrans */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .intro__names { font-size: 62px; }
  .hero__name { font-size: 70px; }
  .step__card { padding: 24px 18px; }
  .step__icon { display: none; }
  .step__icon:first-child + .step__title { padding-right: 0; }
}

/* Écrans peu hauts (paysage mobile) */
@media (max-height: 640px) {
  .intro__content { padding: 16px 24px; }
  .intro__names { font-size: clamp(44px, 11vh, 80px); }
  .envelope { --w: min(64vw, 260px); margin-top: 14px; }
  .intro__hint { margin-top: 10px; }
  .intro__frame .deco { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .foil, .head__title em, .announce__amp { animation: none; }
  .glitter { display: none; }
}

/* ════════════════════════════════════════
   OUVERTURE — l’enveloppe aux étoiles (codée, prénoms dynamiques)
   Le sceau s’ouvre, le rabat bascule, la carte sort de l’enveloppe.
═══════════════════════════════════════════ */
.intro__tag { animation-delay: .2s; }
.intro__names { animation-delay: .4s; }
.intro__date { animation-delay: .65s; }
.envelope {
  --w: min(78vw, 320px);
  position: relative; width: var(--w); aspect-ratio: 3 / 2; margin: min(34px, 4vh) auto 0;
  perspective: 1200px; opacity: 0; animation: rise 1.2s var(--ease) .9s forwards;
}
.envelope__back {
  position: absolute; inset: 0; border-radius: 6px;
  background: linear-gradient(160deg, var(--noir-3), var(--noir-2));
  box-shadow: 0 30px 60px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(var(--or-rgb) / .35);
}
.envelope__card {
  position: absolute; z-index: 1; left: 7%; right: 7%; top: 8%; height: 84%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--blanc); color: var(--encre); border-radius: 3px;
  box-shadow: 0 0 0 1px rgb(var(--or-profond-rgb) / .25), 0 12px 30px rgb(0 0 0 / .35);
  transition: transform 1.1s var(--ease) .5s;
}
.envelope__card .crest--sm { width: 38%; height: auto; aspect-ratio: 200 / 60; stroke: var(--or-profond); }
.envelope__card .crest--sm .deco-fill { fill: var(--or-profond); }
.envelope__card-names { margin-top: 4%; font-family: var(--script); font-size: calc(var(--w) * .11); line-height: 1.1; color: var(--encre); }
.envelope__card-date { margin-top: 2%; font-family: var(--deco); font-size: calc(var(--w) * .038); letter-spacing: .18em; text-transform: uppercase; color: var(--or-texte); }
.envelope__pocket, .envelope__flap { position: absolute; left: 0; right: 0; pointer-events: none; }
.envelope__pocket {
  z-index: 2; top: 0; bottom: 0; border-radius: 6px;
  background: linear-gradient(170deg, var(--noir-2), var(--noir-3));
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.envelope__pocket::after, .envelope__flap::after {
  content: ""; position: absolute; inset: 0; background: rgb(var(--or-rgb) / .7);
}
.envelope__pocket::after { clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 1%, 50% 57.4%, 0 1%); }
.envelope__flap {
  z-index: 3; top: 0; height: 58%; transform-origin: top center;
  background: linear-gradient(180deg, var(--noir-3), var(--noir-2));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transition: transform .9s var(--ease-io), z-index 0s .35s;
}
.envelope__flap::after { clip-path: polygon(0 0, 1.6% 0, 50% 96.5%, 98.4% 0, 100% 0, 50% 100%); }
.envelope__seal {
  position: absolute; z-index: 4; left: 50%; top: 56%; width: 66px; height: 66px; border-radius: 50%;
  transform: translate(-50%, -50%); display: grid; place-items: center;
  background: radial-gradient(circle at 34% 30%, var(--or-pale), var(--or) 52%, var(--or-profond));
  box-shadow: 0 8px 22px rgb(0 0 0 / .5), inset 0 0 0 3px rgb(var(--or-profond-rgb) / .45);
  color: var(--noir); transition: transform .6s var(--ease), opacity .5s .15s;
}
.envelope__initials { font-family: var(--deco); font-size: 14px; letter-spacing: .06em; white-space: nowrap; }
.envelope__ring {
  position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgb(var(--or-clair-rgb) / .8);
  animation: ring 2.6s var(--ease) infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.8); opacity: 0; } }
@media (hover: hover) { .envelope__seal:hover { transform: translate(-50%, -50%) scale(1.07); } }
.envelope__seal:active { transform: translate(-50%, -50%) scale(.95); }
.intro.is-open .envelope__seal { opacity: 0; transform: translate(-50%, -50%) scale(1.5); pointer-events: none; }
.intro.is-open .envelope__flap { transform: rotateX(180deg); z-index: 0; }
.intro.is-open .envelope__card { transform: translateY(-62%); }
.intro__hint { margin-top: min(26px, 3vh); }

/* ════════════════════════════════════════
   LIEUX : carte statique dans l’aperçu de l’éditeur, lieu unique centré
═══════════════════════════════════════════ */
.venue__map--static {
  display: grid; place-items: center;
  background: radial-gradient(ellipse at 50% 60%, rgb(var(--or-rgb) / .14), transparent 70%), var(--noir-3);
}
.venue__map-pin { color: var(--or); }
.venue__map-pin .ico { width: 34px; height: 34px; }
.venues__grid--1 { max-width: 620px; }
.footer__credit a + a { margin-left: 2px; }

/* Démo publique : place réservée au bandeau « Je le crée moi-même » (html.cp-demo-on) */
.cp-demo-on .intro__content { padding-bottom: 86px; }
.cp-demo-on .intro__skip { bottom: calc(76px + env(safe-area-inset-bottom)); }
.cp-demo-on .sound { bottom: calc(76px + env(safe-area-inset-bottom)); }
.cp-demo-on .footer { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* ════════════════════════════════════════
   APERÇU DE L’ÉDITEUR : tout est visible tout de suite (aucune animation rejouée à chaque frappe)
═══════════════════════════════════════════ */
.cp-preview .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
.cp-preview .hero__eyebrow, .cp-preview .hero__name, .cp-preview .hero__amp, .cp-preview .hero__crest,
.cp-preview .hero__date, .cp-preview .hero__place, .cp-preview .hero__cta { animation: none !important; opacity: 1 !important; }
.cp-preview .hero__photo { transform: none; transition: none; }

/* ═══════════ LIVRE D’OR (option) ═══════════ */
.guestbook { background: var(--noir-2); }
.book-form { max-width: 640px; margin: 0 auto; padding: 28px 24px; background: rgb(var(--blanc-rgb) / .03); border: 1px solid rgb(var(--or-rgb) / .25); }
.book-form .field { margin-bottom: 16px; }
.book-list { max-width: 760px; margin: 36px auto 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.book-entry { position: relative; padding: 22px 24px 18px 52px; background: rgb(var(--blanc-rgb) / .04); border-left: 2px solid var(--or); }
.book-entry::before { content: '“'; position: absolute; left: 16px; top: 4px; font: 400 48px/1 var(--serif); color: var(--or); }
.book-entry__msg { font: italic 400 20px/1.55 var(--serif); color: var(--perle); }
.book-entry__name { margin-top: 8px; font: 500 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--or-clair); }
.book-entry.is-new { animation: rise 1s var(--ease) both; }
@media (min-width: 768px) { .book-list { grid-template-columns: 1fr 1fr; } }
