/* Hub de l'éditeur (V0.99.92) : la charte de l'outil (fond clair, cartes blanches à ombre douce, bleu d'action, boutons en
   pilule, Figtree), en console : barre latérale, file « À traiter », portefeuille de clients. Texte 16 px, cibles de 44 px. */
/* Figtree (SIL Open Font License), police variable servie par le hub : aucun appel à un site tiers */
@font-face { font-family: Figtree; src: url("polices/figtree.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
:root {
  --fond: #F6F7FA; --surface: #FFFFFF; --surface-2: #F3F4F8; --encre: #1D2030; --attenue: #5D6277; --trait: #E1E3EA; --trait-leger: #ECEEF3; --champ: #BFC3D0;
  --bleu: #4F5BD5; --bleu-fonce: #3A44A6; --bleu-clair: #EEF0FB; --bleu-trait: #C9CDF2;
  --vert: #1F8A5B; --vert-fonce: #176A46; --vert-clair: #E4F5EC;
  --ambre: #74500A; --ambre-vif: #D18F0A; --ambre-clair: #FFF5DF;
  --rouge: #A3271F; --rouge-clair: #FCE8E6;
  --neutre: #A6ABB8;
  --rayon: 12px; --rayon-petit: 8px;
  --ombre: 0 1px 2px rgba(29, 32, 48, .06), 0 4px 14px rgba(29, 32, 48, .05);
  --ombre-haute: 0 2px 4px rgba(29, 32, 48, .06), 0 12px 28px rgba(29, 32, 48, .10);
  --police: Figtree, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--champ) transparent; }
body { margin: 0; background: var(--fond); color: var(--encre); font: 16px/1.5 var(--police); }
::selection { background: var(--bleu-clair); color: var(--encre); }
input, select, textarea, meter { accent-color: var(--bleu); caret-color: var(--bleu); }
a { color: var(--bleu-fonce); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; font-weight: 700; }
h1 { font-size: 30px; line-height: 1.2; text-wrap: balance; }
h2 { font-size: 19px; line-height: 1.3; }
h3 { font-size: 16px; margin: 22px 0 8px; }
p { margin: 8px 0; }
code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 15px; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.evitement { position: absolute; left: -9999px; } .evitement:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 40; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.faible { color: var(--attenue); font-size: 14px; }

/* ---------- Cadre ---------- */
.cadre { display: flex; min-height: 100vh; }
.cote { width: 248px; flex: none; background: var(--surface); border-right: 1px solid var(--trait); display: flex; flex-direction: column; padding: 22px 14px 18px; position: sticky; top: 0; height: 100vh; }
.marque { padding: 0 12px 22px; }
.marque span { display: block; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.marque small { color: var(--attenue); font-size: 13px; }
.cote nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.cote nav a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 14px; border-radius: 999px; color: #2C2F3A; text-decoration: none; font-weight: 500; transition: background-color .15s ease-out, color .15s ease-out; }
.cote nav a:hover { background: var(--surface-2); color: var(--encre); }
.cote nav a[aria-current="page"] { background: var(--bleu-clair); color: var(--bleu-fonce); font-weight: 700; }
.cote nav svg, .icone { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.titre-menu { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--attenue); margin: 22px 14px 6px; }
.compteur { margin-left: auto; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--rouge); color: #fff; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; }
.compteur.doux { background: var(--bleu); }
.moi { border-top: 1px solid var(--trait); padding: 14px 14px 0; font-size: 14px; display: flex; flex-direction: column; gap: 4px; color: var(--attenue); }
.moi strong { display: block; color: var(--encre); font-size: 15px; }
.moi .lien { align-self: flex-start; min-height: 44px; }
.menu-mobile { display: none; }

main { flex: 1; min-width: 0; padding: 32px 36px 72px; outline: none; }
.page { max-width: 1200px; margin: 0 auto; }
.entete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 22px; }
.entete .sous { color: var(--attenue); margin: 6px 0 0; max-width: 720px; }
.fil { font-size: 15px; margin: 0 0 12px; } .fil a { text-decoration: none; font-weight: 600; } .fil a:hover { text-decoration: underline; }

/* ---------- Cartes ---------- */
.carte { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 22px 24px; margin: 0 0 18px; }
.carte-tete { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.colonnes { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; }

/* ---------- File « À traiter » ---------- */
.file { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.point-file { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 18px; }
.point-file strong { display: block; }
.point-file .detail { color: var(--attenue); font-size: 14px; }
.pastille-etat { width: 12px; height: 12px; border-radius: 50%; background: var(--neutre); }
.ko .pastille-etat { background: var(--rouge); } .alerte .pastille-etat { background: var(--ambre-vif); } .info .pastille-etat { background: var(--bleu); } .ok .pastille-etat { background: var(--vert); }
.carte .file { gap: 0; }
.carte .point-file { box-shadow: none; border-radius: 0; padding: 14px 0; border-top: 1px solid var(--trait-leger); }
.carte .point-file:first-child { border-top: 0; padding-top: 4px; }
.vide-file { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 34px 24px; text-align: center; }
.vide-file strong { display: block; font-size: 19px; color: var(--vert-fonce); }

/* ---------- Chaîne de service (signature) ---------- */
.chaine { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: start; margin: 10px 0 2px; }
.station { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 13px; color: var(--attenue); min-width: 0; }
.station::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 4px; background: var(--seg, var(--vert)); border-radius: 2px; }
.station:first-child::before { display: none; }
.station i { position: relative; z-index: 1; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 4px solid var(--c, var(--vert)); margin-bottom: 6px; }
.station span { max-width: 100%; padding: 0 4px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
.station small { color: var(--rouge); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.station.ko { --c: var(--rouge); --seg: var(--rouge); } .station.attente { --c: var(--ambre-vif); --seg: var(--ambre-vif); } .station.neutre { --c: var(--neutre); --seg: var(--trait); }
.station.ko span { color: var(--rouge); font-weight: 600; }
.chaine.grande .station { font-size: 14px; } .chaine.grande .station i { width: 22px; height: 22px; } .chaine.grande .station::before { top: 9px; height: 5px; }
.plateforme-sante { padding: 14px 0; border-top: 1px solid var(--trait-leger); }
.plateforme-sante:first-of-type { border-top: 0; padding-top: 0; }
.plateforme-sante .ligne-titre { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.plateforme-sante .ligne-titre a { font-weight: 700; color: var(--encre); text-decoration: none; }
.plateforme-sante .ligne-titre a:hover { text-decoration: underline; }

/* ---------- Ce mois ---------- */
.mois { list-style: none; margin: 0; padding: 0; }
.mois li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid var(--trait-leger); }
.mois li:first-child { border-top: 0; }
.mois b { font-variant-numeric: tabular-nums; }

/* ---------- Barre d'outils, filtres ---------- */
.outils { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 18px; }
.recherche { flex: 0 1 320px; min-width: 220px; position: relative; }
.recherche svg { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; color: var(--attenue); pointer-events: none; }
.recherche input[type=search] { padding-left: 42px; border-radius: 999px; background: var(--surface); }
.pilules { display: flex; flex-wrap: wrap; gap: 6px; }
.pilule { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--trait); background-color: var(--surface); font: inherit; font-size: 15px; font-weight: 600; color: #2C2F3A; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pilule:hover { border-color: var(--bleu-trait); }
.pilule[aria-pressed="true"] { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.pilule .n { font-variant-numeric: tabular-nums; opacity: .8; }
select.pilule { width: auto; min-height: 44px; padding: 0 40px 0 16px; }
.bascule { margin-left: auto; display: inline-flex; border: 1px solid var(--trait); border-radius: 999px; background: var(--surface); padding: 2px; }
.bascule button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--attenue); cursor: pointer; }
.bascule button[aria-pressed="true"] { background: var(--bleu-clair); color: var(--bleu-fonce); }

/* ---------- Portefeuille ---------- */
.portefeuille { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.licence { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px 22px; color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 12px; transition: box-shadow .18s ease-out, transform .18s ease-out; }
.licence:hover { box-shadow: var(--ombre-haute); transform: translateY(-1px); }
.licence .tete { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.licence h2 { font-size: 19px; }
.licence .periode { color: var(--attenue); font-size: 14px; margin: 2px 0 0; }
.jauge-ligne { display: flex; justify-content: space-between; font-size: 14px; color: var(--attenue); }
.jauge-ligne b { color: var(--encre); font-variant-numeric: tabular-nums; }
meter { width: 100%; height: 8px; display: block; margin-top: 5px; border: 0; border-radius: 99px; background: var(--trait-leger); }
meter::-webkit-meter-bar { background: var(--trait-leger); border: 0; border-radius: 99px; height: 8px; }
meter::-webkit-meter-optimum-value { background: var(--bleu); border-radius: 99px; }
meter::-webkit-meter-suboptimum-value { background: var(--ambre-vif); border-radius: 99px; }
meter::-webkit-meter-even-less-good-value { background: var(--rouge); border-radius: 99px; }
meter::-moz-meter-bar { background: var(--bleu); border-radius: 99px; }
meter:-moz-meter-sub-optimum::-moz-meter-bar { background: var(--ambre-vif); }
meter:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: var(--rouge); }
.licence .problemes { font-size: 14px; color: var(--rouge); font-weight: 600; margin: 0; }
.licence .problemes.alerte { color: var(--ambre); }

/* ---------- Pastilles ---------- */
.pastille { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--attenue); }
.pastille::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pastille.ok { background: var(--vert-clair); color: var(--vert-fonce); } .pastille.alerte { background: var(--ambre-clair); color: var(--ambre); }
.pastille.ko { background: var(--rouge-clair); color: var(--rouge); } .pastille.info { background: var(--bleu-clair); color: var(--bleu-fonce); }

/* ---------- Tableaux ---------- */
.tableau { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--trait-leger); vertical-align: middle; }
th { color: var(--attenue); font-weight: 600; font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }
tr.cliquable { cursor: pointer; } tr.cliquable:hover td { background: var(--surface-2); }
td .second { display: block; color: var(--attenue); font-size: 13px; }
.vide { color: var(--attenue); padding: 18px 10px; }
.jauge-cellule { min-width: 190px; }

/* ---------- Formulaires ---------- */
label { display: block; font-weight: 600; margin: 14px 0 6px; }
.aide { display: block; font-weight: 400; color: var(--attenue); font-size: 14px; margin-top: 2px; }
.rang { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 18px; align-items: end; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 8px 14px; font: inherit; color: inherit; background: var(--surface); border: 1px solid var(--champ); border-radius: var(--rayon-petit); transition: border-color .15s ease-out; }
input:hover, select:hover, textarea:hover { border-color: #9DA2B3; }
input:focus, select:focus, textarea:focus { border-color: var(--bleu); outline: 3px solid var(--bleu-clair); outline-offset: 0; }
input[readonly], input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--attenue); }
input::placeholder, textarea::placeholder { color: #767B8E; }
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235D6277' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; }
.cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 16px; margin: 4px 0; }
.case { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0; min-height: 44px; cursor: pointer; }
.case input { width: 20px; height: 20px; flex: none; margin: 0; }
.bloc-form { border-top: 1px solid var(--trait-leger); margin-top: 22px; padding-top: 6px; }
.bloc-form:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.bloc-form > h3:first-child { margin-top: 16px; }

/* ---------- Boutons ---------- */
.bouton { min-height: 46px; padding: 0 20px; font: inherit; font-weight: 600; border-radius: 999px; border: 1px solid var(--champ); background: var(--surface); color: var(--encre); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap; transition: background-color .15s ease-out, border-color .15s ease-out, color .15s ease-out; }
.bouton:hover { border-color: var(--bleu); color: var(--bleu-fonce); }
.bouton:active { transform: translateY(1px); }
.bouton.principal { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.bouton.principal:hover { background: var(--bleu-fonce); border-color: var(--bleu-fonce); color: #fff; }
.bouton.danger { color: var(--rouge); } .bouton.danger:hover { border-color: var(--rouge); color: var(--rouge); }
.bouton.petit { min-height: 44px; padding: 0 16px; font-size: 15px; }
.bouton:disabled, .bouton[aria-busy="true"] { opacity: .55; cursor: default; }
.bouton .icone { width: 18px; height: 18px; }
.lien { background: none; border: 0; padding: 0; font: inherit; color: var(--bleu-fonce); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.actions.fin { justify-content: flex-end; }

/* ---------- Messages, secrets ---------- */
.message { padding: 12px 16px; border-radius: var(--rayon-petit); margin: 12px 0; }
.message.ko { background: var(--rouge-clair); color: var(--rouge); } .message.ok { background: var(--vert-clair); color: var(--vert-fonce); } .message.info { background: var(--bleu-clair); color: var(--bleu-fonce); }
.secret-bloc { background: var(--ambre-clair); border-radius: var(--rayon); padding: 20px 24px; margin: 0 0 18px; box-shadow: var(--ombre); }
.secret-bloc h2 { color: var(--ambre); }
.secret { font-family: Consolas, "Cascadia Mono", monospace; font-size: 19px; background: var(--surface); border: 1px dashed var(--ambre-vif); padding: 12px 14px; border-radius: var(--rayon-petit); word-break: break-all; display: block; margin: 10px 0; user-select: all; }

/* ---------- Fiche client ---------- */
.fiche-tete { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: flex-start; justify-content: space-between; }
.fiche-tete .titre { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.fiche-tete .infos { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--attenue); font-size: 15px; margin-top: 6px; }
.onglets { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--trait); margin: 22px 0; }
.onglet { min-height: 46px; padding: 0 16px; font-weight: 600; color: var(--attenue); border-bottom: 3px solid transparent; margin-bottom: -1px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.onglet:hover { color: var(--encre); }
.onglet[aria-current="page"] { color: var(--bleu-fonce); border-bottom-color: var(--bleu); }
.onglet .compteur { margin-left: 0; }
.licence-grande .licence-corps { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px 32px; align-items: start; margin-bottom: 18px; }
.licence-grande .jauges { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 700px) { .licence-grande .licence-corps { grid-template-columns: minmax(0, 1fr); } }
.faits { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 18px; }
.fait { background: var(--surface); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 18px; }
.fait dt { color: var(--attenue); font-size: 14px; }
.fait dd { margin: 2px 0 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
details.repli { margin-top: 18px; }
details.repli > summary { list-style: none; display: inline-flex; }
details.repli > summary::-webkit-details-marker { display: none; }
details.repli[open] > summary { margin-bottom: 10px; }

/* ---------- Assistant « Nouveau client » ---------- */
.etapes { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; counter-reset: etape; }
.etapes li { counter-increment: etape; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px 0 6px; border-radius: 999px; background: var(--surface); box-shadow: var(--ombre); color: var(--attenue); font-weight: 600; font-size: 15px; }
.etapes li::before { content: counter(etape); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: 13px; }
.etapes li[aria-current="step"] { color: var(--bleu-fonce); }
.etapes li[aria-current="step"]::before { background: var(--bleu); color: #fff; }
.etapes li.faite { color: var(--vert-fonce); }
.etapes li.faite::before { background: var(--vert-clair); color: var(--vert-fonce); }

/* ---------- Tickets ---------- */
.fil-messages { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.message-ticket { border-radius: var(--rayon); padding: 14px 18px; background: var(--surface-2); max-width: 760px; }
.message-ticket.equipe { background: var(--bleu-clair); margin-left: auto; }
.message-ticket.interne { background: var(--ambre-clair); margin-left: auto; }
.message-ticket.systeme-ligne { background: none; padding: 2px 0; color: var(--attenue); font-size: 14px; max-width: none; }
.message-ticket .qui { font-size: 13px; color: var(--attenue); margin-bottom: 4px; }
.message-ticket p { margin: 0; white-space: pre-wrap; }

/* ---------- Plateformes ---------- */
.plateformes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.plateforme .carte-tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.plateforme .carte-tete > div { min-width: 0; }
.plateforme .adresse { font-size: 14px; color: var(--attenue); overflow-wrap: anywhere; margin: 2px 0 0; }
.plateforme .adresse a { color: inherit; }
.liste-agents { list-style: none; padding: 0; margin: 12px 0 0; }
.liste-agents li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--trait-leger); font-size: 15px; }

/* ---------- Squelette de chargement ---------- */
.squelette { height: 120px; border-radius: var(--rayon); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: reflet 1.4s ease-in-out infinite; margin-bottom: 14px; box-shadow: var(--ombre); }
@keyframes reflet { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- Connexion, annonces, confirmation ---------- */
.connexion { max-width: 440px; margin: 12vh auto 0; }
.connexion .marque { padding: 0 0 6px; }
.annonce { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 8px); background: var(--encre); color: #fff; padding: 12px 20px; border-radius: 999px; opacity: 0; transition: opacity .2s ease-out, transform .2s ease-out; pointer-events: none; max-width: calc(100% - 32px); z-index: 50; box-shadow: var(--ombre-haute); }
.annonce.visible { opacity: 1; transform: translate(-50%, 0); } .annonce.ko { background: var(--rouge); }
dialog { border: 0; border-radius: var(--rayon); padding: 24px 26px; max-width: 480px; width: calc(100% - 32px); box-shadow: var(--ombre-haute); color: var(--encre); }
dialog::backdrop { background: rgba(29, 32, 48, .42); }
dialog h2 { margin-bottom: 6px; }

@media (max-width: 1100px) { .colonnes { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .cadre { flex-direction: column; }
  .cote { width: auto; height: auto; position: sticky; z-index: 20; padding: 10px 16px; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; border-right: 0; border-bottom: 1px solid var(--trait); }
  .marque { padding: 0; } .marque small { display: none; }
  .menu-mobile { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--surface); color: var(--encre); border: 1px solid var(--champ); border-radius: 999px; font: inherit; font-weight: 600; }
  .cote nav, .moi { display: none; flex-basis: 100%; }
  .cote.ouvert nav { display: flex; padding-top: 10px; } .cote.ouvert .moi { display: flex; }
  main { padding: 20px 16px 56px; }
  h1 { font-size: 24px; }
  .bascule { margin-left: 0; }
  .point-file { grid-template-columns: 12px minmax(0, 1fr); } .point-file .bouton { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { transition: none !important; animation: none !important; } }

/* Contrôle de réception (V0.99.95) : les lectures en échec sous la pastille */
.liste-ko { margin: 6px 0 0; padding-left: 18px; font-size: 13px; color: var(--rouge); }
.liste-ko li { margin: 2px 0; }

/* Mode d'emploi du hub (V0.99.96) : page de lecture, une colonne */
.page-doc { background: var(--fond); }
.doc { max-width: 820px; margin: 0 auto; padding: 32px 24px 80px; }
.doc h1 { margin: 8px 0 18px; }
.doc h2 { margin: 34px 0 10px; font-size: 22px; }
.doc h3 { margin: 24px 0 8px; font-size: 18px; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 24px; }
.doc li { margin: 4px 0; }
.doc code { background: var(--surface-2); border: 1px solid var(--trait); border-radius: 6px; padding: 1px 6px; font-family: Consolas, "Cascadia Mono", monospace; font-size: 15px; }
.doc .fil { margin: 0 0 10px; }
