/* Pages légales et aide de Kairo. Couleurs : tokens de la direction C (packages/theme), clair et sombre.
   Police auto-hébergée : aucune requête vers un tiers depuis ces pages. */
@font-face { font-family: 'Bricolage'; font-weight: 400; font-display: swap; src: url('fonts/BricolageGrotesque_400Regular.ttf') format('truetype'); }
@font-face { font-family: 'Bricolage'; font-weight: 600; font-display: swap; src: url('fonts/BricolageGrotesque_600SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Bricolage'; font-weight: 800; font-display: swap; src: url('fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); }

:root {
  --bg: #E7EFE2;
  --text: #0F2A1F;
  --muted: #43584C;
  --card: #FFFFFF;
  --hero: #0F3D2E;
  --hero-text: #F1F6EC;
  --line: #C3D3C4;
  --chip: #C8F169;
  --on-chip: #0F2A1F;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A2018;
    --text: #EAF3E4;
    --muted: #9DB6A8;
    --card: #133126;
    --hero: #1A4636;
    --hero-text: #EAF3E4;
    --line: #24443A;
    /* Règle de nuit : pas de citron vert hors du bouton principal (il n'y en a pas ici). */
    --chip: #2C5A47;
    --on-chip: #CFE3D3;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Bricolage', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }

header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.lang { font-size: 14px; color: var(--muted); }
.lang a { color: inherit; }

h1 { font-weight: 800; font-size: clamp(30px, 7vw, 40px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 8px; }
h2 { font-weight: 800; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; margin: 40px 0 10px; }
h3 { font-weight: 600; font-size: 18px; margin: 24px 0 6px; }
p, ul { margin: 0 0 12px; }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }
a { color: inherit; text-underline-offset: 3px; }
strong { font-weight: 600; }
.updated { color: var(--muted); font-size: 15px; margin-bottom: 24px; }

.summary { background: var(--hero); color: var(--hero-text); border-radius: 24px; padding: 22px 22px 12px; margin: 8px 0 8px; }
.summary h2 { margin-top: 0; font-size: 20px; }
.summary ul { padding-left: 20px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px 8px; margin: 12px 0; }
.card h3 { margin-top: 0; }

.todo { background: var(--chip); color: var(--on-chip); border-radius: 6px; padding: 0 6px; font-weight: 600; }

nav.toc { font-size: 15px; color: var(--muted); }
nav.toc ol { padding-left: 22px; margin: 0; }

footer { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
