/* =====================================================================
   08 — Notre approche (#approche) · fond blanc (section--light)
   Parcours en quatre étapes reliées par une ligne directrice :
   - ≥ 900 px : quatre colonnes, ligne horizontale continue passant par
     les numéros (losange or à chaque étape, fondu après la dernière) ;
   - < 900 px : liste verticale, ligne à gauche reliant les losanges.
   Sous les étapes : bandeau des engagements (trois mentions séparées par
   des losanges or). Tokens uniquement (voir styles.css / DESIGN.md).
   ===================================================================== */

.approche__parcours {
  --approche-node: 0.5rem;                 /* côté du losange (8 px) */
  --approche-gap: var(--space-6);          /* espacement vertical entre étapes (mobile) */
  --approche-indent: calc(var(--approche-node) + var(--space-4)); /* = losange + écart : numéro, libellé et texte alignés */
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--approche-gap);
  list-style: none;
  padding: 0;
  margin: 0;
}

.approche__etape {
  position: relative;
  min-width: 0;
  padding-left: var(--approche-indent);
}

/* Ligne directrice verticale (mobile) : du losange de l'étape jusqu'au suivant */
.approche__etape::before {
  content: "";
  position: absolute;
  left: calc(var(--approche-node) / 2);
  top: calc(var(--text-2xl) / 2);
  bottom: calc(-1 * var(--approche-gap) - var(--text-2xl) / 2);
  width: 1px;
  transform: translateX(-50%);
  background: var(--color-border);
}
.approche__etape:last-child::before {
  bottom: 0;
  background: linear-gradient(to bottom, var(--color-border), transparent);
}

.approche__titre {
  display: block;
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  color: var(--color-heading);
}

/* Rangée du numéro : losange + « 01 » (+ ligne horizontale ≥ 900) */
.approche__numero {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: calc(-1 * var(--approche-indent));
  min-width: 0;
  color: var(--color-accent-text);
  font-variant-numeric: tabular-nums;
}
.approche__numero::before {
  content: "";
  flex: none;
  width: var(--approche-node);
  height: var(--approche-node);
  background: var(--color-accent);
  transform: rotate(45deg);
}
/* Segment horizontal (activé ≥ 900) */
.approche__numero::after {
  content: "";
  display: none;
  flex: 1 1 auto;
  height: 1px;
  background: var(--color-border);
}

.approche__nom {
  display: block;
  margin-top: var(--space-2);
  white-space: nowrap;
}

.approche__texte {
  margin-top: var(--space-3);
  max-width: 48ch;
  line-height: 1.55;
  color: var(--color-text-soft);
}

/* ---------------------------------------------------------------------
   Engagements (sous les étapes)
   --------------------------------------------------------------------- */
.approche__engagements {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: clamp(var(--space-7), 6vw, var(--space-8));
  padding: var(--space-5);
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  list-style: none;
  text-align: left;
}
/* Chaque engagement porte son propre losange (puce signature) : le repli
   sur plusieurs lignes reste propre à toutes les largeurs, sans séparateur orphelin. */
.approche__engagement {
  display: inline-flex;
  align-items: flex-start;
  min-width: 0;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-heading);
}
.approche__engagement::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.55em;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* ≥ 640 : engagements en ligne (repli centré si nécessaire) */
@media (min-width: 640px) {
  .approche__engagements {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3) var(--space-6);
  }
}

/* ≥ 900 : parcours horizontal en quatre colonnes */
@media (min-width: 900px) {
  .approche__parcours {
    --approche-gap: var(--space-6);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: var(--approche-gap);
  }
  .approche__etape {
    padding-left: 0;
  }
  .approche__etape::before {
    display: none;
  }
  .approche__numero {
    margin-left: 0;
  }
  /* la ligne traverse l'intervalle de grille jusqu'au losange suivant */
  .approche__numero::after {
    display: block;
    margin-right: calc(-1 * var(--approche-gap));
  }
  .approche__etape:last-child .approche__numero::after {
    margin-right: 0;
    background: linear-gradient(90deg, var(--color-border), transparent);
  }
  .approche__nom {
    margin-top: var(--space-4);
  }
  .approche__engagements { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .approche__engagement { justify-content: center; }
}

/* Horizon de fin de section : posé au bas du padding, dans la largeur du conteneur */
.approche__horizon {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  max-width: calc(var(--container) - 2 * var(--gutter));
  margin-inline: auto;
}
