/* SECTION TÉMOIGNAGES */

.testimonials-section {
  padding-top: 200px;
  position: relative;
  overflow: visible;
  margin-top: -80px;
  z-index: 1;
}

/* FOND GRILLE SUBTIL */
.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 39px, var(--border-light) 39px, var(--border-light) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, var(--border-light) 39px, var(--border-light) 40px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.testimonials-container {
  position: relative;
  z-index: 1;
}

/* BADGE PILL */
.testimonials-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-white);
  border: 1px solid #e8e8e8;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-blue);
  margin: 0 auto 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonials-badge i {
  font-size: 18px;
}

/* HEADER CENTRÉ */
.testimonials-header {
  text-align: center;
  margin-bottom: 80px;
}

/* .testimonials-title - Now defined in styles/layouts/components-typography.css */


/* CAROUSEL CONTAINER */
.testimonials-carousel {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 0;
}

.testimonials-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  position: relative;
  min-height: 380px;
}

/* CARTES TESTIMONIAL */
.testimonial-card {
  background: var(--bg-white);
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  padding: 44px 40px;
  width: 100%;
  max-width: 520px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* CARTE CENTRALE (ACTIVE) */
.testimonial-card.active {
  opacity: 1;
  filter: none;
  z-index: 3;
  transform: translateX(-50%) scale(1);
  cursor: grab;
}

/* CARTES CÔTÉS (INACTIVE) */
.testimonial-card.prev {
  opacity: 0.3;
  filter: grayscale(0.5) blur(1px);
  z-index: 1;
  transform: translateX(calc(-50% - 480px)) scale(0.92);
  pointer-events: none;
}

.testimonial-card.next {
  opacity: 0.3;
  filter: grayscale(0.5) blur(1px);
  z-index: 1;
  transform: translateX(calc(-50% + 480px)) scale(0.92);
  pointer-events: none;
}

.testimonial-card.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.9);
}

/* CITATION */
.testimonial-quote {
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-text {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-strong);
  font-weight: 500;
  margin: 0;
  position: relative;
  padding-left: 32px;
}

.testimonial-text::before {
  content: '"';
  font-size: 56px;
  color: var(--brand-blue);
  position: absolute;
  top: -8px;
  left: -4px;
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.25;
  font-weight: 400;
}

/* FOOTER CARTE (AUTEUR) */
.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #f0f0f0;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #f5f5f5;
  flex-shrink: 0;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}

.testimonial-role {
  font-size: 14px;
  color: var(--text-subtle);
  margin: 0;
  font-weight: 500;
}

/* CONTRÔLES NAVIGATION (optionnel) */
.testimonials-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 50px;
  position: relative;
  z-index: 10;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-medium);
  border: none;
  cursor: pointer;
  transition: all 280ms ease;
  padding: 0;
  position: relative;
  z-index: 10;
}

.testimonial-dot.active {
  width: 32px;
  border-radius: 5px;
  background: var(--brand-blue);
}

.testimonial-dot:hover:not(.active) {
  background: var(--text-subtle);
}

/* RESPONSIVE < 900px */
@media (max-width: 900px) {
  .testimonials-section {
    padding: 100px 30px 260px;
    margin-top: 0;
  }

  .testimonials-title {
    font-size: 2.8rem;
  }

  .testimonials-subtitle {
    font-size: 17px;
  }

  .testimonials-track {
    min-height: 360px;
  }

  .testimonial-card {
    max-width: 90%;
    padding: 36px 32px;
  }

  /* CACHER LES CARTES CÔTÉS */
  .testimonial-card.prev,
  .testimonial-card.next {
    opacity: 0;
    pointer-events: none;
  }
}

/* RESPONSIVE < 600px */
@media (max-width: 600px) {
  .testimonials-section {
    padding: 80px 20px 300px;
    margin-top: 0;
  }

  .testimonials-title {
    font-size: 2.2rem;
  }

  .testimonials-subtitle {
    font-size: 16px;
  }

  .testimonials-header {
    margin-bottom: 60px;
  }

  .testimonial-card {
    max-width: 100%;
    padding: 32px 24px;
    min-height: 280px;
  }

  .testimonial-text {
    font-size: 16px;
  }

  .testimonial-text::before {
    font-size: 52px;
    top: -16px;
  }

  .testimonial-avatar {
    width: 44px;
    height: 44px;
  }

  .testimonial-name {
    font-size: 15px;
  }

  .testimonial-role {
    font-size: 13px;
  }
}
