/* Feuille de style des pages legales (mentions-legales.html, confidentialite.html).
   Reprend les memes jetons de couleur et de typographie que la page d'accueil. */

:root {
  --ink-900: #142035;
  --ink-700: #3D4C6B;
  --ink-500: #6C7796;
  --paper-0: #FAF7F0;
  --paper-100: #F0EAD9;
  --line-200: #DDD1B0;
  --accent-500: #F2672A;
  --accent-600: #D14F19;
  --warn-bg: #FFF3E4;
  --warn-border: #F2672A;

  --surface: var(--paper-0);
  --surface-card: #FFFFFF;
  --surface-sunken: var(--paper-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-700);
  --text-faint: var(--ink-500);
  --border: var(--line-200);

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink-900: #F1EADA;
    --ink-700: #C9BEA4;
    --ink-500: #948A70;
    --paper-0: #10161F;
    --paper-100: #171F2C;
    --line-200: #2B3646;
    --accent-500: #FF7A3D;
    --accent-600: #FFA467;
    --warn-bg: #2A1B10;
    --warn-border: #FF7A3D;

    --surface: var(--paper-0);
    --surface-card: #141C28;
    --surface-sunken: var(--paper-100);
    --text: var(--ink-900);
    --text-muted: var(--ink-700);
    --text-faint: var(--ink-500);
    --border: var(--line-200);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink-900: #F1EADA;
  --ink-700: #C9BEA4;
  --ink-500: #948A70;
  --paper-0: #10161F;
  --paper-100: #171F2C;
  --line-200: #2B3646;
  --accent-500: #FF7A3D;
  --accent-600: #FFA467;
  --warn-bg: #2A1B10;
  --warn-border: #FF7A3D;

  --surface: var(--paper-0);
  --surface-card: #141C28;
  --surface-sunken: var(--paper-100);
  --text: var(--ink-900);
  --text-muted: var(--ink-700);
  --text-faint: var(--ink-500);
  --border: var(--line-200);
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 2rem; }
@media (max-width: 640px) { .wrap { padding: 0 1.25rem; } }

header.site { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-decoration: none; color: var(--text); }
.logo .dot { color: var(--accent-500); }
.back { font-size: 0.9rem; color: var(--text-muted); text-decoration: none; }
.back:hover { color: var(--accent-600); }

main { padding: 3.25rem 0 4rem; }
h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 600; margin: 0 0 0.4em; text-wrap: balance; }
h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin: 2.4rem 0 0.6rem; }
p, li { color: var(--text-muted); }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; margin: 0 0 1rem; }
li { margin-bottom: 0.4rem; }
a { color: var(--accent-600); }
strong { color: var(--text); }

.updated { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; }

.todo {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn-border);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.15rem;
  margin: 1.2rem 0;
}
.todo p { margin: 0; color: var(--text); font-size: 0.94rem; }
.todo .tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-600);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.champ {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-sunken);
  border: 1px dashed var(--border);
  border-radius: 5px;
  padding: 0.1em 0.45em;
  color: var(--text-faint);
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1rem; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
td { color: var(--text-muted); }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--border); padding: 1.6rem 0; font-size: 0.85rem; color: var(--text-faint); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: inherit; text-decoration: none; }
footer.site a:hover { color: var(--accent-600); }
