/* Faire-P Digital — invitation et Save the Date (pages plein écran). Les couleurs et polices viennent des variables du design. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.fpd { margin: 0; background: var(--fpd-bg); color: var(--fpd-ink); font-family: var(--fpd-body); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100svh; }
body.fpd.has-envelope { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--fpd-accent); }
code { font-family: inherit; letter-spacing: .04em; }
[hidden] { display: none !important; }

/* ---------- Typographie ---------- */
.fpd-eyebrow { margin: 0 0 14px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--fpd-accent); font-weight: 600; }
.fpd-title { margin: 0 0 18px; font-family: var(--fpd-display); font-weight: 400; font-size: clamp(28px, 6vw, 38px); line-height: 1.15; letter-spacing: .01em; }
.fpd-subtitle { margin: 0 0 8px; font-family: var(--fpd-display); font-weight: 500; font-size: 20px; line-height: 1.2; }
.fpd-text { max-width: 54ch; margin: 0 auto; }
.fpd-text p { margin: 0 0 1em; }
.fpd-text p:last-child { margin-bottom: 0; }
.fpd-text--center { text-align: center; }
.fpd-note { max-width: 50ch; margin: 22px auto 0; font-style: italic; color: var(--fpd-muted); font-size: 15px; }
.fpd-amp { font-family: var(--fpd-script); font-weight: 400; color: var(--fpd-accent); }
.fpd-ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px auto; color: var(--fpd-accent); }
.fpd-ornament i { display: block; width: 46px; height: 1px; background: var(--fpd-accent); opacity: .7; }
.fpd-ornament b { font-weight: 400; font-size: 12px; }

/* ---------- Boutons ---------- */
.fpd-btn { display: inline-block; padding: 14px 30px; border: 1px solid var(--fpd-accent); background: var(--fpd-accent); color: var(--fpd-paper); font-family: var(--fpd-body); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .2s, background .2s, color .2s; }
.fpd--dark .fpd-btn { color: var(--fpd-bg); }
.fpd-btn:hover { transform: translateY(-1px); }
.fpd-btn--ghost { background: transparent; color: var(--fpd-accent); }
.fpd-btn--ghost:hover { background: var(--fpd-accent); color: var(--fpd-paper); }
.fpd--dark .fpd-btn--ghost:hover { color: var(--fpd-bg); }
.fpd-btn--block { display: block; width: 100%; }
.fpd-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.fpd-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.fpd-link { color: var(--fpd-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Enveloppe : voir fpd-motion.css (ouverture 3D) ---------- */
@keyframes fpd-pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Page & sections ---------- */
.fpd-page { max-width: 720px; margin: 0 auto; }
.fpd-section { padding: 76px 24px; text-align: center; opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.fpd-section.is-visible, .fpd-private .fpd-section { opacity: 1; transform: none; }
.fpd-section + .fpd-section { border-top: 1px solid color-mix(in srgb, var(--fpd-accent) 18%, transparent); }
.fpd-lang { position: fixed; top: 14px; right: 14px; z-index: 20; display: flex; gap: 4px; padding: 4px; background: color-mix(in srgb, var(--fpd-paper) 85%, transparent); backdrop-filter: blur(6px); border-radius: 999px; font-size: 11px; letter-spacing: .12em; }
.fpd-lang a, .fpd-lang span { padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--fpd-ink); }
.fpd-lang .is-active { background: var(--fpd-accent); color: var(--fpd-paper); }

/* Couverture */
.fpd-cover { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 72px 24px; text-align: center; overflow: hidden; }
.fpd-cover__art { position: absolute; inset: 0; background-size: cover; background-position: center; }
.fpd-cover.has-photo .fpd-cover__art { animation: none; }
.fpd-cover__content > * { opacity: 0; transform: translateY(14px); }
body.is-open .fpd-cover__content > * { animation: fpd-in 1s cubic-bezier(.2,.8,.2,1) forwards; }
body.is-open .fpd-cover__content > :nth-child(2) { animation-delay: .18s; }
body.is-open .fpd-cover__content > :nth-child(3) { animation-delay: .36s; }
body.is-open .fpd-cover__content > :nth-child(4) { animation-delay: .5s; }
body.is-open .fpd-cover__content > :nth-child(5) { animation-delay: .62s; }
body.is-open .fpd-cover__content > :nth-child(6) { animation-delay: .76s; }
@keyframes fpd-in { to { opacity: 1; transform: none; } }
body.is-autoplay { cursor: default; }
.fpd-std__bg { position: fixed; inset: 0; z-index: 0; opacity: .55; }
.fpd-std { position: relative; z-index: 1; }
.fpd-cover.has-photo .fpd-cover__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.45)); }
.fpd-cover__content { position: relative; z-index: 1; max-width: 560px; }
.fpd-cover.has-photo .fpd-cover__content { color: #fff; }
.fpd-cover.has-photo .fpd-eyebrow, .fpd-cover.has-photo .fpd-amp, .fpd-cover.has-photo .fpd-ornament { color: #fff; }
.fpd-cover.has-photo .fpd-ornament i { background: #fff; }
.fpd-cover.has-photo .fpd-btn--ghost { color: #fff; border-color: #fff; }
.fpd-cover__names { margin: 0; font-family: var(--fpd-display); font-weight: 400; font-size: clamp(44px, 12vw, 76px); line-height: 1.02; letter-spacing: -.01em; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fpd-cover__names .fpd-amp { font-size: clamp(36px, 9vw, 58px); line-height: 1; margin: -4px 0; }
.fpd-cover__date { margin: 0; font-family: var(--fpd-display); font-size: clamp(18px, 4.5vw, 24px); letter-spacing: .06em; }
.fpd-cover__city { margin: 6px 0 26px; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; }
.fpd-scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 1; text-decoration: none; color: inherit; opacity: .6; animation: fpd-bounce 2s infinite; }
.fpd-cover.has-photo .fpd-scroll-hint { color: #fff; }
@keyframes fpd-bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Compte à rebours */
.fpd-countdown__until { margin: 0 0 26px; font-family: var(--fpd-display); font-size: 20px; }
.fpd-countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 460px; margin: 0 auto; }
.fpd-countdown__grid div { padding: 16px 6px; background: var(--fpd-paper); border: 1px solid color-mix(in srgb, var(--fpd-accent) 22%, transparent); }
.fpd-countdown__grid strong { display: block; font-family: var(--fpd-display); font-weight: 400; font-size: clamp(28px, 7vw, 40px); line-height: 1; font-variant-numeric: tabular-nums; }
.fpd-countdown__grid span { display: block; margin-top: 8px; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--fpd-muted); }
.fpd-countdown__grid--small { max-width: 340px; margin-top: 20px; }
.fpd-countdown__grid--small div { padding: 10px 4px; }
.fpd-countdown__grid--small strong { font-size: 24px; }
.fpd-countdown__done { font-family: var(--fpd-display); font-size: 24px; }

/* Cartes & colonnes */
.fpd-card { padding: 26px 24px; background: var(--fpd-paper); border: 1px solid color-mix(in srgb, var(--fpd-accent) 22%, transparent); text-align: left; }
.fpd-card--center { text-align: center; max-width: 520px; margin: 0 auto; }
.fpd-card p { margin: 0 0 6px; }
.fpd-card p:last-child { margin-bottom: 0; }
.fpd-card__meta { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--fpd-muted); }
.fpd-columns { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
@media (min-width: 560px) { .fpd-columns { grid-template-columns: 1fr 1fr; } .fpd-columns--3 { grid-template-columns: repeat(3, 1fr); } }
.fpd-venue__name { font-family: var(--fpd-display); font-size: 26px; margin: 0 0 4px; }
.fpd-venue__when { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--fpd-muted); }
.fpd-venue__address { color: var(--fpd-muted); }
.fpd-transport__venue { margin: 0 0 16px; font-family: var(--fpd-display); font-size: 18px; }
.fpd-promo code { padding: 2px 8px; background: color-mix(in srgb, var(--fpd-accent) 12%, transparent); }

/* Programme (planning du jour J) */
.fpd-timeline { list-style: none; margin: 30px auto 0; padding: 0; max-width: 460px; text-align: left; position: relative; }
.fpd-timeline::before { content: ''; position: absolute; top: 10px; bottom: 10px; left: 86px; width: 1px; background: color-mix(in srgb, var(--fpd-accent) 40%, transparent); }
.fpd-timeline__item { display: grid; grid-template-columns: 70px 32px 1fr; align-items: start; gap: 0; padding: 12px 0; }
.fpd-timeline__time { font-family: var(--fpd-display); font-size: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.fpd-timeline__dot { position: relative; top: 9px; width: 9px; height: 9px; margin: 0 auto; border-radius: 50%; background: var(--fpd-accent); box-shadow: 0 0 0 4px var(--fpd-bg); }
.fpd-timeline__body { display: flex; flex-direction: column; }
.fpd-timeline__body strong { font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 12.5px; padding-top: 4px; }
.fpd-timeline__body small { color: var(--fpd-muted); font-size: 14px; }

/* Cadeaux, FAQ */
.fpd-account { margin-top: 18px; }
.fpd-account__holder { font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; }
.fpd-account__line { font-size: 15px; word-break: break-all; }
.fpd-copy { border: 1px solid color-mix(in srgb, var(--fpd-accent) 40%, transparent); background: transparent; color: var(--fpd-accent); cursor: pointer; padding: 1px 7px; font-size: 13px; }
.fpd-faq__list { max-width: 560px; margin: 10px auto 0; text-align: left; }
.fpd-faq__item { border-bottom: 1px solid color-mix(in srgb, var(--fpd-accent) 22%, transparent); padding: 14px 0; }
.fpd-faq__item summary { cursor: pointer; font-family: var(--fpd-display); font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.fpd-faq__item summary::after { content: '+'; color: var(--fpd-accent); }
.fpd-faq__item[open] summary::after { content: '−'; }
.fpd-faq__item p { margin: 10px 0 0; color: var(--fpd-muted); }

/* RSVP */
.fpd-rsvp__deadline { margin: -6px 0 26px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--fpd-muted); }
.fpd-form { max-width: 480px; margin: 0 auto; text-align: left; }
.fpd-field { display: block; margin: 0 0 18px; }
.fpd-field > span, .fpd-field legend { display: block; margin-bottom: 7px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fpd-muted); }
.fpd-field input[type=text], .fpd-field input[type=email], .fpd-field textarea { width: 100%; padding: 13px 14px; border: 1px solid color-mix(in srgb, var(--fpd-accent) 35%, transparent); background: var(--fpd-paper); color: var(--fpd-ink); font: inherit; border-radius: 0; }
.fpd-field input:focus, .fpd-field textarea:focus { outline: 2px solid var(--fpd-accent); outline-offset: 1px; }
.fpd-field.is-invalid input { border-color: #c0392b; }
.fpd-choice { border: 0; padding: 0; margin: 0 0 18px; }
.fpd-choice__option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 8px; border: 1px solid color-mix(in srgb, var(--fpd-accent) 35%, transparent); background: var(--fpd-paper); cursor: pointer; }
.fpd-choice__option input { accent-color: var(--fpd-accent); margin: 0; }
.fpd-choice__option:has(input:checked) { border-color: var(--fpd-accent); box-shadow: inset 0 0 0 1px var(--fpd-accent); }
.fpd-choice--inline { display: flex; flex-wrap: wrap; gap: 8px; }
.fpd-choice--inline legend { width: 100%; }
.fpd-choice--inline .fpd-choice__option { flex: 1; margin: 0; }
.fpd-counter { display: inline-flex; align-items: center; border: 1px solid color-mix(in srgb, var(--fpd-accent) 35%, transparent); background: var(--fpd-paper); }
.fpd-counter button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--fpd-accent); font-size: 22px; cursor: pointer; }
.fpd-counter output { min-width: 44px; text-align: center; font-family: var(--fpd-display); font-size: 20px; }
.fpd-guests input { margin-bottom: 8px; }
.fpd-form__status { margin: 14px 0 0; text-align: center; min-height: 1.4em; }
.fpd-form__status.is-error { color: #c0392b; }
.fpd-form__status.is-ok { color: var(--fpd-accent); font-family: var(--fpd-display); font-size: 20px; }
.fpd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Pied de page, musique */
.fpd-footer { padding: 70px 24px 90px; text-align: center; border-top: 1px solid color-mix(in srgb, var(--fpd-accent) 18%, transparent); }
.fpd-footer__names { margin: 0; font-family: var(--fpd-display); font-size: 30px; }
.fpd-footer__date { margin: 6px 0 0; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--fpd-muted); }
.fpd-footer__text { margin: 14px 0 0; font-family: var(--fpd-script); font-size: 26px; color: var(--fpd-accent); }
.fpd-footer__credit { margin: 36px 0 0; font-size: 12px; color: var(--fpd-muted); }
.fpd-footer__credit a { color: inherit; }
.fpd-music { position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--fpd-accent); background: var(--fpd-paper); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fpd-music__bars { display: flex; gap: 3px; align-items: flex-end; height: 16px; }
.fpd-music__bars i { width: 3px; height: 6px; background: var(--fpd-accent); }
.fpd-music[aria-pressed=true] .fpd-music__bars i { animation: fpd-bar .8s ease-in-out infinite; }
.fpd-music[aria-pressed=true] .fpd-music__bars i:nth-child(2) { animation-delay: .2s; }
.fpd-music[aria-pressed=true] .fpd-music__bars i:nth-child(3) { animation-delay: .4s; }
@keyframes fpd-bar { 0%, 100% { height: 6px; } 50% { height: 16px; } }

/* ---------- Save the Date ---------- */
.fpd-std { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 32px 18px; }
.fpd-std__card { position: relative; width: min(100%, 440px); padding: 44px 30px 36px; background: var(--fpd-paper); border: 1px solid color-mix(in srgb, var(--fpd-accent) 30%, transparent); box-shadow: 0 24px 60px rgba(0,0,0,.14); text-align: center; perspective: 1200px; }
.fpd-std__card::before { content: ''; position: absolute; inset: 10px; border: 1px solid color-mix(in srgb, var(--fpd-accent) 45%, transparent); pointer-events: none; }
.fpd-std__inner { position: relative; }
.fpd-std__names { margin: 0; font-family: var(--fpd-display); font-weight: 400; font-size: clamp(34px, 9vw, 46px); line-height: 1.05; display: flex; flex-direction: column; }
.fpd-std__names .fpd-amp { font-size: .8em; margin: -2px 0; }
.fpd-std__date { margin: 0; font-family: var(--fpd-display); font-size: clamp(22px, 6vw, 28px); }
.fpd-std__city { margin: 6px 0 0; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--fpd-muted); }
.fpd-std__message { margin: 22px auto 0; max-width: 40ch; font-size: 15px; color: var(--fpd-muted); }
.fpd-std__soon { margin: 18px 0 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--fpd-muted); }
.fpd-std__photo { margin: 22px auto 0; width: min(100%, 300px); aspect-ratio: 4 / 5; background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.fpd-strip { margin: 22px auto 0; width: 150px; padding: 10px; background: #fff; border: 5px solid var(--fpd-accent); display: flex; flex-direction: column; gap: 8px; transform: rotate(-2deg); box-shadow: 0 14px 30px rgba(0,0,0,.25); }
.fpd-strip__frame { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #e9dfd3, #cdbfae) center / cover; filter: sepia(.35) contrast(1.05); }
.fpd-scratch { position: relative; margin: 22px auto 0; width: min(100%, 300px); aspect-ratio: 4 / 5; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.2); touch-action: none; }
.fpd-scratch__reveal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, color-mix(in srgb, var(--fpd-accent) 35%, var(--fpd-paper)), var(--fpd-paper)) center / cover; }
.fpd-scratch__date { font-family: var(--fpd-display); font-size: 30px; padding: 0 20px; }
.fpd-scratch__cover { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; transition: opacity .8s; }
.fpd-scratch.is-done .fpd-scratch__cover, .fpd-scratch.is-done .fpd-scratch__hint { opacity: 0; pointer-events: none; }
.fpd-scratch__hint { position: absolute; left: 0; right: 0; bottom: 14px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: #fff; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.4); transition: opacity .4s; }
/* Carte pliée : voir fpd-motion.css (ouverture comme un livre) */
.fpd-std__fold-initials { font-family: var(--fpd-script); font-size: 64px; color: var(--fpd-accent); }
.fpd-std__fold-names { font-family: var(--fpd-display); font-size: 18px; letter-spacing: .06em; }
.fpd-std__fold-hint { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--fpd-muted); animation: fpd-pulse 2.2s infinite; }

@media (prefers-reduced-motion: reduce) {
  .fpd-section { opacity: 1; transform: none; transition: none; }
  .fpd-cover__content > * { opacity: 1; transform: none; animation: none !important; }
  .fpd-envelope__hint, .fpd-scroll-hint, .fpd-std__fold-hint { animation: none; }
}
