/* Thème de Map Search v1 (direction A « outil pro sombre », et sa version claire). Voir DESIGN.md.
   Toutes les pages utilisent les mêmes noms de couleurs (--bg, --card, --txt…) : ce fichier les remplace selon le thème
   choisi dans Réglages > Affichage (html[data-theme], posé par static/theme.js avant l'affichage). */
html[data-theme="sombre"]{color-scheme:dark;
  --bg:#0e0f11;--card:#141518;--card2:#1b1d21;--champ:#0b0c0e;--bd:#26282d;--bd2:#34373e;
  --txt:#e8e8ea;--mut:#8b8f98;--acc:#7aa2f7;--acc2:#93b4f8;--on-acc:#0e0f11;--acc-doux:rgba(122,162,247,.12);
  --ok:#4fb37f;--ko:#e06c6c;--warn:#d9a441;--serie:#7aa2f7;--grille:#26282d;--hausse:#4fb37f;--baisse:#e06c6c;
  --menu:#0b0c0e;--menu-txt:#a3a7b0;--menu-actif:#1b1d21;--r:8px}
html[data-theme="clair"]{color-scheme:light;
  --bg:#f6f7f8;--card:#ffffff;--card2:#f1f2f4;--champ:#ffffff;--bd:#e3e5e8;--bd2:#cfd2d8;
  --txt:#16181c;--mut:#666b75;--acc:#3a5fd0;--acc2:#2f50b8;--on-acc:#ffffff;--acc-doux:rgba(58,95,208,.08);
  --ok:#1f8a5a;--ko:#c24141;--warn:#9a6410;--serie:#3a5fd0;--grille:#e3e5e8;--hausse:#1f8a5a;--baisse:#c24141;
  --menu:#ffffff;--menu-txt:#555a64;--menu-actif:#f1f2f4;--r:8px}
html[data-theme] body{background:var(--bg);color:var(--txt);-webkit-font-smoothing:antialiased;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
/* chiffres alignés, traits fins, un seul arrondi discret */
html[data-theme] .gros,html[data-theme] .kpi b,html[data-theme] .kpi .val,html[data-theme] td{font-variant-numeric:tabular-nums}
html[data-theme] .carte,html[data-theme] .card,html[data-theme] .kpi,html[data-theme] section.version,html[data-theme] main>section{border-radius:8px;box-shadow:none}
html[data-theme] input,html[data-theme] select,html[data-theme] textarea{background:var(--champ);color:var(--txt);border-color:var(--bd)}
html[data-theme] ::placeholder{color:var(--mut)}
@media (prefers-reduced-motion: reduce){html[data-theme] *{transition:none!important}}
/* bandeau des relances (page Prospects) : discret, pas un aplat de couleur */
html[data-theme] .bandeau{background:var(--card);color:var(--warn);border:1px solid color-mix(in srgb,var(--warn) 45%,transparent);border-radius:8px;font-weight:500}
html[data-theme] .bandeau.retard{background:var(--card);color:var(--ko);border-color:color-mix(in srgb,var(--ko) 45%,transparent)}
