/* Synovizion V2 — un seul écran : l'étage, et tout le reste dans des volets. Clair, sobre, un seul accent (le vermillon)
   réservé à l'action et à ce qui t'attend. Textes petits et nets, comme un logiciel. */
@font-face { font-family: "Archivo"; src: url("polices/archivo.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("polices/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --fond: #F4F2EE;
  --surface: #FFFFFF;
  --surface-2: #EEEBE5;
  --encre: #18181B;
  --encre-2: #57544E;
  --encre-3: #8A867E;
  --trait: #E2DED6;
  --accent: #D23C25;
  --accent-fond: #FBE9E5;
  --vert: #2F7D4F;
  --vert-fond: #E6F2EA;
  --ambre: #A3620B;
  --ambre-fond: #FBF0DD;
  --rayon: 10px;
  --texte: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titre: "Bricolage", "Archivo", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--fond); color: var(--encre); font: 14px/1.5 var(--texte); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
button, select, textarea, input { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code, pre { font-family: var(--mono); font-size: 12px; }
button.principal { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 7px 14px; font-weight: 600; cursor: pointer; min-height: 34px; }
button.principal:hover { filter: brightness(0.94); }
button.principal:disabled { opacity: .5; cursor: default; }
button.principal.arreter { background: var(--encre); }
button.discret { background: none; border: 0; color: var(--encre-2); cursor: pointer; padding: 6px 4px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait); font-size: 12.5px; }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.erreur { color: var(--accent); font-weight: 600; }
.vide { color: var(--encre-3); }
@keyframes pouls { 50% { opacity: .35; } }

/* ——— Entrée ——— */
.page-entree { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.entree { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--trait); border-radius: 14px; padding: 28px; font-size: 15px; }
.entree .marque { font: 700 15px var(--titre); letter-spacing: .02em; margin: 0 0 18px; }
.entree h1 { font: 700 26px/1.1 var(--titre); margin: 0 0 6px; }
.entree .aide { color: var(--encre-2); margin: 0 0 18px; }
.entree label { display: block; font-weight: 600; margin-bottom: 6px; }
.entree input { width: 100%; padding: 11px 12px; border: 1px solid var(--trait); border-radius: 8px; background: var(--fond); font-size: 16px; margin-bottom: 14px; }
.entree button { width: 100%; min-height: 42px; }
.entree .secours { color: var(--encre-3); font-size: 13px; margin-top: 18px; word-break: break-word; }

/* ——— Le logiciel : rail, barre du haut, la scène, des volets posés dessus ——— */
.page-logiciel { overflow: hidden; height: 100dvh; background: #E9E5DE; }
.logiciel { display: grid; grid-template-columns: 64px minmax(0, 1fr); height: 100dvh; }
.rail { background: var(--surface); border-right: 1px solid var(--trait); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 0; z-index: 3; }
.rail-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--encre); color: #fff; display: grid; place-items: center; font: 800 16px var(--titre); text-decoration: none; margin-bottom: 12px; }
.rail-lien { position: relative; width: 54px; display: grid; justify-items: center; gap: 2px; padding: 7px 0 5px; border-radius: 10px; background: none; border: 0; cursor: pointer;
  color: var(--encre-3); text-decoration: none; font-size: 10px; font-weight: 600; }
.rail-lien svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rail-lien:hover { background: var(--surface-2); color: var(--encre); }
.rail-lien.actif { background: var(--accent-fond); color: var(--accent); }
.rail-bas { margin-top: auto; }
.rail-pastille { position: absolute; top: 2px; right: 7px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 9.5px/15px var(--texte); font-style: normal; }
.zone { display: grid; grid-template-rows: auto minmax(0, 1fr); min-width: 0; }
.haut { display: flex; align-items: center; gap: 16px; padding: 8px 18px; background: var(--surface); border-bottom: 1px solid var(--trait); z-index: 2; }
.fil-ariane { display: grid; line-height: 1.2; min-width: 130px; }
.fil-ariane b { font: 700 15px var(--titre); }
.fil-ariane span { color: var(--encre-3); font-size: 11.5px; }
.fil-ariane span::first-letter { text-transform: uppercase; }
.recherche { flex: 0 1 380px; margin: 0 auto; display: flex; align-items: center; gap: 7px; background: var(--fond); border: 1px solid var(--trait); border-radius: 9px; padding: 0 10px; height: 32px; }
.recherche svg { width: 15px; height: 15px; fill: none; stroke: var(--encre-3); stroke-width: 2; flex: none; }
.recherche input { border: 0; background: none; outline: 0; width: 100%; font-size: 13px; }
.recherche:focus-within { border-color: var(--encre-3); }
.jauges { display: flex; gap: 5px; }
.jauges span { background: var(--fond); border: 1px solid var(--trait); border-radius: 8px; padding: 3px 8px; font-size: 11px; color: var(--encre-3); white-space: nowrap; }
.jauges b { color: var(--encre); font-weight: 650; font-variant-numeric: tabular-nums; margin-left: 2px; }

.scene-cadre { position: relative; overflow: hidden; touch-action: none; cursor: grab; background: #E9E5DE; }
.scene, .scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.chargement { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--encre-3); }
.etiquettes { position: absolute; inset: 0; pointer-events: none; }
.etq { position: absolute; left: 0; top: 0; white-space: nowrap; will-change: transform; }
.etq-piece { display: flex; align-items: center; gap: 5px; background: rgba(255, 255, 255, .92); border-radius: 99px; padding: 2px 4px 2px 9px; box-shadow: 0 2px 8px rgba(24, 24, 27, .12); }
.etq-piece b { font: 650 11px var(--texte); letter-spacing: .01em; }
.etq-piece .etoiles { font-size: 8.5px; letter-spacing: 0; }
.etq-piece .nb-alertes { min-width: 15px; height: 15px; font-size: 9.5px; }
.etq-piece:not(:has(.nb-alertes)) { padding-right: 9px; }
.etq-petite { font: 600 9px var(--texte); color: #fff; background: rgba(24, 24, 27, .72); border-radius: 4px; padding: 0 5px; }
.etq-nom { font: 600 9.5px var(--texte); color: #fff; background: rgba(24, 24, 27, .78); border-radius: 99px; padding: 1px 7px; }
.etq-bulle { background: var(--surface); border-radius: 10px 10px 10px 3px; padding: 4px 8px; font-size: 11px; line-height: 1.35; max-width: 210px; white-space: normal;
  box-shadow: 0 4px 12px rgba(24, 24, 27, .14); color: var(--encre-2); border: 1.5px solid transparent; }
.etq-bulle b { color: var(--encre); margin-right: 4px; }
.etq-bulle.au-travail { border-color: var(--accent); }
.etq-bulle.vient-de { border-color: var(--vert); }
.infobulle { position: absolute; left: 0; top: 0; background: var(--encre); color: #fff; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; z-index: 4; }
.sans-3d { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); background: var(--surface); border-radius: 12px; padding: 12px 16px; }

/* les volets */
.volet { position: absolute; z-index: 3; background: var(--surface); border-radius: 14px; box-shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 8px 26px rgba(24, 24, 27, .10); cursor: default; touch-action: auto; font-size: 13px; }
.volet h3 { font: 700 10.5px var(--texte); text-transform: uppercase; letter-spacing: .08em; color: var(--encre-3); margin: 16px 0 6px; }
.volet h3.objet { font: 700 14px var(--titre); text-transform: none; letter-spacing: 0; color: var(--encre); margin: 4px 0 8px; }
.volet p { margin: 5px 0; }
.volet .aide { color: var(--encre-3); font-size: 12px; }
.sur-titre { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-3); font-weight: 700; margin: 0; }
.volet-direct { left: 14px; top: 14px; width: 264px; padding: 12px; }
.point-direct { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--vert); margin-right: 6px; vertical-align: 1px; animation: pouls 2s ease-in-out infinite; }
.avatar { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; font: 700 12px var(--titre); }
.a-valider { display: block; width: 100%; text-align: left; background: var(--accent-fond); color: var(--accent); border: 0; border-radius: 9px; padding: 6px 9px; margin: 0 0 6px; font-size: 12px; font-weight: 600; cursor: pointer; }
.a-valider:hover { filter: brightness(.97); }
.tuiles { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.tuile { background: var(--fond); border-radius: 9px; padding: 6px 9px; display: grid; line-height: 1.2; }
.tuile span { font-size: 10.5px; color: var(--encre-3); }
.tuile b { font: 700 16px var(--titre); font-variant-numeric: tabular-nums; margin-top: 1px; }
.tuile small { font-size: 10px; color: var(--encre-3); }
.tuile.vert b { color: var(--vert); } .tuile.rouge b { color: var(--accent); }
/* ——— « En direct » (direct.js) : le verdict d'abord ; le vert se tait, seul ce qui cloche grandit ——— */
.dd-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.dd-tete small { font-size: 11px; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.dd-tete small.ko { color: var(--accent); font-weight: 650; }
.point-direct.eteint { background: var(--accent); animation: none; }
.dd-verdict { display: flex; align-items: center; gap: 7px; width: 100%; margin: 0 0 11px; font: 700 15.5px/1.25 var(--titre); letter-spacing: -.01em; }
.dd-verdict.calme { color: var(--vert); }
.dd-coche { flex: none; width: 19px; height: 19px; border-radius: 50%; background: var(--vert-fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%232F7D4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
button.dd-verdict { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; text-align: left; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; background: var(--accent-fond); color: var(--accent); }
button.dd-verdict:hover { filter: brightness(.97); }
button.dd-verdict small { grid-column: 1; font: 500 11.5px/1.3 var(--texte); letter-spacing: 0; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-fleche { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 22px; line-height: 1; }
.dd-jeffrey { display: flex; align-items: center; gap: 6px; }
.dd-qui { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 4px; margin: -4px; border-radius: 10px; cursor: pointer; text-align: left; }
.dd-qui:hover { background: var(--fond); }
.dd-texte { min-width: 0; display: grid; line-height: 1.3; }
.dd-texte b { font-size: 13px; white-space: nowrap; }
.dd-etat { font-weight: 500; font-size: 12px; color: var(--encre-3); }
.au-travail .dd-etat { color: var(--vert); font-weight: 650; }
.dd-point { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin: 0 4px 1px 2px; animation: pouls 1.4s ease-in-out infinite; }
.dd-texte small { font-size: 12px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-stop { flex: none; display: flex; align-items: center; gap: 6px; border: 1px solid var(--trait); background: var(--surface); border-radius: 8px; padding: 5px 9px; font-size: 12px; font-weight: 650; cursor: pointer; }
.dd-stop i { width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.dd-stop:hover { border-color: var(--accent); color: var(--accent); }
.dd-energie { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.dd-barre { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.dd-barre i { display: block; height: 100%; background: var(--vert); border-radius: 99px; transition: width .6s ease; }
.dd-energie small { flex: none; font-size: 11px; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.dd-energie.basse .dd-barre i { background: var(--accent); } .dd-energie.basse small { color: var(--accent); font-weight: 650; }
.dd-etat-ligne { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: 10px 0 0; padding-top: 9px; border-top: 1px solid var(--trait); font-size: 11.5px; color: var(--encre-3); }
.dd-item { border: 0; background: none; padding: 0; font: inherit; color: inherit; font-variant-numeric: tabular-nums; }
button.dd-item { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.dd-item.doux { color: var(--ambre); } .dd-item.ko { color: var(--accent); font-weight: 700; }
.dd-autonomie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 0; font-size: 11.5px; color: #4b3592; }
.dd-autonomie button { flex: none; border: 1px solid #b9a6f0; background: #f6f2ff; color: #4b3592; border-radius: 7px; padding: 3px 10px; font-size: 11.5px; font-weight: 650; cursor: pointer; }
.dd-autonomie.en-pause { color: var(--accent); font-weight: 650; }
.dd-autonomie.en-pause button { border-color: var(--accent); background: var(--accent); color: #fff; }
.dd-progres { margin: 6px 0 -2px; }
.dd-progres-tete { border: 0; background: none; padding: 2px 0; font-size: 11px; color: var(--encre-3); cursor: pointer; display: flex; align-items: center; gap: 5px; }
.dd-progres-tete:hover { color: var(--encre); } .dd-progres-tete i { font-style: normal; }
.dd-progres-corps > small { display: block; font-size: 11px; color: var(--encre-3); margin-top: 3px; }
.volet-alerte { left: 14px; top: 250px; width: 264px; overflow: hidden; }
.volet-alerte button { width: 100%; text-align: left; background: none; border: 0; padding: 10px 12px 10px 14px; cursor: pointer; display: grid; gap: 1px; border-left: 4px solid var(--accent); }
.volet-alerte.g-importante button { border-left-color: #e0960f; }
.volet-alerte .sur-titre { color: var(--accent); } .volet-alerte.g-importante .sur-titre { color: var(--ambre); }
.volet-alerte b { font-size: 12.5px; line-height: 1.3; }
.volet-alerte small { color: var(--encre-3); font-size: 11px; }
.volet-alerte button:hover { background: var(--fond); }

/* le volet de détail : en-tête, onglets, corps qui défile */
.volet-detail { right: 14px; top: 14px; bottom: 78px; width: 380px; display: flex; flex-direction: column; overflow: hidden; }
.volet-detail.grand { width: 440px; bottom: 14px; }
.dossier-tete { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px 0 16px; }
.dossier-tete > div { flex: 1; min-width: 0; }
.dossier-tete h2 { font: 700 17px/1.2 var(--titre); margin: 1px 0 0; }
.fermer { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--fond); font-size: 16px; line-height: 1; cursor: pointer; color: var(--encre-2); }
.fermer:hover { background: var(--surface-2); }
.dossier-onglets { display: flex; gap: 2px; padding: 8px 12px 0; border-bottom: 1px solid var(--trait); }
.dossier-onglets button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 8px 7px; margin-bottom: -1px; cursor: pointer; color: var(--encre-3); font-size: 12.5px; font-weight: 600; }
.dossier-onglets button:hover { color: var(--encre); }
.dossier-onglets button.actif { color: var(--encre); border-bottom-color: var(--accent); }
.dossier-corps { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 16px; }
.alertes { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 5px; }
.alerte { display: grid; gap: 1px; background: var(--ambre-fond); border-radius: 9px; padding: 7px 10px; font-size: 12px; }
.alerte.g-critique { background: var(--accent-fond); } .alerte.g-info { background: var(--fond); }
.alerte span { color: var(--encre-2); } .alerte small { color: var(--encre-3); font-size: 10.5px; }
.rien-a-signaler { color: var(--vert); font-weight: 600; }
.journal { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 5px; font-size: 12px; color: var(--encre-2); }
.journal time { display: block; font-size: 10px; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.etoiles { letter-spacing: 1px; font-size: 11px; color: #d9d4ca; }
.etoiles i { font-style: normal; } .etoiles .pleine { color: #e0960f; }
.nb-alertes { background: var(--accent); color: #fff; font: 700 10px var(--texte); border-radius: 99px; min-width: 17px; height: 17px; display: inline-grid; place-items: center; padding: 0 4px; }
.etoiles-detail { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.etoiles-detail li { display: grid; grid-template-columns: 16px auto; column-gap: 5px; color: var(--encre-3); font-size: 12.5px; }
.etoiles-detail li i { font-style: normal; color: #d9d4ca; grid-row: span 2; }
.etoiles-detail li.ok { color: var(--encre); } .etoiles-detail li.ok i { color: #e0960f; }
.etoiles-detail li span { grid-column: 2; font-size: 11px; color: var(--encre-3); }
.puces { display: flex; flex-wrap: wrap; gap: 4px; }
.svc { font-style: normal; font-size: 11px; font-family: var(--mono); border-radius: 5px; padding: 0 6px; }
.svc-ok { background: var(--vert-fond); color: var(--vert); }
.svc-ko { background: var(--accent-fond); color: var(--accent); font-weight: 700; }
.legende-papiers { font-size: 12px; } .legende-papiers i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: -1px; margin: 0 4px 0 8px; }
.legende-papiers i:first-child { margin-left: 0; }
.p-nous { background: var(--accent); } .p-jeffrey { background: #f0b13a; } .p-autres { background: #c9d4e6; }
.apercu-taches { padding-left: 16px; font-size: 12.5px; } .apercu-taches li { margin: 3px 0; }
.systeme { color: var(--encre-3); font-size: 11.5px; }
.demander { margin-top: 16px; border-top: 1px solid var(--trait); padding-top: 12px; }
.demander label { display: block; font-weight: 650; margin-bottom: 5px; font-size: 12.5px; }
.demander textarea { width: 100%; resize: vertical; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 9px; background: var(--fond); font-size: 13px; }
.demander .boutons { display: flex; align-items: center; gap: 12px; margin-top: 6px; }

/* l'onglet Jeffrey : le fil défile, la saisie reste en bas */
.fil { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 6px; }
.vide-fil { color: var(--encre-2); font-size: 13px; }
.suggestions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.suggestions button { background: var(--surface); border: 1px solid var(--trait); border-radius: 99px; padding: 5px 11px; cursor: pointer; font-size: 12px; }
.suggestions button:hover { border-color: var(--encre-3); }
.msg { margin: 0 0 10px; font-size: 13px; }
.msg.moi { display: flex; justify-content: flex-end; }
.msg.moi .corps { background: var(--surface-2); border-radius: 12px 12px 4px 12px; padding: 7px 11px; max-width: 85%; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.systeme .corps { font-family: var(--mono); font-size: 11px; color: var(--encre-2); border-left: 3px solid var(--trait); padding: 3px 10px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 160px; overflow: auto; }
.msg.agent { background: var(--fond); border-radius: 4px 12px 12px 12px; padding: 9px 12px; }
.msg.agent > header { font: 700 11.5px var(--titre); color: var(--encre); margin-bottom: 3px; }
.msg.agent .corps { overflow-wrap: anywhere; }
.msg.agent .corps > :first-child { margin-top: 0; }
.msg.agent .corps > :last-child { margin-bottom: 0; }
.msg.agent .corps p { margin: 6px 0; }
.msg.agent .corps ul, .msg.agent .corps ol { padding-left: 18px; margin: 6px 0; }
.msg.agent .corps h1, .msg.agent .corps h2, .msg.agent .corps h3 { font: 700 13.5px var(--titre); margin: 10px 0 4px; text-transform: none; letter-spacing: 0; color: var(--encre); }
.msg.agent .corps pre { background: var(--surface); border: 1px solid var(--trait); border-radius: 7px; padding: 8px 10px; overflow-x: auto; }
.msg.agent .corps code { background: var(--surface); padding: 1px 4px; border-radius: 4px; }
.msg.agent .corps pre code { background: none; padding: 0; }
.msg.agent .corps table { border-collapse: collapse; font-size: 12px; display: block; overflow-x: auto; }
.msg.agent .corps th, .msg.agent .corps td { border: 1px solid var(--trait); padding: 3px 6px; }
.msg.agent.en-cours .corps { white-space: pre-wrap; }
.msg.en-erreur { box-shadow: inset 0 0 0 1px var(--accent); }
.outils { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.outils li { font-size: 11px; color: var(--encre-3); font-family: var(--mono); overflow-wrap: anywhere; }
.outils li::before { content: "↳ "; }
.usage { margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--trait); font-size: 10.5px; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.attente { display: inline-flex; gap: 4px; }
.attente i { width: 5px; height: 5px; background: var(--encre-3); border-radius: 50%; animation: pouls 1s infinite; }
.attente i:nth-child(2) { animation-delay: .2s; } .attente i:nth-child(3) { animation-delay: .4s; }
.action { background: var(--surface); border: 1px solid var(--trait); border-left: 4px solid var(--trait); border-radius: 9px; padding: 9px 12px; margin: 0 0 10px; font-size: 12.5px; }
.action.etat-en_attente { border-left-color: var(--accent); }
.action.etat-executee { border-left-color: var(--vert); }
.action.etat-echec { border-left-color: var(--ambre); }
.action header { font-size: 11.5px; color: var(--encre-2); }
.action .etat { font-weight: 600; }
.action.etat-en_attente .etat { color: var(--accent); }
.action .motif { margin: 5px 0; }
.action pre { background: var(--fond); border: 1px solid var(--trait); border-radius: 7px; padding: 8px 10px; overflow-x: auto; max-height: 300px; white-space: pre; font-size: 11px; }
.action .sortie { max-height: 220px; }
.action .boutons { display: flex; gap: 6px; margin-top: 8px; }
.action .boutons button:not(.principal) { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.saisie { border-top: 1px solid var(--trait); padding: 8px 12px 10px; background: var(--surface); }
.saisie textarea { width: 100%; resize: none; min-height: 44px; max-height: 30vh; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 10px; background: var(--fond); font-size: 13.5px; line-height: 1.4; }
.saisie textarea:focus { border-color: var(--encre-3); outline: none; }
.reglages { display: flex; align-items: center; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.reglages select { background: var(--surface); border: 1px solid var(--trait); border-radius: 7px; padding: 4px 5px; font-size: 11.5px; max-width: 130px; }
.depense-client { color: var(--encre-3); font-size: 10.5px; font-variant-numeric: tabular-nums; }
#envoyer { margin-left: auto; }

/* l'onglet Cerveau */
.fichiers { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.fichiers button { background: var(--fond); border: 0; border-radius: 99px; padding: 4px 10px; font-size: 12px; cursor: pointer; color: var(--encre-2); }
.fichiers button.actif { background: var(--encre); color: #fff; }
.doc { font-size: 13px; min-width: 0; }
.doc h1 { font: 700 15px var(--titre); margin: 0 0 8px; }
.doc h2 { font: 700 13.5px var(--titre); margin: 16px 0 4px; }
.doc h3 { font-size: 12.5px; text-transform: none; letter-spacing: 0; color: var(--encre); }
.doc ul { padding-left: 18px; }
.doc li { margin: 3px 0; }
.doc pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.qui { display: inline-block; font-size: 10.5px; font-weight: 600; border-radius: 99px; padding: 0 7px; margin-right: 4px; background: var(--surface-2); color: var(--encre-2); vertical-align: 1px; }
.qui-nous { background: var(--accent-fond); color: var(--accent); }
.qui-jeffrey { background: var(--ambre-fond); color: var(--ambre); }

/* l'onglet Santé (rendu par le serveur) */
.sante .aide-section { color: var(--encre-3); font-size: 11.5px; margin: 4px 0 8px; }
.serveurs { display: grid; gap: 6px; }
.serveur { background: var(--fond); border-radius: 9px; padding: 8px 10px; font-size: 12px; }
.serveur.hors { box-shadow: inset 0 0 0 1px var(--accent); }
.serveur header small { color: var(--encre-3); margin-left: 6px; }
.serveur p { margin: 4px 0 0; }
.mesures { display: flex; flex-wrap: wrap; gap: 2px 10px; color: var(--encre-2); }
.mesures b { color: var(--encre); font-variant-numeric: tabular-nums; }
.services { display: flex; flex-wrap: wrap; gap: 4px; }
.a-faire { color: var(--ambre); font-weight: 600; }
.etat-sauvegarde { font-weight: 600; }
.etat-sauvegarde.niveau-ok, .etat-sauvegarde.niveau-avertissement { color: var(--vert); }
.etat-sauvegarde.niveau-echec, .etat-sauvegarde.niveau-retard, .etat-sauvegarde.niveau-jamais { color: var(--accent); }
.table-defile { overflow-x: auto; max-width: 100%; }
table.machines { border-collapse: collapse; width: 100%; font-size: 11.5px; }
table.machines th, table.machines td { text-align: left; padding: 5px 6px; border-bottom: 1px solid var(--trait); vertical-align: top; }
table.machines th { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); }
table.machines code { font-size: 11px; }

/* la frise du parc et les commandes */
.volet-parc { left: 14px; right: 14px; bottom: 14px; margin: 0 auto; width: fit-content; max-width: calc(100% - 28px); display: flex; align-items: center; gap: 12px; padding: 7px 9px 7px 14px; }
.volet-detail:not([hidden]) ~ .volet-parc { right: 408px; margin: 0; }
.volet-detail.grand:not([hidden]) ~ .volet-parc { display: none; }
.parc-titre { display: grid; line-height: 1.25; flex: none; } .parc-titre small { font-size: 11px; color: var(--encre-2); }
.etapes { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.etapes button { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 7px; background: none; border: 0; border-radius: 9px; padding: 4px 8px 4px 4px; cursor: pointer; text-align: left; white-space: nowrap; }
.etapes button:hover { background: var(--fond); }
.etapes .choisi button { background: var(--accent-fond); }
.etapes b { font-size: 12px; line-height: 1.2; } .etapes small { font-size: 10.5px; color: var(--encre-3); line-height: 1.2; }
.etapes .nouveau { display: block; color: var(--encre-2); font-size: 12px; font-weight: 600; border: 1px dashed var(--trait); padding: 7px 10px; }
.rond { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#e0960f calc(var(--p) * 1%), var(--surface-2) 0); position: relative; }
.rond::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); }
.plein .rond { background: var(--vert); } .plein .rond::after { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='%232F7D4F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.anneau { flex: none; width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(var(--vert) calc(var(--p) * 1%), var(--surface-2) 0); display: grid; place-items: center; position: relative; }
.anneau::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--surface); }
.anneau b { position: relative; font: 700 11px var(--titre); }
.commandes { position: absolute; right: 14px; bottom: 76px; display: flex; gap: 5px; z-index: 3; } /* au-dessus de la frise : elle s'allonge avec les clients */
.volet-detail:not([hidden]) ~ .commandes { right: auto; left: 292px; bottom: 76px; }
.volet-detail.grand:not([hidden]) ~ .commandes { bottom: 14px; }
.commandes button { background: var(--surface); border: 0; border-radius: 9px; min-width: 34px; height: 34px; padding: 0 10px; font-size: 15px; cursor: pointer; box-shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 5px 16px rgba(24, 24, 27, .10); }
.commandes button#tout-voir { font-size: 12px; font-weight: 600; }
.commandes button:hover { background: var(--fond); }
@media (max-width: 1250px) { .jauges span:last-child { display: none; } .volet-parc .parc-titre { display: none; } }
@media (max-width: 1100px) and (min-width: 901px) { .volet-detail:not([hidden]) ~ .volet-parc { display: none; } }

/* ——— Le jeu : niveau, énergie, séries, failles, mémoire ——— */
.rail-pastille.douce { background: #d9a520; }
.avatar { position: relative; }
.avatar .niv { position: absolute; right: -5px; bottom: -4px; min-width: 15px; height: 15px; border-radius: 99px; background: #e0960f; color: #fff; font: 800 9px/15px var(--texte); font-style: normal; text-align: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--surface); }
.jauge-xp { display: block; height: 4px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.jauge-xp i { display: block; height: 100%; background: linear-gradient(90deg, #e0960f, #f2b84b); border-radius: 99px; }
.tuile.cliquable { cursor: pointer; } .tuile.cliquable:hover { background: var(--surface-2); }
.series { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.series li { display: flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--encre-2); background: #fff4e0; border-radius: 99px; padding: 2px 8px 2px 5px; }
.series li b { color: var(--encre); font-variant-numeric: tabular-nums; }
.series svg { width: 11px; height: 11px; fill: #e0700f; }
.series li.cassee { background: var(--accent-fond); color: var(--accent); }
.series li.cassee svg { fill: var(--encre-3); }
.series li.cassee b { color: var(--accent); }
.series li.nulle { background: var(--fond); } .series li.nulle svg { fill: var(--encre-3); }
.volet-alerte.g-moyenne button { border-left-color: #d9b31f; } .volet-alerte.g-faible button { border-left-color: #6b8fb5; }
.volet-alerte.g-moyenne .sur-titre { color: #8a6d00; } .volet-alerte.g-faible .sur-titre { color: #3f6489; }
.titre-gravite { display: flex; align-items: center; gap: 6px; }
.titre-gravite::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--g, var(--encre-3)); }
.g-critique { --g: var(--accent); } .g-importante { --g: #e0960f; } .g-moyenne { --g: #d9b31f; } .g-faible { --g: #6b8fb5; }
.failles { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.faille { background: var(--fond); border-radius: 10px; padding: 8px 10px 9px 12px; border-left: 4px solid var(--g); font-size: 12px; }
.faille.vue { box-shadow: 0 0 0 2px var(--g); background: var(--surface); }
.faille p { margin: 3px 0; color: var(--encre-2); }
.faille-voir { display: grid; grid-template-columns: auto 1fr; column-gap: 6px; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; }
.faille-voir b { font-size: 12.5px; } .faille-voir small { grid-column: 2; color: var(--encre-3); font-size: 11px; }
.faille .gravite { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--g); }
.faille .quete { color: var(--encre); }
.faille .quete i { font-style: normal; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--encre); border-radius: 4px; padding: 0 5px; margin-right: 6px; }
.faille .confier { margin-top: 4px; background: var(--surface); border: 1px solid var(--trait); border-radius: 7px; padding: 4px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.faille .confier:hover { border-color: var(--encre-3); }
.mode-parler { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.carte-niveau { display: flex; align-items: center; gap: 10px; background: #fff4e0; border-radius: 12px; padding: 9px 11px; }
.carte-niveau > div { flex: 1; min-width: 0; display: grid; }
.carte-niveau b { font-size: 13px; } .carte-niveau small { font-size: 11px; color: var(--encre-2); }
.gros-niveau { width: 38px; height: 38px; border-radius: 50%; background: #e0960f; color: #fff; display: grid; place-items: center; font: 800 18px var(--titre); flex: none; }
.etq-piece.or { background: #fff4d6; box-shadow: 0 0 0 1.5px #d9a520, 0 2px 8px rgba(24, 24, 27, .12); }
.nb-failles { color: #fff; font: 700 9.5px var(--texte); border-radius: 99px; min-width: 15px; height: 15px; display: inline-grid; place-items: center; padding: 0 4px; background: var(--g); }
.etq-bulle.pense { border: 1.5px dashed #c9b28f; border-radius: 12px; background: #fffdf8; }
.etq-bulle.pense b { color: var(--ambre); font-weight: 650; }
.etq-bulle.dort { border-color: #6b8fb5; color: #3f6489; }
.toast { position: absolute; left: 50%; top: 18px; transform: translateX(-50%); z-index: 5; background: var(--encre); color: #fff; border-radius: 12px; padding: 9px 16px; display: grid; text-align: center;
  box-shadow: 0 10px 30px rgba(24, 24, 27, .3); animation: monte .5s ease-out; }
.toast b { font: 700 14px var(--titre); color: #f2b84b; } .toast small { font-size: 11.5px; opacity: .8; }
@keyframes monte { from { transform: translate(-50%, -16px); opacity: 0; } }

/* ——— Le dialogue : son visage en grand, la boîte en bas, comme dans un jeu ——— */
.volet.dialogue { background: none; box-shadow: none; left: 14px; right: 14px; bottom: 14px; max-width: 1000px; margin: 0 auto; border-radius: 0; animation: monte-dialogue .35s ease-out; }
@keyframes monte-dialogue { from { transform: translateY(24px); opacity: 0; } }
.dialogue .portrait { position: absolute; left: 0; bottom: 0; width: 270px; height: 320px; z-index: 2; pointer-events: none;
  background: radial-gradient(closest-side at 50% 42%, rgba(255, 236, 205, .95), rgba(255, 236, 205, 0) 72%); animation: entre-portrait .45s ease-out; }
@keyframes entre-portrait { from { transform: translateX(-30px); opacity: 0; } }
.dialogue .portrait canvas { width: 100%; height: 100%; display: block; }
.dialogue .boite { margin-left: 150px; background: var(--surface); border-radius: 16px; padding: 10px 16px 12px 140px; box-shadow: 0 2px 4px rgba(24, 24, 27, .08), 0 18px 40px rgba(24, 24, 27, .18); min-height: 190px; display: flex; flex-direction: column; border: 2px solid #f2e3c6; }
.boite-tete { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.qui-parle { font: 800 14px var(--titre); color: var(--encre); background: #fff4e0; border-radius: 8px; padding: 2px 9px; }
.qui-parle i { font-style: normal; font-size: 10.5px; color: var(--ambre); margin-left: 3px; }
.sujet { color: var(--encre-3); display: flex; align-items: center; gap: 5px; }
.sujet select { border: 1px solid var(--trait); border-radius: 7px; background: var(--fond); padding: 2px 4px; font-size: 12px; }
.etat-dialogue { color: var(--encre-3); font-size: 11.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.a-valider-mini { background: var(--accent-fond); color: var(--accent); border: 0; border-radius: 7px; padding: 2px 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
.boite-tete .lien { background: none; border: 0; color: var(--encre-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait); cursor: pointer; white-space: nowrap; }
body.en-dialogue .volet-parc, body.en-dialogue .volet-alerte, body.en-dialogue .commandes { display: none; }
.missions { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; }
.mission { background: var(--fond); border-radius: 10px; padding: 8px 10px; border-left: 4px solid var(--c); font-size: 12px; }
.mission p { margin: 4px 0; color: var(--encre-2); }
.mission small { color: var(--encre-3); font-size: 10.5px; }
.mission-tete { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.mission-tete b { flex: 1; font-size: 12.5px; }
.etat-m { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-3); }
.m-en_cours .etat-m { color: var(--accent); } .m-faite .etat-m { color: var(--vert); } .m-echec .etat-m { color: var(--accent); }
.m-en_cours { box-shadow: inset 0 0 0 1.5px var(--accent); }
.lien-annuler, .lien-retour { background: none; border: 0; padding: 0; color: var(--encre-2); text-decoration: underline; cursor: pointer; font-size: inherit; }
.lien-retour { margin-bottom: 6px; font-size: 12px; }
.nouvelle-mission { margin-bottom: 8px; } .nouvelle-mission summary { cursor: pointer; font-weight: 650; font-size: 12.5px; color: var(--encre); }
.nouvelle-mission form { display: grid; gap: 6px; margin-top: 6px; }
.nouvelle-mission input, .nouvelle-mission textarea, .nouvelle-mission select { border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); padding: 6px 8px; font-size: 13px; }
.nouvelle-mission .boutons { display: flex; gap: 6px; justify-content: space-between; }
.fil-mission { padding: 0; max-height: none; overflow: visible; }
.vignettes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.vignette { position: relative; } .vignette img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--trait); display: block; }
.vignette button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--encre); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.joindre { flex: none; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--trait); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--encre-2); }
.joindre svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.joindre:hover { color: var(--encre); border-color: var(--encre-3); }
.images-jointes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-bottom: 4px; }
.images-jointes img { max-width: 160px; max-height: 120px; border-radius: 9px; border: 1px solid var(--trait); display: block; }
.dialogue .boite { border-color: color-mix(in srgb, var(--c, #e0b86a) 45%, white); border-top: 4px solid var(--c, #e0b86a); }
.pastille-client { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #999); flex: none; }
.travaille-ici { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pouls 1s infinite; }
.attend-ici { font-style: normal; font-size: 10px; font-weight: 800; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 5px; }
.etq-piece .pastille-client { margin-right: -1px; }
.etapes button { border-bottom: 3px solid transparent; }
.etapes button[style*="--c"] { border-bottom-color: color-mix(in srgb, var(--c) 70%, white); }

/* Téléphone : le rail passe en bas, le détail devient une feuille qui monte */
@media (max-width: 900px) {
  .logiciel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .rail { order: 2; flex-direction: row; justify-content: space-around; padding: 3px 6px calc(3px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--trait); }
  .rail-logo { display: none; }
  .rail-lien { width: auto; flex: 1; padding: 5px 0 3px; }
  .rail-bas { margin-top: 0; }
  .haut { padding: 7px 10px; gap: 8px; }
  .fil-ariane { min-width: 0; } .fil-ariane b { font-size: 14px; }
  .recherche { flex: 1; height: 32px; margin: 0; }
  .recherche input { font-size: 16px; }
  .jauges { display: none; }
  .volet-direct { left: 8px; right: 8px; top: 8px; width: auto; padding: 8px 10px; }
  .volet-direct .dd-tete, .volet-direct .dd-energie, .volet-direct .dd-progres, .volet-direct .dd-etat-ligne.tout-ok { display: none; }
  .volet-direct .dd-verdict { font-size: 14px; margin: 0 0 7px; }
  .volet-direct button.dd-verdict { min-height: 44px; padding: 6px 10px; }
  .volet-direct .dd-avatar { width: 30px; height: 30px; font-size: 12px; }
  .volet-direct .avatar .niv { min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; right: -7px; bottom: -6px; }
  .volet-direct .dd-avatar::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; z-index: -1; background: conic-gradient(var(--vert) calc(var(--e) * 1%), var(--surface-2) 0); }
  .volet-direct .dd-jeffrey.basse .dd-avatar::before { background: conic-gradient(var(--accent) calc(var(--e) * 1%), var(--surface-2) 0); }
  .volet-direct .dd-qui { gap: 11px; padding-left: 6px; }
  .volet-direct .dd-stop { min-height: 40px; padding: 0 12px; }
  .volet-direct .dd-etat-ligne { margin-top: 7px; padding-top: 6px; gap: 2px 12px; }
  .volet-direct .dd-autonomie { margin-top: 6px; }
  .volet-direct .dd-autonomie button { min-height: 32px; padding: 0 14px; }
  .volet-alerte { left: 8px; right: 8px; top: auto; bottom: 70px; width: auto; }
  .volet-alerte button { padding: 7px 10px 7px 12px; }
  .volet-parc { left: 8px; right: 8px; bottom: 8px; max-width: none; width: auto; padding: 4px; gap: 4px; }
  .volet-parc .parc-titre, .volet-parc .anneau { display: none; }
  .etapes button { padding: 4px 6px 4px 4px; } .rond { width: 20px; height: 20px; }
  .volet-detail, .volet-detail.grand { left: 0; right: 0; bottom: 0; top: auto; width: auto; height: 58%; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 26px rgba(24, 24, 27, .16); }
  .volet-detail.grand { height: calc(100% - 48px); }
  .volet-detail:not([hidden]) ~ .volet-parc, .volet-detail:not([hidden]) ~ .commandes, .volet-detail:not([hidden]) ~ .volet-alerte { display: none; }
  .dossier-onglets button { flex: 1; }
  .saisie textarea { font-size: 16px; }
  .reglages select { flex: 1 1 30%; max-width: none; }
  .depense-client { display: none; }
  .commandes { right: 8px; bottom: 62px; flex-direction: column; }
  .commandes button#tout-voir { display: none; }
  .volet-alerte:not([hidden]) ~ .commandes { bottom: 130px; }
  .etq-piece { padding: 1px 3px 1px 7px; gap: 3px; } .etq-piece b { font-size: 9.5px; } .etq-piece .etoiles { display: none; }
  .etq-piece:not(:has(.nb-alertes)) { padding-right: 7px; }
  .etq-piece .nb-alertes { min-width: 13px; height: 13px; font-size: 8.5px; }
  .etq-bulle { max-width: 150px; font-size: 10.5px; }
  .volet.dialogue { left: 6px; right: 6px; bottom: 6px; }
  .dialogue .portrait { left: -6px; bottom: auto; top: -118px; width: 130px; height: 150px; }
  .dialogue .boite { margin-left: 0; padding: 8px 12px 10px; min-height: 0; }
  .boite-tete { padding-left: 112px; flex-wrap: wrap; gap: 4px 8px; }
  .boite-tete .etat-dialogue { order: 5; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

form.depose { outline: 2px dashed #e0b86a; outline-offset: 3px; }

/* ——— LA conversation (13/10) : une seule bulle, la sienne ; elle s'agrandit ; on y clique ses actions et ses choix ——— */
.dialogue .boite { height: min(56vh, 540px); min-height: 0; padding: 10px 16px 10px 140px; }
.dialogue .boite > .fil { flex: 1; min-height: 0; padding: 8px 6px 6px 0; margin-top: 4px; }
.dialogue .boite > .mode-missions { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 2px; }
.dialogue .saisie { border-top: 1px solid var(--trait); background: none; padding: 8px 0 0; position: relative; }
.dialogue .saisie .vignettes { position: absolute; bottom: 100%; left: 0; margin-bottom: 6px; }
.ligne-saisie { display: flex; gap: 8px; align-items: flex-end; }
.ligne-saisie textarea { flex: 1; resize: none; min-height: 40px; max-height: 30vh; border: 1px solid var(--trait); border-radius: 10px; background: var(--fond); padding: 9px 11px; font-size: 14px; line-height: 1.4; }
.ligne-saisie textarea:focus { outline: none; border-color: #e0b86a; }
.ligne-saisie .joindre { height: 40px; width: 40px; } .ligne-saisie .principal { min-height: 40px; padding: 0 16px; }
.dialogue .reglages { margin-top: 5px; gap: 6px; } .dialogue .reglages select { font-size: 11px; padding: 2px 4px; }
.boite-tete .icone { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--fond); display: grid; place-items: center; cursor: pointer; color: var(--encre-2); }
.boite-tete .icone:hover { background: var(--surface-2); color: var(--encre); }
.boite-tete .icone svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#bouton-missions.actif { color: var(--accent); text-decoration-color: var(--accent); }
#nb-missions { font-style: normal; font-size: 10.5px; color: var(--encre-3); }
.volet.dialogue.grand { top: 14px; max-width: 1180px; }
.dialogue.grand .boite { height: 100%; }  /* agrandie : la même disposition, plus haute ; le visage reste en bas à gauche */
/* le fil */
.dialogue .msg { font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.dialogue .msg.agent { background: none; padding: 0; border-radius: 0; }
.dialogue .msg.moi .corps { background: #fff4e0; }
.chez { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; color: var(--encre-2); background: color-mix(in srgb, var(--c) 12%, white); border-radius: 99px; padding: 1px 8px 1px 6px; margin: 0 0 3px; flex: none; }
.msg.moi .chez { margin: 6px 6px 0 0; }
.en-train { margin: 4px 0 0; font-size: 12.5px; color: var(--encre-3); }
.en-train::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ambre); margin-right: 7px; vertical-align: 1px; animation: pouls 1s infinite; }
.msg.agent .corps.ecrit::after { content: "▍"; color: var(--ambre); animation: pouls .8s infinite; margin-left: 1px; }
.travail { margin-top: 6px; font-size: 12px; color: var(--encre-3); }
.travail summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.travail summary::-webkit-details-marker { display: none; }
.travail summary::before { content: "▸"; font-size: 9px; } .travail[open] summary::before { content: "▾"; }
.travail ol { list-style: none; margin: 6px 0 0; padding: 0 0 0 10px; border-left: 2px solid var(--trait); display: grid; gap: 4px; }
.travail li span { color: var(--encre-2); }
.travail li code { display: block; font: 10.5px/1.4 var(--mono); color: var(--encre-3); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 90px; overflow: auto; }
.travail li.dit { color: var(--encre-3); }
.choix { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.choix button { border: 1.5px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 99px; padding: 6px 14px; font-weight: 650; font-size: 13px; cursor: pointer; }
.choix button:hover:not(:disabled) { background: var(--accent); color: #fff; }
.choix button:disabled { border-color: var(--trait); color: var(--encre-3); cursor: default; }
.choix button.choisi { background: var(--encre); border-color: var(--encre); color: #fff; }
.msg.systeme details summary { cursor: pointer; font-size: 11.5px; color: var(--encre-3); }
.msg.systeme .corps { margin-top: 4px; }
.dialogue .usage { border-top: 0; margin-top: 4px; padding-top: 0; }
/* une action : une phrase, deux boutons ; la commande se déplie */
.action-tete { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 11.5px; color: var(--encre-2); }
.action-tete b { color: var(--encre); }
.action-tete .etat { margin-left: auto; font-weight: 700; }
.action.etat-executee .etat { color: var(--vert); } .action.etat-echec .etat { color: var(--ambre); } .action.etat-refusee { opacity: .7; }
.action .motif { font-size: 13.5px; margin: 5px 0 2px; color: var(--encre); }
.action .boutons button { min-height: 36px; padding: 6px 16px; font-size: 13.5px; }
.action-detail { margin-top: 6px; font-size: 11.5px; color: var(--encre-3); }
.action-detail summary { cursor: pointer; }
.action-detail pre { margin: 6px 0 0; }
.action-detail .chemin { font-family: var(--mono); font-size: 11px; }
/* le « bonjour » : ce qui s'est passé pendant son absence */
.dialogue .msg.agent.bonjour { background: #fff8ec; border: 1px solid #f2e3c6; border-radius: 12px; padding: 10px 12px; }
.bonjour-liste { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.bonjour-liste li { display: grid; }
.bonjour-liste .lien { background: none; border: 0; padding: 0; text-align: left; font-weight: 650; color: var(--encre); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait); cursor: pointer; font-size: 13px; }
.bonjour-liste small { color: var(--encre-3); font-size: 11.5px; }
@media (max-width: 900px) {
  /* la conversation en plein écran (étape 3) : rien autour, l'étage s'arrête derrière ; elle épouse la partie visible
     de l'écran (--vv-h, posé par univers.js), le clavier ne cache donc jamais la saisie ; le geste « retour » la ferme */
  body.en-dialogue .volet-direct { display: none; }
  .volet.dialogue, .volet.dialogue.grand { position: fixed; z-index: 40; left: 0; right: 0; top: var(--vv-haut, 0px); bottom: auto; height: var(--vv-h, 100dvh); max-width: none; margin: 0; animation: monte-dialogue .22s ease-out; }
  .dialogue .portrait, .dialogue.grand .portrait { display: none; }
  .dialogue .boite, .dialogue.grand .boite { height: 100%; margin: 0; border: 0; border-top: 4px solid var(--c, #e0b86a); border-radius: 0; box-shadow: none;
    padding: max(2px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .boite-tete, .dialogue.grand .boite-tete { padding-left: 0; min-height: 44px; flex-wrap: wrap; gap: 0 4px; }
  .boite-tete .qui-parle { margin-right: auto; font-size: 15px; }
  .boite-tete .etat-dialogue { order: 5; flex-basis: 100%; margin-top: -6px; }
  .boite-tete .etat-dialogue:empty { display: none; }
  #bouton-agrandir { display: none; }
  .boite-tete .lien { min-height: 44px; padding: 0 8px; font-size: 13px; }
  .boite-tete .fermer { width: 44px; height: 44px; margin-right: -6px; font-size: 24px; }
  .onglets-dialogue { margin-top: 2px; gap: 6px; }
  .onglets-dialogue button { min-height: 36px; padding: 5px 12px 5px 9px; font-size: 13px; }
  .action .boutons, .proposition .boutons, .pour-client .boutons { gap: 8px; }
  .action .boutons button, .proposition .boutons button, .pour-client .boutons button { flex: 1; min-height: 48px; font-size: 15px; }
  .dialogue .choix button { min-height: 44px; }
  .ligne-saisie .joindre { width: 44px; height: 44px; } .ligne-saisie .principal { min-height: 44px; }
  .ligne-saisie textarea { font-size: 16px; min-height: 44px; }
  .dialogue .reglages .depense-client { display: none; }
}

/* les onglets par entité (13/10) : Général montre tout, un client ne montre que lui */
.onglets-dialogue { display: flex; gap: 4px; margin: 8px 0 0; overflow-x: auto; scrollbar-width: none; flex: none; }
.onglets-dialogue::-webkit-scrollbar { display: none; }
.onglets-dialogue button { display: flex; align-items: center; gap: 5px; flex: none; background: color-mix(in srgb, var(--c) 9%, white); border: 1.5px solid transparent; border-radius: 99px; padding: 3px 10px 3px 7px; font-size: 12px; font-weight: 600; color: var(--encre-2); cursor: pointer; }
.onglets-dialogue button:hover { border-color: color-mix(in srgb, var(--c) 40%, white); }
.onglets-dialogue button.actif { background: var(--c); color: #fff; }
.onglets-dialogue button.actif .pastille-client, .onglets-dialogue button.actif .travaille-ici { background: #fff; }
.onglets-dialogue button.actif .attend-ici { background: #fff; color: var(--c); }
/* une idée ou une décision : un titre, une phrase, Accepter / Refuser */
.proposition { background: var(--surface); border: 1px solid var(--trait); border-left: 4px solid var(--c, var(--ambre)); border-radius: 9px; padding: 9px 12px; margin: 0 0 10px; font-size: 12.5px; }
.proposition .titre-proposition { font: 650 14px/1.35 var(--texte); color: var(--encre); margin: 5px 0 2px; }
.proposition .motif { font-size: 13px; color: var(--encre-2); margin: 2px 0; }
.proposition .boutons { display: flex; gap: 6px; margin-top: 8px; }
.proposition .boutons button { min-height: 36px; padding: 6px 16px; font-size: 13.5px; }
.proposition .boutons button:not(.principal), .action .boutons button:not(.principal) { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; cursor: pointer; }
.proposition.etat-acceptee .etat { color: var(--vert); } .proposition.etat-refusee { opacity: .65; }
.proposition .etat { margin-left: auto; font-weight: 700; }
.proposition.etat-en_attente .etat, .action.etat-en_attente .etat { color: var(--accent); }
#fil:not([data-onglet="synovizion"]) .chez { display: none; }  /* dans l'onglet d'un client, sa pastille est redite pour rien */
/* le message pour le client : « c'est fait », dans ses mots, copié d'un clic */
.pour-client { background: #fbfaf6; border: 1px solid var(--trait); border-left: 4px solid var(--c, var(--vert)); border-radius: 9px; padding: 9px 12px; margin: 0 0 10px; font-size: 12.5px; }
.pour-client .etat { margin-left: auto; font-weight: 700; color: var(--accent); }
.pour-client.copie .etat { color: var(--vert); }
.texte-client { white-space: pre-wrap; font-size: 14px; line-height: 1.5; color: var(--encre); background: var(--surface); border-radius: 8px; padding: 9px 11px; margin: 6px 0 2px; border: 1px dashed var(--trait); user-select: text; }
.pour-client .boutons { display: flex; gap: 6px; margin-top: 8px; }
.pour-client .boutons button { min-height: 36px; padding: 6px 16px; font-size: 13.5px; }
.pour-client.copie .boutons .principal { background: var(--surface); color: var(--encre); border: 1px solid var(--trait); }

/* ——— La conversation, version confort (13/10) : sur ordinateur, un panneau à droite sur toute la hauteur ; ton visage
   en grand à sa gauche ; une bande d'essentiel par client ; l'heure, « Copier », « Plus bas » ——— */
@media (min-width: 901px) {
  .volet.dialogue { left: auto; right: 14px; top: 14px; bottom: 14px; width: var(--largeur, 560px); max-width: calc(100% - 300px); margin: 0; }
  .volet.dialogue.grand { width: min(1120px, calc(100% - 300px)); top: 14px; }
  .dialogue .boite, .dialogue.grand .boite { height: 100%; margin-left: 0; padding: 12px 18px 12px; }
  .dialogue .portrait, .dialogue.grand .portrait { left: -212px; right: auto; top: auto; bottom: 0; width: 236px; height: 279px; }
  .poignee { position: absolute; left: -5px; top: 18px; bottom: 18px; width: 10px; cursor: ew-resize; z-index: 4; border-radius: 6px; }
  .poignee:hover, .poignee:active { background: color-mix(in srgb, var(--c, #e0b86a) 35%, transparent); }
}
@media (max-width: 900px) { .poignee { display: none; } }
.dialogue .fil { font-size: 14.5px; position: relative; }
.dialogue .msg.agent .corps { line-height: 1.6; }
.msg .meta { display: flex; align-items: center; gap: 8px; min-height: 18px; margin-bottom: 2px; }
.msg .meta .chez { margin: 0; }
.msg time { font-size: 11px; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.msg.moi { flex-wrap: wrap; align-items: flex-end; gap: 4px 8px; }
.msg.moi > time { order: -1; flex-basis: 100%; text-align: right; }
.copier-reponse { margin-left: auto; background: none; border: 0; padding: 0 2px; font-size: 11px; color: var(--encre-3); cursor: pointer; opacity: 0; transition: opacity .15s; }
.msg.agent:hover .copier-reponse, .copier-reponse:focus-visible { opacity: 1; }
@media (pointer: coarse) { .copier-reponse { opacity: .7; } }
.copier-reponse:hover { color: var(--encre); text-decoration: underline; }
/* la travail replié porte aussi la ligne de coût : visible seulement quand on le déplie */
.dialogue .msg.agent > .usage { display: none; }
.dialogue .msg.agent > details.travail[open] + .usage { display: block; }
/* la bande d'essentiel, sous les onglets */
.fiche-rapide { display: flex; flex-wrap: wrap; gap: 5px 6px; align-items: center; margin: 7px 0 2px; font-size: 11.5px; flex: none; }
.fiche-rapide:empty { display: none; }
.lien-site { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--trait); background: var(--surface); border-radius: 99px; padding: 2px 9px 2px 7px; color: var(--encre); text-decoration: none; font-weight: 600; }
.lien-site:hover { border-color: var(--encre-3); }
.lien-site i, .fr-item.ok::before, .fr-item.ko::before { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); display: inline-block; }
.lien-site.ko i, .fr-item.ko::before { background: var(--accent); }
.lien-site span { color: var(--encre-3); font-size: 10.5px; }
.fr-item { display: inline-flex; align-items: center; gap: 5px; color: var(--encre-2); background: var(--fond); border-radius: 99px; padding: 2px 9px; border: 0; font-size: 11.5px; }
.fr-item.ok::before, .fr-item.ko::before { content: ""; }
button.fr-item { cursor: pointer; }
.fr-item b { color: var(--encre); }
.fr-etat { margin-left: auto; background: none; border: 0; color: var(--encre-2); font-size: 11.5px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait); cursor: pointer; padding: 2px 0; }
/* « Plus bas » : il a écrit pendant que tu relisais plus haut */
.vers-le-bas { position: relative; align-self: center; margin: -42px 0 8px; z-index: 2; background: var(--encre); color: #fff; border: 0; border-radius: 99px; padding: 6px 14px; font-size: 12px; font-weight: 650; cursor: pointer; box-shadow: 0 4px 14px rgba(24, 24, 27, .2); }
.toast-jeffrey { cursor: pointer; border: 0; }
@media (min-width: 901px) { .dialogue .onglets-dialogue { flex-wrap: wrap; overflow: visible; } }  /* tous les onglets en vue */
@media (max-width: 900px) {
  .fiche-rapide { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }  /* une ligne qui défile : la place reste au fil */
  .fiche-rapide::-webkit-scrollbar { display: none; }
  .fiche-rapide > * { flex: none; }
  .fr-etat { margin-left: 0; }
}
/* une seule colonne de lecture : réponses, cartes, lignes et heure alignées, centrée quand la conversation est large */
.dialogue .fil > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.dialogue .fil > .msg.moi { justify-content: flex-end; }
.dialogue .fil > .msg.moi .corps { max-width: 85%; }
/* une interruption, dite simplement ; le détail technique se déplie */
.erreur-douce { margin-top: 6px; background: #fff6ed; border: 1px solid #f3dcc0; border-radius: 9px; padding: 7px 10px; font-size: 13px; color: var(--encre-2); }
.erreur-douce p { margin: 0; }
.erreur-douce details { margin-top: 4px; font-size: 11px; color: var(--encre-3); }
.erreur-douce code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 10.5px; margin-top: 3px; }
/* une mission faite par Jeffrey seul, à sa place dans l'histoire du client */
.mission-faite { background: var(--fond); border: 1px dashed var(--trait); border-radius: 9px; padding: 8px 12px; margin: 0 0 10px; font-size: 12.5px; }
.mission-faite .action-tete time { margin-left: auto; font-size: 11px; color: var(--encre-3); }
.mission-faite.en-echec { border-color: #f3dcc0; }
.lien-mission { background: none; border: 0; padding: 0; margin-top: 4px; color: var(--encre-2); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait); cursor: pointer; }
#mode { font-weight: 650; }
#mode option[value="plan"] { color: #6b4fbb; }
/* l'autonomie sur les chantiers (13/10) : ce qu'il a fait seul, le stade du projet, le bouton Pause */
.action.fait-seul { border-left-color: #6b4fbb; }
.action.fait-seul .etat { color: #6b4fbb; }
.fr-item.stade-chantier { background: #efe9ff; color: #4b3592; font-weight: 700; cursor: pointer; }
.fr-item.stade-production { cursor: pointer; }
/* ce qu'il a regardé : la capture, en vignette dans son travail (un clic l'ouvre en grand) */
.travail img.capture { display: block; max-width: 260px; max-height: 180px; object-fit: cover; object-position: top; border: 1px solid var(--trait); border-radius: 8px; margin: 4px 0 2px; }

/* ——— La conversation, étape 4 (13/10) : arrêter sans perdre ce qu'on écrit, décider sans chercher, lire un fichier modifié ——— */
.arreter-tour { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--trait); background: var(--surface); border-radius: 10px; cursor: pointer; }
.arreter-tour i { width: 11px; height: 11px; border-radius: 2px; background: var(--accent); }
.arreter-tour:hover { border-color: var(--accent); }
.msg.moi.en-file { opacity: .72; }
.msg.moi.en-file .corps { border: 1.5px dashed #e0b86a; }
.note-file { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 0 3px; font-size: 11px; color: var(--encre-3); }
.note-file button { border: 0; background: var(--fond); border-radius: 50%; width: 22px; height: 22px; font-size: 11px; line-height: 1; cursor: pointer; color: var(--encre-2); }
.note-file button:hover { background: var(--accent-fond); color: var(--accent); }
.a-decider { margin: 0 0 8px; }
.a-decider button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 36px; border: 0; border-radius: 10px; background: var(--accent-fond); color: var(--accent); padding: 6px 12px; cursor: pointer; text-align: left; font-size: 13px; }
.a-decider button:hover { filter: brightness(.97); }
.a-decider b { flex: none; font-weight: 750; }
.a-decider span { flex: 1; min-width: 0; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-decider small { flex: none; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.action.eclaire, .proposition.eclaire { animation: eclaire 1.4s ease-out; }
@keyframes eclaire { 0%, 30% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.boutons .autrement { background: none !important; border: 0 !important; color: var(--encre-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait); padding: 6px 8px !important; cursor: pointer; }
.boutons .autrement:hover { color: var(--encre); }
pre.diff { display: grid; padding: 4px 0; }  /* une colonne à la largeur de la plus longue ligne : les fonds colorés s'alignent, même en défilant */
pre.diff > span, pre.diff > ins, pre.diff > del { display: block; padding: 0 8px; text-decoration: none; white-space: pre; }
pre.diff > ins { background: #e3f4e8; color: #1d5e37; }
pre.diff > del { background: #fbe4e0; color: #9c2a17; }
pre.diff > .d-bloc { color: #3f6489; background: #eef3f8; }
pre.diff > .d-fichier { color: var(--encre-3); }
.compte-diff { font-variant-numeric: tabular-nums; white-space: nowrap; }
.d-plus { color: var(--vert); } .d-moins { color: var(--accent); }
.fini-ici { width: 7px; height: 7px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 2px #fff; }
.onglets-dialogue button.actif .fini-ici { background: #fff; }
/* les réglages : deux pastilles (mode, modèle) et « … » ; un menu qui s'ouvre vers le haut */
.dialogue .reglages { position: relative; gap: 6px; margin-top: 6px; }
.puce { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; border: 1px solid var(--trait); background: var(--surface); border-radius: 99px; padding: 0 11px; font-size: 12px; font-weight: 600; color: var(--encre-2); cursor: pointer; white-space: nowrap; }
.puce:hover, .puce[aria-expanded="true"] { border-color: var(--encre-3); color: var(--encre); }
.puce-mode i { width: 7px; height: 7px; border-radius: 50%; background: var(--encre-3); }
.puce-mode[data-mode="plan"] { color: #2f5379; background: #eef3f8; border-color: #c4d3e3; } .puce-mode[data-mode="plan"] i { background: #3f6489; }
.puce-mode[data-mode="auto"] { color: #4b3592; background: #f6f2ff; border-color: #b9a6f0; } .puce-mode[data-mode="auto"] i { background: #6b4fbb; }
.puce-plus { font-size: 16px; line-height: 1; padding: 0 12px 4px; letter-spacing: .05em; }
.menu-reglages { position: absolute; bottom: calc(100% + 6px); z-index: 12; width: max-content; min-width: 230px; max-width: min(340px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--trait); border-radius: 12px; box-shadow: 0 10px 30px rgba(24, 24, 27, .16); padding: 5px; }
.menu-reglages > button { display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; font-size: 13px; }
.menu-reglages > button:hover { background: var(--fond); }
.menu-reglages > button b { font-weight: 650; }
.menu-reglages > button small { display: block; color: var(--encre-3); font-size: 11.5px; margin-top: 1px; }
.menu-reglages [aria-checked="true"] { background: var(--fond); }
.menu-reglages > button[aria-checked="true"] b::after { content: " ✓"; color: var(--vert); }
.menu-titre { margin: 6px 10px 4px; font-size: 11px; font-weight: 700; color: var(--encre-3); text-transform: uppercase; letter-spacing: .06em; }
.menu-segments { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 8px 6px; }
.menu-segments button { border: 1px solid var(--trait); background: var(--surface); border-radius: 99px; padding: 4px 10px; font-size: 12px; cursor: pointer; min-height: 30px; }
.menu-segments button[aria-checked="true"] { background: var(--encre); color: #fff; border-color: var(--encre); }
.menu-ligne { display: flex; justify-content: space-between; gap: 12px; margin: 2px 0 0; padding: 8px 10px; border-top: 1px solid var(--trait); font-size: 12px; color: var(--encre-2); }
.menu-ligne b { font-variant-numeric: tabular-nums; color: var(--encre); }
.menu-reglages .menu-action { border-top: 1px solid var(--trait); border-radius: 0 0 8px 8px; }
@media (max-width: 900px) { /* l'étape 4 au doigt : des cibles de 44 px, Autrement… sur sa propre ligne */
  .dialogue .puce { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .arreter-tour { width: 44px; height: 44px; }
  .a-decider button { min-height: 44px; }
  .action .boutons, .proposition .boutons { flex-wrap: wrap; }
  .action .boutons .autrement, .proposition .boutons .autrement { flex: 1 0 100%; min-height: 40px; font-size: 14px; }
  .attend-ici { font-size: 11px; }
  .menu-reglages > button { padding: 11px 12px; }
  .menu-segments button { min-height: 36px; }
}

/* ——— L'équipe (13/10 soir) : Alex (UX et design), Sacha (cybersécurité), chacun à sa couleur (--a) ——— */
.etq-bulle.etq-collegue { border-color: color-mix(in srgb, var(--a) 45%, white); }
.etq-bulle.etq-collegue b { color: var(--a); margin-right: 0; }
.etq-bulle.etq-collegue.au-travail { border-color: var(--a); }
.etq-bulle.etq-collegue.au-travail b { margin-right: 4px; }
.auteur { color: var(--a); font-weight: 700; }
.dd-equipe { margin: 10px 0 0; }
.dd-collegue { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.dd-collegue .dd-etat { color: var(--a); }
.dd-pastille { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font: 700 12px var(--titre); font-style: normal; }
.dd-pastille.mini { display: inline-grid; width: 16px; height: 16px; font-size: 9.5px; margin-right: 3px; vertical-align: -3px; }
.dd-repos { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 2px 0; font-size: 11.5px; color: var(--encre-3); cursor: pointer; }
.dd-repos:hover { color: var(--encre); }
.dd-repos span { color: var(--encre-2); font-weight: 600; }
.dd-stop.petit { padding: 0; width: 28px; height: 28px; justify-content: center; }
@media (max-width: 900px) {
  .volet-direct .dd-equipe:not(.active) { display: none; } /* au bureau, ils se taisent sur téléphone */
  .volet-direct .dd-repos { display: none; }
  .volet-direct .dd-pastille { width: 30px; height: 30px; }
  .volet-direct .dd-stop.petit { width: 40px; height: 40px; }
  .dd-pastille.mini { width: 18px; height: 18px; font-size: 11px; }
}

/* ——— Les trois vues d'un onglet (14/10 : « tout est ensemble, comment faire ? ») : Conversation · À décider · Missions ——— */
.vues-dialogue { display: flex; gap: 2px; margin: 8px 0 2px; padding: 3px; background: var(--fond); border-radius: 10px; flex: none; }
.vues-dialogue button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; border: 0; background: none; border-radius: 8px; font-size: 12.5px; font-weight: 650; color: var(--encre-2); cursor: pointer; }
.vues-dialogue button:hover { color: var(--encre); }
.vues-dialogue button.actif { background: var(--surface); color: var(--encre); box-shadow: 0 1px 3px rgba(24, 24, 27, .12); }
.vues-dialogue i { font-style: normal; font-size: 10.5px; font-weight: 800; border-radius: 99px; padding: 0 6px; line-height: 17px; font-variant-numeric: tabular-nums; }
.vues-dialogue i:empty { display: none; }
#nb-decider { background: var(--accent); color: #fff; }
#nb-missions { background: var(--surface-2); color: var(--encre-2); }
.dialogue .boite > .mode-decider { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 6px 6px 0; }
.mode-decider > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.groupe-decider { margin: 0 0 16px; }
.groupe-decider h4 { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font: 700 13.5px var(--texte); color: var(--encre); text-transform: none; letter-spacing: 0; }
.groupe-decider h4 small { font-weight: 500; color: var(--encre-3); font-size: 12px; }
.groupe-decider .nb { margin-left: auto; font-size: 11px; background: var(--surface-2); border-radius: 99px; padding: 1px 8px; color: var(--encre-2); }
.pastille-auteur { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font: 700 11px var(--titre); }
.origine { margin: 0 0 2px; font-size: 11.5px; color: var(--encre-3); }
.vide-decider { color: var(--vert); font-weight: 600; text-align: center; margin: 36px 0; }
@media (max-width: 900px) {
  .vues-dialogue button { min-height: 38px; font-size: 13px; }
  .vues-dialogue i { font-size: 11px; line-height: 18px; }
  .origine { font-size: 12px; }
}

/* ——— Parler à l'équipe, et les réunions (14/10) ——— */
.puce-a i { width: 7px; height: 7px; border-radius: 50%; background: #c98a1c; }
.puce-a[data-a="design"], .puce-a[data-a="securite"] { color: var(--a); border-color: color-mix(in srgb, var(--a) 45%, white); background: color-mix(in srgb, var(--a) 7%, white); }
.puce-a[data-a="design"] i, .puce-a[data-a="securite"] i { background: var(--a); }
.puce-a[data-a="reunion"] { color: #7a4f0b; border-color: #e6c88f; background: #fff6e6; }
.puce-a[data-a="reunion"] i { background: linear-gradient(90deg, #c98a1c 0 33%, #b8407f 33% 66%, #2f6aa8 66%); width: 14px; border-radius: 4px; }
.puce.sans-effet { opacity: .45; }
.qui-dit { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--a); font-size: 12.5px; margin-right: 6px; }
.qui-dit i { width: 20px; height: 20px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font: 700 10.5px var(--titre); font-style: normal; }
.qui-dit small { font-weight: 500; color: var(--encre-3); font-size: 11.5px; }
.dialogue .msg.agent.de-collegue { border-left: 3px solid color-mix(in srgb, var(--a) 55%, white); padding-left: 12px; }
.msg.moi .pour { display: inline-block; margin: 0 0 0 6px; padding: 0 7px; border-radius: 99px; font-size: 11px; font-weight: 700; color: var(--a); background: color-mix(in srgb, var(--a) 10%, white); vertical-align: 1px; }
.msg.moi .pour.reunion { color: #7a4f0b; background: #fff1d6; }
@media (max-width: 900px) { .qui-dit { font-size: 13px; } .qui-dit small { font-size: 12px; } }

/* ——— « À décider » en réunion (14/10) : un point à la fois, présenté par son auteur ——— */
.reunion-decider { display: flex; flex-direction: column; gap: 10px; }
.reunion-tete { display: flex; align-items: center; gap: 12px; padding: 4px 2px 8px; border-bottom: 1px solid var(--trait); }
.participants { display: flex; }
.participant { position: relative; width: 32px; height: 32px; margin-right: -6px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font: 700 13px var(--titre); box-shadow: 0 0 0 2px var(--surface); }
.participant i { position: absolute; right: -4px; top: -4px; min-width: 16px; height: 16px; border-radius: 99px; background: var(--accent); color: #fff; font: 800 10px/16px var(--texte); font-style: normal; text-align: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--surface); }
.reunion-titre { display: grid; margin-left: 10px; }
.reunion-titre b { font: 700 15px var(--titre); }
.reunion-titre small { font-size: 12px; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.mode-decider .point { display: none; }
.mode-decider .point.courant { display: block; animation: monte-point .25s ease-out; }
@keyframes monte-point { from { opacity: 0; transform: translateY(6px); } }
.orateur { display: flex; align-items: center; gap: 8px; margin: 2px 0 8px; font-size: 13.5px; color: var(--encre-2); }
.orateur .pastille-auteur { width: 34px; height: 34px; font-size: 15px; }
.orateur b { color: var(--a); font-size: 15px; }
.orateur small { color: var(--encre-3); font-size: 12px; }
.point .proposition, .point .action, .point .pour-client { border-left-color: var(--a); box-shadow: 0 2px 10px rgba(24, 24, 27, .06); }
.point .proposition .titre-proposition { font-size: 16px; }
.lui-demander { margin: 2px 0 0; border: 0; background: none; color: var(--a); font-weight: 650; font-size: 13px; cursor: pointer; padding: 6px 2px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--a) 40%, transparent); }
.reunion-nav { display: flex; justify-content: space-between; gap: 8px; }
.reunion-nav button { border: 1px solid var(--trait); background: var(--surface); border-radius: 9px; padding: 7px 14px; font-size: 13px; font-weight: 650; cursor: pointer; min-height: 36px; }
.reunion-nav button:disabled { opacity: .35; cursor: default; }
.ordre-du-jour summary { cursor: pointer; font-size: 12.5px; color: var(--encre-2); font-weight: 650; padding: 4px 0; }
.ordre-du-jour ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.ordre-du-jour button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 6px 8px; font-size: 12.5px; cursor: pointer; color: var(--encre-2); }
.ordre-du-jour button:hover, .ordre-du-jour button.actif { background: var(--fond); color: var(--encre); }
.ordre-du-jour button i { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font: 700 10px var(--titre); font-style: normal; }
/* la barre, dans « À décider », quand quelqu'un travaille : un tap pour le regarder */
.a-decider .travail-en-cours { background: color-mix(in srgb, var(--a, #c98a1c) 12%, white); color: var(--encre); }
.a-decider .travail-en-cours b { color: var(--a, #a2690d); display: inline-flex; align-items: center; gap: 6px; }
.point-anime { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pouls 1.2s ease-in-out infinite; }
/* « En direct » : ce qu'ils font, là */
.dd-collegue { display: block; }
.dd-collegue-ligne { display: flex; align-items: center; gap: 6px; }
.dd-pastille { position: relative; }
.dd-pastille .niv { position: absolute; right: -6px; bottom: -5px; min-width: 15px; height: 15px; border-radius: 99px; background: #e0960f; color: #fff; font: 800 9px/15px var(--texte); font-style: normal; text-align: center; padding: 0 3px; box-shadow: 0 0 0 2px var(--surface); }
.dd-flux { margin: 4px 0 2px 37px; padding-left: 8px; border-left: 2px solid color-mix(in srgb, var(--a, #c98a1c) 40%, white); }
.dd-pas { margin: 0; font-size: 11.5px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-pas:last-of-type { color: var(--encre); font-weight: 600; }
.dd-pense { margin: 2px 0 0; font-size: 11.5px; color: var(--encre-3); font-style: italic; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dd-repos button { border: 0; background: none; padding: 0; font: inherit; color: var(--encre-2); font-weight: 600; cursor: pointer; }
.dd-repos button:hover { color: var(--a); }
.dd-repos small { font-weight: 500; color: var(--encre-3); }
.dd-repos span { color: var(--encre-3); font-weight: 500; }
/* la fiche d'un collègue */
.fiche-tete { display: flex; gap: 12px; align-items: center; margin: 4px 0 10px; }
.fiche-tete > div { display: grid; flex: 1; min-width: 0; }
.fiche-tete b { font: 700 16px var(--titre); }
.fiche-tete small { color: var(--encre-3); font-size: 12px; }
.fiche-avatar { position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--a); color: #fff; display: grid; place-items: center; font: 700 22px var(--titre); }
.fiche-avatar i { position: absolute; right: -4px; bottom: -4px; min-width: 22px; height: 22px; border-radius: 99px; background: #e0960f; color: #fff; font: 800 12px/22px var(--texte); font-style: normal; text-align: center; box-shadow: 0 0 0 3px var(--surface); }
.fiche-boutons { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.fiche-boutons button { border: 1px solid var(--trait); background: var(--surface); border-radius: 9px; padding: 7px 12px; font-size: 12.5px; font-weight: 650; cursor: pointer; min-height: 36px; }
.fiche-boutons button.principal { background: var(--a); border-color: var(--a); color: #fff; }
.fiche-tuiles { grid-template-columns: 1fr 1fr; }
.fiche-vif { display: flex; align-items: center; gap: 7px; margin: 2px 0; font-weight: 650; color: var(--a, var(--vert)); }
.fiche-calme { color: var(--encre-3); margin: 2px 0; }
.fiche-pas { margin: 4px 0; padding-left: 18px; font-size: 12.5px; color: var(--encre-2); }
.fiche-competences, .fiche-journal { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.fiche-competences li { display: grid; }
.fiche-competences small { color: var(--encre-3); }
.fiche-journal li { color: var(--encre-2); border-left: 2px solid var(--trait); padding-left: 8px; }
.petit-bouton { border: 1px solid var(--trait); background: var(--surface); border-radius: 8px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
/* une mission en cours, en direct */
.mission-qui { margin: -4px 0 8px; font-size: 12.5px; color: var(--encre-3); }
.mission-vif { border: 1px solid var(--trait); border-radius: 12px; padding: 10px 12px; background: var(--fond); }
.travail-vif { margin: 6px 0; padding-left: 20px; font-size: 12.5px; display: grid; gap: 3px; }
.travail-vif code { display: block; font-size: 11px; color: var(--encre-3); white-space: pre-wrap; word-break: break-word; }
.mission-texte { font-size: 13px; color: var(--encre-2); white-space: pre-wrap; max-height: 220px; overflow: auto; }
@media (max-width: 900px) {
  .reunion-nav button { min-height: 44px; flex: 1; }
  .lui-demander { min-height: 40px; }
  .dd-pas, .dd-pense { font-size: 12px; }
  .ordre-du-jour button { min-height: 40px; font-size: 13px; }
}

/* ——— Un seul compteur par chose (14/10, Alex) ——— */
.rail-pastille.point { min-width: 9px; width: 9px; height: 9px; padding: 0; right: 14px; top: 6px; }
.etat-client { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-left: 2px; }
.etat-client.rouge { background: var(--accent); } .etat-client.ambre { background: #e0960f; }
.etapes button small { display: none; }
.etq-piece .etoiles { display: none; }
.onglets-dialogue button.actif .attend-ici { display: none; }
.dd-faille { display: flex; align-items: center; gap: 9px; width: 100%; margin: -4px 0 10px; padding: 7px 10px; border: 0; border-radius: 10px; background: var(--ambre-fond); color: var(--encre); text-align: left; cursor: pointer; }
.dd-faille.g-critique { background: var(--accent-fond); }
.dd-faille > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #e0960f; }
.dd-faille.g-critique > i { background: var(--accent); } .dd-faille.g-moyenne > i { background: #d9b31f; } .dd-faille.g-faible > i { background: #6b8fb5; }
.dd-faille span { flex: 1; min-width: 0; display: grid; }
.dd-faille b { font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-faille small { font-size: 11.5px; color: var(--encre-2); }
.dd-faille em { font-style: normal; font-size: 18px; color: var(--encre-3); }
.dd-faille:hover { filter: brightness(.98); }
@media (max-width: 900px) { .volet-direct .dd-faille { margin: 0 0 7px; min-height: 40px; } }
@media (max-width: 900px) { .etq-bulle.etq-collegue:not(.au-travail) { display: none; } } /* au repos, au siège, leurs étiquettes se chevauchaient */

/* ——— Les fichiers confiés (14/10) ——— */
.vignette.doc { display: inline-flex; align-items: center; gap: 6px; padding: 4px 26px 4px 6px; height: auto; width: auto; max-width: 240px; background: var(--surface); border: 1px solid var(--trait); border-radius: 9px; }
.vignette.doc i, .fichier-joint i { flex: none; font: 800 9.5px/1 var(--texte); font-style: normal; color: #fff; background: #5b6472; border-radius: 4px; padding: 4px 4px; letter-spacing: .02em; }
.vignette.doc b { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vignette.doc small, .fichier-joint small { color: var(--encre-3); font-size: 11px; white-space: nowrap; }
.fichiers-joints { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.fichier-joint { display: inline-flex; align-items: center; gap: 6px; max-width: 260px; padding: 5px 9px 5px 6px; background: var(--surface); border: 1px solid var(--trait); border-radius: 9px; text-decoration: none; color: var(--encre); }
.fichier-joint b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fichier-joint:hover { border-color: var(--encre-3); }

/* ——— La ville (14/10) ——— */
.fil-ariane b { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fil-ariane .vers-ville { font: inherit; color: var(--encre-3); background: none; border: 0; padding: 0; cursor: pointer; }
.fil-ariane .vers-ville:hover { color: var(--accent); }
.fil-ariane b i { font-style: normal; color: var(--encre-3); font-weight: 400; }
.vues-ville { display: flex; gap: 2px; padding: 3px; margin-right: 6px; background: var(--surface); border-radius: 11px; box-shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 5px 16px rgba(24, 24, 27, .10); }
.commandes .vues-ville button { box-shadow: none; height: 28px; min-width: 0; padding: 0 10px; font-size: 12px; font-weight: 600; color: var(--encre-2); border-radius: 8px; }
.commandes .vues-ville button.actif { background: var(--encre); color: #fff; }
.legende-ville { position: absolute; right: 14px; bottom: 118px; z-index: 3; margin: 0; display: flex; gap: 12px; padding: 6px 12px; background: var(--surface); border-radius: 9px;
  font-size: 11.5px; color: var(--encre-2); box-shadow: 0 1px 2px rgba(24, 24, 27, .06), 0 5px 16px rgba(24, 24, 27, .10); }
.legende-ville span { display: inline-flex; align-items: center; gap: 5px; }
.legende-ville i { width: 10px; height: 10px; border-radius: 3px; }
.legende-ville .l-vert { background: #2f9d5e; } .legende-ville .l-ambre { background: #e0960f; } .legende-ville .l-rouge { background: #d23c25; } .legende-ville .l-gris { background: #a7a29a; }
.volet-detail:not([hidden]) ~ .legende-ville { display: none; }
.etapes .ligne-batiment { display: none; }
.etq-bulle.etq-collegue.attend { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), 0 2px 8px rgba(24, 24, 27, .12); }
@media (max-width: 900px) {
  /* téléphone : la ville en bandeau, la liste des bâtiments dessous, ceux qui ont du travail d'abord */
  .volet-parc { padding: 4px 6px; }
  .volet-parc .etapes { flex-direction: column; width: 100%; gap: 0; max-height: 34vh; overflow-y: auto; }
  .volet-parc .etapes li + li { border-top: 1px solid var(--trait); }
  .volet-parc .etapes button { width: 100%; grid-template-columns: auto 1fr auto; min-height: 46px; padding: 6px 8px; border-bottom: 0; border-left: 3px solid color-mix(in srgb, var(--c) 70%, white); border-radius: 6px; }
  .volet-parc .etapes b { font-size: 13.5px; grid-column: 2; }
  .volet-parc .etapes .etat-client { grid-column: 3; grid-row: 1 / span 2; }
  .volet-parc .etapes .ligne-batiment { display: block; grid-column: 2; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .volet-parc .etapes .nouveau { border-left: 1px dashed var(--trait); }
  .commandes, .legende-ville { display: none; }
}
@media (max-width: 900px) { body.volet-ouvert .volet-direct { display: none; } }
.etq-piece .nb-decisions { min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--accent); color: #fff; font: 700 10px/16px var(--texte); text-align: center; }
@media (max-width: 900px) { .etq-piece .nb-decisions { display: none; } } /* la liste dessous le dit déjà */
/* 14/10 : le titre d'une ligne (« Jeffrey · travaille · 12 min ») se coupe au lieu de passer sous le bouton Arrêter */
.dd-texte { grid-template-columns: minmax(0, 1fr); }
.dd-texte b { overflow: hidden; text-overflow: ellipsis; }
.dd-qui { overflow: hidden; }
@media (max-width: 900px) {
  /* téléphone : une ligne par personne au travail (ses étapes sont dans sa fiche, d'un tap) ; le volet ne descend jamais sur la liste */
  .volet-direct .dd-flux { display: none; }
  .volet-direct { max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 900px) { .etq-bulle { white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; } } /* une ligne : le détail est dans « Aujourd'hui » */
/* 14/10 : la note sous une réponse, les raisons d'un refus, la preuve d'une action */
.noter { display: inline-flex; gap: 2px; margin-left: 4px; }
.noter button { border: 0; background: none; padding: 3px; border-radius: 6px; color: var(--encre-3); cursor: pointer; line-height: 0; opacity: .55; }
.noter button:hover, .noter button.actif { opacity: 1; background: var(--fond); }
.noter button.actif { color: var(--vert); } .noter button.bas.actif { color: var(--accent); }
.noter svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.noter button.bas svg { transform: rotate(180deg); }
@media (pointer: coarse) { .noter button { opacity: .8; padding: 6px; } }
.boutons .pourquoi, .raisons .pourquoi { font-size: 12px; color: var(--encre-3); align-self: center; margin-right: 2px; }
.boutons [data-raison], .raisons [data-note-raison] { font-size: 12px; padding: 4px 9px; }
.raisons { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 6px; }
.raisons button { border: 1px solid var(--trait); background: var(--surface); border-radius: 99px; cursor: pointer; }
.retour-refus { border: 0 !important; background: none !important; color: var(--encre-3); }
.etat .verifie, .etat .non-verifie { font-style: normal; font-weight: 650; margin-left: 6px; }
.etat .verifie { color: var(--vert); } .etat .verifie::before { content: "✓ "; }
.etat .non-verifie { color: var(--accent); }
/* la rangée « Pourquoi ? » : sur sa ligne, puis des puces compactes qui passent à la ligne au besoin */
.boutons:has([data-raison]) { flex-wrap: wrap; gap: 6px; }
.boutons:has([data-raison]) .pourquoi { flex-basis: 100%; white-space: nowrap; margin: 0; }
.boutons [data-raison] { flex: 0 0 auto; white-space: nowrap; border-radius: 99px; min-height: 32px; }
.boutons [data-raison]:hover { border-color: var(--accent); color: var(--accent); }

/* « Autrement… » sur une carte (14/10) : sa phrase dans la carte, qui la clôt et part à son auteur */
.proposition .boutons:has(.consigne-autrement) { flex-wrap: wrap; }
.boutons .consigne-autrement { flex: 1 0 100%; min-height: 76px; font: inherit; font-size: 14px; line-height: 1.45; padding: 8px 10px; border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); color: var(--encre); resize: vertical; box-sizing: border-box; }
.boutons .consigne-autrement:focus { outline: 2px solid var(--c, var(--encre-2)); outline-offset: 1px; }
.consigne-carte { margin: 6px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--encre-2); }

/* ——— Tes tâches et les feuilles de projet (14/10 : « mes TODO, des feuilles de projet ») ——— */
.dd-taches { display: flex; align-items: center; gap: 9px; width: 100%; margin: -4px 0 10px; padding: 7px 10px; border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); color: var(--encre); text-align: left; cursor: pointer; }
.dd-taches.jour { background: var(--ambre-fond); border-color: transparent; }
.dd-taches.retard { background: var(--accent-fond); border-color: transparent; }
.dd-taches .dd-case { flex: none; width: 13px; height: 13px; border: 1.6px solid var(--encre-3); border-radius: 4px; }
.dd-taches.jour .dd-case { border-color: var(--ambre); }
.dd-taches.retard .dd-case { border-color: var(--accent); }
.dd-taches span { flex: 1; min-width: 0; display: grid; }
.dd-taches b { font-size: 12.5px; font-weight: 650; }
.dd-taches small { font-size: 11.5px; color: var(--encre-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-taches em { font-style: normal; font-size: 18px; color: var(--encre-3); }
.dd-taches:hover { filter: brightness(.98); }
@media (max-width: 900px) { .volet-direct .dd-taches { margin: 0 0 7px; min-height: 40px; } }

.taches-volet { padding-bottom: 18px; }
.tt { display: grid; gap: 14px; }
.tt-chargement, .tt-rien, .tt-aide { color: var(--encre-3); font-size: 13px; margin: 0; }
.tt-rien { padding: 6px 2px; }
.tt-ajout { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface); }
.tt-ajout:focus-within { border-color: var(--encre-3); }
.tt-ajout-texte { width: 100%; border: 0; background: none; font-size: 14.5px; padding: 4px 2px; }
.tt-ajout-texte:focus-visible { outline: none; }
.tt-ajout-texte::placeholder { color: var(--encre-3); }
.tt-ajout-bas { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tt-ajout-bas select, .tt-ajout-bas input, .tt-edition textarea, .tt-edition input, .tt-infos select, .tt-infos input, .tt-champ input, .tt-champ textarea,
.tt-nouvelle input, .tt-nouvelle textarea { border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); padding: 6px 8px; font-size: 13px; min-height: 34px; color: var(--encre); }
.tt-ajout-bas button.principal { margin-left: auto; }
.tt-groupe { display: grid; gap: 2px; }
.tt-groupe h3, .tt-replie summary { display: flex; align-items: center; gap: 7px; margin: 0 0 2px; font: 650 11.5px var(--texte); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.tt-groupe h3 i, .tt-replie summary i { font-style: normal; font-weight: 600; color: var(--encre-3); letter-spacing: 0; }
.tt-groupe.retard h3 { color: var(--accent); }
.tt-groupe.jour h3 { color: var(--ambre); }
.tt-liste { list-style: none; margin: 0; padding: 0; display: grid; }
.tt-ligne { display: flex; gap: 10px; align-items: flex-start; padding: 8px 2px; border-bottom: 1px solid var(--trait); }
.tt-ligne:last-child { border-bottom: 0; }
.tt-case { flex: none; width: 22px; height: 22px; margin-top: 0; padding: 0; border: 1.8px solid var(--encre-3); border-radius: 50%; background: var(--surface); display: grid; place-items: center; cursor: pointer; }
.tt-case svg { width: 14px; height: 14px; fill: none; stroke: var(--vert); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.tt-case:hover:not(:disabled) { border-color: var(--vert); }
.tt-case:hover:not(:disabled) svg { opacity: .55; }
.tt-case:disabled { cursor: default; }
.tt-ligne.faite .tt-case { background: var(--vert); border-color: var(--vert); }
.tt-ligne.faite .tt-case svg { opacity: 1; stroke: #fff; }
.tt-ligne.retard .tt-case { border-color: var(--accent); }
.tt-ligne.abandonnee .tt-case { border-style: dashed; }
.tt-corps { flex: 1; min-width: 0; display: grid; gap: 3px; }
.tt-texte { background: none; border: 0; padding: 0; text-align: left; font-size: 14px; line-height: 1.4; cursor: pointer; color: var(--encre); overflow-wrap: anywhere; }
.tt-ligne.faite .tt-texte, .tt-ligne.abandonnee .tt-texte { color: var(--encre-3); text-decoration: line-through; text-decoration-color: var(--encre-3); }
.tt-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; align-items: center; font-size: 12px; color: var(--encre-3); }
.tt-meta:empty { display: none; }
.tt-client { display: inline-flex; align-items: center; gap: 5px; color: var(--encre-2); }
.tt-client i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tt-date.jour { color: var(--ambre); font-weight: 600; }
.tt-date.retard { color: var(--accent); font-weight: 600; }
.tt-etat.bloquee { color: var(--accent); }
.tt-vers-feuille { background: none; border: 0; padding: 0; color: var(--encre-2); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--trait); font-size: 12px; }
.tt-liens { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tt-lien { padding: 1px 7px; border-radius: 99px; background: var(--surface-2); color: var(--encre-2); font-size: 11.5px; }
.tt-lien.ok { background: var(--vert-fond); color: var(--vert); }
.tt-lien.attend { background: var(--ambre-fond); color: var(--ambre); }
.tt-preuve { font-size: 12px; color: var(--encre-2); margin: 0; overflow-wrap: anywhere; }
.tt-qui b { font-size: 11.5px; font-weight: 650; color: var(--a, var(--encre-2)); }
.tt-numero { flex: none; width: 16px; margin-top: 3px; font: 600 12px var(--mono); color: var(--encre-3); text-align: right; }
.tt-plus { justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--encre-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait); font-size: 12.5px; }
.tt-edition { display: grid; gap: 8px; margin-top: 6px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.tt-edition textarea { width: 100%; resize: vertical; font-size: 14px; }
.tt-edition-bas { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tt-edition-bas label { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--encre-2); }
.tt-replie { border-top: 1px solid var(--trait); padding-top: 10px; }
.tt-replie summary { cursor: pointer; list-style: none; min-height: 28px; }
.tt-replie summary::-webkit-details-marker { display: none; }
.tt-replie summary::after { content: "▾"; margin-left: auto; color: var(--encre-3); }
.tt-replie[open] summary::after { content: "▴"; }
.tt-replie > .tt-liste, .tt-replie > .tt-feuilles { margin-top: 6px; }
.tt-feuilles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.tt-feuille { display: grid; gap: 6px; align-content: start; text-align: left; padding: 12px; border: 1px solid var(--trait); border-left: 3px solid var(--c); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--encre); }
.tt-feuille:hover { border-color: var(--encre-3); border-left-color: var(--c); }
.tt-feuille b { font-size: 14px; line-height: 1.35; }
.tt-feuille small { font-size: 12px; color: var(--encre-2); }
.tt-feuille .tt-suivante { color: var(--encre-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tt-feuille-tete, .tt-surtitre { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--encre-2); margin: 0; }
.tt-feuille-tete i, .tt-surtitre i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.tt-etat-feuille { margin-left: auto; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--surface-2); color: var(--encre-2); white-space: nowrap; }
.tt-etat-feuille.pret { background: var(--ambre-fond); color: var(--ambre); }
.tt-etat-feuille.en_cours { background: var(--accent-fond); color: var(--accent); }
.tt-etat-feuille.termine { background: var(--vert-fond); color: var(--vert); }
.tt-progres { display: block; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tt-progres i { display: block; height: 100%; background: var(--vert); border-radius: inherit; }
.tt-projets { gap: 8px; }
.tt-nouvelle summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--encre-2); list-style: none; padding: 4px 0; min-height: 28px; }
.tt-nouvelle summary::-webkit-details-marker { display: none; }
.tt-nouvelle summary::before { content: "+ "; }
.tt-nouvelle form { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface); }
.tt-nouvelle input:not([type=date]), .tt-nouvelle textarea { width: 100%; font-size: 14px; }
.tt-fiche { gap: 16px; }
.tt-retour { justify-self: start; background: none; border: 0; padding: 2px 0; color: var(--encre-2); cursor: pointer; font-size: 13px; }
.tt-retour:hover { color: var(--encre); }
.tt-titre { margin: -6px 0 0; font: 650 21px/1.25 var(--titre); }
.tt-infos { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; padding: 12px; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface); }
.tt-infos > div { display: grid; gap: 3px; align-content: start; min-width: 0; }
.tt-infos > div > span:first-child { font-size: 11px; color: var(--encre-3); text-transform: uppercase; letter-spacing: .05em; }
.tt-infos b { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.tt-infos .tt-progres { margin-top: 3px; }
.tt-pastille { width: 20px; height: 20px; border-radius: 50%; background: var(--a); color: #fff; font: 700 11px var(--texte); font-style: normal; display: inline-grid; place-items: center; }
.tt-section { display: grid; gap: 6px; }
.tt-section h4 { margin: 0; font: 650 11.5px var(--texte); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.tt-section p { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.tt-champ { display: grid; gap: 4px; font-size: 12px; color: var(--encre-3); }
.tt-champ input, .tt-champ textarea { width: 100%; font-size: 14px; }
.tt-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 12px; border-top: 1px solid var(--trait); }
.tt-actions button:not(.principal):not(.discret) { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 34px; }
.tt-actions .discret { margin-left: auto; }
.taches-client { margin-top: 2px; }
.tt-client-vue { gap: 10px; }
@media (max-width: 900px) {
  .tt-case { width: 26px; height: 26px; }
  .tt-ligne { padding: 10px 2px; }
  .tt-ajout-bas button.principal { flex: 1 0 100%; min-height: 42px; }
  .tt-ajout-bas select, .tt-ajout-bas input { flex: 1 1 40%; min-height: 40px; }
  .tt-actions button { flex: 1 1 auto; min-height: 42px; }
  .tt-actions .discret { margin-left: 0; }
}

/* « Confier à… », la mission qui la fait, l'action prête dans la tâche (14/10 : « si j'autorise le reboot, alors go ») */
.dd-taches.pret { background: var(--accent-fond); border-color: transparent; }
.dd-taches.pret .dd-case { border-color: var(--accent); background: var(--accent); }
.tt-groupe.pret h3 { color: var(--accent); }
.tt-confier-bouton { justify-self: start; background: none; border: 1px solid var(--trait); border-radius: 99px; padding: 2px 10px; font-size: 12px; color: var(--encre-2); cursor: pointer; min-height: 26px; }
.tt-confier-bouton:hover { border-color: var(--encre-3); color: var(--encre); }
.tt-confier { display: grid; gap: 8px; margin-top: 6px; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.tt-confier input { width: 100%; border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); padding: 6px 8px; font-size: 13px; min-height: 34px; }
.tt-gens { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-gen { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--trait); border-radius: 99px; background: var(--surface); cursor: pointer; font-size: 13px; min-height: 32px; }
.tt-gen i { width: 22px; height: 22px; border-radius: 50%; background: var(--a); color: #fff; font: 700 11px var(--texte); font-style: normal; display: inline-grid; place-items: center; }
.tt-gen small { font-size: 11px; color: var(--encre-3); }
.tt-gen.choisi { border-color: var(--a); box-shadow: 0 0 0 1px var(--a) inset; font-weight: 600; }
.tt-suivi { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--encre-2); }
.tt-suivi::before { content: ""; flex: none; width: 3px; align-self: stretch; border-radius: 2px; background: var(--a); }
.tt-suivi .point-anime { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--a); animation: pouls 1.4s infinite; }
.tt-suivi.echec, .tt-suivi.annulee { color: var(--accent); }
.tt-action { display: grid; gap: 6px; margin-top: 4px; padding: 10px 12px; border: 1px solid var(--trait); border-left: 3px solid var(--a); border-radius: 10px; background: var(--surface); }
.tt-action-tete { margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--encre-3); }
.tt-action-tete b { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tt-action-motif { margin: 0; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.tt-action-detail summary { cursor: pointer; font-size: 12px; color: var(--encre-2); }
.tt-action-detail pre { margin: 6px 0 0; padding: 8px; border-radius: 8px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 180px; overflow: auto; }
.tt-action-detail code { overflow-wrap: anywhere; }
.tt-action-boutons { display: flex; gap: 8px; }
.tt-action-boutons button:not(.principal) { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 34px; }
@media (max-width: 900px) { .tt-action-boutons button { flex: 1; min-height: 42px; } .tt-gen { min-height: 38px; } }
.tt-lien.ko { background: var(--accent-fond); color: var(--accent); }

/* ——— L'espace d'un client (14/10 : « si je clique sur un client, j'ai son interface ») ——— */
.page-espace { background: var(--fond); }
.es-chargement { padding: 40px 16px; color: var(--encre-3); text-align: center; }
.es { max-width: 1320px; margin: 0 auto; padding: 0 16px 40px; }
.es-haut { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 12px 0 10px; background: var(--fond); }
.es-retour { color: var(--encre-2); text-decoration: none; font-size: 13px; white-space: nowrap; }
.es-retour:hover { color: var(--encre); }
.es-titre { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.es-titre h1 { margin: 0; font: 650 22px/1.2 var(--titre); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-pastille { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--c); }
.es-niveau { color: #e0960f; font-size: 15px; letter-spacing: 1px; white-space: nowrap; }
.es-presents-mini { display: inline-flex; gap: 2px; }
.es-changer { border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); padding: 6px 8px; min-height: 34px; font-size: 13px; }
.es-onglets { position: sticky; top: 56px; z-index: 4; display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 12px; background: var(--surface-2); overflow-x: auto; scrollbar-width: none; }
.es-onglets button { flex: none; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--encre-2); cursor: pointer; min-height: 38px; }
.es-onglets button.actif { background: var(--surface); color: var(--encre); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.es-onglets button i { font-style: normal; font-size: 11.5px; min-width: 18px; padding: 1px 6px; border-radius: 99px; background: var(--accent); color: #fff; }
.es-onglets button i.vif { background: none; color: var(--accent); animation: pouls 1.4s infinite; }
.es-grille { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.es-carte { grid-column: span 4; display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); min-width: 0; }
.es-carte h2 { margin: 0; display: flex; align-items: center; gap: 8px; font: 650 12px var(--texte); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-2); }
.es-direct, .es-toi { grid-column: span 6; }
.es-calme { margin: 0; color: var(--encre-3); font-size: 13.5px; }
.es-calme.grand { padding: 30px 0; text-align: center; font-size: 15px; }
.es-sous, .es-aide { margin: 0; font-size: 12.5px; color: var(--encre-2); }
.es-lien { justify-self: start; background: none; border: 0; padding: 2px 0; color: var(--encre-2); cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--trait); }
.es-lien:hover { color: var(--encre); }
.es-gros-lien { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--surface-2); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.es-gros-lien.vif { background: var(--accent-fond); color: var(--accent); }
.es-gros-lien em { margin-left: auto; font-style: normal; }
.es-point { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pouls 1.4s infinite; }
.es-presents { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.es-presents li { display: flex; gap: 10px; align-items: center; }
.es-presents span { display: grid; font-size: 13.5px; min-width: 0; }
.es-presents small { color: var(--encre-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-av { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--a); color: #fff; font: 700 13px var(--texte); font-style: normal; display: inline-grid; place-items: center; }
.es-av.petit { width: 22px; height: 22px; font-size: 11px; }
.es-compteurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.es-compteur { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface); cursor: pointer; }
.es-compteur b { font: 650 24px/1 var(--titre); }
.es-compteur span { font-size: 12px; color: var(--encre-2); }
.es-compteur.vif { border-color: transparent; background: var(--accent-fond); }
.es-compteur.vif b { color: var(--accent); }
.es-ligne-tache { margin: 0; font-size: 13.5px; padding-left: 10px; border-left: 2px solid var(--trait); }
.es-ligne-tache em { font-style: normal; color: var(--accent); font-weight: 600; margin-right: 6px; font-size: 12px; }
.es-etoiles-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.es-etoiles-liste li { display: grid; grid-template-columns: 20px 1fr; column-gap: 6px; font-size: 13px; color: var(--encre-3); }
.es-etoiles-liste li i { font-style: normal; grid-row: span 2; color: #c9c3b8; font-size: 16px; }
.es-etoiles-liste li.ok { color: var(--encre); }
.es-etoiles-liste li.ok i { color: #e0960f; }
.es-etoiles-liste li span { font-size: 12px; color: var(--encre-3); }
.es-quete { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: linear-gradient(135deg, #fff6e2, #fdeedd); }
.es-quete p { margin: 0; display: grid; gap: 2px; font-size: 13.5px; }
.es-quete p span { font-size: 12.5px; color: var(--encre-2); }
.es-quete button { justify-self: start; }
.es-bravo { margin: 0; color: var(--vert); font-weight: 600; }
.es-projet { display: grid; gap: 5px; text-align: left; padding: 10px 12px; border: 1px solid var(--trait); border-left: 3px solid var(--c); border-radius: 12px; background: var(--surface); cursor: pointer; }
.es-projet b { font-size: 14px; }
.es-projet small { font-size: 12px; color: var(--encre-2); }
.es-progres { display: block; height: 5px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.es-progres i { display: block; height: 100%; background: var(--vert); }
.es-sante-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.es-sante-liste li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 6px 10px; border-radius: 8px; background: var(--vert-fond); }
.es-sante-liste li.ko { background: var(--accent-fond); }
.es-sante-liste li.moyen { background: var(--ambre-fond); }
.es-faits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.es-faits li { display: grid; grid-template-columns: 42px 1fr; gap: 8px; font-size: 13px; line-height: 1.4; }
.es-faits time { color: var(--encre-3); font-size: 12px; }
.es-missions-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.es-missions-liste li { display: flex; gap: 8px; align-items: flex-start; }
.es-missions-liste li span { display: grid; font-size: 13px; min-width: 0; }
.es-missions-liste li small { font-size: 12px; color: var(--encre-3); }
.es-missions-liste li.en_cours small { color: var(--accent); font-weight: 600; }
.es-missions-liste li.echec small { color: var(--accent); }
.es-afaire { max-width: 820px; }
.es-decisions { display: grid; gap: 10px; max-width: 820px; }
.es-decision { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--trait); border-left: 3px solid var(--a, var(--trait)); border-radius: 12px; background: var(--surface); }
.es-decision.message { border-left-color: var(--vert); }
.es-d-tete { margin: 0; display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--encre-3); }
.es-d-tete b { color: var(--encre-2); }
.es-d-tete em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--accent); }
.es-decision.acceptee .es-d-tete em, .es-decision.executee .es-d-tete em { color: var(--vert); }
.es-decision.refusee .es-d-tete em { color: var(--encre-3); }
.es-d-titre { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.es-d-texte { margin: 0; font-size: 13.5px; color: var(--encre-2); line-height: 1.5; white-space: pre-wrap; }
.es-d-detail summary { cursor: pointer; font-size: 12.5px; color: var(--encre-2); }
.es-d-detail pre { margin: 6px 0 0; padding: 8px; border-radius: 8px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.es-d-boutons { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.es-d-boutons button:not(.principal):not(.es-lien) { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 34px; }
.es-autrement { display: grid; gap: 8px; }
.es-autrement textarea { width: 100%; border: 1px solid var(--trait); border-radius: 8px; padding: 8px 10px; font-size: 14px; resize: vertical; }
.es-autrement button { justify-self: start; }
.es-docs { display: grid; grid-template-columns: 240px 1fr; gap: 16px; align-items: start; }
.es-docs-liste { position: sticky; top: 112px; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--trait); border-radius: 12px; background: var(--surface); }
.es-docs-titre { margin: 8px 8px 4px; font: 650 11px var(--texte); letter-spacing: .05em; text-transform: uppercase; color: var(--encre-3); }
.es-docs-liste button, .es-docs-liste a { display: grid; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 8px; font-size: 13.5px; cursor: pointer; color: var(--encre); text-decoration: none; overflow-wrap: anywhere; }
.es-docs-liste button.actif { background: var(--surface-2); font-weight: 600; }
.es-docs-liste a small { color: var(--encre-3); font-size: 11.5px; }
.es-doc { padding: 20px 24px; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); font-size: 14.5px; line-height: 1.6; min-width: 0; overflow-wrap: anywhere; }
.es-doc h1, .es-doc h2, .es-doc h3 { font-family: var(--titre); line-height: 1.3; }
.es-doc h1 { font-size: 22px; margin-top: 0; }
.es-doc pre { white-space: pre-wrap; background: var(--surface-2); padding: 10px; border-radius: 8px; }
.es-sante { padding: 16px; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); }
.vers-espace { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--encre); text-decoration: none; }
.vers-espace b { font-size: 14px; }
.vers-espace span { flex: 1; font-size: 12px; color: var(--encre-2); }
.vers-espace i { font-style: normal; font-size: 18px; color: var(--encre-3); }
.vers-espace:hover { background: var(--trait); }
a.tt-client { text-decoration: none; }
a.tt-client:hover { color: var(--encre); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 1100px) { .es-carte, .es-direct, .es-toi { grid-column: span 6; } }
@media (max-width: 720px) {
  .es-carte, .es-direct, .es-toi { grid-column: span 12; }
  .es-haut { flex-wrap: wrap; gap: 8px; }
  .es-titre { order: 3; flex-basis: 100%; }
  .es-changer { margin-left: auto; }
  .es-onglets { top: 0; position: relative; }
  .es-docs { grid-template-columns: 1fr; }
  .es-docs-liste { position: static; display: flex; overflow-x: auto; }
  .es-docs-liste button, .es-docs-liste a { flex: none; }
  .es-docs-titre { display: none; }
  .es-doc { padding: 14px; }
}

/* ——— La salle de réunion (14/10 : « une interface comme Agent Standup ») : une scène sombre comme un appel, des panneaux clairs ——— */
.sl-salle { display: grid; gap: 12px; }
.sl-entete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sl-sujet { flex: 1; min-width: 0; margin: 0; display: grid; gap: 2px; }
.sl-sujet b { font: 650 17px/1.3 var(--titre); }
.sl-sujet span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--encre-2); }
.sl-commandes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sl-commandes button { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 6px 12px; cursor: pointer; min-height: 34px; font-size: 13px; }
.sl-voix { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 0 6px; }
.sl-corps { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.sl-principal { display: grid; gap: 12px; min-width: 0; }
.sl-scene { display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-areas: "orateur sous" "ecran ecran"; gap: 14px; padding: 16px; border-radius: 16px;
  background: radial-gradient(120% 140% at 0% 0%, #2b2d33 0%, #1b1c20 60%, #16171a 100%); color: #f1efe9; min-height: 300px; }
.sl-scene.calme { grid-template-columns: 1fr; grid-template-areas: "vide" "ecran"; }
.sl-salle-vide { grid-area: vide; display: grid; gap: 6px; place-content: center; text-align: center; min-height: 150px; }
.sl-salle-vide b { font: 650 20px var(--titre); }
.sl-salle-vide span { color: #b9b6ae; font-size: 14px; max-width: 46ch; }
.sl-orateur { grid-area: orateur; display: grid; gap: 10px; justify-items: center; align-content: start; }
.sl-orateur-nom { margin: 0; display: grid; gap: 2px; text-align: center; }
.sl-orateur-nom b { font: 650 18px var(--titre); }
.sl-orateur-nom span { font-size: 12.5px; color: #b9b6ae; }
.sl-orateur-nom em { font-style: normal; font-size: 12.5px; color: var(--a); font-weight: 600; filter: brightness(1.5); }
.sl-cadre { position: relative; display: block; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #ffffff 0%, #ece7de 70%); box-shadow: 0 0 0 3px var(--a); overflow: visible; }
.sl-cadre.grand { width: 168px; height: 168px; box-shadow: 0 0 0 4px var(--a), 0 10px 30px rgba(0, 0, 0, .35); }
.sl-portrait { display: block; width: 100%; height: 100%; border-radius: 50%; }
.sl-initiale { display: grid; place-items: center; background: var(--a); color: #fff; font: 700 30px var(--titre); }
.sl-onde { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--a); animation: onde 1.2s ease-out infinite; pointer-events: none; }
@keyframes onde { 0% { transform: scale(.96); opacity: .9; } 100% { transform: scale(1.18); opacity: 0; } }
.sl-soustitres { grid-area: sous; max-height: 260px; overflow-y: auto; padding: 4px 6px 4px 0; font-size: 15.5px; line-height: 1.55; scrollbar-width: thin; }
.sl-texte { white-space: pre-wrap; }
.sl-texte p { margin: 0 0 8px; white-space: normal; }
.sl-texte ul { margin: 0 0 8px; padding-left: 20px; white-space: normal; }
.sl-texte a { color: #ffd59a; }
.sl-texte code { background: rgba(255, 255, 255, .08); padding: 1px 4px; border-radius: 4px; }
.sl-reflechit { color: #b9b6ae; font-style: italic; }
.sl-ecran { grid-area: ecran; display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); min-width: 0; }
.sl-ecran.vide p { margin: 0; color: #9d9a92; font-size: 13px; }
.sl-ecran-tete { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #cfcbc2; }
.sl-ecran-tete i { width: 8px; height: 8px; border-radius: 50%; background: var(--a); }
.sl-ecran-tete b { color: #fff; }
.sl-terminal, .sl-document { margin: 0; max-height: 220px; overflow: auto; padding: 10px 12px; border-radius: 8px; background: #0e0f11; color: #d6f5d6; font: 12px/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.sl-terminal b { color: #8fd18f; }
.sl-document { color: #e8e4da; font-family: var(--texte); font-size: 13px; }
.sl-page { display: block; max-width: 100%; max-height: 300px; border-radius: 8px; margin: 0 auto; }
.sl-action p { margin: 0 0 6px; font-size: 13.5px; }
.sl-aide { color: #b9b6ae !important; font-size: 12px !important; }
.sl-participants { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.sl-vignette { position: relative; display: grid; justify-items: center; gap: 4px; padding: 14px 10px 12px; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: center; min-width: 0; }
.sl-vignette:hover { border-color: var(--encre-3); }
.sl-vignette.cible { border-color: var(--a); box-shadow: 0 0 0 1px var(--a) inset; }
.sl-vignette.parle, .sl-vignette.cherche { border-color: var(--a); background: color-mix(in srgb, var(--a) 7%, var(--surface)); }
.sl-v-nom { display: grid; font-size: 13.5px; font-weight: 650; }
.sl-v-nom small { font-weight: 400; font-size: 11.5px; color: var(--encre-3); }
.sl-v-etat { font-size: 12px; color: var(--encre-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.8em; }
.sl-vignette.parle .sl-v-etat, .sl-vignette.cherche .sl-v-etat { color: var(--a); font-weight: 600; }
.sl-vignette.fait .sl-v-etat { color: var(--vert); }
.sl-vignette.erreur .sl-v-etat { color: var(--accent); }
.sl-vignette.main .sl-v-etat { color: var(--ambre); font-weight: 600; }
.sl-bulle-mini { font-style: normal; margin-right: 4px; animation: pouls 1s infinite; }
.sl-v-stats { font-size: 11px; color: var(--encre-3); }
.sl-saisie { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: end; padding: 10px; border: 1px solid var(--trait); border-radius: 14px; background: var(--surface); }
.sl-saisie select { border: 1px solid var(--trait); border-radius: 8px; background: var(--surface); padding: 6px 8px; min-height: 40px; font-size: 13px; max-width: 220px; }
.sl-saisie textarea { width: 100%; border: 0; background: none; resize: none; font-size: 14.5px; padding: 8px 4px; min-height: 40px; }
.sl-saisie textarea:focus-visible { outline: none; }
.sl-saisie .principal { min-height: 40px; }
.sl-saisie .erreur { grid-column: 1 / -1; margin: 0; }
.sl-cote { position: sticky; top: 112px; display: grid; gap: 10px; min-width: 0; }
.sl-onglets { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.sl-onglets button { flex: 1; border: 0; background: none; padding: 7px 6px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--encre-2); cursor: pointer; white-space: nowrap; }
.sl-onglets button.actif { background: var(--surface); color: var(--encre); }
.sl-panneau { display: grid; gap: 10px; max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: thin; }
.sl-fil-tour { padding: 10px 12px; border-left: 3px solid var(--a); border-radius: 0 10px 10px 0; background: var(--surface); }
.sl-fil-qui { margin: 0 0 4px; font-size: 12.5px; color: var(--encre-3); }
.sl-fil-qui b { color: var(--a); }
.sl-fil-texte { margin: 0; font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.sl-fil-texte p, .sl-fil-texte ul { white-space: normal; margin: 0 0 6px; }
.sl-recap { width: 100%; border-collapse: collapse; font-size: 12.5px; background: var(--surface); border-radius: 10px; overflow: hidden; }
.sl-recap th, .sl-recap td { padding: 7px 8px; text-align: left; border-bottom: 1px solid var(--trait); }
.sl-recap th { font-weight: 600; color: var(--encre-3); font-size: 11.5px; }
.sl-passees { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sl-passees button { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 10px; background: var(--surface); cursor: pointer; }
.sl-passees b { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sl-passees small { font-size: 12px; color: var(--encre-3); }
@media (max-width: 1000px) {
  .sl-corps { grid-template-columns: 1fr; }
  .sl-cote { position: static; }
  .sl-panneau { max-height: none; }
}
@media (max-width: 720px) {
  .sl-scene { grid-template-columns: 1fr; grid-template-areas: "orateur" "sous" "ecran"; padding: 12px; }
  .sl-cadre.grand { width: 120px; height: 120px; }
  .sl-soustitres { max-height: 220px; font-size: 15px; }
  .sl-participants { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 128px; overflow-x: auto; padding-bottom: 4px; }
  .sl-cadre { width: 70px; height: 70px; }
  .sl-saisie { grid-template-columns: 1fr; }
  .sl-saisie select { max-width: none; }
}
.es-actions-direct { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.es-actions-direct button:not(.principal) { background: var(--surface); border: 1px solid var(--trait); border-radius: 8px; padding: 7px 12px; cursor: pointer; min-height: 34px; }
.es-direct { align-content: stretch; }
.sl-etape { margin: 0; display: grid; gap: 4px; padding: 10px 12px; border-radius: 8px; background: #0e0f11; font-size: 13.5px; }
.sl-etape span { color: #b9b6ae; font-size: 12.5px; overflow-wrap: anywhere; }

/* 15/10 : l'étiquette « Réunion » d'un message mène à la salle */
a.pour.reunion { text-decoration: none; cursor: pointer; }
a.pour.reunion:hover, a.pour.reunion:focus-visible { text-decoration: underline; }
