/* Korda V115 — administration : système global de blocs et de couleurs pour toutes les rubriques. Limité à #view-espace.sa. Retirer ce fichier ramène la V114. */
html body #view-espace.sa:not(#k1):not(#k2){--kr-fam:#0F2A3D}
html body #view-espace.sa:not(#k1):not(#k2)[data-fam="teal"]{--kr-fam:#14756C}
html body #view-espace.sa:not(#k1):not(#k2)[data-fam="orange"]{--kr-fam:#BF4F1A}
html body #view-espace.sa:not(#k1):not(#k2)[data-fam="red"]{--kr-fam:#A8321C}
html body #view-espace.sa:not(#k1):not(#k2)[data-fam="ink"]{--kr-fam:#222222}
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2){--kr-fam:#17384F}
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2)[data-fam="teal"]{--kr-fam:#0F5C55}
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2)[data-fam="orange"]{--kr-fam:#BF4F1A}
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2)[data-fam="red"]{--kr-fam:#A8321C}
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2)[data-fam="ink"]{--kr-fam:#2A3943}

/* 1. Bandeau de rubrique (le tableau de bord garde son titre simple, déjà validé) */
html body #view-espace.sa:not(#k1):not(#k2) .kr-band{background:var(--kr-fam);border-radius:12px;padding:24px 28px;margin:0 0 16px;box-shadow:var(--kr-sh-float)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-band h2#esp-titre{margin:0;color:#FFFFFF!important;font-size:28px;line-height:34px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-band p#esp-kicker{margin:2px 0 0;color:rgba(255,255,255,.88)!important}
html body #view-espace.sa:not(#k1):not(#k2) .kr-band p#esp-kicker *{color:inherit!important}
html[data-theme="dark"] html body #view-espace.sa:not(#k1):not(#k2) .kr-band{box-shadow:none}

/* 2. Repère de couleur devant chaque titre de bloc */
html body #view-espace.sa:not(#k1):not(#k2) .esp-main .esp-blk h3:not(.kr-sans)::before{content:"";display:inline-block!important;width:10px;height:10px;border-radius:3px;margin-right:10px;background:var(--kr-fam);vertical-align:middle;position:relative;top:-1px}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main .esp-blk .sa-eng h3::before{display:none!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main .esp-blk .kr-act h3::before,html body #view-espace.sa:not(#k1):not(#k2) .esp-main .esp-blk .kr-pubs h3::before{display:none!important}

/* 3. Filtres actifs : la couleur de la famille */
html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(.sa-seg button.on,.sa-seg-l button.on,.kp-chips button.on,.k104a-chip.on,.sa-tg.on,.sa-parnav button.on,.amn-tab.on,.amn-tab[aria-selected="true"]){background:var(--kr-fam)!important;border-color:var(--kr-fam)!important;color:#FFFFFF!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main .sa-vtile.on{box-shadow:inset 0 0 0 2px var(--kr-fam)!important}

/* 4. Chiffres clés de toutes les rubriques : coin de couleur qui remplit la carte au survol (comme le tableau de bord) */
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi){--kc:var(--kr-c1);position:relative;overflow:hidden;isolation:isolate}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi):nth-child(2){--kc:var(--kr-c2)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi):nth-child(3){--kc:var(--kr-c3)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi):nth-child(4){--kc:var(--kr-c4)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi)::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--kc);clip-path:circle(58px at 0 0);transition:clip-path .9s cubic-bezier(.25,.8,.25,1);pointer-events:none;display:block!important;top:0!important;left:0!important;right:0!important;bottom:0!important;width:auto!important;height:auto!important;border-radius:0!important;opacity:1!important;transform:none!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi):is(:hover,:focus-visible,:active)::before{clip-path:circle(160% at 0 0)}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi) .sa-ico{background:transparent!important;border:0!important;color:var(--kr-kt)!important;box-shadow:none!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi) .sa-kl{margin-left:14px}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi):is(:hover,:focus-visible,:active) :is(.sa-kl,.sa-v,.sa-ks,.sa-evo,.sa-chip,p,span,b,small){color:var(--kr-kt)!important;border-color:transparent}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi):is(:hover,:focus-visible,:active) :is(.sa-evo,.sa-chip){background:rgba(255,255,255,.18)!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi) :is(.sa-kl,.sa-v,.sa-ks){transition:color .5s ease}
@media (prefers-reduced-motion:reduce){ html body #view-espace.sa:not(#k1):not(#k2) :is(.kr-kpis,.sa-kpis3,.sa-kpis4)>:is(.kr-kpi,.sa-kpi)::before{transition:none!important} }
