/* ============================================
   CAROUSEL TÉMOIGNAGES - Version propre
   ============================================ */

.testimonial-carousel {
  position: relative;
  /* Aligne la largeur du carousel avec la .container (titre) */
  width: min(1200px, 100%);
  max-width: 1200px;
  margin: 3.5rem auto;
  background: var(--card, #ffffff);
  border-radius: 24px;
  /* Padding augmenté pour plus d'air autour du texte */
  padding: 1rem 2.5rem;
  box-shadow: 0 10px 48px rgba(47, 114, 255, 0.12);
  overflow: hidden;
}

.testimonial-wrapper {
  position: relative;
  width: 100%;
  /* Plus d'espace vertical pour les témoignages */
  min-height: 250px;
}

.testimonial-item {
  position: absolute;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 0.45s ease;
  text-align: center;
  /* espace horizontal supplémentaire pour éviter que les boutons de navigation
     ne recouvrent le texte sur les petits écrans */
  padding: 1.5rem 3.5rem;
}

.testimonial-item.active {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.testimonial-item blockquote {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text, #0b1b2b);
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.testimonial-item cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--brand, #2f72ff);
  font-size: 1rem;
  margin-top: 1rem;
}

/* Boutons de navigation */
.testimonial-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ffffff;
  border: 2px solid var(--brand, #2f72ff);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: var(--brand, #2f72ff);
  font-size: 1.5rem;
  font-weight: bold;
}

.testimonial-nav:hover {
  background: var(--brand, #2f72ff);
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(47, 114, 255, 0.3);
}

.testimonial-nav.prev {
  left: 15px;
}

.testimonial-nav.next {
  right: 15px;
}

/* Dots de navigation */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 2.5rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9ca6b6;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background: var(--brand, #2f72ff);
  transform: scale(1.3);
}

.testimonial-dot:hover {
  background: var(--brand, #2f72ff);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
  .testimonial-carousel {
    padding: 2rem 1.5rem;
    margin: 2rem auto;
  }
  
  .testimonial-item {
    padding: 1.25rem 2rem;
  }

  .testimonial-item blockquote {
    font-size: 1.1rem;
  }
  
  .testimonial-nav {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
  
  .testimonial-nav.prev {
    left: 10px;
  }
  
  .testimonial-nav.next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .testimonial-carousel {
    padding: 1.5rem 1rem;
  }
  
  .testimonial-item {
    padding: 1rem 1rem;
  }

  .testimonial-item blockquote {
    font-size: 1rem;
  }
  
  .testimonial-nav {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}



