/* MySpectre 2.0 — feuille de style unique. Trois mises en page pilotées par html[data-vue] : pc | tablet | mobile.
   Couleurs : modifier les variables ci-dessous pour s'aligner sur la charte MySpectre. */
:root {
  --brand: #4338ca; --brand-2: #6d5efc; --brand-fonce: #1e1b4b; --brand-hover: #3730a3;
  --ink: #1c1f2e; --muted: #6b7086; --bg: #f3f4f9; --card: #fff; --ligne: #e4e6ef;
  --ok: #15803d; --ok-bg: #e7f6ec; --err: #b91c1c; --err-bg: #fdecec; --warn: #b45309; --warn-bg: #fff3dd;
  --champ: #fff; --champ-bord: #cfd3e3; --surf: #f6f7fd; --surf2: #eceefa; --surf3: #d5d8ea;
  --ok-bg-doux: #f4fbf6; --err-bg-doux: #fff6f6; --warn-bg-doux: #fffaf0; --info-bg: #e0f0ff; --brand-bg: #ece8ff;
  --brand-txt: #3730a3; --info-txt: #0c4a7a; --err-txt: #8f1d1d; --warn-txt: #6b3f06; --lien-nav: #c9c7f2;
  --rayon: 14px; --ombre: 0 1px 2px rgba(20,24,50,.06), 0 6px 24px rgba(20,24,50,.07);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --spook: #6d4fe0; --spook-2: #8b6cff; --spook-encre: #6d4fe0; --spook-clair: #f4f0ff; --spook-bord: #cfc3ff; --spook-txt: #4c2fc0; --spook-ico: #6d4fe0;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
h1, h2 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.1rem; }
a { color: var(--brand); } p { margin: 0 0 1em; }
.muted { color: var(--muted); } .aide { color: var(--muted); font-size: .9rem; }
em { font-style: normal; color: var(--muted); } code { background: var(--surf2); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.ico { width: 22px; height: 22px; flex: none; }

/* ---------- formulaires & boutons ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin: 14px 0 6px; }
input[type=text], input[type=password], input[type=email], input[type=search], select, textarea, input:not([type]) {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--champ); border: 1px solid var(--champ-bord); border-radius: 10px;
}
input:disabled { background: var(--surf); color: var(--muted); }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .touche:focus-visible, a:focus-visible {
  outline: 3px solid rgba(109,94,252,.35); outline-offset: 1px; border-color: var(--brand-2);
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px;
  font: inherit; font-weight: 600; color: var(--ink); background: var(--champ); border: 1px solid var(--champ-bord); border-radius: 10px;
  cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surf); }
.btn-plein { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-plein:hover { background: var(--brand-hover); }
.btn-bloc { width: 100%; margin-top: 20px; }
.btn-pilule { border-radius: 999px; min-height: 52px; font-size: 1.05rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-mini { min-height: 34px; padding: 4px 10px; font-size: .82rem; }
.bouton-icone { display: inline-flex; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; border-radius: 10px; }
.annuler { text-align: center; margin: 14px 0 0; font-size: .9rem; }

.alerte { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid transparent; font-size: .93rem; }
.alerte-erreur { background: var(--err-bg); color: var(--err); border-color: #f5c2c2; }
.alerte-ok { background: var(--ok-bg); color: var(--ok); border-color: #b8e2c7; }
.alerte-info { background: var(--surf2); color: var(--brand-txt); border-color: #d3d8ff; }
.alerte-secret { background: var(--warn-bg); color: var(--warn-txt); border-color: #f2d49a; }
.secret-val { font-family: ui-monospace, Consolas, monospace; font-weight: 600; user-select: all; word-break: break-all; }

/* ---------- pages publiques (connexion, clavier) ---------- */
.page-public { background: linear-gradient(135deg, var(--brand-fonce) 0%, var(--brand) 62%, var(--brand-2) 100%); min-height: 100vh; }
.public { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; gap: 16px; }
.public-carte { background: var(--card); width: 100%; max-width: 430px; padding: 28px; border-radius: 22px; box-shadow: 0 20px 60px rgba(10,10,40,.35); }
.marque { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--brand); margin-bottom: 18px; }
.etape { color: var(--muted); font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.public-pied { color: #fff; }

/* ---------- sélecteur Auto / PC / Mobile ---------- */
.seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.14); }
.seg-lib { font-size: .78rem; padding: 0 10px 0 12px; opacity: .85; }
.seg button { border: 0; background: transparent; color: inherit; font: inherit; font-size: .85rem; font-weight: 600; padding: 7px 14px; min-height: 34px; border-radius: 999px; cursor: pointer; }
html[data-pref=auto] [data-vue-set=auto], html[data-pref=pc] [data-vue-set=pc], html[data-pref=mobile] [data-vue-set=mobile] { background: var(--card); color: var(--brand); }
.carte .seg { background: var(--surf2); color: var(--ink); }
.carte .seg-lib { display: none; }

/* ---------- clavier virtuel ---------- */
.clavier-wrap { max-width: 380px; margin: 18px auto 0; }
.indic { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 36px; margin-bottom: 18px; padding-right: 36px; }
.tiret { width: 22px; height: 4px; border-radius: 2px; background: #4b4b55; opacity: .35; transition: .12s; }
.tiret.plein { opacity: 1; background: var(--brand); transform: scaleY(1.6); }
.efface { position: absolute; right: 0; top: 50%; transform: translateY(-50%); border: 0; background: none; font-size: 1.15rem; color: var(--ink); cursor: pointer; padding: 8px; border-radius: 8px; }
.grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.touche { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border: 1px solid #e0e0e6; background: var(--surf);
  border-radius: 10px; font: inherit; font-size: 1.7rem; font-weight: 700; color: var(--ink); cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent; user-select: none; }
.touche:active { background: var(--surf2); border-color: var(--brand-2); }
.touche.vide { cursor: default; }

/* ---------- coque applicative ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.nav { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--brand-fonce); color: #fff; padding: 18px 14px; }
.nav-haut { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; padding: 4px 8px 22px; color: #fff; }
.nav-liens { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-lien { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--lien-nav); text-decoration: none; font-weight: 600; }
.nav-lien:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-lien.actif { background: rgba(255,255,255,.16); color: #fff; }
.nav-bas { border-top: 1px solid rgba(255,255,255,.14); padding-top: 14px; }
.moi { display: flex; flex-direction: column; padding: 0 8px 10px; font-size: .88rem; } .moi span { color: #a9a6e6; font-size: .8rem; }
.lien-deco { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: none; border: 0; border-radius: 10px; color: var(--lien-nav); font: inherit; font-weight: 600; cursor: pointer; }
.lien-deco:hover { background: rgba(255,255,255,.08); color: #fff; }
.contenu { min-width: 0; }
.barre { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px 6px; }
.barre h1 { margin: 0; font-size: 1.55rem; }
.deco-mobile { display: none; }
.page { padding: 12px 32px 48px; max-width: none; }   /* 2.26.2 : toutes les pages en pleine largeur */

.carte { background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px 22px; margin-bottom: 18px; }
.titre-section { margin: 26px 0 12px; }
.fil { margin-bottom: 12px; font-size: .9rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 16px 18px; display: flex; flex-direction: column; }
.stat span { color: var(--muted); font-size: .82rem; } .stat strong { font-size: 1.9rem; line-height: 1.2; }
.stat-alerte strong { color: var(--err); }
.liste-etat { list-style: none; margin: 0; padding: 0; } .liste-etat li { padding: 7px 0 7px 28px; position: relative; }
.liste-etat li::before { position: absolute; left: 0; top: 7px; width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; font-size: .75rem; font-weight: 800; color: #fff; }
.liste-etat .ok::before { content: "✓"; background: var(--ok); } .liste-etat .ko::before { content: "!"; background: var(--err); } .liste-etat .warn::before { content: "!"; background: var(--warn); }
.cartes-ent, .modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.carte-ent { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: inherit; margin: 0; transition: transform .12s; }
.carte-ent:hover { transform: translateY(-2px); } .carte-ent strong { font-size: 1.05rem; color: var(--brand); }
.tuile { background: var(--card); border: 1px dashed #c4c8de; border-radius: var(--rayon); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.tuile.a-venir { opacity: .75; } .tuile span { color: var(--muted); font-size: .9rem; } .tuile em { font-size: .78rem; font-weight: 700; color: var(--brand); }
.fiche { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 0; }
.fiche dt { color: var(--muted); font-size: .8rem; } .fiche dd { margin: 2px 0 0; font-weight: 600; }
.vide-etat { text-align: center; color: var(--muted); padding: 28px 16px; }
.liste-simple { list-style: none; margin: 0; padding: 0; } .liste-simple li { padding: 8px 0; border-bottom: 1px solid var(--ligne); } .liste-simple li:last-child { border: 0; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surf2); color: var(--brand-txt); white-space: nowrap; }
.badge-admin { background: var(--brand-bg); color: var(--brand-txt); } .badge-collaborateur { background: var(--info-bg); color: var(--info-txt); } .badge-client { background: var(--ok-bg); color: var(--ok); }
.badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-ko { background: var(--err-bg); color: var(--err); } .badge-warn { background: var(--warn-bg); color: var(--warn); } .badge-off { background: var(--surf2); color: var(--muted); }

.outils { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.filtres { display: flex; gap: 8px; flex-wrap: wrap; } .filtres input, .filtres select { width: auto; min-width: 180px; }
.onglets { display: flex; gap: 6px; margin-bottom: 14px; } .onglets a { padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; background: var(--surf2); }
.onglets a.actif { background: var(--brand); color: #fff; }
.table-wrap { background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--ligne); vertical-align: middle; } tr:last-child td { border-bottom: 0; }
td.actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } td.actions form { margin: 0; } td.ua { max-width: 240px; color: var(--muted); font-size: .8rem; }
.pagination { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }

.form-grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; } .form-grille .plein { grid-column: 1 / -1; } .form-grille .bas { align-self: end; }
.liste-cases { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
label.case { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 12px; font-weight: 500; border: 1px solid var(--ligne); border-radius: 10px; background: var(--surf); cursor: pointer; min-height: 44px; }
label.case input { width: 20px; height: 20px; flex: none; }
.barre-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ---------- TABLETTE : barre latérale réduite aux icônes ---------- */
html[data-vue=tablet] .shell { grid-template-columns: 78px 1fr; }
html[data-vue=tablet] .nav { padding: 14px 8px; align-items: center; }
html[data-vue=tablet] .nav-nom, html[data-vue=tablet] .nav-lien span, html[data-vue=tablet] .moi, html[data-vue=tablet] .lien-deco span { display: none; }
html[data-vue=tablet] .nav-haut { padding: 4px 0 18px; } html[data-vue=tablet] .nav-lien, html[data-vue=tablet] .lien-deco { justify-content: center; padding: 12px; }
html[data-vue=tablet] .barre { padding: 18px 22px 4px; } html[data-vue=tablet] .page { padding: 10px 22px 40px; }

/* ---------- MOBILE : barre du haut + navigation en bas, gros éléments tactiles ---------- */
html[data-vue=mobile] body { font-size: 16px; }
html[data-vue=mobile] .shell { display: block; max-width: 560px; margin: 0 auto; padding-bottom: 76px; background: var(--bg); min-height: 100vh; }
html[data-vue=mobile] .nav { position: fixed; z-index: 20; top: auto; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 560px; height: 64px;
  flex-direction: row; padding: 0 6px; background: var(--card); color: var(--ink); border-top: 1px solid var(--ligne); box-shadow: 0 -4px 18px rgba(20,24,50,.08); }
html[data-vue=mobile] .nav-haut, html[data-vue=mobile] .nav-bas { display: none; }
html[data-vue=mobile] .nav-liens { flex-direction: row; justify-content: space-around; align-items: stretch; width: 100%; gap: 0; }
html[data-vue=mobile] .nav-lien { flex: 1; flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; font-size: .68rem; color: var(--muted); border-radius: 0; text-align: center; }
html[data-vue=mobile] .nav-lien:hover { background: none; color: var(--muted); } html[data-vue=mobile] .nav-lien.actif { background: none; color: var(--brand); }
html[data-vue=mobile] .barre { position: sticky; top: 0; z-index: 10; background: var(--bg); padding: 12px 16px 8px; }
html[data-vue=mobile] .barre h1 { font-size: 1.2rem; } html[data-vue=mobile] .deco-mobile { display: block; } html[data-vue=mobile] .deco-mobile form { margin: 0; }
html[data-vue=mobile] .page { padding: 6px 16px 24px; } html[data-vue=mobile] .carte { padding: 16px; }
html[data-vue=mobile] .form-grille { grid-template-columns: 1fr; } html[data-vue=mobile] .stats { grid-template-columns: repeat(2, 1fr); }
html[data-vue=mobile] .btn { min-height: 48px; } html[data-vue=mobile] .btn-mini { min-height: 40px; }
html[data-vue=mobile] .filtres, html[data-vue=mobile] .filtres input, html[data-vue=mobile] .filtres select { width: 100%; }
html[data-vue=mobile] .outils .btn-plein { width: 100%; }
/* tableaux -> cartes empilées */
html[data-vue=mobile] .table-wrap { background: none; box-shadow: none; overflow: visible; }
html[data-vue=mobile] table.cartes thead { display: none; }
html[data-vue=mobile] table.cartes, html[data-vue=mobile] table.cartes tbody, html[data-vue=mobile] table.cartes tr, html[data-vue=mobile] table.cartes td { display: block; width: 100%; }
html[data-vue=mobile] table.cartes tr { background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 8px 14px; margin-bottom: 12px; }
html[data-vue=mobile] table.cartes td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
html[data-vue=mobile] table.cartes td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; flex: none; }
html[data-vue=mobile] table.cartes td.actions { justify-content: flex-start; padding-top: 10px; } html[data-vue=mobile] table.cartes td.actions::before { content: none; }
html[data-vue=mobile] td.ua { max-width: none; }
html[data-vue=mobile] .public-carte { padding: 22px; border-radius: 18px; }

/* ---------- mises à jour ---------- */
.ligne-version { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; } .ligne-version .aide { flex: 1; min-width: 260px; margin: 0; }
.grand { display: block; font-size: 2rem; line-height: 1.2; }
.carte-attente { border: 2px solid var(--brand-2); }
.liste-fichiers { list-style: none; margin: 0; padding: 0; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; } .liste-fichiers li { padding: 4px 0; word-break: break-all; }
.notes { white-space: pre-wrap; } .detail { font-size: .82rem; margin-top: 4px; max-width: 520px; text-align: left; }
.moi .version { margin-top: 4px; font-size: .72rem; opacity: .7; }
.chargement { width: 38px; height: 38px; margin: 22px auto; border: 4px solid #e1e3f3; border-top-color: var(--brand); border-radius: 50%; animation: tourne 1s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }
input[type=file] { width: 100%; padding: 10px; background: var(--surf); border: 1px dashed #b9bed8; border-radius: 10px; font: inherit; }

/* ---------- maintenance ---------- */
.texte-centre { text-align: center; } .texte-centre .marque { justify-content: center; }
.maint-voile { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 62%, #6d5efc 100%); color: #fff; text-align: center; }
.maint-boite { max-width: 420px; } .maint-boite h2 { font-size: 1.5rem; margin: 10px 0; } .maint-boite p { opacity: .9; }
.maint-boite .chargement { border-color: rgba(255,255,255,.3); border-top-color: #fff; }

/* ---------- raccourci ---------- */
[hidden] { display: none !important; }
.banniere { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; border: 1px solid #d3d8ff; background: var(--surf); }
.banniere-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lien-discret { display: block; padding: 6px 12px 10px; color: #a9a6e6; font-size: .8rem; text-decoration: none; } .lien-discret:hover { color: #fff; }
html[data-vue=tablet] .lien-discret { display: none; }
details.appareil summary { cursor: pointer; list-style: none; } details.appareil summary h2 { display: inline; margin: 0; }
details.appareil summary::before { content: "▸ "; color: var(--brand); } details.appareil[open] summary::before { content: "▾ "; }
details.appareil > :not(summary) { margin-top: 12px; } ol.etapes { padding-left: 20px; } ol.etapes li { margin-bottom: 8px; }

/* ---------- dossiers, exercices, fiche de contrôle ---------- */
.badge-offre { background: var(--brand-bg); color: var(--brand-txt); } .badge-evolution { background: var(--warn-bg); color: var(--warn-txt); }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } tr.total td { border-top: 2px solid var(--ligne); background: var(--surf); }
.liste-controles { list-style: none; margin: 0; padding: 0; } .ctl { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ligne); } .ctl:last-child { border: 0; }
.pastille { flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; text-align: center; line-height: 24px; font-weight: 800; font-size: .8rem; }
.ctl-ok .pastille { background: var(--ok); } .ctl-attention .pastille { background: var(--warn); } .ctl-erreur .pastille { background: var(--err); } .ctl-info .pastille { background: #8b90a8; }
.sr { position: absolute; left: -9999px; }
html[data-vue=mobile] table:not(.cartes) { font-size: .85rem; } html[data-vue=mobile] .table-wrap:has(table:not(.cartes)) { overflow-x: auto; background: var(--card); }

/* ---------- ajustements mobile (fiche de contrôle) ---------- */
.grand { overflow-wrap: anywhere; }
.onglets { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .onglets a { white-space: nowrap; flex: none; }
html[data-vue=mobile] .grand { font-size: 1.15rem; }

/* lot 2 : paramétrage et valeurs hybrides */
.regle { margin-bottom: 12px; } .regle-erreur { border: 1px solid #e0a0a0; }
.regle-tete { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; margin-bottom: 6px; } .regle-valeur { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.regle input[type=text] { width: 100%; margin-top: 6px; font-family: ui-monospace, Consolas, monospace; }
.regle-detail { margin-top: 10px; } .regle-detail summary { cursor: pointer; color: var(--brand); } .regle-detail .table-wrap { margin-top: 8px; max-height: 320px; overflow-y: auto; }
.outils-droite { display: flex; flex-wrap: wrap; gap: 8px; }
.barre-collante { position: sticky; bottom: 0; background: var(--card); padding: 12px; border-radius: var(--rayon); box-shadow: 0 -4px 14px rgba(20,20,60,.08); margin-top: 14px; }
ul.formules { padding-left: 18px; } ul.formules li { margin-bottom: 4px; }
.grille-bilan th, .grille-bilan td { vertical-align: top; } .grille-bilan input { width: 100%; min-width: 118px; text-align: right; margin: 4px 0; }
.grille-bilan td.case-erreur input { border-color: #c0392b; background: var(--err-bg); }
code { background: var(--surf); padding: 1px 5px; border-radius: 4px; font-size: .88em; }
html[data-vue=mobile] .barre-collante { bottom: 72px; z-index: 10; }

/* lot 3 : Ma comptabilité */
.bandeau-donnees { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.onglets-compta { margin-bottom: 14px; }
.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tuile-kpi { display: flex; flex-direction: column; gap: 6px; background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; color: inherit; text-decoration: none; }
a.tuile-kpi:hover { outline: 2px solid var(--brand); }
.kpi-titre { color: var(--muted); font-size: .88rem; } .kpi-valeur { font-size: 1.35rem; font-variant-numeric: tabular-nums; } .kpi-valeur.neg { color: var(--err); }
.defile { max-height: 520px; overflow-y: auto; }

/* lot 3 bis : graphiques pleine largeur, période, vue d'ensemble */
.graphe-carte { padding: 18px 20px 14px; } .graphe-carte h2 { font-size: 1.05rem; margin-bottom: 6px; } .graphe-carte .aide { margin: 6px 0 0; font-size: .82rem; }
.graphe-wrap { width: 100%; overflow-x: auto; } .graphe { width: 100%; height: auto; display: block; max-height: 420px; }
html[data-vue=mobile] .graphe-wrap .graphe { min-width: 620px; }
.g-axe { fill: var(--muted); font-size: 13px; } .g-grille { stroke: var(--ligne); stroke-width: 1; stroke-dasharray: 3 5; } .g-zero { stroke: var(--muted); stroke-dasharray: none; opacity: .5; }
.g-stop-a { stop-color: var(--brand-2); stop-opacity: 1; } .g-stop-b { stop-color: var(--brand); stop-opacity: .55; }
.g-aire-a { stop-color: var(--brand-2); stop-opacity: .32; } .g-aire-b { stop-color: var(--brand-2); stop-opacity: 0; }
.g-barre { fill: var(--brand); transition: filter .15s; } .g-barre.g-neg { fill: #d1493b; }
.g-ligne { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; } .g-point { fill: var(--card); stroke: var(--brand); stroke-width: 3; transition: r .15s; }
.g-zone { fill: transparent; } .g-lien { cursor: pointer; } .g-col:hover .g-zone { fill: rgba(109,94,252,.08); } .g-col:hover .g-barre { filter: brightness(1.15); } .g-col:hover .g-point { r: 7; }
.g-val { fill: var(--ink); font-size: 12px; font-weight: 600; } .g-val-clair { fill: #fff; }
.g-s { stroke: var(--card); stroke-width: 1; } .g-s0 { fill: var(--surf3); } .g-s1 { fill: var(--brand-2); } .g-s2 { fill: #f59e0b; } .g-s3 { fill: #14b8a6; }
.g-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 4px; font-size: .85rem; color: var(--muted); } .g-pastille { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.spark { width: 100%; max-width: 230px; height: 64px; }
.g-jauge-fond { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 34; stroke-linecap: butt; } .g-jauge-val { fill: none; stroke: #fff; stroke-width: 34; stroke-linecap: butt; opacity: .92; }
.g-jauge-objectif { stroke: #ff5a5a; stroke-width: 4; } .carte-bleue .g-axe { fill: rgba(255,255,255,.85); } .g-jauge-chiffre { fill: #fff; font-size: 24px; font-weight: 700; } .g-jauge-pct { fill: rgba(255,255,255,.88); font-size: 14px; }
.periode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 14px; }
.periode-presets { display: flex; flex-wrap: wrap; gap: 8px; } .puce { display: inline-block; padding: 6px 13px; border-radius: 99px; background: var(--card); box-shadow: var(--ombre); color: var(--ink); text-decoration: none; font-size: .88rem; }
.puce.actif { background: var(--brand); color: #fff; } .periode-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .periode-form select { width: auto; } .periode-etat { font-size: .85rem; }
.accueil-tete { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; } .accueil-titre { font-size: 1.6rem; margin: 0 0 4px; }
.accueil-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.accueil-ligne1 { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.25fr; gap: 14px; margin-bottom: 14px; }
.accueil-ligne2 { display: grid; grid-template-columns: 1fr 1.7fr; gap: 14px; margin-bottom: 14px; align-items: stretch; } .accueil-ligne3 { display: grid; grid-template-columns: 1.8fr 1fr; gap: 14px; margin-bottom: 14px; }
.accueil-ligne2 > *, .accueil-ligne3 > * { min-width: 0; margin: 0; }
.tuile-solde .solde-corps { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; } .kpi-grand { font-size: 1.7rem; }
.kpi-centre { align-items: center; justify-content: center; text-align: center; } .kpi-accent { background: linear-gradient(160deg, var(--brand-2), var(--brand)); color: #fff; } .kpi-accent .kpi-titre { color: rgba(255,255,255,.9); }
.tuiles-pile { display: grid; gap: 14px; } .tuile-plus { position: relative; } .tuile-plus .plus { position: absolute; right: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-style: normal; text-align: center; line-height: 22px; font-size: 16px; }
.carte-bleue { background: linear-gradient(160deg, var(--brand-2), var(--brand)); color: #fff; } .carte-bleue h2 { color: #fff; } .carte-bleue a { color: #fff; }
.table-banques { width: 100%; border-collapse: collapse; font-size: .93rem; } .table-banques th { text-align: left; border-bottom: 1px solid rgba(255,255,255,.5); padding: 6px 4px; font-weight: 600; } .table-banques td { padding: 7px 4px; border-bottom: 1px solid rgba(255,255,255,.18); }
.table-banques .num, .table-banques th.num { text-align: right; } .table-banques tr.total td { font-weight: 700; border-top: 1px solid rgba(255,255,255,.6); border-bottom: 0; background: transparent; }
.carte-jauge { display: flex; flex-direction: column; justify-content: center; } .aide-clair { color: rgba(255,255,255,.85); font-size: .85rem; text-align: center; margin: 4px 0 0; } .jauge-valeur { font-size: 1.6rem; font-weight: 700; text-align: center; }
.recherche { display: flex; flex-wrap: wrap; gap: 8px; } .recherche input { flex: 1 1 220px; } .recherche select { width: auto; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; } tr.ouverture td { background: var(--surf); font-style: italic; }
td a { text-decoration: none; } td a:hover { text-decoration: underline; }
html[data-vue=tablet] .accueil-ligne1 { grid-template-columns: 1fr 1fr; } html[data-vue=tablet] .accueil-ligne2, html[data-vue=tablet] .accueil-ligne3 { grid-template-columns: 1fr; }
html[data-vue=mobile] .accueil-ligne1, html[data-vue=mobile] .accueil-ligne2, html[data-vue=mobile] .accueil-ligne3 { grid-template-columns: 1fr; }
html[data-vue=mobile] .periode-presets { overflow-x: auto; flex-wrap: nowrap; width: 100%; padding-bottom: 4px; } html[data-vue=mobile] .puce { white-space: nowrap; }
.g-pastille.g-s0 { background: var(--surf3); } .g-pastille.g-s1 { background: var(--brand-2); } .g-pastille.g-s2 { background: #f59e0b; } .g-pastille.g-s3 { background: #14b8a6; }
.table-banques th { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.page.page-large { max-width: none; }
.graphe { max-height: 460px; }

/* version 2.5 : modules, couleurs d'alerte, cloche */
.module { display: grid; grid-template-columns: minmax(0, 2.3fr) minmax(280px, 1fr); gap: 14px; align-items: start; } .module-main, .module-side { display: grid; gap: 14px; min-width: 0; } .module-main > *, .module-side > * { margin: 0; min-width: 0; }
.duo { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 14px; } .duo > * { margin: 0; min-width: 0; }
.module .titre-section { margin: 4px 0 0; }
html[data-vue=tablet] .module, html[data-vue=mobile] .module, html[data-vue=mobile] .duo { grid-template-columns: 1fr; }
.graphe-h { max-height: none; } .g-h-label { fill: var(--muted); font-size: 13px; } .g-h-valeur { fill: var(--ink); font-size: 13px; font-weight: 600; }
.g-hb { fill: var(--brand-2); } .g-hb-neg { fill: #d1493b; } .g-h-vert .g-hb { fill: #16a34a; } .g-h-rouge .g-hb { fill: #dc2626; } .g-h-clair .g-hb { fill: #fff; } .g-h-clair .g-h-label, .g-h-clair .g-h-valeur { fill: #fff; }
.carte-bleue .g-h-label, .carte-bleue .g-h-valeur { fill: #fff; } .carte-bleue .g-grille { stroke: rgba(255,255,255,.3); } .carte-bleue .g-axe { fill: rgba(255,255,255,.85); }
.g-reference { stroke: #dc2626; stroke-width: 2.5; stroke-dasharray: 8 6; } .g-reference-texte { fill: #dc2626; font-size: 12px; font-weight: 600; }
.carte-encaissements h2 .total-vert, .total-vert, .texte-vert { color: var(--ok); } .carte-decaissements h2 .total-rouge, .total-rouge, .texte-rouge { color: var(--err); } .carte-encaissements, .carte-decaissements { border-top: 4px solid; } .carte-encaissements { border-color: #16a34a; } .carte-decaissements { border-color: #dc2626; }
.carte-encaissements h2, .carte-decaissements h2 { display: flex; justify-content: space-between; gap: 8px; }
tr.etat-entree .c-debit { color: var(--ok); font-weight: 600; } tr.etat-sortie .c-credit { color: var(--err); font-weight: 600; }
tr.etat-non-lettre td, tr.etat-alerte td { background: var(--err-bg); color: var(--err-txt); } tr.etat-non-lettre td:first-child, tr.etat-alerte td:first-child { box-shadow: inset 4px 0 0 #dc2626; }
.badge-erreur { background: var(--err-bg); color: var(--err); } .tuile-alerte { outline: 2px solid #f3b0b0; background: var(--err-bg-doux); } .montant-alerte { color: var(--err); font-weight: 700; }
.tableau-alerte tbody tr td { background: var(--err-bg-doux); } .tableau-alerte tbody tr:hover td { background: var(--err-bg); }
.legende-etats { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .85rem; color: var(--muted); margin: 0 0 8px; } .pastille-etat { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 6px; } .pe-vert { background: #16a34a; } .pe-rouge { background: #dc2626; }
.ligne-active td { background: var(--surf2); font-weight: 600; }
.bandeau-droite { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .cloche { position: relative; display: inline-flex; color: var(--ink); padding: 6px; } .cloche .ico { width: 28px; height: 28px; }
.pastille-rouge { display: inline-block; background: #dc2626; color: #fff; font-style: normal; font-size: .72rem; font-weight: 700; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; padding: 0 5px; margin-left: 6px; vertical-align: 1px; }
.cloche .pastille-rouge { position: absolute; top: -2px; right: -4px; margin: 0; }
.onglets-compta a .pastille-rouge { margin-left: 6px; }
.onglets-compta { position: sticky; top: 0; z-index: 8; background: var(--bg); padding: 8px 0; margin-top: -4px; }
html[data-vue=mobile] .onglets-compta { top: 0; }
.duo.duo-egal { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }
.g-h-label { font-size: 12px; } .g-h-valeur { font-size: 12px; } .graphe-h { max-width: 520px; }
.duo > .tuile-kpi { align-self: start; min-height: 110px; }
.g-reference-texte { paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.module { grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); }

/* version 2.6 : menu latéral Ma comptabilité (remplace le menu général dans le tableau financier) */
.nav-compta { overflow: hidden; } .nav-compta .nav-haut { padding-bottom: 10px; text-decoration: none; } .nav-compta .nav-haut:hover { opacity: .9; }
.nav-liens-compta { gap: 1px; overflow-y: auto; min-height: 0; padding-right: 2px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.25) transparent; }
.nav-entreprise { padding: 4px 10px 8px; color: #fff; font-weight: 700; font-size: .95rem; border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 6px; } .nav-entreprise span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-titre { color: #8e8bd6; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; padding: 12px 12px 4px; }
.nav-compta .nav-sous { padding: 7px 12px; font-size: .9rem; gap: 10px; font-weight: 600; } .nav-compta .nav-sous .ico { width: 18px; height: 18px; flex: none; } .nav-compta .nav-sous .pastille-rouge { margin-left: auto; }
.nav-compta .nav-sous span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-compta .nav-bas { padding-top: 8px; } .nav-compta .nav-quitter { font-size: .88rem; padding: 8px 12px; } .nav-compta .moi { padding-top: 6px; }
.menu-mobile { display: none; }
html[data-vue=tablet] .nav-compta .nav-entreprise, html[data-vue=tablet] .nav-compta .nav-titre { display: none; } html[data-vue=tablet] .nav-compta .nav-sous { position: relative; justify-content: center; padding: 10px; }
html[data-vue=tablet] .nav-compta .nav-sous .pastille-rouge { position: absolute; top: 2px; right: 2px; margin: 0; min-width: 16px; height: 16px; line-height: 16px; font-size: .65rem; }
html[data-vue=tablet] .nav-compta .nav-liens-compta { align-items: stretch; width: 100%; } html[data-vue=tablet] .nav-compta .nav-haut { justify-content: center; }
html[data-vue=mobile] .nav.nav-compta { display: none; } html[data-vue=mobile] .shell { padding-bottom: 20px; }
html[data-vue=mobile] .menu-mobile { display: block; margin: 0 16px 6px; background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); }
.menu-mobile summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; padding: 12px 14px; font-weight: 700; } .menu-mobile summary::-webkit-details-marker { display: none; } .menu-mobile summary .ico { width: 20px; height: 20px; color: var(--brand); }
.menu-mobile summary::after { content: "▾"; margin-left: auto; color: var(--muted); } .menu-mobile[open] summary::after { content: "▴"; }
.menu-mobile-liste { display: grid; padding: 0 8px 10px; } .menu-mobile-liste a { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-mobile-liste a .ico { width: 18px; height: 18px; color: var(--muted); } .menu-mobile-liste a.actif { background: var(--brand); color: #fff; } .menu-mobile-liste a.actif .ico { color: #fff; } .menu-mobile-liste a .pastille-rouge { margin-left: auto; }
.menu-mobile-liste .nav-titre { color: var(--muted); padding: 10px 10px 2px; } .menu-mobile-liste a.quitter { margin-top: 6px; border-top: 1px solid var(--ligne); border-radius: 0; color: var(--brand); }
.nav-compta { padding-top: 14px; padding-bottom: 10px; } .nav-compta .nav-sous { padding: 5px 10px; font-size: .86rem; gap: 9px; } .nav-compta .nav-sous .ico { width: 17px; height: 17px; }
.nav-compta .nav-titre { padding: 8px 10px 2px; font-size: .66rem; } .nav-compta .nav-haut { padding: 2px 8px 8px; } .nav-compta .nav-entreprise { padding: 2px 10px 6px; margin-bottom: 2px; font-size: .9rem; }
.nav-compta .moi { padding: 4px 8px 2px; } .nav-compta .moi span { display: none; } .nav-compta .lien-deco { padding: 7px 12px; } .nav-compta .nav-quitter { padding: 6px 12px; }
.nav-compta .nav-sous .pastille-rouge { height: 16px; line-height: 16px; min-width: 16px; font-size: .68rem; }
.nav-compta .nav-sous { padding: 4px 10px; } .nav-compta .nav-titre { padding-top: 6px; }
.g-barre.g-hausse { fill: #16a34a; } .g-relie { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tab-comparatif td.bon, .bon { color: var(--ok); font-weight: 600; } .tab-comparatif td.mauvais, .mauvais { color: var(--err); font-weight: 600; } .neutre { color: var(--muted); }
.alerte-ligne { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--rayon); background: var(--card); box-shadow: var(--ombre); margin-bottom: 8px; border-left: 5px solid; }
.alerte-ligne.rouge { border-color: #dc2626; background: var(--err-bg-doux); } .alerte-ligne.orange { border-color: #f59e0b; background: var(--warn-bg-doux); } .alerte-ligne.vert { border-color: #16a34a; background: var(--ok-bg-doux); }
.alerte-ligne a { margin-left: auto; white-space: nowrap; }
.barre-prog { height: 10px; border-radius: 6px; background: var(--surf2); overflow: hidden; margin: 6px 0 2px; } .barre-prog i { display: block; height: 100%; border-radius: 6px; background: var(--brand-2); }
.barre-prog.atteint i { background: #16a34a; } .barre-prog.vigilance i { background: #f59e0b; } .barre-prog.retard i { background: #dc2626; }
.carte-objectif { margin-bottom: 12px; }
.ligne-point { margin: 0 0 6px; }
.barre-prog i.pct-0 { width: 0%; } .barre-prog i.pct-5 { width: 5%; } .barre-prog i.pct-10 { width: 10%; } .barre-prog i.pct-15 { width: 15%; } .barre-prog i.pct-20 { width: 20%; } .barre-prog i.pct-25 { width: 25%; } .barre-prog i.pct-30 { width: 30%; } .barre-prog i.pct-35 { width: 35%; } .barre-prog i.pct-40 { width: 40%; } .barre-prog i.pct-45 { width: 45%; } .barre-prog i.pct-50 { width: 50%; } .barre-prog i.pct-55 { width: 55%; } .barre-prog i.pct-60 { width: 60%; } .barre-prog i.pct-65 { width: 65%; } .barre-prog i.pct-70 { width: 70%; } .barre-prog i.pct-75 { width: 75%; } .barre-prog i.pct-80 { width: 80%; } .barre-prog i.pct-85 { width: 85%; } .barre-prog i.pct-90 { width: 90%; } .barre-prog i.pct-95 { width: 95%; } .barre-prog i.pct-100 { width: 100%; } 

/* version 2.8 : KPI (offre Ultimate) */
.kpi-grille { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } .kpi-carte { gap: 4px; } .kpi-n1 { font-size: .85rem; color: var(--muted); }
.kpi-cible { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kpi-atteint { border-top: 4px solid #16a34a; } .kpi-vigilance { border-top: 4px solid #f59e0b; } .kpi-retard { border-top: 4px solid #dc2626; }
.kpi-formule { margin-top: 4px; } .kpi-formule summary { cursor: pointer; color: var(--brand); font-size: .8rem; } .kpi-formule p { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.kpi-point-mort { margin: 14px 0; } .kpi-grand-blanc { font-size: 2rem; display: block; margin: 4px 0 6px; }

/* version 2.9 : option MySpectre Évolution (prévisionnel, IS, cotisations du dirigeant) */
.g-prevision { stroke-dasharray: 9 6; stroke: #f59e0b; } .g-moyenne { stroke-dasharray: 2 6; stroke: var(--muted); stroke-width: 2.5; } .g-point-prev { stroke: #f59e0b; }
.g-separateur { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .7; }
.evo-horizons { margin: 0 0 12px; } .evo-avertissement { border-left: 5px solid #f59e0b; background: var(--warn-bg-doux); padding: 10px 14px; border-radius: var(--rayon); margin: 0 0 14px; font-size: .9rem; }
.evo-methode summary { cursor: pointer; color: var(--brand); font-weight: 600; } .evo-methode p, .evo-methode li { font-size: .88rem; color: var(--muted); }
.a-confirmer { font-size: .72rem; color: var(--warn); font-weight: 700; margin-left: 6px; } .verifie { font-size: .72rem; color: var(--ok); font-weight: 700; margin-left: 6px; }

/* version 2.10 : scan par catégories */
.scan-bloc { margin-bottom: 14px; } .scan-bloc h2 { font-size: 1.05rem; } .scan-bloc h3 { font-size: .95rem; margin: 10px 0 4px; }
.tab-comparatif .spark { max-width: 110px; height: 34px; }


/* 2.43.0 : trois thèmes seulement. Le violet MySpectre classique est celui de :root ; « Blanc et bleu » = azur (plus bas) ;
   « Sombre » reprend le paysage d'Arona (forêt sombre, brume vert sauge), Spook y est en noir. Chaque thème redéfinit des variables. */
html[data-theme=arona] {
  color-scheme: dark;
  --ink: #e6efe9; --muted: #93aa9b; --ok: #5fd68d; --ok-bg: #12301f; --err: #f87171; --err-bg: #3a1618; --warn: #fbbf24; --warn-bg: #3a2a0c;
  --ok-bg-doux: #102418; --err-bg-doux: #2c1416; --warn-bg-doux: #2c220c; --info-txt: #9fd6c0; --err-txt: #fca5a5; --warn-txt: #fcd34d;
  --ombre: 0 1px 2px rgba(0,0,0,.45), 0 8px 26px rgba(0,0,0,.38);
}
html[data-theme=arona] { --bg: #0c1811; --card: #132219; --ligne: #22382a; --champ: #0f1d15; --champ-bord: #2c4636; --surf: #172a1f; --surf2: #1d3326; --surf3: #2a4535;
  --brand: #3f8a5c; --brand-2: #8fbfa2; --brand-fonce: #07150c; --brand-hover: #357a4f; --brand-bg: #1a3a27; --brand-txt: #a9d8bb; --info-bg: #14303a; --lien-nav: #a6c3b0;
  --spook: #050806; --spook-2: #26302a; --spook-encre: #a9e3bf; --spook-clair: #0a0f0c; --spook-bord: #3b5546; --spook-txt: #eef5f0; --spook-ico: #ffffff; }
html[data-theme=arona] .nav { background: url("../img/paysage_nav.png") center bottom / 100% auto no-repeat, var(--brand-fonce); }
html[data-theme=arona] .nav-titre { color: #7fae90; }
html[data-theme=arona] .nav-bas { text-shadow: 0 1px 3px rgba(0,0,0,.6); }
html[data-theme=arona] .sp-bulle, html[data-theme=arona] .sp-gros, html[data-theme=arona] .sp-mini { box-shadow: 0 0 0 2px #3b5546, 0 10px 28px rgba(0,0,0,.45); }

/* pastilles de choix du thème (page Mon compte) */
.themes-choix { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 4px; }
.theme-bouton { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--ligne); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.theme-bouton:hover { border-color: var(--brand-2); } .theme-bouton.actif { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-bg); }
.theme-pastille { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.sw-violet { background: linear-gradient(135deg, #1e1b4b 50%, #6d5efc 50%); } .sw-arona { background: linear-gradient(135deg, #07150c 50%, #8fbfa2 50%); }
.themes-groupe { margin: 14px 0 2px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.bandeau-demo { background: var(--warn-bg); color: var(--warn-txt); border-radius: var(--rayon); padding: 10px 14px; margin: 0 0 12px; font-weight: 600; font-size: .9rem; }
.en-ligne { display: inline; }

/* version 2.13.0 : pages Clients / Fournisseurs, balance, détail du mois, bouton Retour */
.titre-grand { font-size: 2rem; font-weight: 800; margin: 0; letter-spacing: -.01em; line-height: 1.15; }
.entete-page { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 14px; flex-wrap: wrap; }
.module-seul { grid-template-columns: minmax(0, 1fr); }
.barre-retour { margin: 0 0 10px; } .barre-retour[hidden] { display: none; }
.btn-retour { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border: 1px solid var(--champ-bord); border-radius: 999px; background: var(--card); color: var(--brand); font-weight: 700; text-decoration: none; font-size: .9rem; }
.btn-retour:hover { background: var(--brand-bg); }
.recherche-tiers { width: 320px; max-width: 100%; }
.nav-mois { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
tr[hidden] { display: none; }

/* 2.13.3 : respiration autour des boutons mois précédent / suivant */
.nav-mois { margin: 18px 0 20px; gap: 10px; }

/* 2.14.0 : disposition « grille » des pages Clients / Fournisseurs */
.grille-tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; } .grille-tuiles > * { margin: 0; min-width: 0; }
.duo-graphes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; } .duo-graphes > * { margin: 0; min-width: 0; }
.duo-alertes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; } .duo-alertes > * { margin: 0; }
html[data-vue=tablet] .duo-graphes, html[data-vue=mobile] .duo-graphes, html[data-vue=tablet] .duo-alertes, html[data-vue=mobile] .duo-alertes { grid-template-columns: 1fr; }
@media (max-width: 900px) { .duo-graphes, .duo-alertes { grid-template-columns: 1fr; } }

/* 2.15.0 : en-tête compact des pages du tableau financier (maquette H1) */
.barre-haut { background: var(--card); border: 1px solid var(--ligne); border-radius: 12px; margin: 0 0 16px; padding: 0 14px; }
.bh-l1, .bh-l2 { display: flex; align-items: center; gap: 10px 12px; }
.bh-l1 { min-height: 46px; flex-wrap: wrap; } .bh-l2 { min-height: 44px; border-top: 1px solid var(--ligne); flex-wrap: wrap; padding: 4px 0; }
.bh-retour { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--ligne); color: var(--brand); text-decoration: none; flex: none; } .bh-retour[hidden] { display: none; }
.bh-retour:hover { background: var(--brand-bg); } .bh-retour .ico { width: 18px; height: 18px; }
.bh-nom { font-weight: 700; font-size: .98rem; color: var(--ink); text-decoration: none; } .bh-nom:hover { color: var(--brand); }
.bh-sep { color: var(--muted); } .bh-page { font-weight: 600; } .bh-sp { flex: 1; }
.bh-donnees { color: var(--muted); font-size: .82rem; }
.bh-badge { background: var(--brand-bg); color: var(--brand-txt); border-radius: 999px; padding: 2px 9px; font-size: .74rem; font-weight: 600; }
.bh-exercice { display: inline-flex; align-items: center; gap: 6px; margin: 0; } .bh-exercice select { width: auto; padding: 4px 8px; font-size: .82rem; }
.bh-btn { padding: 5px 12px; font-size: .82rem; border-radius: 8px; box-shadow: none; }
.barre-haut .cloche { padding: 2px; } .barre-haut .cloche .ico { width: 20px; height: 20px; } .barre-haut .cloche .pastille-rouge { top: -6px; right: -8px; font-size: .65rem; }
.barre-haut .periode-presets { display: inline-flex; background: var(--bg); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: nowrap; overflow-x: auto; }
.barre-haut .puce { box-shadow: none; background: transparent; border-radius: 7px; padding: 4px 11px; font-size: .82rem; font-weight: 500; }
.barre-haut .puce.actif { background: var(--card); color: var(--brand); font-weight: 700; box-shadow: 0 1px 3px rgba(20,20,60,.15); }
.barre-haut .periode-form { gap: 6px; font-size: .82rem; color: var(--muted); } .barre-haut .periode-form label { font-weight: 400; }
.barre-haut .periode-form select { padding: 4px 8px; font-size: .82rem; }
.barre-haut .periode-etat { font-size: .8rem; }
.barre-titre { display: flex; align-items: center; gap: 12px; } .cloche-nom { padding: 2px; } .cloche-nom .ico { width: 24px; height: 24px; } .cloche-nom .pastille-rouge { top: -6px; right: -8px; }
html[data-vue=mobile] .bh-donnees { display: none; } html[data-vue=mobile] .barre-haut .deco-mobile { display: block; margin: 0; } html[data-vue=mobile] .barre-haut .periode-presets { width: 100%; }

/* 2.15.1 : en-tête sur une seule ligne, sans cadre (ni nom d'entreprise ni nom de page : déjà dans le menu et le titre) */
.barre-haut { background: transparent; border: 0; border-bottom: 1px solid var(--ligne); border-radius: 0; padding: 0 2px; margin: 0 0 16px; }
.barre-haut .bh-l1 { min-height: 46px; flex-wrap: wrap; gap: 8px 10px; padding: 4px 0; }
.barre-haut .bh-l2 { display: contents; } .barre-haut .bh-l2 > .bh-sp { display: none; }
.barre-haut .bh-retour { order: 0; } .barre-haut .periode-presets { order: 1; } .barre-haut .bh-badge { order: 2; }
.barre-haut .bh-donnees { order: 3; margin-left: auto; } .barre-haut .bh-exercice { order: 4; } .barre-haut .periode-form { order: 5; margin-left: 6px; }
.barre-haut .periode-etat { order: 6; } .barre-haut .cloche { order: 7; margin-left: 4px; } .barre-haut .deco-mobile { order: 8; }

/* 2.16.0 : détail des encaissements / décaissements d'un mois */
.duo-flux { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 14px; align-items: start; margin: 14px 0; } .duo-flux > * { margin: 0; min-width: 0; }
html[data-vue=tablet] .duo-flux, html[data-vue=mobile] .duo-flux { grid-template-columns: 1fr; } @media (max-width: 900px) { .duo-flux { grid-template-columns: 1fr; } }
.top3 h2 { margin: 0 0 10px; font-size: 1rem; } .top3-ligne { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ligne); } .top3-ligne:first-of-type { border-top: 0; }
.top3-rang { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: var(--brand); }
.top-vert .top3-rang { background: #16a34a; } .top-rouge .top3-rang { background: #dc2626; }
.top3-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; } .top3-texte strong, .top3-texte span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .top3-texte span { font-size: .8rem; }
.top3-montant { white-space: nowrap; font-size: 1.05rem; }

.filtre-flux { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; } .filtre-flux .coche { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; margin: 0; }
.filtre-flux input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand); }

/* 2.17.0 : page Ventes (maquette A) : courbe et suivi mensuel de même hauteur */
.duo-ca { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: stretch; } .duo-ca > * { margin: 0; min-width: 0; }
.duo-ca .graphe-carte { display: flex; flex-direction: column; } .duo-ca .graphe-carte .graphe-wrap { flex: 1; display: flex; align-items: center; } .duo-ca .graphe-carte .graphe-wrap > svg { width: 100%; height: auto; }
html[data-vue=tablet] .duo-ca, html[data-vue=mobile] .duo-ca { grid-template-columns: 1fr; } @media (max-width: 900px) { .duo-ca { grid-template-columns: 1fr; } }
.grille-tuiles .carte-jauge { display: flex; flex-direction: column; justify-content: center; text-align: center; }

.titre-periode { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 3px 14px; border-radius: 999px; background: var(--brand-bg); color: var(--brand-txt); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.btn-exercice { font-size: 1rem; padding: 10px 18px; box-shadow: 0 4px 14px rgba(67,56,202,.28); }

.bandeau-periode { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: -4px 0 14px; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--brand-bg); color: var(--brand-txt); }
.bandeau-periode strong { font-size: 1.05rem; }

/* 2.18.0 : pages Charges externes / Achats / Impôts / Masse salariale pour un seul mois : détail par compte et 5 plus grosses écritures alignés */
.duo-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 14px; align-items: stretch; margin: 0 0 14px; } .duo-detail > * { margin: 0; min-width: 0; }
.duo-detail h2 { margin: 0 0 10px; font-size: 1.05rem; } .carte-detail .table-wrap { box-shadow: none; }
.carte-top { display: flex; flex-direction: column; } .top-liste { flex: 1; display: flex; flex-direction: column; justify-content: space-between; } .top-liste .top3-ligne { flex: 1; border-top: 1px solid var(--ligne); } .top-liste .top3-ligne:first-child { border-top: 0; }
html[data-vue=tablet] .duo-detail, html[data-vue=mobile] .duo-detail { grid-template-columns: 1fr; } @media (max-width: 900px) { .duo-detail { grid-template-columns: 1fr; } }

/* 2.19.0 : page Ventes, 5 plus gros clients (remplace le suivi mensuel) et barres estompées */
.g-estompe .g-barre { opacity: .35; } .g-estompe .g-val { opacity: .55; } .g-estompe:hover .g-barre, .g-estompe:hover .g-val { opacity: 1; }
.pt-card { display: flex; flex-direction: column; } .pt-card h2 { margin: 0 0 10px; font-size: 1.05rem; } .pt-liste { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.pt-l { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ligne); flex: 1; } .pt-l:first-child { border-top: 0; }
.pt-r { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.pt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; } .pt-t strong a { color: var(--ink); text-decoration: none; } .pt-t strong a:hover { color: var(--brand); text-decoration: underline; } .pt-t span { color: var(--muted); font-size: .8rem; }
.pt-b { height: 6px; border-radius: 3px; background: var(--surf2); margin-top: 5px; overflow: hidden; } .pt-b i { display: block; height: 100%; background: var(--brand-2); }
.pt-m { white-space: nowrap; } .pt-note { margin: 8px 0 0; }
.pt-b i.pt-w0 { width: 0%; } .pt-b i.pt-w5 { width: 5%; } .pt-b i.pt-w10 { width: 10%; } .pt-b i.pt-w15 { width: 15%; } .pt-b i.pt-w20 { width: 20%; } .pt-b i.pt-w25 { width: 25%; } .pt-b i.pt-w30 { width: 30%; } .pt-b i.pt-w35 { width: 35%; } .pt-b i.pt-w40 { width: 40%; } .pt-b i.pt-w45 { width: 45%; } .pt-b i.pt-w50 { width: 50%; } .pt-b i.pt-w55 { width: 55%; } .pt-b i.pt-w60 { width: 60%; } .pt-b i.pt-w65 { width: 65%; } .pt-b i.pt-w70 { width: 70%; } .pt-b i.pt-w75 { width: 75%; } .pt-b i.pt-w80 { width: 80%; } .pt-b i.pt-w85 { width: 85%; } .pt-b i.pt-w90 { width: 90%; } .pt-b i.pt-w95 { width: 95%; } .pt-b i.pt-w100 { width: 100%; } 

/* 2.20.0 : Vue d'ensemble (V1), Charges / Produits (A), Résultats (B), Immobilisations (A) */
.col-cote { display: grid; gap: 14px; align-content: start; min-width: 0; } .col-cote > * { margin: 0; min-width: 0; }
.duo-ca > .col-cote { align-content: stretch; grid-template-rows: auto 1fr; }
.duo-egal-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; } .duo-egal-2 > * { margin: 0; min-width: 0; }
.duo-egal-2 > .carte h2 { margin: 0 0 10px; font-size: 1.05rem; }
html[data-vue=tablet] .duo-egal-2, html[data-vue=mobile] .duo-egal-2 { grid-template-columns: 1fr; } @media (max-width: 900px) { .duo-egal-2 { grid-template-columns: 1fr; } }
.carte-detail .defile { max-height: 560px; }
.grille-tuiles + .duo-ca, .grille-tuiles + .duo-egal-2, .duo-ca + .duo-egal-2 { margin-top: 14px; }

/* version 2.21 : thème clair « Azur clair » (inspiré du gabarit Youcare) — bleu vif, cartes blanches très arrondies, menu latéral blanc, pastille active en dégradé bleu */
html[data-theme=azur] {
  --brand: #1e5ee4; --brand-2: #4f81f0; --brand-fonce: #1e3a8a; --brand-hover: #1a4fc4;
  --ink: #1b2a4a; --muted: #7783a0; --bg: #f8f9fb; --card: #fff; --ligne: #eceff5;
  --champ: #fff; --champ-bord: #d9e0ee; --surf: #f6f8fc; --surf2: #e9efff; --surf3: #cdd8f0;
  --brand-bg: #e8f0ff; --brand-txt: #2457c9; --info-bg: #e3efff; --info-txt: #1d4f9c; --lien-nav: #5b6a8a;
  --rayon: 20px; --ombre: 0 1px 2px rgba(30,60,140,.03), 0 10px 30px rgba(30,60,140,.06);
  --spook: #1e5ee4; --spook-2: #4f81f0; --spook-encre: #1e5ee4; --spook-clair: #eef4ff; --spook-bord: #bcd0fb; --spook-txt: #1d4fc4; --spook-ico: #1e5ee4;
}
html[data-theme=azur] .nav { background: var(--card); color: var(--ink); border-right: 1px solid var(--ligne); }
html[data-theme=azur] .nav-haut, html[data-theme=azur] .nav-entreprise { color: var(--brand); }
html[data-theme=azur] .nav-entreprise { border-bottom-color: var(--ligne); color: var(--ink); }
html[data-theme=azur] .nav-titre { color: #9aa6c0; }
html[data-theme=azur] .nav-lien, html[data-theme=azur] .lien-deco { border-radius: 999px; color: var(--lien-nav); }
html[data-theme=azur] .nav-lien:hover, html[data-theme=azur] .lien-deco:hover { background: var(--brand-bg); color: var(--brand); }
html[data-theme=azur] .nav-lien.actif { background: linear-gradient(180deg, #3f76f5, #1e5ee4); color: #fff; box-shadow: 0 6px 16px rgba(30,94,228,.28); }
html[data-theme=azur] .nav-bas { border-top-color: var(--ligne); }
html[data-theme=azur] .moi span { color: var(--muted); }
html[data-theme=azur] .nav-liens-compta { scrollbar-color: #cdd8f0 transparent; }
html[data-theme=azur] .btn { border-radius: 999px; }
html[data-theme=azur] .btn-plein { background: linear-gradient(180deg, #3f76f5, #1e5ee4); border-color: transparent; box-shadow: 0 6px 16px rgba(30,94,228,.25); }
html[data-theme=azur] .btn-plein:hover { background: linear-gradient(180deg, #3568e0, #1a4fc4); }
html[data-theme=azur] input[type=text], html[data-theme=azur] input[type=password], html[data-theme=azur] input[type=email], html[data-theme=azur] input[type=search], html[data-theme=azur] select, html[data-theme=azur] textarea, html[data-theme=azur] input:not([type]) { border-radius: 14px; }
html[data-theme=azur] .carte, html[data-theme=azur] .stat, html[data-theme=azur] .tuile-kpi, html[data-theme=azur] .table-wrap { border: 1px solid rgba(230,235,245,.8); }
html[data-theme=azur] .barre-haut { border-radius: 18px; border-color: var(--ligne); box-shadow: var(--ombre); }
html[data-theme=azur] .badge, html[data-theme=azur] .onglets a, html[data-theme=azur] .puce { border-radius: 999px; }
html[data-theme=azur] .onglets a { background: var(--card); box-shadow: var(--ombre); }
html[data-theme=azur] .onglets a.actif { background: linear-gradient(180deg, #3f76f5, #1e5ee4); color: #fff; box-shadow: 0 6px 16px rgba(30,94,228,.25); }   /* 2.26.3 : onglet actif lisible */
html[data-theme=azur] .carte-bleue, html[data-theme=azur] .kpi-accent { background: linear-gradient(180deg, #1c5ded 0%, #3a70f0 50%, #6e98f5 100%); box-shadow: 0 14px 32px rgba(30,94,228,.25); }
html[data-theme=azur] .g-col:hover .g-zone { fill: rgba(30,94,228,.08); }
html[data-theme=azur] .g-s2 { fill: #f5a524; } html[data-theme=azur] .g-s3 { fill: #22c3b0; }
html[data-theme=azur] .g-pastille.g-s2 { background: #f5a524; } html[data-theme=azur] .g-pastille.g-s3 { background: #22c3b0; }
html[data-theme=azur] input:focus, html[data-theme=azur] select:focus, html[data-theme=azur] textarea:focus, html[data-theme=azur] .btn:focus-visible, html[data-theme=azur] a:focus-visible { outline-color: rgba(30,94,228,.35); }
.sw-azur { background: linear-gradient(135deg, #f8f9fb 50%, #1e5ee4 50%); }

/* version 2.23 : Spook, l'assistant IA (bulle, fenêtre compacte, page en grand, administration) */
.sp-ghost { display: block; flex: none; }
.sp-ghost .sp-corps { fill: #fff; } .sp-ghost .sp-oeil { fill: #1f2547; } .sp-ghost .sp-reflet { fill: #fff; }
.sp-ghost .sp-trait { fill: none; stroke: #1f2547; stroke-width: 2.4; stroke-linecap: round; } .sp-ghost .sp-joue { fill: #ff9db5; opacity: .65; }
.sp-ghost.sp-gris .sp-corps { fill: var(--surf2); } .sp-ghost.sp-gris .sp-oeil { fill: var(--muted); } .sp-ghost.sp-gris .sp-trait { stroke: var(--muted); }
.sp-racine { --pct: 100%; }
.sp-bulle { position: fixed; right: 26px; bottom: 24px; z-index: 60; width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: conic-gradient(var(--spook) 0 var(--pct), var(--surf3) var(--pct) 100%); box-shadow: 0 10px 28px rgba(30, 30, 80, .25); transition: transform .15s; }
.sp-bulle:hover { transform: translateY(-2px); } .sp-bulle:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 3px; }
.sp-bulle .sp-in { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--spook-2), var(--spook)); }
.sp-bulle.bas { background: conic-gradient(#d97706 0 var(--pct), var(--surf3) var(--pct) 100%); }
.sp-bulle.vide .sp-in { background: linear-gradient(160deg, #9ca3af, #6b7280); }
.sp-tip { position: fixed; right: 102px; bottom: 38px; z-index: 60; background: var(--card); color: var(--ink); border-radius: 14px; padding: 9px 14px; font-size: .88rem;
  font-weight: 600; box-shadow: var(--ombre); }
.sp-tip small { display: block; color: var(--muted); font-weight: 500; font-size: .78rem; }
body.avec-spook .page { padding-bottom: 104px; }
.sp-panel { position: fixed; right: 26px; bottom: 100px; z-index: 61; width: 392px; height: min(640px, calc(100vh - 124px)); background: var(--card); border-radius: 22px;
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--ligne); box-shadow: 0 24px 60px rgba(25, 25, 70, .22), 0 2px 6px rgba(25, 25, 70, .08); }
.sp-panel[hidden] { display: none; }
.sp-tete { display: flex; align-items: center; gap: 11px; padding: 13px 12px 12px 16px; background: linear-gradient(160deg, var(--spook-2), var(--spook)); color: #fff; }
.sp-tete .sp-av { width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: grid; place-items: center; flex: none; }
.sp-tete strong { font-size: 1.05rem; display: block; line-height: 1.2; } .sp-tete .sp-sous { font-size: .76rem; opacity: .88; display: block; }
.sp-tete .sp-titre { min-width: 0; } .sp-tete .sp-sous { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.sp-act { margin-left: auto; display: flex; gap: 4px; }
.sp-act button, .sp-act a { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .14); border: 0; color: #fff; cursor: pointer; padding: 0; }
.sp-act button:hover, .sp-act a:hover { background: rgba(255, 255, 255, .26); }
.sp-trait-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sp-nrj { display: flex; align-items: center; gap: 8px; padding: 9px 16px; background: var(--surf); border-bottom: 1px solid var(--ligne); font-size: .8rem; color: var(--muted); }
.sp-eclair { width: 15px; height: 15px; fill: var(--spook-ico); flex: none; }
.sp-nrj .sp-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surf3); overflow: hidden; }
.sp-nrj .sp-bar i { display: block; height: 100%; width: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--spook-2), var(--spook)); transition: width .4s; }
.sp-nrj b { color: var(--ink); min-width: 3.2em; text-align: right; }
.sp-nrj.bas .sp-eclair { fill: #d97706; } .sp-nrj.bas .sp-bar i { background: linear-gradient(90deg, #fbbf24, #d97706); } .sp-nrj.bas b { color: #b45309; }
.sp-nrj.vide .sp-eclair { fill: #9ca3af; } .sp-nrj.vide b { color: var(--muted); }
.sp-fil { flex: 1; overflow-y: auto; padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.sp-fil[hidden] { display: none; }
.sp-ligne { display: flex; gap: 8px; align-items: flex-end; } .sp-ligne.moi { justify-content: flex-end; }
.sp-mini { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(160deg, var(--brand-2), var(--brand)); display: grid; place-items: center; flex: none; }
.sp-m { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .9rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.sp-m.ia { background: var(--surf2); color: var(--ink); border-bottom-left-radius: 5px; }
.sp-m.moi { background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.sp-m.refus { background: var(--warn-bg-doux); border: 1px solid var(--warn-bg); }
.sp-m.erreur { background: var(--err-bg-doux); border: 1px solid var(--err-bg); color: var(--err-txt); }
.sp-m.sp-attente { display: flex; gap: 5px; align-items: center; padding: 13px 15px; }
.sp-m.sp-attente i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: sp-pulse 1.2s infinite ease-in-out; }
.sp-m.sp-attente i:nth-child(2) { animation-delay: .2s; } .sp-m.sp-attente i:nth-child(3) { animation-delay: .4s; }
@keyframes sp-pulse { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1); } }
.sp-dort { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 6px; }
.sp-dort[hidden] { display: none; }
.sp-dort h3 { margin: 6px 0 2px; font-size: 1.1rem; } .sp-dort p { color: var(--muted); font-size: .88rem; margin: 0 0 10px; max-width: 300px; }
.sp-zzz { font-weight: 800; color: var(--muted); margin-top: -6px; letter-spacing: .2em; }
.sp-ok { background: var(--ok-bg-doux); border: 1px solid var(--ok-bg); color: var(--ok); border-radius: 14px; padding: 10px 14px; font-size: .85rem; max-width: 320px; }
.sp-ok[hidden] { display: none; }
.sp-saisie { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ligne); background: var(--card); margin: 0; }
.sp-saisie .sp-champ { flex: 1; min-height: 44px; border-radius: 22px; padding: 10px 16px; font-size: .95rem; }
.sp-saisie.eteint { opacity: .5; }
.sp-rond { width: 42px; height: 42px; min-height: 42px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--ligne); background: var(--surf); cursor: pointer; padding: 0; color: var(--ink); }
.sp-rond svg { width: 20px; height: 20px; } .sp-rond.etoile svg { fill: var(--brand); }
.sp-rond.etoile.on { background: var(--brand-bg); border-color: var(--brand); }
.sp-rond.envoi { background: var(--brand); border-color: var(--brand); color: #fff; }
.sp-note { font-size: .72rem; color: var(--muted); text-align: center; padding: 0 12px 10px; background: var(--card); }
.sp-pop { position: absolute; left: 12px; right: 12px; bottom: 112px; z-index: 5; max-height: 60%; overflow-y: auto; background: var(--card); border: 1px solid var(--ligne);
  border-radius: 18px; box-shadow: 0 18px 44px rgba(25, 25, 70, .2); padding: 12px; }
.sp-pop[hidden] { display: none; }
.sp-panel { position: fixed; } .sp-panel .sp-pop { bottom: 96px; }
.sp-pop h4 { margin: 0 0 8px; font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sp-onglets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sp-onglets button { padding: 5px 11px; border-radius: 99px; background: var(--surf); font: inherit; font-size: .78rem; font-weight: 600; color: var(--muted); border: 1px solid var(--ligne); cursor: pointer; min-height: 0; }
.sp-onglets button.on { background: var(--brand); color: #fff; border-color: var(--brand); } .sp-onglets button.verrou { opacity: .65; }
.sp-q { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 12px; background: var(--surf); border: 0; margin-top: 6px; font: inherit; font-size: .86rem; color: var(--ink); cursor: pointer; min-height: 0; }
.sp-q::before { content: "›"; color: var(--brand); font-weight: 800; margin-right: 8px; } .sp-q:hover { background: var(--brand-bg); }
.sp-qs[hidden] { display: none; }
/* page en grand */
.sp-entete { display: flex; align-items: center; gap: 14px; margin: 4px 0 16px; }
.sp-entete .titre-grand { font-size: 1.7rem; }
.sp-gros { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(160deg, var(--spook-2), var(--spook)); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(67, 56, 202, .25); flex: none; }
.sp-droite { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.sp-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; height: calc(100vh - 210px); min-height: 520px; }
.sp-conv { position: relative; background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.sp-page .sp-fil { padding: 22px 24px; gap: 14px; } .sp-page .sp-m { font-size: .96rem; max-width: 74%; }
.sp-page .sp-saisie { padding: 14px 18px; } .sp-page .sp-pop { bottom: 100px; left: 18px; right: auto; width: min(560px, calc(100% - 36px)); }
.sp-col { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }
.sp-col .carte { margin: 0; padding: 18px; } .sp-col h3 { margin: 0 0 10px; font-size: 1rem; }
.sp-col .sp-q { padding: 7px 11px; font-size: .83rem; } .sp-col .aide { font-size: .82rem; margin: 8px 0 0; } .sp-col .btn { margin-top: 10px; }
.sp-anneau { width: 118px; height: 118px; border-radius: 50%; margin: 4px auto 8px; display: grid; place-items: center; background: conic-gradient(var(--spook) 0 var(--pct), var(--surf3) var(--pct) 100%); }
.sp-anneau.bas { background: conic-gradient(#d97706 0 var(--pct), var(--surf3) var(--pct) 100%); }
.sp-anneau .sp-in { width: 96px; height: 96px; border-radius: 50%; background: var(--card); display: grid; place-items: center; text-align: center; }
.sp-anneau b { font-size: 1.5rem; display: block; line-height: 1.1; } .sp-anneau small { color: var(--muted); font-size: .78rem; }
.sp-sait { list-style: none; margin: 0; padding: 0; font-size: .86rem; }
.sp-sait li { padding: 4px 0 4px 24px; position: relative; } .sp-sait li::before { position: absolute; left: 0; font-weight: 800; }
.sp-sait li.oui::before { content: "✓"; color: var(--ok); } .sp-sait li.non::before { content: "✕"; color: var(--err); }
.sp-demande-txt { color: var(--ok) !important; }
@media (max-width: 1100px) { .sp-page { grid-template-columns: 1fr; height: auto; } .sp-conv { height: 70vh; } }
@media (max-width: 640px) {
  .sp-panel { right: 0; left: 0; bottom: 0; top: 0; width: auto; height: auto; border-radius: 0; }
  .sp-bulle { right: 16px; bottom: 16px; } .sp-tip { display: none; }
}
html[data-vue=mobile] .sp-panel { right: 0; left: 0; bottom: 0; top: 0; width: auto; height: auto; border-radius: 0; }
/* administration */
.sp-grille4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.sp-grille4 .carte { margin: 0; padding: 16px 18px; } .sp-grille4 .lab { color: var(--muted); font-size: .82rem; }
.sp-grille4 .val { font-size: 1.4rem; font-weight: 800; margin-top: 4px; } .sp-grille4 .pt { font-size: .78rem; color: var(--muted); }
.sp-grille4 .val.ok { color: var(--ok); } .sp-grille4 .val.ko { color: var(--err); } .sp-grille4 .carte.alerte-demande { background: var(--warn-bg-doux); }
.sp-jauge { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.sp-jauge .sp-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surf3); overflow: hidden; }
.sp-jauge .sp-bar i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.sp-jauge.bas .sp-bar i { background: #d97706; } .sp-jauge.vide .sp-bar i { background: #9ca3af; }
.sp-badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.sp-badge.att { background: var(--warn-bg); color: var(--warn-txt); } .sp-badge.ok { background: var(--ok-bg); color: var(--ok); } .sp-badge.off { background: var(--surf2); color: var(--muted); }
.sp-duo { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sp-journal { font-family: ui-monospace, Consolas, monospace; font-size: .76rem; background: var(--surf); border-radius: 10px; padding: 10px 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0 0; }
.sp-journal-ligne { border-bottom: 1px solid var(--ligne); padding: 8px 0; } .sp-journal-ligne summary { cursor: pointer; font-size: .86rem; }
.sp-journal-ligne summary .muted { font-size: .8rem; }
@media (max-width: 1100px) { .sp-grille4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-duo { grid-template-columns: 1fr; } }
.sp-jauge .sp-bar.pt-b { margin-top: 0; height: 8px; border-radius: 99px; background: var(--surf3); }
.sp-jauge .sp-bar.pt-b i { background: var(--brand); border-radius: 99px; } .sp-jauge.bas .sp-bar.pt-b i { background: #d97706; } .sp-jauge.vide .sp-bar.pt-b i { background: #9ca3af; }
.sp-tableau td:first-child { min-width: 210px; } .sp-tableau .sp-jauge { min-width: 120px; } .sp-tableau .sp-bloc { display: block; font-size: .8rem; } .sp-nowrap { white-space: nowrap; }
.sp-tableau td form .btn { white-space: nowrap; }
.sp-test { font-size: .86rem; border-radius: 10px; padding: 8px 12px; margin: 10px 0 0; } .sp-test.ok { background: var(--ok-bg-doux); color: var(--ok); } .sp-test.ko { background: var(--err-bg-doux); color: var(--err-txt); }
.sp-alertes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.sp-alerte { border-radius: 12px; padding: 10px 14px; font-size: .9rem; font-weight: 600; }
.sp-alerte.err { background: var(--err-bg-doux); border: 1px solid var(--err-bg); color: var(--err-txt); }
.sp-alerte.warn { background: var(--warn-bg-doux); border: 1px solid var(--warn-bg); color: var(--warn-txt); }
.nav-lien .pastille-rouge { margin-left: auto; }
.sp-liste { margin: 8px 0 6px; border-top: 1px solid var(--surf3); white-space: normal; }
.sp-liste-l { padding: 7px 0; border-bottom: 1px solid var(--surf3); font-size: .82rem; }
.sp-l-haut { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; }
.sp-l-lib { overflow-wrap: anywhere; font-weight: 500; }
.sp-l-bas { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; font-size: .76rem; color: var(--muted); }
.sp-l-date { white-space: nowrap; }
.sp-l-cpt { display: block; font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; margin-top: 1px; }
.sp-l-mt { margin-left: auto; white-space: nowrap; font-weight: 700; text-align: right; color: var(--ink, inherit); font-size: .8rem; }
.sp-l-tag { white-space: nowrap; font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: #eceafd; color: #5a43c9; }
.sp-liste-l.sp-proche { background: var(--spook-clair); border-radius: 10px; margin: 4px -8px; padding: 8px 8px 8px 11px; box-shadow: inset 3px 0 0 var(--spook-encre); border-bottom-color: transparent; }
.sp-proche .sp-l-tag { background: var(--spook); color: #fff; }
.sp-liste-titre { display: block; font-weight: 600; margin-top: 8px; font-size: .84rem; }
.sp-liste-reste { font-size: .8rem; color: var(--muted); padding-top: 5px; }
.sp-liste-phrase { font-weight: 600; margin-top: 4px; }
.sp-page .sp-liste-l { font-size: .88rem; }
.sp-choix { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; white-space: normal; }
.sp-choix button { text-align: left; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--brand); background: var(--card); color: var(--brand-txt);
  font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; min-height: 0; }
.sp-choix button:hover { background: var(--brand-bg); }
.sp-choix-aide { font-size: .76rem; color: var(--muted); }
/* 2.35.0 : « Vous voulez dire : … » : Oui (plein) et Non côte à côte */
.sp-choix.sp-oui-non { flex-direction: row; flex-wrap: wrap; align-items: center; }
.sp-choix.sp-oui-non button { min-width: 72px; text-align: center; }
.sp-choix.sp-oui-non button:first-child { background: var(--brand); border-color: var(--brand); color: #fff; }
.sp-choix.sp-oui-non button:first-child:hover { filter: brightness(1.08); }
.sp-choix.sp-oui-non .sp-choix-aide { flex-basis: 100%; }

/* version 2.26.1 : page d'administration de Spook en pleine largeur (deux colonnes ; quatre tuiles depuis le retrait de la voix en 2.29.0) */
.sp-tuiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-tuile-lien { display: block; text-decoration: none; color: inherit; transition: transform .12s; } .sp-tuile-lien:hover { transform: translateY(-2px); }
.sp-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); gap: 18px; align-items: start; }
.sp-admin-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sp-admin-col > .carte { margin: 0; }
.sp-admin-col > .carte > h2 { margin-top: 0; }
@media (max-width: 1500px) { .sp-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-admin { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .sp-tuiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
html[data-vue=mobile] .sp-admin { grid-template-columns: 1fr; } html[data-vue=mobile] .sp-tuiles { grid-template-columns: 1fr; }

/* version 2.26.2 : toutes les pages en pleine largeur ; les longs formulaires se rangent en colonnes sur grand écran */
.form-grille.form-multi { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); align-items: end; }
.modules { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* version 2.27 : le tableau de Spook (journal, analyses à la demande, prévisionnel) — tableau noir à la craie ou tableau blanc au feutre */
@font-face { font-family: 'Craie'; font-style: normal; font-weight: 400; font-display: swap; src: url(/police/craie-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191-2193, U+2212, U+2215; }
@font-face { font-family: 'Craie'; font-style: normal; font-weight: 400; font-display: swap; src: url(/police/craie-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
.pastille-nouveau { margin-left: auto; padding: 1px 8px; border-radius: 99px; background: #fde68a; color: #7c4a03; font-size: .68rem; font-weight: 800; font-style: normal; letter-spacing: .02em; }
.tbx-nouveau { display: inline-block; margin-left: 12px; padding: 3px 10px; border-radius: 99px; background: #fde68a; color: #7c4a03; font-size: .74rem; font-weight: 800; vertical-align: 6px; }
.tbx-par { font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: 8px; }
.tbx-grille { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 22px; align-items: start; }
.tbx-principal { min-width: 0; padding-bottom: 34px; }
.tb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ----- le tableau ----- */
.tb { position: relative; border-radius: 14px; padding: 30px 34px 130px; color: #f2efe6; font-family: 'Craie', 'Patrick Hand', 'Comic Sans MS', cursive;
  background: radial-gradient(ellipse at 18% 22%, rgba(255,255,255,.07), transparent 42%), radial-gradient(ellipse at 82% 70%, rgba(255,255,255,.05), transparent 40%),
    radial-gradient(ellipse at 55% 10%, rgba(255,255,255,.04), transparent 35%), linear-gradient(170deg, #284a3f 0%, #1f3c33 55%, #1b352d 100%);
  border: 16px solid #9a6a3f; box-shadow: inset 0 0 0 3px #6f4826, inset 0 0 40px rgba(0,0,0,.35), 0 18px 40px rgba(20, 30, 60, .22); margin-bottom: 40px; }
.tb::after { content: ""; position: absolute; left: -16px; right: -16px; bottom: -32px; height: 18px; background: linear-gradient(#a8784a, #7d5430); border-radius: 0 0 8px 8px; box-shadow: 0 6px 12px rgba(0,0,0,.2); }
.tb-rebord { position: absolute; bottom: -28px; left: 60px; display: flex; gap: 14px; align-items: flex-end; z-index: 2; }
.tb-rebord i { display: block; width: 46px; height: 9px; border-radius: 4px; background: #f4f1e8; } .tb-rebord i.j { background: #f7e48b; width: 34px; } .tb-rebord i.r { background: #f6a9c0; width: 28px; }
.tb-rebord b { display: block; width: 74px; height: 16px; border-radius: 4px; background: linear-gradient(#4a4a55 0 45%, #d9c7a7 45%); margin-left: 18px; }
.tb a.tb-a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(242,239,230,.45); }
.tb a.tb-a:hover { border-bottom-style: solid; color: #fff; }
.tb-haut { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px dashed rgba(242,239,230,.35); padding-bottom: 12px; margin-bottom: 18px; }
.tb-titre { font-size: 2.3rem; line-height: 1; letter-spacing: .5px; }
.tb-date { font-size: 1.35rem; color: #f7e48b; }
.tb-ancien { font-size: 1.05rem; color: #f6a9c0; border: 2px solid rgba(246,169,192,.6); border-radius: 10px; padding: 0 10px; }
.tb-sous { width: 100%; font-size: 1.12rem; color: rgba(242,239,230,.8); }
.tb a.tb-retour { margin-left: auto; font-size: 1.1rem; color: #a8d8f5; border: 2px solid rgba(168,216,245,.6); border-radius: 10px; padding: 3px 12px; text-decoration: none; }
.tb-h { font-size: 1.55rem; margin: 0 0 8px; color: #f7e48b; font-weight: 400; font-family: inherit; }
.tb-h.v { color: #a7e8b8; } .tb-h.r { color: #f6a9c0; } .tb-h.b { color: #a8d8f5; } .tb-h.o { color: #f8c48a; } .tb-h.j { color: #f7e48b; }
.tb-texte { font-size: 1.32rem; line-height: 1.45; margin: 0; }
.tb-texte b, .tb-l b { color: #fff; font-weight: 400; text-decoration: underline; text-decoration-color: rgba(247,228,139,.7); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tb-repos { font-size: 1.02rem; color: #f6a9c0; margin: 8px 0 0; }
.tb-avis { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 18px; align-items: start; margin-bottom: 22px; }
.tb-avis-txt.apparait { animation: tb-apparait .9s ease-out; }
@keyframes tb-apparait { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
.tb-ecrit span { margin-right: 4px; } .tb-ecrit i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f2efe6; margin: 0 3px; animation: tb-point 1.2s infinite ease-in-out; }
.tb-ecrit i:nth-child(3) { animation-delay: .2s; } .tb-ecrit i:nth-child(4) { animation-delay: .4s; }
@keyframes tb-point { 0%, 80%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.tb-humeur { text-align: center; padding-top: 34px; }
.tb-cap { display: inline-block; white-space: nowrap; font-size: 1.2rem; color: #1f3c33; background: #a7e8b8; padding: 3px 14px; border-radius: 12px; transform: rotate(-3deg); }
.tb-cap.en-bonne-voie { background: #f7e48b; } .tb-cap.a-rattraper { background: #f6a9c0; } .tb-cap.aucun { background: #f2efe6; }
.tb a.tb-cap-lien { display: block; margin-top: 10px; font-size: 1.05rem; color: #a8d8f5; border: 0; }
.tb-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.tb-cadre { border: 2px solid rgba(242,239,230,.45); border-radius: 14px 18px 12px 16px; padding: 14px 16px; min-width: 0; }
.tb-rappels { margin-top: 18px; }
.tb-l { font-size: 1.16rem; line-height: 1.35; margin: 0 0 9px; padding-left: 26px; position: relative; }
.tb-l::before { position: absolute; left: 0; top: 0; font-size: 1.2rem; }
.tb-l.ok::before { content: "✓"; color: #a7e8b8; } .tb-l.up::before { content: "↗"; color: #f8c48a; } .tb-l.down::before { content: "↘"; color: #f8c48a; }
.tb-l.bon::before { color: #a7e8b8; }
.tb-l.att::before { content: "!"; color: #f6a9c0; font-weight: 700; left: 6px; } .tb-l.pt::before { content: "•"; color: #f7e48b; left: 4px; }
.tb-l small { display: block; color: rgba(242,239,230,.72); font-size: 1rem; }
.tb-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.tb-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.tb-kpis.q { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tb-kpi { border: 2px solid rgba(242,239,230,.45); border-radius: 16px 12px 18px 12px; padding: 10px 14px; min-width: 0; }
.tb-kpi .n { font-size: 2rem; line-height: 1.05; color: #fff; overflow-wrap: anywhere; }
.tb-kpi .n.j { color: #f7e48b; } .tb-kpi .n.v { color: #a7e8b8; } .tb-kpi .n.r { color: #f6a9c0; } .tb-kpi .n.b { color: #a8d8f5; }
.tb-kpi .l { font-size: 1.08rem; color: rgba(242,239,230,.82); line-height: 1.25; }
.tb-kpi .p { font-size: .98rem; color: rgba(242,239,230,.62); }
.tb-graph { margin: 6px 0 16px; } .tb-graph.petit { margin: 4px 0 10px; }
.tb-graph svg { width: 100%; height: auto; display: block; }
.tb-legende { display: flex; gap: 20px; flex-wrap: wrap; font-size: 1.05rem; color: rgba(242,239,230,.85); margin: -4px 0 14px; }
.tb-legende i { display: inline-block; width: 22px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: 1px; border: 2px solid; }
.tb-legende i.lg-tirets { border-style: dashed; background: transparent; } .tb-legende i.lg-trait { height: 0; border-width: 2px 0 0; border-radius: 0; }
.tb-legende .ve { border-color: #a7e8b8; } .tb-legende .lg-plein.ve { background: rgba(167,232,184,.55); }
.tb-legende .ro { border-color: #f6a9c0; } .tb-legende .lg-plein.ro { background: rgba(246,169,192,.55); }
.tb-legende .bu { border-color: #a8d8f5; } .tb-legende .lg-plein.bu { background: rgba(168,216,245,.45); }
.tb-legende .ja { border-color: #f7e48b; } .tb-legende .lg-plein.ja { background: rgba(247,228,139,.55); }
.tb-pied { font-size: 1.02rem; color: rgba(242,239,230,.62); margin: 16px 0 0; max-width: calc(100% - 230px); }
.tb-signe { position: absolute; right: 26px; bottom: 22px; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.tb-bulle { background: #f2efe6; color: #1f3c33; font-size: 1.15rem; padding: 6px 14px; border-radius: 16px 16px 4px 16px; margin-bottom: 40px; }
.tb-bulle[hidden] { display: none; }
.tb.ecrit .tb-fantome { animation: tb-flotte 1.6s ease-in-out infinite; }
@keyframes tb-flotte { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.tb-piste { border: 2px solid rgba(242,239,230,.45); border-radius: 14px 18px 12px 16px; padding: 12px 14px; min-width: 0; }
.tb-piste .t { font-size: 1.22rem; color: #fff; line-height: 1.2; } .tb-piste .m { font-size: 1.55rem; color: #f7e48b; line-height: 1.1; margin-top: 4px; }
.tb-piste .d { font-size: 1.02rem; color: rgba(242,239,230,.85); line-height: 1.3; margin: 6px 0 8px; }
.tb-piste .g { display: inline-block; font-size: 1rem; color: #1f3c33; background: #a7e8b8; border-radius: 10px; padding: 1px 10px; } .tb-piste .g.haut { background: #f8c48a; }
.tb-pistes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 6px 0 18px; }
.tb-table { width: 100%; border-collapse: collapse; font-size: 1.12rem; }
.tb-table th { text-align: right; font-weight: 400; color: #f7e48b; padding: 4px 10px; border-bottom: 2px solid rgba(242,239,230,.4); vertical-align: bottom; }
.tb-table th small { display: block; color: rgba(242,239,230,.6); font-size: .9rem; }
.tb-table th:first-child, .tb-table td:first-child { text-align: left; }
.tb-table td { text-align: right; padding: 5px 10px; border-bottom: 1px dashed rgba(242,239,230,.25); white-space: nowrap; }
.tb-table td.neg, .tb-table tr.sig-total td.neg, .tb-table tr.sig-grand td.neg { color: #f6a9c0; }
.tb-table tr.sig-total td { color: #fff; font-size: 1.2rem; background: transparent; } .tb-table tr.sig-grand td { color: #f7e48b; font-size: 1.3rem; border-bottom: 2px solid rgba(242,239,230,.45); }
.tb-table tr.sig-moins td:first-child, .tb-table tr.sig-plus td:first-child { padding-left: 22px; color: rgba(242,239,230,.85); }
.tb-table.hyp th, .tb-table.hyp td { text-align: left; white-space: normal; } .tb-table.hyp td.sp { color: #f7e48b; } .tb-table.hyp td.pq { color: rgba(242,239,230,.8); font-size: 1.02rem; }
.tb-table.hyp tr.change td:first-child::before { content: "✎ "; color: #f7e48b; }
.tb-defile { overflow-x: auto; margin: 0 0 22px; }
.cap-liste { display: flex; flex-direction: column; gap: 12px; }
.cap-l { display: grid; grid-template-columns: 230px minmax(0, 1fr) 320px; gap: 18px; align-items: center; border-bottom: 1px dashed rgba(242,239,230,.25); padding-bottom: 10px; }
.cap-n { font-size: 1.3rem; display: block; } .cap-s small { display: block; font-size: 1.05rem; color: rgba(242,239,230,.8); line-height: 1.3; }
.cap-g svg { width: 100%; height: auto; display: block; }
.cap-e { display: inline-block; font-size: 1.12rem; padding: 0 12px; border-radius: 10px; transform: rotate(-2deg); color: #1f3c33; background: #a7e8b8; margin-top: 4px; }
.cap-e.vigilance { background: #f7e48b; } .cap-e.retard { background: #f6a9c0; }
.tb-infos { margin: 0 0 22px; }
.tb-info { display: flex; gap: 10px; align-items: flex-start; } .tb-info .tb-l { flex: 1; }
.tb-client { color: #a8d8f5; }
.tb-suppr button { background: transparent; border: 2px solid rgba(242,239,230,.45); color: #f2efe6; border-radius: 50%; width: 30px; height: 30px; font: inherit; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.tb-ajout-form { display: flex; gap: 10px; margin: 10px 0 12px; }
.tb-ajout-form input { flex: 1; min-height: 42px; background: rgba(255,255,255,.06); border: 2px dashed rgba(168,216,245,.6); color: #f2efe6; border-radius: 10px; font: inherit; font-size: 1.12rem; padding: 4px 12px; }
.tb-ajout-form input::placeholder { color: rgba(242,239,230,.5); }
.tb-bouton { font: inherit; font-size: 1.12rem; color: #a8d8f5; background: transparent; border: 2px solid rgba(168,216,245,.7); border-radius: 10px; padding: 4px 14px; cursor: pointer; }
.tb-bouton.fort { color: #1f3c33; background: #f7e48b; border-color: #f7e48b; font-size: 1.22rem; padding: 6px 18px; }
.tb-bouton:disabled { opacity: .5; cursor: not-allowed; }
.tb-recalc { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .tb-note { font-size: 1.02rem; color: #f7e48b; }
.tb-attente { padding: 26px 24px; }
.tb.recalcul .tb-graph, .tb.recalcul .tb-kpis, .tb.recalcul .tb-table { opacity: .45; transition: opacity .3s; }
.tbx-sous-tb { margin: -14px 0 22px; display: flex; justify-content: flex-end; }
.tbx-titre-mois { margin-top: 8px; }

/* ----- tableau blanc (feutre) ----- */
.tb.blanc { color: #1d2a44; background: radial-gradient(ellipse at 20% 20%, rgba(30,94,228,.04), transparent 45%), linear-gradient(170deg, #ffffff, #f4f6fa);
  border-color: #c9ced8; box-shadow: inset 0 0 0 3px #e4e7ee, 0 18px 40px rgba(20, 30, 60, .12); }
.tb.blanc::after { background: linear-gradient(#d5d9e1, #b9bfcb); }
.tb.blanc .tb-date, .tb.blanc .tb-h, .tb.blanc .tb-h.j, .tb.blanc .tb-note { color: #1e5ee4; } .tb.blanc .tb-h.v { color: #15803d; } .tb.blanc .tb-h.r { color: #c2185b; } .tb.blanc .tb-h.o { color: #c2410c; } .tb.blanc .tb-h.b { color: #0e7490; }
.tb.blanc .tb-sous, .tb.blanc .tb-l small, .tb.blanc .tb-pied, .tb.blanc .tb-kpi .p, .tb.blanc .tb-kpi .l, .tb.blanc .cap-s small, .tb.blanc .tb-piste .d, .tb.blanc .tb-table.hyp td.pq, .tb.blanc .tb-table th small { color: #5b6478; }
.tb.blanc .tb-cadre, .tb.blanc .tb-kpi, .tb.blanc .tb-piste, .tb.blanc .tb-haut { border-color: #c7cdda; }
.tb.blanc .tb-texte b, .tb.blanc .tb-l b { color: #1d2a44; text-decoration-color: rgba(30,94,228,.45); }
.tb.blanc a.tb-a { border-bottom-color: rgba(29,42,68,.35); } .tb.blanc a.tb-a:hover { color: #1e5ee4; }
.tb.blanc .tb-l.ok::before, .tb.blanc .tb-l.bon::before { color: #15803d; } .tb.blanc .tb-l.up::before, .tb.blanc .tb-l.down::before { color: #c2410c; } .tb.blanc .tb-l.bon::before { color: #15803d; }
.tb.blanc .tb-l.att::before { color: #c2185b; } .tb.blanc .tb-l.pt::before { color: #1e5ee4; }
.tb.blanc .tb-kpi .n, .tb.blanc .tb-piste .t, .tb.blanc .tb-table tr.sig-total td { color: #1d2a44; } .tb.blanc .tb-kpi .n.j, .tb.blanc .tb-piste .m, .tb.blanc .tb-table tr.sig-grand td, .tb.blanc .tb-table th, .tb.blanc .tb-table.hyp td.sp { color: #1e5ee4; }
.tb.blanc .tb-kpi .n.v { color: #15803d; } .tb.blanc .tb-kpi .n.r, .tb.blanc .tb-table td.neg, .tb.blanc .tb-table tr.sig-total td.neg, .tb.blanc .tb-table tr.sig-grand td.neg, .tb.blanc .tb-repos, .tb.blanc .tb-ancien { color: #c2185b; } .tb.blanc .tb-kpi .n.b, .tb.blanc .tb-client { color: #0e7490; }
.tb.blanc .tb-table th, .tb.blanc .tb-table td, .tb.blanc .tb-table tr.sig-grand td { border-color: #d5dae4; } .tb.blanc .tb-table tr.sig-moins td:first-child, .tb.blanc .tb-table tr.sig-plus td:first-child { color: #5b6478; }
.tb.blanc .tb-cap { background: #dcfce7; color: #166534; } .tb.blanc .tb-cap.en-bonne-voie { background: #fef3c7; color: #92400e; } .tb.blanc .tb-cap.a-rattraper { background: #fce7f3; color: #9d174d; } .tb.blanc .tb-cap.aucun { background: #eef2f7; color: #334155; }
.tb.blanc .cap-e { background: #dcfce7; color: #166534; } .tb.blanc .cap-e.vigilance { background: #fef3c7; color: #92400e; } .tb.blanc .cap-e.retard { background: #fce7f3; color: #9d174d; }
.tb.blanc .tb-bulle { background: #1e5ee4; color: #fff; } .tb.blanc .tb-ecrit i { background: #1e5ee4; }
.tb.blanc .tb-rebord i { background: #1e5ee4; } .tb.blanc .tb-rebord i.j { background: #15803d; } .tb.blanc .tb-rebord i.r { background: #c2185b; }
.tb.blanc a.tb-retour, .tb.blanc a.tb-cap-lien, .tb.blanc .tb-bouton { color: #1e5ee4; border-color: rgba(30,94,228,.5); } .tb.blanc .tb-bouton.fort { color: #fff; background: #1e5ee4; border-color: #1e5ee4; }
.tb.blanc .tb-ajout-form input { background: rgba(255,255,255,.9); color: #1d2a44; border-color: rgba(30,94,228,.45); } .tb.blanc .tb-ajout-form input::placeholder { color: #8a93a6; }
.tb.blanc .tb-suppr button { color: #5b6478; border-color: #c7cdda; } .tb.blanc .tb-legende { color: #334155; }
.tb.blanc .tb-legende .ve { border-color: #15803d; } .tb.blanc .tb-legende .lg-plein.ve { background: rgba(21,128,61,.25); }
.tb.blanc .tb-legende .ro { border-color: #c2185b; } .tb.blanc .tb-legende .lg-plein.ro { background: rgba(194,24,91,.22); }
.tb.blanc .tb-legende .bu { border-color: #1e5ee4; } .tb.blanc .tb-legende .lg-plein.bu { background: rgba(30,94,228,.2); }
.tb.blanc .tb-legende .ja { border-color: #b45309; } .tb.blanc .tb-legende .lg-plein.ja { background: rgba(180,83,9,.2); }
/* graphiques : les couleurs de craie (attributs SVG) deviennent des couleurs de feutre */
.tb.blanc svg:not(.tb-fantome) [fill="#f2efe6"] { fill: #1d2a44; } .tb.blanc svg [stroke="#f2efe6"] { stroke: #1d2a44; }
.tb.blanc svg [fill="#f7e48b"] { fill: #b45309; } .tb.blanc svg [stroke="#f7e48b"] { stroke: #b45309; }
.tb.blanc svg [fill="#f6a9c0"] { fill: #c2185b; } .tb.blanc svg [stroke="#f6a9c0"] { stroke: #c2185b; }
.tb.blanc svg [fill="#a8d8f5"] { fill: #1e5ee4; } .tb.blanc svg [stroke="#a8d8f5"] { stroke: #1e5ee4; }
.tb.blanc svg [fill="#a7e8b8"] { fill: #15803d; } .tb.blanc svg [stroke="#a7e8b8"] { stroke: #15803d; }
.tb.blanc svg [fill="#f8c48a"] { fill: #c2410c; } .tb.blanc svg [stroke="#f8c48a"] { stroke: #c2410c; }
.tb.blanc svg [fill="#d9d5c8"], .tb.blanc svg [fill="#cfcabb"] { fill: #5b6478; }
.tb.blanc svg [stroke="rgba(242,239,230,.12)"] { stroke: rgba(29,42,68,.10); } .tb.blanc svg [stroke="rgba(242,239,230,.45)"] { stroke: rgba(29,42,68,.35); }
.tb.blanc svg [fill="rgba(246,169,192,.10)"] { fill: rgba(194,24,91,.06); }
.tb.blanc .tb-fantome path:first-child { fill: #fff; stroke: #1d2a44; stroke-width: 1.6; }

/* ----- colonne de droite ----- */
.tbx-col { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 14px; }
.tbx-col .carte { margin: 0; padding: 18px; } .tbx-col h3 { margin: 0 0 12px; font-size: 1.02rem; }
.tbx-nrj { display: flex; align-items: center; gap: 16px; }
.sp-anneau.petit { width: 86px; height: 86px; margin: 0; flex: none; } .sp-anneau.petit .sp-in { width: 68px; height: 68px; } .sp-anneau.petit b { font-size: 1.1rem; }
.tbx-nrj p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.4; } .tbx-nrj strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.tbx-nrj-carte .btn { margin-top: 10px; }
.tbx-btn { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--ligne); background: var(--surf);
  margin-bottom: 9px; color: var(--ink); text-decoration: none; }
.tbx-btn:last-child { margin-bottom: 0; } .tbx-btn:hover { border-color: var(--brand); }
.tbx-btn .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--brand-bg); color: var(--brand); }
.tbx-btn .ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tbx-btn strong { display: block; font-size: .93rem; } .tbx-btn small { display: block; color: var(--muted); font-size: .79rem; line-height: 1.3; }
.tbx-btn .fl { margin-left: auto; color: var(--muted); font-size: 1.1rem; }
.tbx-btn.on { background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(30,94,228,.22); }
.tbx-btn.on small, .tbx-btn.on .fl { color: rgba(255,255,255,.85); } .tbx-btn.on .ic { background: rgba(255,255,255,.2); color: #fff; }
.tbx-btn.verrou { opacity: .6; cursor: default; } .tbx-btn.verrou:hover { border-color: var(--ligne); }
.tbx-badge { display: inline-block; font-size: .66rem; font-weight: 800; padding: 1px 7px; border-radius: 99px; background: #ede9fe; color: #6d28d9; margin-left: 6px; vertical-align: 1px; }
.tbx-journaux a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ligne); font-size: .86rem; color: var(--ink); text-decoration: none; }
.tbx-journaux a span { color: var(--muted); } .tbx-journaux a.actif strong { color: var(--brand); }
.tbx-style { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.tbx-style-lib { font-size: .84rem; color: var(--muted); margin-right: auto; }
.tbx-pastille { font: inherit; font-size: .82rem; font-weight: 700; padding: 5px 14px; border-radius: 99px; border: 2px solid var(--ligne); cursor: pointer; }
.tbx-pastille.noir { background: #1f3c33; color: #f2efe6; } .tbx-pastille.blanc { background: rgba(255,255,255,.96); color: #1d2a44; }
.tbx-pastille.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-bg); }
.tbx-conv { display: flex; flex-direction: column; }
.tbx-conv .sp-conv { height: 440px; box-shadow: none; border: 1px solid var(--ligne); }
.tbx-conv .sp-fil { padding: 12px; } .tbx-conv .sp-m { font-size: .88rem; max-width: 88%; }
.tbx-conv .sp-pop { bottom: 74px; left: 10px; right: 10px; width: auto; }
.tbx-effacer { margin-top: 10px; align-self: flex-start; min-height: 34px; padding: 6px 12px; font-size: .82rem; }
@media (max-width: 1450px) { .tbx-grille { grid-template-columns: 1fr; } .tbx-col { position: static; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }
@media (max-width: 1100px) { .tb-cols, .tb-duo { grid-template-columns: 1fr; } .tb-kpis, .tb-kpis.q { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cap-l { grid-template-columns: 1fr; }
  .tb-avis { grid-template-columns: 1fr; } .tb-humeur { padding-top: 0; text-align: left; } .tb { padding: 22px 18px 130px; } }
@media (prefers-reduced-motion: reduce) { .tb-ecrit i, .tb.ecrit .tb-fantome, .tb-avis-txt.apparait { animation: none !important; } }
.sp-neuf { position: fixed; right: 18px; bottom: 92px; z-index: 61; padding: 4px 11px; border-radius: 99px; background: #fde68a; color: #7c4a03; font-size: .74rem; font-weight: 800;
  text-decoration: none; box-shadow: 0 6px 16px rgba(124,74,3,.22); animation: sp-neuf 2.6s ease-in-out infinite; }
.sp-neuf:hover { background: #fcd34d; }
@keyframes sp-neuf { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .sp-neuf { animation: none; } }
@media (max-width: 700px) { .sp-neuf { right: 10px; bottom: 84px; } }
@media (max-width: 700px) { .sp-entete .sp-droite .btn { display: none; } .tb-titre { font-size: 1.8rem; } .tb-kpis, .tb-kpis.q { grid-template-columns: 1fr; } .tb-pied { max-width: none; } }

/* version 2.28 : la leçon de Spook (« Explique-moi plus en détail ») */
.sp-detail { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 7px 12px; border-radius: 999px; border: 0; background: #1f3c33; color: #f2efe6;
  font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(31,60,51,.25); white-space: normal; }
.sp-detail:hover { background: #284a3f; }
.lc-badge { display: inline-block; margin-left: 12px; padding: 3px 11px; border-radius: 99px; background: #1f3c33; color: #f2efe6; font-size: .74rem; font-weight: 800; vertical-align: 6px; }
[data-mode="lecon"] #sp-etoile, [data-mode="lecon"] #sp-pop { display: none; }
.lc-conv .sp-conv { height: 560px; } .lc-note { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }
.sp-choix button:disabled { opacity: .5; cursor: default; }
.sp-choix.lc-actions { flex-direction: row; flex-wrap: wrap; } .sp-choix.lc-actions button:first-child { background: var(--brand); color: #fff; }
.tb.lc.apparait { animation: tb-apparait .9s ease-out; }
.tb.lc .tb-date { margin-left: 4px; }
.tb.lc .tb-h.lc-n { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.tb.lc .tb-h.lc-n b { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 2px solid #f7e48b; border-radius: 50%; font-weight: 400; font-size: 1.3rem; flex: none; }
.tb.lc .tb-h.lc-n small { font-size: 1.05rem; color: rgba(242,239,230,.6); }
.lc-garde { opacity: .78; }
.lc-eq { display: grid; align-items: center; margin: 8px 0 12px; }
.lc-eq.lc-eq2 { grid-template-columns: minmax(0,1fr) 56px minmax(0,1fr) 56px minmax(0,1fr); }
.lc-eq.lc-eq3 { grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1fr); }
.lc-boite { border: 2.5px solid rgba(242,239,230,.55); border-radius: 18px 12px 20px 14px; padding: 12px 14px; text-align: center; min-width: 0; }
.lc-boite .n { display: block; font-size: 2rem; line-height: 1.05; overflow-wrap: anywhere; } .lc-boite .l { display: block; font-size: 1.22rem; }
.lc-boite small { display: block; font-size: 1rem; color: rgba(242,239,230,.65); }
.lc-boite.b .n { color: #a8d8f5; } .lc-boite.r .n { color: #f6a9c0; } .lc-boite.o .n { color: #f8c48a; }
.lc-boite.v { border-color: #a7e8b8; transform: rotate(-1deg); } .lc-boite.v .n { color: #a7e8b8; }
.lc-op { text-align: center; font-size: 3rem; color: #f7e48b; line-height: 1; }
.lc-retenir { margin-top: 16px; border-color: #f7e48b; }
.lc-table td small { display: block; margin: 0; }
.lc-compris { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 2px dashed rgba(242,239,230,.35); max-width: calc(100% - 200px); }
.lc-q { font-size: 1.6rem; color: #f7e48b; margin-right: 8px; }
.lc-pager { margin-left: auto; display: inline-flex; gap: 12px; font-size: 1.1rem; color: rgba(242,239,230,.6); }
.lc-pager b { font-weight: 400; color: #f2efe6; border-bottom: 2px solid #f7e48b; }
.lc-pager button { background: none; border: 0; padding: 0; font: inherit; color: rgba(242,239,230,.65); cursor: pointer; text-decoration: underline dotted; }
.lc-efface { position: relative; height: 80px; margin: 12px 0 4px; border-radius: 40px; background:
   radial-gradient(ellipse at 20% 50%, rgba(242,239,230,.16), transparent 60%), radial-gradient(ellipse at 55% 40%, rgba(242,239,230,.12), transparent 55%),
   radial-gradient(ellipse at 85% 60%, rgba(242,239,230,.14), transparent 55%), repeating-linear-gradient(100deg, rgba(242,239,230,.05) 0 14px, transparent 14px 30px); filter: blur(1.5px); }
.lc-efface span { position: absolute; right: 18px; bottom: 6px; font-size: 1rem; color: rgba(242,239,230,.45); }
.lc-histoire { display: grid; align-items: center; margin: 10px 0 14px; }
.lc-histoire.lc-h2 { grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr); }
.lc-histoire.lc-h3 { grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr) 48px minmax(0,1fr); }
.lc-histoire.lc-h4 { grid-template-columns: minmax(0,1fr) 36px minmax(0,1fr) 36px minmax(0,1fr) 36px minmax(0,1fr); }
.lc-case { text-align: center; border: 2.5px dashed rgba(242,239,230,.5); border-radius: 18px; padding: 12px; min-width: 0; }
.lc-case b { display: block; font-weight: 400; font-size: 1.3rem; color: #f7e48b; } .lc-case small { display: block; font-size: 1.1rem; color: rgba(242,239,230,.85); }
.lc-dessin { width: 64px; height: 64px; display: block; margin: 0 auto 4px; }
.lc-fl { text-align: center; font-size: 2.4rem; color: #f7e48b; }
.lc-relais { display: flex; flex-direction: column; gap: 16px; max-width: 900px; }
.lc-question { border-color: #f7e48b; } .lc-question .tb-bouton { margin: 10px 10px 0 0; }
.tb.blanc .tb-h.lc-n b { border-color: #1e5ee4; } .tb.blanc .lc-boite { border-color: #c7cdda; } .tb.blanc .lc-boite small, .tb.blanc .lc-case small, .tb.blanc .tb-h.lc-n small { color: #5b6478; }
.tb.blanc .lc-boite.b .n { color: #1e5ee4; } .tb.blanc .lc-boite.r .n { color: #c2185b; } .tb.blanc .lc-boite.o .n { color: #c2410c; } .tb.blanc .lc-boite.v { border-color: #15803d; } .tb.blanc .lc-boite.v .n { color: #15803d; }
.tb.blanc .lc-op, .tb.blanc .lc-q, .tb.blanc .lc-fl, .tb.blanc .lc-case b { color: #1e5ee4; } .tb.blanc .lc-case { border-color: #c7cdda; }
.tb.blanc .lc-retenir, .tb.blanc .lc-question { border-color: #1e5ee4; } .tb.blanc .lc-compris { border-color: #c7cdda; }
.tb.blanc .lc-pager, .tb.blanc .lc-pager button { color: #5b6478; } .tb.blanc .lc-pager b { color: #1d2a44; border-color: #1e5ee4; }
.tb.blanc .lc-efface { background: radial-gradient(ellipse at 20% 50%, rgba(29,42,68,.08), transparent 60%), radial-gradient(ellipse at 70% 50%, rgba(29,42,68,.06), transparent 60%); }
@media (max-width: 1100px) { .lc-eq.lc-eq2, .lc-eq.lc-eq3, .lc-histoire.lc-h2, .lc-histoire.lc-h3, .lc-histoire.lc-h4 { grid-template-columns: 1fr; } .lc-fl { transform: rotate(90deg); } .lc-compris { max-width: none; } }
.lc-demandes { border-left: 4px solid var(--err, #d92d20); } .lc-demandes h2 { display: flex; align-items: center; gap: 10px; margin-top: 0; }
.lc-demande { border-top: 1px solid var(--ligne); padding: 12px 0; } .lc-demande:first-of-type { border-top: 0; }
.lc-demande-tete { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; } .lc-demande-q { margin: 6px 0; font-size: 1rem; }
.carte-ent strong .pastille-rouge { font-style: normal; vertical-align: 2px; }

/* version 2.29.1 : vue d'ensemble — la cloche du compte d'attente à côté du prénom ; plus de bandeau « compte d'attente » ;
   le nom de l'entreprise n'est plus répété au-dessus de « Bienvenue » sur ordinateur (il est dans la barre de gauche), il reste en tablette et mobile */
html[data-vue=pc] .barre-accueil { display: none; }
.accueil-titre { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.accueil-titre .cloche-nom .ico { width: 26px; height: 26px; }

/* version 2.30.0 : « Agrandir » et « Avis de Spook » sur tous les graphiques ; pleine page ; annotations de Spook au feutre violet */
.g-titre-outils { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.g-titre-outils > h2, .g-titre-outils > h3 { margin: 0; flex: 1 1 auto; min-width: 0; }
.g-outils { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.g-outils-seul { justify-content: flex-end; margin: 4px 0 6px; }
.g-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; min-height: 0; font-size: .82rem; }
.g-ico { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.g-ico-plein { fill: currentColor; stroke: none; } .g-ico-plein .g-oeil { fill: #fff; }
.g-btn-spook { color: var(--spook-ico); border-color: var(--spook-bord); background: var(--spook-clair); } .g-btn-spook:hover { border-color: var(--spook-ico); }
.carte-bleue .g-btn { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: #fff; }
.carte-bleue .g-btn-spook { background: rgba(255, 255, 255, .26); }
main.page.g-zoom-actif > :not(.g-plein):not(.sp-racine):not(script) { display: none !important; }
.g-plein-tete { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.g-plein-titres h2 { margin: 0; font-size: 1.6rem; } .g-plein-sous { font-size: .88rem; }
.g-retour { display: inline-flex; align-items: center; gap: 8px; }
.g-plein-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-cout { font-size: .8rem; }
.g-btn-avis { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--spook-2), var(--spook)); border-color: var(--spook); }
.g-btn-avis .g-ico { width: 19px; height: 19px; }
.g-plein-corps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.g-plein-corps.avec-avis { grid-template-columns: minmax(0, 1fr) 400px; }
.g-plein-carte { margin: 0; padding: 22px 26px; }
.g-zoom-svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 210px); }
.g-plein-carte .graphe-h.g-zoom-svg { max-width: 900px; margin: 0 auto; }
.g-annot-cache .spook-annot { display: none; }
.g-avis > .carte { margin: 0 0 16px; }
.g-avis-carte { padding: 18px 20px; border: 1px solid var(--spook-bord); background: linear-gradient(180deg, var(--spook-clair), var(--card)); }
.g-avis-carte p { margin: 0; font-size: .95rem; line-height: 1.55; }
.g-avis-tete { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: var(--spook-encre); }
.g-avis-tete .g-ico { width: 34px; height: 34px; } .g-avis-tete strong { color: var(--ink); font-size: 1.05rem; } .g-avis-tete .muted { font-size: .78rem; }
.g-avis-liste { padding: 16px 20px; } .g-avis-liste h3 { margin: 0 0 6px; font-size: 1rem; }
.ga-point { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--ligne); font-size: .9rem; line-height: 1.45; }
.ga-num { flex: none; width: 22px; height: 22px; border-radius: 50%; color: #fff; font: 700 12px/22px system-ui, sans-serif; text-align: center; }
.ga-num-spook { background: var(--spook); } .ga-num-att { background: #d97706; } .ga-num-bon { background: #1d9e75; }
.g-avis-note { font-size: .78rem; margin: 4px 2px 0; }
.g-points-attente { display: flex; gap: 6px; padding: 6px 0 2px 44px; }
.g-points-attente i { width: 8px; height: 8px; border-radius: 50%; background: #8b6cff; animation: sp-pulse 1.2s infinite ease-in-out; }
.g-points-attente i:nth-child(2) { animation-delay: .2s; } .g-points-attente i:nth-child(3) { animation-delay: .4s; }
.g-avis-attente .g-avis-tete .g-ico { animation: sp-pulse 1.6s infinite ease-in-out; }
@media (max-width: 1100px) { .g-plein-corps.avec-avis { grid-template-columns: minmax(0, 1fr); } }
html[data-vue=mobile] .g-plein-corps.avec-avis, html[data-vue=tablet] .g-plein-corps.avec-avis { grid-template-columns: minmax(0, 1fr); }
html[data-vue=mobile] .g-btn span { display: none; } html[data-vue=mobile] .g-btn { padding: 6px 8px; }
html[data-vue=mobile] .g-plein-carte { padding: 14px 10px; } html[data-vue=mobile] .g-plein-titres h2 { font-size: 1.25rem; }
html[data-vue=mobile] .g-zoom-svg { max-height: none; }
/* version 2.31.0 : « Agrandir » et « Avis de Spook » sur les tableaux (lignes soulignées, notes dans la marge) ; avis de Spook sur chaque montant */
.t-outils.g-outils-seul { margin: 2px 0 6px; }
.t-plein { max-height: none; overflow-x: auto; overflow-y: visible; }
.g-plein.t-mode .g-plein-carte { padding: 16px 18px; }
/* tableaux : l'avis s'affiche au-dessus (le tableau garde toute la largeur) */
.g-plein.t-mode .g-plein-corps.avec-avis { grid-template-columns: minmax(0, 1fr); }
.g-plein.t-mode .g-avis { order: -1; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.g-plein.t-mode .g-avis[hidden] { display: none; }
.g-plein.t-mode .g-avis > .carte { margin: 0; flex: 1 1 280px; }
.g-plein.t-mode .g-avis > .g-avis-carte { flex: 1.6 1 420px; }
.g-plein.t-mode .g-avis > .g-avis-note { flex: 1 1 100%; margin: -4px 2px 0; }
.t-plein table { width: 100%; }
th.t-spook-col { color: var(--spook-encre); font-family: Craie, 'Patrick Hand', cursive; font-size: 1.15rem; font-weight: 400; letter-spacing: .02em; min-width: 190px; }
td.t-spook-note { color: var(--spook-encre); font-family: Craie, 'Patrick Hand', cursive; font-size: 1.12rem; line-height: 1.25; min-width: 190px; max-width: 320px; }
tr.t-annot > td { background: #f6f2ff; }
tr.t-annot > td:first-child { box-shadow: inset 4px 0 0 var(--spook-encre); }
tr.t-annot.t-annot-bon > td { background: #eefaf5; }
tr.t-annot.t-annot-bon > td:first-child { box-shadow: inset 4px 0 0 #1d9e75; }
tr.t-annot.t-annot-bon td.t-spook-note { color: #157a5b; }
.t-pastille { display: inline-block; margin-right: 8px; vertical-align: 1px; width: 20px; height: 20px; font-size: 11px; line-height: 20px; }
.ga-num-lien { cursor: pointer; } .ga-num-lien:hover { box-shadow: 0 0 0 3px var(--spook-bord); }
.t-cercle { position: relative; display: inline-block; }
.t-cercle::after { content: ""; position: absolute; inset: -9px -13px; border: 2.4px solid var(--spook-encre); border-radius: 50%; transform: rotate(-3deg); pointer-events: none; opacity: .9; }
.t-cercle::before { content: ""; position: absolute; inset: -7px -10px -10px -15px; border: 1.2px solid var(--spook-encre); border-radius: 50%; transform: rotate(2deg); pointer-events: none; opacity: .5; }
tr.t-annot-bon .t-cercle::after, tr.t-annot-bon .t-cercle::before { border-color: #1d9e75; }
.g-annot-cache .t-spook { display: none; }
.g-annot-cache tr.t-annot > td { background: none; box-shadow: none; }
.g-annot-cache .t-cercle::after, .g-annot-cache .t-cercle::before { display: none; }
td.t-spook-note:empty { color: transparent; }
html[data-vue=mobile] td.t-spook-note:empty { display: none; }
html[data-vue=mobile] td.t-spook-note { max-width: none; }
/* montants : petit fantôme dans le coin de la tuile, avis juste en dessous */
.tuile-kpi.k-avec-spook { position: relative; }
.k-spook { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--spook-bord); background: var(--spook-clair); color: var(--spook-ico); cursor: pointer; opacity: .55; transition: opacity .15s, transform .15s; }
.k-spook .g-ico { width: 17px; height: 17px; }
.tuile-kpi:hover .k-spook, .k-spook:focus-visible, .tuile-kpi.k-actif .k-spook { opacity: 1; }
.k-spook:hover { transform: scale(1.08); border-color: var(--spook-ico); }
.tuile-kpi.k-avec-spook .kpi-titre { padding-right: 30px; }
.tuile-kpi.k-actif { box-shadow: 0 0 0 2px var(--spook-encre), var(--ombre); }
.k-avis { position: absolute; z-index: 80; background: var(--card); border: 1px solid var(--spook-bord); border-radius: 16px; box-shadow: 0 14px 40px rgba(40, 20, 110, .18); padding: 4px; }
.k-avis .carte { margin: 0; box-shadow: none; }
.k-avis .g-avis-carte { border: 0; }
.k-avis .g-avis-liste { padding: 10px 16px; }
.k-avis .g-avis-note { padding: 0 14px 10px; }
.k-fermer { position: absolute; top: 8px; right: 8px; z-index: 1; width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--muted, #667); cursor: pointer; }
.k-fermer:hover { background: var(--spook-clair); color: var(--spook-ico); }
.k-corps .g-avis-tete { padding-right: 26px; }
.carte-bleue .k-spook { background: rgba(255, 255, 255, .9); }
html[data-vue=mobile] .k-spook { opacity: 1; }

/* version 2.34.0 : leçon de Spook, tableau « détail par client / fournisseur » */
.lc-defile { overflow-x: auto; }
.tb-table.lc-tiers th { text-align: right; }
.tb-table.lc-tiers th:first-child, .tb-table.lc-tiers td:first-child { text-align: left; white-space: normal; }
.tb-table.lc-tiers td small { font-size: .9rem; opacity: .75; margin-left: 4px; }
.tb-table.lc-tiers tr.lc-vieux td { color: #f6a9c0; }
.tb-table.lc-factures th:nth-child(2), .tb-table.lc-factures td:nth-child(2), .tb-table.lc-factures th:nth-child(3), .tb-table.lc-factures td.lc-lib { text-align: left; white-space: normal; }
.lc-sous-titre { margin-top: 18px; }
.tb.blanc .tb-table.lc-tiers tr.lc-vieux td { color: #c2185b; }
/* 2.35.0 : les dettes famille par famille : famille sur une ligne, détail qui passe à la ligne, aligné à gauche */
.tb-table.lc-dettes td:first-child { white-space: nowrap; }
.tb-table.lc-dettes th:last-child, .tb-table.lc-dettes td.lc-lib { text-align: left; white-space: normal; font-size: 1rem; color: rgba(242,239,230,.85); min-width: 16em; }
.tb-table.lc-dettes tr.sig-grand td.lc-lib { color: #f7e48b; font-size: 1.05rem; }
.tb.blanc .tb-table.lc-dettes td.lc-lib { color: inherit; }

/* 2.36.0 : tableaux réels (extrait de compte, détail complet, comparaison N / N-1) et boutons d'intention sous les réponses de Spook */
.sp-resume { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; white-space: normal; }
.sp-res-c { background: var(--surf2); border-radius: 8px; padding: 4px 8px; display: flex; flex-direction: column; min-width: 0; }
.sp-res-l { font-size: .68rem; color: var(--muted); }
.sp-res-v { font-size: .8rem; font-weight: 700; color: var(--ink); white-space: nowrap; }
.sp-tab-w { overflow: auto; max-height: 420px; margin: 6px 0 4px; border: 1px solid var(--ligne); border-radius: 10px; background: var(--card); white-space: normal; }
.sp-tab { border-collapse: collapse; width: 100%; font-size: .74rem; line-height: 1.35; }
.sp-tab th { position: sticky; top: 0; z-index: 1; background: var(--surf); text-align: left; font-weight: 600; color: var(--muted); padding: 6px 7px; border-bottom: 1px solid var(--ligne); white-space: nowrap; }
.sp-tab td { padding: 5px 7px; border-bottom: 1px solid var(--ligne); vertical-align: top; min-width: 4.5em; }
.sp-tab .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sp-tab tr.nl td, .sp-tab tr.moins td.n { color: var(--err); }
.sp-tab tr.sp-pied td { font-weight: 700; background: var(--surf); border-bottom: 0; }
.sp-lien-compte { display: inline-block; margin: 4px 0 2px; font-size: .78rem; font-weight: 600; color: var(--brand); text-decoration: none; white-space: normal; }
.sp-lien-compte:hover { text-decoration: underline; }
.sp-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--surf3); white-space: normal; }
.sp-actions .sp-act { width: auto; height: auto; display: inline-block; margin: 0; font: inherit; font-size: .74rem; line-height: 1.2; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--surf3); background: var(--card); color: var(--brand-txt); cursor: pointer; }
.sp-actions .sp-act:hover { background: var(--brand-bg); border-color: var(--brand); }
.sp-actions .sp-act-expliquer { background: #1f3c33; border-color: #1f3c33; color: #f2efe6; }
.sp-actions .sp-act-expliquer:hover { background: #284a3f; border-color: #284a3f; }
.sp-m.ia:has(.sp-tab-w) { max-width: 96%; }

/* 2.36.0 : modules rédigés par Spook (estimation du résultat de fin d'exercice, « Explique-moi mon bilan ») */
.mod-avis { border-left: 5px solid var(--brand); }
.mod-avis-tete { display: flex; gap: 12px; align-items: center; margin-bottom: 6px; }
.mod-avis-tete h2 { margin: 0; }
.mod-fantome .sp-corps { fill: #fff; stroke: var(--brand); stroke-width: 2.2; }
.mod-fantome .sp-oeil, .mod-fantome .sp-trait { fill: var(--brand-fonce); stroke: var(--brand-fonce); }
.mod-avis-txt { font-size: 1rem; line-height: 1.55; margin: 6px 0; }
.mod-points, .mod-liste { margin: 6px 0 0; padding-left: 1.2em; }
.mod-points li, .mod-liste li { margin: 3px 0; }
.mod-attente { display: flex; gap: 6px; padding: 10px 0; }
.mod-attente i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: .35; animation: mod-pulse 1.2s infinite ease-in-out; }
.mod-attente i:nth-child(2) { animation-delay: .2s; } .mod-attente i:nth-child(3) { animation-delay: .4s; }
@keyframes mod-pulse { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.mod-fourchette { display: grid; grid-template-columns: 1fr; gap: 4px; margin-top: 4px; }
.mod-fourchette span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; background: var(--surf); border-radius: 8px; padding: 4px 10px; }
.mod-fourchette small { color: var(--muted); font-size: .74rem; }
.mod-fourchette b { font-size: .98rem; white-space: nowrap; } .mod-fourchette b.neg { color: var(--err); }
.mod-central { border: 2px solid var(--brand); }
.mod-deux { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.mod-risques li::marker { color: var(--err); }
.tab-comparatif tr.mod-risque td { background: var(--err-bg-doux); }
.mod-termine .mod-gros { font-size: 1.3rem; font-weight: 700; margin: 0 0 4px; }
.mod-liens { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.mod-sommaire { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.mod-section { scroll-margin-top: 80px; }
.mod-intro { font-size: .98rem; line-height: 1.55; margin: 4px 0 10px; }
.mod-fiches { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-top: 14px; }
.mod-fiche { border: 1px solid var(--ligne); border-radius: 12px; padding: 12px 14px; background: var(--surf); scroll-margin-top: 80px; }
.mod-fiche h3 { margin: 0 0 6px; font-size: 1rem; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.mod-fiche h3 span { color: var(--muted); font-weight: 600; font-size: .88rem; }
.mod-l { margin: 4px 0; font-size: .9rem; line-height: 1.5; }
.mod-l::before { content: attr(data-l) " : "; font-weight: 700; color: var(--brand-txt); }
.mod-action::before { color: var(--ok); }
.mod-comptes { margin: 8px 0 0; font-size: .76rem; color: var(--muted); }
.mod-ph { color: var(--muted); font-style: italic; font-size: .85rem; margin: 4px 0; }
.mod-alerte { border-left: 4px solid var(--muted); padding: 8px 12px; margin: 10px 0; border-radius: 8px; background: var(--surf); }
.mod-alerte h3 { margin: 0 0 4px; font-size: .98rem; }
.mod-alerte p { margin: 3px 0; }
.mod-alerte.mod-rouge { border-left-color: var(--err); background: var(--err-bg-doux); }
.mod-alerte.mod-orange { border-left-color: var(--warn); background: var(--warn-bg-doux); }
.mod-alerte.mod-info { border-left-color: var(--brand); }
.mod-reco li { margin: 6px 0; line-height: 1.5; }
.mod-obj-txt { display: block; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.mod-note { margin-top: 10px; }

/* 2.36.0 : messagerie client / cabinet */
.msg-grille { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .msg-grille { grid-template-columns: 1fr; } }
.msg-liste-tete { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.msg-liste-tete h2 { margin: 0; }
.msg-fil { display: block; position: relative; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.msg-fil strong { display: block; padding-right: 64px; }
.msg-fil span { display: block; font-size: .78rem; color: var(--muted); }
.msg-fil:hover { background: var(--surf); }
.msg-fil.actif { background: var(--brand-bg); border-color: var(--surf3); }
.msg-fil.non-lu strong { color: var(--brand-txt); }
.msg-fil .pastille-rouge { position: absolute; right: 10px; top: 10px; font-style: normal; }
.msg-fil-msgs { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.msg-bulle { max-width: 82%; padding: 10px 13px; border-radius: 14px; background: var(--surf); }
.msg-bulle.client { align-self: flex-start; }
.msg-bulle.cabinet { align-self: flex-end; background: var(--brand-bg); }
.msg-qui { font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.msg-txt { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.msg-form { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.msg-form textarea, .msg-form input[type=text] { width: 100%; font: inherit; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--champ-bord); background: var(--champ); }
.msg-form .btn { align-self: flex-start; }
.msg-case { display: flex; gap: 8px; align-items: center; font-size: .88rem; }
.msg-statut { margin-top: 10px; }
.msg-table tr.non-lu td { font-weight: 600; }
.sp-tab-compact .sp-liste-l.nl .sp-l-lib, .sp-tab-compact .sp-liste-l.nl .sp-l-mt { color: var(--err); }
.sp-tab-compact .sp-liste-l.sp-pied { font-weight: 700; background: var(--surf); }
.sp-tab-compact .sp-l-mt { white-space: normal; text-align: right; }

/* 2.37.0 : bandeau sur une ligne. « Retour » bien visible à gauche, puis Exercice · 6 derniers mois · 3 derniers mois · Dernier mois · Personnaliser ;
   à droite la date d'arrêté et le choix de l'exercice (qui s'applique aussitôt). La période personnalisée s'ouvre sur une deuxième ligne. */
.barre-haut .bh-l1 { flex-wrap: wrap; }
.barre-haut .bh-retour, .barre-haut .bh-retour[hidden] { display: inline-flex; order: 0; width: auto; height: 34px; padding: 0 14px 0 10px; gap: 6px; border-radius: 10px;
  border: 1px solid var(--brand); background: var(--brand-bg); color: var(--brand-txt); font-weight: 700; font-size: .88rem; }
.barre-haut .bh-retour:hover { background: var(--brand); color: #fff; }
.barre-haut .bh-retour .ico { width: 16px; height: 16px; }
.barre-haut .periode-presets { order: 1; align-items: center; }
.barre-haut .puce-perso { border: 0; cursor: pointer; font-family: inherit; color: var(--ink); }
.barre-haut .puce-perso.ouvert { background: var(--card); box-shadow: 0 1px 3px rgba(20,20,60,.15); }
.barre-haut .bh-sp { order: 2; flex: 1; display: block; }
.barre-haut .bh-badge { order: 3; } .barre-haut .bh-donnees { order: 4; margin-left: 0; } .barre-haut .bh-exercice { order: 5; } .barre-haut .deco-mobile { order: 6; }
.barre-haut .bh-perso { order: 9; flex-basis: 100%; margin: 0; padding: 8px 0 4px; border-top: 1px dashed var(--ligne); }
.barre-haut .bh-perso[hidden] { display: none; }
.barre-haut .bh-perso-titre { font-weight: 600; color: var(--ink); margin-right: 4px; }
html[data-vue=mobile] .barre-haut .bh-retour { order: 0; } html[data-vue=mobile] .barre-haut .periode-presets { order: 7; }
.g-plein-tete .g-retour { border: 1px solid var(--brand); background: var(--brand-bg); color: var(--brand-txt); font-weight: 700; }
.g-plein-tete .g-retour:hover { background: var(--brand); color: #fff; }
/* 2.37.0 : Clients / Fournisseurs : titre parlant, encadrés sous le tableau ; bouton « à surveiller » dans Achats et Charges externes */
.titre-tiers { margin-bottom: 2px; } .sous-titre-tiers { margin: 0 0 10px; color: var(--muted); font-size: .9rem; }
.tiers-alertes { margin-top: 14px; } .tiers-alertes .alerte { margin-bottom: 10px; } .tiers-alertes .duo-alertes { margin-top: 0; }
.btn-surveiller { display: inline-flex; align-items: center; gap: 8px; } .btn-surveiller .ico { width: 17px; height: 17px; }
.btn-surveiller .pastille-rouge { margin-left: 2px; } .btn-surveiller-alerte { border-color: #f3b4b4; color: #b42318; }
/* 2.37.0 : barre des mois (un seul mois affiché) */
.nav-mois-barre { display: flex; align-items: center; gap: 8px; margin: -6px 0 16px; padding: 6px; background: var(--card); border: 1px solid var(--ligne); border-radius: 12px; }
.nav-mois-barre .nm-fleche { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 9px; text-decoration: none; font-weight: 700; color: var(--brand-txt); background: var(--brand-bg); font-size: .86rem; white-space: nowrap; }
.nav-mois-barre .nm-fleche:hover { background: var(--brand); color: #fff; } .nav-mois-barre .nm-off { background: transparent; color: var(--ligne); }
.nav-mois-barre .nm-liste { flex: 1; display: flex; gap: 2px; overflow-x: auto; justify-content: space-between; scrollbar-width: thin; }
.nav-mois-barre .nm-m { flex: 1 0 auto; min-width: 46px; text-align: center; padding: 5px 6px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .82rem; line-height: 1.15; }
.nav-mois-barre .nm-m small { display: block; color: var(--muted); font-size: .68rem; }
.nav-mois-barre .nm-m:hover { background: var(--bg); } .nav-mois-barre .nm-m.actif { background: var(--brand); color: #fff; font-weight: 700; } .nav-mois-barre .nm-m.actif small { color: rgba(255,255,255,.8); }
html[data-vue=mobile] .nav-mois-barre .nm-fleche span { display: none; }
/* 2.39.0 : Scan par catégories : moyenne au choix dans l'en-tête, tableau qui ne déborde plus, détail aéré */
.tab-scan th, .tab-scan td { padding-left: 6px; padding-right: 6px; } .tab-scan .badge { white-space: nowrap; }
.tab-scan { font-size: .9rem; } .tab-scan th { font-size: .72rem; }
.tab-scan .detail-bloc { display: block; font-size: .74rem; margin-top: 2px; white-space: nowrap; }
.tab-scan .td-spark svg { width: 68px; height: auto; display: block; }
.tab-scan .th-moy { white-space: nowrap; } .tab-scan .form-moy { display: block; margin: 4px 0 0; }
.tab-scan .form-moy select { width: auto; padding: 3px 6px; font-size: .76rem; font-weight: 600; text-transform: none; letter-spacing: 0; border-radius: 7px; }
.scan-detail-titre { margin-top: 34px; }
.scan-liste { display: grid; gap: 22px; }
.scan-bloc { margin: 0; padding-top: 18px; }
.scan-tete { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 10px; }
.scan-tete h3 { margin: 0; font-size: 1.05rem; } .scan-tete h3 a { text-decoration: none; } .scan-tete h3 a:hover { text-decoration: underline; }
.scan-motif { font-size: .82rem; }
.scan-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.scan-cumul-n1 { display: block; font-size: .8rem; }
.scan-chiffres > div { background: var(--bg); border-radius: 10px; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.scan-chiffres span { flex-basis: 100%; color: var(--muted); font-size: .78rem; } .scan-chiffres strong { font-size: 1.02rem; }
.scan-chiffres em { font-style: normal; font-size: .84rem; color: var(--muted); } .scan-chiffres em.mauvais { color: var(--err); font-weight: 700; } .scan-chiffres em.bon { color: #15803d; font-weight: 700; }
.scan-bloc h4 { font-size: .92rem; margin: 12px 0 4px; }
html[data-vue=mobile] .scan-chiffres { grid-template-columns: 1fr; }
.tab-scan .detail-bloc { white-space: normal; } .tab-scan td[data-label="Signal"] { min-width: 120px; }
.scan-titre { margin: 0 0 4px; font-size: 1.05rem; } .scan-titre a { text-decoration: none; } .scan-titre a:hover { text-decoration: underline; } .scan-titre .badge { margin-left: 6px; vertical-align: 2px; }
.scan-bloc .scan-motif { margin: 0 0 10px; font-size: .84rem; }
/* 2.40.0 : prévisionnel : détail du calcul de vos informations */
.tb-detail { margin: 0 0 22px; } .tb-detail .tb-l small { display: block; opacity: .8; }
.tb-detail .neg, .tb-impact td.neg { color: #f6a9c0; } .tb-detail .pos { color: #a7e8b8; }
.tb.blanc .tb-detail .neg, .tb.blanc .tb-impact td.neg { color: #c2185b; } .tb.blanc .tb-detail .pos { color: #15803d; }

/* ---------- 2.41.0 : KPI de résultat (maquettes A « Tableau de bord » et C « Explications ») ---------- */
.kpi-page .k-spook { opacity: 1; }
.kpi-tete { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; margin: 18px 0 14px; }
.kpi-tete .kpi-h1 { margin: 0; font-size: 1.45rem; } .kpi-periode { margin: 4px 0 0; }
.kpi-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kpi-vues { display: inline-flex; padding: 4px; gap: 2px; background: var(--surf2); border-radius: 999px; }
.kpi-vues a { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 16px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.kpi-vues a:hover { background: var(--card); }
.kpi-vues a.actif { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(30, 40, 120, .18); }
.kpi-avis-btn { border-color: var(--spook-bord); color: var(--spook-txt); background: var(--spook-clair); }
.kpi-avis-btn:hover { background: color-mix(in srgb, var(--spook-clair) 80%, var(--spook-bord)); } .kpi-avis-btn .g-ico { width: 20px; height: 20px; color: var(--spook-ico); }
.kpi-avis-page { margin-bottom: 18px; border: 1px solid var(--spook-bord); border-radius: var(--rayon); background: var(--spook-clair); padding: 6px; }
.kpi-avis-grille { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(240px, 1fr)); gap: 6px; }
.kpi-avis-grille .carte { margin: 0; box-shadow: none; }
.kpi-avis-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 12px 6px; }
.kpi-avis-pied .g-avis-note { margin: 0; }
.kpi-intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px 26px; background: var(--info-bg); box-shadow: none; border: 1px solid var(--surf3); }
.kpi-intro h3, .kpi-intro-c h3 { margin: 0 0 4px; font-size: .98rem; color: var(--brand-txt); } .kpi-intro p, .kpi-intro-c p { margin: 0; font-size: .92rem; }
.kpi-intro-c { display: flex; gap: 16px; align-items: flex-start; background: var(--info-bg); box-shadow: none; border: 1px solid var(--surf3); }
.kpi-intro-c .kpi-fantome { width: 40px; height: 40px; flex: none; color: var(--brand); }
.kpi-heros { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi-hero { gap: 6px; padding: 16px 18px; }
.kh-ligne { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.kpi-hero .kpi-valeur { font-size: 1.65rem; line-height: 1.15; }
.kpi-evo { font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--surf2); }
.kpi-evo.bon { background: var(--ok-bg); color: var(--ok); } .kpi-evo.mauvais { background: var(--err-bg); color: var(--err); } .kpi-evo.neutre { color: var(--muted); }
.kpi-spark { display: block; width: 100%; height: 42px; margin: 2px 0; }
.kpi-spark polyline { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.kpi-spark .ks-n { stroke: var(--brand); stroke-width: 2.5; } .kpi-spark .ks-n1 { stroke: var(--surf3); stroke-width: 2; }
.kpi-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.kpi-duo > * { margin: 0; min-width: 0; }
.kpi-pm { gap: 8px; padding: 18px 20px; }
.kpi-pm .kpi-titre { font-size: 1.02rem; font-weight: 700; color: var(--ink); } .kpi-def { font-size: .88rem; }
.kpi-valeur-pm { font-size: 1.8rem; color: var(--brand); } .kpm-date { font-size: .95rem; } .kpm-marge { font-size: .92rem; }
.pm-barre { display: block; width: 100%; height: auto; margin: 4px 0; }
.pm-fond { fill: var(--surf2); } .pm-ca { fill: var(--surf3); } .pm-marge { fill: var(--ok); } .pm-manque { fill: var(--err-bg); stroke: var(--err); stroke-dasharray: 4 3; }
.pm-sep { stroke: var(--card); stroke-width: 2; } .pm-repere { stroke: var(--ink); stroke-width: 2.5; }
.pm-mois { font-size: 13px; fill: var(--muted); } .pm-texte { font-size: 14px; font-weight: 700; fill: var(--ink); }
.kpi-taux-carte { padding: 18px 20px; } .kpi-taux-carte h3 { margin: 0 0 8px; font-size: 1.02rem; }
.kpi-duo.kpi-duo-pm { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.kpi-taux { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(90px, 1.5fr) minmax(96px, auto); grid-template-areas: "lib barre val" "pied pied pied";
  align-items: center; gap: 2px 14px; padding: 10px 44px 8px 0; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--ligne); background: transparent; }
.kpi-taux .kt-lib { grid-area: lib; display: flex; flex-direction: column; } .kpi-taux .kt-lib .kpi-titre { color: var(--ink); font-weight: 600; padding-right: 0; }
.kt-sous { font-size: .8rem; line-height: 1.3; } .kpi-taux .kt-barre { grid-area: barre; } .kpi-taux .kt-val { grid-area: val; text-align: right; white-space: nowrap; font-size: .85rem; }
.kpi-taux .kt-val .kpi-valeur { font-size: 1.1rem; } .kt-pied { grid-area: pied; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 2px 16px; align-items: center; }
.kpi-taux .kpi-formule { margin: 0; } .kpi-taux .kpi-formule[open] { flex-basis: 100%; } .kpi-taux .k-spook { top: 10px; right: 4px; }
.kpi-taux-sans-barre { grid-template-areas: "lib lib val" "pied pied pied"; }
.kpi-taux.kpi-atteint, .kpi-taux.kpi-vigilance, .kpi-taux.kpi-retard { border-top: 0; }
.kt-barre { display: block; width: 100%; height: 14px; }
.kt-fond { fill: var(--surf2); } .kt-barre .kt-v { fill: var(--brand); }
.kt-n1, .kt-cible { stroke-width: 2.5; vector-effect: non-scaling-stroke; } .kt-n1 { stroke: var(--ink); } .kt-cible { stroke: var(--warn); }
.kt-legende { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; margin: 10px 0 0; }
.kt-l { display: inline-block; vertical-align: middle; margin-right: 4px; } .kt-l-n { width: 12px; height: 8px; border-radius: 3px; background: var(--brand); }
.kt-l-n1 { width: 3px; height: 13px; background: var(--ink); } .kt-l-cible { width: 3px; height: 13px; background: var(--warn); }
.kpi-sig h2 { font-size: 1.02rem; }
.kpi-sig-pli summary { cursor: pointer; color: var(--brand); font-weight: 600; margin: 4px 0 10px; }
.kpi-questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi-q { margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kq-tete { display: flex; align-items: flex-start; gap: 10px; } .kq-tete h2 { margin: 2px 0 0; font-size: 1.12rem; }
.kq-tete .g-titre-outils { flex: 1; justify-content: space-between; margin: 0; }
.kq-num { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; }
.kq-rep { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; font-size: .9rem; }
.kq-pill { font-weight: 700; font-size: .95rem; padding: 4px 12px; border-radius: 999px; background: var(--surf2); color: var(--brand-txt); }
.kq-pill.bon { background: var(--ok-bg); color: var(--ok); } .kq-pill.mauvais { background: var(--warn-bg); color: var(--warn-txt); }
.kq-texte { margin: 0; font-size: .9rem; color: var(--muted); }
.kq-graphe h3 { margin: 4px 0 6px; font-size: .95rem; } .kq-graphe .g-titre-outils { justify-content: space-between; }
.kq-lignes { display: flex; flex-direction: column; }
.kpi-ligne { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; align-items: baseline; padding: 9px 40px 7px 0; box-shadow: none; border-radius: 0; border-top: 1px solid var(--ligne); background: transparent; }
.kpi-ligne .kpi-titre { color: var(--ink); font-size: .93rem; padding-right: 0; } .kpi-ligne .kpi-valeur { font-size: 1rem; text-align: right; white-space: nowrap; }
.kpi-ligne .kl-detail, .kpi-ligne .kpi-formule { grid-column: 1 / -1; font-size: .8rem; } .kpi-ligne .k-spook { top: 7px; right: 2px; }
.kpi-ligne.kpi-atteint, .kpi-ligne.kpi-vigilance, .kpi-ligne.kpi-retard { border-top: 1px solid var(--ligne); }
.kpi-note { margin-top: 6px; }
html[data-vue=mobile] .kpi-duo, html[data-vue=mobile] .kpi-questions, html[data-vue=tablet] .kpi-questions { grid-template-columns: 1fr; }
html[data-vue=mobile] .kpi-taux { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "lib val" "barre barre" "pied pied"; }
html[data-vue=mobile] .kpi-duo.kpi-duo-pm, html[data-vue=tablet] .kpi-duo.kpi-duo-pm { grid-template-columns: 1fr; }
html[data-vue=mobile] .kpi-avis-grille { grid-template-columns: 1fr; }
@media (max-width: 1100px) { .kpi-duo, .kpi-duo.kpi-duo-pm, .kpi-questions { grid-template-columns: 1fr; } }

/* ---------- 2.42.0 : avis de Spook par bloc, KPI de bilan et de trésorerie ---------- */
.kpi-bloc { position: relative; }
.kb-spook { position: absolute; top: 14px; right: 14px; z-index: 2; gap: 5px; border-color: var(--spook-bord); background: var(--spook-clair); color: var(--spook-txt); min-height: 32px; padding: 3px 10px; }
.kb-spook:hover { background: color-mix(in srgb, var(--spook-clair) 80%, var(--spook-bord)); } .kb-spook .g-ico { width: 16px; height: 16px; color: var(--spook-ico); }
.kpi-bloc.kb-avec-spook > h3, .kpi-bloc.kb-avec-spook > .kq-tete { padding-right: 86px; }
.kpi-bloc.k-actif { box-shadow: 0 0 0 2px var(--spook-encre), var(--ombre); }
.k-avis-bloc { max-width: 460px; }
.kb-texte { font-size: .86rem; margin: -2px 0 10px; }
.kpi-bloc-tuiles { padding: 18px 20px; } .kpi-bloc-tuiles > h3 { margin: 0 0 8px; font-size: 1.02rem; }
.kb-tuiles { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.kb-tuiles .kpi-mini { flex: 1 1 110px; min-width: 0; box-shadow: none; border: 1px solid var(--ligne); padding: 12px 14px; gap: 4px; }
.kpi-mini .kpi-valeur { font-size: 1.15rem; } .kpi-mini .kpi-titre { font-size: .84rem; } .kpi-mini .detail { font-size: .8rem; }
.kb-op { align-self: center; font-size: 1.5rem; font-weight: 700; color: var(--muted); }
.kpi-bloc-tuiles .kq-graphe { margin-top: 12px; }
.kt-repere { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 2 2; vector-effect: non-scaling-stroke; }
.kt-l-repere { width: 3px; height: 13px; background: var(--muted); }
html[data-vue=mobile] .kb-op { display: none; }

/* ---------- 2.43.0 : fenêtre de Spook agrandie sur place ---------- */
.sp-panel.sp-panel-grand { width: min(860px, calc(100vw - 340px)); height: calc(100vh - 124px); }
[data-sp-agrandir] .sp-ico-red, [data-sp-agrandir][aria-pressed=true] .sp-ico-agr { display: none; }
[data-sp-agrandir][aria-pressed=true] .sp-ico-red { display: inline-flex; }
@media (max-width: 1100px) { .sp-panel.sp-panel-grand { width: calc(100vw - 52px); } }

/* 2.43.0 : menu de gauche indépendant (pas d'ancrage du défilement, gouttière stable), libellés longs sur deux lignes, « Ma messagerie » en gras */
.nav-liens-compta { overflow-anchor: none; scrollbar-gutter: stable; overscroll-behavior: contain; }
.nav-compta .nav-sous span { white-space: normal; line-height: 1.2; overflow-wrap: anywhere; }
.nav-compta .nav-sous.nav-gras span { font-weight: 800; }

/* 2.43.0 : choix parmi trois thèmes (aperçu miniature : menu, carte, bulle de Spook) */
.themes-trois { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.theme-carte { flex-direction: column; align-items: stretch; padding: 10px; gap: 10px; }
.theme-apercu { position: relative; display: block; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.theme-apercu i { position: absolute; display: block; }
.theme-apercu .ta-menu { left: 0; top: 0; bottom: 0; width: 30%; }
.theme-apercu .ta-carte { left: 38%; right: 8%; top: 16%; height: 44%; border-radius: 7px; }
.theme-apercu .ta-spook { right: 7%; bottom: 9%; width: 20px; height: 20px; border-radius: 50%; }
.ta-violet { background: #f3f4f9; } .ta-violet .ta-menu { background: #1e1b4b; } .ta-violet .ta-carte { background: #fefeff; box-shadow: 0 2px 6px rgba(20,24,50,.12); }
.ta-violet .ta-spook { background: linear-gradient(160deg, #8b6cff, #6d4fe0); }
.ta-azur { background: #f8f9fb; } .ta-azur .ta-menu { background: #fefeff; border-right: 1px solid #eceff5; } .ta-azur .ta-carte { background: #fefeff; box-shadow: 0 2px 8px rgba(30,60,140,.12); }
.ta-azur .ta-spook { background: linear-gradient(160deg, #4f81f0, #1e5ee4); }
.ta-arona { background: #0c1811; } .ta-arona .ta-menu { background: url("../img/paysage_nav.png") center bottom / 100% auto no-repeat, #07150c; }
.ta-arona .ta-carte { background: #132219; border: 1px solid #22382a; } .ta-arona .ta-spook { background: linear-gradient(160deg, #26302a, #050806); box-shadow: 0 0 0 2px #3b5546; }
.theme-carte .tc-txt { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; }
.theme-carte .theme-pastille { width: 18px; height: 18px; grid-row: span 2; }
.theme-carte small { grid-column: 2; color: var(--muted); font-weight: 500; font-size: .78rem; line-height: 1.3; }

/* 2.43.0 : « Avis de Spook sur toute la page » en haut à droite de chaque page */
.barre-haut .bh-avis { order: 8; margin-left: auto; min-height: 34px; padding: 4px 12px; font-size: .84rem; gap: 6px; }
.barre-haut .bh-avis .g-ico { width: 18px; height: 18px; }
.avis-page-ligne { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.avis-page-ligne .bh-avis { min-height: 34px; padding: 4px 12px; font-size: .84rem; gap: 6px; }
html[data-vue=mobile] .barre-haut .bh-avis span { display: none; }

/* 2.43.0 : prévisionnel « SIG détaillé » (bascule d'affichage, tableaux des soldes, mois par mois défilant) */
.evo-barre { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 12px; }
.evo-barre .evo-horizons { margin: 0; }
.tab-sig-prev tr.total td, .tab-sig-mois tr.total td { font-weight: 700; background: var(--surf); }
.tab-sig-prev td:first-child, .tab-sig-mois td:first-child { white-space: normal; min-width: 220px; }
.tab-sig-mois th, .tab-sig-mois td { white-space: nowrap; font-size: .84rem; }
.tab-sig-mois th:first-child, .tab-sig-mois td:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
.tab-sig-mois tr.total td:first-child { background: var(--surf); }
.tab-sig-mois th:last-child, .tab-sig-mois td:last-child { font-weight: 700; border-left: 2px solid var(--ligne); }
.entete-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tab-sig-prev tr.sig-poste td { font-size: .84rem; color: var(--muted); padding-top: 6px; padding-bottom: 6px; }
.tab-sig-prev tr.sig-poste td:first-child { padding-left: 34px; }
.tab-sig-prev tr.sig-groupe td:first-child { font-weight: 600; }
.tab-sig-prev th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
.tab-sig-prev th, .tab-sig-prev td { padding: 8px 10px; font-size: .86rem; }
.tab-sig-prev td:first-child { min-width: 200px; }
.tab-sig-prev td.num { white-space: nowrap; }

/* ---------- 2.44.0 : couleurs des courbes comparées ---------- */
.g-ligne.g-c0 { stroke: var(--brand); } .g-ligne.g-c1 { stroke: #e0603a; } .g-ligne.g-c2 { stroke: #14b8a6; }
.g-point.g-c0 { stroke: var(--brand); } .g-point.g-c1 { stroke: #e0603a; } .g-point.g-c2 { stroke: #14b8a6; }
.g-pastille.g-c0 { background: var(--brand); } .g-pastille.g-c1 { background: #e0603a; } .g-pastille.g-c2 { background: #14b8a6; }

/* ---------- 2.45.0 : Tendances et évolutions, maquette A (en-tête expliqué, cartes, indicateurs, retenir, graphiques, tableaux) ---------- */
.td-entete { background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 20px 22px; margin: 4px 0 18px; display: flex; flex-direction: column; gap: 16px; }
.td-entete-haut { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.td-titres { flex: 1 1 380px; min-width: 0; } .td-h1 { margin: 0; font-size: 1.55rem; letter-spacing: -.01em; }
.td-resume { margin: 4px 0 0; color: var(--muted); }
.td-choix { display: flex; flex-direction: column; gap: 6px; } .td-choix-lib { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.td-choix-boutons { display: inline-flex; padding: 4px; gap: 4px; border-radius: 16px; background: var(--surf2); flex-wrap: wrap; }
.td-choix-boutons a { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 6px 16px; border-radius: 12px; color: var(--ink); text-decoration: none; line-height: 1.2; }
.td-choix-boutons a strong { font-size: .92rem; } .td-choix-boutons a small { font-size: .74rem; color: var(--muted); }
.td-choix-boutons a:hover { background: var(--card); }
.td-choix-boutons a.actif { background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(30, 40, 120, .18); } .td-choix-boutons a.actif small { color: rgba(255,255,255,.85); }
.td-frise-bloc { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--ligne); padding-top: 14px; }
.td-frise { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.td-frise li { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; font-size: .78rem; line-height: 1.15; }
.td-frise .td-f-ref { background: var(--surf2); color: var(--muted); } .td-frise .td-f-rec { background: var(--brand); color: #fff; font-weight: 700; }
.td-frise .td-f-n1 { box-shadow: inset 0 0 0 2px var(--warn); color: var(--ink); font-weight: 600; }
.td-f-an { font-size: .68rem; opacity: .85; min-height: .8rem; }
.td-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .86rem; color: var(--muted); }
.td-legende li { display: flex; align-items: center; gap: 8px; } .td-legende i { width: 16px; height: 12px; border-radius: 4px; display: inline-block; }
.td-l-ref { background: var(--surf2); } .td-l-rec { background: var(--brand); } .td-l-n1 { background: var(--surf2); box-shadow: inset 0 0 0 2px var(--warn); }
.td-methode { margin: 0; font-size: .92rem; }
.td-cartes, .td-indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.td-carte { gap: 10px; padding: 18px 20px; } .td-carte-tete { display: flex; align-items: center; gap: 10px; padding-right: 34px; } .td-carte-tete .kpi-titre { flex: 1; font-weight: 700; color: var(--ink); font-size: .95rem; }
.td-sous { font-size: .8rem; color: var(--muted); } .td-grand { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.td-chips { display: flex; flex-wrap: wrap; gap: 6px; } .td-chip { padding: 3px 9px; border-radius: 8px; font-size: .78rem; font-weight: 700; background: var(--surf2); color: var(--ink); }
.td-chip-bon { background: var(--ok-bg); color: var(--ok); } .td-chip-mauvais { background: var(--err-bg); color: var(--err); }
.td-compare { display: flex; flex-direction: column; gap: 6px; }
.td-compare-l { display: grid; grid-template-columns: 118px minmax(0, 1fr) 96px; align-items: center; gap: 10px; font-size: .8rem; color: var(--muted); }
.td-compare-l.td-fort { color: var(--ink); font-weight: 700; } .td-compare-val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-barre { display: block; width: 100%; height: 10px; } .td-b-fond { fill: var(--surf2); } .td-b-clair { fill: var(--surf3); } .td-b-fort { fill: var(--brand); }
.td-b-bon { fill: var(--ok); } .td-b-mauvais { fill: var(--err); } .td-b-neutre { fill: var(--muted); opacity: .6; } .td-b-zero { fill: var(--muted); }
.td-carte-spark { border-top: 1px solid var(--ligne); padding-top: 8px; display: flex; flex-direction: column; gap: 2px; }
.td-spark { display: block; width: 100%; height: 44px; } .td-sp-zone { fill: var(--brand-bg); }
.td-sp-avant { fill: none; stroke: var(--surf3); stroke-width: 2; stroke-linejoin: round; } .td-sp-rec { fill: none; stroke-width: 2.8; stroke-linejoin: round; }
.td-sp-prod .td-sp-rec { stroke: var(--brand); } .td-sp-prod .td-sp-pt { fill: var(--brand); }
.td-sp-char .td-sp-rec { stroke: #d9541e; } .td-sp-char .td-sp-pt { fill: #d9541e; }
.td-sp-res .td-sp-rec { stroke: var(--ok); } .td-sp-res .td-sp-pt { fill: var(--ok); }
.td-ind { gap: 6px; padding: 16px 18px; } .td-ind .kpi-titre { padding-right: 34px; }
.td-ind-ciseaux { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .td-ind-ciseaux > div { display: flex; flex-direction: column; gap: 4px; flex: 1 1 140px; }
.td-jauge { width: 190px; height: auto; flex: none; } .td-j-bon, .td-j-neutre, .td-j-mauvais { fill: none; stroke-width: 16; }
.td-j-bon { stroke: #9fdcb3; } .td-j-neutre { stroke: var(--surf3); } .td-j-mauvais { stroke: #f5b9a6; }
.td-j-aiguille { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; } .td-j-centre { fill: var(--ink); } .td-j-txt { fill: var(--muted); font-size: 11px; }
.td-ton-bon { color: var(--ok); } .td-ton-mauvais { color: var(--err); } .td-ton-neutre { color: var(--ink); }
.td-points { list-style: none; margin: 4px 0; padding: 0; display: flex; gap: 7px; flex-wrap: wrap; }
.td-points li { width: 20px; height: 20px; border-radius: 50%; background: var(--surf2); } .td-points li.td-p-haut { background: var(--brand); }
.td-retenir-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.td-retenir-carte { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border-radius: var(--rayon); box-shadow: var(--ombre); padding: 14px 16px; }
.td-retenir-carte strong { font-size: .93rem; } .td-retenir-carte p { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.td-r-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font-weight: 800; background: var(--surf2); color: var(--ink); }
.td-r-bon { background: var(--ok-bg); color: var(--ok); } .td-r-mauvais { background: var(--err-bg); color: var(--err); } .td-r-saison { background: var(--info-bg); color: var(--info-txt); }
.td-graphes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .td-graphes > .graphe-carte { margin: 0; } .td-graphes > .graphe-carte:nth-child(3) { grid-column: 1 / -1; }
html[data-vue=mobile] .td-graphes, html[data-vue=tablet] .td-graphes { grid-template-columns: 1fr; }
.td-badge { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: .76rem; font-weight: 700; background: var(--surf2); color: var(--muted); white-space: nowrap; }
.td-badge.td-bon { background: var(--ok-bg); color: var(--ok); } .td-badge.td-mauvais { background: var(--err-bg); color: var(--err); }
.td-badge.td-saison { background: var(--info-bg); color: var(--info-txt); }
.td-table th small { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; font-size: .72rem; }
.td-table th { white-space: normal; vertical-align: bottom; } .td-col-evol { min-width: 190px; }
.td-evol { display: flex; align-items: center; gap: 10px; } .td-evol .td-barre { flex: 1; min-width: 80px; } .td-evol-val { width: 64px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.td-table .td-spark-col { width: 140px; } .td-table .td-spark { height: 30px; }
html[data-vue=mobile] .td-table .td-spark-col { display: none; }
html[data-vue=mobile] .td-frise li { min-height: 36px; font-size: .68rem; } html[data-vue=mobile] .td-f-an { display: none; }
.td-graphes > .graphe-carte:nth-child(3) .graphe { max-height: 300px; }

/* ---------- 2.45.0 : page d'accueil du client (maquette A) ---------- */
.acc-hero { position: relative; overflow: hidden; border-radius: 24px; background: var(--brand-fonce); color: #fff; padding: 30px 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin: 0 0 22px; }
.acc-hero-fantome { position: absolute; right: -90px; top: -90px; opacity: .08; color: var(--brand-2); pointer-events: none; }
.acc-hero-texte { position: relative; flex: 1 1 420px; min-width: 0; }
.acc-date { margin: 0 0 6px; color: rgba(255,255,255,.88); font-weight: 600; letter-spacing: .01em; }   /* 2.47.0 : la date en blanc, lisible sur tous les thèmes */
.acc-hero h1 { margin: 0; font-size: 2.4rem; line-height: 1.1; letter-spacing: -.02em; color: #fff; }
.acc-message { margin: 10px 0 0; font-size: 1.12rem; opacity: .92; max-width: 640px; }
.acc-compteurs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.acc-compteurs span { padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .9rem; }
.acc-spook { position: relative; flex: 0 1 300px; display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); }
.acc-spook p { margin: 0; font-size: .9rem; opacity: .95; } .acc-spook-ico { color: #fff; flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.acc-spook-ico svg { width: 30px; height: 30px; } .acc-spook-ico .g-oeil, .acc-spook-ico circle { fill: var(--brand-fonce); }   /* 2.47.0 : Spook bien visible (fantôme blanc) */
.acc-tete-liste h2 { margin: 0 0 14px; font-size: 1.3rem; } .acc-tete-liste h2 .muted { font-size: .92rem; font-weight: 500; }
.acc-corps { display: grid; gap: 20px; align-items: start; }
.acc-une { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
.acc-plusieurs { grid-template-columns: 1fr; }
.acc-cartes { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.acc-une .acc-cartes { grid-template-columns: 1fr; }
.acc-plusieurs .acc-cote { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.acc-une .acc-cote { display: flex; flex-direction: column; gap: 16px; }
.acc-carte { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 22px; text-decoration: none; color: inherit; border: 1px solid var(--ligne); transition: transform .12s, box-shadow .12s; }
.acc-carte:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(20,24,50,.12); }
.acc-carte-tete { display: flex; align-items: center; gap: 12px; } .acc-nom { display: flex; flex-direction: column; min-width: 0; } .acc-nom strong { font-size: 1.15rem; } .acc-nom .muted { font-size: .85rem; }
.acc-initiales { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.acc-t0 { background: var(--brand-bg); color: var(--brand-txt); } .acc-t1 { background: #fff1de; color: #9a4a06; } .acc-t2 { background: #e3f2f1; color: #0f6b63; } .acc-t3 { background: #e0ecff; color: #1d4f9c; }
.acc-badge { align-self: flex-start; font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.acc-badge-neuf { background: var(--ok-bg); color: var(--ok); } .acc-badge-gris { background: var(--surf2); color: var(--muted); }
.acc-chiffres { margin: 0; padding: 4px 14px; border-radius: 12px; background: var(--surf); display: flex; flex-direction: column; }
.acc-chiffres > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ligne); } .acc-chiffres > div:last-child { border-bottom: 0; }
.acc-chiffres dt { color: var(--muted); font-size: .85rem; } .acc-chiffres dt small { display: block; font-size: .72rem; }
.acc-chiffres dd { margin: 0; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; } .acc-chiffres dd strong { font-size: 1.1rem; } .acc-chiffres .neg { color: var(--err); }
.acc-evol { font-size: .78rem; font-weight: 700; } .acc-hausse { color: var(--ok); } .acc-baisse { color: var(--err); }
.acc-spark { display: flex; flex-direction: column; gap: 2px; font-size: .74rem; }
.acc-pied { display: flex; flex-direction: column; gap: 12px; margin-top: auto; border-top: 1px solid var(--ligne); padding-top: 14px; }
.acc-pied-infos { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.acc-pieces { font-weight: 600; color: var(--warn); } .acc-ok { font-weight: 600; color: var(--ok); }
.acc-bouton { border-radius: 999px; } .acc-bouton .ico { width: 16px; height: 16px; transform: rotate(180deg); }
.acc-vide { margin: 0; font-size: .9rem; }
.acc-bloc { margin: 0; } .acc-bloc h3 { margin: 0 0 12px; font-size: 1rem; }
.acc-nouv { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.acc-nouv a { display: flex; gap: 12px; align-items: center; padding: 6px; border-radius: 12px; color: inherit; text-decoration: none; } .acc-nouv a:hover { background: var(--surf); }
.acc-nouv-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; } .acc-nouv-ico .ico { width: 18px; height: 18px; }
.acc-n-publication { background: var(--ok-bg); color: var(--ok); } .acc-n-message { background: var(--brand-bg); color: var(--brand-txt); } .acc-n-pieces { background: var(--warn-bg); color: var(--warn); }
.acc-nouv-txt { flex: 1; display: flex; flex-direction: column; font-size: .9rem; min-width: 0; } .acc-nouv-txt .muted { font-size: .82rem; }
.acc-tag { font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.acc-ref { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--ligne); } .acc-ref:first-of-type { border-top: 0; }
.acc-ref-av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-fonce); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.acc-ref-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; font-size: .92rem; } .acc-ref-txt .muted { font-size: .8rem; }
html[data-vue=mobile] .acc-une { grid-template-columns: 1fr; } html[data-vue=mobile] .acc-hero { padding: 22px; } html[data-vue=mobile] .acc-hero h1 { font-size: 1.8rem; }
html[data-vue=mobile] .acc-hero-fantome { display: none; }
html[data-theme=azur] .acc-hero { background: linear-gradient(160deg, #1c5ded 0%, #3a70f0 60%, #6e98f5 100%); }

/* 2.46.0 : actions sensibles du cabinet (supprimer, retirer, relancer le calcul) */
.btn-danger { color: var(--err); border-color: #f0b4b4; }
.btn-danger:hover { background: var(--err-bg); }
.btn-danger-plein { background: var(--err); border-color: var(--err); color: #fff; }
.btn-danger-plein:hover { filter: brightness(.92); }
.carte-danger { border-left: 5px solid var(--err); }
.liste-confirmer { margin: 0 0 16px; padding-left: 20px; line-height: 1.55; }
.liste-confirmer li { margin-bottom: 6px; }
.alerte-attention { background: var(--warn-bg); color: var(--warn-txt); border-color: #f2d49a; }
.carte-publiee { border-left: 5px solid var(--brand); }
.ligne-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; }
.ligne-form label { margin: 0; }
.ligne-form select { width: auto; min-width: 200px; }
.carte-arret { border-left: 5px solid var(--brand); }
.carte-arret .arret-chiffres { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 6px 0 10px; }
.carte-arret .arret-chiffres div { display: flex; flex-direction: column; }
.carte-arret .arret-chiffres span { font-size: .8rem; color: var(--muted); }
.carte-arret .arret-chiffres strong { font-size: 1.05rem; }

/* 2.46.0 : « Écrire » avec plusieurs dossiers chez le même interlocuteur */
.acc-ecrire { position: relative; }
.acc-ecrire > summary { list-style: none; cursor: pointer; }
.acc-ecrire > summary::-webkit-details-marker { display: none; }
.acc-ecrire[open] > summary { background: var(--surf2); }
.acc-ecrire-menu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 300px; background: var(--card); border: 1px solid var(--ligne);
  border-radius: 12px; box-shadow: var(--ombre); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.acc-ecrire-menu p { margin: 0 0 6px; font-size: .88rem; line-height: 1.4; }
.acc-ecrire-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.acc-ecrire-menu a:hover, .acc-ecrire-menu a:focus { background: var(--surf2); }
.acc-pastille { width: 12px; height: 12px; border-radius: 50%; flex: none; border: 3px solid currentColor; }

/* 2.46.0 : parties du menu repliables */
.nav-groupe > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; border-radius: 8px; user-select: none; }
.nav-groupe > summary::-webkit-details-marker { display: none; }
.nav-groupe > summary span { flex: 1; min-width: 0; }
.nav-groupe > summary .ico { width: 14px; height: 14px; flex: none; transform: rotate(180deg); transition: transform .15s; opacity: .8; }
.nav-groupe[open] > summary .ico { transform: rotate(270deg); }
.nav-groupe > summary:hover { color: var(--brand); }
.nav-groupe > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.nav-groupe .nav-repli-pastille { min-width: 18px; height: 18px; line-height: 18px; font-size: .62rem; padding: 0 5px; letter-spacing: 0; text-transform: none; }
.nav-groupe[open] .nav-repli-pastille { display: none; }
.nav-compta .nav-groupe > summary.nav-titre { padding: 8px 10px 4px; margin-top: 2px; }
.menu-mobile-liste .nav-groupe > summary { padding: 10px 10px 4px; }
html[data-vue=tablet] .nav-compta .nav-groupe > summary { display: none; }

/* 2.46.0 : Tendances — la tendance de la période (droite de tendance), sans comparaison avec l'an dernier */
.td-choix-boutons .td-choix-off { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 6px 16px;
  border-radius: 12px; line-height: 1.2; color: var(--muted); opacity: .6; cursor: not-allowed; }
.td-choix-off strong { font-size: .92rem; } .td-choix-off small { font-size: .74rem; }
.td-ligne { font-size: .86rem; color: var(--ink); }
.td-carte-mini { border-top: 1px solid var(--ligne); padding-top: 8px; display: flex; flex-direction: column; gap: 4px; }
.td-mini { display: block; width: 100%; height: 64px; }
.td-mini-b { fill: var(--brand-bg); stroke: var(--brand); stroke-width: 1; opacity: .9; }
.td-mini-t { stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 7 5; }
.td-ton-bon .td-mini-t { stroke: var(--ok); } .td-ton-mauvais .td-mini-t { stroke: var(--err); }
.td-mini-zero { stroke: var(--ligne); stroke-width: 1.5; }
.td-table .td-mini { height: 32px; width: 130px; }
.g-tendance { stroke-width: 2.5; stroke-dasharray: 9 6; stroke-linecap: round; opacity: .9; }
.g-tendance.g-c0 { stroke: var(--brand); } .g-tendance.g-c1 { stroke: #e0603a; } .g-tendance.g-c2 { stroke: #14b8a6; }
.g-ligne.g-mince { stroke-width: 2.2; opacity: .75; }
.g-pastille-tirets { display: inline-block; width: 18px; height: 0; border-top: 3px dashed var(--muted); vertical-align: middle; margin-right: 6px; }
.champ-mot { max-width: 280px; display: block; }
.tab-entreprises td.actions { min-width: 210px; }

/* 2.47.0 : Résultat de fin d'exercice, vos informations pour Spook */
.est-spook { border-left: 5px solid var(--brand); }
.est-spook-tete { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; justify-content: space-between; }
.est-spook-tete h2 { margin: 0 0 4px; } .est-spook-tete > div:first-child { flex: 1 1 420px; min-width: 0; }
.est-spook-chiffre { display: flex; flex-direction: column; align-items: flex-end; text-align: right; background: var(--surf2); border-radius: 14px; padding: 12px 18px; }
.est-spook-chiffre span { font-size: .8rem; color: var(--muted); font-weight: 600; } .est-spook-chiffre strong { font-size: 1.6rem; } .est-spook-chiffre small { color: var(--muted); max-width: 260px; }
.est-infos { list-style: none; margin: 12px 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.est-info { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 10px 12px; border-radius: 10px; background: var(--surf2); border-left: 4px solid var(--muted); }
.est-info.est-appliquee { border-left-color: var(--ok); } .est-info.est-a_preciser { border-left-color: var(--warn); } .est-info.est-attente { border-left-color: var(--brand); }
.est-info-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .est-info-txt small { color: var(--muted); }
.est-ajout { display: flex; gap: 10px; margin: 8px 0; } .est-ajout input { flex: 1; min-width: 0; }
.est-calcul { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 6px 0 4px; }
.est-spook h3 { font-size: 1rem; margin: 14px 0 6px; }

/* 2.47.0 : menu de « Ma comptabilité », maquette A validée (textes un peu plus grands, plus d'air sous MySpectre et le nom de l'entreprise) ;
   titres des parties en blanc pour être lisibles (thème Blanc et bleu : couleur du texte) */
.nav-compta .nav-haut { padding: 4px 8px 16px; }
.nav-compta .nav-entreprise { padding: 0 10px 14px; margin-bottom: 12px; font-size: 1rem; }
.nav-compta .nav-entreprise span { white-space: normal; overflow: visible; line-height: 1.25; }
.nav-compta .nav-titre, .nav-compta .nav-groupe > summary.nav-titre { font-size: .74rem; padding: 11px 10px 5px; color: #fff; }
.nav-compta .nav-groupe > summary.nav-titre:hover { color: #fff; opacity: .85; }
html[data-theme=arona] .nav-compta .nav-titre { color: #fff; }
html[data-theme=azur] .nav-compta .nav-titre, html[data-theme=azur] .nav-compta .nav-groupe > summary.nav-titre:hover { color: var(--ink); }
.nav-compta .nav-sous { padding: 7px 10px; font-size: .93rem; gap: 10px; } .nav-compta .nav-sous .ico { width: 18px; height: 18px; }
/* titres des pages : la taille de « Bienvenue, … ! » de la vue d'ensemble */
.page h1.titre-page, .page h2.titre-page { font-size: 1.6rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.page h2.titre-section.titre-page { margin-top: 4px; }

/* 2.47.0 : journal de Spook, style « Rapport » (clair et sobre, maquette A validée) : le style par défaut */
.tb.rapport { font-family: Inter, "Segoe UI", system-ui, sans-serif; color: #1f2937; background: #fefeff; border: 1px solid #dde3ec; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .08); padding: 0 32px 30px; margin-bottom: 26px; }
.tb.rapport::after, .tb.rapport .tb-rebord, .tb.rapport .tb-signe { display: none; }
.tb.rapport .tb-haut { margin: 0 -32px 24px; padding: 22px 32px 18px; background: #14213d; color: #fff; border: 0; border-radius: 14px 14px 0 0; align-items: center; }
.tb.rapport .tb-titre { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
.tb.rapport .tb-date { font-size: .85rem; color: #c7d2fe; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.tb.rapport .tb-sous { color: rgba(255,255,255,.75); font-size: .92rem; }
.tb.rapport a.tb-retour { color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; font-size: .85rem; padding: 4px 12px; }
.tb.rapport .tb-h { font-family: inherit; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: #14213d; margin: 0 0 12px;
  padding-bottom: 8px; border-bottom: 2px solid #14213d; }
.tb.rapport .tb-h.v { border-color: #15803d; } .tb.rapport .tb-h.o { border-color: #c2410c; } .tb.rapport .tb-h.r { border-color: #b91c1c; } .tb.rapport .tb-h.b { border-color: #0e7490; } .tb.rapport .tb-h.j { border-color: #b45309; }
.tb.rapport .tb-texte { font-size: 1rem; line-height: 1.65; color: #1f2937; }
.tb.rapport .tb-texte b, .tb.rapport .tb-l b { color: #0f172a; font-weight: 700; text-decoration: none; }
.tb.rapport .tb-cadre, .tb.rapport .tb-kpi, .tb.rapport .tb-piste { border: 1px solid #e3e8f0; border-radius: 10px; background: #fafbfd; padding: 16px 18px; }
.tb.rapport .tb-l { font-size: .93rem; line-height: 1.5; margin-bottom: 10px; padding-left: 22px; }
.tb.rapport .tb-l::before { font-size: .95rem; top: 1px; }
.tb.rapport .tb-l small { font-size: .82rem; color: #64748b; }
.tb.rapport .tb-l.ok::before, .tb.rapport .tb-l.bon::before { color: #15803d; } .tb.rapport .tb-l.up::before, .tb.rapport .tb-l.down::before { color: #c2410c; }
.tb.rapport .tb-l.att::before { color: #b91c1c; } .tb.rapport .tb-l.pt::before { color: #14213d; }
.tb.rapport a.tb-a { border-bottom: 1px solid #cbd5e1; } .tb.rapport a.tb-a:hover { color: #1d4ed8; }
.tb.rapport .tb-cap { transform: none; font-size: .85rem; font-weight: 700; border-radius: 999px; padding: 6px 14px; background: #dcfce7; color: #166534; }
.tb.rapport .tb-cap.en-bonne-voie { background: #fef3c7; color: #92400e; } .tb.rapport .tb-cap.a-rattraper { background: #fee2e2; color: #991b1b; } .tb.rapport .tb-cap.aucun { background: #eef2f7; color: #334155; }
.tb.rapport a.tb-cap-lien { color: #1d4ed8; font-size: .88rem; }
.tb.rapport .tb-humeur { padding-top: 8px; border-left: 1px solid #e3e8f0; }
.tb.rapport .tb-kpi .n { font-size: 1.55rem; font-weight: 700; color: #0f172a; } .tb.rapport .tb-kpi .l { font-size: .85rem; color: #475569; } .tb.rapport .tb-kpi .p { font-size: .8rem; color: #64748b; }
.tb.rapport .tb-table { font-size: .92rem; } .tb.rapport .tb-table th { color: #64748b; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; border-bottom: 2px solid #14213d; }
.tb.rapport .tb-table td { border-bottom: 1px solid #edf0f5; }
.tb.rapport .tb-pied { font-size: .82rem; color: #64748b; max-width: none; }
.tb.rapport .tb-legende { font-size: .85rem; color: #475569; }
.tb.rapport svg [filter] { filter: none; }
.tb.rapport svg:not(.tb-fantome) [fill="#f2efe6"] { fill: #334155; } .tb.rapport svg [stroke="#f2efe6"] { stroke: #334155; }
.tb.rapport svg [fill="#f7e48b"] { fill: #14213d; } .tb.rapport svg [stroke="#f7e48b"] { stroke: #14213d; }
.tb.rapport svg [fill="#f6a9c0"] { fill: #b91c1c; } .tb.rapport svg [stroke="#f6a9c0"] { stroke: #b91c1c; }
.tb.rapport svg [fill="#a8d8f5"] { fill: #2563eb; } .tb.rapport svg [stroke="#a8d8f5"] { stroke: #2563eb; }
.tb.rapport svg [fill="#a7e8b8"] { fill: #15803d; } .tb.rapport svg [stroke="#a7e8b8"] { stroke: #15803d; }
.tb.rapport svg [fill="#f8c48a"] { fill: #c2410c; } .tb.rapport svg [stroke="#f8c48a"] { stroke: #c2410c; }
.tb.rapport svg [fill="#d9d5c8"], .tb.rapport svg [fill="#cfcabb"] { fill: #64748b; }
.tb.rapport svg [stroke="rgba(242,239,230,.12)"] { stroke: #eef1f6; } .tb.rapport svg [stroke="rgba(242,239,230,.45)"] { stroke: #cbd5e1; }
.tb.rapport svg text { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.tb.rapport svg [fill="url(#sp-hbu)"] { fill: #bfdbfe; } .tb.rapport svg [fill="url(#sp-hbl)"] { fill: #94a3b8; } .tb.rapport svg [fill="url(#sp-hve)"] { fill: #bbf7d0; }
.tb.rapport svg [fill="url(#sp-hro)"] { fill: #fecaca; } .tb.rapport svg [fill="url(#sp-hja)"] { fill: #fde68a; } .tb.rapport svg [fill="url(#sp-hor)"] { fill: #fed7aa; }
.tb.rapport svg text { font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.tbx-pastille.rapport { background: #14213d; color: #fff; }
.tb.rapport .tb-kpi .n.j, .tb.rapport .tb-piste .m, .tb.rapport .tb-table tr.sig-grand td, .tb.rapport .tb-table.hyp td.sp, .tb.rapport .tb-note { color: #1e3a8a; }
.tb.rapport .tb-kpi .n.v { color: #15803d; } .tb.rapport .tb-kpi .n.r, .tb.rapport .tb-table td.neg, .tb.rapport .tb-table tr.sig-total td.neg, .tb.rapport .tb-table tr.sig-grand td.neg,
.tb.rapport .tb-repos, .tb.rapport .tb-ancien { color: #b91c1c; } .tb.rapport .tb-kpi .n.b, .tb.rapport .tb-client { color: #0e7490; }
.tb.rapport .tb-ancien { border-color: rgba(185,28,28,.5); font-size: .8rem; }
.tb.rapport .tb-table tr.sig-total td { color: #0f172a; font-size: .98rem; font-weight: 700; } .tb.rapport .tb-table tr.sig-grand td { font-size: 1rem; font-weight: 700; border-bottom: 2px solid #14213d; }
.tb.rapport .tb-table tr.sig-moins td:first-child, .tb.rapport .tb-table tr.sig-plus td:first-child, .tb.rapport .tb-table.hyp td.pq, .tb.rapport .tb-table th small { color: #64748b; }
.tb.rapport .tb-table.hyp tr.change td:first-child::before { color: #1e3a8a; }
.tb.rapport .tb-piste .t { color: #0f172a; font-size: 1rem; font-weight: 600; } .tb.rapport .tb-piste .m { font-size: 1.2rem; font-weight: 700; } .tb.rapport .tb-piste .d { color: #475569; font-size: .88rem; }
.tb.rapport .tb-piste .g { background: #dcfce7; color: #166534; font-size: .8rem; } .tb.rapport .tb-piste .g.haut { background: #ffedd5; color: #9a3412; }
.tb.rapport .tb-bouton { font-family: inherit; font-size: .9rem; font-weight: 600; color: #1e3a8a; border: 1px solid #93a3c8; border-radius: 8px; }
.tb.rapport .tb-bouton.fort { color: #fff; background: #14213d; border-color: #14213d; font-size: .95rem; padding: 9px 18px; }
.tb.rapport .tb-ajout-form input { font-family: inherit; font-size: .95rem; background: #fefeff; color: #0f172a; border: 1px solid #cbd5e1; border-radius: 8px; }
.tb.rapport .tb-ajout-form input::placeholder { color: #94a3b8; }
.tb.rapport .tb-suppr button { color: #64748b; border: 1px solid #cbd5e1; font-family: inherit; font-size: .95rem; }
.tb.rapport .tb-legende .ve { border-color: #15803d; } .tb.rapport .tb-legende .lg-plein.ve { background: #bbf7d0; }
.tb.rapport .tb-legende .ro { border-color: #b91c1c; } .tb.rapport .tb-legende .lg-plein.ro { background: #fecaca; }
.tb.rapport .tb-legende .bu { border-color: #2563eb; } .tb.rapport .tb-legende .lg-plein.bu { background: #bfdbfe; }
.tb.rapport .tb-legende .ja { border-color: #14213d; } .tb.rapport .tb-legende .lg-plein.ja { background: #c7d2fe; }
.tb.rapport .tb-ecrit i { background: #14213d; }
.tb.rapport .cap-l { border-bottom: 1px solid #edf0f5; } .tb.rapport .cap-n { font-size: 1.02rem; font-weight: 600; } .tb.rapport .cap-s small { color: #475569; font-size: .88rem; }
.tb.rapport .cap-e { transform: none; font-size: .8rem; font-weight: 700; border-radius: 999px; background: #dcfce7; color: #166534; }
.tb.rapport .cap-e.vigilance { background: #fef3c7; color: #92400e; } .tb.rapport .cap-e.retard { background: #fee2e2; color: #991b1b; }
.tab-comparatif tr.evo-futur td { color: var(--muted); }

/* 2.48.0 : page « Accès réseau » de l'administration */
.table-reseau { width: 100%; border-collapse: collapse; margin: 6px 0 14px; }
.table-reseau th { text-align: left; font-weight: 600; color: var(--muted); width: 190px; padding: 9px 12px 9px 0; vertical-align: top; }
.table-reseau td { padding: 9px 0; overflow-wrap: anywhere; }
.table-reseau th, .table-reseau td { border-bottom: 0; background: none; }
.table-reseau tr + tr th, .table-reseau tr + tr td { border-top: 1px solid var(--ligne); }
.reseau-adresse .grand { margin: 4px 0 10px; }
html[data-vue=mobile] .table-reseau th { width: 42%; }

/* 2.49.0 : rappel du renouvellement du mot de passe et de la clé */
.bandeau-rappel { font-weight: 500; }
.bandeau-rappel a { color: inherit; font-weight: 700; text-decoration: underline; }
