/* ═══════════ FAIRE-PART — modèle « Jardin enchanté » ═══════════ */
:root {
  --cream: #fbf7f1;
  --ivory: #fffefb;
  --ink: #3e3640;
  --muted: #8d8189;
  --rose: #e8b4c2;
  --rose-deep: #c25e78;
  --gold: #b99253;
  --hairline: rgba(62, 54, 64, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* barre de défilement fine : réduit l'asymétrie du centrage visuel */
html { scrollbar-width: thin; scrollbar-color: rgba(194, 94, 120, 0.28) transparent; }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(194, 94, 120, 0.28); border-radius: 4px; }

body {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: "Cormorant Garamond", serif; font-weight: 400; }
::selection { background: var(--rose); color: var(--ink); }

/* ══════════ OUVERTURE CINÉMATIQUE ══════════ */
#fpCine { position: relative; height: 230vh; }
.fp-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #efe3e2;
}
#fpVideo {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.fp-open-content { position: relative; z-index: 3; text-align: center; color: #fff; padding: 0 1.4rem; }

/* la pétale messagère */
#fpPetal {
  position: absolute; z-index: 5; left: 50%; top: 50%;
  width: min(14vw, 130px);
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 6px 24px rgba(194, 94, 120, 0.18));
}
#fpWash {
  position: absolute; inset: -2px; z-index: 6;
  background: #f9efee;
  opacity: 0; pointer-events: none;
}
/* raccord pétale → contenu : la pétale se dissout dans le papier crème */
.fp-after-wash {
  background: linear-gradient(180deg, #f9efee 0%, var(--cream) 10%);
  margin-top: 0;
}

/* l'annonce — les prénoms reviennent, posés sur le papier */
.fp-annonce { padding-top: clamp(2.8rem, 6vw, 4.5rem); }
.fp-annonce-kicker {
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  text-transform: uppercase; letter-spacing: 0.4em;
  color: var(--gold); margin-bottom: 0.4rem;
}
.fp-annonce-names {
  font-family: "Great Vibes", cursive; font-weight: 400;
  font-size: clamp(3rem, 8.5vw, 5.5rem); line-height: 1.15;
  color: var(--rose-deep); margin-top: 0.6rem;
}
.fp-annonce-names span { font-size: 0.55em; vertical-align: 0.12em; color: var(--gold); }
.fp-annonce-date {
  margin-top: 0.7rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 2.2vw, 1.3rem);
  letter-spacing: 0.16em; text-transform: uppercase;
}
.fp-kicker {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.42em;
  text-shadow: 0 1px 14px rgba(62, 44, 54, 0.45);
  opacity: 0; animation: riseIn 1.4s ease 0.5s forwards;
}
.fp-names {
  font-family: "Great Vibes", cursive; font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 7.5rem); line-height: 1.1;
  text-shadow: 0 2px 30px rgba(62, 44, 54, 0.4);
  opacity: 0; animation: riseIn 1.6s ease 1.1s forwards;
}
.fp-names span { font-size: 0.55em; vertical-align: 0.12em; margin: 0 0.1em; }
.fp-open-date {
  margin-top: 0.6rem;
  font-family: "Cormorant Garamond", serif; font-size: clamp(1.1rem, 2.6vw, 1.5rem);
  letter-spacing: 0.14em; text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(62, 44, 54, 0.45);
  opacity: 0; animation: riseIn 1.6s ease 1.9s forwards;
}
@keyframes riseIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }
.fp-scroll {
  position: absolute; z-index: 2; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  text-align: center; opacity: 0; animation: riseIn 1.4s ease 2.7s forwards;
}
.fp-scroll p {
  font-size: 0.64rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: #fff; text-shadow: 0 1px 12px rgba(62, 44, 54, 0.45);
}
.fp-scroll span {
  display: block; width: 1px; height: 42px; margin: 0 auto 0.6rem;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.9));
  animation: drip 2s ease-in-out infinite;
}
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ══════════ TRAME ══════════ */
.fp-section { padding: clamp(2.2rem, 5vw, 3.6rem) clamp(1.4rem, 6vw, 3rem) 0; text-align: center; }
.fp-ornament { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.5em; margin-bottom: 1rem; }

.fp-message {
  font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: clamp(1.1rem, 2.3vw, 1.5rem); font-style: italic;
  max-width: 30em; margin: 0 auto; line-height: 1.6;
}

/* photos — galerie */
.fp-photo-wrap { display: flex; justify-content: center; }
.fp-photo { max-width: min(680px, 92vw); width: 100%; }
.fp-gallery {
  display: grid; gap: 10px;
  border: 1px solid rgba(185, 146, 83, 0.35);
  padding: 10px; background: var(--ivory);
}
.fp-gallery img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  aspect-ratio: 3 / 2;
}
.fp-gallery img:first-child { grid-column: 1 / -1; }
.fp-gallery img:not(:first-child) { aspect-ratio: 1 / 1; }
.fp-photo figcaption {
  margin-top: 0.9rem;
  font-family: "Great Vibes", cursive; font-size: 1.6rem; color: var(--rose-deep);
}

/* notre histoire — frise des petits moments */
.fp-histoire-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.fp-timeline {
  max-width: 27em; margin: 2rem auto 0; text-align: left;
  position: relative; padding-left: 1.8rem;
}
.fp-timeline::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}
.fp-moment { position: relative; padding-bottom: 1.7rem; }
.fp-moment:last-child { padding-bottom: 0; }
.fp-moment::before {
  content: ""; position: absolute; left: -1.8rem; top: 0.6em;
  width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--gold);
}
.fp-moment-annee {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 0.95rem; letter-spacing: 0.14em; color: var(--gold);
}
.fp-moment-titre { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; line-height: 1.25; }
.fp-moment-texte { font-size: 0.95rem; color: #5d525f; margin-top: 0.15rem; }

/* date */
.fp-date-day {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.4em; color: var(--muted);
}
.fp-date-big {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.15;
}
/* compte à rebours théâtral */
/* nettement secondaire : la date reste l'élément principal */
.fp-count {
  display: flex; justify-content: center; align-items: baseline;
  gap: clamp(0.9rem, 3vw, 1.6rem); margin-top: 1.1rem;
}
.fp-count > div { text-align: center; position: relative; }
.fp-count > div:not(:last-child)::after {
  content: "·"; position: absolute; right: calc(-0.5 * clamp(0.9rem, 3vw, 1.6rem));
  top: -0.05em; color: var(--gold); opacity: 0.6; font-size: 0.9rem; transform: translateX(50%);
}
.fp-count b {
  display: block; font-family: "Jost", sans-serif; font-weight: 300;
  font-size: clamp(1rem, 2.1vw, 1.25rem); line-height: 1;
  letter-spacing: 0.06em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.fp-count span {
  display: block; margin-top: 0.25rem;
  font-size: 0.53rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--muted); opacity: 0.75;
}
.fp-count-alt {
  margin-top: 1rem; font-family: "Great Vibes", cursive;
  font-size: 2rem; color: var(--rose-deep);
}
.fp-agenda {
  margin-top: 1.5rem; cursor: pointer; background: transparent;
  border: 1px solid rgba(185, 146, 83, 0.5); border-radius: 100px;
  font-family: "Jost", sans-serif; font-weight: 300; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.22em; color: var(--ink);
  padding: 0.7rem 1.7rem; transition: border-color 0.25s, color 0.25s;
}
.fp-agenda:hover { border-color: var(--gold); color: var(--gold); }

/* le jour J heure par heure */
.fp-dayline {
  display: flex; justify-content: center; align-items: center;
  gap: clamp(0.9rem, 3vw, 1.8rem); flex-wrap: wrap;
  margin: 0 auto clamp(2.2rem, 5vw, 3.4rem);
}
.fp-day-item { text-align: center; }
.fp-day-item span { display: block; font-size: 1.1rem; margin-bottom: 0.25rem; }
.fp-day-item b {
  display: block; font-family: "Cormorant Garamond", serif; font-weight: 400;
  font-size: 1.25rem; line-height: 1.1;
}
.fp-day-item i {
  display: block; font-style: normal; margin-top: 0.2rem;
  font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--muted);
}
.fp-day-sep { width: clamp(28px, 6vw, 54px); height: 1px; background: var(--gold); opacity: 0.55; }

/* lieux */
.fp-places {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  max-width: 980px; margin: 0 auto;
}
.fp-place { text-align: center; border-top: 1px solid var(--hairline); padding-top: 1.6rem; }
.fp-place-emoji { font-size: 1.3rem; margin-bottom: 0.5rem; }
.fp-place h2 { font-size: 1.55rem; }
.fp-place-time {
  font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin: 0.3rem 0 0.7rem;
}
.fp-place-name { font-size: 1.02rem; font-weight: 400; }
.fp-place-addr { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.8rem; }
.fp-place-link {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--hairline); padding-bottom: 0.25rem;
  transition: color 0.3s, border-color 0.3s;
}
.fp-place-link:hover { color: var(--rose-deep); border-color: var(--rose-deep); }
.fp-place-dir {
  display: block; margin-top: 0.7rem;
  font-size: 0.68rem; letter-spacing: 0.14em; color: var(--muted);
  text-decoration: none; transition: color 0.25s;
}
.fp-place-dir:hover { color: var(--rose-deep); }

/* livre d'or vivant */
.fp-livre-wrap { padding-bottom: clamp(2.4rem, 6vw, 4rem); }
.fp-livre-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.fp-livre { max-width: 44em; margin: 1.8rem auto 0; columns: 2; column-gap: 3rem; }
.fp-livre-item { break-inside: avoid; padding: 1rem 0; border-top: 1px solid var(--hairline); text-align: left; }
.fp-livre-item p {
  font-family: "Cormorant Garamond", serif; font-style: italic;
  font-size: 1.15rem; line-height: 1.45;
}
.fp-livre-item span {
  display: block; margin-top: 0.35rem;
  font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold);
}
@media (max-width: 640px) { .fp-livre { columns: 1; } }

/* infos pratiques */
.fp-infos-title { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.fp-infos { max-width: 30em; margin: 1.6rem auto 0; text-align: left; }
.fp-infos-row {
  display: grid; grid-template-columns: minmax(7em, 10em) 1fr;
  gap: 1.2rem; padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline); align-items: baseline;
}
.fp-infos-row:last-child { border-bottom: none; }
.fp-infos-row dt {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--gold);
}
.fp-infos-row dd { font-size: 0.97rem; }
.fp-infos-row a { color: var(--rose-deep); }

/* ══════════ RSVP ══════════ */
.fp-rsvp-wrap { padding-bottom: clamp(2.4rem, 6vw, 4rem); }
.fp-rsvp-title { font-size: clamp(2rem, 5vw, 3rem); }
.fp-rsvp-sub { font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }

.fp-form {
  max-width: 540px; margin: 2.6rem auto 0; text-align: left;
  display: grid; gap: 1.5rem;
}
.fp-field { display: block; border: none; }
.fp-field > span, .fp-field legend {
  display: block; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.26em; color: var(--muted); margin-bottom: 0.55rem;
}
.fp-field input[type="text"], .fp-field textarea {
  width: 100%; background: transparent;
  border: none; border-bottom: 1px solid var(--hairline);
  padding: 0.55rem 0.1rem; font-family: "Jost", sans-serif; font-weight: 300;
  font-size: 1rem; color: var(--ink); border-radius: 0;
  transition: border-color 0.3s;
}
.fp-field textarea { resize: none; overflow: hidden; }
.fp-field input:focus, .fp-field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.fp-field ::placeholder { color: #c5bcc1; }
.fp-radios { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.fp-radios label { cursor: pointer; }
.fp-radios input { position: absolute; opacity: 0; }
.fp-radios span {
  display: inline-block; padding: 0.55rem 1.3rem;
  border: 1px solid var(--hairline); border-radius: 100px;
  font-size: 0.92rem; transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.fp-radios input:checked + span {
  border-color: var(--rose-deep); background: var(--rose-deep); color: #fff;
}
.fp-radios input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.fp-submit {
  justify-self: center; margin-top: 0.6rem;
  background: var(--rose-deep); color: #fff; border: none; cursor: pointer;
  font-family: "Jost", sans-serif; font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.24em;
  padding: 1.05rem 3rem; border-radius: 2px;
  transition: background 0.3s, transform 0.3s;
}
.fp-submit:hover { background: #a94b64; transform: translateY(-1px); }

.fp-thanks { margin-top: 2.4rem; }
.fp-thanks-script {
  font-family: "Great Vibes", cursive; font-size: 3rem; color: var(--rose-deep); line-height: 1.2;
}

/* footer */
.fp-footer {
  margin-top: clamp(1.8rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  text-align: center; padding: 2rem 1.4rem;
  font-size: 0.78rem; letter-spacing: 0.1em; color: var(--muted);
}
.fp-footer a { color: var(--rose-deep); text-decoration: none; }

/* petals + reveals */
#petals { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.reveal { opacity: 0; transform: translateY(24px); }

/* ══════════ THÈME CHAMPÊTRE PROVENÇAL ══════════ */
.theme-provencal {
  --rose-deep: #7c6399;   /* violet lavande */
  --rose: #c9bade;
  --gold: #7f8f5e;        /* vert olive */
}
.theme-provencal .fp-sticky { background: #e6e2da; }
.theme-provencal #fpWash { background: #f4f0ea; }
.theme-provencal .fp-after-wash {
  background: linear-gradient(180deg, #f4f0ea 0%, var(--cream) 10%);
}
.theme-provencal #fpPetal {
  filter: drop-shadow(0 0 26px rgba(255, 199, 115, 0.75)) drop-shadow(0 0 64px rgba(255, 183, 88, 0.4));
}

@media (max-width: 760px) {
  .fp-places { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .fp-open-bg { animation: none; }
  .fp-kicker, .fp-names, .fp-open-date, .fp-scroll { animation: none; opacity: 1; }
}
