/* Finition d’interface : hiérarchie sobre, contrastes stables, actions lisibles. */
:root{--bg:#f4f6f8;--surface:#fff;--surface2:#f7f9fb;--border:#d8e0e7;--text:#182b3d;--muted:#5d6e7f;--accent:#234b68;--accent2:#18354d;--ok:#287357;--warn:#8b6118;--danger:#a8323e;--radius:10px}
html{scroll-behavior:smooth}body{background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-size:15px;line-height:1.5}
.wrap{max-width:1540px;padding:20px clamp(16px,2.4vw,34px) 64px}
.topbar{border:1px solid var(--border);border-radius:10px;background:#fff;box-shadow:0 1px 3px #142b3b0a;min-height:74px;padding:9px 16px;gap:16px}
.topbar .brand-lockup strong{font-size:16px;letter-spacing:.08em}.topbar .brand-lockup small{font-size:12px;color:var(--muted)}
.topbar .logo-top{width:78px;height:50px;margin:0 -4px 0 -10px}
.topbar .who{gap:9px}.who-avatar{width:34px;height:34px}.who-copy{gap:1px}.who-copy strong{font-size:13px}.who-copy small{font-size:11px}
.tabs{background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:none;padding:10px;gap:3px}
.tabs .nav-label{font-size:10px;letter-spacing:.09em;color:#708092;padding:15px 10px 5px}
.tabs .tab{font-size:13px;min-height:40px;font-weight:600;border-radius:7px;color:#435466}
.tabs .tab.active{background:#eaf0f5;color:#173d59;box-shadow:inset 3px 0 #315f80}
.card,.dashboard-heading,.stat,.agent-card,.dashboard-guide,.plain-guide .offer,.purpose,.compat-card{border-radius:9px;box-shadow:none}
.card{padding:20px;border-color:var(--border)}.card>h2{font-size:17px;letter-spacing:-.01em;margin-bottom:5px}.sub{font-size:13px;line-height:1.55}
.ops-head{gap:20px}.ops-head h1,.dashboard-heading h1{font-size:26px;letter-spacing:-.025em;line-height:1.2}.ops-head .brand{font-size:10px;letter-spacing:.12em;font-weight:750}
.btn{min-height:40px;border-radius:7px;padding:9px 14px;font-size:13px;font-weight:650;line-height:1.35;white-space:normal}
.btn-secondary{background:#fff!important;color:#234b68!important;border-color:#b9c8d4!important}
.btn:focus-visible,.tab:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8bb5d1;outline-offset:2px}
input[type=text],input[type=email],input[type=tel],input[type=password],input[type=date],input[type=search],select,textarea{min-height:42px;border:1px solid #cbd5df;background:#fff;border-radius:7px;font:inherit;font-size:14px;padding:9px 11px}
label{font-size:13px;font-weight:600;color:#34485a}label small,.field label{color:var(--muted)}
.invite-layout{grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:16px}
.invite-step{border-radius:8px;padding:13px;background:#f8fafb;border-color:#e0e6eb}.invite-step b{background:#e8eff4;color:#244b68}
.invite-success{border-radius:8px;background:#eff6f2;border-color:#cce2d4}.invite-success strong{color:#236347}
#panneau-agents>.ops-head .ops-actions{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
#panneau-agents>.ops-head .ops-actions .btn,#panneau-agents .visible-action-label{display:inline-flex!important;align-items:center;justify-content:center;min-width:0;min-height:40px;width:auto;max-width:100%;font:650 13px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:normal!important;text-indent:0!important;white-space:normal!important;visibility:visible!important;opacity:1!important;color:#234b68!important;-webkit-text-fill-color:#234b68!important}
#panneau-agents>.ops-head .ops-actions .btn::after{content:none!important;display:none!important}
#panneau-agents .ops-title{flex:1;min-width:260px}#panneau-agents>.ops-head{align-items:center}
#engine-console .engine-test-controls{grid-template-columns:minmax(0,1fr) auto!important;align-items:end;gap:12px}
#engine-console #engine-reload,#engine-console #engine-certif{display:inline-flex;align-items:center;justify-content:center;min-width:0;width:auto;min-height:42px;padding:9px 14px;font:650 13px/1.35 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:normal!important;text-indent:0!important;white-space:normal!important;visibility:visible!important;opacity:1!important}
#engine-console #engine-reload{background:#fff!important;color:#234b68!important;-webkit-text-fill-color:#234b68!important;border:1px solid #b9c8d4!important}
#engine-console #engine-certif:not(:disabled){background:#234b68!important;color:#fff!important;-webkit-text-fill-color:#fff!important}
#engine-console #engine-certif:disabled{background:#e9eef2!important;color:#617486!important;-webkit-text-fill-color:#617486!important;border:1px solid #d4dde4!important}
#engine-console .visible-action-label{display:inline!important;visibility:visible!important;opacity:1!important}
.stat-row{gap:10px}.stat{padding:15px}.stat .n{font-size:23px}.queue-card{border-radius:8px;box-shadow:none}
table{border-collapse:separate;border-spacing:0}th{font-size:10px;letter-spacing:.04em;color:#627486}td{line-height:1.45}
#inv-resultat[hidden]{display:none!important}
@media(max-width:900px){.wrap{padding:14px}.topbar{flex-wrap:wrap}.invite-layout{grid-template-columns:1fr}.ops-head{display:block}.ops-head .ops-actions{margin-top:12px}}
@media(max-width:650px){.topbar .who{flex:1 1 100%;justify-content:flex-start;padding-top:8px;border-top:1px solid #e8edf1}.topbar .who-copy{min-width:0}.ops-head h1,.dashboard-heading h1{font-size:23px}#panneau-agents>.ops-head .ops-actions{justify-content:flex-start}.card{padding:16px}#engine-console .engine-test-controls{grid-template-columns:1fr!important}#engine-console #engine-reload,#engine-console #engine-certif{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
