/* ==========================================================================
   Page MÉTHODE (/methode) — le registre PUBLIC de nos sources, rendu en STATIQUE
   par scripts/build-static.mjs (marqueur <!--build:methode-->). Réutilise
   styles.css (wrap, eyebrow, seal, pastilles reg-row__status / st--*). N'ajoute
   que la mise en page « fiches document » groupées par catégorie.
   ========================================================================== */

.methode {
  padding: 36px 0 76px;
  background: var(--paper);
}
.methode__lead {
  color: var(--steel-d);
  font-size: 1.06rem;
  line-height: 1.62;
  max-width: 64ch;
  margin: 10px 0 0;
}
.methode__seal {
  margin-top: 18px;
}

/* Sommaire (ancres par catégorie) — aide la lecture ET l'AEO */
.methode__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 8px;
  padding: 0;
  list-style: none;
}
.methode__toc a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-d);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.methode__toc a:hover {
  color: var(--green);
  border-color: var(--green-line);
}

/* Catégorie */
.doc-cat {
  margin-top: 44px;
  scroll-margin-top: 84px; /* sous la nav sticky */
}
.doc-cat__title {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--ink);
}
.doc-cat__count {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--steel);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 9px;
}
.doc-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

/* Fiche document */
.doc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 84px;
}
.doc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.doc__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
}
.doc__title a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--green-line);
  transition: color 0.15s, border-color 0.15s;
}
.doc__title a:hover {
  color: var(--green);
  border-color: var(--green);
}
.doc__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.doc__date {
  font-size: 0.82rem;
  color: var(--steel);
  white-space: nowrap;
}
.doc__desc {
  margin: 11px 0 0;
  color: var(--steel-d);
  font-size: 0.95rem;
  line-height: 1.62;
}
.doc__sanction {
  margin: 11px 0 0;
  padding: 8px 12px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--warn);
  background: var(--warn-bg);
  border-left: 3px solid var(--warn);
  border-radius: 0 8px 8px 0;
}
.doc__sanction strong {
  color: var(--warn);
}

/* CTA bas de page */
.methode__cta {
  margin-top: 48px;
  padding: 22px 24px;
  background: var(--green-bg);
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  text-align: center;
}
.methode__cta p {
  margin: 0 0 14px;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 560px) {
  .doc__head {
    flex-direction: column;
    gap: 7px;
  }
}
