/* ==========================================================
   Save the date · Inès & Ahmed
   Polices locales (SIL Open Font License) : Pinyon Script,
   Cormorant Garamond, Jost.
   ========================================================== */

@font-face { font-family: "Pinyon Script"; src: url("../fonts/pinyon-script.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("../fonts/cormorant-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bordeaux: #721c1c;
  --bordeaux-dark: #561414;
  --gold: #b8935a;
  --gold-soft: #d9c29a;
  --cream: #faf6f0;
  --cream-2: #f3ece1;
  --ink: #2a1e1c;
  --muted: #7a6a64;

  --script: "Pinyon Script", cursive;
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.script { font-family: var(--script); font-weight: 400; }

.eyebrow {
  margin: 0 0 .6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(38px, 6vw, 56px);
  line-height: 1.1;
  letter-spacing: .01em;
}

/* ---------------- Hero ---------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(14px, 2.5vw, 28px);
  background:
    radial-gradient(120% 80% at 50% 0%, #8a2626 0%, var(--bordeaux) 55%, var(--bordeaux-dark) 100%);
  color: #fff;
  display: flex;
}
.hero__frame {
  flex: 1;
  position: relative;
  border: 1px solid rgba(217, 194, 154, .55);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 20px 96px;
}
.hero__frame::before {          /* second filet intérieur */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(217, 194, 154, .22);
  pointer-events: none;
}
.hero .eyebrow { color: var(--gold-soft); }
.hero__names {
  margin: .4rem 0 0;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.hero__names .script { font-size: clamp(76px, 15vw, 150px); line-height: 1.05; }
.hero__amp {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(34px, 5vw, 52px);
  color: var(--gold-soft);
  margin: -.1em 0 .05em;
}
.hero__date {
  margin: 2rem 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 15px);
  letter-spacing: .3em;
  text-transform: uppercase;
}
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-soft); }

.countdown {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 92px));
  gap: clamp(6px, 1.5vw, 14px);
}
.countdown div {
  padding: 12px 4px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(4px);
  border-radius: 10px;
}
.countdown b {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.countdown small {
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .75;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  width: 26px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 14px;
}
.hero__scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--gold-soft);
  animation: scroll 1.8s var(--ease) infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------------- Intro ---------------- */
.intro { padding: clamp(64px, 10vw, 110px) 24px clamp(24px, 4vw, 40px); }
.intro__text {
  margin: 0 auto;
  max-width: 24ch;
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.3;
  color: var(--bordeaux);
}
.ornament {
  display: block;
  width: 120px;
  height: 1px;
  margin: 36px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.ornament::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  translate: -50% -50%;
  rotate: 45deg;
  background: var(--gold);
}

/* ---------------- Sections ---------------- */
.section { padding: clamp(64px, 9vw, 110px) 24px; }
.section--tint { background: var(--cream-2); }
.section__head { margin-bottom: clamp(40px, 6vw, 64px); }

/* ---------------- Timeline ---------------- */
.timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  position: relative;
}
.timeline::before {             /* ligne verticale dorée */
  content: "";
  position: absolute;
  top: 10px; bottom: 10px;
  left: 50%;
  width: 1px;
  background: linear-gradient(var(--gold-soft), var(--gold), var(--gold-soft));
}
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 22px 0;
}
.timeline li::after {           /* pastille */
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 13px; height: 13px;
  translate: -50% -50%;
  border-radius: 50%;
  background: var(--cream);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px var(--cream), inset 0 0 0 3px var(--cream), inset 0 0 0 7px var(--gold);
}
.timeline img { width: auto; max-height: 72px; justify-self: end; }
.timeline li > div { text-align: left; }
.timeline li:nth-child(even) img { order: 2; justify-self: start; }
.timeline li:nth-child(even) > div { order: 1; text-align: right; }
.timeline time {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.1;
  color: var(--bordeaux);
}
.timeline p { margin: .2rem 0 0; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------------- Cartes lieux ---------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.card {
  background: #fff;
  border: 1px solid rgba(184, 147, 90, .25);
  border-radius: 16px;
  padding: 40px 28px 36px;
  box-shadow: 0 1px 2px rgba(60, 30, 20, .04), 0 12px 32px -12px rgba(60, 30, 20, .12);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(60, 30, 20, .05), 0 22px 44px -16px rgba(60, 30, 20, .2); }
.card__tag { margin: 0; font-size: 11px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); }
.card h3 { margin: .6rem 0 .5rem; font-family: var(--serif); font-weight: 500; font-size: 30px; line-height: 1.15; color: var(--bordeaux); }
.card__addr { margin: 0 0 1.4rem; color: var(--muted); }
.link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bordeaux);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color .2s, border-color .2s;
}
.link:hover, .link:focus-visible { color: var(--gold); }

/* ---------------- RSVP ---------------- */
.rsvp__box { max-width: 620px; margin: 0 auto; }
.rsvp h2 { margin-bottom: 1.4rem; }
.rsvp p { margin: 0; }
.rsvp__deadline {
  margin-top: .3rem !important;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--bordeaux);
}
.rsvp__actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid var(--bordeaux);
  background: var(--bordeaux);
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--bordeaux-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(114, 28, 28, .6); }
.btn--ghost { background: transparent; color: var(--bordeaux); }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--bordeaux); color: #fff; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------------- Footer ---------------- */
.footer { background: var(--bordeaux); color: #fff; padding: 64px 24px 48px; }
.footer .script { margin: 0; font-size: clamp(40px, 6vw, 56px); line-height: 1.2; }
.footer__sign { margin: 1rem 0 0; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------------- Apparitions au scroll ---------------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Mobile ---------------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .countdown { grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 340px; }
  .hero__date { letter-spacing: .22em; gap: 10px; }

  .timeline { max-width: 340px; }
  .timeline::before { left: 22px; }
  .timeline li,
  .timeline li:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 0 18px 60px;
    text-align: left;
  }
  .timeline li::after { left: 22px; top: 32px; }
  .timeline img,
  .timeline li:nth-child(even) img { order: 0; justify-self: start; max-height: 56px; }
  .timeline li > div,
  .timeline li:nth-child(even) > div { order: 1; text-align: left; }

  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------------- Formulaire RSVP ---------------- */
.form {
  margin: 2.4rem auto 0;
  max-width: 560px;
  text-align: left;
  background: #fff;
  border: 1px solid rgba(184, 147, 90, .25);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 12px 32px -14px rgba(60, 30, 20, .14);
}
.form__row { display: grid; gap: 14px; margin-bottom: 16px; }
.form__row--2 { grid-template-columns: 1fr 1fr; }
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-wrap > span, .choice legend {
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}
.field {
  width: 100%;
  font: inherit;
  font-size: 16px;          /* évite le zoom auto sur iPhone */
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid #e6dccd;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field:focus { outline: none; border-color: var(--gold); background: #fff; box-shadow: 0 0 0 3px rgba(184, 147, 90, .18); }
.field.is-invalid { border-color: var(--bordeaux); }
textarea.field { resize: vertical; min-height: 90px; }

.choice { border: 0; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend { margin-bottom: 8px; padding: 0; }
.choice__opt { position: relative; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__opt span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 50px; padding: 8px 12px;
  border: 1px solid #e6dccd; border-radius: 10px; background: var(--cream);
  font-size: 15px; font-weight: 400;
  transition: all .2s var(--ease);
}
.choice__opt input:checked + span { border-color: var(--bordeaux); background: var(--bordeaux); color: #fff; }
.choice__opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(184, 147, 90, .35); }
.choice.is-invalid .choice__opt span { border-color: var(--bordeaux); }

.form__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s var(--ease), opacity .35s; }
.form__more.is-hidden { grid-template-rows: 0fr; opacity: 0; pointer-events: none; }
.form__more > * { min-height: 0; overflow: hidden; }
.form__more { overflow: hidden; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin: 0 0 4px; min-height: 1.4em; font-size: 15px; text-align: center; }
.form__status.is-ok { color: #2f6b25; font-family: var(--serif); font-style: italic; font-size: 22px; }
.form__status.is-err { color: var(--bordeaux); }
.form .rsvp__actions { margin-top: 1rem; }
.form__note { margin: 1.2rem 0 0 !important; font-size: 13px; color: var(--muted); text-align: center; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

@media (max-width: 640px) {
  .form__row--2 { grid-template-columns: 1fr; }
  .choice { grid-template-columns: 1fr; }
}

/* ---------------- Parking + boutons GPS ---------------- */
.parking {
  margin-top: 1.6rem;
  padding-top: 1.4rem;
  border-top: 1px dashed rgba(184, 147, 90, .45);
}
.parking__title {
  margin: 0 0 .4rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
}
.parking__p {
  width: 20px; height: 20px; border-radius: 5px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #1f5fa8; color: #fff; font-size: 12px; letter-spacing: 0; font-weight: 500;
}
.parking__addr { margin: 0 0 1rem; color: var(--muted); font-size: 15px; }
.nav-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 16px;
  border: 1px solid #e6dccd; border-radius: 999px; background: var(--cream);
  font-size: 12px; font-weight: 500; letter-spacing: .08em; color: var(--ink); text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s var(--ease);
}
.nav-btn svg { width: 16px; height: 16px; fill: var(--bordeaux); }
.nav-btn:hover, .nav-btn:focus-visible { border-color: var(--gold); background: #fff; transform: translateY(-1px); }
