/* Design du prototype GOODDEAL, repris tel quel (couleurs, polices, en-tête noir à filet jaune, menu, cartes, tableaux…). */

:root{--bg:#F4F4F1;--surface:#FFF;--ink:#111111;--muted:#5E5E57;--line:#DDDDD6;--brand:#FFC500;--brand-ink:#111111;--brand-text:#111111;--focus:#111111;--ok:#1E7A46;--ok-bg:#DDF1E4;--wait:#8A5200;--wait-bg:#FFF0CC;--bad:#B3261E;--bad-bg:#FBE0DD;--bar:#0E0E0E;--bar-ink:#F2F2EE;--bar-muted:#A3A39B;--font-display:"Sora",var(--police);box-sizing:border-box;padding-top:env(safe-area-inset-top,0px);padding-bottom:env(safe-area-inset-bottom,0px)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0A0A0A;--surface:#161615;--ink:#F2F2EE;--muted:#A3A39B;--line:#2B2B28;--brand:#FFC500;--brand-ink:#111111;--brand-text:#FFC500;--focus:#FFC500;--ok:#5CC98A;--ok-bg:#12301F;--wait:#FFC500;--wait-bg:#33290A;--bad:#FF8A80;--bad-bg:#3A1714;--bar:#050505;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#0A0A0A;--surface:#161615;--ink:#F2F2EE;--muted:#A3A39B;--line:#2B2B28;--brand:#FFC500;--brand-ink:#111111;--brand-text:#FFC500;--focus:#FFC500;--ok:#5CC98A;--ok-bg:#12301F;--wait:#FFC500;--wait-bg:#33290A;--bad:#FF8A80;--bad-bg:#3A1714;--bar:#050505;color-scheme:dark}
h1,h2{font-family:var(--font-display)}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--police);font-size:16px;line-height:1.45}
h1{font-size:1.3rem;margin:4px 0 10px}
h2{font-size:1.02rem;margin:18px 0 8px}
h3{font-size:.9rem;margin:12px 0 6px;color:var(--muted)}
p{margin:0 0 8px}
.muted{color:var(--muted)}
small.hint{display:block;font-size:.78rem;color:var(--muted);margin:-4px 0 6px}
button{font:inherit;color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.btn{display:block;width:100%;min-height:44px;border-radius:12px;border:1px solid var(--brand);background:var(--brand);color:var(--brand-ink);font-weight:700;padding:9px;text-align:center;margin-top:8px}
.btn.alt{background:transparent;color:var(--brand-text);border-color:var(--brand-text)}
.btn.danger{background:transparent;color:var(--bad);border-color:var(--bad)}
.btn.sm{min-height:36px;font-size:.82rem;padding:6px 10px}
.ghost{background:transparent;border:1px solid var(--line);border-radius:10px;min-height:38px;padding:6px 12px}
.note{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:.85rem;color:var(--muted);margin:10px 0}
.banner{border-radius:12px;padding:9px 12px;margin:9px 0;font-size:.86rem}
.banner.bad{background:var(--bad-bg);color:var(--bad)}
.banner.wait{background:var(--wait-bg);color:var(--wait)}
.banner.ok{background:var(--ok-bg);color:var(--ok)}
.card{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:11px 13px;margin-bottom:9px}
.card.ghostcard{background:transparent;border-style:dashed}
.row{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
.pill{display:inline-block;border-radius:999px;padding:2px 9px;font-size:.74rem;font-weight:700}
.p-ok{background:var(--ok-bg);color:var(--ok)}.p-wait{background:var(--wait-bg);color:var(--wait)}.p-bad{background:var(--bad-bg);color:var(--bad)}
.fld{margin:0 0 9px}
.fld label{display:block;font-weight:700;font-size:.86rem;margin-bottom:3px}
.fld input,.fld select{width:100%;min-height:42px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:8px 10px;font:inherit;font-size:16px}
.check{display:flex;align-items:center;gap:8px;padding:5px 0;font-weight:400;font-size:.92rem}
.check input{width:20px;height:20px;flex:none}
.tierrow{display:grid;grid-template-columns:.7fr .7fr 1.2fr;gap:6px;margin-bottom:6px}
.tierrow.head{font-size:12px;color:var(--muted);margin-bottom:2px}
.tiertable{width:100%;border-collapse:collapse;margin:8px 0;font-size:.85rem}
.tiertable th,.tiertable td{text-align:left;padding:4px 6px;border-bottom:1px solid var(--line)}
.tiertable th{color:var(--muted);font-weight:600}
.tierrow input{min-height:38px;border-radius:8px;border:1px solid var(--line);padding:6px 8px;font:inherit;font-size:15px}
.login-list{display:grid;gap:8px;margin-top:8px}
.login-list button{display:block;width:100%;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 14px;min-height:52px}
.login-list .r{display:block;font-size:.85rem;color:var(--muted)}
.empty{text-align:center;color:var(--muted);padding:24px 12px}
.modal-bg{position:fixed;inset:0;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;padding:16px;z-index:20}
.modal-box{background:var(--surface);border-radius:14px;padding:16px;max-width:340px;width:100%;box-shadow:0 8px 30px rgba(0,0,0,.3)}
.modal-box p{margin:0 0 10px;font-weight:700}
.modal-box .btn{margin-top:4px}
/* ---- navigation groupée, hubs, tableau de bord ---- */
.ic{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.crumb{display:inline-flex;align-items:center;gap:4px;background:transparent;border:0;padding:4px 0 8px;font-weight:700;font-size:.85rem;color:var(--muted)}
.crumb:hover{color:var(--ink)}
.hub-head{display:flex;gap:12px;align-items:center;margin:2px 0 6px}
.hub-head h1{margin:0}
.hub-head p{margin:2px 0 0;font-size:.88rem}
.hub-ic{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:var(--brand);color:var(--brand-ink);flex:none}
.hub-ic .ic{width:24px;height:24px}
.hub-sec{font-family:var(--font-display);font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin:20px 0 8px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px}
.tile{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:3px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:13px 14px;cursor:pointer;min-width:0}
.tile:hover{border-color:var(--ink)}
.tile:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.tile-t{font-weight:800;display:flex;justify-content:space-between;gap:6px;align-items:center}
.tile-d{font-size:.82rem;color:var(--muted);line-height:1.35}
.greet h1{margin:2px 0 0;font-size:1.45rem}
.greet p{margin:2px 0 12px}
.urgent{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:var(--wait-bg);color:var(--ink);border:1px solid var(--line);border-left:5px solid var(--brand);border-radius:12px;padding:10px 12px;margin:0 0 12px}
.urgent .btn{width:auto;margin:0;padding:6px 14px}
.kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 13px;min-width:0}
.kpi .kl{font-size:.7rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.kpi .kv{font-family:var(--font-display);font-weight:700;font-size:1.2rem;margin-top:4px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.kpi .ks{font-family:var(--font-display);font-weight:600;font-size:.95rem;color:var(--muted);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.kpi .kd{font-size:.78rem;color:var(--muted);margin-top:3px}
.kpi.hero{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
.kpi.hero .kl,.kpi.hero .ks,.kpi.hero .kd{color:#2b2400}
.alerts-pro{display:grid;gap:6px;margin-top:12px}
.alert-pro{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;background:var(--bad-bg);color:var(--bad);border-radius:10px;padding:8px 12px;font-size:.86rem}
.alert-pro small{opacity:.8}
.quick{display:flex;flex-wrap:wrap;gap:8px}
.qa{background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:9px 16px;font-weight:700;min-height:42px}
.qa:hover{border-color:var(--ink)}
@media (min-width:960px){
}
@media print{.tabs{display:none!important}.wrap{padding-left:0!important}}

/* ---- rubriques, accordéons, listes repliables ---- */
.rubs{display:flex;gap:6px;overflow-x:auto;padding:8px 0 10px;margin:6px 0 8px;position:sticky;top:74px;z-index:4;background:var(--bg);scrollbar-width:thin}
.rubs button{flex:none;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:999px;padding:8px 15px;font-weight:700;font-size:.86rem;min-height:40px;white-space:nowrap}
.rubs button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}
details.acc{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:0 0 9px}
details.acc>summary{cursor:pointer;list-style:none;padding:13px 40px 13px 14px;font-family:var(--font-display);font-weight:700;font-size:.98rem;position:relative}
details.acc>summary::-webkit-details-marker{display:none}
details.acc>summary::after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .15s}
details.acc[open]>summary::after{transform:translateY(-30%) rotate(225deg)}
details.acc[open]>summary{border-bottom:1px solid var(--line)}
details.acc>*:not(summary){margin-left:12px;margin-right:12px}
details.acc>.card{margin-left:12px;margin-right:12px}
details.acc>.card:not(.coll){border:0;background:transparent;padding-left:0;padding-right:0}
details.acc>*:last-child{margin-bottom:12px}
details.acc>summary+*{margin-top:12px}
.card.coll{position:relative;padding-right:52px}
.cmore{margin-top:8px;padding-top:8px;border-top:1px solid var(--line)}
.filt{display:block;width:100%;min-height:44px;border-radius:10px;border:1px solid var(--line);background:var(--surface);color:var(--ink);padding:8px 12px;font:inherit;font-size:16px;margin:0 0 9px}
@media (min-width:960px){.rubs{top:62px}}
@media print{.rubs{display:none!important}.cmore[hidden]{display:block!important}}

/* ---- accueil : panneaux, graphiques, change ---- */
.panels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:12px;margin-top:12px}
.panel{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:14px 15px;min-width:0}
.panel h2{font-family:var(--font-display);font-size:1rem;margin:0;display:flex;flex-direction:column;gap:1px}
.panel h2 small{font-family:var(--police);font-weight:500;font-size:.76rem;color:var(--muted)}
.ph{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:8px}
.chips{display:flex;gap:4px;background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:3px}
.chip{border:0;background:transparent;color:var(--muted);font-weight:700;font-size:.78rem;padding:5px 12px;border-radius:999px;min-height:30px}
.chip.on{background:var(--ink);color:var(--surface)}
.big{font-family:var(--font-display);font-weight:700;font-size:1.55rem;display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:2px 0 8px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.big .pill{font-family:var(--police);font-size:.74rem}
.big .muted{font-family:var(--police);font-size:.85rem;font-weight:500}
.chart svg{width:100%;height:auto;display:block}
.chart text{fill:var(--muted);font-size:11px;font-family:var(--police)}
.chart .gl{stroke:var(--line);stroke-width:1}
.chart .gline{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.chart .ga{fill:var(--ink);opacity:.07}
.chart .gdot{fill:var(--brand);stroke:var(--ink);stroke-width:2}
.chart .gb{fill:var(--ink);opacity:.82}
.chart .gbh{fill:var(--brand)}
.chart .gv{fill:var(--ink);font-weight:700}
.fx-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:10px 0}
.fx-c{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:2px}
.fx-l{font-size:.72rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.fx-c b{font-family:var(--font-display);font-size:1.5rem;font-variant-numeric:tabular-nums}
.fx-foot{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:.8rem;margin-bottom:6px}
.spark{width:100%;height:44px;display:block;margin:6px 0}
.spark polyline{fill:none;stroke:var(--ink);stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.bars{display:grid;gap:4px;margin:4px 0 10px}
.bl{display:flex;justify-content:space-between;gap:8px;font-size:.84rem}
.bt{height:9px;background:var(--bg);border-radius:99px;overflow:hidden;margin-bottom:6px}
.bt i{display:block;height:100%;border-radius:99px}
.bp{background:var(--ok)}.bc{background:var(--ink);opacity:.75}
.mini{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:6px 0 8px;font-size:.8rem}
.mini div{background:var(--bg);border-radius:10px;padding:8px 10px;display:flex;flex-direction:column;gap:2px}
.mini span{color:var(--muted);font-size:.72rem}
.mini b{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.panel .btn.sm{width:auto;display:inline-flex;margin-top:4px}
/* ---- composants globaux : notes, segments, formulaires, boutons, états vides ---- */
details.info{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:0 0 12px}
details.info>summary{cursor:pointer;list-style:none;padding:11px 14px;font-weight:700;font-size:.86rem;color:var(--muted);display:flex;align-items:center;gap:8px}
details.info>summary::-webkit-details-marker{display:none}
details.info>summary::before{content:"i";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:50%;background:var(--brand);color:var(--brand-ink);font-family:var(--font-display);font-weight:700;font-size:.78rem;flex:none}
details.info[open]>summary{border-bottom:1px solid var(--line);color:var(--ink)}
details.info>.info-body{border:0;margin:0;background:transparent;border-radius:0;padding:12px 14px;color:var(--ink)}
.seg{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.seg .btn{flex:1 1 auto;width:auto;margin:0;min-height:42px;padding:8px 14px;font-size:.88rem}
.seg.seg-many .btn{flex:0 1 auto}
.empty{border:1.5px dashed var(--line);border-radius:12px;padding:22px 16px;color:var(--muted);text-align:center;font-size:.9rem;background:transparent}
.btn{border-radius:10px;font-weight:800;letter-spacing:.005em;transition:filter .12s,transform .06s,background .12s}
.btn:active{transform:translateY(1px)}
.btn:disabled,.btn[disabled]{opacity:.45;cursor:not-allowed}
.btn.alt{border-width:1.5px}
.btn.alt:hover{background:var(--surface2,var(--bg))}
.btn.danger:hover{background:var(--bad-bg)}
.btn:hover{filter:brightness(.96)}
.fld label{font-size:.82rem;font-weight:700;color:var(--ink);margin-bottom:5px}
.fld input,.fld select,.fld textarea{min-height:46px;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink);transition:border-color .12s,box-shadow .12s}
.fld input:hover,.fld select:hover,.fld textarea:hover{border-color:var(--muted)}
.fld input:focus,.fld select:focus,.fld textarea:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px color-mix(in srgb,var(--brand) 55%,transparent)}
.fld textarea{width:100%;padding:8px 10px;font:inherit;font-size:16px}
.fld input::placeholder{color:var(--muted);opacity:.8}
.card{border-radius:14px}
h1{font-family:var(--font-display);font-size:1.45rem;letter-spacing:-.01em}
h2{margin:22px 0 10px}
.tw{overflow-x:auto;-webkit-overflow-scrolling:touch}
table{border-collapse:collapse;width:100%;font-size:.86rem}
table th{font-size:.72rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);font-weight:700;padding:8px 8px;border-bottom:1.5px solid var(--line);white-space:nowrap}
table td{padding:9px 8px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.modal-bg{backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.modal-box{border-radius:18px;padding:20px;max-width:380px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.modal-box p{font-weight:600;font-size:1rem;line-height:1.45}
.login-list button{display:flex;flex-direction:column;position:relative;border-radius:14px;padding:12px 44px 12px 16px}
.login-list button::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;border-right:2px solid var(--muted);border-top:2px solid var(--muted);transform:translateY(-50%) rotate(45deg)}
.login-list button:hover{border-color:var(--ink)}
@media (min-width:960px){
 .btn{width:auto;min-width:200px;display:inline-flex;align-items:center;justify-content:center}
 .btn.sm{min-width:0}
 .urgent .btn,.panel .btn{min-width:0}
 .card:has(>.fld){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px;align-items:start}
 .card:has(>.fld)>*:not(.fld){grid-column:1/-1}
 .card:has(>.fld)>.btn{justify-self:start}
 .seg .btn{min-width:0}
 .panels{grid-template-columns:repeat(2,minmax(0,1fr))}
 .panels.pa{grid-template-columns:1.5fr 1fr}
}

@media print{
 body.print-recu #app>*:not(.modal-bg){display:none!important}
 body.print-recu .modal-bg{position:static;background:none;padding:0}
 body.print-recu .modal-box{box-shadow:none;max-width:100%}
 .no-print{display:none!important}
 body{background:#fff}
 .card{border:1px solid #999;break-inside:avoid}
 .btn,button{display:none!important}
}

/* ===== Design v2 (inspiré de l'application du développeur) : cartes douces, puces d'icônes, barre latérale claire ===== */
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--bg:#F5F6FA;--line:#E6E8F0;--muted:#6A7086;--ink:#12141F;--brand:#F5B301;--soft:#FFF4D1;--shadow:0 1px 2px rgba(16,24,40,.05),0 6px 20px rgba(16,24,40,.05)}}
:root[data-theme="light"]{--bg:#F5F6FA;--line:#E6E8F0;--muted:#6A7086;--ink:#12141F;--brand:#F5B301;--soft:#FFF4D1;--shadow:0 1px 2px rgba(16,24,40,.05),0 6px 20px rgba(16,24,40,.05)}
:root{--soft:#33290A;--shadow:none}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--soft:#FFF4D1}}
:root[data-theme="light"]{--soft:#FFF4D1}
h1{font-size:1.7rem;font-weight:700;letter-spacing:-.02em}
h2{font-size:1.08rem;font-weight:700}
.card,.panel,.kpi,.tile,details.acc,details.info,.note{border-radius:18px;box-shadow:var(--shadow);border-color:var(--line)}
.card{padding:14px 16px}
.note{border-radius:14px}
.btn{border-radius:12px;min-height:46px}
.btn.alt{background:var(--surface);color:var(--ink);border:1px solid var(--line)}
.btn.alt:hover{background:var(--bg)}
.btn.danger{background:var(--surface)}
.ghost{border-radius:12px}
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;font-weight:600}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.rubs button{border-radius:999px;font-weight:600}
.rubs button[aria-pressed="true"]{background:var(--brand);border-color:var(--brand)}
.qa{border-radius:999px;font-weight:600}
table th{background:transparent}
table tbody tr:hover td,table tr:hover>td{background:color-mix(in srgb,var(--bg) 70%,transparent)}
.fld input,.fld select,.fld textarea,.filt{border-radius:12px;border:1px solid var(--line)}
.kpi{padding:16px 16px 14px}
.kpi .kh{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.kpi .kh .kl{margin:0;font-size:.8rem;font-weight:600;letter-spacing:0;text-transform:none;color:var(--muted)}
.ki{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--soft);color:#9A6B00;flex:none}
.ki svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ki.k-ok{background:var(--ok-bg);color:var(--ok)}
.ki.k-bad{background:var(--bad-bg);color:var(--bad)}
.ki.k-wait{background:#FFE9D2;color:#B35A00}
.kpi .kv{font-size:1.45rem;margin-top:0;font-weight:700}
.kpi .ks{font-size:1.45rem;font-weight:700;color:var(--ink)}
.kpi.hero{background:var(--surface);border-color:var(--brand);box-shadow:0 0 0 2px var(--soft),var(--shadow);color:var(--ink)}
.kpi.hero .kl,.kpi.hero .ks,.kpi.hero .kd{color:inherit}
.kpi.hero .kl{color:var(--muted)}
.kpi .kd{color:var(--muted)}
.av{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#2F7C8E;color:#fff;font-size:.74rem;font-weight:700;flex:none;letter-spacing:.02em}
.av.c1{background:#2F7C8E}.av.c2{background:#5B3FA8}.av.c3{background:#B35A00}.av.c4{background:#1E7A46}.av.c5{background:#A83F6B}
.row.has-av{justify-content:flex-start;gap:12px;flex-wrap:nowrap}
.row.has-av .nm,.row.has-av>strong{flex:1;min-width:0}
@media (min-width:960px){
 body{background:var(--bg)}
 .kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:959px){
 .kpi{padding:14px}
 .kpi .kv,.kpi .ks{font-size:1.25rem}
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ki{color:var(--brand)}:root:not([data-theme="light"]) .tabs .nv .ic{background:#1d1d1b}:root:not([data-theme="light"]) .av{opacity:.95}}
:root[data-theme="dark"] .ki{color:var(--brand)}
@media (min-width:960px){
 @media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .tabs,:root:not([data-theme="light"]) header.top{background:var(--surface)}}
}
.card ul.list{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.card ul.list .ghost{border:0;background:var(--bg);border-radius:12px;padding:10px 14px;min-height:44px}
.card ul.list .ghost:hover{background:var(--soft)}
h1+.note{background:transparent;border:0;box-shadow:none;padding:0;margin:-2px 0 16px;font-size:.95rem;color:var(--muted);max-width:760px}
.kpis{margin-bottom:12px}
.card>h2:first-child,.card>h3:first-child,.card>h2:first-of-type:first-child{margin-top:0}
.card>h2:first-child{margin-top:2px}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ki.k-wait{background:#3A2A10;color:#FFB45C}:root:not([data-theme="light"]) .tabs .nv[aria-current="page"] .ic{background:var(--brand);color:#111}}
:root[data-theme="dark"] .ki.k-wait{background:#3A2A10;color:#FFB45C}
:root[data-theme="dark"] .tabs .nv[aria-current="page"] .ic{background:var(--brand);color:#111}
.seg{display:flex;gap:4px;background:var(--bg);border:1px solid var(--line);border-radius:999px;padding:4px;width:fit-content;max-width:100%}
.seg .btn{border:0;border-radius:999px;min-height:38px;padding:7px 18px;font-size:.86rem;font-weight:600;flex:0 1 auto;min-width:0}
.seg .btn.alt{background:transparent;color:var(--muted)}
.seg .btn.alt:hover{background:var(--surface);color:var(--ink)}
.seg .btn:not(.alt){background:var(--brand);color:var(--brand-ink);box-shadow:0 1px 2px rgba(0,0,0,.12)}
@media (max-width:959px){.seg{width:100%;border-radius:20px}.seg .btn{flex:1 1 auto;border-radius:16px}}
.chips{max-width:100%;flex-wrap:wrap}.jc-f{flex-wrap:wrap;min-width:0}
.chips{margin-bottom:10px}.jc-f{margin-top:12px}.jc-fl{display:block;margin-bottom:6px;font-weight:600}
@media (min-width:700px){.jc-search{display:grid;grid-template-columns:1fr 1fr auto;gap:0 16px;align-items:end}.jc-search>.fld:first-child{grid-column:1/-1}.jc-search>.btn{margin-bottom:10px}}
.tc{display:none}.tbl-h{display:none}
@media (min-width:960px){
 .tbl-h{display:flex;align-items:center;gap:12px;padding:6px 53px 6px 17px;margin:8px 0 6px;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:700}
 .tbl-h .th-av{width:34px;flex:none}
 .card:not(.coll)>.row.has-tc{margin-right:36px}
 .tbl-h .th{background:none;border:0;padding:4px 0;font:inherit;color:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;text-align:left;min-height:0;flex:0 0 160px;white-space:nowrap}
 .tbl-h .th[data-i="-1"]{flex:1 1 0;min-width:0}
 .tbl-h .th:hover{color:var(--ink)}
 .card>.row.has-tc{flex-wrap:nowrap;align-items:center;gap:12px}
 .card>.row.has-tc .tc{display:block;flex:0 0 160px;font-size:.86rem;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .card>.row.has-tc>.tcw{flex:0 0 200px}
 .card>.row.has-tc .nm,.card>.row.has-tc>strong{flex:1 1 0;min-width:0}
 .card>.row.has-tc>.muted:not(.tc){flex:0 0 200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.84rem}
 .card>.row.has-tc .nm,.card>.row.has-tc>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .tbl-h .th[data-i="-2"]{flex:0 0 200px}
}
@media print{.av,.ki{display:none}}

/* Liaison : les composants déjà écrits (cartes, graphiques, tableaux…) utilisent les couleurs du prototype. */
:root {
    --fond: var(--bg); --trait: var(--line); --trait-fort: var(--line); --surface-2: var(--soft, var(--bg));
    --encre: var(--ink); --encre-2: var(--muted); --encre-3: var(--muted);
    --marque: var(--brand-text); --marque-fonce: var(--ink); --marque-pale: var(--soft, var(--bg));
    --bon: var(--ok); --bon-pale: var(--ok-bg); --attention: var(--wait); --attention-pale: var(--wait-bg); --danger: var(--bad); --danger-pale: var(--bad-bg);
    --serie-a: #2f7c8e; --serie-b: #e0a000; --serie-c: #1e7a46; --serie-d: #b3261e; --serie-n: #a3a39b;
    --rayon: 14px; --rayon-petit: 8px; --cible: 52px;
    --ombre-1: var(--shadow, 0 1px 2px rgba(0,0,0,.06)); --ombre-2: 0 8px 28px rgba(0,0,0,.14); --ombre-3: 0 24px 64px rgba(0,0,0,.3);
    --police: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --police-chiffres: var(--police);
    --carte: var(--surface); --encre-douce: var(--muted); --bon-fond: var(--ok-bg); --attention-fond: var(--wait-bg); --danger-fond: var(--bad-bg); --ombre: var(--ombre-1);
    --icone-recherche: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E5E57' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E");
}
.chargement { padding: 40px; text-align: center; color: var(--muted); }
.page { padding: 0; max-width: none; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-content: start; }
.pile { display: grid; gap: 14px; }
.page--centre { text-align: center; justify-items: center; padding-top: 60px; }
.page--terrain { max-width: 600px; }
.entete-page { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page__titre { font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.page__sous-titre { color: var(--muted); margin-top: 2px; font-size: .9rem; }
.vide { color: var(--muted); padding: 20px 0; text-align: center; }
.grille { display: grid; gap: 12px; }
.grille--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grille--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grille--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grille--graphes { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .grille--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grille--graphes { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grille--2, .grille--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grille--3 > :first-child { grid-column: 1 / -1; } }
.alerte { padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.alerte--erreur { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad); }
.toasts { position: fixed; left: 0; right: 0; bottom: 76px; display: grid; justify-items: center; gap: 8px; pointer-events: none; z-index: 60; }
.toast { padding: 12px 18px; border-radius: 12px; font-weight: 700; background: var(--ink); color: var(--bg); box-shadow: var(--ombre-2); }
.toast--erreur { background: var(--bad); color: #fff; }
.squelette { border-radius: 8px; background: linear-gradient(90deg, var(--line) 25%, var(--bg) 50%, var(--line) 75%); background-size: 200% 100%; animation: brille 1.4s infinite; min-height: 16px; }
@keyframes brille { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.pile .btn, .btn.btn--principal, .btn.btn--secondaire, .btn.btn--danger, .btn.btn--discret, .btn.btn--grand { width: auto; margin-top: 0; }
.btn.btn--grand { width: 100%; }
.btn--secondaire { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--discret { background: transparent; color: var(--brand-text); border-color: transparent; }
@media (min-width: 960px) { .toasts { bottom: 20px; } }

/* Compléments au design du prototype (éléments que le prototype n'a pas stylés) */
[hidden]:not([hidden=until-found i]) { display: none !important; }
.modal-box.pal { max-width: 460px; padding: 12px; }
.modal-box.pal input { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 12px; font: inherit; font-size: 16px; }
#pal-l { display: grid; gap: 2px; margin-top: 8px; max-height: 52vh; overflow: auto; }
.pal-i { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: 9px 12px; }
.pal-i.on, .pal-i:hover { background: var(--soft, var(--bg)); }
.modal-box .pal-aide { margin: 6px 0 0; font-size: .78rem; font-weight: 400; }
.app-contenu:focus { outline: none; }
.fld-err { color: var(--bad); font-size: .8rem; margin-top: 3px; }
.fld-err:empty { display: none; }
.fld [aria-invalid="true"] { border-color: var(--bad); }
.fld textarea { width: 100%; min-height: 70px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 8px 10px; font: inherit; font-size: 16px; }
.card .btn.sm { display: inline-flex; width: auto; align-items: center; justify-content: center; }
.row .btn.sm, .actions-ligne .btn.sm { width: auto; margin-top: 0; }
.actions-ligne { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.card.cliquable { cursor: pointer; }
.card.cliquable:hover { border-color: var(--ink); }
.nm { font-weight: 800; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }

/* Charte GOODDEAL : jaune #FFC500, noir, blanc. Polices Poppins (titres) et Inter (texte, tableaux, montants), hébergées par le serveur. */
@font-face{font-family:Inter;font-weight:400;font-style:normal;font-display:swap;src:url("fonts/Inter-400.woff") format("woff")}
@font-face{font-family:Inter;font-weight:500;font-style:normal;font-display:swap;src:url("fonts/Inter-500.woff") format("woff")}
@font-face{font-family:Inter;font-weight:600;font-style:normal;font-display:swap;src:url("fonts/Inter-600.woff") format("woff")}
@font-face{font-family:Inter;font-weight:700;font-style:normal;font-display:swap;src:url("fonts/Inter-700.woff") format("woff")}
@font-face{font-family:Poppins;font-weight:500;font-style:normal;font-display:swap;src:url("fonts/Poppins-500.woff") format("woff")}
@font-face{font-family:Poppins;font-weight:700;font-style:normal;font-display:swap;src:url("fonts/Poppins-700.woff") format("woff")}

:root{--bg:#F5F5F2;--surface:#FFFFFF;--surface-2:#FAFAF7;--ink:#111111;--muted:#55554F;--line:#E4E4DC;--line-fort:#CDCDC4;
--brand:#FFC500;--brand-ink:#111111;--brand-text:#111111;--brand-soft:#FFF3C2;--soft:#FFF3C2;--focus:#111111;
--ok:#1E7A46;--ok-bg:#E1F3E8;--wait:#8A5200;--wait-bg:#FFF1CF;--bad:#B3261E;--bad-bg:#FBE4E1;
--rail:#FFC500;--rail-ink:#111111;--rail-actif-bg:#FFFFFF;--rail-actif-ink:#111111;--rail-survol:rgba(0,0,0,.09);
--panneau:#FFFFFF;--panneau-actif:#FFF1BF;--survol:#F3F3EE;--barre:#FFFFFF;
--shadow:0 1px 2px rgba(17,17,17,.05),0 6px 20px rgba(17,17,17,.05);color-scheme:light;--font-display:"Poppins","Inter",system-ui,sans-serif;--police:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;--police-chiffres:var(--police);--ombre-2:0 12px 32px rgba(17,17,17,.14)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--bg:#F5F5F2;--surface:#FFFFFF;--surface-2:#FAFAF7;--ink:#111111;--muted:#55554F;--line:#E4E4DC;--line-fort:#CDCDC4;
--brand:#FFC500;--brand-ink:#111111;--brand-text:#111111;--brand-soft:#FFF3C2;--soft:#FFF3C2;--focus:#111111;
--ok:#1E7A46;--ok-bg:#E1F3E8;--wait:#8A5200;--wait-bg:#FFF1CF;--bad:#B3261E;--bad-bg:#FBE4E1;
--rail:#FFC500;--rail-ink:#111111;--rail-actif-bg:#FFFFFF;--rail-actif-ink:#111111;--rail-survol:rgba(0,0,0,.09);
--panneau:#FFFFFF;--panneau-actif:#FFF1BF;--survol:#F3F3EE;--barre:#FFFFFF;
--shadow:0 1px 2px rgba(17,17,17,.05),0 6px 20px rgba(17,17,17,.05);color-scheme:light}}
:root[data-theme="light"]{--bg:#F5F5F2;--surface:#FFFFFF;--surface-2:#FAFAF7;--ink:#111111;--muted:#55554F;--line:#E4E4DC;--line-fort:#CDCDC4;
--brand:#FFC500;--brand-ink:#111111;--brand-text:#111111;--brand-soft:#FFF3C2;--soft:#FFF3C2;--focus:#111111;
--ok:#1E7A46;--ok-bg:#E1F3E8;--wait:#8A5200;--wait-bg:#FFF1CF;--bad:#B3261E;--bad-bg:#FBE4E1;
--rail:#FFC500;--rail-ink:#111111;--rail-actif-bg:#FFFFFF;--rail-actif-ink:#111111;--rail-survol:rgba(0,0,0,.09);
--panneau:#FFFFFF;--panneau-actif:#FFF1BF;--survol:#F3F3EE;--barre:#FFFFFF;
--shadow:0 1px 2px rgba(17,17,17,.05),0 6px 20px rgba(17,17,17,.05);color-scheme:light}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0B0B0A;--surface:#151514;--surface-2:#1B1B19;--ink:#F3F3EE;--muted:#A8A8A0;--line:#2A2A27;--line-fort:#3C3C38;
--brand:#FFC500;--brand-ink:#111111;--brand-text:#FFC500;--brand-soft:#33290A;--soft:#33290A;--focus:#FFC500;
--ok:#5CC98A;--ok-bg:#12301F;--wait:#FFC500;--wait-bg:#33290A;--bad:#FF8A80;--bad-bg:#3A1714;
--rail:#000000;--rail-ink:#E8E8E3;--rail-actif-bg:#FFC500;--rail-actif-ink:#111111;--rail-survol:rgba(255,255,255,.09);
--panneau:#101010;--panneau-actif:#2B2408;--survol:#1D1D1B;--barre:#101010;
--shadow:none;color-scheme:dark}}
:root[data-theme="dark"]{--bg:#0B0B0A;--surface:#151514;--surface-2:#1B1B19;--ink:#F3F3EE;--muted:#A8A8A0;--line:#2A2A27;--line-fort:#3C3C38;
--brand:#FFC500;--brand-ink:#111111;--brand-text:#FFC500;--brand-soft:#33290A;--soft:#33290A;--focus:#FFC500;
--ok:#5CC98A;--ok-bg:#12301F;--wait:#FFC500;--wait-bg:#33290A;--bad:#FF8A80;--bad-bg:#3A1714;
--rail:#000000;--rail-ink:#E8E8E3;--rail-actif-bg:#FFC500;--rail-actif-ink:#111111;--rail-survol:rgba(255,255,255,.09);
--panneau:#101010;--panneau-actif:#2B2408;--survol:#1D1D1B;--barre:#101010;
--shadow:none;color-scheme:dark}

html{font-size:15px;-webkit-text-size-adjust:100%}
body{font-family:var(--police);font-size:1rem;line-height:1.5;background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased}
h1,h2,h3,.big,.cc-val{font-family:var(--font-display)}
button,input,select,textarea{font-family:inherit}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
table,td,th,.kv,.ks,.num{font-variant-numeric:tabular-nums}
@media (max-width:959px){html{font-size:16px}}

/* Boutons */
/* ancien bouton, adapté */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s, transform .05s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--principal { background: var(--brand); color: var(--brand-ink); box-shadow: var(--ombre-1); }
.btn--principal:hover:not(:disabled) { background: var(--marque-fonce); }
.btn--secondaire { background: var(--surface); color: var(--encre); border-color: var(--trait-fort); }
.btn--secondaire:hover:not(:disabled) { background: var(--surface-2); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--discret { background: transparent; color: var(--marque); }
.btn--grand { min-height: 68px; font-size: 18px; width: 100%; border-radius: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn__rond { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: tourne .7s linear infinite; }
.btn.est-chargement .btn__rond { display: inline-block; }
@keyframes tourne { to { transform: rotate(360deg); } }
/* Cartes */
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-1); padding: 20px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.carte__entete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.carte__titre { font-size: 15px; font-weight: 700; }
.carte__note { font-size: 13px; color: var(--encre-3); }
.stat { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); box-shadow: var(--ombre-1); padding: 18px 20px; display: grid; gap: 4px; min-width: 0; position: relative; overflow: hidden; }
.stat__libelle { color: var(--encre-2); font-weight: 600; font-size: 13.5px; }
.stat__valeur { font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.stat__note { font-size: 13px; color: var(--encre-3); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 20px; }
.stat--bon .stat__valeur { color: var(--bon); }
.stat--attention .stat__valeur { color: var(--attention); }
.stat--danger .stat__valeur { color: var(--danger); }
.stat.vient-de-changer { animation: surbrillance 1.4s ease-out; }
@keyframes surbrillance { from { box-shadow: 0 0 0 3px var(--marque-pale), var(--ombre-1); border-color: var(--marque); } to { box-shadow: var(--ombre-1); } }
.courbe-mini { position: absolute; right: 16px; bottom: 16px; width: 76px; height: 26px; opacity: .9; }
.mini__ligne { stroke: var(--marque); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 12.5px; padding: 1px 7px; border-radius: 99px; }
.delta--haut { background: var(--bon-pale); color: var(--bon); }
.delta--bas { background: var(--danger-pale); color: var(--danger); }
.delta--neutre { background: var(--fond); color: var(--encre-2); border: 1px solid var(--trait); }
/* Listes */
.liste { display: grid; }
.ligne { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 13px 0; border-top: 1px solid var(--trait); }
.ligne:first-child { border-top: 0; }
.ligne__titre { font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ligne__valeur { font-weight: 700; font-variant-numeric: tabular-nums; }
.ligne__note { grid-column: 1 / -1; font-size: 13px; color: var(--encre-3); }
.a-faire { width: 100%; background: transparent; border-left: 0; border-right: 0; border-bottom: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--trait); }
.a-faire:first-child { border-top: 0; }
.a-faire:hover .rang__nom { color: var(--marque); }
.a-faire__nombre { min-width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; background: var(--fond); color: var(--encre-2); font-variant-numeric: tabular-nums; }
.a-faire__nombre.est-actif { background: var(--attention-pale); color: var(--attention); }
.pastille { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--bon-pale); color: var(--bon); }
.pastille--cloturee { background: var(--attention-pale); color: var(--attention); }
.etiquette { display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--fond); color: var(--encre-2); border: 1px solid var(--trait); white-space: nowrap; }
.etiquette--ok { background: var(--bon-pale); color: var(--bon); border-color: transparent; }
.etiquette--attention { background: var(--attention-pale); color: var(--attention); border-color: transparent; }
.etiquette--danger { background: var(--danger-pale); color: var(--danger); border-color: transparent; }
/* Formulaires */
.champ { display: grid; gap: 6px; }
.champ__libelle { font-weight: 600; font-size: 14px; }
.champ__saisie { min-height: 46px; padding: 0 14px; font: inherit; border: 1px solid var(--trait-fort); border-radius: 10px; background: var(--surface); color: var(--encre); }
.champ__saisie:focus { border-color: var(--marque); outline: 3px solid var(--marque-pale); }
.champ__aide { font-size: 13px; color: var(--encre-3); }
.champ__erreur { color: var(--danger); font-weight: 600; font-size: 13.5px; }
.champ.a-erreur .champ__saisie { border-color: var(--danger); background: var(--danger-pale); }
.recherche { min-height: 48px; width: 100%; padding: 0 16px 0 44px; font: inherit; border: 1px solid var(--trait-fort); border-radius: 12px; background: var(--surface) var(--icone-recherche, none) no-repeat 14px center; color: var(--encre); }
.recherche:focus { border-color: var(--marque); outline: 3px solid var(--marque-pale); }
.segment { display: inline-flex; gap: 2px; padding: 3px; background: var(--fond); border: 1px solid var(--trait); border-radius: 10px; }
.segment__bouton { min-height: 38px; padding: 0 16px; border: 0; border-radius: 8px; background: transparent; color: var(--encre-2); font-weight: 600; font-size: 14px; cursor: pointer; }
.segment__bouton.est-actif { background: var(--surface); color: var(--marque); box-shadow: var(--ombre-1), 0 0 0 1px var(--trait); }
.barre-outils { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.rang { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rang--cliquable { cursor: pointer; text-align: left; width: 100%; font: inherit; color: inherit; transition: border-color .12s, box-shadow .12s; }
.rang--cliquable:hover { border-color: var(--marque); box-shadow: var(--ombre-2); }
.rang__nom { font-weight: 600; }
.rang__note { font-size: 13.5px; color: var(--encre-3); }
.retour { display: inline-flex; align-items: center; gap: 6px; justify-self: start; min-height: 40px; border: 0; background: transparent; color: var(--marque); font-weight: 600; cursor: pointer; padding: 0; }
.fiche__ligne { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--trait); }
.fiche__ligne:first-of-type { border-top: 0; }
.fiche__cle { color: var(--encre-2); }
.entree { color: var(--bon); font-weight: 700; }
.sortie { color: var(--danger); font-weight: 700; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.bandeau-info { padding: 12px 14px; border-radius: var(--rayon); background: var(--attention-pale); color: var(--attention); font-weight: 600; }
/* Modale */
.modal-fond { position: fixed; inset: 0; background: rgba(10,20,38,.55); backdrop-filter: blur(2px); display: grid; place-items: center; padding: 16px; z-index: 70; }
.modal { background: var(--surface); color: var(--encre); border-radius: 16px; padding: 26px; max-width: 480px; width: 100%; display: grid; gap: 16px; box-shadow: var(--ombre-3); border: 1px solid var(--trait); }
.modal__titre { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.modal__message { color: var(--encre-2); }
.modal__champs { display: grid; gap: 12px; }
.modal__erreur { color: var(--danger); font-weight: 600; }
.modal__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
/* Graphiques */
.graphique { position: relative; }
.gr { width: 100%; height: auto; display: block; overflow: visible; }
.gr__trait { stroke: var(--trait); stroke-width: 1; stroke-dasharray: 3 4; }
.gr__axe { fill: var(--encre-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.gr__a { fill: var(--serie-a); }
.gr__b { fill: var(--serie-b); }
.gr__ligne { stroke: var(--serie-a); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.gr__aire { opacity: 1; }
.gr__degrade-haut { stop-color: var(--serie-a); stop-opacity: .22; }
.gr__degrade-bas { stop-color: var(--serie-a); stop-opacity: 0; }
.gr__point { fill: var(--surface); stroke: var(--serie-a); stroke-width: 2.5; }
.gr__survol { fill: transparent; outline: none; cursor: crosshair; }
.gr__survol:hover, .gr__survol:focus { fill: color-mix(in srgb, var(--marque) 7%, transparent); }
.infobulle { position: absolute; transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .1s; background: var(--encre); color: var(--fond); padding: 8px 11px; border-radius: 9px; font-size: 12.5px; white-space: nowrap; box-shadow: var(--ombre-2); z-index: 5; }
.infobulle.est-visible { opacity: 1; }
.infobulle__titre { font-weight: 700; margin-bottom: 4px; }
.infobulle__titre::first-letter { text-transform: uppercase; }   /* « Dimanche 1 novembre » : majuscule au premier mot seulement */
.infobulle__ligne { display: flex; align-items: center; gap: 7px; }
.infobulle__ligne b { margin-left: auto; padding-left: 12px; }
.pastille-couleur { width: 9px; height: 9px; border-radius: 3px; flex: none; background: var(--serie-n); display: inline-block; }
.pastille-couleur.s-a, .pastille-couleur.p-a { background: var(--serie-a); }
.pastille-couleur.s-b, .pastille-couleur.p-b { background: var(--serie-b); }
.pastille-couleur.p-ok { background: var(--serie-c); }
.pastille-couleur.p-dan { background: var(--serie-d); }
.legende { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--encre-2); }
.legende--colonne { flex-direction: column; gap: 8px; margin-top: 0; }
.legende__item { display: inline-flex; align-items: center; gap: 8px; }
.anneau-bloc { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.anneau { width: 150px; height: 150px; flex: none; }
.anneau path.p-a { fill: var(--serie-a); } .anneau path.p-b { fill: var(--serie-b); } .anneau path.p-ok { fill: var(--serie-c); } .anneau path.p-dan { fill: var(--serie-d); }
.anneau__vide { stroke: var(--trait); }
.anneau__total { fill: var(--encre); font-size: 22px; font-weight: 700; }
.anneau__titre { fill: var(--encre-3); font-size: 8px; }
.tranche { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.tranche__piste { height: 10px; border-radius: 99px; background: var(--fond); overflow: hidden; }
.tranche__barre { height: 100%; border-radius: 99px; background: var(--serie-a); }
.tranche__barre.est-risque { background: var(--serie-b); }
.tranche__barre.est-perte { background: var(--serie-d); }

.stat__note:empty { display: none; }
@media (max-width: 760px) {
    .gr__axe { font-size: 19px; }
    .stat { padding: 14px 16px; }
    .stat__valeur { font-size: 22px; }
    .courbe-mini { display: none; }
    .carte { padding: 16px; }
}

/* Structure : rail d'icônes (jaune), panneau du module, barre du haut, zone de contenu. Sur téléphone, le rail devient la barre du bas. */
.shell { display: grid; grid-template-columns: 84px 276px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.shell.sans-panneau { grid-template-columns: 84px minmax(0, 1fr); }
.shell-zone { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }

/* Rail */
.rail { position: sticky; top: 0; height: 100vh; background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0; overflow-y: auto; z-index: 30; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-logo { width: 52px; height: 52px; margin-bottom: 10px; border: 0; background: transparent; border-radius: 14px; display: grid; place-items: center; padding: 0; flex: none; }
.rail-logo img { width: 34px; height: auto; display: block; }
.rail-logo:hover { background: var(--rail-survol); }
.lg-sombre { display: none !important; }
.rail-i { position: relative; width: 68px; min-height: 58px; border: 0; background: transparent; color: inherit; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 7px 2px; font-size: 10.5px; font-weight: 600; line-height: 1.1; text-align: center; flex: none; }
.rail-i .ic { width: 23px; height: 23px; }
.rail-i .rail-lb { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-i:hover { background: var(--rail-survol); }
.rail-i[aria-current] { background: var(--rail-actif-bg); color: var(--rail-actif-ink); box-shadow: 0 3px 10px rgba(0, 0, 0, .16); }
.rail-i:focus-visible, .rail-logo:focus-visible { outline: 3px solid var(--rail-ink); outline-offset: 2px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Panneau du module */
.panneau { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--panneau); border-right: 1px solid var(--line); padding: 22px 14px 16px; display: flex; flex-direction: column; z-index: 20; }
.pan-tete { display: flex; gap: 12px; align-items: flex-start; padding: 0 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.pan-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.pan-ico .ic { width: 22px; height: 22px; }
.pan-tete h2 { margin: 0; font-size: 1.12rem; line-height: 1.2; letter-spacing: -.01em; }
.pan-tete p { margin: 3px 0 0; font-size: .82rem; line-height: 1.4; color: var(--muted); }
.pan-sec { margin: 18px 8px 6px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pan-i { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 42px; padding: 0 10px; border: 0; border-radius: 11px; background: transparent; color: var(--ink); font-size: .95rem; font-weight: 500; text-align: left; }
.pan-i .ic { width: 19px; height: 19px; color: var(--muted); }
.pan-i:hover { background: var(--survol); }
.pan-i[aria-current] { background: var(--panneau-actif); font-weight: 600; }
.pan-i[aria-current] .ic { color: var(--ink); }
.pan-tag { margin-left: auto; font-size: .64rem; font-weight: 600; padding: 0 2px; border: 0; color: var(--muted); opacity: .75; white-space: nowrap; flex: none; }
.pan-pied { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); line-height: 1.35; }
.pan-pied b { display: block; color: var(--ink); font-size: .88rem; font-weight: 600; }

/* Barre du haut */
.barre { position: sticky; top: 0; z-index: 25; height: 66px; background: var(--barre); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 28px; }
.fil { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 auto; font-size: .92rem; color: var(--muted); container-type: inline-size; }
.fil button, .fil span.fil-cur { border: 0; background: transparent; color: inherit; padding: 6px 8px; border-radius: 8px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.fil button:hover { background: var(--survol); color: var(--ink); }
.fil .fil-cur { color: var(--ink); font-weight: 700; }
.fil .ic { width: 15px; height: 15px; flex: none; opacity: .6; }
.fil .fil-home .ic { width: 18px; height: 18px; opacity: 1; }
.fil .fil-home { flex: none; }   /* l'icône d'accueil ne se rétrécit jamais */
/* Fil d'Ariane : quand la place manque, le niveau intermédiaire disparaît (« Accueil › écran ») plutôt que de couper les mots. */
@container (max-width: 440px) { .fil .fil-mid { display: none; } }
.barre-titre { display: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barre-logo { display: none; }
.barre-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.bar-rech { display: flex; align-items: center; gap: 10px; height: 42px; min-width: 220px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .92rem; }
.bar-rech:hover { border-color: var(--line-fort); color: var(--ink); }
.bar-rech .bar-rech-t { flex: 1; text-align: left; }
.bar-rech kbd { font: inherit; font-size: .72rem; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; background: var(--surface); color: var(--muted); }
.bar-ic { width: 42px; height: 42px; border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: 12px; display: grid; place-items: center; }
.bar-ic:hover { background: var(--survol); }
.bar-ic .ic { width: 20px; height: 20px; }
.bar-rech .ic { width: 18px; height: 18px; }
.moi-zone { position: relative; margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line); }
.moi-btn { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 4px 8px 4px 4px; border-radius: 14px; text-align: left; color: var(--ink); }
.moi-btn:hover { background: var(--survol); }
.moi-btn .mt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.moi-btn .mt b { font-size: .9rem; font-weight: 600; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moi-btn .mt small { font-size: .74rem; color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av--g { width: 38px; height: 38px; font-size: .82rem; }
.pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--ombre-2); padding: 8px; z-index: 40; }
.pop-tete { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pop-tete b { display: block; font-size: .92rem; }
.pop-tete small { color: var(--muted); font-size: .78rem; }
.pop-i { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 0 10px; border: 0; background: transparent; border-radius: 10px; color: var(--ink); font-size: .92rem; text-align: left; }
.pop-i:hover { background: var(--survol); }
.pop-i .ic { color: var(--muted); }

/* Contenu */
.app-contenu { padding: 30px 34px 64px; width: 100%; max-width: 1380px; margin: 0 auto; flex: 1; }
.app-contenu:focus { outline: none; }
.impression-entete { display: none; }
.saut { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 10px; font-weight: 700; border: 0; }
.saut:focus { left: 12px; }

/* Téléphone et petite tablette : barre du bas, pas de panneau */
@media (max-width: 959px) {
    .shell, .shell.sans-panneau { display: block; }
    .panneau { display: none !important; }
    .shell-zone { min-height: 100vh; }
    .rail { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; flex-direction: row; justify-content: space-around; align-items: stretch; gap: 2px; padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); overflow: hidden; z-index: 40; box-shadow: 0 -4px 18px rgba(0, 0, 0, .12); }
    .rail-logo { display: none; }
    .rail-i { flex: 1 1 0; width: auto; min-width: 0; min-height: 54px; border-radius: 14px; }
    .barre { height: 58px; padding: 0 12px; gap: 8px; }
    .fil, .bar-rech .bar-rech-t, .bar-rech kbd, .moi-btn .mt, .moi-zone .moi-chev { display: none; }
    .barre-titre { display: block; flex: 1; }
    .barre-logo { display: grid; place-items: center; width: 34px; height: 34px; flex: none; }
    .barre-logo img { width: 28px; height: auto; display: block; }
    .bar-rech { min-width: 0; width: 42px; padding: 0; justify-content: center; border-radius: 12px; border-color: transparent; background: transparent; }
    .moi-zone { margin-left: 0; padding-left: 4px; border-left: 0; }
    .moi-btn { padding: 2px; }
    .app-contenu { padding: 18px 16px calc(92px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width: 960px) and (max-width: 1180px) {
    .shell { grid-template-columns: 84px 236px minmax(0, 1fr); }
    .bar-rech { min-width: 200px; }
    .moi-btn .mt { display: none; }
    .app-contenu { padding: 26px 24px 56px; }
}

/* Thème sombre : le symbole jaune remplace le noir */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .lg-clair { display: none !important; }
    :root:not([data-theme="light"]) .lg-sombre { display: block !important; }
}
:root[data-theme="dark"] .lg-clair { display: none !important; }
:root[data-theme="dark"] .lg-sombre { display: block !important; }
:root[data-theme="light"] .lg-clair { display: block !important; }
:root[data-theme="light"] .lg-sombre { display: none !important; }

/* Impression : uniquement le contenu, avec un en-tête GOODDEAL (logo, titre, date) */
@media print {
    .rail, .panneau, .barre, .saut, .no-print { display: none !important; }
    .shell, .shell.sans-panneau { display: block; }
    .app-contenu { padding: 0; max-width: none; }
    .impression-entete { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 18px; color: #111; }
    .impression-entete img { height: 34px; width: auto; }
    .impression-entete h1 { margin: 0; font-size: 1.1rem; }
    .impression-entete small { color: #444; }
    body { background: #fff; color: #111; }
    .impression-identite { display: flex; flex-direction: column; flex: 1; padding-left: 12px; }
    .impression-identite small, .impression-pied small { display: block; color: #444; }
    .impression-pied { display: block; margin-top: 24px; border-top: 1px solid #999; padding-top: 8px; text-align: center; }
}
.impression-pied, .impression-identite { display: none; }
@media print { .impression-identite { display: flex; } .impression-pied { display: block; } }

/* ---- cloche : tâches à faire ---- */
.cloche-zone { position: relative; }
.cloche-btn { position: relative; }
.cloche-n { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--brand); color: #000; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--barre, var(--surface)); box-sizing: content-box; }
.pop-cloche { min-width: 320px; max-width: min(92vw, 380px); right: -40px; }
.pop-tete--simple { display: block; }
.pop-cloche .pop-i { align-items: flex-start; padding: 10px; }
.tache-n { min-width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); font-weight: 700; display: grid; place-items: center; flex: none; font-size: .85rem; }
.tache-t { line-height: 1.35; }
.cloche-vide { margin: 0; padding: 14px 10px; color: var(--muted); font-size: .9rem; }
@media (max-width: 959px) { .pop-cloche { position: fixed; left: 12px; right: 12px; top: 64px; max-width: none; } }

/* place pour le fil d'Ariane : la recherche se réduit avant lui */
@media (min-width: 960px) and (max-width: 1399px) { .bar-rech { min-width: 0; } .bar-rech .bar-rech-t { display: none; } .bar-rech kbd { display: inline-block; } }

/* annonces dans la cloche */
.cloche-sec { padding: 10px 10px 4px; font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ann { border-radius: 10px; }
.ann-t { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--ink); text-align: left; border-radius: 10px; }
.ann-t:hover { background: var(--survol); }
.ann-pt { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: transparent; border: 1.5px solid var(--line-fort, var(--line)); }
.ann--nl .ann-pt { background: var(--brand); border-color: var(--brand); }
.ann--imp .ann-pt { background: var(--bad); border-color: var(--bad); }
.ann-tx b { display: block; font-size: .9rem; font-weight: 500; } .ann--nl .ann-tx b { font-weight: 700; }
.ann-tx small { color: var(--muted); font-size: .76rem; }
.ann-corps { margin: 0 10px 8px 29px; font-size: .88rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.cloche-pied { display: flex; justify-content: space-between; gap: 8px; padding: 4px 10px 6px; }
.cloche-lien { border: 0; background: transparent; color: var(--ink); font-weight: 600; font-size: .82rem; text-decoration: underline; padding: 6px 0; }

/* Composants de la bibliothèque : en-tête de page, cartes de chiffres, répartition, anneau, statut, filtres, tableau, formulaire, états vides, onglets, interrupteurs. */

/* En-tête de page */
.entete-page { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 4px 16px; margin-bottom: 22px; }
.ep-retour { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; margin-top: 4px; }
.ep-retour:hover { background: var(--survol); }
.ep-txt { min-width: 0; }
.page__titre { font-family: var(--font-display); font-size: 2rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0; }
.page__sous-titre { margin: 6px 0 0; font-size: .98rem; color: var(--muted); max-width: 70ch; }
.entete-page .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; align-items: center; padding-top: 4px; }
@media (max-width: 959px) {
    .entete-page { grid-template-columns: auto minmax(0, 1fr); margin-bottom: 16px; }
    .entete-page .actions { grid-column: 1 / -1; justify-content: stretch; }
    .entete-page .actions > * { flex: 1 1 auto; }
    .page__titre { font-size: 1.5rem; }
    .ep-retour { width: 38px; height: 38px; }
}

/* Grilles de cartes */
.grille-cc { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 18px; }
.grille-rp { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 22px; }
@media (max-width: 959px) { .grille-cc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .grille-rp { grid-template-columns: 1fr; gap: 10px; } }

/* Carte chiffre */
.cc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cc-tete { display: flex; align-items: center; gap: 10px; }
.cc-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.cc-ico .ic { width: 20px; height: 20px; }
.cc-lib { font-size: .88rem; font-weight: 600; color: var(--muted); }
.cc-val { font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cc-det { font-size: .84rem; color: var(--muted); }
.cc-barre { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: auto; }
.cc-barre i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.cc--ok .cc-ico { background: var(--ok-bg); color: var(--ok); } .cc--ok .cc-barre i { background: var(--ok); }
.cc--attention .cc-ico { background: var(--wait-bg); color: var(--wait); } .cc--attention .cc-barre i { background: var(--wait); }
.cc--danger .cc-ico { background: var(--bad-bg); color: var(--bad); } .cc--danger .cc-barre i { background: var(--bad); }
@media (max-width: 959px) { .cc { padding: 14px; border-radius: 16px; } .cc-val { font-size: 1.45rem; } .cc-ico { width: 34px; height: 34px; } }

/* Répartition */
.rp { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.rp-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.rp-tt { flex: 1; min-width: 0; } .rp-tt b { display: block; font-family: var(--font-display); font-size: 1rem; } .rp-tt small { color: var(--muted); font-size: .8rem; }
.rp-total { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.rp-lignes { display: grid; gap: 12px; }
.rp-l { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; margin-bottom: 5px; }
.rp-n { color: var(--muted); } .rp-n b { color: var(--ink); }
.rp-piste { height: 7px; border-radius: 99px; background: var(--line); overflow: hidden; }
.rp-piste i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.rp-vide { margin: 0; color: var(--muted); font-size: .9rem; }

/* Anneau */
.an { display: inline-grid; flex: none; }
.an-piste { fill: none; stroke: var(--line); stroke-width: 9; }
.an-val { fill: none; stroke: var(--brand); stroke-width: 9; stroke-linecap: round; }
.an-txt { fill: var(--ink); font: 700 19px var(--font-display); }
.cc-an { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.cc-an b { display: block; font-size: .9rem; } .cc-an span { color: var(--muted); font-size: .84rem; }

/* Statut avec point */
.st { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; background: var(--survol); color: var(--muted); }
.st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.st--ok { background: var(--ok-bg); color: var(--ok); } .st--attention { background: var(--wait-bg); color: var(--wait); } .st--danger { background: var(--bad-bg); color: var(--bad); }

/* Barre de filtres */
.bf { margin-bottom: 16px; }
.bf-ligne { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.bf-rech { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--muted); }
.bf-rech:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent); }
.bf-in { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font-size: 1rem; outline: none; padding: 10px 0; }
.bf-periode { display: flex; align-items: flex-end; gap: 8px; }
.bf-periode label { display: flex; flex-direction: column; gap: 2px; }
.bf-periode small { font-size: .72rem; font-weight: 600; color: var(--muted); padding-left: 4px; }
.bf-periode input { min-height: 46px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); padding: 0 12px; font-size: .95rem; }
.bf-fl { padding-bottom: 12px; color: var(--muted); }
.bf-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.bf-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 500; }
.bf-btn:hover { background: var(--survol); border-color: var(--line-fort); }
.bf-avances { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
@media (max-width: 959px) { .bf-actions { margin-left: 0; width: 100%; } .bf-btn { flex: 1 1 auto; justify-content: center; } .bf-btn span { font-size: .85rem; } .bf-periode { width: 100%; } .bf-periode label { flex: 1; } .bf-periode input { width: 100%; } }

/* Tableau */
.tb { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.tb-defil { overflow-x: auto; }
.tb table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tb th { position: sticky; top: 0; text-align: left; padding: 14px 16px; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tb tbody tr:last-child td { border-bottom: 0; }
.tb .al-droite { text-align: right; } .tb .al-centre { text-align: center; }
.tb tr.cliquable { cursor: pointer; }
.tb tr.cliquable:hover td, .tb tr.cliquable:focus-visible td { background: var(--survol); }
.tb-tri { border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; padding: 0; display: inline-flex; gap: 6px; align-items: center; }
.tb-tri:hover { color: var(--ink); }
.tb-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.tb-taille select { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); padding: 6px 8px; min-height: 36px; }
.tb-pages { display: flex; gap: 4px; align-items: center; }
.tb-pages button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); display: inline-grid; place-items: center; font-weight: 600; }
.tb-pages button:hover:not(:disabled) { background: var(--survol); }
.tb-pages button.on { background: var(--brand); color: var(--brand-ink); }
.tb-pages button:disabled { opacity: .35; cursor: default; }
.tb-pts { padding: 0 4px; }
.nm-cel { display: flex; align-items: center; gap: 12px; min-width: 0; }
.nm-cel b { font-weight: 600; }
.nm-cel small { display: block; color: var(--muted); font-size: .8rem; }
.code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86rem; color: var(--muted); }
@media (max-width: 759px) {
    .tb { border-radius: 16px; }
    .tb table, .tb tbody, .tb tr, .tb td { display: block; }
    .tb thead { position: absolute; left: -9999px; }
    .tb tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .tb tbody tr:last-child { border-bottom: 0; }
    .tb td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; gap: 14px; text-align: right; }
    .tb td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; font-weight: 600; text-align: left; flex: none; }
    .tb td.sec { display: none; }
    .tb td:first-child { font-weight: 600; }
    .tb-pied { justify-content: center; }
}

/* État vide */
.ev { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 44px 20px; }
.ev-fond { fill: var(--surface-2); stroke: var(--line-fort); stroke-width: 1.5; }
.ev-trait { fill: var(--line); } .ev-marque { fill: var(--brand); } .ev-point { fill: var(--brand); opacity: .55; }
.ev-titre { font-family: var(--font-display); font-size: 1.05rem; }
.ev-texte { margin: 0; color: var(--muted); max-width: 46ch; font-size: .92rem; }

/* Onglets en pastilles */
.ong { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; }
.ong button { border: 0; background: transparent; color: var(--muted); font-size: .92rem; font-weight: 600; padding: 9px 20px; border-radius: 999px; min-height: 40px; white-space: nowrap; }
.ong button:hover { color: var(--ink); }
.ong button[aria-selected="true"] { background: var(--brand); color: var(--brand-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }

/* Interrupteur */
.sw-ligne { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.sw-txt b { display: block; font-weight: 600; } .sw-txt small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.sw { position: relative; width: 48px; height: 28px; border-radius: 999px; border: 1px solid var(--line-fort); background: var(--line); flex: none; padding: 0; transition: background .15s; }
.sw i { position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.sw[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.sw[aria-checked="true"] i { transform: translateX(20px); }

/* Fenêtre de formulaire */
.mf-fond { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 16px; z-index: 60; }
.mf { background: var(--surface); color: var(--ink); width: min(680px, 100%); max-height: min(92vh, 860px); border-radius: 22px; box-shadow: var(--ombre-2); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.mf-tete { display: flex; justify-content: space-between; gap: 12px; padding: 22px 26px 16px; border-bottom: 1px solid var(--line); }
.mf-tete h2 { margin: 0; font-size: 1.3rem; } .mf-tete p { margin: 4px 0 0; color: var(--muted); font-size: .92rem; }
.mf-x { width: 38px; height: 38px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; flex: none; }
.mf-x:hover { background: var(--survol); color: var(--ink); }
.mf-corps { padding: 20px 26px; overflow-y: auto; flex: 1; display: grid; gap: 14px; align-content: start; }
.mf-pied { padding: 14px 26px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; background: var(--surface); }
.mf-actions { display: flex; justify-content: flex-end; gap: 10px; }
.mf-erreur { color: var(--bad); font-weight: 600; font-size: .9rem; }
.mf-erreur:empty { display: none; }
@media (max-width: 759px) { .mf-fond { padding: 0; align-items: end; } .mf { width: 100%; max-height: 94vh; border-radius: 22px 22px 0 0; } .mf-tete, .mf-corps, .mf-pied { padding-left: 18px; padding-right: 18px; } }

/* Page d'accueil d'un module : cartes d'écrans */
.hub-sec { font-family: var(--police); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.tile { all: unset; box-sizing: border-box; display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: var(--shadow); cursor: pointer; min-width: 0; }
.tile:hover { border-color: var(--ink); }
.tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tile-ico { width: 42px; height: 42px; border-radius: 13px; background: var(--brand-soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.tile-ico .ic { width: 21px; height: 21px; }
.tile-corps { display: grid; gap: 3px; min-width: 0; }
.tile-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: 1rem; }
.tile-d { font-size: .86rem; color: var(--muted); line-height: 1.4; }

/* ---- formulaires en fenêtre et lignes de tableau « client » ---- */
.form-colonne { display: grid; gap: 12px; }
.form-colonne h3 { margin: 6px 0 0; font-size: 1rem; }
.form-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 759px) { .form-grille { grid-template-columns: 1fr; } }
.tb-client { display: inline-flex; align-items: center; gap: 10px; }
.tb-client b { display: block; font-weight: 600; }
.tb-client small { display: block; color: var(--muted); font-size: .8rem; }
.tb td { white-space: nowrap; }
.tb-client > span:last-child { white-space: normal; min-width: 140px; }
.rp--anneau { display: flex; align-items: center; gap: 16px; }
.rp--anneau b { display: block; } .rp--anneau small { display: block; color: var(--muted); }

/* ---- accueil : salutation, à faire, actions rapides, panneaux ---- */
.cc-sec { font-size: 1.05rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: -4px; }
.greet { margin: 4px 0 20px; }
.greet h1 { font-size: 1.7rem; margin: 0; }
.greet p { margin: 4px 0 0; color: var(--muted); }
.afaire { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.afaire-liste { list-style: none; margin: 0; padding: 0; }
.afaire-liste li + li { border-top: 1px solid var(--line); }
.afaire-i { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 18px; border: 0; background: transparent; color: var(--ink); text-align: left; }
.afaire-i:hover { background: var(--survol); }
.afaire-i .tache-t { flex: 1; }
.afaire-i .ic { color: var(--muted); }
.tache-n { min-width: 28px; height: 28px; border-radius: 9px; background: var(--brand-soft); font-weight: 700; display: grid; place-items: center; flex: none; font-size: .85rem; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; min-height: 52px; font-weight: 600; text-align: left; box-shadow: var(--shadow); }
.qa:hover { border-color: var(--ink); background: var(--survol); }
.panel { border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); }
.panels { gap: 16px; margin-top: 16px; }
.chip.on { background: var(--brand); color: #000; }

/* ---- fiche client ---- */
.fc-statuts { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.fc-carte { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 8px; }
.fc-carte h2 { margin: 0 0 14px; font-size: 1.1rem; }
.fc-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 24px; margin: 0; }
.fc-champ dt { font-size: .78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fc-champ dd { margin: 3px 0 0; font-weight: 500; overflow-wrap: anywhere; }
.mt-plus { color: var(--ok); } .mt-moins { color: var(--bad); }
.bt-pro { min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-fort, var(--line)); background: var(--surface); color: var(--ink); font-weight: 600; }
.bt-pro--principal { background: var(--brand); border-color: var(--brand); color: #000; }
.bt-pro--danger { color: var(--bad); border-color: var(--bad); background: transparent; }
.bt-pro:hover { filter: brightness(.96); }
.tb-actions { display: inline-flex; gap: 8px; }
.tb-actions .btn { min-height: 38px; padding: 0 14px; width: auto; margin: 0; }
.caisse-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.caisse-tete h2 { margin: 0; }
.caisses-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.fc-carte .grille-cc { margin-bottom: 8px; }
.fc-carte .actions-ligne { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.fc-carte .actions-ligne .btn { width: auto; margin: 0; }
.ann-carte--imp { border-left: 4px solid var(--bad); }
.ann-corps--page { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.ann-pied { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); }
.ann-pied .btn { width: auto; margin: 0; min-height: 38px; }
.fld textarea { width: 100%; border: 1px solid var(--line-fort, var(--line)); border-radius: 12px; padding: 10px 12px; background: var(--surface); color: var(--ink); font: inherit; resize: vertical; }

/* À approuver : fenêtre de détail d'une demande */
.dem-detail{display:flex;flex-direction:column;gap:14px;min-width:min(520px,80vw)}
.dem-bloc h3{margin:0 0 6px;font:600 .8rem/1.2 var(--police-titre,Poppins,sans-serif);text-transform:uppercase;letter-spacing:.04em;opacity:.7}
.dem-resume,.dem-signataires{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px}
.dem-resume li{padding:6px 10px;border-radius:8px;background:rgba(127,127,127,.1)}
.dem-signataires li{display:flex;align-items:center;justify-content:space-between;gap:10px}
.dem-note{margin:0;font-size:.9rem;opacity:.8}
.dem-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.dem-titre{margin:22px 0 10px;font:600 1rem/1.2 var(--police-titre,Poppins,sans-serif)}
.bill-ligne{display:flex;align-items:center;justify-content:space-between;gap:10px}
.bill-ligne input{width:90px}
.mf .check{display:flex;align-items:center;gap:8px}
.dem-ligne{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 0}
.dem-note{margin:2px 0;opacity:.75;font-size:.85rem}
.ep-ligne{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;align-items:end;margin:8px 0}
.ep-recu{display:flex;flex-direction:column;gap:6px}
.page > *, .caisses-liste > * { min-width: 0; }

/* Revue : les boutons dans les cellules de tableau gardent leur largeur naturelle. */
.tb td .btn, .tb-actions .btn { width: auto; display: inline-flex; margin: 0; min-height: 38px; min-width: 0; padding: 6px 16px; flex: none; align-items: center; justify-content: center; }
.tb-actions { flex-wrap: nowrap; justify-content: flex-end; }
.ep-defil { overflow-x: auto; max-width: 100%; }
.dem-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dem-actions .btn { min-width: 0; max-width: 100%; }

/* Polissage : formulaires en grille, boutons compacts, libellés lisibles. */
.grille-champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 4px 18px; align-items: end; margin: 10px 0 14px; }
.grille-champs .fld { margin: 0 0 8px; }
.grille-champs .fld label { font-weight: 600; font-size: .8rem; line-height: 1.3; color: var(--muted); min-height: 2.6em; display: flex; align-items: flex-end; }
@media (min-width: 960px) { .page .btn, .fc-carte .btn { min-width: 0; padding-left: 22px; padding-right: 22px; } }

/* Présence : une ligne par membre, champ et boutons alignés. */
[data-membre] { padding: 12px 0; border-bottom: 1px solid var(--line); }
[data-membre]:last-child { border-bottom: 0; }
[data-membre] p { margin: 0 0 8px; }
[data-membre] .dem-actions { justify-content: flex-start; align-items: flex-end; }
[data-membre] .dem-actions .fld { margin: 0; flex: 1 1 220px; max-width: 380px; }
[data-membre] .dem-actions .btn { min-height: 44px; align-self: flex-end; }
[data-type-conge] { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); }
[data-type-conge] .dem-note { flex: 1 1 260px; }
[data-type-conge] .btn { margin-left: auto; min-height: 38px; }

/* Rôles : titre à gauche, bouton à droite. */
[data-role] { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; }
[data-role] .dem-actions { grid-column: 2; grid-row: 1 / span 2; }
[data-role] .caisse-tete { grid-column: 1; }
@media (max-width: 600px) { [data-role] { grid-template-columns: minmax(0, 1fr); } [data-role] .dem-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; } }
.fc-carte > .btn { width: auto; display: inline-flex; }
.fc-liste { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.fc-histo { font-size: .92rem; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Identité de l'institution : lignes des logos */
[data-logo] { justify-content: flex-start !important; align-items: center; gap: 12px; margin-top: 8px; }
[data-logo] > span:not(.dem-note) { flex: 1; min-width: 160px; }
[data-logo] img { max-width: 120px; object-fit: contain; background: #fff; border: 1px solid var(--bordure, #ddd); border-radius: 6px; padding: 2px; }


/* ===== Connexion refondue (0.26.0) : fort contraste, grandes cibles, lisible en plein soleil ===== */
/* Variables de l'espace d'accès disponibles PARTOUT (0.67.0) : les champs et boutons « .cx-* » servent aussi dans l'espace client (Mon accès, demande de crédit, virements), hors de la page de connexion « .cx » ; sans elles, le cadre des champs et le fond du bouton disparaissaient. */
:root{--cx-encre:#14130f;--cx-fond:#ffffff;--cx-jaune:var(--inst-jaune,#FFC500);--cx-trait:#4a483f;--cx-doux:#58564d;--cx-rouge:#b3261e;--cx-rouge-fond:#fdecea;--cx-carte:#f4f2ea}
:root[data-theme="dark"]{--cx-encre:#f6f4ec;--cx-fond:#14130f;--cx-trait:#bdbab0;--cx-doux:#c9c6bb;--cx-rouge:#ff9b92;--cx-rouge-fond:#3b1a18;--cx-carte:#22211c}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--cx-encre:#f6f4ec;--cx-fond:#14130f;--cx-trait:#bdbab0;--cx-doux:#c9c6bb;--cx-rouge:#ff9b92;--cx-rouge-fond:#3b1a18;--cx-carte:#22211c}:root:not([data-theme="light"]) .cx{--cx-encre:#f6f4ec;--cx-fond:#14130f;--cx-trait:#bdbab0;--cx-doux:#c9c6bb;--cx-rouge:#ff9b92;--cx-rouge-fond:#3b1a18;--cx-carte:#22211c}}
.cx{--cx-encre:#14130f;--cx-fond:#ffffff;--cx-jaune:#FFC500;--cx-trait:#4a483f;--cx-doux:#58564d;--cx-rouge:#b3261e;--cx-rouge-fond:#fdecea;--cx-carte:#f4f2ea;
  position:fixed;inset:0;z-index:30;overflow-y:auto;display:flex;flex-direction:column;background:var(--cx-fond);color:var(--cx-encre);-webkit-overflow-scrolling:touch}
:root[data-theme="dark"] .cx{--cx-encre:#f6f4ec;--cx-fond:#14130f;--cx-trait:#bdbab0;--cx-doux:#c9c6bb;--cx-rouge:#ff9b92;--cx-rouge-fond:#3b1a18;--cx-carte:#22211c}
.cx-marque{background:var(--cx-jaune);color:#14130f;padding:calc(16px + env(safe-area-inset-top)) 20px 16px}
.cx-marque-in{display:flex;align-items:center;gap:14px;max-width:460px;margin:0 auto;width:100%}
.cx-logo{width:52px;height:52px;border-radius:14px;box-shadow:0 2px 0 rgba(0,0,0,.2);flex:none}
.cx-nom{font-size:1.5rem;font-weight:900;letter-spacing:.08em;line-height:1.1}
.cx-sous{font-size:.95rem;font-weight:600;margin-top:2px}
.cx-forme{flex:1;display:flex;align-items:flex-start;justify-content:center;padding:24px 20px calc(32px + env(safe-area-inset-bottom))}
.cx-boite{width:100%;max-width:460px}
.cx-titre{font-size:1.65rem;font-weight:900;letter-spacing:-.01em;margin:0 0 6px;line-height:1.15}
.cx-sous-titre{font-size:1.05rem;font-weight:800;margin:0 0 12px}
.cx-aide{margin:0 0 18px;color:var(--cx-doux);font-size:1.05rem}
.cx-petit{font-size:.95rem;margin:16px 0 0}
.cx-bandeau{display:flex;gap:10px;align-items:flex-start;background:var(--cx-rouge-fond);color:var(--cx-rouge);border:2px solid var(--cx-rouge);border-radius:14px;padding:12px 14px;margin:0 0 18px;font-weight:700;font-size:1rem}
.cx-bandeau svg{flex:none;margin-top:1px}
.cx-champ{margin:0 0 18px}
.cx-champ>label{display:block;font-size:1.05rem;font-weight:800;margin:0 0 8px}
.cx-saisie{position:relative;display:flex}
.cx-saisie input{width:100%;min-height:58px;padding:12px 16px;font-size:1.2rem;border-radius:14px;border:2px solid var(--cx-trait);background:var(--cx-fond);color:var(--cx-encre)}
.cx-saisie input.cx-pin{text-align:center;letter-spacing:.6em;font-size:1.8rem;font-weight:800}
.cx-saisie input:focus{outline:4px solid var(--cx-jaune);outline-offset:0;border-color:var(--cx-encre)}
.cx-saisie input[type=password]+.cx-voir,.cx-saisie input[type=text]+.cx-voir{position:absolute;right:6px;top:6px;bottom:6px}
.cx-saisie input.cx-mdp{padding-right:112px}
.cx-voir{min-width:96px;border:0;border-radius:10px;background:var(--cx-carte);color:var(--cx-encre);font-weight:800;font-size:.95rem;cursor:pointer}
.cx-voir:hover{filter:brightness(.95)}
.cx-erreur .cx-saisie input{border-color:var(--cx-rouge);border-width:3px;background:var(--cx-rouge-fond)}
.cx-erreur>label{color:var(--cx-rouge)}
.cx-err{display:flex;gap:8px;align-items:flex-start;margin-top:8px;color:var(--cx-rouge);font-weight:800;font-size:1rem}
.cx-err svg{flex:none;margin-top:1px}
.cx-maj{margin-top:6px;font-size:.92rem;font-weight:700;color:var(--cx-doux)}
.cx-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:62px;padding:14px 18px;border:0;border-radius:16px;background:var(--cx-jaune);color:#14130f;font-size:1.25rem;font-weight:900;cursor:pointer;box-shadow:0 3px 0 #b88a00;transition:transform .08s,box-shadow .08s}
.cx-btn:hover{filter:brightness(1.04)}
.cx-btn:active{transform:translateY(2px);box-shadow:0 1px 0 #b88a00}
.cx-btn:focus-visible,.cx-lien:focus-visible,.cx-agent:focus-visible,.cx-client:focus-visible,.cx-voir:focus-visible{outline:4px solid var(--cx-encre);outline-offset:3px}
.cx-btn:disabled{opacity:.75;cursor:wait}
.cx-btn.cx-second{background:var(--cx-fond);color:var(--cx-encre);border:3px solid var(--cx-encre);box-shadow:none}
.cx-btn.cx-attente::before{content:"";width:18px;height:18px;margin-right:10px;border-radius:50%;border:3px solid rgba(0,0,0,.25);border-top-color:#14130f;animation:cxtourne .8s linear infinite}
@keyframes cxtourne{to{transform:rotate(360deg)}}
.cx-retour{text-align:center;margin:22px 0 0}
.cx-lien{background:none;border:0;color:var(--cx-encre);font-size:1.05rem;font-weight:800;text-decoration:underline;text-underline-offset:4px;cursor:pointer;padding:10px 14px;min-height:48px}
.cx-agents{display:flex;flex-direction:column;gap:10px;margin:0 0 22px}
.cx-agent,.cx-client{display:flex;align-items:center;gap:14px;padding:14px;border:2px solid var(--cx-trait);border-radius:16px;background:var(--cx-fond);cursor:pointer;min-height:72px}
.cx-agent:hover,.cx-client:hover{background:var(--cx-carte)}
.cx-avatar{flex:none;width:48px;height:48px;border-radius:50%;background:var(--cx-jaune);color:#14130f;display:grid;place-items:center;font-weight:900;font-size:1.1rem}
.cx-avatar.grand{width:60px;height:60px;font-size:1.4rem}
.cx-agent-nom{flex:1;display:flex;flex-direction:column;min-width:0}
.cx-agent-nom b{font-size:1.15rem;overflow:hidden;text-overflow:ellipsis}
.cx-agent small,.cx-client small{color:var(--cx-doux);font-size:.9rem;display:block}
.cx-retirer{background:none;border:0;color:var(--cx-doux);font-weight:700;font-size:.9rem;text-decoration:underline;cursor:pointer;padding:10px;min-height:44px}
.cx-salut{display:flex;align-items:center;gap:14px;margin:0 0 20px}
.cx-salut .cx-aide{margin:0}
.cx-bloc{margin:0 0 22px;padding:18px;background:var(--cx-carte);border-radius:18px}
.cx-bloc .cx-champ{margin-bottom:14px}
.cx-client b{font-size:1.1rem;display:block}
.cx-client-ico{font-size:1.7rem}
.cx-fleche{margin-left:auto;font-size:1.8rem;font-weight:900}
.cx-secoue{animation:cxsecoue .35s}
@keyframes cxsecoue{20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}
@media (prefers-reduced-motion:reduce){.cx-secoue,.cx-btn.cx-attente::before{animation:none}.cx-btn{transition:none}}
/* Ordinateur : panneau jaune à gauche, formulaire centré à droite */
@media (min-width:900px){
  .cx{flex-direction:row}
  .cx-marque{flex:0 0 42%;display:flex;align-items:center;justify-content:center;padding:48px}
  .cx-marque-in{flex-direction:column;align-items:flex-start;gap:22px;max-width:380px}
  .cx-logo{width:96px;height:96px;border-radius:24px}
  .cx-nom{font-size:2.6rem}
  .cx-sous{font-size:1.15rem}
  .cx-forme{align-items:center;padding:48px}
  .cx-boite{max-width:480px}
}
.cache{display:none!important}

/* Espace client (0.55.0) : mobile d'abord, charte GOODDEAL. Préfixe .ec-* */
.ec { min-height: 100vh; background: var(--bg); color: var(--ink); font-family: var(--police); padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.ec-entete { background: var(--brand); color: #14130f; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.ec-entete__in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.ec-logo { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.ec-entete__nom { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* Le nom et le numéro d'adhésion passent à la ligne quand la place manque (téléphone) au lieu d'être coupés par « … » */
.ec-entete__nom b { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.ec-entete__nom small { font-size: .78rem; font-weight: 500; line-height: 1.25; overflow-wrap: anywhere; }
.ec-ident { display: flex; flex-wrap: wrap; column-gap: .8em; }   /* nom et numéro côte à côte s'il y a la place, sinon l'un sous l'autre, sans signe de séparation perdu en début de ligne */
.ec-num { font-weight: 700; white-space: nowrap; }
/* Sous-titre de section de l'espace client (niveau 2) : même aspect que l'ancien niveau 3 */
.ec-sous-titre { font-size: .9rem; margin: 12px 0 6px; color: var(--muted); }
.ec-deco { border: 1.5px solid rgba(0,0,0,.55); background: transparent; color: #14130f; border-radius: 10px; padding: 8px 12px; font-weight: 600; font-size: .82rem; min-height: 40px; }
.ec-deco:hover { background: rgba(0,0,0,.08); }
.ec-corps { max-width: 760px; margin: 0 auto; padding: 18px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.ec-corps > * { min-width: 0; }
.ec-h1 { font-family: var(--font-display); font-size: 1.55rem; margin: 4px 0 0; }
.ec-titre { font-family: var(--font-display); font-size: 1.02rem; margin: 10px 0 0; letter-spacing: .01em; }
.ec-note { color: var(--muted); font-size: .9rem; line-height: 1.45; }
.ec-pied { color: var(--muted); font-size: .82rem; line-height: 1.45; text-align: center; margin: 6px 0 0; }
.ec-pos { color: var(--ok); } .ec-neg { color: var(--bad); }

/* Navigation : barre fixe en bas sur téléphone, onglets en haut sur grand écran */
.ec-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.ec-nav__it { border: 0; background: transparent; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 12px; font-size: .68rem; font-weight: 600; min-height: 52px; }
.ec-nav__ico { font-size: 1.25rem; line-height: 1; }
.ec-nav__it--actif { color: var(--ink); background: var(--brand-soft); }
.ec-nav__it--actif .ec-nav__ico { color: var(--brand-text); }
@media (min-width: 760px) {
  .ec { padding-bottom: 32px; }
  .ec-nav { position: sticky; top: 64px; bottom: auto; max-width: 760px; margin: 14px auto 0; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 6px; }
  .ec-nav__it { flex-direction: row; justify-content: center; gap: 6px; font-size: .85rem; min-height: 44px; }
}

/* Grand encart : solde, reste à payer, versements */
.ec-hero { background: #14130f; color: #fff; border-radius: 20px; padding: 20px 20px 18px; box-shadow: var(--shadow); }
.ec-hero--alerte { box-shadow: 0 0 0 3px var(--bad), var(--shadow); }
.ec-hero__etiq { font-size: .85rem; color: #D8D8D0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ec-hero__montant { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: #FFC500; line-height: 1.15; margin: 6px 0 2px; word-break: break-word; }
.ec-hero__multi { display: flex; flex-direction: column; gap: 0; }
.ec-hero__note { font-size: .82rem; color: #BDBDB5; }
.ec-hero .st { background: rgba(255,255,255,.12); color: #fff; }
.ec-bandeau-alerte { background: var(--bad-bg); color: var(--bad); border: 1.5px solid var(--bad); border-radius: 14px; padding: 12px 14px; font-size: .92rem; }

/* Lignes cliquables (comptes, crédits, LIKELEMBA) */
.ec-groupe { display: flex; flex-direction: column; gap: 10px; }
.ec-ligne { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: inherit; box-shadow: var(--shadow); min-height: 68px; }
.ec-ligne:hover { border-color: var(--line-fort); }
.ec-ligne:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ec-ligne--alerte { border-color: var(--bad); }
.ec-ligne__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; font-size: 1.2rem; }
.ec-ligne__texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ec-ligne__texte b { font-weight: 600; } .ec-ligne__texte small, .ec-ligne__fin small { color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.ec-ligne__fin { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; font-variant-numeric: tabular-nums; }
.ec-ligne__fin b { font-size: 1rem; font-weight: 700; }
.ec-ligne-entre { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }

.ec-carte { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.ec-carte .btn { align-self: flex-start; width: auto; min-width: 0; }
.ec-ecran { display: flex; flex-direction: column; gap: 14px; }
.ec-ecran > * { min-width: 0; }
.ec-retour { align-self: flex-start; border: 0; background: transparent; color: var(--ink); font-weight: 600; padding: 8px 4px; min-height: 40px; display: inline-flex; gap: 8px; align-items: center; }
.ec-retour:hover { text-decoration: underline; }
.ec-vide { border: 1.5px dashed var(--line-fort); border-radius: 16px; padding: 20px; text-align: center; display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: .9rem; }
.ec-vide b { color: var(--ink); }

/* Barre de progression */
.ec-progres { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--muted); }
.ec-progres b { color: var(--ink); }
.ec-barre { height: 10px; border-radius: 99px; background: var(--survol); overflow: hidden; border: 1px solid var(--line); }
.ec-barre__v { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .4s; }
.ec-barre__v--ok { background: var(--ok); }
.ec-alerte { color: var(--bad); font-weight: 600; font-size: .9rem; margin: 2px 0 0; }
.ec-bon { color: var(--ok); font-weight: 600; font-size: .9rem; margin: 2px 0 0; }

/* Faits : étiquette / valeur */
.ec-faits { display: grid; gap: 10px; margin: 0; }
.ec-faits--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ec-fait { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.ec-carte .ec-fait { border: 0; background: var(--surface-2); }
.ec-fait dt { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ec-fait dd { margin: 3px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

/* Prochaine échéance */
.ec-prochaine { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--brand-soft); border: 1.5px solid var(--brand); border-radius: 16px; padding: 14px 16px; }
.ec-prochaine--retard { background: var(--bad-bg); border-color: var(--bad); }
.ec-prochaine__etiq { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ec-prochaine__date { display: block; font-family: var(--font-display); font-size: 1.15rem; }
.ec-prochaine__delai { font-size: .85rem; color: var(--muted); }
.ec-prochaine--retard .ec-prochaine__delai { color: var(--bad); font-weight: 600; }
.ec-prochaine__montant { text-align: right; font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.ec-prochaine__montant small { font-weight: 500; color: var(--muted); font-size: .75rem; }

/* Calendrier */
.ec-bloc { display: flex; flex-direction: column; gap: 10px; }
.ec-cal { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.ec-cal__ligne { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ec-cal__ligne:last-child { border-bottom: 0; }
/* Échéance payée : on la rend discrète par la COULEUR du texte (jamais par la transparence, qui fait tomber le contraste sous le seuil de lecture) */
.ec-cal__ligne--payee .ec-cal__texte b, .ec-cal__ligne--payee .ec-cal__fin b { color: var(--muted); font-weight: 600; }
.ec-cal__ligne--retard { background: var(--bad-bg); }
.ec-cal__rang { width: 28px; height: 28px; border-radius: 50%; background: var(--survol); display: grid; place-items: center; font-size: .78rem; font-weight: 700; }
.ec-cal__ligne--payee .ec-cal__rang { background: var(--ok-bg); color: var(--ok); }
.ec-cal__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ec-cal__texte small { color: var(--muted); font-size: .76rem; }
.ec-cal__fin { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-variant-numeric: tabular-nums; }

/* Opérations (relevé, paiements) */
.ec-jour { display: flex; flex-direction: column; gap: 6px; }
.ec-jour + .ec-jour { margin-top: 10px; }
.ec-jour__titre { margin: 0; font-size: .8rem; color: var(--muted); font-weight: 600; }
.ec-jour__titre::first-letter { text-transform: uppercase; }
.ec-jour ul, .ec-liste-simple { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.ec-op { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.ec-op:last-child { border-bottom: 0; }
.ec-op--annulee .ec-op__texte b, .ec-op--annulee .ec-op__montant { color: var(--muted); text-decoration: line-through; }   /* barrés et grisés par la couleur, sans transparence ; le mot « Annulée » reste net et lisible */
.ec-op--annulee .ec-op__pastille { background: var(--survol); color: var(--muted); }
.ec-op--annulee .ec-op__texte small.ec-neg { font-weight: 700; }
.ec-op__pastille { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--survol); }
.ec-op__pastille--pos { background: var(--ok-bg); color: var(--ok); } .ec-op__pastille--neg { background: var(--bad-bg); color: var(--bad); }
.ec-op__texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .ec-op__texte b { font-weight: 600; font-size: .95rem; } .ec-op__texte small { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.ec-op__montant { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-plus { align-self: center; width: auto; min-width: 0; }

/* Formulaires de l'espace client dans la nouvelle coque */
.ec-corps .cx-boite { max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.ec-corps .cx-titre { font-size: 1.3rem; }
@media (max-width: 380px) { .ec-faits--2 { grid-template-columns: 1fr; } .ec-hero__montant { font-size: 1.6rem; } }
@media print { .ec-nav, .ec-deco, .ec-retour, .ec-plus { display: none; } .ec { padding: 0; } .ec-entete { position: static; } }
.ec-progres b { white-space: nowrap; }
.ec-nav__ico svg { display: block; }
.ec-ligne__ico svg { display: block; }
.ec-ligne__texte .st { align-self: flex-start; }

.ec-note--petit { font-size: .82rem; margin-top: 8px; }

/* Formulaires de l'espace client (0.67.0) : même charte « grands doigts » que la connexion, un peu plus compacte pour tenir dans les cartes */
.ec .cx-champ { margin-bottom: 14px; }
.ec .cx-champ > label { font-size: .95rem; margin-bottom: 6px; }
.ec .cx-saisie input { min-height: 52px; font-size: 1.1rem; }
.ec .cx-saisie input.cx-pin { font-size: 1.6rem; }
.ec .cx-btn { min-height: 54px; font-size: 1.1rem; border-radius: 14px; }

/* L'étiquette de la carte « héros » est le titre principal de l'écran (un seul h1 par écran, pour les lecteurs d'écran) : on garde son aspect discret */
h1.ec-hero__etiq { font: inherit; font-size: .85rem; font-weight: 400; letter-spacing: normal; margin: 0; }

/* =============================================================================
   0.67.0 — Couche « synthèse » : plus dense, plus lisible, plus professionnelle.
   Ne change aucune structure : elle resserre les espaces, aligne les actions avec le titre, donne à chaque
   message la gravité qui lui revient (rouge = erreur ; ambre = attention ; neutre = information) et garde
   des cibles tactiles de 44 px sur téléphone. Chargée avant 9z-marque.css (les couleurs de l'institution gagnent).
   ============================================================================= */

/* ---------- Structure (ordinateur) : rail et panneau plus étroits, barre plus basse, contenu plus large ---------- */
@media (min-width: 960px) {
    .shell { grid-template-columns: 72px 248px minmax(0, 1fr); }
    .shell.sans-panneau { grid-template-columns: 72px minmax(0, 1fr); }
    .rail { padding: 10px 0; gap: 2px; }
    .rail-logo { width: 46px; height: 46px; margin-bottom: 6px; }
    .rail-i { width: 62px; min-height: 52px; border-radius: 14px; padding: 6px 2px; gap: 3px; font-size: 10px; }
    .rail-i .ic { width: 21px; height: 21px; }
    .panneau { padding: 14px 10px 10px; }
    .pan-tete { padding: 0 6px 10px; gap: 10px; margin-bottom: 4px; align-items: center; }
    .pan-ico { width: 34px; height: 34px; border-radius: 10px; }
    .pan-ico .ic { width: 19px; height: 19px; }
    .pan-tete h2 { font-size: 1rem; margin: 0; }
    .pan-tete p { margin: 2px 0 0; font-size: .74rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .pan-sec { margin: 12px 8px 3px; font-size: .64rem; }
    .pan-i { min-height: 35px; padding: 0 9px; border-radius: 9px; font-size: .9rem; gap: 10px; }
    .pan-i .ic { width: 18px; height: 18px; }
    .pan-pied { padding: 10px 8px 0; font-size: .76rem; }
    .barre { height: 54px; padding: 0 22px; gap: 12px; }
    .bar-rech { height: 36px; font-size: .88rem; }
    .bar-ic { width: 36px; height: 36px; border-radius: 10px; }
    .bar-ic .ic { width: 18px; height: 18px; }
    .av--g { width: 34px; height: 34px; font-size: .78rem; }
    .moi-zone { margin-left: 4px; padding-left: 10px; }
    .app-contenu { padding: 18px 26px 44px; }
}
@media (min-width: 960px) and (max-width: 1180px) {
    .shell { grid-template-columns: 72px 228px minmax(0, 1fr); }
    .app-contenu { padding: 16px 20px 40px; }
}

/* ---------- Page : espacement serré, blocs vides sans trace ---------- */
.page { gap: 12px; }
.page > :is(div, section, p, ul):empty, .caisses-liste > :is(div, section, p, ul):empty { display: none; }

/* ---------- Titre de page : sur une seule ligne avec ses actions ---------- */
.entete-page { align-items: center; gap: 2px 12px; margin-bottom: 12px; }
.ep-retour { width: 34px; height: 34px; border-radius: 10px; margin-top: 0; }
.page__titre { font-size: 1.45rem; letter-spacing: -.015em; line-height: 1.2; }
.page__sous-titre { margin: 2px 0 0; font-size: .86rem; line-height: 1.35; max-width: 84ch; }
.entete-page .actions { padding-top: 0; gap: 8px; align-self: center; }
.entete-page .actions .dem-actions { gap: 8px; justify-content: flex-end; }

/* ---------- Boutons : compacts sur ordinateur (le tactile garde 44 px, voir plus bas) ---------- */
@media (min-width: 960px) {
    .btn { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; gap: 8px; }
    .btn--grand { min-height: 56px; font-size: 17px; }
    .page .btn, .fc-carte .btn, .mf .btn { padding-left: 14px; padding-right: 14px; }
    .tb td .btn, .tb-actions .btn { min-height: 32px; padding: 4px 12px; font-size: 13px; }
    .bf-btn, .bf-rech, .bf-periode input { min-height: 38px; border-radius: 10px; }
    .bf-btn { padding: 0 12px; font-size: .88rem; }
    .ong button { min-height: 34px; padding: 6px 16px; font-size: .88rem; }
}

/* ---------- Grilles et cartes de chiffres : une ligne d'information, pas un bloc ---------- */
.grille-cc { --cc-min: 158px; grid-template-columns: repeat(auto-fit, minmax(var(--cc-min), 1fr)); gap: 10px; margin-bottom: 12px; }   /* GrilleChiffres.ts lit --cc-min pour ne jamais laisser une carte seule sur la dernière ligne */
.grille-rp { gap: 10px; margin-bottom: 14px; }
.cc { padding: 10px 13px; border-radius: 14px; gap: 1px; box-shadow: none; }
.cc-tete { gap: 8px; }
.cc-ico { width: 26px; height: 26px; border-radius: 8px; }
.cc-ico .ic { width: 15px; height: 15px; }
.cc-lib { font-size: .76rem; line-height: 1.2; }
.cc-val { font-size: 1.32rem; margin-top: 2px; }
.cc-sec { font-size: .9rem; font-weight: 600; color: var(--muted); }
.cc-det { font-size: .74rem; line-height: 1.3; }
.cc-barre { height: 4px; margin-top: 4px; }
.rp, .cc-an { padding: 12px 14px; border-radius: 14px; box-shadow: none; }

/* ---------- Cartes de fiche, listes, tableaux ---------- */
.fc-carte { padding: 13px 15px; border-radius: 14px; margin-bottom: 0; box-shadow: none; }
.fc-carte h2 { margin: 0 0 8px; font-size: .98rem; }
.caisse-tete { gap: 8px; margin-bottom: 8px; align-items: baseline; }
.caisse-tete .dem-note { margin: 0; }   /* « Siège » à côté du nom d'un employé : même ligne de base */
.caisses-liste { gap: 10px; }
.fc-grille { gap: 8px 18px; }
.fc-champ dt { font-size: .7rem; }
.fc-champ dd { font-size: .9rem; margin-top: 1px; }
.fc-carte .actions-ligne { margin-top: 10px; gap: 8px; }
.dem-actions { gap: 6px; }
.page h3 { margin: 12px 0 6px; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.page h2 { margin: 14px 0 6px; }
/* Titre de section (niveau 2) qui garde l'aspect d'un petit titre en majuscules : le titre suit le titre de l'écran sans sauter de niveau */
.page .titre-section { margin: 12px 0 6px; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.dem-bloc .titre-section { font-weight: 600; }
/* Nom d'un groupe de contrôles (niveau 3) : même aspect que l'ancien titre de niveau 4 */
.page .titre-groupe { margin: 18px 0 6px; font-size: 1rem; font-family: var(--police); }
.dem-note { font-size: .82rem; }
.tb { border-radius: 14px; box-shadow: none; }
@media (min-width: 760px) {
    .tb table { font-size: .88rem; }
    .tb th { padding: 8px 12px; font-size: .68rem; }
    .tb td { padding: 7px 12px; }
    .tb-pied { padding: 8px 12px; font-size: .82rem; }
    .tb-taille select { min-height: 30px; padding: 3px 6px; }
    .tb-pages button { min-width: 30px; height: 30px; border-radius: 8px; }
}
.bf { margin-bottom: 10px; }
.bf-ligne { gap: 8px 10px; }
.bf-in { padding: 7px 0; font-size: .95rem; }
.ong { padding: 3px; }
.st { padding: 2px 9px 2px 8px; font-size: .74rem; }
.statut, .etiquette { font-size: .74rem; }

/* ---------- États vides : discrets ---------- */
.ev { padding: 22px 16px; gap: 3px; }
.ev svg.ev-dessin { width: 68px; height: 51px; }
.ev-titre { font-size: .95rem; }
.ev-texte { font-size: .84rem; max-width: 52ch; }

/* ---------- Messages : la couleur dit la gravité ---------- */
.alerte { padding: 9px 12px; border-radius: 10px; font-weight: 500; font-size: .87rem; line-height: 1.4; margin-bottom: 8px; }
.alerte--erreur { background: var(--bad-bg); color: var(--bad); border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent); }
.alerte--attention { background: var(--wait-bg); color: var(--wait); border: 1px solid color-mix(in srgb, var(--wait) 35%, transparent); }
.alerte--ok { background: var(--ok-bg); color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.alerte--info { background: var(--surface); color: var(--ink); border: 1px solid var(--line-fort, var(--line)); }
.alerte--info b, .alerte--attention b { font-weight: 700; }
details.alerte { padding: 0; }
details.alerte > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-weight: 600; }
details.alerte > summary::-webkit-details-marker { display: none; }
details.alerte > summary::after { content: "Détail"; margin-left: auto; flex: none; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; opacity: .75; }
details.alerte[open] > summary::after { content: "Réduire"; }
details.alerte > .alerte-corps { padding: 0 12px 10px; font-weight: 400; }
details.alerte > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -2px; border-radius: 10px; }
.bandeau-info { padding: 9px 12px; font-size: .87rem; }

/* ---------- Téléphone : tout tient plus vite à l'écran, les cibles restent à 44 px ---------- */
@media (max-width: 959px) {
    .app-contenu { padding: 12px 14px calc(88px + env(safe-area-inset-bottom, 0px)); }
    .entete-page { margin-bottom: 10px; gap: 6px 10px; }
    .ep-retour { width: 36px; height: 36px; }
    .page__titre { font-size: 1.3rem; }
    .page__sous-titre { font-size: .82rem; margin-top: 1px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .entete-page .actions { gap: 8px; }
    .entete-page .actions > *, .entete-page .actions .dem-actions > * { flex: 1 1 auto; }
    .entete-page .actions .dem-actions { justify-content: stretch; width: 100%; }
    .grille-cc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
    .grille-cc > .cc:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* nombre impair de cartes : la dernière prend toute la largeur, jamais seule à moitié */
    .cc { padding: 9px 11px; border-radius: 12px; }
    .cc-val { font-size: 1.18rem; }
    .cc-lib { font-size: .72rem; }
    .cc-ico { width: 24px; height: 24px; }
    .cc-det { font-size: .7rem; }
    .fc-carte { padding: 11px 12px; border-radius: 12px; }
    .ev { padding: 16px 12px; }
    .ev svg.ev-dessin { width: 54px; height: 41px; }
    .page { gap: 10px; }
    .dem-actions > .btn { flex: 1 1 auto; }
    .form-grille { grid-template-columns: 1fr 1fr; gap: 8px; }
    .form-colonne { gap: 8px; }
    .form-colonne .fld, .form-grille .fld { margin: 0; }
    .fld label { font-size: .78rem; margin-bottom: 2px; }
    .fld input, .fld select { min-height: 42px; padding: 6px 10px; }
    .barre { height: 54px; }
    .barre-logo { width: 38px; height: 38px; }
    .tb-tri { min-height: 36px; min-width: 44px; }
    .tb-taille select { min-height: 40px; }
    .tb-pages button { min-width: 40px; height: 40px; }
    .bf-in { padding: 10px 0; }
    summary { min-height: 40px; }
}

/* ---------- Thème sombre : bouton danger lisible ---------- */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--danger { color: #2a0a08; } }
:root[data-theme="dark"] .btn--danger { color: #2a0a08; }

/* ---------- Tableau en fiches (téléphone) : les valeurs longues passent à la ligne ---------- */
@media (max-width: 759px) {
    .tb td { overflow-wrap: anywhere; white-space: normal; min-width: 0; }
    .tb td::before { max-width: 42%; }
}

/* ---------- Tableau étroit : les colonnes « détail » s'effacent (le CSV les garde) ---------- */
.tb { container-type: inline-size; }
@container (max-width: 900px) { .tb th.det, .tb td.det { display: none; } }
/* Tableau étroit : les colonnes secondaires (agence, adresse…) passent à la ligne au lieu de faire défiler le tableau. */
@container (max-width: 900px) { .tb td.sec { white-space: normal; } }

/* ---------- Centre de configuration ---------- */
.cfg-synthese { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.cfg-score { position: relative; display: grid; place-content: center; text-align: center; line-height: 1.05; width: 72px; height: 72px; border-radius: 50%; background: conic-gradient(var(--ok) calc(var(--p, 0) * 1%), var(--line) 0); flex: none; }
.cfg-score::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.cfg-score b, .cfg-score span { position: relative; z-index: 1; }
.cfg-score b { font-family: var(--font-display); font-size: 1.05rem; }
.cfg-score span { font-size: .6rem; color: var(--muted); }
.cfg-synthese-txt { flex: 1; min-width: 0; display: grid; gap: 6px; }
.cfg-synthese-txt p { margin: 0; font-size: .92rem; }
.cfg-puces { display: flex; flex-wrap: wrap; gap: 6px; }
.cfg-prio { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 14px; padding: 10px 14px; }
.page .cfg-prio h2 { margin: 0 0 4px; font-size: .92rem; }
.cfg-prio ul { list-style: none; margin: 0; padding: 0; }
.cfg-prio li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.cfg-prio li:first-child { border-top: 0; }
.cfg-prio-t { display: grid; min-width: 0; }
.cfg-prio-t small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.cfg-groupes { display: grid; gap: 12px; }
.page .cfg-groupe-t { margin: 0 0 6px; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.cfg-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.cfg { display: flex; flex-direction: column; gap: 3px; padding: 10px 13px; background: var(--surface); border: 1px solid var(--line); border-left-width: 4px; border-radius: 14px; min-width: 0; }
.cfg--ok { border-left-color: var(--ok); } .cfg--afaire { border-left-color: var(--bad); } .cfg--attention { border-left-color: var(--wait); } .cfg--inactif { border-left-color: var(--line-fort, var(--line)); }
.cfg-tete { display: flex; align-items: center; gap: 8px; }
.cfg-ico { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.cfg-ico .ic { width: 15px; height: 15px; }
.page .cfg-titre { margin: 0; flex: 1; min-width: 0; font-size: .94rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); }
.cfg-resume { margin: 0; font-size: .83rem; color: var(--muted); overflow-wrap: anywhere; }
.cfg-detail { margin: 0; font-size: .79rem; line-height: 1.35; overflow-wrap: anywhere; }
.cfg-pied { margin-top: auto; padding-top: 6px; display: flex; justify-content: flex-end; }
.cfg-pied .btn { min-height: 32px; font-size: 13px; }
@media (max-width: 959px) {
    .cfg-synthese { padding: 10px 12px; gap: 10px; }
    .cfg-score { width: 62px; height: 62px; } .cfg-score::before { inset: 6px; } .cfg-score b { font-size: .95rem; }
    .cfg-grille { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .cfg { padding: 9px 12px; }
    .cfg-prio { padding: 8px 12px; }
    .cfg-prio li { gap: 10px; }
    .cfg-prio li .btn { flex: none; min-height: 40px; min-width: 84px; }
    .cfg-pied { padding-top: 4px; }
    .cfg-pied .btn { min-height: 40px; flex: none; min-width: 104px; }
}

/* Barre du haut (téléphone) : le titre passe sur deux lignes au lieu d'être coupé par des points de suspension. */
@media (max-width: 959px) {
    .barre-titre { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow: hidden; font-size: .98rem; line-height: 1.15; overflow-wrap: anywhere; }
}

/* ---------- Rapports : filtres sur une ligne, en-têtes alignés comme les cellules, tableau vide sur une ligne ---------- */
.ep-table th { text-align: left; }
/* Filtres : une seule ligne quand la place le permet, sinon la rangée passe à la ligne ; aucun champ n'est écrasé au point de couper sa valeur
   (une date « 06/11/2026 » demande 9,5 rem, une liste ou une saisie 7 rem au moins). `--b` = largeur de départ choisie par l'écran (voir ligneFiltres). */
.rap-filtres { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.rap-filtres .fld { margin: 0; }
.rap-filtres > .fld { flex: 1 1 var(--b, 7.5rem); min-width: min(var(--b, 7rem), 7rem); }
.rap-filtres > .fld:has(input[type="date"]) { flex-basis: var(--b, 9.5rem); min-width: 9.5rem; }
.rap-appliquer { display: flex; align-items: flex-end; flex: 0 0 auto; }
select { text-overflow: ellipsis; }   /* un libellé trop long pour sa liste déroulante se termine par « … » au lieu d'être coupé net */
.rap-vide { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
@media (min-width: 960px) { .ong { display: flex; flex-wrap: wrap; gap: 2px; border-radius: 20px; } .ong button { flex: 1 1 auto; padding: 6px 10px; text-align: center; } }
.rap-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rap-kpi { display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); min-width: 0; }
.rap-kpi span { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.rap-kpi b { margin-top: auto; font-family: var(--font-display); font-size: 1.15rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 959px) {
    .rap-filtres > .fld, .rap-filtres > .fld:has(input[type="date"]) { flex: 1 1 calc(50% - 6px); min-width: 0; }   /* téléphone : deux champs par ligne */
    .rap-filtres--souple > .fld { flex: 1 1 100%; }                                                                /* filtres à largeurs propres : un champ par ligne, les dates côte à côte */
    .rap-filtres--souple > .fld:has(input[type="date"]) { flex: 1 1 calc(50% - 6px); }
    .rap-filtres .rap-appliquer { flex: 1 1 100%; } .rap-filtres .rap-appliquer .btn { flex: 1 1 auto; }
    .ep-table th { white-space: normal; line-height: 1.2; }
    .ep-table td:first-child { min-width: 7.5rem; }
}

/* Portefeuille de crédits : filtres en bascule (comme les onglets) à gauche, action à droite */
.cr-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0 8px; }
.cr-filtres .ong { flex: 1 1 360px; }
@media (max-width: 959px) { .cr-filtres .ong { flex-basis: 100%; } .cr-filtres > .btn { flex: 1 1 100%; } }

/* ---------- Réglages : familles repliables, une ligne par réglage ---------- */
.rg-barre { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; margin: 2px 0 4px; }
.rg-barre .fld { flex: 1 1 280px; max-width: 460px; margin: 0; }
.rg-actions { display: flex; gap: 6px; }
.rg-compte, .liste-compte { margin: 2px 0 8px; font-size: .82rem; color: var(--muted); }
.rg-compte:empty, .liste-compte:empty { display: none; }
.rg-liste { display: grid; gap: 8px; align-content: start; }
.rg-groupe { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rg-groupe > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: .95rem; }
.rg-groupe > summary::-webkit-details-marker { display: none; }
.rg-groupe > summary::before { content: ""; width: 7px; height: 7px; flex: none; margin: 0 4px 2px 2px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; }
.rg-groupe[open] > summary::before { transform: rotate(45deg); }
.rg-groupe > summary > span:first-of-type { flex: 1; min-width: 0; }
.rg-groupe > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.rg-groupe[open] > summary { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.rg-n { min-width: 1.7rem; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: .72rem; font-weight: 700; color: var(--muted); text-align: center; }
.rg-groupe[open] .rg-n { background: var(--surface); }
.rg-ligne { display: grid; grid-template-columns: minmax(0, 1fr) 176px auto; gap: 6px 14px; align-items: center; padding: 7px 14px; border-top: 1px solid var(--line); }
.rg-groupe > summary + .rg-ligne { border-top: 0; }
.rg-texte { display: grid; gap: 1px; min-width: 0; }
.rg-texte b { font-size: .88rem; font-weight: 600; line-height: 1.25; }
.rg-texte small { font-size: .74rem; color: var(--muted); overflow-wrap: anywhere; line-height: 1.3; }
.rg-saisie input, .rg-saisie select { width: 100%; min-height: 38px; padding: 5px 10px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; }
.rg-saisie input { text-align: right; font-variant-numeric: tabular-nums; }
.rg-saisie input:hover, .rg-saisie select:hover { border-color: var(--muted); }
.rg-saisie input:focus, .rg-saisie select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 55%, transparent); }
.rg-saisie [aria-invalid="true"] { border-color: var(--bad); }
.rg-ligne > .btn { min-height: 36px; font-size: 13px; }
@media (max-width: 959px) {
    .rg-ligne { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 12px; }
    .rg-texte { grid-column: 1 / -1; }
    .rg-saisie input, .rg-saisie select { min-height: 44px; }
    .rg-ligne > .btn { min-height: 44px; min-width: 104px; }
    .rg-actions { flex: 1 1 100%; } .rg-actions .btn { flex: 1 1 0; min-height: 44px; }
}

/* Rail : un module peut avoir un libellé plus court pour la barre du bas du téléphone (ex. « Guichet » pour « Opérations ») */
.rail-lb .lb-m { display: none; }
@media (max-width: 959px) {
    .rail-lb .lb-b--alt { display: none; } .rail-lb .lb-m { display: inline; }
    .rail-i { font-size: 10px; letter-spacing: 0; padding-left: 0; padding-right: 0; }
}
@media (max-width: 340px) { .rail-i { font-size: 9px; } }   /* très petits téléphones (320 px) : 42 px par module */

/* Un état vide ou une phrase dans une grille de chiffres occupe toute la largeur (pas une seule case) */
.grille-cc > .ev, .grille-cc > .rap-vide { grid-column: 1 / -1; }

/* Employés : une ligne compacte par agent (nom, états, une ligne d'information, « Gérer » qui déplie les actions) et par poste (boutons à droite). */
.ag-barre { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 4px; }
.ag-barre .bf { flex: 1 1 280px; min-width: 0; }
.ag-barre > .btn { flex: none; }
.ag-barre--note { justify-content: space-between; }
.ag-barre--note .dem-note { flex: 1 1 320px; margin: 0; }
.ag-ligne, .ag-plat { padding-top: 9px; padding-bottom: 9px; }
.ag-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; }
.ag-info .caisse-tete { margin: 0; flex: none; }
.ag-info .dem-note { margin: 0; flex: 1 1 auto; min-width: 0; }
.ag-info .alerte { flex: 1 1 100%; margin: 4px 0 0; }
.ag-plat { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.ag-plat > .ag-info { flex: 1 1 340px; }
.ag-plat > .dem-actions { flex: 0 1 auto; justify-content: flex-end; margin: 0; }
details.ag-ligne > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; cursor: pointer; list-style: none; border-radius: 10px; }
details.ag-ligne > summary::-webkit-details-marker { display: none; }
details.ag-ligne > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.ag-resume > .ag-info { flex: 1 1 auto; }
.ag-gerer { flex: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .86rem; color: var(--muted); }
.ag-gerer::after { content: ""; width: 7px; height: 7px; margin-bottom: 3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
details.ag-ligne[open] .ag-gerer::after { margin-bottom: -3px; transform: rotate(-135deg); }
details.ag-ligne:hover .ag-gerer { color: var(--ink); }
.ag-panneau { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.ag-panneau .dem-note { margin: 0; }
.ag-panneau .dem-actions { justify-content: flex-start; margin: 0; }
@media (max-width: 759px) { .ag-plat > .dem-actions { flex: 1 1 100%; justify-content: flex-start; } .ag-barre > .btn { flex: 1 1 100%; } }

/* Budget : exercice et état sur une rangée, une ligne par poste (libellé à gauche, montant et « Retirer » à droite), détail des mois replié */
.bud-tete { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 22px; }
.bud-tete > .rap-filtres { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.bud-tete > .rap-filtres > .fld { flex: 0 0 9rem; }
.bud-info { flex: 1 1 16rem; min-width: 0; }
.bud-info > p { margin: 0 0 2px; }
details.bud-ligne { border-bottom: 1px solid var(--line); }
details.bud-ligne:last-child { border-bottom: 0; }
details.bud-ligne > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px 14px; min-height: 40px; padding: 4px 2px; cursor: pointer; list-style: none; border-radius: 10px; }
details.bud-ligne > summary::-webkit-details-marker { display: none; }
details.bud-ligne > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bud-lib { min-width: 0; overflow-wrap: anywhere; }
.bud-mt { flex: none; display: inline-flex; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
details.bud-ligne[open] .ag-gerer::after { margin-bottom: -3px; transform: rotate(-135deg); }
details.bud-ligne:hover .ag-gerer { color: var(--ink); }
.bud-mois, .bud-mois-saisie { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 4px 16px; }
.bud-mois { grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); padding: 2px 2px 10px; font-size: .88rem; }   /* « septembre 2026 » + « 12 000 000 CDF » sur une ligne */
.bud-mois > div { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px dotted var(--line); white-space: nowrap; }
.bud-mois span { color: var(--muted); }
.bud-mois-saisie { padding-top: 8px; gap: 8px 12px; }
.bud-cmp > span:last-child { text-align: right; }
@media (max-width: 959px) {
    .bud-mois, .bud-mois-saisie { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bud-mois > div { flex-direction: column; justify-content: flex-start; gap: 0; }   /* téléphone : le mois au-dessus du montant */
    details.bud-ligne > summary { flex-wrap: wrap; }
    .bud-tete > .rap-filtres { flex: 1 1 100%; }
    .bud-tete > .rap-filtres > .fld { flex: 1 1 100%; }
    .bud-cmp { flex-direction: column; align-items: flex-start; gap: 2px; }          /* téléphone : le poste, puis ses chiffres en dessous */
    .bud-cmp > span:last-child { text-align: left; }
}

/* Dépenses : carte en deux rangées (numéro, catégorie, état et montant ; puis qui / quand / pourquoi avec « Ouvrir » à droite) */
.dep-tete { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 14px; }
.dep-tete .caisse-tete { margin: 0; min-width: 0; }
.dep-mt { flex: none; font-variant-numeric: tabular-nums; }
.dep-pied { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 14px; margin-top: 4px; }
.dep-info { min-width: 0; flex: 1 1 auto; }
.dep-info > p { margin: 0; }
.dep-pied > .dem-actions { flex: none; }
@media (max-width: 759px) { .dep-pied { flex-wrap: wrap; } .dep-pied > .dem-actions { flex: 1 1 100%; } }

/* Journal comptable : une ligne par devise, côte à côte quand la place le permet */
.jc-devises { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 2px 0 6px; }
.jc-devises > p { margin: 0; }
/* Exercice : le premier mois de l'exercice est un nombre de 1 à 12, pas un champ pleine largeur (bureau seulement ; sur téléphone un champ par ligne) */
@media (min-width: 960px) { [data-debut-exercice] .rap-filtres > .fld { flex: 0 0 16rem; } }

/* ---------- Formulaires d'enregistrement : deux colonnes au bureau, une seule sur téléphone ---------- */
.mf--large { width: min(940px, 100%); }
.fg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; align-items: start; }
.fg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }   /* Nom, post-nom, prénom sur une même ligne */
.fg[hidden], .fg > [hidden] { display: none; }
.fg .fld { margin: 0; }
.fg > h3 { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 6px 0 -2px; font-size: .92rem; font-weight: 700; color: var(--ink); }
.fg > h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fg > .note, .fg > .check, .fg > .fg, .fg > .fg-pleine, .fg > [role="alert"], .fg > .photo-bloc { grid-column: 1 / -1; }
.fg > .note { margin: 0; }
.fg > [role="alert"]:empty { display: none; }
@media (max-width: 759px) { .fg { grid-template-columns: minmax(0, 1fr); gap: 10px; } }

/* Champ obligatoire : l'étoile est dessinée par le style (le libellé reste intact pour les lecteurs d'écran, qui lisent « obligatoire » grâce à aria-required) */
.fld--req > label::after, .check--req .check-txt::after { content: " *"; color: var(--bad); font-weight: 700; }
.fld-aide { font-size: .76rem; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.fld--lecture input { background: var(--bg); color: var(--ink); cursor: default; }

/* Téléphone : indicatif du pays puis numéro */
.tel-ligne { display: grid; grid-template-columns: 7.6rem minmax(0, 1fr); gap: 8px; }
.fld .tel-ind { width: 100%; padding-left: 8px; padding-right: 4px; }

/* Photo du client : cercle d'aperçu, consigne, boutons ; avatar rond avec photo (fiche) */
.photo-bloc { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border: 1px dashed var(--line-fort, var(--line)); border-radius: 14px; background: var(--bg); }
.photo-apercu { width: 76px; height: 76px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); font-size: 1.5rem; font-weight: 700; }
.photo-apercu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-apercu--ok { border-color: var(--ok); }
.photo-texte { display: grid; gap: 3px; min-width: 0; }
.photo-texte > strong { font-size: .88rem; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.photo-actions .btn, .fc-photo .btn { min-height: 38px; padding: 4px 14px; width: auto; }
.av--xl { width: 88px; height: 88px; font-size: 1.7rem; }
.av--photo { background: var(--surface); padding: 0; overflow: hidden; border: 1px solid var(--line); }
.av--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fc-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 24px; align-items: start; }
.fc-photo { display: grid; justify-items: center; gap: 8px; }
@media (max-width: 759px) {
    .av--xl { width: 72px; height: 72px; font-size: 1.4rem; }
    .fc-id { grid-template-columns: minmax(0, 1fr); }
    .fc-photo { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 12px; }
    .photo-bloc { padding: 10px 12px; }
}

/* Cadrage de la photo (zoom et déplacement) */
.cadre { display: grid; gap: 10px; justify-items: center; margin-top: 12px; }
.cadre-toile { width: min(280px, 100%); height: auto; aspect-ratio: 1; border-radius: 12px; touch-action: none; cursor: grab; background: #fff; border: 1px solid var(--line); }
.cadre-toile:active { cursor: grabbing; }
.cadre-ligne { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 8px; align-items: center; width: 100%; font-size: .85rem; color: var(--muted); }
.cadre-ligne input[type=range] { width: 100%; min-height: 32px; }
.cadre-actions { justify-self: end; }
@media (max-width: 480px) { .cadre-ligne { grid-template-columns: 6.6rem minmax(0, 1fr); } }
.photo-action .photo-actions { margin: 0; }

/* Écriture : style « Century Gothic » (famille Avant Garde), hébergée par le serveur. Les caractères absents (flèches) passent à Inter. */
@font-face { font-family: "URW Gothic"; font-weight: 400 500; font-style: normal; font-display: swap; src: url("fonts/URWGothic-Book.woff") format("woff"); }
@font-face { font-family: "URW Gothic"; font-weight: 600 800; font-style: normal; font-display: swap; src: url("fonts/URWGothic-Demi.woff") format("woff"); }
:root { --police: "URW Gothic", "Century Gothic", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-display: var(--police); --police-chiffres: var(--police); }
/* La nouvelle écriture est plus large : le poste ou l'agence sous le nom (en haut à droite) ne doit plus être coupé par « … ». */
.moi-btn .mt b, .moi-btn .mt small { max-width: 240px; }

/* Menu du module réductible */
.pan-reduire { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 8px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .8rem; border-radius: 10px; cursor: pointer; }
.pan-reduire:hover { background: var(--survol); color: var(--ink); }
.pan-reduire .ic { width: 16px; height: 16px; transform: scaleX(-1); }
.barre-menu[hidden] { display: none; }
@media (max-width: 959px) { .barre-menu, .pan-reduire { display: none; } }

/* Bouton de langue */
.bar-langue { font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.cx-outils { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.cx-langue { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .82rem; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.cx-langue:hover { background: var(--survol, rgba(0,0,0,.05)); }
.cx-langue-on { color: var(--ink); font-weight: 700; }
@media (max-width: 480px) { .barre .cx-langue { padding: 6px 2px; font-size: .74rem; min-width: 28px; } }
@media (max-width: 480px) { .barre-actions .bar-langue { width: 30px; min-width: 30px; } .barre-actions .bar-ic, .barre-actions .bar-rech, .barre-actions .cloche-zone { min-width: 38px; } .barre-actions .bar-rech, .barre-actions .cloche-zone, .barre-actions .bar-ic:not(.bar-langue) { width: 38px; } }
@media (max-width: 480px) { .barre-actions .bar-ic.bar-langue { width: 28px; min-width: 28px; padding: 0; } .barre-titre { font-size: 14px; } }

/* Marque de l'institution (0.66.0) : la couleur secondaire prolonge la principale sur le panneau de connexion et souligne les chiffres clés ; logo de l'institution sur une plaque claire. */
.cx { --cx-jaune: var(--inst-jaune, #FFC500); }
.cx-marque { background: linear-gradient(135deg, var(--cx-jaune), var(--brand-2, var(--cx-jaune))); color: var(--inst-encre, #14130f); }
.cx-btn { color: var(--inst-encre, #14130f); }
.cx-plaque { display: inline-flex; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.cx-logo-inst { display: block; max-width: 220px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.cx-version { margin: 18px 0 0; text-align: center; font-size: .72rem; color: var(--cx-mute, #8a8a80); }
.pop-version { padding: 8px 12px 4px; font-size: .72rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; }
.kpi.hero { border-bottom: 3px solid var(--brand-2, var(--brand)); }
.cx-marque-in > div { min-width: 0; }
.cx-nom, .cx-sous { overflow-wrap: anywhere; }
@media (max-width: 759px) { .cx-plaque { flex: 0 1 46%; min-width: 0; padding: 8px 10px; } .cx-logo-inst { max-width: 100%; max-height: 48px; } }

/* Mode hors ligne : bandeau d'état du réseau et page « Hors ligne » (0.69.0) */
.hl-bandeau{position:sticky;top:0;z-index:70;display:flex;align-items:center;gap:10px;padding:8px 14px;font-size:.86rem;font-weight:600;border-bottom:1px solid var(--line);background:var(--wait-bg);color:var(--wait)}
.hl-bandeau.cache{display:none}
.hl-bandeau[data-ton="synchro"]{background:var(--ok-bg);color:var(--ok)}
.hl-bandeau[data-ton="ok"]{background:var(--ok-bg);color:var(--ok)}
.hl-bandeau[data-ton="refus"]{background:var(--bad-bg);color:var(--bad)}
.hl-point{flex:none;width:9px;height:9px;border-radius:50%;background:currentColor}
.hl-bandeau[data-ton="synchro"] .hl-point{animation:hl-pouls 1s ease-in-out infinite}
@keyframes hl-pouls{50%{opacity:.25}}
@media (prefers-reduced-motion:reduce){.hl-bandeau[data-ton="synchro"] .hl-point{animation:none}}
.hl-texte{flex:1;min-width:0}
.hl-lien{flex:none;background:transparent;border:1px solid currentColor;color:inherit;border-radius:999px;padding:3px 12px;font-weight:700;font-size:.8rem}
.hl-etat{display:grid;gap:6px}
.hl-ligne{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}

/* Bouton « Installer l'application » des applications Agent et Client (0.69.1) */
.cx-installer{display:flex;justify-content:center;margin-top:14px;text-align:center}
.cx-installer .cx-lien{font-weight:700;min-height:44px;padding:10px 16px}

/* Inscription en ligne des clients (0.69.2) */
.cx-saisie select{width:100%;min-height:58px;padding:12px 16px;font-size:1.2rem;border-radius:14px;border:2px solid var(--cx-trait);background:var(--cx-fond);color:var(--cx-encre)}
.cx-saisie select:focus{outline:4px solid var(--cx-jaune);outline-offset:0;border-color:var(--cx-encre)}
.cx-erreur .cx-saisie select{border-color:var(--cx-rouge);border-width:3px;background:var(--cx-rouge-fond)}
.cx-etape{margin:0 0 6px;font-size:.95rem;font-weight:800;color:var(--cx-doux);text-transform:uppercase;letter-spacing:.04em}
.cx-coche label{display:flex;gap:12px;align-items:flex-start;font-size:1.05rem;font-weight:600;cursor:pointer}
.cx-coche input[type=checkbox]{width:28px;height:28px;flex:none;margin-top:2px;accent-color:var(--cx-encre)}
.cx-recu{display:flex;flex-direction:column;gap:4px;align-items:center;text-align:center;margin:0 0 18px;padding:20px;border-radius:18px;background:var(--cx-carte);border:2px dashed var(--cx-encre)}
.cx-recu b{font-size:1.7rem;letter-spacing:.06em;word-break:break-all}
.cx-suivi{margin:18px 0 14px;padding:16px 18px;border-radius:16px;border:2px solid var(--cx-trait);background:var(--cx-carte)}
.cx-suivi b{display:block;font-size:1.2rem;margin:0 0 6px}
.cx-suivi p{margin:0;font-size:1.05rem}
.cx-suivi--ok{border-color:#1b7f4b}
.cx-suivi--stop{border-color:var(--cx-rouge)}
.cx-installer+.cx-version{margin-top:10px}

/* Accueil de l'espace client (0.69.4) : grand bandeau jaune, actions rapides, comptes en cartes, prochain paiement. */
.ec-hero--jaune { background: linear-gradient(160deg, #FFD21F 0%, #FFC500 60%, #F2B700 100%); color: #111; box-shadow: 0 6px 18px rgba(255,197,0,.28); }
.ec-hero--jaune .ec-hero__etiq { color: #3a3200; font-weight: 600; }
.ec-hero--jaune .ec-hero__montant { color: #111; font-size: 2.3rem; letter-spacing: -.01em; }
.ec-hero--jaune .ec-hero__note { color: #4a4000; }
.ec-hero__ligne { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ec-hero__masque { border: 0; border-radius: 999px; background: rgba(0,0,0,.12); color: #111; font: inherit; font-size: .82rem; font-weight: 600; padding: 8px 14px; min-height: 36px; cursor: pointer; }
.ec-hero__masque:focus-visible, .ec-chip:focus-visible, .ec-rapide:focus-visible, .ec-cc:focus-visible, .ec-prochain:focus-visible { outline: 3px solid #111; outline-offset: 2px; }
.ec-hero__devises { display: flex; gap: 8px; margin: 6px 0 4px; }
.ec-chip { border: 0; border-radius: 999px; background: rgba(0,0,0,.1); color: #111; font: inherit; font-size: .8rem; font-weight: 700; padding: 6px 14px; min-height: 34px; cursor: pointer; }
.ec-chip--actif { background: #111; color: #FFC500; }
.ec-rapides { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 4px; }
.ec-rapide { border: 0; background: transparent; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 6px; font: inherit; font-size: .74rem; font-weight: 600; text-align: center; padding: 4px 2px; cursor: pointer; }
.ec-rapide__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--brand-soft, #FFF3C4); color: var(--brand-text, #7a5c00); display: flex; align-items: center; justify-content: center; }
.ec-cartes { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.ec-cc { flex: 0 0 78%; max-width: 300px; scroll-snap-align: start; border: 0; border-radius: 20px; padding: 16px 18px; min-height: 150px; display: flex; flex-direction: column; gap: 4px; text-align: left; font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.ec-cc--jaune { background: #FFC500; color: #111; }
.ec-cc--noir { background: #14130f; color: #fff; }
.ec-cc__haut { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ec-cc__dev { font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: rgba(255,255,255,.18); }
.ec-cc--jaune .ec-cc__dev { background: rgba(0,0,0,.12); }
.ec-cc__num { font-size: .8rem; opacity: .75; }
.ec-cc__solde { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; margin-top: auto; word-break: break-word; }
.ec-cc small { opacity: .8; }
.ec-prochain { width: 100%; text-align: left; border: 1px solid var(--line); border-left: 6px solid #FFC500; background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; margin: 14px 0 4px; display: flex; flex-direction: column; gap: 2px; font: inherit; cursor: pointer; box-shadow: var(--shadow); }
.ec-prochain--alerte { border-left-color: var(--bad, #c62828); }
.ec-prochain__t { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ec-prochain b { font-family: var(--font-display); font-size: 1.5rem; }
.ec-prochain small { color: var(--muted); }
.ec-prochain__go { color: var(--brand-text, #7a5c00); font-weight: 700; font-size: .85rem; margin-top: 4px; }
@media (min-width: 720px) { .ec-cc { flex-basis: 280px; } }

/* 0.69.5 : prochaine tranche (couleur selon l'urgence) et simulateur du client */
.ec-prochain--bientot { border-left-color: #E67E00; background: #FFF8EC; }
.ec-prochain--retard { border-left-color: var(--bad, #c62828); background: #FDEEEE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ec-prochain--bientot { background: #2a2113; } :root:not([data-theme="light"]) .ec-prochain--retard { background: #2c1717; } }
:root[data-theme="dark"] .ec-prochain--bientot { background: #2a2113; } :root[data-theme="dark"] .ec-prochain--retard { background: #2c1717; }
.ec-prochain__d { font-weight: 700; font-size: .92rem; }
.ec-prochain--retard .ec-prochain__d { color: var(--bad, #c62828); }
.ec-sim { gap: 10px; }
.ec-sim__carte { background: #14130f; color: #fff; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ec-sim__total { font-family: var(--font-display); font-size: 1.7rem; color: #FFC500; }
.ec-sim__faits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 8px 0; }
.ec-sim__faits dt { font-size: .74rem; color: #BDBDB5; } .ec-sim__faits dd { margin: 0; font-weight: 700; font-size: .92rem; }
.ec-sim__titre { font-size: .95rem; margin: 6px 0 0; }
.ec-sim__tranches { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.ec-sim__tranches li { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 6px 2px; }

/* 0.69.6 — simulateur de crédit en écran dédié */
.ec-sim-ecran { display: flex; flex-direction: column; gap: 12px; }
.ec-seg { display: grid; grid-template-columns: 1fr 1fr; background: #F1F0EA; border-radius: 12px; padding: 3px; }
.ec-seg__b { border: 0; background: transparent; border-radius: 10px; padding: 10px; font-weight: 700; color: #6b6a62; cursor: pointer; min-height: 44px; }
.ec-seg__b[aria-pressed="true"] { background: #fff; color: #14130f; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.ec-sim__aide { color: #6b6a62; font-size: .78rem; margin-top: -6px; }
.ec-sim__res { display: flex; flex-direction: column; gap: 12px; }
.ec-sim__res:empty { display: none; }
.ec-sim__jaune { background: #FFC500; color: #14130f; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.ec-sim__jaune .ec-sim__total { color: #14130f; }
.ec-sim__gris { background: #F1F0EA; border-radius: 16px; padding: 10px 16px; display: flex; flex-direction: column; }
.ec-sim__l { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(0,0,0,.07); font-size: .9rem; }
.ec-sim__l:last-child { border-bottom: 0; }
.ec-sim__l--fort { font-weight: 800; }
.ec-sim__tranches li { align-items: center; gap: 10px; } .ec-sim__tranches li small { display: block; color: #6b6a62; font-size: .74rem; font-weight: 400; }
.ec-sim__tranches { max-height: none; }
.ec-sim__demander { background: #FFC500; color: #14130f; width: 100%; }
/* Carte « Ma fidélité » (0.71.1) */
.ec-fid { border: 1px solid var(--line); border-left: 6px solid var(--line-fort, #999); background: var(--surface); color: var(--ink); border-radius: 16px; padding: 14px 16px; margin: 14px 0 4px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.ec-fid--or { border-left-color: #D4A200; }
.ec-fid--argent { border-left-color: #8C939D; }
.ec-fid--bronze { border-left-color: #B0712F; }
.ec-fid--route { border-left-color: var(--ok); }
.ec-fid__haut { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ec-fid__t { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ec-fid__niveau { font-family: var(--font-display); font-size: 1.35rem; }
.ec-fid__sous, .ec-fid__pied { color: var(--muted); }
.ec-fid__conseils { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.ec-fid__compte { display: flex; flex-direction: column; gap: 2px; border-radius: 10px; padding: 8px 10px; background: var(--bg); font-size: .9rem; }
.ec-fid__compte--ok { background: var(--ok-bg); color: var(--ok); }
.ec-fid__compte--ok b { color: inherit; }

/* 0.70.0 — LIKELEMBA : tableau de bord et raccourcis */
.dem-liste { display: grid; gap: 10px; margin: 0; }
.dem-liste > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 8px; border-bottom: 1px solid var(--trait); }
.dem-liste > div:last-child { border-bottom: 0; padding-bottom: 0; }
.dem-liste dt { color: var(--encre-3); font-size: 13px; margin: 0; }
.dem-liste dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.dem-raccourcis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.dem-raccourci { display: grid; gap: 2px; text-align: left; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 14px 16px; cursor: pointer; min-height: 56px; font: inherit; color: inherit; }
.dem-raccourci:hover, .dem-raccourci:focus-visible { border-color: var(--focus, currentColor); }
.dem-raccourci small { color: var(--encre-3); }
