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

/* DÉSACTIVER TOUTES LES ANIMATIONS LOURDES SAUF POUR L'ÉQUIPE */
*:not(.team-section-revolutionary *):not(.team-member-card *):not(.team-header *):not(.team-showcase *):not(.team-cta-section *) {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  transition-duration: 0.01ms !important;
  transition-delay: 0s !important;
}

/* 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 */
.service-item:hover,
.value-card:hover,
.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 */
.scroll-indicator {
  animation: none !important;
  transform: none !important;
}

/* MASQUER COMPLÈTEMENT LE SCROLL INDICATOR SUR MOBILE - DÉTECTION AVANCÉE */
/* Masquage basé sur les classes dynamiques générées par JavaScript */
.scroll-indicator-hidden .scroll-indicator,
.device-phone .scroll-indicator,
.device-mobile .scroll-indicator,
.device-touch .scroll-indicator {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Masquage spécifique pour les tablettes en mode portrait */
.device-tablet.device-portrait .scroll-indicator {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Règles de fallback pour les media queries (en cas de problème JavaScript) */
@media (max-width: 768px) {
  .scroll-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 480px) {
  .scroll-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Masquage pour les appareils tactiles avec petite résolution */
@media (max-width: 1024px) and (pointer: coarse) {
  .scroll-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Masquage pour les appareils sans hover (mobiles) */
@media (hover: none) and (pointer: coarse) {
  .scroll-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

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

/* OPTIMISER LES CARTES */
.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;
}

/* DÉSACTIVER LES EFFETS DE STATS */
.hero-stats .stat-number {
  animation: none !important;
}

/* RÉACTIVER COMPLÈTEMENT LES ANIMATIONS POUR LA SECTION ÉQUIPE */
.team-section-revolutionary * {
  animation-duration: unset !important;
  animation-iteration-count: unset !important;
  animation-delay: unset !important;
  transition-duration: unset !important;
  transition-delay: unset !important;
  animation: unset !important;
  transition: unset !important;
  transform: unset !important;
  opacity: unset !important;
  filter: unset !important;
  box-shadow: unset !important;
  backdrop-filter: unset !important;
}

.team-section-revolutionary .team-header,
.team-section-revolutionary .team-showcase,
.team-section-revolutionary .team-member-card,
.team-section-revolutionary .team-cta-section,
.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 {
  animation-duration: unset !important;
  animation-iteration-count: unset !important;
  animation-delay: unset !important;
  transition-duration: unset !important;
  transition-delay: unset !important;
  animation: unset !important;
  transition: unset !important;
  transform: unset !important;
  opacity: 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 */
*::before,
*::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; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); }
  to { transform: translateY(0); }
}

/* UTILISER SEULEMENT DES ANIMATIONS SIMPLES */
.fade-in {
  animation: fadeIn 0.3s ease-out !important;
}

.slide-up {
  animation: slideUp 0.3s ease-out !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;
}
