:root{--navy:#10281f;--accent:#176a2f;--sidebar-color:#10281f;--page-bg:#f6f5ef;--cream:#f6f5ef;--ink:#1d2a24;--muted:#728078;--line:#dfe6e1;--white:#fff;--blue:#3c6f91;--amber:#b47a1f;--red:#b9433d;--shadow:0 8px 30px rgba(16,40,31,.07)}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;background:var(--page-bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;line-height:1.45}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button,a{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 40%,transparent);outline-offset:2px}
.app-shell{min-height:100vh;display:flex}
.sidebar{position:fixed;inset:0 auto 0 0;width:268px;background:linear-gradient(180deg,var(--sidebar-color),color-mix(in srgb,var(--sidebar-color) 72%,#000));color:#fff;padding:27px 18px 18px;display:flex;flex-direction:column;z-index:50;overflow:auto}
.brand{display:flex;align-items:center;gap:11px;font-size:23px;font-weight:800;padding:0 10px 25px;letter-spacing:-.5px}
.brand-mark{width:36px;height:36px;flex:0 0 36px;border-radius:11px;display:inline-grid;place-items:center;color:#fff;background:var(--accent);font-size:17px;font-weight:800;box-shadow:0 5px 15px rgba(0,0,0,.25)}
.workspace-label{font-size:11px;letter-spacing:1.5px;color:#8da096;margin:0 11px 11px;font-weight:800}
.sidebar nav{display:flex;flex-direction:column;gap:3px}
.sidebar nav a{min-height:46px;display:flex;align-items:center;gap:12px;color:#b5c1bb;border-radius:11px;padding:0 12px;font-size:14px;font-weight:500;transition:.18s}
.sidebar nav a>span{width:22px;text-align:center;font-size:19px}
.sidebar nav a:hover{background:rgba(255,255,255,.06);color:#fff}
.sidebar nav a.active{background:#fff;color:#153326;box-shadow:0 7px 20px rgba(0,0,0,.18)}
.sidebar nav b{margin-left:auto;background:#2e7045;color:#d3f1db;border-radius:11px;padding:3px 7px;font-size:11px}
.sidebar-help{margin-top:auto;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.05);border-radius:13px;padding:11px 12px;display:flex;gap:10px;align-items:center}
.sidebar-help>span{border:1px solid #587066;width:31px;height:31px;border-radius:50%;display:grid;place-items:center}
.sidebar-help div,.user-card div,.header-profile div{display:flex;flex-direction:column}
.sidebar-help strong,.user-card strong{font-size:13px}.sidebar-help small,.user-card small{color:#98aaa1;font-size:12px;margin-top:2px}
.user-card{display:flex;align-items:center;gap:10px;margin-top:10px;padding:9px 5px;border:0;background:transparent;color:#fff;text-align:left}
.user-card>span,.header-profile>span{width:37px;height:37px;display:grid;place-items:center;background:#dceee1;color:var(--accent);border-radius:10px;font-size:12px;font-weight:800}
.user-card button{margin-left:auto;width:42px;height:42px;border:0;background:transparent;color:#91a49a;font-size:18px;cursor:pointer}
.content{margin-left:268px;width:calc(100% - 268px);min-height:100vh}
.topbar{height:74px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;padding:0 34px;position:sticky;top:0;z-index:30}
.top-actions{display:flex;align-items:center;gap:8px}
.header-icon{width:44px;height:44px;border:1px solid var(--line);border-radius:11px;display:grid;place-items:center;background:#fff;color:#536159;font-size:20px;position:relative}
.notification span{position:absolute;right:-4px;top:-5px;background:#df6a59;color:#fff;min-width:19px;height:19px;padding:0 4px;font-size:11px;display:grid;place-items:center;border-radius:10px;border:2px solid #fff}
.header-profile{display:flex;align-items:center;gap:10px;padding-left:9px;min-width:150px}.header-profile strong{font-size:13px}.header-profile small{font-size:12px;color:var(--muted)}
.mobile-brand,.menu-toggle{display:none}
.page{padding:60px 36px 60px;max-width:1640px;margin:0 auto}
.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:24px}
.page-heading .eyebrow{font-size:12px;letter-spacing:1.5px;font-weight:800;color:#779083;margin:0 0 7px}.page-heading h1{font-size:30px;letter-spacing:-.7px;margin:0 0 4px;line-height:1.2}.page-heading .subtitle{font-size:15px;color:var(--muted);margin:0;font-weight:400}.heading-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.primary,.secondary,.danger-button,.ghost-button{min-height:44px;border-radius:10px;padding:0 17px;font-weight:700;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer}
.primary{border:1px solid var(--accent);background:var(--accent);color:#fff;box-shadow:0 5px 14px color-mix(in srgb,var(--accent) 20%,transparent)}
.secondary{border:1px solid var(--accent);background:#fff;color:var(--accent)}
.ghost-button{border:1px solid var(--line);background:#fff;color:#56645d}.danger-button{border:1px solid var(--red);background:var(--red);color:#fff}
.primary:disabled,.secondary:disabled,.danger-button:disabled{opacity:.48;cursor:not-allowed}
.panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}
.flash{min-height:52px;margin-bottom:17px;border-radius:12px;padding:11px 14px;display:flex;align-items:flex-start;gap:11px;font-size:14px}.flash>span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;flex:0 0 28px;font-weight:800}.flash button{margin-left:auto;border:0;background:transparent;font-size:22px;color:inherit;cursor:pointer}.flash ul{margin:5px 0 0;padding-left:18px}.flash.success{background:#e9f5ec;border:1px solid #c9e2cf;color:#176a2f}.flash.success>span{background:#d5ebda}.flash.error{background:#fff0ee;border:1px solid #edcac6;color:#9c3833}.flash.error>span{background:#f6d9d6}
.attention{background:#fff9e9;border:1px solid #efdca5;border-radius:13px;display:flex;align-items:center;padding:14px 16px;margin-bottom:17px;gap:12px}.attention-icon{width:32px;height:32px;border-radius:9px;background:#f1c85d;color:#6e5517;display:grid;place-items:center;font-weight:800}.attention strong{font-size:14px}.attention p{font-size:13px;color:#806f46;margin:2px 0 0}.attention a{margin-left:auto;color:#765d1a;font-weight:700;font-size:13px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px}.metric{padding:18px;min-height:111px;display:flex;align-items:center;gap:13px}.metric-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:11px;font-weight:800;font-size:18px}.metric-icon.green{background:#e7f3ea;color:var(--accent)}.metric-icon.blue{background:#e8f0f5;color:var(--blue)}.metric-icon.amber{background:#f8f0df;color:var(--amber)}.metric-icon.red{background:#f8e8e7;color:var(--red)}.metric>div{display:flex;flex-direction:column;min-width:0}.metric p{font-size:13px;color:var(--muted);margin:0 0 5px}.metric strong{font-size:24px;letter-spacing:-.5px;white-space:nowrap}.metric small{font-size:12px;color:var(--muted);margin-top:3px}
.dashboard-grid{display:grid;grid-template-columns:1.45fr .75fr;gap:17px;margin-bottom:17px}.panel-pad{padding:21px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.panel-head h2,.panel-head h3{font-size:18px;margin:0 0 4px}.panel-head p{font-size:13px;color:var(--muted);margin:0}.text-link{font-size:13px;color:var(--accent);font-weight:700}
.chart-summary{margin:21px 0 9px;display:flex;align-items:baseline;gap:9px}.chart-summary strong{font-size:23px}.chart-summary span{font-size:12px;color:var(--accent);background:#e9f4ec;padding:4px 8px;border-radius:11px}.chart{height:170px;position:relative;border-bottom:1px solid var(--line);display:flex;align-items:flex-end;justify-content:space-around;padding:0 13px 24px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 41px,#edf1ee 42px)}.bar{height:var(--height);width:42px;max-width:13%;border-radius:8px 8px 2px 2px;background:linear-gradient(180deg,#72b383,var(--accent));position:relative}.bar span{position:absolute;top:calc(100% + 7px);left:50%;transform:translateX(-50%);font-size:12px;color:var(--muted)}
.cycle-list{display:flex;flex-direction:column;gap:10px;margin-top:22px}.cycle-row{display:grid;grid-template-columns:110px 1fr 28px;align-items:center;gap:10px;font-size:13px}.cycle-row i{height:10px;border-radius:7px;background:#eef2ef;overflow:hidden}.cycle-row i b{display:block;height:100%;background:var(--accent);border-radius:7px}.cycle-row strong{text-align:right}
.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse}.data-table th{padding:13px 15px;background:#fafbf9;border-bottom:1px solid var(--line);text-align:left;color:#87938c;font-size:12px;white-space:nowrap}.data-table td{padding:14px 15px;border-bottom:1px solid #edf0ee;font-size:13px;vertical-align:middle}.data-table tr:last-child td{border-bottom:0}.data-table strong{font-size:14px}.data-table small{display:block;color:var(--muted);font-size:12px;margin-top:3px}.table-actions{display:flex;justify-content:flex-end;gap:5px}.icon-button{width:44px;height:44px;border:1px solid var(--line);background:#fff;border-radius:10px;display:grid;place-items:center;color:#56645d;cursor:pointer}.download-button{color:var(--accent)}
.status{display:inline-flex;align-items:center;justify-content:center;width:max-content;font-size:12px;font-weight:700;padding:6px 10px;border-radius:14px;background:#edf1ee;color:#617068;white-space:nowrap}.status-actif,.status-payee{background:#e7f3ea;color:#176a2f}.status-en-attente,.status-a-payer,.status-programmee{background:#faf1df;color:#996a20}.status-en-retard{background:#f8e8e7;color:#b44742}.status-suspendu,.status-annule,.status-inactif{background:#edf0ee;color:#68736d}
.filters{min-height:68px;padding:12px 16px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:9px;flex-wrap:wrap}.search{height:44px;min-width:260px;border:1px solid var(--line);border-radius:10px;background:#fbfcfb;display:flex;align-items:center;padding:0 12px}.search span{font-size:18px;color:#819088}.search input{border:0;background:transparent;outline:0;flex:1;padding-left:8px;font-size:14px;min-width:0}.filter-tabs{display:flex;gap:4px;flex-wrap:wrap}.filter-tabs a{min-height:39px;padding:0 12px;border-radius:9px;display:flex;align-items:center;color:#6e7c74;font-size:13px;font-weight:650}.filter-tabs a.active{background:#e8f2ea;color:var(--accent)}.filters select{height:44px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:0 34px 0 12px;color:#56645d;font-size:14px}.pagination-wrap{padding:13px 16px;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:13px}.pagination{display:flex;gap:5px}.pagination a,.pagination span{min-width:34px;height:34px;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;background:#fff}.pagination .current{background:var(--accent);border-color:var(--accent);color:#fff}
.identity{display:flex;align-items:center;gap:10px}.avatar{width:38px;height:38px;flex:0 0 38px;border-radius:11px;display:grid;place-items:center;font-size:12px;font-weight:800}.avatar.sage{background:#e7f2e9;color:#176a2f}.avatar.blue{background:#e8f0f5;color:#3c6f91}.avatar.sand{background:#f5ecdd;color:#94672e}.avatar.rose{background:#f6e9e7;color:#a85b54}.avatar.violet{background:#eee9f5;color:#715a96}.avatar.amber{background:#f8efd9;color:#9e6c1e}
.mini-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:17px}.mini-kpis.four{grid-template-columns:repeat(4,minmax(0,1fr))}.mini-kpi{padding:17px 18px;display:flex;align-items:center;gap:13px;min-height:92px}.mini-kpi>i{width:5px;height:51px;border-radius:5px;background:var(--accent)}.mini-kpi>i.blue{background:var(--blue)}.mini-kpi>i.amber{background:#c89940}.mini-kpi>i.red{background:var(--red)}.mini-kpi div{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:12px}.mini-kpi span{font-size:13px;color:var(--muted);grid-column:1}.mini-kpi strong{font-size:24px;grid-column:1;margin-top:3px}.mini-kpi small{font-size:12px;color:#718078;grid-column:2;grid-row:2}
.catalog-summary{display:grid;grid-template-columns:repeat(3,1fr);margin-bottom:17px}.catalog-summary>div{padding:16px 18px;display:flex;align-items:center;gap:12px;border-right:1px solid var(--line)}.catalog-summary>div:last-child{border:0}.catalog-summary>div>span{width:38px;height:38px;border-radius:11px;background:#eaf3ec;color:var(--accent);display:grid;place-items:center;font-weight:800}.catalog-summary p{display:flex;flex-direction:column;margin:0}.catalog-summary strong{font-size:15px}.catalog-summary small{font-size:12px;color:var(--muted);margin-top:2px}.category-filters{display:flex;gap:8px;margin-bottom:17px;overflow:auto;padding:2px}.category-filters a{min-height:40px;border:1px solid var(--line);background:#fff;border-radius:22px;padding:0 13px;display:flex;align-items:center;font-size:13px;font-weight:650;white-space:nowrap}.category-filters a.active{background:#eaf4ec;border-color:var(--accent);color:var(--accent)}
.service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.service-card{padding:20px;min-height:330px;display:flex;flex-direction:column}.service-top{display:flex;align-items:flex-start;justify-content:space-between}.service-icon{width:43px;height:43px;border-radius:12px;display:grid;place-items:center;background:#e7f3ea;color:var(--accent);font-weight:800}.service-card .category{font-size:12px;color:#829088;font-weight:800;letter-spacing:.8px;text-transform:uppercase;margin-top:16px}.service-card h2{font-size:19px;margin:8px 0 5px}.service-card>p{font-size:14px;color:var(--muted);margin:0}.service-price{display:flex;align-items:baseline;gap:8px;margin:20px 0}.service-price strong{font-size:25px}.service-price span{font-size:12px;color:var(--muted)}.service-stats{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:auto}.service-stats p{padding:13px 0;margin:0;display:flex;flex-direction:column}.service-stats p+p{padding-left:18px;border-left:1px solid var(--line)}.service-stats span{font-size:12px;color:var(--muted)}.service-stats strong{font-size:14px;margin-top:3px}.card-footer{display:flex;justify-content:space-between;align-items:center;padding-top:13px}.card-footer button{border:0;background:transparent;color:var(--accent);font-size:13px;font-weight:750;cursor:pointer}
.financial-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:17px}.financial-card{padding:20px;min-height:121px;display:flex;flex-direction:column}.financial-card.featured{background:#123d24;color:#fff;border-color:#123d24}.financial-card.warning strong{color:#9f3f39}.financial-card>span{font-size:12px;font-weight:800;color:#799083;letter-spacing:.7px}.financial-card>strong{font-size:26px;margin:10px 0 2px}.financial-card>p{font-size:12px;color:var(--muted);margin:0}.featured>span,.featured>p{color:#81b68e}
.renewal-overview{display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:17px}.renewal-overview article{padding:17px 19px;background:#fff;border:1px solid var(--line);border-right:0}.renewal-overview article:first-child{border-radius:15px 0 0 15px}.renewal-overview article:last-child{border-right:1px solid var(--line);border-radius:0 15px 15px 0}.renewal-overview span{display:block;color:var(--muted);font-size:12px;font-weight:750}.renewal-overview strong{font-size:25px;display:block;margin:5px 0 0}.renewal-overview small{font-size:12px;color:var(--muted)}.renewal-grid{display:grid;grid-template-columns:1.5fr .65fr;gap:17px}.renewal-group{margin-bottom:15px;overflow:hidden}.renewal-group h2{font-size:15px;margin:0;padding:14px 17px;background:#f8faf8;border-bottom:1px solid var(--line)}.renewal-item{display:grid;grid-template-columns:48px 1fr auto;align-items:center;gap:12px;padding:13px 17px;border-bottom:1px solid var(--line)}.renewal-item:last-child{border:0}.renewal-date{width:45px;height:48px;border-radius:11px;background:#edf4ef;display:grid;place-items:center;align-content:center}.renewal-date strong{font-size:16px}.renewal-date span{font-size:11px;color:var(--muted);text-transform:uppercase}.renewal-main{display:flex;flex-direction:column}.renewal-main strong{font-size:14px}.renewal-main span{font-size:12px;color:var(--muted);margin-top:3px}.renewal-amount{text-align:right}.renewal-amount strong{display:block;font-size:14px;margin-bottom:4px}.automation-card{padding:22px;height:max-content}.automation-icon{width:46px;height:46px;border-radius:14px;background:#e7f3ea;color:var(--accent);display:grid;place-items:center;font-size:21px}.automation-card h2{font-size:18px;margin:16px 0 5px}.automation-card>p{font-size:13px;color:var(--muted)}.automation-step{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.automation-step>span{width:34px;height:34px;border-radius:10px;background:#f0f4f1;display:grid;place-items:center;font-weight:800}.automation-step div{display:flex;flex-direction:column}.automation-step strong{font-size:13px}.automation-step small{font-size:12px;color:var(--muted)}
.report-grid{display:grid;grid-template-columns:1.4fr .75fr;gap:17px}.report-panel{padding:22px}.report-panel h2{font-size:18px;margin:0}.report-panel>p{font-size:13px;color:var(--muted);margin:5px 0 20px}.report-bars{display:flex;flex-direction:column;gap:17px}.report-bars>div>span{display:flex;justify-content:space-between;margin-bottom:7px;font-size:13px}.report-bars i{display:block;height:11px;background:#edf2ee;border-radius:7px;overflow:hidden}.report-bars i b{display:block;height:100%;background:linear-gradient(90deg,var(--accent),#64a276);border-radius:7px}.report-list p{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:13px 0;margin:0}.report-list p:last-child{border:0}.report-list strong{font-size:18px}
.communication-list article{display:flex;align-items:center;gap:13px;padding:14px 18px;border-bottom:1px solid var(--line)}.communication-list article:last-child{border:0}.communication-list article>div:nth-child(2){display:flex;flex-direction:column;flex:1}.communication-list strong{font-size:14px}.communication-list small{font-size:12px;color:var(--muted);margin-top:3px}
.settings-grid{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.15fr);gap:17px}.settings-panel{padding:22px}.settings-panel h2{font-size:18px;margin:0}.settings-panel>p{font-size:13px;color:var(--muted);margin:5px 0 19px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.field{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;margin-bottom:14px}.field input,.field select,.field textarea{width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;background:#fbfcfb;padding:10px 12px;color:var(--ink);outline:0;font-size:14px}.field textarea{min-height:105px;resize:vertical}.field small{color:var(--muted);font-size:12px;font-weight:400}.check-line{display:flex;align-items:center;gap:9px;font-size:13px;margin:10px 0}.check-line input{width:20px;height:20px;accent-color:var(--accent)}.form-note{font-size:12px;color:var(--muted);line-height:1.55;background:#f4f8f5;border-radius:10px;padding:11px 12px;margin:10px 0 15px}.price-note{border-left:4px solid var(--accent);color:#405148}.preview-card{padding:22px}.browser{border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#f2f5f1}.browser-bar{height:34px;background:#e9eeea;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:6px;padding:0 11px}.browser-bar i{width:8px;height:8px;border-radius:50%;background:#bec9c1}.browser-bar span{margin:auto;background:#fff;border-radius:7px;padding:4px 30px;font-size:10px;color:var(--muted)}.login-preview{min-height:430px;padding:52px 25%;background:linear-gradient(145deg,#f6f8f3 0 60%,#e6eee7 60%);display:flex;flex-direction:column}.login-preview h3{text-align:center;font-size:21px;margin:25px 0 5px}.login-preview p{text-align:center;font-size:13px;color:var(--muted)}.preview-brand{text-align:center;font-size:19px;font-weight:800}.preview-brand span{width:31px;height:31px;display:inline-grid;place-items:center;background:var(--accent);color:#fff;border-radius:9px;margin-right:6px}.login-preview input{width:100%;height:45px;border:1px solid var(--line);border-radius:9px;background:#fff;margin-top:10px;padding:0 12px}.login-preview button{height:45px;border:0;border-radius:9px;background:var(--accent);color:#fff;font-weight:700;margin-top:14px}
.empty{padding:42px 20px;text-align:center;color:var(--muted);font-size:14px}.empty strong{display:block;color:var(--ink);font-size:16px;margin-bottom:5px}
dialog{border:0;padding:0;background:transparent;max-width:none;width:100%;height:100%;margin:0;overflow:auto}dialog::backdrop{background:rgba(5,20,12,.58);backdrop-filter:blur(2px)}.modal{width:min(620px,calc(100% - 28px));margin:7vh auto;background:#fff;border-radius:17px;box-shadow:0 28px 80px rgba(5,20,12,.38);padding:22px}.modal.wide{width:min(790px,calc(100% - 28px))}.modal-head{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:16px}.modal-head h2{font-size:22px;margin:0}.modal-head p{font-size:13px;color:var(--muted);margin:3px 0 0}.modal-close{width:44px;height:44px;border:0;background:#f0f3f1;border-radius:11px;font-size:20px;color:#637168;cursor:pointer}.modal-footer{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);padding-top:16px;margin-top:17px}.detail-summary{background:#f5f8f5;border-radius:12px;padding:9px 14px;margin-bottom:15px}.detail-summary p{display:flex;justify-content:space-between;gap:20px;margin:10px 0;font-size:13px}.detail-summary span{color:var(--muted)}.danger-zone{border:1px solid #efd2ce;background:#fff8f7;border-radius:11px;padding:14px;margin-top:17px}.danger-zone strong{font-size:14px;color:#8d342f}.danger-zone p{font-size:12px;color:#8c6865}.danger-zone form{display:flex;justify-content:flex-end}.pricing-preview{border:1px solid #cfe1d3;background:#f3f8f4;border-radius:11px;padding:6px 13px;margin:12px 0}.pricing-preview p{display:flex;justify-content:space-between;margin:9px 0;font-size:13px}.pricing-preview p+p{border-top:1px solid #dfe9e1;padding-top:9px}.pricing-preview span{color:var(--muted)}
.auth-shell{min-height:100vh;background:linear-gradient(145deg,var(--page-bg) 0 58%,color-mix(in srgb,var(--page-bg) 84%,var(--accent)) 58%);display:grid;place-items:center;padding:24px}.auth-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 25px 70px rgba(16,40,31,.16);padding:30px}.auth-brand{display:flex;align-items:center;justify-content:center;gap:9px;font-size:23px;font-weight:800;margin-bottom:25px}.auth-card h1{text-align:center;font-size:27px;margin:0 0 6px}.auth-card>p{text-align:center;color:var(--muted);font-size:14px;margin:0 0 23px}.auth-card .primary{width:100%;margin-top:9px}.auth-footer{text-align:center!important;font-size:12px!important;color:#919c96!important;margin:22px 0 0!important}.requirements{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:20px}.requirement{display:flex;align-items:center;gap:8px;background:#f5f8f5;border-radius:9px;padding:9px;font-size:12px}.requirement i{font-style:normal;width:22px;height:22px;border-radius:50%;display:grid;place-items:center}.requirement.ok i{background:#dcefe1;color:var(--accent)}.requirement.bad{background:#fff0ee;color:#983a35}.requirement.bad i{background:#f4d5d2}.installer-card{width:min(780px,100%)}.installer-card section{border-top:1px solid var(--line);padding-top:18px;margin-top:18px}.installer-card section h2{font-size:17px;margin:0 0 14px}
.sidebar-overlay{display:none}
@media(max-width:1150px){.metrics,.mini-kpis.four{grid-template-columns:1fr 1fr}.dashboard-grid,.settings-grid,.renewal-grid,.report-grid{grid-template-columns:1fr}.login-preview{padding-left:30%;padding-right:30%}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:.25s;width:278px}.sidebar.open{transform:translateX(0)}.menu-open .sidebar-overlay{display:block;position:fixed;inset:0;border:0;background:rgba(5,20,12,.6);z-index:45}.content{margin-left:0;width:100%}.topbar{height:66px;padding:0 16px;justify-content:space-between}.menu-toggle{display:block;width:44px;height:44px;border:0;background:transparent;font-size:22px;color:#294036}.mobile-brand{display:flex;align-items:center;font-weight:800;font-size:17px}.mobile-brand .brand-mark{width:29px;height:29px;flex-basis:29px;font-size:13px;margin-right:6px}.header-profile div{display:none}.header-profile{min-width:40px;padding:0}.page{padding:24px 16px 45px}.service-grid{grid-template-columns:1fr}.catalog-summary{grid-template-columns:1fr}.catalog-summary>div{border-right:0;border-bottom:1px solid var(--line)}.catalog-summary>div:last-child{border:0}.financial-cards{grid-template-columns:1fr}.renewal-overview{grid-template-columns:1fr 1fr}.renewal-overview article,.renewal-overview article:first-child,.renewal-overview article:last-child{border:1px solid var(--line);border-radius:0}.renewal-overview article:first-child{border-radius:14px 0 0 0}.renewal-overview article:nth-child(2){border-radius:0 14px 0 0}.renewal-overview article:nth-child(3){border-radius:0 0 0 14px}.renewal-overview article:last-child{border-radius:0 0 14px 0}.data-table{min-width:760px}.table-wrap{max-width:100%}}
@media(max-width:580px){.page-heading{display:block}.page-heading h1{font-size:26px}.page-heading .subtitle{font-size:14px}.heading-actions{display:grid;margin-top:17px}.metrics,.mini-kpis,.mini-kpis.four{grid-template-columns:1fr}.metric{min-height:94px}.filters{align-items:stretch}.search{min-width:100%;width:100%}.filter-tabs{width:100%;overflow:auto;flex-wrap:nowrap}.catalog-summary{display:block}.form-grid{grid-template-columns:1fr}.service-card{min-height:310px}.renewal-overview{grid-template-columns:1fr}.renewal-overview article,.renewal-overview article:first-child,.renewal-overview article:nth-child(2),.renewal-overview article:nth-child(3),.renewal-overview article:last-child{border-radius:0}.renewal-overview article:first-child{border-radius:14px 14px 0 0}.renewal-overview article:last-child{border-radius:0 0 14px 14px}.renewal-item{grid-template-columns:45px 1fr}.renewal-amount{grid-column:2;text-align:left}.login-preview{padding:38px 13%}.communication-list article{align-items:flex-start;flex-wrap:wrap}.communication-list article>div:nth-child(2){min-width:calc(100% - 55px)}.communication-list article .secondary{width:100%}.modal{margin:2vh auto;padding:17px}.modal-footer{flex-direction:column-reverse}.modal-footer button,.modal-footer a{width:100%}.requirements{grid-template-columns:1fr}.auth-card{padding:22px}.pagination-wrap{align-items:flex-start;gap:12px;flex-direction:column}.danger-zone form{display:block}.danger-zone button{width:100%}}

/* ===== Gestion Client v1.0.3 — dates, import, notes, suivis et tâches ===== */
.client-table{min-width:1180px}.subscription-detail{display:grid;grid-template-columns:1.35fr 1fr 1.25fr .8fr;gap:12px;background:#f5f8f5;border-radius:12px;padding:14px;margin:10px 0 15px}.subscription-detail>div{display:flex;flex-direction:column;gap:4px}.subscription-detail span,.subscription-detail small{color:var(--muted);font-size:12px}.notes-card{background:#f5f8f5;border-radius:12px;padding:14px;margin-bottom:18px}.notes-card textarea{width:100%;min-height:120px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:12px;resize:vertical;color:var(--ink)}.notes-card>div{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}.notes-card small{color:var(--muted)}.activity-mini-list{border:1px solid var(--line);border-radius:12px;overflow:hidden}.activity-mini-list article{display:flex;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}.activity-mini-list article:last-child{border:0}.activity-mini-list article>div{display:flex;flex-direction:column;gap:3px}.activity-mini-list small{color:var(--muted)}.empty.compact{padding:18px}
.import-panel{padding:24px;margin-bottom:17px}.import-panel h2{margin-top:0}.upload-box{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:2px dashed #b8c8bb;background:#f7faf7;border-radius:14px;padding:35px;text-align:center;cursor:pointer}.upload-box span{color:var(--muted);font-size:13px}.upload-box input{margin-top:12px}.import-fields{display:flex;flex-wrap:wrap;gap:9px}.import-fields span{background:#eef4ef;border-radius:20px;padding:7px 11px;font-size:12px}.mapping-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.import-preview{min-width:1000px;font-size:12px}
.activity-list article{display:grid;grid-template-columns:44px 1fr auto;gap:14px;align-items:start;padding:16px 18px;border-bottom:1px solid var(--line)}.activity-list article:last-child{border:0}.activity-icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:#edf4ee;color:var(--accent);font-weight:800}.activity-main>div{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.activity-main>div span{color:var(--accent);font-size:12px}.activity-main p{margin:6px 0;color:#4e5d54;font-size:13px}.activity-main small{color:var(--muted);font-size:12px}
.task-list{display:flex;flex-direction:column}.task-row{display:grid;grid-template-columns:24px minmax(220px,1fr) 150px minmax(380px,auto) 44px;gap:12px;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)}.task-row:last-child{border:0}.task-main{display:flex;flex-direction:column}.task-main small{color:var(--muted);font-size:12px;margin-top:3px}.task-main p{font-size:12px;color:#526158;margin:5px 0 0}.task-date{display:flex;flex-direction:column}.task-date small{color:var(--muted)}.task-actions{display:grid;grid-template-columns:125px 110px 135px auto;gap:6px}.task-actions select,.task-actions input{height:38px;border:1px solid var(--line);border-radius:8px;background:#fff;padding:0 8px}.priority-dot{width:10px;height:10px;border-radius:50%;display:block;background:#d2a51b}.priority-tres-haute{background:#992f2f}.priority-haute{background:#d36b32}.priority-moyenne{background:#d2a51b}.priority-basse{background:#4d8a62}.danger-text{color:#a23e39}
.status-termine{background:#e7f3ea;color:#176a2f}.status-a-suivre,.status-a-faire,.status-en-cours{background:#faf1df;color:#996a20}
@media(max-width:1150px){.mapping-grid{grid-template-columns:1fr 1fr}.task-row{grid-template-columns:24px 1fr 140px}.task-actions{grid-column:2 / -1}.task-row>form:last-child{grid-column:3}}
@media(max-width:700px){.subscription-detail{grid-template-columns:1fr 1fr}.mapping-grid{grid-template-columns:1fr}.notes-card>div{align-items:stretch;flex-direction:column}.notes-card button{width:100%}.activity-list article{grid-template-columns:40px 1fr}.activity-list article>.status{grid-column:2}.task-row{grid-template-columns:18px 1fr}.task-date,.task-actions,.task-row>form:last-child{grid-column:2}.task-actions{grid-template-columns:1fr}.task-actions>*{width:100%}}


/* Gestion Client v1.0.3 - export clients + duplication catalogue */
.export-menu{position:relative}.export-menu>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center}.export-menu>summary::-webkit-details-marker{display:none}.export-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:40;min-width:180px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 30px rgba(23,32,51,.12);padding:6px}.export-popover a{display:block;padding:9px 10px;border-radius:8px;color:var(--text);font-weight:700;text-decoration:none;white-space:nowrap}.export-popover a:hover{background:var(--soft)}.service-card-actions{gap:10px;align-items:center}.service-card-actions form{margin:0}.service-card-actions button{background:none;border:0;padding:0;color:var(--green);font:inherit;font-weight:800;cursor:pointer}.service-card-actions>span{margin-left:auto}@media(max-width:760px){.export-popover{left:0;right:auto}.heading-actions{align-items:stretch}.heading-actions .export-menu>summary{justify-content:center}.service-card-actions{flex-wrap:wrap}}

.brand-logo{max-width:42px;max-height:42px;object-fit:contain;border-radius:9px;background:#fff;padding:3px;flex:0 0 auto}.auth-brand .brand-logo{max-width:48px;max-height:48px}.mobile-brand .brand-logo{max-width:31px;max-height:31px;margin-right:6px}.language-switch{margin:0}.language-switch button,.auth-language button{border:1px solid var(--line);background:#fff;color:#526158;border-radius:8px;height:34px;min-width:38px;font-weight:800;cursor:pointer}.language-switch button.active,.auth-language button.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,#fff);color:var(--accent)}.auth-language{position:fixed;right:24px;top:20px;display:flex;gap:6px;z-index:3}.auth-language form{margin:0}.settings-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 17px}.settings-tabs a{border:1px solid var(--line);background:#fff;border-radius:10px;padding:9px 13px;font-weight:700;color:#526158}.settings-tabs a:hover{border-color:var(--accent);color:var(--accent)}.settings-section{padding:24px;margin-bottom:17px;scroll-margin-top:94px}.settings-section-head{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:18px}.settings-section-head h2{margin:0 0 4px;font-size:21px}.settings-section-head p{margin:0;color:var(--muted);font-size:13px}.settings-save{display:flex;justify-content:flex-end;margin-top:16px}.settings-brand-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);gap:24px}.color-input{height:52px!important;padding:5px!important}.field small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.current-logo{display:flex;align-items:center;gap:12px;background:#f5f8f5;border-radius:11px;padding:11px;margin:10px 0 14px}.current-logo img{width:62px;height:46px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:9px;padding:4px}.current-logo span{font-size:12px;color:var(--muted)}.branding-preview{min-height:330px;display:grid;grid-template-columns:112px 1fr;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--preview-bg)}.branding-preview-sidebar{background:linear-gradient(180deg,var(--preview-sidebar),color-mix(in srgb,var(--preview-sidebar) 72%,#000));padding:18px 10px}.preview-company{display:flex;align-items:center;gap:7px;color:#fff;font-size:9px;overflow:hidden}.preview-company span,.preview-company img{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;background:var(--preview-accent);object-fit:contain;font-weight:800}.preview-company strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.branding-preview-sidebar i{display:block;height:24px;border-radius:6px;background:rgba(255,255,255,.1);margin-top:12px}.branding-preview-sidebar i:first-of-type{background:#fff}.branding-preview-main{min-width:0}.preview-top{height:42px;background:#fff;border-bottom:1px solid var(--line)}.preview-card{margin:28px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.preview-card>span{display:block;width:38px;height:38px;border-radius:9px;background:var(--preview-accent)}.preview-card h3{font-size:16px;margin:12px 0 4px}.preview-card p{font-size:11px;color:var(--muted)}.preview-card button{border:0;border-radius:8px;background:var(--preview-accent);color:#fff;padding:9px 12px;font-weight:700}.logo-remove{display:flex;justify-content:flex-end;margin-top:10px}.settings-product-note{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;color:var(--muted);font-size:12px;padding:8px 4px 22px}.settings-product-note strong{color:var(--ink)}
@media(max-width:980px){.settings-brand-grid{grid-template-columns:1fr}}


/* GC v1.0.4 - Espacement panneaux tableau de bord */
.dashboard-grid .panel-head,
.renewals-card > .panel-head{
    padding:20px 20px 16px;
}

.chart-card > .chart-summary{
    margin:4px 20px 12px;
}

.distribution-card > .cycle-list{
    margin-top:4px;
    padding:0 20px 20px;
}


.auth-language select{
    height:40px;
    min-width:130px;
    border:1px solid var(--accent);
    border-radius:9px;
    background:#fff;
    color:var(--ink);
    padding:0 34px 0 12px;
    font-weight:700;
    cursor:pointer;
}


/* GC v1.0.4 - Langue dans la carte de connexion */
.auth-card .auth-language-inline{
    position:static;
    right:auto;
    top:auto;
    z-index:auto;
    display:block;
    margin:0 0 16px;
}

.auth-language-inline label{
    display:flex;
    flex-direction:column;
    gap:6px;
    font-size:13px;
    font-weight:700;
}

.auth-language-inline select{
    width:100%;
    height:46px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#fff;
    color:var(--ink);
    padding:0 12px;
    font-weight:600;
}


/* GC v1.0.4 - Logo entreprise proportionnel */
.brand-logo{
    width:auto;
    height:auto;
    max-width:180px;
    max-height:52px;
    object-fit:contain;
    border-radius:0;
    background:transparent;
    padding:0;
    flex:0 1 auto;
}

.auth-brand .brand-logo{
    width:auto;
    height:auto;
    max-width:220px;
    max-height:72px;
    object-fit:contain;
}

.mobile-brand .brand-logo{
    width:auto;
    height:auto;
    max-width:145px;
    max-height:34px;
    margin-right:0;
}

.brand-name{
    white-space:nowrap;
}


.brand-logo-dark-fallback{
    background:#fff !important;
    padding:6px 9px !important;
    border-radius:9px !important;
    box-shadow:0 3px 10px rgba(0,0,0,.16);
}

.sidebar .brand .brand-logo{
    max-width:190px;
    max-height:52px;
}

.preview-logo-fallback{
    background:#fff !important;
    padding:3px !important;
    border-radius:5px !important;
}


/* GC v1.0.4 - Selecteur fichier bilingue */
.file-picker{
    position:relative;
    display:flex;
    align-items:center;
    min-height:46px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#fbfcfb;
    overflow:hidden;
    cursor:pointer;
}

.file-picker-input{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    opacity:0;
    cursor:pointer;
    z-index:2;
}

.file-picker-button{
    min-height:46px;
    display:flex;
    align-items:center;
    padding:0 14px;
    background:#eef3ef;
    border-right:1px solid var(--line);
    color:var(--ink);
    font-weight:700;
    white-space:nowrap;
}

.file-picker-name{
    min-width:0;
    padding:0 13px;
    color:var(--muted);
    font-weight:400;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}


/* GC v1.0.4 - Lisibilité des textes d'aide dans Paramètres */
.settings-section .field small{
    font-size:13px;
    line-height:1.5;
    color:#65736c;
}

.current-logo span{
    font-size:13px;
}


/* GC v1.0.4 - Login plus professionnel et plus contrasté */
.auth-shell{
    background:
        linear-gradient(
            145deg,
            var(--page-bg) 0 58%,
            color-mix(in srgb,var(--page-bg) 72%,var(--accent)) 58%
        );
}

.auth-card{
    border-top:4px solid var(--accent);
    box-shadow:
        0 30px 85px rgba(16,40,31,.20),
        0 8px 24px rgba(16,40,31,.08);
}

.auth-card h1{
    margin-bottom:12px;
}

.auth-card h1::after{
    content:"";
    display:block;
    width:46px;
    height:3px;
    margin:10px auto 0;
    border-radius:999px;
    background:var(--accent);
}

.auth-card > p{
    color:#56675d;
    line-height:1.55;
}

/* GC v1.0.4 - Login : accent visuel et texte introduction mieux centré */
.auth-shell{
    background:
        linear-gradient(
            145deg,
            var(--page-bg) 0 58%,
            color-mix(in srgb,var(--page-bg) 64%,var(--accent)) 58%
        );
}

.auth-card{
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb,var(--accent) 6%,#fff) 0,
            #fff 165px
        );
    border-top-width:5px;
}

.auth-card > p{
    width:100%;
    max-width:390px;
    margin:0 auto 24px;
    text-align:center;
    line-height:1.55;
}

.auth-card h1::after{
    width:54px;
}

.auth-card .primary{
    box-shadow:
        0 10px 22px color-mix(in srgb,var(--accent) 22%,transparent),
        0 3px 7px rgba(16,40,31,.10);
}

/* GC v1.0.4 - Dégradé doux dans l'en-tête de la carte de connexion */
.auth-card{
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb,var(--accent) 10%,#fff) 0,
            color-mix(in srgb,var(--accent) 6%,#fff) 120px,
            color-mix(in srgb,var(--accent) 3%,#fff) 205px,
            #fff 275px
        );
}

/* GC v1.0.4 - Login : contraste final et position responsive ordinateur/tablette/mobile */
.auth-shell{
    min-height:100vh;
    min-height:100svh;
}

.auth-card{
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb,var(--accent) 16%,#fff) 0,
            color-mix(in srgb,var(--accent) 10%,#fff) 125px,
            color-mix(in srgb,var(--accent) 4%,#fff) 220px,
            #fff 300px
        );
    transform:translateY(-38px);
}

/* Tablette */
@media (max-width:850px){
    .auth-shell{
        min-height:100svh;
        place-items:start center;
        padding:42px 18px 32px;
    }

    .auth-card{
        transform:none;
        margin-top:0;
        width:min(520px,100%);
    }
}

/* Téléphone */
@media (max-width:580px){
    .auth-shell{
        min-height:100svh;
        place-items:start center;
        padding:
            calc(20px + env(safe-area-inset-top))
            14px
            calc(24px + env(safe-area-inset-bottom));
    }

    .auth-card{
        transform:none;
        width:100%;
        margin:0;
        padding:22px 20px;
        border-radius:17px;
    }

    .auth-brand{
        margin-bottom:20px;
    }

    .auth-card h1{
        font-size:24px;
    }

    .auth-card > p{
        max-width:330px;
        font-size:13px;
        line-height:1.5;
    }
}

/* Écrans peu hauts / téléphone ou tablette en paysage */
@media (max-height:760px){
    .auth-shell{
        place-items:start center;
        padding-top:24px;
        padding-bottom:24px;
    }

    .auth-card{
        transform:none;
    }
}
