/* Maisonnée — thèmes. html[data-brand] × html[data-mode] (light | dark). Chaque thème redéfinit les mêmes jetons. */
:root,
html[data-brand="lin"]{
  --bg:#F8F6F2; --surface:#FFFFFF; --surface-2:#F2EEE8; --sunken:#EFEAE2;
  --ink:#10302A; --ink-2:#4A5C55; --muted:#7D8781; --line:#ECE7DF; --line-2:#DED7CB;
  --accent:#0F6E56; --accent-ink:#FFFFFF; --accent-soft:#E4F1EB; --accent-text:#0F6E56; --spark:#FF1493;
  --display:"Playfair Display",Georgia,serif; --display-w:600; --display-style:italic; --display-ls:0;
  --body:"Manrope",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --note-font:"Playfair Display",Georgia,serif; --note-style:italic; --note-size:17px; --note-w:500;
  --r-lg:18px; --r-md:12px; --r-sm:9px; --r-pill:99px;
  --lab-tt:none; --lab-ls:0;
}
html[data-brand="sauge"]{
  --bg:#F5F7F6; --surface:#FFFFFF; --surface-2:#EEF3F1; --sunken:#E9F0ED;
  --ink:#0B2B25; --ink-2:#3E5A53; --muted:#71857F; --line:#E3EAE7; --line-2:#D3DDD9;
  --accent:#0F6E56; --accent-ink:#FFFFFF; --accent-soft:#E1F5EE; --accent-text:#0F6E56; --spark:#D85A30;
  --display:"Sora",ui-sans-serif,system-ui,sans-serif; --display-w:600; --display-style:normal; --display-ls:-.02em;
  --body:"Manrope",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --note-font:"Manrope",ui-sans-serif,system-ui,sans-serif; --note-style:normal; --note-size:14px; --note-w:700;
  --r-lg:16px; --r-md:11px; --r-sm:8px; --r-pill:10px;
}
html[data-brand="pivoine"]{
  --bg:#FBF8F5; --surface:#FFFFFF; --surface-2:#F7F0EA; --sunken:#F4ECE3;
  --ink:#3B0A23; --ink-2:#6B3A52; --muted:#957181; --line:#F0E6DD; --line-2:#E5D7CB;
  --accent:#FF1493; --accent-ink:#FFFFFF; --accent-soft:#FFE6F2; --accent-text:#D10F7A; --spark:#FFC970;
  --display:"Playfair Display",Georgia,serif; --display-w:500; --display-style:normal; --display-ls:0;
  --body:"Montserrat",ui-sans-serif,system-ui,sans-serif;
  --note-font:"Playfair Display",Georgia,serif; --note-style:italic; --note-size:17px; --note-w:500;
  --r-lg:22px; --r-md:16px; --r-sm:12px; --r-pill:99px;
  --lab-tt:uppercase; --lab-ls:.12em;
}
html[data-brand="galet"]{
  --bg:#F7F7F8; --surface:#FFFFFF; --surface-2:#F1F1F3; --sunken:#ECECEF;
  --ink:#17171A; --ink-2:#4A4A52; --muted:#85858E; --line:#E8E8EB; --line-2:#DADADF;
  --accent:#17171A; --accent-ink:#FFFFFF; --accent-soft:#EDEDF0; --accent-text:#17171A; --spark:#FF5A36;
  --display:"Inter",ui-sans-serif,system-ui,sans-serif; --display-w:700; --display-style:normal; --display-ls:-.025em;
  --body:"Inter",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
  --note-font:"Inter",ui-sans-serif,system-ui,sans-serif; --note-style:normal; --note-size:14px; --note-w:600;
  --r-lg:14px; --r-md:10px; --r-sm:7px; --r-pill:8px;
}
/* --- modes sombres --- */
html[data-mode="dark"]{ color-scheme:dark }
html[data-mode="dark"],html[data-mode="dark"][data-brand="lin"]{
  --bg:#111412; --surface:#191C1A; --surface-2:#212522; --sunken:#151816;
  --ink:#F2EFE8; --ink-2:#C3C8C0; --muted:#8C958C; --line:#262A27; --line-2:#323733;
  --accent:#5CC9A4; --accent-ink:#06231B; --accent-soft:#17332A; --accent-text:#7DD8B8; --spark:#FF4FA8;
}
html[data-mode="dark"][data-brand="sauge"]{
  --bg:#0C1412; --surface:#121C19; --surface-2:#182521; --sunken:#0F1816;
  --ink:#E6F2EE; --ink-2:#A9C2BA; --muted:#7F968F; --line:#1E2C28; --line-2:#2A3A35;
  --accent:#4FBF98; --accent-ink:#04211A; --accent-soft:#15342B; --accent-text:#7DD8B8; --spark:#E8774F;
}
html[data-mode="dark"][data-brand="pivoine"]{
  --bg:#170D12; --surface:#21141B; --surface-2:#2B1A23; --sunken:#1C1016;
  --ink:#FAF2E7; --ink-2:#E3CBD5; --muted:#A98A9A; --line:#33212A; --line-2:#442E39;
  --accent:#FF4FA8; --accent-ink:#2A0717; --accent-soft:#45172F; --accent-text:#FF7DBE; --spark:#FFC970;
}
html[data-mode="dark"][data-brand="galet"]{
  --bg:#0E0E10; --surface:#161619; --surface-2:#1D1D21; --sunken:#121215;
  --ink:#F2F2F4; --ink-2:#B9B9C1; --muted:#7F7F89; --line:#25252A; --line-2:#313137;
  --accent:#F2F2F4; --accent-ink:#111113; --accent-soft:#26262B; --accent-text:#F2F2F4; --spark:#FF7A5C;
}
/* --- couleurs fonctionnelles communes (catégories, états) --- */
:root{
  --cat-q:#2a78d6; --cat-m:#1baf7a; --cat-r:#eb6834;
  --pi-q:#E3EEFC; --pi-m:#DDF4EA; --pi-r:#FDE7D8; --pi-topic:#EEE8FB; --pi-ink:#26231F;
  --ok:#13875F; --danger:#C23A2F; --warn:#A86A00; --now:#D8412F; --focus:var(--accent);
  --shadow-sm:0 1px 2px rgba(16,24,20,.05);
  --shadow:0 1px 2px rgba(16,24,20,.04),0 8px 24px -12px rgba(16,24,20,.12);
  --shadow-lg:0 24px 60px -20px rgba(16,24,20,.28);
}
html[data-mode="dark"]{
  --cat-q:#4b90e8; --cat-m:#2cc28c; --cat-r:#f07a48;
  --pi-q:#1C2A3D; --pi-m:#16302A; --pi-r:#3A2519; --pi-topic:#2A2440; --pi-ink:#EDEBE6;
  --ok:#3DBB8A; --danger:#E5695E; --warn:#E0A33A; --now:#F06A58;
  --shadow-sm:0 1px 2px rgba(0,0,0,.3);
  --shadow:0 1px 2px rgba(0,0,0,.3),0 10px 28px -12px rgba(0,0,0,.5);
  --shadow-lg:0 24px 60px -20px rgba(0,0,0,.7);
}
