/* ============================================================
   methods.css — Styles propres aux fiches méthode
   Complète style.css (variables globales) et fiches.css
   (fiche-header, fiche-section, vigilance, code-block, retenir-list).
   ============================================================ */

/* ── Chapô contexte sous le titre ── */
.method-context {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Prérequis (liste de puces liées) ── */
.prereq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.prereq-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-bg);
  border-radius: 20px;
  padding: 4px 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.prereq-chip:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Stepper ── */
.stepper {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 0.9rem;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.step:not(:last-child) .step-marker::after {
  content: '';
  width: 2px;
  flex: 1;
  background: var(--border-mid);
  margin: 4px 0;
}

.step-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.step:last-child .step-content {
  padding-bottom: 0;
}

.step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.step-why {
  font-size: 13px;
  color: var(--text-secondary);
}

.step-note {
  font-size: 13px;
  color: var(--text-secondary);
  border-left: 2px solid var(--border-mid);
  padding-left: 0.7rem;
}

/* Vigilance imbriquée dans une étape : un peu plus compacte */
.step-content .vigilance {
  margin: 0;
}
