/* ═══════════════════════════════════════════════
   « Aquarelle de glycine » · theme.css (moteur de faire-part CelebraPlume)
   Socle : themes/_shared/base.css. Ici : papier, lavis, glycine, sceau, éclosion.
═══════════════════════════════════════════════ */
:root {
  --bg: var(--papier); --bg-alt: var(--ivoire); --surface: var(--carte); --ink: var(--encre); --ink-soft: var(--encre-soft);
  /* --accent : couleur « accent » de la palette (lisible en petit texte, AA) */
  --accent-2: var(--lavis-2); --on-accent: #fff;
  --btn: var(--accent); --on-btn: #fff;
  --line: rgb(var(--lavis-1-rgb) / .38);
  --f-title: var(--serif); --f-script: var(--script); --f-body: var(--serif); --f-ui: var(--sans);
  --radius: 18px; --shadow: 0 26px 60px -36px rgb(var(--encre-rgb) / .38);
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45  0 0 0 0 .4  0 0 0 0 .38  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url%28%23p%29'/%3E%3C/svg%3E");
}
body { font-size: 19px; }
body::before { content: ''; position: fixed; inset: 0; z-index: 100; pointer-events: none; background: var(--paper); background-size: 300px; mix-blend-mode: multiply; opacity: .9; }
.amp { font-family: var(--script); font-style: normal; color: var(--accent); font-size: .72em; padding: 0 .1em; }
.head__title { font-weight: 300; }
.head__title em { color: var(--accent); }
.head .sprig { width: 150px; height: 56px; margin: 0 auto 6px; }
.btn { border-radius: 999px; }
.btn--accent { box-shadow: 0 16px 34px -18px var(--accent); }

/* ═══════ OUVERTURE : le sceau qui éclot ═══════ */
.intro { background: radial-gradient(ellipse at 50% 30%, var(--carte), var(--ivoire)); color: var(--encre); }
.intro__garland { position: absolute; top: -10px; left: 0; width: 100%; height: min(46vh, 360px); opacity: .95; transition: opacity 1s, transform 1.4s var(--ease); }
.intro.is-open .intro__garland { opacity: 0; transform: translateY(-30px); }
.intro__content { padding-top: 90px; }
.intro__card { position: relative; padding: 42px 26px 34px; border-radius: 22px; background: rgb(var(--carte-rgb) / .9); box-shadow: 0 30px 80px -40px rgb(var(--encre-rgb) / .45), inset 0 0 0 1px var(--line);
  transition: opacity .8s ease .2s, transform 1.2s var(--ease); }
.intro.is-open .intro__card { opacity: 0; transform: scale(.9) translateY(10px); }
.intro__wash { position: absolute; left: 50%; top: 42%; width: 360px; height: 360px; margin: -180px 0 0 -180px; color: var(--lavis-2); opacity: .55; pointer-events: none; }
.intro__tag { position: relative; font: 600 11px var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--accent); }
.intro__names { position: relative; margin: 10px 0 2px; font: 400 clamp(56px, 15vw, 88px)/1.1 var(--script); color: var(--encre); display: flex; flex-direction: column; align-items: center; }
.intro__names .amp { font-size: .45em; line-height: 1.1; }
.intro__date { position: relative; font: italic 400 20px var(--serif); color: var(--encre-soft); }
.seal { position: relative; width: 116px; height: 116px; margin: 26px auto 0; padding: 0; border: 0; background: none; transition: transform .6s var(--ease), opacity .5s; }
.seal__wax { position: absolute; inset: 0; border-radius: 47% 53% 50% 50% / 52% 48% 52% 48%;
  background: radial-gradient(circle at 36% 30%, color-mix(in srgb, var(--cire) 55%, #fff), var(--cire) 55%, color-mix(in srgb, var(--cire) 70%, #000));
  box-shadow: 0 16px 30px -12px rgb(var(--cire-rgb) / .8), inset 0 -6px 12px rgba(0, 0, 0, .18), inset 0 6px 10px rgba(255, 255, 255, .28); }
.seal__wax::after { content: ''; position: absolute; inset: 14px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .35); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2); }
.seal::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--cire); opacity: 0; animation: ripple 2.6s ease-out infinite; }
.seal__ini { position: relative; font: 400 40px/116px var(--script); color: rgba(255, 255, 255, .92); text-shadow: 0 -1px 0 rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, .25); }
.seal:hover { transform: scale(1.05) rotate(-3deg); }
.intro.is-open .seal { transform: scale(1.3); opacity: 0; }
@keyframes ripple { 0% { opacity: .65; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.4); } }
.intro__hint { position: relative; color: var(--encre-soft); }
.intro__skip { color: var(--encre); }
.blooms { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.bloom { position: absolute; left: 50%; top: 52%; width: 70vmax; height: 70vmax; margin: -35vmax 0 0 -35vmax; color: var(--tone); opacity: 0;
  transform: translate(var(--dx), var(--dy)) scale(.05) rotate(-20deg); transition: transform 2.2s cubic-bezier(.2, .8, .2, 1) var(--d), opacity 1.2s ease var(--d); }
.intro.is-open .bloom { opacity: .95; transform: translate(var(--dx), var(--dy)) scale(1.9) rotate(10deg); }
.intro.is-flash { background: var(--papier); }
.intro.is-gone .bloom { opacity: 0; }

.petals { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }

/* ═══════ NAVIGATION ═══════ */
.nav { color: var(--encre); }
.nav__brand { font: 400 26px var(--script); letter-spacing: 0; }
.nav__brand span { font-size: .9em; }
.nav__cta { border-color: var(--accent); }
.drawer__brand { font-family: var(--script); }

/* ═══════ HÉROS ═══════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; background: var(--papier); }
.hero__garland { position: absolute; top: -6px; left: 0; width: 100%; height: min(42vh, 340px); z-index: 0; }
.hero__wash { position: absolute; z-index: 0; pointer-events: none; }
.hero__wash--a { left: 50%; top: 52%; width: min(120vw, 760px); height: min(120vw, 760px); transform: translate(-50%, -50%); color: var(--lavis-2); opacity: .55; }
.hero__wash--b { right: -12vw; bottom: -14vw; width: min(70vw, 460px); height: min(70vw, 460px); color: var(--lavis-3); opacity: .5; }
.hero__inner { position: relative; z-index: 1; padding: calc(var(--nav-h) + min(22vh, 170px)) var(--gutter) 90px; }
.hero__photo { width: min(58vw, 250px); aspect-ratio: 4 / 5; margin: 0 auto 22px; padding: 7px; border-radius: 48% 52% 50% 50% / 44% 44% 56% 56%; background: var(--carte); box-shadow: var(--shadow); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.hero__eyebrow { font: 600 12px var(--sans); letter-spacing: .4em; text-transform: uppercase; color: var(--accent); }
.hero__names { margin: 8px 0 0; display: flex; flex-direction: column; align-items: center; font: 400 clamp(72px, 19vw, 150px)/1.02 var(--script); color: var(--encre); }
.hero__names .amp { font-size: .45em; line-height: 1.1; }
@media (min-width: 900px) { .hero__names { flex-direction: row; align-items: baseline; justify-content: center; gap: .12em; font-size: clamp(72px, min(10vw, 17svh), 140px); } }
.hero__sprig { width: 170px; height: 64px; margin: 6px auto 4px; }
.hero__date { font: italic 400 clamp(21px, 4.4vw, 27px) var(--serif); }
.hero__place { margin-top: 6px; font: 600 12px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--encre-soft); }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 30px; }
.hero__cta .btn { width: min(100%, 300px); }
@media (min-width: 640px) { .hero__cta { flex-direction: row; justify-content: center; } .hero__cta .btn { width: auto; } }
.js .hero__inner > * { opacity: 0; animation: rise 1.3s var(--ease) forwards; animation-play-state: paused; }
.is-open-site .hero__inner > * { animation-play-state: running; }
.hero__inner > :nth-child(2) { animation-delay: .15s; } .hero__inner > :nth-child(3) { animation-delay: .35s; } .hero__inner > :nth-child(4) { animation-delay: .55s; }
.hero__inner > :nth-child(5) { animation-delay: .7s; } .hero__inner > :nth-child(6) { animation-delay: .85s; } .hero__inner > :nth-child(7) { animation-delay: 1s; }
.cp-preview .hero__inner > * { opacity: 1; animation: none; }

/* ═══════ SECTIONS ═══════ */
.countdown, .venues, .rsvp { background: var(--ivoire); }
.cd__box { border-radius: 20px; background: rgb(var(--carte-rgb) / .8); }
.cd__num { font: 400 clamp(38px, 9vw, 62px)/1 var(--script); color: var(--accent); }
.step__card, .venue, .info, .form, .book-form, .book-entry { border-color: rgb(var(--lavis-1-rgb) / .25); }
.step__title, .venue__title, .info__title { font-weight: 400; }
.thanks__title { color: var(--accent); }

/* Le faire-part : carte aquarellée */
.card { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(60px, 11vw, 96px) clamp(26px, 7vw, 76px); overflow: hidden; text-align: center;
  background: var(--carte); border-radius: 24px; box-shadow: var(--shadow); }
.card__wash { position: absolute; width: 380px; height: 380px; pointer-events: none; }
.card__wash--tl { left: -150px; top: -150px; color: var(--lavis-1); opacity: .55; }
.card__wash--br { right: -150px; bottom: -150px; color: var(--lavis-3); opacity: .6; }
.card__kicker { position: relative; font: 600 11px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--accent); }
.card__names { position: relative; margin: 12px 0 20px; font: 400 clamp(56px, 13vw, 92px)/1.05 var(--script); }
@media (max-width: 599px) { .card__names { display: flex; flex-direction: column; align-items: center; } }
.card__text { position: relative; margin-top: 12px; font-size: clamp(19px, 3.6vw, 23px); line-height: 1.6; }
.card__text em { color: var(--accent); }
.card__sprig { position: relative; width: 140px; height: 52px; margin: 18px auto 6px; }
.card__closing { position: relative; margin-top: 26px; font: 400 clamp(32px, 6.5vw, 44px)/1.2 var(--script); color: var(--accent); }

/* Pied de page */
.footer { position: relative; overflow: hidden; padding-top: 220px; background: var(--ivoire); }
.footer__garland { position: absolute; top: 0; left: 0; width: 100%; height: 300px; }
.footer__names { position: relative; font: 400 clamp(54px, 12vw, 84px)/1.1 var(--script); }
.footer__date { position: relative; margin-top: 6px; font: italic 400 19px var(--serif); color: var(--encre-soft); }
.footer__thanks { position: relative; margin-top: 18px; font: 400 clamp(30px, 6vw, 38px) var(--script); color: var(--accent); }
.footer__credit { position: relative; }
