/**
 * Content Section 10 - Texte + Image avec carte testimonial absolute
 *
 * Layout: Grid Bootstrap avec offsets
 * - Texte à gauche (col-lg-4)
 * - Image à droite (col-lg-5)
 * - Carte testimonial en absolute (moitié sur image, moitié débordant)
 *
 * @package Dioqa_UI_Kit
 */

/* Section principale */
.content-10-section {
  /* Padding géré dynamiquement via ACF */
  position: relative;
}

/* Colonne texte */
.content-10-text-col {
  padding-top: 2.1875rem; /* 35px */
}

/* Titre */
.content-10-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--display-md);
  line-height: 1.2;
  color: var(--bs-dark);
  margin: 0 0 1.5625rem 0; /* 25px */
}

/* Description */
.content-10-description {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--bs-text);
}

.content-10-description p {
  margin: 0;
}

/* Wrapper image (position relative pour la carte absolute) */
.content-10-image-wrapper {
  position: relative;
  width: 100%;
  height: 34.6875rem; /* 555px */
}

/* Image */
.content-10-image,
.content-10-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius, 16px);
  display: block;
}

/* Carte testimonial (absolute) */
.content-10-testimonial-card {
  position: absolute;
  bottom: 7%; /* Position en % */
  right: calc(100% - 40%); /* Plus sur l'image, moins de débordement */
  width: 90%; /* Encore plus étendue horizontalement */
  min-width: 26.5rem; /* 424px minimum */
  background: var(--bs-white);
  border-radius: var(--border-radius, 16px);
  padding: 1.5625rem; /* 25px */
  box-shadow: 0 0.25rem 1.25rem rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.9375rem; /* 15px */
  z-index: 10;
}

/* Logo testimonial */
.content-10-testimonial-logo {
  height: 2.1875rem; /* 35px */
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

/* Citation */
.content-10-testimonial-citation {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--bs-text);
  margin: 0;
}

/* Auteur */
.content-10-testimonial-auteur {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--bs-dark);
  margin: 0;
}

/* ================================================
   TESTIMONIAL CAROUSEL (multiple testimonials)
   ================================================ */

.content-10-testimonial-carousel {
  width: 100%;
}

.content-10-testimonial-carousel .carousel-inner {
  /* Prevent height jump between slides */
  min-height: 8rem;
}

.content-10-testimonial-carousel .carousel-item {
  display: none;
  flex-direction: column;
  gap: 0.9375rem;
  transition: opacity 0.4s ease;
  opacity: 0;
}

.content-10-testimonial-carousel .carousel-item.active {
  display: flex;
  opacity: 1;
}

/* Dots indicators — override Bootstrap carousel defaults */
.content-10-carousel-indicators {
  position: static !important;
  margin: 0.625rem 0 0 !important;
  justify-content: flex-start !important;
  gap: 0.375rem !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
}

.content-10-carousel-indicators button {
  width: 6px !important;
  height: 6px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 50% !important;
  background-color: #b0adc0 !important;
  opacity: 1 !important;
  border: 0 !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: none !important;
  box-sizing: border-box !important;
  background-clip: unset !important;
  transition: background-color 0.3s ease !important;
}

.content-10-carousel-indicators button.active {
  background-color: var(--bs-primary) !important;
}

/* fb-7553507: support 2 testimonial cards stacked */
.content-10-image-wrapper.has-two-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: auto;
}

.content-10-image-wrapper.has-two-cards .content-10-testimonial-card {
  position: relative;
  right: auto;
  bottom: auto;
}

/* Adaptation des couleurs pour fonds foncés de section */
.content-10-section.text-white .content-10-title {
  color: white;
}

.content-10-section.text-white .content-10-description {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive */

/* Tablettes - carte en position relative pour éviter chevauchement du texte */
@media (max-width: 1399px) {
  /* Centrer verticalement le texte par rapport à l'image */
  .content-10-section .row {
    align-items: center;
  }

  .content-10-text-col {
    padding-top: 0;
    margin-bottom: 1.875rem; /* 30px */
  }

  .content-10-image-wrapper {
    height: auto;
    margin-bottom: 1.875rem; /* 30px */
    display: flex;
    flex-direction: column;
  }

  .content-10-image {
    height: 25rem; /* 400px */
    flex-shrink: 0;
  }

  /* Carte testimonial : passer en position relative (dans le flow) */
  .content-10-testimonial-card {
    position: relative;
    right: auto;
    bottom: auto;
    width: calc(100% - 2.5rem);
    min-width: auto;
    margin-top: -5rem;
    margin-left: 1.25rem;
    margin-right: 1.25rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .content-10-title {
    font-size: var(--display-2sm);
    margin-bottom: 1.25rem; /* 20px */
  }

  .content-10-description {
    font-size: var(--text-md);
  }

  .content-10-image {
    height: 21.875rem; /* 350px */
  }

  .content-10-testimonial-card {
    margin-top: -7.125rem;
  }

  .content-10-testimonial-citation {
    font-size: var(--text-md);
  }
}

/* Tablette 912px (fb-7604357) */
@media (min-width: 912px) and (max-width: 991.98px) {
  .content-10-section {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .content-10-section .row {
    align-items: start;
  }

  .content-10-image-col {
    padding-left: 0;
  }
}

/* Petits mobiles */
@media (max-width: 576px) {
  .content-10-image {
    height: 17.5rem; /* 280px - hauteur réduite pour l'image */
  }

  .content-10-testimonial-card {
    padding: 1.25rem; /* 20px */
    gap: 0.75rem; /* 12px */
    margin-top: -7.5rem; /* -40px - moins de chevauchement sur petits écrans */
    width: calc(100% - 2rem); /* Marges latérales réduites */
    margin-left: 1rem; /* 16px */
    margin-right: 1rem; /* 16px */
  }

  .content-10-testimonial-logo {
    height: 1.75rem; /* 28px */
  }
}
