/* ═══════════════════════════════════════════════
   « Dentelle & Lumière » · theme.css (moteur de faire-part CelebraPlume)
   Socle : themes/_shared/base.css. Ici : couleurs, typographie, dentelle, bougies, portes.
═══════════════════════════════════════════════ */
:root {
  --bg: var(--ivoire); --bg-alt: var(--creme); --surface: var(--papier); --ink: var(--encre); --ink-soft: var(--encre-soft);
  --accent: var(--or); --accent-2: var(--champagne); --on-accent: var(--papier);
  --accent-ink: color-mix(in srgb, var(--or) 55%, var(--encre));
  --btn: var(--encre); --on-btn: var(--papier);
  --line: rgb(var(--or-rgb) / .32);
  --f-title: var(--serif); --f-script: var(--script); --f-body: var(--serif); --f-ui: var(--sans);
  --radius: 3px; --shadow: 0 22px 50px -32px rgb(var(--encre-rgb) / .5);
  --tulle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cg fill='none' stroke='black' stroke-width='.6'%3E%3Cpath d='M0 0l72 72M72 0L0 72' opacity='.45'/%3E%3Ccircle cx='36' cy='36' r='3'/%3E%3Cg transform='translate%2836 36%29'%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate%280%29'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate%2860%29'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate%28120%29'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate%28180%29'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate%28240%29'/%3E%3Cellipse cy='-8' rx='3.2' ry='5' transform='rotate%28300%29'/%3E%3C/g%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='72' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='72' r='1.6'/%3E%3Ccircle cx='72' cy='72' r='1.6'/%3E%3C/g%3E%3C/svg%3E");
  --trim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='22'%3E%3Cg fill='none' stroke='black' stroke-width='.8'%3E%3Cpath d='M0 6q6 14 12 0t12 0 12 0 12 0'/%3E%3Cpath d='M0 2.6h48' stroke-dasharray='1.5 2'/%3E%3Ccircle cx='6' cy='8.6' r='2'/%3E%3Ccircle cx='18' cy='8.6' r='2'/%3E%3Ccircle cx='30' cy='8.6' r='2'/%3E%3Ccircle cx='42' cy='8.6' r='2'/%3E%3C/g%3E%3Cg fill='black'%3E%3Ccircle cx='6' cy='14.5' r='.8'/%3E%3Ccircle cx='18' cy='14.5' r='.8'/%3E%3Ccircle cx='30' cy='14.5' r='.8'/%3E%3Ccircle cx='42' cy='14.5' r='.8'/%3E%3C/g%3E%3C/svg%3E");
  --trim-v: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='48'%3E%3Cg transform='translate%2822 0%29 rotate%2890%29'%3E%3Cg fill='none' stroke='black' stroke-width='.8'%3E%3Cpath d='M0 6q6 14 12 0t12 0 12 0 12 0'/%3E%3Cpath d='M0 2.6h48' stroke-dasharray='1.5 2'/%3E%3Ccircle cx='6' cy='8.6' r='2'/%3E%3Ccircle cx='18' cy='8.6' r='2'/%3E%3Ccircle cx='30' cy='8.6' r='2'/%3E%3Ccircle cx='42' cy='8.6' r='2'/%3E%3C/g%3E%3Cg fill='black'%3E%3Ccircle cx='6' cy='14.5' r='.8'/%3E%3Ccircle cx='18' cy='14.5' r='.8'/%3E%3Ccircle cx='30' cy='14.5' r='.8'/%3E%3Ccircle cx='42' cy='14.5' r='.8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
body { font-size: 19px; }
.amp { font-family: var(--script); font-style: normal; color: var(--or); font-size: .8em; padding: 0 .12em; }
.head__title { font-weight: 300; font-style: italic; }
.head .arabesque { width: 200px; height: 34px; margin: 0 auto 14px; }
.head__tag { font-family: var(--caps); font-weight: 500; letter-spacing: .28em; }
.btn { font-family: var(--sans); border-radius: 2px; }
.btn--line { border-color: var(--or); }

/* Dentelle : motifs en masque, colorés par la palette */
.lace-band { display: block; height: 22px; background: var(--or); opacity: .55;
  -webkit-mask: var(--trim) repeat-x center / 48px 22px; mask: var(--trim) repeat-x center / 48px 22px; }
.lace-band--bottom { transform: scaleY(-1); }

/* ═══════ BOUGIES ═══════ */
.candles { display: flex; align-items: flex-end; justify-content: center; gap: 22px; pointer-events: none; }
.candle { --w: 20px; --h: 70px; position: relative; display: inline-block; flex: none; width: var(--w); height: var(--h); margin-top: 50px; }
.candle--s { --w: 18px; --h: 50px; }
.candle--tall { --w: 22px; --h: 98px; }
.candle__wax { position: absolute; inset: 0; border-radius: 5px 5px 4px 4px / 3px 3px 4px 4px;
  background: linear-gradient(90deg, #e2d3b6 0%, #f7efdf 22%, #fffdf7 48%, #f3e9d6 74%, #d8c7a6 100%); box-shadow: 0 10px 18px -10px rgba(110, 85, 50, .55); }
.candle__wax::before { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 7px; border-radius: 50%; background: radial-gradient(ellipse at 50% 60%, #fff3d0, #f2d9a4 70%, #eadcc0); }
.candle__wax::after { content: ''; position: absolute; left: 18%; top: 1px; width: 4px; height: 13px; border-radius: 0 0 3px 3px; background: #fbf4e6; box-shadow: calc(var(--w) * .45) 2px 0 -.5px #fbf4e6; }
.candle__flame { position: absolute; left: 50%; bottom: calc(100% + 3px); z-index: 1; width: 12px; height: 27px; margin-left: -6px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 82%, #fff 0 16%, var(--flamme) 38%, #ff9b3d 68%, rgba(255, 140, 50, 0) 72%);
  transform-origin: 50% 92%; animation: flicker 2.4s ease-in-out infinite alternate; filter: drop-shadow(0 0 6px rgb(var(--flamme-rgb) / .9)); }
.candle__core { position: absolute; left: 50%; bottom: -2px; width: 2px; height: 7px; margin-left: -1px; border-radius: 1px; background: #5a3d22; }
.candle__glow { position: absolute; left: 50%; bottom: calc(100% - 26px); width: 150px; height: 150px; margin-left: -75px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--flamme-rgb) / .42), rgb(var(--flamme-rgb) / 0) 64%); animation: glow 3.4s ease-in-out infinite alternate; }
.candle:nth-child(2) .candle__flame { animation-duration: 2.9s; animation-delay: -.7s; }
.candle:nth-child(3) .candle__flame { animation-duration: 2.1s; animation-delay: -1.3s; }
.candle:nth-child(2) .candle__glow { animation-delay: -1.1s; }
@keyframes flicker {
  0% { transform: scale(1, 1) rotate(-1deg); } 20% { transform: scale(.94, 1.07) rotate(1.6deg); } 45% { transform: scale(1.04, .95) rotate(-2deg); }
  70% { transform: scale(.97, 1.04) rotate(1deg); } 100% { transform: scale(1.02, .99) rotate(-.6deg); }
}
@keyframes glow { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

/* ═══════ OUVERTURE : les portes de dentelle ═══════ */
.intro { background: radial-gradient(ellipse at 50% 60%, color-mix(in srgb, var(--creme) 38%, #1a120b), color-mix(in srgb, var(--creme) 14%, #0d0906)); color: var(--encre); perspective: 1600px; }
.intro__light { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 70%, rgb(var(--flamme-rgb) / .85), rgb(var(--flamme-rgb) / .2) 40%, transparent 70%); opacity: .35; transition: opacity 1.6s var(--ease); }
.intro.is-open .intro__light { opacity: 1; }
.doors { position: absolute; inset: 0; display: flex; perspective: 1500px; perspective-origin: 50% 45%; }
.door { position: relative; flex: 1; overflow: hidden; background: linear-gradient(180deg, var(--papier), var(--creme)); backface-visibility: hidden;
  box-shadow: inset 0 0 120px rgb(var(--or-rgb) / .18); transition: transform 2.2s cubic-bezier(.45, 0, .2, 1), opacity .9s ease 1.25s; }
.door--l { transform-origin: left center; }
.door--r { transform-origin: right center; }
.door__lace { position: absolute; inset: 0; background: var(--or); opacity: .26; -webkit-mask: var(--tulle) repeat 0 0 / 72px 72px; mask: var(--tulle) repeat 0 0 / 72px 72px; }
.door__doily { position: absolute; top: 50%; width: min(130vw, 760px); height: min(130vw, 760px); margin-top: calc(min(130vw, 760px) / -2); opacity: .5; }
.door--l .door__doily { right: calc(min(130vw, 760px) / -2); }
.door--r .door__doily { left: calc(min(130vw, 760px) / -2); }
.door__trim { position: absolute; top: 0; bottom: 0; width: 22px; background: var(--or); opacity: .6; -webkit-mask: var(--trim-v) repeat-y center / 22px 48px; mask: var(--trim-v) repeat-y center / 22px 48px; }
.door--l .door__trim { right: 0; } .door--r .door__trim { left: 0; transform: scaleX(-1); }
.intro.is-open .door--l { transform: rotateY(-80deg); opacity: 0; }
.intro.is-open .door--r { transform: rotateY(80deg); opacity: 0; }
.intro__content { padding-top: 40px; transition: opacity .7s ease, transform 1s var(--ease); }
.intro__content::before { content: ''; position: absolute; inset: -6% -24% 4%; z-index: -1; background: radial-gradient(ellipse at 50% 48%, rgb(var(--papier-rgb) / .96) 34%, rgb(var(--papier-rgb) / 0) 70%); }
.intro.is-open .intro__content { opacity: 0; transform: scale(.94); }
.intro__tag { font: 500 12px var(--caps); letter-spacing: .4em; text-transform: uppercase; color: var(--accent-ink); }
.intro__names { margin: 12px 0 6px; font: 300 italic clamp(52px, 14vw, 92px)/1.02 var(--serif); color: var(--encre); display: flex; flex-direction: column; align-items: center; }
.intro__names .amp { font-size: .6em; line-height: 1.2; }
.intro__date { font: 400 15px var(--caps); letter-spacing: .3em; color: var(--encre-soft); }
.seal { position: relative; width: 132px; height: 132px; margin: 30px auto 0; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--papier), var(--creme)); box-shadow: 0 18px 40px -18px rgb(var(--encre-rgb) / .6), inset 0 0 0 6px var(--papier); transition: transform .5s var(--ease); }
.seal::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--or); opacity: 0; animation: ripple 2.6s ease-out infinite; }
.seal:hover { transform: scale(1.04); }
.seal__cartouche { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); }
.seal__ini { position: relative; font: 500 21px var(--caps); letter-spacing: .12em; color: var(--encre); }
@keyframes ripple { 0% { opacity: .7; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.35); } }
.intro__hint { color: var(--encre-soft); }
.intro__candles { position: absolute; left: 0; right: 0; bottom: 36px; z-index: 2; transition: opacity .8s; }
.intro.is-open .intro__candles { opacity: 0; }
.intro__skip { color: var(--encre); background: rgb(var(--papier-rgb) / .7); }
.intro.is-flash::after { content: ''; position: absolute; inset: 0; z-index: 4; background: rgb(var(--flamme-rgb) / .35); animation: flash .9s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* Pétales (canvas) */
.petals { position: fixed; inset: 0; z-index: 70; width: 100%; height: 100%; pointer-events: none; }

/* ═══════ NAVIGATION ═══════ */
.nav { color: var(--encre); }
.nav__brand { font-family: var(--caps); font-size: 18px; }
.nav__brand span { font-family: var(--script); font-size: 1.3em; }
.drawer__brand { font-family: var(--script); }

/* ═══════ HÉROS ═══════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; text-align: center;
  background: radial-gradient(ellipse at 50% 42%, rgb(var(--flamme-rgb) / .22), transparent 60%), linear-gradient(180deg, var(--creme), var(--ivoire) 55%, var(--creme)); }
.hero::before { content: ''; position: absolute; inset: 0; background: var(--or); opacity: .05; -webkit-mask: var(--tulle) repeat center / 72px 72px; mask: var(--tulle) repeat center / 72px 72px; }
.hero .lace-band { position: absolute; left: 0; right: 0; }
.hero .lace-band--top { top: calc(var(--nav-h) - 6px); } .hero .lace-band--bottom { bottom: 6px; }
.hero__inner { position: relative; z-index: 1; padding: calc(var(--nav-h) + 54px) var(--gutter) 150px; }
.hero__doily { position: absolute; left: 50%; top: 50%; z-index: -1; width: min(118vw, 640px); height: min(118vw, 640px); transform: translate(-50%, -54%); opacity: .5; animation: spin 140s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -54%) rotate(360deg); } }
.hero__arch { width: min(62vw, 270px); aspect-ratio: 4 / 5; margin: 0 auto 26px; padding: 8px; border: 1px solid var(--line); border-radius: 999px 999px 6px 6px; background: var(--papier); box-shadow: var(--shadow); }
.hero__arch img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 3px 3px; }
.hero__eyebrow { font: 500 12px var(--caps); letter-spacing: .42em; text-transform: uppercase; color: var(--accent-ink); }
.hero__names { margin: 14px 0 4px; display: flex; flex-direction: column; align-items: center; font: 300 italic clamp(64px, 17vw, 132px)/.98 var(--serif); color: var(--encre); }
.hero__names .amp { font-size: .5em; line-height: 1.3; }
.hero__orn { width: 220px; height: 36px; margin: 16px auto 14px; }
.hero__date { font: 400 clamp(15px, 3.4vw, 19px) var(--caps); letter-spacing: .26em; text-transform: uppercase; }
.hero__place { margin-top: 8px; font: 500 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: 34px; }
.hero__cta .btn { width: min(100%, 300px); }
.hero__candles { position: absolute; left: 0; right: 0; bottom: 40px; }
@media (min-width: 640px) { .hero__cta { flex-direction: row; justify-content: center; } .hero__cta .btn { width: auto; } }
.js .hero__inner > :not(.hero__doily) { opacity: 0; animation: rise 1.3s var(--ease) forwards; animation-play-state: paused; }
.js .hero__doily { opacity: 0; transition: opacity 2.4s ease .3s; }
.is-open-site .hero__doily, .cp-preview .hero__doily { opacity: .38; }
.is-open-site .hero__inner > :not(.hero__doily) { 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 > :not(.hero__doily) { opacity: 1; animation: none; }

/* ═══════ SECTIONS ═══════ */
.countdown, .venues, .rsvp { background: var(--creme); }
.program, .infos, .guestbook, .announce { background: var(--ivoire); }
.section::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22px; background: var(--or); opacity: .35;
  -webkit-mask: var(--trim) repeat-x center / 48px 22px; mask: var(--trim) repeat-x center / 48px 22px; }
.cd__box { border-radius: 2px; box-shadow: inset 0 0 0 5px var(--papier), inset 0 0 0 6px var(--line); }
.cd__num { font-weight: 300; font-style: italic; color: var(--encre); }
.step__card, .venue, .info, .form, .book-form, .book-entry { border-radius: 2px; }
.step__title, .venue__title, .info__title { font-weight: 400; font-style: italic; }
.thanks__title { color: var(--accent-ink); }

/* Le faire-part : lettre sur papier, coins baroques, napperon */
.letter { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(56px, 10vw, 90px) clamp(26px, 7vw, 76px); overflow: hidden; text-align: center;
  background: var(--papier); border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 0 0 10px var(--papier), inset 0 0 0 11px var(--line); }
.letter__doily { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; opacity: .14; pointer-events: none; }
.corner { position: absolute; width: clamp(56px, 12vw, 92px); height: clamp(56px, 12vw, 92px); }
.corner--tl { top: 14px; left: 14px; } .corner--tr { top: 14px; right: 14px; transform: scaleX(-1); }
.corner--bl { bottom: 14px; left: 14px; transform: scaleY(-1); } .corner--br { bottom: 14px; right: 14px; transform: scale(-1, -1); }
.letter__kicker { position: relative; font: 500 12px var(--caps); letter-spacing: .3em; text-transform: uppercase; color: var(--accent-ink); }
.letter__names { position: relative; margin: 16px 0 22px; font: 300 italic clamp(48px, 11vw, 76px)/1.05 var(--serif); color: var(--encre); }
.letter__names .amp { font-size: .7em; }
@media (max-width: 599px) { .letter__names { display: flex; flex-direction: column; align-items: center; line-height: 1; } .letter__names .amp { line-height: 1.25; } }
.letter__text { position: relative; margin-top: 12px; font-size: clamp(19px, 3.6vw, 23px); line-height: 1.6; }
.letter__text em { font-style: italic; color: var(--accent-ink); }
.letter__orn { position: relative; width: 190px; height: 32px; margin: 22px auto 10px; }
.letter__closing { position: relative; margin-top: 26px; font: 400 clamp(30px, 6vw, 40px)/1.2 var(--script); color: var(--accent-ink); }
.letter__candles { position: relative; margin-top: 4px; transform: scale(.8); }

/* Pied de page */
.footer { position: relative; background: var(--creme); }
.footer .lace-band { position: absolute; left: 0; right: 0; top: 0; }
.footer__candles { margin-bottom: 18px; }
.footer__names { font: 300 italic clamp(44px, 10vw, 68px)/1.1 var(--serif); }
.footer__date { margin-top: 10px; font: 400 13px var(--caps); letter-spacing: .26em; color: var(--encre-soft); }
.footer__orn { width: 170px; height: 30px; margin: 22px auto; }
.footer__thanks { font: 400 clamp(28px, 6vw, 36px) var(--script); color: var(--accent-ink); }
