/* Korda V114 — administration : blocs séparés sur fond gris (plus de grand panneau continu), graphiques en courbes, menu de gauche, animations plus lentes.
   Limité à l'administration (#view-espace.sa). Retirer ce fichier ramène la V113. */
html body #view-espace.sa:not(#k1):not(#k2){--kr-nav:#0F2A3D}
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2){--kr-nav:#17384F}

/* 1. Plus de grande carte : chaque bloc est sa propre carte blanche sur la page grise */
html body #view-espace.sa:not(#k1):not(#k2) .esp-main{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(.sa-card,.sa-kpi,.esp-card,.esp-stat,.hsa-card,.sa-listcard,.kd-card){background:var(--kr-card)!important;border:1px solid var(--kr-line)!important;box-shadow:var(--kr-sh-float)!important;border-radius:12px}
html[data-theme="dark"] html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(.sa-card,.sa-kpi,.esp-card,.esp-stat,.hsa-card,.sa-listcard,.kd-card){box-shadow:none!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main :is(.sa-card,.sa-kpi,.esp-card,.esp-stat) :is(.sa-card,.sa-kpi,.esp-card,.esp-stat){background:var(--kr-bloc)!important;border-color:transparent!important;box-shadow:none!important}
html body #view-espace.sa:not(#k1):not(#k2) .kr-pubs{background:var(--kr-card);border:1px solid var(--kr-line);border-radius:12px;box-shadow:var(--kr-sh-float);padding:20px;margin-top:0;gap:14px;min-width:0}
html[data-theme="dark"] html body #view-espace.sa:not(#k1):not(#k2) .kr-pubs{box-shadow:none}
html body #view-espace.sa:not(#k1):not(#k2) .esp-main .sa-card{padding:20px}

/* 2. Disposition en rectangles, comme dans la maquette */
html body #view-espace.sa:not(#k1):not(#k2) .kr-dash{gap:16px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-rang{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-r3{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:16px;align-items:stretch}
html body #view-espace.sa:not(#k1):not(#k2) .kr-r3b{display:flex;flex-direction:column;gap:16px;min-width:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-r3>*{min-width:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-acts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
html body #view-espace.sa:not(#k1):not(#k2) .kr-pubs .kr-grille-cartes{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi .sa-v{font-size:24px;line-height:28px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi-v{min-height:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpis>.kr-kpi{padding:16px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-histo-w{min-height:200px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-donut-w,html body #view-espace.sa:not(#k1):not(#k2) .kr-donut{width:150px;height:150px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-donut-c b{font-size:18px;line-height:22px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-src .kr-leg li{font-size:13px}

/* 3. Engagement : bloc plein, bleu marine de la charte */
html body #view-espace.sa:not(#k1):not(#k2) .esp-main .sa-card.sa-eng{background:var(--kr-nav)!important;border-color:transparent!important;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 32px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-eng :is(.sa-h,.sa-sub,.sa-note,span,b,.sa-v,.sa-load,div,p){color:#FFFFFF!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-eng .sa-sub,html body #view-espace.sa:not(#k1):not(#k2) .sa-eng .sa-note,html body #view-espace.sa:not(#k1):not(#k2) .sa-eng-r span{opacity:.82}
html body #view-espace.sa:not(#k1):not(#k2) .sa-eng .sa-v,html body #view-espace.sa:not(#k1):not(#k2) .sa-eng-r b{font-size:30px;line-height:36px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-eng .sa-chip{background:rgba(255,255,255,.16)!important}

/* 4. Activité : trois cartes distinctes, un repère de couleur chacune */
html body #view-espace.sa:not(#k1):not(#k2) .kr-act .sa-h4{display:flex;align-items:center;gap:10px;margin:0 0 6px;font-size:16px;line-height:22px;font-weight:700;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-act .sa-h4::before{content:"";width:10px;height:10px;border-radius:3px;background:var(--kr-c2);flex:none}
html body #view-espace.sa:not(#k1):not(#k2) .kr-act-2 .sa-h4::before{background:var(--kr-c1)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-act-3 .sa-h4::before{background:var(--kr-c3)}
html[data-theme="dark"] html body #view-espace.sa:not(#k1):not(#k2) .kr-act :is(.sa-list,.sa-list li,.sa-list b,.sa-list span){color:var(--kr-ink)}
html[data-theme="dark"] html body #view-espace.sa:not(#k1):not(#k2) .kr-act .sa-list :is(small,.sa-sub,.sa-muted,em){color:var(--kr-mute)}

/* 5. Courbes (même famille que la vidéo : deux courbes lisses, zone teintée, info-bulle au survol) */
html body #view-espace.sa:not(#k1):not(#k2) #kr-evo-corps{flex:1;display:flex;flex-direction:column}
html body #view-espace.sa:not(#k1):not(#k2) .kr-evo{display:flex;flex-direction:column;gap:16px;overflow:visible}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-w{position:relative;flex:1;min-height:200px;padding:8px 0 0 48px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv{position:absolute;left:48px;right:0;top:8px;bottom:28px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-s{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-l{fill:none;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-l1{stroke:var(--kr-d0)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-l2{stroke:var(--kr-ok)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-a{fill:var(--kr-d0);opacity:.09;stroke:none}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cc{position:absolute;top:0;bottom:0;outline:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-guide{position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--kr-deco);opacity:0;transition:opacity .25s ease}
html body #view-espace.sa:not(#k1):not(#k2) .kr-dot{position:absolute;left:50%;width:12px;height:12px;margin:0 0 -6px -6px;box-sizing:border-box;border-radius:50%;border:2px solid var(--kr-card);opacity:0;transform:scale(.6);transition:opacity .25s ease,transform .25s ease}
html body #view-espace.sa:not(#k1):not(#k2) .kr-dot-c{background:var(--kr-d0)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-dot-p{background:var(--kr-ok)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cc:is(:hover,:focus-visible) :is(.kr-guide,.kr-dot){opacity:1;transform:none}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cc:is(:hover,:focus-visible) .kr-tip{opacity:1}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cc:nth-child(2) .kr-tip,html body #view-espace.sa:not(#k1):not(#k2) .kr-cc:nth-child(3) .kr-tip{left:0;transform:translate(0,calc(-100% - 4px))}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cc:last-child .kr-tip,html body #view-espace.sa:not(#k1):not(#k2) .kr-cc:nth-last-child(2) .kr-tip{left:auto;right:0;transform:translate(0,calc(-100% - 4px))}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-ms{position:absolute;left:48px;right:0;bottom:0;height:20px;display:flex}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-ms span{flex:1;text-align:center;font-size:12px;line-height:16px;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-ms .kr-cours{color:var(--kr-ink);font-weight:600}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-w .kr-vide{left:48px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-w.kr-attente .kr-cv-vide{position:absolute;left:48px;right:0;top:8px;bottom:28px;border-radius:8px;background:var(--kr-faint)}
@keyframes krRevele{from{clip-path:inset(-10% 100% -10% 0)}to{clip-path:inset(-10% 0 -10% 0)}}
@keyframes krFondu{from{opacity:0}}
html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-cv-s{animation:krRevele 1.6s cubic-bezier(.25,.8,.25,1) both}

/* 6. Menu de gauche : carte blanche, survol gris clair, rubrique active en fond foncé */
html body #view-espace.sa:not(#k1):not(#k2) .esp-side{background:var(--kr-card)!important;border:1px solid var(--kr-line)!important;box-shadow:var(--kr-sh-float)!important}
html[data-theme="dark"] html body #view-espace.sa:not(#k1):not(#k2) .esp-side{box-shadow:none!important}
html body #view-espace.sa:not(#k1):not(#k2) :is(.esp-menu,.esp-side-foot) button{transition:background-color .3s ease,color .3s ease}
html body #view-espace.sa:not(#k1):not(#k2) :is(.esp-menu,.esp-side-foot) button:hover{background:var(--kr-faint)!important;color:var(--kr-ink)!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-menu button.on{background:var(--kr-ink)!important;color:var(--kr-card)!important;box-shadow:none!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-menu button.on::before{display:none!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-menu button.on svg{color:var(--kr-card)!important}

/* 7. Animations plus lentes et plus douces */
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpis>.kr-kpi{transition:color .5s ease}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi::before{transition:clip-path .9s cubic-bezier(.25,.8,.25,1)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi .sa-kl,html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi .sa-v,html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi .sa-ks{transition:color .5s ease}
html body #view-espace.sa:not(#k1):not(#k2) .kr-mc{transition:transform .35s ease,box-shadow .35s ease}
html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-b{animation-duration:1.3s;animation-delay:calc(var(--i,0) * 90ms)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-b-p{animation-delay:calc(var(--i,0) * 90ms + 160ms)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-seg{animation-duration:1.5s}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-kpis>*,html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-rang>*,html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-r3>*,html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-acts>*{animation:krMonte .85s cubic-bezier(.25,.8,.25,1) both}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-rang>*{animation-delay:.15s}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-r3>*{animation-delay:.3s}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-acts>*{animation-delay:.45s}

/* 8. Écrans moyens et téléphone */
@media (max-width:1180px){
 html body #view-espace.sa:not(#k1):not(#k2) .kr-r3{grid-template-columns:minmax(0,1fr)}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-acts{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:800px){
 html body #view-espace.sa:not(#k1):not(#k2) .kr-r3{grid-template-columns:minmax(0,1fr)}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-w{min-height:180px;padding-left:40px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-cv,html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-ms,html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-w .kr-vide,html body #view-espace.sa:not(#k1):not(#k2) .kr-cv-w.kr-attente .kr-cv-vide{left:40px}
 html body #view-espace.sa:not(#k1):not(#k2) .esp-main .sa-card{padding:16px}
}
@media (prefers-reduced-motion:reduce){
 html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-cv-s,html body #view-espace.sa:not(#k1):not(#k2) .kr-dot,html body #view-espace.sa:not(#k1):not(#k2) .kr-guide{animation:none!important;transition:none!important}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi::before{transition:none!important}
}

/* 9. Coin des chiffres clés : un peu plus petit, le titre ne passe plus dessus */
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi::before{clip-path:circle(58px at 0 0)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi:is(:hover,:focus-visible,:active,.kr-on)::before{clip-path:circle(160% at 0 0)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi .sa-kl{margin-left:14px}

/* 10. Bloc des indicateurs : lui aussi une carte */
html body #view-espace.sa:not(#k1):not(#k2) #kk-root{background:var(--kr-card);border:1px solid var(--kr-line);border-radius:12px;box-shadow:var(--kr-sh-float);padding:24px}
html[data-theme="dark"] html body #view-espace.sa:not(#k1):not(#k2) #kk-root{box-shadow:none}

/* 11. Petits écrans : une colonne pour les graphiques et les cartes de publication */
@media (max-width:1180px){ html body #view-espace.sa:not(#k1):not(#k2) .kr-rang{grid-template-columns:minmax(0,1fr)} }
@media (max-width:560px){ html body #view-espace.sa:not(#k1):not(#k2) .kr-pubs .kr-grille-cartes{grid-template-columns:minmax(0,1fr)!important} }
