/**
 * 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 {
  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;
}

/* 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 (iPad) */
@media (max-width: 992px) {
  .content-10-text-col {
    padding-top: 0;
    margin-bottom: 2.5rem; /* 40px */
  }

  .content-10-image-wrapper {
    height: 28.125rem; /* 450px */
  }

  /* Carte testimonial : réduire la largeur et ajuster position */
  .content-10-testimonial-card {
    width: 65%;
    min-width: 21.875rem; /* 350px */
    right: calc(100% - 45%);
    bottom: 6%;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .content-10-title {
    font-size: var(--display-sm);
    margin-bottom: 1.25rem; /* 20px */
  }

  .content-10-description {
    font-size: var(--text-sm);
  }

  .content-10-image-wrapper {
    height: auto; /* Auto pour s'adapter au contenu en mobile */
    margin-bottom: 1.875rem; /* 30px */
    display: flex;
    flex-direction: column;
  }

  .content-10-image {
    height: 21.875rem; /* 350px - hauteur fixe pour l'image */
    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); /* Largeur avec marges latérales */
    min-width: auto;
    margin-top: -7.125rem; /* -50px - remonte sur l'image */
    margin-left: 1.25rem; /* 20px */
    margin-right: 1.25rem; /* 20px */
  }

  .content-10-testimonial-citation {
    font-size: var(--text-md);
  }
}

/* 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 */
  }
}
