/* ================================
   PARTICULES ANIMÉES
   ================================ */

/* Container des particules - Arrière-plan */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

/* Container des particules - Premier plan */
.particles-container.foreground {
  z-index: 0;
}

/* Particules individuelles - Arrière-plan */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, rgba(138, 76, 255, 0.6), rgba(138, 76, 255, 0.1));
  border-radius: 50%;
  animation: floatBackground 25s infinite linear;
  opacity: 0; /* Assurer qu'elles sont invisibles au démarrage */
}

.particle:nth-child(2n) {
  background: radial-gradient(circle, rgba(255, 138, 255, 0.6), rgba(255, 138, 255, 0.1));
  animation-duration: 30s;
}

.particle:nth-child(3n) {
  background: radial-gradient(circle, rgba(74, 168, 255, 0.6), rgba(74, 168, 255, 0.1));
  animation-duration: 35s;
}

.particle:nth-child(4n) {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.05));
  animation-duration: 40s;
}

/* Particules premier plan */
.particle.foreground {
  width: 3px;
  height: 3px;
  background: radial-gradient(circle, rgba(138, 76, 255, 0.8), rgba(138, 76, 255, 0.3));
  animation: floatForeground 20s infinite linear;
  opacity: 0; /* Assurer qu'elles sont invisibles au démarrage */
}

.particle.foreground:nth-child(2n) {
  background: radial-gradient(circle, rgba(255, 138, 255, 0.8), rgba(255, 138, 255, 0.3));
  animation-duration: 22s;
}

.particle.foreground:nth-child(3n) {
  background: radial-gradient(circle, rgba(74, 168, 255, 0.8), rgba(74, 168, 255, 0.3));
  animation-duration: 24s;
}

/* Animations de flottement - Arrière-plan */
@keyframes floatBackground {
  0% {
    transform: translateY(150vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  15% {
    opacity: 0.6;
  }
  70% {
    opacity: 0.6;
  }
  75% {
    opacity: 0.3;
  }
  80% {
    opacity: 0;
  }
  100% {
    transform: translateY(400px) translateX(150px) rotate(360deg);
    opacity: 0;
  }
}

/* Animations de flottement - Premier plan */
@keyframes floatForeground {
  0% {
    transform: translateY(140vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  3% {
    opacity: 0;
  }
  8% {
    opacity: 0.8;
  }
  12% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  70% {
    opacity: 0.8;
  }
  75% {
    opacity: 0;
  }
  100% {
    transform: translateY(350px) translateX(80px) rotate(360deg);
    opacity: 0;
  }
}

/* Particules pour les sections spécifiques */
.section-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Particules arrière-plan des sections */
.section-particles.background {
  z-index: -1;
}

/* Particules premier plan des sections */
.section-particles.foreground {
  z-index: 1;
}

.section-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(138, 76, 255, 0.3);
  border-radius: 50%;
  animation: sectionFloat 15s infinite linear;
  opacity: 0; /* Assurer qu'elles sont invisibles au démarrage */
}

.section-particle:nth-child(2n) {
  background: rgba(255, 138, 255, 0.2);
  animation-duration: 18s;
}

.section-particle:nth-child(3n) {
  background: rgba(74, 168, 255, 0.2);
  animation-duration: 22s;
}

.section-particle:nth-child(4n) {
  background: rgba(255, 255, 255, 0.15);
  animation-duration: 25s;
}

/* Particules premier plan des sections */
.section-particle.foreground {
  width: 3px;
  height: 3px;
  background: rgba(138, 76, 255, 0.5);
  animation: sectionFloatForeground 12s infinite linear;
  opacity: 0; /* Assurer qu'elles sont invisibles au démarrage */
}

.section-particle.foreground:nth-child(2n) {
  background: rgba(255, 138, 255, 0.4);
  animation-duration: 14s;
}

.section-particle.foreground:nth-child(3n) {
  background: rgba(74, 168, 255, 0.4);
  animation-duration: 16s;
}

@keyframes sectionFloat {
  0% {
    transform: translateY(50px) translateX(0) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0;
    transform: scale(0);
  }
  15% {
    opacity: 0.3;
    transform: scale(0.5);
  }
  50% {
    opacity: 0.6;
    transform: scale(1);
  }
  60% {
    opacity: 0.3;
    transform: scale(0.5);
  }
  70% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    transform: translateY(-200px) translateX(40px) scale(0);
    opacity: 0;
  }
}

@keyframes sectionFloatForeground {
  0% {
    transform: translateY(80px) translateX(0) scale(0);
    opacity: 0;
  }
  8% {
    opacity: 0;
    transform: scale(0);
  }
  12% {
    opacity: 0.6;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
  60% {
    opacity: 0.6;
    transform: scale(0.7);
  }
  65% {
    opacity: 0;
    transform: scale(0);
  }
  100% {
    transform: translateY(-250px) translateX(60px) scale(0);
    opacity: 0;
  }
}

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

.hero-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), rgba(138, 76, 255, 0.4));
  border-radius: 50%;
  animation: heroFloat 12s infinite linear;
  box-shadow: 0 0 10px rgba(138, 76, 255, 0.5);
  opacity: 0; /* Assurer qu'elles sont invisibles au démarrage */
}

.hero-particle:nth-child(2n) {
  background: radial-gradient(circle, rgba(255, 138, 255, 0.8), rgba(255, 138, 255, 0.4));
  animation-duration: 15s;
}

.hero-particle:nth-child(3n) {
  background: radial-gradient(circle, rgba(74, 168, 255, 0.8), rgba(74, 168, 255, 0.4));
  animation-duration: 18s;
}

@keyframes heroFloat {
  0% {
    transform: translateY(120vh) translateX(-50px) rotate(0deg);
    opacity: 0;
  }
  5% {
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  65% {
    opacity: 1;
  }
  70% {
    opacity: 0.5;
  }
  75% {
    opacity: 0;
  }
  100% {
    transform: translateY(400px) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

/* ================================
   CURSEUR PERSONNALISÉ
   ================================ */

/* Animations de glow pour le curseur */
@keyframes cursorGlowPulse {
  0% {
    box-shadow: 
      0 0 20px rgba(138, 76, 255, 1),
      0 0 40px rgba(255, 138, 255, 0.8),
      0 0 60px rgba(138, 76, 255, 0.6),
      0 0 80px rgba(255, 138, 255, 0.4),
      0 0 100px rgba(138, 76, 255, 0.3),
      0 0 120px rgba(255, 138, 255, 0.2);
  }
  100% {
    box-shadow: 
      0 0 30px rgba(138, 76, 255, 1),
      0 0 60px rgba(255, 138, 255, 1),
      0 0 90px rgba(138, 76, 255, 0.8),
      0 0 120px rgba(255, 138, 255, 0.6),
      0 0 150px rgba(138, 76, 255, 0.4),
      0 0 180px rgba(255, 138, 255, 0.3);
  }
}

@keyframes cursorGlowIntense {
  0% {
    box-shadow: 
      0 0 20px rgba(255, 255, 255, 0.8),
      0 0 40px rgba(138, 76, 255, 0.6),
      0 0 60px rgba(255, 138, 255, 0.4),
      0 0 80px rgba(138, 76, 255, 0.3);
  }
  100% {
    box-shadow: 
      0 0 30px rgba(255, 255, 255, 1),
      0 0 60px rgba(138, 76, 255, 0.8),
      0 0 90px rgba(255, 138, 255, 0.6),
      0 0 120px rgba(138, 76, 255, 0.4);
  }
}

/* Curseur principal */
* {
  cursor: none;
}

/* Supprimé - conflit avec style.css */

/* Curseur personnalisé avec glow amélioré */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #8a4cff, #ff8aff);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10002;
  transition: none;
  mix-blend-mode: normal;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  box-shadow: 
    0 0 20px rgba(138, 76, 255, 1),
    0 0 40px rgba(255, 138, 255, 0.8),
    0 0 60px rgba(138, 76, 255, 0.6),
    0 0 80px rgba(255, 138, 255, 0.4),
    0 0 100px rgba(138, 76, 255, 0.3),
    0 0 120px rgba(255, 138, 255, 0.2);
  filter: drop-shadow(0 0 10px rgba(138, 76, 255, 0.9)) drop-shadow(0 0 20px rgba(255, 138, 255, 0.7));
  animation: cursorGlowPulse 2s ease-in-out infinite alternate;
}

/* Curseur visible en mode fullscreen book */
body:has(#book-fullscreen-overlay) .custom-cursor,
.zoom-mode .custom-cursor,
#book-fullscreen-overlay ~ .custom-cursor {
  z-index: 99999999 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Protection contre la perte de styles lors de la sortie du fullscreen */
.book-item {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.book-item * {
  transition: inherit !important;
}

/* Restauration forcée des styles après fullscreen */
.book-item.restoring {
  animation: restoreBookItem 0.5s ease-out forwards;
}

@keyframes restoreBookItem {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Protection contre l'écran noir des vidéos après fullscreen */
.book-item video {
  background: transparent !important;
  background-color: transparent !important;
}

.book-item video:not([src]) {
  background: linear-gradient(45deg, #1a1a2e, #16213e) !important;
}

/* Forcer la visibilité des vidéos dans les book-items */
.book-item .book-media video,
.book-item .video-showcase-frame video {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Optimisation et protection des vidéos book */
.book-item video {
  /* Configuration optimale par défaut */
  object-fit: cover !important;
  background: transparent !important;
  background-color: transparent !important;
  
  /* Protection contre l'écran noir */
  min-height: 200px !important;
  min-width: 100% !important;
  
  /* Transitions fluides */
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

/* État de chargement des vidéos */
.book-item video:not([src]),
.book-item video[src=""],
.book-item video:not([src=""]) {
  background: linear-gradient(45deg, #1a1a2e, #16213e) !important;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(138, 76, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 138, 255, 0.08) 0%, transparent 50%) !important;
}

/* État d'erreur des vidéos */
.book-item video[poster],
.book-item video:not([poster]) {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}

/* Protection contre la perte de visibilité */
.book-item:hover video,
.book-item.animate-in video {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Animation de restauration pour les vidéos */
.book-item video.restoring {
  animation: videoRestore 0.5s ease-out forwards;
}

@keyframes videoRestore {
  0% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Curseur visible au-dessus de la bannière cookies */
body:has(.cookie-banner) .custom-cursor,
.cookie-banner ~ .custom-cursor {
  z-index: 10003 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.custom-cursor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.8;
}

/* Curseur au hover sur les liens cliquables */
.custom-cursor.hover {
  transform: scale(1.8);
  background: linear-gradient(135deg, #ff8aff, #8a4cff);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 30px rgba(255, 138, 255, 0.8),
    0 0 50px rgba(138, 76, 255, 0.6),
    0 0 80px rgba(255, 138, 255, 0.4);
  filter: drop-shadow(0 0 15px rgba(255, 138, 255, 0.7));
}

/* Curseur spécial pour les liens externes */
.custom-cursor.link-external {
  transform: scale(2);
  background: linear-gradient(135deg, #00d4ff, #8a4cff);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 0 40px rgba(0, 212, 255, 0.9),
    0 0 60px rgba(138, 76, 255, 0.7),
    0 0 100px rgba(0, 212, 255, 0.5);
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8));
  animation: linkPulse 1.5s ease-in-out infinite;
}

/* Curseur spécial pour les liens internes */
.custom-cursor.link-internal {
  transform: scale(1.6);
  background: linear-gradient(135deg, #8a4cff, #ff8aff);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 0 25px rgba(138, 76, 255, 0.7),
    0 0 45px rgba(255, 138, 255, 0.5),
    0 0 70px rgba(138, 76, 255, 0.3);
  filter: drop-shadow(0 0 12px rgba(138, 76, 255, 0.6));
}

/* Animation pour les liens externes */
@keyframes linkPulse {
  0%, 100% {
    transform: scale(2);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.7);
  }
  50% {
    transform: scale(2.2);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.9);
  }
}

/* Curseur au hover sur les boutons avec glow intense */
.custom-cursor.button-hover {
  transform: scale(1.2);
  background: linear-gradient(135deg, #4a9eff, #8a4cff);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: cursorGlowIntense 1.7s ease-in-out infinite alternate;
  box-shadow: 
    0 0 25px rgba(74, 158, 255, 0.8),
    0 0 50px rgba(138, 76, 255, 0.6),
    0 0 75px rgba(74, 158, 255, 0.4),
    0 0 100px rgba(138, 76, 255, 0.3),
    0 0 125px rgba(74, 158, 255, 0.2);
  filter: drop-shadow(0 0 12px rgba(74, 158, 255, 0.7)) drop-shadow(0 0 20px rgba(138, 76, 255, 0.5));
}

/* Curseur au hover sur les éléments interactifs avec glow vibrant */
.custom-cursor.interactive-hover {
  transform: scale(1.3);
  background: linear-gradient(135deg, #ff6b6b, #ff8aff);
  animation: cursorGlowIntense 1.6s ease-in-out infinite alternate;
  box-shadow: 
    0 0 30px rgba(255, 107, 107, 0.9),
    0 0 60px rgba(255, 138, 255, 0.7),
    0 0 90px rgba(255, 107, 107, 0.5),
    0 0 120px rgba(255, 138, 255, 0.3),
    0 0 150px rgba(255, 107, 107, 0.2);
  filter: drop-shadow(0 0 15px rgba(255, 107, 107, 0.8)) drop-shadow(0 0 25px rgba(255, 138, 255, 0.6));
}

/* Curseur spécial pour les champs de texte */
.custom-cursor.text-field {
  transform: scale(1.4);
  background: linear-gradient(135deg, #4ade80, #8a4cff);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 0 30px rgba(74, 222, 128, 0.8),
    0 0 50px rgba(138, 76, 255, 0.6),
    0 0 75px rgba(74, 222, 128, 0.4);
  filter: drop-shadow(0 0 12px rgba(74, 222, 128, 0.7));
}

/* Curseur spécial pour les textarea */
.custom-cursor.textarea-field {
  transform: scale(1.6);
  background: linear-gradient(135deg, #22d3ee, #8a4cff);
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 
    0 0 35px rgba(34, 211, 238, 0.9),
    0 0 55px rgba(138, 76, 255, 0.7),
    0 0 80px rgba(34, 211, 238, 0.5);
  filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.8));
}

/* Curseur spécial pour les champs de recherche */
.custom-cursor.search-field {
  transform: scale(1.5);
  background: linear-gradient(135deg, #f59e0b, #8a4cff);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 30px rgba(245, 158, 11, 0.8),
    0 0 50px rgba(138, 76, 255, 0.6),
    0 0 75px rgba(245, 158, 11, 0.4);
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.7));
  animation: searchGlow 2s ease-in-out infinite;
}

/* Animation pour les champs de recherche */
@keyframes searchGlow {
  0%, 100% {
    box-shadow: 
      0 0 30px rgba(245, 158, 11, 0.8),
      0 0 50px rgba(138, 76, 255, 0.6),
      0 0 75px rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 
      0 0 40px rgba(245, 158, 11, 1.0),
      0 0 65px rgba(138, 76, 255, 0.8),
      0 0 95px rgba(245, 158, 11, 0.6);
  }
}

/* Curseur spécial pour les champs email */
.custom-cursor.email-field {
  transform: scale(1.3);
  background: linear-gradient(135deg, #06b6d4, #8a4cff);
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

/* ================================
   SMOOTH SCROLL GLOBAL
   ================================ */

/* Désactiver le smooth scroll CSS natif pour utiliser le JavaScript personnalisé */
/* Supprimé - conflit avec style.css */

/* Optimisation des performances de scroll */
* {
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scroll sur iOS */
}

/* ================================
   LECTEUR VIDÉO FULLSCREEN
   ================================ */

/* Lecteur vidéo principal */
.video-player {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-player.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.video-player-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  outline: none;
}

/* Contrôles personnalisés */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(10px);
}

.video-player:hover .video-controls {
  transform: translateY(0);
}

/* Barre de progression */
.progress-container {
  margin-bottom: 15px;
}

.progress-bar {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  cursor: pointer;
}

.progress-loaded {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
}

.progress-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 3px;
  width: 0%;
  transition: width 0.1s ease;
  box-shadow: 0 0 10px rgba(138, 76, 255, 0.5);
}

.progress-handle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

/* Barre de contrôles */
.controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.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);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  box-shadow: 0 4px 16px rgba(138, 76, 255, 0.3);
}

/* Slider de volume */
.volume-slider {
  display: flex;
  align-items: center;
  gap: 10px;
}

.volume-slider input[type="range"] {
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.volume-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(138, 76, 255, 0.4);
}

.volume-slider input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(138, 76, 255, 0.4);
}

/* Affichage du temps */
.time-display {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* Bouton de vitesse */
.speed-btn {
  font-size: 14px;
  font-weight: 600;
  min-width: 35px;
}

/* Bouton de fermeture */
.close-btn {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.3);
}

.close-btn:hover {
  background: rgba(255, 0, 0, 0.4);
  border-color: rgba(255, 0, 0, 0.5);
  box-shadow: 0 4px 16px rgba(255, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .video-controls {
    padding: 15px;
  }
  
  .controls-bar {
    gap: 10px;
  }
  
  .controls-left,
  .controls-right {
    gap: 10px;
  }
  
  .control-btn {
    font-size: 16px;
    min-width: 35px;
    height: 35px;
    padding: 6px;
  }
  
  /* 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;
  }
  
  .volume-slider input[type="range"] {
    width: 60px;
  }
  
  .time-display {
    font-size: 12px;
  }
}

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

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

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

/* Bouton play/pause central */
.video-overlay .play-pause-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  z-index: 11;
  box-shadow: 0 8px 25px rgba(138, 76, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

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

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

/* Bouton fullscreen en haut à droite */
.video-fullscreen-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  z-index: 11;
  opacity: 0;
  transform: translateY(-10px);
}

.video-showcase-frame:hover .video-fullscreen-btn {
  opacity: 1;
  transform: translateY(0);
}

.video-fullscreen-btn:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(138, 76, 255, 0.4);
}

/* Container vidéo showcase */
.video-showcase-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 16/9;
  margin: 0 auto;
  border-radius: 25px;
  overflow: hidden;
  /* Background transparent - Force la transparence */
  background: transparent !important;
  background-color: transparent !important;
  /* Ombrage sans violet */
  box-shadow: 
    0 25px 80px rgba(0, 0, 0, 0.4);
  /* Effet 3D moderne */
  transform: perspective(1200px) rotateX(3deg) rotateY(-1deg);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Bordure supprimée */
  border: none;
}

/* Animation 3D au hover */
.video-showcase-container:hover {
  transform: perspective(1200px) rotateX(1deg) rotateY(-0.5deg) scale(1.02);
  box-shadow: 
    0 35px 100px rgba(0, 0, 0, 0.5);
  border: none;
}

.video-showcase-container:hover .video-showcase-frame {
  transform: perspective(1200px) rotateX(0.5deg) rotateY(-0.25deg) scale(1.01);
}

.video-showcase-container:hover .hero-showcase-video {
  transform: perspective(1200px) rotateX(-0.5deg) rotateY(0.25deg) scale(1.05);
  filter: brightness(1.1) contrast(1.15) saturate(1.2);
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.video-showcase-frame {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Background transparent - Force la transparence */
  background: transparent !important;
  background-color: transparent !important;
  /* Effet 3D cohérent avec le conteneur */
  transform: perspective(1200px) rotateX(1deg) rotateY(-0.5deg);
  transition: transform 0.3s ease;
}

.hero-showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
  /* Effet 3D moderne et fluide */
  transform: perspective(1200px) rotateX(-1deg) rotateY(0.5deg) scale(1.02);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Amélioration de la qualité vidéo */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  /* Effet de profondeur */
  filter: brightness(1.05) contrast(1.1) saturate(1.1);
  /* Ombrage interne pour plus de profondeur */
  box-shadow: 
    inset 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Effet de brillance amélioré */
.video-shine-effect {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    rgba(138, 76, 255, 0.2), 
    rgba(255, 255, 255, 0.1), 
    transparent
  );
  animation: shine 4s ease-in-out infinite;
  pointer-events: none;
  border-radius: 25px;
  z-index: 1;
}

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

/* ================================
   AUXO PRODUCTION - DESIGN AMÉLIORÉ
   Backgrounds améliorés + sections "Qui sommes-nous", "Book", "Équipe", "Contact"
=============================== */

/* Variables globales */
:root {
  --primary-color: #8a4cff;
  --secondary-color: #ff8aff;
  --accent-color: #4aa8ff;
  --background-dark: #0a0a0f;
  --background-medium: #1a1a2e;
  --background-light: #16213e;
  --text-primary: #e0e0e0;
  --text-secondary: #cfc3ff;
  --text-muted: #a0a0a0;
  --font-primary: 'Space Grotesk', sans-serif;
  --font-secondary: 'Inter', sans-serif;
  --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  --gradient-secondary: linear-gradient(135deg, var(--accent-color), var(--primary-color));
  --gradient-tertiary: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.2);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px rgba(138, 76, 255, 0.4), 0 0 50px rgba(255, 138, 255, 0.2);
  --shadow-glow-blue: 0 0 25px rgba(74, 168, 255, 0.4), 0 0 50px rgba(74, 168, 255, 0.2);
  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Supprimé - conflit avec style.css */
}

/* ================================
   NAVIGATION PRINCIPALE
=============================== */
.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(138, 76, 255, 0.2);
  padding: 15px 0;
  transition: all 0.3s ease;
  /* États par défaut */
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* ================================
   FORCER LA VISIBILITÉ DES ÉLÉMENTS PRINCIPAUX
=============================== */
.hero-redesigned,
.about-section,
.book-section,
.team-section,
.application-section,
.contact-section,
.site-footer {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  display: block !important;
}

/* Forcer la visibilité des éléments du hero */
.hero-container,
.hero-text-section,
.hero-visual-section,
.hero-title,
.hero-subtitle,
.hero-buttons,
.hero-stats {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Forcer la visibilité des sections */
.section-header,
.section-title,
.section-subtitle {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Navigation mobile optimisée */
@media (max-width: 768px) {
  .main-navigation {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    top: -9999px !important;
  }
  
  /* Menu burger fixe en haut à droite */
  .mobile-menu-toggle {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
    width: 48px;
    height: 48px;
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(138, 76, 255, 0.4);
    border-radius: 12px;
    backdrop-filter: blur(20px);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-menu-toggle:hover {
    background: rgba(138, 76, 255, 0.2);
    border-color: rgba(138, 76, 255, 0.5);
    transform: scale(1.05);
  }
  
  /* Icône hamburger */
  .hamburger {
    width: 24px;
    height: 18px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s ease-in-out;
  }
  
  .hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.3s ease-in-out;
  }
  
  .hamburger span:nth-child(1) { top: 3px; }
  .hamburger span:nth-child(2) { top: 8px; }
  .hamburger span:nth-child(3) { top: 13px; }
  
  /* Animation du hamburger */
  .hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }
  
  .hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
  }
  
  /* Menu mobile */
  .mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    border-left: 1px solid rgba(138, 76, 255, 0.2);
    z-index: 1000;
    transition: right 0.3s ease;
    padding: 80px 30px 30px;
    overflow-y: auto;
  }
  
  .mobile-menu.active {
    right: 0;
  }
  
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .mobile-menu li {
    margin-bottom: 20px;
  }
  
  .mobile-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
  }
  
  .mobile-menu a:hover {
    background: rgba(138, 76, 255, 0.15);
    border-color: rgba(138, 76, 255, 0.3);
    color: #8a4cff;
  }
  
  .mobile-menu .nav-icon {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
  }
  
  /* Style spécial pour le lien Portail dans la navbar mobile */
  .mobile-menu li:first-child a {
    background: linear-gradient(135deg, rgba(138, 76, 255, 0.2), rgba(255, 138, 255, 0.15));
    border: 2px solid rgba(138, 76, 255, 0.4);
    font-size: 1.3rem;
    font-weight: 700;
    padding: 20px 25px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
  }
  
  .mobile-menu li:first-child a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
  }
  
  .mobile-menu li:first-child a:hover::before {
    left: 100%;
  }
  
  .mobile-menu li:first-child a:hover {
    background: linear-gradient(135deg, rgba(138, 76, 255, 0.3), rgba(255, 138, 255, 0.25));
    border-color: rgba(138, 76, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 76, 255, 0.3);
  }
  
  .mobile-menu li:first-child .nav-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #8a4cff, #ff8aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .mobile-menu li:first-child .nav-text {
    background: linear-gradient(135deg, #8a4cff, #ff8aff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
  }
  
  /* Styles pour la section active dans la navbar mobile */
  .mobile-menu li a.active {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #8a4cff !important;
  }
  
  .mobile-menu li a.active .nav-icon {
    color: #8a4cff !important;
  }
  
  .mobile-menu li a.active .nav-text {
    color: #8a4cff !important;
    font-weight: 700 !important;
  }
  
  .mobile-menu li a.active:hover {
    background: transparent !important;
    border: 1px solid transparent !important;
    color: #8a4cff !important;
  }
  
  /* Overlay */
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

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

/* Masquer le menu burger sur desktop */
@media (min-width: 769px) {
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .mobile-menu {
    display: none !important;
  }
}

.nav-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-shrink: 0; /* Empêcher la compression du logo */
}

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

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: -2px;
}

.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  flex-shrink: 0; /* Empêcher la compression du menu */
  margin-left: auto; /* S'assurer que le menu est à droite */
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 15px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 20px;
  transition: var(--transition-smooth);
  position: relative;
  background: rgba(138, 76, 255, 0.05);
  border: 1px solid rgba(138, 76, 255, 0.2);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.nav-link:hover,
.nav-link.active {
  color: #8a4cff;
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-3px) scale(1.05);
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 0;
}

.nav-icon {
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.nav-text {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ================================
   SECTIONS COMMUNES
=============================== */
section {
  position: relative;
  min-height: auto; /* Supprimer min-height pour éviter l'écart */
  padding: 120px 20px;
  overflow: hidden;
}

.section-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.1;
  pointer-events: none;
}

.background-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.floating-element {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.4;
  animation: floatElement 20s ease-in-out infinite; /* Plus lent */
  filter: drop-shadow(0 0 8px var(--primary-color)); /* Réduire l'effet */
  z-index: 5;
  pointer-events: none;
  will-change: transform; /* Optimisation GPU */
  transform: translateZ(0); /* Force l'accélération GPU */
}

.floating-element.element-1 { top: 15%; left: 10%; animation-delay: 0s; }
.floating-element.element-2 { top: 70%; left: 85%; animation-delay: 2s; }
.floating-element.element-3 { top: 80%; left: 25%; animation-delay: 4s; }
.floating-element.element-4 { top: 30%; left: 75%; animation-delay: 6s; }
.floating-element.element-5 { top: 60%; left: 50%; animation-delay: 8s; }

@keyframes floatElement {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); opacity: 0.2; }
  50% { transform: translateY(-15px) rotate(180deg) scale(1.05); opacity: 0.4; }
}

.section-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  z-index: 15;
}

.section-badge {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
}

.badge-text {
  background: var(--gradient-primary);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(138, 76, 255, 0.4);
}

.badge-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 30px;
  filter: blur(20px);
  opacity: 0.6;
  z-index: 1;
  animation: pulseGlow 6s ease-in-out infinite; /* Plus lent */
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 50px; /* Augmenté de 30px à 50px */
}

.title-word {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: titleReveal 1.5s ease-out;
}

.title-word:nth-child(1) { animation-delay: 0.2s; }
.title-word:nth-child(2) { animation-delay: 0.4s; }

@keyframes titleReveal {
  0% { opacity: 0; transform: translateY(50px) rotateX(90deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 20px auto 0; /* Ajouté margin-top: 20px */
  line-height: 1.6;
  position: relative;
  z-index: 10;
}

/* ================================
   SECTION QUI SOMMES-NOUS - BACKGROUND CRÉATIF
=============================== */
.about-section {
  background: 
    /* Gradient simplifié pour les performances */
    linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%),
    /* Effets de lumière simplifiés */
    radial-gradient(circle at 30% 20%, rgba(138, 76, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 138, 255, 0.1) 0%, transparent 50%);
  background-size: 100% 100%, 60% 60%, 60% 60%;
  animation: aboutBackgroundCreative 40s ease-in-out infinite; /* Plus lent pour les performances */
  position: relative;
  will-change: background-position; /* Optimisation GPU */
}

/* Effet de lueur animée */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 70%, rgba(138, 76, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(255, 138, 255, 0.12) 0%, transparent 60%);
  animation: aboutGlow 25s ease-in-out infinite alternate; /* Plus lent */
  pointer-events: none;
}

@keyframes aboutBackgroundCreative {
  0%, 100% { 
    background-position: 0% 0%, 20% 20%, 80% 80%; 
  }
  50% { 
    background-position: 50% 50%, 40% 30%, 60% 70%; 
  }
}

@keyframes aboutGlow {
  0% { 
    opacity: 0.6;
    transform: scale(1);
  }
  100% { 
    opacity: 1;
    transform: scale(1.1);
  }
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text {
  position: relative;
  z-index: 10;
}

.text-block {
  position: relative;
  padding: 30px;
  background: 
    linear-gradient(145deg, rgba(138, 76, 255, 0.08) 0%, rgba(255, 138, 255, 0.05) 100%);
  border: 1px solid rgba(138, 76, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  margin-bottom: 30px;
}

.text-block:hover {
  transform: translateY(-3px); /* Réduire l'effet */
  box-shadow: 0 15px 30px rgba(138, 76, 255, 0.15); /* Réduire l'ombre */
  border-color: rgba(138, 76, 255, 0.3);
}

.text-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 10px var(--primary-color));
}

.text-block h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.text-block p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 40px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(138, 76, 255, 0.05);
  border-radius: 10px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-smooth);
}

.feature-item:hover {
  background: rgba(138, 76, 255, 0.1);
  transform: translateX(10px);
}

.feature-indicator {
  width: 12px;
  height: 12px;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(138, 76, 255, 0.6);
  animation: pulseIndicator 2s ease-in-out infinite;
}

@keyframes pulseIndicator {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.feature-item span {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  z-index: 10;
}

/* ================================
   NOUVEAU LAYOUT SECTION ABOUT
=============================== */

/* Section Mission & Vision */
.about-mission {
  margin: 60px 0;
}

.mission-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.mission-text {
  background: rgba(138, 76, 255, 0.05);
  border: 1px solid rgba(138, 76, 255, 0.2);
  border-radius: 25px;
  padding: 40px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.mission-text::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(138, 76, 255, 0.1) 0%, rgba(255, 138, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.mission-text:hover {
  background: rgba(138, 76, 255, 0.1);
  border-color: rgba(138, 76, 255, 0.4);
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(138, 76, 255, 0.2);
}

.mission-text:hover::before {
  opacity: 1;
}

.mission-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.mission-text h3 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.mission-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Section Services */
.about-services {
  margin: 80px 0;
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.services-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  background: rgba(138, 76, 255, 0.05);
  border: 1px solid rgba(138, 76, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Effets hover désactivés pour les performances */

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--gradient-primary);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(138, 76, 255, 0.3);
  position: relative;
  z-index: 2;
}

.service-icon i {
  font-size: 1.8rem;
  color: white;
}

.service-item h4 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
}

.service-item p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Section Valeurs */
.about-values {
  margin: 80px 0 0 0;
}

.values-header {
  text-align: center;
  margin-bottom: 60px;
}

.values-header h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.values-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin: 0;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  background: rgba(138, 76, 255, 0.05);
  border: 1px solid rgba(138, 76, 255, 0.2);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Effets hover désactivés pour les performances */

/* Désactiver toutes les animations dans la section about pour éliminer le lag */
.about-section * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.about-section .service-item,
.about-section .value-card {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.about-section .service-item:hover,
.about-section .value-card:hover {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

/* ================================
   ANIMATIONS SIMPLES SECTION ÉQUIPE
   Effets d'apparition au scroll uniquement
=============================== */

/* Animations d'équipe supprimées pour éviter les conflits avec team-revolutionary.css */

/* Cacher la navbar sur la section hero */
.hero-redesigned ~ .main-navigation,
#hero ~ .main-navigation {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.value-icon {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.icon-bg {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(138, 76, 255, 0.3);
}

.icon-bg i {
  font-size: 2rem;
  color: white;
}

.value-content {
  position: relative;
  z-index: 2;
}

.value-content h4 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.value-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* FORCER L'AFFICHAGE DES ÉLÉMENTS - SOLUTION ANTI-DISPARITION */
.mission-text,
.service-item,
.value-card {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
  display: block !important;
}

/* PROTECTION SPÉCIFIQUE POUR LES ICÔNES */
.service-icon,
.service-icon i,
.value-icon,
.value-icon .icon-bg,
.value-icon .icon-bg i,
.mission-icon {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
  display: flex !important;
  position: relative !important;
  z-index: 10 !important;
}

/* Protection pour les conteneurs d'icônes */
.service-icon,
.value-icon .icon-bg {
  background: var(--gradient-primary) !important;
  border-radius: 20px !important;
  width: 70px !important;
  height: 70px !important;
  margin: 0 auto 20px !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 10px 30px rgba(138, 76, 255, 0.3) !important;
}

.value-icon .icon-bg {
  width: 80px !important;
  height: 80px !important;
}

/* Protection pour les icônes FontAwesome */
.service-icon i,
.value-icon .icon-bg i {
  font-size: 1.8rem !important;
  color: white !important;
  display: inline-block !important;
}

.value-icon .icon-bg i {
  font-size: 2rem !important;
}

/* Responsive pour le nouveau layout */
@media (max-width: 768px) {
  .mission-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .mission-text {
    padding: 30px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .services-header h3,
  .values-header h3 {
    font-size: 1.8rem;
  }
}

/* ================================
   SECTION BOOK - BACKGROUND CRÉATIF "NOS CRÉATIONS"
=============================== */
.book-section {
  background: 
    /* Gradient principal simplifié */
    linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0a0a0f 100%),
    /* Effet de projecteur central simplifié */
    radial-gradient(ellipse 600px 800px at 50% 50%, rgba(255, 138, 255, 0.15) 0%, transparent 70%),
    /* Effets de lumière latéraux simplifiés */
    radial-gradient(circle at 15% 25%, rgba(255, 138, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 85% 75%, rgba(74, 168, 255, 0.08) 0%, transparent 55%);
  background-size: 100% 100%, 100% 100%, 50% 50%, 50% 50%;
  animation: bookBackgroundCreative 40s ease-in-out infinite;
  position: relative;
}

/* Canvas 3D pour la section book */
.book-section .section-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ================================
   ANIMATIONS D'APPARITION BOOK
=============================== */

/* État initial des éléments */
.book-section .section-header {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-item {
  opacity: 0;
  transform: translateY(60px) scale(0.9);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* États animés */
.book-section .section-header.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.book-item.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Délais d'animation pour chaque item */
.book-item-1 {
  transition-delay: 0.1s;
}

.book-item-2 {
  transition-delay: 0.3s;
}

.book-item-3 {
  transition-delay: 0.5s;
}

.book-item-4 {
  transition-delay: 0.7s;
}

/* Animation au hover des book-items */
.book-item:hover {
  transform: translateY(-10px) scale(1.02);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.book-item:hover .book-media {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

.book-item:hover .play-btn {
  transform: scale(1.2);
  transition: transform 0.3s ease;
}

/* Animation des tags */
.book-item.animate-in .tag {
  animation: tagSlideIn 0.6s ease-out forwards;
  opacity: 0;
  transform: translateX(-20px);
}

.book-item.animate-in .tag:nth-child(1) {
  animation-delay: 0.2s;
}

.book-item.animate-in .tag:nth-child(2) {
  animation-delay: 0.4s;
}

.book-item.animate-in .tag:nth-child(3) {
  animation-delay: 0.6s;
}

@keyframes tagSlideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Effet de lueur de projecteur simplifié */
.book-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 400px 600px at 50% 40%, rgba(255, 138, 255, 0.1) 0%, transparent 60%);
  animation: bookProjectorGlow 25s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 1;
}

/* Effet de scan de film supprimé pour éviter les lignes bizarres */

@keyframes bookBackgroundCreative {
  0%, 100% { 
    background-position: 0% 0%, 0% 0%, 15% 25%, 85% 75%; 
  }
  50% { 
    background-position: 50% 50%, 50% 50%, 45% 45%, 65% 55%; 
  }
}

@keyframes bookProjectorGlow {
  0% { 
    opacity: 0.7;
    transform: scale(1) rotate(0deg);
  }
  50% { 
    opacity: 1;
    transform: scale(1.05) rotate(1deg);
  }
  100% { 
    opacity: 0.8;
    transform: scale(0.95) rotate(-1deg);
  }
}

/* Animation bookFilmScan supprimée */

.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
  z-index: 15;
}

.book-item {
  position: relative;
  background: 
    linear-gradient(145deg, rgba(255, 138, 255, 0.08) 0%, rgba(74, 168, 255, 0.05) 100%);
  border: 1px solid rgba(255, 138, 255, 0.3);
  border-radius: 25px;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.book-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(255, 138, 255, 0.3),
    0 0 50px rgba(255, 138, 255, 0.2);
  border-color: rgba(255, 138, 255, 0.5);
}

.book-media {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
}

.book-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.book-item:hover .book-media video {
  transform: scale(1.1);
}

.media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.book-item:hover .media-overlay {
  opacity: 1;
}

.play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-blue);
}

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

.book-content {
  padding: 30px;
}

.book-category {
  color: var(--secondary-color);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.book-title {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 700;
}

.book-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.book-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255, 138, 255, 0.2);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 138, 255, 0.3);
}

.book-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: rgba(255, 138, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 138, 255, 0.2);
}

.book-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Styles d'équipe supprimés pour éviter les conflits avec team-revolutionary.css */

/* Effet de lueur d'équipe */
.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 500px 400px at 50% 50%, rgba(74, 168, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 30% 30%, rgba(138, 76, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(255, 138, 255, 0.1) 0%, transparent 45%);
  animation: teamGlow 30s ease-in-out infinite alternate; /* Plus lent */
  pointer-events: none;
  z-index: 1;
  will-change: transform; /* Optimisation GPU */
}

/* Effet de connexions réseau simplifié */
.team-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(74, 168, 255, 0.03) 0%, transparent 50%);
  animation: teamNetwork 40s ease-in-out infinite; /* Plus lent et simplifié */
  pointer-events: none;
  z-index: 2;
}

@keyframes teamBackgroundCreative {
  0%, 100% { 
    background-position: 0% 0%, 20% 20%, 80% 80%; 
  }
  50% { 
    background-position: 50% 50%, 40% 30%, 60% 70%; 
  }
}

@keyframes teamGlow {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes teamNetwork {
  0%, 100% { 
    opacity: 0.5;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.01);
  }
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
  margin-top: 60px;
  position: relative;
  z-index: 15;
}

.team-member {
  position: relative;
  background: 
    linear-gradient(145deg, rgba(74, 168, 255, 0.08) 0%, rgba(138, 76, 255, 0.05) 100%);
  border: 1px solid rgba(74, 168, 255, 0.3);
  border-radius: 25px;
  backdrop-filter: blur(5px); /* Réduire le blur */
  transition: var(--transition-smooth);
  overflow: hidden;
  min-height: 500px;
}

.team-member:hover {
  transform: translateY(-5px) scale(1.01); /* Réduire les effets */
  box-shadow: 
    0 15px 30px rgba(74, 168, 255, 0.2), /* Réduire l'ombre */
    0 0 25px rgba(74, 168, 255, 0.15);
  border-color: rgba(74, 168, 255, 0.4);
}

.member-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 25px 25px 0 0;
}

.member-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.team-member:hover .member-image img {
  transform: scale(1.1);
}

.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-smooth);
}

.team-member:hover .member-overlay {
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition-smooth);
  font-size: 1.2rem;
}

.social-link:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-glow-blue);
}

.member-info {
  padding: 30px;
  position: relative;
  z-index: 2;
}

.member-number {
  position: absolute;
  top: -15px;
  right: 30px;
  font-size: 3rem;
  font-weight: 900;
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.3;
}

.member-name {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  font-weight: 700;
  position: relative;
  z-index: 10;
}

.member-role {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.member-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
  position: relative;
  z-index: 10;
}

.member-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.skill-tag {
  background: var(--gradient-secondary);
  color: white;
  padding: 5px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-cta {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: rgba(74, 168, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(74, 168, 255, 0.2);
}

.team-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ================================
   SECTION CONTACT - BACKGROUND CRÉATIF "CONTACT" V2
=============================== */
.contact-section {
  background: 
    /* Gradient simplifié pour les performances */
    linear-gradient(135deg, #1a0a2e 0%, #0a0a0f 50%, #16213e 100%),
    /* Effets de lumière simplifiés */
    radial-gradient(circle at 30% 30%, rgba(255, 138, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(138, 76, 255, 0.1) 0%, transparent 50%);
  background-size: 100% 100%, 60% 60%, 60% 60%;
  animation: contactBackgroundV2 60s ease-in-out infinite; /* Plus lent */
  position: relative;
  will-change: background-position; /* Optimisation GPU */
}

/* Effet de pulsation accueillante */
.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(ellipse 700px 600px at 50% 50%, rgba(255, 138, 255, 0.15) 0%, transparent 70%),
    radial-gradient(circle at 50% 50%, rgba(138, 76, 255, 0.12) 0%, transparent 60%);
  animation: contactPulse 35s ease-in-out infinite alternate; /* Plus lent */
  pointer-events: none;
  z-index: 1;
  will-change: transform; /* Optimisation GPU */
}

/* Effet de vagues simplifié */
.contact-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 50%, rgba(138, 76, 255, 0.03) 0%, transparent 50%);
  animation: contactWaves 50s ease-in-out infinite; /* Plus lent et simplifié */
  pointer-events: none;
  z-index: 2;
  will-change: transform; /* Optimisation GPU */
}

@keyframes contactBackgroundV2 {
  0%, 100% { 
    background-position: 0% 0%, 30% 30%, 70% 70%; 
  }
  50% { 
    background-position: 50% 50%, 40% 40%, 60% 60%; 
  }
}

@keyframes contactPulse {
  0%, 100% { 
    opacity: 0.6;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.02);
  }
}

@keyframes contactWaves {
  0%, 100% { 
    opacity: 0.5;
    transform: scale(1);
  }
  50% { 
    opacity: 0.8;
    transform: scale(1.01);
  }
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 60px;
  position: relative;
  z-index: 15;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 25px;
  padding: 25px;
  background: rgba(138, 76, 255, 0.05);
  border-radius: 20px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition-smooth);
  /* Protection contre les transform négatifs - mais permettre le hover */
  transform: translateY(0) scale(1);
  position: relative;
  z-index: 5;
}

.contact-item:hover {
  background: rgba(138, 76, 255, 0.1);
  transform: translateX(10px) !important;
}

/* Priorité absolue pour le hover sur les éléments de contact */
.contact-item.contact-reveal:hover,
.contact-item.stagger-delay-1:hover,
.contact-item.stagger-delay-2:hover,
.contact-item.stagger-delay-3:hover {
  transform: translateX(10px) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(138, 76, 255, 0.4);
  /* Forcer la position pour éviter les translateY négatifs */
  transform: translateY(0) !important;
  position: relative;
  z-index: 10;
}

.contact-icon i {
  font-size: 1.2rem;
  color: white;
}

.contact-details h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact-details p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.contact-form {
  background: rgba(138, 76, 255, 0.05);
  padding: 40px;
  border-radius: 25px;
  border: 1px solid rgba(138, 76, 255, 0.3);
  backdrop-filter: blur(8px);
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 18px 20px;
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(138, 76, 255, 0.3);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 1rem;
  transition: var(--transition-smooth);
  font-family: var(--font-secondary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(138, 76, 255, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* ================================
   BOUTONS PRIMAIRES
=============================== */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 35px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(138, 76, 255, 0.3);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(138, 76, 255, 0.5);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 50px;
  filter: blur(25px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  opacity: 0.7;
}

/* ================================
   NAVIGATION - BOUTON PORTAIL
=============================== */
.nav-portal {
  position: relative;
  background: var(--gradient-primary);
  border-radius: 25px;
  padding: 12px 20px;
  margin-left: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(138, 76, 255, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-portal:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px rgba(138, 76, 255, 0.5);
}

.nav-portal .nav-icon {
  color: white;
  font-size: 1.1rem;
  margin-right: 8px;
}

.nav-portal .nav-text {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portal-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 25px;
  filter: blur(15px);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.nav-portal:hover .portal-glow {
  opacity: 0.6;
}

/* Responsive pour le bouton portail */
@media (max-width: 768px) {
  .nav-portal {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }
}

/* ================================
   SECTION APPLICATION
=============================== */
.application-section {
  min-height: auto;
  background:
    /* Gradient principal */
    linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0a0a0f 100%),
    /* Effet de projecteur central */
    radial-gradient(ellipse 800px 1000px at 50% 50%, rgba(138, 76, 255, 0.12) 0%, transparent 70%),
    /* Effets de lumière latéraux */
    radial-gradient(circle at 20% 20%, rgba(255, 138, 255, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 60%);
  background-size: 100% 100%, 100% 100%, 50% 50%, 50% 50%;
  animation: applicationBackgroundShift 35s ease-in-out infinite;
  position: relative;
  overflow: hidden;
  padding: 120px 20px;
}

@keyframes applicationBackgroundShift {
  0%, 100% {
    background-position: 0% 0%, 0% 0%, 20% 20%, 80% 80%;
  }
  33% {
    background-position: 50% 50%, 30% 30%, 40% 40%, 60% 60%;
  }
  66% {
    background-position: 100% 100%, 70% 70%, 60% 60%, 40% 40%;
  }
}

.application-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.application-header {
  text-align: center;
  margin-bottom: 80px;
}

.application-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 80px;
  align-items: center;
  min-height: 600px;
  height: auto;
}

.application-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  height: 100%;
}

.application-features {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px;
  background: rgba(138, 76, 255, 0.05);
  border: 1px solid rgba(138, 76, 255, 0.2);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(10px);
}

.feature-item:hover {
  background: rgba(138, 76, 255, 0.1);
  border-color: rgba(138, 76, 255, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(138, 76, 255, 0.2);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: 15px;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(138, 76, 255, 0.3);
}

.feature-icon i {
  font-size: 1.5rem;
  color: white;
}

.feature-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

.application-cta {
  text-align: center;
}

.application-video {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.video-frame {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  min-height: 350px;
  max-height: 450px;
  background: linear-gradient(135deg, rgba(138, 76, 255, 0.1) 0%, rgba(255, 138, 255, 0.05) 100%);
  border: 2px solid rgba(138, 76, 255, 0.3);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder {
  text-align: center;
  color: var(--text-secondary);
}

.video-placeholder i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  display: block;
}

.video-placeholder p {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
}

.video-glow {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: var(--gradient-primary);
  border-radius: 35px;
  filter: blur(30px);
  opacity: 0.3;
  z-index: -1;
  animation: videoGlow 4s ease-in-out infinite alternate;
}

@keyframes videoGlow {
  0% {
    opacity: 0.2;
    transform: scale(1);
  }
  100% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

/* Responsive Application Section */
@media (max-width: 1024px) {
  .application-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 60px;
    text-align: center;
    align-items: start;
  }
  
  .application-text {
    align-items: center;
    justify-content: center;
    height: auto;
  }
  
  .application-video {
    min-height: 400px;
    align-items: center;
    height: auto;
  }
  
  .feature-item {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .application-section {
    padding: 80px 20px;
  }
  
  .application-header {
    margin-bottom: 60px;
  }
  
  .application-content {
    gap: 40px;
    grid-template-rows: auto auto;
    align-items: start;
  }
  
  .application-text {
    justify-content: center;
    height: auto;
  }
  
  .application-video {
    min-height: 350px;
    align-items: center;
    height: auto;
  }
  
  .feature-item {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .video-frame {
    min-height: 250px;
    max-height: 350px;
  }
  
  .video-container {
    max-width: 100%;
  }
}

/* ================================
   FOOTER
=============================== */
.site-footer {
  background: #0a0a0f;
  color: var(--text-primary);
  padding: 40px 20px 20px; /* Augmenter le padding-top */
  border-top: 1px solid rgba(138, 76, 255, 0.2);
  position: relative;
  z-index: 100;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 101;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 40px;
  align-items: start;
}

/* Brand */
.footer-brand {
  text-align: left;
  margin-left: -20px;
  margin-right: auto;
  width: fit-content;
  margin-bottom: 30px;
}

.footer-brand h3 {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Réseaux sociaux */
.footer-social {
  text-align: center;
}

.footer-social h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-contact {
  text-align: center;
}

.footer-contact h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-navigation {
  text-align: center;
}

.footer-navigation h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.social-individual {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  z-index: 2;
  align-items: stretch;
  width: 100%;
}

.contact-encart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(138, 76, 255, 0.08);
  border: 1px solid rgba(138, 76, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(15px);
  margin-bottom: 12px;
}

.contact-encart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.contact-encart:hover::before {
  opacity: 0.15;
}

.contact-encart:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 25px rgba(255, 107, 107, 0.3);
  border-color: rgba(255, 107, 107, 0.5);
}

.contact-encart:hover .encart-icon {
  background: rgba(255, 107, 107, 0.4);
  transform: scale(1.1);
}

.contact-encart:hover .encart-icon i {
  color: white;
  transform: scale(1.1);
}

.contact-encart:hover .encart-content h5 {
  color: white;
}

.contact-encart:hover .encart-content p {
  color: rgba(255, 255, 255, 0.9);
}

.contact-encart:hover .encart-arrow {
  background: rgba(255, 107, 107, 0.4);
  transform: translateX(4px);
}

.contact-encart:hover .encart-arrow i {
  color: white;
  transform: translateX(2px);
}

.social-encart {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: rgba(138, 76, 255, 0.08);
  border: 1px solid rgba(138, 76, 255, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  backdrop-filter: blur(15px);
  min-height: 40px;
  /* Largeur uniforme pour tous les éléments sociaux */
  width: 100%;
  min-width: 200px;
  max-width: 280px;
  flex: 1 1 auto;
}

.social-encart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.social-encart:hover::before {
  opacity: 0.15;
}

.encart-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138, 76, 255, 0.2);
  border-radius: 8px;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.encart-icon i {
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: all 0.4s ease;
}

.encart-content {
  flex: 1;
  position: relative;
  z-index: 2;
}

.encart-content h5 {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  transition: all 0.4s ease;
}

.encart-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.9;
  transition: all 0.4s ease;
}

.encart-arrow {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138, 76, 255, 0.2);
  border-radius: 10px;
  position: relative;
  z-index: 2;
  transition: all 0.4s ease;
  flex-shrink: 0;
}

.encart-arrow i {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.4s ease;
}

/* Effets hover spécifiques */
.social-encart:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(138, 76, 255, 0.3);
  border-color: rgba(138, 76, 255, 0.5);
}

.social-encart:hover .encart-icon {
  background: rgba(138, 76, 255, 0.4);
  transform: scale(1.1);
}

.social-encart:hover .encart-icon i {
  color: white;
  transform: scale(1.1);
}

.social-encart:hover .encart-content h5 {
  color: white;
}

.social-encart:hover .encart-content p {
  color: rgba(255, 255, 255, 0.9);
}

.social-encart:hover .encart-arrow {
  background: rgba(138, 76, 255, 0.4);
  transform: translateX(5px);
}

.social-encart:hover .encart-arrow i {
  color: white;
  transform: translateX(3px);
}

/* Couleurs spécifiques par encart */
.social-encart.linkedin:hover::before {
  background: linear-gradient(135deg, #0077b5, #005885);
  opacity: 0.2;
}

.social-encart.instagram:hover::before {
  background: linear-gradient(135deg, #e4405f, #c13584, #833ab4);
  opacity: 0.2;
}

.social-encart.email:hover::before {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  opacity: 0.2;
}

/* Animation d'apparition */
.social-encart {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.social-encart:nth-child(1) { animation-delay: 0.1s; }
.social-encart:nth-child(2) { animation-delay: 0.2s; }
.social-encart:nth-child(3) { animation-delay: 0.3s; }

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

/* Newsletter dans la colonne contact */
.footer-newsletter h5 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.newsletter-form input {
  padding: 8px 12px;
  background: rgba(26, 26, 46, 0.8);
  border: 1px solid rgba(138, 76, 255, 0.3);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(138, 76, 255, 0.3);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form button {
  padding: 8px 16px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* Navigation des sections */
.footer-navigation {
  text-align: center;
}

.footer-navigation h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Section légale séparée */
.footer-legal-section {
  border-top: 1px solid rgba(138, 76, 255, 0.2);
  padding: 30px 0;
  margin-top: 20px;
}

.legal-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.legal-container h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.9rem;
  padding: 4px 8px;
  border-radius: 8px;
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.footer-nav a:hover {
  color: var(--primary-color);
  background: rgba(138, 76, 255, 0.1);
  transform: translateX(5px);
  border: 1px solid rgba(138, 76, 255, 0.2);
}

/* Mentions légales */
.footer-legal h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin: 0 auto;
  width: 100%;
}

.legal-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 15px;
  display: inline-block;
  cursor: pointer;
  position: relative;
  z-index: 10;
  background: rgba(138, 76, 255, 0.08);
  border: 1px solid rgba(138, 76, 255, 0.2);
}

.legal-nav a:hover {
  color: var(--primary-color);
  background: rgba(138, 76, 255, 0.15);
  transform: translateY(-2px);
  border: 1px solid rgba(138, 76, 255, 0.4);
  box-shadow: 0 5px 15px rgba(138, 76, 255, 0.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(138, 76, 255, 0.2);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 0px;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 0px;
    text-align: center;
  }
  
  .footer-brand h3 {
    font-size: 1.6rem;
  }
  
  .footer-brand p {
    font-size: 0.8rem;
  }
  
  .social-individual {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
  }
  
  .social-encart {
    flex: 1 1 auto;
    width: 100%;
    max-width: 280px;
    padding: 12px;
    min-height: 40px;
  }
  
  .contact-encart {
    padding: 15px;
    margin-bottom: 8px;
  }
  
  .encart-icon {
    width: 35px;
    height: 35px;
  }
  
  .encart-icon i {
    font-size: 1rem;
  }
  
  .encart-content h5 {
    font-size: 0.9rem;
  }
  
  .encart-content p {
    font-size: 0.75rem;
  }
  
  .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
  }
  
  .footer-nav a {
    padding: 6px 12px;
    background: rgba(138, 76, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(138, 76, 255, 0.2);
    font-size: 0.85rem;
  }
  
  .footer-legal-section {
    padding: 20px 0;
    margin-top: 15px;
  }
  
  .legal-nav {
    gap: 15px;
  }
  
  .legal-nav a {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Classes d'animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-delay-1 { transition-delay: 0.1s; }
.animate-delay-2 { transition-delay: 0.2s; }
.animate-delay-3 { transition-delay: 0.3s; }
.animate-delay-4 { transition-delay: 0.4s; }

/* ================================
   RESPONSIVE DESIGN
=============================== */
@media (max-width: 1024px) {
  .nav-menu {
    gap: 20px;
  }
  
  .nav-link {
    padding: 12px 16px;
  }
  
  .nav-text {
    font-size: 0.7rem;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 100px 15px;
  }
  
  .nav-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .nav-menu {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-link {
    padding: 10px 15px;
  }
  
  .nav-icon {
    font-size: 1rem;
  }
  
  .nav-text {
    font-size: 0.65rem;
  }
  
  .book-grid,
  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .floating-element {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    flex-direction: row;
    gap: 10px;
  }
  
  .contact-form {
    padding: 30px 20px;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .footer-social {
    justify-content: center;
  }
  
  .floating-element {
    display: none;
  }
}

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

/* Optimisation GPU simplifiée */
section {
  will-change: auto;
}

.floating-element {
  will-change: transform;
  transform: translateZ(0);
}

/* Réduction des animations sur mobile */
@media (max-width: 768px) {
  .about-section,
  .book-section,
  .team-section,
  .contact-section {
    animation: none;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%) !important;
  }
  
  .floating-element {
    display: none;
  }
  
  /* Réduire l'effet 3D sur mobile */
  .video-showcase-container {
    transform: perspective(1000px) rotateX(2deg) rotateY(-0.5deg);
    border-radius: 20px;
    box-shadow: 
      0 15px 50px rgba(0, 0, 0, 0.3);
    border: none;
  }
  
  .video-showcase-frame {
    transform: perspective(1000px) rotateX(0.5deg) rotateY(-0.25deg);
  }
  
  .hero-showcase-video {
    transform: perspective(1000px) rotateX(-0.5deg) rotateY(0.25deg) scale(1.01);
    border-radius: 20px;
    filter: brightness(1.03) contrast(1.05) saturate(1.05);
  }
  
  .video-showcase-container:hover {
    transform: perspective(1000px) rotateX(1deg) rotateY(-0.25deg) scale(1.01);
    box-shadow: 
      0 20px 60px rgba(0, 0, 0, 0.4);
    border: none;
  }
  
  .video-showcase-container:hover .video-showcase-frame {
    transform: perspective(1000px) rotateX(0.25deg) rotateY(-0.125deg) scale(1.005);
  }
  
  .video-showcase-container:hover .hero-showcase-video {
    transform: perspective(1000px) rotateX(-0.25deg) rotateY(0.125deg) scale(1.03);
    filter: brightness(1.08) contrast(1.1) saturate(1.1);
  }
  
  .section-canvas {
    display: none;
  }
  
  /* Désactiver les pseudo-éléments sur mobile */
  .about-section::before,
  .about-section::after,
  .book-section::before,
  .book-section::after,
  .team-section::before,
  .team-section::after,
  .contact-section::before,
  .contact-section::after {
    display: none;
  }
}

/* Désactivation des animations lourdes sur appareils faibles */
@media (max-width: 480px) {
  .about-section,
  .book-section,
  .team-section,
  .contact-section {
    animation: none;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%) !important;
  }
  
  .floating-element {
    opacity: 0.3;
  }
}

/* Optimisation pour appareils peu performants */
@supports not (backdrop-filter: blur(10px)) {
  .text-block,
  .stat-item,
  .book-item,
  .team-member,
  .contact-form {
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: none;
  }
}

/* Réduction des animations si l'utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .about-section,
  .book-section,
  .team-section,
  .contact-section {
    animation: none;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
  }
  
  .floating-element {
    animation: none;
    opacity: 0.3;
  }
}

/* Mode économie d'énergie */
@media (prefers-color-scheme: light) and (prefers-reduced-motion: reduce) {
  .about-section,
  .book-section,
  .team-section,
  .contact-section {
    background: #f0f0f0;
    color: #333;
  }
}

/* Protection contre les animations qui font disparaître les éléments */
.contact-item.animate-on-scroll,
.contact-icon.animate-on-scroll,
.contact-details.animate-on-scroll {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Protection pour les pages légales */
.legal-page,
.legal-page *,
.legal-content,
.legal-content *,
.legal-section,
.legal-section *,
.section-content,
.section-content * {
  opacity: 1 !important;
  visibility: visible !important;
  color: inherit !important;
  z-index: 10 !important;
}

.legal-page .legal-content {
  position: relative !important;
  z-index: 15 !important;
}

.legal-page .section-title {
  color: #8a4cff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.legal-page .section-content {
  color: #e0e0e8 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.legal-page .contact-info {
  background: rgba(138, 76, 255, 0.1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.legal-page .contact-item {
  color: #e0e0e8 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.legal-page .back-link {
  color: #8a4cff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.legal-page .highlight {
  color: #ff8aff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Amélioration de la lisibilité */
::selection {
  background: rgba(138, 76, 255, 0.3);
  color: var(--text-primary);
}

/* Focus visible pour l'accessibilité */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}
