@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Barlow+Semi+Condensed:wght@500;600;700&family=IBM+Plex+Mono:wght@500&display=swap');

.wk { 
  --bleu:#23387F; --bleu-nuit:#17245A; --bleu-clair:#4A5FA8;
  --hivis:#FECD4D; --toile:#EFEDE7; --carte:#FFFFFF;
  --trait:#D9D5CB; --gris:#6E7280; --gris-clair:#9A9DA6;
  --rouge:#B3261E; --vert:#2E6B3E; --ambre:#9A6300;
  font-family:'Barlow',system-ui,-apple-system,'Segoe UI',sans-serif;
  color:var(--bleu-nuit); background:var(--toile);
  min-height:100vh; -webkit-font-smoothing:antialiased;
}
.wk *,.wk *::before,.wk *::after{ box-sizing:border-box; }
.wk h1,.wk h2,.wk h3,.wk h4{ font-family:'Barlow Semi Condensed',sans-serif; margin:0; letter-spacing:-.01em; }
.wk p{ margin:0; }
.wk button{ font-family:inherit; cursor:pointer; }
.wk input,.wk select,.wk textarea{ font-family:inherit; }

/* bande réfléchissante — motif signature */
.wk-bande{
  height:7px;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.85) 0 6px, rgba(255,255,255,0) 6px 13px),
    var(--hivis);
}
.wk-bande-fine{ height:4px; }

/* ---------- structure ---------- */
.wk-app{ min-height:100vh; display:flex; flex-direction:column; }
.wk-entete{ background:var(--bleu); color:#fff; }
.wk-entete-in{ max-width:1120px; margin:0 auto; padding:14px 20px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.wk-logo{ display:block; width:auto; }
.wk-marque-bloc{ display:flex; flex-direction:column; gap:5px; color:#fff; }
.wk-marque-sous{ font-size:11.5px; font-weight:500; color:#AFBCDD; letter-spacing:.02em; padding-left:23px; }
.wk-entete-fin{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.wk-qui{ font-size:13px; color:#C6D0EA; text-align:right; line-height:1.35; }
.wk-qui b{ display:block; color:#fff; font-weight:600; }
.wk-corps{ flex:1; max-width:1120px; width:100%; margin:0 auto; padding:26px 20px 64px; }

/* ---------- boutons ---------- */
.wk-btn{ border:0; border-radius:3px; padding:11px 20px; font-weight:600; font-size:14.5px;
  background:var(--bleu); color:#fff; transition:background .15s; }
.wk-btn:hover{ background:var(--bleu-nuit); }
.wk-btn:disabled{ background:var(--gris-clair); cursor:not-allowed; }
.wk-btn-sec{ background:transparent; color:var(--bleu); border:1.5px solid var(--trait); }
.wk-btn-sec:hover{ background:#fff; border-color:var(--bleu); }
.wk-btn-fant{ background:transparent; color:#C6D0EA; border:1.5px solid rgba(255,255,255,.28); padding:8px 14px; font-size:13.5px; }
.wk-btn-fant:hover{ background:rgba(255,255,255,.1); color:#fff; }
.wk-btn-min{ padding:7px 13px; font-size:13px; }
.wk-lien{ background:none; border:0; color:var(--bleu-clair); font-weight:600; font-size:14px; padding:0; text-decoration:underline; text-underline-offset:3px; }

/* ---------- connexion ---------- */
.wk-porte{ min-height:100vh; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.wk-porte-g{
  background:var(--bleu-nuit); color:#fff; padding:44px 48px 34px;
  display:flex; flex-direction:column;
  background-image:
    radial-gradient(circle at 92% 8%, rgba(254,205,77,.13) 0, rgba(254,205,77,0) 48%),
    linear-gradient(180deg, #2A3C7E 0%, var(--bleu-nuit) 62%);
}
.wk-porte-haut{ flex:0 0 auto; }
.wk-porte-milieu{ flex:1 1 auto; display:flex; flex-direction:column; justify-content:center; padding:36px 0; }
.wk-porte-bas{
  flex:0 0 auto; display:flex; gap:22px; flex-wrap:wrap;
  border-top:1px solid rgba(255,255,255,.14); padding-top:16px;
  font-size:13px; color:#98A4C6;
}
.wk-porte-bas span{ position:relative; padding-left:13px; }
.wk-porte-bas span::before{
  content:''; position:absolute; left:0; top:7px; width:5px; height:5px;
  background:var(--hivis); border-radius:1px;
}
.wk-porte-titre{ font-size:46px; font-weight:700; line-height:1.02; margin:22px 0 0; max-width:11ch; }
.wk-porte-txt{ font-size:16px; color:#BAC5E2; line-height:1.55; max-width:44ch; margin-top:18px; }
.wk-delais{ margin-top:30px; display:flex; gap:38px; flex-wrap:wrap; }
.wk-delai b{ display:block; font-family:'Barlow Semi Condensed',sans-serif; font-size:30px; font-weight:700; color:var(--hivis); line-height:1; }
.wk-delai span{ font-size:13px; color:#A3AFD0; display:block; margin-top:5px; max-width:16ch; }
.wk-porte-d{ background:var(--toile); padding:56px 48px; display:flex; align-items:center; }
.wk-porte-form{ width:100%; max-width:380px; margin:0 auto; }
.wk-onglets{ display:flex; gap:26px; border-bottom:1.5px solid var(--trait); margin-bottom:26px; }
.wk-onglet{ background:none; border:0; padding:0 0 11px; font-size:16px; font-weight:600; color:var(--gris);
  border-bottom:2.5px solid transparent; margin-bottom:-1.5px; }
.wk-onglet.on{ color:var(--bleu-nuit); border-color:var(--hivis); }
.wk-demo{ margin-top:26px; font-size:12.5px; color:var(--gris); line-height:1.6; border-left:2px solid var(--trait); padding-left:12px; }

/* ---------- champs ---------- */
.wk-champ{ margin-bottom:16px; }
.wk-lab{ display:block; font-size:13px; font-weight:600; color:var(--bleu-nuit); margin-bottom:6px; }
.wk-lab i{ font-style:normal; color:var(--rouge); }
.wk-aide{ font-size:12.5px; color:var(--gris); margin-top:5px; line-height:1.45; }
.wk-in{ width:100%; padding:10px 12px; border:1.5px solid var(--trait); border-radius:3px; background:#fff;
  font-size:15px; color:var(--bleu-nuit); }
.wk-in:focus{ outline:2px solid var(--bleu-clair); outline-offset:1px; border-color:var(--bleu-clair); }
.wk-in.err{ border-color:var(--rouge); background:#FDF6F5; }
textarea.wk-in{ min-height:120px; resize:vertical; line-height:1.5; }
.wk-msg-err{ font-size:12.5px; color:var(--rouge); margin-top:5px; font-weight:500; }
.wk-grille{ display:grid; grid-template-columns:1fr 1fr; gap:0 16px; }
.wk-grille-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:0 16px; }

/* choix en cartes (type, gravité, résolution) */
.wk-choix{ display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.wk-opt{ text-align:left; background:#fff; border:1.5px solid var(--trait); border-radius:3px;
  padding:11px 13px; font-size:14px; color:var(--bleu-nuit); line-height:1.35; transition:border-color .12s; }
.wk-opt small{ display:block; color:var(--gris); font-size:12.5px; margin-top:3px; }
.wk-opt:hover{ border-color:var(--bleu-clair); }
.wk-opt.on{ border-color:var(--bleu); border-width:1.5px; box-shadow:inset 3px 0 0 var(--hivis); background:#FBFBF8; font-weight:600; }
.wk-opt.on small{ font-weight:400; }
.wk-opt-mult{ padding-left:40px; position:relative; }
.wk-opt-mult::before{ content:''; position:absolute; left:14px; top:13px; width:15px; height:15px;
  border:1.5px solid var(--gris-clair); border-radius:2px; background:#fff; }
.wk-opt-mult.on::before{ background:var(--bleu); border-color:var(--bleu); }
.wk-opt-mult.on::after{ content:''; position:absolute; left:19px; top:16px; width:5px; height:9px;
  border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }
.wk a.wk-btn{ text-decoration:none; display:inline-block; }

/* ---------- cartes / listes ---------- */
.wk-carte{ background:var(--carte); border:1px solid var(--trait); border-radius:3px; }
.wk-carte-pad{ padding:24px; }
.wk-titre-page{ font-size:30px; font-weight:700; }
.wk-sous{ color:var(--gris); font-size:15px; margin-top:5px; line-height:1.5; max-width:66ch; }
.wk-barre-titre{ display:flex; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-bottom:22px; }
.wk-barre-titre .wk-btn{ margin-left:auto; }

.wk-ligne{ display:block; width:100%; text-align:left; background:var(--carte); border:1px solid var(--trait);
  border-radius:3px; padding:15px 17px; margin-bottom:9px; transition:border-color .12s; }
.wk-ligne:hover{ border-color:var(--bleu-clair); }
.wk-ligne-h{ display:flex; align-items:center; gap:11px; flex-wrap:wrap; }
.wk-ref{ font-family:'IBM Plex Mono',monospace; font-size:13px; font-weight:500; color:var(--bleu-clair); }
.wk-ligne-t{ font-weight:600; font-size:15.5px; margin-top:5px; }
.wk-ligne-m{ font-size:13px; color:var(--gris); margin-top:4px; }

.wk-etat{ font-size:12px; font-weight:600; padding:3px 9px; border-radius:2px; border:1px solid; white-space:nowrap; }
.wk-etat-recue{ color:var(--bleu-clair); border-color:#C3D2E2; background:#F2F6FB; }
.wk-etat-analyse{ color:var(--ambre); border-color:#E4D2A8; background:#FBF6EA; }
.wk-etat-action{ color:var(--bleu-nuit); border-color:#CBD3B0; background:#F7F8E9; }
.wk-etat-resolue{ color:var(--vert); border-color:#B6D0BC; background:#F0F7F1; }
.wk-etat-rejetee{ color:var(--rouge); border-color:#E3C0BD; background:#FBF2F1; }
.wk-grav{ font-size:12px; font-weight:600; color:var(--gris); }
.wk-grav-bloquante{ color:var(--rouge); }
.wk-grav-majeure{ color:var(--ambre); }

.wk-vide{ background:var(--carte); border:1px dashed var(--trait); border-radius:3px; padding:44px 26px; text-align:center; }
.wk-vide h3{ font-size:20px; font-weight:600; }
.wk-vide p{ color:var(--gris); margin-top:7px; font-size:14.5px; }

/* ---------- étapes du formulaire ---------- */
.wk-etapes{ display:flex; gap:2px; margin-bottom:26px; }
.wk-etape{ flex:1; text-align:left; background:none; border:0; padding:0; }
.wk-etape-bar{ height:5px; background:var(--trait); border-radius:2px; }
.wk-etape.fait .wk-etape-bar{ background:var(--bleu); }
.wk-etape.on .wk-etape-bar{
  background:repeating-linear-gradient(115deg, rgba(255,255,255,.8) 0 5px, rgba(255,255,255,0) 5px 11px), var(--hivis);
}
.wk-etape-num{ font-size:12.5px; color:var(--gris); margin-top:7px; font-weight:500; }
.wk-etape.on .wk-etape-num,.wk-etape.fait .wk-etape-num{ color:var(--bleu-nuit); font-weight:600; }

.wk-sect-titre{ font-size:22px; font-weight:700; margin-bottom:4px; }
.wk-sect-txt{ color:var(--gris); font-size:14.5px; margin-bottom:22px; line-height:1.5; max-width:62ch; }
.wk-pied-form{ display:flex; gap:11px; align-items:center; margin-top:26px; padding-top:20px; border-top:1px solid var(--trait); }
.wk-pied-form .wk-btn:last-child{ margin-left:auto; }

/* photos */
.wk-photos{ display:grid; grid-template-columns:repeat(auto-fill,minmax(132px,1fr)); gap:11px; margin-top:13px; }
.wk-photo{ position:relative; border:1px solid var(--trait); border-radius:3px; overflow:hidden; background:#fff; aspect-ratio:4/3; }
.wk-photo img{ width:100%; height:100%; object-fit:cover; display:block; }
.wk-doc-apercu{ width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  text-align:center; padding:10px; font-size:11.5px; color:var(--bleu-nuit); font-weight:600;
  background:var(--toile); word-break:break-word; line-height:1.4; }
.wk-doc-apercu::before{ content:'📄'; display:block; font-size:22px; margin-bottom:6px; }
.wk-photo button{ position:absolute; top:5px; right:5px; background:rgba(22,36,58,.9); color:#fff; border:0;
  border-radius:2px; width:24px; height:24px; font-size:15px; line-height:1; }
.wk-depot{ border:1.5px dashed var(--trait); border-radius:3px; padding:26px; text-align:center; background:#fff; }
.wk-depot p{ color:var(--gris); font-size:13.5px; margin-top:7px; }

/* récap */
.wk-recap{ border:1px solid var(--trait); border-radius:3px; background:#FBFBF8; padding:19px 21px; }
.wk-recap dl{ margin:0; display:grid; grid-template-columns:auto 1fr; gap:9px 20px; font-size:14px; }
.wk-recap dt{ color:var(--gris); }
.wk-recap dd{ margin:0; font-weight:600; }

/* détail */
.wk-detail-h{ display:flex; align-items:flex-start; gap:16px; flex-wrap:wrap; margin-bottom:5px; }
.wk-bloc{ margin-top:26px; }
.wk-bloc-t{ font-size:16px; font-weight:700; padding-bottom:8px; border-bottom:2px solid var(--bleu); margin-bottom:14px; display:inline-block; }
.wk-faits{ display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:16px; }
.wk-fait span{ display:block; font-size:12.5px; color:var(--gris); }
.wk-fait b{ display:block; font-size:15px; font-weight:600; margin-top:3px; }
.wk-cite{ background:#FBFBF8; border-left:3px solid var(--hivis); padding:14px 17px; font-size:15px; line-height:1.6; white-space:pre-wrap; }

.wk-fil{ list-style:none; margin:0; padding:0; }
.wk-fil li{ position:relative; padding:0 0 20px 24px; border-left:1.5px solid var(--trait); }
.wk-fil li:last-child{ border-left-color:transparent; padding-bottom:0; }
.wk-fil li::before{ content:''; position:absolute; left:-5.5px; top:4px; width:9px; height:9px; border-radius:50%;
  background:var(--trait); border:2px solid var(--toile); }
.wk-fil li:first-child::before{ background:var(--bleu); }
.wk-fil-d{ font-size:12.5px; color:var(--gris); }
.wk-fil-t{ font-weight:600; font-size:14.5px; margin-top:2px; }
.wk-fil-n{ font-size:14px; color:var(--gris); margin-top:3px; line-height:1.5; white-space:pre-wrap; }

/* filtres qualité */
.wk-filtres{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:18px; }
.wk-filtres .wk-in{ width:auto; padding:8px 11px; font-size:14px; }
.wk-filtres input.wk-in{ min-width:220px; flex:1; }
.wk-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:11px; margin-bottom:22px; }
.wk-stat{ background:var(--carte); border:1px solid var(--trait); border-radius:3px; padding:14px 16px; }
.wk-stat b{ display:block; font-family:'Barlow Semi Condensed',sans-serif; font-size:30px; font-weight:700; line-height:1; }
.wk-stat span{ font-size:13px; color:var(--gris); }

.wk-charge{ padding:80px 20px; text-align:center; color:var(--gris); }
.wk-alerte{ background:#FBF2F1; border:1px solid #E3C0BD; color:var(--rouge); border-radius:3px;
  padding:11px 14px; font-size:13.5px; font-weight:500; margin-bottom:16px; }
.wk-ok{ background:#F0F7F1; border:1px solid #B6D0BC; color:var(--vert); border-radius:3px;
  padding:11px 14px; font-size:13.5px; font-weight:500; margin-bottom:16px; }

@media (max-width:860px){
  .wk-porte{ grid-template-columns:1fr; }
  .wk-porte-g{ padding:26px 24px 22px; }
  .wk-porte-milieu{ padding:22px 0 24px; }
  .wk-porte-titre{ font-size:33px; margin-top:16px; }
  .wk-porte-txt{ font-size:15px; margin-top:14px; }
  .wk-delais{ margin-top:24px; gap:26px; }
  .wk-porte-bas{ gap:16px; font-size:12.5px; }
  .wk-porte-d{ padding:32px 24px 56px; }
  .wk-marque-sous{ padding-left:20px; }
  .wk-grille,.wk-grille-3,.wk-choix{ grid-template-columns:1fr; }
  .wk-titre-page{ font-size:25px; }
  .wk-barre-titre .wk-btn{ margin-left:0; width:100%; }
  .wk-carte-pad{ padding:18px; }
  .wk-etape-num{ font-size:11px; }
  .wk-pied-form{ flex-wrap:wrap; }
  .wk-pied-form .wk-btn{ flex:1; }
}
@media (prefers-reduced-motion:reduce){ .wk *{ transition:none !important; } }

/* --- ajouts pour la version PHP --- */
.wk label.wk-opt{ display:block; cursor:pointer; }
.wk a.wk-onglet{ text-decoration:none; }
.wk a.wk-ligne,.wk a.wk-btn,.wk a.wk-lien{ text-decoration:none; }
.wk a.wk-ligne{ color:inherit; }
.wk-depot input[type=file]{ font-size:14px; }
.wk-filtres .wk-lien{ padding:8px 4px; }

/* --- notifications --- */
.wk-cloche{ position:relative; display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:3px; color:#C6D0EA; text-decoration:none;
  border:1.5px solid rgba(255,255,255,.22); transition:background .15s,color .15s; }
.wk-cloche:hover{ background:rgba(255,255,255,.1); color:#fff; }
.wk-cloche.actif{ color:#fff; }
.wk-pastille{ position:absolute; top:-7px; right:-7px; min-width:19px; height:19px; padding:0 5px;
  border-radius:10px; background:var(--hivis); color:var(--bleu-nuit);
  font-size:11.5px; font-weight:700; line-height:19px; text-align:center;
  border:2px solid var(--bleu); }
.wk-visuellement-cache{ position:absolute; width:1px; height:1px; overflow:hidden;
  clip:rect(0 0 0 0); white-space:nowrap; }

.wk-notif{ display:flex; gap:14px; align-items:flex-start; width:100%; text-align:left;
  background:var(--carte); border:1px solid var(--trait); border-radius:3px;
  padding:15px 17px; margin-bottom:9px; text-decoration:none; color:inherit; }
.wk-notif:hover{ border-color:var(--bleu-clair); }
.wk-notif.neuve{ box-shadow:inset 3px 0 0 var(--hivis); background:#FDFCF6; }
.wk-notif-t{ font-weight:600; font-size:15px; }
.wk-notif.neuve .wk-notif-t::after{ content:'nouveau'; display:inline-block; margin-left:9px;
  font-size:11px; font-weight:700; color:var(--ambre); vertical-align:2px; }
.wk-notif-m{ font-size:14px; color:var(--gris); margin-top:4px; line-height:1.5; }
.wk-notif-d{ font-size:12.5px; color:var(--gris-clair); margin-top:5px; }

/* --- pied de page --- */
.wk-pied{ border-top:1px solid var(--trait); background:var(--carte); margin-top:auto; }
.wk-pied-in{ max-width:1120px; margin:0 auto; padding:16px 20px; display:flex; gap:20px;
  flex-wrap:wrap; align-items:center; font-size:13px; color:var(--gris); }
.wk-pied a{ color:var(--bleu-clair); text-decoration:none; }
.wk-pied a:hover{ text-decoration:underline; text-underline-offset:3px; }

/* --- pages de texte legal --- */
.wk-texte{ background:var(--carte); border:1px solid var(--trait); border-radius:3px;
  padding:28px 32px; max-width:74ch; }
.wk-texte h2{ font-size:20px; font-weight:700; margin:26px 0 9px; }
.wk-texte h2:first-child{ margin-top:0; }
.wk-texte p{ font-size:15px; line-height:1.65; margin:0 0 13px; }
.wk-texte ul{ font-size:15px; line-height:1.65; margin:0 0 13px; padding-left:22px; }
.wk-texte li{ margin-bottom:5px; }
.wk-texte dl{ display:grid; grid-template-columns:auto 1fr; gap:7px 20px; font-size:15px; margin:0 0 13px; }
.wk-texte dt{ color:var(--gris); }
.wk-texte dd{ margin:0; font-weight:600; }
.wk-maj{ font-size:13px; color:var(--gris-clair); margin-top:24px;
  border-top:1px solid var(--trait); padding-top:14px; }

/* --- journal d'audit --- */
.wk-tab{ width:100%; border-collapse:collapse; background:var(--carte);
  border:1px solid var(--trait); border-radius:3px; font-size:13.5px; }
.wk-tab th{ text-align:left; font-weight:600; font-size:12.5px; color:var(--gris);
  padding:10px 12px; border-bottom:1.5px solid var(--trait); white-space:nowrap; }
.wk-tab td{ padding:9px 12px; border-bottom:1px solid #F0EEE8; vertical-align:top; }
.wk-tab tr:last-child td{ border-bottom:0; }
.wk-tab .mono{ font-family:'IBM Plex Mono',monospace; font-size:12.5px; color:var(--gris); }
.wk-tab-enveloppe{ overflow-x:auto; }
.wk-pages{ display:flex; gap:7px; align-items:center; margin-top:16px; flex-wrap:wrap; font-size:14px; }
.wk-pages a,.wk-pages span{ padding:7px 12px; border:1.5px solid var(--trait); border-radius:3px;
  text-decoration:none; color:var(--bleu); background:var(--carte); }
.wk-pages span.on{ background:var(--bleu); color:#fff; border-color:var(--bleu); font-weight:600; }
.wk-pages span.inerte{ color:var(--gris-clair); }

/* --- puces de filtre rapide --- */
.wk-puces{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom:18px; }
.wk-puce{ display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  background:var(--carte); border:1.5px solid var(--trait); border-radius:3px;
  padding:8px 14px; font-size:14px; color:var(--bleu-nuit); transition:border-color .12s; }
.wk-puce:hover{ border-color:var(--bleu-clair); }
.wk-puce b{ font-size:13px; font-weight:700; color:var(--gris);
  background:#F2F1EC; border-radius:10px; padding:1px 8px; }
.wk-puce.on{ background:var(--bleu); border-color:var(--bleu); color:#fff; font-weight:600; }
.wk-puce.on b{ background:rgba(255,255,255,.22); color:#fff; }
.wk-puce.alerte b{ background:#FBF2F1; color:var(--rouge); }
.wk-puce.on.alerte b{ background:rgba(255,255,255,.22); color:#fff; }

/* --- barre d'actions du dossier --- */
.wk-actions{ display:flex; gap:8px; flex-wrap:wrap; margin:16px 0 4px;
  padding-bottom:16px; border-bottom:1px solid var(--trait); }
.wk-actions .wk-btn.ok{ border-color:var(--vert); color:var(--vert); }

/* --- impression --- */
@media print{
  .wk-entete,.wk-pied,.wk-actions,.wk-lien,.wk-barre-titre .wk-btn,
  .wk-filtres,.wk-puces,form{ display:none !important; }
  .wk{ background:#fff; }
  .wk-corps{ padding:0; max-width:none; }
  .wk-carte,.wk-cite,.wk-tab{ border-color:#999; }
  .wk-bloc{ break-inside:avoid; page-break-inside:avoid; }
  .wk-bloc-t{ border-bottom-color:#000; }
  .wk-photos{ grid-template-columns:repeat(3,1fr); }
  a[href]::after{ content:''; }
}

/* --- fil de discussion --- */
.wk-fil li{ position:relative; padding:0 0 20px 24px; border-left:1.5px solid var(--trait); }
.wk-fil-client::before{ background:var(--hivis) !important; }
.wk-fil-qualite::before{ background:var(--bleu) !important; }
.wk-fil li.interne{ opacity:.85; }
.wk-fil li.interne .wk-fil-t{ font-style:italic; }
.wk-fil li.interne::before{ background:var(--gris-clair) !important; }
.wk-fil-n{ background:#FBFBF8; border:1px solid var(--trait); border-radius:3px;
  padding:11px 14px; margin-top:7px; }
.wk-fil-client .wk-fil-n{ border-left:3px solid var(--hivis); }
.wk-fil-qualite .wk-fil-n{ border-left:3px solid var(--bleu); }
.wk-fil li.interne .wk-fil-n{ border-left:3px solid var(--gris-clair); background:#F6F5F1; }

/* --- capture photo --- */
.wk-capture{ display:flex; gap:8px; flex-wrap:wrap; margin-top:4px; }
.wk-capture .wk-btn:disabled{ opacity:.5; cursor:not-allowed; }
.wk-depot .wk-capture{ justify-content:center; }
@media (max-width:860px){
  .wk-capture{ flex-direction:column; }
  .wk-capture .wk-btn{ width:100%; padding:13px 20px; font-size:15px; }
}

/* --- tableau de bord --- */
.wk-colonnes{ display:grid; grid-template-columns:1fr 1fr; gap:0 26px; }
@media (max-width:860px){ .wk-colonnes{ grid-template-columns:1fr; } }

.wk-barre{ margin-bottom:12px; }
.wk-barre-t{ display:flex; justify-content:space-between; align-items:baseline;
  font-size:14px; margin-bottom:4px; gap:12px; }
.wk-barre-t span{ color:var(--bleu-nuit); }
.wk-barre-t b{ font-weight:700; white-space:nowrap; }
.wk-barre-t i{ font-style:normal; font-weight:400; color:var(--gris); font-size:12.5px; }
.wk-barre-f{ height:8px; background:#E7E4DC; border-radius:2px; overflow:hidden; }
.wk-barre-f span{ display:block; height:100%; border-radius:2px; }

.wk-histo{ display:flex; gap:6px; align-items:flex-end; height:190px;
  padding:22px 0 0; overflow-x:auto; }
.wk-histo-c{ flex:1; min-width:34px; display:flex; flex-direction:column;
  align-items:center; height:100%; }
.wk-histo-v{ font-size:12.5px; font-weight:600; color:var(--gris); margin-bottom:4px; }
.wk-histo-b{ width:100%; background:var(--bleu-clair); border-radius:2px 2px 0 0;
  margin-top:auto; position:relative; display:flex; align-items:flex-end; }
.wk-histo-b span{ display:block; width:100%; background:var(--rouge); border-radius:0 0 2px 2px; }
.wk-histo-l{ font-size:11.5px; color:var(--gris); text-align:center; margin-top:6px; line-height:1.25; }

/* --- compteurs colores ---
   La couleur porte un sens : bleu neutre, ambre en cours, rouge quand une
   action est attendue, vert quand l'objectif est tenu. Un compteur reste
   neutre tant qu'il n'appelle aucune decision. */
.wk-stat{ position:relative; padding-left:20px; display:block; text-decoration:none; color:inherit; }
.wk-stat::before{ content:''; position:absolute; left:0; top:0; bottom:0; width:5px;
  border-radius:3px 0 0 3px; background:var(--bleu-clair); }
a.wk-stat:hover{ border-color:var(--bleu-clair); }
.wk-stat b{ color:var(--bleu-nuit); }

.wk-stat.encours::before{ background:var(--ambre); }
.wk-stat.encours b{ color:var(--ambre); }
.wk-stat.alerte::before{ background:var(--rouge); }
.wk-stat.alerte b{ color:var(--rouge); }
.wk-stat.alerte{ background:#FDF7F6; border-color:#E3C0BD; }
.wk-stat.attention::before{ background:var(--ambre); }
.wk-stat.attention b{ color:var(--ambre); }
.wk-stat.reussi::before{ background:var(--vert); }
.wk-stat.actif{ background:#EFF2FA; border-color:var(--bleu); }
.wk-stat.actif::before{ background:var(--bleu); width:5px; }
.wk-stat.reussi b{ color:var(--vert); }
.wk-stat.calme::before{ background:var(--vert); }

/* --- lien de retour --- */
.wk-retour{ display:inline-flex; align-items:center; gap:7px; text-decoration:none;
  font-size:14px; font-weight:600; color:var(--bleu-clair);
  margin-bottom:18px; padding:6px 12px 6px 8px; border-radius:3px;
  border:1.5px solid transparent; transition:background .12s,border-color .12s; }
.wk-retour::before{ content:'\2190'; font-size:16px; line-height:1; }
.wk-retour:hover{ background:var(--carte); border-color:var(--trait); color:var(--bleu); }
@media print{ .wk-retour{ display:none !important; } }

/* --- choix du type de reclamation --- */
.wk-opt-type{ padding:16px 18px; }
.wk-opt-type small{ display:block; }
.wk-opt-type.on{ background:#FBFBF8; }

/* --- deux cartes de depot, centrees --- */
.wk-deux-boutons{ display:flex; gap:18px; flex-wrap:wrap; justify-content:center; max-width:640px; margin:0 auto; }
.wk-deux-boutons .wk-btn{ flex:1 1 240px; display:flex; flex-direction:column; gap:6px; text-align:left;
  padding:22px 22px 20px; line-height:1.3; background:var(--carte); color:var(--bleu-nuit);
  border:1.5px solid var(--trait); border-top:4px solid var(--trait); border-radius:8px;
  font-family:'Barlow Semi Condensed',sans-serif; font-size:19px; font-weight:700;
  transition:transform .15s, border-color .15s, box-shadow .15s; }
.wk-deux-boutons .wk-btn:hover{ transform:translateY(-3px); box-shadow:0 8px 20px rgba(23,36,90,.1); }
.wk-deux-boutons .wk-btn span{ font-size:13px; font-weight:400; font-family:'Barlow',sans-serif; color:var(--gris); opacity:1; }
.wk-btn-qualite{ border-top-color:var(--rouge); }
.wk-btn-qualite:hover{ border-color:var(--rouge); }
.wk-btn-commerciale{ border-top-color:var(--bleu); }
.wk-btn-commerciale:hover{ border-color:var(--bleu); }
@media (max-width:860px){
  .wk-deux-boutons{ flex-direction:column; width:100%; }
  .wk-deux-boutons .wk-btn{ width:100%; }
}

/* --- rappel du type choisi dans le formulaire --- */
.wk-rappel-type{ display:flex; align-items:baseline; gap:12px; flex-wrap:wrap;
  background:#FBFBF8; border:1.5px solid var(--trait); border-left:4px solid var(--hivis);
  border-radius:3px; padding:13px 16px; margin-bottom:22px; }
.wk-rappel-type b{ font-size:16px; color:var(--bleu-nuit); }
.wk-rappel-type span{ font-size:13.5px; color:var(--gris); }
.wk-rappel-type .wk-lien{ margin-left:auto; font-size:13.5px; }

/* --- onglets du dossier (CCMS) --- */
.wk-onglets-dossier{ display:flex; gap:4px; border-bottom:1.5px solid var(--trait); margin-bottom:22px; }
.wk-onglet-d{ display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  padding:11px 18px; font-size:15px; font-weight:600; color:var(--gris);
  border-bottom:2.5px solid transparent; margin-bottom:-1.5px; }
.wk-onglet-d:hover{ color:var(--bleu-nuit); }
.wk-onglet-d.on{ color:var(--bleu-nuit); border-color:var(--hivis); }
.wk-pastille-o{ font-size:12px; font-weight:700; background:#F2F1EC; color:var(--gris);
  border-radius:10px; padding:1px 8px; }
.wk-pastille-o.alerte{ background:#FBF2F1; color:var(--rouge); }

/* --- Ishikawa : six familles --- */
.wk-familles{ display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:12px; }
.wk-famille{ background:var(--carte); border:1px solid var(--trait); border-radius:3px;
  border-top:3px solid var(--bleu); padding:14px 16px; }
.wk-famille-t{ font-family:'Barlow Semi Condensed',sans-serif; font-size:17px; font-weight:700;
  color:var(--bleu-nuit); }
.wk-famille-e{ font-size:12.5px; color:var(--gris-clair); margin-top:2px; line-height:1.4; }
.wk-causes{ list-style:none; margin:12px 0 0; padding:0; }
.wk-causes li{ display:flex; gap:8px; align-items:flex-start; font-size:13.5px;
  padding:7px 0; border-bottom:1px solid #F0EEE8; color:var(--gris); }
.wk-causes li:last-child{ border-bottom:0; }
.wk-causes li.retenue{ color:var(--bleu-nuit); font-weight:600; }
.wk-causes li span{ flex:1; }
.wk-causes form{ display:flex; gap:4px; }
.wk-mini{ background:none; border:1px solid var(--trait); border-radius:2px; cursor:pointer;
  font-size:11px; color:var(--gris); padding:2px 7px; font-family:inherit; }
.wk-mini:hover{ border-color:var(--bleu-clair); color:var(--bleu); }
.wk-causes li.retenue .wk-mini{ border-color:var(--hivis); background:#FFFCF0; color:var(--ambre); }
.wk-ajout-cause{ display:flex; gap:6px; margin-top:12px; }
.wk-ajout-cause .wk-in{ font-size:13px; padding:7px 10px; }

/* --- Cinq pourquoi --- */
.wk-pourquoi{ display:flex; gap:14px; align-items:flex-start; margin-bottom:14px; }
.wk-pourquoi-n{ flex:0 0 34px; height:34px; border-radius:50%; background:var(--bleu); color:#fff;
  font-family:'Barlow Semi Condensed',sans-serif; font-size:17px; font-weight:700;
  display:flex; align-items:center; justify-content:center; margin-top:4px; }
.wk-pourquoi-c{ flex:1; display:flex; flex-direction:column; gap:6px; }
@media (max-width:860px){
  .wk-pourquoi{ gap:10px; }
  .wk-pourquoi-n{ flex-basis:28px; height:28px; font-size:15px; }
}

/* --- enquete de satisfaction --- */
.wk-notes{ display:grid; grid-template-columns:repeat(5,1fr); gap:6px; }
.wk-note{ display:flex; flex-direction:column; align-items:center; gap:3px; cursor:pointer;
  border:1.5px solid var(--trait); border-radius:3px; padding:11px 4px; text-align:center;
  background:var(--carte); transition:border-color .12s, background .12s; }
.wk-note:hover{ border-color:var(--bleu-clair); }
.wk-note b{ font-family:'Barlow Semi Condensed',sans-serif; font-size:21px; color:var(--bleu-nuit); }
.wk-note b.wk-etoiles{ font-family:inherit; font-size:16px; letter-spacing:1px; color:#D4A017; white-space:nowrap; }
.wk-note:has(input:checked) b.wk-etoiles{ color:#B8860B; }
@media (max-width:520px){ .wk-note b.wk-etoiles{ font-size:13px; letter-spacing:.5px; } }
.wk-note span{ font-size:10.5px; color:var(--gris); line-height:1.25; }
.wk-note:has(input:checked){ border-color:var(--bleu); background:var(--bleu-pale); }
.wk-note:has(input:checked) b{ color:var(--bleu); }
@media (max-width:520px){
  .wk-notes{ grid-template-columns:repeat(5,1fr); gap:4px; }
  .wk-note{ padding:9px 2px; }
  .wk-note span{ font-size:9px; }
}
.wk-barres-notes{ display:flex; flex-direction:column; gap:7px; }

/* --- pieces jointes non-images --- */
.wk-photo.wk-doc{ display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; background:var(--carte); border:1.5px solid var(--trait); text-decoration:none;
  padding:10px 8px; text-align:center; }
.wk-photo.wk-doc:hover{ border-color:var(--bleu-clair); background:#FBFBF8; }
.wk-doc-ext{ font-family:'Barlow Semi Condensed',sans-serif; font-size:19px; font-weight:700;
  color:var(--bleu); letter-spacing:.5px; }
.wk-doc-nom{ font-size:11px; color:var(--gris); line-height:1.25; word-break:break-word; }
.wk-doc-taille{ font-size:10.5px; color:var(--gris-clair); }

/* --- video en piece jointe --- */
.wk-video-tile{ aspect-ratio:auto; grid-column:span 2; display:flex; flex-direction:column;
  background:#000; padding:0; }
.wk-video-tile video{ width:100%; max-height:260px; display:block; background:#000; }
.wk-video-tile .wk-doc-taille{ color:var(--gris); background:var(--carte); padding:4px 8px; text-align:right; }
@media (max-width:520px){
  .wk-video-tile{ grid-column:1 / -1; }
}

/* --- timeline du workflow (audit) --- */
.wk-timeline-det{ font-size:14px; }
.wk-timeline-det summary{ cursor:pointer; }
.wk-timeline{ list-style:none; margin:14px 0 0; padding:0; border-left:2px solid var(--trait); }
.wk-timeline-item{ padding:0 0 14px 16px; margin-left:-1px; border-left:2px solid var(--bleu-clair);
  position:relative; }
.wk-timeline-item::before{ content:''; position:absolute; left:-5px; top:3px; width:8px; height:8px;
  border-radius:50%; background:var(--bleu); }
.wk-timeline-h{ display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.wk-timeline-h b{ font-size:13px; color:var(--bleu-nuit); }
.wk-timeline-h span{ font-size:12.5px; color:var(--gris); }
.wk-timeline-a{ font-size:13.5px; font-weight:600; color:var(--bleu-nuit); margin-top:2px; }
.wk-timeline-e{ font-size:12.5px; color:var(--bleu); margin-top:2px; }
.wk-timeline-c{ font-size:13px; color:var(--gris); margin-top:3px; font-style:italic; }

/* --- gabarit imprimable des rapports (phase 11a) --- */
.wk-rapport-entete{ display:flex; align-items:center; gap:16px;
  padding-bottom:16px; margin-bottom:18px; border-bottom:2px solid var(--bleu-nuit); }
.wk-rapport-pied{ margin-top:26px; padding-top:14px; border-top:1px solid var(--trait);
  font-size:12px; color:var(--gris-clair); }
.wk-rapport-pied p{ margin:0 0 4px; }

/* --- suggestions d'autocompletion (liaison ERP, lots) --- */
.wk-suggestions{ position:absolute; z-index:20; top:100%; left:0; right:0; margin-top:4px;
  background:#fff; border:1.5px solid var(--trait); border-radius:3px; max-height:220px;
  overflow-y:auto; box-shadow:0 4px 14px rgba(0,0,0,.1); }
.wk-suggestion{ display:block; width:100%; text-align:left; padding:9px 12px; border:0; background:none;
  font-size:13.5px; cursor:pointer; border-bottom:1px solid var(--trait); }
.wk-suggestion:last-child{ border-bottom:0; }
.wk-suggestion:hover{ background:#F7F6F2; }

/* --- tableau de bord client (tableau-bord.php) ---
   Classes prefixees wk-tb- : isolees des wk-stat / wk-ligne partagees
   avec l'espace qualite. */
.wk-tb-tete{ display:flex; align-items:flex-end; justify-content:space-between; gap:20px 28px;
  flex-wrap:wrap; margin-bottom:24px; }
.wk-tb-cta{ display:flex; gap:10px; flex-wrap:wrap; }
.wk-tb-nouv{ display:flex; align-items:center; gap:12px; min-height:56px; padding:10px 18px 10px 14px;
  border-radius:6px; text-decoration:none; border:1.5px solid transparent;
  transition:background .15s, border-color .15s, box-shadow .15s; }
.wk-tb-nouv svg{ flex:0 0 auto; }
.wk-tb-nouv b{ display:block; font-family:'Barlow Semi Condensed',sans-serif; font-size:16.5px; font-weight:700; line-height:1.15; }
.wk-tb-nouv small{ display:block; font-size:12.5px; margin-top:2px; }
.wk-tb-nouv-qualite{ background:var(--bleu); color:#fff; box-shadow:inset 0 -3px 0 var(--hivis); }
.wk-tb-nouv-qualite svg{ color:var(--hivis); }
.wk-tb-nouv-qualite small{ color:#C6D0EA; }
.wk-tb-nouv-qualite:hover{ background:var(--bleu-nuit); }
.wk-tb-nouv-commerciale{ background:var(--carte); color:var(--bleu-nuit); border-color:var(--trait); }
.wk-tb-nouv-commerciale svg{ color:var(--bleu-clair); }
.wk-tb-nouv-commerciale small{ color:var(--gris); }
.wk-tb-nouv-commerciale:hover{ border-color:var(--bleu); box-shadow:0 4px 14px rgba(23,36,90,.08); }

.wk a:focus-visible{ outline:2.5px solid var(--bleu-clair); outline-offset:2px; }

/* synthese + filtres */
.wk-tb-synthese{ background:var(--carte); border:1px solid var(--trait); border-radius:6px;
  padding:18px 20px 14px; margin-bottom:18px; }
.wk-tb-total{ display:flex; align-items:baseline; gap:10px; }
.wk-tb-total b{ font-family:'Barlow Semi Condensed',sans-serif; font-size:34px; font-weight:700; line-height:1; }
.wk-tb-total span{ font-size:14px; color:var(--gris); }
.wk-tb-repart{ display:flex; gap:3px; height:8px; margin-top:14px; border-radius:4px; overflow:hidden; }
.wk-tb-repart span{ flex-basis:0; min-width:6px; }
.wk-tb-seg-recue{ background:var(--bleu-clair); }
.wk-tb-seg-analyse{ background:#D9A21B; }
.wk-tb-seg-resolue{ background:var(--vert); }
.wk-tb-seg-rejetee{ background:#9A9DA6; }

.wk-tb-filtres{ display:flex; gap:4px; flex-wrap:wrap; margin-top:14px; padding-top:12px;
  border-top:1px solid #F0EEE8; }
.wk-tb-filtre{ display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 12px;
  border-radius:5px; text-decoration:none; font-size:14.5px; font-weight:500; color:var(--gris);
  transition:background .12s, color .12s; }
.wk-tb-filtre:hover{ background:#F4F3EE; color:var(--bleu-nuit); }
.wk-tb-filtre b{ font-size:12.5px; font-weight:700; background:#F2F1EC; color:var(--gris);
  border-radius:10px; padding:1px 8px; font-variant-numeric:tabular-nums; }
.wk-tb-filtre.on{ background:var(--bleu); color:#fff; font-weight:600; }
.wk-tb-filtre.on b{ background:rgba(255,255,255,.2); color:#fff; }
.wk-tb-point{ width:8px; height:8px; border-radius:50%; display:inline-block; }
.wk-tb-filtre.on .wk-tb-point{ box-shadow:0 0 0 2px rgba(255,255,255,.8); }

/* liste des dossiers */
.wk-tb-liste{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.wk-tb-dossier{ display:block; text-decoration:none; color:inherit; background:var(--carte);
  border:1px solid var(--trait); border-left:4px solid var(--bleu-clair); border-radius:6px;
  padding:14px 18px 16px; transition:border-color .15s, box-shadow .15s; }
.wk-tb-dossier:hover{ border-color:var(--bleu-clair); box-shadow:0 6px 18px rgba(23,36,90,.08); }
.wk-tb-bord-analyse,.wk-tb-bord-action{ border-left-color:#D9A21B; }
.wk-tb-bord-resolue{ border-left-color:var(--vert); }
.wk-tb-bord-rejetee{ border-left-color:#9A9DA6; }
.wk-tb-dossier:hover.wk-tb-bord-analyse,.wk-tb-dossier:hover.wk-tb-bord-action{ border-left-color:#D9A21B; }
.wk-tb-dossier:hover.wk-tb-bord-resolue{ border-left-color:var(--vert); }
.wk-tb-dossier:hover.wk-tb-bord-rejetee{ border-left-color:#9A9DA6; }

.wk-tb-dossier-h{ display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; }
.wk-tb-date{ margin-left:auto; font-size:13px; color:var(--gris); white-space:nowrap; }
.wk-tb-grav{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:600; color:var(--gris); }
.wk-tb-grav::before{ content:''; width:7px; height:7px; border-radius:50%; background:var(--gris-clair); }
.wk-tb-grav-majeure{ color:var(--ambre); }
.wk-tb-grav-majeure::before{ background:#D9A21B; }
.wk-tb-grav-bloquante{ color:var(--rouge); }
.wk-tb-grav-bloquante::before{ background:var(--rouge); }

.wk-tb-dossier-c{ display:flex; align-items:center; gap:24px; margin-top:10px; }
.wk-tb-dossier-txt{ flex:1; min-width:0; }
.wk-tb-dossier-t{ font-family:'Barlow Semi Condensed',sans-serif; font-size:19px; font-weight:700; line-height:1.2; }
.wk-tb-dossier-n{ font-size:14px; color:var(--bleu-nuit); margin-top:3px; }
.wk-tb-dossier-m{ display:flex; flex-wrap:wrap; gap:4px 0; margin-top:6px; font-size:13px; color:var(--gris); }
.wk-tb-dossier-m span+span::before{ content:'·'; margin:0 8px; color:var(--gris-clair); }
.wk-tb-chevron{ flex:0 0 auto; color:var(--gris-clair); transition:color .15s, transform .15s; }
.wk-tb-dossier:hover .wk-tb-chevron{ color:var(--bleu); transform:translateX(3px); }

/* parcours du dossier : Recue > Analyse > Action > Resolue */
.wk-tb-parcours{ list-style:none; margin:0; padding:0; display:flex; gap:4px; flex:0 0 300px; }
.wk-tb-parcours li{ flex:1; }
.wk-tb-parcours li::before{ content:''; display:block; height:5px; border-radius:3px; background:#E7E4DC; }
.wk-tb-parcours li span{ display:block; font-size:11.5px; color:var(--gris-clair); margin-top:6px; }
.wk-tb-parcours li.fait::before{ background:var(--bleu); }
.wk-tb-parcours li.fait span{ color:var(--gris); }
.wk-tb-parcours li.on::before{
  background:repeating-linear-gradient(115deg, rgba(255,255,255,.75) 0 5px, rgba(255,255,255,0) 5px 11px), var(--hivis); }
.wk-tb-parcours li.on span{ color:var(--bleu-nuit); font-weight:700; }
.wk-tb-parcours.rejete{ display:block; }
.wk-tb-parcours.rejete::before{ content:''; display:block; height:5px; border-radius:3px; background:#D5D3CC; }
.wk-tb-parcours-l{ display:block; font-size:11.5px; color:var(--gris); margin-top:6px; font-weight:600; }

.wk-tb-vide{ background:var(--carte); border:1.5px dashed var(--trait); border-radius:6px;
  padding:48px 26px; text-align:center; color:var(--gris-clair); }
.wk-tb-vide h3{ font-size:21px; font-weight:700; color:var(--bleu-nuit); margin-top:12px; }
.wk-tb-vide p{ color:var(--gris); margin-top:6px; font-size:14.5px; }

@media (max-width:860px){
  .wk-tb-cta{ width:100%; flex-direction:column; }
  .wk-tb-nouv{ width:100%; }
  .wk-tb-dossier-c{ flex-wrap:wrap; gap:14px; }
  .wk-tb-parcours{ flex:1 1 100%; order:2; }
  .wk-tb-chevron{ display:none; }
  .wk-tb-date{ margin-left:0; width:100%; order:-1; font-size:12.5px; }
  .wk-tb-filtres{ flex-wrap:nowrap; overflow-x:auto; margin-left:-6px; margin-right:-6px; padding-left:6px; padding-right:6px; }
  .wk-tb-filtre{ flex:0 0 auto; }
  .wk-tb-filtres{ scrollbar-width:none; }
  .wk-tb-filtres::-webkit-scrollbar{ display:none; }
}
@media print{ .wk-tb-cta,.wk-tb-filtres{ display:none !important; } }
.wk-tb-parcours.termine li::before{ background:var(--vert); }
.wk-tb-parcours.termine li span{ color:var(--gris); }
.wk-tb-parcours.termine li.on span{ color:var(--vert); }

/* --- liste qualite (qualite/index.php) ---
   Reutilise les composants wk-tb- du tableau de bord client (en-tete,
   onglets, cartes de dossier) ; wk-qi- n'ajoute que ce qui est propre
   au back-office. */
.wk a.wk-qi-export{ display:inline-flex; align-items:center; gap:8px; }

.wk-qi-kpis{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.wk-qi-kpi{ display:grid; grid-template-columns:auto 1fr; grid-template-rows:auto auto; column-gap:14px;
  align-items:center; background:var(--carte); border:1px solid var(--trait); border-radius:6px;
  padding:16px 18px; text-decoration:none; color:inherit; transition:border-color .15s, box-shadow .15s; }
.wk-qi-kpi:hover{ border-color:var(--bleu-clair); box-shadow:0 4px 14px rgba(23,36,90,.07); }
.wk-qi-kpi-ic{ grid-row:1 / 3; width:42px; height:42px; border-radius:8px; display:flex;
  align-items:center; justify-content:center; background:#EEF1F8; color:var(--bleu-clair); }
.wk-qi-kpi b{ font-family:'Barlow Semi Condensed',sans-serif; font-size:30px; font-weight:700; line-height:1;
  color:var(--bleu-nuit); font-variant-numeric:tabular-nums; }
.wk-qi-kpi span:last-child{ font-size:13px; color:var(--gris); margin-top:3px; }
.wk-qi-kpi.encours .wk-qi-kpi-ic{ background:#FBF3DF; color:var(--ambre); }
.wk-qi-kpi.encours b{ color:var(--ambre); }
.wk-qi-kpi.alerte{ background:#FDF7F6; border-color:#E3C0BD; }
.wk-qi-kpi.alerte .wk-qi-kpi-ic{ background:#F8E3E1; color:var(--rouge); }
.wk-qi-kpi.alerte b{ color:var(--rouge); }
.wk-qi-kpi.calme .wk-qi-kpi-ic{ background:#E9F2EB; color:var(--vert); }
.wk-qi-kpi.reussi .wk-qi-kpi-ic{ background:#E9F2EB; color:var(--vert); }
.wk-qi-kpi.reussi b{ color:var(--vert); }

.wk-qi-outils{ background:var(--carte); border:1px solid var(--trait); border-radius:6px; margin-bottom:14px; }
.wk-qi-rapides{ margin:0; padding:10px 12px; border-top:0; border-bottom:1px solid #F0EEE8; }
.wk-tb-filtre.alerte b{ background:#FBF2F1; color:var(--rouge); }
.wk-tb-filtre.on.alerte b{ background:var(--rouge); color:#fff; }

.wk-qi-form{ display:flex; flex-wrap:wrap; align-items:flex-end; gap:12px; padding:14px 16px 16px; }
.wk-qi-recherche{ position:relative; flex:1 1 100%; }
.wk-qi-recherche svg{ position:absolute; left:12px; top:50%; transform:translateY(-50%); color:var(--gris-clair); pointer-events:none; }
.wk-qi-recherche .wk-in{ padding-left:38px; min-height:44px; }
.wk-qi-selects{ flex:1 1 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; }
.wk-qi-champ{ display:flex; flex-direction:column; gap:4px; }
.wk-qi-champ span{ font-size:12px; font-weight:600; color:var(--gris); }
.wk-qi-champ .wk-in{ min-height:40px; padding:8px 10px; font-size:14px; }
.wk-qi-boutons{ display:flex; align-items:center; gap:14px; }
.wk-qi-boutons .wk-btn{ min-height:40px; padding:9px 22px; }

.wk-qi-resultat{ font-size:13.5px; color:var(--gris); margin:4px 2px 10px; }
.wk-qi-resultat b{ color:var(--bleu-nuit); }

.wk-qi-liste{ gap:8px; }
.wk-qi-liste .wk-tb-dossier{ padding:12px 18px 14px; }
.wk-qi-liste .wk-tb-dossier-c{ margin-top:8px; }
.wk-qi-liste .wk-tb-dossier-t{ font-size:17.5px; }
.wk-qi-societe{ font-size:12.5px; font-weight:700; color:var(--bleu-clair); letter-spacing:.02em; text-transform:uppercase; margin-bottom:2px; }
.wk-qi-type{ font-size:12px; font-weight:600; padding:2px 8px; border-radius:10px; white-space:nowrap; }
.wk-qi-type.qualite{ background:#EEF1F8; color:var(--bleu); }
.wk-qi-type.commerciale{ background:#F1EFE8; color:#5E5A4E; }
.wk-qi-retard{ display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:700; color:#fff;
  background:var(--rouge); padding:2px 8px; border-radius:10px; white-space:nowrap; }
.wk-qi-retard::before{ content:''; width:6px; height:6px; border-radius:50%; background:#fff; }
.wk-tb-dossier.wk-qi-urgent{ border-left-color:var(--rouge); background:#FFFCFB; }
.wk-tb-dossier.wk-qi-urgent:hover{ border-left-color:var(--rouge); }

@media (max-width:1100px){ .wk-qi-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:860px){
  .wk a.wk-qi-export{ width:100%; justify-content:center; }
  .wk-qi-kpi{ padding:12px 14px; column-gap:10px; }
  .wk-qi-kpi-ic{ width:34px; height:34px; }
  .wk-qi-kpi b{ font-size:24px; }
  .wk-qi-selects{ grid-template-columns:1fr 1fr; flex-basis:100%; }
  .wk-qi-champ:last-child{ grid-column:1 / -1; }
  .wk-qi-boutons{ width:100%; }
  .wk-qi-boutons .wk-btn{ flex:1; }
}
@media (max-width:420px){ .wk-qi-kpis{ gap:8px; } .wk-qi-kpi-ic{ display:none; } .wk-qi-kpi{ display:block; } .wk-qi-kpi span:last-child{ display:block; margin-top:4px; } }
@media print{ .wk-qi-outils,.wk-qi-export{ display:none !important; } }

/* --- logo jaune de la page de connexion --- */
.wk-logo-badge{ height:54px; width:auto; border-radius:6px;
  box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 6px 18px rgba(0,0,0,.22); }
@media (max-width:860px){ .wk-logo-badge{ height:44px; } }

/* --- page de connexion (index.php) --- */
.wk-cx{ grid-template-columns:minmax(0,5fr) minmax(0,6fr); }

/* panneau de marque */
.wk-cx-g{ position:relative; overflow:hidden; padding:40px 56px 32px;
  background-image:
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(254,205,77,.12) 0, rgba(254,205,77,0) 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(74,95,168,.35) 0, rgba(74,95,168,0) 70%),
    linear-gradient(165deg, #25397F 0%, var(--bleu-nuit) 58%, #111B45 100%); }
.wk-cx-g > *{ position:relative; z-index:1; }
.wk-cx-sur{ display:inline-flex; align-items:center; gap:10px; font-size:12.5px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--hivis); }
.wk-cx-sur::before{ content:''; width:28px; height:3px; border-radius:2px; background:var(--hivis); }
.wk-cx-titre{ font-size:clamp(34px, 3.6vw, 50px); max-width:12ch; margin-top:16px; }
.wk-cx .wk-porte-txt{ max-width:46ch; }

.wk-cx-engagements{ list-style:none; margin:34px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; max-width:420px; }
.wk-cx-engagements li{ display:flex; align-items:center; gap:14px; padding:12px 16px;
  background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.09); border-radius:10px; }
.wk-cx-ic{ flex:0 0 40px; height:40px; border-radius:9px; display:flex; align-items:center; justify-content:center;
  background:rgba(254,205,77,.14); color:var(--hivis); }
.wk-cx-engagements b{ display:block; font-size:15px; font-weight:600; color:#fff; }
.wk-cx-engagements span:not(.wk-cx-ic){ display:block; font-size:13px; color:#A3AFD0; margin-top:1px; }

.wk-cx-bas{ margin-top:8px; }
.wk-cx-bas-t{ display:block; font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color:#7C8AB8; margin-bottom:10px; }
.wk-cx .wk-porte-bas{ padding-top:14px; }

/* panneau formulaire */
.wk-cx-d{ padding:48px 40px; background:
  radial-gradient(circle at 50% 0%, #F7F6F2 0, var(--toile) 60%); }
.wk-cx-carte{ max-width:440px; background:var(--carte); border:1px solid #E3E0D7; border-radius:14px;
  padding:34px 36px 26px; box-shadow:0 1px 2px rgba(23,36,90,.04), 0 12px 40px rgba(23,36,90,.08); }
.wk-cx-carte.large{ max-width:560px; }

.wk-cx-tete h2{ font-size:27px; font-weight:700; color:var(--bleu-nuit); }
.wk-cx-tete p{ font-size:14.5px; color:var(--gris); margin-top:6px; line-height:1.5; }

.wk-cx-onglets{ display:grid; grid-template-columns:1fr 1fr; gap:4px; padding:4px; margin:22px 0 22px;
  background:#F2F1EC; border-radius:9px; }
.wk-cx-onglets a{ display:flex; align-items:center; justify-content:center; min-height:40px; border-radius:6px;
  font-size:14.5px; font-weight:600; color:var(--gris); text-decoration:none; transition:background .15s, color .15s, box-shadow .15s; }
.wk-cx-onglets a:hover{ color:var(--bleu-nuit); }
.wk-cx-onglets a.on{ background:var(--carte); color:var(--bleu-nuit); box-shadow:0 1px 3px rgba(23,36,90,.12); }

.wk-cx .wk-champ{ margin-bottom:18px; }
.wk-cx .wk-in{ min-height:46px; padding:11px 14px; border:1.5px solid #D9D5CB; border-radius:8px; font-size:15px;
  transition:border-color .15s, box-shadow .15s; }
.wk-cx .wk-in::placeholder{ color:#A9ACB4; }
.wk-cx .wk-in:hover{ border-color:#BFBAAE; }
.wk-cx .wk-in:focus{ outline:none; border-color:var(--bleu-clair); box-shadow:0 0 0 4px rgba(74,95,168,.16); }

.wk-cx-saisie{ position:relative; }
.wk-cx-saisie > svg{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#A0A3AC; pointer-events:none; }
.wk-cx-saisie .wk-in{ padding-left:42px; }
.wk-cx-saisie:focus-within > svg{ color:var(--bleu-clair); }
.wk-cx-saisie:has(.wk-cx-oeil:not([hidden])) .wk-in{ padding-right:48px; }
.wk-cx-oeil{ position:absolute; right:4px; top:50%; transform:translateY(-50%); width:40px; height:38px;
  display:flex; align-items:center; justify-content:center; border:0; border-radius:6px; background:none; color:var(--gris); }
.wk-cx-oeil:hover{ background:#F2F1EC; color:var(--bleu-nuit); }
.wk-cx-oeil[aria-pressed="true"]{ color:var(--bleu); }

.wk-cx-lab-ligne{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:6px; }
.wk-cx-lab-ligne .wk-lab{ margin-bottom:0; }
.wk-cx-lien{ font-size:13px; font-weight:600; color:var(--bleu-clair); text-decoration:none; }
.wk-cx-lien:hover{ text-decoration:underline; text-underline-offset:3px; }

.wk .wk-cx-btn{ display:flex; align-items:center; justify-content:center; gap:10px; width:100%; min-height:48px;
  border-radius:8px; font-size:15.5px; text-align:center; }
.wk-cx-form .wk-cx-btn{ margin-top:6px; box-shadow:0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px rgba(35,56,127,.22); }
.wk-cx-form .wk-cx-btn svg{ transition:transform .15s; }
.wk-cx-form .wk-cx-btn:hover svg{ transform:translateX(3px); }
.wk .wk-cx-btn.wk-btn-sec{ background:var(--carte); border-color:#D9D5CB; font-size:14.5px; }
.wk .wk-cx-btn.wk-btn-sec:hover{ border-color:var(--bleu); background:#FAFAF7; }
.wk-cx a:focus-visible,.wk-cx button:focus-visible{ outline:2.5px solid var(--bleu-clair); outline-offset:2px; }

.wk-cx-note{ text-align:center; margin-top:12px; }
.wk-cx-sep{ display:flex; align-items:center; gap:12px; margin:20px 0 16px; font-size:12.5px; color:var(--gris-clair); }
.wk-cx-sep::before,.wk-cx-sep::after{ content:''; flex:1; height:1px; background:#E7E4DC; }

.wk-cx-groupe{ border:0; margin:0 0 8px; padding:0; }
.wk-cx-groupe legend{ width:100%; padding:0 0 10px; margin-bottom:14px; border-bottom:1px solid #EEECE6;
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--bleu-clair); }

.wk-cx-pied{ margin-top:24px; padding-top:16px; border-top:1px solid #EEECE6; text-align:center; }
.wk-cx-securite{ display:flex; align-items:center; justify-content:center; gap:7px; font-size:12.5px; color:var(--gris); }
.wk-cx-securite svg{ flex:0 0 auto; }
.wk-cx-securite svg{ color:var(--vert); }
.wk-cx-legal{ display:flex; justify-content:center; gap:18px; margin-top:8px; font-size:12.5px; }
.wk-cx-legal a{ color:var(--gris-clair); text-decoration:none; }
.wk-cx-legal a:hover{ color:var(--bleu); text-decoration:underline; text-underline-offset:3px; }

/* sur ordinateur, le panneau de marque reste fixe quand le formulaire de creation est long */
@media (min-width:861px){
  .wk-cx-g{ position:sticky; top:0; height:100vh; overflow-y:auto; align-self:start; }
}
@media (max-width:1080px){
  .wk-cx-g{ padding:36px 36px 28px; }
  .wk-cx-d{ padding:40px 24px; }
}
@media (max-width:860px){
  .wk-cx{ grid-template-columns:1fr; }
  .wk-cx-g{ padding:22px 20px 24px; }
  .wk-cx .wk-porte-milieu{ padding:22px 0 0; }
  .wk-cx-titre{ font-size:30px; }
  .wk-cx .wk-porte-txt{ font-size:14.5px; }
  .wk-cx .wk-porte-txt{ display:none; }
  .wk-cx-engagements{ margin-top:16px; gap:6px; }
  .wk-cx-engagements li{ padding:0; background:none; border:0; gap:10px; }
  .wk-cx-engagements b{ font-size:14px; font-weight:500; color:#DDE3F3; }
  .wk-cx-engagements span:not(.wk-cx-ic){ display:none; }
  .wk-cx-ic{ flex-basis:26px; height:26px; border-radius:6px; }
  .wk-cx-ic svg{ width:16px; height:16px; }
  .wk-cx-bas{ display:none; }
  .wk-cx-d{ padding:0 12px 32px; background:var(--toile); }
  .wk-cx-carte{ margin-top:-1px; border-radius:0 0 14px 14px; padding:24px 20px 20px; max-width:none; box-shadow:0 8px 24px rgba(23,36,90,.06); }
  .wk-cx-carte.large{ max-width:none; }
  .wk-cx-tete h2{ font-size:23px; }
  .wk-cx .wk-grille{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){ .wk-cx *{ transition:none !important; } }

/* --- connexion : tenir dans la hauteur de l'ecran, sans defilement --- */
body.wk:has(.wk-cx){ margin:0; }
.wk-cx{ min-height:100vh; min-height:100dvh; }
@media (min-width:861px){
  .wk-cx{ height:100vh; height:100dvh; }
  .wk-cx-g{ height:100vh; height:100dvh; position:relative; overflow:hidden; }
  .wk-cx-d{ overflow-y:auto; padding-top:24px; padding-bottom:24px; }
  .wk-cx-carte{ margin:auto; }
}
/* ecrans peu hauts (portables 1366x768, zoom 125 %) : on resserre */
@media (min-width:861px) and (max-height:820px){
  .wk-cx-g{ padding-top:28px; padding-bottom:22px; }
  .wk-cx .wk-porte-milieu{ padding:20px 0; }
  .wk-cx-titre{ font-size:clamp(30px, 3.2vw, 42px); margin-top:12px; }
  .wk-cx .wk-porte-txt{ font-size:15px; margin-top:12px; }
  .wk-cx-engagements{ margin-top:22px; gap:8px; }
  .wk-cx-engagements li{ padding:9px 14px; }
  .wk-cx-ic{ flex-basis:34px; height:34px; }
  .wk-cx-carte{ padding:26px 32px 18px; }
  .wk-cx-onglets{ margin:16px 0; }
  .wk-cx .wk-champ{ margin-bottom:14px; }
  .wk-cx-sep{ margin:14px 0 12px; }
  .wk-cx-pied{ margin-top:16px; padding-top:12px; }
}
@media (min-width:861px) and (max-height:680px){
  .wk-cx .wk-porte-txt{ display:none; }
  .wk-cx-engagements span:not(.wk-cx-ic){ display:none; }
}

/* creation de compte : formulaire sur deux colonnes */
@media (min-width:861px){
  .wk-cx.creation{ grid-template-columns:minmax(0,4fr) minmax(0,7fr); }
  .wk-cx.creation .wk-cx-g{ padding-left:44px; padding-right:40px; }
  .wk-cx.creation .wk-cx-carte{ max-width:800px; padding:24px 30px 16px; }
  .wk-cx.creation .wk-cx-tete{ display:flex; align-items:baseline; gap:6px 16px; flex-wrap:wrap; }
  .wk-cx.creation .wk-cx-tete h2{ font-size:24px; }
  .wk-cx.creation .wk-cx-tete p{ margin-top:0; font-size:13.5px; }
  .wk-cx.creation .wk-cx-onglets{ margin:14px 0; }
  .wk-cx.creation .wk-cx-form{ display:grid; grid-template-columns:1fr 1fr; column-gap:28px; align-items:start; }
  .wk-cx.creation .wk-cx-groupe:nth-of-type(1){ grid-column:1; grid-row:1; }
  .wk-cx.creation .wk-cx-groupe:nth-of-type(2){ grid-column:1; grid-row:2; }
  .wk-cx.creation .wk-cx-groupe:nth-of-type(3){ grid-column:2; grid-row:1; }
  .wk-cx.creation .wk-cx-form > .wk-cx-btn{ grid-column:2; grid-row:2; align-self:end; margin:0 0 14px; }
  .wk-cx.creation .wk-cx-groupe{ margin:0; }
  .wk-cx.creation .wk-cx-groupe legend{ padding-bottom:7px; margin-bottom:10px; }
  .wk-cx.creation .wk-champ{ margin-bottom:12px; }
  .wk-cx.creation .wk-in{ min-height:40px; padding-top:8px; padding-bottom:8px; font-size:14.5px; }
  .wk-cx.creation .wk-aide{ font-size:11.5px; margin-top:4px; line-height:1.35; }
  .wk-cx.creation .wk-cx-sep,
  .wk-cx.creation .wk-cx-form ~ .wk-btn-sec,
  .wk-cx.creation .wk-cx-legal{ display:none; }
  .wk-cx.creation .wk-cx-pied{ margin-top:4px; padding-top:10px; }
}

/* mobile : le formulaire de connexion visible sans defiler */
@media (max-width:860px){
  .wk-cx-g{ padding:16px 20px 18px; }
  .wk-cx .wk-logo-badge{ height:38px; }
  .wk-cx .wk-porte-milieu{ padding:14px 0 0; }
  .wk-cx-sur{ font-size:11px; }
  .wk-cx-titre{ font-size:24px; margin-top:8px; max-width:none; }
  .wk-cx-engagements{ display:none; }
  .wk-cx-carte{ padding:20px 18px 16px; }
  .wk-cx-tete h2{ font-size:21px; }
  .wk-cx-tete p{ font-size:13.5px; margin-top:4px; }
  .wk-cx-onglets{ margin:14px 0; }
  .wk-cx .wk-champ{ margin-bottom:14px; }
  .wk-cx-sep{ margin:12px 0 10px; }
  .wk-cx-pied{ margin-top:14px; padding-top:12px; }
}

/* --- tableaux de bord qualite (qualite/tableau-bord.php, tableau-bord-direction.php) --- */
.wk-db-tete{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px 24px; flex-wrap:wrap; margin-bottom:20px; }
.wk-db-periode{ display:inline-flex; gap:2px; padding:4px; background:var(--carte); border:1px solid var(--trait); border-radius:9px; }
.wk-db-periode a{ display:flex; align-items:center; min-height:36px; padding:0 14px; border-radius:6px; font-size:14px; font-weight:600;
  color:var(--gris); text-decoration:none; white-space:nowrap; transition:background .15s, color .15s; }
.wk-db-periode a:hover{ background:#F4F3EE; color:var(--bleu-nuit); }
.wk-db-periode a.on{ background:var(--bleu); color:#fff; }
.wk-db a:focus-visible,.wk-db button:focus-visible{ outline:2.5px solid var(--bleu-clair); outline-offset:2px; }

.wk-db-alerte{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:18px; padding:14px 18px;
  background:#FDF3F2; border:1px solid #E9C6C2; border-left:4px solid var(--rouge); border-radius:8px; color:var(--rouge); }
.wk-db-alerte div{ flex:1; min-width:220px; }
.wk-db-alerte b{ display:block; font-size:15px; }
.wk-db-alerte span{ display:block; font-size:13.5px; color:#7A3A35; margin-top:2px; }
.wk .wk-db-alerte .wk-btn{ background:var(--rouge); }
.wk .wk-db-alerte .wk-btn:hover{ background:#8E1E18; }

/* tuiles d'indicateurs */
.wk-db-kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; margin-bottom:18px; }
.wk-db-kpi{ position:relative; display:flex; flex-direction:column; gap:6px; padding:15px 16px 14px;
  background:var(--carte); border:1px solid var(--trait); border-radius:10px; text-decoration:none; color:inherit; overflow:hidden; }
.wk-db-kpi::before{ content:""; position:absolute; left:0; top:0; right:0; height:3px; background:transparent; }
a.wk-db-kpi{ transition:border-color .15s, box-shadow .15s; }
a.wk-db-kpi:hover{ border-color:var(--bleu-clair); box-shadow:0 4px 14px rgba(23,36,90,.08); }
.wk-db-kpi-l{ font-size:12.5px; font-weight:600; color:var(--gris); line-height:1.3; }
.wk-db-kpi b{ font-family:"Barlow Semi Condensed",sans-serif; font-size:30px; font-weight:700; line-height:1;
  color:var(--bleu-nuit); font-variant-numeric:tabular-nums; }
.wk-db-kpi-m{ font-size:12px; color:var(--gris-clair); }
.wk-db-kpi.alerte{ background:#FDF7F6; border-color:#EACBC7; }
.wk-db-kpi.alerte::before{ background:var(--rouge); }
.wk-db-kpi.alerte b{ color:var(--rouge); }
.wk-db-kpi.attention::before{ background:#D9A21B; }
.wk-db-kpi.attention b{ color:var(--ambre); }
.wk-db-kpi.reussi::before{ background:var(--vert); }
.wk-db-kpi.reussi b{ color:var(--vert); }
.wk-db-kpi.calme::before{ background:#B6D0BC; }
.wk-db-kpis.compact{ gap:8px; margin-bottom:0; grid-template-columns:repeat(auto-fit,minmax(130px,1fr)); }
.wk-db-kpis.compact .wk-db-kpi{ padding:11px 13px 10px; border-radius:8px; background:#FBFAF7; }
.wk-db-kpis.compact .wk-db-kpi.alerte{ background:#FDF4F3; }
.wk-db-kpis.compact .wk-db-kpi b{ font-size:24px; }

/* panneaux */
.wk-db-grille{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.wk-db-panel{ background:var(--carte); border:1px solid var(--trait); border-radius:12px; padding:18px 20px 20px; min-width:0; }
.wk-db-panel.large{ grid-column:1 / -1; }
.wk-db-panel-h{ display:flex; align-items:baseline; justify-content:space-between; gap:6px 16px; flex-wrap:wrap;
  margin:-2px 0 16px; padding-bottom:12px; border-bottom:1px solid #EFEDE7; }
.wk-db-panel-h h2{ font-size:17.5px; font-weight:700; color:var(--bleu-nuit); }
.wk-db-panel-h p{ flex-basis:100%; font-size:13px; color:var(--gris); line-height:1.45; margin-top:-2px; }
.wk-db-panel > .wk-db-kpis.compact{ margin-bottom:6px; }
.wk-db-voir{ font-size:13.5px; font-weight:600; color:var(--bleu-clair); text-decoration:none; }
.wk-db-voir::after{ content:" \2192"; }
.wk-db-voir:hover{ text-decoration:underline; text-underline-offset:3px; }
.wk-db-note{ font-size:12.5px; color:var(--gris); line-height:1.5; margin-top:12px; }
.wk-db-vide{ font-size:13.5px; color:var(--gris); line-height:1.5; background:#FAF9F6; border:1px dashed var(--trait);
  border-radius:8px; padding:14px 16px; }
.wk-db-vide.ok{ background:#F2F8F3; border-color:#C9DECE; color:var(--vert); }
.wk-db-sous-t{ font-size:12.5px; font-weight:700; color:var(--gris); letter-spacing:.05em; text-transform:uppercase;
  font-family:"Barlow",sans-serif; margin:20px 0 12px; }
.wk-db-deux{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0 32px; }

.wk-db-legende{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12.5px; color:var(--gris); }
.wk-db-legende li{ display:inline-flex; align-items:center; gap:7px; }
.wk-db-legende i{ width:10px; height:10px; border-radius:3px; display:inline-block; }
.wk-db-legende.col{ flex-direction:column; gap:10px; font-size:13.5px; min-width:150px; }
.wk-db-legende.col li{ display:flex; }
.wk-db-legende.col b{ margin-left:auto; padding-left:16px; color:var(--bleu-nuit); font-variant-numeric:tabular-nums; }

/* barres horizontales */
.wk-db .wk-barre{ margin-bottom:13px; }
.wk-db .wk-barre:last-child{ margin-bottom:0; }
.wk-db .wk-barre-t{ font-size:13.5px; margin-bottom:5px; }
.wk-db .wk-barre-t b{ font-variant-numeric:tabular-nums; }
.wk-db .wk-barre-f{ height:8px; background:#EEECE6; border-radius:4px; }
.wk-db .wk-barre-f span{ border-radius:4px; }

/* histogramme */
.wk-db .wk-histo{ height:220px; gap:8px; padding-top:18px; }
.wk-db .wk-histo-b{ border-radius:5px 5px 0 0; max-width:44px; margin-left:auto; margin-right:auto; overflow:hidden; background:var(--bleu-clair); }
.wk-db .wk-histo-b span{ border-radius:0; }
.wk-db .wk-histo-v{ font-size:12px; color:var(--bleu-nuit); }
.wk-db .wk-histo-l{ font-size:11.5px; }

/* tableaux */
.wk-db .wk-tab-enveloppe{ margin:0 -20px; }
.wk-db .wk-tab{ border:0; border-radius:0; font-size:13.5px; }
.wk-db .wk-tab th{ background:#FAF9F6; font-size:11.5px; letter-spacing:.05em; text-transform:uppercase; padding:9px 12px;
  border-bottom:1px solid var(--trait); }
.wk-db .wk-tab th:first-child,.wk-db .wk-tab td:first-child{ padding-left:20px; }
.wk-db .wk-tab th:last-child,.wk-db .wk-tab td:last-child{ padding-right:20px; }
.wk-db .wk-tab td{ padding:10px 12px; vertical-align:middle; }
.wk-db .wk-tab tbody tr:hover td{ background:#FAFAF7; }
.wk-db .wk-tab .num{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.wk-db-panel-h:has(+ .wk-tab-enveloppe){ margin-bottom:0; border-bottom:0; }
.wk-db-taux{ display:inline-block; font-weight:700; color:var(--bleu-nuit); }
.wk-db-taux.haut{ color:var(--rouge); background:#FBECEA; padding:1px 8px; border-radius:10px; }

/* commentaires */
.wk-db-coms{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.wk-db-coms li{ padding:11px 14px; background:#FAF9F6; border:1px solid #EFEDE7; border-left:3px solid var(--bleu-clair); border-radius:8px; }
.wk-db-coms li.negatif{ border-left-color:var(--rouge); background:#FDF7F6; }
.wk-db-coms-h{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:13.5px; }
.wk-db-coms-h .wk-ref{ margin-left:auto; font-size:12px; text-decoration:none; }
.wk-db-coms-h .wk-ref:hover{ text-decoration:underline; }
.wk-db-coms p{ font-size:13.5px; color:#4B4F5C; font-style:italic; margin-top:5px; line-height:1.5; }
.wk-db-etoile{ font-size:12px; font-weight:700; color:#fff; background:var(--bleu-clair); padding:1px 7px; border-radius:10px; }
.wk-db-coms li.negatif .wk-db-etoile{ background:var(--rouge); }

/* direction : filtres et groupes */
.wk-db-filtres{ background:var(--carte); border:1px solid var(--trait); border-radius:12px; padding:16px 20px; margin-bottom:18px; }
.wk-db-filtres-h{ display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.wk-db-filtres-h h2{ font-size:16px; font-weight:700; }
.wk-db-pastille{ font-size:12px; font-weight:700; color:var(--bleu); background:#EEF1F8; padding:2px 9px; border-radius:10px; }
.wk-db-filtres-g{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:4px 14px; }
.wk-db-filtres .wk-champ{ margin-bottom:10px; }
.wk-db-filtres .wk-lab{ font-size:12px; color:var(--gris); margin-bottom:4px; }
.wk-db-filtres .wk-in{ min-height:40px; padding:8px 10px; font-size:14px; border-radius:6px; }
.wk-db-filtres .wk-in:disabled{ background:#F4F3EE; color:var(--gris); }
.wk-db-filtres-b{ display:flex; justify-content:flex-end; align-items:center; gap:18px; padding-top:12px; margin-top:4px; border-top:1px solid #EFEDE7; }
.wk-db-filtres-b .wk-btn{ border-radius:6px; min-height:40px; }

.wk-db-groupes{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.wk-db-groupe{ background:var(--carte); border:1px solid var(--trait); border-radius:12px; padding:14px 16px 16px; }
.wk-db-groupe:last-child{ grid-column:1 / -1; }
.wk-db-groupe h2{ font-family:"Barlow",sans-serif; font-size:12px; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  color:var(--gris); margin-bottom:10px; }

.wk-db-graphe svg{ display:block; width:100%; height:auto; }
.wk-db-anneau{ display:flex; align-items:center; justify-content:center; gap:28px; flex-wrap:wrap; min-height:200px; }
.wk-db-anneau .wk-db-graphe{ width:190px; flex:0 0 auto; }

@media (max-width:1100px){
  .wk-db-filtres-g{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .wk-db-groupes{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .wk-db-grille,.wk-db-deux,.wk-db-groupes{ grid-template-columns:1fr; }
  .wk-db-groupe:last-child{ grid-column:auto; }
  .wk-db-periode{ width:100%; overflow-x:auto; scrollbar-width:none; }
  .wk-db-periode a{ flex:1; justify-content:center; padding:0 10px; }
  .wk-db-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .wk-db-kpi b{ font-size:25px; }
  .wk-db-panel{ padding:14px 14px 16px; }
  .wk-db .wk-tab-enveloppe{ margin:0 -14px; }
  .wk-db .wk-tab th:first-child,.wk-db .wk-tab td:first-child{ padding-left:14px; }
  .wk-db .wk-tab th:last-child,.wk-db .wk-tab td:last-child{ padding-right:14px; }
  .wk-db-filtres{ padding:14px; }
  .wk-db-filtres-b .wk-btn{ flex:1; }
}
@media (max-width:420px){ .wk-db-filtres-g{ grid-template-columns:1fr; } }
@media print{ .wk-db-periode,.wk-db-filtres,.wk-db-alerte .wk-btn{ display:none !important; } .wk-db-panel{ break-inside:avoid; } }


/* =====================================================================
   DESIGN SYSTEM v2 — Workman
   ---------------------------------------------------------------------
   Couche ajoutee APRES les regles historiques : elle ne renomme aucune
   classe (les tests s'appuient sur wk-etat-* et wk-grav-*) et n'exige
   aucun changement de logique. Sections :
     1. Fondations  2. Boutons  3. Formulaires  4. Cartes de choix
     5. Assistant de saisie  6. Cartes, blocs, faits  7. Badges
     8. Fil d'echanges  9. Tableaux  10. Alertes et etats vides
     11. Notifications  12. En-tete, pied, navigation
     13. Pages autonomes  14. Utilitaires  15. Responsive / impression
   Contraintes projet : zero dependance, le JS n'est jamais indispensable.
   ===================================================================== */

/* ---------- 1. Fondations ---------- */
.wk{
  /* Gris relevés : 4,5:1 minimum sur fond blanc ET sur fond toile. */
  --gris:#5B5F6E; --gris-clair:#666A76;
  --r-s:6px; --r-m:8px; --r-l:12px; --r-xl:16px; --r-pill:999px;
  --ombre-1:0 1px 2px rgba(23,36,90,.06), 0 1px 1px rgba(23,36,90,.04);
  --ombre-2:0 8px 24px rgba(23,36,90,.10);
  --focus:#3D54A3;
  --ok-fond:#EEF6F0;   --ok-bord:#B9D5C0;
  --err-fond:#FDF3F2;  --err-bord:#E9C6C2;
  --att-fond:#FBF5E6;  --att-bord:#E8D6A6;
  --inf-fond:#EEF2FA;  --inf-bord:#C7D3EC;
  --surface:#FAF9F6;   --trait-doux:#EFEDE7;
  font-size:16px; line-height:1.5;
  text-rendering:optimizeLegibility;
}
.wk h1,.wk h2,.wk h3{ text-wrap:balance; }
.wk p{ text-wrap:pretty; }
.wk img{ max-width:100%; }

/* Focus clavier visible partout (jamais supprime sans remplacement). */
.wk :is(a,button,summary,[tabindex]):focus-visible{
  outline:3px solid var(--focus); outline-offset:2px; border-radius:var(--r-s);
}
.wk :is(input,select,textarea):focus-visible{ outline:none; }
.wk .wke-sidebar :is(a,button):focus-visible,
.wk .wk-entete :is(a,button):focus-visible{ outline-color:var(--hivis); }

/* Lien d'evitement : premier element focalisable de chaque page. */
.wk-evitement{ position:absolute; left:12px; top:-64px; z-index:2000; padding:11px 18px;
  background:var(--hivis); color:var(--bleu-nuit); font-weight:700; text-decoration:none;
  border-radius:var(--r-m); box-shadow:var(--ombre-2); }
.wk-evitement:focus{ top:12px; }
#contenu:focus{ outline:none; }

/* Masque visuellement mais reste focalisable et lu par les lecteurs d'ecran :
   indispensable pour les cases et radios habillees en cartes. */
.wk-cache{ position:absolute !important; opacity:0; width:1px; height:1px; margin:-1px; padding:0;
  overflow:hidden; clip-path:inset(50%); white-space:nowrap; pointer-events:none; }

/* ---------- 2. Boutons ---------- */
.wk .wk-btn,.wk a.wk-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:44px; padding:0 20px; border-radius:var(--r-m);
  font-size:15px; font-weight:600; line-height:1.2; text-decoration:none; text-align:center;
  box-shadow:var(--ombre-1); cursor:pointer;
  transition:background-color .15s, border-color .15s, box-shadow .15s, color .15s;
}
.wk .wk-btn:hover{ box-shadow:var(--ombre-2); }
.wk .wk-btn:disabled,.wk .wk-btn[aria-busy="true"]{ cursor:not-allowed; box-shadow:none; }
.wk .wk-btn-sec{ background:var(--carte); border:1.5px solid #CFCBC0; color:var(--bleu-nuit); }
.wk .wk-btn-sec:hover{ background:#fff; border-color:var(--bleu); color:var(--bleu); }
.wk .wk-btn-min,.wk a.wk-btn-min{ min-height:36px; padding:0 14px; font-size:13.5px; }
.wk .wk-btn.ok{ border-color:var(--vert); color:var(--vert); }
.wk .wk-btn-danger{ background:var(--rouge); }
.wk .wk-btn-danger:hover{ background:#8E1E18; }
.wk .wk-btn[aria-busy="true"]{ position:relative; color:transparent !important; }
.wk .wk-btn[aria-busy="true"]::after{ content:""; position:absolute; width:18px; height:18px; border-radius:50%;
  border:2.5px solid rgba(255,255,255,.4); border-top-color:#fff; animation:wk-tourne .8s linear infinite; }
.wk .wk-btn-sec[aria-busy="true"]::after{ border-color:rgba(35,56,127,.25); border-top-color:var(--bleu); }
@keyframes wk-tourne{ to{ transform:rotate(360deg); } }
.wk .wk-lien{ min-height:24px; }
.wk .wk-mini{ min-height:28px; padding:0 10px; border-radius:var(--r-s); }

/* ---------- 3. Formulaires ---------- */
.wk-lab{ font-size:14px; }
.wk-aide{ font-size:13px; }
.wk-in{
  min-height:44px; padding:10px 14px; border:1.5px solid #CFCBC0; border-radius:var(--r-m);
  background:#fff; font-size:15.5px; line-height:1.4; color:var(--bleu-nuit);
  transition:border-color .15s, box-shadow .15s, background-color .15s;
}
.wk-in::placeholder{ color:#6E7280; }
.wk-in:hover:not(:disabled){ border-color:#A9A597; }
.wk-in:focus{ outline:none; border-color:var(--focus); box-shadow:0 0 0 4px rgba(61,84,163,.18); }
.wk-in:disabled{ background:#F4F3EE; color:var(--gris); cursor:not-allowed; }
.wk-in.err{ border-color:var(--rouge); background:#fff; box-shadow:inset 3px 0 0 var(--rouge); }
.wk-in.err:focus{ box-shadow:inset 3px 0 0 var(--rouge), 0 0 0 4px rgba(179,38,30,.15); }
select.wk-in{
  appearance:none; -webkit-appearance:none; padding-right:40px; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B5F6E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center; background-size:16px;
}
textarea.wk-in{ min-height:120px; line-height:1.55; }
input[type=date].wk-in,input[type=number].wk-in{ font-variant-numeric:tabular-nums; }
.wk-msg-err{ display:flex; align-items:flex-start; gap:6px; margin-top:6px; font-size:13px; font-weight:600; color:var(--rouge); }
.wk-msg-err::before{ content:""; flex:0 0 16px; height:16px; margin-top:1px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.1'/%3E%3C/svg%3E") center/16px no-repeat; }
.wk input[type=checkbox],.wk input[type=radio]{ accent-color:var(--bleu); width:18px; height:18px; flex:0 0 auto; }
.wk label:has(> input[type=checkbox]:not(.wk-cache)),.wk label:has(> input[type=radio]:not(.wk-cache)){ cursor:pointer; }
.wk input[type=file]{ max-width:100%; font-size:14px; color:var(--gris); }
.wk input[type=file]::file-selector-button{ min-height:38px; margin-right:12px; padding:0 16px; border:1.5px solid #CFCBC0;
  border-radius:var(--r-m); background:var(--carte); color:var(--bleu-nuit); font:600 14px/1 'Barlow',sans-serif; cursor:pointer; }
.wk input[type=file]::file-selector-button:hover{ border-color:var(--bleu); color:var(--bleu); }
.wk-depot{ border:2px dashed #CFCBC0; border-radius:var(--r-l); background:var(--surface); padding:26px 20px; }
.wk-depot:hover,.wk-depot:focus-within{ border-color:var(--bleu-clair); background:#F6F8FD; }

/* ---------- 4. Cartes de choix (radios et cases habillees) ---------- */
.wk-choix{ gap:10px; }
.wk-choix-2{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
.wk-choix-3{ grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
.wk-choix-4{ grid-template-columns:repeat(4,minmax(0,1fr)) !important; }
.wk .wk-opt{
  position:relative; min-height:56px; padding:14px 44px 14px 16px; border:1.5px solid #CFCBC0; border-radius:10px;
  background:#fff; color:var(--bleu-nuit); font-size:15px; font-weight:600; line-height:1.35; cursor:pointer;
  transition:border-color .15s, background-color .15s, box-shadow .15s;
}
.wk .wk-opt small{ font-weight:400; font-size:13px; color:var(--gris); }
.wk .wk-opt:hover{ border-color:var(--bleu-clair); background:#FBFBF8; }
.wk .wk-opt.on{ border-color:var(--bleu); background:#F3F5FB; box-shadow:inset 4px 0 0 var(--hivis); font-weight:700; }
.wk .wk-opt.on small{ color:#4A4F60; font-weight:400; }
.wk .wk-opt:has(input:focus-visible){ outline:3px solid var(--focus); outline-offset:2px; }
/* indicateur radio a droite ; les cases (wk-opt-mult) gardent leur case a gauche */
.wk .wk-opt:not(.wk-opt-mult)::after{ content:""; position:absolute; right:14px; top:16px; width:18px; height:18px;
  border:2px solid #A9A597; border-radius:50%; background:#fff; transition:border-color .15s, background .15s; }
.wk .wk-opt:not(.wk-opt-mult).on::after{ border-color:var(--bleu); background:radial-gradient(circle, var(--bleu) 0 4.5px, #fff 5px); }
.wk .wk-opt-mult{ padding:14px 16px 14px 46px; }
.wk .wk-opt-mult::before{ left:15px; top:16px; width:18px; height:18px; border-color:#A9A597; border-radius:4px; }
.wk .wk-opt-mult.on::after{ left:20px; top:19px; }
.wk .wk-opt-type{ padding-top:18px; padding-bottom:18px; }

/* ---------- 5. Assistant de saisie (formulaire de reclamation) ---------- */
.wk-etapes{ gap:6px; margin-bottom:22px; }
.wk .wk-etape{ padding:0; border:0; background:none; font-family:inherit; cursor:default; text-align:left; }
.wk .wk-etape.fait{ cursor:pointer; }
.wk-etape-bar{ height:6px; border-radius:var(--r-pill); }
.wk-etape-num{ margin-top:8px; font-size:13px; line-height:1.3; }
.wk-etape.fait .wk-etape-bar{ background:var(--bleu); }
.wk-etape.fait:hover .wk-etape-num{ text-decoration:underline; text-underline-offset:3px; }
.wk .wk-section[hidden]{ display:none; }
.wk-sect-titre{ font-size:24px; }
.wk-sect-txt{ font-size:15px; }
.wk-pied-form{ align-items:center; }
.wk-rappel-type{ border-radius:var(--r-m); }
.wk-resume-erreurs{ margin:0 0 18px; padding:16px 18px 14px 46px; position:relative; background:var(--err-fond);
  border:1px solid var(--err-bord); border-left:4px solid var(--rouge); border-radius:var(--r-m); color:#7A1F19; }
.wk-resume-erreurs:focus{ outline:3px solid var(--focus); outline-offset:2px; }
.wk-resume-erreurs::before{ content:""; position:absolute; left:16px; top:16px; width:20px; height:20px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.8 19.5h18.4L12 3.5z'/%3E%3Cpath d='M12 10v4M12 16.8v.1'/%3E%3C/svg%3E") center/20px no-repeat; }
.wk-resume-erreurs h2{ font-size:17px; color:var(--rouge); margin-bottom:8px; }
.wk-resume-erreurs ul{ margin:0; padding-left:18px; }
.wk-resume-erreurs li{ margin:3px 0; font-size:14px; }
.wk-resume-erreurs a{ color:inherit; font-weight:600; text-underline-offset:3px; }

/* ---------- 6. Cartes, blocs, faits ---------- */
.wk-carte{ border-radius:var(--r-l); box-shadow:var(--ombre-1); }
.wk-titre-page{ font-size:clamp(25px, 3vw, 31px); line-height:1.15; }
.wk-sous{ font-size:15px; }
.wk-barre-titre{ align-items:flex-end; margin-bottom:22px; }
.wk .wk-bloc{ margin-top:16px; padding:20px 22px 22px; background:var(--carte); border:1px solid var(--trait); border-radius:var(--r-l); box-shadow:var(--ombre-1); }
.wk .wk-bloc .wk-bloc{ margin-top:0; padding:0; background:none; border:0; box-shadow:none; }
.wk .wk-carte .wk-bloc,.wk .wk-db .wk-bloc{ padding:0; background:none; border:0; box-shadow:none; }
.wk .wk-bloc-t{ display:flex; align-items:center; gap:10px; margin:0 0 16px; padding:0; border:0; font-size:18px; font-weight:700; color:var(--bleu-nuit); }
.wk .wk-bloc-t::before{ content:""; flex:0 0 5px; height:20px; border-radius:2px; background:var(--hivis); }
.wk-colonnes{ gap:0 16px; }

.wk-faits{ gap:10px 12px; margin:0; }
.wk .wk-fait{ min-width:0; padding:11px 14px 12px; background:var(--surface); border:1px solid var(--trait-doux); border-radius:var(--r-m); }
.wk .wk-fait span{ font-size:11.5px; font-weight:600; letter-spacing:.05em; text-transform:uppercase; color:var(--gris); }
.wk .wk-fait b{ margin-top:4px; font-size:15px; overflow-wrap:anywhere; }
.wk .wk-cite{ padding:16px 18px; background:var(--surface); border:1px solid var(--trait-doux); border-left:4px solid var(--hivis);
  border-radius:0 var(--r-m) var(--r-m) 0; font-size:15.5px; line-height:1.65; }

.wk-ligne{ border-radius:var(--r-l); }
.wk-detail-h{ gap:12px 20px; margin-bottom:0; }
.wk-detail-h .wk-titre-page{ margin-top:6px; }
.wk-actions{ gap:8px; margin:18px 0 6px; padding:14px 0 18px; }
.wk-actions .wk-btn{ min-height:36px; }
.wk-stat{ border-radius:var(--r-m); }

/* Fiche dossier : colonne principale + colonne d'action (qualite) */
.wk-fiche{ display:grid; grid-template-columns:minmax(0,1fr); gap:0 22px; align-items:start; }
.wk-fiche-lat{ min-width:0; }
.wk-fiche-lat > .wk-bloc:first-child{ margin-top:16px; }
@media (min-width:1100px){
  .wk-fiche.avec-lat{ grid-template-columns:minmax(0,1fr) 380px; }
  .wk-fiche.avec-lat .wk-fiche-lat{ position:sticky; top:74px; max-height:calc(100vh - 90px); overflow-y:auto; padding-bottom:12px; }
  .wk-fiche.avec-lat .wk-fiche-lat > .wk-bloc:first-child{ margin-top:16px; }
}
.wk-onglets-dossier{ margin-bottom:18px; overflow-x:auto; scrollbar-width:none; }
.wk-onglets-dossier::-webkit-scrollbar{ display:none; }
.wk-onglet-d{ min-height:44px; white-space:nowrap; }
.wk-onglet-d.on{ font-weight:700; }
.wk-pastille-o{ min-width:22px; text-align:center; }

/* ---------- 7. Badges (statuts, priorites) ---------- */
.wk .wk-etat{ display:inline-flex; align-items:center; gap:6px; padding:3px 11px 3px 9px; border-radius:var(--r-pill);
  font-size:12.5px; font-weight:700; line-height:1.4; white-space:nowrap; }
.wk .wk-etat::before{ content:""; width:7px; height:7px; border-radius:50%; background:currentColor; flex:0 0 auto; }
.wk-etat-recue{ color:#33478C; border-color:#C3D2E2; background:#EEF3FA; }
.wk-etat-analyse{ color:#8A5A00; border-color:#E4D2A8; background:#FBF3DF; }
.wk-etat-action{ color:#3A4468; border-color:#CFD5E8; background:#EFF1F9; }
.wk-etat-resolue{ color:#26603A; border-color:#B6D0BC; background:#EAF5EC; }
.wk-etat-rejetee{ color:#A3241C; border-color:#E3C0BD; background:#FBEDEB; }
.wk-grav{ display:inline-flex; align-items:center; gap:6px; }
.wk-grav::before{ content:""; width:8px; height:8px; border-radius:50%; background:var(--gris-clair); flex:0 0 auto; }
.wk-grav-bloquante::before{ background:var(--rouge); }
.wk-grav-majeure::before{ background:#D9A21B; }
.wk-grav-mineure::before{ background:var(--bleu-clair); }
.wk-ref{ letter-spacing:.01em; }

/* ---------- 8. Fil d'echanges et historique ---------- */
.wk .wk-fil li{ padding:0 0 22px 30px; border-left:2px solid #E1DED4; }
.wk .wk-fil li::before{ left:-8px; top:2px; width:14px; height:14px; border:3px solid var(--carte); box-shadow:0 0 0 1.5px #C9C5B8; background:#C9C5B8; }
.wk-fil-d{ font-size:12.5px; color:var(--gris); }
.wk-fil-t{ font-size:15.5px; margin-top:3px; }
.wk .wk-fil-n{ margin-top:8px; padding:12px 16px; border-radius:0 var(--r-m) var(--r-m) 0; font-size:15px; line-height:1.6; }
.wk .wk-fil-client .wk-fil-n{ background:#FFFBEE; border:1px solid #F1E3B5; border-left:4px solid var(--hivis); }
.wk .wk-fil-qualite .wk-fil-n{ background:#F3F5FB; border:1px solid #D6DCEE; border-left:4px solid var(--bleu); }
.wk .wk-fil li.interne .wk-fil-n{ background:repeating-linear-gradient(135deg,#F6F5F1 0 8px,#F0EFEA 8px 16px); border:1px dashed #C9C5B8; border-left:4px solid var(--gris-clair); }
.wk-timeline-det > summary{ min-height:44px; display:flex; align-items:center; cursor:pointer; }
.wk-timeline-item{ padding-bottom:16px; }
.wk-timeline-c{ color:var(--gris); }

/* Pieces jointes : icone SVG au lieu d'un emoji */
.wk-doc-apercu::before{ content:""; display:block; width:26px; height:26px; margin:0 auto 6px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23757985' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4'/%3E%3C/svg%3E") center/26px no-repeat; }
.wk-photo{ border-radius:var(--r-m); }
.wk-photo img{ transition:opacity .15s; }
a.wk-photo:hover img{ opacity:.9; }

/* ---------- 9. Tableaux ---------- */
.wk-tab-enveloppe{ overflow-x:auto; border:1px solid var(--trait); border-radius:var(--r-l); background:var(--carte); box-shadow:var(--ombre-1); -webkit-overflow-scrolling:touch; }
.wk .wk-tab{ border:0; border-radius:0; font-size:14px; }
.wk .wk-tab th{ padding:11px 14px; background:var(--surface); border-bottom:1px solid var(--trait); font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--gris); }
.wk .wk-tab td{ padding:12px 14px; border-bottom:1px solid var(--trait-doux); vertical-align:middle; }
.wk .wk-tab tbody tr:hover td{ background:#FAFAF7; }
.wk .wk-tab tbody tr:last-child td{ border-bottom:0; }
.wk .wk-tab .mono{ color:var(--bleu-clair); }
.wk .wk-db .wk-tab-enveloppe{ border:0; border-radius:0; box-shadow:none; }
.wk-pages{ margin-top:18px; }
.wk-pages a,.wk-pages span{ min-height:40px; display:inline-flex; align-items:center; border-radius:var(--r-m); }

/* Barre d'outils : recherche et filtres */
.wk-filtres{ gap:10px; padding:12px 14px; margin-bottom:16px; background:var(--carte); border:1px solid var(--trait); border-radius:var(--r-l); box-shadow:var(--ombre-1); }
.wk .wk-filtres .wk-in{ min-height:40px; padding:8px 12px; font-size:14.5px; }
.wk-puces{ gap:6px; padding:5px; width:fit-content; max-width:100%; margin-bottom:16px; background:var(--carte); border:1px solid var(--trait); border-radius:var(--r-l); box-shadow:var(--ombre-1); overflow-x:auto; scrollbar-width:none; }
.wk-puces::-webkit-scrollbar{ display:none; }
.wk-puce{ min-height:40px; padding:0 14px; border:0; border-radius:var(--r-m); background:transparent; color:var(--gris); font-weight:600; white-space:nowrap; }
.wk-puce:hover{ background:#F4F3EE; color:var(--bleu-nuit); }
.wk-puce.on{ background:var(--bleu); color:#fff; }
.wk-puce b{ background:#EFEDE7; }
.wk-puce.on b{ background:rgba(255,255,255,.22); color:#fff; }
.wk-puce.alerte b{ background:#FBECEA; color:var(--rouge); }
.wk-puce.on.alerte b{ background:var(--rouge); color:#fff; }

/* ---------- 10. Alertes, confirmations, etats vides ---------- */
.wk .wk-alerte,.wk .wk-ok,.wk .wk-info,.wk .wk-attention{ position:relative; margin-bottom:16px; padding:13px 16px 13px 46px; border:1px solid; border-left-width:4px; border-radius:var(--r-m); font-size:14.5px; font-weight:500; line-height:1.5; }
.wk .wk-alerte::before,.wk .wk-ok::before,.wk .wk-info::before,.wk .wk-attention::before{ content:""; position:absolute; left:15px; top:14px; width:20px; height:20px; background-repeat:no-repeat; background-position:center; background-size:20px; }
.wk .wk-alerte{ background:var(--err-fond); border-color:var(--err-bord); border-left-color:var(--rouge); color:#7A1F19; }
.wk .wk-alerte::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3261E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.1'/%3E%3C/svg%3E"); }
.wk .wk-ok{ background:var(--ok-fond); border-color:var(--ok-bord); border-left-color:var(--vert); color:#1F4F2E; }
.wk .wk-ok::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B3E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8.3 12.3 2.6 2.6 4.8-5.1'/%3E%3C/svg%3E"); }
.wk .wk-info{ background:var(--inf-fond); border-color:var(--inf-bord); border-left-color:var(--bleu); color:#2A3A78; }
.wk .wk-info::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2323387F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v5.5M12 7.6v.1'/%3E%3C/svg%3E"); }
.wk .wk-attention{ background:var(--att-fond); border-color:var(--att-bord); border-left-color:#D9A21B; color:#6E4700; }
.wk .wk-attention::before{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A6300' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.8 19.5h18.4L12 3.5z'/%3E%3Cpath d='M12 10v4M12 16.8v.1'/%3E%3C/svg%3E"); }
.wk-alerte a,.wk-ok a{ color:inherit; text-underline-offset:3px; }

.wk .wk-vide{ padding:46px 26px; border:2px dashed #D3CFC3; border-radius:var(--r-l); background:var(--surface); }
.wk .wk-vide::before{ content:""; display:block; width:56px; height:56px; margin:0 auto 14px; border-radius:50%; background:#EFEDE7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23757985' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 13.5 6 5.5h12l2.5 8'/%3E%3Cpath d='M3.5 13.5v5h17v-5h-5.2a3.3 3.3 0 0 1-6.6 0z'/%3E%3C/svg%3E") center/28px no-repeat; }
.wk .wk-vide h3{ font-size:20px; color:var(--bleu-nuit); }
.wk .wk-tb-vide{ border:2px dashed #D3CFC3; background:var(--surface); }
.wk-charge{ color:var(--gris); }

/* Confirmation de depot */
.wk-coche{ display:flex; align-items:center; justify-content:center; flex:0 0 auto; width:56px; height:56px; border-radius:50%;
  background:var(--vert); color:#fff; font-size:28px; font-weight:700; line-height:1; box-shadow:0 0 0 6px #DCEEDF; }

/* ---------- 11. Notifications ---------- */
.wk .wk-notif{ position:relative; padding:16px 18px 16px 44px; border-radius:var(--r-l); box-shadow:var(--ombre-1); transition:border-color .15s, box-shadow .15s; }
.wk .wk-notif::before{ content:""; position:absolute; left:18px; top:22px; width:10px; height:10px; border-radius:50%; background:#D3CFC3; }
.wk .wk-notif:hover{ border-color:var(--bleu-clair); box-shadow:var(--ombre-2); }
.wk .wk-notif.neuve{ background:#FFFDF4; box-shadow:inset 4px 0 0 var(--hivis), var(--ombre-1); }
.wk .wk-notif.neuve::before{ background:var(--bleu); }
.wk .wk-notif.neuve .wk-notif-t::after{ padding:1px 8px; border-radius:var(--r-pill); background:#FBF3DF; font-size:11px; vertical-align:1px; }
.wk-notif-d{ color:var(--gris); }
.wk-cloche{ min-width:44px; min-height:44px; border-radius:var(--r-m); }

/* ---------- 12. En-tete client, pied de page ---------- */
.wk-entete{ position:relative; box-shadow:0 2px 0 rgba(0,0,0,.12); }
.wk-entete-in{ max-width:1180px; gap:6px 20px; padding:10px 24px; }
.wk-marque{ display:flex; align-items:center; text-decoration:none; }
.wk-marque-sous{ letter-spacing:.03em; }
.wk-nav-client{ display:flex; align-items:center; gap:4px; margin-left:6px; }
.wk-nav-client a{ display:flex; align-items:center; gap:8px; min-height:44px; padding:0 14px; border-radius:var(--r-m);
  color:#C6D0EA; font-size:14.5px; font-weight:600; text-decoration:none; transition:background-color .15s, color .15s; }
.wk-nav-client a:hover{ background:rgba(255,255,255,.09); color:#fff; }
.wk-nav-client a[aria-current="page"]{ color:#fff; background:rgba(255,255,255,.09); box-shadow:inset 0 -3px 0 var(--hivis); border-radius:var(--r-m) var(--r-m) 0 0; }
.wk .wk-nav-client a.wk-nav-cta{ margin-left:6px; padding:0 16px; background:var(--hivis); color:var(--bleu-nuit); font-weight:700; }
.wk .wk-nav-client a.wk-nav-cta:hover{ background:#FFD96E; color:var(--bleu-nuit); }
.wk-entete-fin{ gap:12px; }
.wk-qui{ font-size:13px; }
.wk .wk-btn-fant{ min-height:40px; }
.wk-corps{ max-width:1180px; padding:26px 24px 72px; }
.wk-retour{ min-height:40px; }
.wk-pied{ background:transparent; }
.wk-pied-in{ max-width:1180px; padding:18px 24px; justify-content:space-between; }
.wk-pied-in span{ font-weight:600; }
.wk-pied a{ min-height:24px; }

/* ---------- 13. Pages autonomes (suivi sans compte, satisfaction) ---------- */
.wk-page-simple{ min-height:100vh; padding:36px 16px 48px;
  background:radial-gradient(ellipse 80% 40% at 50% 0%, #E6E9F4 0, rgba(230,233,244,0) 70%), var(--toile); }
.wk-etroit{ max-width:640px; margin:0 auto; }
.wk-etroit .wk-carte-pad{ padding:26px 28px; box-shadow:var(--ombre-2); }
.wk-etroit .wk-titre-page{ font-size:clamp(24px, 4vw, 30px); }
.wk-marque-simple{ display:flex; justify-content:center; margin-bottom:26px; }
.wk-marque-simple img{ height:54px; width:auto; }
.wk-pied-simple{ margin-top:28px; text-align:center; font-size:13px; color:var(--gris); }
.wk-pied-simple a{ color:var(--bleu-clair); }
.wk-merci{ text-align:center; }
.wk-merci .wk-coche{ margin:0 auto 16px; }

/* Echelle de satisfaction : cible tactile 44 px, focus visible */
.wk-notes{ gap:8px; }
.wk .wk-note{ position:relative; min-height:76px; padding:12px 4px; border-radius:var(--r-m); cursor:pointer; transition:border-color .15s, background-color .15s; }
.wk .wk-note:hover{ border-color:var(--bleu-clair); }
.wk .wk-note:has(input:checked){ border-color:var(--bleu); background:#F3F5FB; box-shadow:inset 0 3px 0 var(--hivis); }
.wk .wk-note:has(input:focus-visible){ outline:3px solid var(--focus); outline-offset:2px; }
.wk .wk-note span{ font-size:11.5px; color:var(--gris); }

/* Demarche 8D */
.wk-discipline{ margin-top:12px; padding:18px 20px; background:var(--carte); border:1px solid var(--trait); border-radius:var(--r-l); box-shadow:var(--ombre-1); }
.wk-discipline-t{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.wk-discipline-t b{ font-family:'Barlow Semi Condensed',sans-serif; font-size:17.5px; }
.wk-d-code{ display:inline-flex; align-items:center; justify-content:center; min-width:38px; height:28px; padding:0 8px; border-radius:var(--r-s);
  background:var(--bleu); color:#fff; font-family:'IBM Plex Mono',monospace; font-size:13px; font-weight:500; }
.wk-d-auto{ font-size:12px; font-style:italic; color:var(--gris); }
.wk-d-aide{ margin:0 0 12px; font-size:13.5px; color:var(--gris); line-height:1.5; }
.wk-d-liste{ list-style:none; margin:0 0 10px; padding:0; }
.wk-d-liste li{ display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; padding:9px 0; border-bottom:1px solid var(--trait-doux); font-size:14px; }
.wk-d-liste li:last-child{ border-bottom:0; }
.wk-d-liste small{ margin-left:auto; color:var(--gris); }
.wk-rapport-d{ max-width:920px; }

/* ---------- 14. Utilitaires (remplacent les styles en ligne) ---------- */
.wk-centre{ text-align:center; }
.wk-pleine{ width:100%; }
.wk-mt-s{ margin-top:8px; } .wk-mt-m{ margin-top:16px; } .wk-mt-l{ margin-top:24px; }
.wk-mb-m{ margin-bottom:16px; }
.wk-aligne-fin{ margin-left:auto; }
.wk-rangee{ display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; }
.wk-rangee > form{ display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end; }
.wk-sans-marge{ margin:0 !important; }
.wk-largeur-s{ width:190px; max-width:100%; }
.wk-largeur-m{ width:230px; max-width:100%; }

/* ---------- 15. Responsive et impression ---------- */
@media (max-width:1000px){
  .wk-choix-4{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width:860px){
  .wk-choix-3,.wk-choix-4{ grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .wk-choix-2{ grid-template-columns:1fr !important; }
  .wk-in{ font-size:16px; }                   /* evite le zoom automatique sur iOS */
  .wk-entete-in{ padding:10px 16px; }
  .wk-nav-client{ order:3; flex:1 0 100%; margin:2px -4px 0; padding-bottom:0; overflow-x:auto; scrollbar-width:none; }
  .wk-nav-client::-webkit-scrollbar{ display:none; }
  .wk-nav-client a{ flex:0 0 auto; }
  .wk-corps{ padding:20px 16px 56px; }
  .wk .wk-bloc{ padding:16px 16px 18px; }
  .wk-actions .wk-btn{ flex:1 1 calc(50% - 8px); }
  .wk-etroit .wk-carte-pad{ padding:20px 18px; }
  .wk-page-simple{ padding:24px 12px 36px; }
  .wk-filtres .wk-in,.wk-filtres input.wk-in{ flex:1 1 100%; min-width:0; }
  .wk-pied-in{ padding:16px; }
  .wk .wk-tab{ min-width:620px; }
  /* barre d'envoi collee en bas : le bouton reste atteignable a une main */
  #formulaire .wk-pied-form{ position:sticky; bottom:0; z-index:5; margin:26px -18px -18px; padding:12px 16px;
    background:rgba(255,255,255,.96); border-top:1px solid var(--trait); border-radius:0 0 var(--r-l) var(--r-l); backdrop-filter:blur(6px); }
}
@media (max-width:520px){
  .wk-choix-3,.wk-choix-4{ grid-template-columns:1fr !important; }
  .wk-notes{ grid-template-columns:repeat(5,minmax(0,1fr)); }
  .wk-qui{ display:none; }
  .wk-marque-sous{ display:none; }
  .wk .wk-btn-fant{ padding:0 12px; font-size:13px; }
}
@media (pointer:coarse){
  .wk .wk-btn-min,.wk a.wk-btn-min{ min-height:44px; }
  .wk .wk-mini{ min-height:36px; }
  .wk-puce,.wk-onglet-d,.wk-nav-client a{ min-height:44px; }
}
@media print{
  .wk-evitement,.wke-sidebar,.wke-topbar,.wk-nav-client,.wk-fiche-lat,.wk-cloche{ display:none !important; }
  .wke-app{ display:block; }
  .wk-fiche,.wk-fiche.avec-lat{ display:block; }
  .wk .wk-bloc,.wk-discipline,.wk .wk-fait{ box-shadow:none; break-inside:avoid; }
  .wk-tab-enveloppe{ overflow:visible; border-color:#999; box-shadow:none; }
}
@media (prefers-reduced-motion:reduce){
  .wk .wk-btn[aria-busy="true"]::after{ animation-duration:2s; }
  .wk *{ transition:none !important; scroll-behavior:auto !important; }
}

/* Boutons principaux de la page de connexion : plus hauts que les boutons courants. */
.wk .wk-cx-btn,.wk a.wk-cx-btn{ min-height:48px; font-size:15.5px; }

/* ---------- v2 (suite) : etapes, pages sans JavaScript ---------- */
.wk-etape-bar,.wk-etape-num{ display:block; }
.wk-etape{ flex:1 1 0; min-width:0; }
.wk-etape-num{ overflow-wrap:anywhere; }
/* Sans JavaScript : toutes les sections s'affichent, le bouton "Continuer"
   et la barre d'etapes n'ont pas de sens (le formulaire reste complet). */
html:not(.js) #suivant,html:not(.js) .wk-etapes{ display:none; }

/* ---------- v2 (suite) : en-tete de fiche dossier ---------- */
.wk-fiche-tete{ display:flex; align-items:flex-start; gap:16px 24px; flex-wrap:wrap; padding:20px 24px; background:var(--carte);
  border:1px solid var(--trait); border-left:5px solid var(--bleu-clair); border-radius:var(--r-l); box-shadow:var(--ombre-1); }
.wk-fiche-analyse,.wk-fiche-action{ border-left-color:#D9A21B; }
.wk-fiche-resolue{ border-left-color:var(--vert); }
.wk-fiche-rejetee{ border-left-color:#9A9DA6; }
.wk-fiche-tete-g{ flex:1 1 320px; min-width:0; }
.wk-fiche-tete .wk-titre-page{ margin-top:6px; }
.wk-fiche-tete .wk-aide{ margin:4px 0 0; font-size:14px; }
.wk-fiche-tete .wk-sous{ margin-top:6px; }
.wk-fiche-tete-d{ display:flex; align-items:center; gap:8px 12px; flex-wrap:wrap; justify-content:flex-end; }
.wk-fiche-tete-d .wk-etat{ font-size:13.5px; padding:5px 13px 5px 11px; }
.wk-qi-type{ font-size:12px; font-weight:600; padding:2px 9px; border-radius:var(--r-pill); white-space:nowrap; }
.wk-qi-type.qualite{ background:#EEF1F8; color:var(--bleu); }
.wk-qi-type.commerciale{ background:#F1EFE8; color:#5E5A4E; }
@media (max-width:860px){
  .wk-fiche-tete{ padding:16px; }
  .wk-fiche-tete-d{ justify-content:flex-start; }
}

/* ---------- v2 (suite) : pages autonomes, confirmation, notifications ---------- */
.wk-cx-tete h1{ font-size:27px; font-weight:700; color:var(--bleu-nuit); }
.wk-mb-s{ margin-bottom:8px; } .wk-mb-l{ margin-bottom:24px; }
.wk-texte-doux{ margin:0; color:var(--gris); line-height:1.6; }
.wk-zone-texte{ min-height:100px; }
.wk-fait-ref{ font-size:17px; }
.wk-stat-note{ font-style:normal; opacity:.75; }
.wk-liste-simple{ margin:8px 0 0; padding-left:20px; }
.wk-liste-etapes{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.wk-liste-etapes li{ position:relative; padding:0 0 0 30px; color:var(--gris); font-size:15px; line-height:1.55; }
.wk-liste-etapes li::before{ content:""; position:absolute; left:0; top:3px; width:18px; height:18px; border-radius:50%; background:var(--ok-fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E6B3E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center/12px no-repeat; box-shadow:inset 0 0 0 1px var(--ok-bord); }
.wk-liste-nue{ list-style:none; margin:0 0 8px; padding:0; }
.wk-liste-nue > li{ margin:0 0 9px; }
.wk-liste-t{ display:flex; align-items:center; gap:8px; margin:22px 0 10px; font-family:'Barlow',sans-serif; font-size:12.5px; font-weight:700; letter-spacing:.07em; text-transform:uppercase; color:var(--gris); }
.wk-compte{ padding:1px 9px; border-radius:var(--r-pill); background:#EFEDE7; font-size:12px; letter-spacing:0; color:var(--bleu-nuit); }
.wk .wk-notif{ display:flex; align-items:center; gap:14px; margin:0; }
.wk-notif-corps{ flex:1; min-width:0; }
.wk-notif .wk-tb-chevron{ color:var(--gris-clair); }
.wk-notif:hover .wk-tb-chevron{ color:var(--bleu); transform:translateX(3px); }

/* Un formulaire ou un tableau pose dans un bloc titre n'a pas besoin d'une seconde carte. */
.wk .wk-bloc > .wk-carte.wk-carte-pad{ padding:0; background:none; border:0; box-shadow:none; }
.wk .wk-bloc .wk-tab-enveloppe{ box-shadow:none; }
.wk .wk-bloc > .wk-carte + form,.wk .wk-bloc > .wk-carte + .wk-aide{ margin-top:14px; }

/* L'attribut hidden doit toujours l'emporter, meme sur une regle display:flex ou block. */
.wk [hidden]{ display:none !important; }

/* Etapes du formulaire : alignees en haut ; sur mobile seule l'etape courante affiche son titre. */
.wk .wk-etape{ display:flex; flex-direction:column; justify-content:flex-start; align-self:flex-start; }
@media (max-width:520px){
  .wk-etape:not(.on) .wk-etape-num{ display:none; }
  .wk-etape.on{ flex:2.6 1 0; }
  .wk-etape-num{ font-size:12.5px; }
}
@media (max-width:520px){
  .wk .wk-note b.wk-etoiles{ font-size:11px; letter-spacing:0; }
  .wk .wk-note{ min-height:84px; padding:10px 2px; }
  .wk .wk-note span{ font-size:10.5px; }
}

/* Cibles tactiles : au moins 44 px sur ecran tactile, 36 px avec une souris. */
.wk-marque{ min-height:44px; }
.wk-pied-in a,.wk-cx-legal a,.wk-pied-simple a{ display:inline-flex; align-items:center; min-height:36px; padding:0 4px; }
.wk-cx-lien{ display:inline-flex; align-items:center; min-height:36px; margin:-8px 0; }
.wk-cx-oeil{ width:44px; height:44px; right:0; }
.wke-bascule{ min-width:44px; }
@media (max-width:520px),(pointer:coarse){
  .wk-etape{ padding:14px 0 6px; }
  .wk-etape.on{ padding-top:14px; }
  .wk-pied-in a,.wk-cx-legal a,.wk-pied-simple a,.wk-cx-lien{ min-height:44px; }
  .wk-cx-lien{ margin:-12px 0; }
}

/* Filtres de la page direction : deux colonnes meme sur mobile (8 champs sur une colonne = un ecran entier). */
@media (max-width:420px){
  .wk-db-filtres-g{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:2px 10px; }
  .wk-db-filtres .wk-lab{ font-size:11.5px; }
  .wk-db-filtres .wk-in{ padding:8px 8px; font-size:14.5px; }
  .wk-db-filtres input[type=date].wk-in{ padding-right:4px; }
}
.wke-topbar-fin .wk-btn{ white-space:nowrap; }

/* =====================================================================
   ECRANS D'ACCES v3 — connexion, creation de compte, mot de passe
   (habillage : lib/connexion-vue.php). Mobile d'abord : les panneaux
   s'empilent ; a partir de 1000 px, panneau de marque en diagonale
   avec liseré jaune, carte a droite, bande de pied de page.
   ===================================================================== */
.wk-lg{ --pied:60px; position:relative; display:grid; grid-template-columns:minmax(0,1fr); min-height:100vh; min-height:100dvh; background:#F4F6FA; }
.wk-lg-fond{ display:none; }

/* panneau de marque (mobile : bandeau compact) */
.wk-lg-g{ position:relative; z-index:1; display:flex; flex-direction:column; gap:14px; padding:18px 20px 22px; color:#fff;
  background:radial-gradient(70% 90% at 90% 0%, rgba(96,148,255,.28), transparent 70%), linear-gradient(165deg,#25397F 0%,#17245A 62%,#111B45 100%); }
.wk-lg-marque .wk-logo-badge{ height:44px; width:auto; }
.wk-lg-titre{ margin:0; font-family:'Barlow Semi Condensed',sans-serif; font-size:25px; font-weight:700; line-height:1.1; color:#fff; }
.wk-lg-titre span{ color:var(--hivis); }
.wk-lg-txt,.wk-lg-atouts,.wk-lg-chiffres{ display:none; }

/* colonne du formulaire */
.wk-lg-d{ position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:center; padding:20px 14px 30px; }
.wk-lg-carte{ width:100%; max-width:470px; padding:26px 22px 22px; background:#fff; border-radius:18px;
  box-shadow:0 14px 44px rgba(23,36,90,.12), 0 1px 3px rgba(23,36,90,.08); }
.wk-lg-tete{ margin-bottom:18px; text-align:center; }
.wk-lg-cadenas{ display:inline-flex; align-items:center; justify-content:center; width:62px; height:62px; margin-bottom:12px;
  border-radius:50%; background:#EEF1F8; color:var(--bleu); }
.wk-lg-tete h1{ font-size:30px; font-weight:700; line-height:1.1; color:var(--bleu-nuit); }
.wk-lg-tete p{ margin-top:8px; font-size:15px; color:var(--gris); }

.wk-lg .wk-champ{ margin-bottom:16px; }
.wk-lg .wk-lab{ font-size:14.5px; font-weight:700; }
.wk-lg .wk-in{ min-height:48px; }
.wk-lg .wk-cx-btn{ margin-top:0; }
.wk .wk-lg-principal{ margin-top:6px; background:var(--hivis); color:var(--bleu-nuit); font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  box-shadow:0 6px 16px rgba(254,205,77,.38); }
.wk .wk-lg-principal:hover{ background:#FFD96E; box-shadow:0 8px 22px rgba(254,205,77,.5); }
.wk .wk-lg-principal[aria-busy="true"]::after{ border-color:rgba(23,36,90,.25); border-top-color:var(--bleu-nuit); }
.wk-lg-oubli{ margin:14px 0 0; text-align:center; font-size:14.5px; }
.wk-lg-bas{ margin:16px 0 0; text-align:center; font-size:14px; color:var(--gris); }
.wk-lg .wk-cx-sep{ margin:16px 0 14px; }
.wk-lg .wk-cx-groupe legend{ font-size:12px; }

/* bande de pied de page */
.wk-lg-pied{ position:relative; z-index:2; display:flex; align-items:center; flex-wrap:wrap; gap:6px 24px; padding:14px 20px;
  background:var(--bleu-nuit); border-top:3px solid var(--hivis); color:#D0D8EE; font-size:13.5px; }
.wk-lg-copy{ margin-right:auto; }
.wk-lg-liens{ display:flex; flex-wrap:wrap; gap:0 22px; }
.wk-lg-liens a{ display:inline-flex; align-items:center; gap:8px; min-height:44px; color:#D0D8EE; text-decoration:none; }
.wk-lg-liens a:hover{ color:#fff; text-decoration:underline; text-underline-offset:3px; }
.wk-lg-pied a:focus-visible{ outline-color:var(--hivis); }
.wk-lg-pied-logo{ display:none; height:26px; width:auto; }

/* ---------- ecran large ---------- */
@media (min-width:1000px){
  .wk-lg{ height:100vh; height:100dvh; min-height:0; overflow:hidden; grid-template-columns:minmax(0,56fr) minmax(0,44fr); grid-template-rows:minmax(0,1fr) var(--pied); }

  .wk-lg-fond{ display:block; position:absolute; left:0; right:0; top:0; bottom:var(--pied); z-index:0; pointer-events:none; }
  .wk-lg-fond::before,.wk-lg-fond::after{ content:""; position:absolute; inset:0; }
  .wk-lg-fond::before{ clip-path:polygon(0 0, 56% 0, calc(56% - 110px) 100%, 0 100%);
    background:radial-gradient(60% 45% at 78% 10%, rgba(96,148,255,.30), transparent 70%), linear-gradient(165deg,#25397F 0%,#17245A 62%,#111B45 100%); }
  .wk-lg-fond.avec-photo::before{ background-size:cover; background-position:center right;
    background-image:linear-gradient(100deg, rgba(20,31,84,.95) 0%, rgba(20,31,84,.80) 50%, rgba(20,31,84,.30) 100%), var(--lg-photo), linear-gradient(165deg,#25397F,#17245A); }
  .wk-lg-fond::after{ clip-path:polygon(56% 0, calc(56% + 5px) 0, calc(56% - 105px) 100%, calc(56% - 110px) 100%); background:var(--hivis); }

  .wk-lg-g{ justify-content:space-between; gap:0; min-height:0; overflow:hidden; padding:36px 140px 26px 56px; background:none; }
  .wk-lg-marque .wk-logo-badge{ height:58px; }
  .wk-lg-centre{ flex:1; min-height:0; display:flex; flex-direction:column; justify-content:center; padding:10px 0; }
  .wk-lg-titre{ max-width:13ch; font-size:clamp(34px, 3.7vw, 54px); line-height:1.04; }
  .wk-lg-titre::after{ content:""; display:block; width:64px; height:3px; margin-top:18px; border-radius:2px; background:var(--hivis); }
  .wk-lg-txt{ display:block; max-width:44ch; margin:18px 0 0; font-size:16px; line-height:1.55; color:#E1E7F6; }
  .wk-lg-atouts{ display:grid; gap:14px; margin:24px 0 0; padding:0; list-style:none; }
  .wk-lg-atouts li{ display:flex; align-items:center; gap:14px; }
  .wk-lg-atouts b{ display:block; font-size:16px; font-weight:600; color:#fff; }
  .wk-lg-atouts li span:not(.wk-lg-ic){ display:block; margin-top:1px; font-size:14px; color:#B8C3E2; }
  .wk-lg-ic{ display:flex; align-items:center; justify-content:center; flex:0 0 46px; height:46px; border:1.5px solid var(--hivis); border-radius:50%; color:var(--hivis); }
  .wk-lg-chiffres{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; max-width:600px; margin:0; padding:0; list-style:none; }
  .wk-lg-chiffres li{ padding:14px 12px 15px; text-align:center; border:1px solid rgba(255,255,255,.28); border-radius:12px; background:rgba(255,255,255,.06); }
  .wk-lg-ic-p{ display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; margin-bottom:6px; border-radius:50%; background:#2F44A0; color:#fff; }
  .wk-lg-chiffres b{ display:block; font-family:'Barlow Semi Condensed',sans-serif; font-size:32px; font-weight:700; line-height:1.1; color:var(--hivis); }
  .wk-lg-chiffres li > span:last-child{ display:block; margin-top:4px; font-size:13px; line-height:1.3; color:#D0D8EE; }

  .wk-lg-d{ align-items:center; min-height:0; overflow-y:auto; padding:24px 48px; }
  .wk-lg-carte{ margin:auto; padding:34px 40px 26px; }
  .wk-lg-tete h1{ font-size:34px; }

  .wk-lg-pied{ flex-wrap:nowrap; height:var(--pied); padding:0 40px; gap:26px; }
  .wk-lg-pied-logo{ display:block; }

  /* creation de compte : formulaire sur deux colonnes */
  .wk-lg.creation .wk-lg-carte{ max-width:800px; padding:22px 32px 18px; }
  .wk-lg.creation .wk-lg-cadenas{ display:none; }
  .wk-lg.creation .wk-lg-tete{ margin-bottom:12px; }
  .wk-lg.creation .wk-lg-tete h1{ font-size:26px; }
  .wk-lg.creation .wk-lg-tete p{ margin-top:2px; font-size:13.5px; }
  .wk-lg.creation .wk-lg-form{ display:grid; grid-template-columns:1fr 1fr; column-gap:28px; align-items:start; }
  .wk-lg.creation .wk-cx-groupe{ margin:0; }
  .wk-lg.creation .wk-cx-groupe:nth-of-type(1){ grid-column:1; grid-row:1; }
  .wk-lg.creation .wk-cx-groupe:nth-of-type(2){ grid-column:1; grid-row:2; }
  .wk-lg.creation .wk-cx-groupe:nth-of-type(3){ grid-column:2; grid-row:1; }
  .wk-lg.creation .wk-lg-form > .wk-cx-btn{ grid-column:2; grid-row:2; align-self:end; margin:0 0 14px; }
  .wk-lg.creation .wk-cx-groupe legend{ padding-bottom:7px; margin-bottom:10px; }
  .wk-lg.creation .wk-champ{ margin-bottom:11px; }
  .wk-lg.creation .wk-in{ min-height:40px; padding-top:8px; padding-bottom:8px; font-size:14.5px; }
  .wk-lg.creation .wk-lab{ font-size:13px; }
  .wk-lg.creation .wk-aide{ margin-top:3px; font-size:11.5px; line-height:1.35; }
  .wk-lg.creation .wk-lg-bas{ margin-top:8px; }
}
/* ecrans peu hauts : le panneau de marque se resserre pour ne jamais faire defiler la page */
@media (min-width:1000px) and (max-height:860px){
  .wk-lg-g{ padding-top:26px; padding-bottom:20px; }
  .wk-lg-marque .wk-logo-badge{ height:50px; }
  .wk-lg-titre{ font-size:clamp(30px, 3.3vw, 44px); }
  .wk-lg-titre::after{ margin-top:12px; }
  .wk-lg-txt{ margin-top:12px; font-size:15px; }
  .wk-lg-atouts{ gap:10px; margin-top:16px; }
  .wk-lg-ic{ flex-basis:40px; height:40px; }
  .wk-lg-chiffres li{ padding:10px 10px 11px; }
  .wk-lg-ic-p{ display:none; }
  .wk-lg-chiffres b{ font-size:28px; }
  .wk-lg-tete{ margin-bottom:14px; }
  .wk-lg-cadenas{ width:54px; height:54px; margin-bottom:8px; }
  .wk-lg-carte{ padding:26px 36px 20px; }
  .wk-lg .wk-champ{ margin-bottom:13px; }
}
@media (min-width:1000px) and (max-height:720px){
  .wk-lg-txt,.wk-lg-atouts li span:not(.wk-lg-ic){ display:none; }
  .wk-lg-chiffres li > span:last-child{ display:none; }
  .wk-lg-carte{ padding:20px 32px 16px; }
  .wk-lg-tete h1{ font-size:28px; }
  .wk-lg .wk-in{ min-height:44px; }
}
@media (max-width:999px){
  .wk-lg-d{ padding-top:16px; }
  .wk-lg-carte{ margin-top:-8px; }
}
@media (max-width:520px){
  .wk-lg-carte{ padding:22px 16px 18px; border-radius:16px; }
  .wk-lg-tete h1{ font-size:27px; }
}

/* Les ecrans d'acces occupent toute la fenetre : pas de marge par defaut du navigateur. */
body.wk:has(.wk-lg){ margin:0; }
.wk-lg-pied{ grid-column:1 / -1; }
@media (min-width:1000px){ .wk-lg-titre{ max-width:17ch; } }

/* Creation de compte : le formulaire a deux colonnes a besoin de plus de place, le panneau de marque se reduit. */
@media (min-width:1000px){
  .wk-lg.creation{ grid-template-columns:minmax(0,40fr) minmax(0,60fr); }
  .wk-lg.creation .wk-lg-fond::before{ clip-path:polygon(0 0, 40% 0, calc(40% - 110px) 100%, 0 100%); }
  .wk-lg.creation .wk-lg-fond::after{ clip-path:polygon(40% 0, calc(40% + 5px) 0, calc(40% - 105px) 100%, calc(40% - 110px) 100%); }
  .wk-lg.creation .wk-lg-g{ padding:32px 96px 22px 44px; }
  .wk-lg.creation .wk-lg-txt,.wk-lg.creation .wk-lg-chiffres{ display:none; }
  .wk-lg.creation .wk-lg-titre{ font-size:clamp(28px, 2.8vw, 40px); }
  .wk-lg.creation .wk-lg-d{ padding:18px 32px; }
}

/* Photo du batiment : vraie balise <img> (une URL relative dans une variable CSS
   se resout par rapport a la feuille de style et n'est jamais trouvee). */
.wk-lg{ --coupe:56%; }
.wk-lg.creation{ --coupe:40%; }
@media (min-width:1000px){
  .wk-lg-fond.avec-photo::before{ background-image:linear-gradient(165deg,#25397F 0%,#17245A 62%,#111B45 100%); }
  .wk-lg-photo{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:right center;
    clip-path:polygon(0 0, var(--coupe) 0, calc(var(--coupe) - 110px) 100%, 0 100%); }
  /* le texte reste lisible sur la partie gauche, deja assombrie dans la photo */
  .wk-lg-fond.avec-photo .wk-lg-photo + *{ display:none; }
}
/* Icones des cartes de chiffres : gardees sur les ecrans peu hauts, reduites */
@media (min-width:1000px) and (max-height:860px){
  .wk-lg-ic-p{ display:inline-flex; width:30px; height:30px; margin-bottom:4px; }
  .wk-lg-ic-p svg{ width:16px; height:16px; }
}
@media (min-width:1000px) and (max-height:720px){ .wk-lg-ic-p{ display:none; } }
.wk-lg-copy{ display:inline-flex; align-items:center; gap:10px; }
.wk-lg-copy svg{ flex:0 0 auto; color:#D0D8EE; }
@media (min-width:1000px){
  /* la photo occupe le panneau de marque seul (et non toute la page) ; le bord droit suit la diagonale */
  .wk-lg-photo{ inset:0 auto 0 0; width:var(--coupe); height:100%; object-fit:cover; object-position:right center;
    clip-path:polygon(0 0, 100% 0, calc(100% - 110px) 100%, 0 100%); }
}
@media (min-width:1000px){
  /* voile sombre degrade sous le texte, seulement quand la photo est presente */
  .wk-lg.a-photo .wk-lg-g::before{ content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
    background:linear-gradient(90deg, rgba(14,22,64,.82) 0%, rgba(14,22,64,.66) 40%, rgba(14,22,64,.22) 78%, rgba(14,22,64,0) 100%);
    clip-path:polygon(0 0, 100% 0, calc(100% - 110px) 100%, 0 100%); }
  .wk-lg.a-photo .wk-lg-titre,.wk-lg.a-photo .wk-lg-txt,.wk-lg.a-photo .wk-lg-atouts{ text-shadow:0 1px 10px rgba(6,12,40,.45); }
  .wk-lg.a-photo .wk-lg-chiffres li{ background:rgba(14,22,64,.6); border-color:rgba(255,255,255,.32); backdrop-filter:blur(3px); }
  .wk-lg.a-photo.creation .wk-lg-g::before{ clip-path:polygon(0 0, 100% 0, calc(100% - 110px) 100%, 0 100%); }
}

/* Ecrans d'acces : langue affichee, case "se souvenir", lien d'aide */
.wk-lg-langue{ display:none; }
.wk-lg-souvenir{ display:flex; align-items:center; gap:10px; min-height:44px; margin:0 0 4px; font-size:14.5px; color:var(--bleu-nuit); cursor:pointer; }
@media (min-width:1000px){
  .wk-lg-langue{ position:absolute; z-index:2; top:18px; right:36px; display:inline-flex; align-items:center; gap:8px; font-size:14.5px; font-weight:500; color:var(--bleu-nuit); }
}

/* Ecrans peu hauts : on garde TOUS les textes (paragraphe, sous-textes des 3 atouts,
   libelles des cartes) en les resserrant ; ils ne sont masques que sous 600 px de haut. */
@media (min-width:1000px) and (max-height:720px){
  .wk-lg-txt{ display:block; margin-top:8px; font-size:13.5px; line-height:1.45; }
  .wk-lg-atouts li span:not(.wk-lg-ic){ display:block; font-size:12.5px; }
  .wk-lg-chiffres li > span:last-child{ display:block; font-size:12px; }
  .wk-lg-g{ padding-top:18px; padding-bottom:14px; }
  .wk-lg-marque .wk-logo-badge{ height:40px; }
  .wk-lg-centre{ padding:4px 0; }
  .wk-lg-titre{ font-size:clamp(26px, 2.8vw, 34px); }
  .wk-lg-titre::after{ margin-top:8px; }
  .wk-lg-atouts{ gap:6px; margin-top:10px; }
  .wk-lg-atouts b{ font-size:14.5px; }
  .wk-lg-ic{ flex-basis:34px; height:34px; }
  .wk-lg-ic svg{ width:18px; height:18px; }
  .wk-lg-chiffres{ gap:10px; }
  .wk-lg-chiffres li{ padding:7px 8px 8px; }
  .wk-lg-chiffres b{ font-size:23px; }
}
@media (min-width:1000px) and (max-height:600px){
  .wk-lg-txt,.wk-lg-atouts li span:not(.wk-lg-ic),.wk-lg-chiffres li > span:last-child{ display:none; }
}
