/* =========================================================
   Bar Mitzvah de Harel — Invitation numérique
   ========================================================= */

:root {
  --navy-950: #050a19;
  --navy-900: #070e22;
  --navy-800: #0b1733;
  --navy-700: #13244a;
  --navy-600: #1d3363;
  --gold-50:  #fff8e2;
  --gold-100: #fbefc9;
  --gold-200: #f1dc9f;
  --gold-300: #e3c27a;
  --gold-400: #cfa75a;
  --gold-500: #b8893d;
  --gold-600: #8f6526;
  --ivory: #f6eedc;
  --ivory-dim: rgba(246, 238, 220, .78);
  --sky: #9cc5ec;

  --f-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-script: "Playfair Display", Georgia, serif;
  --f-serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --f-hebrew: "Frank Ruhl Libre", "David", "Times New Roman", serif;

  --gold-grad: linear-gradient(100deg,
    #9a6f2c 0%, #d9b35f 14%, #fff1c2 26%, #e3c070 38%, #a97b33 52%,
    #e7c878 66%, #fff4cf 76%, #c99c4c 88%, #8f6526 100%);

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

  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --nav-h: 66px;
  --col: 520px;
}

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

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--ivory);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: fixed;
  inset: 0;
  font-family: var(--f-serif);
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
  touch-action: manipulation;
}

button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
[hidden] { display: none !important; }
[dir="rtl"], .he { font-family: var(--f-hebrew); }

/* ---------- Texte doré ---------- */
.gold {
  background: var(--gold-grad);
  background-size: 260% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.shine { animation: shine 7s linear infinite; }
@keyframes shine { to { background-position: 260% 50%; } }

/* léger relief : ombre portée appliquée au conteneur (compatible Safari) */
.relief {
  display: inline-block;
  filter:
    drop-shadow(0 1px 0 rgba(255, 240, 200, .25))
    drop-shadow(0 1.5px 0 rgba(40, 22, 2, .75))
    drop-shadow(0 4px 10px rgba(0, 0, 0, .45));
}

/* =========================================================
   SCÈNE — fond fixe immersif
   ========================================================= */
.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--navy-900);
}
.scene__cam, .scene__par, .scene__img { position: absolute; inset: 0; }
.scene__cam {
  transform: scale(var(--s, 1.12)) translate3d(var(--x, 0%), var(--y, 0%), 0);
  transition: transform 2.6s var(--ease-io);
  will-change: transform;
}
.scene__par {
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform .9s var(--ease-out);
}
.scene__img {
  inset: -4%;
  background-color: #7fa9d9;
  background-image: url("../assets/img/background.jpg");
  background-image: image-set(url("../assets/img/background.webp") type("image/webp"), url("../assets/img/background.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 40%;
  animation: kenburns 38s ease-in-out infinite alternate;
}
@keyframes kenburns {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.08) translate3d(-1.5%, -1.2%, 0); }
}

/* cadrage caméra par page */
body[data-page="intro"] .scene__cam { --s: 1.45; --x: 0%; --y: 6%; }
body[data-page="0"] .scene__cam { --s: 1.14; --x: 0%; --y: 3%; }
body[data-page="1"] .scene__cam { --s: 1.32; --x: -9%; --y: -3%; }
body[data-page="2"] .scene__cam { --s: 1.22; --x: 7%; --y: 4%; }
body[data-page="3"] .scene__cam { --s: 1.38; --x: -4%; --y: -9%; }
body[data-page="4"] .scene__cam { --s: 1.26; --x: 9%; --y: 1%; }
body[data-page="5"] .scene__cam { --s: 1.1; --x: 0%; --y: 0%; }

.scene__rays {
  position: absolute;
  left: 50%; top: -38vmax;
  width: 150vmax; height: 150vmax;
  margin-left: -75vmax;
  background: repeating-conic-gradient(from 0deg,
    rgba(255, 236, 180, .10) 0deg 4deg, rgba(255, 236, 180, 0) 4deg 13deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.5) 25%, transparent 55%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0,0,0,.5) 25%, transparent 55%);
  animation: spin 90s linear infinite;
  opacity: .9;
}
@keyframes spin { to { transform: rotate(360deg); } }

.scene__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 226, 160, .16), transparent 60%),
    linear-gradient(180deg, rgba(7, 14, 34, .58) 0%, rgba(7, 14, 34, .74) 38%, rgba(5, 10, 25, .9) 100%);
  transition: opacity 1.6s var(--ease-io);
}
body[data-page="intro"] .scene__veil { opacity: 1; }
.scene__shade {
  position: absolute; inset: 0;
  background: rgba(4, 8, 20, .38);
  opacity: 0;
  transition: opacity 1.8s var(--ease-io);
}
body[data-page="0"] .scene__shade { opacity: 1; }
.scene__vignette {
  position: absolute; inset: 0;
  background: radial-gradient(130% 90% at 50% 45%, transparent 55%, rgba(3, 6, 16, .7) 100%);
  pointer-events: none;
}

.dust, .fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dust { z-index: 1; opacity: 0; transition: opacity 2.5s ease .6s; }
body.is-opening .dust, body.is-open .dust { opacity: 1; }
.fx { z-index: 80; }

/* ב״ה */
.bh {
  position: fixed;
  z-index: 60;
  top: calc(var(--safe-t) + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-hebrew);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--gold-200);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .6);
  opacity: .9;
  pointer-events: none;
}

/* =========================================================
   MUSIQUE
   ========================================================= */
.music {
  position: fixed;
  z-index: 60;
  top: calc(var(--safe-t) + 8px);
  right: 12px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(7, 14, 34, .5);
  border: 1px solid rgba(227, 194, 122, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: scale(.6);
  transition: opacity .6s, transform .6s var(--ease-out);
  pointer-events: none;
}
body.is-open .music, body.is-opening .music { opacity: 1; transform: none; pointer-events: auto; }
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.music__bars i {
  width: 3px; height: 4px;
  border-radius: 2px;
  background: linear-gradient(var(--gold-100), var(--gold-400));
  transition: height .3s;
}
.music.is-playing .music__bars i { animation: eq 1s ease-in-out infinite alternate; }
.music.is-playing .music__bars i:nth-child(2) { animation-delay: -.35s; animation-duration: .8s; }
.music.is-playing .music__bars i:nth-child(3) { animation-delay: -.7s; animation-duration: 1.15s; }
.music.is-playing .music__bars i:nth-child(4) { animation-delay: -.2s; animation-duration: .9s; }
@keyframes eq { 0% { height: 3px; } 100% { height: 16px; } }
.music.is-blocked { animation: pulseRing 1.6s ease-out infinite; }
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(227, 194, 122, .6); }
  100% { box-shadow: 0 0 0 16px rgba(227, 194, 122, 0); }
}

.yt {
  position: fixed;
  z-index: -1;
  left: 0; bottom: 0;
  width: 200px; height: 200px;
  opacity: .01;
  pointer-events: none;
}
.yt__msg { display: none; }
.yt__close { display: none; }
.yt.is-blocked .yt__close {
  display: grid; place-items: center;
  position: absolute; top: -12px; right: -12px;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 20px; line-height: 1;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-400));
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}
.yt__frame, .yt__frame iframe { width: 100%; height: 100%; border: 0; }
.yt.is-blocked {
  z-index: 90;
  left: 50%; bottom: calc(var(--safe-b) + 90px);
  width: 240px; height: auto;
  margin-left: -120px;
  padding: 10px;
  border-radius: 16px;
  opacity: 1;
  pointer-events: auto;
  background: rgba(7, 14, 34, .88);
  border: 1px solid rgba(227, 194, 122, .5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  animation: popIn .6s var(--ease-out);
}
.yt.is-blocked .yt__msg {
  display: block;
  margin: 0 0 8px;
  text-align: center;
  font-size: 15px;
  color: var(--gold-100);
}
.yt.is-blocked .yt__frame { height: 124px; border-radius: 10px; overflow: hidden; }
@keyframes popIn { from { opacity: 0; transform: translateY(20px) scale(.9); } }

/* =========================================================
   INTRO — portes et sceau
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  perspective: 1600px;
  overflow: hidden;
}
.intro__door {
  position: absolute;
  top: 0; bottom: 0;
  width: 50.5%;
  background:
    radial-gradient(120% 60% at 50% 45%, rgba(40, 70, 130, .35), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 7px),
    linear-gradient(180deg, #0d1a3a 0%, #081129 55%, #050a1b 100%);
  transition: transform 2.6s cubic-bezier(.76, 0, .24, 1) .3s;
  will-change: transform;
  backface-visibility: hidden;
}
/* lumière qui déborde de l'entrebâillement sur la tranche des portes */
.intro__door::after {
  content: "";
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.1s ease;
}
.intro__door--l::after { background: linear-gradient(270deg, rgba(255, 228, 165, .38), rgba(255, 228, 165, 0) 40%); }
.intro__door--r::after { background: linear-gradient(90deg, rgba(255, 228, 165, .38), rgba(255, 228, 165, 0) 40%); }
.intro__door--l { left: 0; transform-origin: 0 50%; box-shadow: inset -16px 0 30px rgba(0, 0, 0, .55); }
.intro__door--r { right: 0; transform-origin: 100% 50%; box-shadow: inset 16px 0 30px rgba(0, 0, 0, .55); }
.door__frame {
  position: absolute;
  inset: calc(var(--safe-t) + 44px) 16px calc(var(--safe-b) + 26px);
  border: 1px solid rgba(227, 194, 122, .55);
  border-radius: 999px 999px 8px 8px / 190px 190px 8px 8px;
}
.door__frame--in { inset: calc(var(--safe-t) + 52px) 24px calc(var(--safe-b) + 34px); border-color: rgba(227, 194, 122, .25); }
.intro__door--l .door__frame { border-right-color: transparent; border-radius: 999px 0 0 8px / 190px 0 0 8px; right: 0; }
.intro__door--r .door__frame { border-left-color: transparent; border-radius: 0 999px 8px 0 / 0 190px 8px 0; left: 0; }

.intro__flash {
  position: absolute;
  z-index: 1;
  top: -10%; bottom: -10%; left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: radial-gradient(50% 50% at 50% 50%,
    rgba(255, 246, 220, .95) 0%, rgba(255, 220, 150, .55) 22%, rgba(255, 214, 140, .18) 45%, rgba(255, 214, 140, 0) 70%);
  opacity: 0;
  transform: scaleX(.03);
  pointer-events: none;
  will-change: transform, opacity;
}

.intro__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 24px;
  transition: opacity 1s, transform 1.6s var(--ease-io), filter 1s;
}
.intro__star {
  width: 74px; height: 74px;
  margin-bottom: 18px;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(255, 214, 140, .55));
}
.draw {
  fill: none;
  stroke: url(#gGold);
  stroke-width: 2.6;
  stroke-linejoin: round;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  animation: draw 2.4s var(--ease-out) .3s forwards;
}
.draw--2 { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.intro__kicker {
  margin: 0;
  font-family: var(--f-display);
  font-size: 12px;
  line-height: 2;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-200);
  opacity: 0;
  animation: fadeDown 1.4s var(--ease-out) 1.2s forwards;
}
.intro__title {
  margin: 6px 0 0;
  font-family: var(--f-script);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(64px, 21vw, 110px);
  line-height: 1.05;
  opacity: 0;
  animation: fadeDown 1.6s var(--ease-out) 1.5s forwards;
}
.intro__he {
  margin: 2px 0 0;
  font-family: var(--f-hebrew);
  font-size: 22px;
  color: var(--gold-200);
  opacity: 0;
  animation: fadeDown 1.4s var(--ease-out) 1.9s forwards;
}
.intro__date {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 0;
  font-family: var(--f-display);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  opacity: 0;
  animation: fadeDown 1.4s var(--ease-out) 2.2s forwards;
}
.intro__date i { width: 4px; height: 4px; transform: rotate(45deg); background: var(--gold-300); }
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

.seal {
  position: relative;
  width: 104px; height: 104px;
  margin-top: 40px;
  border-radius: 50%;
  opacity: 0;
  animation: sealIn 1.4s var(--ease-out) 2.6s forwards;
}
@keyframes sealIn { from { opacity: 0; transform: scale(.4) rotate(-40deg); } to { opacity: 1; transform: none; } }
.seal__coin {
  position: absolute; inset: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 34% 28%, #fff7d6 0%, #f0d48b 18%, #d2a651 45%, #a87a2f 72%, #6d4a17 100%);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .7),
    inset 0 -6px 12px rgba(80, 45, 5, .55),
    0 0 0 5px rgba(227, 194, 122, .15),
    0 12px 30px rgba(0, 0, 0, .55),
    0 0 40px rgba(255, 210, 130, .35);
  animation: breathe 2.6s ease-in-out infinite;
}
.seal__coin::after {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 50%;
  border: 1px dashed rgba(90, 55, 10, .45);
}
.seal__coin svg { width: 52px; height: 52px; color: #5a3a0c; filter: drop-shadow(0 1px 0 rgba(255, 240, 200, .8)); }
@keyframes breathe { 50% { transform: scale(1.05); } }
.seal__ring {
  position: absolute; inset: -2px;
  border-radius: 50%;
  border: 1px solid rgba(241, 220, 159, .7);
  animation: ring 2.6s ease-out infinite;
}
.seal__ring--2 { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.intro__cta {
  margin: 24px 0 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(14px, 4.2vw, 17px);
  line-height: 1.5;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-100);
  opacity: 0;
  animation: fadeDown 1.2s var(--ease-out) 3.2s forwards;
}

/* ouverture */
body.is-opening .intro { pointer-events: none; }
body.is-opening .intro__door--l { transform: translate3d(-100%, 0, 0) rotateY(-22deg); }
body.is-opening .intro__door--r { transform: translate3d(100%, 0, 0) rotateY(22deg); }
body.is-opening .intro__door::after { opacity: 1; }
body.is-opening .intro__flash { animation: seamLight 2.8s cubic-bezier(.3, .6, .2, 1) .1s forwards; }
@keyframes seamLight {
  0%   { opacity: 0; transform: scaleX(.03); }
  22%  { opacity: 1; transform: scaleX(.16); }
  100% { opacity: 0; transform: scaleX(2.4); }
}
body.is-opening .intro__content {
  opacity: 0;
  transform: translate3d(0, -16px, 0) scale(1.03);
  transition: opacity .9s ease .1s, transform 1.6s var(--ease-out);
}
body.is-opening .seal { animation: sealOut 1s var(--ease-out) forwards; }
@keyframes sealOut {
  0%   { opacity: 1; transform: scale(1); }
  18%  { opacity: 1; transform: scale(.88); }
  100% { opacity: 0; transform: scale(1.45); }
}
/* arrivée de la caméra sur le Kotel, plus longue et amortie */
body.is-opening .scene__cam { transition: transform 3.8s cubic-bezier(.22, 1, .36, 1); }

/* =========================================================
   LIVRE / PAGES
   ========================================================= */
.book {
  position: fixed;
  inset: 0;
  z-index: 5;
  opacity: 0;
  transition: opacity 1.2s;
}
body.is-opening .book, body.is-open .book { opacity: 1; }

.page {
  position: absolute;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  visibility: hidden;
  scrollbar-width: none;
}
.page::-webkit-scrollbar { display: none; }
.page.is-active, .page.is-entering, .page.is-leaving { visibility: visible; }
.page.is-entering {
  z-index: 3;
  -webkit-clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%));
  clip-path: circle(0% at var(--ox, 50%) var(--oy, 50%));
  animation: portalIn 1.25s var(--ease-io) forwards;
}
@keyframes portalIn {
  to {
    -webkit-clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%));
    clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%));
  }
}
.page.is-leaving { z-index: 2; animation: pageOut 1.1s var(--ease-io) forwards; pointer-events: none; }
@keyframes pageOut { to { opacity: 0; transform: scale(.88) translateY(-3%); } }

.page__inner {
  position: relative;
  max-width: var(--col);
  margin: 0 auto;
  padding: calc(var(--safe-t) + 56px) 18px calc(var(--safe-b) + var(--nav-h) + 40px);
  text-align: center;
}

/* Portail doré */
.portal {
  position: fixed;
  z-index: 40;
  left: 0; top: 0;
  width: var(--ps, 300vmax); height: var(--ps, 300vmax);
  margin: calc(var(--ps, 300vmax) / -2) 0 0 calc(var(--ps, 300vmax) / -2);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle closest-side,
    transparent 0 90%,
    rgba(227, 194, 122, .0) 90.5%,
    rgba(227, 194, 122, .55) 94%,
    rgba(255, 246, 214, .95) 96%,
    rgba(227, 194, 122, .5) 97.5%,
    transparent 100%);
  opacity: 0;
  transform: scale(0);
}
.portal.run { animation: portal 1.25s var(--ease-io) forwards; }
@keyframes portal {
  0% { transform: scale(0); opacity: 1; }
  75% { opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

/* =========================================================
   APPARITIONS — écriture dorée de haut en bas
   ========================================================= */
.rv, .rv-photo {
  opacity: 0;
  transform: translate3d(0, -12px, 0);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 58%, transparent 100%);
  -webkit-mask-size: 100% 250%;
  mask-size: 100% 250%;
  -webkit-mask-position: 0 100%;
  mask-position: 0 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition:
    opacity 1s ease,
    transform 1.4s var(--ease-out),
    -webkit-mask-position 1.7s cubic-bezier(.3, .7, .3, 1),
    mask-position 1.7s cubic-bezier(.3, .7, .3, 1);
}
.rv:not(.in), .rv-photo:not(.in) { pointer-events: none; } /* invisible = pas cliquable */
.rv.in, .rv-photo.in {
  opacity: 1;
  transform: none;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
}
.rv.done, .rv-photo.done { -webkit-mask-image: none; mask-image: none; }

/* =========================================================
   PAGE 0 — faire-part
   ========================================================= */
.mini-star {
  width: 38px; height: 38px;
  margin: 0 auto 18px;
  color: var(--gold-300);
  filter: drop-shadow(0 0 8px rgba(255, 214, 140, .5));
}
.mini-star--lg { width: 54px; height: 54px; margin-bottom: 10px; }

/* Carte faire-part */
.fp {
  position: relative;
  padding: 28px 16px 26px;
  border-radius: 24px;
  background:
    radial-gradient(120% 45% at 50% 0%, rgba(227, 194, 122, .13), transparent 65%),
    linear-gradient(180deg, rgba(8, 16, 38, .86), rgba(5, 10, 25, .9));
  border: 1px solid rgba(227, 194, 122, .5);
  box-shadow:
    inset 0 0 0 6px rgba(5, 10, 25, .55),
    inset 0 0 0 7px rgba(227, 194, 122, .22),
    0 24px 50px rgba(0, 0, 0, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hosts {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  align-items: start;
}
.hosts::before {
  content: "";
  position: absolute;
  left: 50%; top: 4px; bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(227, 194, 122, .55) 20%, rgba(227, 194, 122, .55) 80%, transparent);
}
.host-col { display: flex; flex-direction: column; gap: 22px; }

.host, .mem, .tribute__name, .quote p {
  text-wrap: balance;
}
.host, .mem, .tribute__name {
  margin: 0;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ivory);
}
.host {
  font-size: clamp(17px, 4.6vw, 19.5px);
  color: var(--gold-100);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 8px rgba(0, 0, 0, .45);
}
.host .he { text-shadow: 0 1px 2px rgba(0, 0, 0, .85); }
.host--solo { margin-top: 30px; }
.host .he, .mem .he, .tribute__name .he {
  display: block;
  margin-top: 6px;
  font-weight: 500;
  font-size: clamp(15px, 4.1vw, 17px);
  line-height: 1.35;
  color: var(--gold-300);
}
.zl { font-family: var(--f-hebrew); font-size: .88em; color: var(--gold-300); white-space: nowrap; }

/* Mémoire */
.memorial { margin-top: 56px; }
.fp--memory {
  padding-top: 26px;
  background:
    radial-gradient(90% 35% at 50% 0%, rgba(255, 214, 140, .12), transparent 70%),
    linear-gradient(180deg, rgba(8, 16, 38, .86), rgba(5, 10, 25, .9));
}
.memorial__icon { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--gold-300); filter: drop-shadow(0 0 8px rgba(255, 214, 140, .6)); }
.memorial__title {
  display: flex; align-items: baseline; justify-content: center; gap: 8px;
  margin: 0 0 24px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(12.5px, 3.5vw, 14px);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.memorial__title span { font-size: 1.35em; letter-spacing: 0; color: var(--gold-300); }
.hosts--memory .host-col { gap: 20px; }
.mem { font-size: clamp(15.5px, 4.2vw, 17.5px); }
.mem .he { font-size: clamp(14.5px, 3.9vw, 16px); }

.tribute {
  position: relative;
  margin-top: 28px;
  padding-top: 26px;
}
.tribute::before {
  content: "";
  position: absolute; top: 0; left: 18%; right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 194, 122, .6), transparent);
}
.tribute__name { font-size: clamp(18px, 5vw, 21px); color: var(--gold-100); }
.quote {
  margin: 18px 0 0;
  padding: 0 6px;
}
.quote p {
  margin: 0;
  font-style: italic;
  font-size: clamp(17px, 4.7vw, 19.5px);
  line-height: 1.5;
  color: var(--ivory);
}
.quote p::before { content: "« "; color: var(--gold-300); }
.quote p::after { content: " »"; color: var(--gold-300); }
.quote cite {
  display: block;
  margin-top: 12px;
  font-family: var(--f-script);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 4.7vw, 20px);
  color: var(--gold-200);
}
.memorial__cta { margin-top: 34px; }

.flourish {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 30px auto 18px;
  color: var(--gold-300);
}
.flourish i { flex: 0 1 90px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-300)); }
.flourish i:last-child { transform: scaleX(-1); }
.flourish svg { width: 16px; height: 16px; filter: drop-shadow(0 0 6px rgba(255, 214, 140, .8)); }

.invite {
  margin: 10px 0 0;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(17px, 4.6vw, 19.5px);
  color: var(--ivory);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 8px rgba(0, 0, 0, .45);
}
.await {
  display: flex; justify-content: center; gap: 8px;
  height: 0; margin: 0;
  opacity: 0;
  transition: opacity .8s, height .8s, margin .8s;
}
.await i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-300); box-shadow: 0 0 10px var(--gold-300); animation: blink 1.6s ease-in-out infinite; }
.await i:nth-child(2) { animation-delay: .25s; }
.await i:nth-child(3) { animation-delay: .5s; }
@keyframes blink { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.page--cover.is-waiting .await { opacity: 1; height: 6px; margin: 26px 0 0; }

/* Révélation du prénom */
.rn {
  position: relative;
  margin-top: 26px;
  padding: 26px 0 8px;
  visibility: hidden;
}
.rn.in { visibility: inherit; }
.rn__glow {
  position: absolute;
  left: 50%; top: 46%;
  width: 150vw; height: 150vw;
  max-width: 760px; max-height: 760px;
  transform: translate(-50%, -50%) scale(0);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 236, 190, .55) 0%, rgba(227, 194, 122, .22) 28%, transparent 62%);
  pointer-events: none;
}
.rn.in .rn__glow { animation: glow 3.4s var(--ease-out) forwards; }
@keyframes glow {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  30% { opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: .55; }
}
.rn__rays {
  position: absolute;
  left: 50%; top: 46%;
  width: 640px; height: 640px;
  margin: -320px 0 0 -320px;
  background: repeating-conic-gradient(rgba(255, 232, 170, .22) 0deg 3deg, transparent 3deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  mask-image: radial-gradient(circle, #000 0%, transparent 62%);
  opacity: 0;
  transform: scale(.3);
  pointer-events: none;
}
.rn.in .rn__rays { animation: raysIn 2.8s var(--ease-out) .2s forwards, spin 60s linear 3s infinite; }
@keyframes raysIn { to { opacity: 1; transform: scale(1) rotate(30deg); } }

.rn > p, .rn > h2, .rn > div:not(.rn__glow):not(.rn__rays), .rn > button { position: relative; }
.rn__he {
  margin: 0;
  font-family: var(--f-hebrew);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 44px);
  line-height: 1.2;
  opacity: 0;
}
.rn__kicker {
  margin: 14px 0 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(13px, 3.8vw, 16px);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-100);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  opacity: 0;
}
.rn__name {
  margin: -4px 0 0;
  font-family: var(--f-script);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(92px, 30vw, 150px);
  line-height: 1;
  white-space: nowrap;
}
.rn__name .l {
  display: inline-block;
  padding: 0 .02em;
  opacity: 0;
  animation-duration: 7s;
}
.rn__line {
  width: 0; height: 1px;
  margin: 8px auto 16px;
  background: linear-gradient(90deg, transparent, var(--gold-200), transparent);
  box-shadow: 0 0 10px rgba(255, 214, 140, .8);
}
.rn__date, .rn__paracha {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  margin: 0;
  opacity: 0;
}
.rn__date span:first-child { font-size: clamp(20px, 5.8vw, 25px); color: var(--gold-100); }
.rn__date span:last-child {
  font-family: var(--f-display);
  font-size: clamp(12px, 3.5vw, 14px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.rn__paracha {
  flex-direction: row; justify-content: center; gap: 12px;
  margin-top: 16px;
  font-size: clamp(17px, 4.8vw, 20px);
  color: var(--ivory);
}
.rn__paracha i { width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-300); }
.rn__paracha span:last-child { font-style: italic; }
.rn__more { width: 26px; height: 26px; margin: 26px auto 0; color: var(--gold-200); opacity: 0; }
.rn__more svg { width: 100%; height: 100%; transform: rotate(90deg); animation: nudge 1.8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: rotate(90deg) translateX(6px); } }

.rn.in .rn__he { animation: fadeDown 1.6s var(--ease-out) .2s forwards; }
.rn.in .rn__kicker { animation: fadeDown 1.4s var(--ease-out) .7s forwards; }
.rn.in .rn__name .l { animation: letterIn 1.5s var(--ease-out) calc(1s + var(--i) * .16s) forwards, shine 7s linear calc(2.8s + var(--i) * .16s) infinite; }
.rn.in .rn__line { animation: lineIn 1.6s var(--ease-out) 2.1s forwards; }
.rn.in .rn__date { animation: fadeDown 1.4s var(--ease-out) 2.4s forwards; }
.rn.in .rn__paracha { animation: fadeDown 1.4s var(--ease-out) 2.8s forwards; }
.rn.in .rn__more { animation: fadeDown 1.4s var(--ease-out) 3.6s forwards; }
@keyframes letterIn {
  0% { opacity: 0; transform: translateY(-40px) scale(1.5); filter: blur(14px); }
  60% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes lineIn { to { width: min(260px, 70%); } }

/* =========================================================
   PAGES ÉVÉNEMENTS
   ========================================================= */
.ev-num {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 18px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .3em;
  color: var(--gold-200);
}
.ev-num i { width: 40px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-300)); }
.ev-num i:last-child { transform: scaleX(-1); }

.arch {
  position: relative;
  width: min(78%, 340px);
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  border-radius: 50% 50% 14px 14px / 40% 40% 14px 14px;
  padding: 7px;
  background: linear-gradient(160deg, rgba(255, 244, 207, .9), rgba(184, 137, 61, .9) 40%, rgba(255, 236, 190, .9) 60%, rgba(143, 101, 38, .9));
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55), 0 0 60px rgba(227, 194, 122, .18);
}
.arch::before {
  content: "";
  position: absolute; inset: 3px;
  border-radius: inherit;
  border: 1px solid rgba(60, 35, 5, .5);
  pointer-events: none;
  z-index: 2;
}
.arch__clip {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 50% 50% 9px 9px / 39% 39% 9px 9px;
  overflow: hidden;
  background: var(--navy-800);
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* force overflow+radius sur Safari */
}
.arch__clip picture { display: block; width: 100%; height: 100%; }
.arch__clip img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  transition: transform 3.2s var(--ease-out);
}
.arch.in .arch__clip img { transform: scale(1.04); animation: kenburnsImg 20s ease-in-out 3.2s infinite alternate; }
@keyframes kenburnsImg { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-2%, 1%); } }
.arch__clip::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, transparent 30%, rgba(255, 244, 207, .5) 48%, transparent 62%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
}
.arch.in .arch__clip::after { animation: sweep 2.4s var(--ease-io) 1.2s; }
@keyframes sweep { from { background-position: 150% 0; } to { background-position: -60% 0; } }

.ev-title {
  margin: 26px 0 0;
  font-family: var(--f-script);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(40px, 12vw, 56px);
  line-height: 1.1;
}
.ev-title--sm { font-size: clamp(30px, 8.6vw, 42px); line-height: 1.15; text-wrap: balance; }
.ev-title-he {
  margin: 6px 0 0;
  font-family: var(--f-hebrew);
  font-weight: 500;
  font-size: clamp(20px, 5.8vw, 25px);
  color: var(--gold-200);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
}

.meta {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  text-align: left;
}
.meta__item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(19, 36, 74, .62), rgba(7, 14, 34, .62));
  border: 1px solid rgba(227, 194, 122, .28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.meta__item > svg { flex: none; width: 26px; height: 26px; color: var(--gold-300); }
.meta__item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta__item b { font-weight: 700; font-size: 17px; color: var(--gold-100); line-height: 1.2; }
.meta__item span { font-size: 15px; color: var(--ivory-dim); line-height: 1.3; }
.meta__item span[dir="rtl"] { text-align: left; font-size: 14.5px; }

.card {
  position: relative;
  margin: 18px 0 0;
  padding: 30px 20px 24px;
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(227, 194, 122, .14), transparent 60%),
    linear-gradient(180deg, rgba(13, 26, 58, .72), rgba(5, 10, 25, .75));
  border: 1px solid rgba(227, 194, 122, .4);
  box-shadow: inset 0 0 0 5px rgba(7, 14, 34, .4), inset 0 0 0 6px rgba(227, 194, 122, .18), 0 20px 40px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.card__icon { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--gold-300); }
.card__title {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(16px, 4.6vw, 19px);
  letter-spacing: .06em;
  line-height: 1.35;
  color: var(--gold-100);
}
.card__sub { margin: 8px 0 0; font-style: italic; font-size: 18px; color: var(--ivory); }
.card__he {
  margin: 14px auto 0;
  padding-top: 14px;
  max-width: 30em;
  border-top: 1px solid rgba(227, 194, 122, .25);
  font-size: 17px;
  line-height: 1.5;
  color: var(--gold-200);
}

/* Timeline */
.timeline {
  position: relative;
  list-style: none;
  margin: 22px 0 0;
  padding: 6px 0 6px;
  text-align: left;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 31px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(180deg, var(--gold-200), rgba(227, 194, 122, .2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 2.4s var(--ease-out) .3s;
}
.timeline.in::before { transform: scaleY(1); }
.timeline li {
  position: relative;
  display: flex; align-items: flex-start; gap: 16px;
  padding: 9px 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .9s, transform 1.1s var(--ease-out);
}
.timeline.in li { opacity: 1; transform: none; }
.timeline.in li:nth-child(1) { transition-delay: .3s; }
.timeline.in li:nth-child(2) { transition-delay: .55s; }
.timeline.in li:nth-child(3) { transition-delay: .8s; }
.timeline.in li:nth-child(4) { transition-delay: 1.05s; }
.timeline.in li:nth-child(5) { transition-delay: 1.3s; }
.timeline.in li:nth-child(6) { transition-delay: 1.55s; }
.timeline.in li:nth-child(7) { transition-delay: 1.8s; }
.timeline time {
  flex: none;
  position: relative;
  z-index: 1;
  width: 62px; height: 30px;
  display: grid; place-items: center;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-400) 60%, var(--gold-200));
  box-shadow: 0 0 0 4px rgba(7, 14, 34, .8), 0 4px 12px rgba(0, 0, 0, .4);
}
.timeline time svg { width: 18px; height: 18px; }
.timeline li div { display: flex; flex-direction: column; gap: 2px; padding-top: 3px; }
.timeline b { font-weight: 700; font-size: 17px; line-height: 1.25; color: var(--gold-100); text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.timeline span { font-size: 15px; line-height: 1.4; color: var(--ivory-dim); text-align: left; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-100);
  background: rgba(7, 14, 34, .55);
  border: 1px solid rgba(227, 194, 122, .45);
  transition: background .3s, transform .2s;
}
.chip:active { transform: scale(.96); background: rgba(227, 194, 122, .18); }
.chip svg { width: 16px; height: 16px; color: var(--gold-300); }

/* Carte */
.map { margin: 26px 0 0; }
.map__frame {
  position: relative;
  height: 230px;
  border-radius: 20px;
  overflow: hidden;
  padding: 4px;
  background: linear-gradient(160deg, var(--gold-100), var(--gold-500) 45%, var(--gold-200) 70%, var(--gold-600));
  box-shadow: 0 20px 40px rgba(0, 0, 0, .45);
}
.map__frame iframe {
  display: block;
  width: 100%; height: 100%;
  border: 0;
  border-radius: 16px;
  background: #1a2745;
  filter: saturate(.85) contrast(1.02);
}
.map__shield {
  position: absolute; inset: 4px;
  border-radius: 16px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 12px;
  background: linear-gradient(180deg, transparent 60%, rgba(5, 10, 25, .55));
}
.map__shield span {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--gold-100);
  background: rgba(7, 14, 34, .75);
  border: 1px solid rgba(227, 194, 122, .4);
}
.map__label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 0 12px;
  font-family: var(--f-display);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.map__label svg { width: 18px; height: 18px; color: var(--gold-300); }
.map__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }

/* Hôtels / parkings */
.places {
  margin: 22px 0 0;
  padding: 20px 14px 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(13, 26, 58, .6), rgba(5, 10, 25, .65));
  border: 1px solid rgba(227, 194, 122, .25);
  text-align: left;
}
.places__title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 4px 12px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-100);
}
.places__title--2 { margin-top: 20px; }
.places__title svg { width: 22px; height: 22px; color: var(--gold-300); }
.places__title span { margin-left: auto; font-size: 15px; letter-spacing: 0; color: var(--gold-300); text-transform: none; }
.place {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  padding: 12px 40px 12px 14px;
  margin-top: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(227, 194, 122, .14);
  transition: background .3s, border-color .3s, transform .2s;
}
.place::after {
  content: "";
  position: absolute;
  right: 14px; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-top: 1.5px solid var(--gold-300);
  border-right: 1.5px solid var(--gold-300);
  transform: rotate(45deg);
}
.place:active { transform: scale(.98); background: rgba(227, 194, 122, .12); }
.place__name { font-weight: 700; font-size: 17px; color: var(--ivory); }
.place__sub { grid-column: 1 / -1; font-size: 14.5px; color: var(--ivory-dim); }
.place__tag {
  justify-self: end;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-400));
}
.place--star { border-color: rgba(227, 194, 122, .55); background: linear-gradient(135deg, rgba(227, 194, 122, .16), rgba(227, 194, 122, .04)); }
.place--more { background: transparent; border-style: dashed; }
.place--more .place__name { font-weight: 600; font-style: italic; font-size: 16px; color: var(--gold-200); }
.places__tip { margin: 12px 4px 4px; font-size: 14.5px; font-style: italic; line-height: 1.4; color: var(--ivory-dim); }

.soon {
  margin: 18px 0 0;
  padding: 22px 18px;
  border-radius: 22px;
  border: 1px dashed rgba(227, 194, 122, .5);
  background: rgba(7, 14, 34, .5);
}
.soon__badge {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-400) 60%, var(--gold-200));
}
.soon__badge svg { width: 14px; height: 14px; }
.soon__badge::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: badgeShine 3.2s ease-in-out infinite;
}
@keyframes badgeShine { 60%, 100% { transform: translateX(120%); } }
.soon p { margin: 12px 0 0; font-size: 17px; line-height: 1.4; color: var(--ivory); }
.soon .soon__he { font-size: 18px; color: var(--gold-200); }

/* Boutons */
.btn-gold {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  overflow: hidden;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(135deg, #fff1c2, #e0bb68 35%, #b8893d 65%, #f1dc9f);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 30px rgba(227, 194, 122, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
  transition: transform .2s;
}
.btn-gold::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .75) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: badgeShine 3.4s ease-in-out 1s infinite;
}
.btn-gold:active { transform: scale(.96); }
.btn-gold svg { width: 16px; height: 16px; }
.btn-gold--wide { width: 100%; margin-top: 10px; }
.btn-gold[disabled] { opacity: .6; pointer-events: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin: 34px auto 0;
  padding: 15px 24px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-100);
  border: 1px solid rgba(227, 194, 122, .6);
  background: rgba(7, 14, 34, .45);
  transition: transform .2s, background .3s;
}
.btn-ghost:active { transform: scale(.96); background: rgba(227, 194, 122, .15); }
.btn-ghost svg { width: 16px; height: 16px; color: var(--gold-300); }

/* =========================================================
   RSVP
   ========================================================= */
.rsvp {
  margin: 26px 0 0;
  padding: 24px 18px 22px;
  border-radius: 24px;
  text-align: left;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(227, 194, 122, .12), transparent 60%),
    linear-gradient(180deg, rgba(13, 26, 58, .78), rgba(5, 10, 25, .82));
  border: 1px solid rgba(227, 194, 122, .4);
  box-shadow: inset 0 0 0 5px rgba(7, 14, 34, .4), inset 0 0 0 6px rgba(227, 194, 122, .16), 0 30px 60px rgba(0, 0, 0, .45);
}
.field { position: relative; margin: 0 0 18px; }
.field input, .field textarea {
  width: 100%;
  padding: 24px 2px 8px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 18px; /* ≥16px : pas de zoom iOS */
  color: var(--ivory);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(227, 194, 122, .4);
  border-radius: 0;
  outline: none;
  resize: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .3s;
}
.field label {
  position: absolute;
  left: 2px; top: 22px;
  font-size: 17px;
  font-style: italic;
  color: var(--ivory-dim);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .35s var(--ease-out), color .35s;
}
.field::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold-100), var(--gold-400));
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.field:focus-within::after { transform: scaleX(1); }
.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-300);
}
.field.is-invalid input { border-bottom-color: #e5857a; }
.field.is-invalid input + label, .field.is-invalid input:focus + label { color: #f0a497; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend {
  padding: 0;
  margin: 6px 0 10px;
  font-family: var(--f-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field--area textarea { min-height: 88px; }

/* Événements */
.events { margin-top: 8px; }
.events legend { margin-bottom: 6px; }
.evt {
  display: block;
  margin-top: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(227, 194, 122, .18);
  transition: background .35s, border-color .35s, opacity .35s;
}
.evt__head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 14px;
  cursor: pointer;
}
.evt input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.evt__box {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 1px;
  display: grid; place-items: center;
  border-radius: 8px;
  border: 1.5px solid rgba(227, 194, 122, .6);
  transition: background .35s, border-color .35s;
}
.evt__box svg { width: 16px; height: 16px; color: var(--navy-900); stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .4s var(--ease-out) .05s; }
.evt input:checked ~ .evt__box { background: linear-gradient(135deg, var(--gold-100), var(--gold-400)); border-color: transparent; }
.evt input:checked ~ .evt__box svg { stroke-dashoffset: 0; }
.evt input:focus-visible ~ .evt__box { outline: 2px solid var(--gold-200); outline-offset: 2px; }
.evt.is-on { background: rgba(227, 194, 122, .09); border-color: rgba(227, 194, 122, .5); }
.evt__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.evt__txt b { font-size: 17px; line-height: 1.25; color: var(--ivory); }
.evt__txt em { font-style: normal; font-weight: 700; font-size: 15px; color: var(--gold-200); }
.evt__txt small { font-size: 14.5px; font-style: italic; color: var(--ivory-dim); }

/* nombre d'invités : déplié uniquement si l'événement est coché */
.evt__guests {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.evt.is-on .evt__guests { grid-template-rows: 1fr; }
.evt__guests-in {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 14px;
  opacity: 0;
  transition: opacity .4s, padding .5s var(--ease-out);
}
.evt.is-on .evt__guests-in { opacity: 1; padding: 2px 14px 14px; }
.sel { display: flex; flex-direction: column; gap: 6px; }
.sel span {
  font-family: var(--f-display);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-200);
}
.sel select {
  width: 100%;
  height: 46px;
  padding: 0 38px 0 14px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 17px; /* ≥16px : pas de zoom iOS */
  color: var(--ivory);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23e3c27a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 18px,
    rgba(5, 10, 25, .6);
  border: 1px solid rgba(227, 194, 122, .45);
  border-radius: 12px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.sel select:focus { border-color: var(--gold-200); box-shadow: 0 0 0 3px rgba(227, 194, 122, .2); }
.sel select option { color: #111; }

.evt--absent { margin-top: 14px; border-style: dashed; }
.evt--absent .evt__head { align-items: center; }
.events.is-absent .evt:not(.evt--absent) { opacity: .45; }

.form-error { margin: 0 0 10px; font-size: 15.5px; color: #f0a497; text-align: center; }

.rsvp-done {
  margin: 26px 0 0;
  padding: 36px 20px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(13, 26, 58, .78), rgba(5, 10, 25, .82));
  border: 1px solid rgba(227, 194, 122, .45);
  animation: popIn .8s var(--ease-out);
}
.done-star { width: 70px; height: 70px; margin: 0 auto 10px; overflow: visible; filter: drop-shadow(0 0 12px rgba(255, 214, 140, .6)); }
.rsvp-done h3 { margin: 0; font-family: var(--f-script); font-style: italic; font-weight: 700; font-size: 56px; }
.done-he { margin: 4px 0 0; font-size: 24px; color: var(--gold-200); }
.done-txt { margin: 14px 0 0; font-size: 18px; line-height: 1.45; color: var(--ivory); }

.ribbon { margin: 36px 0 0; }

/* Crédit bar-mitzvah.fr */
.credit {
  margin: 44px 0 0;
  padding: 28px 18px 26px;
  border-top: 1px solid rgba(227, 194, 122, .3);
}
.credit__logo {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fbf5e6, #efe3c7);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(208, 176, 120, .6);
}
.credit__logo img { display: block; width: 104px; height: auto; }
.credit__kicker { margin: 18px 0 0; font-weight: 700; font-size: 18px; color: var(--gold-100); }
.credit__txt { margin: 4px 0 0; font-style: italic; font-size: 16.5px; color: var(--ivory-dim); }
.credit__cta { margin-top: 18px; padding: 15px 20px; letter-spacing: .1em; white-space: nowrap; }
.ribbon p {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 10px 26px;
  font-size: 18px;
  color: var(--gold-100);
  background: linear-gradient(180deg, #16295a, #0b1733);
  border-top: 1px solid rgba(227, 194, 122, .6);
  border-bottom: 1px solid rgba(227, 194, 122, .6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.ribbon p::before, .ribbon p::after {
  content: "";
  position: absolute; top: 8px;
  width: 18px; height: 100%;
  background: #0a142e;
  z-index: -1;
}
.ribbon p::before { left: -12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 40% 50%); }
.ribbon p::after { right: -12px; clip-path: polygon(0 0, 100% 0, 60% 50%, 100% 100%, 0 100%); }
.ribbon small { display: block; margin-top: 12px; font-size: 15px; font-style: italic; line-height: 1.4; color: var(--ivory-dim); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: calc(var(--safe-b) + 10px);
  width: min(calc(100% - 24px), 440px);
  height: 58px;
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  align-items: center;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(7, 14, 34, .62);
  border: 1px solid rgba(227, 194, 122, .35);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .45);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 1.1s var(--ease-out), opacity .8s;
}
.nav.is-visible { transform: translate(-50%, 0); opacity: 1; }
.nav__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--gold-200);
  transition: background .3s, opacity .3s, transform .2s;
}
.nav__btn svg { width: 20px; height: 20px; }
.nav__btn:active { transform: scale(.9); background: rgba(227, 194, 122, .15); }
.nav__btn[disabled] { opacity: .25; pointer-events: none; }
.nav__btn--next {
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-100), var(--gold-400) 60%, var(--gold-200));
  box-shadow: 0 0 20px rgba(227, 194, 122, .35);
}
.nav__center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.nav__label {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-100);
}
.nav__label.swap { animation: labelSwap .7s var(--ease-out); }
@keyframes labelSwap { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.nav__dots { display: flex; gap: 6px; }
.nav__dots button {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(227, 194, 122, .35);
  transition: width .5s var(--ease-out), background .5s;
}
.nav__dots button.on { width: 20px; background: linear-gradient(90deg, var(--gold-100), var(--gold-400)); }

.skip {
  position: fixed;
  z-index: 45;
  right: 14px;
  bottom: calc(var(--safe-b) + 16px);
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--f-display);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-100);
  background: rgba(7, 14, 34, .5);
  border: 1px solid rgba(227, 194, 122, .3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s;
}
.skip svg { width: 13px; height: 13px; }
.skip.is-visible { opacity: .85; pointer-events: auto; }

/* =========================================================
   BALLONS
   ========================================================= */
.balloons { position: fixed; inset: 0; z-index: 30; pointer-events: none; overflow: hidden; }
.balloon {
  position: absolute;
  bottom: -160px;
  width: var(--w, 50px);
  height: calc(var(--w, 50px) * 1.2);
  animation: rise var(--d, 9s) cubic-bezier(.35, .1, .55, 1) var(--delay, 0s) forwards;
  will-change: transform;
}
.balloon__body {
  position: absolute; inset: 0;
  border-radius: 50% 50% 48% 48% / 56% 56% 44% 44%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 6%, var(--c1) 22%, var(--c2) 72%, var(--c3) 100%);
  box-shadow: inset -6px -8px 14px rgba(0, 0, 0, .12);
  animation: sway var(--sw, 3s) ease-in-out infinite alternate;
  transform-origin: 50% 120%;
}
.balloon__body::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -5px;
  width: 9px; height: 7px;
  margin-left: -4.5px;
  background: var(--c2);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.balloon__body::after {
  content: "";
  position: absolute;
  left: 50%; top: 100%;
  width: 1px; height: 90px;
  margin-top: 2px;
  background: linear-gradient(rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
}
@keyframes rise { to { transform: translate3d(var(--dx, 0px), calc(-100vh - 260px), 0); } }
@keyframes sway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

/* =========================================================
   DEBUG
   ========================================================= */
.debug {
  position: fixed; z-index: 99;
  left: 10px; top: calc(var(--safe-t) + 10px);
  padding: 6px 10px;
  border-radius: 8px;
  font: 600 13px/1.3 ui-monospace, Menlo, monospace;
  color: #0f0;
  background: rgba(0, 0, 0, .75);
}

/* =========================================================
   GRAND ÉCRAN
   ========================================================= */
@media (min-width: 700px) {
  .page__inner { padding-top: calc(var(--safe-t) + 80px); }
  .hosts { gap: 0 44px; }
  .fp { padding: 34px 28px 30px; }
  .scene__img { background-position: center 35%; }
}

/* =========================================================
   PETITS ÉCRANS (iPhone SE, mini…)
   ========================================================= */
@media (max-height: 680px) {
  .intro__star { width: 54px; height: 54px; margin-bottom: 10px; }
  .intro__title { font-size: clamp(54px, 17vw, 80px); }
  .intro__he { font-size: 19px; }
  .intro__date { margin-top: 10px; }
  .seal { width: 88px; height: 88px; margin-top: 24px; }
  .seal__coin svg { width: 44px; height: 44px; }
  .intro__cta { margin-top: 16px; font-size: 14px; }
}
/* téléphone tenu à l'horizontale */
@media (max-height: 480px) and (orientation: landscape) {
  .intro__star { display: none; }
  .intro__kicker { font-size: 10.5px; line-height: 1.7; }
  .intro__title { font-size: 52px; margin-top: 2px; }
  .intro__he { font-size: 16px; }
  .intro__date { margin-top: 6px; font-size: 9.5px; }
  .seal { width: 70px; height: 70px; margin-top: 14px; }
  .seal__coin svg { width: 36px; height: 36px; }
  .intro__cta { margin-top: 10px; font-size: 12px; }
  .intro__cta br { display: none; }
}
@media (max-width: 350px) {
  .intro__date { font-size: 9.5px; letter-spacing: .14em; gap: 8px; }
  .intro__kicker { letter-spacing: .24em; }
}

/* =========================================================
   MOUVEMENTS RÉDUITS
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .rv, .rv-photo { opacity: 1; transform: none; -webkit-mask-image: none; mask-image: none; }
}
