:root{--brand-blue:#009FE3;--brand-navy:#29235c;--brand-rose:#D1338A;--brand-teal:#38B6AB;--brand-yellow:#FFD500;--brand-orange:#F39204;--brand-violet:#9E1F6D;--part-faible:#d73027;--part-moyenne:#fee08b;--part-forte:#1a9850;--alerte:#F39204;--cat-2:#9E1F6D;--radius-control:6px;--radius-card:10px;--sp-1:4px;--sp-2:8px;--sp-3:12px;--sp-4:16px;--sp-6:24px;--sp-8:32px}:root[data-theme=light]{color-scheme:light;--bg:#F6F2EB;--surface:#FBFAF7;--surface-2:#EEEBE4;--border:#E4E0D7;--text:#1B2733;--text-muted:#5B6B7B;--sidebar-bg:#143C6B;--sidebar-fg:#C5D3E3;--sidebar-active-bg:#009EE0;--sidebar-active-fg:#ffffff;--accent:#009EE0;--accent-fg:#ffffff;--focus:#009EE0;--chart-line:#0089C4;--accent-text:#006E9C;--shadow-card:0 1px 2px rgba(20,60,107,.06), 0 2px 8px rgba(20,60,107,.06)}:root[data-theme=dark]{color-scheme:dark;--bg:#0D1E33;--surface:#13283F;--surface-2:#18314C;--border:#22405F;--text:#EEF3F8;--text-muted:#8FA3BA;--sidebar-bg:#081629;--sidebar-fg:#A9BBCF;--sidebar-active-bg:#009EE0;--sidebar-active-fg:#ffffff;--accent:#009EE0;--accent-fg:#ffffff;--focus:#36C5F0;--chart-line:#36C5F0;--accent-text:#36C5F0;--shadow-card:none}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.5}.tnum{font-variant-numeric:tabular-nums}.u-muted{color:var(--text-muted)}.u-label{font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}a{color:var(--accent)}.shell{display:flex;min-height:100vh}.sidebar{width:200px;background:var(--sidebar-bg);color:var(--sidebar-fg);padding:var(--sp-3);display:flex;flex-direction:column;gap:2px}.sidebar-logo{color:#fff;font-weight:800;font-size:16px;margin-bottom:var(--sp-3)}.sidebar-link{color:var(--sidebar-fg);text-decoration:none;padding:8px 10px;border-radius:var(--radius-control)}.sidebar-link.is-active{background:var(--sidebar-active-bg);color:var(--sidebar-active-fg);font-weight:600}.sidebar-section{margin-top:var(--sp-3);padding:0 10px;color:var(--sidebar-fg);opacity:.7}.shell-main{flex:1;display:flex;flex-direction:column;min-width:0}.shell-top{display:flex;align-items:center;gap:var(--sp-3);padding:var(--sp-2) var(--sp-4);background:var(--surface);border-bottom:1px solid var(--border)}.filterbar{display:flex;gap:var(--sp-2);flex-wrap:wrap;flex:1}.shell-user{display:flex;align-items:center;gap:var(--sp-2);margin-left:auto}.shell-identite{font-size:13px;font-weight:600;color:var(--text);white-space:nowrap}.shell-maj{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:600;color:var(--text);background:var(--surface-2);border-radius:999px;padding:5px 12px}.shell-maj:before{content:"";width:7px;height:7px;border-radius:50%;background:#1a9850;flex:none}.theme-toggle{background:transparent;border:1px solid var(--border);color:var(--text);border-radius:999px;padding:4px 10px;cursor:pointer}.shell-content{padding:var(--sp-4)}.shell-instance{font-weight:600;padding:.15rem .6rem;border:1px solid currentColor;border-radius:999px;white-space:nowrap}.btn{font:inherit;border:1px solid transparent;border-radius:var(--radius-control);padding:6px 12px;cursor:pointer}.btn-accent{background:var(--accent);color:var(--accent-fg)}.btn-outline{background:transparent;color:var(--accent-text);border-color:var(--accent-text)}.btn-ghost{background:transparent;color:var(--text);border-color:var(--border)}.btn-danger{background:var(--brand-rose);color:#fff}.segmented{display:inline-flex;flex-wrap:nowrap;border:1px solid var(--border);border-radius:var(--radius-control);overflow:hidden;vertical-align:middle}.segmented .btn{border:0;border-radius:0;padding:4px 10px;font-size:12px;white-space:nowrap}.segmented .btn+.btn{border-left:1px solid var(--border)}.segmented .btn:focus-visible{outline-offset:-2px}.badge{display:inline-block;border-radius:5px;padding:2px 7px;font-size:12px;background:var(--surface-2);color:var(--text)}.statcard{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);padding:var(--sp-3);box-shadow:var(--shadow-card)}.statcard-accent{background:var(--accent);color:var(--accent-fg);border-color:transparent}.statcard-accent .u-label{color:var(--accent-fg);opacity:.9}.statcard-val{font-size:24px;font-weight:700}.statcard-muted{background:var(--surface-2);border-style:dashed}.statcard-muted .u-label{color:var(--text-muted)}.statcard-muted .statcard-val{color:var(--text-muted);font-weight:600}.spinner{width:22px;height:22px;border:3px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.skeleton{background:var(--surface-2);border-radius:var(--radius-card);animation:pulse 1.2s ease-in-out infinite}@keyframes pulse{50%{opacity:.55}}.state{padding:var(--sp-6);text-align:center;color:var(--text-muted);background:var(--surface);border:1px dashed var(--border);border-radius:var(--radius-card)}.toast-viewport{position:fixed;bottom:16px;right:16px;display:flex;flex-direction:column;gap:8px;z-index:200;list-style:none;margin:0;padding:0}.toast{background:var(--surface);border:1px solid var(--border);border-left:4px solid var(--accent);border-radius:var(--radius-card);padding:10px 14px;box-shadow:var(--shadow-card);color:var(--text)}.u-tab{font:inherit;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:var(--radius-control);padding:6px 14px;cursor:pointer}.u-tab--actif{background:var(--accent);color:var(--accent-fg);border-color:transparent}.champ-mdp{position:relative;display:block}.champ-mdp>input.champ-mdp-saisie{width:100%;padding-right:34px}.champ-mdp-oeil{position:absolute;top:50%;right:4px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;padding:4px;background:none;border:none;border-radius:var(--radius-control);color:var(--text-muted);cursor:pointer}.champ-mdp-saisie::-ms-reveal,.champ-mdp-saisie::-ms-clear{display:none}.champ-mdp-oeil:hover{color:var(--text)}.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:var(--bg)}.auth-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:var(--sp-6);width:340px;display:flex;flex-direction:column;gap:var(--sp-3)}.auth-titre{font-size:18px;margin:0 0 var(--sp-2);color:var(--text)}.auth-champ{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--text-muted)}.auth-champ input{font:inherit;padding:8px;border:1px solid var(--border);border-radius:var(--radius-control);background:var(--bg);color:var(--text)}.auth-erreur{color:var(--brand-rose);font-size:13px;margin:0}.auth-lien{font-size:13px}.dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f123a73;display:flex;align-items:center;justify-content:center;z-index:100}
