/* ============================================================
   Louise & Yanis — 10 juillet 2027
   Style sobre & champêtre
   ============================================================ */

:root {
  --c-cream: #faf7f1;
  --c-cream-dark: #f2ece1;
  --c-green: #4a5d4e;
  --c-green-dark: #36463a;
  --c-ink: #3a352d;
  --c-ink-soft: #6b6457;
  --c-white: #ffffff;
  --c-border: #ddd3c1;

  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --sp: 1rem;
  --radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--c-ink);
  background: var(--c-cream);
  line-height: 1.6;
}

/* ---------- HERO ---------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background-image:
    linear-gradient(
      rgba(250, 247, 241, 0.45),
      rgba(250, 247, 241, 0.65)
    ),
    url("img/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: 1.25rem;
}

.hero__names {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.5rem);
  color: var(--c-green-dark);
  line-height: 1.1;
}

.hero__et {
  font-style: italic;
  font-size: 0.7em;
  color: var(--c-ink-soft);
  margin: 0 0.15em;
}

.hero__date {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--c-ink-soft);
  margin-top: 1.25rem;
}

.hero__venue {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-top: 0.5rem;
}

/* ---------- NAV ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.nav__list {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  padding: 0.9rem 1rem;
}

.nav__list a {
  text-decoration: none;
  color: var(--c-ink-soft);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav__list a:hover,
.nav__list a:focus {
  color: var(--c-green-dark);
}

/* ---------- SECTIONS ---------- */

.section {
  padding: 5rem 1.5rem;
}

.section--alt {
  background: var(--c-cream-dark);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 640px;
}

.section__header {
  position: relative;
}

.section__title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--c-green-dark);
  text-align: center;
  margin-bottom: 1rem;
  padding: 0 3rem;
}

.to-top {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: transparent;
  color: var(--c-green);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.to-top:hover,
.to-top:focus {
  background: var(--c-green);
  border-color: var(--c-green);
  color: var(--c-white);
}

.section__title::after {
  content: "❦";
  display: block;
  font-size: 1.1rem;
  color: var(--c-green);
  margin-top: 0.75rem;
}

.section__intro {
  text-align: center;
  color: var(--c-ink-soft);
  max-width: 520px;
  margin: 0 auto 3rem;
}

.section__note {
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--c-ink-soft);
  margin-top: 2.5rem;
}

/* ---------- TIMELINE (programme) ---------- */

.timeline {
  list-style: none;
  max-width: 560px;
  margin: 0 auto;
  border-left: 1px solid var(--c-border);
  padding-left: 2rem;
}

.timeline__item {
  position: relative;
  padding: 0 0 2.5rem 0.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.4rem;
  top: 0.4rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-green);
  border: 2px solid var(--c-cream);
  outline: 1px solid var(--c-green);
}

.timeline__time {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--c-green);
}

.timeline__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--c-green-dark);
  margin-top: 0.15rem;
}

.timeline__desc {
  color: var(--c-ink-soft);
  font-size: 0.95rem;
}

.timeline__day {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--c-green-dark);
  text-align: center;
  margin: 0 0 1.75rem;
}

/* ---------- VENUE (localisation) ---------- */

.venue {
  text-align: center;
}

.venue__name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--c-green-dark);
}

.venue__address {
  color: var(--c-ink-soft);
  margin: 0.5rem 0 1.5rem;
}

.venue__map {
  height: 320px;
  border-radius: var(--radius);
  background: #e7e1d4;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink-soft);
  font-style: italic;
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.venue__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- ACCESS (gares / aéroports) ---------- */

.access {
  margin-top: 3.5rem;
  text-align: center;
}

.access__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--c-green-dark);
  margin-bottom: 1.5rem;
}

.access__list {
  list-style: none;
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
}

.access__item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
}

.access__name {
  font-weight: 500;
  color: var(--c-green-dark);
  grid-column: 1;
}

.access__meta {
  font-size: 0.88rem;
  color: var(--c-ink-soft);
  grid-column: 1;
}

.access__link {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-green);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.access__link:hover,
.access__link:focus {
  color: var(--c-green-dark);
}

@media (max-width: 480px) {
  .access__item {
    grid-template-columns: 1fr;
  }

  .access__link {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.35rem;
  }
}

.venue__parking {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--c-green-dark);
}

.venue__parking::before {
  content: "— ";
  color: var(--c-green);
}

/* ---------- DRESS CODE ---------- */

.dresscode {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.dresscode__item {
  padding: 2rem 1.5rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}

.dresscode__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--c-green-dark);
}

.dresscode__title::after {
  content: " ❦";
  color: var(--c-green);
  font-size: 0.9rem;
}

.dresscode__desc {
  font-size: 0.9rem;
  color: var(--c-ink-soft);
  margin-top: 0.35rem;
}

/* ---------- RSVP EXTRA ("plus" personnes) ---------- */

.rsvp__extra {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.4);
}

.rsvp__extra[hidden] {
  display: none;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border: 1px solid var(--c-green);
  border-radius: 999px;
  color: var(--c-green-dark);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover,
.btn:focus {
  background: var(--c-green);
  color: var(--c-white);
}

.btn--full {
  width: 100%;
  margin-top: 1rem;
}

/* ---------- RSVP FORM ---------- */

.rsvp {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rsvp__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.rsvp__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rsvp__field span,
.rsvp__fieldset legend {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-green);
}

.rsvp__field input,
.rsvp__field select,
.rsvp__field textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--c-ink);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-white);
  outline: none;
  transition: border-color 0.2s ease;
}

.rsvp__field input:focus,
.rsvp__field select:focus,
.rsvp__field textarea:focus {
  border-color: var(--c-green);
}

.rsvp__field textarea {
  resize: vertical;
}

.rsvp__fieldset {
  border: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.rsvp__fieldset legend {
  margin-bottom: 0.4rem;
}

.rsvp__radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
}

.rsvp__status {
  text-align: center;
  padding: 0.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.rsvp__status--info {
  background: #efe9db;
  color: var(--c-ink-soft);
}

.rsvp__status--ok {
  background: #e6efe7;
  color: var(--c-green-dark);
}

.rsvp__status--err {
  background: #f7e6e3;
  color: #8a3a2e;
}

/* ---------- FOOTER ---------- */

.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--c-border);
  color: var(--c-ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ---------- RESPONSIVE ---------- */

a,
button {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 900px) {
  .hero {
    min-height: 88vh;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 3rem 1.25rem;
  }

  .hero__eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
  }

  .hero__venue {
    font-size: 0.75rem;
  }

  /* Menu : passe sur 2 lignes, plus lisible sur mobile */
  .nav__list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem 1.5rem;
    padding: 0.75rem 0.5rem;
  }

  .nav__list a {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .section__title {
    padding: 0 2.75rem;
  }

  .section__intro {
    margin-bottom: 2.5rem;
  }

  .to-top {
    width: 2.75rem;
    height: 2.75rem;
  }

  .venue__map {
    height: 260px;
  }

  .access__title {
    font-size: 1.25rem;
  }

  .rsvp__fieldset {
    gap: 0.75rem;
  }

  .rsvp__fieldset legend {
    width: 100%;
  }

  .footer {
    padding: 2rem 1rem;
  }
}

@media (max-width: 560px) {
  .rsvp__row {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline__item::before {
    left: -1.85rem;
  }
}

@media (max-width: 380px) {
  .section__title {
    padding: 0 2.5rem;
  }

  .to-top {
    width: 2.5rem;
    height: 2.5rem;
  }
}
