/* =============================================
   DESIGN SYSTEM — TOKENS
   ============================================= */
:root {
  /* — Couleurs — */
  --c-cream:        #FAFAF7;
  --c-cream-alt:    #F2F2ED;
  --c-peach:        #F09771;
  --c-sage:         #8BB5A1;
  --c-sage-mid:     #5F9282;
  --c-sage-dark:    #42705A;
  --c-forest:       #1C3830;
  --c-anthracite:   #2A2A28;
  --c-text:         #2A2A28;
  --c-text-muted:   #888884;
  --c-border:       rgba(42, 42, 40, 0.1);
  --c-white:        #ffffff;

  /* — Gradients réutilisables — */
  --grad-peach:      linear-gradient(218deg, rgba(240,151,113,0.75) 0%, rgba(240,151,113,0.22) 45%, transparent 70%);
  --grad-peach-soft: linear-gradient(218deg, rgba(240,151,113,0.10) 0%, transparent 55%);

  /* — Typographie — */
  --f-script: 'Allura', cursive;
  --f-body:   'Jost', sans-serif;

  --t-xs:     0.72rem;
  --t-sm:     0.88rem;
  --t-base:   1.05rem;
  --t-md:     1.15rem;
  --t-lg:     1.3rem;
  --t-xl:     1.6rem;
  --t-hero:   clamp(4rem, 6.5vw, 6.5rem);
  --t-title:  clamp(2.8rem, 5vw, 4.2rem);

  /* — Espacements — */
  --sp-2:  8px;
  --sp-3:  12px;
  --sp-4:  16px;
  --sp-5:  20px;
  --sp-6:  24px;
  --sp-8:  32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
  --sp-20: 80px;
  --sp-24: 96px;

  /* — Layout — */
  --max-w:        1200px;
  --max-w-narrow: 760px;
  --r-sm:   8px;
  --r:      16px;
  --r-lg:   24px;

  /* — Effets — */
  --shadow-sm: 0 2px 12px rgba(28,56,48,0.06);
  --shadow:    0 4px 28px rgba(28,56,48,0.09);
  --shadow-lg: 0 16px 56px rgba(28,56,48,0.13);
  --ease:      0.3s ease;
  --ease-slow: 0.6s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: var(--t-base);
  color: var(--c-text);
  background: var(--c-cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* =============================================
   NAVIGATION
   ============================================= */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background var(--ease), box-shadow var(--ease);
}

#nav.scrolled {
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--c-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--ease);
}

#nav.scrolled .nav-inner { padding-top: var(--sp-4); padding-bottom: var(--sp-4); }

.nav-logo {
  font-family: var(--f-script);
  font-size: 2rem;
  color: var(--c-forest);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--sp-8);
}

.nav-links a {
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  transition: color var(--ease);
}

.nav-links a:hover { color: var(--c-forest); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--sp-2);
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--c-forest);
  transition: var(--ease);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--c-cream);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open { transform: translateY(0); }

.mobile-link {
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-forest);
}

/* =============================================
   HERO — PHOTO BORD À BORD + GRADIENT PEACH DROITE
   ============================================= */
.hero {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Photo plein écran, cadre en haut, coupe en bas si besoin */
.hero-photo {
  position: absolute;
  inset: 0;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* Gradient en overlay PLEIN ÉCRAN — fondu sans démarcation */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(240, 151, 113, 0.88) 0%,
    rgba(240, 151, 113, 0.65) 20%,
    rgba(240, 151, 113, 0.28) 42%,
    rgba(240, 151, 113, 0.06) 60%,
    transparent 75%
  );
  pointer-events: none;
  z-index: 1;
}

/* Contenu texte en overlay à droite, sur le gradient */
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: var(--sp-5);
  width: 46%;
  min-height: 100svh;
  padding: var(--sp-24) var(--sp-16) var(--sp-24) var(--sp-12);
  background: none;
}

/* Ombre portée sur tous les textes du hero pour lisibilité sur fonds clairs */
.hero-content > * {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.22), 0 0 32px rgba(0, 0, 0, 0.12);
}


.hero-eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.hero-title {
  font-family: var(--f-script);
  font-size: var(--t-hero);
  color: white;
  line-height: 1.05;
}

.hero-divider {
  width: 52px;
  height: 1px;
  background: rgba(255, 255, 255, 0.55);
  margin: var(--sp-2) 0;
}

.hero-date {
  font-size: var(--t-lg);
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.92);
}

.hero-location {
  font-size: var(--t-base);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.hero-subtitle {
  font-size: var(--t-base);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  max-width: 340px;
  margin-top: var(--sp-2);
}

.hero-scroll {
  position: absolute;
  bottom: var(--sp-8);
  right: 50%;
  transform: translateX(50%);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  animation: bounce 2.5s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(50%) translateY(0); }
  50%       { transform: translateX(50%) translateY(7px); }
}

.hero-content > * {
  animation: fadeUp 0.9s ease both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.15s; }
.hero-content > *:nth-child(2) { animation-delay: 0.25s; }
.hero-content > *:nth-child(3) { animation-delay: 0.32s; }
.hero-content > *:nth-child(4) { animation-delay: 0.38s; }
.hero-content > *:nth-child(5) { animation-delay: 0.44s; }
.hero-content > *:nth-child(6) { animation-delay: 0.5s; }
.hero-content > *:nth-child(7) { animation-delay: 0.58s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   BOUTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 15px 36px;
  border-radius: 100px;
  font-family: var(--f-body);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--c-forest);
  color: var(--c-cream);
  box-shadow: 0 4px 18px rgba(28,56,48,0.30);
}
.btn-primary:hover {
  background: #122820;
  box-shadow: 0 8px 28px rgba(28,56,48,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--c-forest);
  border: 1.5px solid rgba(28,56,48,0.22);
}
.btn-outline:hover {
  background: rgba(240,151,113,0.08);
  border-color: var(--c-peach);
}

.btn-light {
  background: var(--c-white);
  color: var(--c-anthracite);
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
}
.btn-light:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.16); }

/* =============================================
   LABELS & TITRES DE SECTION
   ============================================= */
.section-label {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-peach);
  margin-bottom: var(--sp-3);
}

.section-title {
  font-family: var(--f-script);
  font-size: var(--t-title);
  color: var(--c-forest);
  line-height: 1.15;
  font-weight: 400;
}

.section-title-light { color: rgba(255,255,255,0.92); }

.section-header {
  text-align: center;
  margin-bottom: var(--sp-16);
}

/* =============================================
   LAYOUT — SECTIONS TYPES
   ============================================= */

/* Full-screen section centrée */
.section-full {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--sp-24) var(--sp-6);
}

.section-full.section-alt {
  background: var(--c-cream-alt);
}

.section-full.section-contact {
  background: var(--c-anthracite);
  color: var(--c-white);
}

/* Section split (landing) — photo + texte */
.section-split {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
  padding: var(--sp-24) var(--sp-16) var(--sp-24) var(--sp-20);
  background: var(--grad-peach-soft), var(--c-cream);
}

.split-text .section-label { color: var(--c-peach); }

.split-text p {
  font-size: var(--t-base);
  font-weight: 300;
  line-height: 1.85;
  color: var(--c-text);
  max-width: 480px;
}

.split-photo {
  overflow: hidden;
  position: relative;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-slow);
}

.split-photo:hover img { transform: scale(1.03); }

.container        { max-width: var(--max-w); margin: 0 auto; }
.container-narrow { max-width: var(--max-w-narrow); margin: 0 auto; }

/* =============================================
   CHÂTEAU — LOGO & ADRESSE
   ============================================= */
.location-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-sage-dark);
  padding: var(--sp-3) var(--sp-4);
  margin-left: calc(-1 * var(--sp-4));
  border-radius: var(--r-sm);
  width: fit-content;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}
.location-link:hover {
  color: var(--c-forest);
  background: rgba(240, 151, 113, 0.10);
  transform: translateX(4px);
}
.location-link svg {
  transition: transform var(--ease);
  flex-shrink: 0;
}
.location-link:hover svg {
  transform: scale(1.2);
}

.chateau-logo-link {
  display: block;
  width: fit-content;
  margin: var(--sp-4) auto 0;
  transition: opacity var(--ease), transform var(--ease);
}
.chateau-logo-link:hover {
  opacity: 0.6;
  transform: scale(1.08);
}

.chateau-logo {
  width: 52px;
  opacity: 0.28;
  filter: saturate(0);
  display: block;
}

/* =============================================
   PROGRAMME — TIMELINE
   ============================================= */
.timeline {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

.timeline-day-header {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.timeline-day-line   { flex: 1; height: 1px; background: var(--c-border); }

.timeline-day-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-muted);
  white-space: nowrap;
}

.timeline-events { display: flex; flex-direction: column; position: relative; }

.timeline-event {
  display: grid;
  grid-template-columns: 80px 28px 1fr;
  gap: 0 var(--sp-6);
  align-items: flex-start;
  position: relative;
}

.timeline-events .timeline-event:not(:last-child)::after {
  content: '';
  position: absolute;
  left: calc(80px + var(--sp-6) + 13px);
  top: 22px;
  bottom: -12px;
  width: 1px;
  background: var(--c-border);
}

.timeline-time {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-peach);
  padding-top: 2px;
  text-align: right;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-cream-alt);
  border: 2px solid var(--c-sage);
  margin-top: 5px;
  justify-self: center;
}

.timeline-card { padding: 0 0 var(--sp-10); }

.timeline-card h3 {
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--c-forest);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.timeline-icon {
  flex-shrink: 0;
  color: var(--c-forest);
}

.timeline-card p {
  font-size: var(--t-base);
  font-weight: 300;
  color: var(--c-text-muted);
  line-height: 1.75;
}

/* =============================================
   GALERIE — CAROUSEL 3 LIGNES + FLÈCHES
   ============================================= */
.section-galerie {
  background: var(--c-anthracite);
  padding: var(--sp-24) 0;
  overflow: hidden;
}

.galerie-header {
  text-align: center;
  margin-bottom: var(--sp-12);
  padding: 0 var(--sp-6);
}

.galerie-header .section-label { color: var(--c-sage); }

.gallery-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 0 var(--sp-6);
}

.gallery-viewport {
  flex: 1;
  overflow: hidden;
}

.gallery-track {
  display: grid;
  grid-template-rows: repeat(2, 230px);
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 6px);
  gap: 8px;
  will-change: transform;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--c-anthracite);
}

.gallery-item--tall { grid-row: 1 / 3; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* Flèches */
.gallery-arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), transform 0.2s ease;
  backdrop-filter: blur(8px);
}

.gallery-arrow:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.4);
  color: white;
  transform: scale(1.08);
}

.gallery-arrow:disabled {
  opacity: 0.2;
  cursor: default;
  transform: none;
}

/* =============================================
   HÉBERGEMENTS — CARDS
   ============================================= */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  max-width: 900px;
  margin: 0 auto;
}

.card {
  background: var(--c-white);
  border-radius: var(--r);
  padding: var(--sp-12) var(--sp-10);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: transform var(--ease), box-shadow var(--ease);
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.card-icon { font-size: 2.2rem; line-height: 1; }

.card h3 {
  font-size: var(--t-lg);
  font-weight: 500;
  color: var(--c-forest);
}

.card p {
  font-size: var(--t-base);
  font-weight: 300;
  color: var(--c-text-muted);
  line-height: 1.8;
}

.card p strong { color: var(--c-text); font-weight: 500; }
.card .btn { align-self: flex-start; margin-top: auto; }

.card--photos { padding-top: 0; overflow: hidden; }

.card-photos-placeholder {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 100px);
  gap: 4px;
  margin: 0 calc(-1 * var(--sp-10)) var(--sp-8);
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
}

.card-photos-placeholder img:first-child,
.card-photos-placeholder .photo-slot:first-child {
  grid-row: 1 / 4;
}

.photo-slot,
.card-photos-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--c-cream-alt);
}

.photo-slot {
  background: linear-gradient(135deg, var(--c-cream-alt) 0%, #e8e8e3 100%);
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
}

.price-amount {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--c-forest);
  font-family: var(--f-body);
}

.price-detail {
  font-size: var(--t-sm);
  color: var(--c-text-muted);
  font-weight: 300;
}

.card-price-gap {
  min-height: 2.2rem; /* aligne avec la hauteur de .card-price */
}

.card-note {
  font-size: var(--t-sm) !important;
  color: var(--c-peach) !important;
  font-style: italic;
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: auto;
}

/* =============================================
   FAQ
   ============================================= */
.faq-photo {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-12);
  max-height: 380px;
}

.faq-photo img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}


.split-text--faq {
  justify-content: flex-start;
  padding-top: var(--sp-20);
  padding-bottom: var(--sp-20);
  gap: var(--sp-10);
}

.faq-list { display: flex; flex-direction: column; }

.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item:first-child { border-top: 1px solid var(--c-border); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-size: var(--t-md);
  font-weight: 400;
  color: var(--c-text);
  text-align: left;
  transition: color var(--ease);
}

.faq-question:hover { color: var(--c-forest); }

.faq-icon {
  flex-shrink: 0;
  color: var(--c-sage-mid);
  transition: transform var(--ease);
}

.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}

.faq-answer.open { grid-template-rows: 1fr; }

.faq-answer-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: padding-bottom 0.35s ease;
}

.faq-answer.open .faq-answer-inner { padding-bottom: var(--sp-6); }

.faq-answer-inner p {
  font-size: var(--t-base);
  font-weight: 300;
  color: var(--c-text-muted);
  line-height: 1.85;
}

.faq-answer-inner p strong { color: var(--c-text); font-weight: 500; }

/* =============================================
   CONTACT
   ============================================= */
.contact-intro {
  text-align: center;
  font-size: var(--t-md);
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--sp-10);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}

.contact-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r);
  padding: var(--sp-10);
  text-align: center;
  transition: background var(--ease);
}

.contact-card:hover { background: rgba(255,255,255,0.12); }

.contact-name {
  font-family: var(--f-script);
  font-size: 2.4rem;
  color: var(--c-white);
  margin-bottom: var(--sp-3);
}

.contact-detail {
  font-size: var(--t-md);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.06em;
  transition: color var(--ease);
}

.contact-detail:hover { color: var(--c-white); }

.contact-rsvp {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
}

.contact-rsvp p {
  font-size: var(--t-sm);
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--c-forest);
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
}

.footer-logo {
  width: 28px;
  opacity: 0.3;
  filter: brightness(10);
  margin-bottom: var(--sp-2);
}

.footer-names {
  font-family: var(--f-script);
  font-size: var(--t-xl);
  color: rgba(255,255,255,0.75);
}

.footer-sub {
  font-size: var(--t-xs);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .gallery-track { grid-auto-columns: calc(33.333% - 6px); }
}

@media (max-width: 900px) {
  /* Hero mobile : gradient couvre tout, contenu en bas */
  .hero {
    align-items: flex-end;
    justify-content: center;
  }

  .hero::after {
    background: linear-gradient(
      to top,
      rgba(240, 151, 113, 0.90) 0%,
      rgba(240, 151, 113, 0.48) 38%,
      rgba(240, 151, 113, 0.08) 62%,
      transparent 80%
    );
  }

  .hero-content {
    width: 100%;
    min-height: unset;
    align-items: center;
    text-align: center;
    padding: var(--sp-12) var(--sp-6) var(--sp-16);
    background: none;
  }

.hero-subtitle { max-width: 380px; }
  .hero-scroll { bottom: var(--sp-4); }

  /* Section split mobile : empilé */
  .section-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .split-photo { min-height: 50svh; }
  .split-photo img { object-fit: cover; }

  .split-text {
    padding: var(--sp-16) var(--sp-6);
  }

  .split-text p { max-width: 100%; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .nav-inner { padding: var(--sp-4) var(--sp-5); }

  .section-full { padding: var(--sp-16) var(--sp-5); }
  .section-header { margin-bottom: var(--sp-10); }

  .gallery-track {
    grid-auto-columns: calc(50% - 4px);
    grid-template-rows: repeat(2, 160px);
  }

  .gallery-arrow { width: 40px; height: 40px; font-size: 1rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .timeline-event { grid-template-columns: 72px 24px 1fr; gap: 0 var(--sp-3); }
  .timeline-events .timeline-event:not(:last-child)::after {
    left: calc(72px + var(--sp-3) + 11px);
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 3.2rem; }
  .card { padding: var(--sp-8) var(--sp-6); }

  .gallery-track {
    grid-auto-columns: calc(50% - 4px);
    grid-template-rows: repeat(2, 130px);
  }

  .gallery-wrapper { padding: 0 var(--sp-3); gap: var(--sp-2); }
}

/* =============================================
   MODALE RSVP
   ============================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 18, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay[hidden] { display: none; }

.modal-overlay.is-open {
  opacity: 1;
}

.modal-inner {
  position: relative;
  width: 100%;
  max-width: 660px;
  height: min(800px, 90vh);
  background: rgba(250, 250, 247, 0.82);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 2px 0 rgba(255,255,255,0.6) inset;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-open .modal-inner {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(42,42,40,0.12);
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-anthracite);
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close:hover { background: rgba(255,255,255,0.9); }

.modal-iframe {
  position: absolute;
  width: calc(100% / 0.9);
  height: calc(100% / 0.9);
  left: 50%;
  top: 0;
  transform: translateX(-50%) scale(0.9);
  transform-origin: top center;
  border: none;
}
