/* =========================================================
   Bar Mitsvah de Lévy Haik — invitation numérique
   Aquarelle · Bearbrick · Israël · Rabbi Nahman
   ========================================================= */

:root {
  --paper: #FCFAF5;
  --paper-2: #F6F1E7;
  --ink: #1E3A66;
  --ink-2: #33507F;
  --ink-soft: rgba(30, 58, 102, .74);
  --ink-faint: rgba(30, 58, 102, .16);
  --sky: #BCD6EC;
  --sky-pale: #E4EFF8;
  --sand: #EBDDC2;
  --gold: #C29A4E;
  --gold-soft: #E3C78C;
  --rose: #EDC9CB;
  --lilac: #DCD0EA;
  --sage: #A9BB98;

  --f-serif: "Cormorant Garamond", "Times New Roman", serif;
  --f-script: "Yellowtail", "Brush Script MT", cursive;
  --f-round: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-heb: "Frank Ruhl Libre", "David", serif;
  --f-ui: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --col: 560px;
  --ease-out: cubic-bezier(.16, .84, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
  --vh: 1vh;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-serif);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
  background:
    url("../assets/img/grain.png") repeat,
    radial-gradient(120% 60% at 0% 0%, rgba(188, 214, 236, .35), transparent 60%),
    radial-gradient(120% 60% at 100% 100%, rgba(237, 201, 203, .28), transparent 60%),
    var(--paper);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.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;
}

/* ---------- Logo Bearbrick à l'aquarelle (masque SVG + texture lavis) ---------- */
.wc-logo {
  aspect-ratio: 85.15 / 213.53;
  background: url("../assets/img/ink-texture.webp") 50% 40% / 260% auto;
  -webkit-mask: url("../assets/img/logo-bearbrick.svg") center / contain no-repeat;
  mask: url("../assets/img/logo-bearbrick.svg") center / contain no-repeat;
}

/* =========================================================
   POP-UP D'OUVERTURE
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    url("../assets/img/grain.png") repeat,
    linear-gradient(180deg, #F3F7FB, var(--paper));
  touch-action: none;
  overscroll-behavior: contain;
}
.intro.is-opening { background: transparent; pointer-events: none; }
.intro.is-gone { display: none; }

.intro__stage {
  position: absolute;
  inset: 0;
  width: min(100%, var(--col));
  margin: 0 auto;
}

.door {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.2%;
  overflow: hidden;
  will-change: transform;
  transition: transform 2.1s var(--ease-io), filter 2.1s var(--ease-io);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.door--left  { left: 0;  transform-origin: 0% 50%; }
.door--right { right: 0; transform-origin: 100% 50%; }
.door__img {
  position: absolute;
  top: 0; height: 100%;
  width: 199.2%;
  background: #DCE8F2 url("../assets/img/doors.webp") 50% 50% / cover no-repeat;
}
.door--left .door__img  { left: 0; }
.door--right .door__img { right: 0; }
.door__shade {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 2.1s var(--ease-io);
}
.door--left .door__shade  { background: linear-gradient(90deg, rgba(30,58,102,.0), rgba(30,58,102,.28)); }
.door--right .door__shade { background: linear-gradient(270deg, rgba(30,58,102,.0), rgba(30,58,102,.28)); }

.intro.is-opening .door--left  { transform: perspective(1300px) rotateY(-108deg); }
.intro.is-opening .door--right { transform: perspective(1300px) rotateY(108deg); }
.intro.is-opening .door__shade { opacity: 1; }

/* Lumière qui jaillit entre les portes */
.intro__light {
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 120%;
  transform: translate(-50%, -50%) scaleX(.2);
  background: radial-gradient(closest-side, rgba(255, 252, 240, .95), rgba(255, 246, 220, .55) 45%, rgba(255, 246, 220, 0));
  opacity: 0;
  pointer-events: none;
  filter: blur(4px);
}
.intro.is-opening .intro__light { animation: lightBurst 2s var(--ease-out) forwards; }
@keyframes lightBurst {
  0%   { opacity: 0; transform: translate(-50%, -50%) scaleX(.2); }
  18%  { opacity: 1; transform: translate(-50%, -50%) scaleX(6); }
  60%  { opacity: .75; transform: translate(-50%, -50%) scaleX(40); }
  100% { opacity: 0; transform: translate(-50%, -50%) scaleX(70); }
}

/* Poussière dorée flottante */
.intro__dust { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.intro__dust i {
  position: absolute;
  bottom: -10px;
  width: var(--s, 4px); height: var(--s, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, #fff8e3 0%, rgba(227, 199, 140, .9) 40%, rgba(227, 199, 140, 0) 72%);
  animation: dustUp var(--t, 9s) linear var(--dl, 0s) infinite;
  opacity: 0;
}
@keyframes dustUp {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  15%  { opacity: .95; }
  85%  { opacity: .7; }
  100% { transform: translate3d(var(--x, 20px), calc(-100 * var(--vh) - 20px), 0); opacity: 0; }
}

/* Carte centrale (plaque crème en arche) */
.intro__card {
  position: absolute;
  left: 50%; top: 50%;
  width: min(70vw, 286px);
  padding: clamp(26px, 5.5vh, 40px) 22px clamp(22px, 4vh, 30px);
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: clamp(16px, 3vh, 24px);
  border-radius: 999px 999px 30px 30px;
  background:
    url("../assets/img/grain.png") repeat,
    radial-gradient(120% 80% at 50% 0%, #fffdf8, #f8f2e6 70%, #f1e8d6);
  box-shadow:
    0 0 0 1.5px rgba(30, 58, 102, .55),
    0 0 0 7px rgba(252, 250, 245, .92),
    0 0 0 8.5px rgba(30, 58, 102, .35),
    0 30px 60px -18px rgba(30, 58, 102, .45),
    0 8px 22px rgba(30, 58, 102, .14);
  animation: cardIn 1.4s var(--ease-out) .25s both;
  transition: transform .9s var(--ease-io), opacity .7s ease, filter .7s ease;
}
@keyframes cardIn {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.92); filter: blur(8px); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}
.intro.is-opening .intro__card {
  animation: none;
  opacity: 0;
  transform: translate(-50%, -52%) scale(1.08);
  filter: blur(10px);
}
.intro__ring {
  position: absolute; inset: -16px;
  border-radius: inherit;
  border: 1px solid rgba(194, 154, 78, .55);
  animation: ringPulse 3.2s ease-in-out 1.6s infinite;
  pointer-events: none;
}
@keyframes ringPulse {
  0%, 100% { opacity: 0; transform: scale(.97); }
  45% { opacity: .9; }
  100% { transform: scale(1.06); }
}

.intro__logo {
  height: clamp(150px, 30vh, 230px);
  animation: inkBloom 2s var(--ease-out) .55s both, floaty 6s ease-in-out 2.6s infinite;
}
@keyframes inkBloom {
  0%   { opacity: 0; filter: blur(12px); transform: scale(1.12); }
  55%  { opacity: 1; }
  100% { opacity: 1; filter: blur(0); transform: scale(1); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.btn-open {
  position: relative;
  overflow: hidden;
  border: 0;
  cursor: pointer;
  padding: 15px 24px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a4a7c, var(--ink));
  color: #FCFAF5;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .2em;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -8px rgba(30, 58, 102, .6), inset 0 1px 0 rgba(255,255,255,.25);
  animation: btnIn 1s var(--ease-out) 1.35s both;
  transition: transform .25s ease, box-shadow .25s ease;
  touch-action: manipulation;
}
.btn-open:active { transform: scale(.96); }
.btn-open__shine {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 66%);
  transform: translateX(-120%);
  animation: shine 3.6s ease-in-out 2.4s infinite;
}
@keyframes shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
@keyframes btnIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =========================================================
   INVITATION — conteneur
   ========================================================= */
.invite {
  position: relative;
  width: min(100%, var(--col));
  margin: 0 auto;
  background:
    url("../assets/img/grain.png") repeat,
    var(--paper);
  overflow: hidden;
}
@media (min-width: 600px) {
  .invite { box-shadow: 0 0 0 1px rgba(30,58,102,.06), 0 30px 80px -30px rgba(30, 58, 102, .3); }
}

[data-section] { position: relative; }
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* =========================================================
   SECTION 1 — HERO
   ========================================================= */
.s-hero {
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
  --hs: clamp(11.5px, min(4.55vw, 2.08svh), 18.5px);
}
@supports not (height: 100svh) { .s-hero { --hs: clamp(11.5px, min(4.55vw, 2.08vh), 18.5px); } }

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  transform: translate3d(0, var(--shift, 0px), 0);
  transform-origin: 50% 70%;
}
.is-entering .hero__scene { animation: heroPush 2.8s var(--ease-out) both; }
@keyframes heroPush {
  from { scale: 1.22; filter: blur(5px); }
  to   { scale: 1; filter: blur(0); }
}

.hero__img, .hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
}
.hero__video { opacity: 0; transition: opacity 1.2s ease; }
.hero__sun {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: var(--sun-top, 47%);
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 180, .55), rgba(255, 236, 180, .18) 55%, rgba(255, 236, 180, 0));
  mix-blend-mode: screen;
  pointer-events: none;
  animation: sunPulse 6s ease-in-out infinite;
}
@keyframes sunPulse { 0%, 100% { opacity: .55; scale: .92; } 50% { opacity: 1; scale: 1.08; } }
.hero__video.is-ready { opacity: 1; }

.hero__veil {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(85% 46% at 50% 30%, rgba(252, 250, 245, .82), rgba(252, 250, 245, .35) 55%, rgba(252, 250, 245, 0) 78%),
    linear-gradient(180deg, rgba(252,250,245,.65) 0%, rgba(252,250,245,0) 22%);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: calc(env(safe-area-inset-top, 0px) + 3.2vh) 5.5% 0;
  padding: calc(env(safe-area-inset-top, 0px) + 3.2svh) 5.5% 0;
  font-size: var(--hs);
}
.hero__content > * { margin: 0; }

.hero__logo { height: 5.6em; margin: 0 auto .8em; }

.gp {
  display: flex;
  justify-content: space-between;
  gap: .6em;
  white-space: nowrap;
  font-weight: 600;
  font-size: .98em;
  letter-spacing: .01em;
  color: var(--ink-2);
}
.gp span { flex: none; }

.parents {
  margin-top: .8em !important;
  font-weight: 600;
  font-size: 1.32em;
  letter-spacing: .02em;
}
.siblings {
  margin-top: .12em !important;
  font-weight: 500;
  font-size: 1.12em;
  color: var(--ink-2);
}
.lead {
  font-style: italic;
  font-size: 1.04em;
  color: var(--ink-soft);
}
.siblings + .lead { margin-top: .95em !important; }

.bm {
  position: relative;
  margin: .32em auto .3em !important;
  width: max-content;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 1.72em;
  letter-spacing: .3em;
  padding-left: .3em;
  line-height: 1.25;
}
.bm__text { position: relative; }
.levy {
  margin: .08em 0 0 !important;
  font-family: var(--f-round);
  font-weight: 600;
  font-size: 4.6em;
  line-height: 1;
  letter-spacing: .06em;
  padding-left: .06em;
}
.levy__l {
  display: inline-block;
  background: url("../assets/img/ink-texture.webp") 0 0 / 320px auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(.25em) scale(.9);
  filter: blur(10px);
  animation: wcDrift 24s linear infinite;
}
.levy__l:nth-child(2) { background-position: -90px -30px; }
.levy__l:nth-child(3) { background-position: -170px -10px; }
.levy__l:nth-child(4) { background-position: -250px -50px; }
@keyframes wcDrift { to { background-position-x: -320px; } }
.is-entered .levy__l {
  animation:
    letterIn 1.3s var(--ease-out) calc(var(--base, 0s) + 2.05s + var(--i) * .16s) forwards,
    wcDrift 24s linear infinite;
}
@keyframes letterIn {
  0% { opacity: 0; transform: translateY(.25em) scale(.9); filter: blur(10px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

.hebrew {
  margin-top: .05em !important;
  font-family: var(--f-heb);
  font-weight: 500;
  font-size: 2.45em;
  line-height: 1.15;
  background: linear-gradient(100deg, #B88E43 0%, #D8B86F 30%, #F4E3B5 45%, #CFAB5E 60%, #B88E43 100%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 5.5s ease-in-out infinite;
}
@keyframes goldShimmer { 0%, 100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* Entrée séquencée du héro */
.h-in {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(6px);
}
.is-entered .h-in {
  transition: opacity 1.2s var(--ease-out), transform 1.2s var(--ease-out), filter 1.2s var(--ease-out);
  transition-delay: calc(var(--base, 0s) + var(--d) * .2s);
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.is-entered .hebrew.h-in { transition-delay: calc(var(--base, 0s) + 2.75s); }

/* Indicateur de scroll (sous le prénom hébreu) */
.scroll-cue {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 2.5em; height: 2.5em;
  margin: .55em auto 0;
  border-radius: 50%;
  background: rgba(252, 250, 245, .7);
  box-shadow: 0 0 0 1px rgba(30, 58, 102, .25), 0 8px 18px -8px rgba(30, 58, 102, .35);
  opacity: 0;
  transition: opacity 1s ease 3.4s;
}
.is-entered .scroll-cue { opacity: 1; }
.scroll-cue__chev {
  width: .62em; height: .62em;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  margin-top: -5px;
  animation: chev 1.8s ease-in-out infinite;
}
.scroll-cue__chev:nth-child(2) { animation-delay: .18s; opacity: .55; }
@keyframes chev {
  0%, 100% { transform: translateY(-3px) rotate(45deg); opacity: .25; }
  50% { transform: translateY(4px) rotate(45deg); opacity: 1; }
}
.scroll-cue::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(30, 58, 102, .3);
  animation: cuePulse 2.4s ease-out infinite;
}
@keyframes cuePulse { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* Oiseaux */
.birds, .gulls { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.bird {
  position: absolute;
  width: 26px; height: 10px;
  overflow: visible;
  animation: fly var(--fly, 26s) linear var(--fd, 0s) infinite;
}
.bird path {
  fill: none;
  stroke: rgba(30, 58, 102, .55);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: 50% 60%;
  animation: flap .5s ease-in-out infinite alternate;
}
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.35) translateY(-4px); } }
@keyframes fly {
  0%   { transform: translate3d(-40px, 0, 0) scale(var(--bs, 1)); }
  50%  { transform: translate3d(calc(var(--w, 560px) * .5), -18px, 0) scale(var(--bs, 1)); }
  100% { transform: translate3d(calc(var(--w, 560px) + 40px), 6px, 0) scale(var(--bs, 1)); }
}
.bird--1 { top: 34%; --fly: 24s; --fd: -4s; --bs: .9; }
.bird--2 { top: 39%; --fly: 31s; --fd: -16s; --bs: .7; }
.bird--3 { top: 29%; --fly: 28s; --fd: -9s; --bs: .55; }
.bird--4 { top: 14%; --fly: 22s; --fd: -6s; --bs: .8; }
.bird--5 { top: 20%; --fly: 27s; --fd: -15s; --bs: .6; }

/* Pétales de bougainvillier */
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.petal {
  position: absolute;
  top: -30px;
  left: var(--x, 50%);
  animation: fall var(--t, 12s) linear var(--dl, 0s) infinite;
}
.petal i {
  display: block;
  width: var(--s, 12px);
  height: calc(var(--s, 12px) * .78);
  border-radius: 80% 10% 80% 10%;
  background: radial-gradient(120% 120% at 20% 20%, #eef5fc, #b9d3ec 60%, #8fb2d8);
  opacity: .8;
  animation: sway var(--sw, 3.2s) ease-in-out infinite alternate;
}
@keyframes fall {
  from { transform: translate3d(0, -40px, 0); }
  to   { transform: translate3d(var(--dx, 40px), calc(100vh + 60px), 0); }
}
@keyframes sway {
  from { transform: translateX(-14px) rotate(-30deg) rotateY(0deg); }
  to   { transform: translateX(14px) rotate(50deg) rotateY(160deg); }
}

/* =========================================================
   ÉLÉMENTS COMMUNS DES SECTIONS
   ========================================================= */
.s-date, .s-event, .s-rsvp, .footer {
  padding: 46px 6% 30px;
  text-align: center;
}

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 auto 14px;
  color: var(--gold);
}
.ornament span {
  width: 54px; height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament span:last-child { transform: scaleX(-1); }
.ornament img { width: 24px; height: auto; opacity: .95; }
.ornament i {
  width: 16px; height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round' d='M12 2.5 20.2 16.7H3.8z M12 21.5 3.8 7.3h16.4z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round' d='M12 2.5 20.2 16.7H3.8z M12 21.5 3.8 7.3h16.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.script-title {
  position: relative;
  isolation: isolate;
  margin: 0 0 22px;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(44px, 13vw, 62px);
  line-height: 1.12;
  color: var(--ink);
  padding: 0 .2em;
}

/* Lavis aquarelle qui s'épanouit derrière les titres manuscrits */
.script-title::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%; top: 52%;
  width: min(86%, 330px);
  height: 92%;
  transform: translate(-50%, -50%) scale(.35) rotate(-4deg);
  border-radius: 48% 52% 44% 56% / 58% 46% 54% 42%;
  background:
    radial-gradient(60% 70% at 35% 45%, rgba(188, 214, 236, .62), transparent 70%),
    radial-gradient(55% 65% at 70% 60%, rgba(233, 212, 166, .45), transparent 72%);
  filter: blur(7px);
  opacity: 0;
  transition: transform 2.2s var(--ease-out) .1s, opacity 1.6s ease .1s;
}
.script-title.is-in::before { transform: translate(-50%, -50%) scale(1) rotate(-4deg); opacity: 1; }
.s-tefi .script-title::before {
  background:
    radial-gradient(60% 70% at 35% 45%, rgba(233, 212, 166, .5), transparent 70%),
    radial-gradient(55% 65% at 70% 60%, rgba(188, 214, 236, .5), transparent 72%);
}
.script-title--neon::before {
  background:
    radial-gradient(60% 70% at 35% 45%, rgba(220, 208, 234, .7), transparent 70%),
    radial-gradient(55% 65% at 70% 60%, rgba(237, 201, 203, .6), transparent 72%);
}

/* Révélations au scroll */
.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out);
  transition-delay: var(--rd, 0s);
}
.reveal.is-in { opacity: 1; transform: none; filter: blur(0); }

.reveal--write { transform: none; filter: none; transition: opacity .3s ease; }
.reveal--write > span {
  display: inline-block;
  padding: 0 .12em;
  clip-path: inset(-25% 100% -25% 0);
  -webkit-clip-path: inset(-25% 100% -25% 0);
  transition: clip-path 1.9s cubic-bezier(.55, .1, .3, 1) .15s, -webkit-clip-path 1.9s cubic-bezier(.55, .1, .3, 1) .15s;
}
.reveal--write.is-in > span {
  clip-path: inset(-25% -8% -25% -4%);
  -webkit-clip-path: inset(-25% -8% -25% -4%);
}

.reveal--scene { transform: translate3d(0, 40px, 0) scale(.96); filter: blur(10px); transition-duration: 1.5s; }
.reveal--card  { transform: translate3d(0, 46px, 0) rotate(-1.2deg); }

/* Scènes aquarelle */
.scene {
  position: relative;
  margin: 0 -6.4%;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(118% 92% at 50% 50%, #000 58%, transparent 80%);
  mask-image: radial-gradient(118% 92% at 50% 50%, #000 58%, transparent 80%);
}
.scene__frame { will-change: transform; transform: translate3d(0, var(--py, 0px), 0) scale(1.06); }
.scene img { width: 100%; height: auto; }
.scene__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.scene__video.is-ready { opacity: 1; }

/* =========================================================
   SECTION 2 — SAVE THE DATE
   ========================================================= */
.s-date { padding-top: 58px; }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 2.4vw, 14px);
  max-width: 440px;
  margin: 0 auto 6px;
  position: relative;
  z-index: 2;
}
.cd { position: relative; aspect-ratio: 1 / 1.18; display: grid; place-items: center; align-content: center; }
.cd__blob {
  position: absolute;
  inset: 4% 2% 14%;
  background:
    radial-gradient(60% 55% at 35% 30%, rgba(255,255,255,.75), transparent 70%),
    radial-gradient(90% 90% at 60% 65%, var(--c1), var(--c2) 75%);
  border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%;
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--c1) 70%, #1E3A66 12%),
    inset 0 0 14px color-mix(in srgb, var(--c1) 85%, #1E3A66 10%);
  opacity: .92;
  animation: blob 9s ease-in-out calc(var(--r) * -2.2s) infinite alternate;
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .cd__blob { box-shadow: inset 0 0 0 1.5px rgba(30,58,102,.18), inset 0 0 14px rgba(30,58,102,.12); }
}
@keyframes blob {
  0%   { border-radius: 46% 54% 58% 42% / 44% 46% 54% 56%; transform: rotate(-4deg) scale(1); }
  50%  { border-radius: 58% 42% 45% 55% / 55% 58% 42% 45%; transform: rotate(3deg) scale(1.04); }
  100% { border-radius: 42% 58% 52% 48% / 48% 40% 60% 52%; transform: rotate(-2deg) scale(.98); }
}
.cd__num {
  position: relative;
  height: 1.15em;
  overflow: hidden;
  margin-top: -10%;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(25px, 8.4vw, 40px);
  line-height: 1.15;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--ink);
}
.cd__num span { display: block; }
.cd__num span.in  { animation: digitIn .55s var(--ease-out); }
.cd__num span.out { position: absolute; inset: 0; animation: digitOut .55s var(--ease-out) forwards; }
@keyframes digitOut { to { transform: translateY(-80%); opacity: 0; filter: blur(3px); } }
@keyframes digitIn  { from { transform: translateY(80%); opacity: 0; filter: blur(3px); } }
.cd__lbl {
  position: relative;
  margin-top: 1px;
  font-family: var(--f-ui);
  font-size: clamp(8.5px, 2.5vw, 11px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.scene--jaffa { margin-top: -6%; }

/* =========================================================
   SECTIONS ÉVÉNEMENTS
   ========================================================= */
.scene--syna, .scene--sense { margin-bottom: -4%; }

/* Reflets du lustre */
.glints { position: absolute; inset: 0; pointer-events: none; }
.glints i, .twinkles i {
  position: absolute;
  width: 18px; height: 18px;
  background: radial-gradient(circle, #fff 0 12%, rgba(255,255,255,0) 13%),
              linear-gradient(0deg, transparent 46%, rgba(255,250,235,.95) 50%, transparent 54%),
              linear-gradient(90deg, transparent 46%, rgba(255,250,235,.95) 50%, transparent 54%);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 2.8s ease-in-out var(--tw, 0s) infinite;
}
.glints i:nth-child(1) { left: 44%; top: 35%; --tw: .2s; }
.glints i:nth-child(2) { left: 52%; top: 31%; --tw: 1.1s; }
.glints i:nth-child(3) { left: 48%; top: 41%; --tw: 1.9s; }
.glints i:nth-child(4) { left: 56%; top: 38%; --tw: .7s; transform: scale(.7); }
.glints i:nth-child(5) { left: 41%; top: 30%; --tw: 2.3s; transform: scale(.6); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.4) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

/* Bus Na Nach */
.bus-road {
  position: relative;
  aspect-ratio: 1 / .66;
  margin: 0 -6.4% 0;
  overflow: hidden;
  z-index: 2;
}
.bus {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 84%;
  transform: translate3d(calc(-50% + var(--bx, -120%)), 0, 0);
  will-change: transform;
}
.bus__img {
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
}
.bus.is-driving .bus__img { animation: busBob .32s ease-in-out infinite alternate; }
.bus.is-parked .bus__img { animation: busDance 1.1s ease-in-out infinite; }
@keyframes busBob { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-2px) rotate(-.5deg); } }
@keyframes busDance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-3px) rotate(-.6deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(-2px) rotate(.5deg); }
}
.bus__notes { position: absolute; left: 30%; top: 0; width: 40%; height: 40%; pointer-events: none; }
.bus__notes i {
  position: absolute;
  bottom: 30%;
  font-style: normal;
  font-family: var(--f-ui);
  font-size: 20px;
  color: var(--n, #8fb3d9);
  opacity: 0;
  animation: note 2.6s ease-out var(--nd, 0s) infinite;
}
.bus__notes i:nth-child(1) { left: 10%; --n: #9DBEE0; --nd: 0s; }
.bus__notes i:nth-child(2) { left: 38%; --n: #E7A9B4; --nd: .7s; }
.bus__notes i:nth-child(3) { left: 62%; --n: #D9B866; --nd: 1.3s; }
.bus__notes i:nth-child(4) { left: 86%; --n: #A6C08F; --nd: 1.9s; }
@keyframes note {
  0% { opacity: 0; transform: translate(0, 10px) rotate(-10deg) scale(.7); }
  20% { opacity: .95; }
  100% { opacity: 0; transform: translate(14px, -80px) rotate(14deg) scale(1.1); }
}
.road { position: absolute; left: 4%; right: 4%; bottom: 4px; width: 92%; height: 14px; }
.road path {
  fill: none;
  stroke: rgba(30, 58, 102, .28);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: 2 6;
}

.nanach {
  margin: 4px 0 26px;
  font-family: var(--f-script);
  font-size: clamp(20px, 6vw, 27px);
  line-height: 1.3;
  color: var(--ink-2);
}
.nanach__w { display: inline-block; animation: wave 2.4s ease-in-out infinite; }
.nanach__w:nth-child(1) { animation-delay: 0s;   color: #6F9BCB; }
.nanach__w:nth-child(2) { animation-delay: .12s; color: #D28C9A; }
.nanach__w:nth-child(3) { animation-delay: .24s; color: #C9A04F; }
.nanach__w:nth-child(4) { animation-delay: .36s; color: #8AA874; }
.nanach__w:nth-child(5) { animation-delay: .48s; color: #9C86C2; }
@keyframes wave { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* Carte d'information */
.card {
  position: relative;
  z-index: 3;
  max-width: 400px;
  margin: 0 auto;
  padding: 30px 24px 28px;
  border-radius: 6px;
  background:
    url("../assets/img/grain.png") repeat,
    linear-gradient(180deg, #fffdf9, #faf5ec);
  box-shadow:
    0 0 0 1px rgba(30, 58, 102, .14),
    0 24px 48px -26px rgba(30, 58, 102, .45),
    0 6px 16px -8px rgba(30, 58, 102, .12);
}
.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(194, 154, 78, .5);
  border-radius: 3px;
  pointer-events: none;
}
.card__date { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.card__day, .card__month {
  font-family: var(--f-ui);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.card__day { padding-left: .32em; }
.card__num {
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 64px;
  line-height: .95;
  margin: 6px 0 4px;
  background: url("../assets/img/ink-texture.webp") 30% 40% / 280px auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.card__time {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 16px 0 12px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--gold);
}
.card__line { width: 34px; height: 1px; background: currentColor; opacity: .6; }
.card__place {
  margin: 0;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 25px;
  letter-spacing: .02em;
}
.card__place--sense { letter-spacing: .28em; padding-left: .28em; font-size: 27px; }
.card__sub {
  margin: 2px 0 10px;
  font-style: italic;
  font-size: 16.5px;
  color: var(--ink-soft);
}
.card__addr { margin: 0 0 20px; font-size: 17px; line-height: 1.4; }

.btn-waze {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px 11px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(180deg, #EAF4FC, #D6E9F7);
  box-shadow: 0 0 0 1px rgba(30, 58, 102, .22), 0 8px 18px -10px rgba(30, 58, 102, .55);
  transition: transform .2s ease, box-shadow .2s ease;
  touch-action: manipulation;
}
.btn-waze:active { transform: scale(.96); }
.btn-waze svg { width: 26px; height: 26px; animation: wazeHop 3s ease-in-out infinite; }
.wz-body { fill: #fff; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.wz-eye { fill: var(--ink); }
.wz-smile { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
@keyframes wazeHop { 0%, 80%, 100% { transform: translateY(0); } 88% { transform: translateY(-4px) rotate(-6deg); } 94% { transform: translateY(0) rotate(0); } }

/* =========================================================
   SECTION 4 — SOIRÉE
   ========================================================= */
.s-soiree { overflow: hidden; }
.s-soiree::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 35% at 80% 20%, rgba(220, 208, 234, .45), transparent 70%),
    radial-gradient(70% 35% at 10% 55%, rgba(237, 201, 203, .4), transparent 70%),
    radial-gradient(60% 30% at 70% 90%, rgba(227, 199, 140, .25), transparent 70%);
  pointer-events: none;
}
.script-title--neon.is-in { animation: neon 2.6s ease-out 1.2s both; }
@keyframes neon {
  0%   { text-shadow: none; }
  8%   { text-shadow: 0 0 10px rgba(214, 168, 214, .9), 0 0 24px rgba(214, 168, 214, .6); }
  12%  { text-shadow: none; }
  18%  { text-shadow: 0 0 10px rgba(214, 168, 214, .9), 0 0 26px rgba(214, 168, 214, .65); }
  100% { text-shadow: 0 0 8px rgba(225, 190, 225, .55), 0 0 22px rgba(225, 190, 225, .35); }
}
.bokeh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bokeh i {
  position: absolute;
  bottom: -60px;
  left: var(--x);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.7), var(--c) 55%, transparent 72%);
  opacity: 0;
  filter: blur(var(--b, 1px));
  animation: bokehUp var(--t, 14s) linear var(--dl, 0s) infinite;
}
@keyframes bokehUp {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: var(--o, .6); }
  80%  { opacity: var(--o, .6); }
  100% { transform: translate3d(var(--dx, 20px), -110vh, 0); opacity: 0; }
}
.twinkles { position: absolute; inset: 0; pointer-events: none; }
.twinkles i:nth-child(1) { left: 60%; top: 26%; --tw: .1s; }
.twinkles i:nth-child(2) { left: 80%; top: 22%; --tw: 1s; }
.twinkles i:nth-child(3) { left: 50%; top: 38%; --tw: 1.8s; transform: scale(.7); }
.twinkles i:nth-child(4) { left: 28%; top: 47%; --tw: .6s; }
.twinkles i:nth-child(5) { left: 72%; top: 46%; --tw: 2.2s; transform: scale(.6); }
.twinkles i:nth-child(6) { left: 38%; top: 30%; --tw: 1.4s; }

/* =========================================================
   SECTION 5 — RSVP
   ========================================================= */
.rsvp__title {
  margin: 0 auto 26px;
  max-width: 380px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: clamp(25px, 7.4vw, 32px);
  line-height: 1.18;
}
.rsvp__title em {
  display: block;
  margin-top: 4px;
  font-family: var(--f-script);
  font-style: normal;
  font-weight: 400;
  font-size: 1.35em;
  color: var(--gold);
}

.rsvp {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 28px 22px 26px;
  text-align: left;
  border-radius: 8px;
  background:
    url("../assets/img/grain.png") repeat,
    linear-gradient(180deg, #fffdf9, #f9f4ea);
  box-shadow:
    0 0 0 1px rgba(30, 58, 102, .13),
    0 28px 60px -32px rgba(30, 58, 102, .5);
}
.rsvp::before {
  content: "";
  position: absolute; inset: 8px;
  border: 1px solid rgba(194, 154, 78, .45);
  border-radius: 4px;
  pointer-events: none;
}
.rsvp.is-shake { animation: shake .5s ease; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.rsvp.is-leaving { transition: opacity .6s ease, transform .6s var(--ease-io), filter .6s ease; opacity: 0; transform: translateY(-14px) scale(.97); filter: blur(6px); }

.field { position: relative; margin: 0 0 16px; }
.field input, .field textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(30, 58, 102, .3);
  border-radius: 0;
  background: transparent;
  padding: 24px 2px 8px;
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}
.field textarea { resize: vertical; min-height: 86px; line-height: 1.35; }
.field label {
  position: absolute;
  left: 2px; top: 22px;
  font-family: var(--f-ui);
  font-size: 15px;
  color: var(--ink-soft);
  pointer-events: none;
  transform-origin: 0 0;
  transition: transform .3s var(--ease-out), color .3s ease;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-18px) scale(.78);
  color: var(--gold);
  letter-spacing: .06em;
}
.field__ink {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--ink), #6E8FC0);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .5s var(--ease-out);
}
.field input:focus ~ .field__ink, .field textarea:focus ~ .field__ink { transform: scaleX(1); }
.field.is-error input { border-bottom-color: #C97A85; }
.field.is-error label { color: #B4606D; }

.attend { border: 0; margin: 8px 0 14px; padding: 0; min-width: 0; }
.attend__legend {
  padding: 0;
  margin-bottom: 10px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-style: italic;
  font-size: 19px;
}
.choice {
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(228, 239, 248, .35);
  box-shadow: 0 0 0 1px rgba(30, 58, 102, .14);
  transition: background .35s ease, box-shadow .35s ease;
}
.choice.is-on { background: rgba(228, 239, 248, .85); box-shadow: 0 0 0 1.5px rgba(30, 58, 102, .45); }
.choice--absent.is-on { background: rgba(237, 201, 203, .35); box-shadow: 0 0 0 1.5px rgba(180, 96, 109, .45); }
.choice.is-dim { opacity: .55; }

.check {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 14px;
  cursor: pointer;
  touch-action: manipulation;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.check__box {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(30, 58, 102, .45);
  display: grid; place-items: center;
  transition: background .3s ease, box-shadow .3s ease, transform .3s var(--ease-out);
}
.check__box svg { width: 18px; height: 18px; }
.check__box path {
  fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .45s var(--ease-out) .05s;
}
.check input:checked + .check__box { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transform: scale(1.06); }
.choice--absent .check input:checked + .check__box { background: #B4606D; box-shadow: inset 0 0 0 1.5px #B4606D; }
.check input:checked + .check__box path { stroke-dashoffset: 0; }
.check input:focus-visible + .check__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check__txt { display: flex; flex-direction: column; line-height: 1.2; }
.check__txt b { font-family: var(--f-serif); font-weight: 600; font-size: 18px; }
.check__txt small { font-family: var(--f-ui); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-soft); margin-top: 3px; }

.counts {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.counts__inner {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
  opacity: 0;
  transition: opacity .35s ease, padding .5s var(--ease-out);
}
.choice.is-on .counts { grid-template-rows: 1fr; }
.choice.is-on .counts__inner { opacity: 1; padding: 0 14px 14px; }

.sel { display: flex; flex-direction: column; gap: 5px; }
.sel span {
  font-family: var(--f-ui);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sel select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 11px 36px 11px 14px;
  border: 0;
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231E3A66' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 13px center / 12px 8px no-repeat,
    #fff;
  box-shadow: inset 0 0 0 1px rgba(30, 58, 102, .28);
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}
.sel select:focus { box-shadow: inset 0 0 0 1.5px var(--ink); }
.choice.is-error .sel select { box-shadow: inset 0 0 0 1.5px #C97A85; }

.rsvp__error {
  min-height: 0;
  margin: 0 0 10px;
  font-family: var(--f-ui);
  font-size: 13.5px;
  color: #B4606D;
  text-align: center;
}
.rsvp__error:empty { display: none; }

.btn-send {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  cursor: pointer;
  padding: 17px 20px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2a4a7c, var(--ink));
  color: #FCFAF5;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  box-shadow: 0 14px 26px -12px rgba(30, 58, 102, .7), inset 0 1px 0 rgba(255,255,255,.22);
  overflow: hidden;
  transition: transform .2s ease;
  touch-action: manipulation;
}
.btn-send:active { transform: scale(.97); }
.btn-send__spin {
  position: absolute; left: 50%; top: 50%;
  width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%;
  border: 2px solid rgba(252, 250, 245, .35);
  border-top-color: #FCFAF5;
  opacity: 0;
}
.btn-send.is-loading .btn-send__label { opacity: 0; }
.btn-send.is-loading .btn-send__spin { opacity: 1; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Confirmation */
.thanks {
  max-width: 400px;
  margin: 0 auto;
  padding: 34px 24px 32px;
  border-radius: 8px;
  background:
    url("../assets/img/grain.png") repeat,
    radial-gradient(100% 70% at 50% 0%, #EEF5FB, #fffdf9 70%);
  box-shadow: 0 0 0 1px rgba(30, 58, 102, .13), 0 28px 60px -32px rgba(30, 58, 102, .5);
  outline: none;
}
.thanks:not([hidden]) { animation: thanksIn 1.2s var(--ease-out) both; }
@keyframes thanksIn { from { opacity: 0; transform: translateY(24px) scale(.96); filter: blur(8px); } }
.thanks__bear { height: 150px; margin: 0 auto 14px; animation: bearHop 1.4s var(--ease-out) .3s both; }
@keyframes bearHop {
  0% { transform: translateY(30px) scale(.8); opacity: 0; }
  55% { transform: translateY(-10px) scale(1.03); opacity: 1; }
  75% { transform: translateY(2px) scale(.99); }
  100% { transform: none; opacity: 1; }
}
.thanks__title { margin: 0 0 8px; font-family: var(--f-script); font-weight: 400; font-size: 44px; line-height: 1.1; }
.thanks__msg { margin: 0 0 10px; font-size: 19px; }
.thanks__sign { margin: 0; font-family: var(--f-script); font-size: 26px; color: var(--gold); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding: 56px 8% calc(64px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(90% 60% at 50% 100%, rgba(188, 214, 236, .45), transparent 70%);
}
.footer__mark { position: relative; width: max-content; margin: 0 auto 18px; }
.footer__logo { height: 120px; }
.footer__q { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.footer__p { margin: 0 0 20px; font-style: italic; font-size: 17px; color: var(--ink-soft); }
.btn-cta {
  display: inline-block;
  padding: 15px 24px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--f-ui);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
  background: linear-gradient(180deg, #fff, #F3ECDD);
  box-shadow: 0 0 0 1px rgba(30, 58, 102, .3), 0 12px 24px -14px rgba(30, 58, 102, .6);
  transition: transform .2s ease;
  touch-action: manipulation;
}
.btn-cta:active { transform: scale(.96); }
.footer__brand { display: block; width: min(52%, 190px); margin: 22px auto 0; }
.footer__brand img { width: 100%; height: auto; }

/* =========================================================
   ÉLÉMENTS AQUARELLE DÉCORATIFS
   ========================================================= */
.deco {
  position: absolute;
  z-index: 4;
  height: auto;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  transform-origin: var(--o, 50% 100%);
  animation: decoSway var(--sd, 7s) ease-in-out infinite alternate;
}
@keyframes decoSway {
  from { transform: rotate(calc(var(--r, 0deg) - 3deg)) translateY(0); }
  to   { transform: rotate(calc(var(--r, 0deg) + 3deg)) translateY(-3px); }
}
.deco--shofar   { width: 108px; top: -40px; right: -26px; --r: 14deg; --o: 30% 60%; }
.deco--olive    { width: 104px; bottom: -34px; left: -30px; --r: 24deg; --o: 0% 100%; --sd: 8s; }
.deco--glasses  { width: 78px; top: -42px; right: -12px; --r: 10deg; --o: 50% 100%; }
.deco--balloons { width: 76px; top: -64px; left: -18px; --r: -6deg; --o: 50% 100%; animation-name: balloonFloat; --sd: 5s; }
@keyframes balloonFloat {
  from { transform: rotate(calc(var(--r) - 2deg)) translateY(0); }
  to   { transform: rotate(calc(var(--r) + 3deg)) translateY(-10px); }
}
.deco--bougain  { width: 118px; top: -46px; left: -30px; --r: -8deg; --o: 0% 0%; }
.deco--jasmine  { width: 92px; bottom: -30px; right: -22px; --r: -12deg; --o: 100% 100%; --sd: 9s; }
.deco--balloons-thx { width: 70px; top: -40px; right: -10px; --r: 8deg; animation-name: balloonFloat; --sd: 4.5s; }
.deco--palm     { width: 86px; bottom: -6px; left: -78px; --r: -18deg; --o: 100% 100%; }
.deco--pomegranate { width: 74px; bottom: 0; right: -70px; --r: 8deg; --sd: 6s; }
.thanks { position: relative; }

/* =========================================================
   BOUTON MUSIQUE
   ========================================================= */
.music {
  position: fixed;
  z-index: 40;
  right: max(14px, calc(50vw - var(--col) / 2 + 14px));
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: grid; place-items: center;
  background: rgba(252, 250, 245, .86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(30, 58, 102, .22), 0 10px 22px -10px rgba(30, 58, 102, .55);
  animation: btnIn .8s var(--ease-out) both;
  touch-action: manipulation;
}
.music[hidden] { display: none; }
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music__bars i {
  width: 3px; height: 100%;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: 50% 100%;
  animation: eq 1s ease-in-out infinite;
}
.music__bars i:nth-child(2) { animation-delay: -.3s; }
.music__bars i:nth-child(3) { animation-delay: -.6s; }
.music__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music.is-off .music__bars i { animation: none; transform: scaleY(.25); opacity: .6; }
.music.is-off::after {
  content: "";
  position: absolute;
  width: 26px; height: 2px;
  background: var(--ink);
  transform: rotate(-45deg);
  border-radius: 2px;
}

/* Confettis */
.confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 70;
  pointer-events: none;
}

/* =========================================================
   Réduction des animations
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .3s !important; }
  .petals, .bokeh, .birds, .gulls { display: none; }
  .levy__l { opacity: 1; filter: none; transform: none; }
}

/* Très petits écrans */
@media (max-width: 340px) {
  .s-date, .s-event, .s-rsvp { padding-left: 5%; padding-right: 5%; }
  .rsvp { padding: 24px 16px 22px; }
  .check { padding: 12px 11px; gap: 10px; }
  .check__txt b { font-size: 16.5px; }
}

/* Replis pour les navigateurs sans aspect-ratio (iOS < 15) */
@supports not (aspect-ratio: 1) {
  .wc-logo { width: auto; }
  .intro__logo { width: calc(clamp(150px, 30vh, 230px) * .399); }
  .hero__logo { width: 2.24em; }
  .footer__logo { width: 48px; }
  .thanks__bear { width: 60px; }
  .bus-road { height: 66vw; max-height: 370px; }
  .cd { height: 24vw; max-height: 125px; }
  .hero__sun { height: 46vw; }
}
