/* ========================================================================
   S.I.G.E.C. 8.3 — Centre de commandement : identité visuelle autonome.
   Aucun service externe, aucune police distante, aucune dépendance de CDN.
   ======================================================================== */
:root {
  --night:#0c1526;
  --night-mid:#141f33;
  --nav-text:#aebcd1;
  --red:#d92e43;
  --red-light:#ed5263;
  --red-deep:#ac1f35;
  --blue:#4973c5;
  --ink:#16243a;
  --ink-soft:#62718a;
  --line:#e6eaf2;
  --canvas:#f5f7fb;
  --shadow-soft:0 5px 24px rgba(16,31,56,.045);
  --shadow-hover:0 20px 46px rgba(16,31,56,.12);
  font-family:'Aptos','Inter', 'Segoe UI Variable','Segoe UI',system-ui,-apple-system,sans-serif;
  font-size:14px;
  color:var(--ink);
  background:var(--canvas);
  font-synthesis:none;
  -webkit-font-smoothing:antialiased;
}
body{background:var(--canvas);color:var(--ink)}
::selection{background:#f6bec7;color:#561827}
button, input,select,textarea{font-family:inherit}
button{touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #9bb7fd;outline-offset:3px}
input,textarea,select{min-height:44px;border-color:#dce4f0;border-radius:10px;background:#fff;box-shadow:inset 0 1px 2px rgba(21,32,53,.025);transition:border-color .18s,box-shadow .18s,background .18s}
input:hover:not(:disabled),textarea:hover:not(:disabled),select:hover:not(:disabled){border-color:#b7c5dd}
input:focus,textarea:focus,select:focus{border-color:#678ad1;box-shadow:0 0 0 3px rgba(86,121,198,.12);outline:none}
input:disabled,select:disabled,textarea:disabled{color:#8a98ab;background:#f2f5f9}
button:disabled{opacity:.5;cursor:not-allowed}
label{font-size:12px;letter-spacing:.005em;color:#455774}
a{transition:color .2s}

/* Navigation latérale */
.workspace{min-height:100vh;align-items:stretch}
.sidebar{position:sticky;top:0;height:100vh;width:278px;min-width:278px;padding:0 13px 16px;z-index:12;box-shadow:8px 0 26px rgba(11,24,42,.07);background:
 radial-gradient(ellipse 300px 160px at 5% -5%,rgba(196,39,59,.2),transparent 70%),
 linear-gradient(160deg,#101d31 0%,#0c1728 52%,#111c2f 100%);border-right:1px solid #29364a;overflow:hidden}
.brand{height:105px;padding:19px 12px 18px;gap:12px;border-bottom:1px solid rgba(222,237,255,.09);margin-bottom:20px}
.brand-logo-wrap{width:54px;height:60px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.11);flex:none}
.brand img{width:48px;height:54px;object-fit:contain;filter:drop-shadow(0 3px 8px #0003)}
.brand strong{display:block;white-space:nowrap;font-size:24px;letter-spacing:.065em;font-weight:900;line-height:1.2;color:#fff}
.brand small{color:#a9b7c9;font-size:9px;letter-spacing:.09em;margin-top:5px;white-space:nowrap}
.sidebar-label{color:#758ca9;font-size:9px;padding:0 14px 13px;letter-spacing:1.7px}
.navigation{display:flex;flex-direction:column;gap:3px;overflow-y:auto;overflow-x:hidden;max-height:calc(100vh - 238px);padding:0 3px 9px 0;scrollbar-width:thin;scrollbar-color:#46566d transparent}
.nav-link{position:relative;min-height:42px;color:#b4c0d2;padding:9px 11px;gap:13px;border:1px solid transparent;border-radius:10px;font-size:12.7px;font-weight:650;line-height:1.2;transition:color .18s ease,background .18s ease,border-color .18s ease,transform .18s ease}
.nav-link span:first-child{font-size:19px;width:24px;display:grid;place-items:center;color:#879eb6;flex:none}
.nav-link .nav-icon{width:18px;height:18px;stroke-width:1.8;transition:transform .22s ease}
.nav-link:hover{background:rgba(235,244,255,.075);color:#fff;transform:translateX(2px)}
.nav-link:hover .nav-icon{transform:scale(1.09)}
.nav-link.active{color:#fff;background:linear-gradient(100deg,rgba(216,46,67,.21),rgba(216,46,67,.07));border-color:rgba(243,103,124,.23);box-shadow:none}
.nav-link.active span:first-child{color:#ff7082}
.nav-link.active::before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:3px;border-radius:3px;background:#f05569;box-shadow:0 0 16px #ed3c58aa}
.nav-divider{padding:19px 13px 8px;color:#7189a5;font-size:9px;letter-spacing:1.1px;font-weight:900}
.sidebar-bottom{margin-top:auto;padding:12px 13px;border-radius:13px;background:rgba(255,255,255,.065);border:1px solid rgba(255,255,255,.07)}
.sidebar-bottom strong{font-size:12px;color:#edf6ff}
.sidebar-bottom small{color:#9fb2c6;font-size:10px}
.sidebar-security-icon{width:30px;height:30px;background:rgba(51,207,148,.13);border:1px solid rgba(75,223,162,.24);color:#6ce2b6;border-radius:10px;display:grid;place-items:center;font-weight:900;flex:none}
.sidebar-footnote{font-size:10px;color:#6f849f;text-align:center;padding:13px 0 0}
.sidebar-footnote span{color:#e8b3be}

/* Header du centre */
.main-area{background:var(--canvas);min-height:100vh}
.topbar{position:sticky;top:0;z-index:10;min-height:91px;padding:17px clamp(22px,3.1vw,48px);background:rgba(255,255,255,.91);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid #e6eaf0;box-shadow:0 4px 25px rgba(35,57,82,.018)}
.topbar-heading{display:flex;align-items:center;min-width:0;gap:13px}
.topbar h1{font-size:24px;font-weight:820;letter-spacing:-.75px;color:#1a293f;line-height:1.2;margin:5px 0 0}
.breadcrumb{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:11px;font-weight:700;color:#7789a0}
.breadcrumb span:last-child{color:#bb3346}
.crumb-divider{color:#bdc7d5}
.topbar-actions{gap:17px;min-width:0}
.global-search-trigger{display:flex;align-items:center;gap:11px;border:1px solid #e4e9f1;border-radius:11px;background:#f7f9fc;color:#8997a9;font-size:12px;font-weight:600;padding:11px 13px;min-width:225px;text-align:left;transition:all .2s}
.global-search-trigger:hover{border-color:#b8c8df;background:#fff;box-shadow:0 4px 15px #111f3510}
.global-search-trigger kbd{margin-left:auto;padding:3px 5px;border:1px solid #dce3ee;background:#fff;color:#9ba7b8;border-radius:5px;white-space:nowrap;font-size:10px;font-family:inherit}
.search-glass{color:#596f90;font-size:23px;line-height:.5}
.topbar-date{color:#74849a;font-size:11px;font-weight:700;white-space:nowrap;border-left:1px solid #e3e9f1;padding-left:17px}
.account{border-left:1px solid #e3e9f1;padding-left:15px;gap:10px;max-width:210px;cursor:pointer}
.account:hover .account-icon{transform:scale(1.05)}
.account-icon{width:40px;height:40px;border-radius:13px;background:linear-gradient(140deg,#ffe7eb,#f9cdd5);border:1px solid #f9c8d0;color:#aa293d;font-size:13px;font-weight:900;transition:transform .18s;flex:none}
.account strong{font-size:12px;color:#293a50}
.account small{max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8591a4;font-size:10px}
.logout-button{border-radius:9px;padding:9px 13px!important;color:#566b83!important}
.icon-button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid #e2e8f1;border-radius:10px;background:white;color:#2a405d;font-size:20px}
.mobile-menu-button{display:none}
.content{padding:30px clamp(22px,3.1vw,48px) 70px;max-width:1680px}

/* Page et première impression */
.page:not([hidden]){animation:page-arrive .38s cubic-bezier(.2,.7,.2,1) both}
@keyframes page-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.dashboard-hero{position:relative;isolation:isolate;border-radius:22px;overflow:hidden;background:
 radial-gradient(circle at 86% 45%,rgba(229,67,92,.24) 0%,transparent 27%),
 radial-gradient(circle at 22% 90%,rgba(61,93,167,.2),transparent 45%),
 linear-gradient(112deg,#111c30 7%,#192a47 55%,#202b46 100%);color:#fff;box-shadow:0 17px 36px rgba(24,42,76,.13);margin-bottom:29px;min-height:270px;border:1px solid rgba(255,255,255,.06)}
.dashboard-hero::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.12;background-image:linear-gradient(to right,#fff 1px,transparent 1px),linear-gradient(to bottom,#fff 1px,transparent 1px);background-size:62px 62px;mask-image:linear-gradient(90deg,transparent 12%,#000 100%)}
.dashboard-hero::after{content:"";position:absolute;inset:auto -130px -330px auto;width:640px;height:640px;border:1px solid rgba(255,255,255,.12);border-radius:50%;box-shadow:0 0 0 64px rgba(255,255,255,.025),0 0 0 128px rgba(255,255,255,.025);pointer-events:none}
.hero-geometry{position:absolute;inset:0;pointer-events:none;opacity:.7}
.hero-geometry div{position:absolute;border-radius:50%;border:1px solid rgba(241,97,119,.22);width:360px;height:360px;right:2%;top:-165px}
.hero-geometry div:nth-child(2){width:220px;height:220px;right:13%;top:-95px}
.hero-geometry div:nth-child(3){width:90px;height:90px;right:15%;top:195px;background:linear-gradient(135deg,rgba(229,51,80,.08),transparent)}
.hero-inner{min-height:229px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:1;padding:28px 40px 13px;gap:15px}
.hero-copy{max-width:720px}
.hero-tag{display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(247,202,212,.2);background:rgba(255,255,255,.075);border-radius:40px;padding:7px 12px;color:#e4e9f6;font-size:9px;letter-spacing:1.3px;font-weight:850}
.hero-dot{width:6px;height:6px;border-radius:50%;background:#6ee2b8;box-shadow:0 0 0 4px #6ee2b822}
.hero-inner h2{font-size:clamp(27px,3.15vw,39px);margin:17px 0 8px;letter-spacing:-1.25px;line-height:1.16;font-weight:850;color:white}
.hero-inner h2 span{color:#ff9fac}
.hero-inner p{font-size:12px;max-width:550px;color:#b8c7da;line-height:1.8;margin-bottom:16px}
.hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.hero-primary{background:linear-gradient(125deg,#ef5167,#d82e46);border-color:rgba(255,255,255,.12);color:#fff;box-shadow:0 8px 20px #921e3530}
.hero-primary:hover{filter:brightness(1.08)}
.hero-secondary{color:#fff;border:1px solid rgba(255,255,255,.19);background:rgba(255,255,255,.065)}
.hero-secondary:hover{background:rgba(255,255,255,.14)}
.hero-symbol{flex:none;position:relative;margin:0 35px 0 5px;display:flex;align-items:center;justify-content:center;width:160px;height:175px;filter:drop-shadow(0 20px 24px rgba(0,0,0,.23));animation:float-insignia 7s ease-in-out infinite}
.hero-symbol::before{content:"";position:absolute;inset:0;border:1px solid rgba(255,255,255,.13);border-radius:36px;background:rgba(255,255,255,.045);transform:rotate(-8deg)}
.hero-symbol img{position:relative;width:132px;height:145px;object-fit:contain;filter:drop-shadow(0 6px 10px #06101f7a)}
@keyframes float-insignia{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.hero-footer{position:relative;z-index:1;display:flex;justify-content:space-between;gap:20px;padding:12px 40px;border-top:1px solid rgba(255,255,255,.09);background:rgba(0,0,0,.075);color:#95adc6;font-size:9px;letter-spacing:1px;font-weight:750}
.hero-footer-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#65e3b1;margin-right:7px;box-shadow:0 0 8px #53e0b18a}
.section-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}
.section-kicker{color:#bc384a;font-size:10px;font-weight:900;letter-spacing:1.65px}
.section-intro h2{font-size:21px;margin:5px 0 3px;letter-spacing:-.6px}
.section-intro p{font-size:12px;margin:0;color:#78889d}
.section-period{color:#7e8ea6;font-size:11px;font-weight:650;white-space:nowrap}

/* Metrics et panneaux */
.metrics{gap:17px;margin-bottom:25px}
.metric{position:relative;overflow:hidden;border:1px solid #e5eaf2;border-radius:17px;padding:22px 21px;min-height:174px;box-shadow:var(--shadow-soft);transition:transform .24s ease,border-color .24s,box-shadow .24s}
.metric:hover{transform:translateY(-4px);border-color:#cfdaea;box-shadow:var(--shadow-hover)}
.metric::after{content:"";position:absolute;top:0;right:0;width:100px;height:100px;background:radial-gradient(circle,#f6f8fe 0%,transparent 70%);pointer-events:none}
.metric-icon{margin:0 0 15px;width:40px;height:40px;border-radius:12px;font-size:19px;position:relative;z-index:1}
.metric small{font-size:12px;font-weight:690;color:#78869b;position:relative;z-index:1}
.metric strong{font-size:clamp(23px,2.2vw,32px);font-weight:850;letter-spacing:-1.1px;margin-top:6px;color:#172841;position:relative;z-index:1}
.metric-sub{font-size:11px;color:#91a0b3;margin-top:auto;position:relative;z-index:1}
.metrics.compact .metric{min-height:133px}
.metrics.compact .metric strong{font-size:26px}
.dashboard-columns{grid-template-columns:minmax(0,1.2fr) minmax(310px,.85fr);gap:21px}
.panel{background:#fff;border:1px solid #e5eaf2;border-radius:17px;padding:25px;box-shadow:var(--shadow-soft);transition:box-shadow .22s,border-color .22s;min-width:0}
.panel:hover{border-color:#dbe3ef;box-shadow:0 11px 33px rgba(23,44,70,.06)}
.panel-title{gap:15px;margin-bottom:18px}
.panel-title h3{font-size:16px;letter-spacing:-.3px;color:#1b2d46}
.panel-title p{font-size:12px;line-height:1.65}
.panel.pale-panel{background:linear-gradient(160deg,#ffffff,#f7f9fe 95%)}
.intro{margin-bottom:24px}
.intro h2{font-size:24px;letter-spacing:-.65px;font-weight:800;margin-bottom:6px}
.intro p{font-size:12.5px;max-width:750px;line-height:1.65}
.intro .button{flex:none}
.people-preview{gap:0}
.preview-person{padding:13px 7px;border-bottom-color:#edf0f5;gap:12px}
.preview-person strong{color:#273951;font-weight:750}
.preview-person span{color:#8594a9}
.avatar{width:39px;height:39px;border-radius:13px;background:linear-gradient(145deg,#edf0fc,#dbe5f7);color:#4b67a0;border:1px solid #e0e7f4;letter-spacing:.3px;font-weight:850}
.period-highlight{background:linear-gradient(128deg,#eef2ff,#f8f7fb);border:1px solid #e4e8f6;padding:25px;border-radius:15px}
.period-highlight span{font-size:10px;color:#667b9f}
.period-highlight strong{font-size:21px;color:#233d64;letter-spacing:-.5px}
.pill{border-radius:8px;padding:6px 10px;font-size:10px;letter-spacing:.015em}
.tag{border-radius:7px;padding:5px 8px;background:#f0f3f9;color:#4f6181}

/* Actions, formulaires, tables */
.button{border-radius:10px;min-height:41px;box-shadow:none;padding:10px 15px;transition:transform .2s,box-shadow .2s,background .2s,border-color .2s,filter .2s;font-weight:750;letter-spacing:.005em}
.button:hover:not(:disabled){filter:none;transform:translateY(-1px)}
.button:active:not(:disabled){transform:translateY(0) scale(.985)}
.button.primary{background:linear-gradient(115deg,#d92f43,#bc2440);box-shadow:0 6px 16px rgba(201,45,66,.13);color:#fff}
.button.primary:hover:not(:disabled){background:linear-gradient(115deg,#e43d54,#c72442);box-shadow:0 10px 25px rgba(200,45,67,.22)}
.button.secondary{background:#fff;border-color:#dde5f0;color:#455b74}
.button.secondary:hover:not(:disabled){background:#f8fafd;border-color:#bfcbdb}
.button.danger-outline{background:#fff8f9;border-color:#f1ccd1}
.button.small{min-height:34px;font-size:11px}
.inline-button{background:#f8fafc;border:1px solid #dee6f2;border-radius:8px;transition:background .18s,border-color .18s,transform .18s}
.inline-button:hover{background:#edf3fc;border-color:#bccce2;transform:translateY(-1px)}
.table-scroll{border:1px solid #e7edf4;border-radius:12px;overflow:auto;max-width:100%}
table{font-size:12px}
th{background:#f7f9fc;font-size:10px;color:#718199;padding:14px 13px;border-bottom:1px solid #e5ebf4;letter-spacing:.65px}
td{padding:14px 13px;border-bottom-color:#ecf0f5}
tbody tr{transition:background .15s}
tr:hover td{background:#f7faff}
tr:last-child td{border-bottom:0}
.empty{padding:38px 20px;color:#8899b1}
.notice{border-radius:11px;background:#f1f6fd;border-color:#deebfb;font-size:12px;padding:17px 19px}
.fields-grid{gap:19px}
.form-actions{gap:10px}
.spaced-panel{margin-top:22px}
.doc-card{border-radius:13px;background:#fbfcff;border-color:#e1e9f3;transition:border-color .2s,box-shadow .2s}
.doc-card:hover{border-color:#b8c9e1;box-shadow:0 6px 20px #1b345411}
.permit-picks label{transition:background .16s,border-color .16s}
.permit-picks label:has(input:checked){background:#fff0f2;border-color:#f4a2ae;color:#b82d44}
.export-grid{gap:20px}
.export-grid .panel{padding:26px}
.export-grid .button{margin:7px 7px 5px 0}
.ops-alert-metrics>div{border-radius:14px;border-left:3px solid #ce3a51;box-shadow:var(--shadow-soft)}
.ops-alert-metrics strong{font-size:27px;font-weight:820}

/* Fenêtres modales */
.overlay{background:rgba(8,17,32,.76);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);padding:16px;animation:overlay-in .2s ease}
@keyframes overlay-in{from{opacity:0}to{opacity:1}}
.dialog{border-radius:18px;border:1px solid rgba(255,255,255,.8);box-shadow:0 25px 100px #0610217a;animation:modal-in .26s cubic-bezier(.2,.8,.2,1)}
@keyframes modal-in{from{opacity:0;transform:translateY(17px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
.dialog-header{padding:23px 28px;position:sticky;top:0;z-index:2;background:rgba(255,255,255,.97);backdrop-filter:blur(10px)}
.dialog-header h2{font-weight:830;letter-spacing:-.5px}
.dialog-content{padding:22px 28px 28px}
.toast{background:#1b2a41;border:1px solid #3c506b;box-shadow:0 20px 44px #06152d44;border-radius:13px;animation:toast-rise .3s cubic-bezier(.2,.8,.2,1)}
.toast.error{background:#9e2438;border-color:#db6577}
@keyframes toast-rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:translateY(0)}}

/* Recherche globale Ctrl+K */
.command-overlay{position:fixed;inset:0;z-index:30;background:rgba(6,15,29,.7);backdrop-filter:blur(9px);display:flex;justify-content:center;align-items:flex-start;padding:15vh 16px 30px;animation:overlay-in .15s ease}
.command-palette{width:min(620px,100%);border:1px solid #e1e6ef;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 40px 100px rgba(3,12,31,.45);animation:modal-in .2s ease}
.command-search-row{display:flex;align-items:center;gap:13px;padding:15px 19px;border-bottom:1px solid #e8edf5}
.command-search-row>span{font-size:28px;color:#d64154}
.command-search-row input{border:0;box-shadow:none!important;padding:4px 0;flex:1;background:transparent;font-size:16px;font-weight:600;min-height:36px}
.command-search-row kbd{border:1px solid #e0e6ef;border-radius:6px;padding:5px 8px;color:#91a0b3;font-size:10px}
.command-results{max-height:min(430px,55vh);overflow-y:auto;padding:9px}
.command-group{padding:12px 12px 6px;color:#8492a7;font-size:10px;letter-spacing:1.15px;font-weight:900}
.command-result{width:100%;border:0;border-radius:10px;background:transparent;color:#2b415e;display:flex;align-items:center;gap:12px;text-align:left;padding:12px;transition:background .15s}
.command-result:hover,.command-result[aria-selected="true"]{background:#f0f4fb}
.command-result-icon{width:34px;height:34px;border-radius:10px;background:#ecf1fa;color:#5273af;display:grid;place-items:center;font-size:15px}
.command-result strong{font-size:13px}
.command-result small{font-size:11px;color:#8492a7;display:block;margin-top:2px}
.command-result-arrow{margin-left:auto;color:#a9b6c7;font-size:16px}
.command-footer{padding:11px 18px;display:flex;justify-content:space-between;gap:10px;border-top:1px solid #edf1f6;background:#fafbfd;color:#8b9bb0;font-size:10px}
.command-empty{padding:32px 20px;text-align:center;font-size:12px;color:#8293a9}
.mobile-scrim{position:fixed;inset:0;background:#0a1826b5;z-index:11;backdrop-filter:blur(3px)}

/* Page connexion et création initiale */
.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;background:#ecf0f7;overflow-x:hidden;padding:24px;isolation:isolate}
.auth-background{position:absolute;inset:0;z-index:-1;overflow:hidden;pointer-events:none;background:
 radial-gradient(ellipse 700px 450px at 15% 10%,#dce5f2,transparent),
 radial-gradient(ellipse 600px 430px at 90% 90%,#dfebfa,transparent),#eff3f8}
.auth-background span{position:absolute;display:block;border:1px solid #ccd5e5;border-radius:50%;width:740px;height:740px;left:-460px;bottom:-470px;opacity:.55}
.auth-background span:nth-child(2){left:auto;right:-570px;top:-500px;width:850px;height:850px;opacity:.45}
.auth-background span:nth-child(3){left:50%;bottom:-780px;width:1200px;height:950px;opacity:.2}
.login-shell{position:relative;z-index:1;display:grid;grid-template-columns:1.02fr .98fr;width:min(1170px,100%);min-height:680px;background:#fff;border-radius:25px;box-shadow:0 30px 100px #22395623;border:1px solid #ffffffd9;overflow:hidden}
.login-brand{position:relative;padding:31px 43px 24px;justify-content:space-between;background:
 radial-gradient(circle at 90% 30%,rgba(218,60,85,.23),transparent 33%),
 radial-gradient(circle at 5% 90%,rgba(55,90,151,.24),transparent 41%),
 linear-gradient(150deg,#14223a,#0a1426 70%);overflow:hidden;color:white}
.login-brand::before{content:"";position:absolute;inset:0;opacity:.09;background-image:linear-gradient(90deg,#fff 1px,transparent 1px),linear-gradient(0deg,#fff 1px,transparent 1px);background-size:48px 48px;pointer-events:none;mask-image:linear-gradient(90deg,transparent,#000)}
.login-brand::after{content:"";position:absolute;right:-160px;top:160px;width:460px;height:460px;border:1px solid #f2aaba33;border-radius:50%;box-shadow:0 0 0 66px #ffffff06,0 0 0 125px #ffffff04;pointer-events:none}
.auth-brand-top{display:flex;align-items:center;gap:12px;position:relative;z-index:1}
.auth-brand-top img{width:50px;height:60px;object-fit:contain;margin:0;filter:drop-shadow(0 5px 9px #0005)}
.auth-wordmark{display:flex;flex-direction:column;gap:4px}
.auth-wordmark strong{font-size:25px;letter-spacing:.07em;line-height:1;font-weight:900}
.auth-wordmark span{color:#93a9c7;font-size:9px;letter-spacing:1.1px;font-weight:800}
.auth-hero{position:relative;z-index:1;margin:36px 0 auto;padding-top:35px}
.auth-kicker{display:inline-flex;align-items:center;gap:9px;border:1px solid #b9cced24;border-radius:40px;background:#ffffff0b;color:#d2dded;font-size:9px;font-weight:850;letter-spacing:1.45px;padding:9px 12px}
.auth-live-dot{width:7px;height:7px;border-radius:50%;background:#6bddaa;box-shadow:0 0 0 4px #6bddaa19}
.login-brand .auth-hero h1{margin:24px 0 17px;color:#fff;font-size:clamp(34px,3.6vw,51px);line-height:1.16;letter-spacing:-1.5px;font-weight:850}
.login-brand .auth-hero h1 em{font-style:normal;color:#ff8ea1}
.login-brand .auth-hero>p{color:#a9bdd4;font-size:13px;line-height:1.85;max-width:390px}
.auth-feature-list{display:grid;gap:19px;margin-top:42px}
.auth-feature-list>div{display:flex;gap:13px;align-items:center}
.auth-feature-icon{border:1px solid #d0def125;background:#ffffff0b;width:39px;height:39px;border-radius:12px;display:grid;place-items:center;color:#ff9dac;font-size:11px;font-weight:850;flex:none}
.auth-feature-list strong,.auth-feature-list small{display:block}
.auth-feature-list strong{font-size:13px;color:#f3f6fd}
.auth-feature-list small{font-size:11px;color:#92a8c2;margin-top:3px}
.auth-brand-footer{display:flex;gap:10px;justify-content:space-between;align-items:center;color:#8599b6;border-top:1px solid #ffffff19;padding-top:17px;z-index:1;font-size:9px;letter-spacing:1.2px;font-weight:850;position:relative;margin-top:45px}
.login-card{padding:46px clamp(29px,5vw,72px);display:flex;justify-content:center;background:#fff;min-width:0}
.auth-form-wrap{width:min(420px,100%);margin:auto}
.auth-topline{display:flex;justify-content:space-between;align-items:center;gap:9px;margin-bottom:32px}
.auth-status{display:inline-flex;align-items:center;gap:9px;font-size:11px;color:#42705a;font-weight:800}
.auth-status span{width:7px;height:7px;border-radius:50%;background:#27b77c;box-shadow:0 0 0 4px #27b77c1b}
.auth-version,.auth-return{font-size:11px;color:#8b99ac;font-weight:700}
.auth-return{text-decoration:none;color:#596a86}
.auth-return:hover{color:#b92a43}
.auth-icon{width:54px;height:54px;display:grid;place-items:center;background:linear-gradient(145deg,#ffeff1,#fbe0e5);border:1px solid #f8d2da;color:#c43048;border-radius:17px;margin-bottom:23px;box-shadow:0 10px 24px #ba39421a}
.auth-icon svg{width:25px;height:25px}
.auth-form-wrap .eyebrow{font-size:9px;letter-spacing:1.8px;margin-bottom:10px}
.auth-form-wrap h2{font-size:clamp(23px,2.5vw,31px);letter-spacing:-1.05px;font-weight:840;color:#19283e;margin:0 0 11px;line-height:1.2}
.auth-form-wrap .muted{color:#77879d;font-size:12.5px;line-height:1.75;margin:0 0 30px}
.auth-form-wrap form{display:flex;flex-direction:column;gap:11px}
.auth-form-wrap form label{font-weight:770;color:#384d68;font-size:12px;letter-spacing:.015em;margin-top:3px}
.auth-input-wrap{position:relative;display:flex;align-items:center}
.auth-input-wrap input{border:1px solid #dfe6ef;background:#f8fafd;border-radius:11px;min-height:50px;padding:12px 15px;box-shadow:none;font-size:13px;color:#213550}
.auth-input-wrap input::placeholder{color:#a5b0be}
.auth-input-wrap input:focus{background:#fff;border-color:#6480be;box-shadow:0 0 0 4px #7b96d31a;outline:none}
.auth-input-icon{position:absolute;left:15px;z-index:1;color:#8a9db6;font-size:15px;font-weight:800;pointer-events:none}
.auth-input-icon+input{padding-left:44px}
.password-switch{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:transparent;font-size:11px;font-weight:750;color:#607895;padding:7px 9px;border-radius:6px}
.password-switch:hover{background:#e9eef8;color:#b52a44}
.auth-input-wrap:has(.password-switch) input{padding-right:83px}
.auth-submit{min-height:52px;border-radius:11px!important;margin-top:13px;font-size:13px!important;justify-content:space-between;padding-left:19px;padding-right:17px}
.auth-submit span{font-size:19px;font-weight:400}
.auth-form-wrap .feedback{margin-top:14px;min-height:17px;color:#177f57;font-size:12px;line-height:1.55;overflow-wrap:anywhere}
.auth-form-wrap .feedback.error{color:#c42e43}
.auth-divider{display:flex;align-items:center;gap:12px;color:#a7b1bf;font-size:9px;letter-spacing:.9px;font-weight:850;margin:18px 0}
.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#e7ebf2}
.auth-setup-help{display:flex;gap:12px;align-items:flex-start;background:#f7f9fd;border:1px solid #e9edf4;border-radius:11px;padding:13px 14px;color:#7d8da2;font-size:11px;line-height:1.65}
.auth-setup-help>span{font-size:14px;color:#b83b56;flex:none}
.auth-setup-help p{margin:0}
.auth-setup-help strong{color:#536782}
.auth-setup-help a{color:#b52943;font-weight:800;text-decoration:underline;text-underline-offset:2px}
.auth-security-note{text-align:center;margin:20px 0 0;color:#98a5b6;font-size:10px}
.setup-page .login-shell{min-height:740px}
.setup-page .auth-hero{margin-top:20px}
.setup-steps{margin-top:32px;display:grid;gap:15px}
.setup-steps>div{display:flex;gap:14px;align-items:flex-start}
.setup-steps>div>span{font-size:11px;color:#ff8b9b;font-weight:850;background:#ffffff14;border:1px solid #ffffff1e;border-radius:10px;width:35px;height:35px;display:grid;place-items:center;flex:none}
.setup-steps p{margin:0}
.setup-steps strong{color:#f2f6fa;display:block;font-size:12px}
.setup-steps small{color:#a0b1cb;display:block;font-size:11px;line-height:1.55;margin-top:3px}
.setup-page .auth-topline{margin-bottom:18px}
.setup-page .auth-form-wrap .muted{margin-bottom:18px}
.setup-page .auth-form-wrap form{gap:9px}
.setup-page .auth-input-wrap input{min-height:44px}
.setup-page .auth-icon{margin-bottom:14px}
.setup-page .auth-form-wrap h2{font-size:26px}
.setup-helper{background:#f8fafe;border:1px solid #dfe7f4;border-radius:12px;padding:18px;margin:13px 0;line-height:1.65;color:#62758f}
.setup-helper strong{font-size:12px;color:#2a405e}
.setup-helper p{font-size:11px;margin:8px 0}
.setup-helper code,.auth-setup-help code{font-size:11px;background:#eaf0f9;padding:2px 4px;border-radius:4px;color:#314b6b}
.generated-key{font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere;background:#fff;padding:9px;border-radius:7px;border:1px solid #dce5ef}
.auth-field-note{font-size:10px;color:#7d8da3;margin:0}

/* Mise en page responsive */
@media(max-width:1360px){
 .sidebar{width:250px;min-width:250px}
 .brand strong{font-size:21px}
 .global-search-trigger{min-width:170px}
 .topbar-date{display:none}
 .metrics{gap:13px}
}
@media(max-width:1120px){
 .sidebar{width:235px;min-width:235px}
 .topbar{padding:15px 23px}
 .content{padding:24px 23px 50px}
 .account{max-width:170px}
 .global-search-trigger{min-width:45px;padding:10px}
 .global-search-trigger>span:not(.search-glass),.global-search-trigger kbd{display:none}
 .dashboard-columns{grid-template-columns:1fr}
 .hero-symbol{width:130px;margin-right:0}
}
@media(max-width:880px){
 .sidebar{width:248px;min-width:248px;position:fixed;inset:0 auto 0 0;height:100dvh;transform:translateX(-106%);transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:18px 0 65px #08162830;z-index:14}
 body.sidebar-open .sidebar{transform:translateX(0)}
 .mobile-menu-button{display:flex}
 .main-area{width:100%}
 .topbar{min-height:77px}
 .navigation{max-height:calc(100dvh - 240px)}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .sidebar .brand,.sidebar .sidebar-label,.sidebar .sidebar-bottom{display:flex}
 .sidebar .sidebar-label{display:block}
 .nav-link{font-size:12.7px;justify-content:flex-start;padding:9px 11px;gap:13px}
 .nav-link span:first-child{font-size:17px}
 .login-shell{grid-template-columns:.9fr 1.1fr}
 .login-brand{padding:27px}
 .login-card{padding:33px}
 .auth-feature-list{gap:14px;margin-top:24px}
 .login-brand .auth-hero h1{font-size:36px}
}
@media(max-width:650px){
 .topbar{padding:13px 16px;gap:10px}
 .topbar h1{font-size:19px}
 .breadcrumb{font-size:10px}
 .global-search-trigger{padding:9px;min-width:38px}
 .account>div{display:none}
 .account{padding-left:8px;max-width:none}
 .account-icon{width:36px;height:36px}
 .logout-button{display:none!important}
 .topbar-actions{gap:8px}
 .content{padding:17px 13px 44px}
 .dashboard-hero{border-radius:16px;min-height:0}
 .hero-inner{padding:24px 21px 17px;min-height:250px}
 .hero-inner h2{font-size:29px}
 .hero-inner p{font-size:12px}
 .hero-symbol{display:none}
 .hero-footer{padding:11px 21px}
 .hero-footer span:last-child{display:none}
 .hero-actions{gap:8px}
 .hero-actions .button{font-size:11px;padding:9px 12px}
 .section-intro h2{font-size:20px}
 .section-period{display:none}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .metric{padding:15px 14px;min-height:146px;border-radius:13px}
 .metric strong{font-size:23px}
 .metric-icon{display:grid;width:32px;height:32px;font-size:16px;margin-bottom:9px}
 .metric small{font-size:11px}
 .metric-sub{font-size:10px}
 .panel{padding:17px;border-radius:13px}
 .panel-title{align-items:flex-start}
 .intro{gap:12px}
 .intro h2{font-size:21px}
 .intro .button{width:auto}
 .fields-grid{grid-template-columns:1fr}
 .dialog-header,.dialog-content{padding:17px}
 .doc-grid{grid-template-columns:1fr}
 .export-grid,.ops-alert-metrics{grid-template-columns:1fr}
 .table-scroll{margin:0}
 .login-page{padding:0;background:#fff;display:block}
 .auth-background{display:none}
 .login-shell,.setup-page .login-shell{width:100%;min-height:100vh;border-radius:0;box-shadow:none;border:0;display:flex;flex-direction:column;overflow:visible}
 .login-brand{padding:18px 25px 19px;display:block;min-height:auto}
 .auth-brand-top img{height:43px;width:39px}
 .auth-wordmark strong{font-size:21px}
 .auth-wordmark span{font-size:8px}
 .auth-hero,.auth-brand-footer{display:none}
 .login-card{flex:1;display:flex;padding:35px 25px;justify-content:flex-start}
 .auth-form-wrap{margin:auto;width:min(430px,100%)}
 .auth-topline{margin-bottom:31px}
 .auth-form-wrap h2{font-size:27px}
 .setup-page .login-card{padding-top:28px}
 .command-overlay{padding-top:8vh}
 .command-footer{font-size:9px}
}
@media(max-width:375px){.metrics{grid-template-columns:1fr}.metric{min-height:134px}.hero-inner h2{font-size:26px}.hero-actions .button{width:100%}}
@media(prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}
 .hero-symbol{animation:none}
}
