:root {
  /* charte Monceau Invest : _Outils/python/charte_mi.py */
  --marine: #254C83; --marine-clair: #5B82B8; --marine-pale: #A8C0DC; --ocre: #B0873B;
  --ink: #1C2833; --ink-2: #3a4757; --muted: #6B7785; --line: #E1E6EB; --bg: #F3F5F7; --card: #fff;
  --accent: #254C83; --accent-2: #254C83; --ok: #1d7a46; --warn: #8a6420; --danger: #b42318;
  --r: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 16px 40px; flex: 1; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--ink-2); }
h2.mt { margin-top: 22px; }
code { background: #eef1f5; padding: 1px 5px; border-radius: 4px; font-size: .92em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }

.top { background: var(--marine); color: #fff; display: flex; align-items: center; gap: 24px; padding: 0 20px 0 0; flex-wrap: wrap; min-height: 62px; border-bottom: 3px solid var(--ocre); }
.top a { color: #dfe7f1; }
.top nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.top nav a { padding: 6px 10px; border-radius: 6px; font-size: 14px; }
.top nav a.on, .top nav a:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.top .who { font-size: 13px; color: #d3deec; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { display: block; height: 62px; width: auto; }
.brand .app { font-size: 15px; font-weight: 500; letter-spacing: .02em; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.35); line-height: 22px; }
.login-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: -20px -20px 22px; padding: 26px 20px 18px; background: var(--marine); border-radius: var(--r) var(--r) 0 0; border-bottom: 3px solid var(--ocre); color: #fff; }
.login-head img { height: 80px; width: auto; display: block; }
.login-head span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #d3deec; }

.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px 22px; border-top: 1px solid var(--line); line-height: 1.6; }
body.centre main { display: grid; place-items: center; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card.flush { padding: 0; overflow-x: auto; }
.card.empty { text-align: center; padding: 40px 20px; }
.login { width: 100%; max-width: 380px; }
.msg { max-width: 520px; text-align: center; }
.head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.head.small { margin-bottom: 10px; } .head.small h2 { margin: 0; }

label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 12px; font-weight: 500; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #cfd5dd; border-radius: 7px; font: inherit; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid #b7d0ee; border-color: var(--accent-2); }
input.num { display: inline-block; width: 76px; margin: 0 4px; }
label.chk { display: flex; align-items: baseline; gap: 8px; font-weight: 400; color: var(--ink); }
label.chk input { width: auto; margin: 0; display: inline; }
.tree label.chk { padding: 5px 0; margin: 0; border-bottom: 1px dashed var(--line); }
.tree label.folder { padding-top: 10px; }
.tree label.indent { padding-left: 24px; }
.tree input:disabled + * , .tree label:has(input:disabled) { color: var(--muted); }

.btn { display: inline-block; padding: 8px 14px; border-radius: 7px; border: 1px solid #cfd5dd; background: #fff; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #f1f4f8; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #1c3b66; }
.btn.danger { color: var(--danger); border-color: #f1c4c0; }
.btn.danger:hover { background: #fdf0ef; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent-2); }
.btn.small { padding: 3px 8px; font-size: 12px; }
.login .btn { width: 100%; margin-top: 6px; padding: 10px; }

.err { color: var(--danger); font-size: 14px; }
.flash { background: #eaf3ec; border: 1px solid #c4e1cc; color: var(--ok); padding: 10px 14px; border-radius: 8px; }
.linkbox { border-color: #b7d0ee; background: #f4f8fd; }
.copy { display: flex; gap: 8px; margin: 12px 0; } .copy input { margin: 0; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.cols .card { margin-bottom: 0; }
.cols .actions { grid-column: 1 / -1; }
.cols + .cols, form.cols + .cols, .cols + .card { margin-top: 18px; }
form.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 8px; }
form.inline input:not([type=checkbox]):not(.num) { flex: 1; min-width: 160px; margin: 0; }
form.inline label { margin: 0; }
.filters { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
.filters label { margin: 0; min-width: 180px; flex: 1; }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.small td, .tbl.small th { padding: 6px 8px; }
.tbl tr.dim td { color: var(--muted); }
.ua { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: #eef1f5; color: var(--ink-2); margin: 1px 2px 1px 0; }
.tag.ok { background: #e6f4ea; color: var(--ok); } .tag.off { background: #fdecea; color: var(--danger); } .tag.dark { background: var(--ink); color: #fff; }
.ev { font-size: 12px; padding: 1px 7px; border-radius: 5px; background: #eef1f5; }
.ev-vue { background: #e7f0fb; color: var(--accent); } .ev-echec, .ev-refus, .ev-quota { background: #fdecea; color: var(--danger); }
.ev-connexion, .ev-lien { background: #e6f4ea; color: var(--ok); } .ev-admin { background: #fff4e0; color: var(--warn); }

.group { margin-bottom: 26px; }
.group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--marine); border-bottom: 2px solid var(--marine-pale); padding-bottom: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--accent-2); text-decoration: none; transform: translateY(-1px); }
.tile .ico { color: var(--ocre); }
.tile .t { font-weight: 600; line-height: 1.3; }
.tile .meta { font-size: 12px; color: var(--muted); }

@media (max-width: 760px) {
  .cols { grid-template-columns: 1fr; }
  .top { gap: 8px 12px; padding: 10px 14px; }
  .top .who { margin-left: auto; }
  .top nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .top nav a { white-space: nowrap; }
  .brand .app { display: none; }
  .brand img { height: 48px; }
}

/* v3 : formulaire identité, invitations */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tag.wait { background: #fbf3e4; color: var(--warn); }
.ev-activation { background: #e6f4ea; color: var(--ok); }
.right { text-align: right; }
form.mt, .mt { margin-top: 12px; }
.h-form { font-size: 19px; margin: 0 0 6px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.top .who a { color: #fff; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
[hidden] { display: none !important; }
fieldset.role { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 2px; margin: 4px 0 14px; }
fieldset.role legend { font-size: 13px; font-weight: 500; color: var(--ink-2); padding: 0 4px; }
fieldset.role label.chk { margin-bottom: 8px; }
.center { text-align: center; }
.pw-wrap { position: relative; display: block; margin-top: 4px; }
.pw-wrap input { margin-top: 0; padding-right: 42px; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: 6px; cursor: pointer; line-height: 0; border-radius: 6px; }
.pw-eye:hover, .pw-eye:focus-visible { color: var(--marine); background: #eef2f7; outline: none; }
form.inline .pw-wrap { flex: 1; min-width: 160px; margin: 0; }
.tbl th a { color: var(--muted); text-decoration: underline dotted; }
.tbl th a:hover { color: var(--marine); }
h2.section { font-size: 17px; color: var(--marine); margin: 26px 0 2px; display: flex; align-items: center; gap: 8px; }
h2.section:first-of-type { margin-top: 6px; }
h2.section .count { font-size: 12px; font-weight: 600; background: var(--marine-pale); color: var(--marine); border-radius: 999px; padding: 1px 8px; }
p.sub { margin: 0 0 10px; }
/* liste des utilisateurs : mêmes largeurs de colonnes dans les deux tableaux */
.tbl-users { table-layout: fixed; min-width: 980px; }
.tbl-users col.c-nom { width: 21%; } .tbl-users col.c-mail { width: 25%; } .tbl-users col.c-cartes { width: 7%; }
.tbl-users col.c-fin { width: 10%; } .tbl-users col.c-vue { width: 15%; } .tbl-users col.c-statut { width: 12%; }
.tbl-users col.c-ajout { width: 10%; }
.tbl-users td { overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.tbl-users td.small { word-break: break-all; }
.tbl-users th.right, .tbl-users td.right { text-align: right; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-top: 26px; }
.section-head h2.section { margin: 0 0 2px; }
.section-head:first-of-type { margin-top: 6px; }

/* surlignage au survol */
.tbl tbody tr { transition: background-color .12s; }
.tbl tbody tr:hover td { background: #eef3fa; }
.tbl-users tbody tr[data-href] { cursor: pointer; }
.tbl-users tbody tr[data-href]:hover td:first-child { box-shadow: inset 3px 0 0 var(--marine); }
.tree label.chk { border-radius: 6px; padding-left: 6px; padding-right: 6px; transition: background-color .12s; cursor: pointer; }
.tree label.chk:hover { background: #eef3fa; }
.tree label.indent { padding-left: 30px; }
fieldset.role label.chk { border-radius: 6px; padding: 4px 6px; cursor: pointer; transition: background-color .12s; }
fieldset.role label.chk:hover { background: #eef3fa; }
.btn { transition: background-color .12s, border-color .12s, color .12s; }
.btn:not(.primary):not(.danger):not(.ghost):hover { border-color: var(--marine-clair); color: var(--marine); background: #f2f6fb; }
.btn.danger:hover { background: #fdecea; border-color: var(--danger); }
.tile:hover { box-shadow: 0 4px 14px rgba(37,76,131,.14); }
.top nav a { transition: background-color .12s; }

/* bouton principal : liseré coloré au survol, comme les cases d'étage du site domotique */
.btn.primary { transition: box-shadow .12s, background-color .12s; }
.btn.primary:hover, .btn.primary:focus-visible { background: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent), 0 4px 10px rgba(29, 42, 54, .25); text-decoration: none; }
/* 25/10/2026 : menu déroulant « Administration » (Utilisateurs, Accès aux cartes, Journal) */
.top nav .menu { position: relative; }
.top nav .menu > a { display: block; }
.top nav .menu.on > a { background: rgba(255,255,255,.12); color: #fff; }
.top nav .menu .sous { display: none; position: absolute; top: 100%; left: 0; z-index: 20; min-width: 190px; padding: 8px 6px 6px;
  background: #254C83; border-bottom: 3px solid #B0873B; border-radius: 0 0 6px 6px; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.top nav .menu:hover .sous, .top nav .menu:focus-within .sous { display: block; }
.top nav .menu .sous a { display: block; padding: 7px 10px; white-space: nowrap; }
@media (max-width: 760px) {
  .top nav .menu .sous { position: static; display: flex; padding: 0; background: none; border: 0; box-shadow: none; min-width: 0; }
  .top nav .menu > a { display: none; }
}
/* 25/10/2026 : page Accès — intertitres Application / Cartes */
h2.sect { font-size: 15px; margin: 22px 0 8px; color: #254C83; } h2.sect .small { font-weight: 400; margin-left: 6px; }
/* 26/11/2026 : espace documents */
.fil { margin-top: 4px; color: var(--muted); } .fil a { color: var(--marine); }
.err-box { background: #fdecea; border-color: #f1c4c0; color: var(--danger); }
.depot .zone { border: 2px dashed var(--marine-pale); border-radius: var(--r); padding: 22px 16px; text-align: center; color: var(--marine);
  background: #f7f9fc; transition: background-color .12s, border-color .12s; }
.depot .zone p { margin: 6px 0; color: var(--ink); }
.depot .zone.survol { background: #e7f0fb; border-color: var(--marine); }
.lien-fichier { display: inline; margin: 0; font-size: inherit; font-weight: 400; color: var(--marine); text-decoration: underline; cursor: pointer; }
.envois-tete { display: flex; gap: 10px; align-items: center; margin: 14px 0 6px; flex-wrap: wrap; }
ul.envois { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
ul.envois li { display: grid; grid-template-columns: minmax(0, 1fr) 80px 160px; gap: 4px 12px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--line); }
ul.envois .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
ul.envois .t { text-align: right; }
ul.envois .barre { height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; }
ul.envois .barre span { display: block; height: 100%; width: 0; background: var(--marine-clair); transition: width .2s; }
ul.envois li.ok .barre span { background: var(--ok); } ul.envois li.ko .barre span { background: var(--danger); }
ul.envois .e { grid-column: 1 / -1; color: var(--muted); } ul.envois li.ok .e { color: var(--ok); } ul.envois li.ko .e { color: var(--danger); }
ul.envois .e:empty { display: none; }
.tbl.docs td { vertical-align: middle; }
a.doc { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); word-break: break-word; }
a.doc svg { flex: none; color: var(--marine-clair); } a.doc.dossier svg { color: var(--ocre); }
a.doc:hover span { text-decoration: underline; }
.nouveau-dossier { margin-top: 18px; } .nouveau-dossier label { font-weight: 500; }
dialog.card { max-width: 480px; width: calc(100% - 32px); border: 1px solid var(--line); }
dialog::backdrop { background: rgba(28, 40, 51, .35); }
.card.partage { max-width: 900px; margin: 0 auto; }
.ev-telechargement { background: #e7f0fb; color: var(--accent); }
@media (max-width: 760px) { ul.envois li { grid-template-columns: minmax(0, 1fr) 70px; } ul.envois .barre { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .tbl.docs th:nth-child(3), .tbl.docs td:nth-child(3) { display: none; }
  .tbl.docs td, .tbl.docs th { padding: 10px 8px; }
  a.doc { word-break: normal; overflow-wrap: anywhere; }
}
/* 26/11/2026 (2) : arborescence, envoi à un groupe, journal des documents */
.docs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 18px; align-items: start; }
.docs-main { min-width: 0; }
.arbre { padding: 10px 0; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.arbre a { display: block; padding: 5px 12px; color: var(--ink); font-size: 14px; border-left: 3px solid transparent; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arbre a:hover { background: #eef3fa; text-decoration: none; }
.arbre a.racine { font-weight: 600; color: var(--marine); }
.arbre a.chemin { color: var(--marine); font-weight: 500; }
.arbre a.on { background: #e7f0fb; border-left-color: var(--marine); color: var(--marine); font-weight: 600; }
dialog.card.large { max-width: 640px; }
.groupe-choix { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; } .groupe-choix select { margin: 0; flex: 1; }
.dest-liste { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.dest-liste label.chk { margin: 0; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.ev-consultation { background: #eef1f5; color: var(--ink-2); }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .arbre { position: static; max-height: 220px; } }
.ev-fichiers { background: #fff4e0; color: var(--warn); }
/* 26/11/2026 (3) : projets et personnes sans compte dans « Envoyer à… » */
.projets { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.btn.projet.pris { background: #e7f0fb; border-color: var(--marine-clair); color: var(--marine); }
.strong-label { font-weight: 500; color: var(--ink-2); margin: 0 0 6px; }
.duree { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: -4px 0 12px; }
.duree label { margin: 0; } .inline-l { display: inline-block; }
/* 26/11/2026 (4) : groupes décochables, durée grisée */
.btn.projet[aria-pressed=true]::before { content: "✓ "; }
.autres-groupes { margin: 0 0 10px; } .autres-groupes summary { cursor: pointer; color: var(--marine); margin-bottom: 6px; }
label.grise { color: var(--muted); } label.grise input { background: #f1f3f6; }
/* ===== 26/11/2026 (5) : mise en page de l'espace Documents (en-tête, barre d'outils, dépôt, liste, survols) ===== */
.page-docs .btn, .doc-actions .btn, .outils .btn, .partage .btn { display: inline-flex; align-items: center; gap: 7px; }
.doc-tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fil { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.fil a { color: var(--marine); padding: 2px 6px; border-radius: 5px; display: inline-flex; align-items: center; gap: 5px; transition: background-color .12s; }
.fil a:hover { background: #e7f0fb; text-decoration: none; }
.fil a svg { width: 15px; height: 15px; }
.fil .sep { color: #b3bcc6; padding: 0 1px; }
.fil .ici { color: var(--ink); font-weight: 500; padding: 2px 6px; }
.doc-titre h1 { display: flex; align-items: center; gap: 10px; font-size: 26px; line-height: 1.2; }
.retour { display: inline-flex; flex: none; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--marine); transition: background-color .12s, border-color .12s, transform .12s; }
.retour:hover { background: #e7f0fb; border-color: var(--marine-clair); transform: translateX(-2px); text-decoration: none; }
.doc-resume { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.doc-actions, .outils-g, .outils-d { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.outils { display: flex; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; padding: 6px; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.outils .btn { border-color: transparent; background: transparent; color: var(--ink-2); padding: 7px 12px; }
.outils .btn svg { color: var(--marine-clair); transition: color .12s; }
.outils .btn:not(.primary):not(.danger):not(.ghost):hover, .outils .btn.ghost:hover { background: #eef3fa; border-color: transparent; color: var(--marine); text-decoration: none; }
.outils .btn:hover svg { color: var(--marine); }
.pill { display: inline-block; background: var(--marine-pale); color: var(--marine); border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 600; margin-left: 2px; }
.depot { margin-bottom: 14px; }
.depot .zone { display: flex; align-items: center; gap: 14px; padding: 12px 16px; text-align: left; font-size: 13.5px; color: var(--ink);
  border: 1.5px dashed var(--marine-pale); border-radius: var(--r); background: #f7f9fc; transition: background-color .15s, border-color .15s; }
.depot .zone svg { flex: none; width: 26px; height: 26px; color: var(--marine); }
.depot .zone .muted { display: block; font-size: 12.5px; margin-top: 2px; }
.depot .zone.survol { background: #e7f0fb; border-color: var(--marine); }
#envois.card { margin: 10px 0 0; padding: 12px 16px; }
#envois .envois-tete { margin-top: 0; }
.voile { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; pointer-events: none; background: rgba(37, 76, 131, .16); backdrop-filter: blur(1px); }
.voile > div { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 54px; background: #fff; color: var(--marine);
  border: 2px dashed var(--marine); border-radius: 16px; box-shadow: 0 24px 60px rgba(16, 24, 40, .25); }
.voile svg { width: 42px; height: 42px; } .voile strong { font-size: 18px; } .voile span { color: var(--muted); font-size: 13px; }
/* liste */
.liste-docs { overflow: visible; }
.tbl.docs td { padding: 9px 14px; vertical-align: middle; }
.tbl.docs th.col-act { width: 1%; }
.tbl.docs tr.ligne { cursor: pointer; }
.tbl.docs tbody tr.ligne:hover td { background: #f2f6fb; }
.tbl.docs tbody tr.ligne:hover td:first-child { box-shadow: inset 3px 0 0 var(--marine); }
.tbl.docs tbody tr:last-child td:first-child { border-bottom-left-radius: var(--r); }
a.doc { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
a.doc:hover { text-decoration: none; }
a.doc .n { overflow-wrap: anywhere; transition: color .12s; }
.tbl.docs tr.ligne:hover a.doc .n { color: var(--marine); }
.ico-dossier { flex: none; color: #C99A45; }
.pastille { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 22px; border-radius: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; color: #fff; background: #8a96a3; }
.p-pdf { background: #c0392b; } .p-doc { background: #2b5797; } .p-xls { background: #1d7a46; } .p-ppt { background: #c55a11; }
.p-img { background: #2f8f83; } .p-zip { background: #B0873B; } .p-vid { background: #6b4fa0; } .p-plan { background: #5B82B8; } .p-txt { background: #6B7785; }
td.act { text-align: right; white-space: nowrap; }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin-left: 2px; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; position: relative;
  transition: background-color .12s, border-color .12s, color .12s, opacity .12s, box-shadow .12s; }
.ib:hover, .ib:focus-visible { background: #fff; border-color: var(--marine-clair); color: var(--marine); box-shadow: var(--shadow); outline: none; text-decoration: none; }
.ib.danger:hover, .ib.danger:focus-visible { color: var(--danger); border-color: #f1c4c0; background: #fdf0ef; }
@media (hover: hover) {
  .tbl.docs td.act .ib { opacity: 0; }
  .tbl.docs tr:hover td.act .ib, .tbl.docs tr:focus-within td.act .ib { opacity: 1; }
}
.compteur { display: inline-block; min-width: 28px; text-align: center; padding: 1px 8px; border-radius: 999px; background: #eef1f5; color: var(--ink-2); position: relative;
  transition: background-color .12s, color .12s; }
.compteur:hover { background: var(--marine); color: #fff; text-decoration: none; }
td.vide { text-align: center; padding: 46px 16px; color: var(--muted); }
td.vide svg { width: 30px; height: 30px; color: var(--marine-pale); }
/* infobulles */
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 7px); left: 50%; transform: translateX(-50%);
  z-index: 40; padding: 4px 9px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.4;
  white-space: nowrap; pointer-events: none; box-shadow: 0 4px 12px rgba(16, 24, 40, .2); }
td.act [data-tip]:hover::after, td.act [data-tip]:focus-visible::after { left: auto; right: 0; transform: none; }
/* arborescence */
.arbre { padding: 8px; }
.arbre a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; margin: 1px 0; border-left: 0; border-radius: 7px; font-size: 14px; color: var(--ink);
  transition: background-color .12s, color .12s; }
.arbre a svg { flex: none; width: 17px; height: 17px; }
.arbre a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arbre a.racine { color: var(--marine); font-weight: 600; } .arbre a.racine svg { color: var(--marine); }
.arbre a:hover { background: #eef3fa; color: var(--marine); }
.arbre a.chemin { color: var(--marine); font-weight: 500; }
.arbre a.on, .arbre a.on:hover { background: var(--marine); color: #fff; font-weight: 600; }
.arbre a.on svg { color: #fff; }
.cols.bas { margin-top: 18px; }
/* fenêtres */
dialog.card { padding: 22px 24px; border-radius: 12px; box-shadow: 0 24px 60px rgba(16, 24, 40, .25); }
dialog.card h2 { font-size: 17px; color: var(--marine); }
.dest-liste label.chk { border-radius: 6px; padding: 5px 6px; cursor: pointer; transition: background-color .12s; }
.dest-liste label.chk:hover { background: #eef3fa; }
.btn.projet { transition: background-color .12s, border-color .12s, color .12s; }
.btn.projet:hover { border-color: var(--marine-clair); color: var(--marine); }
@media (max-width: 760px) {
  .doc-tete { align-items: flex-start; }
  .outils .btn span { display: none; } .outils .btn { padding: 8px 10px; }
  .tbl.docs th.col-date, .tbl.docs td.col-date, .tbl.docs th.col-dl, .tbl.docs td.col-dl { display: none; }
  .depot .zone .muted { display: none; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.outils label.btn { margin: 0; font-weight: 400; font-size: 14px; cursor: pointer; }
.cols.bas { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.cols.bas h2 { font-size: 15px; color: var(--marine); }
@media (max-width: 900px) {
  .docs-layout { display: flex; flex-direction: column; }
  .arbre { order: 2; width: 100%; }
  .docs-main { width: 100%; }
  .cols.bas { grid-template-columns: 1fr; }
}
