/**
 * Key Figures 2 Section - Dioqa UI Kit
 * Layout avec header centré et chiffres en ligne avec séparateurs
 *
 * @package Dioqa_UI_Kit
 */

/* Background Colors */
.key-figures-2-section.bg-white {
  background-color: #ffffff;
}

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

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

.key-figures-2-section.bg-primary .key-figures-2-title,
.key-figures-2-section.bg-primary .key-figures-2-subtitle,
.key-figures-2-section.bg-primary .key-figures-2-label {
  color: #ffffff;
}

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

.key-figures-2-section.bg-secondary .key-figures-2-title,
.key-figures-2-section.bg-secondary .key-figures-2-subtitle,
.key-figures-2-section.bg-secondary .key-figures-2-label {
  color: var(--bs-primary);
}

/* Header centré */
.key-figures-2-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Icône */
.key-figures-2-icon {
  width: 56px;
  height: 56px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  background-color: transparent;
}

.key-figures-2-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background-color: var(--bs-primary);
  opacity: 0.2;
  z-index: 0;
}

.key-figures-2-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Titre */
.key-figures-2-title {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 500;
  line-height: normal;
  color: var(--bs-gray-dark);
  margin: 0;
}

/* Sous-titre */
.key-figures-2-subtitle {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--bs-gray-medium);
  margin: 0;
}

/* Container des metrics */
.key-figures-2-metrics {
  display: flex;
  justify-content: center;
}

.key-figures-2-metrics-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 768px;
  width: 100%;
}

/* Item chiffre clé */
.key-figures-2-item {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* Chiffre */
.key-figures-2-number {
  font-family: 'Inter', sans-serif;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -1.2px;
  color: var(--bs-primary);
  text-align: center;
  width: 100%;
}

/* Label */
.key-figures-2-label {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.56;
  color: var(--bs-gray-dark);
  text-align: center;
  width: 100%;
}

/* Séparateur vertical */
.key-figures-2-divider {
  width: 1px;
  align-self: stretch;
  background-color: var(--bs-gray-light);
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 991px) {
  .key-figures-2-header {
    margin-bottom: 48px;
  }

  .key-figures-2-title {
    font-size: 36px;
  }

  .key-figures-2-subtitle {
    font-size: 18px;
  }

  .key-figures-2-metrics-wrapper {
    flex-wrap: wrap;
    gap: 32px 16px;
  }

  .key-figures-2-item {
    flex: 1 1 calc(50% - 8px);
    min-width: calc(50% - 8px);
  }

  .key-figures-2-divider {
    display: none;
  }

  .key-figures-2-number {
    font-size: 48px;
  }

  .key-figures-2-label {
    font-size: 16px;
  }
}

@media (max-width: 575.98px) {
  .key-figures-2-header {
    margin-bottom: 32px;
  }

  .key-figures-2-title {
    font-size: 28px;
  }

  .key-figures-2-subtitle {
    font-size: 16px;
  }

  .key-figures-2-item {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .key-figures-2-number {
    font-size: 40px;
  }
}
