/* Korda V111 — refonte de l'administration, lot 2 : mise en page des rubriques principales.
   S'appuie sur les jetons du lot 1 (css/142-refonte-admin.css). Limité à l'administration (#view-espace.sa). */

/* ---------- Tableau de bord : grilles ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .kr-dash{display:flex;flex-direction:column;gap:16px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi{display:flex;flex-direction:column;gap:10px;min-width:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi .sa-v{font-size:28px;line-height:34px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi-v{display:flex;flex-direction:column;gap:4px;min-height:58px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi-clic{cursor:pointer}
html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi-clic:focus-visible{outline:2px solid var(--kr-act);outline-offset:2px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-rang{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:16px;align-items:stretch}
html body #view-espace.sa:not(#k1):not(#k2) .kr-tete{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
html body #view-espace.sa:not(#k1):not(#k2) .kr-tete .sa-h{margin:0 0 2px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-tete .sa-sub{margin:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-rev,html body #view-espace.sa:not(#k1):not(#k2) .kr-src{display:flex;flex-direction:column;gap:16px;overflow:visible}
html body #view-espace.sa:not(#k1):not(#k2) .kr-leg-l{display:flex;gap:16px;flex-wrap:wrap;font-size:12px;line-height:16px;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-leg-l span{display:inline-flex;align-items:center;gap:6px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-p{display:inline-block;width:10px;height:10px;border-radius:50%;flex:none}
html body #view-espace.sa:not(#k1):not(#k2) .kr-p-c{background:var(--kr-d0)}html body #view-espace.sa:not(#k1):not(#k2) .kr-p-p{background:var(--kr-ok)}html body #view-espace.sa:not(#k1):not(#k2) .kr-p-o{background:var(--kr-d2)}

/* ---------- Histogramme des revenus ---------- */
html body #view-espace.sa:not(#k1):not(#k2) #kr-rev-corps{flex:1;display:flex;flex-direction:column}
html body #view-espace.sa:not(#k1):not(#k2) .kr-histo-w{position:relative;flex:1;min-height:240px;height:auto;padding:8px 0 0 48px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-grille{position:absolute;left:48px;right:0;top:8px;bottom:28px;pointer-events:none}
html body #view-espace.sa:not(#k1):not(#k2) .kr-gl{position:absolute;left:0;right:0;border-top:1px dashed var(--kr-line)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-gl em{position:absolute;right:calc(100% + 8px);top:-8px;font-style:normal;font-size:12px;line-height:16px;color:var(--kr-mute);white-space:nowrap;font-variant-numeric:tabular-nums}
html body #view-espace.sa:not(#k1):not(#k2) .kr-histo{position:relative;display:flex;align-items:stretch;gap:12px;height:100%}
html body #view-espace.sa:not(#k1):not(#k2) .kr-col{position:relative;flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;outline:0;border-radius:8px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-pile{flex:1;width:100%;max-width:48px;display:flex;flex-direction:column;justify-content:flex-end;gap:2px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-b{display:block;width:100%;min-height:0;transform-origin:bottom center}
html body #view-espace.sa:not(#k1):not(#k2) .kr-b:first-child{border-radius:8px 8px 0 0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-b:last-child{border-radius:0 0 4px 4px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-b:only-child{border-radius:8px 8px 4px 4px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-b[style*="height:0.00%"]{display:none}
html body #view-espace.sa:not(#k1):not(#k2) .kr-b-c{background:var(--kr-d0)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-b-p{background:var(--kr-ok)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-col:not(.kr-cours) .kr-b{opacity:.82}
html body #view-espace.sa:not(#k1):not(#k2) .kr-col:hover .kr-b,html body #view-espace.sa:not(#k1):not(#k2) .kr-col:focus-visible .kr-b{opacity:1}
html body #view-espace.sa:not(#k1):not(#k2) .kr-zero{height:2px;border-radius:2px!important;background:var(--kr-deco)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-m{font-size:12px;line-height:16px;color:var(--kr-mute);white-space:nowrap;height:20px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-cours .kr-m{color:var(--kr-ink);font-weight:600}
html body #view-espace.sa:not(#k1):not(#k2) .kr-m small{display:none}
html body #view-espace.sa:not(#k1):not(#k2) .kr-col:focus-visible .kr-pile{outline:2px solid var(--kr-act);outline-offset:4px;border-radius:8px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-tip{position:absolute;left:50%;top:0;z-index:4;display:flex;flex-direction:column;gap:4px;min-width:200px;padding:10px 12px;border-radius:8px;background:var(--kr-ink);color:var(--kr-card);box-shadow:var(--kr-sh-menu);font-size:12px;line-height:16px;opacity:0;transform:translate(-50%,calc(-100% - 4px));transition:opacity .15s ease,transform .15s ease;pointer-events:none}
html body #view-espace.sa:not(#k1):not(#k2) .kr-col:first-child .kr-tip,html body #view-espace.sa:not(#k1):not(#k2) .kr-col:nth-child(2) .kr-tip{left:0;transform:translate(0,calc(-100% - 4px))}
html body #view-espace.sa:not(#k1):not(#k2) .kr-col:last-child .kr-tip,html body #view-espace.sa:not(#k1):not(#k2) .kr-col: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-col:hover .kr-tip,html body #view-espace.sa:not(#k1):not(#k2) .kr-col:focus-visible .kr-tip{opacity:1}
html body #view-espace.sa:not(#k1):not(#k2) .kr-tip b{font-weight:600;font-size:14px;line-height:20px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-tip span{display:flex;align-items:center;gap:6px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-tip em{margin-left:auto;font-style:normal;font-weight:600;font-variant-numeric:tabular-nums;padding-left:12px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-tip .kr-tot{border-top:1px solid rgba(255,255,255,.2);padding-top:4px;margin-top:2px}
html[data-theme="dark"] body #view-espace.sa:not(#k1):not(#k2) .kr-tip .kr-tot{border-top-color:rgba(0,0,0,.15)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-vide{position:absolute;left:48px;right:0;top:40%;margin:0;text-align:center;font-size:14px;line-height:20px;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-attente .kr-pile i{display:block;width:100%;border-radius:8px 8px 4px 4px;background:var(--kr-faint)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-histo.kr-attente{height:220px;padding-left:48px}

/* ---------- Anneau des sources ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .kr-donut-w{position:relative;width:180px;height:180px;margin:0 auto}
html body #view-espace.sa:not(#k1):not(#k2) .kr-donut{width:180px;height:180px;display:block}
html body #view-espace.sa:not(#k1):not(#k2) .kr-donut.kr-attente{border-radius:50%;border:22px solid var(--kr-faint)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-donut-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
html body #view-espace.sa:not(#k1):not(#k2) .kr-donut-c b{font-size:22px;line-height:26px;font-weight:700;letter-spacing:-.02em;color:var(--kr-ink);font-variant-numeric:tabular-nums}
html body #view-espace.sa:not(#k1):not(#k2) .kr-donut-c span{font-size:12px;line-height:16px;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-leg{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-leg li{display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px;color:var(--kr-ink)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-leg li span{flex:1}
html body #view-espace.sa:not(#k1):not(#k2) .kr-leg li b{font-weight:600;font-variant-numeric:tabular-nums}
html body #view-espace.sa:not(#k1):not(#k2) .kr-leg li em{font-style:normal;color:var(--kr-mute);font-size:12px;min-width:38px;text-align:right;font-variant-numeric:tabular-nums}
html body #view-espace.sa:not(#k1):not(#k2) .kr-src .sa-note{margin:0}

/* ---------- Cartes miniatures d'annonces ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .kr-pubs{display:flex;flex-direction:column;gap:16px;margin-top:8px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-grille-cartes{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:16px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-carte{display:flex;flex-direction:column;min-width:0;background:var(--kr-card);border:1px solid var(--kr-line);border-radius:12px;overflow:hidden;transition:transform .25s ease,box-shadow .25s ease}
html body #view-espace.sa:not(#k1):not(#k2) .kr-carte:hover{transform:translateY(-3px);box-shadow:var(--kr-sh-float)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-photo{position:relative;aspect-ratio:4/3;background:var(--kr-faint);overflow:hidden}
html body #view-espace.sa:not(#k1):not(#k2) .kr-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
html body #view-espace.sa:not(#k1):not(#k2) .kr-ph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-ph small{font-size:12px;line-height:16px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-badge{position:absolute;left:10px;top:10px;padding:4px 10px;border-radius:999px;background:#FFFFFF;color:#222222;font-size:12px;line-height:16px;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.08)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-badge-off{top:40px;background:var(--kr-err-bg);color:var(--kr-err)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-txt{display:flex;flex-direction:column;gap:2px;padding:12px 14px 0;min-width:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-txt h4{margin:0;font-size:16px;line-height:20px;font-weight:500;color:var(--kr-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #view-espace.sa:not(#k1):not(#k2) .kr-txt p{margin:0;font-size:14px;line-height:20px;color:var(--kr-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #view-espace.sa:not(#k1):not(#k2) .kr-txt .kr-prix{color:var(--kr-ink);font-weight:600;font-variant-numeric:tabular-nums}
html body #view-espace.sa:not(#k1):not(#k2) .kr-pied{display:flex;align-items:center;gap:8px;padding:12px 14px;min-width:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-av{flex:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--kr-faint);border:1px solid var(--kr-deco);color:var(--kr-ink);font-size:12px;line-height:16px;font-weight:600}
html body #view-espace.sa:not(#k1):not(#k2) .kr-av-k{background:var(--kr-brand);border-color:var(--kr-brand);color:#FFFFFF}
html body #view-espace.sa:not(#k1):not(#k2) .kr-who{font-size:12px;line-height:16px;color:var(--kr-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #view-espace.sa:not(#k1):not(#k2) .kr-voir{margin:0 14px 14px;min-height:40px;border-radius:8px;border:1px solid var(--kr-ink);background:transparent;color:var(--kr-ink);font-family:var(--kr-font);font-size:14px;line-height:20px;font-weight:500;cursor:pointer;transition:background .15s ease}
html body #view-espace.sa:not(#k1):not(#k2) .kr-voir:hover{background:var(--kr-faint)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-voir:focus-visible{outline:2px solid var(--kr-act);outline-offset:2px}
/* dans la rubrique Annonces, la grille remplace le tableau */
html body #view-espace.sa:not(#k1):not(#k2) #sa-ann-liste .kr-grille-cartes{margin-top:4px}
html body #view-espace.sa:not(#k1):not(#k2) #sa-ann-liste+.sa-note{margin-top:12px}

/* ---------- Vérifications : liste et dossier côte à côte ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .kr-md{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:24px;align-items:start}
html body #view-espace.sa:not(#k1):not(#k2) .kr-md-r{position:sticky;top:96px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-md .vf-tabs.sa-vt{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body #view-espace.sa:not(#k1):not(#k2) .kdv-row{display:flex;align-items:center;gap:16px;width:100%;padding:14px 16px;border:0;border-bottom:1px solid var(--kr-line);background:transparent;text-align:left;font-family:var(--kr-font);color:var(--kr-ink);transition:background .15s ease}
html body #view-espace.sa:not(#k1):not(#k2) .kdv-row:last-child{border-bottom:0}
html body #view-espace.sa:not(#k1):not(#k2) button.kdv-row:hover,html body #view-espace.sa:not(#k1):not(#k2) .kdv-row.kr-ligne:hover{background:var(--kr-faint)}
html body #view-espace.sa:not(#k1):not(#k2) .kdv-row[aria-current="true"]{background:var(--kr-faint);box-shadow:inset 3px 0 0 var(--kr-act)}
html body #view-espace.sa:not(#k1):not(#k2) .kdv-row .sa-av{width:40px;height:40px;flex:none;display:inline-flex;align-items:center;justify-content:center;font-size:12px}
html body #view-espace.sa:not(#k1):not(#k2) .kdv-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
html body #view-espace.sa:not(#k1):not(#k2) .kdv-main b{font-size:16px;line-height:20px;font-weight:500}
html body #view-espace.sa:not(#k1):not(#k2) .kdv-main .m{font-size:14px;line-height:20px;color:var(--kr-mute);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #view-espace.sa:not(#k1):not(#k2) .sa-listcard{padding:8px!important}
html body #view-espace.sa:not(#k1):not(#k2) .sa-listcard>.sa-h{padding:12px 8px 4px}
html body #view-espace.sa:not(#k1):not(#k2) .sa-listcard .sa-bar-t{padding:4px 8px 8px}

/* ---------- Lignes cliquables et fiche en fenêtre ---------- */
html body #view-espace.sa:not(#k1):not(#k2) tr.kr-ligne{cursor:pointer}
html body #view-espace.sa:not(#k1):not(#k2) tr.kr-ligne:focus-visible td{background:var(--kr-faint)!important}
html body #view-espace.sa:not(#k1):not(#k2) tr.kr-ligne:focus-visible{outline:2px solid var(--kr-act);outline-offset:-2px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-fiche{position:fixed;inset:0;z-index:1200;display:flex;align-items:flex-start;justify-content:center;padding:120px 16px 16px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-voile{position:absolute;inset:0;background:rgba(34,34,34,.45);animation:krApparait .2s ease both}
html body #view-espace.sa:not(#k1):not(#k2) .kr-boite{position:relative;width:min(480px,100%);display:flex;flex-direction:column;gap:20px;padding:24px;border-radius:12px;background:var(--kr-card);color:var(--kr-ink);box-shadow:var(--kr-sh-over);animation:krMonte .3s cubic-bezier(.2,.8,.2,1) both;outline:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-tete{display:flex;align-items:flex-start;gap:16px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-tete>div{flex:1;min-width:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-tete h3{margin:0;font-size:20px;line-height:24px;font-weight:600;letter-spacing:-.01em}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-tete p{margin:4px 0 0;display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;line-height:20px;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-av-l{width:56px;height:56px;font-size:20px;line-height:24px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-x{flex:none;width:36px;height:36px;border-radius:50%;border:1px solid var(--kr-deco);background:var(--kr-card);color:var(--kr-ink);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}
html body #view-espace.sa:not(#k1):not(#k2) .kr-x:hover{background:var(--kr-faint)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-chiffres{display:flex;gap:12px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-chiffres>div{flex:1;display:flex;flex-direction:column;padding:12px;border-radius:8px;background:var(--kr-faint);border:1px solid var(--kr-line)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-chiffres b{font-size:20px;line-height:24px;font-weight:600;font-variant-numeric:tabular-nums}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-chiffres span{font-size:12px;line-height:16px;color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-infos{margin:0;display:flex;flex-direction:column;border-top:1px solid var(--kr-line)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-infos>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid var(--kr-line);font-size:14px;line-height:20px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-infos dt{color:var(--kr-mute)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-infos dd{margin:0;font-weight:500;text-align:right;overflow-wrap:anywhere}
html body #view-espace.sa:not(#k1):not(#k2) .kr-boite .sa-note{margin:0}
html body #view-espace.sa:not(#k1):not(#k2) .kr-f-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}

/* ---------- Courbe des statistiques : couleurs de la charte ---------- */
html body #view-espace.sa:not(#k1):not(#k2) svg .sa-ln.s1{stroke:var(--kr-d0)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-ln.s2{stroke:var(--kr-d1)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-ln.s3{stroke:var(--kr-d2)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-ln.s4{stroke:var(--kr-d3)}
html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt.s1{fill:var(--kr-d0)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt.s2{fill:var(--kr-d1)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt.s3{fill:var(--kr-d2)}html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt.s4{fill:var(--kr-d3)}
html body #view-espace.sa:not(#k1):not(#k2) svg .sa-pt{stroke:var(--kr-card);stroke-width:1.5}
html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.s1{background:var(--kr-d0)!important}html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.s2{background:var(--kr-d1)!important}html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.s3{background:var(--kr-d2)!important}html body #view-espace.sa:not(#k1):not(#k2) .sa-dot.s4{background:var(--kr-d3)!important}
html body #view-espace.sa:not(#k1):not(#k2) svg .sa-ln{stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
html body #view-espace.sa:not(#k1):not(#k2) svg .sa-guide{stroke:var(--kr-deco)}

/* ---------- Rubriques sans carte : leur contenu est remis dans une carte ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .esp-blk:not([hidden]):not(:has(.sa-card,.sa-kpi,.esp-card,.esp-stat,.hsa-card,.sa-listcard,.esp-empty,.kk,.vf-sec,.kr-carte,.sa-state)):has(*){background:var(--kr-card)!important;border:1px solid var(--kr-line)!important;border-radius:12px!important;padding:24px!important}

/* ---------- Animations ---------- */
@keyframes krSeg{from{stroke-dasharray:0 100}}
html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-b{animation:krHauteur .8s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-b-p{animation-delay:calc(var(--i,0) * 70ms + 120ms)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-seg{animation:krSeg 1s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 160ms + 150ms)}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-kpis>*{animation:krMonte .55s cubic-bezier(.2,.8,.2,1) both}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-kpis>*:nth-child(2){animation-delay:70ms}html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-kpis>*:nth-child(3){animation-delay:140ms}html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-kpis>*:nth-child(4){animation-delay:210ms}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-rang>*{animation:krMonte .55s cubic-bezier(.2,.8,.2,1) .15s both}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-grille-cartes>*{animation:krMonte .5s cubic-bezier(.2,.8,.2,1) both}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-grille-cartes>*:nth-child(2){animation-delay:50ms}html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-grille-cartes>*:nth-child(3){animation-delay:100ms}html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-grille-cartes>*:nth-child(4){animation-delay:150ms}
html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-grille-cartes>*:nth-child(5){animation-delay:200ms}html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-grille-cartes>*:nth-child(6){animation-delay:250ms}html body #view-espace.sa:not(#k1):not(#k2).kr-anim .kr-grille-cartes>*:nth-child(n+7){animation-delay:300ms}
@media (prefers-reduced-motion:reduce){
 html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-b,html body #view-espace.sa:not(#k1):not(#k2) .kr-joue .kr-seg,html body #view-espace.sa:not(#k1):not(#k2) .kr-boite,html body #view-espace.sa:not(#k1):not(#k2) .kr-voile{animation:none!important}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-carte:hover{transform:none}
}

/* ---------- Écrans moyens et téléphone ---------- */
@media (max-width:1180px){
 html body #view-espace.sa:not(#k1):not(#k2) .kr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-rang{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:800px){
 html body #view-espace.sa:not(#k1):not(#k2) .kr-kpis{gap:12px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-kpi .sa-v{font-size:22px;line-height:26px}
 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-histo-w{height:220px;padding-left:40px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-grille,html body #view-espace.sa:not(#k1):not(#k2) .kr-vide{left:40px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-histo{gap:6px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-grille-cartes{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-voir{margin:0 10px 10px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-txt{padding:10px 10px 0}html body #view-espace.sa:not(#k1):not(#k2) .kr-pied{padding:10px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-fiche{padding-top:72px}
}
@media (max-width:420px){
 html body #view-espace.sa:not(#k1):not(#k2) .kr-kpis{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-txt h4{font-size:14px;line-height:20px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-txt p{font-size:12px;line-height:16px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-voir{min-height:36px;font-size:12px}
 html body #view-espace.sa:not(#k1):not(#k2) .kr-who{display:none}
}

/* ---------- Ajustements après essais ---------- */
html body #view-espace.sa:not(#k1):not(#k2) .kr-grille-cartes{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}
/* badges d'état : neutre par défaut, vert pour validé, rouge pour refusé */
html body #view-espace.sa:not(#k1):not(#k2) .esp-b{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px!important;font-size:12px;line-height:16px;font-weight:600;white-space:nowrap;background:var(--kr-faint)!important;color:var(--kr-ink)!important;border:1px solid var(--kr-line)!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-b.ok{background:var(--kr-ok-bg)!important;color:var(--kr-ok)!important;border-color:transparent!important}
html body #view-espace.sa:not(#k1):not(#k2) .esp-b.no{background:var(--kr-err-bg)!important;color:var(--kr-err)!important;border-color:transparent!important}
/* rubrique Annonces : la liste de toutes les annonces passe en premier, les annonces de l'équipe Korda ensuite */
html body #view-espace.sa:not(#k1):not(#k2)[data-pan="annonces"] .esp-main{display:flex;flex-direction:column}
html body #view-espace.sa:not(#k1):not(#k2)[data-pan="annonces"] .esp-main>*{order:5}
html body #view-espace.sa:not(#k1):not(#k2)[data-pan="annonces"] .esp-main>:is(#kd-head,#esp-titre,#esp-kicker){order:0}
html body #view-espace.sa:not(#k1):not(#k2)[data-pan="annonces"] #blk-kdann{order:1}
html body #view-espace.sa:not(#k1):not(#k2)[data-pan="annonces"] #blk-kdpub{order:2}
html body #view-espace.sa:not(#k1):not(#k2)[data-pan="annonces"] #blk-stats{order:3}
html body #view-espace.sa:not(#k1):not(#k2)[data-pan="annonces"] #blk-annonces{order:4}
/* infobulle : pastilles cerclées pour rester visibles sur le fond sombre de l'infobulle */
html body #view-espace.sa:not(#k1):not(#k2) .kr-tip .kr-p{box-shadow:0 0 0 1.5px var(--kr-card)}
/* dossier ouvert : la liste devient compacte, le badge passe sous le nom */
html body #view-espace.sa:not(#k1):not(#k2) .kr-md{grid-template-columns:minmax(300px,.85fr) minmax(0,1.3fr)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-md .kdv-row{flex-wrap:wrap;row-gap:6px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-md .kdv-main{flex:1 1 calc(100% - 96px)}
html body #view-espace.sa:not(#k1):not(#k2) .kr-md .kdv-row .esp-b{margin-left:56px}
html body #view-espace.sa:not(#k1):not(#k2) .kr-md .kdv-main .m{white-space:normal}
