/* =============================================================================
   KIP Informatique : thème commun des applications IA.KIP360 (kip_theme 1.0.0)
   Auteur : Teddy Pontoizeau, www.kipinformatique.fr. Licence MIT, fourni « en l'état », sans garantie.

   Cheminement : une seule feuille de style pour toutes les applications, recopiée telle quelle dans
   static/kip/ de chacune (contrôle des copies : test_theme_applis.py à la racine). Chaque application
   charge ensuite son propre app.css, réduit à ses ajouts.

   Mise en page « poste de travail » : en-tête fixe, colonne de navigation à gauche, zone de travail
   qui défile seule. La page entière ne défile jamais (hauteur de l'écran). Couleur d'accent par
   application : <body data-app="pgi|param|backup|prospection|dw|portail">.
   Aucune ressource externe (CSP « default-src 'self' ») ; polices du système.
   ============================================================================= */

:root {
  --navy: #002558; --navy-2: #0a3a7a; --bleu-kip: #0069CC; --bleu-doux: #e6f0fb;
  --orange: var(--bleu-kip); --orange-soft: var(--bleu-doux);      /* anciens noms, gardés pour les app.css existants */
  --bg: #e9edf3; --card: #ffffff; --line: #d3d9e1; --line-2: #e8ecf1;
  --text: #0f2342; --muted: #5a6472;
  --ok: #2f7d32; --ok-soft: #e6f2df;
  --warn: #8a5a00; --warn-soft: #fdf1dc;
  --err: #b3261e; --err-soft: #fbe9e8;
  --radius: 10px;
  --ombre: 0 1px 2px rgba(0, 37, 88, .06), 0 4px 14px rgba(0, 37, 88, .07);
  --ombre-forte: 0 6px 22px rgba(0, 37, 88, .16);
  --mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  --accent: var(--bleu-kip); --accent-doux: var(--bleu-doux); --accent-fonce: #004f99;
  --cote: 232px; --entete: 56px;
}
body[data-app="pgi"]         { --accent: #0069CC; --accent-doux: #e3eefb; --accent-fonce: #004f99; }
body[data-app="param"]       { --accent: #6b3fc4; --accent-doux: #efe8fb; --accent-fonce: #4f2c97; }
body[data-app="backup"]      { --accent: #1f8a5b; --accent-doux: #e2f3ea; --accent-fonce: #166644; }
body[data-app="prospection"] { --accent: #c2620a; --accent-doux: #fcefe1; --accent-fonce: #934a06; }
body[data-app="dw"]          { --accent: #0b8793; --accent-doux: #e0f3f5; --accent-fonce: #08636c; }
body[data-app="portail"]     { --accent: #0069CC; --accent-doux: #e3eefb; --accent-fonce: #004f99; }

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--accent-fonce); }
h1 { font-size: 22px; margin: 2px 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
h2 { font-size: 15px; margin: 0 0 12px; }
h3 { font-size: 12px; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: 12px; } .strong { font-weight: 600; }
.mono { font-family: var(--mono); font-size: .95em; }
.ok { color: var(--ok); } .err { color: var(--err); } .warn { color: var(--warn); }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.ico-l { width: 22px; height: 22px; }

/* ===== Poste de travail ===== */
body.kip-poste-page { display: flex; flex-direction: column; overflow: hidden; }
.kip-entete { flex: none; height: var(--entete); display: flex; align-items: center; gap: 16px; padding: 0 18px;
  background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); position: relative; z-index: 5; }
.kip-entete .marque { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700;
  letter-spacing: .03em; white-space: nowrap; }
.kip-entete .marque svg.batiment { width: 34px; height: 34px; }
.kip-entete .marque small { display: block; font-weight: 400; font-size: 11px; letter-spacing: 0; opacity: .7; }
.kip-entete .contexte { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.kip-entete .contexte .point { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.kip-entete .contexte.tous .point { background: #f2b33d; }
.kip-entete .droite { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; }
.kip-entete .droite .muted { color: #a9b8ca; }
.retour-portail { display: inline-flex; align-items: center; gap: 6px; color: #dbe4ef; text-decoration: none; font-size: 13px;
  padding: 5px 10px; border: 1px solid #3a5f93; border-radius: 8px; white-space: nowrap; }
.retour-portail:hover { background: var(--navy-2); color: #fff; }

.kip-poste { flex: 1; min-height: 0; display: flex; }
.kip-cote { flex: none; width: var(--cote); background: #fff; border-right: 1px solid var(--line); overflow-y: auto;
  padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.kip-cote .titre-cote { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  margin: 14px 10px 6px; }
.kip-cote .titre-cote:first-child { margin-top: 2px; }
.kip-cote a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text);
  text-decoration: none; font-weight: 500; }
.kip-cote a:hover { background: var(--accent-doux); }
.kip-cote a.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.kip-cote a .compte { margin-left: auto; font-size: 11px; font-weight: 700; padding: 0 7px; border-radius: 99px;
  background: var(--line-2); color: var(--text); }
.kip-cote a.active .compte { background: rgba(255, 255, 255, .25); color: #fff; }
.kip-cote .pied-cote { margin-top: auto; padding: 12px 10px 2px; font-size: 11px; color: var(--muted); }

.kip-travail { flex: 1; min-width: 0; overflow-y: auto; padding: 18px 26px 40px; scroll-behavior: smooth; }
.kip-travail > .contenu { max-width: 1240px; margin: 0 auto; }

/* Fil d'Ariane et tête de page */
.fil { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.fil a { color: var(--muted); text-decoration: none; }
.fil a:hover { color: var(--accent-fonce); text-decoration: underline; }
.fil .sep { opacity: .5; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.doc-head .sous-titre { margin: 0; color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== Panneaux (cartes) ===== */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  min-width: 0; box-shadow: var(--ombre); }
.card + .card, .stack + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -16px -18px 14px;
  padding: 11px 18px; border-bottom: 1px solid var(--line-2); border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(180deg, #fbfcfe, #f4f7fb); flex-wrap: wrap; }
.card-head h1, .card-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; }
.card-head h2 .ico { color: var(--accent); }
.card.action { border-top: 4px solid var(--accent); }
.card.action > .card-head { background: linear-gradient(180deg, var(--accent-doux), #fff); }
.card.info { border-left: 4px solid var(--accent); }
.card.zone-danger { border-color: #efc9c6; border-top: 4px solid var(--err); }
.card.zone-danger > .card-head { background: var(--err-soft); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid-2 > .card { margin-top: 0; }
.carte-etroite { max-width: 720px; }

/* ===== Onglets ===== */
.onglets { display: flex; gap: 4px; flex-wrap: wrap; margin: 4px 0 16px; padding: 4px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--ombre); width: fit-content; max-width: 100%; }
.onglets button, .onglets a { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 8px 14px;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-radius: 9px; text-decoration: none; }
.onglets button:hover, .onglets a:hover { color: var(--text); background: var(--accent-doux); }
.onglets [aria-selected="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.onglets .compte { min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--line-2); color: var(--text);
  font-size: 11px; text-align: center; }
.onglets [aria-selected="true"] .compte { background: rgba(255, 255, 255, .25); color: #fff; }
.js-onglets [data-panneau][hidden] { display: none !important; }
[data-panneau] { animation: apparition .18s ease-out; }

/* ===== Assistant à étapes ===== */
.etapes-tete { display: flex; gap: 0; margin: 0 0 16px; padding: 0; list-style: none; counter-reset: etape; flex-wrap: wrap; }
.etapes-tete li { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; color: var(--muted);
  font-size: 13px; font-weight: 600; position: relative; padding-right: 10px; cursor: pointer; }
.etapes-tete li::before { counter-increment: etape; content: counter(etape); flex: none; width: 28px; height: 28px;
  border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-weight: 700;
  transition: background .2s, color .2s, transform .2s; }
.etapes-tete li::after { content: ""; flex: 1; height: 2px; background: var(--line); border-radius: 2px; }
.etapes-tete li:last-child::after { display: none; }
.etapes-tete li.faite::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.etapes-tete li.faite::after { background: var(--ok); }
.etapes-tete li.courante { color: var(--text); }
.etapes-tete li.courante::before { background: var(--accent); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 4px var(--accent-doux); }
.js-etapes [data-etape][hidden] { display: none !important; }
[data-etape] { animation: apparition .18s ease-out; }
.etapes-pied { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.resume { background: var(--accent-doux); border-radius: 8px; padding: 10px 14px; margin: 0; list-style: none; }
.resume li { padding: 3px 0; display: flex; gap: 8px; }
.resume li strong { min-width: 150px; color: var(--muted); font-weight: 600; }

/* ===== Tuiles (listes en cartes) ===== */
.tuiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.tuile { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--ombre); border-top: 4px solid var(--accent); color: var(--text);
  text-decoration: none; transition: transform .15s, box-shadow .15s; position: relative; }
a.tuile:hover, .tuile.cliquable:hover { transform: translateY(-2px); box-shadow: var(--ombre-forte); }
.tuile .tuile-titre { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
a.tuile-titre { color: var(--text); text-decoration: none; } a.tuile-titre:hover { color: var(--accent-fonce); }
.tuile .tuile-titre .pastille { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent-doux); color: var(--accent-fonce); flex: none; }
.tuile .tuile-lignes { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.tuile .tuile-pied { display: flex; gap: 6px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.tuile.nouvelle { border: 2px dashed var(--line); border-top-width: 2px; box-shadow: none; background: transparent;
  align-items: center; justify-content: center; text-align: center; color: var(--muted); min-height: 130px; }
.tuile.nouvelle:hover { border-color: var(--accent); color: var(--accent-fonce); background: var(--accent-doux); }

/* ===== États vides illustrés ===== */
.vide { text-align: center; padding: 30px 16px; color: var(--muted); }
.vide svg.illustration { width: 120px; height: 90px; display: block; margin: 0 auto 10px; }
.vide strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ===== Statuts ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 9px;
  border-radius: 99px; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; background: var(--line-2); color: var(--text); }
.st-ok, .st-en_marche { background: var(--ok-soft); color: var(--ok); }
.st-retard, .st-demarrage { background: var(--warn-soft); color: var(--warn); }
.st-alerte, .st-echec { background: var(--err-soft); color: var(--err); }
.badge-opt { background: var(--accent-doux); color: var(--accent-fonce); }
.pastille-etat { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--line); }
.pastille-etat.ok { background: var(--ok); } .pastille-etat.warn { background: #e2a33a; } .pastille-etat.err { background: var(--err); }

/* ===== Indicateurs ===== */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px;
  border-top: 3px solid var(--accent); box-shadow: var(--ombre); }
.kpi.kpi-alerte { border-top-color: var(--err); }
.kpi span { display: block; font-size: 12px; color: var(--muted); }
.kpi strong { font-size: 22px; }

/* ===== Tableaux ===== */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  font-weight: 600; padding: 7px 8px; border-bottom: 1px solid var(--line); background: #f7f9fc; position: sticky; top: 0; }
.table td { padding: 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover td { background: #f8fafd; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { white-space: nowrap; text-align: right; }
.defilant { max-height: 52vh; overflow: auto; border: 1px solid var(--line-2); border-radius: 8px; }

/* ===== Formulaires ===== */
.form { display: flex; flex-direction: column; gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.form label.check { flex-direction: row; align-items: center; font-weight: 400; color: var(--text); font-size: 13px; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.form.inline label { flex-direction: row; align-items: center; gap: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--text); padding: 8px 10px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; min-width: 0; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 16px; height: 16px; padding: 0; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-doux); border-color: var(--accent); }
input:disabled, select:disabled { background: #f4f5f6; color: var(--muted); }
textarea { font-size: 13px; resize: vertical; width: 100%; }
fieldset { border: 1px solid var(--line-2); border-radius: 8px; padding: 10px 14px 14px; margin: 0; }
legend { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 4px; }
.hint { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.choix { display: grid; gap: 8px; }
.choix label.check { display: block; position: relative; padding: 10px 12px 10px 38px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.choix label.check > input { position: absolute; left: 12px; top: 12px; margin: 0; }
.choix label.check:hover { border-color: var(--accent); }
.choix label.check:has(input:checked) { border-color: var(--accent); background: var(--accent-doux); box-shadow: 0 0 0 1px var(--accent); }

/* Aide repliable et infobulle « ? » */
details.aide-repliable { margin-top: 10px; font-size: 12px; color: var(--muted); }
details.aide-repliable > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  color: var(--accent-fonce); list-style: none; }
details.aide-repliable > summary::-webkit-details-marker { display: none; }
details.aide-repliable > summary::before { content: "?"; width: 18px; height: 18px; border-radius: 50%; display: grid;
  place-items: center; background: var(--accent-doux); font-size: 11px; }
details.aide-repliable[open] > summary { margin-bottom: 6px; }
.aide { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%;
  background: var(--line-2); color: var(--accent-fonce); font-size: 11px; font-weight: 700; cursor: help; vertical-align: middle; }
.aide:hover, .aide:focus { background: var(--accent-doux); outline: none; }
details.reglages-avances { margin: 8px 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; }
details.reglages-avances > summary { cursor: pointer; font-weight: 600; }

/* ===== Boutons ===== */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px;
  border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-doux); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.btn-primary:hover:not(:disabled) { background: var(--accent-fonce); border-color: var(--accent-fonce); }
.btn-danger { color: var(--err); } .btn-danger:hover:not(:disabled) { border-color: var(--err); background: var(--err-soft); }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn-grand { padding: 11px 20px; font-size: 15px; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row-actions form, .actions form, .btn-row form { display: inline; margin: 0; }

/* Menu « ⋯ » (actions secondaires) */
details.menu { position: relative; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
details.menu .menu-liste { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; z-index: 20;
  border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--ombre-forte); padding: 6px; display: flex; flex-direction: column; }
details.menu .menu-liste a, details.menu .menu-liste button { display: flex; align-items: center; gap: 8px; width: 100%;
  text-align: left; padding: 8px 10px; border: 0; border-radius: 7px; background: none; font: inherit; color: var(--text);
  text-decoration: none; cursor: pointer; }
details.menu .menu-liste a:hover, details.menu .menu-liste button:hover { background: var(--accent-doux); }
details.menu .menu-liste .danger { color: var(--err); }
details.menu .menu-liste .danger:hover { background: var(--err-soft); }
details.menu .menu-liste form { margin: 0; }

/* ===== Messages ===== */
.alert-box { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
.alert-box.warn { background: var(--warn-soft); color: var(--warn); }
.alert-box.err { background: var(--err-soft); color: var(--err); }
.alert-box.ok { background: var(--ok-soft); color: var(--ok); animation: apparition .25s ease-out; }
.bandeau { padding: 8px 24px; font-size: 13px; flex: none; }
.bandeau.warn { background: var(--warn-soft); color: var(--warn); }
.bandeau.info { background: var(--accent-doux); color: var(--accent-fonce); }
.bandeau a { margin-left: 8px; font-weight: 600; }
#toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px;
  box-shadow: var(--ombre-forte); max-width: 380px; animation: glisse .25s ease-out; }
.toast.err { background: var(--err); }
.pied { text-align: center; color: var(--muted); font-size: 11px; padding: 18px 0 0; }

/* Journal, aperçus, progression */
pre.apercu, pre.journal, pre.journal-direct { background: #0f1b2e; color: #dbe6f5; border-radius: 8px; padding: 12px 14px;
  font-family: var(--mono); font-size: 12px; white-space: pre-wrap; overflow: auto; margin: 8px 0; }
pre.journal { max-height: 64vh; } pre.journal-direct { max-height: 56vh; min-height: 220px; }
pre .titre { color: #8fc1ff; font-weight: 700; } pre .err { color: #ff9a92; } pre .warn { color: #ffd27a; } pre .ok { color: #9be39f; font-weight: 600; }
progress.progression { width: 100%; height: 10px; accent-color: var(--accent); margin-bottom: 4px; }
.barre-activite { height: 4px; background: var(--line-2); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.barre-activite span { display: block; width: 30%; height: 100%; background: var(--accent); animation: va-et-vient 1.4s ease-in-out infinite; }
.htmx-indicator { display: none; } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display: inline; }

@keyframes va-et-vient { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }
@keyframes apparition { from { transform: translateY(6px); } to { transform: none; } }      /* jamais d'opacité : le contenu reste lisible si l'animation est suspendue */
@keyframes glisse { from { transform: translateX(24px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Petits écrans : la colonne passe au-dessus, la page défile normalement ===== */
@media (max-width: 900px) {
  body.kip-poste-page { overflow: auto; display: block; }
  .kip-entete { height: auto; flex-wrap: wrap; padding: 8px 16px; gap: 8px; }
  .kip-entete .contexte { max-width: 100%; }
  .kip-poste { display: block; }
  .kip-cote { width: auto; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .kip-cote .titre-cote, .kip-cote .pied-cote { display: none; }
  .kip-travail { overflow: visible; padding: 16px; }
  .grid-2, .row2, .row3 { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; }
}
