/* Pages légales (cgu, confidentialite, mentions-legales ; en français, puis traduites en <page>.<langue>.html) : servies telles quelles, hors de l'app. */
:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --text: #1f2a20;
  --muted: #5b665c;
  --line: #e2ded2;
  --brand: #2f6136;
  --accent: #f4a259;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141a15;
    --surface: #1c241d;
    --text: #e6ebe4;
    --muted: #a3ada2;
    --line: #2f3a30;
    --brand: #8bc34a;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
main { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
header a { color: var(--brand); font-weight: 700; text-decoration: none; font-size: 1.1rem; }
header img { width: 36px; height: 36px; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: 16px 0 4px; }
h2 { font-size: 1.25rem; margin: 40px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
h3 { font-size: 1.05rem; margin: 24px 0 4px; }
.updated { color: var(--muted); margin: 0 0 24px; }
/* Traductions : la version française fait foi. */
.translation { color: var(--muted); font-size: 0.9rem; margin: -16px 0 24px; }
header .langs { margin-left: auto; display: flex; gap: 12px; }
header .langs a { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
header .langs a[aria-current] { color: var(--brand); }
a { color: var(--brand); }
.summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  padding: 12px 20px;
}
.summary ul { padding-left: 20px; margin: 8px 0; }
.table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 8px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.todo { background: var(--accent); color: #1f2a20; padding: 0 4px; border-radius: 3px; }
footer { margin-top: 48px; color: var(--muted); font-size: 0.9rem; }

/* Téléphone : chaque ligne de tableau devient une fiche, chaque cellule précédée du titre de sa colonne. */
@media (max-width: 600px) {
  table, tbody, tr, td { display: block; }
  thead { display: none; }
  tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 4px 16px; }
  td + td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
}
