/* ============================================================
   AMBIZ — Home Why (Pourquoi AMBIZ — 4 piliers)
   Section #4 sur fond navy. Layout stats institutionnelles :
   grand highlight (chiffre/sigle) + titre + description.
   4 cols desktop → 2×2 tablette → 1 col mobile.
   ============================================================ */


/* ════════════════════════════════════════════════════════════
   1. SECTION CONTAINER
   ════════════════════════════════════════════════════════════ */

.ambiz-why {
  position: relative;
  background: var(--ambiz-navy);
  color: var(--ambiz-text-inverse);
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
  overflow: hidden;
  isolation: isolate;
}

/* Touche graphique discrète : dégradé subtil rouge en haut-droite */
.ambiz-why::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(200, 16, 46, 0.14) 0%, transparent 45%),
    radial-gradient(ellipse at 10% 100%, rgba(74, 138, 184, 0.10) 0%, transparent 50%);
}

@media (max-width: 768px) {
  .ambiz-why {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }
}


/* ════════════════════════════════════════════════════════════
   2. HEADER (eyebrow + titre + subtitle)
   ════════════════════════════════════════════════════════════ */

.ambiz-why__header {
  max-width: 820px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
}

.ambiz-why__title {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--font-bold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
  color: var(--ambiz-text-inverse);
  margin: var(--space-2xs) 0 var(--space-sm);
}

.ambiz-why__subtitle {
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

@media (max-width: 768px) {
  .ambiz-why__header {
    margin-bottom: var(--space-xl);
  }
  .ambiz-why__subtitle {
    font-size: var(--text-sm);
  }
}


/* ════════════════════════════════════════════════════════════
   3. GRID — 4 colonnes avec séparateurs verticaux fins
   ════════════════════════════════════════════════════════════ */

.ambiz-why__grid,
ul.ambiz-why__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

@media (max-width: 1023px) {
  .ambiz-why__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .ambiz-why__grid {
    grid-template-columns: 1fr;
  }
}


/* ════════════════════════════════════════════════════════════
   4. ITEM (pilier individuel)
   ════════════════════════════════════════════════════════════ */

.ambiz-why__item,
.ambiz-why__grid .ambiz-why__item {
  list-style: none;
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--duration-base) var(--ease-out);
}

.ambiz-why__item::marker {
  content: none;
}

/* Pas de bordure droite sur la dernière card de chaque ligne */
.ambiz-why__item:nth-child(4n),
.ambiz-why__item:last-child {
  border-right: none;
}

@media (max-width: 1023px) {
  .ambiz-why__item:nth-child(4n) {
    /* en 2 cols on neutralise le reset 4n et on remet sur 2n */
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
  .ambiz-why__item:nth-child(2n),
  .ambiz-why__item:last-child {
    border-right: none;
  }
  /* Séparateur horizontal entre les 2 lignes */
  .ambiz-why__item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 540px) {
  .ambiz-why__item {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: var(--space-md) 0;
  }
  .ambiz-why__item:last-child {
    border-bottom: none;
  }
  .ambiz-why__item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
}


/* ════════════════════════════════════════════════════════════
   5. HIGHLIGHT (grand chiffre / sigle)
   ════════════════════════════════════════════════════════════ */

.ambiz-why__highlight {
  font-family: var(--font-serif);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--font-black);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  color: var(--ambiz-red-light);
  display: block;
}


/* ════════════════════════════════════════════════════════════
   6. TITRE + DESCRIPTION
   ════════════════════════════════════════════════════════════ */

.ambiz-why__pillar-title {
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  line-height: var(--leading-snug);
  color: var(--ambiz-text-inverse);
  margin: var(--space-2xs) 0 0;
}

.ambiz-why__pillar-desc {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  color: rgba(255, 255, 255, 0.7);
  margin: var(--space-2xs) 0 0;
}


/* ════════════════════════════════════════════════════════════
   7. PRÉFÉRENCES UTILISATEUR
   ════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .ambiz-why__item {
    transition: none;
  }
}
