/* ================================================================================
   TRAININGS HERO SECTION - STYLES ORGANISÉS POUR UNE MEILLEURE MAINTENANCE
   Section: Hero Formations et Coaching
   Organisation: Desktop + Mobile responsive avec séparation claire
================================================================================ */

/* ====================================================================
   1. STRUCTURE DE BASE ET CANVAS
==================================================================== */

/* Canvas d'arrière-plan */
#hero-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ====================================================================
   2. STYLES DE TEXTE ET GRADIENTS
==================================================================== */

/* Texte avec effet de dégradé */
.gradient-text {
  background: linear-gradient(to right, #6366f1, #8b5cf6, #6366f1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
   
/* ====================================================================
   3. ANIMATIONS D'ENTRÉE (DESKTOP)
==================================================================== */

/* Animations d'entrée uniquement */
.animate-hero-fadein {
  animation: heroFadeIn 1.1s cubic-bezier(.4, 2, .6, 1) 0.1s both;
}

.animate-hero-fadein-delay {
  animation: heroFadeIn 1.1s cubic-bezier(.4, 2, .6, 1) 0.45s both;
}

.animate-hero-slidein {
  animation: heroSlideIn 1.2s cubic-bezier(.4, 2, .6, 1) 0.1s both;
}

.animate-hero-slidein-right {
  animation: heroSlideInRight 1.15s cubic-bezier(.4, 2, .6, 1) 0.2s both;
}

.animate-hero-cta {
  animation: heroFadeIn 1.05s cubic-bezier(.4, 2, .6, 1) 0.7s both;
}

.animate-hero-card-float {
  animation: heroCardFloat 1.2s cubic-bezier(.4, 2, .6, 1) 0.3s both;
}

/* Keyframes pour les animations d'entrée */
@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(40px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroSlideIn {
  0% { opacity: 0; transform: translateX(-60px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes heroSlideInRight {
  0% { opacity: 0; transform: translateX(60px) scale(0.96); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes heroCardFloat {
  0% { opacity: 0; transform: translateY(80px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1.01); }
}

   
/* ====================================================================
   4. IMAGE ÉQUIPE AVEC LUEUR DÉGRADÉE ET BOUTON (DESKTOP)
==================================================================== */
   
   /* Le conteneur principal qui positionne l'image et les lueurs */
   .image-wrapper-with-glow {
     position: relative;
     display: flex;
     justify-content: center;
     align-items: center;
   }
   
   /* Les nouvelles formes lumineuses (blobs) */
   .glow-blob-1, .glow-blob-2 {
     position: absolute;
     border-radius: 50%;
     filter: blur(90px); /* L'effet de flou qui crée la douceur */
     z-index: 1; /* S'assure que les lueurs sont derrière l'image */
   }
   
   /* Formes supprimées - utilise le background partagé */
   /* Les effets de luminosité sont maintenant gérés par le background partagé */
   
/* Styles pour l'image elle-même */
.team-image {
  width: 500px;
  height: 550px;
  object-fit: cover;
  border-radius: 1.5rem;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  filter: brightness(1.05) contrast(1.05);
}

/* Overlay pour le bouton sur l'image */
.team-button-overlay {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: buttonFadeInDelay 0.8s cubic-bezier(.4, 2, .6, 1) 0.6s forwards,
             buttonContinuousGlow 3s ease-in-out 1.5s infinite;
}

@keyframes buttonFadeInDelay {
  0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes buttonContinuousGlow {
  0%, 100% { 
    opacity: 1; 
    transform: translateX(-50%) translateY(0); 
    filter: brightness(1);
  }
  50% { 
    opacity: 0.9; 
    transform: translateX(-50%) translateY(-2px); 
    filter: brightness(1.1);
  }
}
   
   
/* ====================================================================
   5. CLASSES UTILITAIRES POUR RESPONSIVE
==================================================================== */

/* Classes pour masquer/afficher selon l'écran */
.desktop-only { 
  display: block; 
}

.mobile-only { 
  display: none; 
}

/* ====================================================================
   6. RESPONSIVE DESIGN - MOBILE
==================================================================== */
   
@media (max-width: 768px) {
  
  /* Classes pour masquer/afficher selon l'écran */
  .desktop-only { 
    display: none !important; 
  }
  
  .mobile-only { 
    display: block; 
  }
  
  /* Layout mobile en colonne */
  .hero-text-content {
    order: 1;
    text-align: center;
    width: 100%;
  }
  
  .hero-image-container {
    order: 2;
    margin-bottom: 3rem;
  }
  
  /* Texte optimisé pour mobile */
  .hero-description {
    font-size: 1.1rem !important;
    text-align: center;
    max-width: none;
    margin-bottom: 2rem !important;
  }
  
  /* Boutons héro - style côte à côte comme sur homePage */
  .hero-buttons-container {
    flex-direction: row !important; /* Forcer les boutons côte à côte */
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 1rem;
  }

  .hero-buttons-container .btn {
    width: auto !important; /* Ne pas prendre toute la largeur */
    flex: 0 0 auto; /* Ne pas s'étendre */
    padding: 1rem 2rem !important; /* Padding plus généreux */
    font-size: 1.1rem !important; /* Texte légèrement plus grand */
    white-space: nowrap; /* Éviter le retour à la ligne du texte */
  }
  
  /* Image optimisée pour mobile */
  .team-image {
    width: 360px;
    height: 400px;
  }
  
  /* Lueurs réduites pour performance mobile */
  .glow-blob-1, .glow-blob-2 {
    filter: blur(70px);
  }

  .glow-blob-1 {
    width: 300px;
    height: 300px;
    top: -50px;
    left: -80px;
  }

  .glow-blob-2 {
    width: 250px;
    height: 250px;
    bottom: -60px;
    right: -70px;
  }
  
  /* Bouton overlay optimisé pour mobile */
  .team-button-overlay {
    bottom: 20px;
    animation-delay: 0.5s;
  }
}
   
/* ====================================================================
   7. ACCESSIBILITÉ - REDUCED MOTION
==================================================================== */

/* Désactivation des animations pour accessibilité */
@media (prefers-reduced-motion: reduce) {
  .animate-hero-fadein,
  .animate-hero-fadein-delay,
  .animate-hero-slidein,
  .animate-hero-slidein-right,
  .animate-hero-cta,
  .animate-hero-card-float,
  .team-button-overlay {
    animation: none;
    opacity: 1;
    transform: none;
  }
  
  .team-button-overlay {
    transform: translateX(-50%);
  }
}
   
/* ====================================================================
   8. TRAININGS PAGE SPECIFIC STYLES
==================================================================== */

/* Dark background layer pour la page trainings */
/* Background supprimé - maintenant géré par le background partagé */

/* Visibilité du texte sur fond sombre */
body.trainings-page #main-content section {
  position: relative;
  z-index: 1;
}

body.trainings-page #main-content section,
body.trainings-page #main-content section * {
  color: #e5e7eb;
}

body.trainings-page #main-content section h1,
body.trainings-page #main-content section h2,
body.trainings-page #main-content section h3,
body.trainings-page #main-content section h4,
body.trainings-page #main-content section h5,
body.trainings-page #main-content section h6 {
  color: white !important;
}

body.trainings-page #main-content section p {
  color: #d1d5db !important;
}