:root {
  --navy: #071f5b;
  --navy2: #0a347e;
  --blue: #05a7ea;
  --blue2: #0477db;
  --orange: #ff6116;
  --red: #e7192b;
  --yellow: #ffc72b;
  --paper: #fffdfa;
  --ink: #18202c;
  --muted: #6e7482;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #e9eef3; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e9eef3;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; }

.invite-shell {
  position: relative;
  width: min(100%, 540px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at -8% 28%, rgba(0,164,233,.08), transparent 22%),
    radial-gradient(circle at 108% 37%, rgba(230,25,42,.08), transparent 23%),
    linear-gradient(180deg, #fff 0%, #fffdfa 55%, #fff 100%);
  box-shadow: 0 0 80px rgba(12,32,68,.18);
}
.paint { width: 100%; background-repeat: no-repeat; background-size: cover; pointer-events: none; }
.paint--top { height: 78px; background-image: url("paint-top.jpg"); background-position: center top; }
.paint--footer { height: 78px; background-image: url("paint-top.jpg"); background-position: center top; transform: rotate(180deg); }

.hero {
  padding: 9px 20px 42px;
  text-align: center;
  position: relative;
  isolation: isolate;
}
.hero-wall {
  position: absolute;
  inset: 146px 8px auto;
  height: 230px;
  z-index: -2;
  border-radius: 24px;
  opacity: .22;
  background:
    linear-gradient(rgba(8,28,85,.8), rgba(8,28,85,.8)) center/100% 3px no-repeat,
    linear-gradient(90deg, transparent 0 18%, rgba(8,28,85,.75) 18% 19%, transparent 19% 47%, rgba(8,28,85,.75) 47% 48%, transparent 48% 76%, rgba(8,28,85,.75) 76% 77%, transparent 77% 100%) center 22px/100% 56px repeat,
    linear-gradient(180deg, rgba(5,167,234,.18), rgba(231,25,43,.08));
  box-shadow: inset 0 0 0 2px rgba(7,31,91,.06), 0 18px 40px rgba(7,31,91,.08);
  transform: rotate(-1.5deg);
}
.hero-wall::before,
.hero-wall::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.hero-wall::before {
  background: radial-gradient(circle at 18% 24%, rgba(255,199,43,.45) 0 1%, transparent 1.2%), radial-gradient(circle at 82% 61%, rgba(255,97,22,.55) 0 1.3%, transparent 1.5%), radial-gradient(circle at 62% 80%, rgba(0,167,235,.46) 0 1.2%, transparent 1.4%);
  background-size: 84px 84px;
  mix-blend-mode: multiply;
}
.hero-wall::after { background: linear-gradient(180deg, transparent, rgba(255,255,255,.38)); }

.intro-copy { position: relative; z-index: 4; }
.family { margin: 0; font-family: Georgia, "Times New Roman", serif; color: #1f2630; }
.family--parents { margin-top: 2px; font-size: clamp(22px, 6.7vw, 30px); line-height: 1.2; }
.family--parents strong { font-family: "Montserrat", sans-serif; font-size: .91em; font-weight: 900; letter-spacing: .045em; }
.family--children { margin-top: 7px; font-size: 20px; font-style: italic; }
.invite-copy { margin: 18px 0 4px; font-family: Georgia, "Times New Roman", serif; font-size: 17px; color: #555c68; }

.graffiti-stage {
  position: relative;
  min-height: 218px;
  margin: 0 -8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.graffiti-stage::before {
  content: "";
  position: absolute;
  z-index: -3;
  width: 118%;
  height: 72%;
  left: -9%;
  top: 20%;
  background:
    radial-gradient(ellipse at 16% 64%, rgba(0,167,235,.58) 0 4%, transparent 5%),
    radial-gradient(ellipse at 79% 60%, rgba(231,25,43,.55) 0 4%, transparent 5%),
    radial-gradient(ellipse at 54% 84%, rgba(255,199,43,.52) 0 3%, transparent 4%),
    conic-gradient(from 190deg at 50% 80%, transparent 0 7%, rgba(0,167,235,.38) 8% 10%, transparent 11% 20%, rgba(255,97,22,.34) 21% 23%, transparent 24% 34%, rgba(231,25,43,.34) 35% 37%, transparent 38% 50%, rgba(255,199,43,.32) 51% 53%, transparent 54% 100%);
  clip-path: polygon(0 37%, 14% 43%, 4% 13%, 27% 37%, 31% 8%, 43% 42%, 55% 0, 63% 39%, 80% 9%, 77% 42%, 100% 25%, 86% 54%, 100% 78%, 73% 67%, 82% 98%, 58% 72%, 50% 100%, 40% 72%, 17% 96%, 28% 64%, 0 80%, 15% 54%);
  filter: saturate(1.15);
}
.tag-scene {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 8px 0 rgba(7,31,91,.04));
  cursor: pointer;
}
.spray { position: absolute; z-index: -1; width: 74px; height: 74px; border-radius: 50%; opacity: .72; }
.spray::before, .spray::after { content: ""; position: absolute; border-radius: 50%; background: currentColor; }
.spray::before { width: 6px; height: 6px; left: 4px; top: 30px; box-shadow: 17px -23px 0 1px currentColor, 39px -13px 0 -1px currentColor, 55px 5px 0 1px currentColor, 22px 36px 0 0 currentColor, 61px 41px 0 -1px currentColor; }
.spray::after { width: 3px; height: 3px; left: 24px; top: 8px; box-shadow: -14px 43px 0 currentColor, 31px 8px 0 currentColor, 36px 50px 0 currentColor, 6px 58px 0 currentColor, 48px 27px 0 currentColor; }
.spray--a { left: 8px; top: 68px; color: var(--blue); transform: rotate(14deg); }
.spray--b { right: 8px; top: 95px; color: var(--red); transform: rotate(-17deg); }
.spray--c { right: 32%; bottom: 24px; color: var(--yellow); transform: scale(.8); }
.scribble { position: absolute; z-index: -1; width: 44px; height: 54px; border: 5px solid currentColor; opacity: .75; }
.scribble--left { left: 19px; bottom: 24px; color: var(--orange); border-width: 5px 0 0 5px; transform: rotate(-23deg) skew(-18deg); }
.scribble--right { right: 13px; top: 28px; color: var(--blue); border-width: 0 5px 5px 0; transform: rotate(17deg) skew(12deg); }

.date-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 8px auto 22px;
  padding: 9px 14px;
  border: 2px solid var(--navy);
  border-radius: 12px;
  color: var(--navy);
  background: rgba(255,255,255,.88);
  box-shadow: 5px 5px 0 rgba(7,31,91,.08);
  transform: rotate(-1deg);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}
.date-stamp strong { color: var(--orange); font-size: 25px; line-height: .9; letter-spacing: -.03em; }
.date-stamp i { width: 1px; height: 23px; background: rgba(7,31,91,.2); }
.date-stamp__time { color: var(--red); font-size: 14px; }

.event-card {
  position: relative;
  margin: 0 2px 19px;
  padding: 27px 20px 23px;
  border: 2px solid var(--navy);
  border-radius: 4px 24px 8px 20px;
  background: rgba(255,255,255,.94);
  box-shadow: 8px 10px 0 rgba(4,167,234,.13), 0 18px 42px rgba(10,29,67,.08);
  transform: rotate(.5deg);
}
.event-card::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 22px;
  width: 26px;
  height: 8px;
  background: var(--orange);
  transform: rotate(-20deg);
  border-radius: 30px;
}
.event-card__tape { position: absolute; top: -12px; width: 56px; height: 20px; background: rgba(255,199,43,.47); transform: rotate(-7deg); }
.event-card__tape--left { left: 23px; }
.event-card__tape--right { right: 26px; transform: rotate(8deg); background: rgba(0,167,235,.18); }
.eyebrow { margin: 0 0 8px; color: #7c8390; text-transform: uppercase; letter-spacing: .13em; font-size: 10px; font-weight: 900; }
.venue { margin: 0 0 6px; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 700; }
.address { margin: 0; color: #585f6c; font-size: 14px; line-height: 1.55; }
.map-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--navy); font-weight: 800; font-size: 13px; text-decoration: none; }
.map-pin { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50% 50% 50% 0; color: white; background: var(--red); transform: rotate(-45deg); font-size: 6px; }
.map-pin::first-letter { transform: rotate(45deg); }
.rsvp-jump {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 58px;
  border-radius: 16px 5px 16px 5px;
  color: #fff;
  background: var(--navy);
  box-shadow: 7px 8px 0 var(--orange), 0 14px 30px rgba(7,31,91,.18);
  font-weight: 900;
  text-decoration: none;
  transform: rotate(-.4deg);
}
.rsvp-jump b { color: var(--yellow); font-size: 22px; animation: bob 1.35s ease-in-out infinite; }

.rsvp-section {
  position: relative;
  padding: 46px 18px 34px;
  background:
    linear-gradient(180deg, rgba(231,248,255,.72), rgba(255,255,255,.98) 30%),
    #fff;
  border-top: 1px solid rgba(7,31,91,.06);
}
.rsvp-splash {
  position: absolute;
  right: -42px;
  top: -32px;
  width: 130px;
  height: 95px;
  opacity: .12;
  background: conic-gradient(from 210deg, transparent 0 9%, var(--blue) 10% 13%, transparent 14% 27%, var(--red) 28% 31%, transparent 32% 48%, var(--yellow) 49% 52%, transparent 53% 100%);
  clip-path: polygon(50% 0, 60% 36%, 83% 8%, 77% 43%, 100% 31%, 80% 55%, 100% 76%, 66% 68%, 54% 100%, 44% 69%, 9% 92%, 31% 58%, 0 48%, 37% 42%);
}
.section-heading { margin: 0 6px 23px; text-align: left; }
.rsvp-kicker { display: inline-block; margin: 0 0 1px; color: var(--orange); font-family: "Permanent Marker", cursive; font-size: 19px; transform: rotate(-5deg); }
.section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 31px; color: var(--navy); }
.section-heading > p:last-child { margin: 7px 0 0; color: #757c88; font-size: 13px; line-height: 1.45; }
.rsvp-form { display: grid; gap: 14px; }
.field-grid { display: grid; gap: 12px; }
.field-grid--two { grid-template-columns: 1fr 1fr; }
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 17px 15px;
  border: 1px solid #e4e8ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16,38,73,.055);
}
.field > span, .choice-card legend { color: #242b35; font-size: 12px; font-weight: 900; }
.field b, .choice-card b { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 0;
  outline: 0;
  border-bottom: 1px solid #dce1e8;
  border-radius: 0;
  padding: 4px 0 8px;
  color: #1e2430;
  background: transparent;
  font-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--blue); }
.field input::placeholder, .field textarea::placeholder { color: #a5abb4; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #667082 50%), linear-gradient(135deg, #667082 50%, transparent 50%); background-position: calc(100% - 15px) 9px, calc(100% - 10px) 9px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.field--counter { min-height: 94px; justify-content: center; }
.field--counter select { color: var(--navy); font-size: 22px; font-weight: 900; }
.field--textarea textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.choice-card { margin: 0; padding: 18px 14px 14px; border: 1px solid #e4e8ef; border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(16,38,73,.055); }
.choice-card legend { padding: 0 5px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.choice { position: relative; display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 11px; border: 2px solid #edf0f4; border-radius: 14px; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-icon { display: grid; place-items: center; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 50%; background: #f0f3f7; color: #9299a4; font-size: 18px; font-weight: 900; }
.choice strong { display: block; color: #1c2430; font-size: 14px; }
.choice small { display: block; margin-top: 2px; color: #818895; font-size: 10px; line-height: 1.25; }
.choice:has(input:checked) { transform: translateY(-1px); }
.choice--yes:has(input:checked) { border-color: rgba(0,167,235,.72); background: #f1fbff; }
.choice--yes:has(input:checked) .choice-icon { color: #fff; background: var(--blue); }
.choice--no:has(input:checked) { border-color: rgba(231,25,43,.58); background: #fff5f6; }
.choice--no:has(input:checked) .choice-icon { color: #fff; background: var(--red); }
.guest-counts { display: none; padding: 3px 0 0; }
.guest-counts.is-visible { display: block; }
.guest-counts__title { margin: 0 0 8px 3px; color: #535b67; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.hp-field { position: absolute !important; left: -99999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.submit-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  margin-top: 2px;
  border: 0;
  border-radius: 17px 6px 17px 6px;
  padding: 0 22px;
  color: #fff;
  background: linear-gradient(120deg, var(--orange), var(--red));
  box-shadow: 7px 8px 0 var(--navy), 0 17px 30px rgba(231,25,43,.16);
  font-weight: 900;
  cursor: pointer;
  transform: rotate(.2deg);
}
.submit-btn__arrow { font-size: 23px; line-height: 1; transition: transform .18s ease; }
.submit-btn:active .submit-btn__arrow { transform: translateX(3px); }
.submit-btn:disabled { opacity: .72; cursor: wait; }
.submit-btn__spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.submit-btn.is-loading .submit-btn__spinner { display: inline-block; }
.submit-btn.is-loading .submit-btn__arrow { display: none; }
.form-status { min-height: 20px; margin: 5px 0 0; padding: 0 7px; text-align: center; color: #707886; font-size: 12px; font-weight: 800; }
.form-status.is-success { color: #067145; }
.form-status.is-error { color: #be1d2c; }

/* ---- Les autres moments (téfilines, paracha) ---- */
.moments {
  position: relative;
  display: grid;
  gap: 34px;
  padding: 30px 18px 34px;
  background: #fff;
}
.moment {
  position: relative;
  margin: 0 4px;
  padding: 10px;
  border: 2px solid var(--navy);
  background: #fff;
}
.moment--left { border-radius: 22px 6px 18px 6px; transform: rotate(-.8deg); box-shadow: 8px 10px 0 rgba(4,167,234,.14), 0 18px 42px rgba(10,29,67,.08); }
.moment--right { border-radius: 6px 22px 6px 18px; transform: rotate(.7deg); box-shadow: -8px 10px 0 rgba(255,97,22,.16), 0 18px 42px rgba(10,29,67,.08); }
.moment img { display: block; width: 100%; height: auto; border-radius: 12px 3px 10px 3px; }
.moment--right img { border-radius: 3px 12px 3px 10px; }
.moment__tape { position: absolute; top: -12px; width: 62px; height: 20px; }
.moment__tape--left { left: 26px; background: rgba(255,199,43,.5); transform: rotate(-6deg); }
.moment__tape--right { right: 24px; background: rgba(0,167,235,.22); transform: rotate(7deg); }


.art-footer {
  position: relative;
  margin-top: -1px;
  min-height: 78px;
  overflow: hidden;
  background: #fff;
}
.art-footer .paint--footer {
  position: absolute;
  left: 0;
  bottom: 0;
}

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }

@media (max-width: 380px) {
  .hero { padding-inline: 15px; }
  .rsvp-section { padding-inline: 12px; }
  .field-grid--two { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .date-stamp { gap: 7px; padding-inline: 10px; }

}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Formulaire famille (lien personnel ?i=TOKEN) ---------- */
.rsvp-form.is-family .rsvp-std { display: none !important; }
.family-card { padding: 18px 14px 14px; border: 1px solid #e4e8ef; border-radius: 17px; background: #fff; box-shadow: 0 8px 24px rgba(16,38,73,.055); }
.family-card__kicker { margin: 0 0 2px; text-align: center; color: #535b67; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.family-card__title { margin: 0 0 14px; text-align: center; color: var(--navy); font-size: 19px; font-weight: 900; line-height: 1.25; }
.family-card__all { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.all-btn { padding: 10px 8px; border: 2px solid #edf0f4; border-radius: 12px; background: #f7f9fb; color: #1c2430; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.all-btn--yes:hover, .all-btn--yes:active { border-color: rgba(0,167,235,.72); background: #f1fbff; }
.all-btn--no:hover, .all-btn--no:active { border-color: rgba(231,25,43,.58); background: #fff5f6; }
.family-card__guests { margin: 0; padding: 0; list-style: none; }
.guest-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px; border-top: 1px solid #eef1f5; border-radius: 10px; transition: background .18s ease; }
.guest-line.is-missing { background: #fff5f6; }
.guest-line__name { color: #1c2430; font-size: 15px; font-weight: 800; }
.guest-line__name small { margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: #f0f3f7; color: #6e7482; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; vertical-align: 2px; }
.guest-line__choices { display: inline-flex; gap: 6px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 8px 13px; border: 2px solid #edf0f4; border-radius: 999px; color: #818895; font-size: 13px; font-weight: 800; transition: all .18s ease; }
.pill--yes input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.pill--no input:checked + span { border-color: var(--red); background: var(--red); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
