/* ==========================================================================
   Rama & Thierry — 05.12.2026
   app.css — feuille de style unique des 3 pages publiques
   (index / invitation / check)
   Papier crème · or · chocolat · rouille — sans dépendance externe.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette imposée par le contrat */
  --ink: #120A08;
  --espresso: #1E1210;
  --cocoa: #6A4437;
  --rust: #AB3F18;
  --ember: #EB8545;
  --sand: #AEABA4;
  --cream: #F6F0E7;
  --gold: #C9A227;

  /* Déclinaisons papier / or */
  --paper: #FBF7F0;
  --paper-warm: #F3EADA;
  --gold-deep: #7E6219;          /* or assez sombre pour du petit texte (AA) */
  --gold-line: rgba(201, 162, 39, .34);
  --gold-line-strong: rgba(201, 162, 39, .62);
  --line: rgba(106, 68, 55, .24);
  --ink-soft: rgba(18, 10, 8, .74);
  --ink-faint: rgba(18, 10, 8, .62);
  --cream-70: rgba(246, 240, 231, .72);
  --danger: #7D2C10;

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --wrap: 1140px;
  --gutter: clamp(1.15rem, 4.5vw, 2.75rem);
  --radius: 20px;
  --ease: cubic-bezier(.22, .68, .26, 1);

  --shadow-card:
    0 34px 80px -46px rgba(30, 18, 16, .62),
    0 10px 30px -22px rgba(30, 18, 16, .34);
  --shadow-soft: 0 18px 44px -30px rgba(30, 18, 16, .5);
  --focus-ring: 0 0 0 3px rgba(201, 162, 39, .34);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 1.5rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

::selection { background: var(--rust); color: var(--cream); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 6px;
}

/* On ne retire jamais l'anneau : il est renforcé sur les fonds dorés. */
.btn:focus-visible,
.topbar a:focus-visible {
  outline-color: var(--espresso);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 90;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  background: var(--espresso);
  color: var(--cream);
  font-size: .85rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .3s var(--ease);
}
.skip:focus-visible { transform: none; outline-color: var(--gold); }

.wrap {
  width: min(calc(100% - (2 * var(--gutter))), var(--wrap));
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. Décor : papier texturé, halos, grain, pétales
   -------------------------------------------------------------------------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(72% 55% at 50% -8%, rgba(235, 133, 69, .20), transparent 62%),
    radial-gradient(55% 46% at 102% 16%, rgba(201, 162, 39, .19), transparent 70%),
    radial-gradient(58% 48% at -6% 72%, rgba(171, 63, 24, .11), transparent 65%),
    radial-gradient(95% 80% at 50% 112%, rgba(106, 68, 55, .12), transparent 72%),
    var(--cream);
}
.backdrop::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/texture.jpg') center / cover no-repeat;
  opacity: .08;
  mix-blend-mode: multiply;
}
.backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(251, 247, 240, .28), transparent 20%, transparent 80%, rgba(251, 247, 240, .42));
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.petals {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -12vh;
  left: var(--x, 10%);
  width: var(--s, 10px);
  height: calc(var(--s, 10px) * 1.35);
  border-radius: 62% 38% 58% 42% / 55% 48% 52% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(235, 133, 69, .8), rgba(171, 63, 24, .18) 72%);
  opacity: .5;
  filter: blur(.2px);
  animation: petalFall var(--dur, 22s) linear var(--delay, 0s) infinite;
}
.petal:nth-child(3n) {
  height: var(--s, 10px);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(201, 162, 39, .9), rgba(201, 162, 39, .14) 72%);
}
.petal:nth-child(4n) { opacity: .32; }
.petal:nth-child(5n) { background: radial-gradient(circle at 32% 28%, rgba(174, 171, 164, .75), rgba(174, 171, 164, .1) 70%); }

@keyframes petalFall {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--drift, 30px), 55vh, 0) rotate(170deg); }
  100% { transform: translate3d(calc(var(--drift, 30px) * -.6), 118vh, 0) rotate(330deg); }
}

/* --------------------------------------------------------------------------
   4. Structure de page
   -------------------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.page > main { flex: 1 0 auto; }

/* --------------------------------------------------------------------------
   5. Barre supérieure
   -------------------------------------------------------------------------- */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 6;
  padding: clamp(1rem, 3vw, 1.75rem) 0;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.monogram {
  display: inline-flex;
  align-items: baseline;
  gap: .14em;
  padding: .38rem .95rem .34rem;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(251, 247, 240, .52);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .05em;
  line-height: 1;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
}
.monogram em {
  font-style: italic;
  color: var(--gold-deep);
  font-size: 1.12em;
  transform: translateY(.02em);
}
.monogram:hover {
  border-color: var(--gold-line-strong);
  box-shadow: 0 8px 22px -14px rgba(30, 18, 16, .55);
}
.topbar__meta {
  margin: 0;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.topbar__meta a {
  color: var(--cocoa);
  text-decoration: underline;
  text-decoration-color: var(--gold-line-strong);
  text-underline-offset: 4px;
}
.topbar__meta a:hover { color: var(--rust); }

/* --------------------------------------------------------------------------
   6. Boutons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 3rem;
  padding: .85rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    background .35s var(--ease),
    border-color .35s var(--ease),
    color .35s var(--ease);
}
.btn:disabled,
.btn[aria-disabled='true'] { cursor: progress; }

.btn--primary {
  background: linear-gradient(135deg, var(--rust), #96320f);
  color: var(--cream);
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 16px 32px -18px rgba(171, 63, 24, .85);
}
.btn--primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #b9481f, #8f3010);
  box-shadow: 0 22px 40px -16px rgba(171, 63, 24, .9), 0 0 0 1px rgba(201, 162, 39, .45);
}
.btn--primary:active { transform: translateY(0); }

.btn--gold {
  background: linear-gradient(135deg, #ddba4d, var(--gold));
  color: var(--espresso);
  border-color: rgba(126, 98, 25, .38);
  box-shadow: 0 16px 30px -18px rgba(201, 162, 39, .85);
}
.btn--gold:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e8c85e, #d1aa2b);
  box-shadow: 0 22px 38px -16px rgba(201, 162, 39, .95), 0 0 0 1px rgba(126, 98, 25, .35);
}

.btn--ghost {
  background: transparent;
  color: var(--cocoa);
  border-color: rgba(106, 68, 55, .38);
}
.btn--ghost:hover {
  border-color: var(--gold-deep);
  color: var(--espresso);
  background: rgba(201, 162, 39, .09);
  transform: translateY(-2px);
}

.btn.is-loading { cursor: progress; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-success {
  background: linear-gradient(135deg, #2c1c17, var(--espresso));
  color: var(--cream);
  border-color: var(--gold-line-strong);
  box-shadow: 0 18px 34px -18px rgba(30, 18, 16, .8);
  cursor: default;
}
.btn:disabled:hover { transform: none; }
.btn {
  text-align: center;
  line-height: 1.3;
}
.btn svg { flex: none; }

.btn__spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.btn__check { display: none; font-size: 1.05em; line-height: 1; }
.btn.is-success .btn__check { display: inline-block; }

/* --------------------------------------------------------------------------
   7. Animation d'entrée en cascade
   -------------------------------------------------------------------------- */
.rise {
  opacity: 0;
  animation: rise .95s var(--ease) forwards;
  animation-delay: var(--d, .05s);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .85s var(--ease) var(--reveal-delay, 0ms),
    transform .85s var(--ease) var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }

/* --------------------------------------------------------------------------
   8. HERO (accueil)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(5rem, 13vh, 8rem) 0 clamp(2.75rem, 7vh, 4.5rem);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  gap: clamp(2.25rem, 6vw, 4rem);
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, .88fr); }
}

.hero__copy {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
}
@media (min-width: 900px) {
  .hero__copy { margin-inline: 0; max-width: none; text-align: left; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin: 0 0 1.15rem;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: clamp(20px, 5vw, 44px);
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, transparent, var(--gold-line-strong));
}
.eyebrow::after { background: linear-gradient(90deg, var(--gold-line-strong), transparent); }
@media (min-width: 900px) {
  .hero .eyebrow::before { display: none; }
}

.names {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 14.5vw, 7rem);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -.015em;
  color: var(--ink);
}
.names__line,
.names__amp { display: inline-block; }
.names__amp {
  padding: 0 .12em;
  font-style: italic;
  font-size: .72em;
  color: var(--gold-deep);
  transform: translateY(.02em);
}
@media (min-width: 900px) {
  .names { font-size: clamp(4.75rem, 9.6vw, 9.25rem); line-height: .86; }
}

/* Filet d'or scintillant */
.rule {
  display: flex;
  align-items: center;
  gap: .85rem;
  width: min(100%, 19rem);
  margin: clamp(1.35rem, 3vw, 1.9rem) auto clamp(1.1rem, 2.6vw, 1.5rem);
}
@media (min-width: 900px) { .rule { margin-inline: 0; } }
.rule__line {
  position: relative;
  flex: 1;
  height: 1px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, var(--gold-line-strong), transparent);
}
.rule__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 246, 214, .98), transparent);
  transform: translateX(-110%);
  animation: sheen 4.5s var(--ease) infinite;
}
.rule__gem {
  width: 7px;
  height: 7px;
  flex: none;
  transform: rotate(45deg);
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, .16);
  animation: gemPulse 4.5s ease-in-out infinite;
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin: 0;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.hero__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin: 0;
}
@media (min-width: 900px) { .hero__date { justify-content: flex-start; } }
.hero__dot { color: var(--gold); }
.hero__venue {
  margin: 0;
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--ink-faint);
}
.hero__message {
  max-width: 34rem;
  margin: clamp(1.4rem, 3vw, 1.9rem) auto 0;
  font-size: clamp(.98rem, 2.3vw, 1.06rem);
  line-height: 1.78;
  color: var(--ink-soft);
}
@media (min-width: 900px) { .hero__message { margin-inline: 0; } }
.hero__verse {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.24em;
  line-height: 1.5;
  color: var(--rust);
}
.hero__verse-ref {
  display: block;
  margin: .15rem 0 .9rem;
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.hero__venue--reception {
  margin-top: .35rem;
  color: var(--cocoa);
}
.invite-card__meta--reception {
  margin-top: .45rem;
  color: var(--cocoa);
}
.hero__message em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.16em;
  color: var(--cocoa);
}

.scrollcue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  margin-top: clamp(1.7rem, 4vw, 2.5rem);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-faint);
  transition: color .3s var(--ease);
}
.scrollcue:hover { color: var(--gold-deep); }
.scrollcue__line {
  position: relative;
  width: 1px;
  height: 3.1rem;
  overflow: hidden;
  background: var(--gold-line);
}
.scrollcue__line::after {
  content: '';
  position: absolute;
  top: -42%;
  left: 0;
  width: 100%;
  height: 42%;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollTrail 2.4s var(--ease) infinite;
}
.scrollcue__chev {
  width: 12px;
  height: 12px;
  border-right: 1px solid var(--gold-deep);
  border-bottom: 1px solid var(--gold-deep);
  transform: rotate(45deg);
  animation: chevNudge 2.4s var(--ease) infinite;
}

/* Photo en arche + cadre or */
.arch {
  position: relative;
  z-index: 2;
  width: min(100%, 15.5rem);
  margin: 0 auto;
  padding: clamp(.55rem, 1.4vw, .8rem);
  border: 1px solid var(--gold-line-strong);
  border-radius: 999px 999px 14px 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .78), rgba(246, 240, 231, .42));
  box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(255, 255, 255, .65);
}
.arch::before {
  content: '';
  position: absolute;
  inset: .28rem;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(201, 162, 39, .42);
  border-radius: 999px 999px 10px 10px;
}
.arch__media {
  overflow: hidden;
  border-radius: 999px 999px 6px 6px;
  background: var(--paper-warm);
}
.arch img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 56%;
  filter: saturate(.94) contrast(1.02);
  animation: archBreathe 16s ease-in-out infinite alternate;
}
.arch__caption {
  margin: .7rem 0 .15rem;
  font-family: var(--serif);
  font-size: .78rem;
  font-style: italic;
  letter-spacing: .22em;
  text-align: center;
  color: var(--gold-deep);
}
@media (min-width: 900px) {
  .arch { width: min(100%, 24rem); }
}

/* Sceau de cire */
.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--seal-size, 5rem);
  height: var(--seal-size, 5rem);
  border: 2px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #c65a2d, var(--rust) 56%, #79280d);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, .26),
    inset 0 -5px 12px rgba(0, 0, 0, .38),
    0 10px 22px -10px rgba(30, 18, 16, .65);
  font-family: var(--serif);
  font-size: calc(var(--seal-size, 5rem) * .24);
  letter-spacing: .02em;
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.seal::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(246, 240, 231, .45);
  border-radius: 50%;
}
.seal em { font-style: italic; color: #F0D27E; font-size: 1.1em; }
.seal--arch {
  position: absolute;
  z-index: 3;
  left: -.9rem;
  bottom: 1.4rem;
  --seal-size: clamp(3.5rem, 9vw, 4.9rem);
  transform: rotate(-9deg);
  animation: sealFloat 7s ease-in-out infinite;
}
@media (max-width: 420px) {
  .seal--arch { left: -.35rem; bottom: 1.1rem; }
}

/* Fleurs détourées */
.flower {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  opacity: .82;
  filter: saturate(.92);
}
.flower--left {
  left: clamp(-4.5rem, -5vw, -1.5rem);
  bottom: clamp(-4rem, -5vh, -1rem);
  width: clamp(8rem, 23vw, 19rem);
  transform: rotate(-6deg);
  animation: flowerSway 14s ease-in-out infinite alternate;
}
.flower--right {
  right: clamp(-5rem, -6vw, -1.5rem);
  top: clamp(-2.5rem, -2vh, 1rem);
  width: clamp(7rem, 19vw, 15rem);
  transform: rotate(9deg) scaleX(-1);
  animation: flowerSway 17s ease-in-out infinite alternate-reverse;
}
@media (max-width: 899px) {
  .flower--left {
    width: 8.5rem;
    left: -3.4rem;
    bottom: -2rem;
    opacity: .5;
  }
  .flower--right {
    width: 7.5rem;
    right: -3rem;
    top: auto;
    bottom: -.5rem;
    opacity: .42;
  }
}

/* --------------------------------------------------------------------------
   9. Section inscription
   -------------------------------------------------------------------------- */
.section {
  position: relative;
  z-index: 2;
  padding: clamp(2.75rem, 7vw, 5rem) 0 clamp(3.25rem, 8vw, 6rem);
}
.section__head {
  max-width: 39rem;
  margin: 0 auto clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
}
.envelope {
  position: relative;
  display: block;
  width: 3.5rem;
  height: 2.4rem;
  margin: 0 auto 1.15rem;
  border: 1px solid var(--gold-line-strong);
  border-radius: 4px;
  background: linear-gradient(160deg, var(--paper), var(--paper-warm));
  box-shadow: 0 10px 20px -14px rgba(30, 18, 16, .55);
}
.envelope::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(160deg, rgba(201, 162, 39, .26), rgba(201, 162, 39, .06));
  clip-path: polygon(0 0, 100% 0, 50% 64%);
}
.envelope__seal {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #c65a2d, var(--rust) 70%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transform: translate(-50%, -50%);
}

.section__title {
  margin: .2rem 0 .65rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 5.4vw, 3.15rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.01em;
}
.section__title em { font-style: italic; color: var(--gold-deep); }
.section__lede {
  max-width: 31rem;
  margin: 0 auto;
  font-size: .97rem;
  color: var(--ink-soft);
}

.card {
  position: relative;
  padding: clamp(1.6rem, 4.5vw, 3.3rem);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .34)),
    var(--paper);
  box-shadow: var(--shadow-card);
}
.card::before {
  content: '';
  position: absolute;
  inset: .5rem;
  pointer-events: none;
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: calc(var(--radius) - .5rem);
}
.card--rsvp { width: 100%; max-width: 36rem; margin-inline: auto; }
.card--rsvp::after {
  content: '✦';
  position: absolute;
  top: -.85rem;
  left: 50%;
  padding: 0 .6rem;
  transform: translateX(-50%);
  background: var(--cream);
  color: var(--gold-deep);
  font-size: .95rem;
  line-height: 1.7;
}

/* Formulaire */
.form { margin-top: clamp(1.25rem, 3vw, 1.75rem); text-align: left; }
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 560px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  min-width: 0;
}
.field__label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.field__req { color: var(--rust); }
.field__input {
  width: 100%;
  min-height: 3rem;
  padding: .82rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.field__input::placeholder { color: rgba(106, 68, 55, .48); }
.field__input:hover { border-color: var(--gold-line-strong); }
.field__input:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: #fff;
  box-shadow: var(--focus-ring);
}
.field__hint {
  margin: .1rem 0 0;
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-faint);
}

.form__submit { width: 100%; margin-top: 1.35rem; }
.form__fineprint {
  margin: 1rem 0 0;
  font-size: .77rem;
  line-height: 1.65;
  text-align: center;
  color: var(--ink-faint);
}
.form__fineprint strong { color: var(--cocoa); font-weight: 500; }

.form__status {
  display: none;
  margin: 1rem 0 0;
  padding: .8rem 1rem;
  border-radius: 10px;
  font-size: .9rem;
  line-height: 1.55;
}
.form__status.is-error {
  display: block;
  border: 1px solid rgba(171, 63, 24, .38);
  background: rgba(171, 63, 24, .08);
  color: var(--danger);
}
.form__status.is-ok {
  display: block;
  border: 1px solid var(--gold-line-strong);
  background: rgba(201, 162, 39, .12);
  color: var(--gold-deep);
}

.is-shake { animation: shake .5s var(--ease); }

/* --------------------------------------------------------------------------
   10. Pied de page
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 2;
  flex: none;
  padding: 1.9rem 0 2.5rem;
  border-top: 1px solid rgba(106, 68, 55, .16);
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  text-align: center;
  font-size: .72rem;
  letter-spacing: .035em;
  color: var(--ink-faint);
}
.footer__mono {
  margin: 0 0 .1rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: .2em;
  color: var(--cocoa);
}
.footer p { margin: 0; }
.footer a {
  color: var(--cocoa);
  text-decoration: underline;
  text-decoration-color: var(--gold-line-strong);
  text-underline-offset: 3px;
}
.footer a:hover { color: var(--rust); }

/* --------------------------------------------------------------------------
   11. Page « Mon invitation »
   -------------------------------------------------------------------------- */
.invite {
  display: flex;
  align-items: center;
  padding: clamp(4.75rem, 12vh, 7.5rem) 0 clamp(2.75rem, 7vw, 5rem);
}
.invite__inner {
  width: 100%;
  max-width: 41rem;
  margin-inline: auto;
}

/* États chargement / erreur */
.state {
  max-width: 35rem;
  margin-inline: auto;
  padding: clamp(2.2rem, 6vw, 3.6rem) clamp(1.4rem, 4vw, 2.8rem);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .3)), var(--paper);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.state__icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0 auto 1.1rem;
  border: 1px solid var(--gold-line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .58);
  color: var(--gold-deep);
  font-family: var(--serif);
  font-size: 1.6rem;
  line-height: 1;
}
.state__title {
  margin: .2rem 0 .6rem;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.6vw, 2.35rem);
  font-weight: 400;
  line-height: 1.1;
}
.state__text {
  max-width: 26rem;
  margin: 0 auto 1.4rem;
  font-size: .94rem;
  color: var(--ink-soft);
}
.state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.loader {
  width: 2.2rem;
  height: 2.2rem;
  margin: 0 auto 1.15rem;
  border: 2px solid rgba(171, 63, 24, .2);
  border-top-color: var(--rust);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Carte d'invitation qui se déploie */
.invite-card {
  position: relative;
  padding: clamp(1.8rem, 5vw, 3.4rem);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .34)),
    var(--paper);
  box-shadow: var(--shadow-card);
  text-align: center;
  transform-origin: 50% 0;
  animation: cardOpen 1s var(--ease) both;
}
.invite-card::before {
  content: '';
  position: absolute;
  inset: .5rem;
  pointer-events: none;
  border: 1px solid rgba(201, 162, 39, .24);
  border-radius: calc(var(--radius) - .5rem);
}
.invite-card__eyebrow {
  margin: 0 0 .9rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.invite-card__names {
  margin: 0 0 .3rem;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.6vw, 2.15rem);
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--cocoa);
}
.invite-card__names em { font-style: italic; color: var(--gold-deep); }
.invite-card__rule {
  width: min(100%, 13rem);
  height: 1px;
  margin: .9rem auto 1.4rem;
  background: linear-gradient(90deg, transparent, var(--gold-line-strong), transparent);
}
.invite-card__lede {
  max-width: 28rem;
  margin: 0 auto;
  font-size: .92rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.invite-card__meta {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin: 0;
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--cocoa);
}

/* Nom complet de l'invité */
.guest {
  margin: .35rem 0 1.2rem;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.005em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.guest__prenoms {
  display: block;
  margin-bottom: .18em;
  font-size: .5em;
  font-style: italic;
  letter-spacing: .01em;
  color: var(--cocoa);
}
.guest__nom {
  display: block;
  font-size: 1em;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.invite-card .guest { font-size: clamp(2.35rem, 7.2vw, 3.5rem); }

/* Bloc QR */
.qr-frame {
  position: relative;
  width: min(100%, 16.5rem);
  margin: clamp(1.4rem, 4vw, 2rem) auto 0;
  padding: .9rem;
  overflow: hidden;
  border: 1px solid var(--gold-line-strong);
  border-radius: 14px;
  background: linear-gradient(160deg, #fff, var(--paper));
  box-shadow:
    0 20px 44px -30px rgba(30, 18, 16, .6),
    inset 0 0 0 1px rgba(255, 255, 255, .85);
}
.qr-frame::before {
  content: '';
  position: absolute;
  inset: .35rem;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(201, 162, 39, .34);
  border-radius: 9px;
}
.qr-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 42%,
    rgba(201, 162, 39, .05) 46%,
    rgba(255, 241, 196, .62) 50%,
    rgba(201, 162, 39, .05) 54%,
    transparent 58%
  );
  background-size: 100% 260%;
  animation: qrScan 4.2s linear infinite;
}
.qr-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 4px;
}
.qr-frame__caption {
  margin: .55rem 0 0;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-align: center;
  color: var(--ink-faint);
}

.scan-note {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  max-width: 24rem;
  margin: 1.25rem auto 0;
  font-size: .84rem;
  line-height: 1.55;
  text-align: left;
  color: var(--cocoa);
}
.scan-note svg {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .12rem;
  color: var(--gold-deep);
}
.scan-note strong { font-weight: 500; color: var(--espresso); }

.actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .7rem;
  width: min(100%, 22rem);
  margin: clamp(1.4rem, 4vw, 2rem) auto 0;
}
.actions .btn { width: 100%; }

.copy-status {
  min-height: 1.2rem;
  margin: .7rem 0 0;
  font-size: .8rem;
  color: var(--gold-deep);
  text-align: center;
}

.invite-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem 1.4rem;
  margin-top: 1.5rem;
  font-size: .76rem;
  color: var(--ink-faint);
}
.invite-foot a {
  color: var(--cocoa);
  text-decoration: underline;
  text-decoration-color: var(--gold-line-strong);
  text-underline-offset: 3px;
}
.invite-foot a:hover { color: var(--rust); }

/* --------------------------------------------------------------------------
   12. Page de vérification
   -------------------------------------------------------------------------- */
.verify {
  display: flex;
  align-items: center;
  padding: clamp(4.75rem, 12vh, 7.5rem) 0 clamp(2.75rem, 7vw, 5rem);
}
.verify__inner {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
}
.verify-card {
  position: relative;
  padding: clamp(2rem, 5.5vw, 3.8rem) clamp(1.3rem, 4vw, 3rem);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background:
    linear-gradient(170deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .34)),
    var(--paper);
  box-shadow: var(--shadow-card);
}
.verify-card::before {
  content: '';
  position: absolute;
  inset: .5rem;
  pointer-events: none;
  border: 1px solid rgba(201, 162, 39, .22);
  border-radius: calc(var(--radius) - .5rem);
}

/* Sceau doré */
.stamp {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(7rem, 22vw, 9rem);
  height: clamp(7rem, 22vw, 9rem);
  margin: 0 auto 1.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .92), rgba(246, 240, 231, .35));
  box-shadow:
    inset 0 0 0 1px var(--gold-line-strong),
    inset 0 0 0 6px rgba(246, 240, 231, .9),
    inset 0 0 0 7px rgba(201, 162, 39, .28),
    0 16px 34px -22px rgba(30, 18, 16, .55);
  color: var(--gold-deep);
  animation: stampPop .85s var(--ease) both;
}
.stamp::before {
  content: '';
  position: absolute;
  inset: -.55rem;
  border: 1px dashed rgba(201, 162, 39, .45);
  border-radius: 50%;
  animation: ringSpin 40s linear infinite;
}
.stamp svg { width: 58%; height: 58%; }
.stamp__ring { fill: none; stroke: rgba(201, 162, 39, .38); stroke-width: 1.5; }
.stamp__tick,
.stamp__cross {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 46;
  stroke-dashoffset: 46;
  animation: drawStroke .7s .3s var(--ease) forwards;
}
.stamp--invalid { color: var(--rust); }
.stamp--invalid::before { border-color: rgba(171, 63, 24, .4); }
.stamp--invalid .stamp__ring { stroke: rgba(171, 63, 24, .32); }
.stamp--invalid .stamp__cross { stroke: var(--rust); }

.verify__eyebrow {
  margin: 0 0 .35rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.verify__eyebrow--invalid { color: var(--rust); }
.verify__title {
  margin: .15rem 0 1.25rem;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 3.15rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.01em;
}
.verify-card .guest { margin: 0 0 1.2rem; font-size: clamp(2.5rem, 8vw, 4.4rem); }
.verify-card .guest__prenoms { font-size: .46em; }
.verify__meta {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  margin: 0;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--cocoa);
}
.verify__checked {
  margin: 1.15rem 0 0;
  font-size: .8rem;
  color: var(--ink-faint);
}
.verify__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-top: 1.6rem;
}
.verify__actions .btn { min-width: 12rem; }
.verify__error {
  max-width: 26rem;
  margin: 0 auto 1.4rem;
  font-size: .95rem;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   13. Keyframes
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes sheen {
  0%, 55% { transform: translateX(-110%); }
  100%    { transform: translateX(110%); }
}

@keyframes gemPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(201, 162, 39, .16); }
  50%      { box-shadow: 0 0 0 5px rgba(201, 162, 39, .08), 0 0 16px rgba(201, 162, 39, .5); }
}

@keyframes scrollTrail {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { transform: translateY(340%); opacity: 0; }
}

@keyframes chevNudge {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: .6; }
  50%      { transform: translateY(4px) rotate(45deg); opacity: 1; }
}

@keyframes sealFloat {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-6px); }
}

@keyframes archBreathe {
  from { transform: scale(1); }
  to   { transform: scale(1.045); }
}

@keyframes flowerSway {
  from { transform: rotate(-6deg) translateY(0); }
  to   { transform: rotate(-2deg) translateY(-8px); }
}

@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-6px); }
  40%, 60% { transform: translateX(6px); }
}

@keyframes cardOpen {
  from {
    opacity: 0;
    transform: perspective(900px) translateY(34px) scale(.965) rotateX(7deg);
  }
  to {
    opacity: 1;
    transform: perspective(900px) translateY(0) scale(1) rotateX(0deg);
  }
}

@keyframes qrScan {
  0%   { background-position: 0 -130%; }
  100% { background-position: 0 130%; }
}

@keyframes stampPop {
  from { opacity: 0; transform: scale(.55) rotate(-14deg); }
  60%  { opacity: 1; transform: scale(1.06) rotate(2deg); }
  to   { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes ringSpin { to { transform: rotate(360deg); } }

@keyframes drawStroke { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   14. Petits écrans : hero un peu moins haut, décors plus discrets
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .hero {
    min-height: auto;
    padding-top: clamp(5rem, 16vh, 7rem);
  }
  .arch { margin-top: .25rem; }
  .scrollcue { margin-top: 1.4rem; }
}
@media (max-width: 420px) {
  .topbar__meta { display: none; }
  .names { font-size: clamp(3.1rem, 15.5vw, 4rem); }
  .petal:nth-child(n + 5) { display: none; }
  .card--rsvp::after { font-size: .8rem; }
}

/* --------------------------------------------------------------------------
   15. Impression (page de vérification)
   -------------------------------------------------------------------------- */
@media print {
  @page { margin: 14mm; }

  html, body { background: #fff !important; color: #000; }
  body { font-size: 12pt; }

  .backdrop,
  .grain,
  .petals,
  .skip,
  .topbar,
  .footer,
  .flower,
  .scrollcue,
  .verify__actions,
  .invite-foot,
  .arch { display: none !important; }

  .page { display: block; min-height: 0; }
  .verify { display: block; padding: 0; }
  .verify__inner { max-width: none; }
  .verify-card {
    padding: 8mm;
    border: 1px solid #777;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
  .verify-card::before { display: none; }
  .stamp {
    animation: none;
    border: 2px solid #111;
    background: #fff;
    box-shadow: none;
    color: #111;
  }
  .stamp::before { display: none; }
  .stamp__ring { stroke: #555; }
  .stamp__tick,
  .stamp__cross {
    stroke: #111;
    animation: none;
    stroke-dashoffset: 0;
  }
  .verify__eyebrow,
  .verify__title,
  .verify-card .guest,
  .guest__prenoms,
  .guest__nom,
  .verify__meta,
  .verify__checked { color: #000; }
  .verify__checked { margin-top: 8mm; }
}

/* --------------------------------------------------------------------------
   16. Mouvement réduit : tout reste lisible et utilisable
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .petals { display: none; }

  .rise,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .invite-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .stamp {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .stamp::before,
  .rule__line::after,
  .rule__gem,
  .seal--arch,
  .scrollcue__line::after,
  .scrollcue__chev,
  .arch img,
  .flower,
  .qr-frame::after { animation: none !important; }

  .stamp__tick,
  .stamp__cross {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }

  .btn:hover,
  .btn--primary:hover,
  .btn--gold:hover,
  .btn--ghost:hover { transform: none !important; }
}
