/* ============================================================
   custom.css — Site mariage Claire & Sylvain
   ============================================================ */

/* ===================== 1. Base globale ===================== */
html {
  scroll-behavior: smooth;
}

/* ===================== 2. Navigation (desktop + mobile) ===================== */

.fh5co-nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0.4s;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  padding: 14px 0 !important;
}
.fh5co-nav.nav-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.fh5co-nav ul li a,
.fh5co-nav ul li.active a {
  color: #444 !important;
}
.fh5co-nav ul li a:hover, .fh5co-nav ul li a:focus, .fh5co-nav ul li a:active,
.fh5co-nav ul li.active a:hover, .fh5co-nav ul li.active a:focus, .fh5co-nav ul li.active a:active {
  color: #A6813E !important;
}

@media screen and (min-width: 769px) {
  .fh5co-nav .menu-1 > ul {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
  }
  .fh5co-nav ul li a {
    font-size: 14px !important;
    padding: 10px 8px !important;
    white-space: nowrap;
  }
}
@media screen and (min-width: 769px) and (max-width: 1100px) {
  .fh5co-nav ul li a {
    font-size: 12px !important;
    padding: 10px 5px !important;
  }
}

@media screen and (max-width: 768px) {
  .fh5co-nav { display: none !important; }
}

@media screen and (max-width: 768px) {
  #fh5co-offcanvas ul li a {
    font-size: 20px;
    padding: 14px 0;
    display: block;
  }
}

/* Burger mobile : visible en permanence dès qu'il existe dans le DOM. */
@media screen and (max-width: 768px) {
  a.js-fh5co-nav-toggle.fh5co-nav-toggle {
    position: fixed !important;
    top: 16px !important;
    right: 16px !important;
    left: auto !important;
    z-index: 99998 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 14px -4px rgba(0,0,0,0.35) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  a.js-fh5co-nav-toggle.fh5co-nav-toggle i,
  a.js-fh5co-nav-toggle.fh5co-nav-toggle i::before,
  a.js-fh5co-nav-toggle.fh5co-nav-toggle i::after {
    background: #333 !important;
  }
}

/* ===================== 3. Formulaire de connexion (gate) ===================== */

.gate-content {
  width: 88vw;
  max-width: 460px;
}
@media screen and (min-width: 768px) {
  .gate-content {
    width: 50vw;
    max-width: 460px;
  }
}

.fh5co-gate {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 24px 0;
  box-sizing: border-box;
}

.gate-seal-img {
  display: block;
  width: 64px;
  height: auto;
  margin: 0 auto 14px;
  filter: drop-shadow(0 4px 8px rgba(60,42,10,0.35));
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 80%);
  mask-image: radial-gradient(circle, #000 55%, transparent 80%);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

#welcome-name {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  text-transform: none !important;
}

.gate-help-toggle {
  position: absolute; bottom: 16px; right: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border: none; border-radius: 22px;
  background: #C9A860; color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px; cursor: pointer;
  box-shadow: 0 10px 22px -8px rgba(201,168,96,0.6);
  transition: all 0.25s ease; z-index: 20;
}
.gate-help-toggle:hover { background: #b8974f; transform: translateY(-1px); }
.gate-help-icon { font-size: 15px; }
.gate-help-text { white-space: nowrap; }

.gate-help-panel {
  display: none; position: absolute; bottom: 58px; right: 14px; width: 260px;
  background: #fff; border: 1px solid #e0d8c3; border-radius: 10px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.25); padding: 16px;
  padding-top: 34px; text-align: left; z-index: 21;
}
.gate-help-panel.open { display: block; }
.gate-help-panel label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #A6813E; margin-bottom: 6px; font-weight: 600;
}
.gate-help-panel input[type="email"] {
  width: 100%; border: 1px solid #e0d8c3; border-radius: 8px; padding: 8px 10px;
  font-family: "Work Sans", Arial, sans-serif; font-size: 13px; box-sizing: border-box; margin-bottom: 12px;
}
.gate-help-panel textarea {
  width: 100%; min-height: 60px; border: 1px solid #e0d8c3; border-radius: 8px; padding: 8px 10px;
  font-family: "Work Sans", Arial, sans-serif; font-size: 13px; resize: vertical; box-sizing: border-box;
}
.gate-help-send {
  margin-top: 10px; width: 100%; border: none; border-radius: 20px; background: #C9A860;
  color: #fff; padding: 9px 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
}
.gate-help-send:hover { background: #b8974f; }
.gate-help-status { font-size: 11px; color: #888; margin: 8px 0 0; text-align: center; }
.gate-help-close {
  position: absolute; top: 8px; right: 10px; border: none; background: none;
  font-size: 22px; line-height: 1; color: #999; cursor: pointer; padding: 4px 8px;
}
.gate-help-close:hover { color: #A6813E; }
.gate-help-title { font-size: 13px; color: #444; font-weight: 600; margin: 0 0 12px; }
.gate-help-row { display: flex; gap: 10px; margin-bottom: 12px; }
.gate-help-field { flex: 1; }
.gate-help-field input {
  width: 100%; padding: 8px 10px; border: 1px solid #e0d8c3; border-radius: 8px;
  font-size: 13px; font-family: "Work Sans", Arial, sans-serif; box-sizing: border-box;
}

@media screen and (max-width: 480px) {
  .gate-help-toggle { position: static; display: flex; margin: 18px auto 0; width: max-content; right: auto; bottom: auto; }
  .gate-help-panel { position: static; margin: 14px auto 0; width: 100%; max-width: 320px; right: auto; left: auto; bottom: auto; }
}

/* Champ département (cas d'homonymie entre deux foyers) : masqué par
   défaut, révélé par gate.js quand le serveur répond ambiguous:true. */
#gate-departement-wrap select {
  width: 100%; padding: 10px 12px; border: 1px solid #e0d8c3; border-radius: 8px;
  font-size: 14px; font-family: "Work Sans", Arial, sans-serif; box-sizing: border-box;
  background: #fff;
}

/* Bouton logout : visible en permanence dès que l'invité est connecté
   (classe .visible, posée par gate.js une fois la session enregistrée). */
.gate-logout {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 99997;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 14px -4px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}
.gate-logout.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ===================== 4. Enveloppe d'ouverture — rabat réaliste (charnière 3D) ===================== */
/*
  Ajustements demandés :
  1) Pause d'1 seconde après ouverture RETIRÉE (voir envelope.js) —
     le site apparaît immédiatement une fois le rabat ouvert.
  2) Le rabat reste OPAQUE pendant toute sa rotation (plus de
     transition "opacity", plus de opacity:0 en fin de course) : seule
     sa luminosité s'assombrit légèrement pour suggérer l'ombre
     naturelle du papier qui se retourne, sans jamais devenir
     transparent.

  Construction (01/10/2026) — trois calques superposés :
  - .envelope-inner-fill : l'intérieur de l'enveloppe (papier dans
    l'ombre), visible uniquement quand le rabat se soulève ;
  - .envelope-layer-body : le corps de l'enveloppe, image
    enveloppe-corps.webp (= enveloppe.webp dont le cachet a été effacé
    et remplacé par du papier), percé d'un trou à l'emplacement du
    rabat ;
  - .envelope-flap : le rabat qui pivote autour du pli. Face avant =
    enveloppe.webp découpée au contour du rabat + le cachet entier (le
    cachet part avec le rabat au lieu de se casser) ; face arrière =
    papier uni (l'intérieur du rabat, vu une fois celui-ci relevé).

  Contour du rabat mesuré sur l'image (1536x1024px) en suivant la
  ligne d'ombre de ses bords, élargi de 8px pour inclure le bord du
  papier et son ombre portée :
  - pli : y = 148 à 152, de x = 273 à x = 1266 ;
  - coins arrondis : les diagonales commencent à y = 203 sur les bords ;
  - diagonales : x = 0.9878*y + 72.1 (gauche), x = -0.9611*y + 1461.2
    (droite) ;
  - pointe : cachée sous le cachet, coupée à plat à y = 688.
  Cachet (avec son ombre) : cercle de centre (773, 597), rayon 108px.

  Historique : l'ancien contour passait ~45px à l'intérieur des vrais
  bords, et l'ancien masque du corps (triangle noir sur fond blanc,
  tous deux opaques — un masque agit sur l'opacité, pas sur la couleur)
  ne perçait rien : une copie du rabat restait affichée pendant
  l'ouverture.
*/

:root {
  --envelope-ratio: 1536 / 1024;
  --envelope-hint-y: 25%;
  --envelope-flap-polygon: polygon(
    17.77% 14.45%, 82.42% 14.45%, 82.42% 19.86%,
    52.08% 67.19%, 48.94% 67.19%, 17.77% 19.86%
  );
  /* Corps : opaque partout sauf le trou du rabat (zone transparente). */
  --envelope-body-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path fill-rule='evenodd' fill='white' d='M0 0H100V100H0Z M17.77 14.45L82.42 14.45L82.42 19.86L52.08 67.19L48.94 67.19L17.77 19.86Z'/></svg>");
  /* Rabat : contour du rabat + disque du cachet (ellipse en % car
     l'image n'est pas carrée). */
  --envelope-flap-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><path fill='white' d='M17.77 14.45L82.42 14.45L82.42 19.86L52.08 67.19L48.94 67.19L17.77 19.86Z'/><ellipse cx='50.33' cy='58.30' rx='7.03' ry='10.55' fill='white'/></svg>");
}

.envelope-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  background-color: #c8a45c;
  background-image: none;
  transition: opacity 0.55s ease;
}
.envelope-intro.envelope-hidden {
  opacity: 0;
  pointer-events: none;
}
body.envelope-active { overflow: hidden; }

/* Fondu croisé : le site apparaît (via .site-revealed) exactement au
   moment où .envelope-hidden commence à faire disparaître
   l'enveloppe — les deux transitions ont la même durée (0.55s), donc
   aucun vide ne peut apparaître entre les deux. */
html.site-revealed #fh5co-gate,
html.site-revealed #page {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.55s ease;
}

.envelope-stage {
  position: relative;
  width: 88vw;
  aspect-ratio: var(--envelope-ratio);
  perspective: 2600px;
  filter: drop-shadow(0 18px 30px rgba(50,38,20,0.35));
}
@media screen and (min-width: 768px) {
  .envelope-stage { width: 50vw; }
}

/* Intérieur de l'enveloppe : la photo des mariés en verre dépoli,
   découverte quand le rabat se soulève. Limité au contour du rabat.
   images/enveloppe-photo.jpg a les mêmes proportions que l'enveloppe
   (1536x1024) : la photo bg.jpg y est cadrée pour que les deux
   silhouettes tiennent dans le triangle, puis floutée et teintée avec
   les mêmes réglages que l'écran de connexion (.gate-overlay dans
   style.css : flou, saturation x1.1, voile brun à 35%). Le flou est
   intégré à l'image (et non en CSS) pour être identique quelle que
   soit la taille de l'écran. Le dégradé ajoute juste l'ombre du pli. */
.envelope-inner-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to bottom, rgba(40,28,10,0.3) 14.5%, rgba(40,28,10,0) 22%),
    url("../images/enveloppe-photo.jpg") 0 0 / 100% 100% no-repeat,
    #6e5f48;
  clip-path: var(--envelope-flap-polygon);
  z-index: 0;
}

/* Corps de l'enveloppe (sans cachet), percé à l'emplacement du rabat. */
.envelope-layer-body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  -webkit-mask-image: var(--envelope-body-mask);
  mask-image: var(--envelope-body-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* Rabat : pivote autour du pli (bord haut). Conteneur 3D portant ses
   deux faces. */
.envelope-flap {
  position: absolute;
  inset: 0;
  z-index: 3;
  transform-origin: 50% 14.45%;
  transform: rotateX(0deg);
  transform-style: preserve-3d;
  transition: transform 1.3s cubic-bezier(0.3, 0, 0.2, 1);
}
.envelope-intro.envelope-breaking .envelope-flap {
  transform: rotateX(160deg);
}

.envelope-flap-front,
.envelope-flap-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Face avant : l'image complète, ne laissant voir que le rabat et son
   cachet. S'assombrit légèrement en se soulevant. */
.envelope-flap-front {
  object-fit: contain;
  -webkit-mask-image: var(--envelope-flap-mask);
  mask-image: var(--envelope-flap-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  filter: brightness(1);
  transition: filter 1.3s ease;
}
.envelope-intro.envelope-breaking .envelope-flap-front {
  filter: brightness(0.8);
}

/* Face arrière : l'intérieur du rabat (papier uni), retourné pour
   coïncider avec la face avant (rabat quasi symétrique). */
.envelope-flap-back {
  background: linear-gradient(to bottom, #e9e1cf 14%, #ddd2bc 67%);
  clip-path: var(--envelope-flap-polygon);
  transform: rotateY(180deg);
  transform-origin: 50.1% 50%;
}

/* Texte d'accroche sur deux lignes (voir <br> dans index.html) pour ne
   jamais dépasser la largeur de l'enveloppe sur mobile. */
.envelope-hint {
  position: absolute;
  left: 50%;
  top: var(--envelope-hint-y);
  transform: translate(-50%, -50%);
  margin: 0;
  width: 80%;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #A6813E;
  text-align: center;
  text-shadow: 0 1px 3px rgba(255,255,255,0.7);
  animation: envelopePulse 1.9s ease-in-out infinite;
  transition: opacity 0.25s ease;
  z-index: 4;
}
/* L'animation de clignotement doit être arrêtée : une animation CSS
   l'emporte sur une transition, et le texte restait sinon affiché
   par-dessus le rabat pendant toute l'ouverture. */
.envelope-intro.envelope-breaking .envelope-hint {
  animation: none;
  opacity: 0;
}
@keyframes envelopePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .envelope-flap { transition: none !important; }
}

/* Enveloppe — fin de l'ouverture (voir startZoom dans envelope.js) :
   l'enveloppe ouverte glisse vers le bas pendant que le triangle de
   photo floutée s'agrandit jusqu'à devenir le fond de l'écran de
   connexion. */

/* L'enveloppe descend et sort de l'écran. */
.envelope-intro.envelope-zooming .envelope-stage {
  transform: translateY(105vh);
  transition: transform 1.1s cubic-bezier(0.55, 0, 0.75, 0.2);
}

/* Fenêtre plein écran découpée en forme de triangle au départ (même
   contour et même position que l'intérieur de l'enveloppe), qui
   s'élargit jusqu'à tout l'écran. Placée au-dessus de l'enveloppe. */
.zoom-window {
  position: fixed;
  inset: 0;
  z-index: 6;
  overflow: hidden;
  pointer-events: none;
  background: #3b3125;
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}

/* La photo : à l'arrivée, exactement placée comme la photo du haut du
   site (que floute l'écran de connexion) ; au départ, réduite et
   déplacée pour coïncider avec le triangle de l'enveloppe. */
.zoom-photo {
  position: absolute;
  background-repeat: no-repeat;
  transform-origin: 0 0;
  filter: blur(14px) saturate(1.1);
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}

/* Voiles : brun de l'écran de connexion (déjà présent dans le triangle)
   et noir du haut du site (apparaît progressivement). */
.zoom-shade {
  position: absolute;
  inset: 0;
}
.zoom-shade-header {
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 1.1s ease;
}
.zoom-shade-tint {
  background: rgba(40, 32, 20, 0.35);
}
.zoom-window.zoom-full .zoom-shade-header { opacity: 1; }

/* Révélation du lieu : bandeau « Le lieu de réception » sous les cartes du
   programme (voir js/lieu.js et apps-script/Lieu.gs).
   Le bandeau est un élément de la rangée des cartes, sur toute sa
   largeur : sur ordinateur/tablette il passe après les 4 cartes
   (order: 1) ; sur mobile (cartes empilées) il reste juste sous la
   carte « Réception ». Les cartes gardent ainsi toutes leur hauteur
   d'origine. Il reprend le cadre et le titre des cartes (.event-wrap) ;
   les règles sont préfixées par .lieu-bandeau pour l'emporter sur les
   tailles de texte imposées aux cartes (style.css). */
#fh5co-event .lieu-bandeau {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0 15px;
  margin-top: 10px;
  text-align: center;
}
@media screen and (min-width: 768px) {
  #fh5co-event .lieu-bandeau { order: 1; margin-top: 30px; }
}
#fh5co-event .lieu-bandeau .event-wrap { float: none; }

#fh5co-event .lieu-bandeau .lieu-countdown-label {
  margin: 0 0 6px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #918b84;
}
#fh5co-event .lieu-bandeau .lieu-countdown {
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #A6813E;
  letter-spacing: 0.5px;
  font-variant-numeric: tabular-nums;
}
#fh5co-event .lieu-bandeau .lieu-countdown small {
  font-size: 12px;
  font-weight: 400;
  margin: 0 6px 0 1px;
  color: #918b84;
}

/* Indices : côte à côte sur grand écran, empilés sur mobile. */
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li {
  flex: 1 1 180px;
  max-width: 300px;
  padding: 12px 14px;
  border: 1px solid #eee2cf;
  border-radius: 10px;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}
/* Pictogrammes de cadenas dessinés (identiques sur tous les appareils,
   contrairement aux emojis) : ouvert et doré pour un indice dévoilé,
   fermé et gris pour un indice à venir. */
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto 6px;
  background: no-repeat center / contain;
}
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indice-num {
  display: block;
  margin-bottom: 4px;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #A6813E;
}
/* « (dévoilé le JJ/MM/AAAA) » : en minuscules, à la suite de « INDICE 1 ». */
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indice-num .lieu-indice-date {
  display: inline;
  font-size: inherit;
  font-family: inherit;
  text-transform: none;
  letter-spacing: 0;
}
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li.debloque { color: #444; background: #fffaf0; }
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li.debloque::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7.5 11V7a4.5 4.5 0 0 1 8.7-1.6' fill='none' stroke='%23A6813E' stroke-width='2.2' stroke-linecap='round'/><rect x='4' y='11' width='16' height='11' rx='2.5' fill='%23A6813E'/><circle cx='12' cy='15.6' r='1.6' fill='white'/><rect x='11.2' y='16' width='1.6' height='3.2' rx='0.8' fill='white'/></svg>"); }
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li.verrouille { color: #b1aaa1; font-style: italic; }
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li.verrouille::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7.5 11V7a4.5 4.5 0 0 1 9 0v4' fill='none' stroke='%23bdb3a2' stroke-width='2.2' stroke-linecap='round'/><rect x='4' y='11' width='16' height='11' rx='2.5' fill='%23bdb3a2'/><circle cx='12' cy='15.6' r='1.6' fill='white'/><rect x='11.2' y='16' width='1.6' height='3.2' rx='0.8' fill='white'/></svg>"); }
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li.verrouille .lieu-indice-num { color: #c9bfae; }
@media screen and (max-width: 767px) {
  #fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li { flex-basis: 100%; max-width: none; }
}

/* Indice qui vient de se dévoiler : brève mise en valeur. */
#fh5co-event :is(.lieu-bandeau, .lieu-bas) .lieu-indices li.vient-de-se-debloquer {
  animation: lieuIndice 1.6s ease;
}
@keyframes lieuIndice {
  0% { background: rgba(201, 168, 96, 0.35); }
  100% { background: #fffaf0; }
}

/* Après révélation : le lieu est fusionné dans les cartes « Samedi ·
   16h » et « Dimanche · 13h » (le bandeau disparaît). */
#fh5co-event .event-wrap.lieu-anime {
  animation: lieuRevele 0.9s ease both;
}
@keyframes lieuRevele {
  from { opacity: 0.3; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Bas de carte (boutons, « Revoir les indices ») : poussé en bas comme
   le dernier paragraphe des autres cartes. */
#fh5co-event .event-wrap .lieu-bas { margin-top: auto; }
#fh5co-event .event-wrap .lieu-boutons-carte {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
}
#fh5co-event .event-wrap .lieu-boutons-carte .btn { margin: 0; }
#fh5co-event .event-wrap .lieu-teaser-maps { display: block; }
/* Carte du lieu (itinéraire) : affichée entière, aux proportions de
   l'image (840x560), au lieu du cadre fixe de 200px qui la rognerait
   sur les cartes étroites. */
#fh5co-event .event-wrap .reception-teaser.lieu-carte {
  height: auto;
  aspect-ratio: 3 / 2;
  background-size: cover;
  border-radius: 6px;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.3);
}
#fh5co-event .event-wrap .lieu-revoir {
  margin: 14px auto 0;
  padding: 4px 8px;
  border: none;
  background: none;
  font-family: "Work Sans", Arial, sans-serif;
  font-size: 13px;
  color: #A6813E;
  text-decoration: underline;
  cursor: pointer;
}
#fh5co-event .event-wrap .lieu-revoir::after { content: " ▾"; }
#fh5co-event .event-wrap .lieu-revoir[aria-expanded="true"]::after { content: " ▴"; }
#fh5co-event .lieu-bas .lieu-indices { margin-top: 12px; }
/* Liste repliée : l'attribut hidden doit l'emporter sur display: flex. */
#fh5co-event .lieu-bas .lieu-indices[hidden] { display: none; }
#fh5co-event .lieu-bas .lieu-indices li { flex-basis: 100%; max-width: none; }
/* Carte du dimanche : nom du lieu cliquable. */
#fh5co-event .event-wrap .lieu-nom-lien {
  display: block;
  margin-bottom: 10px;
  font-family: "Sofia Sans Condensed", Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #A6813E;
  text-decoration: none;
}
#fh5co-event .event-wrap .lieu-nom-lien:hover { text-decoration: underline; }

/* Paillettes scintillantes à la validation RSVP. */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99999;
  overflow: hidden;
}
.confetti-piece {
  position: absolute;
  top: -20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  opacity: 0;
  animation-name: pailletteFall, pailletteTwinkle;
  animation-timing-function: ease-in, ease-in-out;
  animation-fill-mode: forwards, both;
  animation-iteration-count: 1, infinite;
}
@keyframes pailletteFall {
  0% { transform: translate(0, 0) rotate(0deg) scale(0.6); }
  100% { transform: translate(var(--drift), 105vh) rotate(var(--rot)) scale(1); }
}
@keyframes pailletteTwinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* ===================== 5. Titres de section (fh5co-heading) ===================== */

.fh5co-heading h2 {
  line-height: 1.4 !important;
  margin-top: 20px !important;
  padding-top: 10px !important;
}

/* ===================== 6. Programme ===================== */

.event-day {
  display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px;
  font-weight: 700; color: #fff; background: #A6813E; padding: 4px 12px; border-radius: 20px; margin-bottom: 10px;
}
.event-wrap .event-daytime {
  font-size: 15px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: rgba(0,0,0,0.65); margin-bottom: 14px;
}
.event-wrap .event-daytime i { margin-right: 6px; font-size: 15px; vertical-align: middle; color: #A6813E; }
.event-wrap .event-divider { border: none; border-top: 2px solid rgba(0,0,0,0.35); margin: 0 0 16px; }
.event-wrap .event-divider-thin { border: none; border-top: 1px solid rgba(0,0,0,0.15); margin: 6px 0 16px; }
.event-wrap h3 { margin-bottom: 0 !important; }

/*
  Aperçus de carte Mairie/Église : remplacés par de vraies images
  statiques (maps-mairie.jpg, maps-eglise.jpg) au lieu d'iframes
  Google Maps. Les navigateurs intégrés (Messenger, Instagram,
  Facebook) bloquent le chargement des iframes Google Maps par
  sécurité (net::ERR_BLOCKED_BY_RESPONSE) — une image classique ne
  déclenche jamais ce blocage, car aucune requête n'est faite vers
  google.com : seul le clic ouvre le vrai lien Maps, en externe.
*/
.event-wrap .maps-preview-link {
  display: block;
  max-width: 300px;
  margin: 0 auto 10px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px -6px rgba(0,0,0,0.3);
  transition: opacity 0.25s ease;
}
.event-wrap .maps-preview-link:hover {
  opacity: 0.88;
}
.event-wrap .maps-preview-img {
  width: 100%;
  height: auto;
  display: block;
}

.reception-popup { display: block; }
.reception-teaser {
  cursor: pointer;
  transition: opacity 0.25s ease;
  max-width: 300px;
  margin: 0 auto 10px;
}
.reception-teaser:hover { opacity: 0.88; }
.reception-icon i { color: #A6813E; }

.mfp-img-mobile .mfp-close {
  background: rgba(0,0,0,0.6); color: #fff; width: 44px; height: 44px; line-height: 44px;
  border-radius: 50%; right: 8px; top: 8px; text-align: center;
}
@media screen and (max-width: 480px) {
  .mfp-img-mobile .mfp-close { right: 6px; top: 6px; }
}

#fh5co-event .display-t,
#fh5co-event .display-tc {
  display: block !important;
  width: 100% !important;
  height: auto !important;
}
#fh5co-event .col-md-12 {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  width: 100% !important;
  float: none !important;
}
#fh5co-event .col-md-3 {
  float: none !important;
}

/* ===================== 7. RSVP ===================== */

.rsvp-deadline { font-size: 20px !important; font-weight: 700; color: #A6813E; letter-spacing: 0.5px; margin-top: 8px; }

.rsvp-household-progress {
  font-size: 14px;
  color: #918b84;
  letter-spacing: 0.3px;
  margin-top: 20px;
  font-style: italic;
}

.rsvp-step { display: none; }
.rsvp-step.active { display: block; animation: rsvpFadeIn 0.3s ease; }
.rsvp-step.revealed {
  display: block; animation: rsvpFadeIn 0.3s ease; padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px dashed #eee2cf;
}
.rsvp-step.revealed[data-step="recap"] { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
@keyframes rsvpFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* Centrage du texte des questions par rapport à la carte RSVP. */
.rsvp-question {
  text-align: center;
}
.rsvp-label {
  display: block;
  text-align: center;
}
.rsvp-options {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  text-align: left;
}
.rsvp-comment {
  text-align: center;
}
.rsvp-comment textarea {
  text-align: left;
}

.rsvp-step-actions { margin-top: 16px; text-align: center; }
.rsvp-next-btn {
  display: inline-block; padding: 12px 28px; border: none; border-radius: 30px; background: #C9A860;
  color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
  transition: background 0.25s ease;
}
.rsvp-next-btn:hover { background: #b8974f; }

.rsvp-option-disabled { opacity: 0.55; cursor: default; }
.rsvp-option-disabled label { cursor: default; }

.rsvp-recap-title { font-family: "Sacramento", Arial, serif; color: #A6813E; font-size: 24px; margin-bottom: 16px; text-align: center; }
.rsvp-recap-content { margin-bottom: 16px; }
.recap-line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eee2cf; font-size: 14px; }
.recap-line .recap-q { color: #888; }
.recap-line .recap-a { color: #444; font-weight: 600; text-align: right; }
.recap-line.recap-comment { flex-direction: column; }
.recap-line.recap-comment .recap-a { text-align: left; font-weight: 400; font-style: italic; margin-top: 4px; }

.recap-calendar, .rsvp-calendar-slot { text-align: center; margin-top: 16px; }
.rsvp-calendar-btn {
  display: inline-block; padding: 10px 22px; border: 1px solid #C9A860; border-radius: 30px;
  color: #A6813E; text-decoration: none; font-size: 13px; transition: all 0.25s ease;
}
.rsvp-calendar-btn:hover { background: #C9A860; color: #fff; }

.rsvp-recap-actions {
  display: flex; flex-direction: column; gap: 10px; align-items: center;
  position: sticky; bottom: 12px; background: rgba(255,255,255,0.97); padding: 14px;
  border-radius: 16px; box-shadow: 0 12px 28px -10px rgba(0,0,0,0.22); z-index: 6;
}
@media screen and (max-width: 480px) { .rsvp-recap-actions { bottom: 6px; padding: 12px; } }

.rsvp-edit-btn {
  border: 1px solid #C9A860; background: transparent; color: #A6813E; border-radius: 30px;
  padding: 10px 24px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.25s ease;
  opacity: 0;
}
.rsvp-edit-btn:hover { background: #C9A860; color: #fff; }
.rsvp-edit-btn.rsvp-pop-in { animation: rsvpPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }

.rsvp-submit-btn {
  border: none; border-radius: 30px; background: #C9A860; color: #fff; padding: 12px 26px;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; cursor: pointer;
  transition: background 0.25s ease;
  opacity: 0;
  animation: rsvpSubmitPulseStrong 1.3s ease-in-out infinite;
}
.rsvp-submit-btn:hover { background: #b8974f; }
.rsvp-submit-btn:disabled { animation: none !important; background: #ccc; cursor: not-allowed; transform: none !important; }
@keyframes rsvpSubmitPulseStrong {
  0% { box-shadow: 0 0 0 0 rgba(201,168,96,0.75); transform: scale(1); }
  50% { box-shadow: 0 0 0 18px rgba(201,168,96,0); transform: scale(1.06); }
  100% { box-shadow: 0 0 0 0 rgba(201,168,96,0); transform: scale(1); }
}

.rsvp-card.rsvp-locked { background: #fdfbf6; transition: background 0.4s ease; }
.rsvp-card.rsvp-locked .rsvp-recap-title { display: none; }
.rsvp-card.rsvp-locked .rsvp-recap-content { margin-bottom: 8px; }
.rsvp-card.rsvp-locked .recap-line { padding: 6px 0; font-size: 13px; }
.rsvp-card.rsvp-locked .rsvp-success {
  font-family: "Sacramento", Arial, serif; font-size: 20px; color: #7ea67e; margin: 0 0 14px; text-align: center;
}
.rsvp-edit-btn { display: inline-block; }
.rsvp-card.rsvp-locked .rsvp-edit-btn { display: none !important; }
.rsvp-card.rsvp-locked .rsvp-recap-actions { position: static; box-shadow: none; background: transparent; padding: 0; }

/* Après validation : rappel des membres du foyer qui n'ont pas encore
   répondu (voir showHouseholdNextStep dans rsvp.js). */
.rsvp-next-member {
  margin-top: 18px; padding: 16px; border-radius: 14px; background: #f7efe0;
  text-align: center; animation: rsvpFadeIn 0.4s ease;
}
.rsvp-next-member p { margin: 0 0 12px; color: #6d5a35; font-size: 15px; }
.rsvp-goto-next-btn {
  display: inline-block; padding: 12px 28px; border: none; border-radius: 30px; background: #C9A860;
  color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
  transition: background 0.25s ease;
}
.rsvp-goto-next-btn:hover { background: #b8974f; }

/* Mise en évidence brève de la fiche vers laquelle on vient de défiler. */
.rsvp-card.rsvp-highlight { animation: rsvpHighlight 1.8s ease; }
@keyframes rsvpHighlight {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,96,0); }
  30% { box-shadow: 0 0 0 6px rgba(201,168,96,0.55); }
}

.rsvp-comment textarea { transition: border-color 0.3s ease; }
.rsvp-comment textarea::placeholder { color: #b79a5c; transition: color 0.2s ease; opacity: 1; }

.rsvp-label.rsvp-typing::after, .rsvp-recap-title.rsvp-typing::after,
.rsvp-option label.rsvp-typing::after,
.rsvp-next-btn.rsvp-typing::after,
.rsvp-edit-btn.rsvp-typing::after,
.rsvp-submit-btn.rsvp-typing::after,
.recap-a.rsvp-typing::after {
  content: "|";
  display: inline-block;
  margin-left: 2px;
  color: currentColor;
  animation: rsvpCursorBlink 0.8s steps(1) infinite;
}
.recap-a.rsvp-typing::after,
.rsvp-label.rsvp-typing::after, .rsvp-recap-title.rsvp-typing::after {
  color: #C9A860;
}
@keyframes rsvpCursorBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.rsvp-option, .rsvp-next-btn { opacity: 0; }
.rsvp-option.rsvp-pop-in, .rsvp-next-btn.rsvp-pop-in {
  animation: rsvpPopIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.rsvp-next-btn.rsvp-pop-in { display: inline-block; }
@keyframes rsvpPopIn {
  0% { opacity: 0; transform: scale(0.35) translateY(10px); }
  70% { opacity: 1; transform: scale(1.08) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.rsvp-question label.rsvp-sublabel {
  display: block;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-weight: 400;
  color: #918b84;
  margin-top: -6px;
  margin-bottom: 10px;
}

/* ===================== 8. Dress code ===================== */

.dresscode-palette {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 24px 0;
  flex-wrap: wrap;
}
.dresscode-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.dresscode-swatch {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,0.35);
  border: 2px solid #fff;
}
.dresscode-hex {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #888;
  text-transform: uppercase;
}

/* ===================== 9. Visibilité par profil (weekend / vin d'honneur) ===================== */

body.profil-vinhonneur .profil-weekend-only { display: none !important; }
.profil-vinhonneur-only { display: none; }
body.profil-vinhonneur .profil-vinhonneur-only { display: inline; }

/* ===================== 10. Rubrique "La team des mariés" ===================== */

.team-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.team-member {
  padding: 20px 12px;
}

.team-photo-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(135deg, #C9A860, #A6813E);
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.35);
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  display: block;
}

.team-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  color: #fff;
}
.team-badge-claire {
  background: #C9A860;
}
.team-badge-sylvain {
  background: #9CAF88;
}

.team-name {
  font-family: "Sacramento", Arial, serif;
  font-size: 26px;
  color: #444;
  margin: 4px 0 0;
}

@media screen and (max-width: 480px) {
  .team-photo-wrap {
    width: 100px;
    height: 100px;
  }
}

/* Mobile (< 768 px, où Bootstrap ne donne aucune largeur aux colonnes) :
   sans largeur imposée, chaque témoin prenait la largeur de son contenu
   et la grille variait selon l'écran (1/1/1/1, 2/1/1, 3/1...). On force
   2 colonnes égales, soit toujours 2 + 2. Les pseudo-éléments
   ::before/::after de .row (clearfix Bootstrap) sont retirés car, dans
   une rangée flex, ils comptent comme des éléments. */
.team-row::before,
.team-row::after { display: none; }
@media screen and (max-width: 767px) {
  .team-row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    padding-left: 6px;
    padding-right: 6px;
  }
  .team-member { padding: 16px 0; }
}
@media screen and (max-width: 400px) {
  .team-badge {
    font-size: 10px;
    letter-spacing: 0;
    padding: 4px 8px;
  }
}

.team-contact-note {
  margin-top: 24px;
  font-size: 14px;
  color: #888;
  text-align: center;
}
.team-contact-note b {
  color: #A6813E;
}

/* ===================== 11. Rubrique "Nous contacter" ===================== */

.contact-field { margin-bottom: 16px; text-align: left; }
.contact-field label {
  display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
  color: #A6813E; margin-bottom: 6px; font-weight: 600;
}
.contact-field input, .contact-field textarea {
  width: 100%; border: 1px solid #e0d8c3; border-radius: 8px; padding: 10px 12px;
  font-family: "Work Sans", Arial, sans-serif; font-size: 14px; box-sizing: border-box;
}
.contact-field textarea { min-height: 110px; resize: vertical; }
.contact-send {
  display: block; width: 100%; border: none; border-radius: 30px; background: #C9A860;
  color: #fff; padding: 12px 0; font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.5px; cursor: pointer; transition: background 0.25s ease;
}
.contact-send:hover { background: #b8974f; }
.contact-send:disabled { background: #ccc; cursor: not-allowed; }
.contact-status { margin-top: 10px; text-align: center; font-size: 13px; color: #888; }

#fh5co-contact .fh5co-heading {
  margin-top: 0 !important;
  overflow: visible !important;
}
#fh5co-contact .fh5co-heading.animate-box {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
#fh5co-contact .fh5co-heading h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 20px !important;
  line-height: 1.4 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}
#fh5co-contact .fh5co-heading p {
  margin-top: 0;
}

/* ===================== 12. Pied de page ===================== */

.fh5co-copyright {
  text-align: center;
  padding: 18px 0;
  font-size: 12px;
  color: #999;
  background: #f7f4ee;
}

/* ===================== Lot 2 (01/10/2026) ===================== */

/* Emplacements remplis après connexion (data-slot, voir gate.js) :
   dans le programme, l'emplacement ne doit pas créer de boîte, pour que
   la carte insérée reste un élément direct de la rangée flex. */
.slot-contents { display: contents; }

/* Ajout à l'agenda : deux boutons, iPhone et Android (voir ics.js). */
.rsvp-calendar-title { margin: 0 0 10px; font-size: 14px; color: #6d5a35; }
.rsvp-calendar-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
