/* ================================
   HERO SECTION REDESIGNED
=============================== */

/* Canvas 3D avec effets visuels ultra sophistiqués et très flous */
canvas {
  filter: 
    blur(3px) 
    drop-shadow(0 0 8px rgba(138, 76, 255, 0.3))
    drop-shadow(0 0 16px rgba(168, 85, 247, 0.2))
    drop-shadow(0 0 24px rgba(255, 138, 255, 0.15))
    drop-shadow(0 0 32px rgba(0, 212, 255, 0.1))
    contrast(1.05)
    brightness(0.9)
    saturate(0.8);
  opacity: 0.6;
  will-change: transform, filter;
  transition: filter 0.3s ease;
}

/* Effet de flou très intense pour les formes 3D */
#hero-parallax-canvas {
  filter: 
    blur(4px) 
    drop-shadow(0 0 10px rgba(138, 76, 255, 0.4))
    drop-shadow(0 0 20px rgba(168, 85, 247, 0.3))
    drop-shadow(0 0 30px rgba(255, 138, 255, 0.2))
    drop-shadow(0 0 40px rgba(0, 212, 255, 0.15))
    contrast(1.1)
    brightness(0.85)
    saturate(0.9);
  opacity: 0.5;
  will-change: transform, filter;
  animation: canvasGlow 6s ease-in-out infinite alternate;
}

@keyframes canvasGlow {
  0% {
    filter: 
      blur(4px) 
      drop-shadow(0 0 10px rgba(138, 76, 255, 0.4))
      drop-shadow(0 0 20px rgba(168, 85, 247, 0.3))
      drop-shadow(0 0 30px rgba(255, 138, 255, 0.2))
      contrast(1.1)
      brightness(0.85);
  }
  100% {
    filter: 
      blur(5px) 
      drop-shadow(0 0 12px rgba(138, 76, 255, 0.5))
      drop-shadow(0 0 24px rgba(168, 85, 247, 0.4))
      drop-shadow(0 0 36px rgba(255, 138, 255, 0.3))
      contrast(1.15)
      brightness(0.9);
  }
}

.hero-redesigned {
  position: relative;
  width: 100%;
  min-height: 50vh; /* Réduction de 70vh à 50vh pour un hero plus compact */
  background: 
    radial-gradient(circle at 15% 25%, rgba(138, 76, 255, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255, 138, 255, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 45% 85%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 45%, rgba(138, 76, 255, 0.1) 0%, transparent 35%),
    radial-gradient(circle at 25% 65%, rgba(255, 138, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 60% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 30%),
    linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px 60px; /* Réduction du padding pour un hero plus compact */
  text-align: center;
  box-sizing: border-box;
  overflow: visible;
  animation: heroBackgroundShift 30s ease-in-out infinite; /* Plus lent pour les performances */
  will-change: background; /* Optimisation GPU */
  /* FORCER LA VISIBILITÉ */
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

@keyframes heroBackgroundShift {
  0%, 100% { 
    background: 
      radial-gradient(circle at 15% 25%, rgba(138, 76, 255, 0.2) 0%, transparent 40%),
      radial-gradient(circle at 85% 15%, rgba(255, 138, 255, 0.18) 0%, transparent 45%),
      radial-gradient(circle at 45% 85%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
      radial-gradient(circle at 75% 45%, rgba(138, 76, 255, 0.1) 0%, transparent 35%),
      radial-gradient(circle at 25% 65%, rgba(255, 138, 255, 0.12) 0%, transparent 40%),
      radial-gradient(circle at 60% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 30%),
      linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  }
  25% { 
    background: 
      radial-gradient(circle at 25% 15%, rgba(138, 76, 255, 0.18) 0%, transparent 45%),
      radial-gradient(circle at 75% 25%, rgba(255, 138, 255, 0.15) 0%, transparent 40%),
      radial-gradient(circle at 55% 75%, rgba(0, 212, 255, 0.12) 0%, transparent 55%),
      radial-gradient(circle at 85% 35%, rgba(138, 76, 255, 0.08) 0%, transparent 30%),
      radial-gradient(circle at 35% 55%, rgba(255, 138, 255, 0.16) 0%, transparent 45%),
      radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.1) 0%, transparent 35%),
      linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  }
  50% { 
    background: 
      radial-gradient(circle at 35% 35%, rgba(138, 76, 255, 0.16) 0%, transparent 50%),
      radial-gradient(circle at 65% 45%, rgba(255, 138, 255, 0.2) 0%, transparent 50%),
      radial-gradient(circle at 65% 65%, rgba(0, 212, 255, 0.18) 0%, transparent 45%),
      radial-gradient(circle at 95% 55%, rgba(138, 76, 255, 0.12) 0%, transparent 40%),
      radial-gradient(circle at 45% 75%, rgba(255, 138, 255, 0.14) 0%, transparent 35%),
      radial-gradient(circle at 80% 40%, rgba(0, 212, 255, 0.06) 0%, transparent 25%),
      linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  }
  75% { 
    background: 
      radial-gradient(circle at 45% 55%, rgba(138, 76, 255, 0.14) 0%, transparent 35%),
      radial-gradient(circle at 55% 65%, rgba(255, 138, 255, 0.16) 0%, transparent 45%),
      radial-gradient(circle at 75% 45%, rgba(0, 212, 255, 0.14) 0%, transparent 40%),
      radial-gradient(circle at 15% 75%, rgba(138, 76, 255, 0.1) 0%, transparent 30%),
      radial-gradient(circle at 55% 25%, rgba(255, 138, 255, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 90% 60%, rgba(0, 212, 255, 0.12) 0%, transparent 40%),
      linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  }
}

/* Masquer la navbar sur le hero banner - TOUS ÉCRANS */
.main-navigation.navbar-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-100%) !important;
  transition: all 0.3s ease !important;
  pointer-events: none !important;
}

.main-navigation.navbar-visible {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
  transition: all 0.3s ease !important;
  pointer-events: auto !important;
}

/* Cacher la navbar quand on est en haut de la page (section hero) */
.main-navigation:not(.scrolled) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Styles spécifiques pour desktop */
@media (min-width: 769px) {
  .main-navigation.navbar-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-100%) !important;
    transition: all 0.3s ease !important;
  }
  
  .main-navigation.navbar-visible {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: all 0.3s ease !important;
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  align-items: center;
  position: relative;
  z-index: 10;
}

/* ===== SECTION TEXTE ===== */
.hero-text-section {
  position: relative;
  animation: slideInLeft 1s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 30px; /* Réduction drastique de la marge supérieure */
  text-align: center;
}

/* ===== VARIABLES CSS POUR LE HERO ===== */
:root {
  --primary-color: #8a4cff;
  --secondary-color: #ff8aff;
  --accent-color: #00d4ff;
  --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* ===== BADGE HERO AVEC ESPACEMENT ===== */
.hero-container .hero-badge,
.hero-text-section .hero-badge,
.hero-redesigned .hero-badge {
  /* Espacement avec le titre */
  margin: 0 !important;
  margin-bottom: 15px !important; /* Petit écart entre badge et titre */
  padding: 0 !important;
  
  /* Positionnement */
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  
  /* Animation d'apparition */
  animation: badgeSlideIn 0.8s ease-out 0.2s both;
  transform: translateY(0);
}

.hero-badge .badge-text {
  /* Design moderne et épuré */
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #ffffff;
  
  /* Padding équilibré avec espacement */
  padding: 10px 20px; /* Padding équilibré maintenant qu'il y a un écart */
  
  /* Background moderne avec glassmorphism */
  background: linear-gradient(135deg, 
    rgba(138, 76, 255, 0.15), 
    rgba(255, 138, 255, 0.1)
  );
  
  /* Bordures subtiles */
  border: 1px solid rgba(138, 76, 255, 0.3);
  border-radius: 25px;
  
  /* Effets visuels */
  backdrop-filter: blur(20px);
  box-shadow: 
    0 4px 15px rgba(138, 76, 255, 0.2),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* Positionnement */
  position: relative;
  z-index: 2;
  display: inline-block;
  
  /* Transitions fluides */
  transition: all 0.3s ease;
}

/* Effet de hover moderne */
.hero-badge:hover .badge-text {
  transform: translateY(-2px);
  background: linear-gradient(135deg, 
    rgba(138, 76, 255, 0.25), 
    rgba(255, 138, 255, 0.2)
  );
  border-color: rgba(138, 76, 255, 0.5);
  box-shadow: 
    0 8px 25px rgba(138, 76, 255, 0.3),
    0 2px 5px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Animation d'apparition du badge */
@keyframes badgeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-20px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Effet de glow moderne et subtil */
.hero-badge .badge-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% + 30px);
  height: calc(100% + 30px);
  background: radial-gradient(circle, 
    rgba(138, 76, 255, 0.2) 0%, 
    rgba(255, 138, 255, 0.1) 50%, 
    transparent 80%
  );
  border-radius: 35px;
  filter: blur(12px);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
  animation: badgeGlowBreath 4s ease-in-out infinite;
}

/* Animation de respiration du glow */
@keyframes badgeGlowBreath {
  0%, 100% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Titre principal - COLLÉ AU BADGE */
.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  margin: 0 !important; /* Suppression complète des marges pour coller au badge */
  margin-top: 0 !important;
  margin-bottom: 12px !important;
  line-height: 1.1;
  
  /* Gradient principal avec fallback */
  background: var(--gradient-primary);
  background: linear-gradient(90deg, #8a4cff, #ff8aff); /* Fallback direct */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #8a4cff; /* Fallback couleur si le gradient ne fonctionne pas */
  
  text-align: center;
  
  /* Animation simple et stable */
  opacity: 1 !important;
  transform: translateY(0) !important;
  animation: titleAppear 0.8s ease-out 0.3s both;
}


.hero-title .title-line {
  display: block;
}

.hero-title .title-line-1 {
  animation: none;
  opacity: 1 !important;
}

.hero-title .title-line-2 {
  animation: none;
  opacity: 1 !important;
}

/* Sous-titre */
.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 25px; /* Réduction de 40px à 25px */
  line-height: 1.6;
  text-align: center;
  animation: fadeInUp 1s ease-out 0.7s both;
}

/* ===== BOUTONS D'ACTION ===== */
.hero-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 30px; /* Réduction de 50px à 30px */
  animation: fadeInUp 1s ease-out 0.9s both;
}

/* Bouton Contacter (Principal) */
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-contact:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.btn-contact .btn-icon {
  font-size: 1.2rem;
}

.btn-contact .btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn-contact:hover .btn-glow {
  left: 100%;
}

/* Bouton Nos créations (Secondaire) */
.btn-creations {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-creations:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.btn-creations .btn-icon {
  font-size: 1.2rem;
}

/* ===== STATS ===== */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  animation: fadeInUp 1s ease-out 1s both;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===== SECTION VISUELLE ===== */
.hero-visual-section {
  position: relative;
  animation: slideInRight 1s ease-out;
}

/* Éléments 3D en rapport avec la vidéo */
.video-3d-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.video-frame-3d-element {
  position: absolute;
  border: 2px solid rgba(138, 76, 255, 0.3);
  border-radius: 20px;
  background: rgba(138, 76, 255, 0.05);
  backdrop-filter: blur(5px);
  animation: floatVideoFrame 8s ease-in-out infinite;
}

.frame-1 {
  width: 120px;
  height: 80px;
  top: 10%;
  right: 20%;
  animation-delay: 0s;
  transform: rotate(-15deg);
}

.frame-2 {
  width: 80px;
  height: 120px;
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
  transform: rotate(15deg);
}

.frame-3 {
  width: 100px;
  height: 60px;
  top: 60%;
  right: 10%;
  animation-delay: 4s;
  transform: rotate(-10deg);
}

.video-light-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(138, 76, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pulseLight 4s ease-in-out infinite;
}

@keyframes floatVideoFrame {
  0%, 100% { transform: translateY(0) rotate(var(--rotation, 0deg)); }
  50% { transform: translateY(-20px) rotate(var(--rotation, 0deg)); }
}

@keyframes pulseLight {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

/* Container vidéo principal */
.video-showcase-container {
  position: relative;
  z-index: 2;
}

.video-showcase-frame {
  position: relative;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5);
  transform: perspective(1000px) rotateY(-8deg) rotateX(8deg);
  transition: var(--transition-smooth);
  border: none;
}

.video-showcase-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 
    0 40px 80px rgba(0, 0, 0, 0.6);
}

.hero-showcase-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

/* ================================
   CONTRÔLES VIDÉO HERO
=============================== */

/* Overlay pour les contrôles */
.video-controls-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-showcase-frame:hover .video-controls-overlay {
  opacity: 1;
}

.video-controls-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bouton play/pause centré */
.play-pause-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(138, 76, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: all;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 25px rgba(138, 76, 255, 0.4);
  backdrop-filter: blur(10px);
  text-align: center !important;
  line-height: 1 !important;
}

.play-pause-btn:hover {
  transform: scale(1.05);
  background: rgba(138, 76, 255, 1);
  box-shadow: 0 12px 30px rgba(138, 76, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.5);
}

.play-pause-btn:active {
  transform: scale(0.95);
}

.play-pause-btn i {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  line-height: 1 !important;
}

/* Bouton fullscreen */
.video-fullscreen-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.video-showcase-frame:hover .video-fullscreen-container {
  opacity: 1;
  pointer-events: all;
}

.fullscreen-btn {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.fullscreen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

.fullscreen-btn:active {
  transform: scale(0.95);
}

/* Bouton quitter fullscreen */
.exit-fullscreen-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.exit-fullscreen-container.visible {
  opacity: 1;
  visibility: visible;
}

.exit-fullscreen-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(220, 38, 38, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.exit-fullscreen-btn:hover {
  background: rgba(220, 38, 38, 1);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(220, 38, 38, 0.6);
}

.exit-fullscreen-btn:active {
  transform: translateY(0);
}

.exit-fullscreen-btn i {
  font-size: 1.1rem;
}

/* Styles spécifiques quand le bouton est dans la vidéo fullscreen */
video:fullscreen .exit-fullscreen-container {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
}

video:-webkit-full-screen .exit-fullscreen-container {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
}

video:-moz-full-screen .exit-fullscreen-container {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
}

video:-ms-fullscreen .exit-fullscreen-container {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
}

/* ================================
   CONTRÔLES VIDÉO FULLSCREEN
=============================== */

.fullscreen-video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10000;
}

.fullscreen-video-controls.visible {
  opacity: 1;
  visibility: visible;
}

/* Barre de progression améliorée */
.progress-container {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 5px;
}

.progress-time-display,
.progress-duration {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  min-width: 40px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

.progress-bar {
  flex: 1;
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.progress-bar:hover {
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
}

/* Barre de buffering */
.progress-buffered {
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

/* Barre de progression principale */
.progress-filled {
  height: 100%;
  background: linear-gradient(90deg, #8a4cff, #ff8aff);
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}

/* Handle de progression */
.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
  border: 3px solid #8a4cff;
  z-index: 4;
  cursor: grab;
}

.progress-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.2);
}

.progress-bar:hover .progress-handle {
  opacity: 1;
}

/* Preview au survol */
.progress-preview {
  position: absolute;
  bottom: 25px;
  left: 0;
  transform: translateX(-50%);
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
  z-index: 10;
}

.progress-bar:hover .progress-preview {
  opacity: 1;
}

.preview-thumbnail {
  width: 120px;
  height: 68px;
  background: rgba(0, 0, 0, 0.9);
  border-radius: 6px;
  border: 2px solid #8a4cff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.7rem;
  margin-bottom: 5px;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M8 5v14l11-7z"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px;
}

.preview-time {
  background: #8a4cff;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
}

/* Chapitres */
.progress-chapters {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.chapter-marker {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.chapter-marker:hover {
  background: #ff8aff;
  width: 3px;
}

/* Contrôles du bas */
.controls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* Boutons de contrôle */
.control-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Bouton play/pause fullscreen - cohérent avec la barre de contrôles */
.play-pause-fullscreen {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: white !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  font-size: 0.9rem !important;
  min-width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Bouton play/pause dans la barre de contrôles - cohérent avec les autres boutons */
.video-player .control-btn.play-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: white !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  font-size: 0.9rem !important;
  min-width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Centrage parfait de l'icône dans le bouton pause */
.video-player .control-btn.play-btn i {
  display: block !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Restaurer les styles originaux pour les boutons play des vidéos book et application */
.book-media .play-btn,
.application-video .play-btn {
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, rgba(138, 76, 255, 0.9), rgba(255, 138, 255, 0.8)) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  font-size: 1.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 8px 25px rgba(138, 76, 255, 0.4) !important;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.control-btn:active {
  transform: translateY(0);
}

/* Hover et active pour le bouton play/pause fullscreen - cohérent */
.play-pause-fullscreen:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

.play-pause-fullscreen:active {
  transform: translateY(0) !important;
}

/* Hover et active pour le bouton play/pause dans la barre - cohérent */
.video-player .control-btn.play-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

.video-player .control-btn.play-btn:active {
  transform: translateY(0) !important;
}

/* Hover et active pour les boutons play des vidéos book et application */
.book-media .play-btn:hover,
.application-video .play-btn:hover {
  transform: scale(1.05) !important;
  background: linear-gradient(135deg, rgba(138, 76, 255, 1), rgba(255, 138, 255, 0.9)) !important;
  box-shadow: 0 12px 30px rgba(138, 76, 255, 0.5) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.book-media .play-btn:active,
.application-video .play-btn:active {
  transform: scale(0.95) !important;
}

/* Contrôle du volume */
.volume-slider-container {
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  width: 0;
  overflow: hidden;
}

.volume-slider-container.show {
  opacity: 1;
  visibility: visible;
  width: 100px;
}

.volume-slider {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Affichage du temps */
.time-display {
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
}

/* Bouton de vitesse */
.speed-btn {
  min-width: 50px;
}

/* ================================
   MODE ZOOM VIDÉO (QUASI-FULLSCREEN)
=============================== */

.video-showcase-frame.zoom-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: #000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 120px 20px; /* Espace pour les contrôles */
  box-sizing: border-box;
  transform: none !important;
  border-radius: 0;
  border: none;
  box-shadow: none;
  /* S'assurer que rien ne peut interférer */
  isolation: isolate;
  /* Forcer le background noir */
  background-color: #000 !important;
  background-image: none !important;
  
  /* ===== OPTIMISATIONS PERFORMANCE VIDÉO ===== */
  /* Forcer l'accélération GPU pour la fluidité */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
  
  /* Optimiser le rendu */
  contain: layout style paint;
  contain-intrinsic-size: 100vw 100vh;
  
  /* Désactiver les effets qui ralentissent */
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.video-showcase-frame.zoom-mode::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: -1;
}

/* Cacher toutes les autres sections en mode zoom */
body.zoom-mode > *:not(.video-showcase-frame.zoom-mode) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* Cacher spécifiquement la navbar en mode zoom */
body.zoom-mode .main-navigation {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* Cacher spécifiquement tous les backgrounds et éléments 3D */
body.zoom-mode .video-3d-elements,
body.zoom-mode .background-elements,
body.zoom-mode .floating-element,
body.zoom-mode .section-canvas,
body.zoom-mode canvas:not(#hero-canvas) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -9999 !important;
}

/* S'assurer que le conteneur vidéo reste visible */
body.zoom-mode .video-showcase-container,
body.zoom-mode .video-showcase-frame {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Exception pour le body et html */
body.zoom-mode {
  overflow: hidden !important;
  background: #000 !important;
}

body.zoom-mode html {
  overflow: hidden !important;
}

/* S'assurer que les éléments réapparaissent après la sortie du mode zoom */
body:not(.zoom-mode) .about-section,
body:not(.zoom-mode) .book-section,
body:not(.zoom-mode) .team-section,
body:not(.zoom-mode) .application-section,
body:not(.zoom-mode) .contact-section,
body:not(.zoom-mode) .main-navigation,
body:not(.zoom-mode) .scroll-indicator {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Navbar spécifique */
body:not(.zoom-mode) .main-navigation {
  display: flex !important;
}

/* Scroll indicator spécifique - MASQUÉ SUR MOBILE */
body:not(.zoom-mode) .scroll-indicator {
  display: flex !important;
}

/* MASQUER COMPLÈTEMENT LE SCROLL INDICATOR SUR MOBILE - RÈGLES RENFORCÉES */
/* Masquage basé sur les classes dynamiques générées par JavaScript */
body.scroll-indicator-hidden .scroll-indicator,
body.device-phone .scroll-indicator,
body.device-mobile .scroll-indicator,
body.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 */
body.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 - RENFORCÉES */
@media (max-width: 768px) {
  body:not(.zoom-mode) .scroll-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (max-width: 480px) {
  body:not(.zoom-mode) .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) {
  body:not(.zoom-mode) .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) {
  body:not(.zoom-mode) .scroll-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Menu burger toujours visible sur mobile, caché sur desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ================================
   NAVIGATION MOBILE
=============================== */

/* Cacher la navbar principale sur mobile */
@media (max-width: 768px) {
  .main-navigation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  /* Menu burger visible et bien positionné sur mobile */
  .mobile-menu-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 1000 !important;
  }
  
  /* S'assurer que le menu burger est toujours accessible */
  .mobile-menu-toggle .hamburger {
    background: rgba(0, 0, 0, 0.7) !important;
    border-radius: 8px !important;
    padding: 12px !important;
    backdrop-filter: blur(10px) !important;
  }
  
  /* DÉSACTIVER LES BOUTONS FULLSCREEN SUR MOBILE */
  .fullscreen-btn,
  .video-fullscreen-btn,
  .exit-fullscreen-btn,
  .exit-fullscreen-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* ================================
   MODE MOBILE FULLSCREEN DÉDIÉ
=============================== */

/* Styles pour le conteneur mobile fullscreen */
#mobile-fullscreen-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Vidéo mobile fullscreen */
#mobile-fullscreen-video {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 8px;
}

/* Contrôles mobiles fullscreen */
#mobile-video-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000000;
}

/* Cacher la navbar sur mobile en mode zoom */
body.mobile-zoom-mode .main-navigation {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Cacher tous les autres éléments en mode mobile zoom SAUF le menu burger */
body.mobile-zoom-mode > *:not(#mobile-fullscreen-container):not(.mobile-menu-toggle):not(.mobile-menu-overlay):not(.mobile-menu) {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* S'assurer que le menu burger reste visible en mode zoom mobile */
body.mobile-zoom-mode .mobile-menu-toggle {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 1000001 !important;
}

.video-showcase-frame.zoom-mode .hero-showcase-video {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 200px); /* Hauteur maximale pour laisser de l'espace aux contrôles */
  border-radius: 15px;
  object-fit: contain;
  /* S'assurer que la vidéo est au-dessus de tout */
  position: relative;
  z-index: 1000;
  /* Forcer la visibilité */
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  /* Empêcher tout overlay */
  pointer-events: auto !important;
  
  /* ===== OPTIMISATIONS FLUIDITÉ VIDÉO ===== */
  /* Accélération GPU maximale pour la fluidité */
  transform: translateZ(0) !important;
  will-change: transform !important;
  backface-visibility: hidden !important;
  perspective: 1000px !important;
  
  /* Optimiser le rendu vidéo */
  contain: layout style paint !important;
  image-rendering: optimizeQuality !important;
  image-rendering: -webkit-optimize-contrast !important;
  
  /* Désactiver tous les effets qui ralentissent */
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  
  /* Optimiser la qualité selon l'appareil */
  -webkit-transform: translateZ(0) !important;
  -moz-transform: translateZ(0) !important;
  -ms-transform: translateZ(0) !important;
  
  /* Forcer le mode haute performance */
  -webkit-optimize-contrast: optimizeQuality !important;
  -webkit-filter: none !important;
  
  /* Désactiver les transitions pendant la lecture */
  transition: none !important;
  animation: none !important;
}

.video-showcase-frame.zoom-mode .fullscreen-video-controls {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 20px;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Contrôles toujours visibles sur desktop en mode zoom */
@media (min-width: 769px) {
  .video-showcase-frame.zoom-mode .fullscreen-video-controls {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Forcer la classe visible sur desktop */
  .video-showcase-frame.zoom-mode .fullscreen-video-controls.visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Empêcher le masquage des contrôles sur desktop */
  .video-showcase-frame.zoom-mode .fullscreen-video-controls:not(.visible) {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* S'assurer que la vidéo reste visible sur desktop */
  .video-showcase-frame.zoom-mode .hero-showcase-video {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: calc(100vh - 200px) !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 1000 !important;
  }
  
  /* S'assurer que tout le conteneur vidéo reste visible */
  .video-showcase-frame.zoom-mode {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
  }
}

/* ===== OPTIMISATIONS FLUIDITÉ SUPPLÉMENTAIRES ===== */

/* Optimisations pour les appareils haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .video-showcase-frame.zoom-mode .hero-showcase-video {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    /* Réduire la charge GPU sur les écrans haute résolution */
    transform: translateZ(0) scale(0.9999) !important;
  }
}

/* Optimisations pour les appareils peu puissants */
@media (max-width: 768px) {
  .video-showcase-frame.zoom-mode .hero-showcase-video {
    /* Réduire la qualité sur mobile pour la fluidité */
    filter: blur(0.1px) contrast(1.05) !important;
    image-rendering: optimizeSpeed !important;
    -webkit-image-rendering: optimizeSpeed !important;
    
    /* Limiter la résolution sur mobile */
    max-width: 100vw !important;
    max-height: calc(100vh - 150px) !important;
  }
  
  .video-showcase-frame.zoom-mode {
    /* Réduire le padding sur mobile pour plus d'espace vidéo */
    padding: 60px 10px 100px 10px !important;
  }
}

/* Optimisations pour les très petits écrans */
@media (max-width: 480px) {
  .video-showcase-frame.zoom-mode .hero-showcase-video {
    /* Optimisations agressives pour petits écrans */
    filter: blur(0.05px) contrast(1.02) !important;
    image-rendering: optimizeSpeed !important;
    -webkit-image-rendering: optimizeSpeed !important;
    
    /* Padding minimal */
    border-radius: 8px !important;
  }
  
  .video-showcase-frame.zoom-mode {
    padding: 40px 5px 80px 5px !important;
  }
}

/* Mode économie d'énergie */
@media (prefers-reduced-motion: reduce) {
  .video-showcase-frame.zoom-mode .hero-showcase-video {
    /* Désactiver toutes les animations en mode économie d'énergie */
    animation: none !important;
    transition: none !important;
    transform: translateZ(0) !important;
    
    /* Optimiser pour la batterie */
    filter: none !important;
    image-rendering: optimizeSpeed !important;
  }
}

/* Mode données réduites */
@media (prefers-reduced-data: reduce) {
  .video-showcase-frame.zoom-mode .hero-showcase-video {
    /* Réduire la qualité pour économiser les données */
    filter: blur(0.3px) contrast(1.1) !important;
    image-rendering: optimizeSpeed !important;
  }
}

/* ===== OPTIMISATIONS CACHE VIDÉO ===== */

/* Optimisations pour le préchargement vidéo */
.hero-showcase-video {
  /* Optimiser le cache navigateur */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  
  /* Forcer l'accélération matérielle */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  
  /* Optimiser le décodage vidéo */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  
  /* Améliorer le rendu */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cache vidéo en mode plein écran */
.video-showcase-frame.zoom-mode .hero-showcase-video {
  /* Optimisations cache spécifiques plein écran */
  -webkit-transform: translateZ(0) !important;
  transform: translateZ(0) !important;
  
  /* Forcer le décodage matériel */
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;
  
  /* Optimiser la mémoire GPU */
  will-change: transform !important;
  
  /* Améliorer le cache navigateur */
  -webkit-backface-visibility: hidden !important;
  backface-visibility: hidden !important;
}

/* Indicateur de cache vidéo (optionnel) */
.video-cache-indicator {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 255, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-cache-indicator.visible {
  opacity: 1;
}

.video-cache-indicator.cached {
  background: rgba(0, 255, 0, 0.8);
}

.video-cache-indicator.loading {
  background: rgba(255, 165, 0, 0.8);
}

.video-cache-indicator.error {
  background: rgba(255, 0, 0, 0.8);
}

/* Contrôles toujours visibles sur desktop en mode zoom */
@media (min-width: 769px) {
  /* CORRECTION : Forcer le parent à ne pas masquer les contrôles */
  .video-showcase-frame.zoom-mode {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
  }
  
  .video-showcase-frame.zoom-mode .fullscreen-video-controls {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Forcer la classe visible sur desktop */
  .video-showcase-frame.zoom-mode .fullscreen-video-controls.visible {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* Empêcher le masquage des contrôles sur desktop */
  .video-showcase-frame.zoom-mode .fullscreen-video-controls:not(.visible) {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
  
  /* S'assurer que la vidéo reste visible sur desktop */
  .video-showcase-frame.zoom-mode .hero-showcase-video {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
  }
}




.video-showcase-frame.zoom-mode .exit-fullscreen-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10001 !important;
  display: none !important; /* Cacher le bouton quitter */
}

/* Cacher les éléments en mode zoom */
.video-showcase-frame.zoom-mode .video-controls-overlay {
  display: none !important; /* Cacher le bouton play/pause central */
}

/* Le bouton fullscreen est caché SEULEMENT en mode zoom */
.video-showcase-frame.zoom-mode .video-fullscreen-container {
  display: none !important; /* Cacher le bouton fullscreen en haut */
}

/* En mode normal, le bouton doit être visible au survol */
.video-showcase-frame:not(.zoom-mode) .video-fullscreen-container {
  display: block !important;
}

/* Cacher la flèche de découverte en mode zoom */
.video-showcase-frame.zoom-mode ~ .scroll-indicator {
  display: none !important;
}

/* Alternative : cacher le scroll indicator quand on est en mode zoom */
body.zoom-mode .scroll-indicator {
  display: none !important;
}

/* Overlay pour fermer le mode zoom */
.video-showcase-frame.zoom-mode::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.95);
  z-index: -1;
}

/* Styles spécifiques pour les vidéos en fullscreen (garde pour compatibilité) */
video:fullscreen .fullscreen-video-controls {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
}

video:-webkit-full-screen .fullscreen-video-controls {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
}

video:-moz-full-screen .fullscreen-video-controls {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
}

video:-ms-fullscreen .fullscreen-video-controls {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
}



/* Effet de brillance */
.video-shine-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

/* Scroll indicator - POSITIONNEMENT AMÉLIORÉ */
.scroll-indicator {
  position: absolute;
  bottom: 40px; /* Plus d'espace depuis le bas */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px; /* Espacement amélioré entre les éléments */
  color: var(--text-muted);
  animation: bounce 3s infinite; /* Plus lent pour les performances */
  z-index: 10;
  cursor: pointer;
  transition: transform 0.3s ease; /* Simplifié */
  pointer-events: auto;
  width: 120px; /* Plus large pour un meilleur centrage */
  height: 120px; /* Plus haut pour un meilleur équilibre */
  text-align: center;
  background: none;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  will-change: transform; /* Optimisation GPU */
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-8px) scale(1.1); /* Moins d'effet pour les performances */
  background: none;
  box-shadow: none;
}

.scroll-indicator:hover .scroll-arrow {
  transform: translateY(-3px) scale(1.2);
}

.scroll-text {
  font-size: 0.8rem; /* Légèrement plus grand */
  text-transform: uppercase;
  letter-spacing: 1.5px; /* Espacement amélioré */
  font-weight: 800;
  color: var(--primary-color);
  text-shadow: 0 0 15px rgba(138, 76, 255, 0.9);
  margin-bottom: 6px; /* Espacement amélioré */
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.scroll-line {
  width: 6px; /* Légèrement plus épais */
  height: 32px; /* Plus haut */
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color), transparent);
  border-radius: 3px;
  box-shadow: 0 0 15px rgba(138, 76, 255, 0.7);
  margin: 6px 0; /* Espacement amélioré */
  position: relative;
}

.scroll-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 1px;
}

.scroll-arrow {
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 15px solid var(--primary-color);
  filter: drop-shadow(0 0 18px rgba(138, 76, 255, 0.9));
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  margin-top: 8px; /* Plus de marge au-dessus de la flèche */
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 15px solid rgba(255, 255, 255, 0.5);
  filter: blur(4px);
  z-index: -1;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -12px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 15px solid var(--secondary-color);
  filter: blur(2px);
  z-index: -2;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

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

/* Animation stable pour le titre */
@keyframes titleAppear {
  0% { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

/* Force la visibilité du titre - Protection contre les conflits */
.hero-title,
.hero-title .title-line,
.hero-title .title-line-1,
.hero-title .title-line-2 {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* ================================
   CONTRÔLES FULLSCREEN BOOK
   Utilise la même structure que le hero
=============================== */

/* Bouton fullscreen pour les vidéos du book */
.book-media {
    position: relative;
}

.book-media .video-fullscreen-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 10px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    color: white !important;
    font-size: 1.1rem !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(10px) !important;
    pointer-events: all !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999 !important;
}

.book-media:hover .video-fullscreen-btn {
    opacity: 1;
    visibility: visible;
}

.book-media .video-fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.book-media .video-fullscreen-btn:active {
    transform: scale(0.95);
}

/* Mode zoom pour les vidéos du book - Utilise la même classe que le hero */
.book-media.zoom-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 80px 20px 120px 20px !important;
    box-sizing: border-box !important;
    isolation: isolate !important;
    /* Forcer la visibilité */
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.book-media.zoom-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
}

/* Cacher tous les autres éléments en mode zoom book */
body.zoom-mode > *:not(.book-media.zoom-mode) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Cacher spécifiquement la navbar en mode zoom book */
body.zoom-mode .main-navigation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Cacher spécifiquement tous les backgrounds et éléments 3D */
body.zoom-mode .video-3d-elements,
body.zoom-mode .background-elements,
body.zoom-mode .floating-element,
body.zoom-mode .section-canvas,
body.zoom-mode canvas:not(#hero-canvas) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

/* Exception pour le body et html */
body.zoom-mode {
    overflow: hidden !important;
    background: #000 !important;
}

body.zoom-mode html {
    overflow: hidden !important;
}

/* Modifier l'alignement du conteneur zoom-mode */
.book-media.zoom-mode {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 80px !important;
    min-height: 100vh !important;
}

.book-media.zoom-mode video {
    width: 95% !important;
    height: auto !important;
    max-height: calc(100vh - 200px) !important;
    border-radius: 20px !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    /* Forcer l'affichage */
    background: #000 !important;
    margin: 80px auto 0 auto !important;
    transform: none !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

/* Forcer la visibilité des contrôles fullscreen sur les vidéos book */
.book-media.zoom-mode .fullscreen-video-controls {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)) !important;
    padding: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
}

/* Mode zoom pour les vidéos de l'application - Utilise la même classe que le hero */
.video-frame.zoom-mode,
.application-video.zoom-mode {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    background: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 80px 20px 120px 20px !important;
    box-sizing: border-box !important;
    isolation: isolate !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.video-frame.zoom-mode::before,
.application-video.zoom-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: -1;
}

/* Cacher tous les autres éléments en mode zoom application */
body.zoom-mode > *:not(.video-frame.zoom-mode):not(.application-video.zoom-mode) {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: -9999 !important;
}

.video-frame.zoom-mode video,
.application-video.zoom-mode video {
    width: 95% !important;
    height: auto !important;
    max-height: calc(100vh - 200px) !important;
    border-radius: 20px !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    pointer-events: auto !important;
    background: #000 !important;
    margin: 80px auto 0 auto !important;
    transform: none !important;
    border: 3px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
}

/* Styles pour les boutons fullscreen de la section book */
#book .video-fullscreen-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    width: 40px !important;
    height: 40px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    border: none !important;
    border-radius: 50% !important;
    color: white !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    z-index: 20 !important;
    transition: all 0.3s ease !important;
    opacity: 0.8 !important;
}

#book .video-fullscreen-btn:hover {
    background: rgba(138, 76, 255, 0.9) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
}

#book .book-media {
    position: relative !important;
}

/* Contrôles toujours visibles sur desktop en mode zoom book */
@media (min-width: 769px) {
    .book-media.zoom-mode .fullscreen-video-controls {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    .book-media.zoom-mode .fullscreen-video-controls.visible {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    .book-media.zoom-mode .fullscreen-video-controls:not(.visible) {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
}

/* ================================
   BOUTONS PLAY/PAUSE
=============================== */

/* Bouton play/pause dans la barre de contrôles - cohérent avec les autres boutons */
.video-player .control-btn.play-btn {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  color: white !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  backdrop-filter: blur(10px) !important;
  font-size: 0.9rem !important;
  min-width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.video-player .control-btn.play-btn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-1px) !important;
}

.video-player .control-btn.play-btn:active {
  transform: translateY(0) !important;
}

/* ================================
   CONTRÔLES VIDÉO APPLICATION
=============================== */

/* Styles pour la vidéo application */
.application-video .video-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    min-height: 350px;
    max-height: 450px;
}

.application-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

.application-video .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    border-radius: 20px;
}

.application-video .video-overlay:hover {
    background: rgba(0, 0, 0, 0.2);
}

.application-video .play-btn {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(138, 76, 255, 0.9), rgba(255, 138, 255, 0.8));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.application-video .play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(138, 76, 255, 0.4);
}

/* Bouton fullscreen pour application */
.application-video .video-fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: rgba(138, 76, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    pointer-events: all;
    opacity: 0;
    visibility: hidden;
    z-index: 15;
}

.application-video .video-frame:hover .video-fullscreen-btn {
    opacity: 1;
    visibility: visible;
}

.application-video .video-fullscreen-btn:hover {
    background: rgba(138, 76, 255, 1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(138, 76, 255, 0.4);
}

.application-video .video-fullscreen-btn:active {
    transform: scale(0.95);
}

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

/* Tablette */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 3.5rem;
    text-align: center;
  }
  
  .hero-subtitle {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .video-showcase-frame {
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }

  .video-3d-elements {
    display: none;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-redesigned {
    min-height: 45vh; /* Réduction encore plus sur mobile pour un hero compact */
    padding: 30px 15px 50px; /* Padding encore plus réduit sur mobile */
  }
  
  /* Cacher le scroll indicator sur mobile */
  .scroll-indicator {
    display: none !important;
  }
  
  .hero-container {
    gap: 30px;
    padding: 0 10px;
  }
  
  .hero-badge {
    margin: 0 !important;
    margin-bottom: 12px !important; /* Petit écart sur mobile */
  }
  
  .hero-badge .badge-text {
    font-size: 0.75rem;
    padding: 8px 16px; /* Padding équilibré sur mobile */
    letter-spacing: 1.5px;
  }
  
  .hero-title {
    font-size: 2.8rem;
    margin-bottom: 10px; /* Réduction de 15px à 10px pour cohérence */
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 20px; /* Réduction de 30px à 20px pour cohérence */
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px; /* Réduction pour mobile */
  }
  
  .btn-contact,
  .btn-creations {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .stat-item {
    min-width: 80px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .video-showcase-frame {
    max-width: 100%;
    border-radius: 20px;
  }
  
  .hero-showcase-video {
    border-radius: 17px;
  }
  
  
  /* Styles responsive pour les contrôles vidéo */
  .play-pause-btn {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
  }
  
  .fullscreen-btn,
  .book-media .video-fullscreen-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    top: 15px;
    right: 15px;
  }
  
  /* Bouton quitter fullscreen responsive */
  .exit-fullscreen-container {
    top: 15px;
    right: 15px;
  }
  
  .exit-fullscreen-btn {
    padding: 10px 16px;
    font-size: 0.85rem;
    gap: 8px;
  }
  
  .exit-fullscreen-btn span {
    display: none; /* Cacher le texte sur mobile */
  }
  
  .exit-fullscreen-btn i {
    font-size: 1rem;
  }
  
  /* Contrôles vidéo fullscreen responsive */
  .fullscreen-video-controls {
    padding: 15px;
  }
  
  .controls-left,
  .controls-right {
    gap: 10px;
  }
  
  .control-btn {
    min-width: 35px;
    height: 35px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }
  
  .volume-slider-container.show {
    width: 80px;
  }
  
  .time-display {
    font-size: 0.8rem;
  }
  
  /* Mode zoom responsive - Améliorations mobile */
  .video-showcase-frame.zoom-mode,
  .book-media.zoom-mode {
    padding: 30px 8px 90px 8px;
    /* Améliorer le touch sur mobile */
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    /* Optimiser pour les petits écrans */
    min-height: 100vh;
    box-sizing: border-box;
    /* S'assurer que le mode zoom prend toute la place */
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    /* Z-index très élevé pour passer au-dessus de tout */
    z-index: 999999 !important;
  }
  
  /* Cacher explicitement toutes les sections sur mobile en mode zoom */
  body.zoom-mode .about-section,
  body.zoom-mode .book-section,
  body.zoom-mode .team-section,
  body.zoom-mode .application-section,
  body.zoom-mode .contact-section,
  body.zoom-mode .main-navigation,
  body.zoom-mode .scroll-indicator {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .video-showcase-frame.zoom-mode .hero-showcase-video,
  .book-media.zoom-mode video {
    max-height: calc(100vh - 180px);
    border-radius: 12px;
    width: 98% !important;
    margin: 60px auto 0 auto !important;
    /* Optimiser pour mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    /* Améliorer la qualité sur mobile */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
  
  /* Ajuster le conteneur zoom-mode sur mobile */
  .book-media.zoom-mode {
    padding-top: 60px !important;
  }
  
  .video-showcase-frame.zoom-mode .fullscreen-video-controls,
  .book-media.zoom-mode .fullscreen-video-controls {
    padding: 15px 12px;
    /* Améliorer l'accessibilité tactile */
    touch-action: manipulation;
    /* Fond plus opaque pour mobile */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.95));
    /* Espacement pour éviter les gestes système */
    padding-bottom: max(15px, env(safe-area-inset-bottom));
  }
  
  .video-showcase-frame.zoom-mode .exit-fullscreen-container {
    top: 10px;
    right: 10px;
    display: none !important; /* Cacher sur mobile aussi */
  }
  
  .video-showcase-frame.zoom-mode .video-controls-overlay {
    display: none !important; /* Cacher sur mobile aussi */
  }
  
  .video-showcase-frame.zoom-mode .video-fullscreen-container {
    display: none !important; /* Cacher sur mobile aussi */
  }
  
  /* Cacher la flèche de découverte sur mobile en mode zoom */
  body.zoom-mode .scroll-indicator {
    display: none !important;
  }
  
  /* Contrôles vidéo mobile optimisés */
  .video-showcase-frame.zoom-mode .controls-bottom {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
    /* Espacement pour éviter les gestes système */
    padding-bottom: 5px;
  }
  
  .video-showcase-frame.zoom-mode .controls-left,
  .video-showcase-frame.zoom-mode .controls-right {
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
  }
  
  /* Layout spécial mobile - contrôles principaux */
  .video-showcase-frame.zoom-mode .controls-left {
    order: 1;
  }
  
  .video-showcase-frame.zoom-mode .controls-right {
    order: 2;
    justify-content: center;
  }
  
  /* Boutons plus grands pour le touch */
  .video-showcase-frame.zoom-mode .control-btn {
    min-width: 50px;
    height: 50px;
    padding: 10px 14px;
    font-size: 1.1rem;
    /* Améliorer le feedback tactile */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.3);
    tap-highlight-color: rgba(255, 255, 255, 0.3);
    /* Bordures plus visibles */
    border-width: 2px;
    /* Ombre pour la profondeur */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    /* Animation de pression plus marquée */
    transition: all 0.15s ease;
  }
  
  .video-showcase-frame.zoom-mode .control-btn:active {
    transform: scale(0.92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  }
  
  /* Barre de progression mobile améliorée */
  .video-showcase-frame.zoom-mode .progress-container {
    margin-bottom: 20px;
    /* Zone de touch étendue */
    padding: 15px 0;
    margin: -15px 0 5px 0;
  }
  
  .video-showcase-frame.zoom-mode .progress-bar {
    height: 10px;
    /* Zone de touch plus grande */
    padding: 12px 0;
    margin: -12px 0;
    /* Bordure plus visible */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Ombre pour la profondeur */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  }
  
  .video-showcase-frame.zoom-mode .progress-bar:hover {
    height: 12px;
  }
  
  .video-showcase-frame.zoom-mode .progress-handle {
    width: 24px;
    height: 24px;
    /* Toujours visible sur mobile pour le touch */
    opacity: 1;
    /* Ombre plus marquée */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    /* Animation au touch */
    transition: all 0.2s ease;
  }
  
  .video-showcase-frame.zoom-mode .progress-handle:active {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  }
  
  /* Slider de volume mobile */
  .video-showcase-frame.zoom-mode .volume-slider-container.show {
    width: 120px;
  }
  
  .video-showcase-frame.zoom-mode .volume-slider {
    height: 6px;
    /* Zone de touch plus grande */
    padding: 8px 0;
    margin: -8px 0;
  }
  
  /* Affichage du temps mobile */
  .video-showcase-frame.zoom-mode .time-display {
    font-size: 0.9rem;
    font-weight: 600;
    /* Meilleur contraste */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  }
}

/* ================================
   MOBILE TRÈS PETIT (SMARTPHONES)
=============================== */
@media (max-width: 480px) {
  /* Mode zoom pour très petits écrans */
  .video-showcase-frame.zoom-mode {
    padding: 15px 5px 70px 5px;
    /* Optimiser pour les smartphones */
    min-height: 100vh;
    /* S'assurer que le mode zoom prend toute la place sur smartphone */
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    /* Z-index maximum pour smartphone */
    z-index: 9999999 !important;
    /* Forcer le positionnement */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
  }
  
  /* Cacher encore plus explicitement sur smartphone */
  body.zoom-mode *:not(.video-showcase-frame.zoom-mode):not(.video-showcase-frame.zoom-mode *) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  
  .video-showcase-frame.zoom-mode .hero-showcase-video {
    max-height: calc(100vh - 85px);
    border-radius: 6px;
    /* Qualité optimisée pour petits écrans */
    image-rendering: -webkit-optimize-contrast;
    /* Empêcher le zoom sur double-tap */
    touch-action: manipulation;
    /* Optimiser les performances */
    will-change: transform;
    /* Prévenir les sélections de texte accidentelles */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  
  .video-showcase-frame.zoom-mode .fullscreen-video-controls {
    padding: 12px 8px;
    /* Fond encore plus opaque */
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.98));
    /* Espacement safe area pour iPhone */
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  
  /* Layout optimisé pour smartphones */
  .video-showcase-frame.zoom-mode .controls-bottom {
    gap: 12px;
    /* Centrer tous les contrôles */
    align-items: center;
  }
  
  .video-showcase-frame.zoom-mode .controls-left {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
  }
  
  .video-showcase-frame.zoom-mode .controls-right {
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    width: 100%;
  }
  
  /* Boutons optimisés pour smartphones */
  .video-showcase-frame.zoom-mode .control-btn {
    min-width: 55px;
    height: 55px;
    padding: 12px 16px;
    font-size: 1.2rem;
    /* Feedback tactile renforcé */
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.4);
    /* Ombre plus prononcée */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    /* Bordure plus épaisse */
    border-width: 3px;
  }
  
  .video-showcase-frame.zoom-mode .control-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }
  
  /* Barre de progression smartphone */
  .video-showcase-frame.zoom-mode .progress-container {
    margin-bottom: 25px;
    padding: 18px 0;
    margin: -18px 0 7px 0;
  }
  
  .video-showcase-frame.zoom-mode .progress-bar {
    height: 12px;
    padding: 15px 0;
    margin: -15px 0;
    border-width: 2px;
    /* Ombre plus marquée */
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
  }
  
  .video-showcase-frame.zoom-mode .progress-bar:hover {
    height: 14px;
  }
  
  .video-showcase-frame.zoom-mode .progress-handle {
    width: 28px;
    height: 28px;
    /* Ombre très marquée pour le touch */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  }
  
  .video-showcase-frame.zoom-mode .progress-handle:active {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
  }
  
  /* Slider de volume smartphone */
  .video-showcase-frame.zoom-mode .volume-slider-container.show {
    width: 150px;
    /* Zone de touch étendue */
    padding: 10px 0;
    margin: -10px 0;
  }
  
  .video-showcase-frame.zoom-mode .volume-slider {
    height: 10px;
    padding: 12px 0;
    margin: -12px 0;
    /* Bordure visible */
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  /* Texte optimisé pour smartphones */
  .video-showcase-frame.zoom-mode .time-display {
    font-size: 1.1rem;
    font-weight: 700;
    /* Ombre pour la lisibilité */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    /* Espacement */
    letter-spacing: 0.5px;
  }
  
  /* Bouton de vitesse smartphone */
  .video-showcase-frame.zoom-mode .speed-btn {
    min-width: 60px;
  }
  
  .video-showcase-frame.zoom-mode .speed-btn span {
    font-size: 1rem;
    font-weight: 700;
  }
  
  /* Bouton play/pause spécial pour smartphones */
  .video-showcase-frame.zoom-mode .play-pause-fullscreen {
    min-width: 65px;
    height: 65px;
    font-size: 1.4rem;
    /* Fond plus visible */
    background: rgba(138, 76, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
  }
  
  /* Bouton fullscreen toggle smartphone */
  .video-showcase-frame.zoom-mode .fullscreen-toggle {
    min-width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  
  /* Améliorations supplémentaires pour smartphones */
  .video-showcase-frame.zoom-mode .volume-slider {
    /* Zone de touch plus grande */
    padding: 8px 0;
    margin: -8px 0;
  }
  
  /* Contrôles toujours visibles sur très petits écrans */
  .video-showcase-frame.zoom-mode .fullscreen-video-controls {
    /* Toujours visible pour éviter les problèmes de touch */
    opacity: 1 !important;
  }
  
  /* Espacement pour éviter les gestes système iOS */
  .video-showcase-frame.zoom-mode {
    /* Padding pour la safe area */
    padding-bottom: max(70px, env(safe-area-inset-bottom) + 70px);
  }
  
  
  .scroll-indicator {
    bottom: 25px;
    gap: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
  }
  
  .scroll-text {
    font-size: 0.7rem;
  }
  
  .scroll-line {
    height: 20px;
    width: 4px;
  }
  
  .scroll-arrow {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--primary-color);
  }
  
  .scroll-arrow::before {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid rgba(255, 255, 255, 0.4);
    left: -10px;
    top: -12px;
  }
  
  .scroll-arrow::after {
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 12px solid var(--secondary-color);
    left: -10px;
    top: -12px;
  }
}

/* Très petit mobile */
@media (max-width: 480px) {
  .hero-redesigned {
    min-height: 40vh; /* Réduction maximale sur très petit mobile */
    padding: 25px 10px 40px; /* Padding minimal sur très petit mobile */
  }
  
  /* Cacher le scroll indicator sur très petit mobile */
  .scroll-indicator {
    display: none !important;
  }
  
  .hero-badge {
    margin: 0 !important;
    margin-bottom: 10px !important; /* Petit écart sur très petit mobile */
  }
  
  .hero-badge .badge-text {
    font-size: 0.7rem;
    padding: 6px 12px; /* Padding équilibré sur très petit mobile */
    letter-spacing: 1px;
  }
  
  .hero-title {
    font-size: 2.2rem;
    margin-bottom: 8px; /* Réduction pour très petit mobile */
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 15px; /* Réduction pour très petit mobile */
  }
  
  .hero-buttons {
    margin-bottom: 15px; /* Réduction pour très petit mobile */
  }
  
  .btn-contact,
  .btn-creations {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
}

/* CONTRÔLES FULLSCREEN HERO BANNER */
.fullscreen-video-controls {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)) !important;
  backdrop-filter: blur(15px) !important;
  padding: 25px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
  z-index: 10000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.fullscreen-video-controls.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.fullscreen-video-controls .progress-container {
  margin-bottom: 20px !important;
}

.fullscreen-video-controls .controls-bottom {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
}

.fullscreen-video-controls .controls-left,
.fullscreen-video-controls .controls-right {
  display: flex !important;
  align-items: center !important;
  gap: 15px !important;
}

.fullscreen-video-controls .time-display {
  color: white !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

/* Container fullscreen hero */
.exit-fullscreen-container {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 10001 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.3s ease !important;
}

.exit-fullscreen-container.visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.exit-fullscreen-btn {
  background: rgba(0, 0, 0, 0.7) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 50% !important;
  color: white !important;
  width: 50px !important;
  height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(10px) !important;
  font-size: 18px !important;
}

.exit-fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: scale(1.1) !important;
}

/* ================================
   PARTICULES VIOLET BACKGROUND
=============================== */

/* Canvas des particules violet */
#violet-particles-canvas {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  will-change: transform;
  /* Optimisation GPU */
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
  /* Filtres pour un rendu plus doux avec blur */
  filter: blur(2px) brightness(1.1) saturate(1.2);
  /* Forcer la visibilité */
  display: block !important;
  visibility: visible !important;
}

/* Conteneur pour les particules */
.violet-particles-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 1 !important;
  pointer-events: none !important;
  overflow: hidden;
  /* Forcer la visibilité */
  display: block !important;
  visibility: visible !important;
}

/* Animation subtile pour le canvas entier */
@keyframes particlesFloat {
  0%, 100% {
    transform: translateZ(0) translateY(0) translateX(0);
  }
  33% {
    transform: translateZ(0) translateY(-2px) translateX(1px);
  }
  66% {
    transform: translateZ(0) translateY(1px) translateX(-1px);
  }
}

@keyframes particlesGlow {
  0%, 100% {
    filter: blur(2px) brightness(1.1) saturate(1.2);
  }
  50% {
    filter: blur(3px) brightness(1.2) saturate(1.3);
  }
}

#violet-particles-canvas {
  animation: particlesFloat 20s ease-in-out infinite, particlesGlow 8s ease-in-out infinite;
  /* Délai aléatoire pour chaque instance */
  animation-delay: calc(var(--animation-delay, 0) * 1s);
}

/* Optimisations pour les performances */
@media (prefers-reduced-motion: reduce) {
  #violet-particles-canvas {
    animation: none;
  }
}

/* Styles pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  #violet-particles-canvas {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Masquer les particules sur les écrans très petits pour les performances */
@media (max-width: 320px) {
  #violet-particles-canvas {
    display: none;
  }
}

/* Réduire l'opacité sur mobile pour économiser la batterie */
@media (max-width: 768px) {
  #violet-particles-canvas {
    opacity: 0.6;
    filter: blur(0.8px);
  }
}

/* Mode sombre - ajuster l'intensité des particules */
@media (prefers-color-scheme: dark) {
  #violet-particles-canvas {
    opacity: 0.7;
  }
}

/* Mode économie d'énergie - réduire les particules */
@media (prefers-reduced-motion: reduce) {
  #violet-particles-canvas {
    opacity: 0.3;
    animation: none;
  }
}

/* ================================
   HERO LAZY LOADING OVERLAY
=============================== */

.hero-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 1;
  visibility: visible;
  transition: all 0.5s ease;
}

.hero-loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
}

.loading-content {
  text-align: center;
  color: white;
  max-width: 400px;
  padding: 40px;
}

.loading-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 30px;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top: 3px solid #8a4cff;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(2) {
  width: 60px;
  height: 60px;
  top: 10px;
  left: 10px;
  border-top-color: #ff8aff;
  animation-delay: -0.5s;
  animation-duration: 2s;
}

.spinner-ring:nth-child(3) {
  width: 40px;
  height: 40px;
  top: 20px;
  left: 20px;
  border-top-color: #00d4ff;
  animation-delay: -1s;
  animation-duration: 2.5s;
}

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

.loading-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 30px;
  background: linear-gradient(45deg, #8a4cff, #ff8aff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: pulse 2s ease-in-out infinite;
}

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

.loading-progress {
  width: 100%;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 15px;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #8a4cff, #ff8aff, #00d4ff);
  border-radius: 3px;
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.progress-fill::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;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.progress-percentage {
  font-size: 0.9rem;
  font-weight: 700;
  color: #8a4cff;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  text-shadow: 0 0 10px rgba(138, 76, 255, 0.5);
}

/* Animation d'apparition du contenu après chargement */
.hero-text-section,
.hero-visual-section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.hero-text-section.loaded,
.hero-visual-section.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Délai d'apparition pour l'effet cascade */
.hero-text-section.loaded {
  transition-delay: 0.1s;
}

.hero-visual-section.loaded {
  transition-delay: 0.3s;
}

/* Responsive pour l'overlay de chargement */
@media (max-width: 768px) {
  .loading-content {
    padding: 20px;
    max-width: 300px;
  }
  
  .loading-spinner {
    width: 60px;
    height: 60px;
    margin-bottom: 20px;
  }
  
  .spinner-ring:nth-child(2) {
    width: 45px;
    height: 45px;
    top: 7.5px;
    left: 7.5px;
  }
  
  .spinner-ring:nth-child(3) {
    width: 30px;
    height: 30px;
    top: 15px;
    left: 15px;
  }
  
  .loading-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  
  .progress-bar {
    height: 4px;
  }
  
  .progress-percentage {
    font-size: 0.8rem;
  }
}
