/*
Theme Name:  Jordan & Vanessa — Wedding
Theme URI:   https://christianmagen.com/
Author:      chriswadol
Description: Thème one-page haut de gamme pour le mariage de Vanessa & Jordan à Kinshasa.
             Format invitation numérique verticale, optimisé mobile (style Undangan Digital).
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: vanessa-jordan
*/

/* ============================================================
   TABLE DES MATIÈRES
   1.  Variables CSS & Tokens de Design
   2.  Reset & Base
   3.  Conteneur Smartphone (centrage desktop)
   4.  Typographie Globale
   5.  Overlay d'Ouverture
   6.  Section Hero
   7.  Section Intro / Citation
   8.  Section Countdown
   9.  Section Programme / Événements
   10. Section Cadeaux
   11. Section RSVP
   12. Footer
   13. Bouton Musique Flottant
   14. Utilitaires & Séparateurs
   15. Animations
   16. Media Queries
   ============================================================ */


/* ============================================================
   1. VARIABLES CSS & TOKENS DE DESIGN
   ============================================================ */
:root {
  /* Palette */
  --color-emerald:      #0b3a2a;   /* Vert émeraude profond — dominante */
  --color-emerald-mid:  #144d38;   /* Émeraude intermédiaire */
  --color-emerald-light:#1a6147;   /* Émeraude clair pour hovers */
  --color-cream:        #f9f3eb;   /* Crème / fond principal */
  --color-cream-dark:   #f0e8d8;   /* Crème légèrement soutenu */
  --color-gold:         #d4af37;   /* Or — accentuation */
  --color-gold-light:   #e8cb6a;   /* Or clair */
  --color-text-dark:    #1a1a1a;   /* Texte principal sombre */
  --color-text-mid:     #4a4a4a;   /* Texte secondaire */
  --color-text-light:   #f9f3eb;   /* Texte sur fond sombre */
  --color-white:        #ffffff;

  /* Typographies */
  --font-serif:    'Great Vibes', serif;
  --font-sans:     'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;

  /* Tailles de texte */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.375rem;
  --text-2xl:   1.75rem;
  --text-3xl:   2.25rem;
  --text-4xl:   2.875rem;
  --text-5xl:   3.5rem;

  /* Espacement */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-2xl:  6rem;

  /* Conteneur smartphone */
  --phone-width: 480px;
  --phone-shadow: 0 0 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(0,0,0,0.1);

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:   200ms;
  --duration-base:   400ms;
  --duration-slow:   700ms;
  --duration-xslow: 1200ms;

  /* Bordures */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: #1a1a1a; /* fond gris charbon visible uniquement sur desktop, hors téléphone */
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ============================================================
   3. CONTENEUR SMARTPHONE (centrage desktop)
   Simule un écran de téléphone sur les grands écrans.
   Sur mobile réel, s'étend à 100% de la largeur.
   ============================================================ */
#phone-frame {
  position: relative;
  width: 100%;
  max-width: var(--phone-width);
  margin: 0 auto;
  background-color: var(--color-cream);
  overflow: hidden;

  /* Ombre portée uniquement visible sur desktop */
  box-shadow: var(--phone-shadow);
}

/* Sur desktop : afficher le "cadre" avec marges */
@media (min-width: 600px) {
  body {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: var(--space-lg) var(--space-sm);
  }

  #phone-frame {
    border-radius: 24px;
  }
}


/* ============================================================
   4. TYPOGRAPHIE GLOBALE
   ============================================================ */

/* Titres principaux — serif */
.heading-display {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.heading-section {
  font-family: var(--font-base);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-emerald);
  text-align: center;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.heading-section--light {
  color: var(--color-cream);
}

/* Sous-titre / eyebrow */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-xs);
}

/* Corps de texte */
.body-text {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.75;
}

.body-text--light {
  color: rgba(249, 243, 235, 0.85);
}

/* Séparateur texte ✧ ✧ ✧ */
.separator {
  display: block;
  text-align: center;
  color: var(--color-gold);
  font-size: var(--text-lg);
  letter-spacing: 0.5em;
  margin: var(--space-md) 0;
  line-height: 1;
}

.separator--sm {
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  margin: var(--space-sm) 0;
}


/* ============================================================
   5. OVERLAY D'OUVERTURE (Écran de couverture)
   Plein écran, bloque la vue initiale, slide vers le haut au clic.
   ============================================================ */
#cover-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-lg) var(--space-md);

  /* Fond émeraude avec légère texture visuelle via gradient */
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
    linear-gradient(160deg, #0d4230 0%, #0b3a2a 50%, #071f17 100%);

  /* Contenu centré dans le phone frame uniquement */
  max-width: var(--phone-width);
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  border-radius: inherit;

  transition:
    transform var(--duration-xslow) var(--ease-smooth),
    opacity var(--duration-slow) var(--ease-smooth);
}

/* Décoration coin haut-gauche & bas-droit */
#cover-overlay::before,
#cover-overlay::after {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  border-color: rgba(212, 175, 55, 0.3);
  border-style: solid;
}
#cover-overlay::before {
  top: 20px;
  left: 20px;
  border-width: 1px 0 0 1px;
}
#cover-overlay::after {
  bottom: 20px;
  right: 20px;
  border-width: 0 1px 1px 0;
}

/* État fermé : glisse vers le haut */
#cover-overlay.is-closed {
  transform: translateX(-50%) translateY(-105%);
  opacity: 0;
  pointer-events: none;
}

/* Contenu de l'overlay */
.cover__eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.cover__invite-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(249, 243, 235, 0.55);
  margin-bottom: var(--space-lg);
}

.cover__names {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.1;
  margin-bottom: var(--space-xs);
}

.cover__names span {
  display: block;
  color: var(--color-gold);
  font-size: 2rem;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.cover__date-text {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: rgba(249, 243, 235, 0.7);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xl);
}

/* Bouton d'ouverture */
.btn-open {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.875rem 2.25rem;
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: background var(--duration-base) var(--ease-smooth),
              color var(--duration-base) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-spring);
  cursor: pointer;
  animation: pulse-border 2.5s ease-in-out infinite;
}

.btn-open:hover,
.btn-open:focus-visible {
  background: var(--color-gold);
  color: var(--color-emerald);
  transform: scale(1.04);
  animation: none;
  outline: none;
}

.btn-open svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--duration-base) var(--ease-spring);
}

.btn-open:hover svg {
  transform: translateY(2px);
}

/* Fleur décorative légère */
.cover__floral {
  font-size: 1.5rem;
  color: rgba(212, 175, 55, 0.5);
  margin: var(--space-sm) 0;
  display: block;
  letter-spacing: 0.3em;
}


/* ============================================================
   6. SECTION HERO
   Première section visible après fermeture de l'overlay.
   Occupe 100vh.
   ============================================================ */
.section-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(ellipse at 20% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, #0b3a2a 0%, #144d38 60%, #0b3a2a 100%);
}

/* Motif géométrique subtil en fond */
.section-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(212,175,55,0.03) 0px,
      rgba(212,175,55,0.03) 1px,
      transparent 1px,
      transparent 40px
    );
  pointer-events: none;
}

.hero__family {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(249, 243, 235, 0.6);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}


.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 12vw, 4.5rem);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1.05;
  margin-bottom: 0.3em;
}

.hero__ampersand {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--color-gold);
  font-size: 0.55em;
  letter-spacing: 0.12em;
  line-height: 1.8;
}

.hero__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: rgba(249, 243, 235, 0.7);
  letter-spacing: 0.1em;
  margin-top: var(--space-md);
}

/* Trait d'or horizontal */
.gold-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-md) auto;
}

.gold-line--long {
  width: 100px;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: bounce-down 2s ease-in-out infinite;
}

.scroll-hint span {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.6);
}

.scroll-hint__arrow {
  width: 24px;
  height: 24px;
  border-right: 1px solid rgba(212, 175, 55, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.5);
  transform: rotate(45deg);
}


/* ============================================================
   7. SECTION INTRO / CITATION
   ============================================================ */
.section-intro {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--color-cream);
  position: relative;
}

.section-intro::before {
  content: '\275D'; /* « guillemet décoratif */
  position: absolute;
  top: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  font-size: 5rem;
  color: rgba(212, 175, 55, 0.12);
  font-family: var(--font-serif);
  line-height: 1;
}

.intro__quote {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-emerald);
  line-height: 1.6;
  max-width: 340px;
  margin: 0 auto var(--space-sm);
}

.intro__verse {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.intro__message {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.8;
  max-width: 360px;
  margin: var(--space-md) auto 0;
}

.intro__message strong {
  color: var(--color-emerald);
  font-weight: 600;
  font-size: var(--text-base);
}


/* ============================================================
   8. SECTION COUNTDOWN
   ============================================================ */
.section-countdown {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(160deg, #071f17 0%, #0b3a2a 100%);
  position: relative;
  overflow: hidden;
}

.section-countdown::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--color-cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.countdown__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
  flex-wrap: wrap;
}

.countdown__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.countdown__number {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 700;
  color: var(--color-cream);
  line-height: 1;
  min-width: 72px;
  text-align: center;
  letter-spacing: -0.02em;
}

.countdown__label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.75);
  margin-top: 4px;
}

.countdown__colon {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: rgba(212, 175, 55, 0.4);
  margin-bottom: 1rem;
  line-height: 1;
  align-self: flex-start;
  margin-top: 0.1em;
}

/* Message si mariage déjà passé */
.countdown__done {
  display: none;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-gold);
}


/* ============================================================
   9. SECTION PROGRAMME / ÉVÉNEMENTS
   ============================================================ */
.section-programme {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background-color: var(--color-cream);
}

/* Timeline verticale */
.timeline {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  padding: var(--space-sm) 0;
}

/* Ligne centrale dorée */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--color-gold) 15%, var(--color-gold) 85%, transparent);
  transform: translateX(-50%);
}

.timeline__event {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* Puce centrale sur la ligne */
.timeline__dot {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--color-gold);
  border-radius: 50%;
  border: 2px solid var(--color-cream);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.25);
  z-index: 1;
  flex-shrink: 0;
}

/* Carte gauche */
.timeline__card {
  width: calc(50% - 20px);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  position: relative;
}

.timeline__card--left {
  margin-right: auto;
  text-align: right;
  background: var(--color-cream-dark);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.timeline__card--right {
  margin-left: auto;
  text-align: left;
  background: var(--color-emerald);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.timeline__day {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.timeline__card--left .timeline__day { color: var(--color-gold); }
.timeline__card--right .timeline__day { color: rgba(212, 175, 55, 0.8); }

.timeline__time {
  font-family: var(--font-base);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline__card--left .timeline__time { color: var(--color-emerald); }
.timeline__card--right .timeline__time { color: var(--color-cream); }

.timeline__event-name {
  font-family: var(--font-base);
  font-style: italic;
  font-size: var(--text-sm);
  line-height: 1.4;
  margin-bottom: 6px;
}

.timeline__card--left .timeline__event-name { color: var(--color-text-dark); }
.timeline__card--right .timeline__event-name { color: rgba(249, 243, 235, 0.9); }

.timeline__venue {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.timeline__card--left .timeline__venue { color: var(--color-text-mid); }
.timeline__card--right .timeline__venue { color: rgba(249, 243, 235, 0.65); }

/* Bouton itinéraire Google Maps */
.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: var(--space-xs);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
  text-decoration: none;
  cursor: pointer;
}

.btn-maps--dark {
  background: var(--color-emerald);
  color: var(--color-cream);
  border: 1px solid var(--color-emerald);
}

.btn-maps--dark:hover {
  background: var(--color-emerald-light);
  transform: scale(1.03);
}

.btn-maps--light {
  background: rgba(212, 175, 55, 0.15);
  color: var(--color-gold);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-maps--light:hover {
  background: rgba(212, 175, 55, 0.3);
  transform: scale(1.03);
}

.btn-maps svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Note cocktail */
.event-note {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-style: italic;
  color: var(--color-gold);
  margin-top: 4px;
  display: block;
}


/* ============================================================
   10. SECTION CADEAUX
   ============================================================ */
.section-gifts {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background-color: var(--color-cream-dark);
  position: relative;
}

.gifts__icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--space-sm);
}

.gifts__card {
  background: var(--color-white);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  max-width: 340px;
  margin: var(--space-sm) auto 0;
  box-shadow: 0 4px 20px rgba(11, 58, 42, 0.08);
}

.gifts__card p {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.75;
}

.gifts__card strong {
  color: var(--color-emerald);
}


/* ============================================================
   11. SECTION RSVP
   ============================================================ */
.section-rsvp {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(160deg, #0b3a2a 0%, #071f17 100%);
  position: relative;
}

.rsvp__deadline {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  color: rgba(212, 175, 55, 0.8);
  text-align: center;
  margin-bottom: var(--space-md);
}

/* Formulaire */
.rsvp-form {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249, 243, 235, 0.7);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  transition: border-color var(--duration-base), background var(--duration-base);
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(249, 243, 235, 0.35);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.1);
}

/* Fix couleur option sur select */
.form-select option {
  background: var(--color-emerald);
  color: var(--color-cream);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4af37' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 90px;
}

/* Groupe de radio boutons stylisés */
.radio-group {
  display: flex;
  gap: var(--space-xs);
}

.radio-option {
  flex: 1;
  position: relative;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.65rem;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(249, 243, 235, 0.55);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  text-align: center;
}

.radio-option input:checked + .radio-label {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-emerald);
}

/* Bouton de soumission */
.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--color-gold);
  color: var(--color-emerald);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: background var(--duration-base), transform var(--duration-fast) var(--ease-spring);
  margin-top: var(--space-xs);
}

.btn-submit:hover {
  background: var(--color-gold-light);
  transform: scale(1.02);
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Messages de retour AJAX */
.rsvp-message {
  display: none;
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  text-align: center;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin-top: var(--space-xs);
}

.rsvp-message.success {
  display: block;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--color-gold);
}

.rsvp-message.error {
  display: block;
  background: rgba(200, 60, 60, 0.12);
  border: 1px solid rgba(200, 60, 60, 0.3);
  color: #e88080;
}


/* ============================================================
   12. FOOTER
   ============================================================ */
.site-footer {
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  background-color: #071f17;
  text-align: center;
}

.footer__names {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--color-cream);
  margin-bottom: var(--space-xs);
}

.footer__date {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(212, 175, 55, 0.6);
  margin-bottom: var(--space-md);
}

.footer__credit {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: rgba(249, 243, 235, 0.25);
  letter-spacing: 0.05em;
  margin-top: var(--space-md);
}


/* ============================================================
   13. BOUTON MUSIQUE FLOTTANT
   ============================================================ */
#music-toggle {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-sm);
  z-index: 500;

  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(11, 58, 42, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-gold);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform var(--duration-fast) var(--ease-spring),
              background var(--duration-base);

  /* Caché par défaut jusqu'à ouverture overlay */
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base), transform var(--duration-fast) var(--ease-spring);
}

#music-toggle.visible {
  opacity: 1;
  pointer-events: all;
}

#music-toggle:hover {
  transform: scale(1.1);
  background: rgba(11, 58, 42, 1);
}

/* Centrage sur desktop : ancré au phone frame */
@media (min-width: 600px) {
  #music-toggle {
    right: calc(50% - var(--phone-width)/2 + var(--space-sm));
  }
}


/* ============================================================
   14. UTILITAIRES & ANIMATIONS D'ENTRÉE
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.35s; }
.reveal-delay-4 { transition-delay: 0.5s; }


/* ============================================================
   15. ANIMATIONS @KEYFRAMES
   ============================================================ */
@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
  50%       { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.15); }
}

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

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Spinner de chargement formulaire */
.btn-submit .spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}


/* ============================================================
   16. MEDIA QUERIES
   ============================================================ */

/* Petit mobile (iPhone SE, Galaxy A12…) */
@media (max-width: 380px) {
  .cover__names { font-size: 2.8rem; }
  .hero__title  { font-size: 2.6rem; }
  .countdown__number { font-size: 2.2rem; }
  .timeline__card { padding: var(--space-xs); }
}

/* Pas de shadow/radius sur vrai mobile */
@media (max-width: 599px) {
  #phone-frame {
    box-shadow: none;
    border-radius: 0;
  }

  #music-toggle {
    right: var(--space-sm);
    bottom: var(--space-sm);
  }
}

/* Accessibilité : mode daltonien / contraste élevé */
@media (forced-colors: active) {
  .btn-open, .btn-submit, .btn-maps {
    border: 2px solid ButtonText;
  }
}
