@font-face { font-family:'Figtree Logo'; src:url('polices/Figtree_800ExtraBold.ttf') format('truetype'); font-weight:800; font-display:swap; }
@font-face { font-family:'Bebas Neue'; src:url('polices/BebasNeue_400Regular.ttf') format('truetype'); font-display:swap; }
:root { --navy:#12355b; --bg:#f6f5f2; --line:#e4e2dc; --muted:#70737b; --text:#16181d; --ok:#2f7d5b; --busy:#b7791f; --haute:#c0392b; --moyenne:#c98a1b; --basse:#6b8fb5; }
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; background:var(--bg); color:var(--text); font:15px/1.45 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; }
button, input, textarea, select { font:inherit; color:inherit; }
button { cursor:pointer; border:none; background:none; padding:0; }
a { color:var(--navy); word-break:break-all; }

.top { position:sticky; top:0; z-index:5; background:#fff; border-bottom:1px solid var(--line); padding:calc(env(safe-area-inset-top) + 10px) 16px 10px; display:flex; align-items:center; gap:20px; }
.logo { display:flex; align-items:center; gap:4px; color:var(--navy); --h:40px; flex:none; }
.logo-nom { font-family:'Figtree Logo', -apple-system, sans-serif; font-weight:800; font-size:calc(var(--h) * .42); line-height:.95; letter-spacing:-.01em; }
.logo img { height:var(--h); width:auto; display:block; }
.logo i { width:3px; align-self:stretch; background:var(--navy); border-radius:2px; margin-left:4px; }
.logo.grand { --h:76px; margin-bottom:16px; justify-content:center; gap:8px; }
.logo.grand i { width:6px; margin-left:8px; }
.toptabs { display:none; gap:4px; flex:1; }
.toptabs button { padding:7px 14px; border-radius:99px; color:var(--muted); }
.toptabs button.on { background:var(--navy); color:#fff; }
.moi { margin-left:auto; font-size:14px; color:var(--muted); background:var(--bg); border-radius:99px; padding:6px 12px; }
.moi b { color:var(--navy); }

main { max-width:1280px; margin:0 auto; padding:16px 16px calc(env(safe-area-inset-bottom) + 100px); }
h1 { font-size:22px; margin:4px 0 14px; }
h2 { font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); margin:0 0 10px; font-weight:600; display:flex; justify-content:space-between; align-items:center; }

.nav { position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid var(--line); display:flex; padding-bottom:env(safe-area-inset-bottom); z-index:5; }
.nav button { flex:1; padding:10px 0 9px; font-size:12px; color:var(--muted); display:flex; flex-direction:column; align-items:center; gap:3px; }
.nav svg { width:22px; height:22px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.nav button.on { color:var(--navy); font-weight:600; }

/* Tableau : kanban à gauche, calendrier + idées à droite */
.dash { display:grid; gap:18px; }
.panel { background:#fff; border:1px solid var(--line); border-radius:16px; padding:14px; }

.addtask { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:12px; }
.addtask input[name=txt] { flex:1 1 220px; }
.inp { border:1px solid var(--line); border-radius:10px; padding:10px 12px; background:#fff; min-width:0; }
.btn { background:var(--navy); color:#fff; border-radius:10px; padding:10px 16px; font-weight:600; white-space:nowrap; }
.btn.soft { background:var(--bg); color:var(--navy); border:1px solid var(--line); }
.btn.small { padding:6px 12px; border-radius:99px; font-size:13px; font-weight:500; }
.btn.danger { background:none; color:var(--haute); padding:10px 4px; font-weight:500; margin-right:auto; }
.x { color:var(--muted); padding:4px 6px; font-size:13px; }
.sub { color:var(--muted); font-size:13px; }
.empty { color:var(--muted); text-align:center; padding:14px 0; font-size:13px; }

.kanban { display:grid; grid-template-columns:1fr; gap:12px; }
.kcol { background:#efeee9; border-radius:14px; padding:10px; min-height:90px; transition:background .15s, box-shadow .15s; }
.kcol.over { background:#e3e8f2; box-shadow:inset 0 0 0 2px var(--navy); }
.kcol h3 { margin:2px 4px 10px; font-size:14px; display:flex; justify-content:space-between; align-items:center; }
.kcol h3 span { color:var(--muted); font-weight:500; font-size:13px; }
.kcol h3 i { width:8px; height:8px; border-radius:50%; display:inline-block; margin-right:6px; }
.kcard { background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 10px 10px 4px; margin-bottom:8px; display:flex; gap:4px; cursor:grab; user-select:none; border-left:4px solid transparent; }
.kcard.p-haute { border-left-color:var(--haute); }
.kcard.p-moyenne { border-left-color:var(--moyenne); }
.kcard.p-basse { border-left-color:var(--basse); }
.kcard.dragging { opacity:.35; }
.grip { flex:none; width:22px; color:#b5b3ad; font-size:16px; line-height:1; touch-action:none; cursor:grab; display:flex; align-items:flex-start; justify-content:center; padding-top:2px; }
.kbody { flex:1; min-width:0; }
.ktitle { font-weight:500; margin-bottom:6px; overflow-wrap:anywhere; }
.fait .ktitle { color:var(--muted); text-decoration:line-through; }
.kmeta { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.mini { border:1px solid var(--line); border-radius:99px; padding:3px 8px; font-size:12px; background:var(--bg); color:var(--text); max-width:150px; }
.mini.p-haute { background:#f7e3e1; color:var(--haute); border-color:#efc9c4; font-weight:600; }
.mini.p-moyenne { background:#f8ecd6; color:#8f6110; border-color:#ecd6aa; font-weight:600; }
.mini.p-basse { background:#e7eef6; color:#3f6690; border-color:#cbd9ea; font-weight:600; }
.mini.date-set { background:#eef1f7; color:var(--navy); border-color:#d6deec; }
.mini.late { background:#f7e3e1; color:var(--haute); border-color:#efc9c4; }
.busy { color:var(--busy); font-size:12px; font-weight:500; }
.lien { font-size:12px; color:var(--muted); }
.ghost { position:fixed; z-index:50; pointer-events:none; box-shadow:0 12px 28px rgba(15,20,35,.25); transform:rotate(2deg); opacity:.95; }

/* Calendrier compact */
.cal-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
.cal-head b { text-transform:capitalize; font-size:14px; }
.cal-head button { width:28px; height:28px; border-radius:50%; background:var(--bg); color:var(--navy); font-size:16px; }
.cal { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; text-align:center; }
.cal .dow { font-size:10px; color:var(--muted); padding:2px 0; }
.cal .d { height:32px; border-radius:8px; font-size:13px; display:grid; place-items:center; color:#9a9ca3; }
.cal .d.today { color:var(--text); font-weight:700; text-decoration:underline; }
.cal .d.has { color:#fff; font-weight:600; cursor:pointer; }
.cal .d.has.p-haute { background:var(--haute); }
.cal .d.has.p-moyenne { background:var(--moyenne); }
.cal .d.has.p-basse { background:var(--basse); }
.cal .d.has.p-aucune { background:var(--navy); }
.cal .d.sel { outline:2px solid var(--text); outline-offset:1px; }
.echeances { margin-top:10px; }
.ech { display:flex; gap:8px; align-items:center; padding:7px 0; border-top:1px solid var(--line); font-size:14px; cursor:pointer; }
.ech .dd { flex:none; width:44px; font-size:12px; color:var(--muted); }
.ech .pp { flex:none; width:8px; height:8px; border-radius:50%; }

/* Idées */
.idee { display:flex; gap:8px; align-items:flex-start; padding:8px 0; border-top:1px solid var(--line); }
.idee:first-of-type { border-top:none; }
.idee .grow { flex:1; min-width:0; font-size:14px; overflow-wrap:anywhere; }
.star { flex:none; color:#c9c7c0; font-size:18px; line-height:1.2; }
.star.on { color:var(--moyenne); }

/* Notes / fichiers */
.card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 14px; margin-bottom:8px; }
.tap { cursor:pointer; }
.item { display:flex; gap:12px; align-items:center; }
.item .grow { flex:1; min-width:0; }
.add { display:flex; gap:8px; margin-bottom:14px; }
.add .inp { flex:1; }
.chips { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; margin-bottom:12px; scrollbar-width:none; }
.chips::-webkit-scrollbar { display:none; }
.chip { flex:none; padding:7px 14px; border-radius:99px; background:#fff; border:1px solid var(--line); font-size:14px; }
.chip.on { background:var(--navy); color:#fff; border-color:var(--navy); }
.chip.plus { color:var(--navy); border-style:dashed; }
.tag { font-size:12px; padding:2px 8px; border-radius:99px; background:#eef1f7; color:var(--navy); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.tag.t { background:#f6ead6; color:var(--busy); }
.tags { display:flex; gap:6px; flex-wrap:wrap; margin-top:6px; }
.note .titre { font-weight:600; }
.note .corps { white-space:pre-wrap; margin-top:4px; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.thumb { flex:none; width:46px; height:46px; border-radius:10px; background:#eef1f7; color:var(--navy); display:grid; place-items:center; font-size:11px; font-weight:700; overflow:hidden; text-transform:uppercase; }
.thumb img { width:100%; height:100%; object-fit:cover; }
.sheet.big { max-width:900px; height:100%; max-height:none; border-radius:0; padding:0; display:flex; flex-direction:column; overflow:auto; }
.ed-head { position:sticky; top:0; z-index:3; background:#fff; display:flex; justify-content:space-between; align-items:center; gap:8px; padding:calc(env(safe-area-inset-top) + 10px) 14px 10px; border-bottom:1px solid var(--line); }
.ed-titre { border:none; outline:none; font-size:26px; font-weight:700; padding:16px 18px 6px; width:100%; background:none; }
.ed-meta { display:flex; gap:6px; flex-wrap:wrap; padding:0 18px 10px; }
.ed-meta .mini { padding:5px 10px; font-size:13px; }
.ed-bar { position:sticky; top:57px; z-index:2; background:#faf9f6; border-top:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-wrap:wrap; align-items:center; gap:2px; padding:6px 10px; }
.ed-bar::-webkit-scrollbar { display:none; }
.ed-bar > button, .pop > button { flex:none; min-width:36px; height:36px; border-radius:8px; font-size:15px; display:grid; place-items:center; padding:0 6px; }
.ed-bar > button:hover, .pop > button:hover { background:#ecebe6; }
.tb-sel { flex:none; border:1px solid var(--line); border-radius:8px; padding:6px 6px; font-size:13px; background:#fff; height:34px; }
.sep { flex:none; width:1px; height:22px; background:var(--line); margin:0 4px; }
.pop { position:relative; flex:none; }
.pal { display:none; position:fixed; z-index:30; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px; box-shadow:0 8px 24px rgba(15,20,35,.18); gap:6px; flex-wrap:wrap; width:186px; }
.pal.on { display:flex; }
.sw { width:28px; height:28px; border-radius:50%; border:2px solid #fff; box-shadow:0 0 0 1px var(--line); }
.sw.none { background:#fff; font-size:12px; color:var(--muted); }
.editor { flex:1 0 auto; min-height:55vh; padding:18px; outline:none; font-size:16px; line-height:1.6; overflow-wrap:anywhere; }
.editor:empty::before { content:attr(data-placeholder); color:#a5a7ad; }
.editor h2, .rich h2 { font-size:22px; margin:.6em 0 .3em; }
.editor h3, .rich h3 { font-size:18px; margin:.6em 0 .3em; }
.editor blockquote, .rich blockquote { border-left:3px solid var(--navy); margin:.5em 0; padding:2px 0 2px 12px; color:#444; }
.editor ul, .editor ol, .rich ul, .rich ol { padding-left:1.4em; margin:.3em 0; }
.ed-pj { padding:12px 18px calc(env(safe-area-inset-bottom) + 18px); border-top:1px solid var(--line); background:#faf9f6; }
.note .corps.rich { display:block; -webkit-line-clamp:unset; max-height:7.5em; overflow:hidden; white-space:normal; position:relative; }
.note .corps.rich::after { content:''; position:absolute; left:0; right:0; bottom:0; height:1.6em; background:linear-gradient(transparent,#fff); }
.rich > :first-child { margin-top:0; }
.rich p, .rich div { margin:0; }
@media (min-width:1000px) { .sheet.big { height:92vh; border-radius:18px; } .ed-head { padding-top:12px; } }
.pj { display:flex; gap:10px; align-items:center; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px; margin-bottom:6px; }
.pj .grow { flex:1; min-width:0; }
.pjnom { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }
.imgs { display:grid; grid-template-columns:repeat(4, 1fr); gap:4px; margin-top:8px; }
.imgs img { width:100%; aspect-ratio:1; object-fit:cover; border-radius:8px; }
.pjtag { background:var(--bg); color:var(--text); }
.grid-cards { display:grid; gap:8px; grid-template-columns:1fr; }
.grid-cards .card { margin:0; }

/* Fenêtres */
.sheet-bg { position:fixed; inset:0; background:rgba(15,20,35,.4); z-index:20; display:flex; align-items:flex-end; justify-content:center; }
.sheet { background:#fff; width:100%; max-width:560px; border-radius:18px 18px 0 0; padding:18px 16px calc(env(safe-area-inset-bottom) + 18px); max-height:92vh; overflow:auto; }
.sheet h3 { margin:0 0 12px; font-size:18px; }
.sheet .inp { width:100%; margin-bottom:10px; display:block; }
.sheet textarea.inp { min-height:130px; resize:vertical; }
.sheet .lbl { font-size:13px; color:var(--muted); display:block; margin:2px 0 4px; }
.row2 { display:flex; gap:8px; }
.row2 > * { flex:1; }
.seg { display:flex; gap:6px; margin-bottom:10px; flex-wrap:wrap; }
.seg button { padding:7px 12px; border-radius:99px; border:1px solid var(--line); font-size:14px; }
.seg button.on { background:var(--navy); color:#fff; border-color:var(--navy); }
.actions { display:flex; gap:8px; justify-content:flex-end; margin-top:8px; align-items:center; }
.linked { background:var(--bg); border-radius:12px; padding:8px; margin-bottom:10px; }
.linked .card { margin-bottom:6px; }
.btns { display:flex; gap:8px; flex-wrap:wrap; }

.fab { position:fixed; right:18px; bottom:calc(env(safe-area-inset-bottom) + 76px); width:56px; height:56px; border-radius:50%; background:var(--navy); color:#fff; font-size:30px; line-height:1; box-shadow:0 6px 18px rgba(27,43,75,.3); z-index:6; }
.qui { display:flex; flex-direction:column; gap:10px; margin:28vh auto 0; max-width:320px; }
.demo { background:#fff7e6; color:#7a5a12; font-size:12px; text-align:center; padding:5px; }

@media (min-width:700px) {
  .kanban { grid-template-columns:repeat(3, 1fr); }
  .grid-cards { grid-template-columns:repeat(2, 1fr); }
}
@media (min-width:1000px) {
  .toptabs { display:flex; }
  .nav { display:none; }
  main { padding-bottom:40px; }
  .fab { bottom:28px; }
  .dash { grid-template-columns:minmax(0,1fr) 320px; align-items:start; }
  .side { display:flex; flex-direction:column; gap:18px; position:sticky; top:76px; }
  .sheet-bg { align-items:center; }
  .sheet { border-radius:18px; }
  .grid-cards { grid-template-columns:repeat(3, 1fr); }
}
@media (max-width:999px) { .side { display:flex; flex-direction:column; gap:18px; } }

/* ---------- Ajouts v2 ---------- */
.top .icon-btn { width:38px; height:38px; border-radius:50%; background:var(--bg); display:grid; place-items:center; color:var(--navy); flex:none; }
.top .icon-btn svg { width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:2; stroke-linecap:round; }
.top .moi { margin-left:0; }
.top .droite { margin-left:auto; display:flex; gap:8px; align-items:center; }
.badge { display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; border-radius:99px; background:var(--haute); color:#fff; font-size:11px; font-weight:700; margin-left:4px; }
.nav button { position:relative; }
.nav .badge { position:absolute; top:4px; left:calc(50% + 6px); margin:0; }
.bandeau { font-size:12px; text-align:center; padding:5px; }
.bandeau.demo { background:#fff7e6; color:#7a5a12; }
.bandeau.off { background:#f7e3e1; color:var(--haute); }
.bandeau.err { background:#f7e3e1; color:var(--haute); cursor:pointer; }

/* Barre d'avancement des sous-tâches */
.prog { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); }
.prog .bar { width:60px; height:6px; background:var(--line); border-radius:99px; overflow:hidden; }
.prog .bar i { display:block; height:100%; background:var(--ok); }
.subs { margin-bottom:10px; }
.sub-row { display:flex; gap:10px; align-items:center; padding:6px 0; border-bottom:1px solid var(--line); }
.sub-row .t { flex:1; min-width:0; overflow-wrap:anywhere; }
.sub-row.ok .t { color:var(--muted); text-decoration:line-through; }
.cb { flex:none; width:22px; height:22px; border-radius:6px; border:2px solid #cfcdc6; display:grid; place-items:center; color:#fff; font-size:13px; background:#fff; }
.cb.on { background:var(--ok); border-color:var(--ok); }
.sub-add { display:flex; gap:8px; margin-top:8px; }
.sub-add .inp { flex:1; margin:0 !important; }
.histo { font-size:13px; color:var(--muted); background:var(--bg); border-radius:10px; padding:8px 10px; margin-bottom:10px; }
.histo div { padding:2px 0; }

/* Cases à cocher dans les notes */
ul.checklist { list-style:none; padding-left:0 !important; }
ul.checklist li { position:relative; padding-left:28px; margin:3px 0; }
ul.checklist li::before { content:''; position:absolute; left:0; top:.2em; width:16px; height:16px; border:2px solid #b9b7b0; border-radius:4px; background:#fff; cursor:pointer; }
ul.checklist li.on { color:var(--muted); text-decoration:line-through; }
ul.checklist li.on::before { background:var(--ok); border-color:var(--ok); }
ul.checklist li.on::after { content:'✓'; position:absolute; left:4px; top:.05em; color:#fff; font-size:13px; font-weight:700; }

/* Activité et historique */
.seg-top { display:flex; gap:6px; margin-bottom:14px; }
.seg-top button { padding:8px 14px; border-radius:99px; border:1px solid var(--line); background:#fff; font-size:14px; }
.seg-top button.on { background:var(--navy); color:#fff; border-color:var(--navy); }
.jour-titre { font-size:13px; font-weight:600; color:var(--muted); margin:16px 0 6px; text-transform:capitalize; }
.act { display:flex; gap:10px; align-items:flex-start; padding:9px 12px; background:#fff; border:1px solid var(--line); border-radius:12px; margin-bottom:6px; font-size:14px; }
.act.new { border-color:#c9d3e6; background:#f3f6fb; }
.avatar { flex:none; width:28px; height:28px; border-radius:50%; background:var(--navy); color:#fff; display:grid; place-items:center; font-size:12px; font-weight:700; }
.avatar.louis { background:#2f7d5b; }
.act .grow { flex:1; min-width:0; overflow-wrap:anywhere; }
.act .h { color:var(--muted); font-size:12px; white-space:nowrap; }
.voir-histo { display:block; text-align:center; font-size:13px; color:var(--navy); padding:6px; }

/* Recherche globale */
.res-groupe { margin-top:14px; }
.res-groupe h4 { margin:0 0 6px; font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); }
.res { padding:9px 12px; border:1px solid var(--line); border-radius:10px; margin-bottom:6px; cursor:pointer; background:#fff; }
.res .sub { margin-top:2px; }
.res mark { background:#fff1a8; color:inherit; border-radius:3px; }
.sheet.search { height:85vh; }

/* Connexion */
.login-box { display:flex; flex-direction:column; gap:10px; margin:22vh auto 0; max-width:340px; }
.login-box .inp { width:100%; }
.erreur { color:var(--haute); font-size:13px; }
.btn.photo { background:var(--navy); color:#fff; border:none; }

/* Notes nouvelles / modifiées */
.etiq { display:inline-block; font-size:10px; font-weight:800; letter-spacing:.05em; padding:2px 7px; border-radius:99px; margin-right:8px; vertical-align:2px; color:#fff; }
.etiq.new { background:var(--haute); }
.etiq.modif { background:var(--busy); }
.card.note.a-voir { border-color:#e3c9a0; box-shadow:0 0 0 2px #f6ead6; }
.kcol h3 .histo-btn { padding:4px 10px; font-size:12px; }

/* Finances */
.kpis { display:grid; grid-template-columns:repeat(2, 1fr); gap:8px; margin-bottom:14px; }
.kpi { background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px; }
.kpi .k { font-size:12px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; font-weight:600; }
.kpi .v { font-size:22px; font-weight:700; margin:4px 0 2px; color:var(--navy); white-space:nowrap; }
.kpi .v small, .montant small { font-size:12px; font-weight:500; color:var(--muted); margin-left:2px; }
.kpi .v.pos { color:var(--ok); }
.kpi .v.neg { color:var(--haute); }
.avances { margin-bottom:4px; }
.av-tot { display:flex; align-items:center; gap:8px; padding:4px 0; }
.av-tot > span:last-child { margin-left:auto; font-weight:700; color:var(--navy); }
.av-ligne { display:flex; align-items:center; gap:8px; padding:8px 0; border-top:1px solid var(--line); font-size:14px; }
.av-ligne .grow { flex:1; min-width:0; overflow-wrap:anywhere; }
.fin-liste { padding:4px 14px; }
.fin { display:flex; gap:10px; align-items:center; padding:10px 0; border-top:1px solid var(--line); }
.fin:first-child { border-top:none; }
.fin .grow { flex:1; min-width:0; }
.fin .fl { font-weight:500; overflow-wrap:anywhere; }
.montant { flex:none; font-weight:700; white-space:nowrap; }
.montant.depense { color:var(--haute); }
.montant.revenu { color:var(--ok); }
.etat-prevu { font-size:11px; font-weight:600; color:var(--busy); background:#f8ecd6; border-radius:99px; padding:1px 7px; vertical-align:1px; }
@media (min-width:700px) { .kpis { grid-template-columns:repeat(4, 1fr); } }

/* Prévisionnel (business plan) */
.bp-titre { display:flex; align-items:center; gap:12px; }
.bp-titre .bp-add { margin-left:auto; display:none; }
.bp-head { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:22px 0 10px; }
.bp-head .btn { margin-left:auto; }
.bp-head .mini { max-width:none; font-size:13px; padding:4px 10px; }
.bp-grid { display:grid; gap:14px; }
.bp-side { display:flex; flex-direction:column; gap:14px; }
.legende { display:flex; gap:16px; flex-wrap:wrap; font-size:13px; color:var(--muted); margin-bottom:6px; }
.legende i { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:6px; vertical-align:-1px; }
.legende i.l { height:3px; width:16px; border-radius:2px; vertical-align:3px; }
.graph { width:100%; height:auto; display:block; }
.graph .ax { font-size:11px; fill:var(--muted); }
.ind { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--line); font-size:14px; }
.ind:first-of-type { border-top:none; }
.ind span { color:var(--muted); }
.ind b { white-space:nowrap; text-align:right; }
.ind small { font-weight:400; color:var(--muted); }
.pos { color:var(--ok); } .neg { color:var(--haute); }
.alerte { background:#f7e3e1; color:var(--haute); border-radius:10px; padding:8px 10px; font-size:13px; margin-top:6px; }
.cat { margin:8px 0; font-size:14px; }
.cat-l { display:flex; justify-content:space-between; gap:8px; margin-bottom:4px; }
.cat-b { height:8px; background:var(--bg); border-radius:99px; overflow:hidden; }
.cat-b i { display:block; height:100%; background:#f47230; border-radius:99px; }
.bp-scroll { overflow-x:auto; margin:0 -14px; padding:0 14px; }
table.bp { border-collapse:collapse; width:100%; font-size:13px; font-variant-numeric:tabular-nums; }
.bp th, .bp td { padding:6px 8px; border-bottom:1px solid var(--line); white-space:nowrap; }
.bp th { text-align:left; font-weight:500; position:sticky; left:0; background:#fff; z-index:1; }
.bp td { text-align:right; }
.bp thead td { color:var(--muted); font-size:12px; text-transform:capitalize; }
.bp .tot { font-weight:600; background:#faf9f6; }
.bp tr.sect th { font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--muted); padding-top:14px; font-weight:600; }
.bp tr.total th, .bp tr.total td { font-weight:600; }
.bp tr.fort th, .bp tr.fort td { background:#f3f6fb; }
.bp .z { color:#c9c7c0; }
@media (min-width:1000px) {
  .bp-titre .bp-add { display:inline-block; }
  .bp-grid { grid-template-columns:minmax(0,1fr) 340px; align-items:start; }
}
@media print {
  .top, .nav, .no-print, .bandeau, .avances .btn { display:none !important; }
  body, html { background:#fff; }
  main { padding:0; max-width:none; }
  .panel, .kpi { break-inside:avoid; border-color:#ddd; }
  .bp-grid { display:block; }
  .bp-side { display:grid; grid-template-columns:1fr 1fr; margin-top:12px; }
  .graph { max-height:260px; }
  .kpi .v { font-size:18px; }
  .bp-head .mini { border:none; padding:0; }
  .bp-scroll { overflow:visible; }
  table.bp { font-size:8.5px; width:100%; }
  .bp th { position:static; }
  * { -webkit-print-color-adjust:exact; print-color-adjust:exact; }
  .bp th, .bp td { padding:3px 3px; }
  @page { size:A4 landscape; margin:12mm; }
}
@media (min-width:1000px) { .fin-fab { display:none; } }
