/* --- Variables --- */
:root {
  --color-bg: #faf8f5;
  --color-cream: #f3efe8;
  --color-ink: #2c2622;
  --color-muted: #6b635c;
  --color-accent: #8b7355;
  --color-sage: #e8ebe4;
  --color-sage-deep: #c5cbbf;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --shadow-soft: 0 18px 50px rgba(44, 38, 34, 0.08);
  --radius: 12px;
  --header-h: 72px;
  --hero-image: url("images/hero-variant-1.png");
}

/* Variantes de page d’accueil (fichiers index-variant-*.html) — la page par défaut = option 1 */
body.page-hero--2 {
  --hero-image: url("images/hero-variant-2.png");
}

body.page-hero--3 {
  --hero-image: url("images/hero-variant-3.png");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-ink);
  background: var(--color-bg);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-ink);
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(44, 38, 34, 0.06);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__brand:hover {
  color: var(--color-accent);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav__toggle-bar {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--color-ink);
  margin: 0 auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__menu a {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--color-muted);
  text-decoration: none;
}

.nav__menu a:hover {
  color: var(--color-ink);
}

.nav__cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  color: var(--color-ink) !important;
}

.nav__cta:hover {
  background: var(--color-accent);
  color: #fff !important;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    background: rgba(250, 248, 245, 0.98);
    border-bottom: 1px solid rgba(44, 38, 34, 0.08);
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
  }

  .nav__menu.is-open {
    max-height: 420px;
    opacity: 1;
  }

  .nav__menu li {
    width: 100%;
    border-bottom: 1px solid rgba(44, 38, 34, 0.06);
  }

  .nav__menu a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav__menu li:last-child {
    text-align: center;
    padding: 0.35rem 0 0.15rem;
    border-bottom: none;
  }

  .nav__menu a.nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    padding: 0.55rem 1.5rem;
    margin: 0 auto;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  /* Haut : sous le header · Bas : marge pour « Défiler » sous les boutons */
  padding: calc(var(--header-h) + 0.75rem) 1.5rem clamp(6.75rem, 15vh, 10rem);
  background-color: #3d342c;
  background-image:
    linear-gradient(
      165deg,
      rgba(250, 248, 245, 0.94) 0%,
      rgba(250, 248, 245, 0.55) 22%,
      rgba(44, 38, 34, 0.28) 52%,
      rgba(44, 38, 34, 0.55) 100%
    ),
    var(--hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Cadrage pour photos surtout portrait (montgolfière, kayak) */
body.page-hero--2 .hero {
  background-position: center 30%;
}

body.page-hero--3 .hero {
  background-position: center 25%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 90% 70% at 50% 38%,
    rgba(250, 248, 245, 0.15) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  min-height: 0;
}

.hero__intro {
  width: 100%;
  padding-top: 0.65rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.65rem;
  color: var(--color-ink);
  text-shadow:
    0 0 40px rgba(250, 248, 245, 0.95),
    0 2px 12px rgba(250, 248, 245, 0.85),
    0 1px 3px rgba(44, 38, 34, 0.2);
}

.hero__ampersand {
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.hero__date {
  font-size: clamp(1.08rem, 2.8vw, 1.22rem);
  font-weight: 500;
  margin: 0;
  color: rgba(44, 38, 34, 0.92);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 24px rgba(250, 248, 245, 0.98),
    0 0 8px rgba(250, 248, 245, 0.9),
    0 1px 2px rgba(44, 38, 34, 0.12);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: clamp(1.25rem, 3.5vh, 2.25rem);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid rgba(44, 38, 34, 0.25);
}

.btn--ghost:hover {
  background: rgba(44, 38, 34, 0.06);
  color: var(--color-ink);
}

.hero .btn--ghost {
  background: rgba(250, 248, 245, 0.88);
  border-color: rgba(44, 38, 34, 0.22);
  backdrop-filter: blur(6px);
}

.hero .btn--ghost:hover {
  background: rgba(250, 248, 245, 0.98);
}

.hero__scroll {
  position: absolute;
  bottom: max(1.25rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(0.78rem, 2.1vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(44, 38, 34, 0.92);
  text-shadow:
    0 0 18px rgba(250, 248, 245, 0.98),
    0 0 6px rgba(250, 248, 245, 0.95),
    0 1px 2px rgba(44, 38, 34, 0.15);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* --- Sections --- */
.section {
  padding: 5rem 1.5rem;
}

.section--cream {
  background: var(--color-cream);
}

.section--sage {
  background: var(--color-sage);
}

.section--rsvp {
  background: linear-gradient(180deg, var(--color-cream) 0%, var(--color-bg) 100%);
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.container.narrow {
  max-width: 640px;
}

.section__label {
  font-size: 0.8rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 0 0 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  line-height: 1.2;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* --- Timeline --- */
.timeline {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .timeline {
    gap: 2rem;
  }
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .timeline__item {
    grid-template-columns: 100px 1fr;
    align-items: start;
  }
}

.timeline__time {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-accent);
}

.timeline__card {
  background: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.timeline__card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.timeline__card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
}

/* --- Places --- */
.places {
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .places {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.place__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
}

.place__icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-accent);
  opacity: 0.92;
}

.place__icon--photo {
  width: auto;
  height: auto;
  max-width: 5.25rem;
  max-height: 3.25rem;
  object-fit: contain;
  opacity: 1;
  border-radius: 6px;
}

.place h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.place__heading h3 {
  margin: 0;
  flex: 1;
  line-height: 1.25;
}

.place__name {
  font-weight: 500;
  margin: 0 0 0.35rem;
}

.place p {
  margin: 0 0 0.75rem;
  color: var(--color-muted);
}

.place__hint {
  display: block;
  font-size: 0.92em;
  opacity: 0.92;
  margin-top: 0.35rem;
}

.place__link {
  font-size: 0.95rem;
  font-weight: 400;
  display: inline-block;
  margin-right: 1rem;
}

.place__link--secondary {
  margin-top: 0.35rem;
}

@media (min-width: 500px) {
  .place__link--secondary {
    margin-top: 0;
  }
}

/* --- Day after (brunch) --- */
.day-after {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(44, 38, 34, 0.1);
}

.day-after__title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.day-after__card {
  background: #fff;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.day-after__card p {
  margin: 0 0 0.65rem;
  color: var(--color-muted);
}

.day-after__card p:last-child {
  margin-bottom: 0;
}

.day-after__note {
  font-size: 0.92rem !important;
}

/* --- Liste section --- */
.section--liste {
  background: linear-gradient(180deg, var(--color-sage) 0%, var(--color-cream) 100%);
}

.liste__lead {
  color: var(--color-muted);
  margin: 0 0 1.5rem;
  line-height: 1.65;
}

/* --- RSVP contact --- */
.contact-block {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 1rem;
  color: var(--color-muted);
}

.contact-block a {
  font-weight: 500;
}

/* --- Info --- */
.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(44, 38, 34, 0.1);
  color: var(--color-muted);
}

.info-list li:first-child {
  padding-top: 0;
}

.info-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-list strong {
  color: var(--color-ink);
  font-weight: 500;
}

/* --- RSVP --- */
.rsvp__lead {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--color-ink);
}

.field input,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(44, 38, 34, 0.15);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(139, 115, 85, 0.35);
  outline-offset: 2px;
  border-color: var(--color-accent);
}

.rsvp-form__note {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn--primary {
  background: var(--color-ink);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--wide {
  width: 100%;
  margin-top: 0.25rem;
}

/* --- Footer --- */
.footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid rgba(44, 38, 34, 0.08);
  text-align: center;
  background: var(--color-bg);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.footer__names {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.footer__date {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
}

.footer__top {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.footer__alt-hero {
  margin: 1.25rem 0 0;
  max-width: 22rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.footer__alt-hero a {
  font-weight: 500;
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

main {
  padding-top: 0;
}
