/* CL Informatique — shared console, portal and sign-in identity. */
:root{--brand:#0875c8;--brand-dark:#092a49;--ink:#16324b;--muted:#60768a;--line:#dfe8ef;--page:#f3f7fa}
body{font-family:Inter,'Segoe UI',sans-serif;background:var(--page);color:var(--ink);line-height:1.5}
*{box-sizing:border-box}button,input,textarea,select{font:inherit}button{border-radius:10px;padding:11px 17px;background:var(--brand);transition:background .15s,box-shadow .15s}button:hover{background:#075d9e}button:disabled{opacity:.55;cursor:wait}button.secondary{background:#fff;color:var(--ink);border:1px solid var(--line)}button.secondary:hover{background:#edf4fa}a{color:#0865a9}input,select,textarea{border-radius:10px;border-color:#cbd9e4;min-height:44px}input::placeholder,textarea::placeholder{color:#708598}h1{letter-spacing:-.045em;color:var(--brand-dark)}h2,h3{color:var(--brand-dark)}p{color:var(--muted)}[hidden]{display:none!important}
.brand-logo{display:block;width:170px;height:88px;object-fit:contain}.brand-caption{font-size:10px;letter-spacing:.16em;color:#61788c;text-transform:uppercase}.brand{display:flex;flex-direction:column;align-items:flex-start;gap:0;text-decoration:none}.console-shell aside{width:238px;background:#fff;border-right:1px solid var(--line);padding:20px 18px;overflow-y:auto}.console-shell aside .brand{padding:0 12px 20px;border-bottom:1px solid var(--line)}.nav-caption{font-size:10px;letter-spacing:.12em;color:#738598;margin:28px 12px 10px}.console-shell nav button{display:flex;align-items:center;gap:12px;width:100%;color:#526b81;background:transparent;text-align:left;padding:12px 14px;border-radius:10px;margin:4px 0;font-weight:600}.console-shell nav button>span:first-child{font-size:19px;width:22px;text-align:center}.console-shell nav button.active{background:#e7f3fc;color:#0865a9;box-shadow:none}.console-shell nav button:hover{background:#f0f6fa;color:#084f88}.console-shell nav .count{margin-left:auto;background:#fff;border-radius:6px;color:#0865a9}.sidebar-bottom{color:#60768a;border-top:1px solid var(--line);padding-top:20px;line-height:2}.sidebar-bottom a,.sidebar-bottom .link{color:#426782;font-size:12px}.console-shell .topbar{margin-left:238px;min-height:76px;height:auto;padding:16px 32px;border-bottom:1px solid var(--line);background:#ffffffed}.topbar form{width:min(540px,65%)}.topbar input{width:100%;background:#f5f8fb;border-color:#e4ebf1}.profile .avatar{background:#e7f3fc;color:#0865a9;font-size:11px}.console-shell main{margin-left:238px;padding:32px;max-width:1900px}.console-shell main>header{margin-bottom:28px;gap:24px}.eyebrow{font-size:10px;letter-spacing:.14em;color:#638097}.console-shell h1{font-size:34px;margin:6px 0}.header-actions{gap:10px}.panel,.stat{border:1px solid var(--line);border-radius:16px;background:#fff;box-shadow:0 3px 12px #12314c04}.stat{padding:24px}.stat b{font-size:32px;color:var(--brand-dark);letter-spacing:-.04em}.stat>span:first-child{color:#546e83}.stat>span:last-child{font-size:12px}.panel-head{padding:20px 24px;border-bottom:1px solid #edf2f6}.panel-head h2{font-size:16px}.panel-body{padding:24px}th{background:#f8fafc;color:#587086;font-size:11px;letter-spacing:.04em}td{font-size:13px;padding:18px 22px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f5fafe}.badge{border-radius:30px;padding:5px 11px;font-size:11px}.filters{padding:18px 22px}.client-card,.ticket-card{border-radius:12px}.client-card:hover{border-color:#abd4ee}.empty{padding:54px 24px}.empty h2{font-size:20px}.empty p{font-size:14px}.detail-tabs button,.asset-tabs button{font-size:13px}.detail-tabs button.active{background:#e4f2fc;color:#075d9e}.message{border-radius:12px;background:#edf6fc;border:1px solid #dceefb}.dialog-head{padding:22px 28px}.dialog-head h2{font-size:20px;overflow-wrap:anywhere}dialog{border-radius:20px;color:var(--ink)}dialog::backdrop{background:#092a4966;backdrop-filter:blur(4px)}.dialog-body{padding:28px}.dialog-body form>button{justify-self:start}.footer-brand{display:flex;align-items:center;gap:15px;color:#657e92}.footer-brand img{width:95px;height:48px;object-fit:contain}footer{align-items:center;gap:16px}.mobile-console-toggle{display:none}
.console-shell nav button{padding:10px 14px;margin:0}.console-shell nav{gap:4px}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}.calendar-head{background:#f7fafc;padding:12px;font-size:12px;font-weight:700;color:var(--muted);text-align:center}.calendar-day{min-height:118px;background:#fff;padding:10px}.calendar-day>b{color:var(--brand-dark);font-size:13px}.calendar-day.muted{background:#f8fafc}.calendar-event{display:block;width:100%;margin-top:8px;padding:7px 8px;text-align:left;font-size:11px;line-height:1.25;border-radius:8px;white-space:normal;overflow-wrap:anywhere}.calendar-event:hover{background:#075d9e}
@media(min-width:761px) and (max-width:1350px){.console-shell #workspace>.columns{grid-template-columns:minmax(0,1fr)}}
/* Shared sign-in experience. */
body.auth-shell{display:grid;place-items:center;min-height:100dvh;padding:36px 20px;background:radial-gradient(ellipse at 12% 15%,#d8edfc,transparent 55%),#f3f7fa}.login-card{width:min(480px,100%);background:#fff;border:1px solid var(--line);box-shadow:0 20px 80px #15344d0c;border-radius:22px;padding:38px}.login-card .brand-logo,.login .brand-logo{width:200px;height:106px;margin:0 auto 18px}.login-card h1,.login h1{font-size:28px;line-height:1.25;margin:8px 0 12px}.login-card p,.login p{font-size:14px;line-height:1.7}.login-card form,.login form{margin-top:26px}.login-card form>button,.login form>button{width:100%;margin-top:4px}.auth-kicker{font-size:10px;letter-spacing:.13em;color:#0875c8;font-weight:700}.auth-return{display:block;text-align:center;font-size:12px;margin-top:25px;text-decoration:none}.login-card #error:not(:empty),.login #error:not(:empty){padding:12px;border-radius:8px;color:#9d3030;background:#fff0f0}
/* Client portal shares the same surfaces and spacing. */
body.portal-shell{background:var(--page)}.portal-head{background:#fff;border-bottom:1px solid var(--line);padding:12px max(24px,calc((100vw - 1180px)/2));color:var(--ink);display:flex;justify-content:space-between;gap:20px;align-items:center}.portal-head .brand{flex-direction:row;align-items:center;gap:22px}.portal-head .brand-logo{width:145px;height:72px}.portal-head .brand-caption{padding-left:22px;border-left:1px solid var(--line)}.portal-main{max-width:1180px;margin:36px auto;padding:0 24px}.portal-main>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:0 0 24px}.portal-main h1{font-size:32px;margin:5px 0}.portal-main .panel{margin-bottom:24px}.portal-main .login{max-width:460px;margin:48px auto;background:#fff;border:1px solid var(--line);padding:36px;border-radius:20px;box-shadow:0 20px 80px #15344d09}.portal-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.portal-summary .stat{display:flex;flex-direction:column;gap:6px}.portal-summary b{font-size:30px}.portal-toolbar{display:flex;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.portal-toolbar input{flex:1;min-width:160px}.portal-toolbar select{min-width:165px}.portal-footer{max-width:1180px;margin:30px auto;padding:20px 24px;border-top:1px solid var(--line);font-size:12px;display:flex;justify-content:space-between;align-items:center;gap:20px}.portal-help{font-size:13px;line-height:1.7;margin:18px 0}.portal-main .columns{gap:24px}.portal-main .link{line-height:1.55}
@media(max-width:1100px){.console-shell .profile>span{display:none}.console-shell main{padding:26px 20px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.console-shell aside{position:static;width:100%;padding:10px 16px;overflow:visible}.console-shell aside .brand{padding:0;border:0;flex-direction:row;align-items:center;justify-content:space-between}.console-shell .brand-logo{width:140px;height:66px}.console-shell .brand-caption{font-size:9px}.console-shell .nav-caption{display:none}.console-shell nav{display:flex;overflow:auto;gap:6px;margin:8px 0 0;padding-bottom:6px}.console-shell nav button{width:auto;flex:none;white-space:nowrap;padding:10px;font-size:12px}.console-shell .sidebar-bottom{display:flex;flex-wrap:wrap;gap:14px;align-items:center;padding:10px 0 0;font-size:11px}.sidebar-bottom br,.sidebar-bottom .local-dot{display:none}.console-shell .topbar{margin:0;padding:12px 16px;min-height:60px}.topbar form{width:100%}.console-shell .topbar .profile{display:none}.console-shell main{margin:0;padding:24px 16px}.console-shell h1{font-size:28px}.header-actions{flex-wrap:wrap}.stats{gap:12px}.stat{padding:18px}.stat b{font-size:28px}.panel-head,.panel-body{padding:18px}.portal-head{padding:10px 16px;gap:10px}.portal-head .brand{gap:10px}.portal-head .brand-caption{display:none}.portal-head .brand-logo{width:135px;height:64px}.portal-main{padding:0 16px;margin:24px auto}.portal-main>header{align-items:flex-start;flex-direction:column}.portal-main h1{font-size:27px}.portal-summary{gap:8px}.portal-summary .stat{padding:14px 10px}.portal-summary .stat span{font-size:11px}.portal-summary b{font-size:26px}.portal-toolbar{padding:16px}.portal-toolbar select{width:100%}.login-card,.portal-main .login{padding:28px 24px}.portal-footer{margin:20px 16px;padding:18px 0;flex-wrap:wrap}.dialog-head,.dialog-body{padding:20px}.asset-grid{grid-template-columns:minmax(0,1fr)}.form-grid{grid-template-columns:minmax(0,1fr)}.header-actions button{font-size:12px}.footer-brand span{display:none}}
@media(max-width:760px){.calendar-grid{min-width:760px}.calendar-day{min-height:96px}.calendar-day .calendar-event{font-size:10px}.console-shell #workspace .panel:first-child{overflow:auto}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.badge.status-nouveau{background:#eef2f6;color:#52677b}.badge.status-ouvert{background:#e8f2ff;color:#1668a9}.badge.status-en-cours{background:#fff0cf;color:#9a6500}.badge.status-en-attente-client{background:#f3eaff;color:#7650a8}.badge.status-planifié{background:#e9e5ff;color:#5746a5}.badge.status-résolu,.badge.status-fermé{background:#e6f7ef;color:#18734d}.badge.status-annulé{background:#ffe8e8;color:#a33c3c}
