/* ============================
   SECTION PRINCIPALE
============================ */
.temoignages-coach {
  position: relative !important;
  overflow: hidden !important;
  min-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

/* ============================
   BACKGROUNDS
============================ */
.background-1,
.background-2,
.background-3,
.background-4 {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 1.5s ease-in-out, transform 6s ease-in-out;
  z-index: 1;
}

.background-1.active,
.background-2.active,
.background-3.active,
.background-4.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1.05);
}

/* ============================
   OVERLAY
============================ */
.temoignages-coach::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.65));
  z-index: 2;
  pointer-events: none;
}

/* ============================
   CONTENEUR TEXTE + TITRES
============================ */
.content-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 8rem;
}

/* ============================
   TEXTES DES TÉMOIGNAGES
============================ */
.testimonial-content-1,
.testimonial-content-2,
.testimonial-content-3,
.testimonial-content-4 {
  display: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 1s ease, transform 1s ease;
  max-width: 800px;
}

.testimonial-content-1.active,
.testimonial-content-2.active,
.testimonial-content-3.active,
.testimonial-content-4.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ============================
   AVATARS - DESKTOP
============================ */
.avatars-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 3.5rem;
  width: 100%;
  max-width: 1100px;
  margin-top: 4rem;
  position: relative;
  z-index: 4;
  padding: 0 3rem;
}

.avatar-1,
.avatar-2,
.avatar-3,
.avatar-4 {
  cursor: pointer;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: grayscale(100%) brightness(0.8);
  flex-shrink: 0;
}

.avatar-1.active,
.avatar-2.active,
.avatar-3.active,
.avatar-4.active,
.avatar-1:hover,
.avatar-2:hover,
.avatar-3:hover,
.avatar-4:hover {
  transform: scale(1.15);
  filter: grayscale(0%) brightness(1);
}

/* ============================
   MOBILE
============================ */
@media (max-width: 767px) {

  .avatars-wrapper {
    display: none !important;
  }

  .testimonial-content-1,
  .testimonial-content-2,
  .testimonial-content-3,
  .testimonial-content-4 {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .testimonial-content-1.active,
  .testimonial-content-2.active,
  .testimonial-content-3.active,
  .testimonial-content-4.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

}
