/* Juriscan : composants sur la charte AGL (agl-tokens.css chargé avant). Couleurs uniquement par var(--…) ;
   thème clair par défaut (textes noirs, aucun or), sombre « tour de contrôle ». Tient à 360 px sans défilement
   horizontal : menu qui passe à la ligne, tableaux en cartes empilées, indicateurs sur 2 colonnes.
   Repris de la maquette Juriscan et de Translead app.css (20/10/2026). */

:root, :root[data-theme="light"] {
  --voile: #0a224066;
  --entete-bg: rgba(255, 255, 255, .55);
}
:root[data-theme="dark"] {
  --voile: #000000aa;
  --entete-bg: rgba(16, 32, 48, .92);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--font); }
body { min-height: 100vh; overflow-wrap: anywhere; }
a { color: var(--acc); }
h1, h2, h3 { margin: 0 0 8px; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 17px; }
h3 { font-size: 14px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.lecteur { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------ en-tête : logo, menu, thème, compte */
.entete {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px;
  padding: 10px 16px; background: var(--entete-bg); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.entete .marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.entete .marque img { height: 38px; width: auto; display: block; }
.entete .appli { font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
#eo-menu { flex: 1; display: flex; flex-wrap: wrap; row-gap: 4px; min-width: 0; }
#eo-menu a { color: var(--ink); text-decoration: none; text-transform: uppercase; font-size: 12px; letter-spacing: .06em;
             margin-right: 14px; padding: 4px 0; border-bottom: 2px solid transparent; }
#eo-menu a:hover { border-bottom-color: var(--line); }
#eo-menu a.on { color: var(--acc); font-weight: 700; border-bottom-color: var(--acc); }
.entete .compte { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.entete .qui { font-size: 12px; font-weight: 700; }
.zone { max-width: 1180px; margin: 0 auto; padding: 16px; }

/* ------------------------------------------------------------ titres de vue */
.tete { margin-bottom: 14px; position: relative; }
.surtitre { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.tete h1 { margin: 2px 0 4px; }
.tete h1 em, h1 em { font-style: normal; color: var(--acc); }
.tete .sous { color: var(--mut); }
.tete .liser { margin: 8px 0 0; }
.tete .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* ------------------------------------------------------------ boutons, badges, bandeaux */
.btn { background: var(--btn); color: var(--btn-ink); border: 0; border-radius: 6px; padding: 7px 13px; font-weight: 700; cursor: pointer; }
.btn2 { border: 1px solid var(--acc); color: var(--acc); background: transparent; border-radius: 6px; padding: 6px 11px; cursor: pointer;
        text-decoration: none; display: inline-block; }
.btn:disabled, .btn2:disabled { opacity: .55; cursor: default; }
.btn.danger { background: var(--bad); color: var(--btn-ink); }
.btn2.danger { border-color: var(--bad); color: var(--bad); }
.petit { padding: 4px 9px; font-size: 12px; }
.badge { border: 1.5px solid currentColor; border-radius: 99px; padding: 1px 8px; font-weight: 700; font-size: 12px; white-space: nowrap; color: var(--ink); }
.b-ok { color: var(--ok); } .b-warn { color: var(--warn); } .b-bad { color: var(--bad); }
.alerte { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-left: 4px solid var(--info);
          background: var(--hl); padding: 8px 12px; margin: 8px 0; border-radius: 4px; }
.alerte.ok { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--panel)); }
.alerte.attention { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--panel)); }
.alerte.critique { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 10%, var(--panel)); }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: calc(100vw - 32px); }
.toast { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 6px; padding: 8px 12px; box-shadow: var(--shadow); }
.toast.ok { border-left-color: var(--ok); } .toast.attention { border-left-color: var(--warn); } .toast.critique { border-left-color: var(--bad); }
.chargement { padding: 18px; color: var(--mut); }

/* ------------------------------------------------------------ blocs, indicateurs, plis, onglets */
.bloc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
.bloc h3 { margin: 0 0 8px; }
.bloc .pied { text-align: right; margin-top: 8px; }
.a-venir { border-style: dashed; }
.grille2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; background: var(--panel2); text-align: left; color: var(--ink); }
button.kpi { cursor: pointer; }
.kpi b { display: block; font-size: 26px; }
.kpi .libelle, .kpi .sous { display: block; font-size: 12px; }
.kpi.bad b { color: var(--bad); } .kpi.warn b { color: var(--warn); } .kpi.ok b { color: var(--ok); }
details.pli { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; margin-top: 8px; background: var(--panel); }
details.pli > summary { font-weight: 700; }
details.pli > .contenu { margin-top: 8px; }
.onglets { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 12px; }
.onglets button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 10px; cursor: pointer; color: var(--ink); }
.onglets button.on { border-bottom-color: var(--acc); font-weight: 700; color: var(--acc); }

/* ------------------------------------------------------------ tableaux : en-tête marine 12 px, chiffres à droite */
.tbl { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; margin-bottom: 12px; }
.tbl .barre { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.tbl .barre .compte { margin-left: auto; font-size: 12px; color: var(--mut); }
.recherche, .f, .champ input, .champ select, .champ textarea {
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; background: var(--panel2); min-height: 32px; max-width: 100%;
}
.recherche { min-width: 220px; flex: 1 1 220px; }
table.kn { width: 100%; border-collapse: collapse; font-size: 13px; }
table.kn th { background: var(--th); color: var(--th-ink); text-transform: uppercase; font-size: 12px; letter-spacing: .04em; text-align: left; padding: 6px; }
table.kn th.triable { cursor: pointer; }
table.kn td { border-bottom: 1px solid var(--line); padding: 6px; vertical-align: top; }
table.kn .n { text-align: right; white-space: nowrap; }
table.kn td.vide { text-align: center; color: var(--mut); padding: 14px; }
table.kn tr.clic { cursor: pointer; }
table.kn tr.clic:hover td, table.kn tr.clic:focus td { background: var(--hl); }
.personne b, .personne small { display: block; }
.personne small, .acces-ligne small { color: var(--mut); font-size: 12px; }
.pagination { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
pre.json { white-space: pre-wrap; font-size: 12px; margin: 0; max-height: 50vh; overflow: auto; }
code.lien-unique { display: block; word-break: break-all; user-select: all; padding: 8px; background: var(--chip); border-radius: 6px; }

/* ------------------------------------------------------------ formulaires, fenêtre */
.champ { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.champ label { font-weight: 700; font-size: 13px; }
.champ.case { flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 8px; }
.champ .aide { font-size: 12px; color: var(--mut); }
.champ textarea { min-height: 80px; }
.grille-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 12px; }
fieldset.groupe { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin: 0 0 10px; }
fieldset.groupe legend { font-weight: 700; padding: 0 4px; }
.case-ligne { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 12px; margin-left: 22px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0 0 10px; }
dl.kv dt { font-weight: 700; } dl.kv dd { margin: 0; }
.ligne-etat { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; font-size: 13px; }
.acces { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.acces-ligne { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding: 4px 0; }
.acces-ligne > span b { display: block; }
.tri-etat { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tri-etat input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tri-etat label { padding: 4px 9px; font-size: 12px; cursor: pointer; border-right: 1px solid var(--line); }
.tri-etat label:last-child { border-right: 0; }
.tri-etat input:checked + label { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.tri-etat input:focus-visible + label { outline: 2px solid var(--acc); }
.recap ul { margin: 6px 0 0; padding-left: 18px; }
.voile { position: fixed; inset: 0; background: var(--voile); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modale { background: var(--panel); border-radius: var(--radius); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex;
          flex-direction: column; box-shadow: var(--shadow); border: 1px solid var(--line); }
.modale.large { max-width: 860px; }
.modale header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modale header h2 { margin: 0; }
.modale .corps { padding: 12px 16px; overflow-y: auto; }
.modale footer { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ connexion et pages publiques */
.ecran-connexion { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.boite { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.boite-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.boite-haut img { height: 38px; width: auto; display: block; }
.boite .btn { width: 100%; margin-top: 4px; }
.boite .liens { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: 13px; }
.boite .pied { font-size: 12px; margin: 12px 0 0; }

/* ------------------------------------------------------------ 360 px : cartes empilées, KPI 2 × 2 */
@media (max-width: 400px) {
  .zone { padding: 8px; }
  .entete { padding: 8px; gap: 6px 12px; }
  #eo-menu { flex-basis: 100%; }
  #eo-menu a { margin-right: 10px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi b { font-size: 22px; }
  .recherche { min-width: 0; flex-basis: 100%; }
  .tbl { padding: 6px; }
  table.cartes thead { display: none; }
  table.cartes, table.cartes tbody, table.cartes tr, table.cartes td { display: block; width: 100%; }
  table.cartes tr { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; margin-bottom: 8px; }
  table.cartes td { border: 0; padding: 2px 0; text-align: left; }
  table.cartes td.n { text-align: left; }
  table.cartes td[data-l]::before { content: attr(data-l) " : "; font-weight: 700; }
  table.cartes td.sec { display: none; }
  .grille2, .grille-form { grid-template-columns: 1fr; }
  .modale .corps, .modale header, .modale footer { padding-left: 10px; padding-right: 10px; }
}

/* ------------------------------------------------------------ BP : frise SPOT, bandeaux, dépôt (lots L1-L2) */
.barre { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.barre .droite { margin-left: auto; }
.note { font-size: 12px; color: var(--mut); margin-top: 6px; }
.bandeau { border-left: 4px solid var(--warn); background: var(--hl); padding: 6px 10px; margin: 8px 0; border-radius: 4px; }
.bandeau.bad { border-left-color: var(--bad); }
.commentaire { white-space: pre-wrap; }
.frise { display: flex; align-items: center; flex-wrap: nowrap; margin: 8px 0 12px; overflow-x: auto; padding-bottom: 4px; }
.frise .et { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 84px; font-size: 12px; text-align: center; }
.frise .pt { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--acc); flex: none; }
.frise .pt.on { background: var(--acc); }
.frise .pt.ech { border-color: var(--warn); border-radius: 4px; transform: rotate(45deg); width: 20px; height: 20px; margin: 3px; }
.frise .pt.ech.depasse { border-color: var(--bad); background: var(--bad); }
.frise .trait { flex: 1; min-width: 8px; height: 2px; background: var(--line); }
.zone-depot { border: 2px dashed var(--acc); border-radius: var(--radius); padding: 22px; text-align: center; margin-top: 14px; background: var(--panel); }
.zone-depot.survol { background: var(--hl); }
.zone-depot .btn { display: inline-block; margin-top: 10px; }
@media (max-width: 400px) {
  .frise { flex-direction: column; align-items: flex-start; overflow-x: visible; }
  .frise .et { flex-direction: row; gap: 10px; min-width: 0; text-align: left; }
  .frise .trait { width: 2px; height: 14px; min-width: 0; flex: none; margin-left: 12px; }
  .barre .droite { margin-left: 0; }
}

/* ------------------------------------------------------------ graphiques (27-graphiques.js, KnG) : palettes de la charte
   Repris de Translead tableaux.css (20/10/2026). Clair : aucun or ; sombre : or en tête (marque), ni bleu ni turquoise. */
:root, :root[data-theme="light"] {
  /* 20/10/2026 (contrôle UX L4b) : gamme de bleus + un seul accent chaud (--s-accent) réservé à ce qui doit attirer
     l'œil (stock ouvert, litiges au-delà du seuil) ; une COM garde toujours sa couleur (--c-cm*). */
  --s-1: #14467c; --s-2: #5b8fc7; --s-3: #0a2240; --s-4: #2f7f86; --s-5: #7d8fa3; --s-6: #9db9da; --s-7: #3d6fa3; --s-8: #8a5f00;
  --s-autre: #8da1b4;
  --s-accent: #d9480f;
  --k-neutre: #8da1b4; --k-grille: var(--line); --k-axe: var(--mut); --k-bulle: #0a2240; --k-bulle-ink: #ffffff; --k-chaleur: var(--agl-bleu);
  --c-cm07: var(--s-3); --c-cm08: var(--s-1); --c-cm18: var(--s-2); --c-cm20: var(--s-4); --c-cm22: var(--s-5);
}
:root[data-theme="dark"] {
  --s-1: var(--agl-or); --s-2: #d95926; --s-3: #8a62d8; --s-4: #1f7d3d; --s-5: #d55181; --s-6: #8fa020; --s-7: #9a6ad0; --s-8: #e0565a;
  --s-autre: #6f7f8e;
  --k-neutre: #6f7f8e; --k-bulle: #e3ecf3; --k-bulle-ink: #091521; --k-chaleur: var(--agl-or);
  --s-accent: #ff8f5a;
  --c-cm07: #65d9c5; --c-cm08: var(--agl-or); --c-cm18: #8a62d8; --c-cm20: #d55181; --c-cm22: #8fa020;
}
.kg { position: relative; width: 100%; min-width: 0; }
.kg svg { display: block; overflow: visible; }
.kg text { fill: var(--k-axe); font-size: 12px; font-family: var(--font); }
.kg .grille-l { stroke: var(--k-grille); stroke-width: 1; }
.kg .axe-l { stroke: var(--line); stroke-width: 1; }
.kg .marque { cursor: pointer; outline: none; transition: opacity .15s; }
.kg .marque:focus-visible { stroke: var(--ink); stroke-width: 2; }
.kg.survol .marque { opacity: .45; }
.kg.survol .marque.actif { opacity: 1; }
.kg .cible-l { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 3; }
.kg .ligne-c { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kg .aire-c { opacity: .14; }
.kg .repere { stroke: var(--mut); stroke-width: 1; stroke-dasharray: 2 3; }
.kg .vide { padding: 18px; }
.kg-legende { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; margin-top: 6px; }
.kg-legende button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 2px 4px; cursor: pointer; color: var(--ink); font: inherit; border-radius: 4px; }
.kg-legende button:hover { background: var(--hl); }
.kg-legende button[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.kg-legende .pastille { width: 10px; height: 10px; border-radius: 3px; }
.kg-legende .trait { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.kg-bulle { position: fixed; z-index: 80; pointer-events: none; background: var(--k-bulle); color: var(--k-bulle-ink); border-radius: 8px;
            padding: 7px 10px; font-size: 12px; line-height: 1.4; max-width: min(280px, 90vw); box-shadow: 0 8px 24px rgba(0,0,0,.25);
            opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.kg-bulle.visible { opacity: 1; transform: none; }
.kg-bulle .t { font-weight: 700; margin-bottom: 2px; }
.kg-bulle .l { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.kg-bulle .l i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.kg-bulle .l b { margin-left: auto; padding-left: 10px; font-variant-numeric: tabular-nums; }
.kg-bulle .a { margin-top: 3px; opacity: .8; font-size: 12px; }

/* barres horizontales classées */
.kg-classe { display: flex; flex-direction: column; gap: 2px; }
.kg-classe .rang { display: grid; grid-template-columns: minmax(80px, 36%) 1fr auto; gap: 8px; align-items: center; width: 100%; background: none;
                   border: 0; padding: 4px 4px; text-align: left; color: var(--ink); font: inherit; border-radius: 6px; }
.kg-classe button.rang { cursor: pointer; }
.kg-classe button.rang:hover, .kg-classe button.rang:focus-visible { background: var(--hl); }
.kg-classe .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.kg-classe .val { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 700; }
.kg-classe .val small { font-weight: 400; color: var(--mut); }
.kg-classe .piste { position: relative; height: 14px; }
.kg-classe .seg { position: absolute; top: 1px; height: 12px; border-radius: 0 4px 4px 0; transform-origin: left; }
.kg-classe .seg + .seg { box-shadow: -2px 0 0 var(--panel); }
.kg-classe .cible-v { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 2px dashed var(--ink); }


/* ------------------------------------------------------------ litiges, indicateurs, Mon poste (lots L3-L4) */
:root, :root[data-theme="light"] { --anneau-1: var(--agl-marine); --anneau-2: var(--agl-bleu); --anneau-3: var(--agl-bleu-vif); --anneau-4: #9db9da; }
:root[data-theme="dark"] { --anneau-1: #65d9c5; --anneau-2: #3f9e8f; --anneau-3: #2a6b62; --anneau-4: #8da1b4; }
.legende a { display: block; color: var(--ink); padding: 3px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.legende a:hover { color: var(--acc); }
ul.notes { list-style: none; padding: 0; margin: 0; }
ul.notes li { border-bottom: 1px solid var(--line); padding: 6px 0; }
ul.notes small { color: var(--mut); }
.grand { font-size: 26px; }
.bad { color: var(--bad); }
.kpis.indicateurs .kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi.indicateur.ok b { color: var(--ok); } .kpi.indicateur.warn b { color: var(--warn); } .kpi.indicateur.bad b { color: var(--bad); }
.voir-etapes { display: none; }
/* Indicateurs (21/10/2026) : deux familles séparées — excellence opérationnelle, KPI COM */
.familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 16px; }
.familles a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 8px; background: var(--panel); color: var(--ink); text-decoration: none; }
.familles a:hover, .familles a:focus { background: var(--hl); }
.familles a span { font-size: 12px; color: var(--mut); }
section.famille { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 18px; background: var(--panel); scroll-margin-top: 70px; }
section.famille > h2, section.famille .barre h2 { margin: 0 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
section.famille h2 .badge { font-size: 11px; font-weight: 600; }
/* KPI COM : tableau semaine / mois, défilement horizontal dans son cadre */
.kpi-com-bloc .barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kpi-com-bloc h2 { margin: 0; }
.kpi-com-defile { overflow-x: auto; max-width: 100%; }
table.kn.kpi-com { min-width: 640px; }
table.kn.kpi-com th.kpi-lib { background: var(--panel); color: var(--ink); text-transform: none; font-size: 13px; letter-spacing: 0; max-width: 220px; vertical-align: top; border-bottom: 1px solid var(--line); }
table.kn.kpi-com tr.obj td { color: var(--mut); }
table.kn.kpi-com tr.sous td { color: var(--mut); font-size: 12px; }
table.kn.kpi-com td.calcule { font-style: italic; }
table.kn.kpi-com td.en-cours { background: var(--hl); }
table.kn.kpi-com td.clic { cursor: pointer; }
table.kn.kpi-com td.clic:hover, table.kn.kpi-com td.clic:focus { outline: 2px solid var(--acc); outline-offset: -2px; }
@media (max-width: 400px) { table.kn.kpi-com td.sec { display: none; } }
@media (max-width: 400px) {
  .frise.repliee .et:not(.courante), .frise.repliee .trait { display: none; }
  .voir-etapes { display: inline-block; margin-bottom: 8px; }
}
table.kn th { overflow-wrap: normal; white-space: nowrap; }
th { font-size: 12px; }
.cache-col { display: none !important; }
table.kn td a { overflow-wrap: normal; white-space: nowrap; }

/* ------------------------------------------------------------ chargements animés (lot L4b) : squelettes, entrées, étapes */
.chargement { padding: 0; color: var(--mut); }
.sq { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--chip) 0%, var(--hl) 50%, var(--chip) 100%);
      background-size: 200% 100%; animation: sq-pulse 1.3s ease-in-out infinite; min-height: 12px; }
@keyframes sq-pulse { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.squelette .sq-tete { margin-bottom: 14px; }
.squelette .sq-tete .sur { width: 160px; height: 12px; margin-bottom: 8px; }
.squelette .sq-tete .titre, .squelette .bloc > .titre { width: 240px; height: 22px; margin-bottom: 10px; }
.sq-kpi { cursor: default; }
.sq-kpi .lib { width: 60%; margin-bottom: 10px; }
.sq-kpi .val { width: 40%; height: 26px; }
.sq-table { display: flex; flex-direction: column; gap: 8px; padding: 6px 0; }
.sq-ligne { display: grid; grid-template-columns: 2fr 3fr 1fr; gap: 12px; }
.sq-ligne .sq { height: 14px; }
.sq-graphique { display: flex; align-items: flex-end; gap: 6px; height: 120px; }
.sq-graphique .sq { flex: 1; min-height: 0; }
.vue.entree { animation: vue-entree .28s ease-out both; }
@keyframes vue-entree { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.kg-cascade > * { animation: kg-monte .45s ease-out both; }
.frise.revele .et { animation: kg-monte .4s ease-out both; }
.frise.revele .trait { animation: kg-pousse-h .35s ease-out both; transform-origin: left; }
.etapes-import { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.etapes-import li { display: flex; align-items: center; gap: 10px; color: var(--mut); }
.etapes-import li .pastille { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: flex;
                              align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.etapes-import li.encours { color: var(--ink); font-weight: 700; }
.etapes-import li.encours .pastille { border-color: var(--acc); border-top-color: transparent; animation: tourne .8s linear infinite; }
.etapes-import li.fait { color: var(--ink); }
.etapes-import li.fait .pastille { border-color: var(--ok); background: var(--ok); color: var(--panel); animation: kg-fondu .3s ease-out both; }
@keyframes tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .sq, .vue.entree, .kg-cascade > *, .frise.revele .et, .frise.revele .trait, .etapes-import li .pastille { animation: none !important; }
}


/* ------------------------------------------------------------ Analyse (lot L4b, modèle speed review) */
.an-insights { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.an-insight { text-align: left; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--an-c, var(--acc));
              border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow); cursor: pointer; color: var(--ink); font: inherit; }
.an-insight:hover, .an-insight:focus-visible { background: var(--hl); }
.an-insight b { display: block; font-size: 14px; margin-bottom: 3px; }
.an-insight span { font-size: 12px; color: var(--mut); line-height: 1.4; }
.an-anim .an-insight, .an-insights.an-anim > * { animation: kg-monte .45s ease both; }
.an-selecteurs { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 0 0 12px; }
.an-seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.an-seg button { border: 0; background: var(--panel); color: var(--ink); padding: 5px 12px; font: inherit; font-size: 12px; cursor: pointer; }
.an-seg button[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); font-weight: 700; }
.an-date { display: inline-flex; align-items: center; gap: 6px; }
.an-sous-titre { margin: 4px 0; }
.an-maj { opacity: .55; transition: opacity .2s; }
.an-svg { width: 100%; height: auto; display: block; overflow: visible; }
.an-svg text { fill: var(--mut); font-size: 12px; font-family: var(--font); }
.an-svg .an-fort { fill: var(--ink); font-weight: 700; }
.an-svg .an-grand { font-size: 14px; }
.an-svg .an-grille { stroke: var(--line); stroke-width: 1; }
.an-svg .an-zone { fill: var(--hl); fill-opacity: 0; }
.an-svg .an-zone:hover, .an-svg .an-zone:focus { fill-opacity: .45; outline: none; }
.an-anim .an-barre { transform-box: fill-box; animation: an-pousse .6s cubic-bezier(.2,.8,.2,1) both; }
.an-anim .an-haut { transform-origin: bottom; } .an-anim .an-bas { transform-origin: top; }
@keyframes an-pousse { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.an-anim .an-barre-x { transform-box: fill-box; transform-origin: left; animation: an-etire .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes an-etire { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.an-anim .an-trace { stroke-dasharray: 4000; stroke-dashoffset: 4000; animation: an-trace 1.3s ease forwards; }
@keyframes an-trace { to { stroke-dashoffset: 0; } }
.an-flux { stroke-dasharray: 8 7; }
.an-anim .an-flux { animation: an-defile 1.1s linear 1; }
@keyframes an-defile { to { stroke-dashoffset: -15; } }
.an-bulle { position: absolute; pointer-events: none; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 6px;
            padding: 6px 9px; font-size: 12px; box-shadow: var(--shadow); white-space: nowrap; z-index: 5; transform: translate(-50%, -112%); }
.an-legende { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--mut); margin-top: 6px; }
.an-legende i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.an-legende i.clair { opacity: .35; }
.an-regles { display: flex; flex-direction: column; gap: 10px; }
.an-regle span { display: block; font-size: 12px; margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) {
  .an-anim *, .an-anim .an-insight, .an-insights.an-anim > * { animation: none !important; }
  .an-anim .an-trace { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}

/* Analyse v2 : chaîne en frise HTML, barres de délais HTML, liens de synthèse */
.an-chaine { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.an-etape { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 110px; text-align: center; font-weight: 700; font-size: 13px; }
.an-etape .pt { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--acc); background: var(--panel); }
.an-etape.fin .pt { background: var(--acc); }
.an-maillon { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 80px; font-size: 12px; color: var(--mut); }
.an-maillon b { color: var(--ink); font-size: 15px; }
.an-maillon small, .vue-analyse small { font-size: 12px; }
.an-maillon .an-trait { display: block; width: 100%; height: 3px; background: var(--acc); border-radius: 2px; }
.an-anim .an-etape, .an-anim .an-maillon { animation: kg-monte .4s ease-out both; }
.an-regle { display: grid; grid-template-columns: 70px 1fr; gap: 10px; align-items: center; }
.an-regle b { font-size: 13px; }
.an-piste { position: relative; height: 12px; background: var(--chip); border-radius: 6px; }
.an-piste span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 6px; }
.an-piste .an-p90 { background: var(--s-6); }
.an-piste .an-med { background: var(--s-1); }
.an-piste .an-seuil { width: 2px; top: -3px; bottom: -3px; background: var(--bad); border-radius: 0; }
.an-anim .an-piste .an-barre-x { transform-origin: left; animation: an-etire .7s cubic-bezier(.2,.8,.2,1) both; }
.an-liens { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.an-svg .an-accent { fill: var(--s-accent); }
.an-svg.an-etroit text { font-size: 14px; }   /* viewBox 360 réduit à ≈ 310 px : 14 → ≈ 12 px affichés */
.vue-analyse .onglets { flex-wrap: nowrap; overflow-x: auto; }
.vue-analyse .onglets button { white-space: nowrap; }
@media (max-width: 400px) {
  .an-chaine { flex-direction: column; align-items: flex-start; }
  .an-etape { flex-direction: row; min-width: 0; text-align: left; }
  .an-maillon { flex-direction: row; align-items: center; gap: 8px; margin-left: 9px; padding: 6px 0 6px 18px; border-left: 3px solid var(--acc); }
  .an-maillon .an-trait { display: none; }
}
@media (prefers-reduced-motion: reduce) { .an-maj { transition: none; } .an-anim .an-etape, .an-anim .an-maillon, .an-anim .an-piste .an-barre-x { animation: none !important; } }

/* graphiques KnG (repris de Translead tableaux.css, 20/10/2026) */
/* carte de chaleur */
.kg-chaleur { overflow-x: auto; }
.kg-chaleur table { border-collapse: separate; border-spacing: 2px; width: 100%; font-size: 12px; }
.kg-chaleur th { font-weight: 700; font-size: 12px; color: var(--mut); text-align: right; padding: 2px 6px; white-space: nowrap; background: none; text-transform: none; letter-spacing: 0; }
.kg-chaleur thead th { text-align: center; }
.kg-chaleur td { text-align: center; padding: 0; height: 30px; min-width: 38px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.kg-chaleur td button { width: 100%; height: 100%; min-height: 30px; border: 0; border-radius: 4px; background: transparent; font: inherit; font-weight: 700;
                        color: inherit; cursor: pointer; }
.kg-chaleur td button:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.kg-chaleur td.zero { color: var(--mut); }
.kg-chaleur .echelle { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); margin-top: 6px; }
.kg-chaleur .echelle span.deg { width: 120px; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--k-chaleur) 8%, var(--panel)), var(--k-chaleur)); }

/* anneau et jauge : libellé central */
.kg-centre { font-weight: 700; fill: var(--ink) !important; font-size: 20px !important; }
.kg-centre-s { fill: var(--mut) !important; font-size: 12px !important; }
/* ------------------------------------------------------------ animations d'arrivée (une seule fois) */
.kg-cascade > * { animation: kg-monte .45s ease-out both; }
.kg-cascade > *:nth-child(2) { animation-delay: .05s; } .kg-cascade > *:nth-child(3) { animation-delay: .1s; }
.kg-cascade > *:nth-child(4) { animation-delay: .15s; } .kg-cascade > *:nth-child(5) { animation-delay: .2s; }
.kg-cascade > *:nth-child(6) { animation-delay: .25s; } .kg-cascade > *:nth-child(7) { animation-delay: .3s; }
.kg-cascade > *:nth-child(8) { animation-delay: .35s; } .kg-cascade > *:nth-child(n+9) { animation-delay: .4s; }
@keyframes kg-monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.kg-pousse-v { transform-box: fill-box; transform-origin: bottom; animation: kg-pousse-v .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes kg-pousse-v { from { transform: scaleY(0); } to { transform: none; } }
.kg-pousse-h { transform-origin: left; animation: kg-pousse-h .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes kg-pousse-h { from { transform: scaleX(0); } to { transform: none; } }
.kg-pousse-c { animation: kg-pousse-c .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes kg-pousse-c { from { transform: scaleX(0); } to { transform: none; } }
.kg-trace { animation: kg-trace 1s ease-out both; }
@keyframes kg-trace { to { stroke-dashoffset: 0; } }
.kg-fondu { animation: kg-fondu .8s ease-out both; }
@keyframes kg-fondu { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .kg-cascade > *, .kg-pousse-v, .kg-pousse-h, .kg-pousse-c, .kg-trace, .kg-fondu, .maj-auto.charge .pouls { animation: none !important; }
  .kg-trace { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
}


@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
/* Tickets (21/10/2026, repris de Kènè) : bouton en tête de page, textes de la fiche */
@media (min-width: 701px) { .tete .actions.ticket { position: absolute; top: 0; right: 0; margin-top: 0; } }
.ticket-texte { white-space: pre-wrap; border-left: 4px solid var(--acc); background: color-mix(in srgb, var(--acc) 6%, var(--panel)); padding: 10px 12px; }
.ticket-texte.ok { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--panel)); }
.actions-ticket { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.kpi.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }

/* 22/10/2026 : tableau KPI aérien (29-tableau-kpi.js) */
.tk-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 0 0 12px; }
.tk-carte { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; cursor: pointer; font: inherit; color: var(--ink); }
.tk-carte:hover, .tk-carte:focus-visible { background: var(--hl); }
.tk-lib { font-weight: 700; font-size: 13px; min-height: 2.6em; }
.tk-chiffre { font-size: 34px; font-weight: 800; line-height: 1.2; padding: 14px 0 10px; }
button.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--acc); text-decoration: underline; cursor: pointer; }

/* 22/10/2026 : entonnoir des étapes (repris de Translead tableaux.css), utilisé par Dossiers aérien */
.kg-entonnoir { display: flex; flex-direction: column; gap: 4px; }
.kg-entonnoir .etage { display: grid; grid-template-columns: 34px minmax(90px, 28%) 1fr 64px; gap: 10px; align-items: center; }
.kg-entonnoir .num { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700;
                     font-size: 12px; background: var(--acc); color: var(--acc-ink); }
.kg-entonnoir .lib { font-size: 13px; line-height: 1.2; }
.kg-entonnoir .lib small { display: block; color: var(--mut); font-size: 11px; }
.kg-entonnoir .piste { display: flex; justify-content: center; height: 26px; min-width: 0; }
.kg-entonnoir .barre { height: 26px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 82%, var(--panel)); color: var(--acc-ink);
                       display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; border: 0; cursor: pointer;
                       min-width: 46px; white-space: nowrap; transform-origin: center; font-variant-numeric: tabular-nums; }
.kg-entonnoir .barre:hover, .kg-entonnoir .barre:focus-visible { background: var(--acc); }
.kg-entonnoir .attente { justify-self: start; font-size: 11px; white-space: nowrap; background: none; border: 0; color: var(--warn); font-weight: 700; cursor: pointer; padding: 2px 4px; }


/* 22/10/2026 : bouton « Antériorité » (en-tête) ; activé = éléments d'avant 2026 masqués partout */
.filtres-plateforme .bascule.actif, .filtres-plateforme .actif { background: color-mix(in srgb, var(--warn) 22%, var(--panel)); border-color: var(--warn); color: var(--ink); font-weight: 700; }
.filtres-plateforme { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 6px 16px; border-bottom: 1px solid var(--line);
  background: var(--panel); font-size: 12px; }
.filtres-plateforme .lib { color: var(--mut); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-right: 4px; }
.filtres-plateforme select.f { font-size: 12px; padding: 3px 6px; }
.menu-etats { position: relative; }
.menu-etats summary { list-style: none; cursor: pointer; }
.menu-etats summary::-webkit-details-marker { display: none; }
.menu-etats .choix-etats { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; min-width: 180px; color: var(--ink); }
/* 22/10/2026 : éléments chargés (Imports) — tableau large défilant horizontalement */
.charges .tbl { overflow-x: auto; }
@media (min-width: 601px) { .charges table.kn td, .charges table.kn th { white-space: nowrap; } }

/* 22/10/2026 : éléments de l'aérien (05-aerien.js) — ciel, avion, frise du parcours animée */
.ka-picto { display: inline-block; vertical-align: middle; flex: none; }
.marque-avion { color: var(--acc); display: inline-flex; margin-right: 2px; transform: rotate(45deg); }
.ka-ciel { width: 100%; height: auto; display: block; margin: 0 0 6px; color: var(--acc); }
.ka-ciel .ka-trajet { fill: none; stroke: var(--acc); stroke-width: 2; stroke-dasharray: 6 7; opacity: .7; }
.ka-ciel .ka-dessine { stroke-dashoffset: 900; animation: ka-trait 3s ease-out forwards; }
.ka-ciel .ka-escale { fill: var(--panel); stroke: var(--acc); stroke-width: 2.5; }
.ka-ciel .ka-ville { font-size: 11px; fill: var(--mut); }
.ka-ciel .ka-nuage path { fill: var(--chip); }
.ka-ciel .ka-avion { color: var(--acc); }
.ka-derive { animation: ka-derive linear infinite alternate; }
@keyframes ka-derive { from { translate: -10px 0; } to { translate: 14px 0; } }
@keyframes ka-trait { to { stroke-dashoffset: 0; } }
.ka-frise { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 6px; align-items: start;
  padding: 8px 4px 4px; overflow-x: auto; margin: 6px 0 12px; }
.ka-frise .ka-ligne { position: absolute; left: 48px; right: 48px; top: 30px; height: 3px; pointer-events: none; }
.ka-frise.compact .ka-ligne { top: 25px; }
.ka-frise .ka-trace { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, var(--acc) 0 8px, transparent 8px 14px); opacity: .55; transform-origin: left; }
.ka-frise .ka-mobile { position: absolute; top: -10px; left: 0; color: var(--acc); transform: translateX(-50%) rotate(90deg); display: none; }
.ka-frise.ka-joue .ka-trace { animation: ka-pousse 1.4s ease-out both; }
.ka-frise.ka-joue .ka-mobile { display: block; animation: ka-vol 2.6s cubic-bezier(.45,0,.25,1) .3s both; }
@keyframes ka-pousse { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ka-vol { from { left: 0; opacity: 1; } 92% { opacity: 1; } to { left: 100%; opacity: 0; } }
.ka-etape { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: none; border: 0;
  font: inherit; color: var(--ink); padding: 0 2px; }
button.ka-etape { cursor: pointer; }
button.ka-etape:hover .ka-rond, button.ka-etape:focus-visible .ka-rond { background: var(--acc); color: var(--acc-ink); }
.ka-frise.ka-joue .ka-etape { animation: kg-monte .5s ease both; }
.ka-rond { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--panel);
  border: 2px solid var(--acc); color: var(--acc); transition: background .2s, color .2s; }
.ka-frise.compact .ka-rond { width: 38px; height: 38px; }
.ka-lib { font-size: 12px; font-weight: 700; line-height: 1.2; }
.ka-nb { font-size: 18px; }
.ka-sous { font-size: 11px; color: var(--mut); }
@media (prefers-reduced-motion: reduce) { .ka-derive, .ka-frise *, .ka-ciel * { animation: none !important; } .ka-ciel .ka-dessine { stroke-dashoffset: 0; } }
@media (max-width: 600px) { .ka-frise { grid-auto-columns: 84px; } }

/* 22/10/2026 : Processus aérien (31-processus.js), modèle Translead « processus observé » */
.pa-bande { scroll-margin-top: 90px; }
.pa-tete { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-bottom: 10px; }
.pa-tete h3 { margin: 0; }
.pa-tete small { color: var(--mut); }
.pa-rond { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--acc); color: var(--acc-ink); }
.pa-theo { font-size: 12px; color: var(--mut); text-align: right; }
.pa-jalons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 8px; }
.pa-jalon { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--line); border-left: 4px solid var(--acc); border-radius: 8px; background: var(--panel); }
.pa-jlib { font-size: 12px; font-weight: 700; }
.pa-jmed { font-size: 22px; }
.pa-jmed small { font-size: 11px; font-weight: 400; color: var(--mut); }
.pa-jdet { font-size: 11px; color: var(--mut); }
.pa-barre { height: 5px; background: var(--chip); border-radius: 3px; overflow: hidden; }
.pa-barre i { display: block; height: 100%; background: var(--acc); }
.pa-etapes { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px 22px; counter-reset: none; }
.pa-carte { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px 10px 10px; border: 1px solid var(--line); border-top: 4px solid var(--pa-c);
  border-radius: 8px; background: var(--panel); font-size: 12px; animation: kg-monte .45s ease both; transition: opacity .2s; }
.pa-carte::after { content: '→'; position: absolute; right: -18px; top: 50%; transform: translateY(-50%); color: var(--mut); font-size: 14px; }
.pa-carte:last-child::after { content: none; }
.pa-num { position: absolute; top: -12px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--pa-c); color: var(--acc-ink);
  font-weight: 700; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.pa-acteur { position: absolute; top: -10px; left: 8px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--pa-c); color: var(--acc-ink);
  max-width: calc(100% - 48px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-lib { color: var(--ink); line-height: 1.3; }
.pa-duree { color: var(--mut); font-size: 11px; }
.pa-carte.pa-terne { opacity: .25; }
.pa-legende { display: flex; flex-wrap: wrap; gap: 6px; }
.pa-chip { font: inherit; font-size: 12px; border: 1px solid var(--line); border-left: 6px solid var(--pa-c); background: var(--panel); color: var(--ink); border-radius: 6px; padding: 3px 8px; cursor: pointer; }
.pa-chip[aria-pressed="true"] { background: var(--hl); font-weight: 700; }
@media (max-width: 600px) { .pa-tete { grid-template-columns: auto 1fr; } .pa-theo { grid-column: 1 / -1; text-align: left; } .pa-carte::after { content: none; } }
@media (prefers-reduced-motion: reduce) { .pa-carte { animation: none; } }
.ka-frise.compact { grid-auto-columns: minmax(58px, 1fr); }
.ka-frise.compact .ka-lib { font-size: 11px; }
@media (max-width: 600px) {
  .ka-frise:not(.compact) { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .ka-frise:not(.compact) .ka-ligne { display: none; }
}

/* ------------------------------------------------------------ fiche texte (lot L2, 26/10/2026) */
dl.fiche { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 6px 14px; margin: 0; }
dl.fiche dt { font-weight: 700; }
dl.fiche dd { margin: 0; overflow-wrap: anywhere; }
.bloc.pdf iframe.pdf { width: 100%; height: 78vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
@media (max-width: 600px) { dl.fiche { grid-template-columns: 1fr; } dl.fiche dt { margin-top: 6px; } .bloc.pdf iframe.pdf { height: 60vh; } }
/* registre et conformité (lot L4, 26/10/2026) */
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; align-items: center; }
.texte-long { white-space: pre-wrap; overflow-wrap: anywhere; }
.proposition { border-left: 4px solid var(--warn); background: var(--panel2); padding: 8px 12px; margin: 10px 0; border-radius: var(--radius); }
.proposition h4 { margin: 0 0 6px; }
