/* Atelier Latitude — Frise « 4 étapes »
   Divi : module Code (contenu de al-etapes.html), section en fond #EAE3D9.
   Sans JS ou avec « mouvement réduit » : frise affichée complète, sans animation. */

ol.al-etapes {
  --al-bg: #EAE3D9;   /* = fond de la section : masque la ligne sous les pastilles */
  --al-ink: #342E29;
  --al-acc: #AAB1A0;  /* pastille de l'étape 4 */
  --al-ease: cubic-bezier(.2, .7, .2, 1);
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  row-gap: 60px;
  font-family: 'Manrope', system-ui, sans-serif;
  color: var(--al-ink);
}
.al-etapes .al-etape {
  position: relative;
  margin: 0;
  padding: 46px clamp(20px, 2.4vw, 40px) 0 0;
  list-style: none;
}

/* Ligne grise de fond */
.al-etapes .al-etape::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(52, 46, 41, .2);
}

/* Ligne foncée remplie au défilement (--al-p : 0 → 1, posé par le JS) */
.al-etapes .al-etape__fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--al-ink);
  transform-origin: 0 50%;
  transform: scaleX(var(--al-p, 1));
}

/* Pastille : anneau vide + point plein */
.al-etapes .al-etape__dot {
  position: absolute;
  top: -6px; left: 0;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--al-bg);
  box-shadow: inset 0 0 0 1px var(--al-ink);
}
.al-etapes .al-etape__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--al-ink);
  transition: opacity .5s, transform .5s var(--al-ease);
}
.al-etapes .al-etape:last-child .al-etape__dot::after {
  background: var(--al-acc);
  box-shadow: 0 0 0 1px var(--al-ink);
}

/* Textes */
.al-etapes .al-etape__num {
  display: block;
  font-size: 11.5px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #6B5F55;
}
.al-etapes .al-etape__titre {
  margin: 12px 0 18px;
  padding: 0;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 400;
  font-size: clamp(24px, 2vw, 29px);
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--al-ink);
}
.al-etapes .al-etape__intro {
  margin: 0 0 10px;
  padding: 0;
  font-size: 15.5px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--al-ink);
}
.al-etapes .al-etape__texte {
  margin: 0;
  padding: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #5F544B;
  text-wrap: pretty;
}

/* États animés (classes posées par al-etapes.js) */
.al-etapes.is-live .al-etape:not(.is-reached) .al-etape__dot::after {
  opacity: 0;
  transform: scale(.3);
}
.al-etapes .al-etape.is-pending {
  opacity: 0;
  transform: translateY(26px);
}
.al-etapes .al-etape.is-in {
  transition: opacity 1.1s var(--al-ease) var(--al-d, 0s),
              transform 1.1s var(--al-ease) var(--al-d, 0s);
}
.al-etapes .al-etape:nth-child(2) { --al-d: .12s; }
.al-etapes .al-etape:nth-child(3) { --al-d: .24s; }
.al-etapes .al-etape:nth-child(4) { --al-d: .36s; }
