:root {
  --sage: #8a9a80;
  --sage-dark: #6f7f66;
  --cream: #f5f1e8;
  --cream-dark: #ece5d6;
  --terracotta: #c17a5b;
  --ink: #3a3a34;
  --muted: #7c7a70;
  --white: #fffdf9;
  --shadow: 0 10px 30px rgba(58, 58, 52, 0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', cursive;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--serif);
  color: var(--ink);
  background: var(--cream);
  font-size: 19px;
  line-height: 1.6;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background:
    radial-gradient(120% 100% at 50% 0%, var(--white) 0%, var(--cream) 55%, var(--cream-dark) 100%);
  overflow: hidden;
}

.hero__leaf {
  position: absolute;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, var(--sage) 0%, transparent 70%);
  opacity: 0.22;
  pointer-events: none;
}
.hero__leaf--tl { top: -80px; left: -80px; }
.hero__leaf--br { bottom: -80px; right: -80px; }

.hero__inner { position: relative; z-index: 1; }

.hero__intro {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.8rem;
  color: var(--sage-dark);
  margin-bottom: 1.2rem;
}

.hero__names {
  font-family: var(--script);
  font-weight: 400;
  font-size: clamp(3.4rem, 14vw, 6.5rem);
  line-height: 1.05;
  color: var(--ink);
}
.hero__names span {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.4em;
  color: var(--terracotta);
  margin: 0.1em 0;
}

.hero__date {
  margin-top: 1rem;
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  font-size: 1.6rem;
  color: var(--sage-dark);
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ============ SECTIONS ============ */
.section {
  padding: 4rem 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}
.section--alt {
  background: var(--cream-dark);
  max-width: none;
}
.section--alt > * { max-width: 820px; margin-left: auto; margin-right: auto; }

.section__head { text-align: center; margin-bottom: 2.5rem; }
.ornament { display: block; color: var(--terracotta); font-size: 1.6rem; margin-bottom: 0.4rem; }
.section__head h2 {
  font-weight: 500;
  font-size: clamp(2rem, 7vw, 2.8rem);
  letter-spacing: 0.02em;
}
.section__sub { color: var(--muted); margin-top: 0.5rem; }

/* ============ DIAPORAMA ============ */
.slideshow-section { padding: 0; max-width: none; }
.slideshow {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--cream-dark);
}
.slideshow__track { width: 100%; height: 100%; position: relative; }
.slideshow__track img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}
.slideshow__track img.is-active { opacity: 1; }

.slideshow__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 253, 249, 0.75);
  border: none;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slideshow__nav:hover { background: var(--white); }
.slideshow__nav--prev { left: 12px; }
.slideshow__nav--next { right: 12px; }

.slideshow__dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 0 12px;
}
.slideshow__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 253, 249, 0.55);
  cursor: pointer;
  padding: 0;
}
.slideshow__dots button.is-active { background: var(--white); transform: scale(1.3); }

/* ============ PROGRAMME ============ */
.timeline { display: flex; flex-direction: column; gap: 1.4rem; }
.event {
  display: flex;
  gap: 1.2rem;
  background: var(--white);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--sage);
}
.event__day {
  flex: 0 0 auto;
  color: var(--sage-dark);
  font-style: italic;
  font-size: 1rem;
  min-width: 100px;
}
.event__body h3 { font-weight: 600; font-size: 1.4rem; }
.event__time { color: var(--terracotta); font-size: 1.1rem; }
.event__body p { color: var(--ink); }

/* ============ ACCÈS ============ */
.places { display: flex; flex-direction: column; gap: 1.4rem; }
.place {
  background: var(--white);
  border-radius: 14px;
  padding: 1.6rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.place h3 { font-weight: 600; font-size: 1.5rem; }
.place__time { color: var(--terracotta); margin-bottom: 0.4rem; }
.place p { color: var(--muted); }

/* ============ RSVP ============ */
.rsvp {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 1.05rem; color: var(--sage-dark); }
.field input {
  font-family: var(--serif);
  font-size: 1.1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cream-dark);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}
.field input:focus { outline: 2px solid var(--sage); border-color: var(--sage); }

.day {
  border: 1px solid var(--cream-dark);
  border-radius: 12px;
  padding: 1.1rem 1.2rem;
}
.day legend {
  padding: 0 0.5rem;
  color: var(--terracotta);
  font-size: 1.15rem;
  font-weight: 500;
}
.choice { display: flex; gap: 1.4rem; margin-bottom: 0.8rem; }
.choice label { display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.counts { display: flex; gap: 1rem; flex-wrap: wrap; }
.field--inline { flex: 1; min-width: 120px; }
.counts.is-hidden { display: none; }

.btn {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform 0.15s, background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--hero {
  margin-top: 2rem;
  background: var(--sage);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn--hero:hover { background: var(--sage-dark); }
.btn--map {
  background: var(--sage);
  color: var(--white);
  margin-top: 0.9rem;
  font-size: 1rem;
}
.btn--map:hover { background: var(--sage-dark); }
.btn--submit { background: var(--terracotta); color: var(--white); font-size: 1.2rem; }
.btn--submit:hover { background: #a9694d; }
.btn--submit:disabled { opacity: 0.6; cursor: default; }

.form-msg { text-align: center; min-height: 1.4em; font-size: 1.05rem; }
.form-msg.is-ok { color: var(--sage-dark); }
.form-msg.is-error { color: #b0503c; }

/* ============ FOOTER ============ */
.footer {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--sage-dark);
  color: var(--cream);
}
.footer__names { font-family: var(--script); font-size: 2.4rem; }

/* ============ RESPONSIVE ============ */
@media (min-width: 680px) {
  .places { flex-direction: row; }
  .place { flex: 1; }
}
