/* Feuille de style des guides publics (pages statiques sans JS). Servie à part : /guides.css, lien relatif. Variables de src/index.css. */
:root {
  --bg: #f5f6fb; --surface: #fff; --surface-2: #eceef6; --border: #d3d8ea; --text: #161a2e; --muted: #586080;
  --accent: #4f46e5; --accent-text: #fff; --accent-strong: #3730a3; --warning: #b7791f; --info: #3768ad;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1220; --surface: #171a2b; --surface-2: #20243a; --border: #343b5a; --text: #e8eaf6; --muted: #9aa2c8;
    --accent: #818cf8; --accent-text: #0f1220; --accent-strong: #818cf8; --warning: #e0a63c; --info: #7aa7e8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.65 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
a { color: var(--accent-strong); text-underline-offset: 0.15em; }
a:focus-visible, pre:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: 0.5rem; top: -4rem; background: var(--surface); padding: 0.5rem 0.75rem; border-radius: 6px; z-index: 2; }
.skip:focus { top: 0.5rem; }
.site-header { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; gap: 0.5rem; align-items: center; font-weight: 700; color: var(--text); text-decoration: none; }
.lang { font-size: 0.9rem; }
main { max-width: 46rem; margin: 0 auto; padding: 1.25rem 1rem 2rem; }
h1 { font-size: clamp(1.6rem, 6vw, 2.25rem); line-height: 1.2; margin: 0.5rem 0; overflow-wrap: anywhere; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2rem 0 0.5rem; scroll-margin-top: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.875rem; margin: 0; }
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li { display: flex; }
.crumbs li + li::before { content: '›'; margin: 0 0.5rem; flex: none; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; margin: 1.25rem 0; }
.toc-title { margin: 0 0 0.25rem; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.25rem; }
p, li { overflow-wrap: break-word; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; overflow-wrap: anywhere; }
pre { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; overflow-x: auto; margin: 1rem 0; line-height: 1.5; }
pre code { background: none; padding: 0; overflow-wrap: normal; white-space: pre; font-size: 0.85rem; }
pre.wrap code { white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: 0.875rem; margin-top: -0.5rem; }
.note { border: 1px solid var(--border); border-left: 4px solid var(--info); border-radius: 8px; background: var(--surface); padding: 0.5rem 1rem; margin: 1rem 0; }
.note-warning { border-left-color: var(--warning); }
.note p { margin: 0.35rem 0; }
.note-title { font-weight: 700; }
.cta { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem; margin: 2rem 0; }
.cta h2 { margin-top: 0; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.button:hover { filter: brightness(1.08); }
.guide-list { list-style: none; padding: 0; }
.guide-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.25rem 1rem 0.5rem; margin: 0 0 1rem; }
.guide-list h2 { font-size: 1.15rem; margin: 0.5rem 0 0; }
.site-footer { border-top: 1px solid var(--border); padding: 1rem; text-align: center; color: var(--muted); font-size: 0.875rem; }
.site-footer p { margin: 0.25rem 0; }
