/* Harnais — feuille de style unique (sans build). Thème sombre par défaut, body.clair pour le clair.
   Direction « Atelier » : neutres chauds, boutons plats couleur encre, terre cuite réservée à ce qui est actif, icônes Lucide au trait. */
@font-face { font-family: 'Inter'; src: url('/vendor/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --fond: #1a1917; --fond2: #1f1e1c; --panneau: #252422; --panneau2: #2d2c29; --panneau3: #383633; --bord: #33312e; --bord-fort: #45423e;
  --texte: #ecebe6; --doux: #a3a097; --tres-doux: #76736b;
  --accent: #d98a68; --accent-fort: #c9744f; --accent2: #e3a182; --accent-doux: rgba(217, 138, 104, .13); --sur-accent: #1a1917;
  --encre: #ecebe6; --encre-fort: #ffffff; --sur-encre: #1a1917;
  --ok: #5cc08f; --attention: #e0aa48; --erreur: #e5736a; --bleu: #7fb0e6;
  --lueur: 0 0 0 1px rgba(217, 138, 104, .55);
  --ombre: 0 16px 40px -16px rgba(0, 0, 0, .6); --ombre-douce: none;
  --reflet: none;
  --verre: rgba(26, 25, 23, .82); --halo: transparent;
  --rayon: 10px; --rayon-petit: 7px;
  --police: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'JetBrains Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  --barre-h: 56px;
  color-scheme: dark;
}
body.clair, :root.demarre-clair body {
  --fond: #f5f4ee; --fond2: #faf9f5; --panneau: #ffffff; --panneau2: #f3f1ea; --panneau3: #e9e6dc; --bord: #e6e3d9; --bord-fort: #d4d0c4;
  --texte: #1f1e1c; --doux: #62605a; --tres-doux: #8f8c83;
  --accent: #b85a3a; --accent-fort: #a04d30; --accent2: #a04d30; --accent-doux: rgba(184, 90, 58, .09); --sur-accent: #ffffff;
  --encre: #1f1e1c; --encre-fort: #3a3835; --sur-encre: #faf9f5;
  --ok: #2c7a55; --attention: #a8690a; --erreur: #c0392f; --bleu: #3d6fb4;
  --lueur: 0 0 0 1px rgba(184, 90, 58, .5);
  --ombre: 0 16px 40px -18px rgba(31, 30, 28, .22); --ombre-douce: none;
  --reflet: none;
  --verre: rgba(250, 249, 245, .86); --halo: transparent;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--fond); color: var(--texte); font: 14px/1.55 var(--police); font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; overflow: hidden;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 650; letter-spacing: -.022em; margin: 0 0 6px; text-wrap: balance; }
h2 { font-size: 15.5px; font-weight: 600; letter-spacing: -.008em; margin: 0 0 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 8px; }
code, pre, .mono { font-family: var(--mono); font-size: 12.5px; }
pre { white-space: pre-wrap; word-break: break-word; background: var(--panneau2); padding: 10px 12px; border-radius: var(--rayon-petit); margin: 0; border: 1px solid var(--bord); }
kbd { font: 11px var(--mono); border: 1px solid var(--bord-fort); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; color: var(--doux); }
::selection { background: color-mix(in srgb, var(--accent) 32%, transparent); }
* { scrollbar-width: thin; scrollbar-color: var(--bord-fort) transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Icônes (Lucide) */
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.2em; }
.ic.rond { width: .7em; height: .7em; fill: currentColor; stroke: none; vertical-align: .02em; }
.ic.rond.attention { color: var(--attention); } .ic.rond.ok { color: var(--ok); } .ic.rond.erreur { color: var(--erreur); }
.texte-ok { color: var(--ok); } .texte-erreur { color: var(--erreur); }

/* ---------- Boutons et champs */
button, .bouton {
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; border: 1px solid var(--bord-fort); background: var(--panneau); color: var(--texte);
  padding: 7px 13px; border-radius: var(--rayon-petit); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
button:hover, .bouton:hover { background: var(--panneau2); text-decoration: none; }
button.principal, .bouton.principal { background: var(--encre); border-color: var(--encre); color: var(--sur-encre); font-weight: 550; }
button.principal:hover, .bouton.principal:hover { background: var(--encre-fort); border-color: var(--encre-fort); }
button.danger { color: var(--erreur); } button.danger:hover { background: color-mix(in srgb, var(--erreur) 10%, var(--panneau)); border-color: color-mix(in srgb, var(--erreur) 40%, var(--bord)); }
button.petit, .bouton.petit { padding: 4px 9px; font-size: 12.5px; border-radius: 6px; gap: 5px; }
button:disabled { opacity: .45; cursor: default; }
.icone-seule, button.icone-seule, .bouton.icone-seule { padding: 0; width: 34px; height: 34px; justify-content: center; border-color: transparent; background: transparent; color: var(--doux); box-shadow: none; flex: none; }
.icone-seule:hover { background: var(--panneau2); color: var(--texte); }
.icone-seule .ic { width: 18px; height: 18px; }
.icone-seule.petit, button.petit.icone-seule { width: 28px; height: 28px; }
.icone-seule.petit .ic { width: 15px; height: 15px; }
button.petit.actif { border-color: var(--accent); color: var(--accent); }
input, select, textarea {
  font: inherit; color: var(--texte); background: var(--panneau); border: 1px solid var(--bord-fort); border-radius: var(--rayon-petit); padding: 8px 11px; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }
textarea { font-family: var(--mono); font-size: 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
label { display: block; font-size: 12.5px; color: var(--doux); margin: 12px 0 5px; font-weight: 500; }
.lien-doux { color: var(--doux); font-size: 13px; } .lien-doux:hover { color: var(--texte); }
.lien-titre { color: inherit; }

/* ---------- La coque de l'appli : menu, barre du haut, contenu */
.app { display: grid; grid-template-columns: var(--nav-l, 240px) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.cadre-app { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.contenu {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 26px max(clamp(16px, 3vw, 40px), calc((100% - 1320px) / 2)) 56px;
  background: radial-gradient(900px 420px at 85% -120px, var(--halo), transparent 70%) no-repeat;
}
.contenu[data-page=conv], .contenu[data-page=sessions], .contenu[data-page=terminal], .contenu[data-page=fichiers], .contenu[data-page=navigateur], .contenu[data-page=email] { padding-inline: clamp(12px, 2vw, 24px); }
.contenu[data-page=conv] { padding-block: 14px; }
@keyframes entree { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.contenu.entree > * { animation: entree .34s cubic-bezier(.2, .8, .2, 1) both; }
.contenu.entree > *:nth-child(2) { animation-delay: .03s; } .contenu.entree > *:nth-child(3) { animation-delay: .06s; } .contenu.entree > *:nth-child(4) { animation-delay: .09s; } .contenu.entree > *:nth-child(n+5) { animation-delay: .12s; }

.nav {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 12px 10px 10px;
  background: var(--fond2); border-right: 1px solid var(--bord); user-select: none; z-index: 30;
}
.nav-tete { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 0 2px 8px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; color: var(--texte); letter-spacing: -.01em; }
.logo:hover { text-decoration: none; }
.logo em { color: var(--accent); font-style: normal; }
.nav-nouveau { width: 100%; justify-content: center; padding: 8px 12px; }
.nav-defile { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; display: flex; flex-direction: column; gap: 4px; margin: 0 -6px; padding: 0 6px; }
.nav-liens { display: flex; flex-direction: column; gap: 1px; }
.nav a, .sous-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--doux); font-weight: 500; font-size: 13.5px; position: relative; text-decoration: none; transition: background .12s, color .12s; }
.nav a .ic, .sous-nav a .ic { width: 17px; height: 17px; }
.nav a:hover, .sous-nav a:hover { background: var(--panneau2); color: var(--texte); }
.nav a.actif, .sous-nav a.actif { background: var(--accent-doux); color: var(--texte); }
.nav a.actif > .ic, .sous-nav a.actif > .ic { color: var(--accent); }
.nav a.actif::before, .sous-nav a.actif::before { content: ''; position: absolute; left: -10px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav .lib, .sous-nav .lib { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a.nav-ajout, .sous-nav a.nav-ajout { color: var(--tres-doux); }
.nav a.nav-ajout:hover, .sous-nav a.nav-ajout:hover { color: var(--accent2); }
.nav-groupe-titre {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 10px 5px; border: 0; background: none; box-shadow: none; border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--tres-doux);
}
.nav-groupe-titre:hover { background: none; color: var(--doux); }
.nav-groupe-titre > .ic:first-child { display: none; }
.nav-groupe-titre .chevron { margin-left: auto; width: 14px; height: 14px; transition: transform .2s; opacity: .7; }
.nav-groupe.ferme .chevron { transform: rotate(-90deg); }
.nav-groupe.ferme > .nav-liens { display: none; }
.pastille { margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 650; display: inline-grid; place-items: center; background: var(--erreur); color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.pastille.accent { background: var(--accent); color: var(--sur-accent); box-shadow: 0 0 10px -2px var(--accent); }
.pastille.bleue { background: var(--bleu); color: #04121f; } .pastille.verte { background: var(--ok); color: #03140c; }
.pastille.grande { min-width: 22px; height: 22px; font-size: 12px; }
.pastille + .pastille { margin-left: 4px; }
.etat-doctor { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--doux); padding: 8px 10px; border-radius: 9px; border: 1px solid var(--bord); background: var(--panneau); text-decoration: none; }
.etat-doctor:hover { color: var(--texte); text-decoration: none; border-color: var(--bord-fort); }
.poignee { position: absolute; top: 0; right: -4px; width: 8px; height: 100%; cursor: col-resize; z-index: 5; }
.poignee:hover, .redimensionne .poignee { background: linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; }
.app.redimensionne { user-select: none; cursor: col-resize; }

/* Menu à deux niveaux (ordinateur, menu à gauche ou en icônes) : un menu court ; un groupe s'ouvre dans un panneau à côté */
.sous-nav { display: none; }
.app.avec-panneau { grid-template-columns: var(--nav-l, 240px) var(--panneau-l, 236px) minmax(0, 1fr); }
.app.avec-panneau[data-nav=icones] { grid-template-columns: 66px var(--panneau-l, 236px) minmax(0, 1fr); }
.app.avec-panneau .sous-nav { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 14px 10px 10px; background: var(--fond); border-right: 1px solid var(--bord); user-select: none; z-index: 29; animation: entree-panneau .2s cubic-bezier(.2, .8, .2, 1); }
@keyframes entree-panneau { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.sous-nav-tete { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 0 6px 10px; }
.sous-nav-titre { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.sous-nav-liens { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; margin: 0 -6px; padding: 0 6px; }
.sous-nav-liens > .nav-liens { display: flex; }
.app.mode-panneau .nav-groupe > .nav-liens { display: none; }
.app.mode-panneau .nav-defile { gap: 1px; }
.app.mode-panneau .nav-groupe { border: 0; margin: 0; padding: 0; width: 100%; }
.app.mode-panneau .nav-defile > .nav-liens { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--bord); }
.app.mode-panneau .nav-groupe-titre { display: flex; gap: 10px; padding: 7px 10px; border-radius: 8px; text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; color: var(--doux); position: relative; }
.app.mode-panneau .nav-groupe-titre > .ic:first-child { display: block; width: 17px; height: 17px; }
.app.mode-panneau .nav-groupe-titre .chevron { transform: rotate(-90deg); }
.app.mode-panneau .nav-groupe-titre:hover { background: var(--panneau2); color: var(--texte); }
.app.mode-panneau .nav-groupe.contient-actif .nav-groupe-titre { color: var(--texte); }
.app.mode-panneau .nav-groupe.panneau-actif .nav-groupe-titre { background: var(--accent-doux); color: var(--texte); }
.app.mode-panneau .nav-groupe.panneau-actif .nav-groupe-titre > .ic:first-child { color: var(--accent); }
.app.mode-panneau .nav-groupe.panneau-actif .nav-groupe-titre .chevron { transform: none; }
.app.mode-panneau[data-nav=icones] .nav-groupe-titre { display: flex; width: 42px; height: 38px; justify-content: center; padding: 0; margin: 0 auto; }
.app.mode-panneau[data-nav=icones] .nav-groupe-titre .chevron, .app.mode-panneau[data-nav=icones] .nav-groupe-titre .lib { display: none; }
/* Bas du menu : santé, jauges du serveur, consommation de Claude, raccourcis */
.nav-bas { display: flex; flex-direction: column; gap: 8px; }
.nav-jauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 2px 4px; color: var(--doux); text-decoration: none; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.nav-jauges:hover { color: var(--texte); text-decoration: none; }
.nav-jauge { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nav-jauge > span { display: flex; align-items: center; gap: 4px; }
.nav-jauge .ic { width: 13px; height: 13px; flex: none; }
.nav-jauge i { display: block; height: 3px; border-radius: 3px; background: var(--panneau3); overflow: hidden; }
.nav-jauge i b { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.nav-jauge.haut i b { background: var(--attention); } .nav-jauge.tres i b { background: var(--erreur); }
.nav-quota { display: flex; align-items: center; gap: 10px; padding: 6px 4px; color: var(--texte); text-decoration: none; }
.nav-quota:hover { text-decoration: none; }
.nav-quota svg { width: 36px; height: 36px; flex: none; transform: rotate(-90deg); }
.nav-quota circle { fill: none; stroke-width: 4; }
.nav-quota .fond { stroke: var(--panneau3); } .nav-quota .valeur { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .6s; }
.nav-quota.haut .valeur { stroke: var(--attention); } .nav-quota.tres .valeur { stroke: var(--erreur); }
.nav-quota .anneau { position: relative; display: grid; place-items: center; }
.nav-quota .anneau span { position: absolute; font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.nav-quota .texte { display: flex; flex-direction: column; min-width: 0; font-size: 12px; color: var(--doux); line-height: 1.35; }
.nav-quota .texte b { color: var(--texte); font-size: 12.5px; font-weight: 600; }
.nav-pied { display: flex; justify-content: space-around; border-top: 1px solid var(--bord); padding-top: 6px; }
.nav-pied .icone-seule { color: var(--tres-doux); }
.nav-pied .icone-seule:hover { color: var(--texte); }
.app[data-nav=icones] .nav-jauges, .app[data-nav=icones] .nav-quota .texte, .app[data-nav=haut] .nav-jauges, .app[data-nav=haut] .nav-quota, .app[data-nav=haut] .nav-pied { display: none; }
.app[data-nav=icones] .nav-pied { flex-direction: column; align-items: center; gap: 2px; }
.app[data-nav=icones] .nav-quota { justify-content: center; padding: 2px 0; }
.app[data-nav=haut] .nav-bas { flex-direction: row; order: 8; }
@media (max-width: 820px) { .nav-jauges, .nav-quota { display: none !important; } }

/* Menu replié : icônes seules */
.app[data-nav=icones] { grid-template-columns: 66px minmax(0, 1fr); }
.app[data-nav=icones] .nav { padding: 12px 8px 10px; align-items: center; }
.app[data-nav=icones] .nav-tete { flex-direction: column; padding: 0; gap: 8px; }
.app[data-nav=icones] .logo b, .app[data-nav=icones] .nav .lib, .app[data-nav=icones] .nav-groupe-titre, .app[data-nav=icones] .etat-doctor .texte { display: none; }
.app[data-nav=icones] .nav-nouveau { width: 42px; height: 38px; padding: 0; }
.app[data-nav=icones] .nav-defile { align-items: center; margin: 0; padding: 0; width: 100%; }
.app[data-nav=icones] .nav-groupe { border-top: 1px solid var(--bord); padding-top: 5px; margin-top: 3px; width: 100%; display: flex; flex-direction: column; align-items: center; }
.app[data-nav=icones] .nav-groupe.ferme > .nav-liens { display: flex; }
.app[data-nav=icones] .nav a { width: 42px; height: 38px; justify-content: center; padding: 0; }
.app[data-nav=icones] .nav a.actif::before { left: -8px; }
.app[data-nav=icones] .nav a .pastille { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; margin: 0; }
.app[data-nav=icones] .nav a .pastille + .pastille { display: none; }
.app[data-nav=icones] .etat-doctor { width: 42px; height: 34px; justify-content: center; padding: 0; }

/* Menu masqué (Ctrl+B) */
.app[data-nav=cache] { grid-template-columns: minmax(0, 1fr); }
.app[data-nav=cache] .nav { display: none; }
#btMenu { display: none; }
.app[data-nav=cache] #btMenu { display: inline-flex; }

/* Menu en haut : une barre horizontale, les groupes en menus déroulants */
.app[data-nav=haut] { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
.app[data-nav=haut] .nav { flex-direction: row; align-items: center; gap: 10px; padding: 8px clamp(12px, 2vw, 24px); border-right: 0; border-bottom: 1px solid var(--bord); }
.app[data-nav=haut] .nav-tete { padding: 0; }
.app[data-nav=haut] #btReplier, .app[data-nav=haut] .poignee { display: none; }
.app[data-nav=haut] .nav-nouveau { width: auto; order: 9; }
.app[data-nav=haut] .nav-defile { flex-direction: row; align-items: center; overflow: visible; margin: 0; padding: 0; gap: 2px; flex: 1; min-width: 0; }
.app[data-nav=haut] .nav-defile > .nav-liens { flex-direction: row; gap: 2px; }
.app[data-nav=haut] .nav a { padding: 6px 10px; }
.app[data-nav=haut] .nav a.actif::before { left: 12px; right: 12px; top: auto; bottom: -9px; width: auto; height: 2px; border-radius: 2px; }
.app[data-nav=haut] .nav-groupe { position: relative; }
.app[data-nav=haut] .nav-groupe-titre { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; color: var(--doux); padding: 6px 10px; border-radius: 8px; gap: 6px; white-space: nowrap; }
.app[data-nav=haut] .nav-groupe-titre:hover, .app[data-nav=haut] .nav-groupe.ouvert .nav-groupe-titre { background: var(--panneau2); color: var(--texte); }
.app[data-nav=haut] .nav-groupe:has(a.actif) .nav-groupe-titre { color: var(--texte); }
.app[data-nav=haut] .nav-groupe > .nav-liens, .app[data-nav=haut] .nav-groupe.ferme > .nav-liens {
  display: none; position: absolute; top: calc(100% + 10px); left: 0; min-width: 240px; background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 6px; box-shadow: var(--ombre); z-index: 50;
}
.app[data-nav=haut] .nav-groupe.ouvert > .nav-liens { display: flex; animation: pop .16s ease-out; }
.app[data-nav=haut] .nav-groupe .nav-liens a.actif::before { display: none; }
.app[data-nav=haut] .nav-groupe.ferme .chevron { transform: none; }
.app[data-nav=haut] .etat-doctor { order: 8; padding: 6px 9px; }
@media (max-width: 1240px) { .app[data-nav=haut] .nav-defile > .nav-liens .lib, .app[data-nav=haut] .etat-doctor .texte { display: none; } .app[data-nav=haut] .nav-defile > .nav-liens a { padding: 7px 9px; } }

/* Barre du haut (verre) ; dans l'appli installée, elle sert de barre de titre */
.barre-app {
  display: flex; align-items: center; gap: 6px; min-height: var(--barre-h); padding: 9px clamp(12px, 2.4vw, 28px);
  padding-top: max(9px, env(titlebar-area-height, 0px)); border-bottom: 1px solid var(--bord);
  background: var(--verre); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  position: relative; z-index: 25; app-region: drag; -webkit-app-region: drag;
}
.barre-app button, .barre-app a, .barre-app .menu-deroulant, .barre-app .fil-ariane { app-region: no-drag; -webkit-app-region: no-drag; }
.fil-ariane { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--doux); min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; }
.fil-ariane > span:last-child { color: var(--texte); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.fil-ariane .ic { width: 14px; height: 14px; color: var(--tres-doux); }
.recherche { min-width: 250px; justify-content: flex-start; color: var(--doux); background: var(--panneau2); border-color: var(--bord); border-radius: 10px; padding: 7px 10px; box-shadow: none; font-weight: 400; }
.recherche:hover { border-color: var(--bord-fort); color: var(--texte); }
.recherche kbd { margin-left: auto; }
#clocheFil { position: relative; }
#clocheFil .pastille { position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
.menu-compte { position: relative; }
.menu-deroulant { position: absolute; right: 0; top: calc(100% + 8px); min-width: 280px; background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 8px; z-index: 60; animation: pop .16s ease-out; display: flex; flex-direction: column; gap: 4px; }
.menu-nouveau { position: fixed; right: auto; width: 310px; }
.menu-titre { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--tres-doux); padding: 6px 8px 2px; font-weight: 600; }
.segment { display: flex; background: var(--panneau2); border: 1px solid var(--bord); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.segment button { flex: 1; border: 0; background: none; box-shadow: none; padding: 5px 9px; font-size: 12.5px; color: var(--doux); justify-content: center; border-radius: 7px; }
.segment button:hover { color: var(--texte); background: none; }
.segment button.actif { background: var(--panneau); color: var(--texte); box-shadow: var(--ombre-douce), 0 0 0 1px var(--bord); }
.menu-ligne { width: 100%; border: 0; background: none; box-shadow: none; justify-content: flex-start; padding: 8px 9px; border-radius: 8px; color: var(--texte); font-weight: 500; }
.menu-ligne:hover { background: var(--panneau2); }
.menu-ligne .ic { color: var(--doux); }
.menu-ligne.riche { align-items: flex-start; gap: 12px; padding: 10px; white-space: normal; text-align: left; }
.menu-ligne.riche > span { display: flex; flex-direction: column; gap: 1px; }
.menu-ligne.riche .ic { color: var(--accent); margin-top: 2px; width: 18px; height: 18px; }
.menu-ligne.riche .etiquette { font-weight: 400; }

/* Téléphone : barre d'onglets en bas, menu complet en tiroir */
.barre-mobile { display: none; }
.voile-nav { position: fixed; inset: 0; background: rgba(5, 7, 12, .5); backdrop-filter: blur(3px); z-index: 79; animation: entree .2s ease-out; }

/* ---------- Composants */
.entete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.entete > div:first-child { min-width: 0; }
.sous { color: var(--doux); margin: 0; max-width: 78ch; }
.grille { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grille.large { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.grille.etroite { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.deux { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .deux { grid-template-columns: minmax(0, 1fr); } }
.carte { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 18px; min-width: 0; box-shadow: var(--reflet), var(--ombre-douce); }
.carte.cliquable { cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .2s; }
.carte.cliquable:hover { border-color: var(--bord-fort); transform: translateY(-2px); box-shadow: var(--reflet), var(--ombre); }
.carte-tete { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.carte-tete h2 { margin: 0; display: flex; align-items: center; gap: 9px; font-size: 14.5px; }
.carte-tete h2 .ic { color: var(--accent); width: 17px; height: 17px; }
.carte-tete .lien-doux { margin-left: auto; }
.carte-tete .ligne .lien-doux { margin-left: 0; }
.carte-liste { padding: 0; overflow: hidden; }
.carte-liste > .carte-tete { padding: 14px 18px; border-bottom: 1px solid var(--bord); }
.titre-section { margin: 30px 0 12px; }
.chiffre { font-size: 28px; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.etiquette { color: var(--doux); font-size: 12.5px; }
.ligne { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ligne.entre { justify-content: space-between; }
.flex1 { flex: 1; min-width: 0; }
.pile > * + * { margin-top: 12px; }
.vide { color: var(--doux); text-align: center; padding: 24px; }
.puce { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--tres-doux); flex: none; }
.puce.ok { background: var(--ok); } .puce.erreur { background: var(--erreur); } .puce.attention { background: var(--attention); } .puce.encours { background: var(--bleu); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.badge { font-size: 11.5px; font-weight: 500; padding: 1px 8px; border-radius: 99px; background: var(--panneau2); border: 1px solid var(--bord); color: var(--doux); white-space: nowrap; }
.badge.ok { color: var(--ok); } .badge.erreur { color: var(--erreur); } .badge.attention { color: var(--attention); }
.jauge { height: 6px; background: var(--panneau3); border-radius: 99px; overflow: hidden; margin: 10px 0 6px; }
.jauge > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.jauge > div.haut { background: var(--erreur); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--bord); vertical-align: top; }
tr:last-child > td { border-bottom: 0; }
th { color: var(--doux); font-weight: 500; font-size: 12px; }
tr.cliquable { cursor: pointer; } tr.cliquable:hover td { background: var(--panneau2); }
.alerte { border-left: 3px solid var(--erreur); padding: 9px 12px; background: var(--panneau2); border-radius: 8px; }
.alerte.attention { border-left-color: var(--attention); }
.tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details summary { cursor: pointer; color: var(--doux); }
.aide { color: var(--doux); font-size: 12.5px; margin-top: 5px; }
.onglets { display: flex; gap: 2px; border-bottom: 1px solid var(--bord); margin-bottom: 16px; flex-wrap: wrap; }
.onglets button { border: 0; background: none; box-shadow: none; border-radius: 0; color: var(--doux); padding: 9px 12px; }
.onglets button:hover { color: var(--texte); background: none; }
.onglets button.actif { color: var(--texte); box-shadow: inset 0 -2px 0 var(--accent); }

/* Animations : petits dessins SVG (app.js, DESSINS), au trait, dans les couleurs du thème */
.anim { display: block; line-height: 0; }
.anim svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.anim-chargement circle { fill: var(--doux); animation: a-point 1.2s ease-in-out infinite both; }
.anim-chargement circle:nth-child(2) { animation-delay: .15s; } .anim-chargement circle:nth-child(3) { animation-delay: .3s; }
@keyframes a-point { 0%, 70%, 100% { opacity: .22; } 35% { opacity: 1; } }
.anim-succes .disque { fill: var(--ok); opacity: 0; animation: a-fondu .4s .45s ease-out forwards; --a-fin: .1; }
.anim-succes .cercle { stroke: var(--ok); stroke-width: 2.5; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 32px 32px; animation: a-trace .55s cubic-bezier(.65, 0, .35, 1) forwards; }
.anim-succes .coche { stroke: var(--ok); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: a-trace .3s .5s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes a-trace { to { stroke-dashoffset: 0; } }
@keyframes a-fondu { to { opacity: var(--a-fin, 1); } }
.anim-vide .sol { fill: var(--texte); opacity: .06; animation: a-sol 6s ease-in-out infinite; transform-origin: 80px 108px; }
.anim-vide .flotte { animation: a-flotte 6s ease-in-out infinite; }
.anim-vide .feuille, .anim-vide .arriere { stroke-width: 1.5; }
.anim-vide .feuille { fill: var(--panneau); stroke: var(--bord-fort); stroke-width: 1.5; }
.anim-vide .arriere { fill: var(--panneau2); stroke: var(--bord); }
.anim-vide :is(.l1, .l2, .l3) { stroke: var(--bord-fort); stroke-width: 3.5; animation: a-ligne 3.2s ease-in-out infinite; }
.anim-vide .titre { stroke: var(--accent); stroke-width: 3.5; }
.anim-vide .l2 { animation-delay: .25s; } .anim-vide .l3 { animation-delay: .5s; }
.anim :is(.e1, .e2, .e3) { fill: var(--accent); transform-box: fill-box; transform-origin: center; animation: a-etincelle 3.4s ease-in-out infinite; }
.anim .e2 { animation-delay: 1.1s; fill: var(--tres-doux); } .anim .e3 { animation-delay: 2.1s; fill: var(--tres-doux); }
@keyframes a-flotte { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes a-sol { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(.9); } }
@keyframes a-ligne { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes a-etincelle { 0%, 100% { transform: scale(.55); opacity: .35; } 50% { transform: scale(1); opacity: 1; } }
.anim-nuit .lune { fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 1.8; }
@media (prefers-reduced-motion: reduce) {
  .anim * { animation: none !important; }
  .anim-succes .cercle, .anim-succes .coche { stroke-dashoffset: 0; } .anim-succes .disque { opacity: .1; }
}
.chargement { display: grid; place-items: center; padding: 90px 0; }
.chargement .anim { width: 44px; height: 12px; }
.etat-vide { text-align: center; padding: 26px 16px; color: var(--doux); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.etat-vide .anim { width: 150px; height: 112px; }
.etat-vide p { max-width: 50ch; margin: 0; text-wrap: balance; }
.celebration { position: fixed; left: 50%; top: 42%; width: 116px; height: 116px; margin: -58px 0 0 -58px; z-index: 95; pointer-events: none; border-radius: 50%; background: var(--panneau); box-shadow: var(--ombre), 0 0 40px -8px var(--ok); animation: pop .22s ease-out; transition: opacity .35s, transform .35s; }
.celebration.sort { opacity: 0; transform: scale(.9); }
.celebration .anim { width: 100%; height: 100%; }

/* ---------- Aujourd'hui (tableau de bord) */
.accueil { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.accueil h1 { font-size: 30px; margin: 2px 0 4px; }
.accueil-date { text-transform: capitalize; font-weight: 500; letter-spacing: .01em; }
.colonnes-accueil { margin-top: 16px; }
.colonnes-accueil > .carte { align-self: start; }
.ligne-decision { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--bord); }
.carte-tete + .ligne-decision { border-top: 0; }
.titre-decision { font-weight: 550; }
.carte-liste .evt { padding: 10px 18px; }
.carte-liste > .carte-tete + .evt { border-top: 0; }
.rien { padding: 22px 18px; text-align: center; color: var(--doux); }
.rien .anim { width: 64px; height: 64px; margin: 0 auto 6px; }
.rien p { margin: 0; }
.bande-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1px; background: var(--bord); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; margin-top: 16px; }
.kpi { display: flex; gap: 12px; align-items: center; padding: 14px 16px; color: inherit; background: var(--panneau); transition: background .15s; }
.kpi:hover { background: var(--panneau2); text-decoration: none; }
.kpi-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-doux); color: var(--accent); display: grid; place-items: center; flex: none; }
.kpi .chiffre { font-size: 21px; display: block; }
.kpi .etiquette { display: block; line-height: 1.3; }
.guide { margin: 22px 0 4px; }
.etapes-guide { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.etapes-guide li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--bord); border-radius: 11px; background: var(--panneau); }
.etapes-guide li.faite { opacity: .62; }
.etapes-guide li.faite strong { text-decoration: line-through; text-decoration-color: var(--tres-doux); }
.etapes-guide .coche .ic { width: 20px; height: 20px; color: var(--tres-doux); }
.etapes-guide li.faite .coche .ic { color: var(--ok); }
.etapes-guide .etiquette { margin-top: 2px; line-height: 1.4; }
.briefing { margin-top: 16px; padding: 12px 18px; }
.briefing summary { display: flex; align-items: center; gap: 14px; list-style: none; color: var(--texte); }
.briefing summary::-webkit-details-marker { display: none; }
.briefing .anim { width: 54px; height: 45px; flex: none; }
.briefing .chevron { transition: transform .2s; color: var(--doux); }
.briefing[open] .chevron { transform: rotate(180deg); }
.corps-briefing { margin-top: 10px; max-height: 380px; overflow: auto; border-top: 1px solid var(--bord); padding-top: 6px; }
.icone-projet { width: 30px; height: 30px; padding: 0; justify-content: center; margin-right: 8px; color: var(--accent); background: var(--accent-doux); border-color: transparent; box-shadow: none; vertical-align: middle; }

/* ---------- Kanban des tâches */
.puces-projets { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.puce-projet { border-radius: 99px; padding: 6px 8px 6px 14px; box-shadow: none; }
.puce-projet.actif { background: var(--accent-doux); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.puce-projet .compte { font-size: 11.5px; color: var(--doux); background: var(--panneau2); border-radius: 99px; padding: 0 7px; min-width: 22px; text-align: center; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: 14px; overflow-x: auto; align-items: start; padding-bottom: 8px; }
.colonne { background: color-mix(in srgb, var(--panneau2) 60%, var(--fond)); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; transition: border-color .15s, background .15s, box-shadow .2s; }
.colonne.cible { border-color: var(--accent); background: var(--accent-doux); box-shadow: var(--lueur); }
.colonne-tete { display: flex; align-items: center; gap: 8px; padding: 2px 2px 2px 6px; }
.colonne-tete h3 { margin: 0; font-size: 13px; font-weight: 600; }
.colonne-tete .compte { font-size: 11.5px; color: var(--doux); background: var(--panneau); border: 1px solid var(--bord); border-radius: 99px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.colonne-tete button { margin-left: auto; }
.col-0 .colonne-tete > .ic { color: var(--doux); } .col-1 .colonne-tete > .ic { color: var(--attention); } .col-2 .colonne-tete > .ic { color: var(--bleu); } .col-3 .colonne-tete > .ic { color: var(--ok); }
.cartes { display: flex; flex-direction: column; gap: 8px; min-height: 44px; }
.tache { background: var(--panneau); border: 1px solid var(--bord); border-radius: 11px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: var(--reflet), var(--ombre-douce); transition: transform .12s, box-shadow .15s, border-color .15s; overflow-wrap: anywhere; }
.tache:hover { border-color: var(--bord-fort); transform: translateY(-1px); }
.tache.fait { color: var(--doux); }
.tache.fait span { text-decoration: line-through; text-decoration-color: var(--tres-doux); }
.tache.source { opacity: .3; }
.tache.volante { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; cursor: grabbing; border-color: var(--accent); box-shadow: var(--ombre), var(--lueur); transition: none; }
.emplacement { border: 2px dashed color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 11px; background: var(--accent-doux); }
.kanban.glisse, .kanban.glisse * { cursor: grabbing; }
.colonne-vide { font-size: 12.5px; color: var(--tres-doux); text-align: center; padding: 12px 8px; border: 1px dashed var(--bord-fort); border-radius: 11px; }
.kanban.glisse .colonne-vide { display: none; }
.ajout-tache input { padding: 8px 10px; }

/* ---------- Skills et documentation */
.barre-recherche { display: flex; align-items: center; gap: 10px; background: var(--panneau); border: 1px solid var(--bord-fort); border-radius: var(--rayon); padding: 3px 12px 3px 14px; margin-bottom: 18px; transition: border-color .15s, box-shadow .15s; }
.barre-recherche:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-doux); }
.barre-recherche > .ic { color: var(--doux); width: 18px; height: 18px; }
.barre-recherche input { border: 0; background: none; box-shadow: none; font-size: 15px; padding: 9px 0; }
.barre-recherche input:focus { box-shadow: none; }
.barre-recherche .etiquette { white-space: nowrap; }
.description-skill { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.doc { display: grid; grid-template-columns: 210px minmax(0, 840px); gap: 32px; justify-content: center; align-items: start; }
.doc:not(:has(.doc-sommaire)) { grid-template-columns: minmax(0, 880px); }
.doc-sommaire { position: sticky; top: 0; max-height: calc(100dvh - 130px); overflow: auto; display: flex; flex-direction: column; gap: 1px; font-size: 13px; padding-top: 6px; }
.doc-sommaire a { color: var(--doux); padding: 4px 8px; border-radius: 6px; line-height: 1.35; }
.doc-sommaire a:hover { color: var(--texte); background: var(--panneau2); text-decoration: none; }
.doc-sommaire a.sous-titre { padding-left: 18px; font-size: 12.5px; }
.doc-article { padding: clamp(18px, 4vw, 44px); }
.doc-texte { font-size: 15px; line-height: 1.7; }
.doc-texte h1 { font-size: 28px; } .doc-texte h2 { font-size: 20px; margin-top: 1.8em; padding-top: .4em; } .doc-texte h3 { font-size: 16px; }
.doc-texte img { max-width: 100%; height: auto; border-radius: 10px; }
@media (max-width: 1000px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-sommaire { display: none; } }

/* ---------- Texte Markdown */
.markdown { line-height: 1.65; overflow-wrap: anywhere; }
.markdown h1, .markdown h2, .markdown h3 { margin: 1.2em 0 .5em; }
.markdown > :first-child { margin-top: 0; }
.markdown table { margin: 10px 0; display: block; overflow-x: auto; }
.markdown code { background: var(--panneau2); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--bord); }
.markdown pre { overflow-x: auto; white-space: pre; }
.markdown pre code { background: none; padding: 0; border: 0; }
.markdown blockquote { border-left: 3px solid var(--accent); margin: 0; padding: 2px 0 2px 14px; color: var(--doux); }
.markdown img { max-width: 100%; }

/* ---------- Sessions (terminaux) */
.sessions { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; height: calc(100dvh - var(--barre-h) - 190px); min-height: 380px; }
.liste-sessions { overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.session { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 10px 12px; cursor: pointer; transition: border-color .15s; }
.session:hover { border-color: var(--bord-fort); }
.session.actif { border-color: var(--accent); box-shadow: var(--lueur); }
.session pre { font-size: 10.5px; max-height: 64px; overflow: hidden; margin-top: 6px; padding: 6px; color: var(--doux); }
.terminal { background: #090b10; border: 1px solid var(--bord); border-radius: var(--rayon); padding: 6px; min-height: 0; display: flex; flex-direction: column; }
body.clair .terminal { background: #fff; }
.terminal .xterm-zone { flex: 1; min-height: 0; }
.terminal .barre { display: flex; align-items: center; gap: 8px; padding: 4px 6px 8px; color: var(--doux); font-size: 12px; }
body.seul .app { grid-template-columns: 1fr; } body.seul .nav, body.seul .barre-app, body.seul .barre-mobile { display: none; } body.seul .contenu { padding: 0; }
body.seul .terminal { height: 100vh; border-radius: 0; border: 0; }

/* ---------- Fichiers */
.fichiers { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: 14px; }
@media (max-width: 1000px) { .fichiers { grid-template-columns: minmax(0, 1fr); } }
.fil { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-bottom: 10px; font-size: 13px; }
.fil a { padding: 2px 6px; border-radius: 6px; } .fil a:hover { background: var(--panneau2); text-decoration: none; }
.item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.item:hover { background: var(--panneau2); } .item.actif { background: var(--accent-doux); box-shadow: inset 2px 0 0 var(--accent); }
.item .taille { margin-left: auto; color: var(--doux); font-size: 11px; }
.apercu img, .apercu video { max-width: 100%; max-height: 70vh; border-radius: 8px; display: block; }
.apercu iframe { width: 100%; height: 75vh; border: 0; background: #fff; border-radius: 8px; }
.depot { border: 2px dashed var(--bord-fort); border-radius: var(--rayon); padding: 12px; text-align: center; color: var(--doux); font-size: 12.5px; margin-top: 10px; }
.depot.survol { border-color: var(--accent); color: var(--texte); background: var(--accent-doux); }

/* ---------- Fenêtre modale et notifications */
.voile { position: fixed; inset: 0; background: rgba(5, 7, 12, .55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; animation: entree .18s ease-out; }
.modale { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); padding: 22px; width: min(640px, 100%); max-height: 90vh; overflow: auto; box-shadow: var(--ombre); animation: pop .2s ease-out; }
.modale h2 { font-size: 17px; }
.modale .actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 96; }
.toast { background: var(--panneau); border: 1px solid var(--bord); padding: 11px 14px 11px 40px; border-radius: var(--rayon); box-shadow: var(--ombre); max-width: 420px; position: relative; animation: pop .2s ease-out; }
.toast::before { content: ''; position: absolute; left: 15px; top: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.toast.erreur::before { background: var(--erreur); box-shadow: 0 0 10px var(--erreur); }

/* Masquage des données (pour filmer ou partager l'écran) */
body.masque .s { filter: blur(6px); transition: filter .2s; }

/* Connexion et première configuration */
.connexion { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(700px 400px at 50% 0%, var(--halo), transparent 70%); overflow: auto; }
body:has(.connexion) { overflow: auto; }
.connexion .carte { width: min(390px, 100%); padding: 30px; box-shadow: var(--ombre); }

/* ---------- Conversations en direct */
.nav .pastille.bleue, .sous-nav .pastille.bleue { background: var(--bleu); }
.conv { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; height: calc(100dvh - var(--barre-h) - 32px); }
.conv-zone { display: flex; flex-direction: column; min-height: 0; min-width: 0; gap: 8px; }
.conv-zone > .conv-main { flex: 1; }
.conv-liste { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.conv-liste .defile { overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding-right: 2px; }
.conv-groupe { font-size: 11px; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; margin: 10px 4px 2px; }
.conv-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.conv-item:hover { background: var(--panneau2); }
.conv-item.actif { background: var(--accent-doux); border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.conv-item .titre { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.conv-item .sous { font-size: 12px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-main { display: flex; flex-direction: column; min-height: 0; background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--reflet), var(--ombre-douce); overflow: hidden; }
.conv-tete { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--bord); position: relative; min-height: 52px; }
.conv-tete h2 { margin: 0; font-size: 14.5px; cursor: text; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-tete select { width: auto; padding: 4px 8px; font-size: 12.5px; flex: none; }
.titre-conv { min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.sous-titre-conv { font-size: 12px; color: var(--doux); display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.jauge-conv .mini-jauge { width: 34px; }
.reglages-conv { position: absolute; right: 10px; top: calc(100% - 4px); z-index: 40; width: min(340px, calc(100% - 20px)); background: var(--panneau); border: 1px solid var(--bord-fort); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 8px; display: flex; flex-direction: column; gap: 2px; animation: pop .14s ease-out; }
.reglages-conv .reglage { display: flex; align-items: center; gap: 10px; padding: 4px 8px; min-height: 34px; }
.reglages-conv .reglage .etiquette { width: 74px; flex: none; }
.reglages-conv .reglage select { flex: 1; min-width: 0; }
.reglages-conv hr { border: 0; border-top: 1px solid var(--bord); margin: 4px 0; width: 100%; }
.reglages-conv button.discret { justify-content: flex-start; width: 100%; white-space: normal; text-align: left; color: var(--texte); padding: 7px 8px; }
.reglages-conv button.discret .ic { color: var(--doux); }
.reglages-conv button.discret.danger, .reglages-conv button.discret.danger .ic { color: var(--erreur); }
.mini-jauge { width: 70px; height: 6px; background: var(--panneau2); border-radius: 99px; overflow: hidden; display: inline-block; vertical-align: middle; }
.mini-jauge > div { height: 100%; background: var(--bleu); }
.mini-jauge > div.haut { background: var(--attention); } .mini-jauge > div.tres { background: var(--erreur); }
.fil-conv { flex: 1; overflow-y: auto; padding: 18px max(18px, calc((100% - 860px) / 2)) 8px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.bulle-moi { align-self: flex-end; max-width: 78%; background: var(--panneau2); border: 1px solid var(--bord); padding: 9px 13px; border-radius: var(--rayon); white-space: pre-wrap; overflow-wrap: anywhere; }
.bulle-moi .glisse { display: block; font-size: 11px; color: var(--doux); margin-top: 4px; }
.reponse { max-width: 92%; }
.reponse.brouillon { opacity: .85; }
.reponse.brouillon::after { content: '▍'; color: var(--accent); animation: pulse 1s infinite; }
.carte-outil { border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: transparent; max-width: 92%; overflow: hidden; }
.carte-outil > .tete { display: flex; align-items: center; gap: 8px; padding: 5px 10px; cursor: pointer; font-size: 13px; }
.carte-outil > .tete:hover { background: var(--panneau2); }
.carte-outil.ouverte { background: var(--panneau2); }
.carte-outil > .tete .nom { font-weight: 600; } .carte-outil > .tete .resume { color: var(--doux); font-family: var(--mono); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.carte-outil > .tete .statut { margin-left: auto; font-size: 12px; }
.carte-outil > .corps { border-top: 1px solid var(--bord); padding: 8px 11px; display: none; }
.carte-outil.ouverte > .corps { display: block; }
.carte-outil.erreur { border-color: color-mix(in srgb, var(--erreur) 50%, var(--bord)); }
.carte-outil pre { background: var(--fond); max-height: 340px; overflow: auto; font-size: 12px; }
.diff { font-family: var(--mono); font-size: 12px; background: var(--fond); border-radius: 6px; overflow: auto; max-height: 380px; }
.diff div { padding: 0 8px; white-space: pre-wrap; word-break: break-word; }
.diff .moins { background: color-mix(in srgb, var(--erreur) 13%, transparent); color: var(--erreur); } .diff .plus { background: color-mix(in srgb, var(--ok) 13%, transparent); color: var(--ok); }
body.clair .diff .moins { color: #b42318; } body.clair .diff .plus { color: #067647; }
.todo { list-style: none; padding: 0; margin: 4px 0; } .todo li { padding: 2px 0; } .todo li.fait { color: var(--doux); text-decoration: line-through; } .todo li.encours { color: var(--accent2); }
.ligne-fin { font-size: 12px; color: var(--doux); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.note { font-size: 13px; padding: 8px 12px; border-radius: 8px; background: var(--panneau2); border-left: 3px solid var(--bleu); max-width: 92%; }
.note.erreur { border-left-color: var(--erreur); } .note.attention { border-left-color: var(--attention); }
.compositeur { border-top: 1px solid var(--bord); padding: 10px 12px; }
.compositeur textarea { font-family: inherit; font-size: 14px; resize: none; min-height: 44px; max-height: 240px; border-radius: var(--rayon); }
.compositeur .pieces { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.compositeur .actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.compositeur .actions .aide { margin: 0 auto 0 0; }
.compositeur.survol { outline: 2px dashed var(--accent); outline-offset: -4px; }
.travail { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--bleu); }
.accueil-conv { max-width: 720px; margin: auto; padding: 30px 20px; width: 100%; }
.accueil-conv h2 { font-size: 22px; }
.options-conv { display: flex; gap: 12px; align-items: flex-end; }
.options-conv label { margin-top: 6px; }
.options-conv select { min-width: 150px; }
.plus-options { margin-top: 10px; color: var(--doux); font-size: 13px; }
.plus-options summary { cursor: pointer; width: fit-content; }
@media (max-width: 820px) { .options-conv { flex-direction: column; align-items: stretch; gap: 0; } }

.compositeur { border-top: 1px solid var(--bord); padding: 12px 14px; background: color-mix(in srgb, var(--panneau2) 40%, var(--panneau)); }
.compositeur textarea:focus { box-shadow: none; }

/* ---------- Palette de commandes */
.palette { position: fixed; inset: 0; background: rgba(5, 7, 12, .5); backdrop-filter: blur(4px); z-index: 70; display: flex; justify-content: center; padding-top: 12vh; animation: entree .15s ease-out; }
.palette > div { width: min(640px, 92vw); background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); box-shadow: var(--ombre); overflow: hidden; height: fit-content; animation: pop .18s ease-out; }
.palette input { border: 0; border-bottom: 1px solid var(--bord); border-radius: 0; padding: 16px 18px; font-size: 16px; background: transparent; box-shadow: none; }
.palette input:focus { outline: none; box-shadow: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
.palette li { padding: 9px 11px; border-radius: 9px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.palette li.actif { background: var(--accent-doux); }
.palette li .etiquette { margin-left: auto; }

/* ---------- Téléphone */
@media (max-width: 820px) {
  .app, .app[data-nav] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .app[data-nav] .nav {
    display: flex; position: fixed; inset: 0 auto 0 0; width: min(86vw, 320px); z-index: 80; flex-direction: column; align-items: stretch;
    padding: max(14px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); border-right: 1px solid var(--bord); border-bottom: 0;
    transform: translateX(-105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--ombre);
  }
  body.nav-ouverte .app[data-nav] .nav { transform: none; }
  .app[data-nav] .nav .lib, .app[data-nav] .logo b, .app[data-nav] .etat-doctor .texte { display: inline; }
  .app[data-nav] .nav-groupe-titre { display: flex; text-transform: uppercase; font-size: 11px; letter-spacing: .08em; font-weight: 600; color: var(--tres-doux); padding: 12px 10px 5px; }
  .app[data-nav] .nav-groupe > .nav-liens { display: flex; position: static; box-shadow: none; border: 0; padding: 0; min-width: 0; background: none; }
  .app[data-nav] .nav-groupe.ferme > .nav-liens { display: none; }
  .app[data-nav] .nav-groupe { border: 0; margin: 0; padding: 0; align-items: stretch; }
  .app[data-nav] .nav-defile { flex-direction: column; align-items: stretch; overflow-y: auto; }
  .app[data-nav] .nav-defile > .nav-liens { flex-direction: column; }
  .app[data-nav] .nav a { width: auto; height: auto; padding: 10px 10px; justify-content: flex-start; font-size: 15px; }
  .app[data-nav] .nav a.actif::before { left: -12px; right: auto; top: 9px; bottom: 9px; width: 3px; height: auto; }
  .app[data-nav] .nav a .pastille { position: static; }
  .app[data-nav] .nav-nouveau { width: 100%; height: auto; padding: 10px; order: 0; }
  .app[data-nav] .nav-tete { flex-direction: row; }
  .app[data-nav] .etat-doctor { width: auto; height: auto; padding: 8px 10px; justify-content: flex-start; order: 0; }
  #btReplier, .poignee, .recherche span, .recherche kbd, #btMenu, .app[data-nav=cache] #btMenu { display: none; }
  .recherche { min-width: 0; width: 34px; height: 34px; padding: 0; justify-content: center; background: none; border-color: transparent; }
  .barre-app { padding-top: max(9px, env(safe-area-inset-top)); min-height: 52px; }
  .barre-mobile {
    display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--bord); background: var(--verre);
    backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); padding: 6px 4px max(8px, env(safe-area-inset-bottom)); z-index: 40;
  }
  .barre-mobile a, .barre-mobile button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--doux); background: none; border: 0; box-shadow: none; padding: 4px 0; position: relative; text-decoration: none; border-radius: 10px; }
  .barre-mobile .ic { width: 22px; height: 22px; }
  .barre-mobile .actif { color: var(--accent); }

  .barre-mobile .pastille { position: absolute; top: 0; left: calc(50% + 5px); min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; margin: 0; }
  .contenu { padding: 18px 14px 28px; }
  .contenu[data-page=conv] { padding: 8px; }
  h1 { font-size: 23px; } .accueil h1 { font-size: 26px; }
  .entete { margin-bottom: 16px; } .entete .sous { font-size: 13.5px; }
  .conv { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 52px - 66px); }
  .conv.avec-id .conv-liste { display: none; } .conv:not(.avec-id) .conv-zone { display: none; }
  .sessions, .fichiers { grid-template-columns: minmax(0, 1fr); height: auto; }
  .kanban { grid-template-columns: repeat(4, 84%); scroll-snap-type: x mandatory; margin: 0 -14px; padding: 0 14px 8px; scroll-padding: 14px; }
  .colonne { scroll-snap-align: start; }
  .bulle-moi, .reponse, .carte-outil, .note { max-width: 100%; }
  .conv-tete { gap: 4px; padding: 6px 8px; }
  .conv-tete select { max-width: 104px; }
  .fil-conv { padding: 12px 10px 6px; }
  .toasts { bottom: calc(76px + env(safe-area-inset-bottom)); left: 12px; right: 12px; }
  .toast { max-width: none; }
  .ligne-decision { flex-wrap: wrap; padding: 12px 14px; }
  .ligne-decision > .ligne { width: 100%; justify-content: flex-end; }
  .carte-liste > .carte-tete, .carte-liste .evt { padding-inline: 14px; }
  .bande-kpi { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 12px; gap: 10px; } .kpi-ic { width: 32px; height: 32px; }
  .modale { padding: 18px; border-radius: var(--rayon); }
  .menu-nouveau { left: 12px !important; right: 12px; width: auto; }
}
.fil-conv > * { flex-shrink: 0; }
[hidden] { display: none !important; }
.contenu, .conv-main, .conv-liste { min-width: 0; }
/* Connexions */
.statut-connexion { font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.statut-connexion.erreur { color: var(--erreur); } .statut-connexion.ok { color: var(--ok); } .statut-connexion.attention { color: var(--attention); }
.statut-ligne { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.cle-connexion input { min-width: 0; flex: 1; }
.barres-ventes { display: flex; gap: 6px; align-items: flex-end; height: 66px; }
.barres-ventes > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.barres-ventes > div > div { width: 100%; background: var(--bleu); border-radius: 3px 3px 0 0; opacity: .8; }
.barres-ventes span { font-size: 10px; color: var(--doux); }
button.petit.actif { border-color: var(--accent); color: var(--accent); }

.diag td { vertical-align: top; padding: 6px 8px 6px 0; }
.diag .conseil { color: var(--doux); font-size: 12px; margin-top: 2px; }

/* Assistant de première configuration : page à part (sans le menu), colonne centrée, étapes à l'horizontale */
body.mode-assistant .app { grid-template-columns: minmax(0, 1fr); }
body.mode-assistant .nav, body.mode-assistant .barre-app, body.mode-assistant .barre-mobile, body.mode-assistant .voile-nav, body.mode-assistant .poignee { display: none !important; }
body.mode-assistant .contenu { padding: 0; }
.assistant { max-width: 720px; margin: 0 auto; padding: clamp(18px, 4vh, 40px) 16px 64px; }
.assistant-haut { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(18px, 4vh, 34px); }
.assistant-haut .logo { padding: 0; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.assistant-barre { list-style: none; display: flex; padding: 0; margin: 0 0 22px; }
.assistant-barre li { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.assistant-barre li + li::before { content: ''; position: absolute; top: 15px; right: calc(50% + 19px); width: calc(100% - 38px); height: 2px; border-radius: 2px; background: var(--bord-fort); transition: background .3s; }
.assistant-barre li.faite::before, .assistant-barre li.courante::before { background: var(--accent); }
.pastille-etape { width: 32px; height: 32px; padding: 0; border-radius: 50%; justify-content: center; font-size: 13px; font-weight: 600; background: var(--panneau); border: 2px solid var(--bord-fort); color: var(--doux); box-shadow: none; position: relative; z-index: 1; }
.pastille-etape:disabled { opacity: 1; cursor: default; }
.pastille-etape .ic { width: 16px; height: 16px; }
li.faite .pastille-etape { border-color: var(--accent); background: var(--accent-doux); color: var(--accent2); }
li.courante .pastille-etape { border-color: var(--accent); background: var(--accent); color: var(--sur-accent); box-shadow: 0 0 0 5px var(--accent-doux); }
.assistant-barre .nom { font-size: 12.5px; color: var(--doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.assistant-barre li.courante .nom { color: var(--texte); font-weight: 600; }
.assistant-barre .facultatif { font-size: 10.5px; color: var(--tres-doux); margin-top: -4px; }
.assistant-carte-principale { background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); padding: clamp(20px, 4vw, 32px); box-shadow: var(--reflet), var(--ombre-douce); }
.assistant-entete { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.assistant-icone { flex: none; width: 46px; height: 46px; border-radius: var(--rayon); display: grid; place-items: center; background: var(--accent-doux); color: var(--accent2); }
.assistant-icone .ic { width: 22px; height: 22px; }
.assistant-compteur { margin: 0 0 4px; font-size: 12.5px; font-weight: 600; color: var(--accent2); display: flex; align-items: center; gap: 8px; }
.badge-facultatif { font-size: 11px; font-weight: 500; color: var(--doux); border: 1px solid var(--bord-fort); border-radius: 99px; padding: 1px 8px; }
.assistant-entete h1 { font-size: clamp(20px, 3vw, 25px); margin: 0 0 6px; letter-spacing: -.015em; line-height: 1.2; }
.assistant-entete .sous { margin: 0; color: var(--doux); line-height: 1.55; }
.assistant-corps { display: flex; flex-direction: column; gap: 18px; }
.assistant-bloc-titre { font-weight: 600; font-size: 13.5px; margin-bottom: 8px; }
.assistant-bloc .aide { margin: 6px 0 0; }
.assistant-etapes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.assistant-etapes li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.assistant-etapes .num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--accent2); background: var(--accent-doux); margin-top: 1px; }
.assistant-etapes li > div { min-width: 0; flex: 1; }
.assistant-statut { display: flex; flex-direction: column; gap: 8px; }
.assistant-ligne { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--panneau2); line-height: 1.5; }
.assistant-ligne .ic { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--tres-doux); }
.assistant-ligne.ok .ic { color: var(--ok); } .assistant-ligne.erreur .ic { color: var(--erreur); }
.assistant-import { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.assistant-import .ic { width: 15px; height: 15px; }
.assistant-pied { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--bord); padding-top: 18px; margin-top: 6px; }
button.discret, .bouton.discret { background: transparent; border-color: transparent; box-shadow: none; color: var(--doux); }
button.discret:hover, .bouton.discret:hover { color: var(--texte); background: var(--panneau2); }
.assistant-recap { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.assistant-recap li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--bord); }
.assistant-recap li:last-child { border-bottom: 0; }
.assistant-recap .ic { width: 18px; height: 18px; color: var(--tres-doux); }
.assistant-recap li.fait .ic { color: var(--ok); }
.assistant-recap .quoi { font-weight: 500; }
.assistant-recap .etiquette { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.assistant-routine { align-items: flex-start; gap: 10px; line-height: 1.5; }
.assistant-suite { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.assistant-carte { flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; height: auto; white-space: normal; text-align: left; }
.assistant-carte .ic { width: 20px; height: 20px; color: var(--accent2); margin-bottom: 4px; }
@media (max-width: 640px) {
  .assistant-barre .nom, .assistant-barre .facultatif { display: none; }
  .assistant-barre li.courante .nom { display: block; position: absolute; top: 40px; }
  .assistant-barre { margin-bottom: 40px; }
  .assistant-entete { flex-direction: column; gap: 12px; }
  .assistant-recap li { grid-template-columns: 20px minmax(0, 1fr) auto; }
  .assistant-recap .etiquette { grid-column: 2; max-width: none; }
}
.types-projet { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.types-projet button { flex-direction: column; padding: 16px 10px; font-size: 14px; height: auto; justify-content: center; white-space: normal; text-align: center; }
.types-projet button .icone { font-size: 26px; color: var(--accent); }
.types-projet button.choisi { border-color: var(--accent); background: var(--accent-doux); box-shadow: var(--lueur); }
.puce.nonlu { background: var(--ok); }
.nav .pastille.verte { background: var(--ok); color: #0b0c0e; }
.nav #nbTravail:not([hidden]) + .pastille.verte { margin-left: 4px; }
.conv-item.nonlu .titre { font-weight: 700; }
.filtres-conv button.actif { border-color: var(--accent); color: var(--texte); }
.onglets-conv { display: flex; gap: 4px; overflow-x: auto; flex: none; }
.onglet-conv { display: flex; align-items: center; gap: 6px; max-width: 220px; padding: 5px 6px 5px 10px; border: 1px solid var(--bord); border-radius: 8px; background: var(--panneau2); cursor: pointer; font-size: 13px; color: var(--doux); flex: none; }
.onglet-conv.actif { background: var(--panneau); color: var(--texte); border-color: var(--accent); }
.onglet-conv .fermer { padding: 0 6px; border: 0; background: none; font-size: 15px; line-height: 1; }
.colonnes-conv { display: flex; gap: 10px; overflow-x: auto; flex: 1; min-height: 0; padding-bottom: 4px; }
.colonne-conv { flex: none; min-width: 360px; max-width: 2000px; display: flex; resize: horizontal; overflow: hidden; }
.colonne-conv > .conv-main { flex: 1; min-width: 0; }
.colonne-conv.courante > .conv-main { border-color: var(--accent); }
.actions-conv { margin-left: auto; display: flex; gap: 2px; opacity: 0; transition: opacity .15s; flex: none; }
.conv-item:hover .actions-conv, .actions-conv .etoile.active { opacity: 1; }
@media (hover: none) { .actions-conv { opacity: 1; } }
.actions-conv button { padding: 0 4px; border: 0; background: none; font-size: 13px; color: var(--doux); }
.actions-conv .etoile.active { color: var(--attention); }
.barre-selection { padding: 6px; border: 1px solid var(--accent); border-radius: 8px; }
.filtres-conv, .outils-conv { flex-wrap: nowrap; gap: 4px; }
.filtres-conv button { padding: 3px 7px; }
.bulle-moi, .reponse { position: relative; }
.depuis-ici { position: absolute; top: 2px; right: 2px; padding: 0 6px; font-size: 12px; opacity: 0; border-color: transparent; background: none; }
.bulle-moi:hover .depuis-ici, .reponse:hover .depuis-ici { opacity: .8; }
@media (hover: none) { .depuis-ici { display: none; } }
.dossier-conv { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compositeur { position: relative; }
.menu-slash { position: absolute; bottom: 100%; left: 10px; right: 10px; max-height: 300px; overflow-y: auto; background: var(--panneau); border: 1px solid var(--bord); border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.35); padding: 4px; z-index: 5; }
.menu-slash .groupe { font-size: 11px; color: var(--doux); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px 2px; }
.menu-slash .choix { padding: 6px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.menu-slash .choix.actif, .menu-slash .choix:hover { background: var(--panneau2); }
.file-attente { border: 1px dashed var(--bord); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; display: flex; flex-direction: column; gap: 4px; }
.msg-file { display: flex; align-items: center; gap: 6px; }
.msg-file .tronque { flex: 1; min-width: 0; }
.revenir-ici { position: absolute; top: 2px; right: 28px; padding: 0 6px; font-size: 12px; opacity: 0; border-color: transparent; background: none; }
.bulle-moi:hover .revenir-ici { opacity: .8; }
@media (hover: none) { .revenir-ici { opacity: .6; } }
.panneau-code { width: min(900px, 86vw); }
.bloc-diff { margin-top: 8px; max-height: 50vh; overflow: auto; }
.diff .hunk { color: var(--bleu); }
.modale:has(.panneau-code) { max-width: 940px; width: auto; }
.cadre-apercu { width: 100%; height: 70vh; border: 1px solid var(--bord); border-radius: 8px; background: #fff; }
.tableau-csv th { position: sticky; top: 0; background: var(--panneau2); }
.tableau-csv td, .tableau-csv th { white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.fil-page { display: grid; grid-template-columns: 240px 1fr; gap: 14px; align-items: start; }
@media (max-width: 820px) { .fil-page { grid-template-columns: 1fr; } }
.fil-sources .src { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.fil-sources .src:hover { background: var(--panneau2); } .fil-sources .src.actif { background: var(--panneau2); box-shadow: inset 3px 0 0 var(--accent); }
.evt { display: flex; align-items: flex-start; gap: 10px; padding: 8px 4px; border-top: 1px solid var(--bord); }
.evt .niveau { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; }
.evt .corps-evt { flex: 1; min-width: 0; cursor: pointer; }
.evt .titre-evt { font-weight: 600; overflow-wrap: anywhere; }
.evt.lu .titre-evt { font-weight: 400; color: var(--doux); }
.evt .detail-evt { white-space: pre-wrap; max-height: 4.5em; overflow: hidden; }
.evt .actions-evt { display: flex; gap: 2px; flex: none; }
.fil-page > * { min-width: 0; }
.evt .detail-evt { overflow-wrap: anywhere; }
.issue-evt { font-size: 12px; color: var(--ok); margin-top: 4px; }
.boutons-evt { margin-top: 6px; }
/* Widgets à soi */
.w-chiffres { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.w-chiffres .chiffre { font-size: 24px; }
.w-liste { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.w-liste .puce { margin-top: 6px; flex-shrink: 0; }
.w-liste .ligne { align-items: flex-start; }
.w-ligne svg { width: 100%; height: 60px; display: block; }
.w-code { max-height: 300px; overflow: auto; font-size: 12px; }
.widget h3 { overflow-wrap: anywhere; }
.w-actions button { padding: 2px 7px; }
@media (min-width: 760px) { .widget.large { grid-column: span 2; } }
.widget > .ligne.entre { flex-wrap: nowrap; align-items: flex-start; }
.widget .w-actions { flex-shrink: 0; flex-wrap: nowrap; }
/* Pages à soi */
#navPages { display: contents; }

.cadre-page { width: 100%; border: 0; display: block; height: 400px; background: transparent; }

/* Infra */
.site-infra { padding: 12px 14px; }
.chaine { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.maillon { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--bord); border-radius: 99px; padding: 2px 10px; font-size: 13px; max-width: 100%; overflow-wrap: anywhere; }
.chaine .fleche { color: var(--doux); }

/* E-mail */
.puce-filtre { display: inline-block; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--bord); background: var(--panneau2); color: var(--doux); text-decoration: none; font-size: 13px; }
.puce-filtre.actif { color: var(--texte); border-color: var(--accent); }
.onglets-mail { gap: 6px; margin-bottom: 4px; }
.mail-deux { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 14px; align-items: start; }
.mail-liste { display: flex; flex-direction: column; border: 1px solid var(--bord); border-radius: 10px; overflow: hidden; max-height: calc(100vh - 230px); overflow-y: auto; }
.mail-ligne { display: block; padding: 10px 12px; border-bottom: 1px solid var(--bord); color: var(--texte); text-decoration: none; min-width: 0; }
.mail-ligne:hover { background: var(--panneau2); } .mail-ligne.actif { background: var(--panneau2); box-shadow: inset 3px 0 0 var(--accent); }
.mail-ligne .mail-de, .mail-ligne .mail-sujet, .mail-extrait { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mail-ligne .mail-de { font-weight: 500; } .mail-ligne.non-lu .mail-de, .mail-ligne.non-lu .mail-sujet { font-weight: 700; }
.mail-ligne.non-lu .mail-de::before { content: '● '; color: var(--accent); }
.mail-sujet { font-size: 14px; margin: 2px 0; }
.mail-lecture { min-width: 0; max-height: calc(100vh - 230px); overflow-y: auto; }
.mail-texte { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.mail-html { width: 100%; height: 60vh; border: 1px solid var(--bord); border-radius: 8px; background: #fff; }
.note-claude { background: var(--panneau2); border-left: 3px solid var(--accent); padding: 6px 10px; border-radius: 6px; font-size: 13px; }
.mobile-seul { display: none; }
@media (max-width: 820px) {
  .mail-deux { grid-template-columns: 1fr; }
  .mail-deux.ouvert .mail-liste { display: none; } .mail-deux:not(.ouvert) .mail-lecture { display: none; }
  .mail-liste, .mail-lecture { max-height: none; }
  .mobile-seul { display: inline; }
}

/* Navigateur */
.nav-page { display: grid; grid-template-columns: 260px 1fr; gap: 14px; align-items: start; }
.nav-profils .carte.actif { border-color: var(--accent); }
.nav-barre { gap: 6px; flex-wrap: nowrap; }
.nav-adresse { flex: 1; min-width: 0; font-family: var(--mono, monospace); font-size: 13px; }
.nav-cadre { position: relative; border: 2px solid var(--bord); border-radius: 8px; overflow: hidden; background: #fff; outline: none; line-height: 0; }
.nav-cadre.a-moi { border-color: var(--attention); }
.nav-cadre:focus.a-moi { box-shadow: 0 0 0 3px color-mix(in srgb, var(--attention) 35%, transparent); }
.nav-ecran { width: 100%; height: auto; display: block; cursor: default; user-select: none; aspect-ratio: 1280 / 800; }
.nav-cadre.a-moi .nav-ecran { cursor: pointer; }
.nav-voile { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; background: var(--panneau); color: var(--doux); line-height: 1.4; font-size: 14px; }
.nav-voile[hidden] { display: none; }
.nav-texte { flex: 1; min-width: 0; }
@media (max-width: 820px) {
  .nav-page { grid-template-columns: 1fr; }
  /* Un écran ouvert : il passe en premier, la liste des profils dessous */
  .nav-page.avec-ecran { display: flex; flex-direction: column-reverse; }
  .nav-barre { flex-wrap: wrap; }
  .nav-barre .nav-adresse { flex: 1 1 100%; order: 3; }
  .nav-barre > button.principal, .nav-barre > button:last-of-type { margin-left: auto; }
}

@media (max-width: 820px) { .col-desc { display: none; } }

/* Bureau : un seul fil, le compositeur en bas */
.carte.bureau { display: flex; flex-direction: column; padding: 0; height: calc(100dvh - var(--barre-h) - 230px); min-height: 360px; overflow: hidden; }
.carte.bureau .reponse.note { border-left-color: var(--accent); }
@media (max-width: 820px) { .carte.bureau { height: calc(100dvh - 52px - 66px - 200px); } }
.apercu-decision { margin-top: 10px; } .apercu-decision pre { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 320px; overflow: auto; }
/* Téléphone et compte rendu du soir */
.liste-simple { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.liste-simple li { padding: 6px 8px; border: 1px solid var(--bord); border-radius: 8px; }
.apercu-soir { border: 1px solid var(--bord); border-radius: 10px; padding: 4px 14px; max-height: 420px; overflow: auto; font-size: 13px; }
.apercu-soir h1 { font-size: 17px; } .apercu-soir h2 { font-size: 14px; }
/* Cockpit Remote Control */
.cockpit-projet { border-top: 1px solid var(--bord); padding: 8px 0; }
.cockpit-projet:first-of-type { margin-top: 8px; }
.erreur-cockpit { color: var(--erreur); font-size: 13px; }
.erreur-cockpit pre { color: var(--texte); }
pre.qr { background: #fff; color: #000; display: inline-block; line-height: 1; font-size: 14px; padding: 12px; border-radius: 8px; letter-spacing: 0; margin: 8px 0 0; }
.liste-simple li.ligne { flex-wrap: nowrap; align-items: flex-start; }
.badge-nouveau { font-size: 11px; color: var(--ok); border: 1px solid var(--ok); border-radius: 6px; padding: 0 5px; margin-right: 6px; }
.evt .icone-evt { color: var(--doux); margin-right: 2px; }
.evt .icone-evt .ic { width: 15px; height: 15px; }
.evt { padding: 10px 4px; }
.carte-outil > .tete .ic { color: var(--doux); }
.onglet-conv.actif { border-color: var(--bord-fort); }
/* Une seule conversation ouverte, et c'est elle qu'on regarde : la barre d'onglets ne sert à rien. */
.onglets-conv:has(.onglet-conv.actif):not(:has(.onglet-conv + .onglet-conv)) { display: none; }
.colonne-conv.courante > .conv-main { box-shadow: var(--lueur); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.accueil-conv .anim-vide { width: 150px; height: 112px; margin-bottom: 8px; }
.doc-texte td, .doc-texte th { overflow-wrap: normal; word-break: normal; }
.doc-texte td:first-child { min-width: 130px; font-weight: 600; }
.nav-groupe-titre .lib { text-align: left; }
.carte-tete .pastille { margin-left: 0; }
/* Journal d'activité (Serveur → Journal) */
.journal-liste { display: flex; flex-direction: column; background: var(--panneau); border: 1px solid var(--bord); border-radius: var(--rayon); overflow: hidden; }
.evt-journal { border-top: 1px solid var(--bord); }
.evt-journal:first-child { border-top: 0; }
.evt-journal summary { display: flex; align-items: baseline; gap: 10px; padding: 8px 14px; list-style: none; color: var(--texte); font-size: 13px; }
.evt-journal summary::-webkit-details-marker { display: none; }
.evt-journal summary:hover { background: var(--panneau2); }
.evt-journal .heure { white-space: nowrap; flex: none; }
.evt-journal .badge { flex: none; }
.evt-journal .msg { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.evt-journal .puce-niveau { width: 8px; height: 8px; border-radius: 50%; background: var(--tres-doux); flex: none; align-self: center; }
.evt-journal.attention .puce-niveau { background: var(--attention); } .evt-journal.erreur .puce-niveau { background: var(--erreur); box-shadow: 0 0 8px -1px var(--erreur); }
.evt-journal.erreur .msg { color: var(--erreur); }
.evt-journal pre { margin: 0 14px 10px; font-size: 12px; max-height: 320px; overflow: auto; }
@media (max-width: 820px) { .evt-journal summary { flex-wrap: wrap; gap: 4px 8px; } .evt-journal .msg { flex-basis: 100%; } }
/* Autorisation demandée par Claude Code (carte d'outil ou note d'une conversation) */
.bloc-autorisation { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding: 12px 14px; border-radius: 11px; border: 1px solid color-mix(in srgb, var(--attention) 45%, var(--bord)); background: color-mix(in srgb, var(--attention) 8%, var(--panneau)); }
.carte-outil.a-autoriser { border-color: color-mix(in srgb, var(--attention) 45%, var(--bord)); }
.carte-outil.a-autoriser > .corps { display: block; }

/* Visite guidée : voile sombre percé autour de l'élément expliqué, cadre lumineux, bulle d'explication */
.visite { position: fixed; inset: 0; z-index: 1000; }
.visite-trou { position: fixed; border-radius: var(--rayon); pointer-events: none; box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px var(--accent-doux), 0 0 0 200vmax rgba(5, 7, 12, .66); transition: left .28s cubic-bezier(.2, .8, .2, 1), top .28s cubic-bezier(.2, .8, .2, 1), width .28s cubic-bezier(.2, .8, .2, 1), height .28s cubic-bezier(.2, .8, .2, 1); }
.visite.sans-cible .visite-trou { box-shadow: 0 0 0 200vmax rgba(5, 7, 12, .66); }
.visite-bulle { position: fixed; background: var(--panneau); border: 1px solid var(--bord-fort); border-radius: var(--rayon); padding: 14px 16px 14px 18px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55); transition: left .28s cubic-bezier(.2, .8, .2, 1), top .28s cubic-bezier(.2, .8, .2, 1); }
.visite-bulle.apparait { animation: entree .3s cubic-bezier(.2, .8, .2, 1) both; }
.visite-compteur { margin: 0; font-size: 12px; font-weight: 600; color: var(--accent2); }
.visite-bulle h3 { margin: 2px 0 6px; font-size: 16px; }
.visite-texte { margin: 0 0 14px; color: var(--doux); line-height: 1.55; }
.visite-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.visite-points { display: flex; gap: 5px; align-items: center; }
.visite-points span { width: 6px; height: 6px; border-radius: 99px; background: var(--bord-fort); transition: width .25s, background .25s; }
.visite-points span.vu { background: var(--tres-doux); }
.visite-points span.actif { width: 18px; background: var(--accent); }
.visite-bulle .icone-seule { padding: 4px; }
@media (prefers-reduced-motion: reduce) { .visite-trou, .visite-bulle { transition: none; } .visite-bulle.apparait { animation: none; } }

.puce.attente { background: var(--attention); animation: none; }

/* ---------- Aujourd'hui : demande, « depuis hier » ; menu réduit aux pages configurées */
.demande { display: flex; gap: 8px; margin: -6px 0 20px; }
.demande .champ-demande { flex: 1; padding: 11px 14px; font-size: 14.5px; }
.grille.nuit { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; }
.nuit-projet { display: flex; flex-direction: column; gap: 4px; }
.rapport-nuit { margin-top: 8px; } .rapport-nuit summary { cursor: pointer; color: var(--doux); font-size: 12.5px; width: fit-content; }
.rapport-nuit > div { max-height: 320px; overflow: auto; margin-top: 6px; }
.ligne-nuit { display: flex; align-items: center; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: var(--rayon-petit); color: var(--texte); font-size: 13.5px; }
.ligne-nuit:hover { background: var(--panneau2); text-decoration: none; }
.ligne-nuit .ic { color: var(--doux); } .ligne-nuit.accent, .ligne-nuit.accent .ic { color: var(--accent2); }
.tronque { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.appris-nuit { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--bord); display: flex; flex-direction: column; gap: 3px; }
body.sans-email [data-module=email], body.sans-agents [data-module=agents], body.sans-navigateur [data-module=navigateur] { display: none !important; }
.nav-plus { color: var(--tres-doux) !important; } body:not(.pages-masquees) .nav-plus { display: none !important; }
.skills-projet { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 4px 18px; }
.skills-projet label { margin: 0; padding: 5px 0; color: var(--texte); font-size: 13.5px; align-items: flex-start; flex-wrap: nowrap; }
.skills-projet label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Demande d'accord : pas de cadre dans le cadre ; zone de saisie et conversation sur téléphone */
.bloc-autorisation.demande { border: 0; background: none; padding: 4px 0 2px; margin-top: 10px; gap: 10px; }
.choix-accord { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.choix-accord .toujours { color: var(--doux); padding-inline: 8px; white-space: normal; text-align: left; }
.carte-outil.a-autoriser { background: color-mix(in srgb, var(--attention) 6%, var(--panneau)); }
.sous-titre-conv .travail { flex: none; }
.compositeur .actions { flex-wrap: wrap; justify-content: flex-end; }
.compositeur .actions .aide { flex: 1 1 200px; min-width: 0; }
@media (max-width: 820px) {
  .contenu[data-page=conv] { padding: 0; }
  .contenu[data-page=conv] .conv-main { border: 0; border-radius: 0; }
  .contenu[data-page=conv] .conv-liste { padding: 10px; }
  .compositeur { padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .compositeur .actions { gap: 6px; margin-top: 6px; }
  .compositeur .actions .aide { flex: 1 0 100%; order: -1; font-size: 12px; }
  .sous-titre-conv.occupe .tronque { display: none; } /* pendant le travail, l'état prime sur le chemin */
  .compositeur .actions .aide:empty { display: none; }
  .compositeur .actions .aide.astuce { display: none; }
  .bloc-autorisation.demande { padding-bottom: 0; } .carte-outil.a-autoriser > .corps { padding-bottom: 6px; }
  .choix-accord > button:not(.toujours) { flex: 1; justify-content: center; padding-block: 10px; }
  .choix-accord .toujours { flex: 1 0 100%; justify-content: center; text-align: center; }
  .carte-outil > .tete .statut { flex: none; }
}

/* ---------- Zone de saisie : une boîte arrondie, trombone et micro dedans, un seul bouton rond (envoyer / arrêter) */
.compositeur { border-top: 0; background: none; padding: 6px max(14px, calc((100% - 860px) / 2)) 14px; }
.boite-saisie { border: 1px solid var(--bord-fort); border-radius: 18px; background: var(--panneau); padding: 10px 10px 8px 14px; cursor: text; transition: border-color .12s; }
.boite-saisie:focus-within { border-color: var(--tres-doux); }
.compositeur .boite-saisie textarea { border: 0; background: none; padding: 2px 0; min-height: 26px; border-radius: 0; box-shadow: none; display: block; font-size: 14.5px; line-height: 1.5; }
.compositeur .boite-saisie textarea:focus { border: 0; box-shadow: none; }
.compositeur .boite-saisie .actions { margin-top: 6px; gap: 2px; flex-wrap: nowrap; justify-content: flex-start; margin-left: -6px; }
.compositeur .boite-saisie .actions .aide { flex: 1; margin: 0 8px; text-align: right; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; order: 0; }
.bt-envoi { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; justify-content: center; background: var(--encre); border-color: var(--encre); color: var(--sur-encre); }
.bt-envoi:hover { background: var(--encre-fort); }
.bt-envoi:disabled { opacity: .3; }
.bt-envoi .ic { width: 17px; height: 17px; stroke-width: 2.4; }
.bt-envoi.stop .ic { width: 13px; height: 13px; fill: currentColor; }
.compositeur .pieces:empty { display: none; }
@media (max-width: 820px) {
  .compositeur { padding: 4px 10px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .compositeur .boite-saisie .actions .aide { display: block; flex: 1; order: 0; }
  .compositeur .boite-saisie .actions .aide.astuce { visibility: hidden; }
  .bt-envoi { width: 38px; height: 38px; }
}
button.bt-envoi, button.bt-envoi.icone-seule { color: var(--sur-encre); background: var(--encre); border-color: var(--encre); }
button.bt-envoi:hover { background: var(--encre-fort); color: var(--sur-encre); }

/* Fichiers cités par Claude : lien vers l'explorateur, aperçu des images et vidéos sous la réponse */
a.lien-fichier { text-decoration: none; }
a.lien-fichier code { color: var(--accent2); border-bottom: 1px dashed color-mix(in srgb, var(--accent2) 50%, transparent); cursor: pointer; }
a.lien-fichier:hover code { border-bottom-style: solid; }
.apercus-fichiers { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.apercus-fichiers figure { margin: 0; display: flex; flex-direction: column; gap: 4px; max-width: min(100%, 340px); }
.apercus-fichiers video, .apercus-fichiers img { max-width: 100%; max-height: 420px; border-radius: 10px; border: 1px solid var(--bord); background: #000; }

/* Conversation très longue : bandeau sous l'en-tête */
.alerte-contexte { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin: 0 0 8px; border: 1px solid color-mix(in srgb, var(--attention) 45%, transparent); background: color-mix(in srgb, var(--attention) 10%, transparent); border-radius: var(--rayon-petit); font-size: 13px; line-height: 1.45; }
.alerte-contexte[hidden] { display: none; }
.alerte-contexte > .ic { flex: none; width: 18px; height: 18px; color: var(--attention); }
.alerte-contexte > span { flex: 1; min-width: 0; }

/* ---------- Passation : où on est, et le résumé repris, replié */
.bandeau-passation { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--bord); background: var(--panneau2); font-size: 13px; color: var(--doux); }
.bandeau-passation[hidden] { display: none; }
.bandeau-passation > span { flex: 1; min-width: 0; }
.bandeau-passation > .ic { flex: none; }
.note.passation { border-left-color: var(--bord-fort); }
.note.passation summary { cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--doux); }
.note.passation .markdown { margin-top: 8px; }

/* ---------- Navigateur : boîtes de dialogue, menus de liste, choix de fichier, fenêtre surgissante */
.nav-surcouche { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .28); line-height: normal; }
.nav-surcouche[hidden] { display: none; }
.nav-boite { width: min(420px, 100%); max-height: 100%; overflow: auto; background: var(--panneau); color: var(--texte); border: 1px solid var(--bord-fort); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.nav-message { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.nav-options { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow: auto; }
.nav-options button { justify-content: flex-start; width: 100%; white-space: normal; text-align: left; color: var(--texte); }
.nav-options button.actif { background: var(--accent-doux); }
.nav-fenetre { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--bord); border-radius: var(--rayon-petit); background: var(--panneau2); font-size: 13px; color: var(--doux); }
.nav-fenetre[hidden] { display: none; }
.nav-fenetre > span { flex: 1; min-width: 0; }
