/**
 * Content Block 2 Section - Dioqa UI Kit
 * Layout avec 3 images en 2 colonnes (Bootstrap Grid)
 *
 * @package Dioqa_UI_Kit
 */

/* Backgrounds colors */
.content-section-2.bg-white {
  background-color: #FFFFFF;
}

.content-section-2.bg-gray-light {
  background-color: var(--bs-gray-light);
}

.content-section-2.bg-primary {
  background-color: var(--bs-primary);
}

.content-section-2.bg-primary .content-title,
.content-section-2.bg-primary .content-title h1,
.content-section-2.bg-primary .content-title h2,
.content-section-2.bg-primary .content-title h3,
.content-section-2.bg-primary .content-title h4,
.content-section-2.bg-primary .content-description p {
  color: #FFFFFF;
}

.content-section-2.bg-secondary {
  background-color: var(--bs-secondary);
}

.content-section-2.bg-secondary .content-title,
.content-section-2.bg-secondary .content-title h1,
.content-section-2.bg-secondary .content-title h2,
.content-section-2.bg-secondary .content-title h3,
.content-section-2.bg-secondary .content-title h4,
.content-section-2.bg-secondary .content-description p {
  color: var(--bs-primary);
}

/* Container des images */
.content-2-image {
  overflow: hidden;
  position: relative;
}

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

/* Desktop : dimensions fixes selon maquette Figma */
@media (min-width: 992px) {
  /* Colonne avec Image 1+2 : 424px */
  .content-section-2 .content-2-images-row .col-7 {
    flex: 0 0 auto;
    width: 424px;
  }

  /* Colonne avec Image 3 : 312px */
  .content-section-2 .content-2-images-row .col-5 {
    flex: 0 0 auto;
    width: 312px;
  }

  /* Images à DROITE (défaut) : Image 1+2 à gauche, Image 3 à droite */
  .content-section-2 .images-right .col-7 {
    align-items: flex-end; /* Image 1 alignée à droite */
  }

  /* Images à GAUCHE (inversé) : Image 3 à gauche, Image 1+2 à droite */
  .content-section-2 .images-left {
    flex-direction: row-reverse;
  }

  .content-section-2 .images-left .col-7 {
    align-items: flex-start; /* Image 1 alignée à gauche */
  }

  /* Image 1 : 312x312px */
  .content-2-image-1 {
    width: 312px;
    height: 312px;
  }

  /* Image 2 : 424x424px */
  .content-2-image-2 {
    width: 424px;
    height: 424px;
  }

  /* Image 3 : 312x520px */
  .content-2-image-3 {
    width: 312px;
    height: 520px;
  }
}

/* Typography - identique à content-1 */
.content-title h1,
.content-title h2,
.content-title h3,
.content-title h4 {
  color: var(--bs-gray-dark);
  font-family: var(--font-heading);
  font-size: var(--display-md);
  font-weight: 600;
  line-height: normal;
  margin-bottom: 0;
}

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

/* Responsive */
@media (max-width: 768px) {
  .content-title h1,
  .content-title h2,
  .content-title h3,
  .content-title h4 {
    font-size: var(--display-2sm);
  }

  /* Espacement entre le contenu et les images */
  .content-section-2 .col-lg-7.mb-4 {
    margin-top: 2rem;
  }

  /* Cacher image 1 et 3 en mobile */
  .content-2-image-1,
  .content-2-image-3 {
    display: none;
  }

  /* Sur mobile, l'image 2 a un ratio 16/9 */
  .content-2-image-2 {
    aspect-ratio: 16 / 9;
  }

  /* Container image 2 prend toute la largeur */
  .content-section-2 .content-2-images-row .col-7 {
    width: 100%;
  }
}
