/* ============================================================
   AMANDA & DAVIDSON — Site de Mariage
   Feuille de style principale
   Palette : Crème · Or champagne · Noir profond
   Typographies : Great Vibes · Cormorant Garamond · Raleway
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Great+Vibes&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --cream:       #f4f1e8;
  --ivory:       #eae6d8;
  --ivory-dark:  #cdc8b2;
  --sage-bg:     #edf1e9;
  --blue-bg:     #e8f0f5;
  --gold:        #8aafc0;
  --gold-light:  #aac8d8;
  --gold-dark:   #527d94;
  --sage:        #899b78;
  --sage-light:  #b0c09c;
  --sage-dark:   #6b7c60;
  --dark:        #2f4048;
  --dark-2:      #3b4d5b;
  --text:        #2b363d;
  --text-light:  #58636b;
  --white:       #ffffff;
  --shadow:      0 4px 30px rgba(34, 47, 55, 0.10);
  --shadow-lg:   0 20px 60px rgba(34, 47, 55, 0.16);
  --transition:  0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-script: 'Great Vibes', cursive;
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Raleway', 'Helvetica Neue', Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--text);
  background: var(--cream);
  line-height: 1.8;
  overflow-x: hidden;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
address { font-style: normal; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* ===== ACCESSIBILITÉ ===== */
.sr-only, .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;
  left: -9999px;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ===== SCROLL MARGIN (offset nav fixe) ===== */
#histoire, #programme, #lieux, #galerie, #rsvp, #remerciements {
  scroll-margin-top: 72px;
}

/* ===== CONTAINER ===== */
.container       { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; }

/* ===== REVEAL AU SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== ANIMATIONS HERO ===== */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.85s ease forwards;
}
.hero__content .fade-up:nth-child(1) { animation-delay: 0.30s; }
.hero__content .fade-up:nth-child(2) { animation-delay: 0.55s; }
.hero__content .fade-up:nth-child(3) { animation-delay: 0.75s; }
.hero__content .fade-up:nth-child(4) { animation-delay: 0.90s; }
.hero__content .fade-up:nth-child(5) { animation-delay: 1.05s; }
.hero__content .fade-up:nth-child(6) { animation-delay: 1.25s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== EN-TÊTES DE SECTION ===== */
.section-header          { text-align: center; margin-bottom: 60px; }
.section-header__pre     { display: block; font-family: var(--font-script); font-size: 1.9rem; color: var(--gold-dark); margin-bottom: 6px; }
.section-header__title   { font-size: clamp(2rem, 5vw, 3rem); color: var(--dark); margin-bottom: 16px; }
.section-header__line    {
  width: 80px; height: 2px; margin: 0 auto 20px;
  background: linear-gradient(to right, var(--sage), var(--gold));
  border: none;
}
.section-header__subtitle { font-size: 0.95rem; color: var(--text-light); margin-top: 4px; }
.section-header__note    { font-size: 0.8rem; color: rgba(255,255,255,0.62); letter-spacing: 0.06em; margin-top: 6px; }

.section-header--light .section-header__title,
.section-header--light .section-header__pre   { color: var(--white); }
.section-header--light .section-header__line  { background: linear-gradient(to right, rgba(255,255,255,0.45), rgba(170,200,216,0.60)); }

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 22px 0;
  /* Voile dégradé permanent : garde la nav lisible au-dessus du hero clair */
  background: linear-gradient(to bottom, rgba(34,47,55,0.50) 0%, rgba(34,47,55,0) 100%);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(34, 47, 55, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.nav__container {
  max-width: 1200px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-script);
  font-size: 2rem; color: var(--white);
  letter-spacing: 0.03em; line-height: 1;
  text-shadow: 0 1px 12px rgba(0,0,0,0.30);
}
.nav__logo span { color: var(--gold); }
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 10px rgba(0,0,0,0.28);
  transition: color 0.3s ease;
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s ease;
}
.nav__link:hover              { color: var(--white); }
.nav__link:hover::after       { width: 100%; }
.nav__link--cta               { border: 1px solid var(--gold); color: var(--gold); padding: 8px 22px; }
.nav__link--cta::after        { display: none; }
.nav__link--cta:hover         { background: var(--gold); color: var(--dark); }
.nav__toggle                  { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__toggle span             { display: block; width: 24px; height: 1.5px; background: var(--white); transition: var(--transition); }
.nav__toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.active span:nth-child(2) { opacity: 0; }
.nav__toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.jpg');
  background-image: -webkit-image-set(
      url('../images/hero-bg.webp') 1x,
      url('../images/hero-bg.jpg') 1x);
  background-image: image-set(
      url('../images/hero-bg.webp') type('image/webp'),
      url('../images/hero-bg.jpg') type('image/jpeg'));
  background-size: cover; background-position: center 55%;
  transform: scale(1.04);
  transition: transform 10s ease;
}
.hero__bg.loaded { transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  /* Voile radial doux centré sur le texte (lisibilité) + dégradé vertical :
     haut léger pour garder la nav lisible, bas soutenu */
  background:
    radial-gradient(115% 78% at 50% 50%, rgba(34,47,55,0.62) 0%, rgba(34,47,55,0) 64%),
    linear-gradient(to bottom,
              rgba(34,47,55,0.40) 0%,
              rgba(34,47,55,0.42) 35%,
              rgba(34,47,55,0.68) 78%,
              rgba(34,47,55,0.90) 100%);
}
.hero__content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 0 24px; max-width: 900px;
}
.hero__pretext {
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(255,255,255,0.70); margin-bottom: 18px;
}
.hero__names {
  font-family: var(--font-script);
  font-weight: 400; line-height: 0.96; color: var(--white);
  text-shadow: 0 2px 40px rgba(0,0,0,0.32); margin-bottom: 22px;
  /* Prénoms empilés, « & » centré sur sa propre ligne : le « & » reste
     toujours au centre horizontal → dans l'écart entre les visages,
     jamais posé sur un visage, quel que soit le support. */
  display: flex; flex-direction: column; align-items: center; gap: 0.04em;
}
.hero__name { font-size: clamp(3.2rem, 12vw, 6.4rem); }
.hero__amp  {
  font-size: clamp(2rem, 6.5vw, 3.4rem);
  color: var(--gold); line-height: 0.8;
  text-shadow: 0 2px 30px rgba(0,0,0,0.30);
}
.hero__divider {
  display: flex; align-items: center; justify-content: center;
  gap: 18px; margin-bottom: 18px; color: var(--gold);
}
.hero__divider span { display: block; width: 60px; height: 1px; background: var(--gold); }
.hero__date {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.6rem);
  font-weight: 300; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.90); margin-bottom: 8px;
}
.hero__lieu {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.60); margin-bottom: 38px;
}

/* Countdown */
.countdown { display: flex; align-items: center; justify-content: center; gap: 10px; }
.countdown__item  { display: flex; flex-direction: column; align-items: center; min-width: 68px; }
.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300; line-height: 1; color: var(--white);
}
.countdown__label  { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.countdown__sep    { font-size: 1.8rem; color: var(--gold); line-height: 1; margin-bottom: 16px; }
.countdown__ended  { font-family: var(--font-serif); font-size: 1.4rem; color: var(--gold); }

/* Flèche scroll */
.hero__scroll {
  position: absolute; bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,0.65);
  animation: bounce 2.2s infinite;
  transition: color 0.3s ease;
}
.hero__scroll:hover { color: var(--white); }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ===================================================
   INVITATION
   =================================================== */
.invitation { padding: 100px 0; background: var(--white); text-align: center; }
.invitation__quote {
  max-width: 620px; margin: 0 auto 52px; border: none;
  padding: 0 16px;
}
.invitation__quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-style: italic; color: var(--dark); line-height: 1.6;
}
.invitation__text   { max-width: 680px; margin: 0 auto 44px; }
.invitation__text p { font-size: 1.05rem; font-weight: 400; color: var(--text-light); line-height: 2; margin-bottom: 20px; }
.invitation__text em { color: var(--gold-dark); }
.invitation__signature { font-family: var(--font-script); font-size: 2.8rem; color: var(--gold); }

/* ===================================================
   NOTRE HISTOIRE
   =================================================== */
.histoire { padding: 100px 0; background: var(--sage-bg); }
.histoire__content {
  display: grid; grid-template-columns: 1fr;
  gap: 52px; margin-bottom: 88px; align-items: start;
}
.histoire__portrait { position: relative; max-width: 430px; margin: 0 auto; }
.histoire__portrait::before {
  content: ''; position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--sage-light); z-index: 0;
}
.histoire__portrait picture { display: block; position: relative; z-index: 1; }
.histoire__portrait img {
  position: relative; z-index: 1;
  width: 100%; height: 520px;
  object-fit: cover; object-position: center 20%;
}
.histoire__text p          { font-size: 1.05rem; font-weight: 400; color: var(--text-light); line-height: 2; margin-bottom: 20px; }
.histoire__text--em        { font-family: var(--font-serif); font-size: 1.15rem !important; font-style: italic; color: var(--sage-dark) !important; }

/* Timeline */
.timeline { position: relative; max-width: 700px; margin: 0 auto; padding: 16px 0; }
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--sage) 20%, var(--gold) 80%, transparent);
  transform: translateX(-50%);
}
.timeline__item {
  display: flex; align-items: flex-start;
  gap: 32px; margin-bottom: 44px; position: relative;
}
.timeline__item:nth-child(odd)    { flex-direction: row-reverse; text-align: right; }
.timeline__dot {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ivory); border: 2px solid var(--sage);
  margin-top: 6px; flex-shrink: 0;
}
.timeline__dot--gold {
  background: var(--gold); width: 16px; height: 16px;
  box-shadow: 0 0 0 5px rgba(138, 175, 192, 0.22);
}
.timeline__content {
  width: calc(50% - 38px);
  background: var(--white);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--sage);
}
.timeline__item:nth-child(even) .timeline__content { border-top-color: var(--gold); }
.timeline__date    { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-dark); display: block; margin-bottom: 8px; }
.timeline__content h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 8px; }
.timeline__content p  { font-size: 0.92rem; font-weight: 400; color: var(--text-light); line-height: 1.8; }

/* ===================================================
   CITATION PLEIN ÉCRAN
   =================================================== */
.quote-divider {
  position: relative; padding: 110px 24px; text-align: center; overflow: hidden;
}
.quote-divider__bg {
  position: absolute; inset: 0;
  background-image: url('../images/quote-bg.jpg');
  background-image: -webkit-image-set(
      url('../images/quote-bg.webp') 1x,
      url('../images/quote-bg.jpg') 1x);
  background-image: image-set(
      url('../images/quote-bg.webp') type('image/webp'),
      url('../images/quote-bg.jpg') type('image/jpeg'));
  background-size: cover; background-position: center 50%;
  background-attachment: fixed;
}
.quote-divider__overlay { position: absolute; inset: 0; background: rgba(34, 47, 55, 0.80); }
.quote-divider__content { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.quote-divider__content p {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3.5vw, 2.2rem);
  font-style: italic; color: var(--white); line-height: 1.65; margin-bottom: 20px;
}
.quote-divider__content span {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}

/* ===================================================
   PROGRAMME
   =================================================== */
.programme { position: relative; padding: 110px 0; overflow: hidden; }
.programme__bg {
  position: absolute; inset: 0;
  background-image: url('../images/programme-bg.jpg');
  background-image: -webkit-image-set(
      url('../images/programme-bg.webp') 1x,
      url('../images/programme-bg.jpg') 1x);
  background-image: image-set(
      url('../images/programme-bg.webp') type('image/webp'),
      url('../images/programme-bg.jpg') type('image/jpeg'));
  background-size: cover; background-position: center 55%; background-attachment: fixed;
}
.programme__overlay { position: absolute; inset: 0; background: rgba(34, 47, 55, 0.84); }
.programme .container { position: relative; z-index: 2; }
.programme__timeline { max-width: 680px; margin: 0 auto; position: relative; }
.programme__timeline::before {
  content: ''; position: absolute; left: 86px; top: 0; bottom: 0;
  width: 1px; background: rgba(138, 175, 192, 0.30);
}
.programme__item {
  display: grid; grid-template-columns: 86px 20px 1fr;
  align-items: flex-start; gap: 24px; margin-bottom: 38px; position: relative;
}
.programme__time {
  font-family: var(--font-serif); font-size: 1.1rem;
  color: var(--gold); text-align: right; padding-top: 1px;
}
.programme__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); border: 2px solid rgba(138,175,192,0.40);
  margin-top: 6px; flex-shrink: 0;
}
.programme__dot::before {
  content: ''; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(138, 175, 192, 0.12);
}
.programme__info h3 { font-family: var(--font-serif); font-size: 1.2rem; color: var(--white); margin-bottom: 6px; }
.programme__info p  { font-size: 0.93rem; font-weight: 400; color: rgba(255,255,255,0.62); line-height: 1.6; }

/* Ajouter au calendrier */
.calendar-cta        { text-align: center; margin-top: 58px; }
.calendar-cta__label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 18px;
}
.calendar-cta__buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cal-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 26px; background: var(--gold); color: var(--dark);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--gold); transition: all 0.3s ease;
}
.cal-btn svg          { flex-shrink: 0; }
.cal-btn:hover        { background: var(--gold-light); border-color: var(--gold-light); color: var(--dark); }
.cal-btn--outline     { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.35); }
.cal-btn--outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); color: var(--white); }

/* ===================================================
   LES LIEUX
   =================================================== */
.lieux { padding: 100px 0; background: var(--blue-bg); }
.lieux__grid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 44px; }
.lieu-card {
  padding: 44px 36px; border: 1px solid var(--ivory-dark);
  text-align: center; transition: var(--transition); position: relative;
}
.lieu-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.lieu-card--featured { border-color: var(--gold); border-width: 2px; background: linear-gradient(150deg, #ffffff 0%, #ddeef5 100%); }
.lieu-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--white);
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 4px 18px; white-space: nowrap;
}
.lieu-card__icon     { width: 52px; height: 52px; margin: 0 auto 22px; color: var(--gold); }
.lieu-card__icon svg { width: 100%; height: 100%; }
.lieu-card h3        { font-size: 1.3rem; color: var(--dark); margin-bottom: 6px; }
.lieu-card__subtitle { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 16px; }
.lieu-card address   { font-size: 0.98rem; font-weight: 400; color: var(--text-light); line-height: 1.9; margin-bottom: 14px; }
.lieu-card__time     { font-size: 0.88rem; font-weight: 500; color: var(--text); margin-bottom: 26px; }
.lieu-card__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 26px; border: 1px solid var(--gold); color: var(--gold);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  transition: all 0.3s ease;
}
.lieu-card__btn:hover { background: var(--gold); color: var(--dark); }
.lieux__trajet {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--white); padding: 24px 28px;
  border-left: 3px solid var(--sage);
  max-width: 620px; margin: 0 auto;
  box-shadow: var(--shadow);
}
.lieux__trajet svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.lieux__trajet p   { font-size: 0.98rem; font-weight: 400; color: var(--text); line-height: 1.8; }
.lieux__trajet small { display: block; font-size: 0.88rem; color: var(--text-light); margin-top: 5px; }

/* ===================================================
   GALERIE
   =================================================== */
.galerie { padding: 100px 0; background: var(--blue-bg); }
.galerie__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 240px;
  gap: 8px;
}
.galerie__item--tall { grid-row: span 2; }
.galerie__item {
  position: relative; overflow: hidden;
  cursor: pointer; background: var(--ivory-dark);
}
.galerie__item picture { display: block; width: 100%; height: 100%; }
.galerie__item img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 25%;
  transition: transform 0.65s ease;
}
.galerie__item:hover img            { transform: scale(1.07); }
.galerie__overlay {
  position: absolute; inset: 0;
  background: rgba(34, 47, 55, 0);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s ease;
}
.galerie__overlay span { font-size: 2.2rem; color: var(--white); opacity: 0; transition: opacity 0.4s ease; }
.galerie__item:hover .galerie__overlay            { background: rgba(82, 125, 148, 0.45); }
.galerie__item:hover .galerie__overlay span       { opacity: 1; }
.galerie__item--placeholder { cursor: default; }
.galerie__placeholder-inner {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; gap: 14px;
  color: var(--text-light);
}
.galerie__placeholder-inner span {
  font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===================================================
   BIENVENUE
   =================================================== */
.bienvenue { padding: 110px 0; background: linear-gradient(160deg, #33454f 0%, #3d5464 55%, #384c58 100%); text-align: center; }
.bienvenue__content { max-width: 680px; margin: 0 auto; }
.bienvenue__content h2 {
  font-family: var(--font-script);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--gold); margin-bottom: 36px;
}
.bienvenue__content p  { font-size: 1.05rem; font-weight: 400; color: rgba(255,255,255,0.82); line-height: 2; margin-bottom: 20px; }
.bienvenue__signature  { font-family: var(--font-serif); font-size: 1.15rem; color: rgba(255,255,255,0.42); margin-top: 36px !important; }
.bienvenue__signature em {
  font-family: var(--font-script);
  font-size: 2.2rem; color: var(--gold);
  display: block; margin-top: 8px;
}

/* ===================================================
   FORMULAIRE RSVP
   =================================================== */
.rsvp { padding: 100px 0; background: var(--white); }
.rsvp-form { max-width: 780px; margin: 0 auto; }

.form-section {
  border: none; padding: 0; margin-bottom: 44px;
}
.form-section legend {
  font-family: var(--font-serif); font-size: 1.3rem;
  color: var(--dark);
  padding-bottom: 20px; margin-bottom: 26px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, var(--sage), var(--gold), transparent) 1;
  width: 100%; display: flex; align-items: center; gap: 16px;
}
.form-section__num {
  font-family: var(--font-sans); font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.10em; color: var(--white);
  background: var(--sage); border: 1px solid var(--sage);
  width: 28px; height: 28px; display: inline-flex;
  align-items: center; justify-content: center; flex-shrink: 0;
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group--full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--text);
}
.form-hint {
  font-weight: 400; text-transform: none;
  letter-spacing: 0; font-size: 0.88rem; color: var(--text-light);
}
.req { color: var(--gold); font-weight: 700; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%; padding: 13px 16px;
  background: var(--cream); border: 1px solid var(--ivory-dark);
  border-radius: 0;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 400;
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(138, 175, 192, 0.15);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid { border-color: #c0392b; }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238aafc0' stroke-width='1.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 20px;
  padding-right: 40px;
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* Radio cards */
.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-card input, .checkbox-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card__inner, .checkbox-card__inner {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 22px; border: 1px solid var(--ivory-dark);
  background: var(--cream); cursor: pointer; font-size: 0.98rem; font-weight: 400;
  transition: all 0.3s ease; user-select: none;
}
.radio-card__inner svg, .checkbox-card__inner svg { color: var(--gold); flex-shrink: 0; }
.radio-card input:checked  + .radio-card__inner,
.checkbox-card input:checked + .checkbox-card__inner {
  border-color: var(--gold); background: rgba(138, 175, 192, 0.10); color: var(--dark);
}
.radio-card__inner:hover, .checkbox-card__inner:hover { border-color: var(--gold-light); }
.radio-card--sm .radio-card__inner { padding: 10px 16px; font-size: 0.85rem; }

/* Toggle switch */
.moments-grid { display: flex; flex-direction: column; gap: 12px; }
.moment-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--cream); border: 1px solid var(--ivory-dark);
}
.moment-toggle__label {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; font-weight: 400; color: var(--text);
}
.moment-toggle__label svg { color: var(--gold); flex-shrink: 0; }
.toggle { position: relative; display: inline-block; width: 48px; height: 26px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle__slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: var(--ivory-dark); border-radius: 26px; transition: 0.4s;
}
.toggle__slider::before {
  content: ''; position: absolute;
  height: 18px; width: 18px; left: 4px; bottom: 4px;
  background: var(--white); border-radius: 50%; transition: 0.4s;
}
.toggle input:checked + .toggle__slider               { background-color: var(--sage); }
.toggle input:checked + .toggle__slider::before       { transform: translateX(22px); }

/* Participation */
.participation-info {
  background: var(--cream); border: 1px solid var(--ivory-dark); padding: 28px 30px;
}
.participation-info p     { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }
.participation-options    { display: flex; flex-wrap: wrap; gap: 16px; }
.participation-option {
  flex: 1; min-width: 200px;
  background: var(--white); border: 1px solid var(--ivory-dark);
  padding: 18px 22px; display: flex; flex-direction: column; gap: 6px;
}
.participation-option strong {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--dark);
}
.participation-option span { font-size: 0.9rem; color: var(--text-light); }
.participation-option em   { font-size: 0.82rem; font-style: italic; color: var(--text-light); }

/* Checkbox inline (hébergement) */
.checkbox-inline {
  display: flex; align-items: flex-start; gap: 14px;
  cursor: pointer; padding: 16px 18px;
  border: 1px solid var(--ivory-dark); background: var(--cream);
  transition: border-color 0.3s ease;
}
.checkbox-inline:hover { border-color: var(--gold-light); }
.checkbox-inline input {
  margin-top: 3px; flex-shrink: 0;
  width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer;
}
.checkbox-inline span    { font-size: 0.98rem; font-weight: 400; color: var(--text); }
.checkbox-inline small   { display: block; font-size: 0.86rem; color: var(--text-light); margin-top: 4px; }

/* Transitions sections conditionnelles */
.presence-details {
  overflow: hidden;
  max-height: 0; opacity: 0;
  transition: max-height 0.75s ease, opacity 0.55s ease;
}
.presence-details.open { opacity: 1; /* max-height set by JS */ }

/* Message d'erreur */
.field-error {
  display: block; color: #c0392b;
  font-size: 0.78rem; font-weight: 500; margin-top: 5px;
}

/* Bouton Soumettre */
.form-submit { text-align: center; padding-top: 28px; }
.btn-submit {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 52px;
  background: var(--dark); color: var(--white); border: none;
  font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background 0.4s ease;
}
.btn-submit::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px;
  background: linear-gradient(to right, var(--sage), var(--gold));
  transition: width 0.45s ease;
}
.btn-submit:hover              { background: var(--dark-2); }
.btn-submit:hover::after       { width: 100%; }
.btn-submit:disabled           { opacity: 0.55; cursor: not-allowed; }
.btn-submit:disabled::after    { display: none; }
.form-note { font-size: 0.78rem; color: var(--text-light); margin-top: 18px; }

/* ===================================================
   REMERCIEMENTS
   =================================================== */
.remerciements { padding: 100px 0; background: var(--sage-bg); text-align: center; }
.remerciements__content { max-width: 620px; margin: 0 auto 64px; }
.remerciements__title   { font-family: var(--font-script); font-size: clamp(2.5rem, 7vw, 4.5rem); color: var(--gold); margin-bottom: 36px; }
.remerciements__content p { font-size: 1.05rem; font-weight: 400; color: var(--text-light); line-height: 2; margin-bottom: 20px; }
.remerciements__ending  { font-family: var(--font-serif); font-size: 1.15rem !important; font-style: italic; color: var(--text) !important; }
.remerciements__sign    { font-family: var(--font-script); font-size: 2.8rem !important; color: var(--gold) !important; margin-top: 16px !important; }
.remerciements__contacts h3  { font-family: var(--font-serif); font-size: 1.15rem; color: var(--text); margin-bottom: 26px; }
.contacts-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 520px; margin: 0 auto; }
.contact-card  { background: var(--white); border: 1px solid var(--ivory-dark); padding: 26px; display: flex; flex-direction: column; gap: 9px; }
.contact-card strong { font-family: var(--font-serif); font-size: 1.15rem; color: var(--dark); }
.contact-card a      { font-size: 0.98rem; color: var(--text-light); transition: color 0.3s ease; }
.contact-card a:hover { color: var(--gold); }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--dark); padding: 44px 24px; text-align: center;
  color: rgba(255,255,255,0.38); font-size: 0.78rem; letter-spacing: 0.10em;
  border-top: 3px solid var(--sage-dark);
}
.footer p + p  { margin-top: 8px; }
.footer__sub   { font-size: 0.75rem; }
.footer__sub span { color: var(--gold); }

/* ===================================================
   LIGHTBOX
   =================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(20, 29, 35, 0.97);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.35s ease;
}
.lightbox.is-open  { opacity: 1; }
.lightbox[hidden]  { display: none; }
.lightbox__content {
  max-width: 90vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  transform: scale(0.94); transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
}
.lightbox.is-open .lightbox__content { transform: scale(1); }
.lightbox__content img {
  max-width: 90vw; max-height: 82vh; object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox__caption {
  color: rgba(255,255,255,0.72); font-size: 0.82rem;
  letter-spacing: 0.06em; text-align: center; max-width: 80vw;
}
.lightbox__counter {
  position: absolute; top: 24px; left: 24px;
  color: rgba(255,255,255,0.60); font-size: 0.78rem;
  letter-spacing: 0.14em; font-variant-numeric: tabular-nums;
}
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute; background: none;
  border: 1px solid rgba(255,255,255,0.20); color: var(--white);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.lightbox__close { top: 20px; right: 20px; width: 44px; height: 44px; font-size: 1.6rem; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; font-size: 1.9rem; }
.lightbox__prev  { left: 20px; }
.lightbox__next  { right: 20px; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.55);
}

/* ===================================================
   BARRE DE PROGRESSION · SCROLL-SPY · RETOUR EN HAUT
   =================================================== */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  z-index: 1100;
  background: linear-gradient(to right, var(--sage), var(--gold));
  transition: width 0.12s linear;
}

.nav__link.active            { color: var(--white); }
.nav__link.active::after     { width: 100%; }
.nav__link--cta.active       { background: var(--gold); color: var(--dark); }
.nav__link--cta.active::after { display: none; }

.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 1050;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34, 47, 55, 0.92); color: var(--white);
  border: 1px solid rgba(255,255,255,0.16); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.3s ease,
              color 0.3s ease, visibility 0.35s;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover   { background: var(--gold); color: var(--dark); border-color: var(--gold); }

/* Timeline — apparition séquentielle des étapes */
.timeline__item {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.timeline.revealed .timeline__item                { opacity: 1; transform: none; }
.timeline.revealed .timeline__item:nth-child(1)   { transition-delay: 0.05s; }
.timeline.revealed .timeline__item:nth-child(2)   { transition-delay: 0.18s; }
.timeline.revealed .timeline__item:nth-child(3)   { transition-delay: 0.31s; }
.timeline.revealed .timeline__item:nth-child(4)   { transition-delay: 0.44s; }

/* ===================================================
   RESPONSIVE — Tablet (640px+)
   =================================================== */
@media (min-width: 640px) {
  .form-grid        { grid-template-columns: 1fr 1fr; }
  .contacts-grid    { grid-template-columns: 1fr 1fr; }
  .lieux__grid      { grid-template-columns: 1fr 1fr; }
  .galerie__grid    { grid-template-columns: repeat(3, 1fr); }
  .moments-grid     { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .histoire__content { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ===================================================
   RESPONSIVE — Desktop (1024px+)
   =================================================== */
@media (min-width: 1024px) {
  .nav__toggle  { display: none; }
  .nav__menu    { display: flex !important; }
  .galerie__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
  .galerie__item--tall { grid-row: span 2; }
}

/* ===================================================
   RESPONSIVE — Mobile (max 1023px)
   =================================================== */
@media (max-width: 1023px) {
  .nav__toggle { display: flex; }
  .nav__menu {
    display: none;
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: var(--dark);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 44px; z-index: -1;
  }
  .nav__menu.active { display: flex; z-index: 999; }
  .nav__link        { font-size: 1rem; color: var(--white); }
  .nav__link--cta   { font-size: 0.95rem; }

  /* Timeline mobile */
  .timeline::before { left: 14px; }
  .timeline__item,
  .timeline__item:nth-child(odd) { flex-direction: column; padding-left: 48px; text-align: left; }
  .timeline__dot    { left: 14px; top: 4px; transform: none; position: absolute; }
  .timeline__content { width: 100%; }

  /* Programme mobile */
  .programme__timeline::before { left: 58px; }
  .programme__item  { grid-template-columns: 58px 16px 1fr; gap: 14px; }
}

/* ===================================================
   RESPONSIVE — Petits mobiles (max 480px)
   =================================================== */
@media (max-width: 480px) {
  .countdown       { gap: 5px; }
  .countdown__item { min-width: 52px; }
  .countdown__sep  { font-size: 1.4rem; }
  .hero__name      { font-size: 2.9rem; }
  .radio-group     { flex-direction: column; }
  .radio-card__inner { padding: 12px 16px; }
  .galerie__grid   { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
}

/* ===================================================
   PREFERS-REDUCED-MOTION
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero__bg              { background-attachment: scroll; }
  .programme__bg         { background-attachment: scroll; }
  .quote-divider__bg     { background-attachment: scroll; }
  .reveal                { opacity: 1; transform: none; }
  .timeline__item        { opacity: 1; transform: none; }
}
