/* Console du Binaire FileSane — feuille de style construite d'après specs/maquettes-console-binaire.pptx. */
:root { --bleu: #1d75c4; --bleu-fort: #1763a8; --marine: #12284c; --ciel: #5db4e8; --encre: #1a2433; --texte: #2a3648; --gris: #5d6b82; --trait: #dde3ec; --panneau: #f4f7fb; --champ: #eef1f6; --teinte: #e4eefa; --vert: #188a5a; --vert-fond: #e2f3ea; --rouge: #b3261e; --rouge-fond: #fbe6e4; --ambre: #b26a00; --ambre-fond: #fcf0dc; --mono: Consolas, 'Liberation Mono', 'Courier New', monospace; --titre: Arial, 'Liberation Sans', Helvetica, sans-serif; --accent: #1d75c4; --accent-fg: #ffffff; --fg: #1a2433; --muted: #5d6b82; --line: #dde3ec; --bg: #ffffff; --card: #ffffff; --cible-min: 44px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: #ffffff; color: var(--texte); overflow-x: hidden; font: 14px/1.5 Lato, 'Segoe UI', system-ui, -apple-system, sans-serif; }
h1, h2, h3, p { margin: 0; }
h1 { font: 700 36px/1.15 var(--titre); color: var(--encre); letter-spacing: -0.2px; }
h2 { font-size: 17px; font-weight: 700; color: var(--encre); line-height: 1.3; }
h3 { font-size: 14px; font-weight: 700; color: var(--encre); margin: 14px 0 8px 0; }
p { margin: 0 0 10px 0; }
ul { margin: 0 0 10px 0; padding-left: 20px; }
img.ic { width: 18px; height: 18px; flex: none; display: block; }
.muted, .aide { color: var(--gris); font-size: 12px; }
.aide { margin: 6px 0 0 0; font-size: 11.5px; line-height: 1.35; }
.mono { font-family: var(--mono); }
strong { color: var(--encre); }

/* ---- Coque: barre latérale et zone principale ---- */
.coque { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
/* Pages d'un workflow (portail, sous-App): tout l'écran, sans menu latéral; leur design vient du workflow. */
.coque.portail { grid-template-columns: minmax(0, 1fr); }
.coque.portail .principal { padding: 0; }
/* Espace arrêté: la page qui remplace celles d'une sous-App à l'arrêt. */
.arret { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; background: linear-gradient(160deg, #ffffff 0%, #f6f6f7 45%, #e2e3e6 100%); }
.arret .carte { width: 100%; max-width: 560px; margin: 0; }
.arret .succes { margin: 0; }
.arret .boutons { justify-content: center; margin-top: 22px; }
.arret .copyright { color: var(--gris); font-size: 12px; margin: 0; }
img.fne-marque { height: 1em; width: auto; vertical-align: -0.12em; display: inline-block; }
.lateral { background: var(--panneau); padding: 60px 14px 22px 14px; display: flex; flex-direction: column; position: relative; min-width: 0; }
.principal { padding: 36px 46px 40px 46px; min-width: 0; }
button.langue { position: absolute; top: 14px; left: 14px; z-index: 5; height: 22px; min-height: 22px; min-width: 36px; padding: 0 8px; margin: 0; background: #ffffff; color: var(--bleu); border: 1.5px solid var(--bleu); border-radius: 6px; font-size: 10px; font-weight: 700; line-height: 1; }
button.langue:hover { background: var(--teinte); }
button.repli { position: absolute; top: 12px; right: 12px; width: 32px; height: 26px; min-height: 26px; min-width: 32px; padding: 0; margin: 0; background: #ffffff; border: 1px solid var(--trait); border-radius: 6px; color: var(--gris); font-size: 15px; line-height: 1; font-weight: 700; }
button.repli:hover { background: var(--champ); border-color: var(--trait); }
.marque { display: flex; align-items: center; gap: 12px; padding: 0 0 0 14px; margin: 0 0 28px 0; }
.marque img { height: 56px; width: auto; display: block; }
.marque span { font-size: 18px; letter-spacing: 0.14em; color: var(--marine); font-weight: 400; }
.marque.centre { flex-direction: column; gap: 8px; padding: 22px 0 0 0; margin: 0 0 14px 0; }
.marque.centre img { height: 92px; }
.marque.centre span { font-size: 16px; letter-spacing: 0.22em; color: var(--gris); }
.bienvenue { text-align: center; font-size: 12px; line-height: 1.45; color: var(--gris); margin: 0 8px; }
.sous-nom { text-align: center; font-size: 12px; color: var(--gris); margin: -14px 0 18px 0; overflow-wrap: anywhere; }
.titre-vertical { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; margin: auto 0; font: 400 44px/1 var(--titre); color: #9aa8bd; white-space: nowrap; }
.menu { display: flex; flex-direction: column; gap: 6px; }
.nav { display: flex; align-items: center; justify-content: flex-start; gap: 13px; width: 100%; height: 37px; min-height: 37px; padding: 0 14px; margin: 0; background: transparent; border: 0; border-radius: 8px; color: var(--encre); font-size: 14.5px; font-weight: 400; text-align: left; position: relative; }
.nav img { width: 19px; height: 19px; flex: none; }
.nav:hover { background: #e9eef6; border: 0; }
.nav.actif { background: var(--teinte); color: var(--bleu); font-weight: 700; }
.nav .badge { margin-left: 2px; background: #e6ebf2; color: var(--gris); border-radius: 999px; padding: 2px 16px; font-size: 11px; font-weight: 700; }
.pied { margin-top: auto; padding-top: 18px; text-align: center; }
.pied.suite { margin-top: 18px; }
.nom-binaire { font-size: 8.5px; letter-spacing: 0.02em; color: var(--gris); text-transform: uppercase; overflow-wrap: anywhere; margin: 0 0 6px 0; }
.copyright { font-size: 10.5px; color: var(--gris); }
.coque.reduit { grid-template-columns: 72px minmax(0, 1fr); }
.coque.reduit .lateral { padding: 96px 12px 18px 12px; align-items: center; }
.coque.reduit button.repli { top: 44px; left: 20px; right: auto; }
.coque.reduit .marque { padding: 0; margin: 0 0 18px 0; }
.coque.reduit .marque img { height: 38px; }
.coque.reduit .marque span, .coque.reduit .nav .badge, .coque.reduit .nom-binaire { display: none; }
.coque.reduit .menu { width: 100%; }
.coque.reduit .nav { justify-content: center; padding: 0; font-size: 0; gap: 0; }
.coque.reduit .nav:hover::after { content: attr(data-nom); position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 14px; background: var(--marine); color: #ffffff; font-size: 12px; font-weight: 700; padding: 8px 22px; border-radius: 6px; white-space: nowrap; z-index: 60; box-shadow: 0 4px 12px rgba(18, 40, 76, 0.25); }
.coque.reduit .copyright { font-size: 8px; line-height: 1.3; }

/* ---- En-tête de page ---- */
.entete-page { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 28px 0; min-height: 44px; }
.entete-page .titre { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.actions-page { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---- Boutons ---- */
button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 40px; min-height: 40px; padding: 0 24px; margin: 0; background: var(--bleu); color: #ffffff; border: 1.5px solid var(--bleu); border-radius: 7px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
button:hover { background: var(--bleu-fort); border-color: var(--bleu-fort); }
button img { width: 17px; height: 17px; flex: none; }
button.contour, button.secondaire { background: #ffffff; color: var(--bleu); border-color: var(--bleu); }
button.contour:hover, button.secondaire:hover { background: var(--teinte); }
button.danger { background: var(--rouge); border-color: var(--rouge); color: #ffffff; }
button.danger:hover { background: #961f18; border-color: #961f18; }
button.contour-danger { background: #ffffff; color: var(--rouge); border-color: var(--rouge); }
button.contour-danger:hover { background: var(--rouge-fond); }
button.petit { height: 32px; min-height: 32px; padding: 0 18px; font-size: 12px; border-radius: 6px; }
button.large { min-width: 226px; }
button.pleine { display: flex; width: 100%; }
button.haut { height: 44px; min-height: 44px; font-size: 14.5px; }

/* ---- Cartes ---- */
.carte { background: #ffffff; border: 1px solid var(--trait); border-radius: 10px; padding: 20px 24px 22px 24px; margin: 0 0 20px 0; min-width: 0; }
.carte-tete { display: flex; align-items: center; gap: 12px; margin: 0 0 20px 0; min-height: 34px; }
.carte-tete h2 { flex: 1; min-width: 0; }
.carte.rouge { border-color: var(--rouge); }
.carte.rouge.fin { border-width: 1.5px; }
.rond { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teinte); flex: none; }
.rond img { width: 18px; height: 18px; }
.rond.grand { width: 70px; height: 70px; } .rond.grand img { width: 30px; height: 30px; }
.rond.moyen { width: 64px; height: 64px; } .rond.moyen img { width: 28px; height: 28px; }
.rond.vert { background: var(--vert-fond); }
.rond.marine { background: var(--marine); color: #ffffff; font: 700 14px/1 var(--titre); }
.colonnes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.colonnes.trois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.colonnes.g { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
.colonnes.d { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
.colonnes.etire { align-items: stretch; }
.colonnes > .carte, .colonnes .pile > .carte:last-child { margin-bottom: 0; }
.colonnes { margin: 0 0 20px 0; }
.pile { display: flex; flex-direction: column; min-width: 0; }
.etroit { max-width: 770px; margin-left: auto; margin-right: auto; }
.carte.centre { padding: 32px 38px 34px 38px; }

/* ---- Champs ---- */
div.form > div, .champ { margin: 0 0 18px 0; }
div.form > div:last-child { margin-bottom: 0; }
label { display: block; font-size: 13px; font-weight: 700; color: var(--encre); margin: 0 0 7px 0; }
input { display: block; width: 100%; height: 38px; padding: 0 13px; background: var(--champ); color: var(--encre); border: 1.5px solid transparent; border-radius: 6px; font: inherit; font-size: 13.5px; }
input::placeholder { color: var(--gris); }
input:focus { outline: 0; border-color: var(--bleu); box-shadow: 0 0 0 1px var(--bleu); }
input.mono { font-family: var(--mono); letter-spacing: 0.02em; }
input.invalide { border-color: var(--rouge); box-shadow: 0 0 0 1px var(--rouge); }
.depot.invalide .zone { border-color: var(--rouge); border-style: solid; }
.champ-mdp, .champ-choix { position: relative; margin: 0; }
.champ-mdp input, .champ-choix input { padding-right: 42px; }
.champ-choix::after { content: ''; position: absolute; right: 13px; top: 11px; width: 16px; height: 16px; background: url(/i/chevron-n.svg) center / contain no-repeat; pointer-events: none; }
button.oeil { position: absolute; right: 4px; top: 4px; width: 34px; height: 30px; min-height: 30px; padding: 0; margin: 0; background: transparent; border: 0; }
button.oeil:hover { background: transparent; }
button.oeil img { width: 19px; height: 19px; }
.fixe { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 38px; padding: 0 13px; background: #ffffff; border: 1.5px solid var(--trait); border-radius: 6px; color: var(--encre); font-size: 13.5px; margin: 0; }
.fixe img { width: 17px; height: 17px; }
.paire { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.paire > div { margin: 0; min-width: 0; }
.boite { display: flex; align-items: flex-start; gap: 12px; border-radius: 8px; padding: 14px 16px; font-size: 13px; line-height: 1.45; color: var(--encre); margin: 0 0 18px 0; }
.boite img { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.boite.ambre { background: var(--ambre-fond); padding: 16px 18px; }
.boite.bleu { background: var(--teinte); }
.boite.vert { background: var(--vert-fond); align-items: center; }
.boite p { margin: 0; }
.bloc-mono { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--champ); border-radius: 7px; padding: 12px 18px; margin: 0 0 18px 0; min-height: 40px; }
.bloc-mono code { background: transparent; padding: 0; font: 700 13.5px/2.15 var(--mono); color: var(--encre); letter-spacing: 0.04em; overflow-wrap: anywhere; white-space: pre-wrap; }
.bloc-mono.simple code { line-height: 1.4; }
code { background: var(--champ); color: var(--encre); padding: 1px 6px; border-radius: 5px; font: 12.5px var(--mono); overflow-wrap: anywhere; }
pre { margin: 0; background: #0f1b2d; color: #d6e2f3; padding: 18px 20px; border-radius: 8px; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
pre.doc { margin: 0; border-radius: 0; padding: 2px 20px; }
.sombre { background: #0f1b2d; border-radius: 8px; padding: 16px 0; min-height: 330px; }
.sombre.cle { min-height: 0; padding: 18px 18px; color: #ffffff; font: 700 13px/1.6 var(--mono); letter-spacing: 0.05em; overflow-wrap: anywhere; margin: 0 0 8px 0; }
.sep { border: 0; border-top: 1px solid var(--trait); margin: 26px 0; height: 0; }

/* ---- Dépôt de fichier ---- */
.depot { margin: 0 0 14px 0; }
.depot .zone { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; min-height: 82px; padding: 16px; background: #eef5fc; border: 1.5px dashed var(--ciel); border-radius: 9px; color: var(--gris); font-size: 13px; }
.depot .zone img { width: 22px; height: 22px; }
.depot .zone button { margin-left: 46px; }
.depot.survol .zone { background: #dcebfa; border-color: var(--bleu); }
.depot .cache { display: none; }
.depot .fichier { display: flex; align-items: center; gap: 10px; background: var(--vert-fond); border-radius: 6px; padding: 9px 13px; margin: 10px 0 0 0; font: 12.5px var(--mono); color: var(--encre); overflow-wrap: anywhere; }
.depot .fichier::before { content: ''; width: 17px; height: 17px; flex: none; background: url(/i/coche-rond-v.svg) center / contain no-repeat; }
.depot .fichier:empty { display: none; }
.depot button.zone { width: 100%; height: auto; font-weight: 400; font-size: 13px; color: var(--gris); white-space: normal; text-align: left; }
.depot button.zone:hover { background: #dcebfa; border-color: var(--bleu); }
.depot.compact .zone { min-height: 56px; justify-content: flex-start; padding: 10px 14px; }
.depot.compact .zone button { margin-left: auto; }
.depot.mini .zone { min-height: 42px; justify-content: flex-start; padding: 6px 12px; gap: 9px; }
.depot.mini .zone img { width: 19px; height: 19px; }
.depot.mini .zone button { margin-left: auto; height: 26px; min-height: 26px; padding: 0 10px; font-size: 11px; }

/* ---- Pastilles ---- */
.pastille { display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; padding: 4px 16px 4px 12px; font-size: 11.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; background: var(--vert-fond); color: var(--vert); }
.pastille::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pastille.rouge { background: var(--rouge-fond); color: var(--rouge); }
.pastille.ambre { background: var(--ambre-fond); color: var(--ambre); }
.pastille.bleu { background: var(--teinte); color: var(--bleu); padding: 4px 14px; }
.pastille.bleu::before, .pastille.gris::before, .pastille.plat::before { display: none; }
.pastille.gris { background: #e6ebf2; color: var(--gris); padding: 4px 14px; }
.pastille.plat { padding: 4px 16px; }
.pastille.large { padding: 5px 34px; }

/* ---- Installation: étapes ---- */
.entete-etape { display: flex; align-items: center; gap: 46px; margin: 0 0 40px 0; min-height: 40px; flex-wrap: wrap; }
.entete-etape .actions-page { margin-left: auto; }
.etape { color: var(--gris); font-size: 13px; }
.suivi { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--gris); }
.suivi .p { display: inline-flex; align-items: center; gap: 9px; }
.suivi .n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #ffffff; border: 1.5px solid var(--trait); color: var(--gris); font-size: 11px; font-weight: 700; }
.suivi .n img { width: 14px; height: 14px; }
.suivi .p.fait { color: var(--encre); }
.suivi .p.fait .n { background: var(--vert); border-color: var(--vert); }
.suivi .p.courant { color: var(--encre); font-weight: 700; }
.suivi .p.courant .n { background: var(--bleu); border-color: var(--bleu); color: #ffffff; }
.suivi .trait { width: 34px; height: 2px; background: var(--trait); margin: 0 14px; }
.suivi .trait.fait { background: var(--vert); }
.succes { text-align: center; margin: 0 0 30px 0; }
.succes .rond { margin: 0 0 22px 0; }
.succes h1 { font-size: 26px; margin: 0 0 12px 0; }
.succes .mono { font-size: 14px; letter-spacing: 0.06em; color: var(--gris); }
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0 0 0; }
.tuile { background: var(--panneau); border-radius: 8px; padding: 20px 20px 24px 20px; min-height: 180px; }
.tuile .haut { display: flex; align-items: center; justify-content: space-between; margin: 0 0 22px 0; }
.tuile .haut img { width: 22px; height: 22px; }
.tuile h3 { margin: 0 0 6px 0; font-size: 14px; }
.tuile p { color: var(--gris); font-size: 12.5px; margin: 0; }
.tete-grande { display: flex; align-items: center; gap: 20px; margin: 0 0 36px 0; }
.tete-grande h1 { font-size: 22px; margin: 0 0 6px 0; }
.tete-grande p { margin: 0; color: var(--gris); font-size: 13px; }
.ligne-refus { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: var(--gris); font-size: 13px; }
.element { display: flex; align-items: flex-start; gap: 14px; background: var(--panneau); border-radius: 8px; padding: 12px 16px 14px 16px; margin: 0 0 16px 0; }
.element:last-child { margin-bottom: 0; }
.element > img { width: 22px; height: 22px; margin-top: 4px; }
.element .corps { flex: 1; }
.element h3 { margin: 0 0 4px 0; font-size: 14px; }
.element p { margin: 0; color: var(--gris); font-size: 12px; line-height: 1.9; }

/* ---- Connexion ---- */
.connexion { width: 456px; max-width: 100%; margin: 62px auto 0 auto; border: 1px solid var(--trait); border-radius: 12px; padding: 38px 45px 48px 45px; }
.connexion .haut { text-align: center; margin: 0 0 30px 0; }
.connexion .rond { margin: 0 0 24px 0; }
.connexion h1 { font-size: 34px; margin: 0 0 14px 0; }
.connexion .sous { color: var(--gris); font-size: 14px; margin: 0; }
.connexion button.pleine { margin-top: 26px; }
.session-info { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--gris); font-size: 12.5px; margin: 26px 0 0 0; }
.session-info img { width: 16px; height: 16px; }

/* ---- Tableau de bord ---- */
.grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 20px 0; }
.kpi { position: relative; background: #ffffff; border: 1px solid var(--trait); border-radius: 10px; padding: 18px 20px 16px 20px; min-height: 102px; }
.kpi .valeur { font: 700 31px/1.2 var(--titre); color: var(--encre); margin: 0 0 12px 0; }
.kpi .libelle { color: var(--gris); font-size: 12.5px; }
.kpi .rond { position: absolute; right: 20px; top: 18px; width: 42px; height: 42px; }
.kpi .rond img { width: 21px; height: 21px; }
.kpi.plat { min-height: 124px; padding: 16px 18px; }
.kpi.plat .libelle { display: flex; align-items: center; gap: 9px; margin: 0 0 24px 0; }
.kpi.plat .libelle img { width: 19px; height: 19px; }
.kpi.plat .valeur { margin: 0; }
.nom-fort { font: 700 14.5px/1.4 var(--mono); color: var(--encre); letter-spacing: 0.05em; overflow-wrap: anywhere; margin: 0 0 8px 0; }
.ligne-pastilles { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px 0; }
.sous-titre { font-size: 17px; font-weight: 700; color: var(--encre); margin: 6px 0 14px 0; }

/* ---- Listes et tableaux ---- */
.liste { background: #ffffff; border: 1px solid var(--trait); border-radius: 10px; padding: 0 16px; margin: 0 0 20px 0; }
.ligne { display: flex; align-items: center; gap: 16px; min-height: 45px; padding: 8px 4px; border-top: 1px solid var(--trait); flex-wrap: wrap; }
.ligne:first-child { border-top: 0; }
.ligne > img { width: 17px; height: 17px; flex: none; }
.ligne .nom { font-size: 13.5px; font-weight: 700; color: var(--encre); flex: 1; min-width: 140px; overflow-wrap: anywhere; }
.ligne .meta { color: var(--gris); font-size: 12.5px; overflow-wrap: anywhere; }
.activite .ligne .nom { width: 172px; flex: none; min-width: 0; }
.activite .ligne .meta { flex: 1; min-width: 100px; }
.ligne.tuile-l .meta { flex: 1; min-width: 100px; }
.statut { display: inline-flex; border-radius: 999px; padding: 4px 14px; font-size: 11.5px; font-weight: 700; background: var(--vert-fond); color: var(--vert); }
.statut.arret { background: var(--ambre-fond); color: var(--ambre); }
.ligne .meta.fixe-l { flex: none; width: 170px; }
.ligne .heure { font: 700 12px var(--mono); color: var(--bleu); letter-spacing: 0.04em; white-space: nowrap; margin-left: auto; }
.ligne.grave .nom { color: var(--rouge); }
.ligne .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.ligne.entete { min-height: 38px; color: var(--gris); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ligne.entete .nom, .ligne.entete .meta, .ligne.entete .heure { font: inherit; color: inherit; letter-spacing: inherit; }
.activite .ligne.entete .nom { width: 205px; padding-left: 33px; }
.activite .ligne .meta.fixe-l { flex: none; width: 170px; }
.activite .ligne .heure { width: 150px; text-align: right; flex: none; }
.ligne.app { min-height: 75px; }
.ligne.app .tuile-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 7px; background: var(--teinte); flex: none; }
.ligne.app .tuile-ic img { width: 19px; height: 19px; }
.ligne.app .qui { flex: 1; min-width: 180px; }
.ligne.app .qui strong { display: block; font-size: 14.5px; }
.ligne.app .qui span { display: block; color: var(--gris); font-size: 12px; margin-top: 4px; }
.ligne.app .qui em { font-style: normal; }
.ligne.app .qui em.suite::before { content: ' · '; }
.ligne.app .port { width: 84px; flex: none; font: 13.5px var(--mono); color: var(--encre); }
.ligne.app .etat-col { width: 150px; flex: none; }
.ligne.app .actions { min-width: 250px; justify-content: flex-end; }
.ligne.entete.app { min-height: 38px; }
.ligne.entete.app .qui { padding-left: 52px; }
.ligne.entete.app .actions { text-align: right; display: block; }
.ligne.tuile-l { background: var(--panneau); border: 0; border-radius: 7px; padding: 8px 14px; margin: 0 0 10px 0; min-height: 44px; }
.ligne.tuile-l:last-child { margin-bottom: 0; }
.ligne.tuile-l .nom { flex: none; width: auto; min-width: 70px; }
.note { color: var(--gris); font-size: 12.5px; margin: 0 0 20px 0; }
.recherche { position: relative; margin: 0 0 20px 0; }
.recherche img { position: absolute; left: 16px; top: 12px; width: 18px; height: 18px; }
.recherche input { height: 42px; padding-left: 44px; font-size: 14px; }
.bandeau-ok { display: flex; align-items: center; gap: 12px; background: var(--vert-fond); border-radius: 8px; padding: 12px 20px 12px 16px; margin: 0 0 20px 0; color: var(--vert); font-weight: 700; font-size: 14px; min-height: 46px; }
.bandeau-ok.rouge { background: var(--rouge-fond); color: var(--rouge); }
.bandeau-ok img { width: 20px; height: 20px; }
.bandeau-ok .droite { margin-left: auto; color: var(--gris); font-weight: 400; font-size: 12.5px; }
table { border-collapse: collapse; width: 100%; }
th { color: var(--gris); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
th, td { text-align: left; padding: 12px 14px; border-top: 1px solid var(--trait); font-size: 13.5px; }
thead th { border-top: 0; }
td:first-child { font-weight: 700; color: var(--encre); }

/* ---- Cascade ---- */
.arbre { margin: 0 0 22px 0; }
.arbre .racine { display: flex; justify-content: center; }
.noeud-maitre { background: var(--marine); color: #ffffff; border-radius: 8px; padding: 16px 20px 16px 22px; width: 430px; max-width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; row-gap: 8px; align-items: center; }
.noeud-maitre img { width: 21px; height: 21px; }
.noeud-maitre .n { font: 700 13.5px var(--mono); letter-spacing: 0.05em; overflow-wrap: anywhere; }
.noeud-maitre .bas { grid-column: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; color: #c5d2e6; }
.arbre .tronc { width: 2px; height: 26px; background: var(--trait); margin: 0 auto; }
.branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 18px; row-gap: 18px; }
.branches.un { grid-template-columns: minmax(0, 420px); justify-content: center; }
.branches.deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.branche { position: relative; padding-top: 26px; min-width: 0; }
.branche::before { content: ''; position: absolute; top: 0; left: -9px; right: -9px; border-top: 2px solid var(--trait); }
.branche::after { content: ''; position: absolute; top: 0; left: 50%; width: 2px; height: 26px; background: var(--trait); margin-left: -1px; }
.branche.debut::before { left: 50%; }
.branche.fin::before { right: 50%; }
.branche.debut.fin::before { display: none; }
.noeud { background: #ffffff; border: 1px solid var(--trait); border-radius: 9px; padding: 16px 18px 16px 18px; min-height: 92px; }
.noeud.hors { border: 1.5px solid var(--rouge); }
.noeud .n { font: 700 13.5px var(--mono); color: var(--encre); letter-spacing: 0.05em; margin: 0 0 20px 0; overflow-wrap: anywhere; }
.noeud .bas { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--gris); font-size: 11.5px; }
.rfne-ligne { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.rfne-ligne .bloc-mono { flex: 1; min-width: 300px; margin: 0; }

/* ---- Système ---- */
.systeme { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 20px; align-items: start; }
.systeme > #zone-systeme { display: contents; }
.systeme .gauche { grid-column: 1; grid-row: 1 / span 2; min-width: 0; }
.systeme .seuils { grid-column: 2; grid-row: 1; }
.systeme .utilise { grid-column: 2; grid-row: 2; }
.mesure { margin: 0 0 22px 0; }
.mesure:last-child { margin-bottom: 0; }
.mesure .haut { display: flex; align-items: center; gap: 26px; margin: 0 0 12px 0; font-size: 14.5px; font-weight: 700; color: var(--encre); }
.mesure .haut .pct { margin-left: auto; }
.barre { position: relative; height: 12px; background: var(--champ); border-radius: 999px; margin: 0 0 12px 0; }
.barre .plein { display: block; height: 100%; background: var(--bleu); border-radius: 999px; min-width: 8px; }
.barre.clair .plein { background: var(--ciel); }
.barre .repere { position: absolute; top: -7px; width: 2px; height: 26px; background: var(--rouge); margin-left: -1px; }
.mesure .bas { display: flex; justify-content: space-between; gap: 10px; color: var(--gris); font-size: 11.5px; }
.mesure .bas .seuil { color: var(--rouge); }
.gros { font: 700 30px/1.2 var(--titre); color: var(--encre); margin: 6px 0 14px 0; }

/* ---- Base de données ---- */
.segments { display: inline-flex; background: var(--champ); border-radius: 999px; padding: 4px; margin: 0; }
.segments button { height: 30px; min-height: 30px; padding: 0 34px; border-radius: 999px; background: transparent; border: 0; color: var(--gris); font-weight: 400; font-size: 13px; }
.segments button:hover { background: #e3e8f0; }
.segments button.actif { background: #ffffff; color: var(--bleu); font-weight: 700; box-shadow: 0 1px 2px rgba(18, 40, 76, 0.12); }
.sous-entete { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px 0; }
.resultat-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 0 20px 0; }
.resultat-tete span { color: var(--gris); font-size: 12.5px; }

/* ---- Paramètres ---- */
.cv { padding: 0 0 14px 0; margin: 0 0 14px 0; border-bottom: 1px solid var(--trait); }
.cv:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.cv .c { color: var(--gris); font-size: 12px; margin: 0 0 10px 0; }
.cv .v .pastille { font-family: Lato, 'Segoe UI', sans-serif; letter-spacing: 0; }
.aide + .boutons, .paire + .boutons { margin-top: 14px; }
.cv .v { font: 700 12.5px var(--mono); color: var(--encre); letter-spacing: 0.04em; overflow-wrap: anywhere; }
.carte .bas-carte { margin-top: auto; padding-top: 22px; }
.carte.colonne { display: flex; flex-direction: column; }
.carte.suite { margin-top: 18px; }
/* Liste longue dans une carte: hauteur fixe, elle défile sur place (les cartes voisines ne s'allongent pas). */
.liste-bornee { max-height: 204px; overflow-y: auto; padding-right: 4px; }
.liste-bornee > .ligne:last-child { margin-bottom: 0; }
.carte.suite > .colonnes { margin-bottom: 0; }

/* ---- Pages d'App (profils, modules) ---- */
.onglets { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px 0; }
.doc { margin: 0 0 8px 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--bleu); color: #ffffff; font-weight: 700; font-size: 12px; }
.boutons { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- Mise en page fixe: le menu et l'en-tête ne bougent pas, seul le contenu défile ---- */
html, body { height: 100%; overflow: hidden; }
.coque { height: 100vh; min-height: 0; }
.lateral { height: 100vh; overflow: hidden; }
/* Menu réduit: l'infobulle d'une entrée sort du menu et passe au-dessus de l'espace de travail. */
.coque.reduit .lateral { overflow: visible; z-index: 20; }
.principal { height: 100vh; overflow-y: auto; }
.principal.console { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.haut-fixe { flex: none; padding: 36px 46px 0 46px; background: #ffffff; position: relative; z-index: 2; }
.haut-fixe.ombre { box-shadow: 0 6px 14px -8px rgba(18, 40, 76, 0.28); }
.haut-fixe .entete-page { margin-bottom: 24px; }
.haut-fixe .recherche, .haut-fixe .sous-entete { margin-bottom: 0; }
.defile { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 46px 40px 46px; }
.fil { color: var(--gris); font-size: 12.5px; margin: -14px 0 18px 0; }
.fil em { font-style: normal; }
.fil em.suite::before, em.suite::before { content: ' · '; }
.onglets-app { display: flex; gap: 4px; border-bottom: 1px solid var(--trait); flex-wrap: wrap; }
.onglets-app button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--gris); font-weight: 400; height: 44px; min-height: 44px; padding: 0 20px; font-size: 14px; }
.onglets-app button:hover { background: var(--panneau); }
.onglets-app button.actif { color: var(--bleu); font-weight: 700; border-bottom-color: var(--bleu); }
.sous-onglets { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 0 0; flex-wrap: wrap; }
.sous-onglets .segments button { padding: 0 20px; gap: 8px; }
.sous-onglets .nb { background: #e6ebf2; color: var(--gris); border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.sous-onglets button.actif .nb { background: var(--teinte); color: var(--bleu); }
.sous-onglets .boutons { margin-left: auto; }
.ligne.app .col-l { width: 180px; flex: none; color: var(--gris); font-size: 12.5px; }
.ligne.app .col-m { width: 110px; flex: none; color: var(--gris); font-size: 12.5px; }
.ligne.entete.app .col-l, .ligne.entete.app .col-m { color: inherit; font-size: inherit; }

/* ---- Écrans étroits ---- */
@media (max-width: 899px) {
  html, body { height: auto; overflow: visible; overflow-x: hidden; }
  .coque, .lateral, .principal { height: auto; }
  .principal, .principal.console { display: block; overflow: visible; }
  .principal.console { padding: 0; }
  .haut-fixe { padding: 22px 16px 0 16px; }
  .defile { overflow: visible; padding: 18px 16px 30px 16px; }
  .coque, .coque.reduit { display: block; }
  .lateral { padding: 52px 14px 14px 14px; }
  .titre-vertical { display: none; }
  .menu { flex-direction: row; flex-wrap: wrap; }
  .nav { width: auto; }
  button.repli { display: none; }
  .principal { padding: 22px 16px 30px 16px; }
  h1 { font-size: 28px; }
  .colonnes, .colonnes.trois, .colonnes.g, .colonnes.d, .grille, .systeme, .branches, .branches.deux, .tuiles, .paire { grid-template-columns: minmax(0, 1fr); }
  .systeme .gauche, .systeme .seuils, .systeme .utilise { grid-column: 1; grid-row: auto; }
  .grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .branche::before { display: none; }
  .connexion { padding: 28px 22px 34px 22px; margin-top: 24px; }
  .ligne .nom { width: auto; flex: 1; }
}

/* ---- Fenêtre de confirmation d'une suppression: partout sur la plateforme ---- */
.fs-textes { display: none; }
.fs-voile { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(20, 24, 33, 0.45); }
.fs-fenetre { width: 100%; max-width: 440px; background: #ffffff; border-radius: 16px; padding: 26px 26px 22px; box-shadow: 0 24px 60px rgba(20, 24, 33, 0.3); font: 14px/1.5 Lato, 'Segoe UI', system-ui, sans-serif; color: #1a2433; }
.fs-fenetre h3.fs-fenetre-titre { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: #1a2433; letter-spacing: normal; text-transform: none; }
.fs-fenetre p.fs-fenetre-objet { margin: 0 0 8px; padding: 10px 14px; border-radius: 10px; background: #fbe6e4; color: #b3261e; font-weight: 700; }
.fs-fenetre p.fs-fenetre-texte { margin: 0 0 20px; color: #5d6b82; }
.fs-fenetre-boutons { display: flex; justify-content: flex-end; gap: 10px; }
.fs-fenetre-boutons button { width: auto; min-width: 0; height: 42px; min-height: 42px; margin: 0; padding: 0 20px; border-radius: 10px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: none; }
.fs-fenetre-boutons button.fs-non { background: #ffffff; color: #1a2433; border: 1.5px solid #dde3ec; }
.fs-fenetre-boutons button.fs-oui { background: #b3261e; color: #ffffff; border: 1.5px solid #b3261e; }
.fs-fenetre-boutons button.fs-oui:hover { background: #8f1e18; border-color: #8f1e18; }

/* ---- Aperçu du logo et du favicon courants d'une sous-App ---- */
.apercu-image { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--trait); border-radius: 10px; background: #ffffff; margin-bottom: 12px; }
.apercu-image span { font-weight: 700; font-size: 13px; color: var(--encre); flex: 1; }
.apercu-image img { height: 44px; width: auto; max-width: 160px; border-radius: 8px; }
.barre .l0 { width: 0%; } .barre .s0 { left: 0%; }
.barre .l1 { width: 1%; } .barre .s1 { left: 1%; }
.barre .l2 { width: 2%; } .barre .s2 { left: 2%; }
.barre .l3 { width: 3%; } .barre .s3 { left: 3%; }
.barre .l4 { width: 4%; } .barre .s4 { left: 4%; }
.barre .l5 { width: 5%; } .barre .s5 { left: 5%; }
.barre .l6 { width: 6%; } .barre .s6 { left: 6%; }
.barre .l7 { width: 7%; } .barre .s7 { left: 7%; }
.barre .l8 { width: 8%; } .barre .s8 { left: 8%; }
.barre .l9 { width: 9%; } .barre .s9 { left: 9%; }
.barre .l10 { width: 10%; } .barre .s10 { left: 10%; }
.barre .l11 { width: 11%; } .barre .s11 { left: 11%; }
.barre .l12 { width: 12%; } .barre .s12 { left: 12%; }
.barre .l13 { width: 13%; } .barre .s13 { left: 13%; }
.barre .l14 { width: 14%; } .barre .s14 { left: 14%; }
.barre .l15 { width: 15%; } .barre .s15 { left: 15%; }
.barre .l16 { width: 16%; } .barre .s16 { left: 16%; }
.barre .l17 { width: 17%; } .barre .s17 { left: 17%; }
.barre .l18 { width: 18%; } .barre .s18 { left: 18%; }
.barre .l19 { width: 19%; } .barre .s19 { left: 19%; }
.barre .l20 { width: 20%; } .barre .s20 { left: 20%; }
.barre .l21 { width: 21%; } .barre .s21 { left: 21%; }
.barre .l22 { width: 22%; } .barre .s22 { left: 22%; }
.barre .l23 { width: 23%; } .barre .s23 { left: 23%; }
.barre .l24 { width: 24%; } .barre .s24 { left: 24%; }
.barre .l25 { width: 25%; } .barre .s25 { left: 25%; }
.barre .l26 { width: 26%; } .barre .s26 { left: 26%; }
.barre .l27 { width: 27%; } .barre .s27 { left: 27%; }
.barre .l28 { width: 28%; } .barre .s28 { left: 28%; }
.barre .l29 { width: 29%; } .barre .s29 { left: 29%; }
.barre .l30 { width: 30%; } .barre .s30 { left: 30%; }
.barre .l31 { width: 31%; } .barre .s31 { left: 31%; }
.barre .l32 { width: 32%; } .barre .s32 { left: 32%; }
.barre .l33 { width: 33%; } .barre .s33 { left: 33%; }
.barre .l34 { width: 34%; } .barre .s34 { left: 34%; }
.barre .l35 { width: 35%; } .barre .s35 { left: 35%; }
.barre .l36 { width: 36%; } .barre .s36 { left: 36%; }
.barre .l37 { width: 37%; } .barre .s37 { left: 37%; }
.barre .l38 { width: 38%; } .barre .s38 { left: 38%; }
.barre .l39 { width: 39%; } .barre .s39 { left: 39%; }
.barre .l40 { width: 40%; } .barre .s40 { left: 40%; }
.barre .l41 { width: 41%; } .barre .s41 { left: 41%; }
.barre .l42 { width: 42%; } .barre .s42 { left: 42%; }
.barre .l43 { width: 43%; } .barre .s43 { left: 43%; }
.barre .l44 { width: 44%; } .barre .s44 { left: 44%; }
.barre .l45 { width: 45%; } .barre .s45 { left: 45%; }
.barre .l46 { width: 46%; } .barre .s46 { left: 46%; }
.barre .l47 { width: 47%; } .barre .s47 { left: 47%; }
.barre .l48 { width: 48%; } .barre .s48 { left: 48%; }
.barre .l49 { width: 49%; } .barre .s49 { left: 49%; }
.barre .l50 { width: 50%; } .barre .s50 { left: 50%; }
.barre .l51 { width: 51%; } .barre .s51 { left: 51%; }
.barre .l52 { width: 52%; } .barre .s52 { left: 52%; }
.barre .l53 { width: 53%; } .barre .s53 { left: 53%; }
.barre .l54 { width: 54%; } .barre .s54 { left: 54%; }
.barre .l55 { width: 55%; } .barre .s55 { left: 55%; }
.barre .l56 { width: 56%; } .barre .s56 { left: 56%; }
.barre .l57 { width: 57%; } .barre .s57 { left: 57%; }
.barre .l58 { width: 58%; } .barre .s58 { left: 58%; }
.barre .l59 { width: 59%; } .barre .s59 { left: 59%; }
.barre .l60 { width: 60%; } .barre .s60 { left: 60%; }
.barre .l61 { width: 61%; } .barre .s61 { left: 61%; }
.barre .l62 { width: 62%; } .barre .s62 { left: 62%; }
.barre .l63 { width: 63%; } .barre .s63 { left: 63%; }
.barre .l64 { width: 64%; } .barre .s64 { left: 64%; }
.barre .l65 { width: 65%; } .barre .s65 { left: 65%; }
.barre .l66 { width: 66%; } .barre .s66 { left: 66%; }
.barre .l67 { width: 67%; } .barre .s67 { left: 67%; }
.barre .l68 { width: 68%; } .barre .s68 { left: 68%; }
.barre .l69 { width: 69%; } .barre .s69 { left: 69%; }
.barre .l70 { width: 70%; } .barre .s70 { left: 70%; }
.barre .l71 { width: 71%; } .barre .s71 { left: 71%; }
.barre .l72 { width: 72%; } .barre .s72 { left: 72%; }
.barre .l73 { width: 73%; } .barre .s73 { left: 73%; }
.barre .l74 { width: 74%; } .barre .s74 { left: 74%; }
.barre .l75 { width: 75%; } .barre .s75 { left: 75%; }
.barre .l76 { width: 76%; } .barre .s76 { left: 76%; }
.barre .l77 { width: 77%; } .barre .s77 { left: 77%; }
.barre .l78 { width: 78%; } .barre .s78 { left: 78%; }
.barre .l79 { width: 79%; } .barre .s79 { left: 79%; }
.barre .l80 { width: 80%; } .barre .s80 { left: 80%; }
.barre .l81 { width: 81%; } .barre .s81 { left: 81%; }
.barre .l82 { width: 82%; } .barre .s82 { left: 82%; }
.barre .l83 { width: 83%; } .barre .s83 { left: 83%; }
.barre .l84 { width: 84%; } .barre .s84 { left: 84%; }
.barre .l85 { width: 85%; } .barre .s85 { left: 85%; }
.barre .l86 { width: 86%; } .barre .s86 { left: 86%; }
.barre .l87 { width: 87%; } .barre .s87 { left: 87%; }
.barre .l88 { width: 88%; } .barre .s88 { left: 88%; }
.barre .l89 { width: 89%; } .barre .s89 { left: 89%; }
.barre .l90 { width: 90%; } .barre .s90 { left: 90%; }
.barre .l91 { width: 91%; } .barre .s91 { left: 91%; }
.barre .l92 { width: 92%; } .barre .s92 { left: 92%; }
.barre .l93 { width: 93%; } .barre .s93 { left: 93%; }
.barre .l94 { width: 94%; } .barre .s94 { left: 94%; }
.barre .l95 { width: 95%; } .barre .s95 { left: 95%; }
.barre .l96 { width: 96%; } .barre .s96 { left: 96%; }
.barre .l97 { width: 97%; } .barre .s97 { left: 97%; }
.barre .l98 { width: 98%; } .barre .s98 { left: 98%; }
.barre .l99 { width: 99%; } .barre .s99 { left: 99%; }
.barre .l100 { width: 100%; } .barre .s100 { left: 100%; }

/* Règles communes à la console et aux pages d'App: avis, alertes, notifications, attente. */
/* ---- Alertes, notifications, attente ---- */
.avis, .telechargement, .auto { display: none; }
#alertes, #notifs { position: fixed; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 40px); }
#alertes { top: 18px; }
#notifs { bottom: 22px; }
.alerte, .notif { display: flex; align-items: center; gap: 12px; background: #ffffff; border: 1.5px solid var(--bleu); border-radius: 9px; padding: 13px 14px 13px 13px; box-shadow: 0 8px 24px rgba(18, 40, 76, 0.16); color: var(--encre); font-size: 12.5px; overflow-wrap: anywhere; }
.alerte::before, .notif::before { content: ''; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--teinte) url(/i/coche-a.svg) center / 18px no-repeat; }
.alerte .texte, .notif .texte { flex: 1; min-width: 0; }
.alerte .texte[data-titre]::before, .notif .texte[data-titre]::before { content: attr(data-titre); display: block; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bleu); margin: 0 0 5px 0; }
.alerte.erreur { border-color: var(--rouge); }
.alerte.erreur::before { background: var(--rouge-fond) url(/i/croix-rond-r.svg) center / 18px no-repeat; }
.alerte.erreur .texte::before { color: var(--rouge); }
.alerte.ok { border-color: var(--vert); }
.alerte.ok::before { background: var(--vert-fond) url(/i/coche-rond-v.svg) center / 18px no-repeat; }
.alerte.ok .texte::before { color: var(--vert); }
button.fermer { width: 26px; height: 26px; min-height: 26px; padding: 0; margin: 0; background: transparent; border: 0; color: var(--gris); font-size: 22px; font-weight: 400; line-height: 1; align-self: flex-start; }
button.fermer:hover { background: var(--champ); }
div.erreur:not(.alerte) { display: flex; align-items: center; gap: 10px; background: var(--rouge-fond); color: var(--rouge); border-radius: 8px; padding: 12px 16px; margin: 0 0 20px 0; font-weight: 700; font-size: 13px; }
#patience { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2000; background: rgba(18, 40, 76, 0.42); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; font-size: 16px; font-weight: 700; color: var(--encre); }
#patience::before { content: ''; position: absolute; top: 50%; left: 50%; width: 376px; height: 164px; margin: -82px 0 0 -188px; background: #ffffff; border-radius: 12px; box-shadow: 0 12px 36px rgba(18, 40, 76, 0.28); }
#patience .roue { position: relative; width: 62px; height: 62px; border-radius: 50%; background: var(--teinte) url(/i/rotation-a.svg) center / 30px no-repeat; animation: tourne 1.4s linear infinite; }
#patience span { position: relative; }
@keyframes tourne { to { transform: rotate(360deg); } }
/* Capture du visage: la caméra dans son cadre, l'ovale où placer le visage, la jauge des vues retenues, la consigne. */
.fs-visage { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 16px 0; }
.fs-visage-cadre { position: relative; width: 100%; max-width: 260px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #10213f; }
.fs-visage-cadre video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.fs-visage-ovale { position: absolute; top: 9%; bottom: 9%; left: 16%; right: 16%; border: 3px solid #ffffff; border-radius: 50%; box-shadow: 0 0 0 999px rgba(16, 33, 63, 0.45); pointer-events: none; }
.fs-visage.fait .fs-visage-ovale { border-color: #1f8a4c; }
.fs-visage-barre { width: 100%; max-width: 260px; height: 6px; border-radius: 3px; background: rgba(16, 33, 63, 0.14); overflow: hidden; }
.fs-visage-jauge { display: block; height: 100%; width: 0; background: #1f8a4c; transition: width 0.25s; }
.fs-visage-consigne { margin: 0; min-height: 1.4em; text-align: center; font-weight: 600; }

/* CityFractal Yop */
.y-app { --y-texte: #141416; --y-doux: #63666d; --y-trait: #dedfe2; --y-champ: #f3f3f4; --y-vif: #e8641b; --y-rayon: 18px;
  min-height: 100vh; display: flex; flex-direction: column; color: var(--y-texte); font: 15px/1.5 Inter, "Segoe UI", Roboto, system-ui, sans-serif;
  background: linear-gradient(160deg, #ffffff 0%, #f6f6f7 45%, #e2e3e6 100%); }
.y-app * { box-sizing: border-box; }
.y-app h1, .y-app h2, .y-app h3, .y-app p { margin: 0; font-family: inherit; color: inherit; letter-spacing: normal; }
.y-entete { display: flex; align-items: center; gap: 14px; padding: 18px 110px 18px 40px; }
.y-marque { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.y-app img.y-logo { width: 38px; height: 38px; border-radius: 11px; display: block; }
.y-nom { font-weight: 700; font-size: 17px; }
.y-moi { display: flex; align-items: center; gap: 12px; }
.y-pastille { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--y-trait); background: #ffffff; border-radius: 999px; padding: 6px 14px 6px 10px; font-weight: 700; font-size: 13px; }
.y-pastille .y-point, .y-service .y-point { width: 10px; height: 10px; border-radius: 50%; background: var(--y-vif); flex: none; }
.y-qui { color: var(--y-doux); font-size: 13.5px; }
.y-page { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 8px 40px 28px; }
.y-app p.y-sur { color: var(--y-vif); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.y-app h1.y-titre { font-size: 44px; line-height: 1.08; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.y-app p.y-chapeau { color: var(--y-doux); font-size: 18px; line-height: 1.55; }
.y-haut { display: grid; grid-template-columns: minmax(0, 1fr) 470px; gap: 44px; align-items: center; margin-bottom: 28px; }
.y-mosaique { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: 118px 118px; gap: 10px; }
.y-app .y-mosaique img, .y-app img.y-image { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; display: block; box-shadow: 0 10px 28px rgba(20, 20, 22, .14); }
.y-app .y-mosaique img.y-grande { grid-row: 1 / 3; }
.y-portes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.y-carte { background: #ffffff; border: 1px solid var(--y-trait); border-radius: var(--y-rayon); padding: 26px; box-shadow: 0 1px 2px rgba(20, 20, 22, .04), 0 12px 32px rgba(20, 20, 22, .06); }
.y-porte { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.y-porte.y-une { border-color: var(--y-texte); }
.y-bandeau { height: 132px; margin: -26px -26px 14px; }
.y-app .y-bandeau img { width: 100%; height: 100%; object-fit: cover; display: block; }
.y-app .y-porte h2 { font-size: 22px; font-weight: 700; }
.y-app .y-porte p { color: var(--y-doux); flex: 1; margin-bottom: 6px; }
.y-app button.y-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: auto; min-width: 0; height: 50px; min-height: 50px; margin: 0; padding: 0 26px; border-radius: 999px;
  border: 1.5px solid var(--y-texte); background: var(--y-texte); color: #ffffff; font: inherit; font-weight: 700; font-size: 16px; line-height: 1; cursor: pointer; align-self: flex-start; box-shadow: none; }
.y-app button.y-btn:hover { background: #2b2b2f; border-color: #2b2b2f; }
.y-app button.y-btn.y-sec { background: #ffffff; color: var(--y-texte); border-color: var(--y-trait); }
.y-app button.y-btn.y-sec:hover { background: var(--y-champ); border-color: #c9cbd0; }
.y-app button.y-btn.y-large { display: flex; width: 100%; align-self: stretch; }
.y-app button.y-btn.y-petit { height: 40px; min-height: 40px; padding: 0 18px; font-size: 14px; }
.y-services { margin-top: 26px; }
.y-app .y-services h3, .y-app h3.y-rubrique { font-size: 13px; color: var(--y-doux); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.y-puces { display: flex; flex-wrap: wrap; gap: 10px; }
.y-service { display: inline-flex; align-items: center; gap: 8px; background: #ffffff; border: 1px solid var(--y-trait); border-radius: 999px; padding: 8px 14px; font-size: 14px; }
.y-s-ecole .y-point, .y-fam-ecole .y-point { background: #a56be0; }
.y-s-securite .y-point, .y-fam-securite .y-point { background: #d9483b; }
.y-s-cadastre .y-point, .y-fam-cadastre .y-point { background: #3fa57a; }
.y-s-sante .y-point, .y-fam-sante .y-point { background: #c2185b; }
.y-s-transport .y-point, .y-fam-transport .y-point { background: #e6a23a; }
.y-s-business .y-point, .y-fam-business .y-point { background: #8a5a2b; }
.y-s-services-urbains .y-point, .y-fam-services-urbains .y-point { background: #6b7280; }
/* connexion */
.y-deux { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding-top: 22px; }
.y-cadre { position: relative; height: 500px; }
.y-legende { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(255, 255, 255, .92); border-radius: 14px; padding: 16px 18px; }
.y-app .y-legende h1 { font-size: 28px; font-weight: 800; line-height: 1.15; margin: 8px 0 6px; }
.y-app .y-legende p { color: var(--y-doux); font-size: 14.5px; line-height: 1.45; }
.y-app .y-form h2 { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
.y-app .y-form p.y-aide { color: var(--y-doux); font-size: 14.5px; margin: 0 0 22px; }
.y-app .y-form label { display: block; font-weight: 600; font-size: 13.5px; color: var(--y-texte); margin: 0 0 16px; }
.y-app .y-form input.y-champ { display: block; width: 100%; height: 50px; margin: 7px 0 0; padding: 0 16px; border-radius: 13px; border: 1.5px solid var(--y-trait); background: var(--y-champ); color: var(--y-texte); font: inherit; font-weight: 500; font-size: 16px; box-shadow: none; }
.y-app .y-form input.y-champ:focus { outline: 0; border-color: var(--y-texte); box-shadow: none; }
.y-app .y-form input.y-champ.y-cle { font-family: ui-monospace, Consolas, monospace; letter-spacing: .16em; }
.y-note { display: block; color: var(--y-doux); font-size: 12.5px; font-weight: 400; margin-top: 6px; }
.y-app .y-form .y-btn + .y-btn { margin-top: 10px; }
.y-app p.y-session { text-align: center; color: var(--y-doux); font-size: 13px; margin: 18px 0 0; }
.y-app p.y-message { color: var(--y-vif); font-weight: 600; margin: 0 0 12px; }
.y-app p.y-message:empty { display: none; }
/* espace connecté */
.y-onglets { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }
.y-app button.y-onglet { display: inline-flex; align-items: center; width: auto; min-width: 0; height: 42px; min-height: 42px; margin: 0; padding: 0 18px; border-radius: 999px; border: 1px solid var(--y-trait); background: #ffffff; color: var(--y-texte); font: inherit; font-weight: 600; font-size: 14.5px; line-height: 1; cursor: pointer; box-shadow: none; }
.y-app button.y-onglet:hover { background: var(--y-champ); }
.y-app button.y-onglet.y-actif { background: var(--y-texte); border-color: var(--y-texte); color: #ffffff; }
.y-app .y-carte h2.y-h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
.y-app .y-carte p.y-texte { color: var(--y-doux); margin: 0 0 14px; }
.y-app ul.y-liste { list-style: none; margin: 0 0 18px; padding: 0; }
.y-app ul.y-liste li { padding: 12px 0; border-bottom: 1px solid #ececee; }
.y-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.y-accueil { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: stretch; }
.y-accueil .y-cadre { height: 240px; }
.y-tuiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 22px; }
.y-app .y-tuiles button.y-onglet { height: 64px; min-height: 64px; border-radius: 16px; justify-content: flex-start; font-size: 15.5px; box-shadow: 0 6px 18px rgba(20, 20, 22, .05); }
.y-pied { display: flex; justify-content: flex-end; gap: 16px; padding: 14px 40px 20px; color: var(--y-doux); font-size: 12px; }
.y-app img.fne-marque { height: 1em; width: auto; vertical-align: -0.12em; display: inline-block; border-radius: 0; box-shadow: none; }
.y-app button.y-lien { display: block; width: auto; height: auto; min-height: 0; min-width: 0; margin: 14px auto 0; padding: 4px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--y-doux); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; box-shadow: none; }
.y-app button.y-lien:hover { background: transparent; color: var(--y-texte); }
/* site public et administration du portail */
.y-menu { display: flex; gap: 8px; }
.y-blocs { display: grid; gap: 18px; margin-top: 26px; }
.y-bloc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
.y-bloc-image { height: 220px; }
.y-app .y-carte.y-bloc { grid-template-columns: minmax(0, 1fr); }
.y-app p.y-prose { color: var(--y-doux); font-size: 16px; line-height: 1.6; white-space: pre-line; }
.y-fil { margin-top: 30px; }
.y-actus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 14px; }
.y-actus.y-toutes { grid-template-columns: minmax(0, 1fr); }
.y-actu-image { height: 150px; margin-bottom: 14px; }
.y-actus.y-toutes .y-actu-image { height: 260px; }
.y-app p.y-date { color: var(--y-doux); font-size: 12.5px; font-weight: 600; letter-spacing: .04em; margin: 0 0 6px; }
.y-app .y-actu h2.y-h2 { font-size: 19px; }
.y-app h2.y-titre-page { font-size: 22px; font-weight: 700; margin: 0 0 16px; }
.y-fiche { margin-bottom: 16px; }
.y-fiche.y-ajout { border-style: dashed; box-shadow: none; }
.y-app .y-fiche label { display: block; font-weight: 600; font-size: 13.5px; color: var(--y-texte); margin: 0 0 14px; }
.y-app .y-fiche input.y-champ, .y-app .y-fiche textarea.y-champ { display: block; width: 100%; margin: 7px 0 0; padding: 12px 16px; border-radius: 13px; border: 1.5px solid var(--y-trait); background: var(--y-champ); color: var(--y-texte); font: inherit; font-size: 15.5px; box-shadow: none; }
.y-app .y-fiche input.y-champ { height: 48px; padding: 0 16px; }
.y-app .y-fiche textarea.y-zone { min-height: 130px; resize: vertical; line-height: 1.5; }
.y-app .y-fiche input.y-champ:focus, .y-app .y-fiche textarea.y-champ:focus { outline: 0; border-color: var(--y-texte); }
.y-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; padding: 18px 22px; }
/* guichet: les visages approchants, la personne identifiée */
.y-visages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 6px 0 18px; }
.y-visage { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px; }
.y-app .y-visage img.y-portrait, .y-app img.y-portrait { width: 144px; height: 180px; object-fit: cover; border-radius: 14px; display: block; box-shadow: 0 8px 22px rgba(20, 20, 22, .14); }
.y-app .y-visage h3 { font-size: 18px; font-weight: 700; }
.y-fiche-personne { display: flex; align-items: center; gap: 22px; margin-bottom: 18px; }
/* le bouton de langue du Binaire, à droite de l'entête */
.coque.portail ~ button.langue { left: auto; right: 40px; top: 24px; height: 28px; min-height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid #dedfe2; background: #ffffff; color: #63666d; font-size: 12px; }
.coque.portail ~ button.langue:hover { background: #f3f3f4; }
@media (max-width: 760px) {
.y-app .y-entete { padding: 12px 72px 12px 16px; position: sticky; top: 0; z-index: 2; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--y-trait); }
.y-app .y-qui, .y-app .y-moi .y-pastille { display: none; }
.y-app .y-page { padding: 14px 16px 24px; }
.y-app h1.y-titre { font-size: 30px; }
.y-app p.y-chapeau { font-size: 16px; }
.y-app .y-haut, .y-app .y-deux, .y-app .y-portes, .y-app .y-accueil { grid-template-columns: minmax(0, 1fr); gap: 16px; }
.y-app .y-haut { margin-bottom: 18px; }
.y-app .y-mosaique { grid-template-rows: 92px 92px; }
.y-app .y-cadre { height: auto; }
.y-app .y-cadre img.y-image { height: 150px; }
.y-app .y-legende { position: static; background: none; padding: 12px 2px 0; }
.y-app .y-legende h1 { font-size: 24px; }
.y-app .y-carte { padding: 20px; }
.y-app .y-bandeau { height: 110px; margin: -20px -20px 12px; }
.y-app button.y-lien { display: block; width: auto; height: auto; min-height: 0; }
.y-app button.y-btn { display: flex; width: 100%; align-self: stretch; height: 54px; min-height: 54px; }
.y-app .y-onglets { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px; }
.y-app button.y-onglet { flex: none; height: 46px; min-height: 46px; }
.y-app .y-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.y-app .y-entete { flex-wrap: wrap; }
.y-app .y-menu { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
.y-app .y-actus { grid-template-columns: minmax(0, 1fr); }
.y-app .y-bloc-image { height: 160px; }
.y-app .y-ligne { flex-direction: column; align-items: stretch; }
.y-app .y-tuiles button.y-onglet { flex: initial; height: 64px; min-height: 64px; }
.y-app .y-actions { flex-direction: column; }
.y-app .y-pied { padding: 10px 16px 16px; }
.y-app .y-visages { grid-template-columns: minmax(0, 1fr); }
.y-app .y-fiche-personne { flex-direction: column; align-items: flex-start; }
  .coque.portail ~ button.langue { right: 16px; top: 17px; }
}

