/* CSS spécialisé pour Testimonials 3D - Chargé uniquement quand nécessaire */

/* Animations spécifiques aux témoignages */
@keyframes testimonial-float {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-10px) rotateX(2deg); }
}

@keyframes testimonial-shine {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Effets 3D pour testimonials */
.testimonials-3d-container {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.testimonial-card {
  transform-origin: center center;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  backface-visibility: hidden;
}

.testimonial-card:hover {
  transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Effet de brillance au hover */
.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent
  );
  transition: left 0.6s;
}

.testimonial-card:hover::before {
  left: 100%;
}

/* Optimisations mobile pour testimonials */
@media (max-width: 768px) {
  .testimonials-3d-container {
    perspective: 600px;
  }
  
  .testimonial-card:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  }
  
  .testimonial-card::before {
    display: none; /* Pas d'effet brillance sur mobile */
  }
}

/* Animation de chargement testimonials */
.testimonials-skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 119, 192, 0.1) 25%,
    rgba(0, 119, 192, 0.2) 50%,
    rgba(0, 119, 192, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: testimonials-loading 2s infinite;
}

@keyframes testimonials-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}