/* =========================================================
   Bar Mitsvah de Nathan Gdalia — feuille de style
   Palette : bleu d'Israël & blanc
   ========================================================= */

:root {
  --blue: #0038b8;
  --blue-bright: #2f6bff;
  --blue-soft: #8fb0f0;
  --navy: #0a1f52;
  --night: #061537;
  --ink: #0b1d4a;
  --paper: #fbfcff;
  --mist: #eef3fd;
  --line: rgba(0, 56, 184, .18);
  --white: #ffffff;

  --f-title: "Cinzel", "Times New Roman", serif;
  --f-body: "EB Garamond", Georgia, serif;
  --f-script: "Pinyon Script", "Brush Script MT", cursive;
  --f-hebrew: "Frank Ruhl Libre", "Times New Roman", serif;

  --radius: 28px;
  --ease: cubic-bezier(.22, .9, .25, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: max(20px, env(safe-area-inset-left));
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--night);
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: clamp(1.3rem, 4.8vw, 1.5rem);   /* ≈ 21–24px : lisible pour tous */
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

body.is-locked { overflow: hidden; height: 100%; }

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

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

/* =========================================================
   POP-UP D'OUVERTURE
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--night);
}

.intro__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  transition: opacity 1s ease;
}

.intro__door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  z-index: 1;
  overflow: hidden;
  background: var(--night);
  transition: transform 1.7s var(--ease), filter 1.7s ease;
  will-change: transform;
}
.intro__door--left  { left: 0;  transform-origin: left center;  transform: perspective(1600px) rotateY(0); }
.intro__door--right { right: 0; transform-origin: right center; transform: perspective(1600px) rotateY(0); }

/* une seule texture aquarelle répartie sur les deux portes */
.intro__door::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 198%;
  background:
    radial-gradient(60% 45% at 50% 45%, rgba(47, 107, 255, .35), transparent 70%),
    linear-gradient(180deg, rgba(6, 21, 55, .35), rgba(6, 21, 55, .1) 40%, rgba(6, 21, 55, .55)),
    url("assets/textures/night.webp") center / cover;
}
.intro__door--left::before  { left: 0; }
.intro__door--right::before { right: 0; }

/* motif de talith sur le bord intérieur des portes */
.intro__stripes {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34px;
  background:
    linear-gradient(90deg,
      transparent 0 4px,
      rgba(255,255,255,.85) 4px 6px,
      transparent 6px 10px,
      rgba(255,255,255,.85) 10px 18px,
      transparent 18px 22px,
      rgba(255,255,255,.85) 22px 24px,
      transparent 24px);
  opacity: .2;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 30%, transparent 70%, #000 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 30%, transparent 70%, #000 100%);
}
.intro__door--left  .intro__stripes { right: 18px; }
.intro__door--right .intro__stripes { left: 18px; }

.intro__door::after {           /* filet lumineux au centre */
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(160, 195, 255, .7), transparent);
}
.intro__door--left::after  { right: 0; }
.intro__door--right::after { left: 0; }

.intro__light {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #dfe9ff 35%, var(--paper) 70%);
}

.intro__content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 24px var(--gutter);
  text-align: center;
  transition: opacity .7s ease, transform 1.1s var(--ease), filter .8s ease;
}

.intro__halo {
  position: relative;
  width: min(68vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: introIn 1.6s var(--ease-out) both;
}
.intro__halo::before {
  content: "";
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 130, 255, .45) 0%, rgba(70, 130, 255, .12) 45%, transparent 70%);
  animation: haloPulse 4s ease-in-out infinite;
}
.intro__halo::after {
  content: "";
  position: absolute;
  inset: -4%;
  border-radius: 50%;
  border: 1px solid rgba(180, 205, 255, .35);
  animation: ringSpin 16s linear infinite;
  border-top-color: rgba(255,255,255,.9);
}
.intro__logo {
  position: relative;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(120, 170, 255, .55));
}

.intro__kicker {
  font-family: var(--f-script);
  font-size: clamp(2.2rem, 10vw, 3rem);
  line-height: 1.1;
  color: #dbe6ff;
  animation: fadeUp 1.2s .5s var(--ease-out) both;
}

.intro__btn { animation: fadeUp 1.2s .8s var(--ease-out) both; }


/* --- ouverture --- */
.intro.is-opening .intro__content {
  opacity: 0;
  transform: scale(1.35);
  filter: blur(6px);
}
.intro.is-opening .intro__sky { opacity: 0; }
.intro.is-opening .intro__door--left  { transform: perspective(1600px) rotateY(88deg);  filter: brightness(1.6); }
.intro.is-opening .intro__door--right { transform: perspective(1600px) rotateY(-88deg); filter: brightness(1.6); }
.intro.is-gone {
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility 0s .8s;
}

/* =========================================================
   BOUTONS
   ========================================================= */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 34px;
  border: 0;
  border-radius: 999px;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s ease, background .35s ease;
  -webkit-user-select: none;
  user-select: none;
}
.btn svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 4px; }

.btn--light {
  color: var(--navy);
  background: linear-gradient(180deg, #fff, #e3ecff);
  box-shadow: 0 10px 30px rgba(0, 20, 80, .45), inset 0 -2px 0 rgba(0, 56, 184, .15);
}
.btn--light::after,
.btn--shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.75) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shine 3.6s 2s ease-in-out infinite;
}

.btn--shine { font-size: 1rem; letter-spacing: .06em; padding: 14px 26px; }

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 50%, var(--navy) 100%);
  box-shadow: 0 12px 30px rgba(0, 56, 184, .35);
}

.btn--waze {
  margin-top: 30px;
  min-height: 56px;
  padding: 12px 28px;
  font-size: .95rem;
  color: var(--blue);
  background: var(--white);
  border: 2px solid var(--blue);
}
.btn--waze:hover { background: var(--blue); color: #fff; }
.btn--waze-light { color: var(--navy); border-color: #fff; }
.btn--waze-light:hover { background: transparent; color: #fff; }

/* =========================================================
   MUSIQUE
   ========================================================= */
.music {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 50;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(10, 31, 82, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 20, 80, .35);
  cursor: pointer;
  animation: fadeUp .8s var(--ease-out) both;
}
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 20px; }
.music__bars i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #fff;
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
}
.music__bars i:nth-child(2) { animation-delay: -.3s; }
.music__bars i:nth-child(3) { animation-delay: -.6s; }
.music__bars i:nth-child(4) { animation-delay: -.15s; }
.music.is-paused .music__bars i { animation-play-state: paused; transform: scaleY(.25); }

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  position: relative;
  padding: clamp(80px, 18vw, 130px) 0;
  overflow: hidden;
}

/* fond papier + motif d'étoiles de David */
.section--paper {
  background:
    radial-gradient(90% 45% at 50% 50%, rgba(255,255,255,.55) 0%, transparent 70%),
    url("assets/textures/paper.webp") center top / cover var(--paper);
}
#reception.section--paper { background-position: center, center bottom; }
.section--paper::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%230038b8' stroke-width='1.2'%3E%3Cpath d='M32 14 47 40H17Z M32 50 17 24h30Z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* fond nuit étoilée */
.section--night {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6, 21, 55, .55) 0%, rgba(6, 21, 55, .15) 30%, rgba(6, 21, 55, .15) 70%, rgba(6, 21, 55, .6) 100%),
    url("assets/textures/night.webp") center top / cover var(--night);
}
#shabbat.section--night { background-position: center, center bottom; }
#rsvp.section--night    { background-position: center, center center; }

/* grain d'impression sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: url("assets/textures/grain.png") 0 0 / 256px 256px repeat;
  opacity: .14;
}

.stars { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.stars i {
  position: absolute;
  width: var(--s, 2px);
  height: var(--s, 2px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(180, 210, 255, .9);
  opacity: .2;
  animation: twinkle var(--d, 4s) var(--delay, 0s) ease-in-out infinite;
}

/* bandes de talith */
.tallit {
  position: absolute;
  left: 0;
  right: 0;
  height: 26px;
  background:
    linear-gradient(var(--blue), var(--blue)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 9px / 100% 8px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 23px / 100% 3px no-repeat;
}
.tallit--top { top: 26px; opacity: .9; }

/* =========================================================
   SECTION 1 — FAIRE-PART
   ========================================================= */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 90px;
  padding-bottom: 120px;
}

.hero__logo {
  position: relative;
  width: min(54vw, 230px);
  margin: 10px auto 34px;
}
.hero__logo::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 255, .18), transparent 65%);
  animation: haloPulse 5s ease-in-out infinite;
}
.hero__logo img { position: relative; width: 100%; height: auto; }

.hero__grand {
  font-family: var(--f-title);
  font-size: clamp(1.25rem, 5.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--navy);
}

.star-divider {
  display: block;
  width: 30px;
  margin: 18px auto;
}
.star-divider svg {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linejoin: round;
}

.hero__family p {
  font-family: var(--f-title);
  font-size: clamp(1.25rem, 5.4vw, 1.55rem);
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.6;
  color: var(--navy);
}

.hero__lead {
  margin-top: 30px;
  font-style: italic;
  font-size: clamp(1.35rem, 5.4vw, 1.6rem);
  color: #34466f;
}

.hero__title {
  margin: 14px 0 0;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(2.5rem, 12.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: .1em;
  color: var(--blue);
  text-transform: uppercase;
}
.hero__title + .hero__lead { margin-top: 18px; }

.hero__name {
  margin-top: 12px;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(3.4rem, 16.5vw, 6.6rem);
  line-height: 1;
  letter-spacing: .08em;
  padding-left: .08em;           /* compense le letter-spacing final */
  text-transform: uppercase;
  background: linear-gradient(110deg, var(--navy) 0%, var(--blue) 30%, #7fa8ff 48%, #fff 50%, #7fa8ff 52%, var(--blue) 70%, var(--navy) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}

.hero__hebrew {
  margin-top: 14px;
  font-family: var(--f-hebrew);
  font-weight: 500;
  font-size: clamp(2rem, 9vw, 2.7rem);
  color: var(--blue);
}

/* hommage */
.memorial {
  max-width: 420px;
  margin: 56px auto 0;
  padding: 26px 22px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.memorial__candle {
  width: 26px;
  margin: 0 auto 14px;
  overflow: visible;
}
.memorial__candle rect { fill: none; stroke: var(--blue); stroke-width: 2; }
.memorial__flame {
  fill: rgba(143, 176, 240, .55);
  transform-origin: 20px 30px;
  animation: flicker 2.6s ease-in-out infinite;
}
.memorial__core {
  fill: #fff;
  stroke: var(--blue-soft);
  stroke-width: .6;
  transform-origin: 20px 28px;
  animation: flicker 1.9s ease-in-out infinite reverse;
}
.memorial__intro {
  font-style: italic;
  font-size: 1.2rem;
  color: #4a5b80;
}
.memorial__name {
  margin-top: 4px;
  font-family: var(--f-title);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--navy);
}
.memorial__name span {
  margin-left: 4px;
  font-family: var(--f-body);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--blue);
}

/* indicateur de défilement */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 3;
  width: 52px;
  height: 52px;
  margin-left: -26px;
  display: grid;
  place-items: center;
  color: var(--blue);
  animation: bounce 2.2s ease-in-out infinite;
}
.scroll-hint svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scroll-hint svg path:last-child { opacity: .45; }

/* =========================================================
   SECTION 2 — SAVE THE DATE
   ========================================================= */
.script {
  font-family: var(--f-script);
  font-size: clamp(2.8rem, 13vw, 3.8rem);
  line-height: 1.15;
  color: var(--blue-soft);
}
.section--paper .script { color: var(--blue); }
.section--night .script { color: #d6e3ff; text-shadow: 0 2px 14px rgba(0, 10, 40, .55); }

.title {
  margin: 10px 0 0;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(1.45rem, 6.4vw, 2rem);
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.title--light { color: #fff; }

.watermark-star {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 140vw;
  max-width: 900px;
  translate: -50% -50%;
  fill: none;
  stroke: rgba(143, 176, 240, .1);
  stroke-width: .5;
  animation: slowSpin 120s linear infinite;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 2.6vw, 16px);
  margin-top: 44px;
}
.countdown__item {
  position: relative;
  padding: 20px 4px 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(180, 205, 255, .28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 30px rgba(0, 0, 30, .3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
}
.countdown__item::after {             /* reflet */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 40, .35);
}
.countdown__num {
  display: block;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(1.9rem, 9.5vw, 3rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 18px rgba(120, 170, 255, .6);
}
.countdown__num.tick { animation: tick .6s var(--ease-out); }
.countdown__label {
  display: block;
  margin-top: 8px;
  font-size: clamp(.82rem, 3.4vw, 1.05rem);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c4d5fb;
}
/* petits écrans : grille 2 × 2, chiffres et libellés plus grands */
@media (max-width: 480px) {
  .countdown { grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 360px; margin-left: auto; margin-right: auto; }
  .countdown__item { padding: 22px 6px 18px; }
  .countdown__num { font-size: clamp(2.6rem, 14vw, 3.4rem); }
  .countdown__label { font-size: 1.05rem; letter-spacing: .1em; }
}
.countdown__done {
  margin-top: 40px;
  font-family: var(--f-script);
  font-size: 3.2rem;
  color: #fff;
}

/* =========================================================
   CARTES ÉVÉNEMENTS
   ========================================================= */
.card {
  position: relative;
  padding: 64px 26px 46px;
  border-radius: var(--radius);
  background:
    radial-gradient(80% 60% at 50% 45%, rgba(255,255,255,.85), rgba(255,255,255,.35) 100%),
    url("assets/textures/paper.webp") center / cover var(--white);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 30px 60px -20px rgba(10, 31, 82, .28),
    0 0 0 1px rgba(0, 56, 184, .08);
  overflow: hidden;
}
.card::before {                        /* filet intérieur */
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.tallit--card {
  top: 22px;
  left: 10px;
  right: 10px;
  height: 18px;
  background:
    linear-gradient(var(--blue), var(--blue)) 0 0 / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 6px / 100% 6px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 16px / 100% 2px no-repeat;
  opacity: .85;
  transform: scaleX(0);
  transition: transform 1.4s .2s var(--ease);
}
.is-visible .tallit--card { transform: scaleX(1); }
.tallit--light {
  background:
    linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
    linear-gradient(#fff, #fff) 0 6px / 100% 6px no-repeat,
    linear-gradient(#fff, #fff) 0 16px / 100% 2px no-repeat;
  opacity: .55;
}

/* illustration en arche de synagogue (la bordure blanche sert de cadre, l'arche découpe l'image) */
.card__media {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3.6;
  margin: 26px auto 26px;
  border: 7px solid #fff;
  border-radius: 50% 50% 18px 18px / 34% 34% 18px 18px;
  overflow: hidden;
  isolation: isolate;
  background: var(--mist);
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 40px -18px rgba(10, 31, 82, .45);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.3);
  transition: clip-path 1.6s .25s var(--ease), transform 3s .25s var(--ease-out);
}
.is-visible .card__media img { clip-path: inset(0 0 0 0); transform: scale(1.04); }
#shabbat .card__media img { object-position: 0% 50%; transform-origin: 20% 60%; }
.card__media::after {                  /* reflet lumineux qui balaie l'image */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 250% 100%;
  background-position: 150% 0;
  pointer-events: none;
}
.is-visible .card__media::after { animation: sweep 2.2s 1.6s var(--ease) both; }

.card__kicker {
  font-family: var(--f-script);
  font-size: clamp(2rem, 9vw, 2.6rem);
  line-height: 1.2;
  color: var(--blue);
}
.card__title {
  margin: 4px 0 0;
  font-family: var(--f-title);
  font-weight: 700;
  font-size: clamp(1.75rem, 8vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
}
.card__rule {
  display: block;
  width: 70px;
  height: 2px;
  margin: 22px auto;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.card__infos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.card__date {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(1.35rem, 6vw, 1.7rem);
  letter-spacing: .03em;
  color: var(--blue);
}
.card__time {
  font-size: clamp(1.45rem, 6.2vw, 1.75rem);
  font-weight: 600;
  color: var(--navy);
}
.card__place {
  margin-top: 6px;
  font-style: italic;
  font-size: clamp(1.4rem, 6vw, 1.7rem);
  color: #2b3d68;
}
.card__address {
  margin-top: -2px;
  font-size: clamp(1.15rem, 4.8vw, 1.35rem);
  line-height: 1.35;
  color: #4a5b80;
}
.card--glass .card__address { color: #c4d5fb; }
.card__paracha {
  margin-top: 6px;
  font-size: clamp(1.25rem, 5.4vw, 1.5rem);
}

/* variante verre sur fond nuit */
.card--glass {
  color: #fff;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 20, .55), 0 0 0 1px rgba(180, 205, 255, .25);
}
.card--glass::before { border-color: rgba(180, 205, 255, .25); }
.card--glass .card__media { border-color: rgba(255,255,255,.22); box-shadow: 0 0 0 1px rgba(180, 205, 255, .35), 0 24px 40px -18px rgba(0, 0, 20, .7); }
.card--glass .card__kicker { color: #dbe6ff; text-shadow: 0 2px 12px rgba(0, 10, 40, .6); }
.card--glass .card__title,
.card--glass .card__date,
.card--glass .card__time { color: #fff; }
.card--glass .card__place,
.card--glass .card__paracha { color: #d6e2ff; }
.card--glass .card__rule { background: linear-gradient(90deg, transparent, #fff, transparent); }

/* =========================================================
   SECTION 6 — RSVP
   ========================================================= */
.rsvp,
.thanks {
  position: relative;
  margin-top: 40px;
  padding: 34px 22px 30px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)),
    url("assets/textures/paper.webp") center / cover var(--white);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 20, .6);
}

.field { margin-bottom: 22px; }
.field label,
.choices legend {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--navy);
}

.field input,
.field textarea,
.counter select {
  width: 100%;
  min-height: 60px;
  padding: 14px 18px;
  border: 2px solid #cfdaf3;
  border-radius: 16px;
  background: var(--mist);
  font-size: 1.3rem;           /* ≥16px : pas de zoom auto sur iOS */
  color: var(--ink);
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.4; }
.field input:focus,
.field textarea:focus,
.counter select:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 56, 184, .14);
}
.field.is-invalid input { border-color: #c62828; background: #fff5f5; }

.choices {
  margin: 8px 0 24px;
  padding: 0;
  border: 0;
}
.choices legend { margin-bottom: 14px; }

.choice {
  margin-bottom: 12px;
  border: 2px solid #cfdaf3;
  border-radius: 18px;
  background: #fff;
  transition: border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.choice.is-checked {
  border-color: var(--blue);
  background: #f3f7ff;
  box-shadow: 0 10px 24px -12px rgba(0, 56, 184, .45);
}

.choice__head {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 14px 16px;
  cursor: pointer;
}
.choice__head input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice__box {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  background: #fff;
  transition: background .25s ease, transform .25s var(--ease);
}
.choice__box::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  width: 9px;
  height: 17px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .3s var(--ease);
}
.choice__head input:checked + .choice__box { background: var(--blue); transform: scale(1.05); }
.choice__head input:checked + .choice__box::after { transform: rotate(45deg) scale(1); }
.choice__head input:focus-visible + .choice__box { box-shadow: 0 0 0 4px rgba(0, 56, 184, .25); }

.choice__text {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.choice__text small {
  display: block;
  margin-top: 2px;
  font-size: 1.08rem;
  font-weight: 500;
  font-style: italic;
  color: #4a5b80;
}

.choice--absent .choice__box { border-color: #6b7896; }
.choice--absent .choice__head input:checked + .choice__box { background: #4a5b80; }
.choice--absent.is-checked { border-color: #4a5b80; background: #f6f7fa; box-shadow: none; }

/* panneau adultes / enfants */
.choice__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.choice.is-checked .choice__panel { grid-template-rows: 1fr; }
.choice__inner {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px;
  transition: padding .5s var(--ease);
}
.choice.is-checked .choice__inner { padding: 4px 16px 18px; }
.counter label {
  display: block;
  margin-bottom: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #34466f;
}
.counter select {
  min-height: 58px;
  padding-right: 44px;
  font-weight: 600;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230038b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 22px;
  cursor: pointer;
}

.rsvp__error {
  margin: -6px 0 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff1f1;
  color: #b3261e;
  font-size: 1.15rem;
  font-weight: 600;
}

.rsvp__submit { width: 100%; min-height: 64px; font-size: 1.15rem; }
.rsvp__submit[disabled] { opacity: .7; pointer-events: none; }

/* confirmation */
.thanks {
  text-align: center;
  padding: 44px 24px 40px;
  animation: popIn .9s var(--ease-out) both;
}
.thanks:focus { outline: none; }
.thanks__check {
  width: 96px;
  margin: 0 auto 6px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.thanks__check circle { stroke-dasharray: 214; stroke-dashoffset: 214; animation: draw 1s .2s var(--ease) forwards; }
.thanks__check path   { stroke-dasharray: 50;  stroke-dashoffset: 50;  animation: draw .6s 1s var(--ease) forwards; }
.thanks .script { color: var(--blue); }
.thanks__title {
  margin-top: 6px;
  font-family: var(--f-title);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: .04em;
  color: var(--navy);
}
.thanks__text {
  margin-top: 12px;
  font-style: italic;
  font-size: 1.3rem;
  color: #34466f;
}

/* confettis d'étoiles */
.confetti {
  position: fixed;
  top: -20px;
  z-index: 90;
  width: 16px;
  height: 16px;
  pointer-events: none;
  animation: fall var(--t, 3s) var(--ease) forwards;
}
.confetti svg { width: 100%; height: 100%; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: 100px 0 calc(70px + env(safe-area-inset-bottom));
  background: url("assets/textures/paper.webp") center bottom / cover var(--paper);
  text-align: center;
}
.footer__logo {
  width: 130px;
  height: auto;
  margin: 0 auto 26px;
}
.footer__q {
  font-family: var(--f-title);
  font-weight: 600;
  font-size: clamp(1.3rem, 5.6vw, 1.6rem);
  line-height: 1.35;
  color: var(--navy);
}
.footer__text {
  margin: 10px 0 30px;
  font-style: italic;
  font-size: clamp(1.3rem, 5.4vw, 1.5rem);
  color: #34466f;
}

/* =========================================================
   APPARITIONS AU DÉFILEMENT
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(6px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
[data-reveal="zoom"] { transform: scale(.82); }
[data-reveal="name"] { transform: scale(.7); letter-spacing: .5em; transition-property: opacity, transform, filter, letter-spacing; transition-duration: 1.6s; }
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
[data-reveal="name"].is-visible { letter-spacing: .08em; }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes introIn {
  from { opacity: 0; transform: scale(.6) rotate(-8deg); filter: blur(10px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes haloPulse {
  0%, 100% { transform: scale(.94); opacity: .75; }
  50%      { transform: scale(1.06); opacity: 1; }
}
@keyframes ringSpin { to { transform: rotate(360deg); } }
@keyframes slowSpin { to { rotate: 360deg; } }
@keyframes shine {
  0%   { transform: translateX(-120%); }
  45%, 100% { transform: translateX(120%); }
}
@keyframes shimmer {
  from { background-position: 130% 0; }
  to   { background-position: -130% 0; }
}
@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1.2); }
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.06, .94) rotate(-3deg); }
  50% { transform: scale(.95, 1.07) rotate(2deg); }
  75% { transform: scale(1.03, .97) rotate(-1deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: .75; }
  50%      { transform: translateY(10px); opacity: 1; }
}
@keyframes eq {
  0%, 100% { transform: scaleY(.3); }
  50%      { transform: scaleY(1); }
}
@keyframes tick {
  0%   { transform: translateY(-40%) scale(.9); opacity: 0; filter: blur(3px); }
  100% { transform: none; opacity: 1; filter: none; }
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(30px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes sweep {
  from { background-position: 150% 0; }
  to   { background-position: -50% 0; }
}
@keyframes fall {
  0%   { transform: translate3d(0, 0, 0) rotate(0); opacity: 1; }
  100% { transform: translate3d(var(--x, 0), 105vh, 0) rotate(var(--r, 360deg)); opacity: .2; }
}

/* =========================================================
   ÉCRANS PLUS LARGES
   ========================================================= */
@media (min-width: 700px) {
  body { font-size: 1.45rem; }
  .card { padding: 72px 50px 54px; }
  .rsvp { padding: 44px 40px 38px; }
  .countdown__item { padding: 26px 8px 20px; }
}

/* =========================================================
   ACCESSIBILITÉ — MOUVEMENTS RÉDUITS
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .card__media img { clip-path: none; transform: none; }
}
