:root {
  --ink: #4a2a22;
  --ink-soft: #6e4b41;
  --ink-line: rgba(74, 42, 34, .18);
  --error: #a4423a;
  --paper: #eadbd3;
  --card: rgba(251, 241, 236, .74);
  --card-border: rgba(255, 255, 255, .7);
  --blush: #f1dad0;
  --rose: #efacd4;
  --rose-deep: #e39ac5;
  --peach: #f4b890;
  --peach-deep: #e9a57c;
  --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --script: "Great Vibes", "Snell Roundhand", "Apple Chancery", cursive;
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

p, h1, h2, h3 { margin: 0; }
img, svg { display: block; max-width: 100%; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Fond marbre ---------- */
.marble {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* ---------- Typo commune ---------- */
.eyebrow {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 1.6;
}
.eyebrow--lg { font-size: 1.15rem; letter-spacing: .24em; }

.title {
  font-size: clamp(2.3rem, 8vw, 3.6rem);
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-style: italic;
  line-height: 1.35;
  margin-top: 2.2rem;
}

.amp { display: block; font-size: .58em; line-height: 1.2; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 3.2rem;
  padding: .8rem 1.9rem .8rem calc(1.9rem + .2em);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }

.btn--ink {
  background: var(--ink);
  color: #fbf1ec;
  box-shadow: 0 12px 26px rgba(74, 42, 34, .22);
}
.btn--ink:hover { box-shadow: 0 16px 32px rgba(74, 42, 34, .28); }
.btn--soft { background: var(--blush); color: var(--ink); }
.btn--soft:hover { background: #f4e2da; }
.btn--sm { min-height: 2.7rem; font-size: .78rem; padding-inline: 1.3rem; }
.btn--block { width: 100%; min-height: 3.7rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 8px 22px rgba(74, 42, 34, .12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: transform .35s var(--ease), background-color .35s;
}
.icon-btn:hover { transform: translateY(-2px); background: #fff; }
.icon-btn svg { width: 1.35rem; height: 1.35rem; }
.icon-btn--muted { background: rgba(125, 108, 102, .5); color: #fff; }
.icon-btn--muted:hover { background: rgba(110, 90, 84, .65); }

.link-btn {
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

/* ---------- Écran mot de passe ---------- */
.gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  overflow-y: auto;
  text-align: center;
  transition: opacity 1.1s var(--ease), visibility 1.1s;
}
.gate.is-open { opacity: 0; visibility: hidden; pointer-events: none; }

.gate__inner {
  width: 100%;
  max-width: 25rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.fonts-ready .gate__inner { opacity: 1; transform: none; }
.gate.is-open .gate__inner { opacity: 0; transform: translateY(-1.5rem) scale(.98); }

.seal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6.4rem;
  height: 6.4rem;
  margin: 1.8rem auto 1.5rem;
  padding-right: .15rem;
  border-radius: 48% 52% 50% 50% / 52% 47% 53% 48%;
  font-family: var(--script);
  font-size: 2.1rem;
  line-height: 1;
  color: #fff4f4;
  text-shadow: 0 1px 1px rgba(90, 30, 50, .35);
  background: radial-gradient(circle at 34% 28%, #ebbcc9, #cd8aa0 52%, #aa667d);
  box-shadow:
    inset 0 0 0 5px rgba(255, 255, 255, .1),
    inset 0 -8px 16px rgba(90, 30, 50, .3),
    0 14px 28px rgba(120, 60, 80, .28);
  transition: transform .9s var(--ease);
}
.seal::before {
  content: "";
  position: absolute;
  inset: .55rem;
  border-radius: 50%;
  border: 1px dashed rgba(255, 240, 240, .45);
}
.seal__amp { font-size: .62em; margin: 0 .05em; }
.gate.is-open .seal { transform: scale(1.12) rotate(-6deg); }

.gate__names {
  font-family: var(--script);
  font-size: clamp(3.3rem, 14vw, 4.3rem);
  line-height: 1.05;
}
.gate__names .amp { display: inline; font-size: .7em; }

.gate__date {
  margin-top: .5rem;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.gate__form { display: grid; gap: 1.1rem; margin-top: 2.2rem; }
.gate__field { display: grid; }
.gate__field.is-error .field__input { border-color: #c9796d; animation: shake .45s; }
.gate__hint { margin-top: 1.4rem; font-size: 1.05rem; font-style: italic; color: var(--ink-soft); }

@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---------- Structure ---------- */
.site { transition: opacity 1.4s var(--ease); }
.is-locked .site { visibility: hidden; opacity: 0; }

.section {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(4.5rem, 12vh, 7rem) 1.25rem;
  text-align: center;
}
.section__inner { width: 100%; max-width: 40rem; }
.section__inner--wide { max-width: 62rem; }

.reveal > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible > * { opacity: 1; transform: none; }
.reveal.is-visible > :nth-child(2) { transition-delay: .1s; }
.reveal.is-visible > :nth-child(3) { transition-delay: .2s; }
.reveal.is-visible > :nth-child(4) { transition-delay: .3s; }
.reveal.is-visible > :nth-child(5) { transition-delay: .4s; }
.reveal.is-visible > :nth-child(n+6) { transition-delay: .5s; }

/* ---------- Accueil ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100svh;
  min-height: 34rem;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scale(1.08);
  transition: transform 3s var(--ease);
  will-change: transform;
}
.site:not([inert]) .hero__bg { transform: scale(1); }

.hero__sea { width: 100%; height: 100%; }

.hero__photo {
  position: absolute;
  inset: 0;
  background: url("assets/hero.jpg") center / cover no-repeat;
  filter: saturate(.75) brightness(1.06) contrast(.92);
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(242, 198, 213, .3), rgba(250, 228, 228, .2) 55%, rgba(242, 210, 206, .32));
}

.hero__content {
  position: relative;
  padding: 2rem 1.5rem;
}
.hero__content::before {
  content: "";
  position: absolute;
  inset: -10% -30%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 244, 244, .38), transparent);
}

.hero__names {
  display: grid;
  justify-items: center;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.8rem, 13vw, 5.8rem);
  line-height: 1;
}
.hero__names:focus { outline: none; }
.hero__names .amp { margin: .1em 0 .05em; }

.hero__date {
  margin: 2.2rem 0 3rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: max(1.5rem, env(safe-area-inset-bottom));
  width: 2.2rem;
  color: var(--ink);
  opacity: .7;
  transform: translateX(-50%);
  animation: nudge 2.4s var(--ease) infinite;
}

@keyframes nudge {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Faire-part ---------- */
.numerology {
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: .12em;
  margin-bottom: .6rem;
}

.names-xl {
  display: grid;
  justify-items: center;
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(5rem, 22vw, 9.5rem);
  line-height: .95;
  margin-bottom: 2.4rem;
}
.names-xl .amp { margin: .12em 0; }

.date-lg {
  margin-top: .5rem;
  font-size: clamp(2rem, 7.5vw, 2.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}

/* ---------- Compte à rebours ---------- */
.envelope {
  margin: 2.4rem 0;
  font-size: 2.6rem;
  line-height: 1;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
  max-width: 34rem;
  margin: 1rem auto 3.5rem;
}
.countdown__unit {
  padding: 1rem .2rem .85rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: .6rem;
  background: rgba(190, 150, 135, .16);
}
.countdown__value {
  display: block;
  font-size: clamp(2rem, 8.5vw, 3rem);
  font-weight: 500;
  line-height: 1;
}
.countdown__label {
  display: block;
  margin-top: .5rem;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.date-md {
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

/* ---------- Programme ---------- */
.timeline {
  position: relative;
  max-width: 22rem;
  margin: 3rem auto 2.5rem;
  padding: 0;
  list-style: none;
  text-align: left;
}
.timeline::before {
  content: "";
  position: absolute;
  left: .5rem;
  top: 1rem;
  bottom: 2.6rem;
  width: 1.5px;
  background: rgba(74, 42, 34, .35);
}

.timeline__item { position: relative; padding: 0 0 2.6rem 3.1rem; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 3.5px solid var(--ink);
  border-radius: 50%;
  background: #f2e5df;
}

.timeline__time { font-size: 2.15rem; font-weight: 600; line-height: 1.15; }
.timeline__label {
  margin: .4rem 0 .2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.timeline__desc { font-size: 1.2rem; line-height: 1.35; color: var(--ink-soft); }

.agenda { display: grid; justify-items: center; gap: .7rem; }
.agenda__label { font-size: .78rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.agenda__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
  animation: appear .4s var(--ease);
}

@keyframes appear {
  from { opacity: 0; transform: translateY(-6px); }
}

/* ---------- Lieux ---------- */
.venues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  gap: 1.75rem;
  margin-top: 2.8rem;
  text-align: left;
}

.venue {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(74, 42, 34, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.venue__media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 7;
  color: rgba(74, 42, 34, .42);
}
.venue__media svg { width: 4.2rem; }
/* Photo posée par-dessus l'illustration : il suffit d'ajouter le fichier dans assets/ */
.venue__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo) center / cover no-repeat;
}
.venue__media--mairie {
  --photo: url("assets/mairie.jpg");
  background: linear-gradient(160deg, #f6e2e7, #eBd2c9 55%, #dcc4b9);
}
.venue__media--cejo {
  --photo: url("assets/cejo.jpg");
  background: linear-gradient(180deg, #ecdde4, #d5e0df 60%, #e7d6cb);
}

.venue__body { display: grid; justify-items: start; padding: 1.3rem 1.4rem 1.5rem; }
.venue__name { font-size: 1.55rem; font-weight: 600; line-height: 1.2; }
.venue__meta { margin: .2rem 0 1.1rem; font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- Dress code ---------- */
.dress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1.5rem;
  max-width: 48rem;
  margin: 2.8rem auto 0;
}

.dress__card {
  padding: 2.1rem 1.4rem 2.3rem;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(74, 42, 34, .08);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dress__who {
  padding-left: .28em;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.3rem 1.8rem;
  margin: 1.7rem 0 0;
  padding: 0;
  list-style: none;
}

.swatch {
  display: grid;
  justify-items: center;
  gap: .65rem;
  max-width: 7.5rem;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.2;
}

.swatch__dot {
  width: 4.4rem;
  height: 4.4rem;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  box-shadow: inset 0 -6px 12px rgba(0, 0, 0, .08), 0 8px 18px rgba(74, 42, 34, .15);
}
.swatch__dot--rose { background: radial-gradient(circle at 35% 30%, #f8c6dd, #e78cb7); }
.swatch__dot--rouge { background: radial-gradient(circle at 35% 30%, #e4625f, #b0232d); }
.swatch__dot--orange { background: radial-gradient(circle at 35% 30%, #fcbb7e, #ee7a35); }
.swatch__dot--lin {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(110, 80, 50, .12) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 35% 30%, #ecdec8, #cbb08c);
}
.swatch__dot--blanc {
  border-color: rgba(74, 42, 34, .12);
  background: radial-gradient(circle at 35% 30%, #fff, #eee7e0);
}

/* ---------- RSVP ---------- */
.rsvp {
  display: grid;
  gap: 1.8rem;
  max-width: 30rem;
  margin: 2.6rem auto 0;
  padding: 2rem 1.4rem;
  border: 1px solid var(--card-border);
  border-radius: 1.4rem;
  background: rgba(251, 243, 239, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
/* Légende flottante : sinon le navigateur la place dans la bordure du fieldset */
legend { float: left; width: 100%; padding: 0; }
legend + * { clear: both; }

.field { display: grid; }
.field--nested { margin-top: 1.4rem; animation: appear .4s var(--ease); }

.field__label {
  display: block;
  margin-bottom: .7rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-align: center;
}
.field__hint {
  display: block;
  margin-top: .2rem;
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-soft);
}

.field__input {
  width: 100%;
  min-height: 3.4rem;
  padding: .7rem 1.3rem;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  background: rgba(255, 250, 247, .85);
  font: inherit;
  font-size: 1.25rem;
  color: var(--ink);
  text-align: center;
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: rgba(74, 42, 34, .42); font-style: italic; }
.field__input:focus { outline: none; border-color: rgba(74, 42, 34, .5); box-shadow: 0 0 0 4px rgba(239, 172, 212, .3); }

.field__error {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--error);
  text-align: center;
}
.field__error:not(:empty) { margin-top: .5rem; }
.is-invalid > .field__input { border-color: #c9796d; }

.choice + .choice { padding-top: 1.7rem; border-top: 1px solid var(--ink-line); }
.choice__options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.pill { position: relative; display: block; cursor: pointer; }
.pill input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.pill span {
  display: grid;
  place-items: center;
  min-height: 3.4rem;
  padding-left: .28em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink);
  transition: background .35s var(--ease), color .35s, border-color .35s, box-shadow .35s, transform .35s var(--ease);
}
.pill:hover span { transform: translateY(-1px); }
.pill input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.pill input:disabled + span { opacity: .5; }

.pill--oui span { background: rgba(239, 172, 212, .2); border-color: rgba(227, 154, 197, .55); }
.pill--oui input:checked + span {
  background: linear-gradient(90deg, #f3b2d9, var(--rose-deep));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 22px rgba(227, 154, 197, .45);
}
.pill--non span { background: rgba(244, 184, 144, .2); border-color: rgba(233, 165, 124, .5); }
.pill--non input:checked + span {
  background: linear-gradient(90deg, var(--peach), var(--peach-deep));
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(233, 165, 124, .4);
}

.rsvp__note {
  margin-top: -.8rem;
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink-soft);
  text-align: center;
}

.rsvp-done {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 30rem;
  margin: 2.6rem auto 0;
  padding: 2.4rem 1.6rem 2rem;
  border: 1px solid var(--card-border);
  border-radius: 1.4rem;
  background: var(--card);
  animation: appear .6s var(--ease);
}
.rsvp-done:focus { outline: none; }
.rsvp-done__title { font-family: var(--script); font-size: 4.2rem; line-height: 1; }
.rsvp-done__text { font-size: 1.4rem; font-style: italic; line-height: 1.35; }
.rsvp-done__reminder { font-size: 1.1rem; line-height: 1.45; color: var(--ink-soft); }

.deadline {
  margin-top: 3.2rem;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.8;
  text-transform: uppercase;
}

/* ---------- Pied de page ---------- */
.footer {
  padding: 3rem 1.25rem calc(6rem + env(safe-area-inset-bottom));
  text-align: center;
}
.footer__names { font-family: var(--script); font-size: 2.8rem; line-height: 1.2; }
.footer__credits {
  max-width: 34rem;
  margin: 2.2rem auto 0;
  font-size: .9rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-soft);
}
.footer__credits a { color: inherit; text-underline-offset: .15em; }

/* ---------- Musique ---------- */
.music-btn {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 3.3rem;
  height: 3.3rem;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(250, 240, 235, .82);
  box-shadow: 0 8px 24px rgba(74, 42, 34, .18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  animation: appear .6s var(--ease);
}
.music-btn__bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.music-btn__bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: currentColor;
  transform: scaleY(.3);
  transform-origin: bottom;
  animation: eq 1.1s ease-in-out infinite paused;
}
.music-btn__bars i:nth-child(2) { animation-delay: -.45s; }
.music-btn__bars i:nth-child(3) { animation-delay: -.8s; }
.music-btn__bars i:nth-child(4) { animation-delay: -.2s; }
.music-btn[aria-pressed="true"] .music-btn__bars i { animation-play-state: running; }

@keyframes eq {
  0%, 100% { transform: scaleY(.3); }
  50% { transform: scaleY(1); }
}

.spotify {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.1rem);
  z-index: 40;
  width: min(22rem, calc(100vw - 2rem));
  animation: appear .5s var(--ease);
}
.spotify iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(74, 42, 34, .25);
}
.spotify__close {
  position: absolute;
  top: -.7rem;
  right: -.5rem;
  z-index: 1;
  width: 1.8rem;
  height: 1.8rem;
  border: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--ink);
  background: #fbf1ec;
  box-shadow: 0 3px 10px rgba(74, 42, 34, .25);
  cursor: pointer;
}

/* ---------- Notification ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(max(1rem, env(safe-area-inset-bottom)) + 4.4rem);
  z-index: 60;
  max-width: calc(100vw - 2rem);
  padding: .65rem 1.3rem;
  border-radius: 999px;
  font-size: 1.05rem;
  color: #fbf1ec;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .35s, transform .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Écrans larges ---------- */
@media (min-width: 48rem) {
  .rsvp { padding: 2.6rem 2.4rem; }
}

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