/* ==========================================================================
   Bar Mitsvah — Ichaya Reby
   Palette Pucci : bleu océan, bleu roi, ciel, lavande, mauve, crème, or
   ========================================================================== */

:root {
  --navy-900: #071640;
  --navy: #0B1F5C;
  --royal: #1A3FB5;
  --cobalt: #2B5BE0;
  --sky: #A8D1F7;
  --sky-50: #EAF4FD;
  --lavender: #CDBDF4;
  --lavender-50: #F4EFFD;
  --mauve: #A383DE;
  --violet: #6E4CC0;
  --rose: #E7B8DE;
  --cream: #FBF6EC;
  --ivory: #FFFDF8;
  --gold: #C9A04A;
  --gold-deep: #94691F;
  --gold-light: #F4DC9B;
  --ink: #0F1F4D;
  --ink-soft: #3A4A7E;

  --g-gold: linear-gradient(115deg, #8F6622 0%, #D8B25C 18%, #FFF1C6 30%, #C9A04A 44%, #8F6622 60%, #E7C674 78%, #9C7329 100%);
  --g-gold-text: linear-gradient(115deg, #84591A 0%, #B3852F 18%, #E0BC66 30%, #A87B2A 44%, #7A5316 60%, #C79C45 78%, #8A611C 100%);
  --g-royal: linear-gradient(140deg, #2B5BE0 0%, #1A3FB5 45%, #0B1F5C 100%);

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-script: "Great Vibes", "Snell Roundhand", cursive;
  --f-hebrew: "Frank Ruhl Libre", "David", "Times New Roman", serif;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--navy);
}
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--f-body);
  font-size: 1.04rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }

html.is-locked,
html.is-locked body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

/* Fond de page sur grand écran (l'invitation reste une colonne type mobile) */
body::before {
  content: "";
  position: fixed;
  inset: -40px;
  z-index: -1;
  background: url("../assets/img/pucci.webp") center / cover no-repeat, var(--navy);
  filter: saturate(1.05) brightness(.82);
}
/* Sur mobile l'invitation occupe tout l'écran : le décor de fond ne sert qu'aux grands écrans.
   Sous le footer (rebond iOS), on ne voit ainsi que le bleu marine uni, raccord avec le footer. */
@media (max-width: 600px) {
  body::before { display: none; }
  html body .invite { box-shadow: none; }
}

.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 34px;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .848rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s var(--ease-out), box-shadow .3s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.965); }
.btn::after { /* reflet qui balaie le bouton */
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 48%, transparent 64%);
  transform: translateX(-120%);
  animation: btnShine 4.2s ease-in-out 1.2s infinite;
}
@keyframes btnShine {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}
.btn--royal {
  color: #fff;
  background: var(--g-royal);
  box-shadow:
    inset 0 0 0 2px rgba(244, 220, 155, .95),
    inset 0 0 0 5px rgba(11, 31, 92, .6),
    inset 0 0 0 6px rgba(244, 220, 155, .5),
    0 14px 34px -10px rgba(11, 31, 92, .65);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.btn--royal::after { z-index: 0; mix-blend-mode: soft-light; }
.btn--royal .btn__label { position: relative; z-index: 1; }
.btn--gold {
  color: var(--navy);
  background: var(--g-gold);
  background-size: 200% 100%;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), 0 14px 30px -12px rgba(201, 160, 74, .8);
}
.btn--gold .btn__label { position: relative; z-index: 1; }

/* ==========================================================================
   POP-UP D'OUVERTURE
   ========================================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--navy);
  touch-action: none;
  overscroll-behavior: none;
}
.intro__bg {
  position: absolute;
  inset: 0;
  transform-origin: var(--ox, 50%) var(--oy, 40%);
  animation: introBgIn 2.4s var(--ease-out) both;
}
@keyframes introBgIn {
  from { transform: scale(1.18); filter: blur(10px) brightness(.6); }
  to { transform: scale(1.04); filter: none; }
}
.intro__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 28s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  from { transform: scale(1) rotate(0deg); }
  to { transform: scale(1.12) rotate(1.5deg); }
}
.intro__sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 246, 220, .38) 50%, transparent 65%);
  mix-blend-mode: soft-light;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}
.intro__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 45%, transparent 40%, rgba(7, 22, 64, .55) 100%);
}

.intro__stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(18px + var(--safe-t)) 16px calc(18px + var(--safe-b));
  transform-origin: var(--ox, 50%) var(--oy, 40%);
}

.medallion {
  --w: min(76vw, 330px, 46vh);
  --w: min(76vw, 330px, 46svh);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: medallionIn 1.6s var(--ease-out) .25s both;
}
@keyframes medallionIn {
  from { opacity: 0; transform: translateY(26px) scale(.86); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}
.medallion__oval {
  position: relative;
  width: var(--w);
  height: calc(var(--w) * 1.4);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 30%, #FFFFFF 0%, var(--ivory) 45%, #F5EDDC 100%);
  box-shadow:
    0 0 0 3px #E3C27A,
    0 0 0 7px rgba(255, 253, 248, .85),
    0 0 0 9px #B98C36,
    0 0 0 14px rgba(11, 31, 92, .18),
    0 30px 70px -10px rgba(4, 12, 40, .7);
  animation: ovalBreath 7s ease-in-out infinite;
}
@keyframes ovalBreath {
  0%, 100% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  33% { border-radius: 47% 53% 51% 49% / 49% 47% 53% 51%; }
  66% { border-radius: 53% 47% 48% 52% / 52% 51% 49% 48%; }
}
.medallion__oval::before { /* fin filet doré intérieur */
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  border: 1px solid rgba(201, 160, 74, .55);
  pointer-events: none;
}
.medallion__logo {
  width: calc(var(--w) * .62);
  height: auto;
  margin-top: -4%;
  filter: drop-shadow(0 6px 10px rgba(148, 105, 31, .25));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.medallion__btn {
  margin-top: -30px;
  animation: btnIn 1s var(--ease-out) 1.4s both, btnPulse 2.6s ease-in-out 2.6s infinite;
}
@keyframes btnIn {
  from { opacity: 0; transform: translateY(18px) scale(.9); }
  to { opacity: 1; transform: none; }
}
@keyframes btnPulse {
  0%, 100% { box-shadow: inset 0 0 0 2px rgba(244,220,155,.95), inset 0 0 0 5px rgba(11,31,92,.6), inset 0 0 0 6px rgba(244,220,155,.5), 0 14px 34px -10px rgba(11,31,92,.65), 0 0 0 0 rgba(244, 220, 155, .55); }
  50% { box-shadow: inset 0 0 0 2px rgba(244,220,155,.95), inset 0 0 0 5px rgba(11,31,92,.6), inset 0 0 0 6px rgba(244,220,155,.5), 0 14px 34px -10px rgba(11,31,92,.65), 0 0 0 14px rgba(244, 220, 155, 0); }
}

/* --- Transition d'ouverture : on plonge dans l'œil --- */
.intro.is-opening { pointer-events: none; }
.intro.is-opening .intro__stage {
  animation: stageOut 1.25s var(--ease-io) forwards;
}
.intro.is-opening .intro__bg {
  animation: bgOut 1.6s var(--ease-io) forwards;
}
.intro.is-opening .medallion__btn { animation: none; }
@keyframes stageOut {
  0% { transform: scale(1); opacity: 1; }
  30% { transform: scale(.97); opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; filter: blur(6px); }
}
@keyframes bgOut {
  from { transform: scale(1.04) rotate(0deg); }
  to { transform: scale(1.7) rotate(8deg); filter: brightness(1.15) saturate(1.2); }
}

.reveal-ring {
  position: fixed;
  z-index: 120;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  border: 3px solid #F4DC9B;
  box-shadow: 0 0 0 2px rgba(201, 160, 74, .6), 0 0 26px 6px rgba(244, 220, 155, .75), inset 0 0 26px 4px rgba(244, 220, 155, .6);
}

.burst {
  position: fixed;
  z-index: 130;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  pointer-events: none;
  background: radial-gradient(circle, #FFF6D8 0%, #F4DC9B 40%, rgba(201,160,74,0) 72%);
  border-radius: 50%;
  animation: burst 1.1s var(--ease-out) forwards;
}
.burst--star {
  width: 14px; height: 14px; margin: -7px 0 0 -7px;
  background: none;
}
.burst--star::before {
  content: "✦";
  position: absolute;
  inset: 0;
  font-size: 14px;
  line-height: 14px;
  color: #FBE7AE;
  text-shadow: 0 0 6px rgba(244, 220, 155, .9);
}
@keyframes burst {
  0% { transform: translate(0, 0) scale(.4); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(1.2) rotate(var(--rot, 0deg)); opacity: 0; }
}

/* ==========================================================================
   INVITATION
   ========================================================================== */
.invite {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 80px rgba(4, 12, 40, .5);
  overflow: clip;
}
@supports not (overflow: clip) {
  .invite { overflow: visible; }
}
.invite.is-revealing {
  position: relative;
  z-index: 110;
  will-change: clip-path;
}

/* Animation d'arrivée de la première section */
.hero__inner { transition: transform 2s var(--ease-out); }
.invite:not(.is-open) .hero__inner { transform: scale(1.1); }

/* ---------- Vagues Pucci (générées en JS) ---------- */
.waves {
  position: relative;
  z-index: 3;
  height: var(--wh, 120px);
  pointer-events: none;
  line-height: 0;
}
.waves svg { width: 100%; height: 100%; overflow: visible; }
.waves .wv { animation: wvSlide var(--dur, 30s) linear infinite; }
.waves .wv--rev { animation-direction: reverse; }
.waves.is-paused .wv { animation-play-state: paused; }
@keyframes wvSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-400px); }
}
.waves--bottom { position: absolute; left: 0; right: 0; bottom: -1px; }

/* ---------- Particules dorées ---------- */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.intro .sparkles { z-index: 2; }

/* ---------- Révélations au scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 1s ease var(--d, 0s),
    transform 1.1s var(--ease-out) var(--d, 0s),
    filter 1.1s ease var(--d, 0s);
}
[data-reveal="left"] { transform: translate3d(-34px, 0, 0); }
[data-reveal="right"] { transform: translate3d(34px, 0, 0); }
[data-reveal="zoom"] { transform: scale(.82); }
[data-reveal="blur"] { transform: translate3d(0, 10px, 0) scale(1.06); filter: blur(10px); }
[data-reveal="card"] { transform: translate3d(0, 50px, 0) scale(.96); }
[data-reveal="name"] { transform: none; }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   SECTION 1 — FAIRE-PART
   ========================================================================== */
.s-hero {
  position: relative;
  padding-bottom: 124px; /* le bloc « pensée émue » au plus près des vagues (crête max : 117px) */
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(205, 189, 244, .28), transparent 60%),
    radial-gradient(90% 40% at 50% 100%, rgba(168, 209, 247, .3), transparent 70%),
    var(--cream);
  text-align: center;
}
.s-hero > .waves:first-child { --wh: 108px; }
.hero__inner {
  padding-top: 6px;
}
.hero__logo-wrap {
  position: relative;
  width: min(54vw, 236px);
  margin: -8px auto 22px;
}
.hero__logo-wrap::before { /* halo doré derrière l'œil */
  content: "";
  position: absolute;
  left: 50%;
  top: 30%;
  width: 120%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 220, 155, .55) 0%, rgba(244, 220, 155, 0) 62%);
  animation: halo 4.5s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}
.hero__logo {
  position: relative;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(148, 105, 31, .22));
}

.grandparents {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 -4px 6px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(.96rem, 4.32vw, 1.267rem);
  line-height: 1.2;
  color: var(--navy);
  white-space: nowrap;
}
.gp--left { text-align: left; }
.gp--right { text-align: right; }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 16px;
  color: var(--gold);
}
.ornament span {
  width: 72px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.ornament i { font-style: normal; font-size: .88rem; }
.ornament--small { margin: 10px auto 14px; }
.ornament--small span { width: 54px; }

/* Parents, frères et sœur, annonce : même typo et même taille */
.parents,
.siblings,
.announce {
  font-style: normal;
  font-weight: 700;
  font-size: clamp(1.28rem, 5.6vw, 1.68rem);
  line-height: 1.15;
  text-wrap: balance;
}
.parents { color: var(--navy); }
.siblings {
  margin-top: 6px;
  color: var(--navy);
}
.announce {
  margin-top: 22px;
  color: var(--ink-soft);
}
.bar-mitsvah {
  margin: 8px 0 4px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 11.4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--g-gold-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,255,255,.8)) drop-shadow(0 6px 12px rgba(148, 105, 31, .28));
  animation: goldShimmer 6s linear infinite;
}
@keyframes goldShimmer {
  from { background-position: 0% 50%; }
  to { background-position: -220% 50%; }
}

.name-block { margin: 14px auto 0; }
.name-svg {
  width: 80%;
  max-width: 416px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  filter: drop-shadow(0 10px 18px rgba(11, 31, 92, .22));
}
.name-svg text {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 132px;
}
.name-svg__shadow { fill: #0B1F5C; }
.name-svg__fill { opacity: 0; transition: opacity 1.4s ease 1.2s; }
.name-svg__stroke {
  fill: none;
  stroke-width: 3.2px;
  stroke-linejoin: round;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  transition: stroke-dashoffset 2.6s cubic-bezier(.45, .05, .25, 1) .1s;
}
.name-svg__shadow { opacity: 0; transition: opacity 1.4s ease 1.4s; }
.name-block.is-in .name-svg__shadow { opacity: .92; }
.name-block.is-in .name-svg__fill { opacity: 1; }
.name-block.is-in .name-svg__stroke { stroke-dashoffset: 0; }

.hebrew {
  margin-top: 2px;
  font-family: var(--f-hebrew);
  font-weight: 900;
  font-size: clamp(2.32rem, 11.2vw, 3.36rem);
  line-height: 1.1;
  color: var(--royal);
  text-shadow: 0 2px 0 rgba(244, 220, 155, .9), 0 10px 22px rgba(26, 63, 181, .25);
  /* centrage optique : la masse visuelle d'« ICHAYA » penche à gauche (I fin, A larges),
     on aligne ישעיה sur ce centre perçu plutôt que sur le centre géométrique */
  position: relative;
  left: calc(min(80%, 416px) * -.017);
}
[data-reveal="name"].is-in .hebrew { transition-delay: 1.6s; }

/* Mémoire — bloc compact : bougie à gauche, texte à droite */
.memorial {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 72px auto 0;
  padding: 10px 16px 10px 12px;
  max-width: 360px;
  border-radius: 16px;
  text-align: left;
  background: linear-gradient(180deg, rgba(244, 239, 253, .95), rgba(255, 253, 248, .9));
  box-shadow: inset 0 0 0 1px rgba(201, 160, 74, .55), 0 14px 30px -22px rgba(11, 31, 92, .45);
}
.memorial p {
  padding-left: 12px;
  border-left: 1px solid rgba(201, 160, 74, .5);
  text-wrap: pretty;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(.8rem, 3.4vw, .9rem);
  line-height: 1.35;
  color: var(--ink-soft);
}
.memorial strong { font-style: normal; font-weight: 700; color: var(--navy); }

.candle {
  flex: 0 0 auto;
  position: relative;
  width: 22px;
  height: 64px;
  margin: -9px -3px; /* compense la réduction ci-dessous */
  transform: scale(.72);
}
.candle__body {
  position: absolute;
  bottom: 0;
  left: 3px;
  width: 16px;
  height: 36px;
  border-radius: 4px 4px 3px 3px;
  background: linear-gradient(90deg, #EDE4D2, #FFFDF8 40%, #E6DAC2);
  box-shadow: inset 0 -3px 0 rgba(201, 160, 74, .5);
}
.candle__wick {
  position: absolute;
  bottom: 35px;
  left: 10px;
  width: 2px;
  height: 6px;
  background: #3a2c1a;
  border-radius: 1px;
}
.candle__flame {
  position: absolute;
  bottom: 39px;
  left: 4px;
  width: 14px;
  height: 22px;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fff 0%, #FFF3B0 22%, #FFC24A 52%, rgba(255, 140, 30, .0) 76%);
  transform-origin: 50% 90%;
  animation: flicker 2.2s ease-in-out infinite;
}
.candle__glow {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 120, .55), rgba(255, 210, 120, 0) 65%);
  animation: glow 2.2s ease-in-out infinite;
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  20% { transform: scale(1.04, .96) rotate(2deg); }
  40% { transform: scale(.96, 1.06) rotate(-2deg); }
  60% { transform: scale(1.03, .97) rotate(1deg); }
  80% { transform: scale(.98, 1.03) rotate(-1.5deg); }
}
@keyframes glow {
  0%, 100% { opacity: .75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* ==========================================================================
   SECTION 2 — SAVE THE DATE
   ========================================================================== */
.s-countdown {
  position: relative;
  padding: 26px 0 180px;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, var(--navy) 0 24px, rgba(11, 31, 92, 0) 170px), /* raccord avec la vague */
    radial-gradient(90% 50% at 50% 35%, rgba(43, 91, 224, .45), transparent 70%),
    radial-gradient(60% 40% at 15% 85%, rgba(163, 131, 222, .35), transparent 70%),
    radial-gradient(60% 40% at 90% 70%, rgba(168, 209, 247, .18), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, #12308E 55%, #1A2E86 100%);
  overflow: hidden;
}


.script-title {
  margin: 0 0 20px;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: clamp(2.72rem, 13.2vw, 4.16rem);
  line-height: 1.3;
  white-space: nowrap;
  background: linear-gradient(110deg, #E7C674 0%, #FFF4CF 30%, #D8B25C 50%, #FFF1C6 70%, #C9A04A 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 7s linear infinite;
  /* marge intérieure : les boucles de la calligraphie dépassent la ligne,
     sans elle le dégradé (clippé au texte) coupe le haut des lettres */
  padding: .18em .15em .1em;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2.6vw, 14px);
  max-width: 460px;
  margin: 0 auto;
}
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cd-arch {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border-radius: 999px 999px 16px 16px;
  background: linear-gradient(180deg, #FFFDF8 0%, #F6EEDD 100%);
  box-shadow:
    inset 0 0 0 2px #E3C27A,
    inset 0 0 0 5px #FFFDF8,
    inset 0 0 0 6px rgba(201, 160, 74, .6),
    0 16px 30px -12px rgba(0, 0, 0, .55);
  overflow: hidden;
}
.cd-arch::before { /* petite vague Pucci en bas de l'arche */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  background:
    radial-gradient(60% 90% at 20% 100%, rgba(163, 131, 222, .55) 0 60%, transparent 61%),
    radial-gradient(60% 90% at 80% 100%, rgba(168, 209, 247, .75) 0 60%, transparent 61%),
    radial-gradient(70% 70% at 50% 110%, rgba(26, 63, 181, .7) 0 60%, transparent 61%);
  opacity: .9;
}
.cd-num {
  position: relative;
  z-index: 1;
  display: block;
  height: 1.1em;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.52rem, 7.36vw, 2.32rem);
  line-height: 1.1;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  margin-top: -12%;
}
.cd-num > span {
  display: block;
  transition: transform .6s var(--ease-out), opacity .6s ease;
}
.cd-num > span.is-leaving { position: absolute; inset: 0; transform: translateY(-100%); opacity: 0; }
.cd-num > span.is-entering { transform: translateY(100%); opacity: 0; }
.cd-label {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(.7rem, 2.9vw, .76rem);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.countdown-done {
  font-family: var(--f-script);
  font-size: 2.24rem;
  color: var(--gold-light);
}

/* ==========================================================================
   SECTIONS ÉVÉNEMENTS (téfilines / pool party)
   ========================================================================== */
.s-event { position: relative; text-align: center; }
.s-tefilines {
  padding: 34px 0 70px;
  background:
    linear-gradient(180deg, var(--cream) 0 24px, rgba(251, 246, 236, 0) 170px), /* raccord avec la vague */
    radial-gradient(100% 40% at 50% 62%, rgba(205, 189, 244, .3), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, #F3F0FB 100%);
}


.event-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 8px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  background: var(--ivory);
  border-radius: 50%;
  padding: 7px;
  box-shadow: 0 0 0 1.5px #D9B45E, 0 8px 20px -8px rgba(148, 105, 31, .6);
  overflow: visible;
}
.event-icon path, .event-icon circle {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transition: stroke-dashoffset 2.2s var(--ease-out) .5s;
}
.is-in .event-icon path, .is-in .event-icon circle { stroke-dashoffset: 0; }
.event-icon--palm { stroke: var(--gold-deep); }
.event-icon--palm circle { fill: var(--gold); stroke: none; }

.event-kicker {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .896rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--royal);
}
.event-title {
  margin-top: 2px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.76rem, 8.48vw, 2.56rem);
  line-height: 1.04;
  letter-spacing: .02em;
  font-variant-numeric: lining-nums;
  color: var(--navy);
  white-space: nowrap;
}
.event-day {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: .896rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--royal);
}
.event-date {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.16rem, 5.28vw, 1.48rem);
  line-height: 1.2;
  color: var(--navy);
}
.event-time { margin: 14px 0 20px; }
.event-time span {
  display: inline-block;
  padding: 8px 30px 7px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: .08em;
  color: var(--navy);
  background: linear-gradient(180deg, #FFFDF8, #F7EEDB);
  box-shadow: inset 0 0 0 1.5px #D9B45E, inset 0 0 0 4px #FFFDF8, inset 0 0 0 5px rgba(201, 160, 74, .45);
}
.event-place {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(.944rem, 4.16vw, 1.12rem);
  line-height: 1.25;
  letter-spacing: .04em;
  color: var(--royal);
  text-wrap: balance;
}
.event-place--gold {
  font-size: clamp(1.2rem, 5.6vw, 1.52rem);
  letter-spacing: .1em;
  white-space: nowrap;
  background: var(--g-gold-text);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: goldShimmer 6s linear infinite;
}
.event-address {
  margin-top: 6px;
  font-weight: 600;
  font-size: clamp(1.04rem, 4.48vw, 1.2rem);
  line-height: 1.3;
  color: var(--ink);
}

/* Bouton Waze */
.btn-waze {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  min-height: 52px;
  padding: 6px 22px 6px 8px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #3AC8F4, #1E8FD8);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), 0 12px 24px -10px rgba(30, 143, 216, .8);
  transition: transform .25s var(--ease-out);
  touch-action: manipulation;
}
.btn-waze:active { transform: scale(.96); }
.btn-waze__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
}
.btn-waze__icon svg { width: 30px; height: 30px; }

/* ==========================================================================
   SECTION 4 — POOL PARTY
   ========================================================================== */

.swatches { display: inline-flex; }
.sw {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(201, 160, 74, .8), 0 4px 10px rgba(0,0,0,.15);
  animation: swBob 3s ease-in-out infinite;
}
.sw--white { background: radial-gradient(circle at 35% 30%, #fff, #EEE8DD); }
.sw--mauve { margin-left: -9px; background: radial-gradient(circle at 35% 30%, #D9C6F5, #9D7BD8 70%); animation-delay: .4s; }
@keyframes swBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Bulles */
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bubbles i {
  position: absolute;
  bottom: -30px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.25) 40%, rgba(255,255,255,.05) 70%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
  animation: bubble var(--t) ease-in infinite var(--d);
  opacity: 0;
}
@keyframes bubble {
  0% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: .9; }
  50% { transform: translate(12px, -50vh); }
  100% { transform: translate(-8px, -100vh); opacity: 0; }
}

/* ==========================================================================
   SECTION 5 — RSVP
   ========================================================================== */
.s-rsvp {
  position: relative;
  padding: 34px 0 190px;
  text-align: center;
  background:
    linear-gradient(180deg, var(--lavender-50) 0 24px, rgba(244, 239, 253, 0) 170px), /* raccord avec la vague */
    radial-gradient(80% 40% at 50% 0%, rgba(205, 189, 244, .45), transparent 70%),
    radial-gradient(70% 40% at 100% 60%, rgba(168, 209, 247, .3), transparent 70%),
    linear-gradient(180deg, var(--lavender-50) 0%, var(--cream) 100%);
}

.evil-eye { width: 104px; margin: 0 auto 6px; }
.evil-eye svg { width: 100%; height: auto; overflow: visible; }
.evil-eye__rays {
  stroke: var(--gold);
  stroke-width: 4;
  stroke-linecap: round;
  transform-origin: 60px 60px;
  animation: spin2 24s linear infinite;
}
@keyframes spin2 { to { transform: rotate(360deg); } }
.evil-eye__almond { fill: var(--ivory); stroke: var(--gold); stroke-width: 3.5; }
.evil-eye__iris { animation: look 7s ease-in-out infinite; }
@keyframes look {
  0%, 30%, 100% { transform: translate(0, 0); }
  40%, 52% { transform: translate(-6px, 0); }
  62%, 74% { transform: translate(6px, 0); }
}
.evil-eye__lid {
  fill: var(--gold);
  transform-origin: 60px 43px;
  transform: scaleY(0);
  animation: blink 5s ease-in-out infinite 1s;
}
@keyframes blink {
  0%, 92%, 100% { transform: scaleY(0); }
  95% { transform: scaleY(1.9); }
}

.rsvp-title {
  margin: 10px auto 22px;
  max-width: 440px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 5.44vw, 1.6rem);
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}
.rsvp-title__script {
  display: block;
  margin-top: 4px;
  font-family: var(--f-script);
  font-weight: 400;
  font-size: 1.75em;
  line-height: 1.05;
  text-transform: none;
  color: var(--violet);
}

.rsvp-card {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 26px 18px 28px;
  border-radius: 30px;
  background: var(--ivory);
  text-align: left;
  box-shadow:
    inset 0 0 0 1.5px #D9B45E,
    inset 0 0 0 7px var(--ivory),
    inset 0 0 0 8px rgba(201, 160, 74, .4),
    0 30px 60px -30px rgba(11, 31, 92, .55);
}

.field { display: block; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 440px) {
  .field-row { grid-template-columns: 1fr 1fr; gap: 12px; }
}
.field__label {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}
.field__input {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 1.5px solid rgba(26, 63, 181, .28);
  border-radius: 16px;
  background: #fff;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 1.08rem; /* > 16px : pas de zoom auto sur iOS */
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field__input:focus {
  outline: none;
  border-color: var(--royal);
  box-shadow: 0 0 0 4px rgba(43, 91, 224, .15);
}
.field__input.is-invalid { border-color: #C2334D; box-shadow: 0 0 0 4px rgba(194, 51, 77, .12); }
.field__input--area { min-height: 110px; resize: vertical; line-height: 1.35; }

.choices { margin: 4px 0 18px; padding: 0; border: 0; min-width: 0; }
.choices legend { margin-bottom: 10px; }
.choice {
  margin-bottom: 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(26, 63, 181, .2);
  transition: box-shadow .3s ease, background .3s ease;
}
.choice.is-on {
  background: linear-gradient(180deg, #F2F6FF, #fff);
  box-shadow: inset 0 0 0 2px var(--royal), 0 10px 24px -14px rgba(26, 63, 181, .6);
}
.choice--absent.is-on {
  background: linear-gradient(180deg, var(--lavender-50), #fff);
  box-shadow: inset 0 0 0 2px var(--violet), 0 10px 24px -14px rgba(110, 76, 192, .6);
}
.choice__head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 16px;
  cursor: pointer;
  touch-action: manipulation;
}
.choice__head input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice__box {
  flex: 0 0 auto;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(26, 63, 181, .45);
  transition: background .25s ease, box-shadow .25s ease, transform .25s var(--ease-out);
}
.choice__box::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 4px;
  width: 8px;
  height: 15px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease-out);
}
.choice__head input:checked + .choice__box {
  background: var(--g-royal);
  box-shadow: inset 0 0 0 2px var(--gold-light);
  transform: scale(1.06);
}
.choice--absent .choice__head input:checked + .choice__box { background: linear-gradient(140deg, var(--mauve), var(--violet)); }
.choice__head input:checked + .choice__box::after { transform: rotate(45deg) scale(1); }
.choice__head input:focus-visible + .choice__box { outline: 3px solid rgba(43, 91, 224, .45); outline-offset: 3px; }
.choice__text { display: flex; flex-direction: column; line-height: 1.2; }
.choice__text strong { font-weight: 700; font-size: 1.056rem; color: var(--navy); }
.choice__text small { margin-top: 3px; font-weight: 600; font-size: .88rem; color: var(--ink-soft); }

.choice__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.choice.is-on .choice__details { grid-template-rows: 1fr; }
.choice__details-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding: 0 16px;
  opacity: 0;
  transition: opacity .35s ease, padding .45s var(--ease-out);
}
.choice.is-on .choice__details-inner { opacity: 1; padding: 2px 16px 16px; }
.choice__details-inner--single { grid-template-columns: minmax(0, 220px); }

.mini-field span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .688rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--royal);
}
.mini-field select {
  width: 100%;
  min-height: 54px;
  padding: 8px 40px 8px 16px;
  border: 1.5px solid rgba(26, 63, 181, .3);
  border-radius: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--navy);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%23C9A04A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 12px center / 20px no-repeat,
    #fff;
  -webkit-appearance: none;
  appearance: none;
}
.mini-field select:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(43, 91, 224, .15); }

.form-error {
  min-height: 0;
  margin: -4px 0 12px;
  font-weight: 700;
  font-size: .92rem;
  color: #B42343;
  text-align: center;
}
.form-error:empty { display: none; }
.form-error.is-shake { animation: shake .45s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

.btn--submit { width: 100%; min-height: 64px; font-size: .96rem; }
.btn__spinner {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  animation: spin3 .8s linear infinite;
  position: relative;
  z-index: 1;
}
@keyframes spin3 { to { transform: rotate(360deg); } }
.btn--submit.is-loading .btn__spinner { display: inline-block; }
.btn--submit.is-loading { pointer-events: none; opacity: .9; }

.rsvp-form.is-leaving {
  animation: formOut .55s var(--ease-io) forwards;
}
@keyframes formOut {
  to { opacity: 0; transform: translateY(-14px) scale(.97); filter: blur(4px); }
}

.rsvp-thanks {
  text-align: center;
  padding: 8px 4px 4px;
  outline: none;
  animation: thanksIn .9s var(--ease-out) both;
}
@keyframes thanksIn {
  from { opacity: 0; transform: translateY(20px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.rsvp-thanks__check {
  width: 92px;
  height: 92px;
  margin: 0 auto 10px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rsvp-thanks__check circle {
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw 1s var(--ease-out) .2s forwards;
}
.rsvp-thanks__check path {
  stroke: var(--royal);
  stroke-width: 5;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw .6s var(--ease-out) .9s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.rsvp-thanks__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.36rem, 6.08vw, 1.76rem);
  line-height: 1.15;
  color: var(--navy);
}
.rsvp-thanks__text {
  margin-top: 10px;
  text-wrap: balance;
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.rsvp-thanks__summary {
  list-style: none;
  margin: 16px auto 0;
  padding: 0;
  max-width: 340px;
}
.rsvp-thanks__summary li {
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--sky-50);
  font-weight: 700;
  font-size: .944rem;
  color: var(--navy);
}
.rsvp-thanks__script {
  margin-top: 14px;
  font-family: var(--f-script);
  font-size: 2.56rem;
  line-height: 1.1;
  color: var(--violet);
}
.link-btn {
  margin-top: 8px;
  padding: 10px;
  border: 0;
  background: none;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .88rem;
  color: var(--royal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.s-footer {
  position: relative;
  padding: 30px 0 calc(96px + var(--safe-b));
  text-align: center;
  color: #fff;
  background:
    linear-gradient(180deg, var(--navy) 0 24px, rgba(11, 31, 92, 0) 170px), /* raccord avec la vague */
    linear-gradient(0deg, var(--navy) 0, rgba(11, 31, 92, 0) 200px), /* bas uni : se fond dans le fond de page (rebond iOS, barre Safari) */
    radial-gradient(80% 40% at 50% 30%, rgba(43, 91, 224, .45), transparent 70%),
    radial-gradient(60% 25% at 20% 62%, rgba(163, 131, 222, .22), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-900) 55%, var(--navy) 100%);
  overflow: hidden;
}
.footer-medallion {
  width: 168px;
  height: 230px;
  margin: 0 auto 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 30%, #fff, var(--ivory) 50%, #F2E8D4);
  box-shadow: 0 0 0 3px #E3C27A, 0 0 0 7px rgba(255,253,248,.15), 0 0 0 8px rgba(227, 194, 122, .6), 0 22px 50px -10px rgba(0,0,0,.6);
}
.footer-medallion { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.footer-medallion picture { display: block; width: 62%; }
.footer-dates {
  margin-top: 3px;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: .8rem;
  line-height: 1;
  letter-spacing: .02em;
  font-variant-numeric: lining-nums;
  color: var(--navy);
  white-space: nowrap;
}
.footer-medallion img { width: 100%; height: auto; margin: 0 auto; }
.footer-q {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(.8rem, 3.5vw, .94rem);
  line-height: 1.3;
  color: #fff;
  text-wrap: balance;
}
.footer-sub {
  margin: 4px 0 16px;
  font-style: italic;
  font-weight: 600;
  font-size: .86rem;
  color: var(--gold-light);
}
.s-footer .btn {
  min-height: 44px;
  font-size: clamp(.6rem, 2.7vw, .68rem);
  letter-spacing: .08em;
  padding: 0 20px;
  white-space: nowrap;
}

/* ==========================================================================
   BOUTON MUSIQUE & INDICATEUR DE SCROLL
   ========================================================================== */
.music-toggle {
  position: fixed;
  z-index: 90;
  right: max(16px, calc((100vw - var(--maxw)) / 2 + 16px));
  bottom: calc(18px + var(--safe-b));
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--gold-light);
  background: radial-gradient(circle at 35% 30%, #2B5BE0, var(--navy) 70%);
  box-shadow: inset 0 0 0 2px var(--gold-light), inset 0 0 0 5px rgba(11,31,92,.8), inset 0 0 0 6px rgba(244,220,155,.5), 0 10px 26px -6px rgba(4, 12, 40, .6);
  animation: btnIn .8s var(--ease-out) both;
  touch-action: manipulation;
}
.music-toggle:active { transform: scale(.94); }
.music-toggle__eq { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.music-toggle__eq i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, #FFF1C6, var(--gold));
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}
.music-toggle__eq i:nth-child(2) { animation-delay: -.3s; animation-duration: .8s; }
.music-toggle__eq i:nth-child(3) { animation-delay: -.6s; animation-duration: 1.2s; }
.music-toggle__eq i:nth-child(4) { animation-delay: -.15s; animation-duration: .9s; }
@keyframes eq {
  0%, 100% { transform: scaleY(.25); }
  50% { transform: scaleY(1); }
}
.music-toggle__off { display: none; width: 26px; height: 26px; }
.music-toggle.is-muted .music-toggle__eq { display: none; }
.music-toggle.is-muted .music-toggle__off { display: block; }

.scroll-hint {
  position: fixed;
  z-index: 89;
  left: 50%;
  bottom: calc(22px + var(--safe-b));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 16px 10px;
  border-radius: 999px;
  transform: translateX(-50%);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(255, 253, 248, .85);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(201, 160, 74, .6), 0 8px 20px -10px rgba(11, 31, 92, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease, transform .6s var(--ease-out);
}
.scroll-hint.is-visible { opacity: 1; }
.scroll-hint i {
  width: 12px;
  height: 12px;
  border: solid var(--gold-deep);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  animation: hintBounce 1.6s ease-in-out infinite;
}
@keyframes hintBounce {
  0%, 100% { transform: translateY(-2px) rotate(45deg); }
  50% { transform: translateY(4px) rotate(45deg); }
}

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

/* ==========================================================================
   Petits écrans / grands écrans
   ========================================================================== */
@media (max-width: 350px) {
  :root { --gutter: 14px; }
  .event-card { padding-left: 8px; padding-right: 8px; }
  .event-card__body { padding: 0 4px; }
  .rsvp-card { padding: 22px 12px 24px; }
  .choice__head { padding: 12px; gap: 10px; }
  .btn { padding: 0 24px; letter-spacing: .1em; }
}
@media (min-width: 600px) {
  .invite { margin-top: 0; }
}

/* ==========================================================================
   Accessibilité : mouvement réduit
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001s !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .name-svg__fill, .name-svg__shadow { opacity: 1; }
  .name-svg__stroke { stroke-dashoffset: 0; }
}

/* ==========================================================================
   PANNEAUX ÉVÉNEMENTS — reproduction fidèle des maquettes du client
   Tout est positionné en % du panneau : les proportions restent identiques
   quelle que soit la largeur de l'écran.
   ========================================================================== */
.mock {
  --W: min(calc(100vw - 2 * var(--gutter)), 480px);
  position: relative;
  width: var(--W);
  max-width: 100%;
  margin: 0 auto;
  border-radius: calc(var(--W) * .025);
  overflow: hidden;
  box-shadow: 0 30px 60px -28px rgba(11, 31, 92, .55);
}
.mock__bg { display: block; width: 100%; height: auto; }
.mock__layer { position: absolute; inset: 0; }

.mk {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--y);
  margin: 0;
  transform: translateY(-50%);
  text-align: center;
  white-space: nowrap;
  line-height: 1.1;
  font-size: calc(var(--W) * var(--fs, 3.3) / 100);
  color: #13235E;
}
.mk-ico-label, .mk-small, .mk-maillots, .mk-wm {
  left: var(--x);
  right: auto;
  transform: translate(-50%, -50%);
}
.mk-kicker {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: .55em;
  padding-left: .55em;
  text-transform: uppercase;
}
.mk-kicker--la { --fs: 2.6; letter-spacing: .4em; padding-left: .4em; }
.mk-title {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}
.mk-title--pool { text-transform: none; }
.mk-day {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .3em;
  padding-left: .3em;
}
.mk-date, .mk-time {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
}
.mk-place { font-family: var(--f-display); font-weight: 700; }
.mk-addr, .mk-text, .mk-wm {
  font-family: var(--f-body);
  font-weight: 600;
  font-variant-numeric: lining-nums;
}
.mk-extra {
  --fs: 2.8;
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .17em;
  padding-left: .17em;
  color: #A8702A;
}
.mk-small {
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8A63C9;
}
.mk-maillots {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  color: #A8702A;
}
.mk-party {
  font-family: var(--f-body);
  font-style: italic;
  font-weight: 600;
}
.mk-party em { color: #B5762B; }
.mk-party strong { font-weight: 700; }

.mk-phrase {
  position: absolute;
  left: 13%;
  right: 13%;
  top: var(--y);
  margin: 0;
  transform: translateY(-50%);
  text-align: center;
  text-wrap: balance;
  font-family: var(--f-body);
  font-style: italic;
  font-weight: 600;
  font-size: calc(var(--W) * .036);
  line-height: 1.22;
  color: #2A3A72;
}
.mk-hachem {
  font-family: var(--f-hebrew);
  font-style: normal;
  font-weight: 700;
  color: #A8702A;
  unicode-bidi: isolate;
}
.mk-orn {
  position: absolute;
  left: 50%;
  top: var(--y);
  width: var(--w);
  display: flex;
  align-items: center;
  gap: calc(var(--W) * .015);
  transform: translate(-50%, -50%);
}
.mk-orn i { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(201, 160, 74, 0), #C9A04A); }
.mk-orn i:last-child { background: linear-gradient(90deg, #C9A04A, rgba(201, 160, 74, 0)); }
.mk-orn b { font-weight: 400; font-size: calc(var(--W) * .024); line-height: 1; color: #B8862F; }

.mk-pill, .mk-box {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
}
.mk-pill {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 253, 248, .9), rgba(247, 238, 219, .9));
  box-shadow: inset 0 0 0 1.5px #D2A957, inset 0 0 0 calc(var(--W) * .008) rgba(255, 253, 248, .95), inset 0 0 0 calc(var(--W) * .008 + 1px) rgba(201, 160, 74, .55);
}
.mk-box {
  border-radius: calc(var(--W) * .025);
  background: rgba(247, 241, 253, .75);
  box-shadow: inset 0 0 0 1.5px rgba(163, 131, 222, .6);
}

.mk-ico {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--W) * .075);
  transform: translate(-50%, -50%);
}
.mk-ico svg {
  display: block;
  width: 100%;
  height: auto;
  fill: none;
  stroke: #A8702A;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mk-ico--cloche { width: calc(var(--W) * .08); }
.mk-ico-label {
  --fs: 1.75;
  font-family: var(--f-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding-left: .12em;
}
.mk-vline {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 1px;
  height: var(--h, 3.6%);
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, rgba(201, 160, 74, .15), rgba(201, 160, 74, .8), rgba(201, 160, 74, .15));
}
.mk-abs { position: absolute; left: var(--x); top: var(--y); width: var(--w); }
.mk-glasses { display: block; width: 100%; height: auto; animation: glassesTilt 3.5s ease-in-out infinite; }
@keyframes glassesTilt {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(3deg) translateY(-2px); }
}
.mk-swatches { display: flex; }
.mk-swatches .sw { width: calc(var(--W) * .058); height: calc(var(--W) * .058); }
.mk-swatches .sw--mauve { margin-left: calc(var(--W) * -.018); }

/* Pool party sur mobile : la carte est étroite dans la maquette, on « zoome » le panneau
   pour qu'elle occupe presque toute la largeur (seuls les bords de la photo sont recadrés). */
.mock-crop {
  position: relative;
  width: min(calc(100vw - 2 * var(--gutter)), 480px);
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: calc(min(calc(100vw - 2 * var(--gutter)), 480px) * .025);
  box-shadow: 0 30px 60px -28px rgba(11, 31, 92, .55);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.mock-crop .mock { box-shadow: none; border-radius: 0; }
@media (max-width: 600px) {
  .mock--pool {
    --W: calc((100vw - 2 * var(--gutter)) * 1.38);
    margin-left: calc((100% - var(--W)) / 2);
    max-width: none;
  }
  /* textes les plus fins agrandis pour rester lisibles */
  .mock--pool .mk-ico-label { --fs: 2.3; letter-spacing: .06em; padding-left: .06em; }
  .mock--pool .mk-small { --fs: 2.5 !important; letter-spacing: .08em; }
  .mock--pool .mk-kicker--la { --fs: 3; }
}

.mock-after { padding-top: 18px; text-align: center; }
/* Version /ichaya : la section téfilines est la dernière avant le formulaire */
.s-tefilines--last { padding-bottom: 170px; }
.mock-after .btn-waze { margin-top: 10px; }
.mock-after .event-address { font-size: 1.04rem; }

.s-pool {
  position: relative;
  padding: 0 0 150px;
  background: linear-gradient(180deg, #F3F0FB 0%, var(--lavender-50) 100%);
}
.s-pool > .waves:first-child { --wh: 96px; margin-bottom: 10px; }

/* Champ piège anti-robots du formulaire (invisible) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
