/* Feuille de style des pages publiques statiques (générées par scripts/build-public.mjs). */
:root {
  color-scheme: light dark;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #d1d5db;
  --accent: #1d4ed8;
  --accent-text: #ffffff;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --surface: #1e293b;
    --text: #e5e7eb;
    --muted: #cbd5e1;
    --border: #475569;
    --accent: #93c5fd;
    --accent-text: #0f172a;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
}
a { color: var(--accent); transition: color 150ms ease-out; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 8px; top: 8px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius); z-index: 1; }

.site-header, .site-footer { background: var(--surface); border-color: var(--border); border-style: solid; border-width: 0; padding: 12px 16px; }
.site-header { border-bottom-width: 1px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.site-footer { border-top-width: 1px; margin-top: 64px; color: var(--muted); font-size: 0.9rem; text-align: center; }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
/* Le logo est dessiné pour un fond clair. */
@media (prefers-color-scheme: dark) { .logo { background: #f8fafc; padding: 4px 8px; border-radius: var(--radius); } }
nav[aria-label="Navigation principale"], .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.site-footer nav { justify-content: center; }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius); }
.site-header nav a { text-decoration: none; font-weight: 500; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { text-decoration: underline; }
a.button { background: var(--accent); color: var(--accent-text); padding: 0 16px; }
a.button:hover { filter: brightness(1.1); text-decoration: none; }
a.button:active { filter: brightness(0.9); }

main { max-width: 72ch; margin: 0 auto; padding: 24px 16px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 16px; padding: 0; font-size: 0.9rem; color: var(--muted); }
.breadcrumb li + li::before { content: "›"; margin-right: 4px; }

h1 { font-size: clamp(1.75rem, 1.4rem + 1.8vw, 2.5rem); line-height: 1.2; margin: 0 0 24px; }
h2 { font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.6rem); line-height: 1.3; margin: 48px 0 16px; }
h3 { font-size: 1.15rem; margin: 32px 0 8px; }
img { max-width: 100%; height: auto; border-radius: var(--radius); }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
