:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',sans-serif;font-size:15px;--bg:#f4f7fc;--navy:#071a36;--deep:#091d3a;--primary:#286af3;--ink:#162848;--muted:#6a7890;--border:#e1e8f3;--soft:#f0f5fe;--teal:#13adbb}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #13adbb;outline-offset:3px}[hidden]{display:none!important}.login-layout{min-height:100vh;display:grid;grid-template-columns:1.06fr .94fr}.login-hero{background:radial-gradient(circle at 80% 45%,#204b89 0%,transparent 38%),radial-gradient(circle at 0 0,#0b3a76 0%,transparent 48%),#071a36;color:#eaf5ff;padding:52px clamp(32px,5vw,96px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-hero:after{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(#6ce9fa0c 1px,transparent 1px),linear-gradient(90deg,#6ce9fa0c 1px,transparent 1px);background-size:50px 50px;mask-image:linear-gradient(60deg,transparent,#000)}.brand-mark{position:relative;z-index:1;display:flex;align-items:center;gap:12px;font-size:24px;font-weight:850;letter-spacing:.08em}.brand-mark img{width:55px;height:55px;object-fit:contain;border-radius:12px;background:#fff}.brand-mark small{display:block;font-size:10px;letter-spacing:.2em;color:#8db4dc;font-weight:700}.hero-copy{position:relative;z-index:1;max-width:650px;padding:60px 0}.eyebrow{font-weight:830;font-size:12px;letter-spacing:.18em;color:#6ae1f1}.eyebrow.blue{color:#2d6ff0}.hero-copy h1{font-weight:860;font-size:clamp(46px,5vw,78px);line-height:1.08;letter-spacing:-.06em;margin:22px 0}.hero-copy h1 span{color:#65dff0}.hero-copy p{font-size:18px;line-height:1.75;color:#afc7df;max-width:510px}.hero-facts{display:grid;gap:14px;margin-top:40px;color:#d8f6fa;font-weight:650;font-size:14px}.hero-bottom{position:relative;z-index:1;color:#bed5ed;font-size:12px;letter-spacing:.09em}.hero-bottom span{color:#7792b3}.login-panel{display:grid;place-items:center;padding:42px}.login-card{width:min(450px,100%)}.login-card h2{font-size:clamp(35px,3.7vw,51px);line-height:1.15;letter-spacing:-.05em;margin:14px 0}.subtle{color:var(--muted)}.login-card .subtle{max-width:370px;margin-bottom:30px}.login-card label,.form-stack label{display:grid;gap:8px;font-weight:720;color:#263955;font-size:13px}.form-stack{display:grid;gap:18px}.form-stack input,.form-stack select,.form-stack textarea,input,select,textarea{width:100%;border:1px solid #d9e3f1;border-radius:12px;background:#fff;color:#172a48;min-height:45px;padding:11px 13px;outline:0}.form-stack textarea{min-height:95px;resize:vertical}.form-stack input:focus,.form-stack select:focus{border-color:#448aff;box-shadow:0 0 0 3px #448aff21}.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border-radius:11px;padding:12px 18px;font-weight:740;border:1px solid transparent;min-height:43px;text-decoration:none;transition:.15s}.btn.primary{background:linear-gradient(120deg,#2d71f3,#1264e6);color:#fff;box-shadow:0 10px 18px #1c6be01c}.btn.primary:hover{background:#145bd0}.btn.ghost{background:#fff;color:#2a527f;border-color:#dce5f0}.btn.soft{background:#e9f1ff;color:#215fc2}.btn.danger{background:#fff1f1;border:1px solid #f6c1c1;color:#b42a2a}.btn.wide{width:100%;margin-top:6px}.btn.compact{min-height:35px;padding:6px 12px;font-size:13px}.login-note{font-size:12px;color:#8090a7;margin:23px 0}.login-links{border-top:1px solid var(--border);padding-top:20px}.login-links a{font-weight:700;color:#2760bf;font-size:13px}.tenant-hint{font-size:13px;background:#e8f5ff;border-radius:10px;padding:11px;margin-bottom:18px;color:#215ca1}.mobile-logo{display:none}.workspace{display:grid;grid-template-columns:266px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#fff;display:flex;flex-direction:column;gap:14px;padding:30px 18px;min-height:100vh;position:sticky;top:0;height:100vh}.side-brand{font-size:22px;padding-left:8px}.side-brand img{width:45px;height:45px}.side-divider{height:1px;background:#18375f;margin:13px 5px}.company-chip{margin:0 5px 11px;padding:13px 14px;background:#122d53;border:1px solid #204471;border-radius:13px;color:#d0e6fd;font-weight:730;font-size:13px;overflow-wrap:anywhere}.company-chip small{display:block;color:#6cdceb;text-transform:uppercase;font-size:10px;letter-spacing:.08em;margin-bottom:4px}#nav{display:grid;gap:6px;overflow-y:auto}#nav button{display:flex;gap:13px;align-items:center;background:transparent;color:#a9c3e4;border:0;text-align:left;border-radius:11px;padding:13px 14px;font-weight:710;font-size:14px}#nav button:hover,#nav button.active{background:#1a3c6b;color:#fff}#nav .ico{width:23px;display:inline-flex;font-size:17px}.sidebar-bottom{margin-top:auto;font-size:12px;color:#9cbedf;padding:12px 15px}.sidebar-bottom small{opacity:.6}.status-dot{display:inline-block;width:8px;height:8px;background:#34d4a9;border-radius:50%;margin-right:5px}.main-panel{min-width:0}.topbar{height:85px;border-bottom:1px solid var(--border);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.2vw,54px);gap:20px}.breadcrumb{font-weight:800;font-size:16px}.topbar-right{display:flex;align-items:center;gap:18px;font-size:13px;font-weight:700;color:#687a94}.view{padding:38px clamp(20px,3.2vw,54px) 80px;max-width:1550px;margin:auto}.page-head{display:flex;justify-content:space-between;align-items:start;gap:16px;margin:0 0 28px}.page-head h1{font-size:clamp(27px,3.2vw,40px);letter-spacing:-.05em;line-height:1.13;margin:5px 0 8px}.page-head p{color:var(--muted);max-width:700px}.mini-tag{font-weight:800;font-size:11px;letter-spacing:.1em;color:#2864d0}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.stat-card,.panel,.app-card{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 14px 30px #14336708}.stat-card{padding:25px}.stat-card .stat-number{font-size:33px;font-weight:840;letter-spacing:-.04em;margin-top:13px}.stat-card .stat-title{color:#71829a;font-size:12px;font-weight:790;text-transform:uppercase;letter-spacing:.08em}.stat-card .stat-sub{color:#74849d;font-size:12px;margin-top:5px}.panel{padding:25px;margin:20px 0}.panel h2{font-size:20px;letter-spacing:-.025em;margin:0 0 7px}.panel p{color:var(--muted);margin-top:0}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.app-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}.app-card{padding:27px;display:flex;flex-direction:column;gap:15px;min-height:215px}.app-card .app-icon{display:grid;place-items:center;width:51px;height:51px;background:#eaf2ff;border-radius:16px;font-size:25px}.app-card h3{margin:0;font-size:19px}.app-card p{margin:0;color:#6a7e97;font-size:14px;flex:1}.app-card .card-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px}.pill{display:inline-flex;border-radius:99px;font-size:11px;padding:5px 9px;font-weight:780;background:#f0f3f8;color:#6f7e92}.pill.ok{background:#d9f9ee;color:#07805e}.pill.warn{background:#fff2cf;color:#996012}.table-wrap{overflow:auto;border:1px solid var(--border);border-radius:12px}.data-table{width:100%;border-collapse:collapse;background:white;min-width:650px}.data-table th,.data-table td{text-align:left;padding:14px 15px;border-bottom:1px solid #e9eef7;vertical-align:middle;font-size:13px}.data-table th{color:#60758e;font-size:11px;text-transform:uppercase;letter-spacing:.07em;background:#f7f9fd}.data-table tr:last-child td{border-bottom:0}.inline-actions{display:flex;gap:7px;flex-wrap:wrap}.inline-actions button{font-size:12px;padding:7px 10px;min-height:34px}.two-cols{display:grid;grid-template-columns:1fr 1.5fr;gap:20px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label.wide-field{grid-column:1/-1}.form-grid .btn{align-self:end}.summary-hint{padding:14px 16px;border:1px solid #d6e8ff;background:#eef6ff;color:#2c5684;border-radius:12px;font-size:13px;margin:18px 0}.empty{padding:38px;text-align:center;color:#77869c;border:1px dashed #cad8e9;border-radius:13px}.mobile-menu{display:none;background:white;border:1px solid var(--border);border-radius:9px;padding:8px}.toast{position:fixed;bottom:25px;right:25px;z-index:999;background:#0e2851;color:white;padding:15px 23px;border-radius:12px;box-shadow:0 20px 50px #0003;max-width:370px}.toast.error{background:#ad1e35}dialog{border:1px solid var(--border);border-radius:17px;width:min(460px,calc(100% - 28px));padding:27px;box-shadow:0 25px 90px #09234b42}dialog::backdrop{background:#061d3c8c}.modal-title{font-size:22px;font-weight:800;margin-bottom:12px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.muted{color:var(--muted)}.mono{font-family:ui-monospace,Consolas,monospace;font-size:12px}.text-right{text-align:right}.menu-overlay{display:none}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.two-cols{grid-template-columns:1fr}.login-hero{padding:40px}.hero-copy h1{font-size:56px}}@media(max-width:750px){.login-layout{display:block}.login-hero{display:none}.login-panel{min-height:100vh;padding:28px}.mobile-logo{display:block;margin-bottom:30px}.mobile-logo img{width:68px;height:68px;object-fit:contain}.workspace{grid-template-columns:1fr}.sidebar{position:fixed;z-index:500;left:0;top:0;width:min(285px,88vw);transform:translateX(-110%);transition:transform .2s}.sidebar.open{transform:translateX(0)}.topbar{height:68px;padding:0 17px}.topbar-right{gap:8px}.topbar-right span{display:none}.mobile-menu{display:inline-flex}.view{padding:23px 15px 60px}.cards,.app-grid{grid-template-columns:1fr}.page-head{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.panel{padding:18px}.company-chip{max-width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* DIGINEXIS CLOUD V2 — identité premium, ergonomie et accessibilité.
   Complément non destructif à la feuille historique. */
:root {
  --bg:#f3f6fb;
  --navy:#091e39;
  --deep:#0b2343;
  --primary:#245dca;
  --ink:#172c46;
  --muted:#64768e;
  --border:#dce5f0;
  --soft:#eef4ff;
  --teal:#0b948b;
}
body{font-family:Inter,'Segoe UI',Arial,system-ui,sans-serif;background:#f3f6fb;font-size:14px;letter-spacing:-.005em}
.workspace {grid-template-columns:282px minmax(0,1fr)}
.sidebar{background:linear-gradient(155deg,#071a31 0%,#0b2850 58%,#07192d 100%);padding:27px 18px 24px;box-shadow:14px 0 33px #1731520b}
.brand-mark{letter-spacing:.09em}.side-brand{font-size:22px;gap:13px;padding:6px}
.side-brand img{width:52px;height:52px;border-radius:15px;box-shadow:0 8px 18px #0005}
.side-brand small{font-size:9px;color:#9fcaee;letter-spacing:.15em;margin-top:3px}
.side-divider{background:#ffffff24;margin:15px 7px 8px}
.company-chip{background:linear-gradient(110deg,#20427480,#143055a3);border:1px solid #57799d55;padding:17px 16px;border-radius:16px;margin:4px 3px 15px}
.company-chip small{color:#7bdedd}
#nav{gap:7px;padding-right:2px}#nav button{font-size:13px;font-weight:700;min-height:47px;padding:13px;border:1px solid transparent;color:#b6cbe2;transition:background .18s,border-color .18s}
#nav button:hover{background:#ffffff12;border-color:#ffffff10}#nav button.active{background:linear-gradient(100deg,#2870db66,#41bbc422);border-color:#78aee355;color:white;box-shadow:inset 3px 0 0 #61d7e6}
#nav .ico{font-size:19px;flex:0 0 24px;justify-content:center}
.sidebar-bottom{border-top:1px solid #ffffff21;padding:20px 9px 0;margin-top:auto}
.main-panel{background:radial-gradient(circle at 95% 4%,#deebfd,#f3f6fb 29%,#f3f6fb 100%)}
.topbar{height:78px;background:#ffffffed;border-color:#dfe8f3;padding:0 clamp(22px,3vw,52px);box-shadow:0 3px 18px #102e5008;position:sticky;top:0;z-index:30;backdrop-filter:blur(10px)}
.breadcrumb{font-size:14px;letter-spacing:0;color:#274260}.topbar-right{font-size:12px;gap:17px}
.view{max-width:1500px;padding:40px clamp(22px,3vw,52px) 90px}
.page-head{margin-bottom:27px;align-items:center}.page-head h1{font-size:clamp(28px,3.1vw,41px);color:#0b2342;letter-spacing:-.045em}.page-head p{font-size:14px;line-height:1.65;margin-bottom:0}.mini-tag{color:#147aab;font-size:11px;letter-spacing:.15em}
.cards{gap:16px}.stat-card{border-color:#dae6f4;border-radius:19px;padding:24px 27px;position:relative;overflow:hidden;box-shadow:0 10px 30px #16365708;background:linear-gradient(160deg,#fff,#f9fcff)}
.stat-card:before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#168daa,#2d68d1,#c5e7f3)}
.stat-card .stat-title{color:#5d728c;letter-spacing:.1em}.stat-card .stat-number{font-size:38px;color:#112e53;margin-top:10px}.stat-card .stat-sub{font-size:12px;color:#7890a9}
.panel{border:1px solid #dce5f0;border-radius:19px;box-shadow:0 12px 40px #12315209;background:#fff;padding:27px;margin:21px 0}.panel h2{color:#172f50;font-size:19px}.panel p{line-height:1.65}
.panel-head{flex-wrap:wrap;margin-bottom:19px}.panel-head p{margin:4px 0 0;max-width:650px;font-size:12px}
.btn{border-radius:10px;font-size:13px;min-height:42px;transition:filter .2s,transform .15s,box-shadow .15s;white-space:normal;text-align:center}
.btn:hover:not(:disabled){filter:brightness(.96);transform:translateY(-1px);box-shadow:0 8px 17px #0b37611c}
.btn:disabled{opacity:.5;cursor:not-allowed}.btn.primary{background:linear-gradient(115deg,#2374d3,#2058c4);box-shadow:0 6px 14px #1c5fc020}
.btn.soft{background:#eaf3ff;color:#1b58ae}.btn.ghost{border-color:#d4e0ef;color:#21486d}.btn.danger{background:#fff1f0;color:#9d2531}
input,select,textarea,.form-stack input,.form-stack select{border-color:#d7e1ee;background:#fbfdff;min-height:44px;font-size:14px}
input:focus-visible,select:focus-visible,textarea:focus-visible{border-color:#3184d9;box-shadow:0 0 0 3px #337dca19}
.form-grid{gap:16px}.form-stack{gap:17px}.form-grid label,.form-stack label{gap:6px}
.table-wrap{border-radius:13px;border-color:#dce6f2}.data-table{min-width:700px}
.data-table th{background:#f5f8fd;color:#597089;font-size:11px;letter-spacing:.075em;padding:15px 16px}
.data-table td{border-color:#e9eef5;font-size:13px;padding:15px 16px}.data-table tbody tr:hover{background:#f8fbff}.data-table [hidden]{display:none!important}
.pill.ok{background:#dff8ed;color:#177358}.pill.warn{background:#fff2d9;color:#946014}
.app-card{border-radius:18px;box-shadow:none;min-height:230px}.app-card .app-icon{background:linear-gradient(135deg,#dceaff,#edf8ff);width:57px;height:57px}.app-card:hover{box-shadow:0 10px 30px #0e2e530d;border-color:#bcd4f4}
.login-layout{grid-template-columns:1.07fr .93fr;background:#f5f8fd}.login-hero{background:radial-gradient(circle at 77% 29%,#1e619469 0,transparent 34%),radial-gradient(circle at -5% 85%,#174e83 0,transparent 48%),linear-gradient(150deg,#04172e,#0a2a50 70%,#071d38);padding:52px clamp(34px,5.2vw,95px)}
.login-hero:after{background-size:58px 58px;opacity:.7}
.hero-copy h1{font-size:clamp(44px,5.2vw,76px);line-height:1.07}.hero-copy h1 span{color:#5ee0e1}.hero-copy p{color:#c1d7e9}
.hero-facts{padding:20px 0;border-top:1px solid #ffffff27;gap:17px}.hero-facts span{display:block}
.login-panel{padding:48px}.login-card{background:#fff;border-radius:24px;border:1px solid #dce6f1;box-shadow:0 25px 65px #0f356313;padding:40px;max-width:500px;width:100%}
.login-card h2{font-size:clamp(30px,3.2vw,44px);color:#122d4c}.login-note{line-height:1.65}.login-links a{text-decoration:none}.login-links a:hover{text-decoration:underline}
.password-control{position:relative;display:block}.password-control input{padding-right:102px}.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);background:#edf3fc;border:0;border-radius:8px;padding:8px 10px;min-height:32px;color:#2354a0;font-size:12px;font-weight:750}
.tenant-hint{border:1px solid #c6e3fc;background:#edf7ff}
.toolbar{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin:21px 0}.toolbar label{display:grid;gap:7px;min-width:230px;color:#47617e;font-weight:750;font-size:12px}.toolbar label:first-child{flex:1}.quick-search{width:min(290px,100%);min-height:39px}
.rights-table{min-width:850px}.rights-table td{vertical-align:middle}.rights-table td:nth-child(n+3){min-width:142px}
.access-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:118px;padding:8px 12px;border-radius:9px;font-weight:750;font-size:12px;transition:box-shadow .2s,transform .2s}
.access-button.allowed{border:1px solid #9cdfc8;background:#e1f8ef;color:#086e4f}.access-button.blocked{border:1px solid #f3bbc2;background:#fff0f0;color:#a02c39}.access-button.unavailable{border:1px solid #e1e6ef;background:#f5f7fa;color:#8390a0;cursor:not-allowed}
.access-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 11px #1239541b}.helper-note{margin:18px 0 0!important;color:#546d86;font-size:12px;background:#f5f9ff;padding:14px 17px;border-radius:10px;border:1px solid #e2ebf6}
#toast{font-weight:750;box-shadow:0 17px 40px #071b3940}#modal{border-radius:20px;padding:29px}
@media(max-width:1100px){.workspace{grid-template-columns:252px minmax(0,1fr)}.sidebar{padding:22px 12px}.side-brand{font-size:20px}.view{padding:25px 20px 70px}.login-card{padding:28px}.login-panel{padding:25px}}
@media(max-width:750px){.workspace{grid-template-columns:1fr}.sidebar{width:min(290px,86vw)}.topbar{height:66px;padding:0 14px}.view{padding:24px 14px 60px}.cards,.app-grid{grid-template-columns:1fr}.login-panel{padding:18px;min-height:100vh}.login-card{padding:25px 21px}.page-head{align-items:start}.panel{padding:18px}.toolbar label,.toolbar label:first-child{min-width:100%;flex:1}.quick-search{width:100%}.panel-head{align-items:flex-start}.panel-head .quick-search{margin-top:5px}.data-table{min-width:680px}.rights-table{min-width:850px}}
@media print{.sidebar,.topbar,.btn,#toast,.toolbar{display:none!important}.workspace{display:block}.main-panel{background:white}.view{padding:0}.panel,.stat-card{box-shadow:none}}

/* DIGINEXIS CLOUD NEXT - COULEURS SEMANTIQUES */

.btn.status-active,
.pill.status-active {
    background: #15803d;
    color: #ffffff;
    border: 1px solid #15803d;
}

.btn.status-suspended,
.pill.status-suspended {
    background: #c2410c;
    color: #ffffff;
    border: 1px solid #c2410c;
}

.btn.status-inactive,
.pill.status-inactive {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn.success {
    background: #15803d;
    color: #ffffff;
    border: 1px solid #166534;
}

.btn.danger {
    background: #b91c1c;
    color: #ffffff;
    border: 1px solid #991b1b;
}

.pill.ok {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.pill.warn {
    background: #ffedd5;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.pill.status-pending {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.pill.status-maintenance {
    background: #ede9fe;
    color: #6d28d9;
    border: 1px solid #ddd6fe;
}

.pill.status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.access-button.allowed {
    background: #15803d;
    color: #ffffff;
    border-color: #166534;
}

.access-button.blocked {
    background: #b91c1c;
    color: #ffffff;
    border-color: #991b1b;
}

.access-button.unavailable {
    background: #e2e8f0;
    color: #475569;
    border-color: #cbd5e1;
}

.btn[data-action="toggle-org"] {
    min-width: 105px;
    font-weight: 750;
}

.btn[data-action="toggle-app"] {
    min-height: 37px;
}

.btn:disabled,
.access-button:disabled {
    cursor: not-allowed;
}

.btn:focus-visible,
.access-button:focus-visible {
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}

/* END DIGINEXIS CLOUD NEXT */

