/* ==============================================================================
   PREMIUM LAB — STYLES & THÈME OFFICIEL
   Design généré avec Google Stitch & optimisé pour Premium Lab
   ============================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

@layer base {
  html, body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  body {
    overscroll-behavior: none;
    background-color: #fdf7ff;
    color: #1d1b20;
  }
}

/* Utilitaires typographiques */
.font-headline {
  font-family: 'Public Sans', sans-serif;
}

/* ==============================================================================
   ANIMATIONS & MOTION SYSTEM (GPU Accelerated, Accessible)
   ============================================================================== */

/* Transitions douces */
.transition-smooth {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll Reveal (Apparition fluide au défilement) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Délais échelonnés pour grilles (Stagger) */
.delay-100 { transition-delay: 100ms; }
.delay-150 { transition-delay: 150ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Flottaison douce (Hero & éléments d'accentuation) */
@keyframes float-gentle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-float {
  animation: float-gentle 4.5s ease-in-out infinite;
}

/* Radar pulse pour l'indicateur "En Direct 7j/7" */
@keyframes pulse-radar {
  0% {
    transform: scale(0.9);
    opacity: 0.85;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.pulse-radar-dot {
  position: relative;
}

.pulse-radar-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: currentColor;
  animation: pulse-radar 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Élévation interactive des cartes au survol */
.card-interactive {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-interactive:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -10px rgba(79, 55, 138, 0.14), 0 6px 12px -2px rgba(0, 0, 0, 0.04);
}

/* Micro-interaction sur les boutons CTA */
.btn-interactive {
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.15s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-interactive:hover {
  transform: translateY(-1.5px);
}

.btn-interactive:active {
  transform: translateY(0.5px) scale(0.99);
}

/* Shimmer subtil sur le badge Vedette */
@keyframes shimmer-sweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.badge-shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
  background-size: 200% 100%;
  animation: shimmer-sweep 3.5s infinite;
}

/* Transitions modale optimisées */
#leadModal {
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

#leadModal.modal-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

#leadModal.modal-closed {
  opacity: 0 !important;
  pointer-events: none !important;
}

#modalDialog {
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

#leadModal.modal-open #modalDialog {
  transform: scale(1) translateY(0) !important;
  opacity: 1 !important;
}

#leadModal.modal-closed #modalDialog {
  transform: scale(0.95) translateY(10px) !important;
  opacity: 0 !important;
}

/* Respect de l'accessibilité : Réduction des mouvements pour les utilisateurs sensibles */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .animate-float, .pulse-radar-dot::after, .badge-shimmer {
    animation: none !important;
  }
  .card-interactive:hover, .btn-interactive:hover {
    transform: none !important;
  }
}

/* Barre de défilement discrète */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #fdf7ff;
}
::-webkit-scrollbar-thumb {
  background: #e6e0e9;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #cbc4d2;
}

/* Spinner de chargement */
.loading-spinner {
  border: 2px solid rgba(103, 80, 164, 0.2);
  border-top-color: #6750a4;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

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

/* Focus accessible */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #6750a4;
  outline-offset: 2px;
}
