/* ==========================================================================
   SEMAINE DE L'AUTODIDACTE 2026 - CHARTE & STYLES OFFICIELS DYNAMIQUES
   Reproduction pixel-perfect des maquettes 1.jpg et 2.jpg
   Animations & Micro-interactions Vanilla CSS
   ========================================================================== */

:root {
  /* Palette de couleurs officielle */
  --color-dark: #0b1120;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-white: #ffffff;

  /* Couleurs signatures */
  --color-orange: #f26522;
  --color-orange-dark: #d94e0f;
  --color-orange-light: #ff7e42;
  --color-orange-subtle: #fff7ed;
  --color-orange-border: #fed7aa;
  --color-teal-badge: #136c57;
  --color-teal-badge-hover: #0f5645;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #20bd5a;

  /* Typographie */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;

  /* Rayons et Ombres */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --shadow-subtle: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 12px 32px -8px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-elevated: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.04);
  --shadow-orange: 0 10px 24px -4px rgba(242, 101, 34, 0.38);
  --shadow-green: 0 10px 24px -4px rgba(37, 211, 102, 0.38);

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --------------------------------------------------------------------------
   RESET & BASE STYLES AVEC AMBIANCE DYNAMIQUE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: #faf7f2;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(242, 101, 34, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.06) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--color-slate-800);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Canvas Confettis plein écran (au-dessus lors de la célébration) */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

#confetti-canvas.is-active {
  display: block;
}

/* Conteneur principal centré façon One Page Application */
.page-wrapper {
  width: 100%;
  max-width: 500px;
  min-height: 100vh;
  background-color: var(--color-white);
  box-shadow: 0 0 50px -10px rgba(15, 23, 42, 0.08);
  margin: 0 auto;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 24px 60px;
  transition: opacity var(--transition-normal);
}

@media (min-width: 640px) {
  .page-wrapper {
    margin: 24px auto;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--color-slate-200);
    padding: 48px 32px 70px;
  }
}

/* --------------------------------------------------------------------------
   ANIMATIONS D'APPARITION DU HERO & MICRO-MOUVEMENTS
   -------------------------------------------------------------------------- */
.header-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

/* Logo Cerveau + Ampoule + Livre avec flottement doux */
.logo-container {
  margin-bottom: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.animate-hero-logo {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both,
             gentleFloat 4.2s ease-in-out 0.8s infinite;
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.brand-logo {
  height: 78px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.brand-logo:hover {
  transform: scale(1.08) rotate(1deg);
}

/* Titre principal & Année avec entrée échelonnée */
.animate-hero-title {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-slate-900);
  margin-bottom: 16px;
}

@media (min-width: 480px) {
  .hero-title {
    font-size: 34px;
  }
}

.year-orange {
  display: block;
  color: var(--color-orange);
  font-size: 34px;
  font-weight: 900;
  margin-top: 2px;
  transition: transform var(--transition-fast);
}

.year-orange:hover {
  transform: scale(1.04);
}

@media (min-width: 480px) {
  .year-orange {
    font-size: 38px;
  }
}

/* Badge 2e Édition avec pulsation raffinée */
.animate-hero-badge {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both,
             badgePulse 3.5s ease-in-out 1.2s infinite;
}

@keyframes badgePulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(19, 108, 87, 0.25);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 18px rgba(19, 108, 87, 0.45);
    transform: scale(1.03);
  }
}

.badge-edition {
  display: inline-block;
  background-color: var(--color-teal-badge);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 5px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.badge-edition:hover {
  background-color: var(--color-teal-badge-hover);
  transform: translateY(-2px);
}

/* Thème officiel */
.animate-hero-theme {
  animation: heroEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.theme-box {
  max-width: 420px;
  margin: 0 auto;
}

.theme-text {
  font-size: 14px;
  font-style: italic;
  font-weight: 500;
  color: var(--color-slate-700);
  line-height: 1.55;
}

.theme-text strong {
  font-style: normal;
  font-weight: 700;
  color: var(--color-slate-800);
}

@keyframes heroEntrance {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   PARTENAIRES & SPONSORS (DÉFILEMENT HORIZONTAL DROITE -> GAUCHE)
   -------------------------------------------------------------------------- */
.sponsors-section {
  width: 100%;
  margin: 12px 0 38px;
  padding: 16px 0;
  border-top: 1px solid var(--color-slate-100);
  border-bottom: 1px solid var(--color-slate-100);
  text-align: center;
  overflow: hidden;
}

.sponsors-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-slate-400);
  margin-bottom: 18px;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* Masque de dégradé pour adoucir l'entrée à droite et la sortie à gauche */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 24s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  flex-shrink: 0;
}

.sponsor-item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: unset;
  padding: 0 10px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  opacity: 0.88;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.sponsor-item:hover {
  opacity: 1;
  transform: scale(1.08);
  box-shadow: none;
}

.sponsor-item img {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  background: transparent;
}

/* Défilement continu et fluide de la droite vers la gauche */
@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation-duration: 60s;
  }
}

/* --------------------------------------------------------------------------
   SYSTÈME DE RÉVÉLATION AU DÉFILEMENT (SCROLL REVEAL)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--stagger-delay, 0s);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   TITRES DE SECTIONS AVEC TRAIT ORANGE EXPANDABLE
   -------------------------------------------------------------------------- */
.section-header {
  text-align: center;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--color-slate-900);
}

.orange-divider {
  width: 52px;
  height: 4px;
  background-color: var(--color-orange);
  border-radius: var(--radius-full);
  margin: 8px auto 10px;
  transform-origin: center;
  transform: scaleX(0.2);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.is-revealed .orange-divider,
.header-hero .orange-divider,
.thank-you-card .orange-divider {
  transform: scaleX(1);
}

.section-subtitle {
  font-size: 14.5px;
  color: var(--color-slate-600);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   PROGRAMME (J-1, J-2, J-3) AVEC CARTES INTERACTIVES
   -------------------------------------------------------------------------- */
.program-section {
  width: 100%;
  margin-bottom: 48px;
}

.program-timeline {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.program-day {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 12px;
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.program-day:hover {
  background-color: #fbfcfe;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -10px rgba(15, 23, 42, 0.05);
}

.day-badge {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: var(--color-slate-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}

.program-day:hover .day-badge {
  color: var(--color-orange);
  transform: scale(1.08);
}

.day-title {
  font-family: var(--font-display);
  font-size: 18.5px;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.day-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-orange);
  margin-bottom: 12px;
}

.day-date svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.program-day:hover .day-date svg {
  animation: calendarWiggle 0.6s ease;
}

@keyframes calendarWiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  75% { transform: rotate(12deg); }
}

.day-description {
  font-size: 13.5px;
  color: var(--color-slate-600);
  line-height: 1.6;
  max-width: 440px;
}

/* --------------------------------------------------------------------------
   SECTION LOCALISATION : PAREIL QUE CELLE DU FORMULAIRE
   -------------------------------------------------------------------------- */
.location-section {
  width: 100%;
  margin-bottom: 48px;
}

.location-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 32px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.location-card:hover {
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08);
}

@media (min-width: 480px) {
  .location-card {
    padding: 38px 28px;
  }
}

/* Bouton en pilule de fond vert intitulé Grand Calao */
.btn-location-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #16a34a;
  background-image: linear-gradient(135deg, #22c55e 0%, #16a34a 55%, #15803d 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 34px;
  box-shadow: 0 8px 24px -4px rgba(22, 163, 74, 0.45), 0 3px 8px -2px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* Effet de brillance (shimmer) traversant la pilule */
.btn-location-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-25deg);
  animation: buttonShine 4s infinite ease-in-out;
  pointer-events: none;
}

.btn-location-pill:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px -2px rgba(22, 163, 74, 0.55), 0 6px 12px -2px rgba(15, 23, 42, 0.1);
}

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

.btn-location-pill .pill-pin-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-location-pill:hover .pill-pin-svg {
  transform: translateY(-2px) scale(1.12);
}

/* --------------------------------------------------------------------------
   SECTION FORMULAIRE : CONFIRMER VOTRE PRÉSENCE
   -------------------------------------------------------------------------- */
.rsvp-section {
  width: 100%;
  margin-bottom: 48px;
}

.form-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-xl);
  padding: 26px 20px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.form-card:hover {
  box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.08);
}

@media (min-width: 480px) {
  .form-card {
    padding: 32px 26px;
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-slate-900);
  margin-bottom: 8px;
}

.form-label .req {
  color: var(--color-orange);
  margin-left: 2px;
}

/* Input avec icône interactive */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.input-wrapper:focus-within {
  transform: translateY(-1px);
}

.input-icon {
  position: absolute;
  left: 15px;
  color: var(--color-slate-400);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.input-wrapper:focus-within .input-icon {
  color: var(--color-orange);
  transform: scale(1.12);
}

.input-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.form-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-slate-900);
  background-color: #f7f9fc;
  border: 1.5px solid #edf0f5;
  border-radius: var(--radius-md);
  padding: 13px 16px 13px 44px;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--color-slate-400);
}

.form-input:focus {
  background-color: var(--color-white);
  border-color: var(--color-orange);
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.12);
}

.form-input.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.error-message {
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
  display: none;
}

.error-message.visible {
  display: block;
}

/* --------------------------------------------------------------------------
   OPTIONS DE PARTICIPATION (CHECKBOX CARDS AVEC MICRO-ANIMATIONS)
   -------------------------------------------------------------------------- */
.days-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.day-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #f7f9fc;
  border: 1.5px solid #edf0f5;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.day-option-card:hover {
  background-color: #f1f4f9;
  border-color: #e2e8f0;
  transform: translateX(4px);
}

.day-option-card:active {
  transform: scale(0.98);
}

.day-option-card.is-checked {
  background-color: var(--color-white);
  border-color: var(--color-orange-border);
  box-shadow: 0 4px 14px rgba(242, 101, 34, 0.1);
}

/* Masquer l'input checkbox natif */
.day-option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Boîte personnalisée orange avec coche animée */
.custom-checkbox-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.day-option-card.is-checked .custom-checkbox-box {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  box-shadow: 0 3px 8px rgba(242, 101, 34, 0.4);
  transform: scale(1.05);
}

.custom-checkbox-box svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.day-option-card.is-checked .custom-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
  animation: checkBounce 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.option-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-slate-800);
  line-height: 1.35;
}

.option-text strong {
  font-weight: 700;
  color: var(--color-slate-900);
}

/* --------------------------------------------------------------------------
   BOUTON CONFIRMER AVEC EFFET SHIMMER BRILLANT
   -------------------------------------------------------------------------- */
.btn-submit {
  width: 100%;
  margin-top: 10px;
  background-color: var(--color-orange);
  background-image: linear-gradient(135deg, #f26522 0%, #ea580c 100%);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

/* Balayage de lumière étincelant (shimmer) */
.btn-submit::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  animation: buttonShine 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes buttonShine {
  0%, 65% { left: -100%; }
  100% { left: 200%; }
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -2px rgba(242, 101, 34, 0.48);
}

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

.btn-submit svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.btn-submit:hover svg {
  transform: translateX(5px);
}

/* État de chargement du bouton */
.btn-submit.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.btn-submit.is-loading .btn-text {
  visibility: hidden;
}

.btn-submit.is-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--color-white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* --------------------------------------------------------------------------
   BOUTON LOCALISER L'ÉVÈNEMENT (MÊME STYLE QUE CONFIRMER MAIS FOND BLANC)
   -------------------------------------------------------------------------- */
.btn-locate-event {
  width: 100%;
  margin-top: 12px;
  background-color: #ffffff;
  color: var(--color-orange);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-md);
  padding: 15px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(242, 101, 34, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all var(--transition-fast);
}

/* Balayage de lumière (shimmer) identique au bouton Confirmer */
.btn-locate-event::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(242, 101, 34, 0.12), transparent);
  transform: skewX(-25deg);
  animation: buttonShine 4s infinite ease-in-out;
  pointer-events: none;
}

.btn-locate-event:hover {
  background-color: var(--color-orange-subtle);
  border-color: var(--color-orange-dark);
  color: var(--color-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -2px rgba(242, 101, 34, 0.3);
}

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

.btn-locate-event .locate-pin {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-locate-event .locate-arrow {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.btn-locate-event:hover .locate-pin {
  transform: scale(1.15);
}

.btn-locate-event:hover .locate-arrow {
  transform: translateX(5px);
}

.btn-locate-thankyou {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   VUE 2 : PAGE / ÉCRAN DE REMERCIEMENT (MAQUETTE 2.JPG)
   -------------------------------------------------------------------------- */
.thank-you-view {
  display: none;
  width: 100%;
  max-width: 440px;
  margin: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all var(--transition-smooth);
}

.thank-you-view.is-visible {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: thankYouPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes thankYouPop {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(24px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.thank-you-card {
  background-color: var(--color-white);
  border: 1px solid var(--color-slate-200);
  border-radius: var(--radius-2xl);
  padding: 38px 24px 34px;
  box-shadow: var(--shadow-elevated);
  text-align: center;
}

@media (min-width: 480px) {
  .thank-you-card {
    padding: 44px 32px 40px;
  }
}

.thank-you-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--color-slate-900);
  line-height: 1.25;
}

.thank-you-desc {
  font-size: 14.5px;
  color: var(--color-slate-600);
  line-height: 1.6;
  margin: 16px 0 28px;
}

.thank-you-desc strong {
  font-weight: 700;
  color: var(--color-slate-900);
}

.thank-you-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Bouton Retour (Orange) */
.btn-back-home {
  width: 100%;
  background-color: var(--color-orange);
  background-image: linear-gradient(135deg, #f26522 0%, #ea580c 100%);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-back-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -2px rgba(242, 101, 34, 0.45);
}

.btn-back-home svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.btn-back-home:hover svg {
  transform: translateX(-4px);
}

/* Bouton Partager sur WhatsApp avec lueur respirante */
.btn-share-whatsapp {
  width: 100%;
  background-color: var(--color-whatsapp);
  background-image: linear-gradient(135deg, #25d366 0%, #20bd5a 100%);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-green);
  animation: pulseWhatsApp 3s infinite ease-in-out;
  transition: all var(--transition-fast);
  text-decoration: none;
}

@keyframes pulseWhatsApp {
  0%, 100% {
    box-shadow: 0 8px 24px -2px rgba(37, 211, 102, 0.38);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.58);
    transform: scale(1.02);
  }
}

.btn-share-whatsapp:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 32px -2px rgba(37, 211, 102, 0.55);
}

.whatsapp-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   PIED DE PAGE (FOND ORANGE OFFICIEL)
   -------------------------------------------------------------------------- */
.site-footer {
  margin: 44px -24px -60px -24px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #f26522 0%, #d94e0f 100%);
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  border-top: none;
  box-shadow: 0 -4px 18px rgba(242, 101, 34, 0.18);
}

.site-footer p {
  color: #ffffff;
  opacity: 0.96;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .site-footer {
    margin: 48px -32px -70px -32px;
    padding: 26px 28px;
    border-bottom-left-radius: var(--radius-2xl);
    border-bottom-right-radius: var(--radius-2xl);
  }
}

/* --------------------------------------------------------------------------
   NOTIFICATIONS TOASTS (INSCRIPTION ENREGISTRÉE)
   -------------------------------------------------------------------------- */
.toast-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  opacity: 0;
  visibility: hidden;
  background-color: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  color: #065f46;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(6, 95, 70, 0.12);
  z-index: 999;
  transition: all var(--transition-smooth);
}

.toast-notification.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast-notification svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================================================
   EXPÉRIENCE D'OUVERTURE D'ENVELOPPE D'INVITATION VIP (3D VANILLA CSS)
   ========================================================================== */
.envelope-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  background-color: #faf7f2;
  background-image: 
    radial-gradient(circle at 50% 30%, #ffffff 0%, #faf6f0 50%, #f4ede4 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.65s;
}

/* Halo doré doux et chaleureux en arrière-plan */
.envelope-overlay::before {
  content: "";
  position: absolute;
  width: min(90vw, 540px);
  height: min(90vw, 540px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(242, 101, 34, 0.05) 45%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: joyfulAura 4.5s ease-in-out infinite alternate;
}

@keyframes joyfulAura {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
  }
}

.envelope-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(1.05);
}

.envelope-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.envelope-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* En-tête de bienvenue */
.envelope-header-text {
  margin-bottom: 24px;
}

.envelope-tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #92400e;
  background: #ffffff;
  border: 1.5px solid #d4af37;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.18);
  padding: 6px 20px;
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   STRUCTURE DE L'ENVELOPPE 3D (COULEUR SOMBRE VIP & BORDURES DORÉES)
   -------------------------------------------------------------------------- */
.envelope-card {
  position: relative;
  width: 320px;
  height: 210px;
  margin: 26px auto 26px;
  perspective: 1200px;
  transform-style: preserve-3d;
  cursor: pointer;
  animation: floatEnvelope 4.5s ease-in-out infinite;
  user-select: none;
}

@media (max-width: 380px) {
  .envelope-card {
    width: 285px;
    height: 190px;
  }
}

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

/* Fond arrière de l'enveloppe (Sombre noble avec bordure dorée) */
.envelope-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #d4af37;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25),
              0 0 24px rgba(212, 175, 55, 0.22);
}

/* Carte / Lettre intérieure VIP */
.envelope-letter {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  height: 185px;
  background: #ffffff;
  border: 1.5px solid #d4af37;
  border-radius: 12px;
  padding: 14px 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
  z-index: 2;
  transition: transform 0.85s cubic-bezier(0.34, 1.25, 0.64, 1) 0.35s,
              z-index 0s 0.35s;
  pointer-events: none;
}

.letter-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
}

.letter-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.letter-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.letter-badge {
  font-size: 10px;
  font-weight: 700;
  background-color: var(--color-teal-badge);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.letter-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  color: var(--color-slate-900);
  line-height: 1.2;
}

.letter-theme {
  font-size: 10.5px;
  font-style: italic;
  color: var(--color-slate-600);
  line-height: 1.35;
  max-width: 250px;
}

.letter-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--color-orange);
}

/* Rabat supérieur pliable en 3D (Sombre avec filet doré le long du biseau) */
.envelope-flap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 110px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #2c3c52 0%, #1a2538 100%);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  transform-origin: top center;
  transform: rotateX(0deg);
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 0px #d4af37) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
  z-index: 4;
}

/* Pochette avant triangulaire (Sombre avec liseré doré sur la découpe) */
.envelope-pocket {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  clip-path: polygon(0 38%, 50% 68%, 100% 38%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #1e293b 0%, #131c2d 100%);
  border-bottom: 2px solid #d4af37;
  filter: drop-shadow(0 -1.5px 0px #d4af37);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  z-index: 3;
}

/* Sceau officiel avec pulsation et bordure dorée */
.wax-seal-btn {
  position: absolute;
  top: 88px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f26522 0%, #c2410c 70%, #9a3412 100%);
  border: 2.5px solid #d4af37;
  box-shadow: 0 8px 24px rgba(242, 101, 34, 0.45),
              0 0 18px rgba(212, 175, 55, 0.45),
              inset 0 2px 4px rgba(255, 255, 255, 0.5);
  color: #ffffff;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sealPulse 2.8s infinite ease-in-out;
  transition: transform 0.3s ease, opacity 0.3s ease;
  outline: none;
}

@keyframes sealPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.35);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.6);
  }
}

.seal-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.seal-icon {
  font-size: 15px;
  line-height: 1;
}

.seal-text {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   ÉTAT OUVERT : ANIMATION DE L'ENVELOPPE DÉPLIÉE
   -------------------------------------------------------------------------- */
.envelope-card.is-open {
  animation: none;
}

/* 1. Le sceau disparaît */
.envelope-card.is-open .wax-seal-btn {
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

/* 2. Le rabat supérieur s'ouvre vers le haut en 3D */
.envelope-card.is-open .envelope-flap {
  transform: rotateX(180deg);
  z-index: 1;
}

/* 3. La lettre s'extrait vers le haut */
.envelope-card.is-open .envelope-letter {
  transform: translateY(-135px) scale(1.06);
  z-index: 6;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Bouton d'action sous l'enveloppe */
.btn-open-envelope {
  background-color: var(--color-orange);
  background-image: linear-gradient(135deg, #f26522 0%, #ea580c 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-full);
  padding: 13px 32px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(242, 101, 34, 0.35),
              0 0 15px rgba(212, 175, 55, 0.15);
  transition: all var(--transition-fast);
}

.btn-open-envelope:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 30px rgba(242, 101, 34, 0.48),
              0 0 20px rgba(212, 175, 55, 0.25);
}

.btn-open-envelope svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.btn-open-envelope:hover svg {
  transform: translateX(4px);
}

/* ==========================================================================
   BOUTON FLOTTANT DE NAVIGATION INTER-SECTIONS (CENTRÉ, FOND BLANC & FLÈCHE ORANGE)
   ========================================================================== */
.floating-scroll-btn {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-orange);
  border: 2px solid rgba(242, 101, 34, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12),
              0 3px 10px rgba(242, 101, 34, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease,
              opacity 0.35s ease,
              visibility 0.35s ease;
  animation: floatingArrowBounce 2.4s ease-in-out infinite;
}

.floating-scroll-btn:hover {
  transform: translateX(-50%) translateY(-3px) scale(1.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18),
              0 4px 14px rgba(242, 101, 34, 0.35);
  border-color: var(--color-orange);
}

.floating-scroll-btn:active {
  transform: translateX(-50%) translateY(1px) scale(0.96);
}

.floating-scroll-btn .scroll-arrow-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-scroll-btn.is-up .scroll-arrow-icon {
  transform: rotate(180deg);
}

.floating-scroll-btn.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) scale(0.7) translateY(20px);
}

@keyframes floatingArrowBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@media (max-width: 480px) {
  .floating-scroll-btn {
    bottom: 20px;
    left: 50%;
    right: auto;
    width: 48px;
    height: 48px;
  }

  .floating-scroll-btn .scroll-arrow-icon {
    width: 22px;
    height: 22px;
  }
}


