/**
 * Content Block 3 Section - Dioqa UI Kit
 * Layout avec titre + lien + 2 colonnes (images + textes)
 *
 * @package Dioqa_UI_Kit
 */

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

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

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

.content-section-3.bg-primary .content-3-title,
.content-section-3.bg-primary .content-3-title h1,
.content-section-3.bg-primary .content-3-title h2,
.content-section-3.bg-primary .content-3-title h3,
.content-section-3.bg-primary .content-3-title h4,
.content-section-3.bg-primary .content-3-text p,
.content-section-3.bg-primary .content-3-text-bold p,
.content-section-3.bg-primary .content-3-link a {
  color: #FFFFFF;
}

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

.content-section-3.bg-secondary .content-3-title,
.content-section-3.bg-secondary .content-3-title h1,
.content-section-3.bg-secondary .content-3-title h2,
.content-section-3.bg-secondary .content-3-title h3,
.content-section-3.bg-secondary .content-3-title h4,
.content-section-3.bg-secondary .content-3-text p,
.content-section-3.bg-secondary .content-3-text-bold p,
.content-section-3.bg-secondary .content-3-link a {
  color: var(--bs-primary);
}

/* Title */
.content-3-title h1,
.content-3-title h2,
.content-3-title h3,
.content-3-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;
}

/* Link "En savoir plus" */
.content-3-link a {
  color: var(--bs-gray-dark);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 600;
  line-height: normal;
}

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

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

.content-3-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) {
  /* Image 1 : 536x475px */
  .content-3-image-1 {
    width: 100%;
    height: 475px;
  }

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

/* Texte normal */
.content-3-text 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;
}

/* Texte bold */
.content-3-text-bold p {
  color: var(--bs-gray-medium);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 0;
}

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

  /* Sur mobile, toutes les images ont un ratio 16/9 */
  .content-3-image-1,
  .content-3-image-2 {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  /* Lien centré sur mobile */
  .content-3-link {
    text-align: center;
    margin-top: 1.5rem;
  }

  .content-3-link a {
    justify-content: center;
  }
}
