/* ============================================================
   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.

  Mesures manuelles exactes sur enveloppe.png (1536x1024px) :
  - Coin supérieur gauche du rabat : (273, 152)
  - Coin supérieur droit du rabat  : (1267, 152)
  - Pointe basse du rabat (cachet) : (775, 667)
*/

:root {
  --envelope-flap-top-y: 14.84%;
  --envelope-flap-left-x: 17.77%;
  --envelope-flap-right-x: 82.49%;
  --envelope-seal-x: 50.46%;
  --envelope-seal-y: 65.14%;
  --envelope-ratio: 1536 / 1024;
  --envelope-hint-y: 25%;
  --envelope-flap-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'><rect width='100' height='100' fill='white'/><polygon points='17.77,14.84 82.49,14.84 50.46,65.14' fill='black'/></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; }
}

/* Calque de fond crème, limité exactement au même triangle que le
   trou découpé dans .envelope-layer-body. */
.envelope-inner-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #f3e6c8;
  clip-path: polygon(
    var(--envelope-flap-left-x) var(--envelope-flap-top-y),
    var(--envelope-flap-right-x) var(--envelope-flap-top-y),
    var(--envelope-seal-x) var(--envelope-seal-y)
  );
  z-index: 0;
}

/* Le corps de l'enveloppe (fond + rabat replié) : toujours visible,
   ne bouge jamais — SAUF sur la zone du rabat, perforée par un masque
   pour ne plus jamais dupliquer visuellement le rabat animé au-dessus. */
.envelope-layer-body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 1;
  -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;
}

/* Le rabat : un vrai triangle (coin haut-gauche → coin haut-droit →
   pointe basse). Reste ENTIÈREMENT OPAQUE pendant toute la rotation
   (plus de transition d'opacity) : seule sa luminosité diminue
   légèrement pour suggérer l'ombre du papier qui se retourne. */
.envelope-layer-flap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  z-index: 3;
  clip-path: polygon(
    var(--envelope-flap-left-x) var(--envelope-flap-top-y),
    var(--envelope-flap-right-x) var(--envelope-flap-top-y),
    var(--envelope-seal-x) var(--envelope-seal-y)
  );
  transform-origin: var(--envelope-seal-x) var(--envelope-flap-top-y);
  transform: rotateX(0deg) translateZ(0);
  filter: brightness(1) drop-shadow(0 2px 4px rgba(0,0,0,0.25));
  transition:
    transform 1.3s cubic-bezier(0.3, 0, 0.2, 1),
    filter 1.3s ease;
}
.envelope-intro.envelope-breaking .envelope-layer-flap {
  transform: rotateX(105deg) translateZ(-10px);
  filter: brightness(0.75) drop-shadow(0 6px 14px rgba(0,0,0,0.3));
}

/* 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;
}
.envelope-intro.envelope-breaking .envelope-hint {
  opacity: 0;
}
@keyframes envelopePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

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

/* 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; }

.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;
  }
}

.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;
}
