/* ================================
   OPTIMISATIONS PERFORMANCE ULTRA
   Version ultra-légère pour FPS élevés
=============================== */

/* COMMENTÉ - ÉCRASAIT LES TRANSITIONS 3D DU HERO */
/* *:not(.team-section-revolutionary *):not(.team-member-card *):not(.team-header *):not(.team-showcase *):not(.team-cta-section *):not(.hero-badge):not(.hero-badge *):not(.hero-title):not(.hero-title *):not(.title-line):not(.hero-subtitle):not(.hero-buttons):not(.hero-buttons *):not(.hero-stats):not(.hero-stats *):not(.stat-item):not(.stat-item *):not(.video-showcase-container):not(.video-showcase-container *):not(.video-showcase-frame):not(.video-showcase-frame *):not(.fade-in):not(.fade-in *):not(.fade-in-up):not(.fade-in-up *):not(.slide-up):not(.slide-up *):not(.card-reveal):not(.card-reveal *):not(.title-reveal):not(.title-reveal *):not(.animate-in):not(.animate-in *):not([class*="delay-"]) {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
} */

/* NOTE: Les animations du hero sont définies à la fin du fichier pour avoir la priorité maximale */

/* DÉSACTIVER LES EFFETS DE BACKGROUND LOURDS */
.hero-redesigned {
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%) !important;
  animation: none !important;
  will-change: auto !important;
}

/* DÉSACTIVER LES ANIMATIONS DE BACKGROUND */
@keyframes heroBackgroundShift {
  0%, 100% { 
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%) !important;
  }
}

/* DÉSACTIVER LES EFFETS DE GLOW LOURDS */
canvas {
  filter: none !important;
  opacity: 1 !important;
  will-change: auto !important;
}

/* DÉSACTIVER LES PARTICULES ET ÉLÉMENTS FLOTTANTS */
.particle, 
.floating-element, 
.floating-particles,
.video-3d-elements,
.video-frame-3d-element,
.video-light-effect {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* DÉSACTIVER LES EFFETS DE HOVER LOURDS */
.service-item::before,
.value-card::after,
.btn-contact .btn-glow,
.btn-creations .btn-glow {
  display: none !important;
}

/* DÉSACTIVER LES TRANSFORMATIONS COMPLEXES (SAUF HERO) */
.service-item:hover,
.value-card:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* NE PAS BLOQUER LES TRANSFORMATIONS DU HERO 
.video-showcase-frame:hover {
  transform: none !important;
  box-shadow: none !important;
}
*/

/* DÉSACTIVER LES ANIMATIONS DE TITRES */
.hero-title .title-line-1,
.hero-title .title-line-2 {
  animation: none !important;
  transform: none !important;
}

/* DÉSACTIVER LES EFFETS DE SCROLL - sauf pour l'animation d'apparition */
/* Animation d'apparition gérée par JavaScript, pas besoin de désactiver */
/* .scroll-indicator {
  animation: none !important;
  transform: none !important;
} */

/* ANCIEN CODE SCROLL INDICATOR - NETTOYÉ */
/* Le nouveau modern-scroll-indicator est géré dans hero-redesigned.css */

/* DÉSACTIVER LES EFFETS DE SHINE */
.video-shine-effect {
  display: none !important;
}

/* OPTIMISER LES CARTES */
/* COMMENTÉ POUR PERMETTRE LES ANIMATIONS D'APPARITION */
/*
.service-item,
.value-card,
.mission-text {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}
*/

/* DÉSACTIVER LES EFFETS DE BADGE */
.section-badge .badge-glow,
.hero-badge .badge-glow {
  display: none !important;
}

/* DÉSACTIVER LES EFFETS DE BOUTONS */
.btn-contact:hover,
.btn-creations:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* DÉSACTIVER LES EFFETS D'ICÔNES */
.service-icon,
.value-icon,
.optimized-icon {
  transform: none !important;
  transition: none !important;
}

.service-item:hover .service-icon,
.value-card:hover .value-icon {
  transform: none !important;
  color: inherit !important;
}

/* RÉACTIVER LA VIDÉO DU HERO */
.hero-showcase-video {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* DÉSACTIVER SEULEMENT L'OVERLAY DE LOADING */
.hero-loading-overlay {
  display: none !important;
}

.about-loading-indicator {
  display: none !important;
}

/* DÉSACTIVER LES EFFETS DE PROGRESS */
.loading-progress,
.progress-bar,
.progress-fill {
  display: none !important;
}

/* DÉSACTIVER LES EFFETS DE SPINNER */
.loading-spinner,
.spinner-ring {
  display: none !important;
}

/* OPTIMISER LES SECTIONS */
.about-section,
.hero-redesigned {
  will-change: auto !important;
  backface-visibility: visible !important;
  perspective: none !important;
}

/* DÉSACTIVER LES EFFETS DE GRID */
.grid-overlay {
  display: none !important;
}

/* PERMETTRE LES ANIMATIONS DE COMPTEUR POUR LES STATS */
.hero-stats .stat-number {
  animation-duration: unset !important;
  animation-timing-function: unset !important;
  transition-duration: unset !important;
}

/* RÉACTIVER COMPLÈTEMENT LES ANIMATIONS POUR LA SECTION ÉQUIPE */
/* On ne réinitialise pas les éléments animés avec fade-in-up */
.team-section-revolutionary *:not(.fade-in-up):not(.animate-in) {
  animation-duration: unset !important;
  animation-iteration-count: unset !important;
  animation-delay: unset !important;
  transition-duration: unset !important;
  transition-delay: unset !important;
  filter: unset !important;
  box-shadow: unset !important;
  backdrop-filter: unset !important;
}

/* État initial pour les éléments de la team avec fade-in-up */
.team-section-revolutionary .fade-in-up:not(.animate-in) {
  opacity: 0 !important;
  transform: translateY(30px) !important;
}

/* Animations activées pour la team */
.team-section-revolutionary .fade-in-up.animate-in {
  animation: fadeInUp 0.8s ease-out forwards !important;
  opacity: 1 !important;
}

/* Permettre les transitions et animations pour les éléments interactifs de la team */
.team-section-revolutionary .member-visual,
.team-section-revolutionary .member-content,
.team-section-revolutionary .member-stats,
.team-section-revolutionary .member-expertise,
.team-section-revolutionary .member-actions,
.team-section-revolutionary .action-btn {
  transition-duration: unset !important;
  transition-delay: unset !important;
  transition: unset !important;
  filter: unset !important;
  box-shadow: unset !important;
  backdrop-filter: unset !important;
}

/* RÉACTIVER LA NAVIGATION - mais respecter les règles de masquage */
.main-navigation.scrolled {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(10, 10, 15, 0.95) !important;
  backdrop-filter: blur(15px) !important;
  padding: 20px 0 !important;
  transition: opacity 0.3s ease !important;
}

.nav-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.nav-brand {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.nav-menu {
  display: flex !important;
  gap: 30px !important;
  align-items: center !important;
}

.nav-link {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  padding: 8px 16px !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
}

.nav-link:hover {
  color: var(--primary-color) !important;
  background: rgba(138, 76, 255, 0.1) !important;
}

/* DÉSACTIVER LES EFFETS DE MOBILE */
.mobile-menu-toggle .hamburger {
  transition: none !important;
}

/* OPTIMISER LES VIDÉOS */
.hero-showcase-video,
.book-video,
.application-video-element {
  will-change: auto !important;
}

/* DÉSACTIVER LES EFFETS DE FULLSCREEN */
.video-showcase-frame.zoom-mode {
  transform: none !important;
  transition: none !important;
}

/* DÉSACTIVER LES EFFETS DE CONTROLES */
.video-controls-overlay,
.fullscreen-video-controls {
  transition: none !important;
}

/* OPTIMISER LES POLICES */
.hero-title,
.hero-subtitle,
.section-title,
.section-subtitle {
  will-change: auto !important;
  text-shadow: none !important;
}

/* DÉSACTIVER LES EFFETS DE GRADIENT ANIMÉS */
.hero-title {
  background: #8a4cff !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: none !important;
}

/* DÉSACTIVER LES EFFETS DE BOUTONS */
.btn-contact,
.btn-creations {
  transition: none !important;
  will-change: auto !important;
}

/* DÉSACTIVER LES EFFETS DE CARTES */
.feature-card,
.service-card,
.value-card,
.member-card {
  transition: none !important;
  transform: none !important;
  will-change: auto !important;
}

.feature-card::before,
.service-card::before,
.value-card::before {
  display: none !important;
}

/* DÉSACTIVER LES EFFETS DE PSEUDO-ÉLÉMENTS SAUF POUR LES ANIMATIONS D'APPARITION */
*:not(.fade-in):not(.fade-in-up):not(.slide-up):not(.card-reveal):not(.title-reveal):not(.team-section-revolutionary *)::before,
*:not(.fade-in):not(.fade-in-up):not(.slide-up):not(.card-reveal):not(.title-reveal):not(.team-section-revolutionary *)::after {
  animation: none !important;
  transition: none !important;
}

/* OPTIMISER LA HAUTEUR DU HERO BANNER */
.hero-redesigned {
  min-height: 50vh !important;
  padding: 40px 20px 60px !important;
}

/* OPTIMISER POUR MOBILE */
@media (max-width: 768px) {
  .hero-redesigned {
    min-height: 45vh !important;
    padding: 30px 15px 50px !important;
  }
  
  .hero-container {
    gap: 30px !important;
  }
  
  .hero-title {
    font-size: 2.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1.1rem !important;
  }
}

/* DÉSACTIVER LES EFFETS DE RESPONSIVE LOURDS */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  
  .video-showcase-frame {
    transform: none !important;
    max-width: 100% !important;
  }
}

/* OPTIMISER LES PERFORMANCES GÉNÉRALES */
/* Supprimé - conflit avec style.css */

/* RÉACTIVER LE CURSOR DE MANIÈRE OPTIMISÉE */
.custom-cursor {
  display: block !important;
  will-change: transform !important;
  transition: transform 0.1s ease !important;
}

/* OPTIMISER LE CANVAS PARALLAX */
#hero-parallax-canvas {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
  will-change: transform !important;
}

/* DÉSACTIVER LES EFFETS DE PARTICLES */
.discrete-particles {
  display: none !important;
}

/* OPTIMISER LES CANVAS */
#hero-canvas,
#contact-canvas,
.section-canvas {
  display: none !important;
}

/* DÉSACTIVER LES EFFETS DE NEWSLETTER */
.newsletter-modal {
  transition: none !important;
}

/* DÉSACTIVER LES EFFETS DE COOKIES */
.cookie-banner {
  transition: none !important;
}

/* OPTIMISER LES FOOTERS */
.site-footer {
  will-change: auto !important;
}

/* DÉSACTIVER TOUS LES EFFETS DE GLOW */
* {
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* GARDER SEULEMENT LES OMBRES ESSENTIELLES */
.video-showcase-frame {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

/* DÉSACTIVER LES EFFETS DE HOVER SUR TOUS LES ÉLÉMENTS SAUF BOOK, NAVBAR ET TEAM */
*:hover:not(.team-section-revolutionary *):not(.team-member-card *):not(.team-header *):not(.team-showcase *):not(.team-cta-section *):not(.member-visual *):not(.member-content *):not(.member-stats *):not(.member-expertise *):not(.member-actions *):not(.action-btn *) {
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}

/* RÉACTIVER LES EFFETS DE HOVER POUR LA NAVBAR */
.nav-link:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(138, 76, 255, 0.3) !important;
  backdrop-filter: blur(10px) !important;
}

/* RÉACTIVER LES EFFETS ESSENTIELS POUR BOOK */
.book-item:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.play-btn:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(138, 76, 255, 0.4) !important;
}

.play-btn:hover i {
  transform: translateX(-3px) !important; /* Ajustement fin pour centrage parfait au hover */
}

/* OPTIMISER LES PERFORMANCES DES ANIMATIONS RESTANTES */
@keyframes fadeIn {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(40px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

/* STYLES DE BASE POUR LES ÉLÉMENTS ANIMÉS */
.fade-in,
.fade-in-up,
.slide-up,
.card-reveal,
.title-reveal {
  opacity: 0;
  transform: translateY(20px);
}

/* ANIMATIONS ACTIVÉES */
.fade-in.animate-in {
  animation: fadeIn 0.8s ease-out forwards !important;
}

.fade-in-up.animate-in {
  animation: fadeInUp 0.8s ease-out forwards !important;
}

.slide-up.animate-in {
  animation: slideUp 0.8s ease-out forwards !important;
}

.card-reveal.animate-in {
  animation: fadeInUp 0.8s ease-out forwards !important;
}

.title-reveal.animate-in {
  animation: fadeIn 1s ease-out forwards !important;
}

/* DÉLAIS D'ANIMATION */
.delay-100 { animation-delay: 0.1s !important; }
.delay-200 { animation-delay: 0.2s !important; }
.delay-300 { animation-delay: 0.3s !important; }
.delay-400 { animation-delay: 0.4s !important; }
.delay-500 { animation-delay: 0.5s !important; }
.delay-600 { animation-delay: 0.6s !important; }
.delay-700 { animation-delay: 0.7s !important; }
.delay-800 { animation-delay: 0.8s !important; }
.delay-900 { animation-delay: 0.9s !important; }
.delay-1000 { animation-delay: 1s !important; }
.delay-1100 { animation-delay: 1.1s !important; }
.delay-1200 { animation-delay: 1.2s !important; }
.delay-1300 { animation-delay: 1.3s !important; }
.delay-1400 { animation-delay: 1.4s !important; }
.delay-1500 { animation-delay: 1.5s !important; }
.delay-1600 { animation-delay: 1.6s !important; }
.delay-1700 { animation-delay: 1.7s !important; }
.delay-1800 { animation-delay: 1.8s !important; }
.delay-1900 { animation-delay: 1.9s !important; }
.delay-2000 { animation-delay: 2s !important; }

/* DÉSACTIVER LES EFFETS DE LOADING */
.loading-content,
.loading-text,
.loading-spinner {
  display: none !important;
}

/* OPTIMISER LES PERFORMANCES DES SECTIONS */
section {
  will-change: auto !important;
  contain: layout style paint !important;
}

/* DÉSACTIVER LES EFFETS DE SCROLL SMOOTH */
/* Supprimé - conflit avec style.css */

/* OPTIMISER LES PERFORMANCES DES IMAGES */
img {
  will-change: auto !important;
  transform: none !important;
}

/* DÉSACTIVER LES EFFETS DE VIDEO */
video {
  will-change: auto !important;
}

/* OPTIMISER LES PERFORMANCES DES CONTAINERS */
.container,
.section-container {
  will-change: auto !important;
  contain: layout style !important;
}

/* ================================================================
   FORCER LES ANIMATIONS DU HERO - PRIORITÉ MAXIMALE
   Ces règles doivent être à la fin pour surcharger tout le reste
================================================================ */

/* Réactivation des animations désactivée - gérées par JavaScript */
/*
.hero-redesigned .hero-badge,
.hero-redesigned .hero-badge.animate-in,
.hero-redesigned .hero-title,
.hero-redesigned .hero-title.animate-in,
.hero-redesigned .hero-subtitle,
.hero-redesigned .hero-subtitle.animate-in,
.hero-redesigned .hero-buttons,
.hero-redesigned .hero-buttons.animate-in {
  animation-duration: 1s !important;
  animation-iteration-count: 1 !important;
  animation-timing-function: ease-out !important;
  animation-fill-mode: forwards !important;
  transition-duration: unset !important;
  transition-delay: unset !important;
}
*/

/* État initial des éléments hero (avant animation) - FORCER INVISIBILITÉ */
.hero-redesigned .hero-badge:not(.animate-in),
.hero-redesigned .hero-title:not(.animate-in),
.hero-redesigned .hero-title:not(.animate-in) .title-line,
.hero-redesigned .hero-title:not(.animate-in) .title-line-1,
.hero-redesigned .hero-title:not(.animate-in) .title-line-2,
.hero-redesigned .hero-subtitle:not(.animate-in),
.hero-redesigned .hero-buttons:not(.animate-in) {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  visibility: hidden !important;
}

/* S'assurer que le keyframe existe ici aussi */
@keyframes heroFadeInUpFinal {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animations désactivées - gérées par JavaScript pour éviter les conflits */
/*
.hero-redesigned .hero-badge.animate-in {
  animation: heroFadeInUpFinal 1s ease-out forwards !important;
  animation-delay: 0s !important;
  visibility: visible !important;
}

.hero-redesigned .hero-title.animate-in {
  animation: heroFadeInUpFinal 1s ease-out forwards !important;
  animation-delay: 0.15s !important;
  visibility: visible !important;
}

.hero-redesigned .hero-title.animate-in .title-line,
.hero-redesigned .hero-title.animate-in .title-line-1,
.hero-redesigned .hero-title.animate-in .title-line-2 {
  animation: heroFadeInUpFinal 1s ease-out forwards !important;
  animation-delay: inherit !important;
  visibility: visible !important;
}

.hero-redesigned .hero-subtitle.animate-in {
  animation: heroFadeInUpFinal 1s ease-out forwards !important;
  animation-delay: 0.3s !important;
  visibility: visible !important;
}

.hero-redesigned .hero-buttons.animate-in {
  animation: heroFadeInUpFinal 1s ease-out forwards !important;
  animation-delay: 0.45s !important;
  visibility: visible !important;
}

.hero-redesigned .hero-badge *,
.hero-redesigned .hero-subtitle *,
.hero-redesigned .hero-buttons * {
  transition-duration: 0.3s !important;
  animation-duration: inherit !important;
}

.hero-redesigned .hero-stats:not(.animate-in) {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  visibility: hidden !important;
}

.hero-redesigned .hero-stats.animate-in {
  animation: heroFadeInUpFinal 1s ease-out forwards !important;
  animation-delay: 0.6s !important;
  visibility: visible !important;
}
*/

/* Animation individuelle pour chaque stat-item */
.hero-redesigned .stat-item {
  animation-duration: 1s !important;
  animation-timing-function: ease-out !important;
  animation-fill-mode: forwards !important;
}

/* Animations pour la vidéo showcase du hero - DÉSACTIVÉ POUR ÉVITER LES CONFLITS */
/* .hero-redesigned .video-showcase-container:not(.animate-in),
.hero-redesigned .video-showcase-frame:not(.animate-in) {
  opacity: 0 !important;
  transform: translateY(30px) !important;
  visibility: hidden !important;
}

.hero-redesigned .video-showcase-container.animate-in,
.hero-redesigned .video-showcase-frame.animate-in {
  animation: heroFadeInUpFinal 1.2s ease-out forwards !important;
  animation-delay: 0.5s !important;
  visibility: visible !important;
  transform: none !important;
} */
