/* Pages légales statiques : volontairement indépendantes d'Angular et de Keycloak,
   pour rester lisibles sans être connecté (l'application impose le login). Aucune ressource externe. */
:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #5f5f5b;
  --accent: #1d9e75;
  --accent-dark: #085041;
  --line: rgba(0, 0, 0, 0.12);
  --todo-bg: #fff3bf;
  --todo-text: #5c4400;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --text: #ecebe7;
    --muted: #a3a29c;
    --accent: #3cc397;
    --accent-dark: #7ee0bf;
    --line: rgba(255, 255, 255, 0.16);
    --todo-bg: #4a3b00;
    --todo-text: #ffe9a3;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

main {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

nav.top { margin-bottom: 1.5rem; font-size: 0.9rem; }

a { color: var(--accent-dark); text-underline-offset: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 2rem; line-height: 1.2; margin: 0 0 0.25rem; }
h2 { font-size: 1.15rem; margin: 2.25rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
h3 { font-size: 1rem; margin: 1.25rem 0 0.25rem; }

.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.5rem; }

p, ul, ol, table { margin: 0.5rem 0; }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; min-width: 34rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }

/* Information à renseigner par l'éditeur avant mise en ligne : volontairement très visible. */
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 0.25em; border-radius: 3px; }

footer.pages { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
footer.pages a { margin-right: 1rem; }
