/**
 * Content Block 8 Section - Dioqa UI Kit
 * Layout avec image à droite et titre qui déborde sur l'image
 *
 * @package Dioqa_UI_Kit
 */

/* ========================================
   SECTION STRUCTURE
   ======================================== */

/* Section principale */
.content-section-8 {
  position: relative;
}

/* ========================================
   BACKGROUNDS
   ======================================== */

/* Background blanc */
.content-section-8.bg-white {
  background-color: #ffffff;
}

/* Background gris */
.content-section-8.bg-gray-light {
  background-color: var(--bs-gray-light);
}

/* Background transparent = gris clair par défaut */
.content-section-8.bg-transparent {
  background-color: var(--bs-gray-light);
}

/* Background primary */
.content-section-8.bg-primary {
  background-color: var(--bs-primary);
}

/* Textes en blanc sur fond primary */
.content-section-8.bg-primary .content-8-title,
.content-section-8.bg-primary .content-8-title h1,
.content-section-8.bg-primary .content-8-title h2,
.content-section-8.bg-primary .content-8-title h3,
.content-section-8.bg-primary .content-8-description p,
.content-section-8.bg-primary .content-8-link a {
  color: #ffffff;
}

/* Background secondary */
.content-section-8.bg-secondary {
  background-color: var(--bs-secondary);
}

/* Textes en primary sur fond secondary */
.content-section-8.bg-secondary .content-8-title,
.content-section-8.bg-secondary .content-8-title h1,
.content-section-8.bg-secondary .content-8-title h2,
.content-section-8.bg-secondary .content-8-title h3,
.content-section-8.bg-secondary .content-8-description p,
.content-section-8.bg-secondary .content-8-link a {
  color: var(--bs-primary);
}

/* ========================================
   CONTAINER & WRAPPER
   ======================================== */

.content-8-container {
  padding-left: 160px;
  padding-right: 160px;
}

.content-8-wrapper {
  /* Pas de hauteur fixe, s'adapte au contenu */
}

/* ========================================
   IMAGE
   ======================================== */

.content-8-image {
  overflow: hidden;
}

.content-8-image img {
  border-radius: var(--img-radius, var(--radius-lg));
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ========================================
   CONTENT
   ======================================== */

.content-8-content-wrapper {
  position: relative;
}

.content-8-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 55px;
  min-height: 500px;
}

/* Title - Position relative mais avec débordement visuel */
.content-8-title {
  position: relative;
  width: max-content;
  max-width: 250%;
  z-index: 2;
}

.content-8-title h1,
.content-8-title h2,
.content-8-title h3 {
  color: var(--bs-gray-dark);
  font-family: var(--font-heading);
  font-size: var(--display-xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0;
}

/* Description */
.content-8-description {
  max-width: 512px;
}

.content-8-description p {
  color: var(--bs-gray-medium);
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: 1.75;
  margin-bottom: 0;
}

/* Link "Voir plus" */
.content-8-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--bs-gray-dark);
  font-family: var(--font-heading);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.3s ease;
}

/* Border-bottom qui se translate au hover */
.content-8-link a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background-color: var(--bs-primary);
  transition: transform 0.3s ease;
}

.content-8-link a:hover {
  color: var(--bs-primary);
}

.content-8-link a:hover::after {
  transform: translateY(-18px);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 991px) {
  /* Réduire le padding sur tablette */
  .content-8-container {
    padding-left: 48px;
    padding-right: 48px;
  }

  /* Désactiver le positionnement absolu sur tablette/mobile */
  .content-8-title {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 32px;
  }

  .content-8-content {
    gap: 32px;
    margin-bottom: 48px;
    min-height: auto;
  }

  .content-8-title h1,
  .content-8-title h2,
  .content-8-title h3 {
    font-size: var(--display-md);
  }
}

@media (max-width: 768px) {
  /* Padding encore plus réduit sur mobile */
  .content-8-container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .content-8-title {
    margin-bottom: 24px;
  }

  .content-8-content {
    gap: 24px;
    margin-bottom: 32px;
  }

  .content-8-title h1,
  .content-8-title h2,
  .content-8-title h3 {
    font-size: var(--display-2sm);
  }

  .content-8-description p {
    font-size: var(--text-md);
  }

  .content-8-link a {
    font-size: var(--text-sm);
  }
}
