:root{--bg:#f5f6f2;--surface:#fff;--ink:#1c332f;--muted:#87938c;--line:#e7ebe4;--green:#123e39;--lime:#d9efa6;--soft:#edf4e9;--red:#b65a43;--shadow:0 24px 80px #123e3915;font:14px 'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--bg);color-scheme:light}html[data-theme=dark]{--bg:#101d1b;--surface:#182a26;--ink:#e7eee5;--muted:#9baa9d;--line:#2c4139;--green:#306958;--lime:#d9efa6;--soft:#263e31;--red:#f5a28e;--shadow:0 24px 80px #0004;color-scheme:dark}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button,.button{cursor:pointer;display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:12px 18px;background:var(--green);border:1px solid transparent;border-radius:9px;color:white;font-weight:600;text-decoration:none;font-size:12px;min-height:42px;white-space:nowrap}button:hover,.button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}.button.light,button.light{background:var(--surface);color:var(--ink);border-color:var(--line)}button.ghost,.button.ghost{background:transparent;color:var(--muted);padding:8px}.button.small,button.small{min-height:34px;padding:8px 11px;font-size:11px}.danger{color:var(--red)!important}.icon{width:19px;height:19px;display:inline-block;vertical-align:middle;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-family:Georgia,serif;font-weight:500;font-size:34px;letter-spacing:-.9px;line-height:1.2}h2{font-size:17px;font-weight:600;letter-spacing:-.2px}h3{font-size:14px;font-weight:600}p{color:var(--muted);line-height:1.7}small{font-size:11px;color:var(--muted)}.layout{display:flex;min-height:100vh}.sidebar{width:235px;position:fixed;inset:0 auto 0 0;padding:35px 21px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;z-index:10}.logo{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:650;letter-spacing:-1.2px;color:var(--ink)}.logo-mark{height:35px;width:35px;background:var(--green);border-radius:9px;color:var(--lime);display:grid;place-items:center}.logo small{font-size:8px;display:block;letter-spacing:2px;margin-top:4px;font-weight:500}.nav-label{color:var(--muted);font-size:9px;letter-spacing:1.5px;margin:43px 12px 15px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{justify-content:flex-start;background:none;color:var(--muted);font-weight:500;padding:13px 12px;border-radius:8px;font-size:12px}.sidebar nav button.active{background:var(--soft);color:var(--ink);font-weight:650}.sidebar nav button.active .icon{color:#608747}.sidebar-footer{margin-top:auto;border-top:1px solid var(--line);padding-top:20px;font-size:11px}.user{display:flex;align-items:center;gap:10px}.avatar{width:35px;height:35px;border-radius:50%;background:var(--soft);display:grid;place-items:center;color:var(--ink);font-size:12px;font-weight:600}.user small{display:block;font-size:10px;margin-top:4px}.sidebar-footer button{font-size:10px;margin-top:12px}.main{margin-left:235px;width:calc(100% - 235px)}.topbar{height:78px;background:var(--surface);border-bottom:1px solid var(--line);padding:0 40px;display:flex;justify-content:space-between;align-items:center;gap:20px;position:sticky;top:0;z-index:9}.site-select{display:flex;align-items:center;gap:12px}.site-select>span{color:var(--muted)}select,input,textarea{border:1px solid var(--line);border-radius:7px;padding:10px 12px;min-height:42px;background:var(--surface);color:var(--ink);max-width:100%;font-size:12px}select{cursor:pointer}.site-select select{border:0;font-weight:600;min-width:220px;font-size:12px}.top-tools{display:flex;gap:12px;align-items:center}.top-tools select{min-height:34px;font-size:10px;padding:6px}.status-online{width:6px;height:6px;border-radius:50%;background:#7b9d58}.content{padding:35px 40px 80px;max-width:1600px;margin:0 auto}.eyebrow{font-size:9px;letter-spacing:1.8px;color:#83946a;font-weight:650;margin-bottom:14px}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px}.heading p{font-size:12px;margin-top:10px}.heading-actions{display:flex;gap:10px}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:26px}.kpi{border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:22px 20px;min-height:155px}.kpi label{display:flex;justify-content:space-between;gap:8px;align-items:center;color:var(--muted);font-size:10px}.kpi strong{display:block;font-size:28px;font-weight:600;letter-spacing:-1.1px;margin:20px 0 10px;white-space:nowrap}.kpi small{font-size:9px}.kpi.highlight{background:var(--green);color:white;border-color:var(--green)}.kpi.highlight label,.kpi.highlight small{color:#b8d1c0}.kpi.highlight .icon{color:var(--lime)}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:24px;min-width:0;margin-bottom:24px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.panel-head p{font-size:11px;margin-top:7px}.dashboard-grid{display:grid;grid-template-columns:1.65fr 1fr;gap:24px}.legend{display:flex;gap:14px;align-items:center;font-size:9px;color:var(--muted);white-space:nowrap}.legend i{width:7px;height:7px;border-radius:2px;display:inline-block;margin-right:4px;background:#254e44}.legend .expected{background:#dceac5}.chart-box svg{width:100%;height:230px;overflow:visible}.chart-box text{font:9px 'Segoe UI',sans-serif;fill:var(--muted)}.chart-box .chart-label{font-size:8px}.site-list{display:grid;gap:22px}.site-summary{display:flex;gap:12px;align-items:center}.site-icon{height:40px;width:40px;background:var(--soft);border:1px solid var(--line);border-radius:9px;display:grid;place-items:center;color:#648359}.site-summary>div:nth-child(2){flex:1}.site-summary h3{font-size:11px;line-height:1.5}.site-summary small{font-size:9px}.site-summary strong{font-size:11px}.progress{height:4px;background:var(--line);border-radius:5px;overflow:hidden;margin-top:7px}.progress i{display:block;background:#94b365;height:100%}.tip{background:var(--soft);padding:14px;border-radius:8px;font-size:10px;line-height:1.7;color:var(--muted);margin-top:23px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:11px;text-align:left}th{background:var(--bg);color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:.7px;padding:13px 12px;white-space:nowrap;font-weight:600}td{padding:16px 12px;border-bottom:1px solid var(--line);white-space:nowrap;color:var(--ink)}td small{display:block;font-size:9px;margin-top:5px}td .row-actions{display:flex;gap:5px;align-items:center}.badge{padding:5px 8px;border-radius:5px;font-size:9px;display:inline-flex;white-space:nowrap;background:var(--soft);color:#608044}.badge.red{background:#faeae3;color:#b16a50}.badge.gold{background:#faf1d9;color:#9b8139}.badge.gray{background:var(--bg);color:var(--muted)}.mobile-nav{display:none}.filters{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.filters input{min-width:230px}.filters select{min-width:155px}.empty{padding:46px 20px;text-align:center}.empty .icon{width:36px;height:36px;color:#9cac95;margin-bottom:14px}.empty p{font-size:12px;margin:12px 0 20px}.portfolio-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.property-card{border:1px solid var(--line);border-radius:12px;background:var(--surface);overflow:hidden}.property-art{height:125px;background:linear-gradient(140deg,#b6c6a2,#eef1e5);display:flex;align-items:flex-end;justify-content:center;gap:12px;padding:22px 35px 0}.building{height:80px;width:70px;background:#f6f3e7;border-radius:3px 3px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:9px;padding:12px;box-shadow:12px 0 #526b5130}.building i{background:#6d8f814b}.building.short{height:60px;width:55px;background:#789580}.property-body{padding:20px}.property-body>p{font-size:11px;margin:7px 0 20px}.property-data{display:flex;justify-content:space-between;padding-top:14px;border-top:1px solid var(--line);font-size:11px}.property-data strong{display:block;margin-bottom:5px}.property-data small{font-size:9px}.property-body .row-actions{display:flex;justify-content:space-between;gap:6px;margin-top:18px}.unit-list{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.unit{padding:17px;border:1px solid var(--line);border-radius:9px}.unit h3{margin-bottom:10px}.unit p{font-size:11px;margin:10px 0}.unit .badge{margin-bottom:5px}.flash{position:fixed;top:90px;right:25px;z-index:70;max-width:420px;background:var(--ink);color:var(--surface);padding:15px 20px;border-radius:10px;box-shadow:var(--shadow);font-size:12px;line-height:1.6}.flash.error{background:#9f4936;color:white}.notice{background:var(--soft);color:var(--muted);padding:14px 17px;border-radius:8px;font-size:11px;line-height:1.7;margin-bottom:20px}.notice.warning{background:#f9f1df;color:#92783c}.overlay{position:fixed;inset:0;z-index:40;background:#132c2469;backdrop-filter:blur(3px);display:grid;place-items:center;padding:20px}.modal{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);width:min(650px,100%);max-height:90dvh;overflow:auto}.modal.wide{width:min(950px,100%)}.modal-head{padding:24px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:var(--surface);z-index:2}.modal-head h2{font-size:18px}.modal-body{padding:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid label{font-size:10px;color:var(--muted);display:flex;flex-direction:column;gap:8px}.form-grid label.full{grid-column:1/-1}.form-grid input,.form-grid select,.form-grid textarea{width:100%}.form-grid .check{flex-direction:row;align-items:center}.form-grid .check input{width:17px;min-height:17px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.account-balance{padding:22px;background:var(--green);border-radius:10px;color:white;margin-bottom:22px}.account-balance small{color:#b7cdbd}.account-balance strong{display:block;font-size:30px;margin:10px 0}.settings-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:24px}.settings-grid .form-grid{margin-top:23px}.uploads{display:grid;gap:20px;margin-top:24px}.uploads label{display:grid;gap:8px;font-size:11px;color:var(--muted)}.auth-screen{min-height:100dvh;display:grid;grid-template-columns:1.15fr 1fr}.auth-art{background:#143f36;color:white;padding:70px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.auth-art:after{content:'';width:380px;height:380px;position:absolute;border:1px solid #8fb69444;border-radius:50%;bottom:-100px;right:-130px}.auth-art .logo{color:white;margin-bottom:75px}.auth-art h1{font-size:57px;line-height:1.12;max-width:450px}.auth-art p{color:#b7c9b5;max-width:380px;margin-top:23px;font-size:14px}.auth-art .eyebrow{color:#cfdf9c}.auth-form{display:grid;place-items:center;padding:35px}.auth-card{width:100%;max-width:390px}.auth-card h2{font-family:Georgia,serif;font-weight:500;font-size:30px}.auth-card>p{font-size:12px;margin:12px 0 30px}.auth-card form{display:grid;gap:19px}.auth-card label{display:grid;gap:9px;font-size:11px;color:var(--muted)}.auth-card button{margin-top:8px}.auth-card .logo{display:none}.loading{display:grid;place-items:center;height:100vh;color:#8ba075;font-size:12px;letter-spacing:2px}.page-footer{font-size:9px;color:var(--muted);margin-top:35px;display:flex;justify-content:space-between}.search-box{margin-bottom:20px;width:min(350px,100%)}.receipt-done{background:var(--soft);padding:23px;border-radius:10px;text-align:center}.receipt-done h2{margin:12px 0}.receipt-done p{font-size:12px}.receipt-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:22px 0}.receipt-done .icon{height:35px;width:35px;color:#6f9751}.account-meta{display:flex;gap:18px;flex-wrap:wrap;margin-bottom:20px;font-size:12px}.account-meta a{color:var(--ink)}.break{white-space:normal;overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(min-width:1600px){.content{padding:45px 55px 80px}}@media(max-width:1200px){.sidebar{width:205px;padding:30px 15px}.main{margin-left:205px;width:calc(100% - 205px)}.content{padding:28px}.topbar{padding:0 28px}.kpis{gap:12px}.kpi{padding:20px 15px}.kpi strong{font-size:24px}.portfolio-grid{grid-template-columns:1fr 1fr}.dashboard-grid{grid-template-columns:1.4fr 1fr}.legend{font-size:8px;gap:8px}.unit-list{grid-template-columns:1fr 1fr}.auth-art{padding:45px}.auth-art h1{font-size:47px}}
@media(max-width:900px){.dashboard-grid,.settings-grid{grid-template-columns:1fr}.kpis{grid-template-columns:1fr 1fr}.heading{align-items:flex-start}h1{font-size:30px}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.site-select select{min-width:170px}.top-tools{gap:5px}.topbar{padding:0 20px}.auth-screen{grid-template-columns:1fr}.auth-art{display:none}.auth-card .logo{display:flex;margin-bottom:40px}.auth-form{min-height:100dvh}.panel-head{flex-wrap:wrap}}
@media(max-width:700px){.sidebar{display:none}.main{margin:0;width:100%}.topbar{height:65px;padding:0 14px;gap:4px}.site-select{gap:4px;min-width:0}.site-select>span{display:none}.site-select select{font-size:11px;min-width:0;max-width:205px;padding:9px 5px}.top-tools select{max-width:70px}.top-tools button{padding:8px}.top-tools .status-online{display:none}.content{padding:25px 16px 105px}.heading{flex-direction:column;gap:20px;margin-bottom:23px}.heading h1{font-size:30px}.heading p{font-size:11px}.heading-actions{width:100%;justify-content:flex-start}.heading-actions button{flex:1}.eyebrow{font-size:8px;margin-bottom:12px}.kpis{gap:10px;margin-bottom:20px}.kpi{padding:18px 13px;min-height:138px}.kpi label{font-size:9px}.kpi strong{font-size:23px;letter-spacing:-1px;margin:18px 0 10px}.kpi small{font-size:8px}.kpi .icon{width:15px;height:15px}.panel{padding:20px 16px;margin-bottom:20px}.panel-head{gap:12px;margin-bottom:20px}h2{font-size:16px}.panel-head p{font-size:10px}.chart-box svg{height:215px}.dashboard-grid{gap:0}.portfolio-grid,.unit-list{grid-template-columns:1fr}.property-art{height:105px}.filters{gap:9px}.filters input{width:100%;min-width:0}.filters select{min-width:0;flex:1;font-size:11px}.mobile-nav{display:flex;position:fixed;inset:auto 0 0;z-index:20;justify-content:space-around;background:var(--surface);border-top:1px solid var(--line);padding:9px 5px calc(9px + env(safe-area-inset-bottom))}.mobile-nav button{background:none;color:var(--muted);font-size:8px;flex-direction:column;gap:5px;padding:5px 10px;min-width:58px;min-height:45px;font-weight:500}.mobile-nav button.active{color:var(--ink);background:var(--soft);border-radius:8px}.mobile-nav .icon{width:20px;height:20px}.modal{max-height:94dvh;border-radius:16px 16px 0 0}.overlay{padding:12px 0 0;align-items:end}.modal-head{padding:19px 18px}.modal-body{padding:20px 18px}.form-grid{grid-template-columns:1fr;gap:16px}.form-grid .full{grid-column:auto}.form-actions{position:sticky;bottom:0;background:var(--surface);padding:16px 0 0;margin-top:18px}.form-actions button{flex:1;min-height:46px}.flash{top:73px;left:14px;right:14px;max-width:none;font-size:11px}.page-footer{font-size:8px;gap:15px}.receipt-actions .button,.receipt-actions button{flex:1}.account-balance strong{font-size:27px}.legend{font-size:8px}table{font-size:10px}td{padding:14px 10px}.auth-form{padding:28px}.auth-card h2{font-size:28px}.notice{font-size:10px}}

/* Identité Locatif : bleu nuit, or et blanc. Aucun logo CECAW. */
:root{--bg:#f5f7fc;--surface:#fff;--ink:#14274e;--muted:#78859e;--line:#e4e9f3;--green:#112552;--lime:#ffe041;--soft:#fff7d6;--red:#bd5945;--shadow:0 24px 70px #11255218}
html[data-theme=dark]{--bg:#0a142b;--surface:#111f3c;--ink:#eef3ff;--muted:#a1aec8;--line:#253655;--green:#243d73;--lime:#ffe041;--soft:#30314a;--red:#ffab94}
.sidebar{background:var(--surface);border-right:1px solid var(--line);padding-top:29px}.logo{letter-spacing:-1px;font-size:28px}.logo-mark{background:#112552;color:#ffe041;border-radius:12px;box-shadow:0 6px 16px #11255218}.logo small{font-size:7px;letter-spacing:1.5px;color:var(--muted)}.sidebar nav button{min-height:47px;border-radius:11px;margin-bottom:2px}.sidebar nav button.active{background:#112552;color:white;box-shadow:0 6px 15px #1125521a}.sidebar nav button.active .icon{color:#ffe041}.nav-label{margin-top:35px;font-size:8px}.topbar{box-shadow:0 2px 12px #11255203}.site-select select{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:11px 15px}.status-online{background:#d3ad21}.content{padding-top:32px}h1{font-family:'Segoe UI',Arial,sans-serif;font-size:32px;font-weight:650;letter-spacing:-1px}.eyebrow{color:#af861b;font-size:9px;letter-spacing:1.6px}.heading p{max-width:620px}.heading-actions button{border-radius:10px;box-shadow:0 5px 12px #1125520c}.heading-actions button:first-child{background:#f7cf27;color:#14274e}.kpis{gap:17px}.kpi{border-radius:16px;padding:23px 20px;box-shadow:0 5px 20px #11255204;border-color:var(--line)}.kpi label .icon{background:var(--bg);padding:7px;box-sizing:content-box;border-radius:10px;color:#7384a4}.kpi strong{font-size:29px;font-weight:650;margin-top:17px}.kpi.highlight{position:relative;overflow:hidden;background:linear-gradient(125deg,#0d204b,#1c3973);border:0}.kpi.highlight:after{content:'';position:absolute;right:-38px;bottom:-72px;width:160px;height:160px;border:22px solid #f3cb2940;border-radius:50%;pointer-events:none}.kpi.highlight label,.kpi.highlight small{color:#d0d9ec}.kpi.highlight label .icon{background:#ffffff12;color:#ffe041}.panel{border-radius:16px;box-shadow:0 4px 20px #11255203;padding:25px}.panel-head h2{font-size:17px}.site-icon{background:#fff7d6;color:#a98016;border:1px solid #f5e8b6;border-radius:12px}.progress{height:5px;background:var(--line)}.progress i{background:linear-gradient(90deg,#d4a914,#ffde42)}.tip{background:var(--bg);border-left:3px solid #e4bd29;line-height:1.8;color:var(--muted)}.badge{background:#eaf3ec;color:#47815c}.badge.gold{background:#fff5ce;color:#95740c}.badge.red{background:#fff0e9;color:#b45d41}th{background:var(--bg);font-size:9px}td{padding-top:18px;padding-bottom:18px}tbody tr:hover{background:var(--bg)}.property-card{border-radius:16px;box-shadow:0 6px 22px #11255206}.property-art{background:linear-gradient(135deg,#dae4f6,#fef7d6);height:145px}.building{background:#fffdf4;box-shadow:12px 0 #11255215}.building i{background:#829aca66}.building.short{background:#a9b9d6}.property-body{padding:24px}.account-balance{background:linear-gradient(115deg,#10234e,#24457c);position:relative;border-left:6px solid #f4cf2a}.account-balance small{color:#d3dcef}.notice{background:#fff8de;color:#8d792c;border:1px solid #f1e6b9;border-radius:11px}.notice.warning{font-size:10px;background:var(--surface);color:var(--muted);border:1px dashed var(--line)}.auth-art{background:linear-gradient(140deg,#0d1e45,#213e79)}.auth-art:after{border:35px solid #f2cc2a66;width:500px;height:500px;right:-260px;bottom:-170px}.auth-art .eyebrow{color:#ffe041}.auth-art h1{font-family:Georgia,serif;font-weight:400}.auth-art p{color:#c7d2e8}.auth-art .logo-mark{background:#ffe041;color:#112552}.modal{border-radius:19px}.modal-head{padding:24px 27px}.modal-body{padding:25px 27px}.form-grid input,.form-grid select,.form-grid textarea{border-radius:9px;background:var(--bg)}input:focus,select:focus,textarea:focus{outline:2px solid #e8c33455;border-color:#d3b443}.friendly-welcome{position:relative;overflow:hidden;background:linear-gradient(115deg,#10234f,#213d77);color:white;border-radius:17px;padding:25px 29px;margin-bottom:24px;display:flex;align-items:center;justify-content:space-between;gap:25px}.friendly-welcome:after{content:'';position:absolute;right:-70px;top:-110px;height:280px;width:280px;border:30px solid #f6ce2b44;border-radius:50%;pointer-events:none}.friendly-welcome h2{font-size:21px;color:white;margin-bottom:7px}.friendly-welcome p{color:#cbd6eb;font-size:12px;max-width:560px}.friendly-welcome .welcome-badge{color:#172950;background:#ffe041;padding:10px 16px;border-radius:9px;white-space:nowrap;font-size:11px;font-weight:650;z-index:1}.quick-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:26px}.quick-actions button{background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:13px 19px;border-radius:11px;font-size:11px}.quick-actions button .icon{color:#ad871c}.quick-actions button:hover{border-color:#e6c247}.mobile-nav button.active{background:#112552;color:#ffe041}.page-footer{letter-spacing:.3px}
@media(max-width:700px){h1{font-size:27px!important}.friendly-welcome{padding:22px 19px;align-items:flex-start;flex-direction:column;gap:16px;margin-bottom:18px}.friendly-welcome h2{font-size:20px}.friendly-welcome p{font-size:11px}.friendly-welcome .welcome-badge{font-size:10px;padding:8px 12px}.quick-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:20px}.quick-actions button{padding:13px 5px;flex-direction:column;gap:8px;white-space:normal;font-size:9px;text-align:center;min-height:73px}.quick-actions .icon{width:21px;height:21px}.kpi{padding:17px 12px;border-radius:13px}.kpi strong{font-size:23px}.kpi label .icon{padding:5px;width:14px;height:14px}.panel{padding:21px 15px;border-radius:14px}.heading-actions button{min-height:45px}.modal-head,.modal-body{padding:20px 18px}.property-art{height:120px}.topbar{padding:0 12px}.site-select select{max-width:200px;padding:9px 8px;font-size:10px}.mobile-nav{box-shadow:0 -5px 20px #11255206}}
