:root{--blue:#174ea6;--blue2:#0f3d82;--ink:#172033;--muted:#667085;--line:#e4e8ef;--bg:#f5f7fa;--ok:#15803d;--warn:#b45309;--bad:#b42318}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg)}a{color:var(--blue)}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:#fff;border-right:1px solid var(--line);padding:22px 14px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:11px;align-items:center;padding:0 8px 22px}.brand img{width:42px;height:42px;border-radius:50%;object-fit:cover}.brand strong{display:block;color:#123b75}.brand small{color:var(--muted)}.nav a{display:flex;padding:11px 12px;margin:3px 0;border-radius:9px;text-decoration:none;color:#344054;font-weight:600}.nav a:hover,.nav a.active{background:#eef4ff;color:var(--blue)}.main{min-width:0}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.content{padding:28px;max-width:1280px}.card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;box-shadow:0 1px 2px rgba(16,24,40,.03)}.grid{display:grid;gap:16px}.stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:20px}.stat b{font-size:28px;color:#123b75}.stat span{display:block;color:var(--muted);font-size:13px;margin-top:4px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:9px;padding:10px 14px;font-weight:700;text-decoration:none;cursor:pointer}.btn-primary{background:var(--blue);color:#fff}.btn-light{background:#fff;color:#344054;border:1px solid var(--line)}.btn-danger{background:#fff1f0;color:var(--bad);border:1px solid #fecdca}.toolbar{display:flex;gap:10px;justify-content:space-between;align-items:center;margin-bottom:18px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;background:#fff}th,td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line);font-size:14px}th{font-size:12px;text-transform:uppercase;color:var(--muted);background:#f9fafb}.badge{display:inline-block;border-radius:999px;padding:4px 9px;font-size:12px;font-weight:700}.ok{background:#ecfdf3;color:var(--ok)}.wait{background:#fff7ed;color:var(--warn)}.bad{background:#fff1f0;color:var(--bad)}label{display:block;font-size:13px;font-weight:700;margin-bottom:6px}.field{margin-bottom:15px}input,select,textarea{width:100%;border:1px solid #cfd5df;border-radius:9px;padding:11px 12px;font:inherit;background:#fff}input:focus,select:focus,textarea:focus{outline:3px solid #dbe8ff;border-color:var(--blue)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.notice{padding:12px 14px;border-radius:9px;margin-bottom:16px;background:#eef4ff;color:#123b75}.error{background:#fff1f0;color:var(--bad)}.mobile-menu{display:none}.login-page{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:#fff}.login-hero{background:linear-gradient(145deg,#0f3d82,#174ea6);color:#fff;padding:8vw;display:flex;flex-direction:column;justify-content:center}.login-hero img{width:78px;height:78px;border-radius:50%;object-fit:cover;margin-bottom:24px}.login-hero h1{font-size:clamp(32px,5vw,56px);margin:0 0 14px}.login-hero p{max-width:560px;color:#dbe8ff;font-size:18px;line-height:1.6}.login-panel{display:flex;align-items:center;justify-content:center;padding:30px}.login-box{width:min(430px,100%)}.login-box h2{font-size:27px;margin-bottom:6px}.login-box>p{color:var(--muted);margin-top:0;margin-bottom:24px}.tabs{display:flex;gap:6px;background:#f2f4f7;padding:5px;border-radius:10px;margin-bottom:20px}.tabs button{flex:1;border:0;background:transparent;padding:9px;border-radius:7px;font-weight:700;color:var(--muted);cursor:pointer}.tabs button.active{background:#fff;color:var(--blue);box-shadow:0 1px 3px #ddd}.login-form{display:none}.login-form.active{display:block}@media(max-width:900px){.shell{display:block}.sidebar{display:none;position:fixed;z-index:20;width:270px}.sidebar.open{display:block}.mobile-menu{display:inline-flex}.content{padding:18px}.topbar{padding:0 16px}.stats{grid-template-columns:1fr 1fr}.login-page{display:block}.login-hero{padding:42px 24px}.login-hero p{font-size:15px}.login-panel{padding:30px 20px}.form-grid{grid-template-columns:1fr}}@media(max-width:520px){.stats{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.btn{width:100%}th:nth-child(3),td:nth-child(3){display:none}}

/* ===== V2.2 — nouvelle page de connexion institutionnelle ===== */
.auth-body{background:#eef3f9;min-height:100vh}
.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(420px,46%) 1fr;background:#fff}
.auth-brand{position:relative;overflow:hidden;background:linear-gradient(145deg,#0b2f63 0%,#114d97 55%,#1d64b6 100%);color:#fff;padding:56px clamp(34px,5vw,82px);display:flex;flex-direction:column;justify-content:space-between}
.auth-brand:before{content:"";position:absolute;width:460px;height:460px;border-radius:50%;border:1px solid rgba(255,255,255,.12);right:-220px;top:-130px;box-shadow:0 0 0 90px rgba(255,255,255,.035),0 0 0 180px rgba(255,255,255,.025)}
.auth-brand:after{content:"";position:absolute;left:-120px;bottom:-170px;width:360px;height:360px;border-radius:50%;background:rgba(255,255,255,.045)}
.auth-brand-inner,.auth-brand-footer{position:relative;z-index:1}
.auth-emblem{width:76px;height:76px;border-radius:22px;background:#fff;padding:7px;box-shadow:0 18px 45px rgba(0,0,0,.18);margin-bottom:40px}
.auth-emblem img{width:100%;height:100%;object-fit:cover;border-radius:16px}
.auth-kicker{font-size:12px;text-transform:uppercase;letter-spacing:.16em;font-weight:800;color:#c7dcf7;margin-bottom:15px}
.auth-brand h1{font-size:clamp(40px,5vw,70px);line-height:.98;letter-spacing:-.045em;margin:0 0 24px;max-width:600px}
.auth-lead{max-width:570px;font-size:17px;line-height:1.7;color:#d9e8fa;margin:0 0 42px}
.auth-features{display:grid;gap:2px;max-width:590px;border-top:1px solid rgba(255,255,255,.14)}
.auth-features>div{display:grid;grid-template-columns:38px 1fr;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid rgba(255,255,255,.14)}
.auth-features span{font-size:11px;font-weight:800;letter-spacing:.08em;color:#a9c8ef}
.auth-features p{margin:0;display:flex;flex-direction:column;gap:3px}
.auth-features strong{font-size:14px}.auth-features small{color:#cbdcf1;font-size:12px}
.auth-brand-footer{font-size:12px;color:#bcd2ec;margin-top:35px}
.auth-panel{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px clamp(24px,7vw,110px);background:linear-gradient(180deg,#fff 0%,#fbfcfe 100%)}
.auth-card{width:min(500px,100%)}
.auth-mobile-brand{display:none}
.auth-heading{margin-bottom:30px}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:#174ea6;font-size:12px;text-transform:uppercase;letter-spacing:.12em;font-weight:800;margin-bottom:10px}
.eyebrow:before{content:"";width:22px;height:2px;background:#174ea6;border-radius:2px}
.auth-heading h2{font-size:38px;letter-spacing:-.035em;margin:0 0 10px;color:#16233a}
.auth-heading p{font-size:15px;line-height:1.65;color:#697386;margin:0;max-width:470px}
.auth-form .field{margin-bottom:19px}.auth-form label{font-size:13px;color:#27364d;margin-bottom:8px}
.input-shell{position:relative}.input-shell input{height:54px;padding-left:48px;padding-right:88px;border:1px solid #d6dee9;border-radius:12px;background:#fff;box-shadow:0 1px 2px rgba(16,24,40,.02);transition:.18s ease}
.input-shell input::placeholder{color:#9aa6b5}.input-shell input:focus{outline:none;border-color:#4b83c8;box-shadow:0 0 0 4px rgba(23,78,166,.10)}
.input-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:7px;background:#edf3fb;color:#174ea6;display:grid;place-items:center;font-size:11px;font-weight:900;pointer-events:none}
.password-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#315f98;font-weight:700;font-size:12px;cursor:pointer;padding:8px}
.password-toggle:hover{color:#174ea6}.auth-submit{height:54px;width:100%;border-radius:12px;margin-top:4px;font-size:14px;justify-content:space-between;padding:0 20px;box-shadow:0 9px 20px rgba(23,78,166,.16);transition:.18s ease}
.auth-submit:hover{background:#103f89;transform:translateY(-1px);box-shadow:0 12px 25px rgba(23,78,166,.20)}
.auth-help{display:flex;gap:12px;align-items:flex-start;margin-top:25px;padding:16px 18px;background:#f6f9fd;border:1px solid #e2eaf4;border-radius:12px;color:#43516a}
.auth-help p{margin:0;font-size:12px;line-height:1.45}.auth-help small{color:#77859a}.status-dot{width:9px;height:9px;background:#2e8b57;border-radius:50%;margin-top:4px;box-shadow:0 0 0 4px rgba(46,139,87,.10);flex:0 0 auto}
.auth-footer{width:min(500px,100%);margin-top:35px;text-align:center;font-size:11px;color:#9aa4b3}.auth-card .notice{border:1px solid transparent;display:flex;flex-direction:column;gap:3px}.auth-card .notice.error{border-color:#f2c5c1;background:#fff6f5}.auth-card .notice span{font-size:12px}
@media(max-width:900px){.auth-layout{grid-template-columns:1fr}.auth-brand{display:none}.auth-panel{min-height:100vh;padding:28px 20px;background:#f5f8fc}.auth-card{background:#fff;border:1px solid #e1e7ef;border-radius:20px;padding:28px 22px;box-shadow:0 18px 45px rgba(15,43,77,.08)}.auth-mobile-brand{display:flex;align-items:center;gap:12px;padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #edf0f4}.auth-mobile-brand img{width:46px;height:46px;border-radius:13px;object-fit:cover}.auth-mobile-brand strong,.auth-mobile-brand small{display:block}.auth-mobile-brand strong{font-size:14px;color:#153a6a}.auth-mobile-brand small{font-size:11px;color:#7c8796;margin-top:2px}.auth-heading h2{font-size:32px}.auth-footer{margin-top:22px}}
@media(max-width:480px){.auth-panel{padding:16px 12px}.auth-card{padding:23px 17px;border-radius:16px}.auth-heading{margin-bottom:24px}.auth-heading h2{font-size:29px}.input-shell input{height:52px}.auth-submit{height:52px}}

/* ===== V2.3 — Quicksand, icons & motion ===== */
:root{--blue:#1b5eb7;--blue2:#123f7b;--ink:#162235;--muted:#738096;--line:#e5eaf1;--bg:#f4f7fb;--ok:#1d8b4c;--warn:#c77714;--bad:#c43c36;--purple:#6b5bd2}
html,body,input,select,textarea,button{font-family:'Quicksand',system-ui,-apple-system,"Segoe UI",sans-serif}
body{letter-spacing:.005em}.icon{width:19px;height:19px;display:inline-block;vertical-align:middle;flex:0 0 auto}.btn .icon,.row-action .icon{width:17px;height:17px}.input-icon .icon{width:16px;height:16px}
.shell{grid-template-columns:268px 1fr}.sidebar{padding:24px 16px;box-shadow:10px 0 30px rgba(21,43,77,.025)}.brand{padding:0 10px 25px}.brand img{width:46px;height:46px;border-radius:14px;box-shadow:0 7px 18px rgba(26,68,120,.12)}.brand strong{font-size:14px}.brand small{font-size:11px}.nav{display:flex;flex-direction:column;height:calc(100vh - 110px)}.nav a{align-items:center;gap:12px;padding:12px 13px;border-radius:12px;transition:.2s ease}.nav a:hover{transform:translateX(3px)}.nav a.active{background:linear-gradient(135deg,#edf4ff,#f7faff);box-shadow:inset 0 0 0 1px #dce8f8}.nav-logout{margin-top:auto;color:#a64545!important}.nav-logout:hover{background:#fff3f2!important}
.topbar{height:78px;padding:0 30px;box-shadow:0 1px 0 var(--line)}.topbar>div:first-of-type strong{display:block;font-size:16px}.top-eyebrow{display:block;text-transform:uppercase;letter-spacing:.12em;font-size:9px;color:#8a96a7;margin-bottom:2px}.icon-btn{border:1px solid var(--line);background:#fff;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:var(--blue);cursor:pointer}.user-chip{display:flex;align-items:center;gap:9px;font-size:13px;font-weight:700;color:#42516a}.avatar,.mini-avatar{display:grid;place-items:center;background:linear-gradient(135deg,#e8f1fc,#dce9f9);color:#1b5eb7;font-weight:700}.avatar{width:35px;height:35px;border-radius:11px}.mini-avatar{width:34px;height:34px;border-radius:10px;font-size:11px}.content{padding:30px;max-width:1400px}.page-enter{animation:pageIn .45s ease both}
.dashboard-hero{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.dashboard-hero h1{font-size:31px;letter-spacing:-.03em;margin:6px 0 6px}.dashboard-hero p{margin:0;color:var(--muted);font-size:14px}.dashboard-hero .eyebrow,.section-kicker{font-size:10px;text-transform:uppercase;letter-spacing:.14em;font-weight:700;color:var(--blue)}
.card{border-radius:16px;box-shadow:0 8px 25px rgba(35,56,88,.045);transition:transform .2s ease,box-shadow .2s ease}.card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(35,56,88,.07)}.stats{gap:18px;margin-bottom:22px}.stat{display:flex;align-items:center;gap:15px;padding:20px}.stat-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center}.stat-icon .icon{width:21px;height:21px}.stat-blue .stat-icon{background:#eaf3ff;color:#1b5eb7}.stat-green .stat-icon{background:#eaf8ef;color:#1d8b4c}.stat-orange .stat-icon{background:#fff4e5;color:#c77714}.stat-purple .stat-icon{background:#f0edff;color:#6b5bd2}.stat b{display:block;font-size:30px;line-height:1;color:#132f57}.stat span span,.stat>div>span{display:block;color:var(--muted);font-size:12px;margin-top:7px}.contracts-card{padding:22px}.toolbar h2{margin:3px 0 2px;font-size:21px}.toolbar small{color:var(--muted)}.filter-bar{display:grid;grid-template-columns:minmax(260px,1fr) 190px auto;gap:10px;margin-bottom:17px}.search-box{position:relative}.search-box>.icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#8aa0bd}.search-box input{padding-left:43px}.filter-bar input,.filter-bar select{height:44px}.table-wrap{border-radius:14px;overflow:auto}.table-wrap tr{transition:background .18s ease}.table-wrap tbody tr:hover{background:#f8fbff}.person-cell,.mail-cell{display:flex;align-items:center;gap:10px}.mail-cell .icon{width:15px;height:15px;color:#8ca1bb}.row-action{display:inline-flex;align-items:center;gap:5px;text-decoration:none;font-weight:700;font-size:12px;color:var(--blue)}.row-action:hover .icon{transform:translateX(3px)}.row-action .icon{transition:.2s}.badge{padding:5px 10px}
.notice-animated{display:flex;align-items:center;gap:9px;animation:noticeIn .35s ease both}.notice-animated .icon{width:17px;height:17px}.btn{transition:.18s ease}.btn:hover{transform:translateY(-1px)}.btn:active{transform:translateY(0) scale(.985)}.btn-primary{background:linear-gradient(135deg,#1c64c1,#174f9b);box-shadow:0 8px 18px rgba(27,94,183,.16)}.btn.is-loading{pointer-events:none;opacity:.75}.btn.is-loading:after{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
.auth-brand{background:radial-gradient(circle at 80% 15%,rgba(255,255,255,.08),transparent 32%),linear-gradient(145deg,#0c3368,#14569f 58%,#236dbc)}.auth-brand h1,.auth-heading h2{font-weight:700}.auth-card-animated{animation:cardRise .6s cubic-bezier(.2,.8,.2,1) both}.auth-float{animation:float 4.5s ease-in-out infinite}.auth-features>div{transition:.2s ease}.auth-features>div:hover{padding-left:5px}.input-shell{transition:.2s}.input-shell:focus-within{transform:translateY(-1px)}.input-icon{background:#eef4fb}.password-toggle{border-radius:8px}.password-toggle:hover{background:#eef4fb}.auth-submit .icon{transition:.2s}.auth-submit:hover .icon{transform:translateX(4px)}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes cardRise{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}@keyframes noticeIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.content{padding:22px 16px}.dashboard-hero{align-items:flex-start;flex-direction:column}.dashboard-hero .btn{width:100%}.filter-bar{grid-template-columns:1fr}.user-chip>span:last-child{display:none}.stats{grid-template-columns:1fr 1fr}.sidebar.open{animation:slideIn .25s ease both;box-shadow:20px 0 50px rgba(15,35,60,.16)}@keyframes slideIn{from{transform:translateX(-100%)}to{transform:none}}}
@media(max-width:560px){.stats{grid-template-columns:1fr}.stat{padding:17px}.dashboard-hero h1{font-size:27px}.topbar{padding:0 15px}.content{padding:18px 12px}.contracts-card{padding:16px}.auth-heading h2{font-size:31px}.auth-card{box-shadow:0 18px 50px rgba(22,54,88,.10)}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ===== V2.4 — cohérence visuelle, formulaires & administration ===== */
.content{width:100%;margin:0 auto}.topbar{position:sticky;top:0;z-index:10}.topbar strong{letter-spacing:-.01em}
.form-hero{align-items:center}.form-hero p{max-width:760px}.btn-sm{padding:8px 11px;font-size:12px}.btn-block{width:100%}

/* Nouveau contrat */
.contract-create-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}.contract-form-card{padding:28px}.contract-aside{display:grid;gap:16px;position:sticky;top:100px}.form-section-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:20px}.form-section-head h2{font-size:19px;margin:2px 0 3px;letter-spacing:-.02em}.form-section-head p{margin:0;color:var(--muted);font-size:13px}.form-section-icon{width:43px;height:43px;border-radius:13px;background:#edf4ff;color:var(--blue);display:grid;place-items:center;flex:0 0 auto}.form-section-icon .icon{width:20px;height:20px}.field label span{color:#ca3f36}.field-help{display:block;color:#8a96a7;font-size:11px;margin-top:7px}.field-icon-wrap{position:relative}.field-icon-wrap>.icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:#8297b3;pointer-events:none}.field-icon-wrap input{padding-left:42px}.form-divider{height:1px;background:var(--line);margin:28px 0}
.modern-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:15px}.dept-tab{border:1px solid #dbe3ee;background:#f8fafc;color:#516078;border-radius:999px;padding:9px 13px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;transition:.18s ease}.dept-tab:hover{border-color:#aec8e9;color:var(--blue);transform:translateY(-1px)}.dept-tab.active{background:#eaf2ff;border-color:#bcd3f0;color:#1556a7;box-shadow:0 5px 12px rgba(27,94,183,.08)}
.job-grid{display:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.job-grid.active{display:grid;animation:pageIn .25s ease both}.job-option{min-height:54px;border:1px solid #dfe6ef;background:#fff;border-radius:12px;padding:10px 12px;display:grid;grid-template-columns:28px 1fr 20px;align-items:center;gap:9px;text-align:left;color:#354258;font:inherit;cursor:pointer;transition:.18s ease}.job-option>span{width:28px;height:28px;border-radius:9px;background:#f3f6fa;color:#748aa8;display:grid;place-items:center}.job-option>span .icon{width:14px;height:14px}.job-option strong{font-size:12px;line-height:1.35}.job-option>i{display:grid;place-items:center;color:transparent;font-style:normal}.job-option>i .icon{width:15px;height:15px}.job-option:hover{border-color:#b8cde8;background:#fbfdff;transform:translateY(-1px)}.job-option.selected{border-color:#8eb6e6;background:#f0f6ff;box-shadow:0 0 0 3px rgba(27,94,183,.06)}.job-option.selected>span{background:#dfeeff;color:var(--blue)}.job-option.selected>i{color:var(--ok)}
.selected-job{display:none;align-items:center;gap:9px;margin-top:13px;padding:11px 13px;border-radius:11px;background:#eef8f2;color:#247345;font-size:12px}.selected-job.show{display:flex;animation:noticeIn .25s ease both}.selected-job .icon{width:16px;height:16px}.selected-job-error{background:#fff3f1;color:#b53c35}
.form-submit-row{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}.contract-submit{min-width:235px}.success-contract-card{display:grid;grid-template-columns:52px minmax(0,1fr) auto;gap:16px;align-items:center;margin-bottom:20px;border-color:#cfe8d7;background:linear-gradient(135deg,#fbfffc,#f4fbf7)}.success-contract-icon{width:52px;height:52px;border-radius:15px;background:#e8f7ee;color:var(--ok);display:grid;place-items:center}.success-contract-icon .icon{width:25px;height:25px}.success-contract-card h2{margin:3px 0;font-size:19px}.success-contract-card p{margin:0;color:var(--muted);font-size:12px}.delivery-state{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:11px;font-weight:700}.delivery-state .icon{width:14px;height:14px}.ok-text{color:var(--ok)}.warn-text{color:var(--warn)}
.side-note{padding:20px}.side-note .soft-icon{margin-bottom:14px}.side-note h3{font-size:17px;margin:5px 0 10px}.side-note p{font-size:12px;line-height:1.6;color:var(--muted);margin:0}.side-note ul{list-style:none;padding:0;margin:12px 0 0;display:grid;gap:10px}.side-note li{display:flex;align-items:flex-start;gap:8px;color:#4d5b70;font-size:12px;line-height:1.4}.side-note li .icon{width:15px;height:15px;color:var(--ok);margin-top:1px}.side-note-blue{background:linear-gradient(145deg,#f8fbff,#eef5ff);border-color:#dbe9fa}.soft-icon{width:42px;height:42px;border-radius:13px;background:#edf4ff;color:var(--blue);display:grid;place-items:center}.soft-icon .icon{width:19px;height:19px}

/* Administrateurs */
.admin-hero{align-items:center}.migration-pill{display:inline-flex;align-items:center;gap:7px;border:1px solid #f0d7ad;background:#fff9ee;color:#95621e;padding:8px 11px;border-radius:999px;font-size:11px;font-weight:700}.migration-pill .icon{width:14px;height:14px}.admin-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr);gap:20px;align-items:start}.admin-list-card,.admin-create-card{padding:22px}.compact-toolbar{margin-bottom:16px}.compact-toolbar h2{font-size:19px;margin:3px 0}.admin-cards{display:grid;gap:10px}.admin-card-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;border:1px solid #e7ebf1;background:#fff;border-radius:13px;padding:13px 14px;transition:.18s ease}.admin-card-row:hover{border-color:#d6e1ef;background:#fbfdff;transform:translateY(-1px)}.admin-identity{display:flex;align-items:center;gap:11px;min-width:0}.admin-avatar{width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#e8f1fc,#dbe8f8);color:#1b5eb7;display:grid;place-items:center;font-size:13px;font-weight:800}.admin-identity strong{display:block;font-size:13px}.admin-identity span{display:block;color:var(--muted);font-size:11px;margin-top:2px}.admin-meta{display:flex;align-items:center;gap:6px}.admin-actions form{margin:0}.muted-action{color:#9aa4b2;font-size:11px}.info-badge{background:#eef4ff;color:#245a9a}.inline-empty{padding:30px;text-align:center;border:1px dashed #d8e0ea;border-radius:12px;color:var(--muted);font-size:12px}.admin-form{display:grid;gap:3px}.admin-form .field{margin-bottom:14px}.permission-grid{display:grid;gap:8px}.permission-option{margin:0;cursor:pointer}.permission-option>input{position:absolute;opacity:0;pointer-events:none}.permission-option>span{display:flex;align-items:center;gap:9px;border:1px solid #e1e6ed;border-radius:11px;padding:10px 11px;color:#536176;background:#fff;transition:.18s ease}.permission-option>span .icon{width:15px;height:15px;color:#b2bcc9}.permission-option input:checked+span{background:#f0f6ff;border-color:#bdd3ef;color:#1b5eb7}.permission-option input:checked+span .icon{color:var(--ok)}.permission-option b{font-size:12px}.compat-box{display:flex;gap:9px;align-items:flex-start;margin:5px 0 16px;padding:12px;border-radius:11px;background:#fff9ee;border:1px solid #f1dfbd;color:#81591d;font-size:11px;line-height:1.5}.compat-box .icon{width:16px;height:16px;flex:0 0 auto}.empty-state{text-align:center;max-width:620px;margin:70px auto;padding:44px}.empty-icon{width:58px;height:58px;border-radius:17px;background:#eef4ff;color:var(--blue);display:grid;place-items:center;margin:0 auto 16px}.empty-icon .icon{width:27px;height:27px}.empty-state h1{font-size:27px;margin:6px 0}.empty-state p{color:var(--muted);line-height:1.6;margin:0 auto 22px;max-width:430px}

/* Finitions dashboard */
.contracts-card{overflow:hidden}.table-wrap table tbody tr:last-child td{border-bottom:0}.stat{position:relative;overflow:hidden}.stat:after{content:"";position:absolute;width:90px;height:90px;border-radius:50%;right:-44px;top:-44px;background:rgba(33,88,155,.025)}.dashboard-hero .btn-primary{padding-inline:16px}

@media(max-width:1100px){.contract-create-layout,.admin-grid{grid-template-columns:1fr}.contract-aside{position:static;grid-template-columns:1fr 1fr}.admin-create-card{order:-1}}
@media(max-width:760px){.contract-form-card{padding:20px}.job-grid{grid-template-columns:1fr}.contract-aside{grid-template-columns:1fr}.form-submit-row{flex-direction:column-reverse}.form-submit-row .btn,.contract-submit{width:100%}.success-contract-card{grid-template-columns:46px 1fr}.success-contract-card>.btn{grid-column:1/-1;width:100%}.admin-card-row{grid-template-columns:1fr}.admin-meta{justify-content:flex-start}.admin-actions .btn{width:auto}.form-grid{grid-template-columns:1fr}}

/* ===== V2.5 — dossier salarié unifié avec le portail ===== */
.employee-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:20px}.back-link{display:inline-flex;align-items:center;gap:7px;color:var(--muted);text-decoration:none;font-weight:700;font-size:13px;margin-bottom:16px}.back-link:hover{color:var(--blue)}.back-link .icon{width:16px;height:16px}.employee-eyebrow{margin-bottom:7px}.page-title{margin:0;font-size:clamp(28px,3vw,40px);letter-spacing:-.04em;color:#13213a}.page-subtitle{margin:7px 0 0;color:var(--muted);font-weight:600}.employee-status-wrap{padding-bottom:5px}.employee-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.employee-grid-top{margin-bottom:18px}.employee-card{padding:24px}.section-space{margin-top:18px}.section-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.section-heading>div:last-child{min-width:0}.section-heading span{display:block;color:var(--blue);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.14em;margin-bottom:3px}.section-heading h2{margin:0;font-size:18px;letter-spacing:-.02em}.section-heading h2 em{font-style:normal;color:var(--muted);font-size:13px;margin-left:5px}.section-icon{width:39px;height:39px;border-radius:11px;background:#edf4ff;color:var(--blue);display:grid;place-items:center;flex:0 0 auto}.section-icon .icon{width:19px;height:19px}.info-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.info-box{padding:14px;border:1px solid var(--line);background:#fbfcfe;border-radius:11px;min-width:0}.info-box small{display:block;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.07em;font-weight:800;margin-bottom:5px}.info-box strong{display:block;font-size:14px;overflow-wrap:anywhere}.card-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.stack-form .field:last-of-type{margin-bottom:0}.compact-grid{align-items:end}.file-input{padding:9px;background:#fbfcfe}.section-help{margin:-8px 0 18px;color:var(--muted);font-size:13px;line-height:1.6}.empty-state{min-height:150px;border:1px dashed #d7deea;border-radius:12px;background:#fbfcfe;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:25px;color:var(--muted)}.empty-state .icon{width:28px;height:28px;color:#9eb3cf;margin-bottom:10px}.empty-state strong{color:#344054;margin-bottom:4px}.empty-state span{font-size:13px}.inline-action,.row-actions{display:flex;gap:8px;align-items:center}.row-actions form{margin:0}.select-mini{width:auto;min-width:120px;padding:8px 10px}.btn-small{padding:7px 10px;font-size:12px}.credential-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.credential-card{border:1px solid var(--line);border-radius:13px;background:#fbfcfe;padding:17px}.credential-title{display:flex;align-items:center;gap:8px;color:#24456f;font-weight:800;font-size:13px;margin-bottom:14px}.credential-title .icon{width:17px;height:17px;color:var(--blue)}.danger-zone{border-color:#fecaca}.danger-icon{background:#fff1f0;color:var(--bad)}.warning-box{display:flex;gap:12px;align-items:flex-start;background:#fff8ed;border:1px solid #fed7aa;color:#92400e;padding:14px;border-radius:11px;margin-bottom:16px}.warning-box .icon{width:19px;height:19px;flex:0 0 auto}.warning-box strong,.warning-box span{display:block}.warning-box span{font-size:13px;margin-top:2px}.termination-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.termination-summary>div{border:1px solid #fee2e2;background:#fffafa;border-radius:11px;padding:14px}.termination-summary small{display:block;color:#991b1b;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.08em;margin-bottom:5px}.termination-summary strong{font-size:14px}.termination-reason{grid-column:1/-1}textarea{resize:vertical}.employee-card table td{vertical-align:middle}
@media(max-width:980px){.employee-grid,.credential-grid{grid-template-columns:1fr}.employee-head{align-items:flex-start}.employee-status-wrap{padding-top:8px}.info-grid{grid-template-columns:1fr 1fr}.inline-action{align-items:stretch;flex-direction:column}.select-mini{width:100%}}
@media(max-width:640px){.employee-head{display:block}.employee-status-wrap{margin-top:12px}.info-grid{grid-template-columns:1fr}.employee-card{padding:17px}.card-actions,.row-actions{align-items:stretch;flex-direction:column}.row-actions .btn,.row-actions form,.row-actions form .btn{width:100%}.termination-summary{grid-template-columns:1fr}.termination-reason{grid-column:auto}}

/* ===== V2.6 — recadrage dashboard / en-tête ===== */
html,body{font-family:"Quicksand",ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.main{min-width:0;overflow-x:hidden}
.topbar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:18px;align-items:center}
.topbar>div:first-of-type{min-width:0;text-align:center}
.topbar>div:first-of-type strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-chip{flex:0 0 auto;min-width:0;max-width:230px;padding:7px 10px 7px 7px;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 2px 8px rgba(20,49,86,.035)}
.user-chip .avatar{flex:0 0 35px}
.user-chip>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}
.content{width:min(100%,1440px);max-width:none;margin:0 auto;padding:30px clamp(20px,2.2vw,34px) 42px}
.dashboard-hero{width:100%;align-items:center;margin-bottom:20px}
.dashboard-hero>div{min-width:0}
.dashboard-hero h1{line-height:1.08;margin-top:5px}
.dashboard-hero .btn-primary{flex:0 0 auto;white-space:nowrap}
.stats{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}
.stat{min-width:0;min-height:96px;padding:18px 20px;gap:14px}
.stat>div{min-width:0}.stat b{font-size:29px}.stat>div>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat-icon{flex:0 0 46px}
.contracts-card{width:100%}
@media(max-width:1180px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.topbar{grid-template-columns:auto minmax(0,1fr) auto;gap:10px}.topbar>div:first-of-type{text-align:left}.content{padding:22px 16px 34px}.dashboard-hero{align-items:flex-start}.user-chip{padding:6px;border:0;box-shadow:none;background:transparent}.user-chip>span:last-child{display:none}}
@media(max-width:560px){.stats{grid-template-columns:1fr}.stat{min-height:86px}.dashboard-hero .btn-primary{width:100%}.content{padding:18px 12px 30px}}
