/* User guide: legal.css layout, plus contents, numbered steps and annotated captures. */
main { max-width: 760px; }
.intro { font-size: 1.0625rem; color: var(--muted); margin-bottom: 28px; }

nav[aria-label] { border: 0; padding: 0; margin: 0; font-size: 1rem; }
.sommaire { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; counter-reset: s; }
.sommaire li { margin: 0; counter-increment: s; }
.sommaire a { display: flex; gap: 10px; align-items: baseline; height: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); text-decoration: none; color: var(--text); line-height: 1.35; }
.sommaire a::before { content: counter(s); font-weight: 600; color: var(--accent); min-width: 1.1em; }
.sommaire a:hover { border-color: var(--accent-edge); background: var(--hover); }

h2 { scroll-margin-top: 16px; }
.but { color: var(--muted); }

.etapes { list-style: none; padding: 0; counter-reset: e; }
.etapes li { counter-increment: e; position: relative; padding-left: 40px; margin-bottom: 12px; }
.etapes li::before { content: counter(e); position: absolute; left: 0; top: 1px; }
.etapes li::before, .repere { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--canvas); font-size: .8125rem; font-weight: 700; line-height: 1; }

figure { margin: 8px 0 28px; }
.capture { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--canvas); }
.capture img { display: block; width: 100%; height: auto; }
/* One capture per theme: the page shows the one matching its own. */
:root[data-theme='day'] .capture img.night, :root:not([data-theme='day']) .capture img.day { display: none; }
.repere { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--canvas), 0 2px 8px rgb(0 0 0 / .3); }
figcaption { font-size: .875rem; color: var(--muted); margin-top: 8px; }

.astuce { border-left: 2px solid var(--accent); padding: 10px 0 10px 16px; margin: 0 0 24px; }
.astuce p:last-child { margin-bottom: 0; }
.astuce strong { color: var(--accent); }

.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; }

.retour { font-size: .875rem; margin: -4px 0 0; }
.retour a { color: var(--muted); }

@media (max-width: 700px) {
  .etapes li { padding-left: 36px; }
  .repere { width: 22px; height: 22px; font-size: .75rem; }
}
