/* ═══════════════════════════════════════════════════════════════
   SITE DES INVITÉS — Mariage de Ruth & Deve
   Thème : Sauge, Crème et Champagne (Nouveau Design)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg-color: #FAFAF7;       /* Crème clair texturé */
  --bg-alt: #F3F1EB;         /* Crème légèrement plus foncé */
  --ink: #2B332E;            /* Vert très profond / Charbon */
  --primary: #5A6B60;        /* Vert Sauge */
  --soft: #7D8A82;           /* Sauge grisé */
  --accent: #C7AE8E;         /* Champagne doré */
  --accent-light: #DFD3C3;   /* Champagne clair */
  --accent-dark: #A68D6C;    /* Or antique */
  --rouge: #9E5B55;
  --radius: 16px;
  
  /* Polices */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', sans-serif;
  --script: 'Parisienne', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--bg-color);
  line-height: 1.8;
  overflow-x: hidden;
}
body.modal-ouverte { overflow: hidden; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ═══ Barre de progression ═══ */
.progression {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-light), var(--accent), var(--accent-dark));
  z-index: 200;
  transition: width .15s ease-out;
}

/* ═══ Navigation ═══ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 1rem 0;
}
nav.solid {
  padding: 0.2rem 0;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* Couleurs par défaut (Haut de page sur fond sombre) */
.brand {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.6rem;
  text-decoration: none;
  color: #fff;
  letter-spacing: .08em;
  font-weight: 600;
}
.brand-amp { color: var(--accent); font-size: 1.3rem; }
nav.solid .brand { color: var(--ink); }

.nav-links { display: flex; gap: 1rem; align-items: center; }
.nav-links a {
  position: relative;
  text-decoration: none;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: .5rem .8rem;
  transition: color .3s ease;
  cursor: pointer;
}
nav.solid .nav-links a { color: var(--primary); text-shadow: none; }

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition: all .3s ease;
}
.nav-links a:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
nav.solid .nav-links a:hover { color: var(--ink); }

.burger { display: none; background: none; border: none; cursor: pointer; width: 44px; height: 44px; position: relative; z-index: 120; }
.burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 6px auto; border-radius: 2px; transition: all .3s cubic-bezier(0.4, 0, 0.2, 1); }
nav.solid .burger span { background: var(--ink); }
nav.open .burger span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
nav.open .burger span:nth-child(2) { opacity: 0; }
nav.open .burger span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(250, 250, 247, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column; justify-content: center; gap: 1.5rem;
    opacity: 0; pointer-events: none; transition: opacity .4s ease;
  }
  nav.open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1.1rem; opacity: 0; transform: translateY(20px); color: var(--ink) !important; text-shadow: none !important; }
  nav.open .nav-links a { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
}

/* ═══ Hero Cinématique ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  position: relative;
  background-image: url('AKPL7600.jpg');
  background-size: cover;
  background-position: center 4%;
  background-attachment: fixed;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(43, 51, 46, 0.4), rgba(43, 51, 46, 0.7));
  z-index: 1;
}

/* Sur mobile, "background-attachment: fixed" est mal supporté (surtout iOS Safari)
   et peut empêcher la photo de bien s'afficher ; on repasse en scroll normal et on
   allège un peu l'assombrissement pour que la photo reste visible. */
@media (max-width: 760px) {
  .hero {
    background-attachment: scroll;
    background-position: 40% 8%;
    /* Le titre était centré verticalement et retombait pile sur le visage de la
       mariée (photo cadrée haut sur mobile) ; on pousse le bloc de texte vers
       le bas pour dégager le haut de la photo. */
    justify-content: flex-end;
    padding-bottom: 6rem;
  }
  /* On remonte le titre, l'ornement et la date en creusant l'écart au-dessus de
     la légende : le bloc titre/date monte, tandis que la légende et le compte à
     rebours restent ancrés en bas. */
  .hero .compteur-legende { margin-top: 4rem; }
  .hero-overlay {
    background: linear-gradient(to bottom, rgba(43, 51, 46, 0.25), rgba(43, 51, 46, 0.55));
  }
  /* Texte en gras sur mobile pour une meilleure lisibilité sur la photo de fond,
     et un peu plus petit pour libérer encore plus de hauteur au-dessus. */
  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 4.5rem);
    font-weight: 600;
    text-shadow: 0 4px 18px rgba(0,0,0,0.55);
  }
  .hero .date-line {
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  }
  .hero .ville-parisienne {
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.55);
  }
  .hero-cta {
    margin-top: 2rem;
    font-weight: 700;
  }
  /* Le petit ornement ❦ sous le titre est retiré : ça libère de la hauteur
     pour que le bloc de texte puisse descendre davantage et dégager le
     visage de la mariée, cadré haut dans la photo. */
  .hero .ornament {
    display: none;
  }
  .hero-limite {
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  }
}

/* ═══ Pétales / Flocons Animés ═══ */
.petale {
  position: absolute;
  top: -10%;
  color: #fff;
  opacity: 0.6;
  z-index: 2;
  user-select: none;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(0vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
.p1 { left: 10%; animation-duration: 8s; animation-delay: 0s; font-size: 1.2rem;}
.p2 { left: 25%; animation-duration: 12s; animation-delay: 2s; font-size: 0.8rem;}
.p3 { left: 40%; animation-duration: 9s; animation-delay: 4s; font-size: 1.5rem;}
.p4 { left: 55%; animation-duration: 14s; animation-delay: 1s; font-size: 1rem;}
.p5 { left: 70%; animation-duration: 11s; animation-delay: 3s; font-size: 1.3rem;}
.p6 { left: 85%; animation-duration: 10s; animation-delay: 5s; font-size: 0.9rem;}
.p7 { left: 15%; animation-duration: 13s; animation-delay: 1.5s; font-size: 1.1rem;}
.p8 { left: 35%; animation-duration: 9.5s; animation-delay: 0.5s; font-size: 1.4rem;}
.p9 { left: 60%; animation-duration: 11.5s; animation-delay: 2.5s; font-size: 1rem;}
.p10 { left: 80%; animation-duration: 10.5s; animation-delay: 3.5s; font-size: 1.2rem;}
.p11 { left: 5%; animation-duration: 12.5s; animation-delay: 4.5s; font-size: 0.9rem;}
.p12 { left: 95%; animation-duration: 8.5s; animation-delay: 0.8s; font-size: 1.3rem;}

/* ═══ Bouton musique de fond ═══ */
.musique-toggle {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 150;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent-light);
  background: rgba(250, 250, 247, .88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 24px rgba(43, 51, 46, 0.18);
  color: var(--primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
}
.musique-toggle:hover { transform: scale(1.08); box-shadow: 0 10px 28px rgba(43, 51, 46, 0.24); }
.musique-toggle.coupe { opacity: .65; }
@media (max-width: 560px) {
  .musique-toggle { right: .9rem; bottom: .9rem; width: 42px; height: 42px; font-size: 1.05rem; }
}

/* ═══ Bouton flottant « Confirmer ma présence » ═══
   Caché par défaut (glissé sous l'écran) ; la classe .visible est ajoutée en JS
   dès que l'utilisateur atteint la section Programme. */
.rsvp-flottant {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(160%);
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .95rem 1.9rem;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-family: var(--sans);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(43, 51, 46, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease,
              transform .5s cubic-bezier(0.2, 0.8, 0.2, 1),
              background .3s ease, box-shadow .3s ease;
}
.rsvp-flottant.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.rsvp-flottant:hover {
  background: var(--ink);
  box-shadow: 0 16px 40px rgba(43, 51, 46, 0.38);
}
.rsvp-flottant-icone { color: var(--accent-light); font-size: .95rem; }
@media (max-width: 560px) {
  /* Sur mobile, la pastille RSVP reste centrée ; on la remonte un peu au-dessus
     du bouton musique (en bas à droite) pour éviter tout chevauchement. */
  .rsvp-flottant {
    left: 50%;
    right: auto;
    bottom: 2.2rem;
    transform: translateX(-50%) translateY(220%);
    padding: .95rem 1.9rem;
    font-size: .74rem;
    letter-spacing: .09em;
    gap: .45rem;
    white-space: nowrap;
    max-width: calc(100vw - 1.5rem);
  }
  .rsvp-flottant.visible { transform: translateX(-50%) translateY(0); }
}

/* ═══ Pluie de cœurs (page de résumé, même principe que les flocons) ═══ */
.pluie-coeurs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.coeur-chute {
  position: absolute;
  top: -10%;
  opacity: 0;
  animation: fall linear infinite;
}
.c1  { left: 6%;  animation-duration: 7s;   animation-delay: 0s;    font-size: 1.1rem; }
.c2  { left: 18%; animation-duration: 9s;   animation-delay: 1.2s;  font-size: .85rem; }
.c3  { left: 30%; animation-duration: 6.5s; animation-delay: 2.4s;  font-size: 1.3rem; }
.c4  { left: 42%; animation-duration: 8.5s; animation-delay: .6s;   font-size: .9rem; }
.c5  { left: 54%; animation-duration: 7.5s; animation-delay: 1.8s;  font-size: 1.15rem; }
.c6  { left: 66%; animation-duration: 9.5s; animation-delay: 3s;    font-size: .8rem; }
.c7  { left: 78%; animation-duration: 6.8s; animation-delay: .3s;   font-size: 1.2rem; }
.c8  { left: 90%; animation-duration: 8s;   animation-delay: 2.1s;  font-size: 1rem; }
.c9  { left: 12%; animation-duration: 7.2s; animation-delay: 3.6s;  font-size: .95rem; }
.c10 { left: 84%; animation-duration: 9.2s; animation-delay: 1.5s;  font-size: 1.05rem; }

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 800px;
}

.apparition { opacity: 0; transform: translateY(30px); animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.apparition.d1 { animation-delay: .2s; }
.apparition.d2 { animation-delay: .4s; }
.apparition.d3 { animation-delay: .6s; }
.apparition.d4 { animation-delay: .8s; }
.apparition.d5 { animation-delay: 1.2s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero h1 {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  line-height: 1;
  font-weight: 400;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin: 0;
}
.hero h1 .amp { font-size: 0.8em; color: var(--accent); font-style: normal; }
.hero .ornament { color: var(--accent); font-size: 1.8rem; margin: 1.5rem 0; }
.hero .date-line {
  font-size: clamp(.85rem, 2.5vw, 1.1rem);
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 300;
  line-height: 1.4;
}

/* Modifié : La ville en police Parisienne plus petite */
.ville-parisienne {
  font-family: var(--script);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem); 
  color: var(--accent);
  text-transform: none; 
  letter-spacing: 0;
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: normal;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.hero-cta {
  margin-top: 3rem;
  display: inline-block;
  padding: 1.1rem 3.5rem;
  border-radius: 50px;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent-light);
  text-decoration: none;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .4s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.hero-cta::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--accent); z-index: -1; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-cta:hover::before { transform: scaleX(1); transform-origin: left; }
.hero-cta:hover { color: var(--ink); border-color: var(--accent); box-shadow: 0 10px 30px rgba(199, 174, 142, 0.3); }

/* ═══ Compte à rebours du hero ═══ */
.compteur-legende {
  margin-top: 2.2rem;
  margin-bottom: .5rem;
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-light);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-compteur {
  margin-top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: .35rem;
}
.compteur-bloc {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
  padding: .45rem .35rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.compteur-nombre {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
  transition: transform .35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
/* Petit « tic » à chaque changement de valeur (ajouté/retiré en JS). */
.compteur-nombre.tic { animation: compteur-tic .5s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes compteur-tic {
  0% { transform: translateY(-6px) scale(1.12); opacity: .4; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
.compteur-label {
  margin-top: .35rem;
  font-family: var(--sans);
  font-size: .44rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.compteur-sep {
  align-self: center;
  margin-top: -.45rem;
  font-family: var(--serif);
  font-size: .95rem;
  color: rgba(255,255,255,.55);
}
@media (max-width: 480px) {
  .hero-compteur { gap: .22rem; }
  .compteur-bloc { min-width: 38px; padding: .38rem .28rem; }
  .compteur-nombre { font-size: 1rem; }
  .compteur-label { font-size: .4rem; letter-spacing: .08em; }
  .compteur-sep { font-size: .82rem; }
}

.scroll-hint { position: absolute; bottom: 40px; left: 50%; margin-left: -10px; z-index: 2; color: #fff; font-size: 1.5rem; animation: fadeUp 1s 1.2s forwards, float 2s 2s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ═══ Sections Générales ═══ */
section { padding: 8rem 1.5rem; }
section:nth-of-type(even) { background: var(--bg-alt); }
.container { max-width: 800px; margin: 0 auto; text-align: center; }

/* Conteneur plus large spécifique pour la disposition côte à côte */
.container-large { max-width: 1100px; }

h2 { font-size: clamp(2.2rem, 5vw, 3rem); font-style: italic; color: var(--ink); margin-bottom: 0.5rem; text-align: center; }
.section-rule {
  width: 1px; height: 60px;
  background: var(--accent);
  margin: 1.5rem auto 3rem;
}
.lead { color: var(--soft); font-size: 1.1rem; margin-bottom: 3rem; font-style: italic; font-family: var(--serif); text-align: center; }

.reveal { opacity: 0; transform: translateY(40px); transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ═══ Notre histoire : Disposition Flexbox (Texte à côté de l'image) ═══ */
.histoire-flex {
  display: flex;
  align-items: flex-start;
  gap: 4rem;
  text-align: left;
  margin-top: 3rem;
}

.histoire-photo-principale {
  /* Ni collée en haut, ni centrée trop bas : un léger décalage intermédiaire */
  margin-top: 2.2rem;
  flex: 0 0 40%;
  position: relative;
}

/* Amélioration du cadre de la photo principale */
.histoire-photo-principale .frame {
  padding: 16px 16px 40px 16px;
  background: #fff;
  box-shadow: 0 15px 45px rgba(0,0,0,0.1);
  border-radius: 2px;
  transform: rotate(-3deg);
  transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.histoire-photo-principale:hover .frame {
  transform: rotate(0deg) scale(1.03);
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.histoire-photo-principale img { width: 100%; display: block; border-radius: 2px; }

/* Style en carte pour le texte */
.histoire-texte {
  flex: 1;
  background: #ffffff;
  padding: 3rem 3rem 3.6rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(199, 174, 142, 0.15);
  position: relative;
}
.histoire-texte p {
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
  color: var(--soft);
  text-align: justify;
}
.histoire-texte .ouverture {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 2rem;
  text-align: center;
}
.histoire-texte .fermeture { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--primary); margin-top: 2rem; }

/* Responsivité de "Notre histoire" */
@media(max-width: 900px) {
  .histoire-flex {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }
  .histoire-photo-principale {
    flex: auto;
    max-width: 400px;
    margin: 0 auto;
  }
  .histoire-texte { padding: 2rem 1.5rem; }
  .histoire-texte p { text-align: center; }
}

/* Modifié : Verset adapté à la carte */
.verset {
  position: relative;
  padding: 2rem;
  margin: 3rem -1rem 1rem -1rem;
  text-align: center;
  background: var(--bg-alt);
  border-radius: 8px;
}
/* Quand le verset est le dernier élément de la carte : on le remonte un peu
   et on retire la marge basse pour qu'il ne soit jamais coupé par le bord. */
.verset-final { margin: 2rem -1rem 0 -1rem; }
.verset-ornement { display: block; font-size: 1.5rem; color: var(--accent); margin-bottom: 1rem; }
.verset p { font-family: var(--serif); font-style: italic; font-size: 1.4rem; line-height: 1.6; color: var(--primary); margin-bottom: 1rem !important; text-align: center;}
.verset cite { font-style: normal; font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-dark); font-weight: 500; font-family: var(--sans); }

/* ═══ Programme — photo en fond, adoucie pour garder le texte lisible ═══ */
#programme {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}
#programme::before {
  content: "";
  position: absolute;
  inset: -20px;
  background:
    linear-gradient(rgba(250, 246, 243, .38), rgba(250, 246, 243, .38)),
    url('prog.jpg') center/cover no-repeat;
  z-index: -1;
}

.programme-carte {
  position: relative;
  max-width: 600px;
  margin: 4.5rem auto 0;
  padding: 3.6rem 2.8rem 3rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(253, 247, 244, .94), rgba(247, 236, 227, .91));
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 30px 70px rgba(43, 51, 46, 0.22);
}

/* Seul intitulé conservé pour le Programme (« Le chemin de notre journée »),
   mis en avant comme titre de section — plus grand et bien lisible. */
.prog-chemin-titre {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  /* white-space: nowrap + taille qui suit la largeur de l'écran = toujours sur
     une seule ligne, du mobile au bureau (plafonnée à 2.7rem). */
  white-space: nowrap;
  font-size: clamp(1.15rem, 5.2vw, 2.7rem);
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 3.2rem;
}

/* ═══ Le chemin : une ligne verticale relie chaque étape, comme un parcours ═══ */
.prog-chemin {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding-left: 3rem;
  text-align: left;
}
.prog-chemin::before {
  content: "";
  position: absolute;
  left: .8125rem;
  top: 13px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--accent) 6%,
    var(--accent-light) 50%,
    var(--accent) 94%,
    transparent
  );
  opacity: .7;
}

.prog-etape {
  position: relative;
  padding-bottom: 2.5rem;
}
.prog-etape:last-child,
.prog-etape-derniere { padding-bottom: 0; }

.prog-etape-point {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(43, 51, 46, .1);
}
.prog-etape-point-accueil {
  font-size: .75rem;
}
.prog-etape-point-majeur {
  width: 30px;
  height: 30px;
  left: -3.1rem;
  top: -.15rem;
  border: 1.5px solid var(--accent-dark);
  color: var(--accent-dark);
  font-size: .95rem;
}
.prog-etape-point-trajet {
  border-style: dashed;
  font-size: .72rem;
}
.prog-etape-point-eglise {
  font-size: .85rem;
}
.prog-etape-point-reception {
  font-size: .8rem;
}

.prog-etape-heure {
  display: block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: .3rem;
}

.prog-etape-corps h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0 0 .4rem;
}

.prog-etape-lieu {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.55;
  margin-top: .5rem;
}
.prog-etape-lieu .lieu-icone { flex-shrink: 0; margin-top: .1rem; font-size: .95rem; }

.prog-etape-trajet .prog-etape-corps { padding-top: .1rem; }
.prog-etape-note {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.65;
  max-width: 340px;
}

/* Tampon final façon étiquette kraft, comme une dernière halte du parcours */
.prog-tampon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .75rem 1.8rem;
  margin-top: 3rem;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
  transform: rotate(-1.5deg);
}
.prog-tampon span:first-child { font-family: var(--serif); font-style: italic; font-size: 1.05rem; }
.prog-tampon-date { font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; color: var(--accent-light); }

@media(max-width: 560px) {
  .programme-carte { padding: 2.8rem 1.6rem 2.2rem; }
  .prog-chemin { padding-left: 2.5rem; }
  .prog-etape-point { left: -2.5rem; width: 24px; height: 24px; }
  .prog-etape-point-majeur { left: -2.6rem; width: 27px; height: 27px; }
  .prog-chemin::before { left: .75rem; }
}

/* Sur mobile, les étapes s'empilent verticalement et la section devient très
   haute ; étirer la photo en "cover" sur toute cette hauteur la zoomerait
   énormément et la rendrait méconnaissable. On limite la bande photo à une
   hauteur proche de l'écran pour qu'elle reste entière et reconnaissable. */
@media (max-width: 759px) {
  #programme::before {
    inset: -20px -20px auto -20px;
    height: 60vh;
  }
}

/* À partir des écrans plus larges, le chemin s'étale à l'horizontale et occupe
   toute la largeur de la section, plutôt que de rester en colonne étroite. */
@media (min-width: 760px) {
  .programme-carte {
    max-width: 980px;
    padding: 4rem 4rem 3.4rem;
  }
  .prog-chemin {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 100%;
    padding-left: 0;
    gap: 1.2rem;
  }
  .prog-chemin::before {
    left: 34px;
    right: 34px;
    top: 14px;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      var(--accent) 4%,
      var(--accent-light) 50%,
      var(--accent) 96%,
      transparent
    );
  }
  .prog-etape {
    flex: 1;
    padding-bottom: 0;
    padding-top: 3.4rem;
    text-align: center;
  }
  .prog-etape-trajet { flex: 1.15; }
  .prog-etape-point,
  .prog-etape-point-majeur {
    left: 50%;
    top: 0;
    transform: translateX(-50%);
  }
  .prog-etape-point-majeur { top: -.15rem; }
  .prog-etape-corps h3 { font-size: 1.05rem; }
  .prog-etape-lieu {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .15rem;
  }
  .prog-etape-lieu .lieu-icone { margin-top: 0; }
  .prog-etape-note { max-width: 220px; margin: 0 auto; font-size: .92rem; }
}


/* ═══ Q&R ═══ */
.faq { text-align: left; margin-top: 3rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.faq details { background: transparent; border-bottom: 1px solid var(--accent-light); padding: 1.5rem 0; margin-bottom: 0; }
.faq summary { cursor: pointer; font-size: 1.1rem; font-weight: 500; font-family: var(--serif); color: var(--primary); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; font-weight: 300; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--soft); font-size: .95rem; padding-top: 1rem; line-height: 1.6; animation: fadeUp .3s ease; }

/* ═══ Bandeau d'appel RSVP (Parallax) ═══ */
.rsvp-band { background-image: url('AKPL7598.jpg'); background-size: cover; background-position: center center; background-attachment: fixed; color: #fff; text-align: center; padding: 8rem 1.5rem; position: relative; }

/* Sur mobile, le cadrage "center center" laisse voir les pieds de la mariée en bas
   de la photo ; on remonte le point de recadrage vers le haut pour rester sur le
   couple, et on repasse en scroll normal (fixed est de toute façon mal supporté sur mobile). */
@media (max-width: 760px) {
  .rsvp-band {
    background-attachment: scroll;
    background-position: center 12%;
  }
}
.band-overlay { position: absolute; inset: 0; background: linear-gradient(rgba(43, 51, 46, 0.6), rgba(43, 51, 46, 0.8)); }
.relative-z { position: relative; z-index: 2; }
.rsvp-band h2 { color: #fff; font-size: clamp(2.5rem, 6vw, 4rem); text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.rsvp-band p { color: var(--accent-light); font-size: 1.2rem; margin-top: 1rem; font-family: var(--serif); font-style: italic; }
.rsvp-band .hero-cta { background: var(--accent); border-color: var(--accent); color: #fff; margin-top: 2.5rem; }
.rsvp-band .hero-cta::before { background: #fff; }
.rsvp-band .hero-cta:hover { color: var(--ink); }

/* ═══ Pied de page ═══ */
footer { text-align: center; padding: 4rem 1.5rem; background: var(--ink); color: var(--soft); }
footer .ornament { color: var(--accent); font-size: 1.5rem; margin-bottom: 1rem; }
footer .names { font-family: var(--serif); font-style: italic; font-size: 2rem; color: #fff; margin-bottom: .5rem; }

/* ═══ FENÊTRE MODALE RSVP (Design Carte d'Invitation) ═══ */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(20, 25, 22, 0.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
.modal-overlay.visible { opacity: 1; pointer-events: auto; }
.modal { background: var(--bg-color); border-radius: 4px; width: 100%; max-width: 500px; max-height: 95vh; overflow-y: auto; box-shadow: 0 25px 60px rgba(0,0,0,0.4); transform: translateY(40px); transition: transform .5s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; border: 1px solid var(--accent-light); }
.modal::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(199, 174, 142, 0.3); pointer-events: none; }
.modal-overlay.visible .modal { transform: none; }

.modal-head { padding: 2.5rem 2rem 1.5rem; text-align: center; position: relative; }
.modal-head h2 { font-size: 2.2rem; color: var(--primary); margin: 0; }
.modal-close { position: absolute; top: 1.2rem; right: 1.2rem; background: transparent; border: none; color: var(--soft); font-size: 1.5rem; cursor: pointer; transition: all .3s; z-index: 10; }
.modal-close:hover { color: var(--ink); transform: rotate(90deg); }

.modal form { padding: 0 2.5rem 2.5rem; position: relative; z-index: 2; }
.field { margin-bottom: 1.5rem; }
label { display: block; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; color: var(--primary); font-weight: 500; margin-bottom: .5rem; text-align: left; }
label .req { color: var(--rouge); }
label .facultatif { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; color: var(--soft); font-family: var(--serif); font-size: 0.9rem;}

input[type="text"], input[type="email"], select { width: 100%; padding: .8rem 0; border: none; border-bottom: 1px solid var(--accent-light); background: transparent; font-family: var(--serif); font-size: 1.2rem; font-style: italic; color: var(--ink); outline: none; transition: border-color .3s; }
input::placeholder { color: #ccc; }
input:focus, select:focus { border-color: var(--primary); }

.select-wrapper { position: relative; }
.select-wrapper::after { content: "▼"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 0.7rem; color: var(--accent); pointer-events: none; }
select { -webkit-appearance: none; appearance: none; padding-right: 20px; cursor: pointer; }

.radio-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.radio-option { flex: 1; min-width: 140px; border: 1px solid var(--accent-light); border-radius: 40px; padding: .8rem; text-align: center; cursor: pointer; transition: all .3s; font-size: .85rem; font-weight: 500; color: var(--soft); }
.radio-option.mini { min-width: 80px; padding: 0.6rem; }
.radio-option input { display: none; }
.radio-option:hover { border-color: var(--accent); color: var(--primary); }
.radio-option.selected { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 4px 15px rgba(90, 107, 96, 0.2); }

.conditional { display: none; }
.conditional.visible { display: block; animation: fadeUp .4s ease; }

.acc-bloc { background: #fff; border-left: 2px solid var(--accent); padding: 1rem 1.5rem; margin-bottom: 1rem; box-shadow: 0 4px 15px rgba(0,0,0,0.03); animation: fadeUp .3s ease; }
.acc-bloc .acc-titre { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--primary); margin-bottom: .5rem; }
.acc-bloc .field { margin-bottom: 0; }

.btn-submit { width: 100%; padding: 1.2rem; margin-top: 1rem; background: var(--ink); color: #fff; border: none; border-radius: 4px; font-family: var(--sans); font-size: .85rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: all .3s; }
.btn-submit:hover { background: var(--primary); box-shadow: 0 8px 20px rgba(90,107,96,0.3); }
.btn-submit:disabled { opacity: .7; cursor: wait; }

.erreur { display: none; margin-top: 1.5rem; padding: 1.2rem; text-align: center; border-radius: 4px; font-family: var(--serif); font-style: italic; font-size: 1.1rem; }
.erreur.visible { display: block; background: #FDF4F3; color: var(--rouge); border: 1px solid var(--rouge); }

/* Page de résumé affichée à la place du formulaire une fois la réponse envoyée */
.resume-confirmation {
  display: none;
  padding: 0 2.5rem 2.5rem;
  text-align: center;
  animation: fadeUp .5s ease;
  position: relative;
  z-index: 0;
}
.resume-confirmation.visible { display: block; }
.resume-icone { font-size: 2rem; margin-bottom: .5rem; }
.resume-confirmation h3 { font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--primary); margin-bottom: .6rem; }
#resumeTexte { font-size: .95rem; color: var(--soft); margin-bottom: 1.8rem; line-height: 1.6; }
#resumeTexte:empty { display: none; }
/* Avis « courriel envoyé » : désormais en haut du résumé, présenté comme une
   petite bannière pour être vu immédiatement après la confirmation. */
.resume-courriel-info {
  font-size: .88rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--bg-alt);
  border: 1px solid var(--accent-light);
  border-radius: 8px;
  padding: .85rem 1.1rem;
  margin: 0 0 1.8rem;
  line-height: 1.5;
}
.resume-courriel-info:empty { display: none; }

.resume-programme {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.6rem 1.4rem;
  text-align: left;
  margin-bottom: .5rem;
}
.resume-soustitre {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--primary);
  text-align: center;
  margin-bottom: 1rem;
}
.resume-etape { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .3rem; }
.resume-heure { font-weight: 600; color: var(--accent-dark); font-size: .85rem; min-width: 58px; flex-shrink: 0; }
.resume-quoi { font-size: .9rem; color: var(--ink); }
.resume-etape-espace { margin-top: 1rem; }
.resume-note { font-size: .8rem; font-weight: 700; color: var(--ink); line-height: 1.6; margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed var(--accent-light); }

@media (max-width: 500px) {
  .resume-confirmation { padding: 0 1.5rem 2rem; }
}

.coeur-envol { position: absolute; font-size: 1.2rem; pointer-events: none; animation: envol 2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; z-index: 20; text-shadow: 0 2px 10px rgba(255,255,255,0.8); }
@keyframes envol { 0% { opacity: 0; transform: translate(0, 0) scale(0.5); } 20% { opacity: 1; transform: translate(calc(var(--dx) * 0.2), -30px) scale(1.2); } 100% { opacity: 0; transform: translate(var(--dx), -150px) scale(1) rotate(var(--rot)); } }

@media (max-width: 500px) { .modal form { padding: 0 1.5rem 2rem; } .radio-option { min-width: 100%; } }