/* Import des polices Google Fonts - DOIT ÊTRE EN PREMIER */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/**
 * 🚀 PREMIUM STYLES - Le Plein
 * Styles CSS premium pour une expérience utilisateur exceptionnelle
 * Approche "Elon Musk" - Innovation, Excellence, Design Premium
 */

/* ===== CRISP CHAT - POSITION À GAUCHE ===== */
.crisp-client {
  left: 20px !important;
  right: auto !important;
  bottom: 80px !important;
}

.crisp-client .crisp-1rjpbb7 {
  left: 0 !important;
  right: auto !important;
}

/* Ajuster la chatbox quand elle s'ouvre */
.crisp-client[data-full-view="true"] {
  left: 20px !important;
  right: auto !important;
}

/* Mobile - ajuster la position */
@media (max-width: 768px) {
  .crisp-client {
    left: 10px !important;
    bottom: 70px !important;
  }
}

/* ===== HEADER PREMIUM ===== */
.header-container {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 3px solid var(--leplein-yellow) !important;
  box-shadow: 0 4px 20px rgba(0, 40, 45, 0.08), 0 0 0 1px rgba(245, 255, 0, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header-container:hover {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 6px 30px rgba(0, 40, 45, 0.12), 0 0 0 1px rgba(245, 255, 0, 0.2) !important;
}

/* Logo premium transparent */
.logo-link {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 2px 4px rgba(0, 40, 45, 0.1));
  background: transparent !important;
}

.logo-link:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 12px rgba(245, 255, 0, 0.4));
}

.logo-link img {
  transition: all 0.3s ease;
  background: transparent !important;
  mix-blend-mode: multiply;
}

/* Boutons de navigation premium - Taille premium moderne */
.ux-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid transparent !important;
  font-weight: normal !important;
  min-width: 160px !important;
  max-width: 200px !important;
  height: 48px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.625rem !important;
  padding: 0.875rem 1.75rem !important;
  font-size: 0.9375rem !important;
  border-radius: 12px !important;
  letter-spacing: 0.01em !important;
}

.ux-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.ux-btn:hover::before {
  left: 100%;
}

.ux-btn-primary {
  background: linear-gradient(135deg, var(--leplein-yellow) 0%, #f0ff00 100%) !important;
  color: var(--leplein-green) !important;
  border: 2px solid var(--leplein-yellow) !important;
  box-shadow: 0 4px 15px rgba(245, 255, 0, 0.35) !important;
}

.ux-btn-primary:hover {
  transform: translateY(-3px) scale(1.05) !important;
  box-shadow: 0 6px 20px rgba(245, 255, 0, 0.45) !important;
}

.ux-btn-secondary {
  background: white !important;
  color: var(--leplein-green) !important;
  border: 2px solid rgba(0, 40, 45, 0.15) !important;
  box-shadow: 0 2px 8px rgba(0, 40, 45, 0.08) !important;
}

.ux-btn-secondary:hover {
  background: var(--leplein-yellow) !important;
  color: var(--leplein-green) !important;
  border-color: var(--leplein-yellow) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(245, 255, 0, 0.3) !important;
}

.ux-btn-accent {
  background: linear-gradient(135deg, var(--leplein-green) 0%, #004a52 100%) !important;
  color: white !important;
  border: 2px solid var(--leplein-green) !important;
  box-shadow: 0 4px 12px rgba(0, 40, 45, 0.25) !important;
}

.ux-btn-accent:hover {
  background: linear-gradient(135deg, #004a52 0%, var(--leplein-green) 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 20px rgba(0, 40, 45, 0.35) !important;
}

/* Résultats de recherche - plus cliquables */
.suggestion-item {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  padding: 1rem !important;
  border-radius: 12px !important;
  background: white !important;
  margin-bottom: 0.5rem !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 2px solid transparent !important;
  cursor: pointer !important;
  text-decoration: none !important;
}

.suggestion-item:hover {
  background: var(--leplein-yellow) !important;
  border-color: var(--leplein-yellow) !important;
  transform: translateX(8px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(245, 255, 0, 0.3) !important;
}

.suggestion-item:hover .suggestion-content h4 {
  color: var(--leplein-green) !important;
}

.suggestion-item:hover .fa-arrow-right {
  transform: translateX(4px) !important;
  color: var(--leplein-green) !important;
}

.suggestion-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--leplein-yellow) !important;
  color: var(--leplein-green) !important;
  font-size: 1.5rem !important;
  flex-shrink: 0 !important;
}

.suggestion-content {
  flex: 1 !important;
}

.suggestion-content h4 {
  font-weight: 600 !important;
  font-size: 1rem !important;
  margin-bottom: 0.25rem !important;
  color: var(--leplein-green) !important;
}

.suggestion-content p {
  font-size: 0.875rem !important;
  color: #6b7280 !important;
  margin-bottom: 0.5rem !important;
}

.suggestion-type {
  display: inline-block !important;
  padding: 0.25rem 0.75rem !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  background: rgba(245, 255, 0, 0.2) !important;
  color: var(--leplein-green) !important;
}

/* Menu mobile premium */
.mobile-menu-btn {
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  background: rgba(245, 255, 0, 0.1);
  transform: scale(1.1);
}

/* Badge page courante */
#currentPageLabel {
  background: linear-gradient(135deg, var(--leplein-yellow) 0%, #f0ff00 100%) !important;
  color: var(--leplein-green) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(245, 255, 0, 0.3);
  border: 1px solid rgba(0, 40, 45, 0.1);
}

/* Header scroll state */
.header-container.scrolled {
  background: rgba(255, 255, 255, 1) !important;
  box-shadow: 0 8px 32px rgba(0, 40, 45, 0.15), 0 0 0 1px rgba(245, 255, 0, 0.15) !important;
  border-bottom-width: 4px !important;
}

/* Navigation dropdown premium */
.menu-panel {
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  border: 2px solid var(--leplein-yellow) !important;
  box-shadow: 0 10px 40px rgba(0, 40, 45, 0.15), 0 0 0 1px rgba(245, 255, 0, 0.1) !important;
  border-radius: 16px !important;
}

/* Scrollbar personnalisée pour le menu */
.menu-panel::-webkit-scrollbar {
  width: 8px;
}

.menu-panel::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

.menu-panel::-webkit-scrollbar-thumb {
  background: var(--leplein-yellow);
  border-radius: 4px;
}

.menu-panel::-webkit-scrollbar-thumb:hover {
  background: #f0ff00;
}

.menu-item a:hover {
  background: rgba(245, 255, 0, 0.1);
  color: var(--leplein-green) !important;
  padding-left: 1rem;
  transition: all 0.3s ease;
}

/* Polices locales premium */
@font-face {
  font-family: 'Vast XL';
  src: url('../../VastXL-ExtraBold.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ===== VARIABLES CSS GLOBALES PREMIUM ===== */
:root {
  /* Couleurs premium Le Plein */
  --leplein-yellow: #f5ff00;
  --leplein-green: #00282d;
  --leplein-green-light: #004a52;
  --leplein-green-dark: #001a1d;
  --premium-gray: #f8fafc;
  --premium-dark: #1e293b;
  --premium-white: #ffffff;
  --premium-silver: #e2e8f0;
  --premium-gold: #fbbf24;
  
  /* Gradients premium */
  --gradient-primary: linear-gradient(135deg, var(--leplein-yellow) 0%, #e6f700 50%, #d4f000 100%);
  --gradient-secondary: linear-gradient(135deg, var(--leplein-green) 0%, var(--leplein-green-light) 100%);
  --gradient-luxury: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  --gradient-dark: linear-gradient(135deg, var(--premium-dark) 0%, #334155 100%);
  
  /* Animations premium */
  --animation-duration: 0.6s;
  --animation-easing: cubic-bezier(0.4, 0, 0.2, 1);
  --animation-easing-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --animation-stagger: 0.1s;
  --animation-delay: 0.05s;
  
  /* Interactions intuitives */
  --hover-scale: 1.03;
  --hover-lift: 12px;
  --hover-rotate: 2deg;
  --glow-intensity: 0.5;
  --focus-scale: 1.05;
  
  /* Ombres premium luxe */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-strong: 0 20px 40px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 30px rgba(245, 255, 0, 0.4);
  --shadow-glow-strong: 0 0 50px rgba(245, 255, 0, 0.6);
  --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  
  /* Bordures premium */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-full: 50px;
  
  /* Typographie premium */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Espacements premium */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;
}

/* ===== BOUTONS PREMIUM ===== */

/* Bouton principal premium luxe */
.btn-premium {
  position: relative;
  overflow: hidden;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--border-radius-lg);
  padding: 24px 40px;
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--leplein-green);
  cursor: pointer;
  transition: all var(--animation-duration) var(--animation-easing);
  box-shadow: var(--shadow-medium), var(--shadow-glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  min-height: 68px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Vast XL', 'Inter', sans-serif;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.btn-premium:hover {
  transform: translateY(-4px) scale(var(--hover-scale)) rotate(var(--hover-rotate));
  box-shadow: var(--shadow-strong), var(--shadow-glow-strong);
  background: linear-gradient(135deg, #f8ff1a 0%, #f0ff00 50%, #e6f700 100%);
  text-decoration: none;
  color: var(--leplein-green);
  letter-spacing: 0.8px;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-premium:active {
  transform: translateY(0) scale(0.98);
}

/* Bouton secondaire premium */
.btn-secondary-premium {
  position: relative;
  background: transparent;
  border: 2px solid var(--leplein-yellow);
  border-radius: 12px;
  padding: 24px 40px;
  font-weight: 600;
  color: var(--leplein-yellow);
  cursor: pointer;
  transition: all var(--animation-duration) var(--animation-easing);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 68px;
}

.btn-secondary-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--leplein-yellow);
  transition: width var(--animation-duration) var(--animation-easing);
  z-index: -1;
}

.btn-secondary-premium:hover {
  color: var(--leplein-green);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 255, 0, 0.3);
  text-decoration: none;
}

.btn-secondary-premium:hover::before {
  width: 100%;
}

/* ===== CARDS PREMIUM ===== */

.card-premium {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: all 0.4s var(--animation-easing);
  border: 1px solid rgba(245, 255, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(245,255,0,0.05), transparent);
  transition: left 0.6s ease;
}

.card-premium:hover {
  transform: translateY(-var(--hover-lift));
  box-shadow: var(--shadow-hover);
  border-color: rgba(245, 255, 0, 0.3);
}

.card-premium:hover::before {
  left: 100%;
}

/* ===== EFFETS SPÉCIAUX ===== */

/* Effet shimmer */
.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(245,255,0,0.2), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
  display: inline-block;
  padding: 2px 4px;
  border-radius: 4px;
}

/* Surlignage premium */
.highlight-title {
  display: inline;
  padding-bottom: 0.06em;
  background-image: linear-gradient(transparent calc(100% - 0.26em), rgba(245,255,0,0.6) 0.26em);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  box-decoration-break: clone;
}

/* ===== ANIMATIONS PREMIUM ===== */

/* Float animation */
@keyframes float {
  0%, 100% { 
    transform: translateY(0px); 
  }
  50% { 
    transform: translateY(-20px); 
  }
}

/* Glow animation */
@keyframes glow {
  0% { 
    box-shadow: 0 0 5px rgba(245,255,0,0.2), 0 0 10px rgba(245,255,0,0.1); 
  }
  100% { 
    box-shadow: 0 0 20px rgba(245,255,0,0.4), 0 0 30px rgba(245,255,0,0.2); 
  }
}

/* Shimmer animation */
@keyframes shimmer {
  0% { 
    background-position: -200% 0; 
  }
  100% { 
    background-position: 200% 0; 
  }
}

/* Wiggle animation */
@keyframes wiggle {
  0%, 100% { 
    transform: rotate(-3deg); 
  }
  50% { 
    transform: rotate(3deg); 
  }
}

/* Scale in animation */
@keyframes scaleIn {
  0% { 
    opacity: 0; 
    transform: scale(0.3); 
  }
  100% { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* Slide in right animation */
@keyframes slideInRight {
  0% { 
    opacity: 0; 
    transform: translateX(100px); 
  }
  100% { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

/* Ripple effect */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ===== CLASSES UTILITAIRES PREMIUM ===== */

/* Animations de luxe */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-glow {
  animation: glow 2s ease-in-out infinite alternate;
}

.animate-shimmer {
  animation: shimmer 2s linear infinite;
}

.animate-wiggle {
  animation: wiggle 1s ease-in-out infinite;
}

.animate-scale-in {
  animation: scaleIn 0.5s var(--animation-easing-bounce);
}

.animate-slide-in-right {
  animation: slideInRight 0.8s var(--animation-easing);
}

.animate-bounce-gentle {
  animation: bounceGentle 2s ease-in-out infinite;
}

.animate-pulse-soft {
  animation: pulseSoft 3s ease-in-out infinite;
}

.animate-rotate-slow {
  animation: rotateSlow 20s linear infinite;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s var(--animation-easing) both;
}

/* Classes de luxe */
.luxury-card {
  background: var(--gradient-luxury);
  border: 1px solid var(--premium-silver);
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(10px);
  transition: all var(--animation-duration) var(--animation-easing);
}

.luxury-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-glow-strong);
  border-color: var(--leplein-yellow);
}

.premium-gradient-bg {
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

.premium-gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-soft);
}

.neon-glow {
  box-shadow: 
    0 0 20px var(--leplein-yellow),
    0 0 40px var(--leplein-yellow),
    0 0 60px var(--leplein-yellow);
  animation: neonPulse 2s ease-in-out infinite alternate;
}

/* Typographie premium */
.text-premium {
  font-family: 'Vast XL', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Interactions intuitives */
.interactive-hover {
  transition: all var(--animation-duration) var(--animation-easing);
  cursor: pointer;
}

.interactive-hover:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.1);
}

.interactive-hover:active {
  transform: translateY(0) scale(0.98);
}

/* Focus states premium */
.focus-premium:focus {
  outline: 3px solid var(--leplein-yellow);
  outline-offset: 4px;
  box-shadow: var(--shadow-glow);
  transform: scale(var(--focus-scale));
}

/* Loading states luxe */
.loading-luxury {
  position: relative;
  overflow: hidden;
}

.loading-luxury::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
  :root {
    --animation-duration: 0.3s;
    --hover-lift: 4px;
  }
  
  .btn-premium,
  .btn-secondary-premium {
    padding: 12px 24px;
    font-size: 14px;
    min-height: 44px;
  }
  
  .card-premium {
    padding: 20px;
    border-radius: 16px;
  }
}

/* ===== OPTIMISATIONS DE PERFORMANCE ===== */

/* Réduire les animations pour les utilisateurs qui préfèrent moins de mouvement */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto !important; }
}

/* Désactiver/atténuer les effets lourds sur appareils tactiles */
@media (hover: none) {
  .premium-card:hover,
  .card-hover:hover,
  .hover-lift:hover,
  .hover-scale:hover,
  .hover-glow:hover,
  .btn:hover {
    transform: none !important;
    box-shadow: var(--shadow-md);
  }
}

/* Optimisation pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .card-premium {
    border-width: 0.5px;
  }
}

/* ===== ÉTATS FOCUS ACCESSIBILITÉ ===== */

.btn-premium:focus,
.btn-secondary-premium:focus {
  outline: 3px solid rgba(245, 255, 0, 0.5);
  outline-offset: 2px;
}

/* ===== LOADING STATES ===== */

.btn-premium.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-premium.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid var(--leplein-green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes rotateSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

@keyframes neonPulse {
  0% {
    box-shadow: 
      0 0 20px var(--leplein-yellow),
      0 0 40px var(--leplein-yellow),
      0 0 60px var(--leplein-yellow);
  }
  100% {
    box-shadow: 
      0 0 30px var(--leplein-yellow),
      0 0 60px var(--leplein-yellow),
      0 0 90px var(--leplein-yellow);
  }
}

/* ===== POLICES PREMIUM ===== */

/* Configuration des polices */
:root {
  --font-display: 'Vast XL', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* Typographie de base */
body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
}

/* Titres avec Vast XL */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}

/* Classes utilitaires de police */
.font-display {
  font-family: var(--font-display) !important;
}

.font-body {
  font-family: var(--font-body) !important;
}

.text-premium {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  h2 {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  
  h3 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
  }
}

/* ============================================
   ANIMATIONS PREMIUM LUXE
   ============================================ */

/* Animation de slide depuis le bas */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animation de fade avec scale */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Animation de glow pulsant premium */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(245, 255, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(245, 255, 0, 0.6);
  }
}

/* Animation de slide depuis la gauche */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation de rotation douce */
@keyframes rotateGentle {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Classes utilitaires pour animations */
.animate-slide-up {
  animation: slideUp 0.8s ease-out;
}

.animate-fade-in-scale {
  animation: fadeInScale 0.6s ease-out;
}

.animate-glow-pulse {
  animation: glowPulse 2s ease-in-out infinite;
}

.animate-slide-in-left {
  animation: slideInLeft 0.8s ease-out;
}

.animate-rotate-gentle {
  animation: rotateGentle 20s linear infinite;
}

/* Animations au scroll (appliquées via JavaScript) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Animation premium pour les cartes */
.premium-card-animate {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card-animate:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 40, 45, 0.15);
}

/* Animation shimmer sur les boutons premium */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.btn-shimmer:hover::after {
  left: 100%;
}

/* Effet parallax léger sur les images hero */
.parallax-image {
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.3s ease-out;
}

/* Animation de typing pour les titres (effet machine à écrire) */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Effet de breathing (respiration) sur les icônes importantes */
@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-breathe {
  animation: breathe 3s ease-in-out infinite;
}

/* Effet de pulse sur les badges */
@keyframes pulseBadge {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.animate-pulse-badge {
  animation: pulseBadge 2s ease-in-out infinite;
}

/* Transition premium globale */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   MODE SOMBRE / CLAIR / CONTRASTE
   ============================================ */

/* Variables de thème */
:root {
  --theme-bg: #f8fafc;
  --theme-text: #1e293b;
  --theme-card-bg: #ffffff;
  --theme-border: #e2e8f0;
}

/* Mode sombre */
.dark-mode {
  --theme-bg: #0f172a;
  --theme-text: #f1f5f9;
  --theme-card-bg: #1e293b;
  --theme-border: #334155;
}

.dark-mode body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
}

.dark-mode .premium-card,
.dark-mode .card {
  background-color: var(--theme-card-bg);
  border-color: var(--theme-border);
  color: var(--theme-text);
}

.dark-mode .hero-overlay {
  background: linear-gradient(135deg, 
    rgba(0, 40, 45, 0.95) 0%, 
    rgba(0, 40, 45, 0.85) 100%);
}

/* Mode contraste élevé */
.high-contrast {
  --theme-bg: #000000;
  --theme-text: #ffffff;
  --theme-card-bg: #1a1a1a;
  --theme-border: #ffff00;
}

.high-contrast body {
  background-color: var(--theme-bg);
  color: var(--theme-text);
}

.high-contrast .premium-card,
.high-contrast .card {
  background-color: var(--theme-card-bg);
  border: 3px solid var(--theme-border);
  color: var(--theme-text);
}

.high-contrast a {
  text-decoration: underline;
}

.high-contrast button,
.high-contrast .btn {
  border: 2px solid #ffff00;
}

/* Bouton de sélection de thème */
.theme-selector {
  position: fixed;
  top: 140px;
  right: 6px;
  z-index: 40;
  background: white;
  border: 2px solid var(--leplein-green);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.theme-btn:hover {
  transform: scale(1.1);
  border-color: var(--leplein-yellow);
}

.theme-btn.active {
  border-color: var(--leplein-green);
  background: var(--leplein-yellow);
}

.theme-btn-light {
  background: #ffffff;
  color: #1e293b;
}

.theme-btn-dark {
  background: #0f172a;
  color: #f1f5f9;
}

.theme-btn-contrast {
  background: #000000;
  color: #ffff00;
  border: 2px solid #ffff00;
}

/* Amélioration des transitions sur les interactions */
a, button, .btn, .card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Effet de brillance sur les éléments importants */
.shine-effect {
  position: relative;
  overflow: hidden;
}

.shine-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 255, 0, 0.2),
    transparent
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  to {
    left: 200%;
  }
}

/* ============================================
   ANIMATION HERO - BOULES FLOTTANTES UNIQUEMENT
   ============================================ */

/* Container pour les boules animées - UNIQUEMENT HERO */
.hero-orbs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
  overflow: visible;
}

/* Boules individuelles */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Styles des différentes boules - PLUS VISIBLES */
.floating-orb.orb-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245, 255, 0, 0.3) 0%, rgba(245, 255, 0, 0.15) 40%, transparent 70%);
  filter: blur(50px);
  top: 20%;
  left: 10%;
  animation: floatOrb1 20s ease-in-out infinite;
}

.floating-orb.orb-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 255, 0, 0.25) 0%, rgba(245, 255, 0, 0.12) 40%, transparent 70%);
  filter: blur(60px);
  top: 60%;
  right: 15%;
  animation: floatOrb2 25s ease-in-out infinite -5s;
}

.floating-orb.orb-3 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(0, 40, 45, 0.2) 0%, rgba(0, 40, 45, 0.1) 40%, transparent 70%);
  filter: blur(45px);
  bottom: 25%;
  left: 30%;
  animation: floatOrb3 18s ease-in-out infinite -10s;
}

.floating-orb.orb-4 {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 255, 0, 0.28) 0%, rgba(245, 255, 0, 0.14) 40%, transparent 70%);
  filter: blur(55px);
  top: 40%;
  left: 50%;
  animation: floatOrb4 22s ease-in-out infinite -8s;
}

/* Boule qui suit le curseur - BIEN VISIBLE */
.floating-orb.cursor-follower {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(245, 255, 0, 0.35) 0%, rgba(245, 255, 0, 0.18) 40%, transparent 70%);
  filter: blur(70px);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.floating-orb.cursor-follower.active {
  opacity: 1;
}

/* Animations des boules flottantes - VISIBLES */
@keyframes floatOrb1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -40px) scale(1.1);
  }
  50% {
    transform: translate(-30px, -60px) scale(0.9);
  }
  75% {
    transform: translate(40px, -20px) scale(1.05);
  }
}

@keyframes floatOrb2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-60px, 50px) scale(1.15);
  }
  66% {
    transform: translate(40px, -30px) scale(0.95);
  }
}

@keyframes floatOrb3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  30% {
    transform: translate(45px, 35px) scale(1.08);
  }
  60% {
    transform: translate(-50px, -25px) scale(0.92);
  }
}

@keyframes floatOrb4 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-40px, -45px) scale(1.12);
  }
  70% {
    transform: translate(50px, 30px) scale(0.88);
  }
}

/* Variables CSS pour position souris */
body {
  --global-mouse-x: 50%;
  --global-mouse-y: 50%;
}

/* S'assurer que le contenu est au-dessus */
main, header, footer, section {
  position: relative;
  z-index: 1;
}

/* ============================================
   ANIMATION HERO - FOND ÉCRAN DE VEILLE STYLE
   ============================================ */

/* Effet de particules flottantes uniquement sur hero */
.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  background: 
    radial-gradient(circle at 20% 30%, rgba(245, 255, 0, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(245, 255, 0, 0.08) 0%, transparent 50%);
  animation: heroFloat 25s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  33% {
    transform: translate(20px, -15px) scale(1.05);
    opacity: 0.5;
  }
  66% {
    transform: translate(-20px, 15px) scale(0.95);
    opacity: 0.6;
  }
}

/* Effet de lueur qui suit la souris */
.hero-section {
  --mouse-x: 50%;
  --mouse-y: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: var(--mouse-y);
  left: var(--mouse-x);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at center,
    rgba(245, 255, 0, 0.18) 0%,
    rgba(245, 255, 0, 0.1) 25%,
    transparent 60%
  );
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  will-change: top, left;
}

/* Contenu hero au-dessus des effets */
.hero-bg {
  position: relative;
  z-index: 2;
}

.hero-overlay {
  position: relative;
  z-index: 3;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Animation photo hero - Zoom subtil et élégant */
.hero-bg {
  animation: heroImageZoom 15s ease-in-out infinite;
  transform-origin: center center;
  will-change: transform;
  transition: transform 0.3s ease-out;
}

@keyframes heroImageZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Zoom au hover - Subtil et élégant */
.hero-section:hover .hero-bg {
  animation-play-state: paused;
  transform: scale(1.08);
  transition: transform 3s ease-out;
}

/* Désactiver animations agressives sur mobile et prefers-reduced-motion */
@media (max-width: 768px) {
  .hero-bg {
    animation: none;
  }
  .hero-section:hover .hero-bg {
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none !important;
  }
  .hero-section:hover .hero-bg {
    transform: none !important;
  }
}

/* Effet Ken Burns RENFORCÉ (pan + zoom cinématique) */
.hero-bg.ken-burns {
  animation: kenBurns 18s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
    filter: brightness(1) contrast(1);
  }
  100% {
    transform: scale(1.12) translate(-3%, -3%);
    filter: brightness(1.06) contrast(1.04);
  }
}

/* Effet de respiration RENFORCÉ */
.hero-bg.breathe {
  animation: heroBreathe 5s ease-in-out infinite;
}

@keyframes heroBreathe {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1) contrast(1) saturate(1);
  }
  50% {
    transform: scale(1.05);
    filter: brightness(1.08) contrast(1.05) saturate(1.05);
  }
}

/* Vague lumineuse rotative très subtile */
.hero-screensaver-effect {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(245, 255, 0, 0.05) 0%,
    transparent 30%,
    rgba(255, 255, 255, 0.03) 50%,
    transparent 70%,
    rgba(245, 255, 0, 0.05) 100%
  );
  animation: heroRotate 40s linear infinite;
  opacity: 0.8;
}

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

/* Particules scintillantes */
.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.hero-particle {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 255, 0, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  animation: particleDrift 20s ease-in-out infinite;
}

.hero-particle:nth-child(1) {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.hero-particle:nth-child(2) {
  top: 60%;
  right: 10%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  animation-delay: -7s;
}

.hero-particle:nth-child(3) {
  bottom: 20%;
  left: 50%;
  background: radial-gradient(circle, rgba(245, 255, 0, 0.12) 0%, transparent 70%);
  animation-delay: -14s;
}

@keyframes particleDrift {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, 20px) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translate(25px, 25px) scale(1.05);
    opacity: 0.5;
  }
}

/* Désactiver sur mobile pour performance */
@media (max-width: 768px) {
  /* Simplifier/désactiver boules flottantes sur mobile */
  .hero-orbs {
    display: none;
  }
  
  .hero-section::before,
  .hero-section::after,
  .hero-screensaver-effect,
  .hero-particles {
    animation: none;
    opacity: 0.3;
  }
  
  /* Simplifier animation image hero sur mobile */
  .hero-bg {
    animation: heroImageFloatMobile 10s ease-in-out infinite;
  }
  
  @keyframes heroImageFloatMobile {
    0%, 100% {
      transform: scale(1);
      filter: brightness(1) contrast(1);
    }
    50% {
      transform: scale(1.03);
      filter: brightness(1.02) contrast(1.01);
    }
  }
  
  .hero-bg.ken-burns,
  .hero-bg.breathe {
    animation: heroImageFloatMobile 10s ease-in-out infinite;
  }
  
  .hero-section:hover .hero-bg {
    transform: scale(1.03);
    filter: brightness(1.02) contrast(1.01);
  }
}

/* Respecter les préférences animations réduites */
@media (prefers-reduced-motion: reduce) {
  .hero-orbs {
    display: none !important;
  }
  
  .hero-section::before,
  .hero-section::after,
  .hero-screensaver-effect,
  .hero-particles,
  .hero-particle,
  .hero-bg {
    animation: none !important;
    opacity: 0 !important;
  }
  
  .hero-bg {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  
  .hero-section:hover .hero-bg {
    transform: none !important;
    filter: none !important;
  }
}

/* ============================================
   ANIMATIONS STYLE APPLE - SUBTILES ET ÉLÉGANTES
   ============================================ */

/* Transition globale douce comme Apple - optimisée */
* {
  transition-duration: 0.25s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Cartes avec effet d'élévation subtil */
.card, .premium-card {
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover, .premium-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0, 40, 45, 0.08);
}

/* Boutons avec effet de press Apple */
.btn, .btn-premium, .btn-secondary-premium, button {
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn:active, .btn-premium:active, button:active {
  transform: scale(0.97);
}

/* Liens avec transition douce */
a {
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  opacity: 0.85;
}

/* Images avec zoom subtil au hover */
img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

img:hover {
  transform: scale(1.02);
}

/* Sections qui apparaissent au scroll - style Apple */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Effet de blur subtil sur scroll */
.blur-on-scroll {
  transition: filter 0.3s ease;
}

.blur-on-scroll.scrolled {
  filter: blur(0.5px);
}

/* Animation de texte apparaissant progressivement */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Appliquer l'animation aux titres */
h1, h2, h3 {
  animation: fadeInText 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

h2 { animation-delay: 0.1s; }
h3 { animation-delay: 0.2s; }

/* Effet de glow doux sur les éléments importants */
.glow-soft {
  box-shadow: 0 0 20px rgba(245, 255, 0, 0.15);
  transition: box-shadow 0.5s ease;
}

.glow-soft:hover {
  box-shadow: 0 0 30px rgba(245, 255, 0, 0.25);
}

/* Backdrop blur Apple-style sur les modales/headers */
.glass-effect {
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background-color: rgba(255, 255, 255, 0.72);
}

/* Animation de scale douce sur les icônes */
.icon-scale {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-scale:hover {
  transform: scale(1.15);
}

/* Effet parallax très subtil */
.parallax-subtle {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Désactiver les animations excessives sur mobile */
@media (max-width: 768px) {
  .animate-float,
  .animate-wiggle,
  .animate-bounce-gentle {
    animation: none;
  }
  
  img:hover {
    transform: none;
  }
}

/* Préférence utilisateur pour animations réduites */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-reveal,
  .fade-in-section {
    opacity: 1;
    transform: none;
  }
}
