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

:root {
  --cream:      #faf8f4;
  --ivory:      #f5f0e8;
  --beige:      #e8dfd0;
  --sage:       #8a9e8a;
  --sage-light: #b5c4b5;
  --sage-dark:  #5f7a5f;
  --gold:       #c9a96e;
  --gold-light: #e8d5b0;
  --text:       #3a3028;
  --text-light: #7a6e65;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
  font-weight: 300;
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL
   Les éléments .reveal sont VISIBLES par défaut.
   Quand JS tourne, la classe .js-ready sur <html>
   active les animations CSS — sans JS tout reste visible.
═══════════════════════════════════════════ */
.reveal { opacity: 1; transform: none; }

.js-ready .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s cubic-bezier(.22,.61,.36,1),
              transform 0.85s cubic-bezier(.22,.61,.36,1);
}
.js-ready .reveal.visible { opacity: 1; transform: translateY(0); }
.js-ready .d1 { transition-delay: 0.10s; }
.js-ready .d2 { transition-delay: 0.22s; }
.js-ready .d3 { transition-delay: 0.34s; }
.js-ready .d4 { transition-delay: 0.46s; }

/* ═══════════════════════════════════════════
   ORNEMENT & LABELS
═══════════════════════════════════════════ */
.ornament {
  display: flex; align-items: center; gap: 14px;
  justify-content: center; margin: 0 auto 28px;
  color: var(--gold); letter-spacing: 0.18em;
  font-size: 0.62rem; font-family: 'Jost', sans-serif;
  font-weight: 400; 
}
.ornament::before, .ornament::after {
  content: ''; display: block; height: 1px; width: 48px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament::after { background: linear-gradient(90deg, var(--gold), transparent); }

.section-label {
  font-family: 'Jost', sans-serif; font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--sage-dark);
  margin-bottom: 16px; display: block;
}

/* ═══════════════════════════════════════════
   NAV
═══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 40px;
  transition: background 0.4s, padding 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(250,248,244,0.96);
  backdrop-filter: blur(14px);
  padding: 13px 40px;
  box-shadow: 0 1px 0 var(--beige);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 1.25rem; font-weight: 300; color: var(--text); text-decoration: none;
}
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-light); text-decoration: none;
  transition: color 0.25s; font-weight: 400;
}
.nav-links a:hover { color: var(--gold); }
.nav-rsvp {
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text); text-decoration: none; border: 1px solid var(--beige);
  padding: 8px 20px; transition: border-color 0.25s, color 0.25s;
  font-weight: 400; display: none;
}
nav.scrolled .nav-rsvp { display: block; }
.nav-rsvp:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 700px) {
  .nav-links { display: none; }
  nav, nav.scrolled { padding: 16px 24px; }
}

/* ═══════════════════════════════════════════
   HERO — SPLIT LAYOUT
═══════════════════════════════════════════ */
#hero {
  min-height: 100svh; position: relative;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}

/* Panneau gauche — photo */
.hero-portrait {
  position: relative; background: #d8cfc0;
  overflow: hidden; min-height: 100svh;
}
.hero-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
/* Fallback quand aucune image n'est définie */
.hero-photo-fallback {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(160deg, #d8cfc0 0%, #e8dfd0 55%, #d4c9b8 100%);
  color: var(--sage-dark);
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: .82rem; letter-spacing: .08em;
}
.fallback-sub {
  font-family: 'Courier New', monospace;
  font-size: .70rem; color: var(--gold);
  background: rgba(201,169,110,.12);
  padding: 4px 12px; letter-spacing: .04em;
}
/* Overlay dégradé sur la photo : léger assombrissement bas + haut */
.hero-photo-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom,
      rgba(0,0,0,.08) 0%,
      transparent 30%,
      transparent 65%,
      rgba(0,0,0,.32) 100%);
}
/* Cadre doré */
.hero-portrait::after {
  content: ''; position: absolute; inset: 24px;
  border: 1px solid rgba(201,169,110,.38);
  pointer-events: none; z-index: 3;
}

/* Bouton Google Maps */
.map-cta {
  margin-top: 40px; text-align: center;
}
.btn-maps {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cream); color: var(--text);
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 16px 32px; text-decoration: none;
  border: 1px solid var(--beige);
  position: relative; overflow: hidden;
  transition: color .35s, border-color .35s;
}
.btn-maps::after {
  content: ''; position: absolute; inset: 0;
  background: var(--text); transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.77,0,.18,1);
}
.btn-maps:hover { color: var(--cream); border-color: var(--text); }
.btn-maps:hover::after { transform: translateX(0); }
.btn-maps svg, .btn-maps span { position: relative; z-index: 1; }
.portrait-caption {
  position: absolute; bottom: 44px; left: 50%; transform: translateX(-50%);
  z-index: 4; white-space: nowrap; text-align: center;
  font-family: 'Jost', sans-serif; font-size: 0.58rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sage-dark); font-weight: 400;
  opacity: 0; animation: fadeIn 1s 1.9s forwards;
}

/* Panneau droit — texte */
.hero-text-panel {
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  padding: 80px 64px 80px 60px;
  background: var(--cream); position: relative; z-index: 1;
}
.hero-text-panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 85% 85%, rgba(138,158,138,.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(201,169,110,.07) 0%, transparent 55%);
}
.hero-content { position: relative; z-index: 2; max-width: 460px; }

.hero-eyebrow {
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 28px;
  opacity: 0; animation: fadeUp .9s .3s forwards;
}
.hero-names {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(4.8rem, 7vw, 7.8rem); line-height: 1.04;
  color: var(--text); letter-spacing: -0.01em; margin-bottom: 16px; text-align: left;
  opacity: 0; animation: fadeUp 1s .55s forwards;
}
.hero-names em { font-style: italic; color: var(--gold); }
.ampersand {
  display: block; font-size: .72em; color: var(--sage);
  line-height: .9; font-style: italic; font-weight: 300;
}
.hero-date-line {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; margin: 26px 0;
  opacity: 0; animation: fadeUp .9s .8s forwards;
}
.hero-date-line span {
  font-family: 'Jost', sans-serif; font-weight: 200; font-size: .70rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--text-light);
}
.hero-date-line .dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold); flex-shrink: 0;
}
.hero-quote {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.2rem); color: var(--text-light);
  font-weight: 300; line-height: 1.75; margin-bottom: 40px; text-align: left;
  opacity: 0; animation: fadeUp .9s 1.0s forwards;
}
.hero-cta { opacity: 0; animation: fadeUp .9s 1.2s forwards; display: flex; justify-content: start; }

.hero-scroll {
  position: absolute; bottom: 36px; right: 40px; z-index: 10;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeIn 1s 2s forwards;
}
.hero-scroll span {
  font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-light);
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@media (max-width: 860px) {
  #hero { grid-template-columns: 1fr; grid-template-rows: 55svh auto; }
  .hero-portrait { min-height: 55svh; }
  .hero-portrait::after { inset: 16px; }
  .hero-text-panel { padding: 22px 28px 60px; align-items: center; }
  .hero-names, .hero-quote { text-align: center; }
  .hero-date-line { justify-content: center; }
  .hero-content { max-width: 480px; }
  .hero-scroll { right: 20px; bottom: 18px; }
  .hero-eyebrow{ text-align: center;}
  .hero-cta { justify-content: center; } 
}

/* ═══════════════════════════════════════════
   KEYFRAMES
═══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollPulse {
  0%,100% { opacity: .3; transform: scaleY(.6); transform-origin: top; }
  50%     { opacity: 1;  transform: scaleY(1); }
}

/* ═══════════════════════════════════════════
   SECTIONS COMMUNES
═══════════════════════════════════════════ */
section { padding: 100px 24px; }
.container    { max-width: 1000px; margin: 0 auto; }
.container-sm { max-width: 640px; margin: 0 auto; }

h2 {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.12;
  margin-bottom: 24px; color: var(--text);
}
h2 em { font-style: italic; color: var(--gold); }
p  { line-height: 1.8; color: var(--text-light); font-size: 1rem; }
hr.divider {
  border: none; border-top: 1px solid var(--beige);
  margin: 56px auto; max-width: 120px;
}

/* Boutons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--cream);
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 15px 36px; text-decoration: none;
  position: relative; overflow: hidden; transition: color .35s;
  cursor: pointer; border: none;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gold); transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.77,0,.18,1);
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary span { position: relative; z-index: 1; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--text);
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 14px 34px; text-decoration: none;
  border: 1px solid var(--beige); transition: border-color .3s, background .3s;
}
.btn-secondary:hover { border-color: var(--gold); background: var(--ivory); }

/* ═══════════════════════════════════════════
   INTRO
═══════════════════════════════════════════ */
#intro { background: var(--ivory); text-align: center; }
.date{ font-size: 30px; }
.monogram {
  font-family: 'Cormorant Garamond', serif; font-size: 4rem;
  font-style: italic; font-weight: 300; color: var(--gold);
  display: block; margin-bottom: 20px; line-height: 1;
}
.big-text {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.75rem); font-weight: 300;
  color: var(--text); line-height: 1.65;
  max-width: 620px; margin: 0 auto 28px;
}
#intro p { max-width: 520px; margin: 0 auto; font-size: .95rem; }

/* ═══════════════════════════════════════════
   DÉTAILS
═══════════════════════════════════════════ */
#details { background: var(--cream); }
.details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-top: 56px; border: 1px solid var(--beige);
}
.detail-card {
  padding: 40px 32px; border: 1px solid var(--beige);
  display: flex; flex-direction: column; gap: 10px;
  background: var(--cream); transition: background .3s;
}
.detail-card:hover { background: var(--ivory); }
.detail-icon  { color: var(--gold); font-size: 1.1rem; margin-bottom: 4px; }
.detail-title {
  font-family: 'Jost', sans-serif; font-size: .60rem;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--sage-dark); font-weight: 400;
}
.detail-value {
  font-family: 'Cormorant Garamond', serif; font-size: 1.3rem;
  font-weight: 400; color: var(--text); line-height: 1.35;
}
.detail-sub { font-size: .82rem; color: var(--text-light); line-height: 1.5; }


/* ═══════════════════════════════════════════
   TIMELINE
═══════════════════════════════════════════ */
#timeline { background: var(--ivory); text-align: center; }
.timeline-wrap { margin: 56px auto 0; position: relative; max-width: 560px; }
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  transform: translateX(-50%);
}
.timeline-item {
  display: grid; grid-template-columns: 1fr 40px 1fr;
  gap: 0 16px; align-items: start; margin-bottom: 48px; position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-left  { text-align: right; padding-top: 4px; }
.timeline-right { text-align: left;  padding-top: 4px; }
/* Items inversés : colonne gauche alignée à droite sur desktop */
.item-reversed .timeline-left  { text-align: right; }
.item-reversed .timeline-right { text-align: left; }
.timeline-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1px solid var(--gold); background: var(--ivory);
  margin: 4px auto 0; position: relative; z-index: 1;
}
.timeline-dot::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--gold);
}
.timeline-time {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400; color: var(--text); line-height: 1;
}
.timeline-name {
  font-family: 'Jost', sans-serif; font-size: .70rem;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 4px;
}
.timeline-desc { font-size: .85rem; color: var(--text-light); line-height: 1.6; }

/* ═══════════════════════════════════════════
   GALERIE
═══════════════════════════════════════════ */
#gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Rangée 1 : 360px (grande photo + petite à côté alignées)
     Rangée 2 : 300px (petite + grande photo alignées)
     Rangée 3 : 260px (dernière petite) */
  grid-template-rows: 460px 400px 360px;
  gap: 8px;
  margin-top: 48px;
}

/* Layout de grille asymétrique */
.gallery-item {
  overflow: hidden;
  background: var(--beige);
  position: relative;
  /* Pas de height fixe ici — c'est grid-template-rows qui gère */
}
.gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-item:nth-child(4) { grid-column: span 2; }

/* Image — remplit exactement le cadre, quelle que soit sa taille */
.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform .7s cubic-bezier(.22,.61,.36,1);
}
.gallery-item:hover img { transform: scale(1.05); }

/* Placeholder (quand pas d'image) */
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--beige) 0%, var(--ivory) 100%);
  color: var(--sage); font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1rem;
}
.ph-icon { font-size: 1.6rem; opacity: .44; }

/* Légende au survol */
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(58,48,40,.55) 0%, transparent 100%);
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: .95rem;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s, transform .4s;
  pointer-events: none;
}
.gallery-item:hover .gallery-caption { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   RSVP
═══════════════════════════════════════════ */
#rsvp { background: var(--text); color: var(--cream); text-align: center; }
#rsvp h2 { color: var(--cream); }
#rsvp h2 em { color: var(--gold-light); }
#rsvp .section-label { color: var(--sage-light); }
#rsvp .ornament { color: var(--gold-light); }
#rsvp .ornament::before { background: linear-gradient(90deg, transparent, var(--gold-light)); }
#rsvp .ornament::after  { background: linear-gradient(90deg, var(--gold-light), transparent); }
#rsvp .rsvp-intro { color: rgba(250,248,244,.60); max-width: 440px; margin: 0 auto 48px; }

.rsvp-form {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 480px; margin: 0 auto; text-align: left;
}
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: .60rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--sage-light); font-weight: 400;
}
.form-group input,
.form-group select {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--cream); font-family: 'Jost', sans-serif;
  font-weight: 300; font-size: .95rem; padding: 13px 16px;
  outline: none; transition: border-color .3s; appearance: none; width: 100%;
}
.form-group input::placeholder { color: rgba(250,248,244,.28); }
.form-group input:focus,
.form-group select:focus { border-color: var(--gold-light); }
.form-group select option { background: var(--text); }

.presence-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.presence-choice { position: relative; }
.presence-choice input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.presence-choice label {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12); cursor: pointer;
  font-size: .70rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(250,248,244,.65); font-weight: 400;
  transition: border-color .25s, background .25s, color .25s;
}
.presence-choice input:checked + label {
  border-color: var(--gold-light);
  background: rgba(201,169,110,.12);
  color: var(--gold-light);
}
.rsvp-form .btn-submit {
  background: var(--gold); color: var(--cream);
  font-family: 'Jost', sans-serif; font-weight: 300;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 15px; margin-top: 8px; border: none; cursor: pointer;
  width: 100%; position: relative; overflow: hidden; transition: color .35s;
}
.rsvp-form .btn-submit::after {
  content: ''; position: absolute; inset: 0;
  background: var(--gold-light); transform: translateX(-101%);
  transition: transform .45s cubic-bezier(.77,0,.18,1);
}
.rsvp-form .btn-submit:hover::after { transform: translateX(0); }
.rsvp-form .btn-submit span { position: relative; z-index: 1; }

.rsvp-note {
  text-align: center; margin-top: 22px;
  font-size: .80rem; color: rgba(250,248,244,.30); letter-spacing: .06em;
}
.rsvp-success { text-align: center; padding: 40px 24px; display: none; }
.rsvp-success .success-icon {
  font-size: 2.5rem; color: var(--gold-light); display: block; margin-bottom: 16px;
}
.rsvp-success h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 2rem;
  font-weight: 300; font-style: italic; color: var(--cream); margin-bottom: 10px;
}
.rsvp-success p { color: rgba(250,248,244,.55); }

/* ═══════════════════════════════════════════
   CAGNOTTE
═══════════════════════════════════════════ */
#cagnotte { background: var(--ivory); text-align: center; }
.cagnotte-box {
  border: 1px solid var(--beige); padding: 56px 48px;
  max-width: 560px; margin: 0 auto; position: relative; background: var(--cream);
}
.cagnotte-box::before, .cagnotte-box::after {
  content: ''; position: absolute; width: 22px; height: 22px;
  border-color: var(--gold); border-style: solid;
}
.cagnotte-box::before { top:-1px; left:-1px; border-width: 2px 0 0 2px; }
.cagnotte-box::after  { bottom:-1px; right:-1px; border-width: 0 2px 2px 0; }
.cagnotte-icon { font-size: 2rem; display: block; margin-bottom: 20px; color: var(--gold); }
.cagnotte-box h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 1.75rem;
  font-weight: 300; color: var(--text); margin-bottom: 16px;
}
.cagnotte-box p { font-size: .92rem; margin-bottom: 32px; max-width: 380px; margin-left: auto; margin-right: auto; }


/* ═══════════════════════════════════════════
   DRESS CODE
═══════════════════════════════════════════ */
#dresscode { background: var(--cream); text-align: center; }

.dresscode-intro {
  max-width: 520px; margin: 0 auto 56px;
  font-size: .95rem; color: var(--text-light); line-height: 1.8;
}

/* Palette de couleurs */
.palette {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin: 48px auto 56px;
}
.palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.palette-swatch {
  width: 72px; height: 72px;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,.10);
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
}
.palette-item:hover .palette-swatch { transform: scale(1.10) translateY(-4px); }
.palette-swatch.c1 { background: #f0e8d8; border: 1px solid #ddd4c0; }
.palette-swatch.c2 { background: #9e7355; }
.palette-swatch.c3 { background: #7a4f35; }
.palette-swatch.c4 { background: #8fa882; }
.palette-swatch.c5 { background: #3d6b45; }
.palette-label {
  font-family: 'Jost', sans-serif; font-size: .58rem;
  letter-spacing: .20em; text-transform: uppercase;
  color: var(--text-light); font-weight: 400;
}

/* Tenues conseillées */
.dresscode-tenues {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  max-width: 900px;
  margin: 0 auto;
  border: 1px solid var(--beige);
}
.tenue-card {
  padding: 36px 28px;
  background: var(--cream);
  border: 1px solid var(--beige);
  text-align: left;
  transition: background .3s;
}
.tenue-card:hover { background: var(--ivory); }
.tenue-icon {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
}
.tenue-titre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400;
  color: var(--text); margin-bottom: 8px;
}
.tenue-desc {
  font-size: .82rem; color: var(--text-light);
  line-height: 1.7;
}

/* Note bas de section */
.dresscode-note {
  margin-top: 44px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .palette-swatch { width: 56px; height: 56px; }
  .palette { gap: 14px; }
  .dresscode-tenues { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
footer {
  background: var(--cream); border-top: 1px solid var(--beige);
  padding: 60px 24px; text-align: center;
}
.footer-names {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 2.4rem; font-weight: 300; color: var(--text); margin-bottom: 12px;
}
footer > p { font-size: .82rem; color: var(--text-light); max-width: 340px; margin: 0 auto 24px; }
.footer-note {
  display: block; font-size: .65rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--sage); margin-top: 40px;
}
.liens-maps {
  text-decoration: none;
}

.bloc-createur {
  display: flex;
  justify-content:center ;
}
.nom-createur{
  font-size: 12px;
  color: var(--text);
}
.nom-createur> a {
  text-decoration: none;
  color: #c9a96e;
}

/* ═══════════════════════════════════════════
   RESPONSIVE GLOBAL
═══════════════════════════════════════════ */
@media (max-width: 700px) {
  section { padding: 72px 20px; }

  /* Galerie responsive */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 260px 240px 240px;
    gap: 6px;
  }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-item:nth-child(4) { grid-column: span 2; }

  /* Timeline — colonne unique, tout visible */
  .timeline-wrap { max-width: 100%; }
  .timeline-line { display: none; }
  .timeline-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 36px;
    padding-left: 22px;
    border-left: 1px solid var(--gold);
    position: relative;
  }
  .timeline-item::before {
    content: '';
    position: absolute;
    left: -5px; top: 6px;
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--ivory);
  }
  .timeline-item:last-child { margin-bottom: 0; }
  .timeline-dot { display: none; }
  .timeline-left,
  .timeline-right {
    text-align: left !important;
    padding-top: 0;
    width: 100%;
  }
  .timeline-time { font-size: 1.25rem; line-height: 1.3; }

  /* Ordre par défaut : left(heure)=1, dot=2, right(nom+desc)=3 */
  .timeline-left  { order: 1; margin-bottom: 4px; }
  .timeline-dot   { order: 2; display: none; }
  .timeline-right { order: 3; }

  /* Items inversés : left=lieu/nom, right=heure → heure (right) passe en 1er */
  .item-reversed .timeline-right { order: 1; margin-bottom: 4px; }
  .item-reversed .timeline-dot   { order: 2; display: none; }
  .item-reversed .timeline-left  { order: 3; }

  /* Détails */
  .details-grid { grid-template-columns: 1fr !important; }

  /* Cagnotte */
  .cagnotte-box { padding: 36px 24px; }

  /* RSVP */
  .presence-choices { grid-template-columns: 1fr; }

  .date {font-size: 20px;}
  .nom-createur{
    font-size: 10px;
  }
}