/* Frise des étapes : deux fils en SVG (PRD, sections 14.2, 17.3 et 27.3).
 * Accueil : fils encre et rose. Espace client : fils encre et lilas foncé, la suite en pointillés. */

.steps {
  --thread-a: var(--color-ink);
  --thread-b: var(--color-rose);
}

.steps--space {
  --thread-b: var(--color-accent-deep);
}

.steps__thread-a {
  stroke: var(--thread-a);
  stroke-width: 1.8;
}

.steps__thread-b {
  stroke: var(--thread-b);
  stroke-width: 2.6;
}

.steps__thread--future {
  stroke-dasharray: 2 7;
}

.steps__marker {
  fill: var(--color-paper);
  stroke: var(--color-ink);
  stroke-width: 1.6;
}

.steps__marker--done { fill: var(--color-ink); }
.steps__marker--current { fill: var(--color-accent); }
.steps__marker--legal { fill: var(--color-beurre); }

/* Mobile : liste verticale, fil à gauche */
.steps__wide {
  display: none;
}

.steps__narrow {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--space-3);
}

.steps__narrow-svg {
  grid-row: 1 / span 5;
  width: 40px;
  height: 100%;
}

.steps__list {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps__item {
  max-width: none;
  padding-bottom: 22px;
}

.steps__item:last-child {
  padding-bottom: 0;
}

.steps__number {
  display: none;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--fs-lg);
}

.steps__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1.2;
}

.steps__text {
  display: none;
  margin-top: var(--space-2);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-ink-soft);
}

/* Variante espace client sur mobile : carrés d'état, sans fil */
.steps--space .steps__narrow {
  display: block;
}

.steps--space .steps__narrow-svg {
  display: none;
}

.steps--space .steps__list {
  display: grid;
  gap: var(--space-3);
}

.steps--space .steps__item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0;
}

.steps--space .steps__item::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.6px solid var(--color-ink);
  background: var(--color-paper);
}

.steps--space .steps__item--done::before { background: var(--color-ink); }
.steps--space .steps__item--current::before { background: var(--color-accent); }

.steps--space .steps__title {
  font-family: var(--font-text);
  font-weight: 400;
  font-size: var(--fs-md);
}

.steps--space .steps__item--current .steps__title {
  font-weight: var(--weight-strong);
}

.steps--space .steps__item--future .steps__title {
  color: var(--color-ink-soft);
}

@media (min-width: 900px) {
  .steps__wide {
    display: block;
    width: 100%;
    height: auto;
  }

  .steps__narrow {
    display: block;
  }

  .steps__narrow-svg {
    display: none;
  }

  .steps__list,
  .steps--space .steps__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--space-5);
    margin-top: var(--space-5);
  }

  .steps__number,
  .steps__text {
    display: block;
  }

  .steps__title {
    margin-top: 6px;
    font-size: 1.375rem;
    line-height: 1.15;
  }

  .steps--space .steps__item {
    display: block;
  }

  .steps--space .steps__item::before {
    content: none;
  }

  .steps--space .steps__title {
    margin-top: 0;
    font-size: var(--fs-md);
  }
}
