/* =====================================================================
   BétoLab — PALETTES DE COULEURS
   Choix dans Paramètres › Apparence (appliqué à tous les utilisateurs).
   Chaque palette : bandeau (--band, --band-2), couleur d'action (--accent),
   texte sur l'accent (--accent-ink), fond léger de l'accent (--accent-soft).
   ===================================================================== */
:root,:root[data-theme="ocean"]{--band:#0E2A47;--band-2:#16406B;--band-fg:#EAF2FA;--accent:#0B6BCB;--accent-ink:#FFFFFF;--accent-soft:#E3EFFB;--tint:#F2F6FA}
:root[data-theme="chantier"]{--band:#1F2125;--band-2:#33363C;--band-fg:#F5F2EE;--accent:#C2410C;--accent-ink:#FFFFFF;--accent-soft:#FDEBDD;--tint:#F7F4F1}
:root[data-theme="foret"]{--band:#12352B;--band-2:#1D4E3F;--band-fg:#E9F5F0;--accent:#13795B;--accent-ink:#FFFFFF;--accent-soft:#DDF1E8;--tint:#F1F6F4}
:root[data-theme="prune"]{--band:#2A1B47;--band-2:#3E2A66;--band-fg:#F1ECFA;--accent:#6D3FC0;--accent-ink:#FFFFFF;--accent-soft:#ECE4FA;--tint:#F5F3F9}
:root[data-theme="classique"]{--band:#1F2A27;--band-2:#2C3B37;--band-fg:#EEF2F0;--accent:#1D58B8;--accent-ink:#FFFFFF;--accent-soft:#E2EBF8;--tint:#ECEFEE}

/* mode sombre du système (pas pour les pages marquées .no-dark) */
@media (prefers-color-scheme: dark){
  :root:not(.no-dark),:root[data-theme="ocean"]:not(.no-dark){--band:#071525;--band-2:#0D2340;--band-fg:#E3ECF6;--accent:#6AAEF5;--accent-ink:#06121F;--accent-soft:#15283F;--tint:#0E141B}
  :root[data-theme="chantier"]:not(.no-dark){--band:#0E0F11;--band-2:#1B1D21;--band-fg:#EFEAE4;--accent:#FF9A57;--accent-ink:#1F0E02;--accent-soft:#3A2312;--tint:#131211}
  :root[data-theme="foret"]:not(.no-dark){--band:#071A14;--band-2:#0E2A21;--band-fg:#E2F1EA;--accent:#4FC79A;--accent-ink:#04170F;--accent-soft:#12302A;--tint:#0D1412}
  :root[data-theme="prune"]:not(.no-dark){--band:#120A22;--band-2:#1F1438;--band-fg:#EEE8F8;--accent:#B596F2;--accent-ink:#160B2B;--accent-soft:#2A2142;--tint:#121019}
  :root[data-theme="classique"]:not(.no-dark){--band:#0B0F0E;--band-2:#151C1A;--band-fg:#E5ECE8;--accent:#78A2EC;--accent-ink:#0D1626;--accent-soft:#1C2A42;--tint:#111614}
}

/* sélecteur de langue FR / EN */
.langsw{display:inline-flex;border:1px solid #ffffff44;border-radius:99px;overflow:hidden}
.langsw button{background:transparent;color:inherit;border:0;padding:4px 10px;font:600 12px/1.2 system-ui,sans-serif;letter-spacing:.06em;cursor:pointer;opacity:.7}
.langsw button[aria-pressed="true"]{background:var(--accent);color:var(--accent-ink);opacity:1}
.langsw button:hover{opacity:1}
.langsw button:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
