/* Page-specific styles, group b. Tokens only. */

/* Document editor */
.zone-edition { width: 100%; max-width: 100%; font-family: inherit; font-size: var(--fs-16); line-height: var(--lh-text); }
.texte-guide { font-size: var(--fs-16); max-width: var(--measure); overflow-wrap: anywhere; }
.actions-bas { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; }

/* Guide étape par étape : liste des étapes et page d'une étape */
.etapes-guide { counter-reset: none; }
.numero-etape { margin: 0; font-size: var(--fs-12); font-weight: var(--fw-medium); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.entete-page .numero-etape { margin-bottom: var(--sp-1); }
.meta-etape { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); margin: 0 0 var(--sp-4); font-size: var(--fs-14); }
.meta-etape div { min-width: 0; }
.meta-etape dt { font-size: var(--fs-12); color: var(--text-secondary); }
.meta-etape dd { margin: 0; }
.texte-etape { max-width: var(--measure); margin-top: var(--sp-6); font-size: var(--fs-16); line-height: var(--lh-text); overflow-wrap: break-word; }
.texte-etape > :first-child { margin-top: 0; }
.texte-etape h2 { font-size: var(--fs-20); margin: var(--sp-8) 0 var(--sp-3); }
.texte-etape h3 { font-size: var(--fs-20); margin: var(--sp-8) 0 var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px solid var(--border); }
.texte-etape h4 { font-size: var(--fs-16); margin: var(--sp-6) 0 var(--sp-2); }
.texte-etape h5 { font-size: var(--fs-16); margin: var(--sp-6) 0 var(--sp-2); color: var(--accent); }
.texte-etape h6 { font-size: var(--fs-14); margin: var(--sp-4) 0 var(--sp-2); }
.texte-etape p { margin: 0 0 var(--sp-3); }
.texte-etape ul { margin: 0 0 var(--sp-4); padding-left: var(--sp-6); }
.texte-etape li { margin: var(--sp-1) 0; }
.texte-etape ul.cases { list-style: none; padding-left: 0; }
.texte-etape ul.cases li { position: relative; padding-left: calc(16px + var(--sp-3)); }
.texte-etape ul.cases li::before {
  content: ""; position: absolute; left: 0; top: calc((1lh - 16px) / 2);
  width: 14px; height: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg);
}
.texte-etape .bandeau-guide { margin: 0 0 var(--sp-2); font-size: var(--fs-12); font-weight: var(--fw-semibold); letter-spacing: 0.06em; color: var(--accent); }
.texte-etape .encadre-guide { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-left: 3px solid var(--accent); border-radius: var(--radius-md); background: var(--accent-subtle); }
.texte-etape .encadre-guide p:last-child { margin-bottom: 0; }
.texte-etape .boite-tableau { margin: 0 0 var(--sp-4); }
.texte-etape table { font-size: var(--fs-14); }
.texte-etape .fiche-guide th[scope="row"] { width: 40%; background: var(--bg-subtle); font-size: var(--fs-14); font-weight: var(--fw-medium); color: var(--text); white-space: normal; position: static; }
.nav-etapes { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-8); padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.nav-etapes .btn { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; height: auto; padding: var(--sp-2) var(--sp-3); max-width: 100%; white-space: normal; text-align: left; }
.nav-etapes .btn.suivante { align-items: flex-end; text-align: right; margin-left: auto; }
.nav-etapes .sens { font-size: var(--fs-12); color: var(--text-secondary); }
.nav-etapes .nom { font-weight: var(--fw-medium); }
.sommaire-etape { max-width: var(--measure); margin: var(--sp-4) 0 0; padding: var(--sp-3) var(--sp-4); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-subtle); font-size: var(--fs-14); }
.sommaire-etape summary { cursor: pointer; font-weight: var(--fw-medium); }
.sommaire-etape ol { margin: var(--sp-2) 0 0; padding: 0; list-style: none; }
.sommaire-etape li { margin: 0; padding: 2px 0; }
.sommaire-etape .niveau-3 { padding-left: var(--sp-4); }
.sommaire-etape .niveau-4 { padding-left: var(--sp-8); }
.sommaire-etape a { text-decoration: none; }
.sommaire-etape a:hover { text-decoration: underline; }
.texte-etape [id^="partie-"] { scroll-margin-top: calc(var(--sp-12) + var(--sp-4)); }
