/* Charte de gamme Azhiixe Lab, v2 du 25/11/2026 : les écrans de gestion, et une identité monochrome en verre
   (fond sombre gris très foncé et neutre #141414 depuis le 26/11, blanc, gris froids ; aucune couleur d'accent, ni orange ni rouge).
   À copier telle quelle dans chaque logiciel de la gamme (servie depuis la même origine, CSP « style-src 'self' »).
   Sombre par défaut ; clair avec <html data-theme="clair">.
   Aucune police ni ressource externe, aucune image en data: (les chevrons sont des dégradés CSS).
   Règles d'usage : CHARTE.md, à côté de ce fichier. */

/* ===== Jetons ===== */
:root{
  color-scheme:dark;
  --fond:#141414;--surface:#1D1D1E;--surface-2:#232326;--trait:#303034;--trait-fort:#424249;--ligne:#242427;
  --texte:#F4F4F5;--texte2:#C9C9CF;--texte3:#A1A1AA;
  --accent:#F4F4F5;--accent-survol:#D4D4D8;--sur-accent:#0A0A0A;
  --ok:#F4F4F5;
  --verre:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.022));
  --verre-survol:linear-gradient(180deg,rgba(255,255,255,.1),rgba(255,255,255,.035));
  --verre-lisere:linear-gradient(180deg,rgba(255,255,255,.24),rgba(255,255,255,.07) 38%,rgba(255,255,255,.035));
  --verre-ombre:0 12px 32px -16px rgba(0,0,0,.75);
  --bulle:linear-gradient(180deg,rgba(255,255,255,.17),rgba(255,255,255,.07));
  --bulle-ombre:inset 0 1px 0 rgba(255,255,255,.22),0 1px 3px rgba(0,0,0,.55);
  --champ-fond:rgba(255,255,255,.05);--champ-bord:rgba(255,255,255,.12);
  --barre-fond:rgba(20,20,20,.6);--barre-bord:rgba(255,255,255,.07);
  --survol:rgba(255,255,255,.06);
  --ressort:cubic-bezier(.3,1.25,.5,1);
  --rayon:10px;--rayon-carte:14px;
  --police:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono",SFMono-Regular,Menlo,Consolas,monospace;
}
[data-theme="clair"]{
  color-scheme:light;
  --fond:#FFFFFF;--surface:#F6F7F9;--surface-2:#EEF0F3;--trait:#E2E5EA;--trait-fort:#CBD0D8;--ligne:#EDEFF2;
  --texte:#0A0B0D;--texte2:#3B414B;--texte3:#69707C;
  --accent:#0A0B0D;--accent-survol:#2A2D33;--sur-accent:#FFFFFF;
  --ok:#0A0B0D;
  --verre:linear-gradient(180deg,#FFFFFF,#F7F8FA);
  --verre-survol:linear-gradient(180deg,#FFFFFF,#F2F4F7);
  --verre-lisere:linear-gradient(180deg,rgba(15,23,42,.14),rgba(15,23,42,.07));
  --verre-ombre:0 12px 30px -18px rgba(15,23,42,.3);
  --bulle:linear-gradient(180deg,#FFFFFF,#F2F4F7);
  --bulle-ombre:inset 0 1px 0 #FFFFFF,0 1px 2px rgba(15,23,42,.16),0 0 0 1px rgba(15,23,42,.08);
  --champ-fond:#FFFFFF;--champ-bord:rgba(15,23,42,.14);
  --barre-fond:rgba(255,255,255,.72);--barre-bord:rgba(15,23,42,.08);
  --survol:rgba(15,23,42,.05);
}

/* ===== Base ===== */
*{box-sizing:border-box}
/* L'attribut hidden l'emporte toujours : plusieurs composants posent leur propre display. */
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%;background:var(--fond)}
body{margin:0;background:var(--fond);color:var(--texte);font:16px/1.6 var(--police);-webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{color:var(--accent-survol)}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
h1,h2,h3{margin:0;color:var(--texte);text-wrap:balance}
p{text-wrap:pretty}
/* Dans un composant (carte, panneau), l'espacement vient du composant, pas des marges du texte. */
.verre p,.verre h1,.verre h2,.verre h3{margin:0}
.titre{font-size:28px;line-height:1.2;font-weight:600;letter-spacing:-.02em}
.sous-titre{font-size:17px;line-height:1.35;font-weight:600;letter-spacing:-.01em}
.texte-2{color:var(--texte2)}
.discret{font-size:13px;line-height:1.5;color:var(--texte3)}
.mono{font-family:var(--mono)}

/* ===== Logo : l'image « Azhiixe » suivie du nom, en texte. --logo règle la taille de l'ensemble. ===== */
.logo{--logo:93px;display:inline-flex;align-items:baseline;gap:calc(var(--logo) * .075);text-decoration:none}
.logo img{display:block;width:var(--logo);height:auto}
/* Le logo, l'en-tête et les boutons ne se sélectionnent pas à la souris, et le logo ne se glisse pas comme une image. */
.logo,.entete,.bouton,.bouton-texte,.segments,.copier{-webkit-user-select:none;user-select:none}
.logo img{-webkit-user-drag:none}
.logo span{position:relative;top:calc(var(--logo) * -.014);font-size:calc(var(--logo) * .21);line-height:1;font-weight:500;letter-spacing:-.01em;color:var(--texte)}
[data-theme="clair"] .logo img{filter:invert(1)}

/* ===== Barre d'en-tête, en verre, collée en haut ===== */
.entete{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px;padding:0 24px;border-bottom:1px solid var(--barre-bord);background:var(--barre-fond);-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%)}

/* ===== Rubriques : la navigation d'un logiciel, dans la barre d'en-tête (même grammaire que le menu du site) ===== */
.rubriques{display:flex;gap:2px;margin-left:20px;margin-right:auto}
.rubriques a{display:inline-flex;align-items:center;height:36px;padding:0 12px;border-radius:8px;font-size:14px;color:var(--texte3);text-decoration:none;white-space:nowrap;transition:background .2s,color .2s}
.rubriques a:hover{color:var(--texte);background:var(--survol)}
/* La rubrique où l'on est : le texte s'éclaire, sans bulle ni ombre (une bulle en relief fait daté). */
.rubriques a[aria-current="page"]{color:var(--texte)}

/* ===== Mise en page : .page centre le contenu ; .carte porte un écran court (connexion, confirmation) ===== */
.page{width:100%;max-width:1080px;margin:0 auto;padding:40px 24px 64px}
.carte{display:grid;gap:18px;width:100%;max-width:560px;margin:0 auto;padding:24px}
.carte-etroite{max-width:420px}
.tete-page{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin:0 0 24px}
.tete-page p{margin:6px 0 0}
.fil{margin:0 0 8px;font-size:13px;color:var(--texte3)}
.fil a{color:var(--texte3);text-decoration:none}
.fil a:hover{color:var(--texte)}

/* ===== La matière verre : remplissage, liseré de lumière (pseudo-élément masqué), ombre douce ===== */
.verre{position:relative;border-radius:var(--rayon-carte);background:var(--verre);box-shadow:var(--verre-ombre)}
.verre::before,.bouton:not(.bouton-principal)::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:var(--verre-lisere);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none}

/* ===== Boutons : un seul principal par écran (blanc plein, noir plein en clair), le reste en verre ===== */
.bouton{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:44px;padding:0 18px;border:0;border-radius:var(--rayon);background:var(--verre);color:var(--texte);font:600 15px/1 var(--police);white-space:nowrap;cursor:pointer;text-decoration:none;transition:background .2s}
.bouton:hover{background:var(--verre-survol);color:var(--texte)}
.bouton-principal{background:var(--accent);color:var(--sur-accent)}
.bouton-principal:hover{background:var(--accent-survol);color:var(--sur-accent)}
.bouton-petit{height:32px;padding:0 12px;border-radius:8px;font-size:13px}
.bouton:disabled,.bouton[aria-disabled="true"]{opacity:.5;cursor:not-allowed}
/* Une action discrète : « Mon compte » dans la barre, « Se déconnecter » en bas de Mon compte (formulaire POST). */
.bouton-texte{display:inline-flex;align-items:center;height:36px;padding:0 12px;border:0;border-radius:8px;background:none;color:var(--texte3);font:14px var(--police);white-space:nowrap;cursor:pointer;text-decoration:none}
.bouton-texte:hover{color:var(--texte);background:var(--survol)}
/* « Mon compte » à droite de l'en-tête : allumé comme une rubrique quand on y est. */
.bouton-texte[aria-current="page"]{color:var(--texte)}
/* Son texte s'aligne sur le bord, seul le fond de survol déborde : au bout de la barre, seul dans un paragraphe
   (Se déconnecter, Choisir un autre nom), ou en dernier d'un .actions (Revenir à Mon compte). */
.entete > .bouton-texte:last-child,.actions > .bouton-texte:last-child{margin-right:-12px}
p > .bouton-texte:first-child{margin-left:-12px}
/* Plusieurs liens au bout de la barre (Clés d'accès, Mon compte) : un groupe .droite, aligné sur le bord. */
.entete > .droite{display:flex;align-items:center;gap:4px;margin-right:-12px}
/* Un lien qui change de place au téléphone : deux exemplaires, l'un .seulement-bureau, l'autre .seulement-telephone. */
@media (min-width:601px){.seulement-telephone{display:none!important}}
@media (max-width:600px){.seulement-bureau{display:none!important}}
.actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:12px}

/* ===== Champs : le libellé, une aide éventuelle, le champ, l'erreur en clair dessous ===== */
.champ{display:grid;gap:6px;align-content:start}
.champ > label,.champ > .libelle{font-size:14px;color:var(--texte2)}
.champ input,.champ select,.champ textarea{width:100%;height:44px;padding:0 14px;border-radius:var(--rayon);border:1px solid var(--champ-bord);background-color:var(--champ-fond);color:var(--texte);font:inherit;font-size:15px}
.champ textarea{height:auto;min-height:88px;padding:10px 14px;line-height:1.5;resize:vertical}
.champ select{padding-right:36px;-webkit-appearance:none;appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--texte3) 50%),linear-gradient(135deg,var(--texte3) 50%,transparent 50%);background-position:calc(100% - 19px) 52%,calc(100% - 14px) 52%;background-size:5px 5px;background-repeat:no-repeat}
.champ input::placeholder,.champ textarea::placeholder{color:var(--texte3)}
.champ input:focus,.champ select:focus,.champ textarea:focus{outline:2px solid var(--accent);outline-offset:1px}
.champ .mono{font-family:var(--mono);font-size:14px}
.champ .aide{margin:0;font-size:13px;line-height:1.45;color:var(--texte3)}
/* Une erreur se voit à sa croix, au trait du champ qui s'éclaire et au texte en clair, sans couleur. */
.champ [aria-invalid="true"]{border-color:var(--texte2)}
.champ .erreur{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;line-height:1.45;color:var(--texte)}
.champ .erreur::before{content:"";flex:none;width:9px;height:9px;background:linear-gradient(45deg,transparent 41%,var(--texte) 41% 59%,transparent 59%),linear-gradient(-45deg,transparent 41%,var(--texte) 41% 59%,transparent 59%)}
.formulaire{display:grid;gap:20px;max-width:600px}
.rangee{display:grid;grid-template-columns:1fr 1fr;gap:16px}
/* Réglages avancés : repliés d'office (<details>), pour que le cas courant tienne en quelques champs. */
.avance{padding-top:14px;border-top:1px solid var(--ligne)}
.avance summary{display:inline-flex;align-items:center;gap:10px;min-height:32px;font-size:14px;color:var(--texte2);cursor:pointer;list-style:none}
.avance summary::-webkit-details-marker{display:none}
.avance summary::before{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg);transition:transform .2s}
.avance[open] summary::before{transform:rotate(45deg)}
.avance[open] > :not(summary){margin-top:16px}
/* Un groupe titré par son repère (les outils d'un accès, la fiche d'une IA). */
.groupe-tete{display:flex;align-items:center;gap:12px;margin:0 0 10px}
/* L'état d'un élément se lit à côté de son nom, pas au bout de la ligne. */
.groupe-tete .etat{margin-left:6px}

/* ===== Panneau : le verre qui porte une liste, un tableau ou un formulaire (comme les cartes du site) ===== */
.panneau{padding:4px 20px}
.panneau.espace{padding:24px}
/* Un panneau de formulaire épouse sa colonne de 600 px : aucun vide à droite sur un grand écran. */
.panneau.espace:has(> .formulaire){max-width:648px}
.panneau > .liste{border-top:0}
.panneau > .liste li:last-child,.panneau .tableau tbody tr:last-child td{border-bottom:0}
/* Deux panneaux qui se suivent (les premiers pas, puis la liste) ne se touchent jamais. */
.panneau + .panneau{margin-top:16px}

/* ===== Repère : la tuile de verre qui dit la sorte d'un élément (même tuile que les cartes du site) ===== */
.repere{display:grid;flex:none;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--bulle);box-shadow:var(--bulle-ombre);color:var(--texte)}
.repere svg{display:block;width:18px;height:18px}
/* Un vrai logo, dans ses couleurs (fichier SVG de la marque). Logo à deux versions : .pour-sombre et .pour-clair. */
.repere img{display:block;width:20px;height:20px;object-fit:contain}
/* Une marque se montre par l'icône officielle de son app (App Store), arrondie comme sur le téléphone. */
.repere.app{overflow:hidden;border-radius:22%;background:none;box-shadow:0 0 0 1px var(--trait)}
.repere.app img{width:100%;height:100%;object-fit:cover}
/* Une marque sans app : son vrai logo sur une tuile blanche, de la même forme. */
.repere.app.fond-blanc{background:#FFFFFF}
.repere.app.fond-blanc img{width:60%;height:60%;object-fit:contain}
.repere .pour-clair,[data-theme="clair"] .repere .pour-sombre{display:none}
[data-theme="clair"] .repere .pour-clair{display:block}

/* ===== Listes : une ligne par élément ; à droite, l'état puis les actions de la ligne ===== */
.liste{margin:0;padding:0;list-style:none;border-top:1px solid var(--trait)}
.sous-titre + .liste{margin-top:10px}
.liste li{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:8px 0;border-bottom:1px solid var(--ligne)}
.liste li > div:first-child{min-width:0}
.liste .nom{display:block;font-weight:500;color:var(--texte)}
.liste .detail{display:block;font-size:13px;line-height:1.4;color:var(--texte3)}
.liste .nom.mono{font-size:14px}
.liste .ident{display:flex;align-items:center;gap:14px}
/* Une ligne entière cliquable : l'.ident devient un lien (la liste complète de la carte des connexions). */
.liste a.ident{flex:1;min-width:0;color:var(--texte);text-decoration:none}
.liste a.ident:hover .nom{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* La fin de ligne : l'état, puis les actions, en deux colonnes fixes pour que les états s'alignent d'une ligne à l'autre. */
.liste .fin{display:grid;flex:none;grid-template-columns:112px 250px;align-items:center;column-gap:20px}
/* Une ligne sans état (une clé d'accès) garde ses actions dans leur colonne, au bout de la ligne. */
.liste .fin > .actions{grid-column:2}
/* Une ligne avec un état et sans action (un logiciel ouvert, une IA coupée dans les listes) : l'état va au bout de la ligne. */
.liste .fin:not(:has(> .actions)){grid-template-columns:auto}
.liste .fin .actions{gap:8px}
.cases{display:flex;flex-wrap:wrap;gap:4px 18px}
.case{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:14px;color:var(--texte2);cursor:pointer}
.case input{width:18px;height:18px;margin:0;accent-color:var(--accent)}

/* ===== Tableau (le journal) : chiffres et heures en chasse fixe, alignés =====
   Au téléphone, il défile en largeur ; avec .empile (et les classes empile-* sur les cellules), chaque ligne
   devient un bloc lisible sans défilement : voir la fin de ce fichier. */
.tableau{width:100%;overflow-x:auto}
.tableau table{width:100%;border-collapse:collapse;font-size:14px}
.tableau th,.tableau td{padding:10px 12px;text-align:left;vertical-align:middle;white-space:nowrap;border-bottom:1px solid var(--ligne)}
.tableau thead th{font-size:12.5px;font-weight:600;color:var(--texte3);border-bottom-color:var(--trait)}
.tableau td{color:var(--texte2)}
.tableau td.fort{color:var(--texte)}
.tableau .mono{font-family:var(--mono);font-size:13px}
.tableau .nombre{text-align:right;font-variant-numeric:tabular-nums}
.tableau tbody tr:hover td{background:var(--survol)}
.filtres{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0 0 16px}
.filtres .champ{min-width:200px}
.pages{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}

/* ===== Hôte de retour : l'information de sécurité, toujours en clair et bien visible ===== */
.hote{display:grid;gap:2px;padding:14px 16px;border-radius:var(--rayon);border:1px solid var(--trait-fort);background:var(--surface)}
.hote small{font-size:13px;color:var(--texte3)}
.hote strong{font:600 18px/1.35 var(--mono);color:var(--texte);word-break:break-all}

/* ===== Code à copier (adresse, jeton, commande) : « Copier » est caché sans JavaScript ===== */
.code{display:flex;align-items:flex-start;gap:12px;padding:10px 10px 10px 14px;border-radius:var(--rayon);border:1px solid var(--trait-fort);background:var(--surface)}
.code code{flex:1;min-width:0;padding:5px 0;font:13.5px/1.55 var(--mono);color:var(--texte);overflow-wrap:anywhere}
.copier{flex:none;height:32px;padding:0 12px;border:0;border-radius:8px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--trait);font:13px var(--police);color:var(--texte2);cursor:pointer}
.copier:hover{color:var(--texte)}
.jeton{display:grid;gap:12px}
/* QR code (ajouter une clé sur un autre appareil) : le SVG garde son fond blanc et sa marge de 4 modules ; le conteneur le
   centre, arrondit ses coins et le cerne d'un liseré, lisible par l'appareil photo dans les deux thèmes. */
.qr{width:192px;height:192px;margin:4px auto;border-radius:var(--rayon-carte);overflow:hidden;background:#FFFFFF;box-shadow:0 0 0 1px var(--trait)}
.qr svg{display:block;width:100%;height:100%}

/* ===== États : une forme, pas une couleur, toujours suivie d'un mot =====
   plein : bon · demi : attention ou partiel (data-niveau="juste") · croix : erreur ("non") · vide : coupé ("neutre") */
.etat{display:flex;align-items:center;gap:8px;margin:0;font-size:14px;color:var(--texte2)}
.etat::before{content:"";flex:none;width:8px;height:8px;border-radius:50%;background:var(--ok)}
.etat[data-niveau="juste"]::before{background:linear-gradient(90deg,var(--texte) 50%,transparent 50%);box-shadow:inset 0 0 0 1.5px var(--texte)}
.etat[data-niveau="non"]::before{width:9px;height:9px;border-radius:0;background:linear-gradient(45deg,transparent 41%,var(--texte) 41% 59%,transparent 59%),linear-gradient(-45deg,transparent 41%,var(--texte) 41% 59%,transparent 59%)}
.etat[data-niveau="neutre"]::before{background:transparent;box-shadow:inset 0 0 0 1.5px var(--texte3)}

/* ===== Pastille : un mot court qui signale du neuf (« Nouveau »), jamais une décoration ===== */
.pastille{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:6px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--trait-fort);font:600 11.5px/1 var(--police);color:var(--texte);vertical-align:middle}

/* ===== Tuiles (catalogue) : une carte à cocher par service, l'initiale à la place d'un logo ===== */
.tuiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.tuile{position:relative;display:grid;align-content:start;gap:10px;padding:16px;border-radius:var(--rayon-carte);background:var(--verre);box-shadow:var(--verre-ombre),inset 0 0 0 1px var(--trait);cursor:pointer}
.tuile input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.tuile:hover{background:var(--verre-survol)}
/* Deux groupes de tuiles qui se suivent (« Assistants », « Outils de code ») : de l'air entre eux. */
.tuiles + .sous-titre{margin-top:28px}
/* Sous le titre d'un groupe de tuiles, le même air que sous celui d'une liste. */
.sous-titre + .tuiles{margin-top:10px}
/* Une tuile peut aussi être un lien (<a class="tuile" href="?client=…">) : la choisie porte aria-current="page". */
a.tuile{color:var(--texte);text-decoration:none}
a.tuile:focus-visible{border-radius:var(--rayon-carte)}
.tuile:has(input:checked),.tuile[aria-current="page"]{box-shadow:var(--verre-ombre),inset 0 0 0 1.5px var(--texte)}
.tuile:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.tuile .nom{display:block;font-weight:500;color:var(--texte)}
.tuile .detail{display:block;font-size:13px;line-height:1.4;color:var(--texte3)}
.monogramme{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--bulle);box-shadow:var(--bulle-ombre);font-weight:600;color:var(--texte)}

/* ===== Étapes : une liste numérotée courte (trois étapes au plus), le numéro dans une touche discrète ===== */
.etapes{display:grid;gap:14px;margin:0;padding:0;list-style:none;counter-reset:etape}
.etapes > li{position:relative;min-height:24px;padding-left:36px;font-size:15px;line-height:24px;color:var(--texte2);counter-increment:etape}
.etapes > li::before{content:counter(etape);position:absolute;left:0;top:0;display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--trait-fort);font:600 12px/1 var(--mono);color:var(--texte)}
.etapes strong{font-weight:600;color:var(--texte)}
/* Des tuiles peuvent suivre la phrase d'une étape (« Ajoutez un premier service », puis le catalogue). */
.etapes > li > .tuiles{margin-top:12px}
/* Dans une étape, les tuiles vont par rangées de 4 (8 tuiles : deux rangées pleines), puis de 2, puis une par ligne. */
.etapes > li > .tuiles{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:900px){.etapes > li > .tuiles{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ===== Choix : un creux de verre et une bulle sous l'option choisie (glissante avec azhiixe-charte.js) =====
   Trois formes : boutons role="radio" (aria-checked), liens de page (aria-current="page"), vrais boutons radio. */
.segments{position:relative;display:flex;gap:2px;padding:3px;border-radius:9px;background:rgba(255,255,255,.035);box-shadow:inset 0 1px 2px rgba(0,0,0,.6),inset 0 0 0 1px rgba(255,255,255,.05)}
[data-theme="clair"] .segments{background:rgba(15,23,42,.045);box-shadow:inset 0 1px 2px rgba(15,23,42,.08),inset 0 0 0 1px rgba(15,23,42,.05)}
.segments button,.segments a,.segments label{position:relative;z-index:1;flex:1;min-width:0;display:inline-flex;align-items:center;justify-content:center;height:32px;padding:0 12px;border:0;border-radius:7px;background:none;color:var(--texte3);font:13px/1 var(--police);white-space:nowrap;text-decoration:none;cursor:pointer;transition:color .2s}
.segments button:hover,.segments a:hover,.segments label:hover{color:var(--texte)}
.segments button[aria-checked="true"],.segments a[aria-current="page"],.segments label:has(input:checked){color:var(--texte);background:var(--bulle);box-shadow:var(--bulle-ombre)}
.segments label input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.segments label:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
.segments.glisse button[aria-checked="true"]{background:transparent;box-shadow:none}
.segments.glisse::before{content:"";position:absolute;left:0;top:0;width:var(--l,0);height:var(--h,0);transform:translate(var(--x,0),var(--y,0));border-radius:7px;background:var(--bulle);box-shadow:var(--bulle-ombre);pointer-events:none}
.segments.glisse.anime::before{transition:transform .38s var(--ressort),width .38s var(--ressort),height .38s var(--ressort)}

/* ===== Carte des connexions : la page elle-même, comme une toile, sous la barre (les IA à gauche, le coffre au
   centre, les services à droite, reliés). Aucune boîte autour : les nœuds se posent sur le fond.
   Géométrie fixe, que le serveur reprend pour tracer les liens du SVG (aucun style en ligne, CSP oblige) :
   colonnes de 220 px, coffre de 236 px, intervalles de 110 px (plan de 896 px) ; nœuds de 60 px de haut, 40 px
   d'écart entre IA, 32 px entre services ; 20 px de marge en haut et en bas du plan. ===== */
.toile{display:grid;grid-template-columns:minmax(0,1fr) auto;min-height:calc(100vh - 64px)}
.toile-plan{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-width:0;padding:56px 40px 72px}
.reseau-tetes{display:grid;grid-template-columns:220px 1fr 220px;align-items:center;width:896px}
.reseau-tetes > div{display:flex;align-items:center;justify-content:space-between;gap:8px}
.reseau-tetes .sous-titre{margin:0;font-size:15px}
.reseau-plan{position:relative;display:grid;grid-template-columns:220px 110px 236px 110px 220px;align-items:center;width:896px;padding:20px 0}
.reseau-colonne{position:relative;z-index:1;display:flex;flex-direction:column;gap:40px}
.reseau-colonne.ia{grid-column:1}
.reseau-colonne.services{grid-column:5;gap:32px}
.reseau-plan > .coffre{position:relative;z-index:1;grid-column:3}
.reseau-liens{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.reseau-liens path{fill:none;stroke:var(--texte);stroke-width:1.4;stroke-linecap:round}
.reseau-liens .pale{stroke:var(--texte3);opacity:.32}
.reseau-liens .lecture{stroke-dasharray:.5 5;stroke-width:1.8}
.reseau-liens .coupe{stroke-dasharray:5 5}
.noeud{display:flex;align-items:center;gap:12px;height:60px;padding:0 12px;border-radius:12px;color:var(--texte);text-decoration:none}
a.noeud:hover{background:var(--verre-survol);color:var(--texte)}
.noeud .quoi{flex:1;min-width:0}
.noeud .nom{display:block;font-size:14px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.noeud .detail{display:block;font-size:12px;line-height:1.35;color:var(--texte3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.noeud .etat{font-size:12px;line-height:1.35;gap:6px;color:var(--texte3)}
.noeud .etat::before{width:7px;height:7px}
/* La sélection passe par l'adresse (?ia=… ou ?service=…) : la page revient avec le nœud allumé, les autres pâlis. */
.noeud[aria-current="true"]{box-shadow:var(--verre-ombre),0 0 0 1.5px var(--texte)}
.noeud.pale{opacity:.6}
.coffre{display:grid;gap:10px;padding:16px;border-radius:14px}
.coffre .haut{display:flex;align-items:center;gap:12px}
.coffre .nom{display:block;font-size:15px;font-weight:600;line-height:1.25}
.coffre .detail{display:block;font-size:12px;color:var(--texte3)}
.adresse{padding:8px 10px;border-radius:9px;background:var(--champ-fond);box-shadow:inset 0 0 0 1px var(--champ-bord);font:12px var(--mono);color:var(--texte2);text-align:center;white-space:nowrap}
.adresse code{font:inherit;color:inherit}
.coffre .bouton-petit{width:100%}
.toile-legende{position:absolute;left:28px;right:28px;bottom:22px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 22px;font-size:12px;color:var(--texte3)}
.toile-legende span{display:inline-flex;align-items:center;gap:8px}
.toile-legende svg{width:26px;height:6px}
.toile-legende path{fill:none;stroke:var(--texte);stroke-width:1.6;stroke-linecap:round}
.toile-legende .aide{margin-left:auto}
/* La fiche de l'élément choisi : un volet ancré à droite, de la matière de la barre. */
.fiche{position:sticky;top:64px;display:grid;align-content:start;gap:18px;width:340px;height:calc(100vh - 64px);overflow:auto;padding:24px;border-left:1px solid var(--barre-bord);background:var(--barre-fond);-webkit-backdrop-filter:blur(22px) saturate(170%);backdrop-filter:blur(22px) saturate(170%)}
.fiche p{margin:0}
.fiche-haut{display:flex;align-items:center;justify-content:space-between;margin:-8px -12px -8px 0;font-size:12px;color:var(--texte3)}
.fiche .groupe-tete{display:flex;align-items:center;gap:12px;margin:0}
.fiche .groupe-tete .sous-titre{margin:0}
.fiche .groupe-tete .etat{margin-left:auto}
.fiche .texte-2{font-size:13px;line-height:1.5}
.fiche h3{font-size:13px;font-weight:600;color:var(--texte3)}
.fiche .liste{margin-top:6px;border-top:0}
.fiche .liste li{min-height:48px;padding:6px 0}
.fiche .liste .repere{width:30px;height:30px}
.fiche .liste .detail{font-size:12px}
.fiche .actions{justify-content:flex-start}
.appels{display:grid;gap:6px;margin:6px 0 0;padding:0;list-style:none}
.appels li{display:flex;align-items:baseline;justify-content:space-between;gap:12px;font-size:12px;color:var(--texte3)}
.appels code{font:12px var(--mono);color:var(--texte2)}
/* Sous 1 360 px, le plan se resserre d'un bloc (le zoom garde la géométrie des liens). Sous 1 180 px, la même carte
   passe à la verticale (.toile-verticale) : les IA en haut, le coffre au milieu, les services en bas. 4 nœuds au plus
   par rangée : au-delà, le quatrième devient « +N » et mène à la liste complète (.reseau-listes).
   Géométrie fixe, reprise par le serveur pour les liens : plan de 343 px ; rangées de nœuds de 84 px, 10 px entre deux
   nœuds ; coffre de 150 px ; 56 px de liens au-dessus et au-dessous du coffre (plan de 430 px de haut). */
.toile-verticale,.reseau-listes{display:none}
/* Les listes suivent la carte : leur section garde la largeur de page, sans sa marge haute (deux classes, pour l'emporter
   aussi sur la marge de .page au téléphone, définie plus bas). */
.page.reseau-listes{padding-top:0}
.toile-verticale{padding:20px 16px 40px}
.tetes-v{display:flex;align-items:center;justify-content:space-between;gap:12px;width:343px;margin:0 auto 10px}
.tetes-v.bas{margin:10px auto 0}
.tetes-v .sous-titre{margin:0;font-size:15px}
.plan-v{position:relative;display:grid;grid-template-rows:84px 56px 150px 56px 84px;width:343px;margin:0 auto}
.ligne-noeuds{position:relative;z-index:1;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:10px}
.ligne-noeuds.ia{grid-row:1}
.ligne-noeuds.services{grid-row:5}
.plan-v > .coffre{position:relative;z-index:1;grid-row:3;gap:8px;align-content:center}
.noeud-carre{display:grid;justify-items:center;align-content:center;gap:5px;min-width:0;padding:8px 6px;border-radius:12px;color:var(--texte);text-align:center;text-decoration:none}
/* Un nœud seul dans sa rangée garde la largeur d'une rangée de trois, centré : son lien part toujours du milieu (x = 171,5). */
.ligne-noeuds > .noeud-carre:only-child{justify-self:center;width:calc((100% - 20px) / 3)}
.noeud-carre .repere{width:30px;height:30px}
.noeud-carre .nom{max-width:100%;font-size:12px;font-weight:600;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.noeud-carre .etat{font-size:11px;line-height:1.2;gap:5px;color:var(--texte3)}
.noeud-carre .etat::before{width:6px;height:6px}
.noeud-carre[aria-current="true"]{box-shadow:var(--verre-ombre),0 0 0 1.5px var(--texte)}
.noeud-carre.pale{opacity:.6}
.toile-verticale .toile-legende{position:static;width:343px;margin:18px auto 0;gap:8px 16px}
/* Au téléphone, la fiche de l'élément choisi se pose sous la carte, en verre. */
.toile-verticale .fiche{position:static;width:auto;max-width:343px;height:auto;margin:20px auto 0;padding:20px;border-left:0;border-radius:var(--rayon-carte);background:var(--verre);box-shadow:var(--verre-ombre);-webkit-backdrop-filter:none;backdrop-filter:none}
.section-tete{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 10px}
.section-tete .sous-titre{margin:0}
@media (max-width:1359px){.reseau-tetes,.reseau-plan{zoom:.86}}
@media (max-width:1179px){.toile{display:none}.toile-verticale,.reseau-listes{display:block}}

@media (max-width:600px){
  .titre{font-size:24px}
  .segments button,.segments a,.segments label{height:40px}
  .entete{flex-wrap:wrap;height:auto;padding:10px 16px;row-gap:6px}
  /* Au téléphone, les rubriques passent sous le logo, le texte de la première aligné sur lui (comme le site). */
  .rubriques{order:3;width:calc(100% + 12px);margin:0 0 0 -12px;overflow-x:auto}
  .page{padding:28px 16px 48px}
  .rangee{grid-template-columns:1fr}
  /* Code à copier : « Copier » passe sous le code, pour ne jamais couper une adresse en deux. */
  .code{flex-wrap:wrap}
  .code code{flex-basis:100%}
  .code .copier{margin-left:auto}
  /* Tuiles au téléphone : une par ligne, le logo à gauche du nom et du détail, chacun sur une ligne. */
  .tuiles,.etapes > li > .tuiles{grid-template-columns:1fr;gap:8px}
  .qr{width:180px;height:180px}
  .tuile{grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:10px;row-gap:0;padding:12px}
  .tuile > .repere{grid-row:span 2}
  .tuile > :not(.repere):not(input){grid-column:2;min-width:0}
  /* Une ligne de liste : l'identité, puis l'état et les actions sur une ligne, sous le nom. Si les boutons ne
     tiennent pas à côté de l'état, ils passent ensemble à la ligne, à droite, côte à côte : jamais empilés. */
  .liste li{flex-wrap:wrap;row-gap:10px;padding:12px 0}
  .liste .fin{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;width:100%}
  .liste li:has(.ident > .repere) .fin{padding-left:50px}
  .liste .fin .actions{margin-left:auto}
  /* Un tableau .empile : chaque ligne devient un bloc de trois lignes, sans en-tête de colonnes.
     1 : .empile-titre à gauche, .empile-coin à droite ; 2 : les .empile-detail, séparés par « · » ;
     3 : .empile-etat à gauche, .empile-fin à droite. Une cellule sans ces classes ne s'affiche pas. */
  .tableau.empile{overflow:visible}
  .tableau.empile table,.tableau.empile tbody{display:block}
  .tableau.empile thead{display:none}
  .tableau.empile tr{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:3px;padding:12px 0;border-bottom:1px solid var(--ligne)}
  .tableau.empile tr::before,.tableau.empile tr::after{content:"";flex-basis:100%;height:0}
  .tableau.empile tr::before{order:3}
  .tableau.empile tr::after{order:5}
  .tableau.empile td{display:none;padding:0;border:0}
  .tableau.empile tbody tr:hover td{background:none}
  .tableau.empile .empile-titre{display:block;order:1;flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis}
  .tableau.empile .empile-coin,.tableau.empile .empile-fin{display:block;font-size:12.5px;color:var(--texte3)}
  .tableau.empile .empile-coin{order:2}
  .tableau.empile .empile-detail{display:block;order:4;font-size:13px;color:var(--texte3)}
  .tableau.empile .empile-detail + .empile-detail{margin-left:-6px}
  .tableau.empile .empile-detail + .empile-detail::before{content:"·";margin-right:6px;font-family:var(--police)}
  .tableau.empile .empile-etat{display:block;order:6;flex:1 1 0;min-width:0;white-space:normal}
  .tableau.empile .empile-fin{order:7}
  .panneau .tableau.empile tbody tr:last-child{border-bottom:0}
}
/* ===== Pages d'un espace (lot 2) : texte mis en forme, aperçu d'un fichier, écart entre deux versions ===== */
/* Lu par les lecteurs d'écran, invisible à l'écran (le mot qui double un signe, par exemple). */
.cache-visuel{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
/* Bandeau : un état qui vaut pour toute la page (fichier retiré, proposition dépassée), son mot, puis son action. */
.bandeau{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;margin:0 0 20px;padding:12px 16px;border-radius:var(--rayon);border:1px solid var(--trait-fort);background:var(--surface)}
.bandeau .etat{color:var(--texte)}
.bandeau .actions{margin-left:auto}
/* Texte mis en forme : le Markdown que le serveur rend en HTML sûr, sans classe sur les balises. Une colonne de lecture
   de 70 caractères au plus ; un tableau arrive enveloppé dans .tableau, qui défile en largeur au téléphone. */
.texte-riche{max-width:70ch;font-size:16px;line-height:1.65;color:var(--texte2)}
.texte-riche > :first-child{margin-top:0}
.texte-riche > :last-child{margin-bottom:0}
.texte-riche h1,.texte-riche h2,.texte-riche h3{color:var(--texte);font-weight:600;letter-spacing:-.01em}
.texte-riche h1{margin:32px 0 12px;font-size:24px;line-height:1.25}
.texte-riche h2{margin:28px 0 10px;font-size:19px;line-height:1.3}
.texte-riche h3{margin:22px 0 8px;font-size:16px;line-height:1.4}
.texte-riche p,.texte-riche ul,.texte-riche ol,.texte-riche blockquote,.texte-riche pre,.texte-riche .tableau{margin:0 0 14px}
.texte-riche ul,.texte-riche ol{padding-left:22px}
.texte-riche li + li{margin-top:4px}
.texte-riche li::marker{color:var(--texte3)}
.texte-riche strong{font-weight:600;color:var(--texte)}
.texte-riche a{color:var(--texte)}
.texte-riche code{padding:1px 5px;border-radius:5px;background:var(--surface-2);font:.88em/1.4 var(--mono);color:var(--texte)}
.texte-riche pre{padding:12px 14px;border-radius:var(--rayon);border:1px solid var(--trait);background:var(--surface);overflow-x:auto}
.texte-riche pre code{padding:0;border-radius:0;background:none;font-size:13.5px;line-height:1.55}
.texte-riche blockquote{padding:2px 0 2px 16px;border-left:2px solid var(--trait-fort);color:var(--texte3)}
.texte-riche hr{height:1px;margin:24px 0;border:0;background:var(--trait)}
/* Aperçu d'un fichier : le chemin (dossier en retrait, nom en avant), sa version, son auteur et sa date, puis le corps
   selon le type. Un SVG se montre toujours en texte, jamais en image. */
.apercu-tete{display:grid;gap:6px;margin:0 0 20px}
.chemin{margin:0;font:600 22px/1.3 var(--mono);letter-spacing:-.01em;color:var(--texte);overflow-wrap:anywhere}
.chemin .dossier{font-weight:400;color:var(--texte3)}
.apercu-meta{margin:0;font-size:13px;line-height:1.5;color:var(--texte3)}
.apercu-texte{margin:0;padding:14px 16px;border-radius:var(--rayon);border:1px solid var(--trait);background:var(--surface);font:13.5px/1.6 var(--mono);color:var(--texte);white-space:pre-wrap;overflow-wrap:anywhere}
.apercu-image{margin:0}
.apercu-image img{display:block;max-width:100%;height:auto;border-radius:var(--rayon);box-shadow:0 0 0 1px var(--trait)}
/* Dans une liste de versions, la version affichée porte aria-current="true" et un .etat « Affichée ». */
.liste li[aria-current="true"] .nom{font-weight:600}
/* Écart entre deux versions : une seule colonne, ligne à ligne. Ajout et retrait se lisent à leur signe (+, −), à leur
   trait (plein, tirets) et à un mot pour les lecteurs d'écran, jamais à la seule teinte. */
.ecart-tete{display:grid;gap:8px;margin:0 0 16px}
.ecart-tete .raison{margin:0;padding-left:14px;border-left:2px solid var(--trait-fort);color:var(--texte2)}
.ecart{margin:0;padding:6px 0;list-style:none;border-radius:var(--rayon);border:1px solid var(--trait);background:var(--surface);font:13.5px/1.6 var(--mono);color:var(--texte2)}
.ecart li{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);padding:1px 14px 1px 0;border-left:2px solid transparent;white-space:pre-wrap;overflow-wrap:anywhere}
.ecart .signe{text-align:center;color:var(--texte3);-webkit-user-select:none;user-select:none}
.ecart .ajout{border-left:2px solid var(--texte);background:var(--survol);color:var(--texte)}
.ecart .ajout .signe{font-weight:700;color:var(--texte)}
.ecart .retrait{border-left:2px dashed var(--texte3);color:var(--texte3)}
.ecart .replie{display:block;margin:4px 0;padding:4px 14px;border-block:1px dashed var(--trait);font:12.5px/1.5 var(--police);color:var(--texte3);text-align:center}
.ecart + .actions,.ecart + .bandeau{margin-top:16px}
@media (max-width:600px){
  .texte-riche{font-size:15.5px}
  .chemin{font-size:18px}
  .ecart{font-size:12.5px}
  .ecart li{grid-template-columns:24px minmax(0,1fr);padding-right:10px}
}
/* Au doigt, toute cible fait au moins 44 px de haut. */
@media (pointer:coarse){
  .bouton-petit,.bouton-texte,.rubriques a,.copier,.segments button,.segments a,.segments label{min-height:44px}
}
@media (prefers-reduced-motion:reduce){
  .bouton,.rubriques a,.segments button,.segments a,.segments label,.segments.glisse.anime::before{transition:none}
}


/* ===== Le hub (refonte du 26/11/2026, planches validées : 2-site/maquettes/hub/) =====
   Coquille commune (barre latérale de 232 px, barre de commande, palette ⌘K), listes et rangées de 32 px, segments
   Lire / Écrire / Coupé, fiches et « À propos », filtres, réglages, confirmations, téléphone (onglets en bas).
   Tout vit sous <body class="hub"> : les pages qui ne portent pas la classe ne changent pas. Les remises à zéro du hub sont en :where(.hub),
   de spécificité nulle : un composant du site posé dans le hub (.bouton, .copier, .bouton-texte) garde son rendu. Exemples HTML : un écran
   par fichier dans maquettes/hub/ (fabriqués par fabriquer.py depuis fragments/). Noms propres au hub (aucun n'existe ailleurs dans la charte) ; seuls jetons propres au hub : rayon
   de 8 px, rangée, barre latérale, colonne, survol et rangée active ; en clair, des surfaces blanches. */
.hub{color-scheme:dark;--survol:#1B1B1C;--actif:#212123;--rayon:8px;--laterale:232px;--rangee:32px;--colonne:920px}
[data-theme="clair"] .hub{color-scheme:light;--surface:#FFFFFF;--surface-2:#F4F6F8;--survol:#F6F7F9;--actif:#EEF0F3}
:where(.hub) *{box-sizing:border-box;margin:0;padding:0}
.hub{background:var(--fond);color:var(--texte);font:13px/1.45 var(--police);-webkit-font-smoothing:antialiased}
:where(.hub) a{color:inherit}
:where(.hub) ul,:where(.hub) ol{list-style:none}
:where(.hub) button{font:inherit;color:inherit}
.hub .coquille{display:grid;grid-template-columns:var(--laterale) minmax(0,1fr);min-height:100vh}
.hub .laterale{display:flex;flex-direction:column;padding:0 8px 12px;border-right:1px solid var(--ligne)}
.hub .laterale-tete{display:flex;align-items:center;height:48px;padding:0 8px}
.hub .logo{--logo:74px;display:inline-flex;align-items:baseline;gap:calc(var(--logo) * .075);text-decoration:none}
.hub .logo img{display:block;width:var(--logo);height:auto}
.hub .logo span{position:relative;top:calc(var(--logo) * -.014);font-size:calc(var(--logo) * .21);line-height:1;font-weight:500;letter-spacing:-.01em;color:var(--texte)}
[data-theme="clair"] .hub .logo img{filter:invert(1)}
.hub .menu-rubriques{display:grid;gap:2px;margin-top:6px}
.hub .menu-rubriques.bas{margin-top:auto}
.hub .menu-rubriques a{display:flex;align-items:center;gap:10px;height:30px;padding:0 8px;border-radius:var(--rayon);color:var(--texte2);font-weight:500;text-decoration:none}
.hub .menu-rubriques a:hover{background:var(--survol);color:var(--texte)}
.hub .menu-rubriques a[aria-current="page"]{background:var(--actif);color:var(--texte)}
.hub .menu-rubriques svg{flex:none;width:16px;height:16px;color:var(--texte3)}
.hub .menu-rubriques a[aria-current="page"] svg{color:var(--texte)}
.hub .vue{display:flex;flex-direction:column;min-width:0}
.hub .barre{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;height:48px;padding:0 24px;border-bottom:1px solid var(--ligne)}
.hub .commande{display:flex;align-items:center;gap:8px;width:420px;height:30px;padding:0 5px 0 10px;border:1px solid var(--trait);border-radius:var(--rayon);background:none;color:var(--texte3);text-align:left;cursor:pointer}
.hub .commande:hover{border-color:var(--trait-fort)}
.hub .commande svg{flex:none;width:14px;height:14px}
.hub .commande span{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hub kbd{padding:3px 5px;border:1px solid var(--trait);border-radius:4px;font:500 11px/1 var(--police);color:var(--texte3)}
.hub .contenu{display:grid;gap:36px;width:100%;max-width:calc(var(--colonne) + 48px);margin:0 auto;padding:32px 24px 40px}
.hub .bloc-tete{display:flex;align-items:center;justify-content:space-between;height:32px;margin-bottom:6px}
.hub h2{display:flex;align-items:baseline;gap:8px;font-size:13px;font-weight:600}
.hub .compte{font-weight:500;color:var(--texte3)}
.hub .marque{display:block;width:16px;height:16px;border-radius:4px;outline:1px solid var(--trait);outline-offset:-1px}
.hub .liste-valider{border:1px solid var(--trait);border-radius:var(--rayon);background:var(--surface);overflow:hidden}
.hub .liste-valider li{display:grid;grid-template-columns:16px 40px minmax(0,max-content) minmax(0,1fr) auto auto;align-items:center;column-gap:10px;height:var(--rangee);padding:0 4px 0 12px}
.hub .liste-valider li + li{border-top:1px solid var(--ligne)}
.hub .sorte,.hub .meta,.hub .quand{color:var(--texte3);white-space:nowrap}
.hub .intitule{overflow:hidden;font-weight:500;white-space:nowrap;text-overflow:ellipsis}
.hub .meta{overflow:hidden;text-overflow:ellipsis}
.hub .gestes{display:flex;gap:2px}
.hub .geste,.hub .geste-texte{height:24px;padding:0 10px;border:1px solid transparent;border-radius:var(--rayon);font-weight:500;cursor:pointer}
.hub .geste{border-color:var(--trait-fort);background:var(--surface-2);color:var(--texte)}
.hub .geste-texte{background:none;color:var(--texte2)}
.hub .geste-texte:hover{background:var(--survol);color:var(--texte)}
.hub .liste-activite{border-top:1px solid var(--ligne)}
.hub .liste-activite li{display:grid;grid-template-columns:40px 16px minmax(0,1fr) 112px;align-items:center;column-gap:10px;height:var(--rangee);padding:0 12px;border-bottom:1px solid var(--ligne)}
.hub time{font:12px/1 var(--mono);color:var(--texte3)}
.hub .phrase{overflow:hidden;color:var(--texte2);white-space:nowrap;text-overflow:ellipsis}
.hub .phrase strong{font-weight:500;color:var(--texte)}
.hub .ou{display:flex;align-items:center;gap:6px;color:var(--texte3);white-space:nowrap}
.hub .ou img,.hub .ou svg{flex:none;width:14px;height:14px}
.hub .ou img{border-radius:3px;outline:1px solid var(--trait);outline-offset:-1px}
.hub .geste-principal{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:var(--rayon);background:var(--accent);color:var(--sur-accent);font-weight:600;text-decoration:none}
.hub .tuiles-ia{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}
.hub .tuiles-ia li{display:flex;align-items:center;gap:10px;height:56px;padding:0 12px;border:1px solid var(--trait);border-radius:var(--rayon);background:var(--surface)}
.hub .tuiles-ia img{flex:none;width:28px;height:28px;border-radius:7px;outline:1px solid var(--trait);outline-offset:-1px}
.hub .quoi{display:grid;gap:1px;min-width:0}
.hub .nom{overflow:hidden;font-weight:500;white-space:nowrap;text-overflow:ellipsis}
.hub .acces{display:flex;align-items:center;gap:6px;color:var(--texte3)}
.hub .forme{flex:none;width:9px;height:9px;color:var(--texte2)}
.hub .barre-gauche{justify-self:start;display:flex;align-items:center}
.hub .barre-droite{justify-self:end}
.hub .retour{display:grid;place-items:center;width:28px;height:28px;margin-left:-6px;border-radius:var(--rayon);color:var(--texte2)}
.hub .retour:hover{background:var(--survol);color:var(--texte)}
.hub .retour svg{width:16px;height:16px}
.hub .resume{color:var(--texte3)}
.hub .liste-objets{border:1px solid var(--trait);border-radius:var(--rayon);background:var(--surface);overflow:hidden}
.hub .groupe{display:flex;align-items:center;gap:8px;height:28px;padding:0 12px;border-bottom:1px solid var(--ligne);background:var(--surface-2);color:var(--texte2);font-weight:600}
.hub .ligne-objet + .groupe{border-top:1px solid var(--ligne)}
.hub .ligne-objet{display:grid;align-items:center;column-gap:10px;height:var(--rangee);padding:0 12px;color:inherit;text-decoration:none}
.hub .ligne-objet + .ligne-objet{border-top:1px solid var(--ligne)}
.hub .ligne-objet:hover{background:var(--survol)}
.hub .ligne-ia{grid-template-columns:16px minmax(0,1fr) 170px 92px 96px 16px}
.hub .ou-court{color:var(--texte3);white-space:nowrap}
.hub .fleche{display:block;width:16px;height:16px;color:var(--texte3)}
.hub .fleche svg{display:block;width:16px;height:16px}
.hub .fiche-tete{display:flex;align-items:center;gap:14px;min-height:40px}
.hub .contenu:has(> .fiche-tete){gap:24px}
.hub .fiche-tete > img{flex:none;width:40px;height:40px;border-radius:10px;outline:1px solid var(--trait);outline-offset:-1px}
.hub .fiche-tete h1{font-size:20px;line-height:1.2;font-weight:600;letter-spacing:-.01em}
.hub .fiche-gestes{display:flex;gap:6px;margin-left:auto}
.hub .fiche-gestes .geste{height:28px;padding:0 12px}
.hub .fiche-corps{display:grid;grid-template-columns:minmax(0,1fr) 232px;gap:40px;align-items:start}
.hub .fiche-principal{display:grid;gap:30px;min-width:0}
.hub .proprietes{border-top:1px solid var(--ligne)}
.hub .proprietes div{display:flex;align-items:center;justify-content:space-between;gap:12px;height:var(--rangee);border-bottom:1px solid var(--ligne)}
.hub .proprietes dt{color:var(--texte3)}
.hub .proprietes dd{display:flex;align-items:center;gap:6px;white-space:nowrap}
.hub .liste-acces{border:1px solid var(--trait);border-radius:var(--rayon);background:var(--surface);overflow:hidden}
.hub .liste-acces li{display:grid;grid-template-columns:16px 112px minmax(0,1fr) auto;align-items:center;column-gap:10px;height:var(--rangee);padding:0 4px 0 12px}
.hub .liste-acces li + li{border-top:1px solid var(--ligne)}
.hub .liste-acces .nom{font-weight:500}
.hub .detail{overflow:hidden;color:var(--texte3);white-space:nowrap;text-overflow:ellipsis}
.hub .marque-icone{display:block;width:16px;height:16px;color:var(--texte3)}
.hub .choix{display:inline-flex;gap:2px;padding:2px;border:1px solid var(--trait);border-radius:var(--rayon);background:var(--fond)}
.hub .choix button{height:20px;padding:0 9px;border:0;border-radius:6px;background:none;color:var(--texte3);font-weight:500;line-height:20px;cursor:pointer}
.hub .choix button:hover{color:var(--texte)}
.hub .choix button[aria-checked="true"]{background:var(--surface-2);color:var(--texte);outline:1px solid var(--trait-fort);outline-offset:-1px}
.hub .liste-activite.sans-repere li{grid-template-columns:40px minmax(0,1fr) 112px}
.hub .voile{position:fixed;inset:0;background:rgba(0,0,0,.55)}
[data-theme="clair"] .hub .voile{background:rgba(15,23,42,.2)}
.hub .palette{position:fixed;top:8px;left:calc(var(--laterale) + (100% - var(--laterale)) / 2);width:600px;margin-left:-300px;overflow:hidden;border:1px solid var(--trait-fort);border-radius:var(--rayon);background:rgba(29,29,30,.9);-webkit-backdrop-filter:blur(24px) saturate(1.2);backdrop-filter:blur(24px) saturate(1.2);box-shadow:0 24px 64px -16px rgba(0,0,0,.7)}
[data-theme="clair"] .hub .palette{border-color:var(--trait);background:rgba(255,255,255,.92);box-shadow:0 24px 64px -16px rgba(15,23,42,.28)}
.hub .palette-champ{display:flex;align-items:center;gap:10px;height:48px;padding:0 16px;border-bottom:1px solid var(--ligne);font-size:15px}
.hub .palette-champ svg{flex:none;width:16px;height:16px;color:var(--texte3)}
.hub .saisie{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;color:var(--texte)}
.hub .saisie::placeholder{color:var(--texte3);opacity:1}
.hub .commande:focus-within{border-color:var(--trait-fort)}
.hub .recherche{width:100%;max-width:600px;height:36px;margin-bottom:6px;cursor:text}
.hub .curseur{display:inline-block;width:1.5px;height:17px;margin-left:1px;vertical-align:-3px;background:var(--texte)}
.hub .palette-liste{padding:6px}
.hub .palette-titre{height:28px;padding:0 10px;color:var(--texte3);font-weight:500;line-height:28px}
.hub .option{display:flex;align-items:center;gap:10px;height:var(--rangee);padding:0 10px;border-radius:6px;color:var(--texte2)}
.hub .option b{font-weight:600;color:var(--texte)}
.hub .option[aria-selected="true"]{background:var(--actif);color:var(--texte)}
.hub .option .marque,.hub .option .marque-icone{flex:none}
.hub .option span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hub .option time{flex:none;width:36px}
.hub .option kbd{margin-left:auto}
.hub .palette-pied{display:flex;align-items:center;gap:18px;height:36px;padding:0 16px;border-top:1px solid var(--ligne);color:var(--texte3)}
.hub .palette-pied kbd{margin-right:5px}
.hub .barre-tel{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;height:52px;padding:0 6px 0 16px;border-bottom:1px solid var(--ligne);background:var(--fond)}
.hub .barre-tel .logo{--logo:70px}
.hub .barre-tel-gestes{display:flex}
.hub .icone-bouton{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:var(--rayon);background:none;color:var(--texte2)}
.hub .icone-bouton svg{width:18px;height:18px}
.hub .cartes-valider{border:1px solid var(--trait);border-radius:var(--rayon);background:var(--surface);overflow:hidden}
.hub .cartes-valider li{display:grid;gap:2px;padding:12px 12px 10px}
.hub .cartes-valider li + li{border-top:1px solid var(--ligne)}
.hub .carte-haut{display:flex;align-items:center;gap:10px;min-width:0}
.hub .carte-haut .intitule{font-weight:500}
.hub .cartes-valider .meta{padding-left:26px}
.hub .cartes-valider .gestes{justify-content:flex-end;gap:6px;margin-top:8px}
.hub .activite-tel{border-top:1px solid var(--ligne)}
.hub .activite-tel li{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:10px;padding:11px 2px;border-bottom:1px solid var(--ligne)}
.hub .activite-tel .marque{margin-top:3px}
.hub .activite-tel p{color:var(--texte2)}
.hub .activite-tel strong{font-weight:500;color:var(--texte)}
.hub .onglets-bas{position:fixed;right:0;bottom:0;left:0;display:grid;grid-template-columns:repeat(5,1fr);height:64px;padding:6px 4px calc(8px + env(safe-area-inset-bottom));border-top:1px solid var(--ligne);background:var(--fond)}
.hub .onglets-bas a{display:grid;justify-items:center;align-content:center;gap:4px;color:var(--texte3);font-size:11px;font-weight:500;text-decoration:none}
.hub .onglets-bas svg{width:20px;height:20px}
.hub .onglets-bas a[aria-current="page"]{color:var(--texte)}
.hub .ligne-service{grid-template-columns:16px 110px minmax(0,1fr) 90px 128px 16px}
.hub .ligne-espace{grid-template-columns:16px 120px minmax(0,1fr) 96px 96px 16px}
.hub .ligne-tache{grid-template-columns:16px 26px minmax(0,max-content) minmax(0,1fr) 92px}
.hub .ligne-fichier{grid-template-columns:16px minmax(0,max-content) minmax(0,1fr) 96px}
.hub .ligne-cle{grid-template-columns:16px minmax(0,max-content) minmax(0,1fr) auto;padding-right:4px}
.hub .numero{color:var(--texte3);font-variant-numeric:tabular-nums}
.hub .chemin-court{overflow:hidden;font-weight:500;white-space:nowrap;text-overflow:ellipsis}
.hub .chemin-court .dossier{color:var(--texte3);font-weight:400}
.hub .liste-activite.sans-ou li{grid-template-columns:40px 16px minmax(0,1fr)}
.hub .fiche-titre{display:grid;flex:1 1 220px;gap:3px;min-width:0}
.hub .chapeau{color:var(--texte3)}
.hub .chapeau a,.hub .appoint a{color:var(--texte2);text-underline-offset:3px}
.hub .marque-grande{display:grid;flex:none;place-items:center;width:40px;height:40px;border:1px solid var(--trait);border-radius:10px;color:var(--texte2)}
.hub .marque-grande svg{width:20px;height:20px}
.hub .appoint{margin-top:8px;color:var(--texte3)}
.hub .guide-apercu .partie{padding:9px 12px}
.hub .guide-apercu .partie + .partie{border-top:1px solid var(--ligne)}
.hub .partie h3{font-size:13px;font-weight:600}
.hub .partie p{color:var(--texte2)}
.hub .lien-discret{color:var(--texte3);text-underline-offset:3px}
.hub .lien-discret:hover{color:var(--texte)}
.hub .geste-principal{border:0;cursor:pointer}
.hub .filtres-ligne{display:flex;align-items:center;gap:8px;margin-bottom:-8px}
.hub .filtres-ligne .choix button{height:22px;line-height:22px}
.hub .menu-bouton{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 8px 0 10px;border:1px solid var(--trait);border-radius:var(--rayon);background:none;color:var(--texte2);font-weight:500;cursor:pointer}
.hub .menu-bouton svg{width:12px;height:12px;color:var(--texte3)}
.hub .reglages{display:grid;gap:36px;max-width:720px}
.hub .texte-reglage{max-width:62ch;margin:-2px 0 10px;color:var(--texte2)}
.hub .carte-confirmation{width:100%;max-width:520px;margin:40px auto 0;padding:24px;border:1px solid var(--trait);border-radius:var(--rayon);background:var(--surface)}
.hub .carte-confirmation h1{margin-bottom:10px;font-size:17px;font-weight:600}
.hub .carte-confirmation p{color:var(--texte2);line-height:1.55}
.hub .actions-fin{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.hub .actions-fin .geste{display:inline-flex;align-items:center;height:28px;padding:0 12px;text-decoration:none}
/* Les composants en lien (tuile qui mène à la fiche, intitulé qui ouvre la tâche, barre de commande sans JavaScript) :
   même rendu que la planche, jamais soulignés ; seuls .lien-discret et les liens d'un texte (.chapeau, .appoint) le sont. */
.hub a[class]:not(.lien-discret){text-decoration:none}
.hub .tuiles-ia li:has(> a){display:block;height:auto;padding:0;border:0;background:none}
.hub .tuiles-ia li > a{display:flex;align-items:center;gap:10px;height:56px;padding:0 12px;border:1px solid var(--trait);border-radius:var(--rayon);background:var(--surface);color:inherit;text-decoration:none}
.hub .tuiles-ia li > a:hover{border-color:var(--trait-fort)}
.hub a.intitule{color:inherit}
.hub a.intitule:hover{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.hub .geste,.hub .geste-texte{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.hub .geste-principal{justify-content:center;white-space:nowrap}
/* Le téléphone (600 px et moins, le seuil de .seulement-telephone) : la barre latérale et la barre de commande
   laissent place à .barre-tel en haut et .onglets-bas en bas, présentes dans chaque page et cachées au bureau.
   Une partie qui change de forme (À valider en cartes, Activité sur deux lignes) a deux exemplaires,
   .seulement-bureau et .seulement-telephone. */
@media (min-width:601px){.hub .barre-tel,.hub .onglets-bas{display:none}}
@media (max-width:600px){
.hub .coquille{display:block}
.hub .laterale,.hub .barre{display:none}
.hub .contenu{max-width:none;gap:28px;padding:16px 16px 104px}
.hub{font-size:15px}
.hub h2{font-size:15px}
.hub .meta{color:var(--texte3);font-size:13px}
.hub .geste,.hub .geste-texte{position:relative;height:32px;padding:0 14px;font-size:14px}
.hub .geste-principal{position:relative;height:32px;padding:0 14px;font-size:14px}
.hub .geste::before,.hub .geste-texte::before,.hub .geste-principal::before{content:"";position:absolute;inset:-6px -3px}
.hub .tuiles-ia{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hub .tuiles-ia .acces{font-size:13px}
/* Au téléphone, chaque rangée garde l'essentiel (marque, nom, état ou geste) et cache ses colonnes d'appoint. */
.hub .ligne-ia,.hub .ligne-service,.hub .ligne-espace{grid-template-columns:16px minmax(0,1fr) auto 16px}
.hub .ligne-ia .ou-court,.hub .ligne-ia .quand,.hub .ligne-service .detail,.hub .ligne-service .ou-court,.hub .ligne-espace .detail,.hub .ligne-espace .quand{display:none}
.hub .ligne-tache{grid-template-columns:16px 26px minmax(0,1fr) auto}
.hub .ligne-fichier,.hub .ligne-cle,.hub .liste-acces li,.hub .liste-valider li{grid-template-columns:16px minmax(0,1fr) auto}
.hub .ligne-tache .meta,.hub .ligne-fichier .meta,.hub .ligne-cle .meta,.hub .liste-acces .detail,.hub .liste-valider .sorte,.hub .liste-valider .meta,.hub .liste-valider .quand{display:none}
.hub .liste-activite li{grid-template-columns:40px 16px minmax(0,1fr)}
.hub .liste-activite.sans-repere li{grid-template-columns:40px minmax(0,1fr)}
.hub .liste-activite li > .ou{display:none}
.hub .fiche-tete,.hub .filtres-ligne{flex-wrap:wrap}
.hub .fiche-corps{grid-template-columns:minmax(0,1fr);gap:28px}
}
