/* ============================================================
   WS-PV · feuille de style de l'application · lot 1 · 07.11.2026
   (base : maquettes du lot 0)
   Charte Wellset « Le pont » : graphite, rouge signal (accent unique),
   gris technique, filets 0.5 px, aucune ombre, transitions 120 ms.
   Aucun style en ligne : tout passe par des classes (CSP stricte).
   ============================================================ */

@font-face { font-family: Inter; font-weight: 400; font-style: normal; font-display: swap; src: url('polices/inter-400.woff2') format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-style: normal; font-display: swap; src: url('polices/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('polices/jetbrains-mono-400.woff2') format('woff2'); }

/* ---------- Jetons ---------- */

:root {
  /* Charte Wellset (kit/tokens.css) */
  --ws-graphite: #23262B;
  --ws-red: #E23A2E;
  --ws-grey-tech: #E6E4DF;
  --ws-line: #E4E2DC;
  --ws-text: #23262B;
  --ws-surface: #FFFFFF;
  --ws-surface-2: #F7F6F3;
  --ws-surface-3: #F0EEEA;
  --ws-on-text: #FFFFFF;
  --ws-text-strong: #000000;
  --ws-control-line: #C9C6BF;
  --ws-font-ui: Inter, system-ui, sans-serif;
  --ws-font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ws-radius-control: 7px;
  --ws-radius-card: 12px;
  --ws-hairline: .5px;

  /* WS-PV : texte secondaire assombri pour tenir 4.5:1 sur les trois
     surfaces (#6E7379 de la charte descend à 4.1:1 sur surface-3). */
  --wspv-text-2: #63686E;
  --wspv-text-3: #8A8F98;            /* décoratif uniquement, jamais pour un texte utile */
  --wspv-red-text: #C8291E;          /* rouge des textes « en retard » : 4.8:1 au moins */
  --wspv-focus: #23262B;
  --wspv-selection: rgba(226, 58, 46, .08);
  --wspv-nouveau: #FBF3E4;           /* fond du texte ajouté dans la séance */

  /* Statuts (pastille + libellé, jamais la couleur seule) */
  --st-ouvert: #2F6DB5;
  --st-en-cours: #B26A00;
  --st-en-cours-texte: #9C5C00;     /* texte orange : 5.3:1 sur blanc, 4.9:1 sur la surface 2 */
  --st-en-attente: #6E7379;
  --st-a-valider: #7A4FB0;
  --st-clos: #1E7F4F;
  --st-annule: #80858E;

  /* Métiers (pastille carrée + libellé) */
  --m01: #B4561E; --m02: #2E86A8; --m03: #2F5FB3; --m04: #16857F; --m05: #2C7A4B;
  --m06: #9A7B00; --m07: #6D49A8; --m08: #A3335F; --m09: #5A6068; --m10: #7A6650;
  --m11: #5B7F2E; --m12: #23262B; --m13: #80858E; --m14: #3F6E8C;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ws-red: #FF5A4D; --ws-line: #3A3F45; --ws-text: #ECEEF0;
    --ws-surface: #17191D; --ws-surface-2: #23262B; --ws-surface-3: #2B2F35;
    --ws-on-text: #17191D; --ws-text-strong: #FFFFFF; --ws-control-line: #5A6068;
    --wspv-text-2: #9AA0A6; --wspv-text-3: #7C828A; --wspv-red-text: #FF6A5E;
    --wspv-focus: #ECEEF0; --wspv-selection: rgba(255, 90, 77, .12); --wspv-nouveau: #2E2A22;
    --st-ouvert: #6FA8E8; --st-en-cours: #E0A040; --st-en-cours-texte: #E0A040; --st-en-attente: #9AA0A6;
    --st-a-valider: #B392E6; --st-clos: #4FBF85; --st-annule: #7C828A;
    --m01: #E98A52; --m02: #5DB6D6; --m03: #7EA2E8; --m04: #4CC2BA; --m05: #5CBF85;
    --m06: #D6B43A; --m07: #AE8FE3; --m08: #E27AA3; --m09: #A3A9B0; --m10: #BCA78C;
    --m11: #9CC566; --m12: #D8DBDF; --m13: #80868E; --m14: #86B3D1;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ws-red: #FF5A4D; --ws-line: #3A3F45; --ws-text: #ECEEF0;
  --ws-surface: #17191D; --ws-surface-2: #23262B; --ws-surface-3: #2B2F35;
  --ws-on-text: #17191D; --ws-text-strong: #FFFFFF; --ws-control-line: #5A6068;
  --wspv-text-2: #9AA0A6; --wspv-text-3: #7C828A; --wspv-red-text: #FF6A5E;
  --wspv-focus: #ECEEF0; --wspv-selection: rgba(255, 90, 77, .12); --wspv-nouveau: #2E2A22;
  --st-ouvert: #6FA8E8; --st-en-cours: #E0A040; --st-en-cours-texte: #E0A040; --st-en-attente: #9AA0A6;
  --st-a-valider: #B392E6; --st-clos: #4FBF85; --st-annule: #7C828A;
  --m01: #E98A52; --m02: #5DB6D6; --m03: #7EA2E8; --m04: #4CC2BA; --m05: #5CBF85;
  --m06: #D6B43A; --m07: #AE8FE3; --m08: #E27AA3; --m09: #A3A9B0; --m10: #BCA78C;
  --m11: #9CC566; --m12: #D8DBDF; --m13: #80868E; --m14: #86B3D1;
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ws-font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ws-text);
  background: var(--ws-surface);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; transition: color 120ms; }
a:hover { color: var(--wspv-red-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--wspv-focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--ws-red); color: #fff; }

.espace-haut { margin-top: 14px; }
.titre-section { margin-top: 36px; }
.recherche.recherche--large { width: 100%; max-width: 680px; height: 38px; margin-bottom: 14px; }
.mono { font-family: var(--ws-font-mono); font-size: 12.5px; letter-spacing: 0; font-feature-settings: 'zero' 1; }
.muted { color: var(--wspv-text-2); }
.petit { font-size: 12.5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--ws-text); color: var(--ws-on-text); padding: 8px 12px; border-radius: var(--ws-radius-control); z-index: 50; }
.skip-link:focus { left: 16px; }


/* ---------- En-tête ---------- */

.entete {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  height: 56px; padding: 0 24px;
  background: var(--ws-surface);
  border-bottom: var(--ws-hairline) solid var(--ws-line);
}
.entete__marque { display: flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--ws-text); }
.entete__marque:hover { color: var(--ws-text); }
.symbole { width: 26px; height: 26px; }
/* 1.41.0 (D-192) : symbole Wellacta, une page avec deux lignes et une coche rouge */
.symbole rect, .symbole path { fill: none; stroke: currentColor; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.symbole .symbole__coche { stroke: var(--ws-red); }
.entete__produit { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.entete__nav { display: flex; gap: 22px; font-size: 13.5px; white-space: nowrap; }
.entete__nav a { color: var(--wspv-text-2); padding: 17px 0 15px; border-bottom: 2px solid transparent; }
.entete__nav a:hover { color: var(--ws-text); }
.entete__nav a[aria-current="page"] { color: var(--ws-text); font-weight: 500; border-bottom-color: var(--ws-red); }
.entete__droite { display: flex; align-items: center; gap: 10px; margin-left: auto; min-width: 0; }
.recherche {
  display: flex; align-items: center; gap: 8px;
  width: 300px; min-width: 0; height: 34px; padding: 0 10px;
  border: var(--ws-hairline) solid var(--ws-control-line);
  border-radius: var(--ws-radius-control);
  background: var(--ws-surface);
  color: var(--wspv-text-2);
}
.recherche:focus-within { border-color: var(--ws-text); }
.recherche svg { width: 15px; height: 15px; flex-shrink: 0; }
.recherche input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 13px; color: var(--ws-text); }
.recherche input::placeholder { color: var(--wspv-text-2); }
.recherche kbd { font-family: var(--ws-font-mono); font-size: 11px; border: var(--ws-hairline) solid var(--ws-control-line); border-radius: 4px; padding: 0 5px; color: var(--wspv-text-2); }
.selecteur-bureau {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control);
  background: transparent; font-size: 13px; white-space: nowrap;
}
.selecteur-bureau svg, .bouton-icone svg { width: 14px; height: 14px; }
.bouton-icone {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--ws-radius-control);
  border: var(--ws-hairline) solid var(--ws-control-line); background: transparent; color: var(--wspv-text-2);
}
.bouton-icone:hover { color: var(--ws-text); border-color: var(--ws-text); }
.bouton-icone svg { width: 16px; height: 16px; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--ws-surface-3); border: var(--ws-hairline) solid var(--ws-line);
  font-size: 12px; font-weight: 500;
}
.entete__menu { display: none; }

/* ---------- Coquille et pages ---------- */

.coquille { display: grid; grid-template-columns: 1fr; min-height: calc(100vh - 56px); }
.coquille--arbre {
  grid-template-columns: 284px minmax(0, 1fr);
  background: linear-gradient(to right, var(--ws-surface-2) 283.5px, var(--ws-line) 283.5px, var(--ws-line) 284px, var(--ws-surface) 284px);
}
.contenu { padding: 24px 32px 64px; max-width: 1440px; width: 100%; min-width: 0; }
.coquille--arbre .contenu { max-width: none; }

.fil { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--wspv-text-2); margin-bottom: 12px; }
.fil a { color: var(--wspv-text-2); }
.fil a:hover { color: var(--ws-text); }
.fil span[aria-hidden] { color: var(--wspv-text-3); }

.tete { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.tete__titre { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tete__titre h1 { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tete__code { font-family: var(--ws-font-mono); font-size: 14px; font-weight: 400; color: var(--wspv-red-text); letter-spacing: 0; }
.tete__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--wspv-text-2); }
.tete__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.section-tete h2 { font-size: 15px; }
.section-tete a, .section-tete .muted { font-size: 12.5px; color: var(--wspv-text-2); }
.section-tete a:hover { color: var(--ws-text); }

.grille-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.pile { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

.carte {
  border: var(--ws-hairline) solid var(--ws-line);
  border-radius: var(--ws-radius-card);
  background: var(--ws-surface);
  padding: 18px 20px;
}
.carte--plate { padding: 0; overflow: hidden; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 14px;
  border: var(--ws-hairline) solid transparent; border-radius: var(--ws-radius-control);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: background-color 120ms, color 120ms, border-color 120ms;
}
.btn svg { width: 15px; height: 15px; }
.btn--primaire { background: var(--ws-text); color: var(--ws-on-text); }
.btn--primaire:hover { background: var(--ws-text-strong); color: var(--ws-on-text); }
.btn--secondaire { background: transparent; color: var(--ws-text); border-color: var(--ws-control-line); }
.btn--secondaire:hover { border-color: var(--ws-text); color: var(--ws-text); }
.btn--discret { background: transparent; color: var(--wspv-text-2); padding: 0 8px; }
.btn--discret:hover { color: var(--ws-text); }
.btn--danger { background: transparent; color: var(--ws-text); border-color: var(--ws-control-line); }
.btn--danger:hover { border-color: var(--wspv-red-text); color: var(--wspv-red-text); }
.btn--petit { height: 28px; padding: 0 10px; font-size: 12.5px; }
.raccourci { font-family: var(--ws-font-mono); font-size: 11px; font-weight: 400; opacity: .7; }

/* ---------- Compteurs ---------- */

.compteurs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.compteur {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card);
  color: var(--ws-text);
  transition: border-color 120ms;
}
.compteur:hover { color: var(--ws-text); border-color: var(--ws-control-line); }
.compteur__valeur { font-family: var(--ws-font-mono); font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.compteur__libelle { font-size: 13px; color: var(--wspv-text-2); }
.compteur--alerte { border-top: 2px solid var(--ws-red); }
.compteur--alerte .compteur__valeur { color: var(--wspv-red-text); }

/* ---------- Pastilles : statut, métier, urgence, nature ---------- */

.statut { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.statut::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--st, var(--wspv-text-2)); flex-shrink: 0; }
.statut--ouvert { --st: var(--st-ouvert); }
.statut--en-cours { --st: var(--st-en-cours); }
.statut--en-attente { --st: var(--st-en-attente); }
.statut--a-valider { --st: var(--st-a-valider); }
.statut--clos { --st: var(--st-clos); }
.statut--annule { --st: var(--st-annule); }
.statut--brouillon::before { background: transparent; border: 1.5px solid var(--wspv-text-2); }
.statut--diffuse { --st: var(--st-ouvert); }
.statut--approuve { --st: var(--st-clos); }

.metier { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; color: var(--ws-text); }
.metier::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--mc, var(--wspv-text-2)); flex-shrink: 0; }
.m01 { --mc: var(--m01); } .m02 { --mc: var(--m02); } .m03 { --mc: var(--m03); } .m04 { --mc: var(--m04); }
.m05 { --mc: var(--m05); } .m06 { --mc: var(--m06); } .m07 { --mc: var(--m07); } .m08 { --mc: var(--m08); }
.m09 { --mc: var(--m09); } .m10 { --mc: var(--m10); } .m11 { --mc: var(--m11); } .m12 { --mc: var(--m12); }
.m13 { --mc: var(--m13); } .m14 { --mc: var(--m14); }

/* Urgence : nombre de barres pleines + libellé ; rouge réservé à « bloquante » */
.urgence { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.urgence__barres { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.urgence__barres i { width: 3px; background: var(--ws-line); border-radius: 1px; }
.urgence__barres i:nth-child(1) { height: 5px; }
.urgence__barres i:nth-child(2) { height: 8px; }
.urgence__barres i:nth-child(3) { height: 11px; }
.urgence--basse .urgence__barres i:nth-child(-n+1),
.urgence--normale .urgence__barres i:nth-child(-n+2),
.urgence--haute .urgence__barres i:nth-child(-n+3) { background: var(--ws-text); }
.urgence--basse .urgence__barres i:nth-child(-n+1) { background: var(--wspv-text-2); }
.urgence--bloquante { color: var(--wspv-red-text); font-weight: 500; }
.urgence--bloquante .urgence__barres i { background: var(--ws-red); }

.nature {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 4px;
  border: var(--ws-hairline) solid var(--ws-control-line);
  font-family: var(--ws-font-mono); font-size: 11px; color: var(--wspv-text-2);
}
.nature--a { color: var(--ws-text); border-color: var(--ws-text); }

.delai { font-family: var(--ws-font-mono); font-size: 12.5px; white-space: nowrap; }
.delai--retard { color: var(--wspv-red-text); }
.delai--retard::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; background: var(--ws-red); border-radius: 1px; transform: rotate(45deg); vertical-align: 1px; }
.retard-jours { font-family: var(--ws-font-mono); font-size: 11.5px; color: var(--wspv-red-text); white-space: nowrap; }
.delai-groupe { white-space: nowrap; }

.etiquette {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: 10px;
  font-size: 11.5px; color: var(--wspv-text-2); white-space: nowrap;
}
.marque-nouveau { font-family: var(--ws-font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--st-en-cours-texte); border: var(--ws-hairline) solid currentColor; border-radius: 3px; padding: 0 4px; }

/* ---------- Tableaux ---------- */

.tableau { width: 100%; border-collapse: collapse; font-size: 13px; }
.tableau th {
  text-align: left; font-weight: 500; font-size: 12px; color: var(--wspv-text-2);
  padding: 9px 12px; border-bottom: var(--ws-hairline) solid var(--ws-line); white-space: nowrap;
  background: var(--ws-surface-2);
}
.tableau td { padding: 10px 12px; border-bottom: var(--ws-hairline) solid var(--ws-line); vertical-align: top; }
.tableau tr:last-child td { border-bottom: 0; }
.tableau tbody tr:hover td { background: var(--ws-surface-2); }
.tableau td.mono { white-space: nowrap; }
.tableau th.num { font-family: inherit; font-size: 12px; }
.tableau .num { text-align: right; font-family: var(--ws-font-mono); font-size: 12.5px; }
.tableau .col-no { width: 64px; }
.tableau__titre { font-weight: 500; display: block; }
.tableau__sous { display: block; color: var(--wspv-text-2); font-size: 12.5px; margin-top: 2px; }
.tableau--ligne-retard td:first-child { box-shadow: inset 2px 0 0 var(--ws-red); }
.lien-ligne { color: var(--ws-text); }
.lien-ligne:hover { color: var(--wspv-red-text); }

/* ---------- Listes compactes (colonne de droite) ---------- */

.liste { display: flex; flex-direction: column; }
.liste__item { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.liste__item:last-child { border-bottom: 0; }
.liste__date { font-family: var(--ws-font-mono); font-size: 12px; color: var(--wspv-text-2); line-height: 1.5; }
.liste__date strong { display: block; color: var(--ws-text); font-weight: 400; font-size: 13px; }
.liste__titre { font-size: 13px; font-weight: 500; }
.liste__sous { font-size: 12.5px; color: var(--wspv-text-2); }

/* ---------- Onglets ---------- */

.onglets { display: flex; gap: 22px; border-bottom: var(--ws-hairline) solid var(--ws-line); margin-bottom: 22px; overflow-x: auto; }
.onglets a { padding: 0 0 10px; font-size: 13.5px; color: var(--wspv-text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.onglets a:hover { color: var(--ws-text); }
.onglets a[aria-current="page"] { color: var(--ws-text); font-weight: 500; border-bottom-color: var(--ws-text); }
/* Onglets d'un projet (1.2.0, D-098) : « Plus » hors de la zone qui défile, pour que son menu ne soit pas rogné */
.onglets-barre { display: flex; align-items: flex-end; gap: 22px; border-bottom: var(--ws-hairline) solid var(--ws-line); margin-bottom: 22px; }
.onglets-barre .onglets { border-bottom: 0; margin-bottom: 0; min-width: 0; }
.onglets__plus { flex: none; }
.onglets__plus > summary { display: inline-flex; align-items: center; gap: 4px; padding: 0 0 10px; font-size: 13.5px; color: var(--wspv-text-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.onglets__plus > summary:hover, .onglets__plus[open] > summary { color: var(--ws-text); }
.onglets__plus > summary svg { width: 12px; height: 12px; }
.onglets__plus .deroulant__menu { top: 30px; right: 0; min-width: 180px; }
.onglets .compte-onglet { font-family: var(--ws-font-mono); font-size: 11.5px; color: var(--wspv-text-2); margin-left: 4px; }

/* ---------- Arborescence ---------- */

.arbre {
  padding: 16px 10px 40px 14px;
  font-size: 13px;
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto;
}
.arbre__tete { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 10px 6px; }
.arbre__tete h2 { font-size: 12px; font-weight: 500; color: var(--wspv-text-2); letter-spacing: .02em; }
.arbre details > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 5px; min-height: 28px;
}
.arbre details > summary::-webkit-details-marker { display: none; }
.arbre details > summary::before {
  content: ''; width: 6px; height: 6px; flex-shrink: 0;
  border-right: 1.5px solid var(--wspv-text-2); border-bottom: 1.5px solid var(--wspv-text-2);
  transform: rotate(-45deg); margin: 0 4px 0 2px; transition: transform 120ms;
}
.arbre details[open] > summary::before { transform: rotate(45deg); }
.arbre summary:hover, .arbre a:hover { background: var(--ws-surface-3); color: var(--ws-text); }
.arbre ul { padding-left: 14px; }
.arbre__feuille { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 20px; border-radius: 5px; min-height: 26px; color: var(--ws-text); }
.arbre__feuille .mono { color: var(--wspv-text-2); font-size: 11.5px; }
.arbre__feuille--actif { background: var(--ws-surface); box-shadow: inset 2px 0 0 var(--ws-red); }
.arbre__libelle { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arbre__compte { font-family: var(--ws-font-mono); font-size: 11px; color: var(--wspv-text-2); }
.arbre .statut { font-size: 0; gap: 0; }
.arbre .statut::before { width: 7px; height: 7px; }
.arbre__type { font-weight: 500; }
.arbre__ouvrir { display: none; }

/* ---------- PV : en-tête de séance ---------- */

.seance { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; }
.champ { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.champ--large { grid-column: span 2; }
.champ--plein { grid-column: 1 / -1; }
.champ label, .champ__label { font-size: 12px; color: var(--wspv-text-2); font-weight: 500; }
.saisie, .champ select, .champ textarea {
  width: 100%; min-height: 34px; padding: 6px 10px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control);
  background: var(--ws-surface); font-size: 13.5px; color: var(--ws-text);
}
.champ textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.saisie:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--wspv-focus); outline-offset: 0; border-color: transparent; }
.aide { font-size: 12px; color: var(--wspv-text-2); }
.case { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; min-height: 24px; } /* cible de 24 px (WCAG 2.5.8) */
.case input { width: 16px; height: 16px; accent-color: var(--ws-text); margin: 0; }

.champ .segments { align-self: flex-start; max-width: 100%; }
.segments { display: inline-flex; border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control); overflow: hidden; }
.segments label { position: relative; }
.segments input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segments span { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font-size: 12.5px; color: var(--wspv-text-2); border-right: var(--ws-hairline) solid var(--ws-control-line); }
.segments label:last-child span { border-right: 0; }
.segments input:checked + span { background: var(--ws-text); color: var(--ws-on-text); }
.segments input:focus-visible + span { outline: 2px solid var(--wspv-focus); outline-offset: -2px; }

.bloc { border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card); margin-bottom: 18px; }
.bloc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.bloc > summary::-webkit-details-marker { display: none; }
.bloc > summary h2 { font-size: 14px; }
.bloc > summary .muted { font-size: 12.5px; }
.bloc__corps { padding: 4px 18px 18px; border-top: var(--ws-hairline) solid var(--ws-line); padding-top: 16px; }

/* ---------- PV : barre d'outils et état d'enregistrement ---------- */

.barre-outils {
  position: sticky; top: 56px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 0; margin-bottom: 8px;
  background: var(--ws-surface);
  border-bottom: var(--ws-hairline) solid var(--ws-line);
}
.barre-outils__groupe { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.enregistre { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--wspv-text-2); }
.enregistre::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--st-clos); }

/* ---------- PV : chapitres et points ---------- */

.chapitre { margin-top: 22px; }
.chapitre__tete { display: flex; align-items: center; gap: 10px; padding: 6px 0 8px; border-bottom: 1px solid var(--ws-text); }
.chapitre__tete h2 { font-size: 14px; display: flex; gap: 10px; align-items: baseline; }
.chapitre__no { font-family: var(--ws-font-mono); font-weight: 400; color: var(--wspv-text-2); }
.chapitre__compte { margin-left: auto; font-size: 12px; color: var(--wspv-text-2); }

.point {
  display: grid;
  grid-template-columns: 22px 52px minmax(0, 1fr) 170px 106px 92px 112px 30px;
  gap: 0 12px; align-items: start;
  padding: 12px 0;
  border-bottom: var(--ws-hairline) solid var(--ws-line);
}
.point:hover { background: linear-gradient(var(--ws-surface-2), var(--ws-surface-2)); }
.poignee {
  width: 22px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: var(--wspv-text-3); cursor: grab; border-radius: 4px;
}
.poignee:hover { color: var(--ws-text); background: var(--ws-surface-3); }
.poignee svg { width: 12px; height: 14px; }
.point__no { font-family: var(--ws-font-mono); font-size: 13px; padding-top: 3px; }
.point__corps { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.point__titre { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; line-height: 1.4; }
.point__titre .nature { margin-top: -1px; flex-shrink: 0; }
.point__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; }
.historique { display: flex; flex-direction: column; gap: 4px; }
.historique p { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; font-size: 13px; color: var(--wspv-text-2); }
.historique time { font-family: var(--ws-font-mono); font-size: 11.5px; padding-top: 1px; }
.historique .historique--nouveau { color: var(--ws-text); background: var(--wspv-nouveau); border-radius: 4px; padding: 2px 6px; margin-left: -6px; }
.point__resp { font-size: 13px; line-height: 1.4; padding-top: 2px; }
.point__resp span { display: block; color: var(--wspv-text-2); font-size: 12px; }
.point__cellule { padding-top: 3px; }
.point__menu { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 5px; color: var(--wspv-text-2); display: inline-flex; align-items: center; justify-content: center; }
.point__menu:hover { background: var(--ws-surface-3); color: var(--ws-text); }
.point__menu svg { width: 15px; height: 15px; }
.point--barre .point__titre > span:last-child, .point--barre .point__no { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--wspv-text-2); }
.point--barre .historique time { color: var(--wspv-text-2); } /* sans opacité : 5,6:1 gardé (axe, 1.2.0) */
.point__trombone { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--wspv-text-2); }
.point__trombone svg { width: 13px; height: 13px; }

/* Point en cours d'édition */
.point--edition {
  display: block;
  margin: 8px -14px;
  padding: 14px;
  border: 1px solid var(--ws-text);
  border-radius: var(--ws-radius-card);
  background: var(--ws-surface);
}
.point--edition:hover { background: var(--ws-surface); }
.edition__tete { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.edition__tete .point__no { padding-top: 0; }
.edition__grille { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 16px; }
.edition__grille .champ--titre { grid-column: 1 / -1; }
.edition__grille .champ--texte { grid-column: 1 / 5; grid-row: span 3; }
.edition__grille .champ--cote { grid-column: span 2; }
.edition__grille .champ--tiers { grid-column: span 2; }
.edition__pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: var(--ws-hairline) solid var(--ws-line); }
.edition__pied .groupe { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pieces { display: flex; gap: 8px; flex-wrap: wrap; }
.piece {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control);
  font-size: 12.5px;
}
.piece svg { width: 14px; height: 14px; color: var(--wspv-text-2); }
.piece .mono { color: var(--wspv-text-2); font-size: 11px; }
.zone-depot {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 12px;
  border: 1px dashed var(--ws-control-line); border-radius: var(--ws-radius-control);
  font-size: 12.5px; color: var(--wspv-text-2);
}
.zone-depot svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Avis (conflit d'édition, information) */
.avis {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; margin-bottom: 12px;
  border: var(--ws-hairline) solid var(--ws-line); border-left: 2px solid var(--st-en-cours);
  border-radius: 0 var(--ws-radius-control) var(--ws-radius-control) 0;
  background: var(--ws-surface-2); font-size: 13px;
}
.avis strong { font-weight: 500; }
.avis .btn { margin-left: auto; }

.nouveau-point {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 6px; border: 0; border-bottom: var(--ws-hairline) solid var(--ws-line);
  background: transparent; color: var(--wspv-text-2); font-size: 13px; text-align: left;
}
.nouveau-point:hover { color: var(--ws-text); background: var(--ws-surface-2); }
.nouveau-point svg { width: 14px; height: 14px; }

/* ---------- Registre : filtres ---------- */

.registre { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.filtres { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 20px; max-height: calc(100vh - 96px); overflow-y: auto; padding-right: 6px; }
.filtres fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.filtres legend { font-size: 12px; font-weight: 500; color: var(--wspv-text-2); margin-bottom: 6px; padding: 0; }
.filtre { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 5px; font-size: 13px; cursor: pointer; }
.filtre:hover { background: var(--ws-surface-2); }
.filtre input { width: 15px; height: 15px; margin: 0; accent-color: var(--ws-text); flex-shrink: 0; }
.filtre__compte { margin-left: auto; font-family: var(--ws-font-mono); font-size: 11.5px; color: var(--wspv-text-2); }
.filtres__vues a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 6px; border-radius: 5px; font-size: 13px; }
.filtres__vues a:hover { background: var(--ws-surface-2); }

.puces { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.puce {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: 14px;
  background: var(--ws-surface-2); font-size: 12.5px;
}
.puce button { width: 20px; height: 20px; border: 0; background: transparent; border-radius: 50%; color: var(--wspv-text-2); display: inline-flex; align-items: center; justify-content: center; }
.puce button:hover { background: var(--ws-surface-3); color: var(--ws-text); }
.puce button svg { width: 10px; height: 10px; }
.puce--retard { border-color: var(--ws-red); }

.resultats-tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.resultats-tete .compte { font-size: 13px; color: var(--wspv-text-2); }
.resultats-tete .compte strong { font-family: var(--ws-font-mono); font-weight: 400; color: var(--ws-text); }
.tri { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--wspv-text-2); }
.tri select { height: 30px; padding: 0 8px; border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control); background: var(--ws-surface); font-size: 12.5px; }
.lien-vue { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--wspv-text-2); }
.lien-vue code { font-family: var(--ws-font-mono); font-size: 11.5px; background: var(--ws-surface-2); border: var(--ws-hairline) solid var(--ws-line); border-radius: 5px; padding: 3px 8px; overflow-wrap: anywhere; max-width: 100%; } /* se replie au lieu de défiler (axe, 390 px) */
.filtres-ouvrir { display: none; }

/* ---------- Sommaire des maquettes ---------- */

.sommaire { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.sommaire a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card); color: var(--ws-text); }
.sommaire a:hover { border-color: var(--ws-text); color: var(--ws-text); }
.sommaire .mono { color: var(--wspv-red-text); }
.nuancier { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 20px; margin-top: 8px; }
.nuancier li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.contenu--etroit { max-width: 1080px; }
.texte-long { max-width: 720px; display: flex; flex-direction: column; gap: 10px; color: var(--wspv-text-2); }
.texte-long strong { color: var(--ws-text); font-weight: 500; }

/* ============================================================
   Feuille A4 : aperçu du PDF d'un PV (mPDF reprendra ces règles)
   ============================================================ */

.page-pdf { background: var(--ws-surface-3); min-height: 100vh; padding: 24px 16px 64px; }
.page-pdf__barre { max-width: 210mm; margin: 0 auto 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.feuille {
  width: 210mm; max-width: 100%; min-height: 297mm; margin: 0 auto 20px;
  padding: 16mm 15mm 14mm; background: #FFFFFF; color: #23262B;
  font-size: 9.5pt; line-height: 1.45;
  display: flex; flex-direction: column;
  border: var(--ws-hairline) solid var(--ws-line);
}
.feuille ::selection { background: #E23A2E; color: #fff; }
.pdf-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 6mm; border-bottom: 0.75pt solid #23262B; }
.pdf-logo { width: 46mm; height: 14mm; border: 0.5pt dashed #8A8F98; display: flex; align-items: center; justify-content: center; font-size: 7.5pt; color: #6E7379; letter-spacing: .08em; }
.pdf-adresse { text-align: right; font-size: 8pt; color: #4A4F55; line-height: 1.5; }
.pdf-adresse strong { color: #23262B; font-weight: 500; font-size: 9pt; }
.pdf-titre { margin: 6mm 0 4mm; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pdf-titre h1 { font-size: 15pt; letter-spacing: -0.01em; }
.pdf-titre .mono { font-size: 9pt; color: #4A4F55; }
.pdf-meta { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
.pdf-meta th { text-align: left; font-weight: 500; width: 30mm; padding: 1.2mm 0; color: #4A4F55; font-size: 8.5pt; vertical-align: top; }
.pdf-meta td { padding: 1.2mm 0; vertical-align: top; }
.pdf-section { font-size: 10pt; font-weight: 500; margin: 5mm 0 2mm; padding-bottom: 1.2mm; border-bottom: 0.5pt solid #23262B; display: flex; gap: 3mm; }
.pdf-section .mono { color: #4A4F55; font-size: 9pt; }
.pdf-table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
.pdf-table th { text-align: left; font-weight: 500; color: #4A4F55; padding: 1.5mm 2mm 1.5mm 0; border-bottom: 0.5pt solid #C9C6BF; font-size: 7.5pt; text-transform: uppercase; letter-spacing: .04em; }
.pdf-table td { padding: 2mm 2mm 2mm 0; border-bottom: 0.5pt solid #E4E2DC; vertical-align: top; }
.pdf-table .mono { font-size: 8pt; }
.pdf-points td:nth-child(1) { width: 12mm; font-family: var(--ws-font-mono); font-size: 8.5pt; }
.pdf-points td:nth-child(2) { width: 6mm; font-family: var(--ws-font-mono); font-size: 8pt; color: #4A4F55; }
.pdf-points td:nth-child(4) { width: 30mm; }
.pdf-points td:nth-child(5) { width: 21mm; font-family: var(--ws-font-mono); font-size: 8pt; white-space: nowrap; }
.pdf-points td:nth-child(6) { width: 20mm; }
.pdf-objet strong { font-weight: 500; display: block; margin-bottom: 1mm; }
.pdf-objet p { display: grid; grid-template-columns: 20mm minmax(0, 1fr); gap: 2mm; color: #4A4F55; margin-top: .6mm; }
.pdf-objet time { font-family: var(--ws-font-mono); font-size: 7.5pt; padding-top: .3mm; white-space: nowrap; }
.pdf-objet .pdf-nouveau { color: #23262B; }
.pdf-objet .pdf-nouveau time::before { content: '▸ '; }
.pdf-retard { color: #C8291E; }
.pdf-barre strong, .pdf-barre td:first-child { text-decoration: line-through; color: #6E7379; }
.pdf-legende { font-size: 7.5pt; color: #4A4F55; margin-top: 2mm; display: flex; flex-wrap: wrap; gap: 1mm 5mm; }
.pdf-mention { margin-top: 6mm; padding: 3mm 4mm; border-left: 1pt solid #23262B; background: #F7F6F3; font-size: 8.5pt; }
.pdf-pied { margin-top: auto; padding-top: 4mm; border-top: 0.5pt solid #C9C6BF; display: flex; justify-content: space-between; gap: 10px; font-size: 7pt; color: #6E7379; }
.pdf-pied span { white-space: nowrap; }
.pdf-pied .mono { font-size: 7pt; }
.pdf-metier { display: inline-block; width: 2.2mm; height: 2.2mm; border-radius: .4mm; margin-right: 1.2mm; vertical-align: .1mm; background: var(--mc); }
.feuille .m02 { --mc: #2E86A8; } .feuille .m03 { --mc: #2F5FB3; } .feuille .m05 { --mc: #2C7A4B; }
.feuille .m06 { --mc: #9A7B00; } .feuille .m07 { --mc: #6D49A8; } .feuille .m08 { --mc: #A3335F; }
.feuille .m01 { --mc: #B4561E; } .feuille .m09 { --mc: #5A6068; } .feuille .m13 { --mc: #80858E; } .feuille .m12 { --mc: #23262B; }

@media print {
  .page-pdf__barre { display: none; }
  .page-pdf { padding: 0; background: #fff; }
  .feuille { border: 0; margin: 0; page-break-after: always; }
  @page { size: A4; margin: 0; }
}

/* ============================================================
   Écrans moyens et petits
   ============================================================ */

@media (max-width: 1240px) {
  .grille-2 { grid-template-columns: minmax(0, 1fr); }
  .point { grid-template-columns: 22px 48px minmax(0, 1fr) 150px 100px 108px 30px; }
  .point__cellule--urgence { display: none; }
  .recherche { width: 220px; }
}

@media (max-width: 1040px) {
  .entete__nav, .entete__droite > .recherche, .selecteur-bureau { display: none; }
  .entete__menu { display: block; position: relative; }
  .entete__menu > summary { list-style: none; }
  .entete__menu > summary::-webkit-details-marker { display: none; }
  .entete__menu nav {
    position: absolute; right: 0; top: 42px; width: 260px;
    display: flex; flex-direction: column; padding: 8px;
    background: var(--ws-surface); border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-card);
  }
  .entete__menu nav a { padding: 10px; border-radius: 5px; font-size: 14px; }
  .entete__menu nav a[aria-current="page"] { font-weight: 500; box-shadow: inset 2px 0 0 var(--ws-red); }
  .entete__menu nav .recherche { display: flex; width: 100%; margin: 4px 0 8px; }
  .coquille--arbre { grid-template-columns: minmax(0, 1fr); background: var(--ws-surface); }
  .arbre { display: none; }
  .arbre__ouvrir { display: inline-flex; }
  .registre { grid-template-columns: minmax(0, 1fr); }
  .filtres { display: none; }
  .filtres-ouvrir { display: inline-flex; }
  .seance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compteurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .entete { padding: 0 16px; gap: 12px; }
  .contenu { padding: 16px 16px 48px; }
  h1 { font-size: 19px; }
  .tete { gap: 14px; }
  .tete__actions { width: 100%; }
  .tete__actions .btn { flex: 1; justify-content: center; }
  .compteur__valeur { font-size: 24px; }

  /* Tableaux en cartes : chaque cellule affiche son intitulé (data-label) */
  .tableau--empile thead { display: none; }
  .tableau--empile, .tableau--empile tbody, .tableau--empile tr, .tableau--empile td { display: block; width: 100%; }
  .tableau--empile tr { padding: 10px 0; border-bottom: var(--ws-hairline) solid var(--ws-line); }
  .tableau--empile tr:last-child { border-bottom: 0; }
  .tableau--empile td { border: 0; padding: 3px 12px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; text-align: left; }
  .segments span { padding: 0 8px; }
  .tableau--empile td::before { content: attr(data-label); font-family: var(--ws-font-ui); font-size: 12px; color: var(--wspv-text-2); letter-spacing: 0; }
  .tableau--empile td > .cellule { min-width: 0; }
  .tableau--empile td.cellule-no { display: block; padding-bottom: 0; font-size: 12px; color: var(--wspv-text-2); }
  .tableau--empile td.cellule-no::before { content: none; }
  .tableau--empile td[data-label=""]::before { content: none; }
  .tableau--empile td[data-label=""] { grid-template-columns: minmax(0, 1fr); }
  .tableau--empile td.cellule-titre { grid-template-columns: minmax(0, 1fr); }
  .tableau--empile td.cellule-titre::before { content: none; }
  .tableau--empile .num { text-align: left; }
  .tableau--ligne-retard td:first-child { box-shadow: none; }
  .tableau--empile tr.tableau--ligne-retard { box-shadow: inset 2px 0 0 var(--ws-red); }

  .point { grid-template-columns: 22px minmax(0, 1fr) 30px; gap: 6px 8px; }
  .point__no { grid-column: 2; grid-row: 1; }
  .point__corps { grid-column: 2; }
  .point .poignee { grid-row: 1; }
  .point__menu { grid-column: 3; grid-row: 1; }
  .point__resp, .point__cellule { grid-column: 2; padding-top: 0; }
  .point__cellule--urgence { display: block; }
  .point__resp span { display: inline; margin-left: 6px; }
  .historique p { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .point--edition { margin: 8px 0; }
  .edition__grille { grid-template-columns: minmax(0, 1fr); }
  .edition__grille .champ--texte, .edition__grille .champ--cote, .edition__grille .champ--tiers { grid-column: 1; grid-row: auto; }
  .seance { grid-template-columns: minmax(0, 1fr); }
  .champ--large { grid-column: auto; }
  .barre-outils { position: static; }
  .barre-outils__groupe { width: 100%; }
  .liste__item { grid-template-columns: 64px minmax(0, 1fr); }
  .page-pdf { padding: 12px 0 40px; }
  .page-pdf__barre { padding: 0 16px; }
  .feuille { width: 100%; min-height: 0; padding: 18px 16px; font-size: 9pt; }
  .pdf-entete { flex-direction: column; }
  .pdf-adresse { text-align: left; }
  .pdf-points td:nth-child(4), .pdf-points th:nth-child(4) { display: none; }
  .pdf-pied { flex-direction: column; gap: 2px; }
  .pdf-pied span { white-space: normal; }
  .pdf-meta th { width: auto; padding-right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}


/* ============================================================
   Application · lot 1 : pages d'accès, formulaires, menus, administration
   ============================================================ */

.contenu--etroit { margin: 0 auto; }
.pied {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 20px 32px; border-top: var(--ws-hairline) solid var(--ws-line);
  font-size: 12px; color: var(--wspv-text-2);
}
.pied a { text-decoration: underline; text-underline-offset: 2px; }
.pied__droite { display: flex; gap: 16px; flex-wrap: wrap; }

/* Accès (connexion, invitation…) */
body.acces { min-height: 100vh; display: flex; flex-direction: column; background: var(--ws-surface-2); }
.acces__boite {
  width: calc(100% - 32px); max-width: 440px; margin: 64px auto 32px; padding: 32px;
  background: var(--ws-surface); border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card);
  display: flex; flex-direction: column; gap: 16px;
}
.acces__boite h1 { font-size: 20px; }
.acces__marque { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: var(--ws-text); }
.acces__marque:hover { color: var(--ws-text); }
.acces__liens { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.acces__liens a { color: var(--wspv-text-2); text-decoration: underline; text-underline-offset: 2px; }
.acces__liens a:hover { color: var(--ws-text); }
.pied--acces { margin-top: auto; border-top: 0; justify-content: center; }

/* Formulaires */
.formulaire { display: flex; flex-direction: column; gap: 14px; }
.formulaire__ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 16px; align-items: start; }
.champ--court { max-width: 220px; }
.btn--plein { width: 100%; justify-content: center; height: 40px; }
.saisie--code { font-family: var(--ws-font-mono); font-size: 18px; letter-spacing: .18em; }
.champ__erreurs { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: var(--wspv-red-text); }
.saisie[aria-invalid="true"], .champ select[aria-invalid="true"], .champ textarea[aria-invalid="true"] { border-color: var(--wspv-red-text); }
.select-petit {
  height: 28px; padding: 0 6px; font-size: 12.5px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control); background: var(--ws-surface);
}
.en-ligne, .actions-ligne { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Messages */
.messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.avis { margin-bottom: 0; }
.avis--succes { border-left-color: var(--st-clos); }
.avis--info { border-left-color: var(--st-ouvert); }
.avis--attention { border-left-color: var(--st-en-cours); }
.avis--erreur { border-left-color: var(--ws-red); }

/* Menus déroulants (details) */
.deroulant { position: relative; }
.deroulant > summary { list-style: none; cursor: pointer; }
.deroulant > summary::-webkit-details-marker { display: none; }
.deroulant__menu {
  position: absolute; right: 0; top: 42px; z-index: 30; min-width: 250px;
  display: flex; flex-direction: column; padding: 6px;
  background: var(--ws-surface); border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-card);
}
.deroulant__menu a, .deroulant__menu button {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px;
  border: 0; border-radius: 5px; background: transparent; font-size: 13.5px; text-align: left; color: var(--ws-text);
}
.deroulant__menu a:hover, .deroulant__menu button:hover { background: var(--ws-surface-2); color: var(--ws-text); }
.deroulant__menu svg { width: 15px; height: 15px; }
.deroulant__menu button[aria-current="true"] { font-weight: 500; box-shadow: inset 2px 0 0 var(--ws-red); }
.deroulant__menu .muted { margin-left: auto; }
.deroulant__titre { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; font-size: 13px; font-weight: 500; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.deroulant__titre .muted { margin-left: 0; font-weight: 400; }
.deroulant__nav { display: none; flex-direction: column; padding-bottom: 4px; margin-bottom: 4px; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.deroulant__nav a[aria-current="page"] { font-weight: 500; box-shadow: inset 2px 0 0 var(--ws-red); }
summary.avatar, summary.selecteur-bureau { cursor: pointer; }
.selecteur-bureau--seul { cursor: default; }

/* Double authentification */
.etapes { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 18px; }
.totp-cle { margin-top: 8px; padding: 12px 14px; font-size: 18px; letter-spacing: .08em; overflow-wrap: break-word; background: var(--ws-surface-2); border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); }
.totp-uri { margin-top: 6px; word-break: break-all; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; list-style: decimal; padding-left: 24px; margin: 16px 0; font-size: 15px; }

/* Cartes */
.carte--message { max-width: 720px; display: flex; flex-direction: column; gap: 8px; }
.carte h2 { font-size: 15px; }
.carte__tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; margin: 0; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.carte__corps { padding: 14px 16px; }

/* Administration */
.ligne--inactive td { color: var(--wspv-text-2); }
.confirmation > summary { list-style: none; cursor: pointer; display: inline-flex; }
.confirmation > summary::-webkit-details-marker { display: none; }
.message-envoi > summary { list-style: none; cursor: pointer; display: inline-flex; }
.message-envoi > summary::-webkit-details-marker { display: none; }
.message-envoi .champ { max-width: 560px; }

/* Envoi d'un PV diffusé depuis sa page : ligne cliquable, raccourcis, bouton qui dit ce qu'il fait */
.envoi-pv { display: flex; flex-direction: column; gap: 10px; }
.envoi-pv__raccourcis { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; margin: 0; font-size: 13px; color: var(--wspv-text-2); }
.lien-bouton { min-height: 24px; padding: 2px 0; border: 0; background: none; font: inherit; color: var(--ws-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.lien-bouton:hover { color: var(--wspv-red-text); }
.js .envoi-pv__table tr[data-envoi-ligne] { cursor: pointer; }
.js .envoi-pv__table tr[data-envoi-ligne]:hover td { background: var(--ws-surface-2); }
.envoi-pv__table tr.est-coche td { background: var(--ws-surface-2); }
.envoi-pv__table tr.est-coche .tableau__titre { font-weight: 600; }
.envoi-pv__etat--aucun, .envoi-pv__etat--en_attente, .envoi-pv__etat--en_cours { color: var(--wspv-text-2); }
.envoi-pv__etat--echec, .envoi-pv__etat--abandonne { color: var(--wspv-red-text); font-weight: 500; }
.envoi-pv__barre { position: sticky; bottom: 0; z-index: 2; margin: 0 -18px; padding: 10px 18px; background: var(--ws-surface); border-top: var(--ws-hairline) solid var(--ws-line); }
.envoi-pv__barre .btn[disabled] { opacity: .45; cursor: not-allowed; }
.confirmation[open] form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 260px; margin-top: 8px; }
.filtres-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 16px; align-items: end; margin-bottom: 18px; }
.filtres-ligne__boutons { display: flex; gap: 8px; align-items: center; }
.journal-detail { display: flex; flex-direction: column; gap: 2px; word-break: break-word; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }

@media (max-width: 1040px) {
  .entete__droite .deroulant .selecteur-bureau { display: flex; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .entete__droite .selecteur-bureau--seul { display: none; }
  .deroulant__nav { display: flex; }
}
@media (max-width: 720px) {
  .acces__boite { margin-top: 24px; padding: 24px 20px; }
  .pied { padding: 16px; }
  .codes { grid-template-columns: minmax(0, 1fr); }
  .deroulant__menu { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; }
}

/* Code QR de la double authentification : toujours sombre sur clair, lisible par l'appareil photo */
.totp-qr { width: 236px; max-width: 100%; margin-top: 10px; padding: 8px; background: #FEFEFE; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); }
.totp-qr svg { width: 100%; height: auto; }

/* ============================================================
   Lot 2 · projets, PV en séance, registre, tableau de bord
   ============================================================ */

html.js .js-masquer { display: none !important; }
.statut--remplace { --st: var(--st-annule); }
.nature--d { color: var(--ws-text); }
.texte-pre, .historique span { white-space: pre-line; }
.sous-titre { font-size: 13.5px; font-weight: 500; margin: 22px 0 8px; }
.pile-serree { display: flex; flex-direction: column; gap: 12px; }
.sans-cadre { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sous-formulaire { border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); padding: 10px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.sous-formulaire legend { font-size: 12px; font-weight: 500; color: var(--wspv-text-2); padding: 0 6px; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 16px; }
.case--petite { font-size: 12.5px; }
.saisie--compacte { min-height: 30px; height: 30px; width: auto; min-width: 220px; flex: 1; padding: 4px 8px; font-size: 13px; }
.liste-chapitres { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; font-size: 13px; list-style: none; }
.liste-chapitres .mono { color: var(--wspv-text-2); margin-right: 4px; }
.deroulant__menu--formulaire { width: 320px; max-width: calc(100vw - 32px); padding: 14px; gap: 10px; }
.deroulant__menu--formulaire .formulaire { gap: 10px; }
.tete__actions .deroulant > summary.btn { list-style: none; }
.tete__actions .deroulant__menu { right: 0; }
.marque-modifie { font-family: var(--ws-font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--wspv-text-2); border: var(--ws-hairline) solid currentColor; border-radius: 3px; padding: 0 4px; }
.fiche { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.fiche dt { color: var(--wspv-text-2); }
.historique--fiche p { font-size: 13.5px; color: var(--ws-text); }

/* Arborescence : liens de tête, écran étroit (#arbre:target, sans JavaScript) */
.arbre__tete h2 a { color: var(--wspv-text-2); }
.arbre__tete h2 a:hover { color: var(--ws-text); }
.arbre__fermer { display: none; }
.arbre__feuille--racine { padding-left: 6px; font-weight: 500; margin-bottom: 6px; }
.arbre__vide { padding: 6px; }
.arbre a[aria-current="page"] { font-weight: 500; }

/* Points : lien d'ouverture, poignée vide, menu d'actions, glisser-déposer */
.point__lien { color: var(--ws-text); }
.point__lien:hover { color: var(--wspv-red-text); }
.poignee--vide { cursor: default; }
.poignee--chapitre { margin-left: -4px; }
.point__actions { justify-self: end; }
.point__actions > summary { list-style: none; }
.point__actions > summary::-webkit-details-marker { display: none; }
.point__actions .deroulant__menu { top: 32px; min-width: 200px; }
.point__actions form { width: 100%; }
.chapitre__points { min-height: 6px; }
.chapitre__tete form { display: inline-flex; }
.sortable-ghost { opacity: .35; }
.sortable-chosen { background: var(--ws-surface-2); }
.sortable-drag { background: var(--ws-surface); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.point--edition form.edition { display: block; }
.point--edition .avis { margin-bottom: 12px; }
.confirmation--en-ligne { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.confirmation--en-ligne[open] { padding: 4px 8px; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); }
.confirmation--en-ligne > summary { list-style: none; }
.confirmation--en-ligne > summary::-webkit-details-marker { display: none; }
.champ__message { font-size: 12.5px; color: var(--wspv-red-text); }
[data-sale] .saisie, .saisie[data-sale], select[data-sale], textarea[data-sale] { border-color: var(--st-en-cours); }
.conflit__versions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; margin: 6px 0; font-size: 12.5px; }
.conflit__versions dt { color: var(--wspv-text-2); }
.conflit__versions dd { white-space: pre-line; word-break: break-word; }
.avis[data-conflit] { flex-direction: column; align-items: stretch; }
.avis[data-conflit] .actions-ligne .btn { margin-left: 0; }

/* État d'enregistrement */
.enregistre[data-etat="attente"]::before, .enregistre[data-etat="envoi"]::before { background: var(--st-en-cours); }
.enregistre[data-etat="erreur"], .enregistre[data-etat="session"], .enregistre[data-etat="hors-ligne"] { color: var(--wspv-red-text); }
.enregistre[data-etat="erreur"]::before, .enregistre[data-etat="session"]::before, .enregistre[data-etat="hors-ligne"]::before { background: var(--ws-red); }
.enregistre:empty::before { display: none; }

/* PV en lecture */
.bloc--ouvert { margin-bottom: 18px; }
.bloc__tete { padding: 12px 18px; }
.bloc__tete h2 { font-size: 14px; }

/* Registre : filtres et vues */
.filtres__boutons { display: flex; gap: 8px; align-items: center; }
.filtres-fermer { display: none; }
.filtres .champ { gap: 3px; }
.filtres .champ .saisie { min-height: 30px; padding: 4px 8px; font-size: 12.5px; }
.filtres__vues .vue { display: flex; align-items: center; gap: 4px; }
.filtres__vues .vue a { flex: 1; }
.puce a { width: 20px; height: 20px; border-radius: 50%; color: var(--wspv-text-2); display: inline-flex; align-items: center; justify-content: center; }
.puce a:hover { background: var(--ws-surface-3); color: var(--ws-text); }
.puce a svg { width: 10px; height: 10px; }
.tri .btn { margin-left: 4px; }

@media (max-width: 1040px) {
  .arbre:target {
    display: block; position: static; height: auto; max-height: none;
    margin: 0; padding: 14px 16px 18px; border-bottom: var(--ws-hairline) solid var(--ws-line); background: var(--ws-surface-2);
  }
  .arbre:target .arbre__fermer { display: inline-flex; }
  .coquille--arbre { display: flex; flex-direction: column; }
  .filtres:target { display: flex; position: static; max-height: none; padding: 14px; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card); margin-bottom: 16px; }
  .filtres:target .filtres-fermer { display: inline-flex; }
}
@media (max-width: 720px) {
  .point__actions { grid-column: 3; grid-row: 1; }
  .saisie--compacte { min-width: 0; width: 100%; }
  .chapitre__tete { flex-wrap: wrap; }
  .fiche { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .fiche dd { margin-bottom: 8px; }
}
.point .delai-groupe { display: inline-flex; flex-direction: column; gap: 1px; white-space: nowrap; }
@media (min-width: 1041px) {
  .registre .tableau .cellule-titre { min-width: 260px; }
}
.arbre, .filtres, .bloc, .chapitre { scroll-margin-top: 64px; }
.point { scroll-margin-top: 120px; }

/* ============================================================
   Lot 3b · pièces jointes, réponses sur les points
   ============================================================ */

.fichiers { display: flex; flex-direction: column; gap: 10px; }
.fichiers__liste { display: flex; flex-direction: column; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); background: var(--ws-surface); }
.fichier { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.fichier:last-child { border-bottom: 0; }
.fichier--image { grid-template-columns: 96px minmax(0, 1fr) auto; }
.fichier__vignette { display: block; width: 96px; height: 72px; border-radius: 5px; overflow: hidden; background: var(--ws-surface-3); }
.fichier__vignette img { width: 96px; height: 72px; object-fit: cover; display: block; }
.fichier__vignette:focus-visible { outline: 2px solid var(--wspv-focus); outline-offset: 2px; }
.fichier__icone { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 5px; background: var(--ws-surface-3); color: var(--wspv-text-2); justify-self: center; }
.fichier__icone svg { width: 18px; height: 18px; }
.fichier__corps { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.fichier__nom { font-size: 13px; font-weight: 500; color: var(--ws-text); overflow-wrap: anywhere; }
.fichier__nom:hover { color: var(--wspv-red-text); }
.fichier__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--wspv-text-2); }
.fichier__actions { display: flex; align-items: center; gap: 2px; }
.fichier__actions form { margin: 0; }
.fichier__actions .btn svg { width: 14px; height: 14px; }
.marque-interne, .marque-pdf { font-family: var(--ws-font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; border: var(--ws-hairline) solid currentColor; border-radius: 3px; padding: 0 4px; }
.marque-interne { color: var(--st-a-valider); }
.marque-pdf { color: var(--st-clos); }
.marque-proposition { color: var(--st-a-valider); font-size: 12px; }
.marque-proposition:hover { text-decoration: underline; }

.depot { display: flex; flex-direction: column; gap: 6px; }
.depot__fichier { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.zone-depot:has(.depot__fichier:focus-visible) .depot__choisir { outline: 2px solid var(--wspv-focus); outline-offset: 2px; }
.depot__choisir { cursor: pointer; }
html:not(.js) .depot__fichier { position: static; width: auto; height: auto; margin: 0; clip: auto; overflow: visible; }
html:not(.js) .depot__choisir { display: none; }
.depot__options { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.depot__etat:empty { display: none; }
.depot__etat { color: var(--wspv-text-2); }
.depot__etat--erreur { color: var(--wspv-red-text); }
.depot--envoi .zone-depot { opacity: .6; }
.zone-depot { flex-wrap: wrap; text-align: center; }
.zone-depot--survol { border-color: var(--ws-text); background: var(--ws-surface-2); color: var(--ws-text); }
.edition__fichiers { margin-top: 14px; padding-top: 12px; border-top: var(--ws-hairline) solid var(--ws-line); }
.edition__fichiers .titre-section { margin: 0 0 8px; font-size: 13px; font-weight: 500; }

.echanges { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; margin: 0; }
.echange { padding: 12px 14px; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); background: var(--ws-surface); display: flex; flex-direction: column; gap: 6px; }
.echange--proposition { border-left: 3px solid var(--st-a-valider); }
.echange--interne { background: var(--ws-surface-2); }
.echange:target { outline: 2px solid var(--wspv-focus); outline-offset: 2px; }
.echange__tete { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 13px; }
.echange__tete .muted { font-family: var(--ws-font-mono); font-size: 11.5px; }
.echange__proposition { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: 12.5px; color: var(--st-a-valider); }
.echange__proposition svg { width: 14px; height: 14px; }
.echange__proposition .muted { color: var(--wspv-text-2); }
.echange__motif { font-size: 12.5px; color: var(--wspv-text-2); }
.echanges .pieces { list-style: none; padding: 0; margin: 0; }
.piece { color: var(--ws-text); text-decoration: none; }
a.piece:hover { border-color: var(--ws-text); }
.piece__vignette { width: 24px; height: 24px; object-fit: cover; border-radius: 3px; }
.depot__choisis { list-style: none; padding: 0; margin: 0; }
.depot__choisis:empty { display: none; }
.repondre__pied { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.repondre__pied .groupe, .proposition .groupe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.proposition { margin-bottom: 10px; }
.proposition .deroulant__menu { left: 0; right: auto; }

@media (max-width: 720px) {
  .fichier, .fichier--image { grid-template-columns: 64px minmax(0, 1fr); }
  .fichier__vignette, .fichier__vignette img { width: 64px; height: 48px; }
  .fichier__actions { grid-column: 2; }
}
.echange .texte-pre { font-size: 13.5px; line-height: 1.55; }

/* ============================================================
   Lot 3c · réglages du bureau, carnet d'adresses
   ============================================================ */

.groupe-champs { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.groupe-champs legend { font-size: 13px; font-weight: 500; padding: 0; margin-bottom: 8px; }
.groupe-champs + .groupe-champs { padding-top: 14px; border-top: var(--ws-hairline) solid var(--ws-line); }
.champ--nombre { max-width: 260px; }
.saisie--courte { width: 96px; min-width: 0; flex: 0 0 auto; }
.formulaire__ligne .champ--nombre { flex: 0 1 260px; }
.reglages-projet { margin-top: 12px; }
.reglages-projet { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.reglages-projet:disabled { opacity: .55; } /* réglages du bureau en vigueur : champs inactifs */

.liste-edition { display: flex; flex-direction: column; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); background: var(--ws-surface); }
.liste-edition__tete, .liste-edition__ligne { display: grid; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.liste-edition__ligne:last-child { border-bottom: 0; }
.liste-edition__tete { font-size: 11.5px; color: var(--wspv-text-2); padding-top: 6px; padding-bottom: 6px; }
.liste-edition--metiers .liste-edition__tete, .liste-edition--metiers .liste-edition__ligne { grid-template-columns: 18px minmax(160px, 1fr) 140px 80px 32px minmax(150px, auto); }
.liste-edition--types .liste-edition__tete, .liste-edition--types .liste-edition__ligne { grid-template-columns: 96px minmax(160px, 1fr) 80px 32px minmax(150px, auto); }
.liste-edition--chapitres .liste-edition__tete { grid-template-columns: 96px minmax(160px, 1fr) 180px auto; }
.liste-edition--chapitres .liste-edition__ligne { grid-template-columns: minmax(0, 1fr) auto; }
.liste-edition__sous { display: grid; grid-template-columns: 96px minmax(160px, 1fr) 180px auto; gap: 10px; align-items: center; }
.liste-edition__ligne .saisie--compacte { min-width: 0; width: 100%; }
.liste-edition__ligne .saisie--courte { width: 80px; }
.liste-edition__ligne .select-petit { width: 100%; }
.liste-edition__fin { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.liste-edition__ligne--inactive .saisie, .liste-edition__ligne--inactive .select-petit { color: var(--wspv-text-2); }
.liste-edition__ligne--nouvelle { background: var(--ws-surface-2); }
.liste-edition__code { padding-left: 9px; }
.pastille-carre { width: 14px; height: 14px; border-radius: 3px; background: var(--mc); display: inline-block; }
.pastille-carre--vide { background: transparent; border: var(--ws-hairline) dashed var(--ws-line-strong, var(--ws-line)); }

.logo-bureau { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.logo-bureau__image { max-height: 64px; max-width: 220px; padding: 8px; background: #fff; border: var(--ws-hairline) solid var(--ws-line); border-radius: 5px; }

.carnet-barre { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.carnet-barre form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.carnet-barre .saisie { min-width: 260px; }
.contacts { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; margin: 0; }
.contact { padding: 10px 14px; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); background: var(--ws-surface); }
.contact--inactif { opacity: .65; }
.contact__tete { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.contact__nom { font-weight: 500; }
.contact__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--wspv-text-2); }
.contact details > summary { cursor: pointer; font-size: 12.5px; color: var(--wspv-text-2); }
.contact details[open] > summary { margin-bottom: 10px; }
.coordonnees { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 12px; font-size: 13px; margin: 0; }
.coordonnees dt { color: var(--wspv-text-2); }
.coordonnees dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .liste-edition__tete { display: none; }
  .liste-edition--metiers .liste-edition__ligne { grid-template-columns: 18px minmax(0, 1fr) 80px 32px; }
  .liste-edition--types .liste-edition__ligne { grid-template-columns: 80px minmax(0, 1fr) 80px 32px; }
  .liste-edition__ligne > [name="libelle"] { grid-column: 2 / -1; }
  .liste-edition--metiers .liste-edition__ligne > .select-petit { grid-column: 2; }
  .liste-edition--types .liste-edition__ligne > [name="ordre"] { grid-column: 3; }
  .liste-edition__ligne > span:empty:not(.pastille-carre) { display: none; }
  .liste-edition__fin { grid-column: 1 / -1; justify-content: flex-start; }
  .liste-edition__sous { grid-template-columns: 80px minmax(0, 1fr); }
  .liste-edition__sous .select-petit { grid-column: 1 / -1; }
  .liste-edition__sous > .btn { grid-column: 1 / -1; justify-self: start; }
  .liste-edition__ligne .select-petit { width: auto; }
  .coordonnees { grid-template-columns: 1fr; }
  .carnet-barre .saisie { min-width: 0; flex: 1; }
}
.liste-edition__vide { width: 32px; }
.liens-projets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.liens-projets a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; color: var(--ws-text); }
.liens-projets a:hover span:last-child { text-decoration: underline; }
.logo-bureau .groupe { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* ============================================================
   Impression des listes (lot 3c) : le registre, une fiche, un PV
   affiché à l'écran s'impriment sans l'interface. Le PV officiel
   s'imprime depuis son PDF (bouton « Imprimer (PDF) »).
   ============================================================ */
@media print {
  :root, :root[data-theme="dark"] { color-scheme: light; }
  body { background: #fff !important; color: #000 !important; font-size: 10pt; }
  .entete, .pied, .skip-link, .arbre, .filtres, .filtres-ouvrir, .arbre__ouvrir, .tete__actions, .onglets, .onglets-barre, .messages, .recherche,
  .depot, .zone-depot, .repondre, .fichier__actions, .deroulant, .point__actions, .pagination, .registre__barre, [data-imprimer] { display: none !important; }
  .coquille, .coquille--arbre, .registre { display: block !important; }
  .contenu { padding: 0 !important; max-width: none !important; margin: 0 !important; }
  .carte, .bloc, .fichiers__liste, .echange { border: 0 !important; box-shadow: none !important; background: none !important; padding-left: 0 !important; padding-right: 0 !important; }
  a { color: inherit !important; text-decoration: none !important; }
  .tableau { width: 100%; border-collapse: collapse; table-layout: auto !important; font-size: 8.5pt; }
  .tri, .barre-outils__groupe { display: none !important; }
  .registre .tableau .cellule-titre { min-width: 0 !important; width: 38%; }
  .tableau .tableau__sous { font-size: 8pt; }
  .tableau th, .tableau td { border-bottom: 0.5pt solid #bbb; padding: 3pt 3pt !important; white-space: normal !important; }
  .tableau th { font-size: 7.5pt; }
  .tableau tr, .point, .echange, .fichier { break-inside: avoid; }
  .tableau--empile { display: table !important; } .tableau--empile thead { display: table-header-group !important; }
  .tableau--empile tbody { display: table-row-group !important; } .tableau--empile tr { display: table-row !important; padding: 0 !important; }
  .tableau--empile td, .tableau--empile th { display: table-cell !important; width: auto !important; }
  .tableau--empile td::before { display: none !important; content: none !important; }
  h1 { font-size: 15pt; } h2 { font-size: 12pt; }
  @page { size: A4; margin: 14mm 12mm; }
}

/* ============================================================
   Lot 4 · exports, fichiers et journal du projet
   ============================================================ */
.segments a { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; font-size: 12.5px; color: var(--wspv-text-2); border-right: var(--ws-hairline) solid var(--ws-control-line); text-decoration: none; }
.segments a:last-child { border-right: 0; }
.segments a[aria-current="page"] { background: var(--ws-text); color: var(--ws-on-text); }
.segments a:focus-visible { outline: 2px solid var(--wspv-focus); outline-offset: -2px; }
nav.segments { flex-wrap: wrap; max-width: 100%; }
.fichier-ligne { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.fichier-ligne svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--wspv-text-2); }
.fichier-ligne .tableau__titre { overflow-wrap: anywhere; }
.carnet-barre .saisie { width: auto; }
.sans-retour { white-space: nowrap; }
/* Import de points (lot 4b) */
.import-envoi .saisie[type="file"] { padding: 5px 8px; }
.import-entete { max-width: 640px; margin: 14px 0 18px; }
.import-colonnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 18px; }
.import-colonnes .aide { overflow-wrap: anywhere; }
.import-resume { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 0 0 6px; }
.import-resume span { color: var(--wspv-text-2); font-size: 13px; }
.import-apercu .import-garder { width: 32px; }
.import-apercu .import-garder input { width: 16px; height: 16px; accent-color: var(--ws-text); }
.import-apercu .cellule-titre label { font-weight: 500; cursor: pointer; }
.import-type { font-family: var(--ws-font-mono); font-size: 11px; color: var(--wspv-text-2); }
.import-ligne2 { display: block; font-weight: 400; }
.import-exclue td { color: var(--wspv-text-3); }
.import-exclue .cellule-titre label { font-weight: 400; text-decoration: line-through; }
.import-remarques { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--wspv-text-2); }
.import-remarques li { padding-left: 10px; position: relative; }
.import-remarques li::before { content: ""; position: absolute; left: 0; top: .5em; width: 5px; height: 5px; background: var(--st-en-cours); }
@media (max-width: 720px) {
  .import-apercu .import-garder { width: auto; }
}
/* Plateforme, données du bureau (lot 4c) */
.assistance-bandeau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 14px; }
.assistance-bandeau span { flex: 1 1 320px; }
.jauge { display: block; width: 100%; max-width: 140px; height: 6px; margin-top: 4px; }
.etat-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 20px; margin: 0 0 10px; }
.etat-liste div { display: flex; flex-direction: column; gap: 2px; }
.etat-liste dt { font-size: 12px; color: var(--wspv-text-2); }
.etat-liste dd { margin: 0; font-size: 14px; }
.liste-simple { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
/* Aide */
a.bouton-icone { text-decoration: none; }
a.bouton-icone[aria-current="page"] { border-color: var(--ws-text); }
.aide-page { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.aide-sommaire { position: sticky; top: 72px; font-size: 13px; }
.aide-sommaire__titre { font-size: 12px; font-weight: 500; color: var(--wspv-text-2); margin: 0 0 8px; }
.aide-sommaire ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; border-left: var(--ws-hairline) solid var(--ws-line); }
.aide-sommaire a { display: block; padding: 4px 12px; color: var(--wspv-text-2); text-decoration: none; margin-left: -1px; border-left: 2px solid transparent; }
.aide-sommaire a:hover { color: var(--ws-text); border-left-color: var(--ws-text); }
.aide-section { scroll-margin-top: 72px; }
.aide-liste { margin: 12px 0 0; display: flex; flex-direction: column; gap: 12px; }
.aide-liste dt { font-weight: 500; font-size: 13.5px; }
.aide-liste dd { margin: 2px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ws-text); max-width: 72ch; }
.aide-liste--acces { margin: 8px 0 16px; }
@media (max-width: 860px) {
  .aide-page { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .aide-sommaire { position: static; }
  .aide-sommaire ol { flex-direction: row; flex-wrap: wrap; gap: 4px 8px; border-left: 0; }
  .aide-sommaire a { padding: 2px 0; border-left: 0; margin-left: 0; text-decoration: underline; }
}

/* Revue des points ouverts, un par un (1.2.0, D-096) */
.revue { max-width: 880px; display: flex; flex-direction: column; gap: 12px; }
.revue__progression { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; border: 0; border-radius: 3px; background: var(--ws-surface-2); overflow: hidden; }
.revue__progression::-webkit-progress-bar { background: var(--ws-surface-2); border-radius: 3px; }
.revue__progression::-webkit-progress-value { background: var(--ws-text); border-radius: 3px; }
.revue__progression::-moz-progress-bar { background: var(--ws-text); border-radius: 3px; }
.revue__rang { margin: 0; font-size: 13px; color: var(--wspv-text-2); }
.revue__point { display: flex; flex-direction: column; gap: 14px; }
.revue__chapitre { margin: 0; font-size: 13px; }
.revue__point h2 { display: flex; gap: 12px; align-items: baseline; font-size: 21px; line-height: 1.3; }
.revue__numero { flex: none; font-size: 17px; color: var(--wspv-red-text); }
.revue__infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 16px; margin: 0; }
.revue__infos dt { font-size: 12px; color: var(--wspv-text-2); }
.revue__infos dd { margin: 2px 0 0; }
.revue__retard { color: var(--wspv-red-text); }
.revue__proposition q { display: block; margin-top: 4px; font-style: italic; }
.revue__historique { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 0 0 12px; list-style: none; border-left: 2px solid var(--ws-line); }
.revue__historique li { display: flex; gap: 12px; }
.revue__historique li > :first-child { flex: none; }
.revue__formulaire { display: flex; flex-direction: column; gap: 14px; }
.revue__formulaire textarea { width: 100%; }
.revue__gestes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.revue__gestes > .btn { height: 40px; }
.revue__suivant { min-width: 150px; justify-content: center; }
.revue__suivant svg { transform: rotate(-90deg); }
.revue__reporter { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.revue__reporter-titre { font-size: 13px; color: var(--wspv-text-2); }
.revue__navigation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 10px; border-top: var(--ws-hairline) solid var(--ws-line); }
.revue__aide { margin: 0 0 0 auto; }
.revue-fin h2 { display: flex; gap: 8px; align-items: center; }
@media (max-width: 640px) {
  .revue__point h2 { font-size: 18px; }
  .revue__aide, .revue .raccourci { display: none; }
  .revue__gestes > .btn { flex: 1 1 auto; justify-content: center; }
}

/* Séance : délai en un clic, « Tous présents » (1.2.0) */
.delai-rapide { display: flex; flex-wrap: wrap; gap: 2px 12px; margin-top: 4px; font-size: 13px; }
.tous-presents { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 8px; }

/* Tableau de bord 1.2.0 : « Réglé » à valider (D-099), réponses des externes (D-100) */
.cartes-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.carte-point { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 80px; }
.carte-point--retard { border-left: 3px solid var(--ws-red); }
.carte-point:target { box-shadow: 0 0 0 2px var(--wspv-focus); }
.carte-point__tete { display: flex; gap: 10px; align-items: baseline; font-weight: 600; line-height: 1.35; }
.carte-point__tete a { color: inherit; }
.carte-point__numero { flex: none; color: var(--wspv-red-text); font-weight: 500; }
.carte-point__sous { font-size: 13px; color: var(--wspv-text-2); }
.carte-point__etat { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.carte-point__texte { font-size: 14px; color: var(--wspv-text-2); white-space: pre-line; }
.carte-point__proposition { background: var(--ws-surface-2); border-radius: var(--ws-radius-control); padding: 10px 12px; font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.carte-point__proposition q { font-style: italic; }
.carte-point__proposition a { display: inline-flex; gap: 6px; align-items: center; }
.carte-point .groupe { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.carte-point .groupe a { display: inline-flex; gap: 6px; align-items: center; }
.carte-point .groupe a svg, .carte-point__proposition a svg { width: 14px; height: 14px; flex: none; }
.carte-point__reponse { display: flex; flex-direction: column; gap: 8px; }
.carte-point__reponse textarea { min-height: 64px; resize: vertical; line-height: 1.5; }

/* Page du projet 1.2.0 (D-098) : un PV par ligne, toute la ligne ouvre le PV */
.lignes-pv { list-style: none; margin: 0; padding: 0; }
.lignes-pv li + li { border-top: var(--ws-hairline) solid var(--ws-line); }
.ligne-pv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 14px; align-items: center; padding: 10px 14px; color: inherit; }
.ligne-pv:hover { background: var(--ws-surface-2); }
.ligne-pv:focus-visible { outline: 2px solid var(--wspv-focus); outline-offset: -2px; }
.ligne-pv__titre { font-size: 14px; font-weight: 500; }
.ligne-pv__statut { justify-self: end; font-size: 13px; }
.ligne-pv__sous { font-size: 12.5px; color: var(--wspv-text-2); }
.ligne-pv__geste { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; font-size: 12.5px; color: var(--wspv-text-2); }
.ligne-pv__geste svg { width: 12px; height: 12px; transform: rotate(-90deg); }
.ligne-pv:hover .ligne-pv__geste { color: var(--ws-text); }
.fichiers__tous { margin: 8px 0 4px; }
.revue__annuler { margin: 0 0 12px; font-size: 13.5px; }
/* 1.3.0 : petit tableau qui reste en lignes sur téléphone (points ouverts par organisation) */
@media (max-width: 640px) {
  .tableau--serre th, .tableau--serre td { padding: 8px 6px; font-size: 12.5px; }
  .tableau--serre th { white-space: normal; font-size: 11px; line-height: 1.25; vertical-align: bottom; }
  .tableau--serre td:first-child, .tableau--serre th:first-child { padding-left: 12px; }
}
/* 1.4.0 (D-106) : choix de la langue dans le pied de page */
.pied__langues { display: inline-flex; gap: 10px; align-items: center; }
.pied__langues .lien-bouton { font-family: var(--ws-font-mono); font-size: 12px; color: var(--wspv-text-2); text-decoration: none; }
.pied__langues .lien-bouton[aria-current] { color: var(--ws-text); text-decoration: underline; text-underline-offset: 3px; }
/* Chapitres d'un PV : plier, déplier (1.4.0, D-108) */
.chapitre__pli { flex: none; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--wspv-text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.chapitre__pli::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-1px, -1px); transition: transform .12s; }
.chapitre__pli[aria-expanded="false"]::before { transform: rotate(-45deg) translate(-1px, -1px); }
.chapitre__pli:hover { background: var(--ws-surface-2); color: var(--ws-text); }
.chapitre--plie > :not(.chapitre__tete) { display: none; }
.chapitre--plie { margin-top: 10px; }
.chapitres__tout { display: block; margin: 14px 0 -8px auto; font-size: 13px; }
@media print {
  .chapitre__pli, .chapitres__tout { display: none; }
  .chapitre--plie > :not(.chapitre__tete) { display: revert; }
}
@media (prefers-reduced-motion: reduce) { .chapitre__pli::before { transition: none; } }
/* Doublons du carnet (1.5.0, D-110) */
.doublons fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.doublons legend { font-size: 13px; color: var(--wspv-text-2); margin-bottom: 6px; }
.doublons td input { width: 18px; height: 18px; }
.doublons + .doublons { border-top: var(--ws-hairline) solid var(--ws-line); padding-top: 14px; }
/* Page de connexion avec présentation (1.5.0, D-112) */
.accueil-public { width: calc(100% - 32px); max-width: 1040px; margin: 56px auto 32px; display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.accueil-public .acces__boite { margin: 0; width: 100%; max-width: none; grid-column: 2; grid-row: 1; }
.presentation { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.presentation__surtitre { font-size: 12px; letter-spacing: .04em; color: var(--wspv-red-text); }
.presentation h2 { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; max-width: 20ch; }
.presentation__chapeau { font-size: 16px; line-height: 1.55; color: var(--wspv-text-2); max-width: 56ch; }
.presentation__liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.presentation__liste li { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--ws-text); font-size: 14px; line-height: 1.5; }
.presentation__liste strong { font-size: 14px; }
.presentation__liste span { color: var(--wspv-text-2); }
.presentation__acces { font-size: 14px; padding: 12px 14px; background: var(--ws-surface); border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); }
.presentation__liens { display: flex; gap: 18px; font-size: 13px; }
.presentation__liens a { color: var(--wspv-text-2); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 860px) {
  .accueil-public { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 24px; }
  .accueil-public .acces__boite, .presentation { grid-column: 1; grid-row: auto; }
  .presentation h2 { font-size: 22px; }
  .presentation__liste { grid-template-columns: minmax(0, 1fr); }
}
.presentation__acces a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   1.6.0 · lisibilité (retour des collègues du 10.11.2026)
   Police plus grande, contrastes renforcés, bandeau projet collant,
   onglet actif plein, badges de statut pleins, retards visibles,
   registre en pleine largeur, indicateurs, groupes repliables.
   ============================================================ */

:root { --wspv-text-2: #4F545A; --st-a-valider: #A85600; --st-en-cours: #0F7C86; --st-en-cours-texte: #0C6A73;
  --b-ouvert: #2563A8; --b-en-cours: #0C6A73; --b-en-attente: #5E636A; --b-a-valider: #A04F00; --b-clos: #1B7346; --b-annule: #8A8F96; --b-retard: #B8261B;
  --retard-fond: #FDF0EE; --manque: #8A4B00; --manque-fond: #FFF4E0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --wspv-text-2: #B0B5BB; --st-a-valider: #F0A24A; --st-en-cours: #4CC2BA; --st-en-cours-texte: #4CC2BA;
    --b-ouvert: #7CB2EC; --b-en-cours: #4CC2BA; --b-en-attente: #A3A9B0; --b-a-valider: #F0A24A; --b-clos: #5CC88E; --b-annule: #7C828A; --b-retard: #FF7468;
    --retard-fond: #33201E; --manque: #F3B45A; --manque-fond: #33291A; }
}
:root[data-theme="dark"] { --wspv-text-2: #B0B5BB; --st-a-valider: #F0A24A; --st-en-cours: #4CC2BA; --st-en-cours-texte: #4CC2BA;
  --b-ouvert: #7CB2EC; --b-en-cours: #4CC2BA; --b-en-attente: #A3A9B0; --b-a-valider: #F0A24A; --b-clos: #5CC88E; --b-annule: #7C828A; --b-retard: #FF7468;
  --retard-fond: #33201E; --manque: #F3B45A; --manque-fond: #33291A; }

/* Tailles de texte : un cran de plus partout */
body { font-size: 15px; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
.entete__nav { font-size: 15px; }
.fil { font-size: 14px; }
.tete__meta { font-size: 14px; align-items: center; }
.tete__meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.tableau { font-size: 14px; }
.tableau th { font-size: 13px; }
.tableau__sous { font-size: 13.5px; }
.statut { font-size: 13.5px; }
.urgence { font-size: 13.5px; }
.metier { font-size: 13.5px; }
.filtre { font-size: 14.5px; padding: 5px 6px; }
.filtre__compte { font-size: 12.5px; }
.filtres legend { font-size: 13px; }
.resultats-tete .compte { font-size: 14px; }
.btn { font-size: 14px; }
.btn--petit { font-size: 13px; }
.champ label, .champ__label { font-size: 13px; }
.aide { font-size: 13px; }

/* Pleine largeur (registre) */
.contenu.contenu--plein { max-width: none; }

/* Bandeau du projet : reste en haut au défilement ; onglet actif plein */
.projet-bandeau { position: sticky; top: 56px; z-index: 15; background: var(--ws-surface); margin: -24px -32px 22px; padding: 16px 32px 0;
  border-bottom: 1px solid var(--ws-line); }
.projet-bandeau .fil { margin-bottom: 8px; }
.projet-bandeau .tete { margin-bottom: 14px; }
.projet-bandeau .tete__titre h1 { font-size: 24px; align-items: center; }
.projet-bandeau .tete__code { font-size: 18px; font-weight: 500; color: var(--ws-on-text); background: var(--ws-text); padding: 2px 9px; border-radius: 6px; }
.projet-bandeau .onglets-barre { border-bottom: 0; margin-bottom: 0; align-items: stretch; }
.projet-bandeau .onglets { gap: 4px; }
.projet-bandeau .onglets a, .projet-bandeau .onglets__plus > summary { padding: 9px 16px 10px; font-size: 15px; border: 0; border-radius: 8px 8px 0 0; color: var(--wspv-text-2); }
.projet-bandeau .onglets a:hover, .projet-bandeau .onglets__plus > summary:hover { background: var(--ws-surface-2); color: var(--ws-text); }
.projet-bandeau .onglets a[aria-current="page"] { background: var(--ws-text); color: var(--ws-on-text); font-weight: 500; }
.projet-bandeau .onglets__plus .deroulant__menu { top: 42px; }
.projet-bandeau--compact .fil, .projet-bandeau--compact .tete__meta { display: none; }
.projet-bandeau--compact { padding-top: 8px; }
.projet-bandeau--compact .tete { margin-bottom: 8px; }
.projet-bandeau--compact .tete__titre h1 { font-size: 18px; }
.projet-bandeau--compact .tete__code { font-size: 15px; }

/* Badges pleins */
.badges { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.3;
  white-space: nowrap; color: #fff; background: var(--bg, var(--b-en-attente)); }
.badge svg { width: 13px; height: 13px; }
.badge--ouvert { --bg: var(--b-ouvert); }
.badge--en-cours { --bg: var(--b-en-cours); }
.badge--en-attente { --bg: var(--b-en-attente); }
.badge--a-valider { --bg: var(--b-a-valider); }
.badge--clos { --bg: var(--b-clos); }
.badge--annule { --bg: transparent; color: var(--wspv-text-2); box-shadow: inset 0 0 0 1px var(--b-annule); }
.badge--retard { --bg: var(--b-retard); }
.badge--projet-actif { --bg: var(--b-clos); font-size: 12.5px; }
.badge--projet-pause { --bg: var(--b-a-valider); font-size: 12.5px; }
.badge--projet-termine, .badge--projet-archive { --bg: var(--b-en-attente); font-size: 12.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge { color: #17191D; } :root:not([data-theme="light"]) .badge--annule { color: var(--wspv-text-2); } }
:root[data-theme="dark"] .badge { color: #17191D; }
:root[data-theme="dark"] .badge--annule { color: var(--wspv-text-2); }

/* Lignes du registre : bordure de couleur selon le statut, retard teinté */
.tableau--registre { table-layout: fixed; }
.tableau--registre col.col-no { width: 84px; }
.tableau--registre col.col-metier { width: 12%; }
.tableau--registre col.col-resp { width: 14%; }
.tableau--registre col.col-delai { width: 11%; }
.tableau--registre col.col-urgence { width: 9%; }
.tableau--registre col.col-statut { width: 12%; }
.tableau--registre col.col-pv { width: 11%; }
.ligne-point td:first-child { box-shadow: inset 4px 0 0 var(--lp, transparent); }
.ligne-point--ouvert { --lp: var(--b-ouvert); }
.ligne-point--en-cours { --lp: var(--b-en-cours); }
.ligne-point--en-attente { --lp: var(--b-en-attente); }
.ligne-point--a-valider { --lp: var(--b-a-valider); }
.ligne-point--clos { --lp: var(--b-clos); }
.ligne-point--annule { --lp: var(--b-annule); }
.ligne-point--retard { --lp: var(--b-retard); }
.ligne-point--retard td { background: var(--retard-fond); }
.tableau tbody tr.ligne-point--retard:hover td { background: var(--retard-fond); filter: brightness(.98); }
.retard-jours { font-weight: 500; }
.incomplet { display: inline-flex; margin-left: 6px; color: var(--manque); vertical-align: -2px; }
.incomplet svg { width: 15px; height: 15px; }
.manque { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 5px; background: var(--manque-fond); color: var(--manque); font-size: 13px; font-weight: 500; }
.lien-pv { white-space: normal; }
.cellule-no .cellule { display: inline-flex; align-items: center; }

/* Historique d'un point, texte par texte (PV par PV) */
.histo { margin-top: 6px; }
.histo > summary { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--wspv-text-2); cursor: pointer; list-style: none; padding: 2px 0; }
.histo > summary::-webkit-details-marker { display: none; }
.histo > summary svg { width: 13px; height: 13px; transform: rotate(-90deg); transition: transform 120ms; }
.histo[open] > summary svg { transform: none; }
.histo > summary:hover { color: var(--ws-text); }
.histo__liste { list-style: none; margin: 6px 0 2px; padding: 0 0 0 10px; border-left: 2px solid var(--ws-line); display: flex; flex-direction: column; gap: 8px; }
.histo__liste li { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.histo__date { font-size: 12.5px; color: var(--wspv-text-2); display: flex; flex-direction: column; }
.histo__pv { font-size: 12px; }
.histo__liste li:first-child .histo__texte { color: var(--ws-text); }
.histo__texte { color: var(--wspv-text-2); }

/* Indicateurs (filtres rapides) */
.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 18px; }
.indicateur { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--ws-line); border-radius: 10px; background: var(--ws-surface);
  border-left: 5px solid var(--ic, var(--ws-control-line)); color: var(--ws-text); transition: background-color 120ms, border-color 120ms; }
.indicateur:hover { background: var(--ws-surface-2); }
.indicateur[aria-current="true"] { background: var(--ws-surface-3); border-color: var(--ws-text); border-left-color: var(--ic, var(--ws-text)); }
.indicateur__n { font-family: var(--ws-font-mono); font-size: 26px; line-height: 1.1; }
.indicateur__libelle { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--wspv-text-2); font-weight: 500; }
.indicateur__libelle svg { width: 15px; height: 15px; }
.indicateur--retard { --ic: var(--b-retard); }
.indicateur--retard:not(.indicateur--zero) .indicateur__n, .indicateur--retard:not(.indicateur--zero) .indicateur__libelle { color: var(--wspv-red-text); }
.indicateur--semaine { --ic: var(--b-ouvert); }
.indicateur--sans-delai, .indicateur--sans-responsable, .indicateur--incomplets { --ic: var(--manque); }
.indicateur--sans-delai:not(.indicateur--zero) .indicateur__libelle svg, .indicateur--sans-responsable:not(.indicateur--zero) .indicateur__libelle svg, .indicateur--incomplets:not(.indicateur--zero) .indicateur__libelle svg { color: var(--manque); }
.indicateur--a-valider { --ic: var(--b-a-valider); }
.indicateur--zero { --ic: var(--ws-line); }
.indicateur--zero .indicateur__n { color: var(--wspv-text-2); }

/* Vues prédéfinies et ligne d'affichage */
.vues-predef { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 8px; border: 1px solid var(--ws-control-line); border-radius: 9px; width: max-content; max-width: 100%; overflow: hidden; }
.vues-predef__vue { padding: 7px 14px; font-size: 14px; color: var(--ws-text); border-right: 1px solid var(--ws-control-line); white-space: nowrap; }
.vues-predef__vue:last-child { border-right: 0; }
.vues-predef__vue:hover { background: var(--ws-surface-2); }
.vues-predef__vue[aria-current="true"] { background: var(--ws-text); color: var(--ws-on-text); font-weight: 500; }
.affichage { font-size: 13.5px; color: var(--wspv-text-2); margin: 0 0 12px; }

/* Filtres : familles repliables, valeurs à zéro grisées, panneau masquable */
.filtres { gap: 6px; }
.filtres__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.filtres__tete h2 { font-size: 15px; }
.filtres__famille { border-bottom: 1px solid var(--ws-line); padding: 2px 0 6px; }
.filtres__famille > summary { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 4px; font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.filtres__famille > summary::-webkit-details-marker { display: none; }
.filtres__famille > summary svg { width: 14px; height: 14px; color: var(--wspv-text-2); transform: rotate(-90deg); transition: transform 120ms; flex: none; }
.filtres__famille[open] > summary svg { transform: none; }
.filtres__famille > summary:hover { background: var(--ws-surface-2); border-radius: 5px; }
.filtres__note { font-weight: 400; color: var(--wspv-text-2); font-size: 13px; margin-left: auto; margin-right: 4px; }
.filtre--vide, .filtre--vide .statut, .filtre--vide .urgence { color: var(--wspv-text-2); }
.filtre--vide input, .filtre--vide .statut::before, .filtre--vide .urgence__barres { opacity: .45; }
@media (min-width: 1041px) {
  .registre { grid-template-columns: 270px minmax(0, 1fr); }
  .filtres { top: calc(56px + var(--bandeau-h, 0px) + 16px); max-height: calc(100vh - 56px - var(--bandeau-h, 0px) - 32px); }
  .filtres-ouvrir { display: inline-flex; }
  .registre.registre--sans-filtres { grid-template-columns: minmax(0, 1fr); }
  .registre--sans-filtres .filtres { display: none; }
}

/* Groupes repliables (chapitre ou projet) */
.groupe { margin-bottom: 14px; }
.groupe > summary { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--ws-surface-2); border: 1px solid var(--ws-line);
  border-radius: 10px; cursor: pointer; list-style: none; font-size: 15px; }
.groupe > summary::-webkit-details-marker { display: none; }
.groupe[open] > summary { border-radius: 10px 10px 0 0; border-bottom: 0; }
.groupe > summary svg { width: 16px; height: 16px; flex: none; transform: rotate(-90deg); transition: transform 120ms; }
.groupe[open] > summary > svg { transform: none; }
.groupe__titre { font-weight: 500; }
.groupe__titre .mono { margin-right: 4px; }
.groupe__compte { font-size: 13.5px; color: var(--wspv-text-2); margin-left: auto; }
.groupe__retards { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--wspv-red-text); }
.groupe__retards svg { width: 14px; height: 14px; transform: none !important; }
.groupe[open] > .carte { border-top-left-radius: 0; border-top-right-radius: 0; }
.tri label { font-size: 13.5px; }

@media (max-width: 720px) {
  .projet-bandeau { position: static; margin: -16px -16px 16px; padding: 12px 16px 0; }
  .projet-bandeau .tete__titre h1 { font-size: 20px; }
  .projet-bandeau .onglets a, .projet-bandeau .onglets__plus > summary { padding: 8px 12px; font-size: 14px; }
  .indicateurs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .indicateur__n { font-size: 22px; }
  .vues-predef { width: 100%; }
  .vues-predef__vue { flex: 1 1 auto; text-align: center; padding: 7px 10px; }
  .tableau--registre { table-layout: auto; }
  .ligne-point { box-shadow: inset 4px 0 0 var(--lp, transparent); }
  .ligne-point td:first-child { box-shadow: none; }
  .histo__liste li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media print {
  .projet-bandeau { position: static; margin: 0 0 12px; padding: 0; }
  .indicateurs, .vues-predef, .histo > summary { display: none; }
  .ligne-point--retard td { background: none; }
}
.tete__meta > span { display: inline-flex; align-items: center; }
.lien-pv { white-space: nowrap; }
@media (max-width: 720px) {
  .resultats-tete .barre-outils__groupe { flex-wrap: wrap; }
  .tri { flex-wrap: wrap; }
  .tri select { max-width: 100%; }
}

/* ============================================================
   1.7.0 · clôture en deux temps (Fait, Validé) et actions rapides
   ============================================================ */
.tableau--registre col.col-cloture { width: 150px; }
.tableau--registre col.col-pv { width: 9%; }
.cloture { display: flex; flex-direction: column; gap: 6px; }
.cloture__coches { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.coche { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--wspv-text-2); white-space: nowrap; }
.coche__case { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--ws-control-line); display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--ws-surface); }
.coche__case svg { width: 13px; height: 13px; }
.coche--fait { color: var(--ws-text); }
.coche--fait .coche__case { background: var(--b-en-attente); border-color: var(--b-en-attente); color: #fff; }
.coche--valide { color: var(--ws-text); font-weight: 500; }
.coche--valide .coche__case { background: var(--b-clos); border-color: var(--b-clos); color: #fff; }
:root[data-theme="dark"] .coche--fait .coche__case, :root[data-theme="dark"] .coche--valide .coche__case { color: #17191D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .coche--fait .coche__case, :root:not([data-theme="light"]) .coche--valide .coche__case { color: #17191D; } }
.cloture__trace { margin: 0; font-size: 12.5px; color: var(--wspv-text-2); display: flex; flex-direction: column; gap: 1px; }
.cloture__trace--renvoi { color: var(--manque); }
.cloture__action { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cloture__action form { margin: 0; }
.btn--valider { background: var(--b-clos); color: #fff; border-color: var(--b-clos); }
.btn--valider:hover { filter: brightness(1.08); }
:root[data-theme="dark"] .btn--valider { color: #17191D; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--valider { color: #17191D; } }
.btn svg { flex: none; }
.pile > .cloture { padding: 12px 14px; border: 1px solid var(--ws-line); border-radius: 10px; }
.point__cloture { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 2px; }
.action-rapide { margin-top: 6px; }
.action-rapide > summary { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--wspv-text-2); cursor: pointer; list-style: none; }
.action-rapide > summary::-webkit-details-marker { display: none; }
.action-rapide > summary svg { width: 14px; height: 14px; }
.action-rapide > summary:hover { color: var(--ws-text); }
.action-rapide form { margin-top: 6px; display: flex; flex-direction: column; gap: 6px; }
.action-rapide textarea { width: 100%; font-size: 14px; }
.action-rapide__pied { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.ligne-point:target td { background: var(--ws-surface-3); }
.tableau--registre .deroulant__menu--formulaire { min-width: 280px; }
@media print { .cloture__action, .action-rapide { display: none; } }
.tableau--registre col.col-metier { width: 10%; }
.tableau--registre col.col-resp { width: 12%; }
.tableau--registre col.col-delai { width: 10%; }
.tableau--registre col.col-urgence { width: 8%; }
.tableau--registre col.col-statut { width: 10%; }
.tableau--registre col.col-cloture { width: 142px; }
.tableau--registre col.col-pv { width: 8%; }

/* ============================================================
   1.9.0 · compléter hors séance, en-tête unique du registre groupé
   ============================================================ */
.completer { max-width: 640px; padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.completer .champ__sous { margin-top: 6px; font-size: 13px; color: var(--wspv-text-2); }
.completer fieldset { border: 0; margin: 0; padding: 0; }
.champ--manque > label:first-child, .champ--manque > legend { color: var(--manque); }
.champ--manque > label:first-child::after, .champ--manque > legend::after { content: " · à renseigner"; font-weight: 400; font-size: 12.5px; }
.lien-completer { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; margin-top: 6px; margin-right: 12px; color: var(--manque); font-weight: 500; }
.lien-completer--discret { color: var(--wspv-text-2); font-weight: 400; }
.lien-completer svg { width: 14px; height: 14px; }
.lien-completer:hover { color: var(--ws-text); }
.action-rapide { display: inline-block; }
/* En-tête unique collé en haut quand le registre est groupé ; celui de chaque groupe n'est lu que par les lecteurs d'écran */
.registre-entete { position: sticky; top: calc(56px + var(--bandeau-h, 0px)); z-index: 5; margin-bottom: 8px; border: 1px solid var(--ws-line); border-radius: 10px; overflow: hidden; background: var(--ws-surface-2); }
.registre-entete .tableau { margin: 0; }
.registre-entete th { border-bottom: 0; }
.groupe .tableau--registre thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 720px) { .registre-entete { display: none; } }
@media print { .registre-entete { position: static; } }
/* 1.9.0 : colonnes étroites en largeur fixe, le point prend le reste ; dernier PV sous le texte */
.tableau--registre col.col-no { width: 74px; }
.tableau--registre col.col-metier { width: 108px; }
.tableau--registre col.col-resp { width: 132px; }
.tableau--registre col.col-delai { width: 100px; }
.tableau--registre col.col-urgence { width: 96px; }
.tableau--registre col.col-statut { width: 124px; }
.tableau--registre col.col-cloture { width: 116px; }
.tableau--registre .badges { flex-direction: column; align-items: flex-start; }
.tableau--registre .badge { white-space: normal; }
.dernier-pv { display: block; font-size: 13px; color: var(--wspv-text-2); margin-top: 4px; }
.dernier-pv .lien-pv { white-space: nowrap; }
.cellule-titre .dernier-pv { margin: 2px 0 0; padding: 0; }

/* ============================================================
   1.10.0 · contrôle du 10.11.2026 : PV plus lisible, détails du registre
   ============================================================ */
/* Registre : le badge de retard ne se coupe plus */
.tableau--registre col.col-statut { width: 136px; }
.tableau--registre .badge { white-space: nowrap; }
.coche[title] { cursor: help; }
/* PV : le texte de la séance prend toute la largeur sous la ligne du point (avant : colonne étroite) */
@media (min-width: 721px) {
  .point:not(.point--edition) { grid-template-columns: 22px 52px minmax(0, 1fr) 160px 104px 92px 132px 30px; row-gap: 0; }
  .point:not(.point--edition) > .point__corps { display: contents; }
  .point:not(.point--edition) .point__titre { grid-column: 3; grid-row: 1; font-size: 15px; }
  .point:not(.point--edition) .historique, .point:not(.point--edition) .point__cloture, .point:not(.point--edition) .point__meta { grid-column: 3 / -2; margin-top: 6px; }
  .point:not(.point--edition) .historique { max-width: 900px; }
  .point:not(.point--edition) > .poignee, .point:not(.point--edition) > .point__no, .point:not(.point--edition) > .point__resp,
  .point:not(.point--edition) > .point__cellule, .point:not(.point--edition) > .point__menu, .point:not(.point--edition) > .point__actions { grid-row: 1; }
}
@media (min-width: 721px) and (max-width: 1280px) {
  .point:not(.point--edition) { grid-template-columns: 22px 48px minmax(0, 1fr) 150px 100px 132px 30px; }
}
.historique p { font-size: 14px; line-height: 1.5; }
.historique time { font-size: 12.5px; padding-top: 2px; }
.point__resp { font-size: 14px; }
.point__resp span { font-size: 13px; }
.point__no { font-size: 14px; font-weight: 500; }
.point .badge { white-space: nowrap; }
/* PV : le titre du chapitre reste visible au défilement */
.chapitre__tete { position: sticky; top: 56px; z-index: 4; background: var(--ws-surface); padding-top: 10px; }
.chapitre__tete h2 { font-size: 16px; }
@media (max-width: 720px) { .chapitre__tete { position: static; } }
@media print { .chapitre__tete { position: static; } }
/* 1.11.0 : « Fait » coché par le chef au nom d'un responsable sans compte */
.tableau--registre col.col-cloture { width: 132px; }
.cloture__pour { font-size: 12.5px; color: var(--wspv-text-2); line-height: 1.3; flex-basis: 100%; overflow-wrap: anywhere; }

/* 1.13.0 : récapitulatif aux responsables */
.recap { display: grid; gap: 12px; max-width: 60rem; }
.recap__groupe { display: grid; gap: 6px; }
.recap__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 1.05rem; }
.recap__nom { font-weight: 700; }
.recap__compte { color: var(--wspv-text-2); font-size: .95rem; }
.recap__retards { color: var(--wspv-red-text); font-weight: 600; }
.recap__a { margin: 0; font-size: .95rem; overflow-wrap: anywhere; }
.recap__a--manque { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--wspv-red-text); }
.recap__points { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--ws-line); }
.recap__points li { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--ws-line); align-items: baseline; }
.recap__point--retard .recap__delai { color: var(--wspv-red-text); font-weight: 600; }
.recap__objet { overflow-wrap: anywhere; }
@media (max-width: 600px) { .recap__points li { grid-template-columns: 4rem 1fr; } .recap__delai { grid-column: 2; } }
.recap__a--manque svg { width: 16px; height: 16px; flex: none; }
.recap .formulaire__ligne { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.recap .formulaire__ligne .btn { width: auto; }

/* 1.14.0 : adresse e-mail d'un intervenant, depuis la liste du projet */
.adresse-intervenant { display: block; margin-top: 4px; }
.adresse-intervenant > summary.lien-discret { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; list-style: none; font-size: .875rem; color: var(--wspv-text-2); text-decoration: underline; }
.adresse-intervenant > summary.lien-discret::-webkit-details-marker { display: none; }
.adresse-intervenant > summary svg { width: 14px; height: 14px; flex: none; }
.cellule--adresse { display: block; overflow-wrap: anywhere; }
.cellule--adresse a { color: inherit; }

/* 1.14.0 : un peu plus de rouge Wellset · numéro du projet et onglet ouvert */
.projet-bandeau .tete__code { background: #C8291E; color: #FFFFFF; }
.projet-bandeau .onglets a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ws-red); }

/* ============================================================
   1.15.0 · vue tablette (768 à 1040 px, portrait et paysage)
   ============================================================ */
.entete__chercher { display: none; }
@media (max-width: 1040px) {
  .entete__chercher { display: inline-flex; }
}
/* Menu principal visible sur tablette (il ne passait dans le menu du compte qu'en dessous de 1040 px) */
@media (min-width: 721px) and (max-width: 1040px) {
  .entete__nav { display: flex; gap: 6px; font-size: 15px; }
  .entete__nav a { padding: 17px 8px 15px; }
  .entete__nav .nav-secondaire { display: none; }
}
@media (min-width: 721px) and (max-width: 860px) {
  .entete__nav a { padding-left: 5px; padding-right: 5px; font-size: 14px; }
}
/* Registre sur tablette : chaque point en carte, numéro à gauche, objet en tête, six cases dessous */
@media (min-width: 721px) and (max-width: 1040px) {
  .registre-entete { display: none; }
  .tableau--registre colgroup, .tableau--registre thead { display: none; }
  .tableau--registre, .tableau--registre tbody { display: block; width: 100%; }
  .tableau--registre tr.ligne-point { display: grid; grid-template-columns: 64px repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 14px 16px 16px 14px;
    border-bottom: var(--ws-hairline) solid var(--ws-line); box-shadow: inset 4px 0 0 var(--lp, transparent); }
  .tableau--registre tr.ligne-point:last-child { border-bottom: 0; }
  .tableau--registre tr.ligne-point--retard { background: var(--retard-fond); }
  .tableau--registre tr.ligne-point td { display: block; border: 0; padding: 0; background: none; box-shadow: none; min-width: 0; }
  .tableau--registre tr.ligne-point td.cellule-no { grid-row: 1 / span 3; padding-top: 2px; font-size: 14px; }
  .tableau--registre tr.ligne-point td.cellule-titre { grid-column: 2 / -1; }
  .tableau--registre tr.ligne-point td.cellule-titre .tableau__titre { font-size: 16px; }
  .tableau--registre tr.ligne-point td[data-label]:not(.cellule-no)::before { content: attr(data-label); display: block; margin-bottom: 3px;
    font-family: var(--ws-font-ui); font-size: 12.5px; color: var(--wspv-text-2); }
  .tableau tbody tr.ligne-point:hover td { background: none; }
}
/* Autres tableaux (intervenants, carnet, membres) : en lignes étiquetées jusqu'à 900 px, comme sur téléphone */
@media (min-width: 721px) and (max-width: 900px) {
  .tableau--empile:not(.tableau--registre) thead { display: none; }
  .tableau--empile:not(.tableau--registre), .tableau--empile:not(.tableau--registre) tbody,
  .tableau--empile:not(.tableau--registre) tr, .tableau--empile:not(.tableau--registre) td { display: block; width: 100%; }
  .tableau--empile:not(.tableau--registre) tr { padding: 12px 0; border-bottom: var(--ws-hairline) solid var(--ws-line); }
  .tableau--empile:not(.tableau--registre) tr:last-child { border-bottom: 0; }
  .tableau--empile:not(.tableau--registre) td { border: 0; padding: 4px 16px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; text-align: left; }
  .tableau--empile:not(.tableau--registre) td::before { content: attr(data-label); font-family: var(--ws-font-ui); font-size: 13px; color: var(--wspv-text-2); }
  .tableau--empile:not(.tableau--registre) td[data-label=""]::before, .tableau--empile:not(.tableau--registre) td.cellule-titre::before { content: none; }
  .tableau--empile:not(.tableau--registre) td[data-label=""], .tableau--empile:not(.tableau--registre) td.cellule-titre { grid-template-columns: minmax(0, 1fr); }
  .tableau--empile:not(.tableau--registre) td:not([data-label])::before { content: none; }
  .tableau--empile:not(.tableau--registre) td:not([data-label]) { grid-template-columns: minmax(0, 1fr); }
}
/* Écrans tactiles : cibles d'au moins 36 à 40 px (doigt, gant de chantier) */
@media (pointer: coarse) {
  .btn { min-height: 40px; }
  .btn--petit { min-height: 36px; padding-left: 12px; padding-right: 12px; }
  .bouton-icone { min-width: 40px; min-height: 40px; }
  input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; }
  .action-rapide > summary, .histo > summary, .lien-completer, .adresse-intervenant > summary, .copier-lien { min-height: 36px; display: inline-flex; align-items: center; }
  .deroulant__menu a, .deroulant__menu button { min-height: 40px; }
  .vues-predef__vue { min-height: 40px; display: inline-flex; align-items: center; }
  select.saisie, .saisie { min-height: 40px; }
}
/* 1.15.0 : un menu déroulant ouvert dans un tableau (Assistance, Quotas, adresse d'un intervenant, Renvoyer)
   n'est plus coupé par le cadre arrondi du tableau */
.carte--plate:has(details[open] > .deroulant__menu) { overflow: visible; }
.carte--plate .deroulant__menu { z-index: 30; }
/* Les boutons d'un formulaire dans un menu déroulant gardent leur forme (avant : texte nu, sans fond) */
.deroulant__menu .btn { display: inline-flex; width: auto; align-self: flex-start; height: 34px; padding: 0 14px; border: var(--ws-hairline) solid transparent;
  border-radius: var(--ws-radius-control); font-size: 13px; font-weight: 500; }
.deroulant__menu .btn--petit { height: 30px; padding: 0 12px; font-size: 12.5px; }
.deroulant__menu .btn--primaire { background: var(--ws-text); color: var(--ws-on-text); }
.deroulant__menu .btn--primaire:hover { background: var(--ws-text-strong); color: var(--ws-on-text); }
.deroulant__menu .btn--secondaire, .deroulant__menu .btn--danger { background: transparent; color: var(--ws-text); border-color: var(--ws-control-line); }
.deroulant__menu .btn--danger:hover { border-color: var(--wspv-red-text); color: var(--wspv-red-text); }
@media (pointer: coarse) { .deroulant__menu .btn { min-height: 40px; } }

/* 1.17.0 : chiffres de la plateforme et fiche d'un bureau (super-admin, sans contenu) */
.stats-plateforme { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card, 10px); background: var(--ws-surface, transparent); }
.stat__n { font-family: var(--ws-font-mono); font-size: 26px; line-height: 1.1; }
.stat__l { font-size: 13.5px; color: var(--ws-text); }
.stat__s { font-size: 12.5px; color: var(--wspv-text-2); }
.liste-def { display: grid; gap: 8px; margin: 0; }
.liste-def > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.liste-def dt { color: var(--wspv-text-2); font-size: 13.5px; }
.liste-def dd { margin: 0; overflow-wrap: anywhere; }
.stats-barre { display: flex; align-items: center; gap: 10px; }
.stats-barre meter { width: min(260px, 100%); height: 10px; }
@media (max-width: 900px) { .grille-2 { grid-template-columns: minmax(0, 1fr); } }
.stats-plateforme { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
.stats-plateforme + .aide { margin-top: 8px; }
.carte > h2 + .liste-def, .carte > h2 + .liste-simple, .carte > h2 + p { margin-top: 12px; }
.grille-2 .liste-simple { padding-left: 0; list-style: none; }

/* 1.18.0 : types de séance par ordre alphabétique, sans colonne « Ordre » */
.liste-edition--types .liste-edition__tete, .liste-edition--types .liste-edition__ligne { grid-template-columns: 96px minmax(160px, 1fr) 32px minmax(150px, auto); }
@media (max-width: 900px) { .liste-edition--types .liste-edition__ligne { grid-template-columns: 80px minmax(0, 1fr) 32px; } }

/* 1.18.0 : plusieurs responsables par point (D-136) */
.choix-orgs { border: 0; padding: 0; margin: 0; min-width: 0; }
.choix-orgs > legend { padding: 0; }
.choix-orgs__liste { display: grid; gap: 0 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); max-height: 9.5rem; overflow-y: auto;
  padding: 6px 10px; border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control); background: var(--ws-surface); }
.choix-orgs__liste .case { min-width: 0; }
.choix-orgs[data-sale] .choix-orgs__liste { border-color: var(--st-en-cours); }
.co-resp { overflow-wrap: anywhere; }
.coche--partiel { color: var(--ws-text); }
.coche--partiel .coche__case { border-color: var(--b-en-attente); color: var(--b-en-attente); font-family: var(--ws-font-mono); font-size: 11px; font-weight: 600; }

/* 1.19.0 (D-140) : points liés, sur la fiche et dans le PV */
.liens-points__titre { display: flex; align-items: center; gap: 6px; }
.liens-points__titre svg { width: 16px; height: 16px; }
.liens-points { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.liens-points li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.liens-points__lien { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.liens-points__lien .mono { margin-right: 4px; }
.liens-points__retirer { margin: 0; }
.liens-points__retirer .btn svg { width: 12px; height: 12px; }
.liens-points__ajout { margin-top: 14px; }
.liens-points__saisie { display: flex; gap: 8px; align-items: center; }
.liens-points__saisie .saisie { flex: 1 1 auto; min-width: 0; }
.point__liens { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--wspv-text-2); }
.point__liens svg { width: 13px; height: 13px; }
.point__liens a { color: var(--ws-text); }
/* 1.19.0 (D-138) : prochaine séance dans l'agenda */
.lien-agenda { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; }
.lien-agenda svg { width: 14px; height: 14px; }
.odj-envoi { margin-top: 16px; }

/* 1.19.2 : sur téléphone, « Plus » (Journal, Paramètres, Corbeille) s'ouvre sous son onglet, aligné à droite,
   au lieu du haut de l'écran ; les autres menus sont placés sous leur bouton par app.js */
@media (max-width: 720px) {
  .onglets__plus .deroulant__menu, .projet-bandeau .onglets__plus .deroulant__menu { position: absolute; left: auto; right: 0; top: calc(100% + 4px); min-width: 200px; }
  .deroulant__menu { overflow-y: auto; }
  .tete__actions .deroulant__menu { right: 16px; }
}

/* 1.20.0 : tableau de bord lisible par tous (D-143) */
.essentiel { margin-bottom: 20px; padding: 16px 18px; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card); background: var(--ws-surface); }
.essentiel h2 { font-size: 17px; margin-bottom: 10px; }
.essentiel__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.essentiel__ligne { display: flex; align-items: flex-start; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.essentiel__ligne > svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--wspv-text-2); }
.essentiel__ligne a { color: var(--ws-text); text-decoration: underline; text-decoration-color: var(--ws-control-line); text-underline-offset: 3px; }
.essentiel__ligne a:hover { text-decoration-color: currentColor; }
.essentiel__ligne--alerte, .essentiel__ligne--alerte a, .essentiel__ligne--alerte > svg { color: var(--wspv-red-text); font-weight: 500; }
.essentiel__ligne--ok > svg { color: var(--st-clos, var(--wspv-text-2)); }
.compteur { min-height: 84px; }
.compteur__valeur { font-size: 32px; }
.compteur__libelle { font-size: 14px; }
.compteur--zero .compteur__valeur { color: var(--wspv-text-2); }
.vide-ok { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--wspv-text-2); }
.vide-ok > svg { flex: none; width: 18px; height: 18px; }
.liste__quand { font-weight: 500; color: var(--ws-text); }
@media (max-width: 720px) { .essentiel { padding: 14px; } .essentiel__ligne { font-size: 15px; } .compteur__valeur { font-size: 26px; } }
/* 1.20.1 : l'essentiel sur une ligne quand la place le permet */
@media (min-width: 900px) {
  .essentiel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; padding: 12px 18px; }
  .essentiel h2 { margin-bottom: 0; font-size: 15.5px; }
  .essentiel__liste { display: flex; flex-wrap: wrap; gap: 6px 28px; }
  .essentiel__ligne { font-size: 15px; gap: 8px; }
}
/* 1.20.2 : compteur « En retard » plus rouge */
.compteur--alerte { border: 2px solid var(--ws-red); background: color-mix(in srgb, var(--ws-red) 9%, transparent); padding: 13px 15px; }
.compteur--alerte:hover { border-color: var(--ws-red); background: color-mix(in srgb, var(--ws-red) 14%, transparent); }
.compteur--alerte .compteur__valeur { font-weight: 600; }
.compteur--alerte .compteur__libelle { color: var(--wspv-red-text); font-weight: 500; }



/* 1.21.0 (D-144) : répondre sans compte, par un lien personnel */
.entete--invite { gap: 12px; }
.invite__contenu { padding-top: 24px; }
.invite__titre { font-size: 17px; margin: 22px 0 10px; }
.invite__points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.invite__points .echanges { margin-top: 4px; }
.invite__reponse { margin-top: 6px; padding-top: 12px; border-top: var(--ws-hairline) solid var(--ws-line); gap: 10px; }
.invite__fichier { max-width: 100%; font-size: 13.5px; }
.lien-acces { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12.5px; color: var(--wspv-text-2); }
.lien-acces svg { width: 13px; height: 13px; flex: none; }
.lien-acces__couper { margin: 2px 0 0; }
.marque-lien { font-size: 11.5px; padding: 1px 6px; border-radius: 4px; border: var(--ws-hairline) solid var(--ws-control-line); color: var(--wspv-text-2); }
@media (max-width: 720px) { .entete--invite { padding: 0 16px; } .invite__contenu { padding: 16px 16px 48px; } }

/* ============================================================
   1.21.1 (D-145) · statut du PV bien visible
   Pastille pleine : Diffusé bleu, Approuvé vert ; Brouillon cerclé orange ;
   Remplacé et Annulé cerclés gris. Dans l'arborescence, dans la liste des PV
   du projet, au tableau de bord et à côté du titre de la page du PV.
   ============================================================ */
.etat-pv { display: inline-flex; align-items: center; flex-shrink: 0; padding: 2px 9px; border-radius: 999px;
  font-family: var(--ws-font-ui); font-size: 12.5px; font-weight: 500; line-height: 1.35; letter-spacing: 0; white-space: nowrap;
  color: #fff; background: var(--ep, var(--b-en-attente)); }
.etat-pv--diffuse { --ep: var(--b-ouvert); }
.etat-pv--approuve { --ep: var(--b-clos); }
.etat-pv--brouillon { background: transparent; color: var(--b-a-valider); box-shadow: inset 0 0 0 1.5px var(--b-a-valider); }
.etat-pv--remplace, .etat-pv--annule { background: transparent; color: var(--wspv-text-2); box-shadow: inset 0 0 0 1px var(--b-annule); }
.etat-pv--arbre { font-size: 11px; padding: 1px 7px; line-height: 1.3; }
.etat-pv--grand { font-size: 13.5px; padding: 3px 11px; align-self: center; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .etat-pv--diffuse, :root:not([data-theme="light"]) .etat-pv--approuve { color: #17191D; }
}
:root[data-theme="dark"] .etat-pv--diffuse, :root[data-theme="dark"] .etat-pv--approuve { color: #17191D; }
.arbre__feuille .etat-pv, .arbre summary .etat-pv { margin-left: auto; }
.avis-version { flex-direction: column; gap: 4px; }
.avis-version p { margin: 0; }
.avis-version a { color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.avis-version a:hover { text-decoration-thickness: 2px; }

/* ============================================================
   1.21.2 (D-146) · onglets du projet, le plus possible en vue
   Tous dans la barre ; app.js passe sous « Plus » ceux qui ne tiennent pas.
   ============================================================ */
.projet-bandeau .onglets-barre { gap: 4px; }

/* ============================================================
   1.22.0 (D-149) · dossiers des documents du projet
   Un seul niveau. Puces de dossier sur l'onglet Fichiers et la page du
   projet ; en-tête du dossier ouvert ; « Ranger » par fichier.
   ============================================================ */
.dossiers { margin: 0 0 16px; }
.dossiers__liste { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.dossiers__liste--projet { margin-bottom: 12px; }
.dossier-puce { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 4px 10px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control);
  background: var(--ws-surface); color: var(--ws-text); font-size: 13px; text-decoration: none; }
.dossier-puce:hover { background: var(--ws-surface-2); color: var(--ws-text); }
.dossier-puce[aria-current="page"] { border-color: var(--ws-text); box-shadow: inset 0 -2px 0 var(--ws-red); font-weight: 500; }
.dossier-puce svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--wspv-text-2); }
.dossier-puce__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.dossier-puce__nb { font-family: var(--ws-font-mono); font-size: 11.5px; color: var(--wspv-text-2); }
.dossier-nouveau .deroulant__menu { left: 0; right: auto; }
.dossier-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 14px; }
.dossier-tete__titre { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 17px; }
.dossier-tete__titre svg { width: 18px; height: 18px; color: var(--wspv-text-2); }
.dossier-tete__aide { flex-basis: 100%; order: 3; margin: 0; }
.dossier-tete__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-left: auto; }
.dossier-tete__actions form { margin: 0; }
.marque-dossier { display: inline-flex; align-items: center; gap: 4px; color: var(--wspv-text-2); }
.marque-dossier svg { width: 13px; height: 13px; }
.depot__dossier { display: inline-flex; align-items: center; gap: 6px; }
.depot__dossier svg { width: 14px; height: 14px; color: var(--wspv-text-2); }
.depot__dossier .saisie--compacte { min-width: 160px; flex: 0 1 auto; }
.ranger .deroulant__menu { top: 34px; }
@media (max-width: 720px) {
  .dossier-tete__actions { margin-left: 0; }
  .dossier-puce__nom { max-width: 160px; }
}

/* ============================================================
   1.23.0 · explorateur latéral, sites et offres (D-150, D-151)
   ============================================================ */

/* Coquille : largeur réglable (explorateur.js), panneau masquable */
.coquille--arbre {
  --lx: var(--largeur-explorateur, 284px);
  grid-template-columns: var(--lx) minmax(0, 1fr);
  background: linear-gradient(to right, var(--ws-surface-2) calc(var(--lx) - .5px), var(--ws-line) calc(var(--lx) - .5px), var(--ws-line) var(--lx), var(--ws-surface) var(--lx));
}
.coquille--arbre .contenu--etroit { max-width: 1080px; margin: 0 auto; }
.coquille--replie { --lx: 36px; }
.coquille--replie > .explorateur { display: none; }
.explorateur__rouvrir {
  position: sticky; top: 56px; height: calc(100vh - 56px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 16px;
  width: 36px; border: 0; background: transparent; color: var(--wspv-text-2); cursor: pointer;
}
.explorateur__rouvrir:hover { color: var(--ws-text); background: var(--ws-surface-3); }
.explorateur__rouvrir svg { width: 16px; height: 16px; transform: scaleX(-1); }
html.redimensionnement, html.redimensionnement * { cursor: col-resize !important; user-select: none; }

.explorateur {
  position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; overflow-x: hidden;
  padding: 14px 10px 40px 12px; font-size: 13px;
}
.explorateur__tete { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 10px 4px; }
.explorateur__tete h2 { font-size: 12px; font-weight: 500; color: var(--wspv-text-2); letter-spacing: .04em; text-transform: uppercase; }
.explorateur__boutons { display: flex; align-items: center; gap: 4px; }
.bouton-icone--petit { width: 28px; height: 28px; min-width: 28px; min-height: 28px; border-color: transparent; }
.bouton-icone--petit:hover { border-color: var(--ws-control-line); }
.explorateur__recherche { position: relative; margin: 0 2px 8px; }
.explorateur__recherche input {
  width: 100%; height: 32px; padding: 0 58px 0 10px; font: inherit; font-size: 12.5px; color: var(--ws-text);
  background: var(--ws-surface); border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control);
}
.explorateur__recherche kbd {
  position: absolute; right: 7px; top: 7px; font-family: var(--ws-font-mono); font-size: 10.5px; color: var(--wspv-text-2);
  border: var(--ws-hairline) solid var(--ws-line); border-radius: 4px; padding: 0 4px; line-height: 17px; pointer-events: none;
}
.explorateur__options { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 0 4px 10px; font-size: 12px; color: var(--wspv-text-2); }
.explorateur__options label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.explorateur__aucun { padding: 6px 4px; }
.explorateur__racine, .explorateur .noeud__enfants { list-style: none; margin: 0; padding: 0; }
.explorateur .noeud__enfants { padding-left: 14px; }
.explorateur__poignee {
  position: absolute; top: 0; right: 0; width: 6px; height: 100%; cursor: col-resize;
  background: transparent; transition: background 120ms;
}
.explorateur__poignee:hover, .explorateur__poignee:focus-visible { background: var(--ws-control-line); outline: none; }

/* Nœuds */
.noeud__ligne {
  position: relative; display: flex; align-items: center; gap: 4px; min-height: 28px;
  padding: 2px 4px 2px 0; border-radius: 5px; color: var(--ws-text);
}
.noeud__ligne:hover { background: var(--ws-surface-3); }
.noeud__ligne--actif { background: var(--ws-surface); box-shadow: inset 2px 0 0 var(--ws-red); }
.noeud--dernier > .noeud__ligne { box-shadow: inset 2px 0 0 var(--ws-control-line); }
.noeud__bascule {
  flex-shrink: 0; width: 20px; height: 22px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.noeud__bascule::before {
  content: ''; width: 6px; height: 6px;
  border-right: 1.5px solid var(--wspv-text-2); border-bottom: 1.5px solid var(--wspv-text-2);
  transform: rotate(45deg); margin-top: -3px; transition: transform 120ms;
}
.noeud__bascule[aria-expanded="false"]::before { transform: rotate(-45deg); margin: 0 2px 0 0; }
.noeud__bascule:hover { background: var(--ws-surface-3); }
html:not(.js) .noeud__bascule, html:not(.js) .noeud__menu { display: none; }
.noeud__espace { flex-shrink: 0; width: 20px; }
html:not(.js) .noeud__ligne { padding-left: 6px; }
html:not(.js) .noeud__espace { display: none; }
.noeud__lien { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; padding: 3px 2px; color: inherit; text-decoration: none; }
.noeud__lien svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--wspv-text-2); }
.noeud__lien:focus-visible { outline: 2px solid var(--wspv-focus); outline-offset: 1px; border-radius: 4px; }
.noeud__lien[aria-current="page"] { font-weight: 500; }
.noeud__code { font-family: var(--ws-font-mono); font-size: 11.5px; color: var(--wspv-text-2); white-space: nowrap; }
.noeud__nom { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noeud__nom--type, .noeud__nom--groupe { font-weight: 500; }
.noeud__nom--groupe { padding: 3px 2px; }
.noeud__compte { font-family: var(--ws-font-mono); font-size: 11px; color: var(--wspv-text-2); padding: 0 2px; }
.noeud__marque { font-size: 11px; color: var(--wspv-text-2); }
.noeud__menu {
  flex-shrink: 0; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 4px;
  background: transparent; color: var(--wspv-text-2); cursor: pointer; font-size: 15px; line-height: 1;
  opacity: 0; transition: opacity 120ms;
}
.noeud__ligne:hover .noeud__menu, .noeud__menu:focus-visible, .noeud__ligne--actif .noeud__menu { opacity: 1; }
.noeud__menu:hover { background: var(--ws-surface); color: var(--ws-text); }
@media (hover: none) { .noeud__menu { opacity: 1; } }
.noeud__vide { padding: 4px 6px 4px 24px; }
.noeud[data-ferme] > .noeud__enfants { display: none; }
.explorateur--recherche .noeud--ouvert-recherche > .noeud__enfants { display: block; }
.noeud--trouve > .noeud__ligne .noeud__nom { font-weight: 500; }
.noeud .statut { font-size: 0; gap: 0; }
.noeud .statut::before { width: 7px; height: 7px; }
.noeud .etat-pv { margin-left: auto; }
.explorateur:not(.explorateur--archives) [data-archive]:not([data-chemin]) { display: none; }
.noeud[data-archive] > .noeud__ligne .noeud__nom { color: var(--wspv-text-2); }

/* Glisser-déposer */
.noeud__ligne[draggable="true"] { cursor: grab; }
.noeud__ligne--cible { background: var(--wspv-selection); box-shadow: inset 0 0 0 1.5px var(--ws-red); }
.explorateur__cible-racine {
  margin: 8px 2px 0; padding: 10px 8px; border: 1px dashed var(--ws-control-line); border-radius: 6px;
  font-size: 12px; color: var(--wspv-text-2); text-align: center;
}
.explorateur__cible-racine--cible { border-color: var(--ws-red); background: var(--wspv-selection); color: var(--ws-text); }

/* Statut d'une offre : pastille + libellé (jamais la couleur seule) */
.etat-offre { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; color: var(--ws-text); }
.etat-offre::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--eo, var(--wspv-text-2)); flex-shrink: 0; }
.etat-offre--brouillon::before { background: transparent; border: 1.5px solid var(--wspv-text-2); width: 6px; height: 6px; }
.etat-offre--envoyee { --eo: var(--st-ouvert); }
.etat-offre--acceptee { --eo: var(--m04); }
.etat-offre--en-cours { --eo: var(--st-clos); }
.etat-offre--pause { --eo: var(--st-en-cours); }
.etat-offre--terminee { --eo: var(--wspv-text-2); }
.etat-offre--archive::before { background: transparent; border: 1.5px dashed var(--wspv-text-2); width: 6px; height: 6px; }
.etat-offre--arbre { gap: 0; margin-left: auto; padding: 0 3px; }
.etat-offre--arbre::before { width: 7px; height: 7px; }
.etat-offre--grand {
  font-size: 12.5px; font-weight: 500; padding: 2px 10px 2px 9px; border-radius: 999px;
  border: var(--ws-hairline) solid var(--ws-control-line); background: var(--ws-surface);
}

/* Menu « ⋯ » et clic droit */
.menu-contextuel {
  position: fixed; z-index: 60; min-width: 200px; padding: 6px;
  display: flex; flex-direction: column;
  background: var(--ws-surface); border: var(--ws-hairline) solid var(--ws-control-line); border-radius: 9px;
}
.menu-contextuel button {
  text-align: left; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent;
  font: inherit; font-size: 13.5px; color: var(--ws-text); cursor: pointer;
}
.menu-contextuel button:hover, .menu-contextuel button:focus-visible { background: var(--ws-surface-3); outline: none; }
.menu-contextuel__danger { color: var(--wspv-red-text) !important; }

/* Fenêtre de dialogue */
.dialogue {
  width: min(460px, calc(100vw - 32px)); padding: 0; border: var(--ws-hairline) solid var(--ws-control-line);
  border-radius: var(--ws-radius-card); background: var(--ws-surface); color: var(--ws-text);
}
.dialogue::backdrop { background: rgba(20, 22, 25, .45); }
.dialogue__formulaire { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 18px; }
.dialogue__formulaire h2 { font-size: 16px; font-weight: 500; }
.dialogue__formulaire .champ input, .dialogue__formulaire .champ select { width: 100%; }
.dialogue__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.choix-statut { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; }
.choix-statut label { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.choix-statut label:hover { background: var(--ws-surface-3); }

/* Page d'un site */
.site-grille { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.site-grille__bas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.section-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.section-tete h2 { font-size: 16px; font-weight: 500; }
.fiche--lecture { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin-top: 12px; font-size: 13.5px; }
.fiche--lecture dt { color: var(--wspv-text-2); }
.fiche--lecture dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.liste-contacts { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; }
.liste-contacts li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; padding: 9px 0; border-top: var(--ws-hairline) solid var(--ws-line); }
.liste-contacts li:first-child { border-top: 0; }
.liste-contacts__nom { font-weight: 500; }
.liste-contacts .muted { grid-column: 1; }
.liste-contacts__offres { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--wspv-text-2); }
.deroulant__note { padding: 6px 10px 4px; max-width: 260px; }
@media (max-width: 1040px) {
  .coquille--arbre, .coquille--replie { grid-template-columns: minmax(0, 1fr); background: var(--ws-surface); }
  .site-grille__bas { grid-template-columns: minmax(0, 1fr); }
  .explorateur__rouvrir, .explorateur__poignee, .explorateur__masquer { display: none !important; }
  .explorateur { border-right: 0; }
  .arbre.explorateur:target { position: static; height: auto; }
}
.entete__explorateur { display: none; }
@media (max-width: 1040px) { .entete__explorateur { display: inline-flex; } }

/* ============================================================
   1.24.0 · contacts et invitations, fiches en lecture, fenêtres,
   tableaux triables, confirmation d'enregistrement (D-152 à D-154)
   ============================================================ */

/* État d'une invitation */
.etat-invitation { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.etat-invitation__date { font-size: 12px; color: var(--wspv-text-2); }
.etat-invitation__renvoi { margin: 0; }

/* Fiche d'une organisation */
.fiche-org { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 28px; align-items: start; margin-top: 8px; }
.fiche-org .section-tete { margin-bottom: 12px; }
.cellule--pile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.cellule--pile a { overflow-wrap: anywhere; }
.cellule--actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.cellule--actions .deroulant__menu { right: 0; left: auto; min-width: 220px; }
.tableau--contacts td { vertical-align: top; }
.statut--titre { font-size: 13px; font-weight: 400; color: var(--wspv-text-2); }
.deroulant__menu .deroulant__danger { color: var(--wspv-red-text); }
.deroulant__menu form { margin: 0; }
@media (max-width: 1040px) {
  .fiche-org { grid-template-columns: minmax(0, 1fr); }
  .cellule--actions { justify-content: flex-start; }
}
/* 1.24.1 : la largeur utile dépend de l'explorateur ouvert ou replié ; les coordonnées passent sous les contacts quand la place manque */
.fiche-org-cadre { container-type: inline-size; }
@container (max-width: 960px) {
  .fiche-org { grid-template-columns: minmax(0, 1fr); }
}

/* Fenêtres de dialogue : plus larges pour un contact ; ouvertes sans JavaScript, dans la page */
.dialogue--large { width: min(640px, calc(100vw - 32px)); }
.dialogue[open]:not(:modal) { position: static; margin: 24px auto; }
.dialogue .formulaire__ligne { gap: 12px; }

/* Tableaux triables */
.tri-entete {
  display: flex; width: 100%; align-items: center; gap: 4px; padding: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: inherit; cursor: pointer;
}
.tri-entete:hover { color: var(--ws-text); }
.num > .tri-entete { justify-content: flex-end; }
.tri-entete:focus-visible { outline: 2px solid var(--wspv-focus); outline-offset: 2px; border-radius: 3px; }
.tri-entete::after { content: ''; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; opacity: 0; }
th[aria-sort="ascending"] .tri-entete::after { border-bottom: 4.5px solid currentColor; opacity: .8; }
th[aria-sort="descending"] .tri-entete::after { border-top: 4.5px solid currentColor; opacity: .8; }

/* « Enregistré » : message de réussite en bas de l'écran, effacé après quelques secondes */
.messages--toast {
  position: fixed; right: 20px; bottom: 20px; z-index: 70; margin: 0;
  max-width: min(420px, calc(100vw - 32px)); transition: opacity 600ms; cursor: pointer;
}
.messages--toast .avis { background: var(--ws-surface); border: var(--ws-hairline) solid var(--ws-control-line); border-left: 3px solid var(--st-clos); }
.messages--efface { opacity: 0; }
@media (max-width: 720px) { .messages--toast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }

/* ============================================================
   1.25.0 · documents en dossiers (D-155 à D-157)
   Chemin du dossier ouvert, sous-dossiers, droits, versions,
   sélection multiple, aperçu, glisser-déposer.
   ============================================================ */
.fil-dossiers { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; }
.fil-dossiers li { display: inline-flex; align-items: center; min-width: 0; }
.fil-dossiers li + li::before { content: "/"; margin: 0 6px; color: var(--wspv-text-2); }
.fil-dossiers a { display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px; border-radius: 4px; color: var(--wspv-text-2); text-decoration: none; }
.fil-dossiers a:hover { color: var(--ws-text); background: var(--ws-surface-2); }
.fil-dossiers a svg { width: 14px; height: 14px; }
.fil-dossiers [aria-current="page"] { font-weight: 500; color: var(--ws-text); padding: 2px 4px; }
.dossier-puce__sous { font-family: var(--ws-font-mono); font-size: 11px; color: var(--wspv-text-2); }
.marque-lecture { font-family: var(--ws-font-mono); font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--wspv-text-2);
  border: var(--ws-hairline) solid currentColor; border-radius: 3px; padding: 0 4px; }
/* Glisser-déposer : le dossier visé se marque ; la ligne glissée s'estompe */
.dossier-cible--survol { outline: 2px dashed var(--st-ouvert); outline-offset: 2px; background: var(--ws-surface-2); }
.glisser-document .dossiers [data-ranger-ici] { border-style: dashed; }
tr[draggable="true"] { cursor: grab; }
tr.ligne--glissee { opacity: .45; }
tr.ligne--choisie td { background: var(--ws-surface-2); }
/* Sélection multiple */
.lot-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; padding: 8px 10px;
  border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-control); background: var(--ws-surface); }
.lot-barre--active { border-color: var(--ws-text); }
.lot-barre__compte { margin-right: auto; color: var(--wspv-text-2); }
.lot-barre--active .lot-barre__compte { color: var(--ws-text); font-weight: 500; }
.lot-barre__deplacer { display: inline-flex; align-items: center; gap: 6px; }
.lot-barre__deplacer .saisie--compacte { min-width: 150px; max-width: 260px; }
.lot-barre button:disabled { opacity: .45; cursor: default; }
.col-case { width: 34px; }
.col-case input { width: 16px; height: 16px; margin: 0; vertical-align: middle; }
/* Versions d'un document */
.badge-version { display: inline-flex; align-items: center; font-family: var(--ws-font-mono); font-size: 11px; line-height: 1; padding: 3px 5px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: 3px; color: var(--wspv-text-2); cursor: pointer; list-style: none; }
.badge-version::-webkit-details-marker { display: none; }
details.versions { display: inline-block; position: relative; }
details.versions .deroulant__menu { min-width: 300px; left: 0; right: auto; }
.deroulant--droite .deroulant__menu { right: 0; left: auto; }
/* Droits d'un dossier */
.tableau--droits { width: 100%; }
.tableau--droits td { vertical-align: middle; }
.tableau--droits td:last-child { width: 46%; }
.tableau--droits select { width: 100%; }
.liste-dossiers-modele { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.liste-dossiers-modele li { display: inline-flex; align-items: center; gap: 5px; }
.liste-dossiers-modele svg { width: 14px; height: 14px; color: var(--wspv-text-2); }
/* Aperçu d'un PDF ou d'une image */
.dialogue--apercu { width: min(1100px, calc(100vw - 32px)); height: min(860px, calc(100vh - 32px)); padding: 0; }
.dialogue--apercu[open] { display: flex; flex-direction: column; }
.apercu__tete { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.apercu__titre { margin: 0 auto 0 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.apercu__corps { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; background: var(--ws-surface-2); }
.apercu__contenu { width: 100%; height: 100%; border: 0; }
img.apercu__contenu { object-fit: contain; }
@media (max-width: 720px) {
  .lot-barre__compte { flex-basis: 100%; }
  .tableau--droits td:last-child { width: auto; }
}
/* Écran tactile : pas de glisser-déposer à expliquer */
@media (hover: none) and (pointer: coarse) {
  .aide-glisser { display: none; }
}

/* 1.25.1 · Listes du bureau (métiers, types) : le rôle « listitem » passe du formulaire à un bloc qui l'entoure ; le trait entre les lignes suit */
.liste-edition__item { border-bottom: var(--ws-hairline) solid var(--ws-line); }
.liste-edition__item:last-child { border-bottom: 0; }
.liste-edition__item > .liste-edition__ligne { border-bottom: 0; }

/* 1.25.1 · Registre : c'est la place réelle qui compte, pas la largeur de l'écran. À 1280 px avec l'explorateur
   et les filtres ouverts, il ne reste qu'environ 630 px au tableau et l'objet disparaissait sous le métier.
   Sous 960 px de place, chaque point passe en carte, comme sur tablette (mêmes règles). */
@media (min-width: 1041px) {
  .registre__resultats { container: registre-resultats / inline-size; }
  @container registre-resultats (max-width: 959px) {
    .registre-entete { display: none; }
    .tableau--registre colgroup, .tableau--registre thead { display: none; }
    .tableau--registre, .tableau--registre tbody { display: block; width: 100%; }
    .tableau--registre tr.ligne-point { display: grid; grid-template-columns: 64px repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 14px 16px 16px 14px;
      border-bottom: var(--ws-hairline) solid var(--ws-line); box-shadow: inset 4px 0 0 var(--lp, transparent); }
    .tableau--registre tr.ligne-point:last-child { border-bottom: 0; }
    .tableau--registre tr.ligne-point--retard { background: var(--retard-fond); }
    .tableau--registre tr.ligne-point td { display: block; border: 0; padding: 0; background: none; box-shadow: none; min-width: 0; }
    .tableau--registre tr.ligne-point td.cellule-no { grid-row: 1 / span 3; padding-top: 2px; font-size: 14px; }
    .tableau--registre tr.ligne-point td.cellule-titre { grid-column: 2 / -1; }
    .tableau--registre tr.ligne-point td.cellule-titre .tableau__titre { font-size: 16px; }
    .tableau--registre tr.ligne-point td[data-label]:not(.cellule-no)::before { content: attr(data-label); display: block; margin-bottom: 3px;
      font-family: var(--ws-font-ui); font-size: 12.5px; color: var(--wspv-text-2); }
    .tableau tbody tr.ligne-point:hover td { background: none; }
  }
}

/* 1.27.0 · « Prendre une photo » (appareil du téléphone) : écrans tactiles seulement ; ailleurs, « Choisir des fichiers » suffit */
.depot__photo { display: none; }
.depot__photo svg { width: 15px; height: 15px; }
html:not(.js) .depot__fichier--photo { display: none; }
@media (pointer: coarse) {
  .depot__photo { display: inline-flex; align-items: center; gap: 6px; }
  html:not(.js) .depot__fichier--photo { display: inline; }
}

/* 1.28.0 · Suggestion / dépannage */
.liste-suggestions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.liste-suggestions .suggestion { padding: 12px 0; border-top: var(--ws-hairline) solid var(--ws-line); }
.liste-suggestions .suggestion:first-child { border-top: 0; padding-top: 4px; }
.suggestion__tete { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0; font-size: 13px; font-weight: 500; }
h2.suggestion__tete { font-size: 14px; }
.suggestion__texte, .suggestion__reponse { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; font-size: 13.5px; }
.suggestion__reponse { padding: 8px 12px; border-left: 2px solid var(--ws-line); color: var(--wspv-text-2); }
.suggestion__infos { display: grid; gap: 2px; margin: 8px 0 0; color: var(--wspv-text-2); }
.suggestion__infos div { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.suggestion__infos dt { min-width: 7em; }
.suggestion__infos dd { margin: 0; overflow-wrap: anywhere; }
.suggestion__traiter { margin-top: 12px; padding-top: 12px; border-top: var(--ws-hairline) solid var(--ws-line); }

/* 1.28.0 · Explorateur : un peu de rouge (demande de Patrick) · numéros de site et de projet comme dans les titres,
   ligne de la page ouverte : icône et texte en rouge, à côté du trait rouge déjà présent */
.noeud--site > .noeud__ligne .noeud__code, .noeud--offre > .noeud__ligne .noeud__code { color: var(--wspv-red-text); }
.noeud__lien[aria-current="page"], .noeud__lien[aria-current="page"] svg { color: var(--wspv-red-text); }
fieldset.champ { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.champ > legend { padding: 0; margin-bottom: 6px; }
.pile > nav.segments { align-self: flex-start; flex-wrap: wrap; max-width: 100%; }

/* 1.29.0 (D-168) · remarque sur le PV liée à un point : repère sur le point, lien pour en faire une, renvoi dans la liste */
.marque-remarque { color: var(--wspv-red-text); font-size: 12px; font-weight: 600; }
.marque-remarque:hover { text-decoration: underline; }
.point__remarque { display: inline-flex; align-items: center; gap: 4px; min-height: 24px; font-size: 12px; color: var(--wspv-text-2); }
.point__remarque svg { width: 13px; height: 13px; }
.point__remarque:hover { color: var(--ws-text); text-decoration: underline; }
.remarque__point { margin: 2px 0 4px; font-size: 13px; color: var(--wspv-text-2); }
.remarque__point a { font-weight: 600; }

/* 1.32.0 (D-175) · photos et fichiers joints à une suggestion (vos envois, Plateforme) */
.suggestion__fichiers { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.suggestion__fichier { max-width: 100%; }
.suggestion__fichier a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--ws-line); border-radius: 8px; color: var(--ws-text); text-decoration: none; }
.suggestion__fichier a:hover { border-color: var(--ws-text); }
.suggestion__fichier svg { width: 16px; height: 16px; flex: none; }
.suggestion__fichier--image a { flex-direction: column; align-items: flex-start; padding: 6px; }
.suggestion__fichier--image img { display: block; max-width: min(220px, 100%); max-height: 140px; width: auto; height: auto; border: 1px solid var(--ws-line); border-radius: 4px; }
.suggestion__fichier-nom { overflow-wrap: anywhere; font-size: 13px; }
/* 1.32.0 · champ « Prendre une photo » : retiré (pas seulement invisible) hors écran tactile, pour le clavier et les lecteurs d'écran */
.depot__fichier--photo { display: none; }
@media (pointer: coarse) { html.js .depot__fichier--photo { display: block; } }

/* 1.32.1 · pied de page : « Aide » à côté de la version, deux liens bien séparés */
.pied__aide { display: inline-flex; align-items: center; gap: 4px; }
.pied__aide svg { width: 14px; height: 14px; }
.pied__version { padding-left: 16px; border-left: 1px solid var(--ws-line); }
@media (max-width: 640px) { .pied__version { padding-left: 0; border-left: 0; } }

/* 1.32.2 · colonne « Clôture » du registre : le bouton « Marquer fait » ne touche plus le bord (suggestion n° 1) */
.tableau--registre col.col-cloture { width: 172px; }
.tableau--registre tr > :last-child { padding-right: 18px; }
/* … et en carte (tablette, explorateur et filtres ouverts) : le bouton reste dans sa case, quitte à passer sur deux lignes */
.cloture__action .btn { max-width: 100%; height: auto; padding-top: 5px; padding-bottom: 5px; line-height: 1.25; white-space: normal; text-align: left; }

/* 1.34.0 (D-180) : chapitre sans point, en gris et replié d'office pendant la saisie ; il n'est jamais imprimé */
.chapitre--vide .chapitre__tete { border-bottom-color: var(--ws-line); }
.chapitre--vide .chapitre__tete h2 { color: var(--wspv-text-2); font-weight: 500; }
.chapitre--vide.chapitre--plie { margin-top: 4px; }
@media print { .chapitre--vide { display: none; } }

/* 1.35.0 (D-182) : revue complétée · responsable, date, statut, nouveau point, présences */
.revue__champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; }
.revue__champs select, .revue__champs input { width: 100%; min-width: 0; }
.revue__nouveau { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; margin: 0; min-width: 0; }
fieldset.revue__nouveau { padding: 10px 0 0; border: 0; border-top: var(--ws-hairline) solid var(--ws-line); }
.revue__nouveau legend { padding: 0; font-size: 13px; color: var(--wspv-text-2); }
.revue__nouveau .champ { flex: 1 1 200px; min-width: 0; margin: 0; }
.revue__nouveau .champ input, .revue__nouveau .champ select { width: 100%; min-width: 0; }
form.revue__nouveau { max-width: 880px; margin-top: 12px; }
.revue__presences { max-width: 880px; margin-bottom: 12px; }
.revue__presences summary { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; cursor: pointer; }
.revue__presences-titre { font-weight: 600; }
.revue__participants { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.revue__participants li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.revue__participant { min-width: 0; overflow-wrap: anywhere; }

/* 1.36.0 (D-183) : mail retardé ou refusé chez le destinataire */
.remise { font-weight: 500; }
.remise--refus { color: var(--wspv-red-text); }
.remise--retard { color: var(--wspv-text-2); }
.envoi-pv__etat .remise { display: block; }

/* 1.37.0 (D-184) : plans et points épinglés. Le plan reste clair dans les deux thèmes (c'est un papier). */
.plan { margin-top: 14px; }
.plan__outils { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.plan__legende { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-left: 6px; font-size: 12.5px; color: var(--wspv-text-2); }
.plan__pastille { display: inline-block; width: 10px; height: 10px; margin-left: 8px; border-radius: 50%; }
.plan__pastille--ouvert { background: #1d4ed8; }
.plan__pastille--retard { background: #c1121f; }
.plan__pastille--clos { background: #6b7280; }
.plan__cadre { max-height: 78vh; overflow: auto; background: #fff; border: var(--ws-hairline) solid var(--ws-line); border-radius: 8px; }
.plan__svg { display: block; width: 100%; height: auto; }
.plan--z2 .plan__svg { width: 180%; }
.plan--z3 .plan__svg { width: 300%; }
.plan--z4 .plan__svg { width: 480%; }
.plan--pose .plan__svg { cursor: crosshair; }
.plan__epingle { stroke: #fff; }
.plan__epingle--ouvert { fill: #1d4ed8; }
.plan__epingle--retard { fill: #c1121f; }
.plan__epingle--clos { fill: #6b7280; }
.plan__etiquette { fill: #fff; stroke: #1f2937; }
.plan__numero { fill: #111827; font-family: var(--ws-font-mono, monospace); font-weight: 600; }
.plan__halo { fill: none; stroke: #f59e0b; }
.plan__marque { fill: none; stroke: #c1121f; }
.plan__lien:focus-visible .plan__epingle { stroke: #f59e0b; }
.plan__ligne-active td { background: var(--wspv-surface-2, rgba(245, 158, 11, 0.12)); }
.plan-pose { margin-top: 12px; }
.plan-pose > summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 500; }
.plan-pose form, form.plan-pose { display: flex; flex-direction: column; gap: 10px; }
.plan-pose details > form, details.plan-pose > form { margin-top: 10px; }
.plan-position, .plan-nouveau, .plan-ajout__champs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.plan-position .champ { flex: 0 1 150px; margin: 0; }
.plan-nouveau .champ, .plan-ajout__champs .champ { flex: 1 1 200px; min-width: 0; margin: 0; }
.plan-ajout__champs .plan-ajout__page { flex: 0 1 90px; }
.plan-position input, .plan-nouveau input, .plan-nouveau select, .plan-ajout__champs input, .plan-ajout__champs select { width: 100%; min-width: 0; }
.plan-ajout h2 { font-size: 15px; margin-bottom: 6px; }
.plan__svg { max-width: none; }
.plan-pose > summary svg { flex: none; width: 16px; height: 16px; }
/* 1.38.0 (D-185) : marque « sur un plan » dans le registre, au-dessus du lien de ligne */
.marque-plan { position: relative; z-index: 2; display: inline-flex; vertical-align: middle; padding: 2px; color: var(--wspv-text-2); border-radius: 4px; }
.marque-plan:hover { color: var(--ws-text); }
.marque-plan svg { width: 14px; height: 14px; }

/* 1.39.0 (D-186) : essai gratuit */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bandeau-essai { margin-bottom: 14px; }

/* 1.39.3 (D-189) : code de contrôle de la page d'essai */
.captcha__image { display: block; max-width: 100%; height: auto; margin-bottom: 8px; border: 1px solid var(--ws-line); border-radius: 6px; background: #fafaf7; }
.captcha__saisie { max-width: 14em; letter-spacing: 0.15em; text-transform: uppercase; }

/* 1.40.0 (D-191) : activité de la plateforme, onze colonnes de chiffres */
.activite-semaines th { white-space: normal; vertical-align: bottom; font-size: .8125rem; }
.activite-semaines td.cellule-titre { white-space: nowrap; }

/* 1.42.0 (D-193) : modèles de projet du bureau */
.liste-modeles { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.liste-modeles__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: var(--ws-hairline) solid var(--ws-line); }
.liste-modeles__item:first-child { border-top: 0; }
.liste-modeles__nom { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.liste-modeles__actions { display: flex; align-items: center; gap: 8px; }
.choix-modele { margin-bottom: 16px; }
.choix-modele__ligne { display: flex; gap: 8px; flex-wrap: wrap; }
.choix-modele__ligne select { flex: 1 1 220px; min-width: 0; }

/* ============================================================
   1.42.1 (D-194) : un peu plus de rouge Wellset.
   Boutons principaux, page en cours (menu, onglets), filet en haut
   de page. Rouge des boutons assombri en clair pour tenir 4.5:1
   avec le texte blanc (5.5:1) ; en sombre, texte foncé sur rouge clair.
   ============================================================ */
:root { --wspv-rouge: #C92A1F; --wspv-rouge-fort: #A82018; --wspv-sur-rouge: #FFFFFF; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --wspv-rouge: #FF5A4D; --wspv-rouge-fort: #FF7469; --wspv-sur-rouge: #17191D; }
}
:root[data-theme="dark"] { --wspv-rouge: #FF5A4D; --wspv-rouge-fort: #FF7469; --wspv-sur-rouge: #17191D; }
.btn--primaire { background: var(--wspv-rouge); color: var(--wspv-sur-rouge); }
.btn--primaire:hover { background: var(--wspv-rouge-fort); color: var(--wspv-sur-rouge); }
.onglets a[aria-current="page"] { border-bottom-color: var(--ws-red); }
.projet-bandeau .onglets a[aria-current="page"] { background: var(--wspv-rouge); color: var(--wspv-sur-rouge); }
.segments a[aria-current="page"], .vues-predef__vue[aria-current="true"] { background: var(--wspv-rouge); color: var(--wspv-sur-rouge); }
.entete { box-shadow: inset 0 3px 0 var(--ws-red); }
body.acces { border-top: 3px solid var(--ws-red); }
@media print { .btn--primaire { background: none; color: #000; } body.acces { border-top: 0; } }

/* 1.42.2 (D-195) : le code figé d'un type de séance a le même cadre que les codes modifiables, sur fond grisé (lecture seule) */
.liste-edition__code { display: inline-flex; align-items: center; box-sizing: border-box; width: 80px; height: 30px; padding: 4px 8px; font-size: 13px;
  border: var(--ws-hairline) solid var(--ws-control-line); border-radius: var(--ws-radius-control, 6px); background: var(--ws-surface-2); color: var(--ws-text); cursor: default; }

/* 1.43.0 (D-196) : sous-sites */
.sous-sites { margin-bottom: 22px; }
.sous-sites__liste { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.sous-sites__liste li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; background: var(--ws-surface); border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card); }
.sous-sites__lien { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 100%; color: var(--ws-text); font-weight: 500; }
.sous-sites__lien svg { width: 16px; height: 16px; flex: none; }
.sous-sites__code { color: var(--wspv-red-text); }
.sous-sites__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 1.45.0 : « Prochaine séance » ne déborde plus sur l'urgence dans la saisie du PV ; raccourci lisible sur un bouton rouge */
.point__cellule .delai { white-space: normal; }
.btn--primaire .raccourci { opacity: 1; }

/* ============================================================
   1.45.1 (D-200) : contrôle d'ergonomie sur ordinateur, tablette et téléphone.
   ============================================================ */
/* PV, largeurs moyennes (tablette, ordinateur avec l'explorateur ouvert) : l'objet du point prend toute la
   largeur ; responsable, délai et statut passent dessous. Avant, l'objet tenait dans 170 px sur une tablette. */
@media (min-width: 721px) and (max-width: 1180px) {
  .point:not(.point--edition) { grid-template-columns: 22px 48px minmax(0, 1.4fr) minmax(0, 1fr) auto 30px; }
  .point:not(.point--edition) .point__titre { grid-column: 3 / 6; }
  .point:not(.point--edition) > .point__resp { grid-column: 3; grid-row: 2; padding-top: 4px; }
  .point:not(.point--edition) > .point__resp span { display: inline; margin-left: 6px; }
  .point:not(.point--edition) > .point__cellule { grid-column: 4; grid-row: 2; padding-top: 4px; }
  .point:not(.point--edition) > .point__cellule--statut-large { grid-column: 5; }
  .point:not(.point--edition) > .point__menu, .point:not(.point--edition) > .point__actions { grid-column: 6; }
}
/* Un menu déroulant qui dépasserait du bord de l'écran s'ouvre de l'autre côté (classe posée par app.js) */
@media (min-width: 721px) {
  .deroulant__menu.deroulant__menu--vers-gauche { left: auto; right: 0; }
  .deroulant__menu.deroulant__menu--vers-droite { left: 0; right: auto; }
}
/* Cibles de 24 px au moins : langues du pied de page, poignées, fil d'Ariane et liens de liste au doigt */
.pied__langues .lien-bouton { min-width: 24px; min-height: 24px; text-align: center; }
.poignee { width: 24px; }
.acces__liens a { display: inline-block; padding-block: 3px; }
.pied a { display: inline-block; padding-block: 3px; }
@media (pointer: coarse) {
  .fil a, .lien-ligne { display: inline-block; padding-block: 4px; }
  .fil { align-items: center; }
  /* Les raccourcis clavier n'ont pas de sens sur un écran tactile */
  .raccourci, .btn kbd, .recherche kbd, .explorateur__recherche kbd { display: none; }
}
/* Plus de texte sous 11 px */
.marque-interne, .marque-pdf, .marque-nouveau, .marque-modifie, .marque-lecture, .explorateur__recherche kbd { font-size: 11px; }

/* 1.46.0 (D-202) : recherche générale, ce qui est trouvé en dehors des points */
.recherche-aussi { margin-bottom: 18px; }
.recherche-aussi__familles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; margin-top: 10px; }
.recherche-aussi__famille h3 { font-size: 13px; font-weight: 600; margin: 0 0 4px; }
.recherche-aussi__famille ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.recherche-aussi__famille li { font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }

/* 1.46.1 (D-203) : carte « Modèle du projet » sans modèle */
.choix-modele__titre { font-size: 13.5px; font-weight: 500; margin: 0 0 4px; }

/* 1.46.2 (D-204) : pied de page sur téléphone remis en ordre. La règle « .pied a » de la 1.45.1 cassait « Aide »
   (icône au-dessus du mot) ; tout est aligné sur une ligne de base commune, et le pied ne passe plus sous la
   barre du navigateur sur iPhone. */
.pied__droite { align-items: center; row-gap: 8px; }
.pied a.pied__aide { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pied a, .pied__langues { line-height: 18px; }
@media (max-width: 640px) {
  .pied { flex-direction: column; gap: 10px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; }
  .pied__droite { column-gap: 18px; }
  .pied__langues { flex-basis: 100%; gap: 14px; }
}

/* 1.47.0 (D-205) : onglet Fichiers, dossiers en liste */
.dossiers-lignes { list-style: none; margin: 0 0 8px; padding: 0; border: var(--ws-hairline) solid var(--ws-line); border-radius: var(--ws-radius-card); background: var(--ws-surface); overflow: hidden; }
.dossiers-lignes li + li { border-top: var(--ws-hairline) solid var(--ws-line); }
.dossier-ligne { display: flex; align-items: center; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; min-height: 48px; padding: 10px 14px; color: var(--ws-text); text-decoration: none; }
.dossier-ligne:hover { background: var(--ws-surface-2); color: var(--ws-text); }
.dossier-ligne__nom { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; font-size: 14px; }
.dossier-ligne__nom > span:first-of-type { overflow: hidden; text-overflow: ellipsis; }
.dossier-ligne__nom svg { width: 17px; height: 17px; flex: none; color: var(--wspv-text-2); }
.dossier-ligne__meta { display: inline-flex; gap: 16px; font-size: 12.5px; color: var(--wspv-text-2); }
.dossier-ligne.dossier-cible--survol { background: var(--ws-surface-2); box-shadow: inset 3px 0 0 var(--ws-red); }
.dossiers__liste--actions { margin-bottom: 4px; }
.fichiers-hors-dossier { font-size: 13px; font-weight: 600; margin: 16px 0 8px; color: var(--wspv-text-2); }
.carnet-barre--fichiers form { flex: 1 1 320px; }
.carnet-barre--fichiers .saisie { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .dossier-ligne { padding: 10px 12px; }
  .dossier-ligne__meta { flex-basis: 100%; padding-left: 25px; }
}

/* 1.47.1 · marque Wellacta plus grande sur les pages d'accès (connexion, essai, mot de passe) */
.acces__marque { gap: 14px; margin-bottom: 14px; }
.acces__marque .symbole { width: 48px; height: 48px; }
.acces__marque .entete__produit { font-size: 30px; font-weight: 700; letter-spacing: -.02em; }
@media (max-width: 600px) {
  .acces__marque .symbole { width: 44px; height: 44px; }
  .acces__marque .entete__produit { font-size: 28px; }
}

/* 1.47.2 · nom du bureau dans l'en-tête en noir (pastille pleine, texte clair ; inversée en mode sombre) */
.selecteur-bureau { background: var(--ws-text); color: var(--ws-surface); border-color: var(--ws-text); font-weight: 600; }
summary.selecteur-bureau:hover, .deroulant[open] > summary.selecteur-bureau { background: var(--ws-text); color: var(--ws-surface); opacity: .88; }

/* 1.47.2 · en-tête sur téléphone : le nom du bureau se raccourcit (…) au lieu d'écraser les boutons ;
   le bouton Thème passe dans le menu du compte. */
.entete__droite > * { flex-shrink: 0; }
.entete__droite > .deroulant:has(> .selecteur-bureau) { flex-shrink: 1; min-width: 0; }
.selecteur-bureau { min-width: 0; }
.selecteur-bureau__nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.selecteur-bureau svg { flex-shrink: 0; }
.deroulant__theme { display: none; }
@media (max-width: 1040px) {
  .entete__droite .deroulant .selecteur-bureau { display: flex; max-width: 170px; }
  .entete__droite > .formulaire-theme { display: none; }
  .deroulant__theme { display: block; }
}
@media (max-width: 560px) {
  .entete { gap: 10px; }
  .entete__droite { gap: 6px; }
}
@media (max-width: 480px) {
  /* le symbole suffit ; la place va au nom du bureau */
  .entete__marque .entete__produit { display: none; }
}

/* 1.47.3 · marque de l'en-tête plus soignée : symbole plus grand, nom plus affirmé, filet qui la sépare du menu */
.entete__marque { gap: 11px; padding-right: 24px; margin-right: -4px; border-right: var(--ws-hairline) solid var(--ws-line); height: 28px; }
.entete__marque .symbole { width: 30px; height: 30px; }
.entete__marque .entete__produit { font-size: 19px; font-weight: 700; letter-spacing: -.025em; line-height: 1; }
.entete__marque .entete__produit b { font-weight: inherit; color: var(--ws-red); }
@media (max-width: 1040px) { .entete__marque { border-right: 0; padding-right: 0; margin-right: 0; } }
@media (max-width: 480px) { .entete__marque .symbole { width: 28px; height: 28px; } }
/* 1.47.3 · petit bouton « Actions » (carnet) : cible tactile de 40 px sur écran tactile */
@media (pointer: coarse) { .bouton-icone--petit { width: 40px; height: 40px; min-width: 40px; min-height: 40px; } }
/* 1.47.6 · « Wellacta » en deux couleurs partout (en-tête, pages d'accès, invités) */
.entete__produit b { font-weight: inherit; color: var(--ws-red); }

/* 1.47.7 · dossiers de la page du projet (« Documents du projet ») en noir, comme le nom du bureau */
.dossiers__liste--projet .dossier-puce { background: var(--ws-text); color: var(--ws-surface); border-color: var(--ws-text); font-weight: 600; }
.dossiers__liste--projet .dossier-puce:hover { background: var(--ws-text); color: var(--ws-surface); opacity: .88; }
.dossiers__liste--projet .dossier-puce svg, .dossiers__liste--projet .dossier-puce__nb { color: inherit; opacity: .8; }
.dossiers__liste--projet .dossier-puce .marque-interne { background: transparent; color: inherit; opacity: .85; }
/* 1.47.8 · onglet actif du projet : trait noir en bas (blanc en mode sombre) */
.projet-bandeau .onglets a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--ws-text); }


/* ============================================================
   1.50.0 (D-209) · Couleur du projet
   Dans les pages d'un projet, <html data-couleur="…"> remplace le rouge
   d'accent (boutons principaux, onglet en cours, filets, code du projet).
   Le rouge des retards, erreurs et alertes reste rouge : il a un sens.
   Clair : texte blanc sur la couleur (4.5:1 au moins) ; sombre : texte foncé sur couleur claire.
   ============================================================ */
:root { --wspv-accent: var(--ws-red); --wspv-accent-texte: var(--wspv-red-text); --pc-bleu: #1F5FBF; --pc-bleu-fort: #174C99; --pc-vert: #1E7A3C; --pc-vert-fort: #17612F; --pc-orange: #B45309; --pc-orange-fort: #92430A; --pc-violet: #6D3FC0; --pc-violet-fort: #5A33A0; --pc-turquoise: #0F766E; --pc-turquoise-fort: #0B5E58; --pc-graphite: #3D434A; --pc-graphite-fort: #2A2F34; --pc-sur: #FFFFFF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pc-bleu: #6EA8FF; --pc-bleu-fort: #8DBBFF; --pc-vert: #4CC27A; --pc-vert-fort: #6BD293; --pc-orange: #F59E42; --pc-orange-fort: #F8B467; --pc-violet: #B08CFF; --pc-violet-fort: #C3A6FF; --pc-turquoise: #3CC8B8; --pc-turquoise-fort: #5ED6C8; --pc-graphite: #C5CAD0; --pc-graphite-fort: #D9DDE1; --pc-sur: #17191D; } }
:root[data-theme="dark"] { --pc-bleu: #6EA8FF; --pc-bleu-fort: #8DBBFF; --pc-vert: #4CC27A; --pc-vert-fort: #6BD293; --pc-orange: #F59E42; --pc-orange-fort: #F8B467; --pc-violet: #B08CFF; --pc-violet-fort: #C3A6FF; --pc-turquoise: #3CC8B8; --pc-turquoise-fort: #5ED6C8; --pc-graphite: #C5CAD0; --pc-graphite-fort: #D9DDE1; --pc-sur: #17191D; }
:root[data-couleur="bleu"] { --wspv-rouge: var(--pc-bleu); --wspv-rouge-fort: var(--pc-bleu-fort); --wspv-sur-rouge: var(--pc-sur); --wspv-accent: var(--pc-bleu); --wspv-accent-texte: var(--pc-bleu); }
:root[data-couleur="vert"] { --wspv-rouge: var(--pc-vert); --wspv-rouge-fort: var(--pc-vert-fort); --wspv-sur-rouge: var(--pc-sur); --wspv-accent: var(--pc-vert); --wspv-accent-texte: var(--pc-vert); }
:root[data-couleur="orange"] { --wspv-rouge: var(--pc-orange); --wspv-rouge-fort: var(--pc-orange-fort); --wspv-sur-rouge: var(--pc-sur); --wspv-accent: var(--pc-orange); --wspv-accent-texte: var(--pc-orange); }
:root[data-couleur="violet"] { --wspv-rouge: var(--pc-violet); --wspv-rouge-fort: var(--pc-violet-fort); --wspv-sur-rouge: var(--pc-sur); --wspv-accent: var(--pc-violet); --wspv-accent-texte: var(--pc-violet); }
:root[data-couleur="turquoise"] { --wspv-rouge: var(--pc-turquoise); --wspv-rouge-fort: var(--pc-turquoise-fort); --wspv-sur-rouge: var(--pc-sur); --wspv-accent: var(--pc-turquoise); --wspv-accent-texte: var(--pc-turquoise); }
:root[data-couleur="graphite"] { --wspv-rouge: var(--pc-graphite); --wspv-rouge-fort: var(--pc-graphite-fort); --wspv-sur-rouge: var(--pc-sur); --wspv-accent: var(--pc-graphite); --wspv-accent-texte: var(--pc-graphite); }
/* Accents qui suivent la couleur du projet (les autres rouges gardent leur sens) */
.entete { box-shadow: inset 0 3px 0 var(--wspv-accent); }
.entete__nav a[aria-current="page"] { border-bottom-color: var(--wspv-accent); }
.onglets a[aria-current="page"] { border-bottom-color: var(--wspv-accent); }
.projet-bandeau .tete__code { background: var(--wspv-rouge); color: var(--wspv-sur-rouge); }
.arbre__feuille--actif, .noeud__ligne--actif { box-shadow: inset 2px 0 0 var(--wspv-accent); }
.deroulant__menu button[aria-current="true"], .deroulant__nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--wspv-accent); }
.dossier-puce[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--wspv-accent); }
@media (max-width: 1040px) { .entete__menu nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--wspv-accent); } }
::selection { background: var(--wspv-accent); color: var(--wspv-sur-rouge); }
/* Explorateur : le code de chaque projet dans sa couleur */
.noeud--offre[data-couleur="bleu"] > .noeud__ligne .noeud__code { color: var(--pc-bleu); }
.noeud--offre[data-couleur="vert"] > .noeud__ligne .noeud__code { color: var(--pc-vert); }
.noeud--offre[data-couleur="orange"] > .noeud__ligne .noeud__code { color: var(--pc-orange); }
.noeud--offre[data-couleur="violet"] > .noeud__ligne .noeud__code { color: var(--pc-violet); }
.noeud--offre[data-couleur="turquoise"] > .noeud__ligne .noeud__code { color: var(--pc-turquoise); }
.noeud--offre[data-couleur="graphite"] > .noeud__ligne .noeud__code { color: var(--pc-graphite); }
/* Choix de la couleur (Paramètres du projet) */
.couleurs { display: flex; flex-wrap: wrap; gap: 8px; }
.couleur { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 8px; border: var(--ws-hairline) solid var(--ws-control-line); border-radius: 999px; cursor: pointer; }
.couleur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.couleur__pastille { width: 20px; height: 20px; border-radius: 50%; background: var(--ws-red); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.couleur:has(input:checked) { border-color: var(--ws-text); box-shadow: inset 0 0 0 1px var(--ws-text); font-weight: 600; }
.couleur:has(input:focus-visible) { outline: 2px solid var(--ws-focus, var(--ws-text)); outline-offset: 2px; }
.couleur[data-couleur-pastille="rouge"] .couleur__pastille { background: #C92A1F; }
.couleur[data-couleur-pastille="bleu"] .couleur__pastille { background: var(--pc-bleu); }
.couleur[data-couleur-pastille="vert"] .couleur__pastille { background: var(--pc-vert); }
.couleur[data-couleur-pastille="orange"] .couleur__pastille { background: var(--pc-orange); }
.couleur[data-couleur-pastille="violet"] .couleur__pastille { background: var(--pc-violet); }
.couleur[data-couleur-pastille="turquoise"] .couleur__pastille { background: var(--pc-turquoise); }
.couleur[data-couleur-pastille="graphite"] .couleur__pastille { background: var(--pc-graphite); }
.noeud__lien[aria-current="page"], .noeud__lien[aria-current="page"] svg { color: var(--wspv-accent-texte); }
.couleurs .couleur { display: inline-flex; width: auto; margin: 0; }
fieldset.couleurs { flex-direction: row; align-items: center; }

/* 1.50.1 (D-209) : le code et le nom du projet dans sa couleur (registre du bureau groupé par projet, liste des projets) */
:root { --pc-rouge: var(--wspv-red-text); }
.groupe__tete[data-couleur] .groupe__titre, .groupe__tete[data-couleur] .groupe__titre .mono, .couleur-projet[data-couleur] { color: var(--pc-rouge); }
.groupe__tete[data-couleur] .groupe__titre { font-weight: 600; }
.groupe__tete[data-couleur="bleu"] .groupe__titre, .groupe__tete[data-couleur="bleu"] .groupe__titre .mono, .couleur-projet[data-couleur="bleu"] { color: var(--pc-bleu); }
.groupe__tete[data-couleur="vert"] .groupe__titre, .groupe__tete[data-couleur="vert"] .groupe__titre .mono, .couleur-projet[data-couleur="vert"] { color: var(--pc-vert); }
.groupe__tete[data-couleur="orange"] .groupe__titre, .groupe__tete[data-couleur="orange"] .groupe__titre .mono, .couleur-projet[data-couleur="orange"] { color: var(--pc-orange); }
.groupe__tete[data-couleur="violet"] .groupe__titre, .groupe__tete[data-couleur="violet"] .groupe__titre .mono, .couleur-projet[data-couleur="violet"] { color: var(--pc-violet); }
.groupe__tete[data-couleur="turquoise"] .groupe__titre, .groupe__tete[data-couleur="turquoise"] .groupe__titre .mono, .couleur-projet[data-couleur="turquoise"] { color: var(--pc-turquoise); }
.groupe__tete[data-couleur="graphite"] .groupe__titre, .groupe__tete[data-couleur="graphite"] .groupe__titre .mono, .couleur-projet[data-couleur="graphite"] { color: var(--pc-graphite); }

/* 1.50.2 · revue des points : « Précédent » à côté de « Suivant » */
.revue__precedent svg { transform: rotate(90deg); }
.revue__precedent:disabled { opacity: .45; cursor: default; }

/* 1.51.0 (D-210) · « + » d'un dossier dans l'explorateur : visible au survol, toujours au doigt */
.noeud__ajout {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 2px;
  border: 0; border-radius: 4px; background: transparent; color: var(--ws-muted); cursor: pointer; opacity: 0;
}
.noeud__ajout svg { width: 14px; height: 14px; }
.noeud__ajout:hover { background: var(--ws-hover, rgba(0,0,0,.06)); color: var(--ws-text); }
.noeud__ligne:hover .noeud__ajout, .noeud__ajout:focus-visible, .noeud__ligne--actif .noeud__ajout { opacity: 1; }
html:not(.js) .noeud__ajout { display: none; }
@media (hover: none) { .noeud__ajout { opacity: 1; } }
@media (pointer: coarse) { .noeud__ajout { width: 32px; height: 32px; } }

/* 1.53.0 (D-212) · Paramètres du projet : appliquer un modèle, retirer les chapitres vides */
.modele-projet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 12px; border-top: var(--ws-hairline) solid var(--ws-line); }
.modele-projet form.en-ligne { align-items: center; }
/* Chapitres du projet sur téléphone : le titre prend toute la ligne (il était réduit à une lettre) */
@media (max-width: 600px) {
  .cellule-titre form.en-ligne { flex-wrap: wrap; }
  .cellule-titre form.en-ligne .saisie { flex: 1 1 100%; min-width: 0; width: 100%; }
  .cellule-titre form.en-ligne .select-petit { flex: 1 1 auto; min-width: 0; }
}

/* 1.54.0 (D-213) · n° du PV en brouillon, changé à la main */
.numero-pv { flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: var(--ws-hairline) solid var(--ws-line); }
.numero-pv input.saisie { width: 6em; min-width: 0; flex: none; }
.numero-pv .aide { flex: 1 1 260px; }

/* 1.54.2 : nombre de points d'un chapitre qui en a, dans la couleur du projet */
.chapitre__compte--plein { color: var(--wspv-accent-texte, var(--wspv-accent)); font-weight: 600; }

/* 1.54.5 : code du type de séance (LD, SC, CT…) dans la couleur du projet, dans l'explorateur et en tête du PV */
.tete__code { color: var(--wspv-accent-texte); }
.noeud__compte--type { color: var(--wspv-red-text); font-weight: 600; }
.noeud--offre[data-couleur="bleu"] .noeud__compte--type { color: var(--pc-bleu); }
.noeud--offre[data-couleur="vert"] .noeud__compte--type { color: var(--pc-vert); }
.noeud--offre[data-couleur="orange"] .noeud__compte--type { color: var(--pc-orange); }
.noeud--offre[data-couleur="violet"] .noeud__compte--type { color: var(--pc-violet); }
.noeud--offre[data-couleur="turquoise"] .noeud__compte--type { color: var(--pc-turquoise); }
.noeud--offre[data-couleur="graphite"] .noeud__compte--type { color: var(--pc-graphite); }

/* 1.54.7 : fiche d'organisation du carnet plus large ; l'adresse e-mail d'un contact ne se coupe plus (grand écran) */
.contenu--etroit:has(.fiche-org-cadre) { max-width: 1440px; }
@media (min-width: 1041px) {
  .tableau--contacts .cellule--pile a[href^="mailto:"] { overflow-wrap: normal; white-space: nowrap; }
  .tableau--contacts td:nth-child(2) { min-width: 15em; }
}
/* 1.54.7 : chevron de « 3 projets » à la taille du texte (il prenait toute la largeur de la cellule) */
summary.lien-bouton { display: inline-flex; align-items: center; gap: 4px; list-style: none; }
summary.lien-bouton::-webkit-details-marker { display: none; }
summary.lien-bouton svg { width: 14px; height: 14px; flex: none; }
details[open] > summary.lien-bouton svg { transform: rotate(180deg); }
/* 1.54.7 : un code de projet (01-F2504, W15-03) ne se coupe plus dans le carnet */
.tableau--contacts .mono, .tableau--contacts .deroulant__menu .mono { white-space: nowrap; }
.tableau--contacts .deroulant__menu { min-width: 280px; }

/* 1.55.2 : contrôle complet · la couleur du projet partout où le rouge n'est pas une alerte */
.revue__numero, .sommaire .mono { color: var(--wspv-accent-texte); }
a:hover, .lien-ligne:hover, .lien-bouton:hover, .point__lien:hover, .fichier__nom:hover { color: var(--wspv-accent-texte); }
.deroulant__menu .deroulant__danger:hover, .menu-contextuel__danger:hover, .btn--danger:hover { color: var(--wspv-red-text); }
.cellule__tel { display: block; }
.cellule__tel a, .tableau--contacts .mono a, .tableau__sous a[href^="tel:"] { color: inherit; text-decoration: none; white-space: nowrap; }
.cellule--adresse:has(.cellule__tel) { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.cellule--adresse .cellule__tel { order: 1; }
.cellule--adresse > details, .cellule--adresse > form { order: 2; }
/* 1.55.2 : intervenants · l'adresse e-mail ne se coupe plus au milieu d'un mot sur grand écran */
@media (min-width: 1241px) { .cellule--adresse > a[href^="mailto:"] { overflow-wrap: normal; white-space: nowrap; } }

/* 1.56.0 (D-219) : texte avant les points */
.intro-pv { margin: 8px 0 16px; }
.intro-pv textarea { width: 100%; min-height: 3.2em; resize: vertical; }
.intro-pv--lecture { padding: 12px 16px; border-left: 3px solid var(--wspv-accent); background: var(--ws-surface-2, transparent); white-space: normal; }
.intro-pv--lecture p { margin: 0; }
@media print { .intro-pv--lecture { border-left-color: #000; } }

/* 1.56.2 : explorateur · sites et projets du premier niveau en gras (aussi sous un groupe de maître d'ouvrage) */
.explorateur__racine > li > .noeud__ligne .noeud__nom,
.explorateur__racine > .noeud--groupe > .noeud__enfants > li > .noeud__ligne .noeud__nom { font-weight: 600; }
