@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:'DM Sans',system-ui,-apple-system,sans-serif;color:#203630;background:#f6f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none}.app-layout{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:100vh}.sidebar{background:#123d36;color:#e9f3ed;padding:30px 17px 23px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:13px;padding:0 8px 28px}.brand-icon{width:44px;height:44px;border-radius:12px;background:#f3d58d;display:grid;place-items:center;overflow:hidden}.brand-icon img{width:42px;height:42px}.brand-name{font:800 20px/1.15 Manrope,system-ui,sans-serif;letter-spacing:-.65px}.brand-sub{color:#a4c6bb;font-size:11px;margin-top:3px;letter-spacing:.65px;text-transform:uppercase}.nav-label{text-transform:uppercase;letter-spacing:1.8px;font-weight:700;font-size:10px;color:#80aaa0;padding:22px 14px 11px}.nav-link{background:transparent;color:#bbd7cf;border:0;width:100%;text-align:left;border-radius:12px;padding:13px;display:flex;gap:12px;align-items:center;font-size:13.6px;font-weight:600;margin:3px 0}.nav-link:hover,.nav-link.active{background:#2a5b51;color:white}.nav-icon{font-size:18px;width:23px;text-align:center}.sidebar-spacer{flex:1}.sidebar-foot{background:#204e45;border:1px solid #2f6157;border-radius:15px;padding:15px;margin:12px 2px;color:#e6f4ec}.sidebar-foot strong{font-size:13px}.sidebar-foot p{font-size:11.5px;line-height:1.6;color:#b9d3cb}.sidebar-foot small{font-size:10px;color:#9ebfb5}.main{min-width:0;padding:0 4.4vw 65px}.topbar{height:95px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #e3e8e2}.topbar-right{display:flex;align-items:center;gap:12px}.top-label{font-size:12px;color:#88938d;font-weight:600}.page-title{font:800 30px/1.25 Manrope,system-ui,sans-serif;letter-spacing:-1.2px;margin:28px 0 6px}.subtitle{font-size:14px;color:#87938c;margin:0 0 23px}.top-meta{font-size:12px;color:#85978e}.avatar{width:38px;height:38px;border-radius:50%;background:#def0e7;color:#155b46;display:grid;place-items:center;font-weight:800;font-size:13px}.member-switch{border:1px solid #dbe5dc;background:#fff;padding:10px 30px 10px 12px;border-radius:12px;max-width:205px;color:#35483f;font-size:12px}.pill{font-size:10.5px;display:inline-flex;gap:5px;align-items:center;white-space:nowrap;padding:6px 10px;border-radius:99px;background:#e7efeb;color:#30614f;font-weight:800;letter-spacing:.2px}.pill.demo{background:#fff0d9;color:#975b11}.pill.pending{background:#fff1d8;color:#946214}.pill.confirmed{background:#e4f5e9;color:#2c7752}.pill.disputed{background:#ffebeb;color:#a53f42}.pill.cancelled{background:#eff0ef;color:#62736a}.hero{background:linear-gradient(115deg,#12443b 0%,#1e6251 62%,#327766 100%);border-radius:24px;min-height:205px;padding:27px 31px;display:flex;align-items:center;justify-content:space-between;color:white;overflow:hidden;position:relative}.hero:after{content:'';position:absolute;width:350px;height:350px;right:-90px;top:-160px;border:60px solid rgba(255,255,255,.045);border-radius:50%}.hero-text{position:relative;z-index:1}.hero-eyebrow{font-size:10px;font-weight:800;letter-spacing:2px;color:#b6ddce;text-transform:uppercase}.hero h2{font:800 26px/1.3 Manrope,system-ui;margin:14px 0 7px;letter-spacing:-.7px}.hero p{color:#d2e5da;font-size:13px;line-height:1.55;max-width:420px}.hero-art{font-size:100px;opacity:.7;transform:rotate(-9deg);z-index:1;margin-right:35px;filter:saturate(.75)}.section-head{display:flex;align-items:center;justify-content:space-between;margin:29px 0 14px;gap:10px}.section-head h3,.card-head h3{font:800 16px Manrope,system-ui;margin:0;letter-spacing:-.25px}.section-head span{font-size:12px;color:#839189}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:21px 0 0}.stat-card,.card{background:#fff;border:1px solid #e5ebe4;border-radius:17px;box-shadow:0 4px 17px rgba(18,52,36,.025)}.stat-card{padding:20px 21px;min-width:0}.stat-card .stat-icon{width:36px;height:36px;background:#ecf5ed;border-radius:10px;display:grid;place-items:center;font-size:18px}.stat-label{font-size:11.5px;color:#7c8981;font-weight:600;margin:16px 0 7px}.stat-value{font:800 clamp(17px,2vw,23px) Manrope,system-ui;white-space:nowrap;letter-spacing:-.7px}.stat-desc{font-size:10.5px;color:#9ba59f;margin:8px 0 0}.layout-2{display:grid;grid-template-columns:1.45fr 1fr;gap:18px}.card{padding:21px 23px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:19px}.eyebrow{font-size:11px;color:#91a097}.text-muted{color:#86948b;font-size:12px;line-height:1.6}.empty{text-align:center;color:#91a097;font-size:13px;padding:30px 0}.table-wrap{overflow:auto;margin:0 -5px}.data-table{border-collapse:collapse;min-width:580px;width:100%;text-align:left}.data-table th{font-weight:700;color:#89958e;font-size:10.5px;letter-spacing:.2px;padding:13px 12px;border-bottom:1px solid #e8eee8;white-space:nowrap}.data-table td{padding:15px 12px;font-size:12px;border-bottom:1px solid #f0f2ee;white-space:nowrap}.data-table tr:last-child td{border-bottom:0}.t-primary{font-weight:800;color:#283d34}.t-sub{font-size:10.5px;color:#97a49b;margin-top:4px}.amount{font:800 12px Manrope,system-ui}.green{color:#1b8159}.red{color:#bc574b}.balance-line{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #f0f2ef;gap:8px;font-size:12px}.balance-line:last-child{border:0}.holder-dot{height:9px;width:9px;border-radius:100%;background:#dfb35f;display:inline-block;margin-right:8px}.bar-track{height:7px;background:#eff3ed;border-radius:99px;overflow:hidden;margin-top:7px}.bar-fill{height:100%;background:#378771;border-radius:99px;min-width:2px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:17px;flex-wrap:wrap}.button{border:0;background:#145344;color:#fff;border-radius:11px;padding:11px 16px;font-size:12px;font-weight:800;box-shadow:0 3px 10px #175a4615;display:inline-flex;align-items:center;justify-content:center;gap:8px}.button:hover{background:#1e6857}.button.secondary{background:#eef4ee;color:#2b5b49;box-shadow:none}.button.secondary:hover{background:#e2ece3}.button.light{background:#fff;color:#155849}.button.small{font-size:10px;padding:7px 10px;border-radius:8px;box-shadow:none}.button.outline{background:white;color:#336654;border:1px solid #dcebe1;box-shadow:none}.select,.field input,.field select,.field textarea{width:100%;background:#fff;border:1px solid #dbe5dc;border-radius:10px;padding:11px 12px;outline:0;color:#273e31;font-size:13px}.field input:focus,.field select:focus,.field textarea:focus,.select:focus{border-color:#3d8b71;box-shadow:0 0 0 3px #3b97721a}.field textarea{min-height:82px;resize:vertical}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:11.5px;font-weight:800;color:#3a5549}.field small{color:#8c9d91;font-size:10px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid{display:grid;gap:15px}.check-row{display:flex;gap:10px;align-items:center;color:#42584b;font-size:12px}.check-row input{accent-color:#137d5c;width:16px;height:16px}.notice{padding:13px 15px;background:#fdf4df;border:1px solid #f4e3be;color:#846322;border-radius:12px;font-size:12px;line-height:1.5;margin:12px 0}.notice.info{background:#eef6f1;border-color:#dbebdf;color:#35715d}.modal-backdrop{position:fixed;inset:0;background:#0e2822a1;z-index:10;display:flex;align-items:center;justify-content:center;padding:18px}.modal{background:white;width:min(610px,100%);max-height:min(95vh,900px);overflow:auto;border-radius:19px;padding:26px 28px;box-shadow:0 30px 100px #00150a3d}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-head h2{margin:0;font:800 20px Manrope,system-ui}.close{border:0;background:#f0f4f0;border-radius:9px;width:33px;height:33px;font-size:18px;color:#53645b}.footer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.form-error{background:#ffe8e8;color:#aa3333;padding:12px;border-radius:9px;font-size:12px}.form-success{background:#e8f5ec;color:#207144;padding:12px;border-radius:9px;font-size:12px}.report-card{padding:16px;border:1px solid #e6ebe5;border-radius:13px;margin:10px 0}.report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.report-stat{background:#f5f8f3;border-radius:9px;padding:12px;text-align:center}.report-stat strong{display:block;font:800 20px Manrope,system-ui}.report-stat span{font-size:10px;color:#88988d}.login-bg{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 10% 5%,#29755e,#123d36 60%);padding:18px}.login-card{background:white;max-width:420px;width:100%;padding:38px 35px;border-radius:24px;box-shadow:0 30px 70px #07281b4d}.login-card h1{font:800 25px Manrope,system-ui;margin:12px 0 6px}.login-card p{color:#819388;font-size:13px;margin-bottom:25px}.loading-screen{min-height:100vh;display:grid;place-items:center;color:#3c6756}.member-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.member-card{padding:16px;background:#f6f8f5;border:1px solid #e3ebe2;border-radius:13px}.member-card strong{font-size:13px}.member-card p{font-size:11px;color:#819087}.member-card .role-pill{font-size:10px;text-transform:uppercase;color:#287a5d;font-weight:800}.mobile-nav{display:none}.toast{position:fixed;z-index:20;bottom:22px;right:22px;border-radius:12px;background:#123d36;color:#fff;padding:14px 20px;font-size:12px;box-shadow:0 14px 45px #092a1e52;max-width:390px}.toast.error{background:#b74443}.divider{border-top:1px solid #edf0ea;margin:12px 0}.brand-mini{width:32px;height:32px;border-radius:10px;background:#123d36;display:grid;place-items:center}.brand-mini img{height:31px;width:31px}.muted-hint{font-size:11px;color:#89978d;line-height:1.6}.action-stack{display:flex;gap:5px;align-items:center}.field-metric{font:800 22px Manrope,system-ui;color:#205d48}.chip{font-size:10px;background:#f0f5f0;border-radius:7px;padding:5px 7px;color:#658376;font-weight:800}.inline-info{display:flex;align-items:center;gap:8px;color:#85988b;font-size:11px}.footer-note{font-size:11px;color:#97a79b;margin:30px 0 0}.right{text-align:right}
@media(max-width:1200px){.main{padding:0 25px 70px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:960px){.app-layout{grid-template-columns:1fr}.sidebar{display:none}.main{padding:0 18px 95px}.topbar{height:75px}.layout-2{grid-template-columns:1fr}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #dfe6e0;z-index:5;justify-content:space-around;padding:6px 3px max(8px,env(safe-area-inset-bottom))}.mobile-nav button{display:flex;flex-direction:column;align-items:center;gap:4px;background:transparent;border:0;min-width:60px;padding:5px 2px;color:#89998d;font-size:9px;font-weight:800}.mobile-nav button span{font-size:19px}.mobile-nav button.active{color:#1f7056}}@media(max-width:650px){.page-title{font-size:24px;margin-top:20px}.subtitle{font-size:12px}.topbar .top-label{display:none}.member-switch{max-width:152px;font-size:10px;padding:9px}.top-meta{font-size:10px}.hero{padding:22px;min-height:176px}.hero h2{font-size:20px}.hero-art{font-size:57px;margin-right:0}.hero p{font-size:11px}.stats{gap:10px;margin-top:14px}.stat-card{padding:15px}.stat-value{font-size:17px}.stat-label{font-size:10.5px}.section-head{margin:22px 0 11px}.card{padding:16px}.field-row{grid-template-columns:1fr}.modal{padding:19px 17px}.member-grid{grid-template-columns:1fr}.topbar-right{gap:6px}.topbar{gap:6px}.topbar .pill{font-size:9px;padding:6px 7px}.toast{bottom:85px;right:15px;left:15px;max-width:initial}.report-stats{gap:5px}.report-stat{padding:10px 4px}.report-stat strong{font-size:17px}}

/* Maintenir les tableaux scrollables sur les petits écrans sans élargir le document. */
.layout-2 > section,.card,.table-wrap{min-width:0;max-width:100%}
.table-wrap{overflow-x:auto;overscroll-behavior-x:contain}

@media(max-width:960px){.mobile-nav button{min-width:48px}}

/* V0.2 : exports, boutons de synchronisation et actions d’audit */
.export-actions{display:flex;flex-wrap:wrap;gap:8px;padding:8px 0 15px}.topbar-right button[data-action="sync"]{white-space:nowrap}.action-stack{flex-wrap:wrap}
@media(max-width:650px){.topbar-right button[data-action="sync"]{padding:7px 8px;font-size:10px}.export-actions>.button{flex:1 1 auto}.toolbar .action-stack{gap:7px}}
