/* ═══════════════════════════════════════════════
   « Nuit d'Orient » · theme.css (moteur de faire-part CelebraPlume)
   Socle : themes/_shared/base.css. Ici : nuit, or, moucharabieh, lanternes.
═══════════════════════════════════════════════ */
:root {
  --bg: var(--nuit); --bg-alt: var(--nuit-2); --surface: var(--nuit-3); --ink: var(--creme); --ink-soft: var(--creme-soft);
  --accent: var(--or); --accent-2: var(--or-clair); --accent-ink: var(--or-clair); --on-accent: var(--nuit); --btn: var(--or); --on-btn: var(--nuit);
  --line: rgb(var(--or-rgb) / .3);
  --f-title: var(--carved); --f-script: var(--script); --f-body: var(--serif); --f-ui: var(--sans);
  --radius: 4px; --shadow: 0 30px 70px -36px rgba(0, 0, 0, .7);
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M20 4 L36 20 L20 36 L4 20Z'/%3E%3Cpath d='M8.7 8.7 H31.3 V31.3 H8.7Z'/%3E%3Cpath d='M0 0 L8.7 8.7 M40 0 L31.3 8.7 M40 40 L31.3 31.3 M0 40 L8.7 31.3'/%3E%3Ccircle cx='20' cy='20' r='4'/%3E%3C/g%3E%3C/svg%3E");
  --band: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='24'%3E%3Cg fill='none' stroke='black' stroke-width='1.2'%3E%3Cpath d='M18 2 L28 12 L18 22 L8 12Z'/%3E%3Cpath d='M11 5 H25 V19 H11Z'/%3E%3Cpath d='M0 12 H8 M28 12 H36'/%3E%3C/g%3E%3Ccircle cx='18' cy='12' r='1.8' fill='black'/%3E%3C/svg%3E");
}
body { font-size: 19px; }
::placeholder { color: var(--creme-soft); opacity: .6; }
.amp { font-family: var(--script); font-style: normal; color: var(--or); font-size: .7em; padding: 0 .12em; }
.head__title { font-weight: 400; letter-spacing: .02em; }
.head__title em { color: var(--or-clair); font-size: 1.25em; }
.head .khatam { width: 46px; height: 46px; margin: 0 auto 14px; animation: turn 30s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.btn { border-radius: 2px; }
.btn--accent { background: linear-gradient(120deg, var(--or), var(--or-clair) 50%, var(--or)); background-size: 200% 100%; animation: sheen 6s ease-in-out infinite; }
@keyframes sheen { 50% { background-position: 100% 0; } }
.btn--line { color: var(--or-clair); border-color: var(--or); }

/* Lanternes */
.lantern { position: absolute; top: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; animation: sway 5.5s ease-in-out infinite alternate; pointer-events: none; }
.lantern__chain { width: 1.5px; height: var(--len); background: linear-gradient(var(--or), var(--or-clair)); opacity: .8; }
.lantern__body { position: relative; z-index: 1; width: 46px; height: 92px; filter: drop-shadow(0 0 10px rgb(var(--braise-rgb) / .55)); }
.lantern__glow { position: absolute; bottom: -30px; left: 50%; width: 170px; height: 170px; margin-left: -85px; border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--braise-rgb) / .38), rgb(var(--braise-rgb) / 0) 65%); animation: flick 2.8s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotate(-2.4deg); } to { transform: rotate(2.4deg); } }
@keyframes flick { 0% { opacity: .75; } 40% { opacity: 1; } 70% { opacity: .85; } 100% { opacity: .95; } }

/* ═══════ OUVERTURE : les portes en moucharabieh ═══════ */
.intro { background: radial-gradient(ellipse at 50% 40%, var(--nuit-3), var(--nuit) 70%); color: var(--creme); }
.intro__glow { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 50%, rgb(var(--braise-rgb) / .6), rgb(var(--braise-rgb) / 0) 60%); opacity: .25; transition: opacity 1.6s; }
.intro.is-open .intro__glow { opacity: 1; }
.gates { position: absolute; inset: 0; display: flex; }
.gate { position: relative; flex: 1; background: linear-gradient(180deg, var(--nuit-2), var(--nuit)); transition: transform 2.2s cubic-bezier(.6, 0, .2, 1); }
.gate::after { content: ''; position: absolute; inset: 14px; border: 1px solid var(--line); }
.gate--l { box-shadow: inset -2px 0 0 var(--or); } .gate--r { box-shadow: inset 2px 0 0 var(--or); }
.gate__lattice { position: absolute; inset: 0; background: var(--or); opacity: .42; -webkit-mask: var(--lattice) center / 44px 44px; mask: var(--lattice) center / 44px 44px; }
.intro.is-open .gate--l { transform: translateX(-102%); }
.intro.is-open .gate--r { transform: translateX(102%); }
.intro__lantern { z-index: 3; transition: opacity 1.4s ease 1s; }
.intro__lantern--l { left: 12%; } .intro__lantern--c { left: calc(50% - 23px); } .intro__lantern--r { right: 12%; }
@media (max-width: 599px) { .intro__lantern--c { display: none; } .intro__lantern--l { left: 6%; } .intro__lantern--r { right: 6%; } }
.intro.is-open .intro__lantern { opacity: 0; }
.intro__content { z-index: 4; padding-top: 70px; transition: opacity .8s ease, transform 1.2s var(--ease); }
.intro__content::before { content: ''; position: absolute; inset: 0 -14% -4%; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgb(var(--nuit-rgb) / .92) 40%, rgb(var(--nuit-rgb) / 0) 72%); }
.intro.is-open .intro__content { opacity: 0; transform: scale(.94); }
.intro__tag { font: 500 12px var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--or-clair); }
.intro__names { margin: 10px 0 4px; font: 400 clamp(60px, 16vw, 96px)/1.05 var(--script); color: var(--or-clair); text-shadow: 0 0 30px rgb(var(--braise-rgb) / .35); display: flex; flex-direction: column; align-items: center; }
.intro__names .amp { font-size: .5em; line-height: 1.15; }
.intro__date { font: 400 15px var(--carved); letter-spacing: .26em; text-transform: uppercase; color: var(--creme); }
.medal { position: relative; width: 112px; height: 112px; margin: 28px auto 0; display: grid; place-items: center; padding: 0; border: 1px solid var(--or); border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--nuit-3), var(--nuit)); box-shadow: 0 0 0 6px var(--nuit), 0 0 0 7px var(--line), 0 0 40px rgb(var(--braise-rgb) / .35); transition: transform .5s var(--ease); }
.medal::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1px solid var(--or); opacity: 0; animation: ripple 2.6s ease-out infinite; }
.medal__star { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); animation: turn 24s linear infinite; }
.medal__ini { position: relative; font: 400 30px var(--script); color: var(--or-clair); background: var(--nuit); padding: 2px 8px; border-radius: 999px; }
.medal:hover { transform: scale(1.05); }
@keyframes ripple { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.4); } }
.intro__hint { color: var(--creme-soft); }
.intro__skip { color: var(--or-clair); }
.intro.is-flash::after { content: ''; position: absolute; inset: 0; z-index: 6; background: rgb(var(--braise-rgb) / .35); animation: flash .9s ease-out forwards; }
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

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

/* ═══════ NAVIGATION ═══════ */
.nav { color: var(--creme); }
.nav__brand { font: 400 26px var(--script); letter-spacing: 0; color: var(--or-clair); }
.nav__cta { color: var(--or-clair); }
.drawer__brand { font-family: var(--script); }

/* ═══════ HÉROS ═══════ */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; text-align: center;
  padding: calc(var(--nav-h) + 30px) var(--gutter) 70px; background: radial-gradient(ellipse at 50% 22%, var(--nuit-3), var(--nuit) 72%); }
.hero__sky { position: absolute; inset: 0; opacity: .85;
  background: radial-gradient(1.4px 1.4px at 10% 20%, var(--or-pale), transparent), radial-gradient(1px 1px at 30% 70%, var(--or-pale), transparent),
              radial-gradient(1.6px 1.6px at 70% 30%, var(--or-pale), transparent), radial-gradient(1px 1px at 88% 64%, var(--or-pale), transparent),
              radial-gradient(1.2px 1.2px at 52% 12%, var(--or-pale), transparent), radial-gradient(1px 1px at 18% 86%, var(--or-pale), transparent);
  background-size: 340px 340px; animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .45; } to { opacity: .95; } }
.hero__lantern--l { left: 5%; } .hero__lantern--l2 { left: 17%; animation-delay: -2s; } .hero__lantern--r { right: 6%; animation-delay: -1s; } .hero__lantern--r2 { right: 19%; animation-delay: -3s; }
@media (max-width: 767px) { .hero__lantern--l2, .hero__lantern--r2 { display: none; } .hero__lantern { transform: scale(.8); } }
.hero__arch { position: relative; z-index: 3; width: min(88vw, 500px); padding: clamp(70px, 14vw, 100px) clamp(26px, 6vw, 46px) 44px; }
.hero__arch-line { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__inner { position: relative; }
.hero__khatam { width: 54px; height: 54px; margin: 0 auto 16px; animation: turn 40s linear infinite; }
.hero__photo { width: min(50vw, 210px); aspect-ratio: 4 / 5; margin: 0 auto 18px; padding: 5px; border: 1px solid var(--or); border-radius: 999px 999px 4px 4px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 2px 2px; }
.hero__eyebrow { font: 500 11px var(--sans); letter-spacing: .36em; text-transform: uppercase; color: var(--or-clair); }
.hero__names { margin: 10px 0 6px; display: flex; flex-direction: column; align-items: center; font: 400 clamp(64px, min(17vw, 13svh), 120px)/1.02 var(--script); color: var(--or-clair);
  text-shadow: 0 0 34px rgb(var(--braise-rgb) / .35); }
.hero__names .amp { font-size: .5em; line-height: 1.15; }
.hero__date { font: 400 clamp(15px, 3.4vw, 19px) var(--carved); letter-spacing: .24em; text-transform: uppercase; }
.hero__place { margin-top: 8px; font: 500 12px var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--creme-soft); }
.hero__cta { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; width: 100%; }
.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__arch, .js .hero__cta { opacity: 0; animation: rise 1.4s var(--ease) forwards; animation-play-state: paused; }
.js .hero__cta { animation-delay: .5s; }
.is-open-site .hero__arch, .is-open-site .hero__cta { animation-play-state: running; }
.cp-preview .hero__arch, .cp-preview .hero__cta { opacity: 1; animation: none; }

/* ═══════ SECTIONS ═══════ */
.countdown, .venues, .rsvp { background: var(--nuit-2); }
.countdown::before, .venues::before, .rsvp::before, .footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: var(--or); opacity: .5;
  -webkit-mask: var(--band) repeat-x center / 36px 24px; mask: var(--band) repeat-x center / 36px 24px; }
.cd__box { background: rgb(var(--nuit-3-rgb) / .8); }
.cd__num { font-family: var(--carved); color: var(--or-clair); }
.step__time, .venue__kind { color: var(--or-clair); }
.step__dot { background: var(--nuit); }
.thanks__title { color: var(--or-clair); }
.venue__map iframe { filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }

/* Le faire-part : parchemin de nuit aux bandeaux d'étoiles */
.scroll { position: relative; max-width: 760px; margin: 0 auto; padding: clamp(70px, 12vw, 100px) clamp(24px, 7vw, 76px); text-align: center;
  background: radial-gradient(ellipse at 50% 30%, var(--nuit-3), var(--nuit-2)); border: 1px solid var(--line); box-shadow: var(--shadow), inset 0 0 0 10px var(--nuit-2), inset 0 0 0 11px var(--line); }
.scroll__band { position: absolute; left: 22px; right: 22px; height: 24px; background: var(--or); opacity: .6; -webkit-mask: var(--band) repeat-x center / 36px 24px; mask: var(--band) repeat-x center / 36px 24px; }
.scroll__band--top { top: 24px; } .scroll__band--bottom { bottom: 24px; }
.scroll__khatam { width: 56px; height: 56px; margin: 0 auto 12px; }
.scroll__kicker { font: 500 11px var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--or-clair); }
.scroll__names { margin: 10px 0 18px; font: 400 clamp(56px, 13vw, 88px)/1.05 var(--script); color: var(--or-clair); }
@media (max-width: 599px) { .scroll__names { display: flex; flex-direction: column; align-items: center; } }
.scroll__text { margin-top: 12px; font-size: clamp(19px, 3.6vw, 22px); line-height: 1.65; }
.scroll__text em { font-style: italic; color: var(--or-clair); }
.scroll__divider { width: 34px; height: 34px; margin: 22px auto 10px; }
.scroll__closing { margin-top: 24px; font: 400 clamp(32px, 6.5vw, 44px)/1.2 var(--script); color: var(--or); }

/* Pied de page */
.footer { position: relative; padding-top: 200px; background: var(--nuit-2); overflow: hidden; }
.footer__lantern { left: calc(50% - 23px); }
.footer__names { font: 400 clamp(54px, 12vw, 82px)/1.1 var(--script); color: var(--or-clair); }
.footer__date { margin-top: 8px; font: 400 13px var(--carved); letter-spacing: .24em; text-transform: uppercase; color: var(--creme-soft); }
.footer__khatam { width: 40px; height: 40px; margin: 20px auto; }
.footer__thanks { font: 400 clamp(30px, 6vw, 38px) var(--script); color: var(--or); }
