
:root{--bg:#f4f6f8;--panel:#fff;--text:#111827;--muted:#667085;--line:#e4e7ec;--brand:#2563eb;--nav:#101828}
*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}
a{text-decoration:none;color:inherit}.top{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:20}.brand,.top-actions{display:flex;align-items:center;gap:12px}.brand img{height:38px;max-width:180px;object-fit:contain}.top select{padding:9px;border:1px solid var(--line);border-radius:10px;background:white}.role{padding:8px 10px;background:#eef2ff;border-radius:99px;font-size:12px;font-weight:800}
.shell{display:grid;grid-template-columns:240px 1fr;min-height:calc(100vh - 70px)}aside{background:var(--nav);padding:18px 12px}nav{display:grid;gap:6px}nav a{color:#d0d5dd;padding:12px;border-radius:11px}nav a:hover{background:rgba(255,255,255,.1);color:#fff}
main{padding:26px;min-width:0}.page-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.page-head h1{margin:3px 0 0}.page-head small,.muted{color:var(--muted)}
.grid{display:grid;gap:16px}.g4{grid-template-columns:repeat(4,1fr)}.g3{grid-template-columns:repeat(3,1fr)}.g2{grid-template-columns:repeat(2,1fr)}
.card{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:0 8px 30px rgba(16,24,40,.04)}.kpi b{font-size:28px;display:block;margin-top:7px}
.btn{display:inline-flex;justify-content:center;align-items:center;border:0;border-radius:11px;padding:10px 14px;font-weight:800;cursor:pointer;background:var(--brand);color:white}.btn.ghost{background:white;color:var(--text);border:1px solid var(--line)}.btn.danger{background:#d92d20}
input,select,textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--text)}label{font-size:13px;font-weight:750;display:block;margin-bottom:5px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}.actions{display:flex;gap:9px;flex-wrap:wrap;margin:16px 0}
.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:760px}.table th,.table td{padding:12px;border-bottom:1px solid var(--line);text-align:left;font-size:14px}.table th{color:var(--muted)}
.products{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.product{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}.photo{height:210px;background:#eef2f7;display:grid;place-items:center}.photo img{width:100%;height:100%;object-fit:cover}.photo span{font-size:72px}.product-body{padding:15px}.sizes{display:flex;flex-wrap:wrap;gap:7px}.size{border:1px solid var(--line);border-radius:9px;padding:7px 9px;background:white}.size.zero{opacity:.4}.badge{display:inline-flex;padding:6px 8px;border-radius:99px;font-size:11px;font-weight:800;background:#eef2ff}.ok{background:#dcfae6;color:#067647}.warn{background:#fef0c7;color:#b54708}
.login{min-height:100vh;background:#07101e;display:grid;place-items:center;padding:18px}.login-card{width:min(430px,100%);background:#fff;border-radius:24px;padding:28px}.login-card img{height:62px;max-width:230px;object-fit:contain}.login-card h1{margin:18px 0 8px}.error{background:#fee4e2;color:#b42318;padding:10px;border-radius:10px;margin:10px 0}.success{background:#dcfae6;color:#067647;padding:10px;border-radius:10px;margin:10px 0}
@media(max-width:1050px){.products{grid-template-columns:repeat(2,1fr)}.g4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:780px){.shell{grid-template-columns:1fr}aside{position:static}nav{grid-template-columns:repeat(2,1fr)}main{padding:16px}.top{padding:0 12px}.brand b{display:none}.role{display:none}.g4,.g3,.g2,.form-grid,.products{grid-template-columns:1fr}.photo{height:250px}}

/* V3 */
.login-logo-wrap{min-height:68px;display:flex;align-items:center}.fallback-logo{font-size:20px;font-weight:900}
.brand img{height:42px;width:auto;max-width:210px;object-fit:contain;object-position:left center}
.catalog-toolbar{margin-bottom:16px}.catalog-toolbar input{max-width:430px}
.photo{aspect-ratio:1/1;height:auto;overflow:hidden;background:#fff}.photo img{width:100%;height:100%;object-fit:contain;background:#fff}
.product{min-width:0}.product-body h3{min-height:44px}
@media(max-width:900px){.shell{grid-template-columns:1fr}aside{padding:10px;overflow-x:auto}nav{display:flex;gap:7px;min-width:max-content}nav a{white-space:nowrap}.top{height:auto;min-height:66px;gap:10px;flex-wrap:wrap;padding:10px 12px}.top-actions{flex-wrap:wrap;justify-content:flex-end}main{padding:14px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.products{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.top-actions select{max-width:150px}.brand img{max-width:140px;height:34px}.page-head h1{font-size:25px}.table{min-width:680px}}

/* V4 SOCIETES & EMAILS */
.company-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.company-admin-card{transition:.18s ease}.company-admin-card.company-disabled{opacity:.62;background:#f9fafb}
.company-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.company-card-head h3{margin:8px 0 4px}
.company-color{width:36px;height:36px;border-radius:50%;border:4px solid #fff;box-shadow:0 0 0 1px var(--line)}
.status-pill{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:900}.status-pill.active{background:#dcfae6;color:#067647}.status-pill.inactive{background:#fee4e2;color:#b42318}
.company-stats{display:flex;gap:18px;padding:14px 0}.company-stats span{font-size:12px;color:var(--muted)}.company-stats b{font-size:18px;color:var(--text)}
.test-mail-form{display:flex;gap:8px}.test-mail-form input{max-width:420px}
@media(max-width:1050px){.company-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.company-admin-grid{grid-template-columns:1fr}.test-mail-form{display:grid}.test-mail-form input{max-width:none}}

/* V5 */
.lang-form{display:flex;align-items:center}.lang-select{min-width:135px;width:auto;padding-right:32px;background-color:#fff;color:#111827}
.company-switch{min-width:190px;width:auto}
.product-photo-preview-wrap{margin-top:12px;display:grid;gap:10px;max-width:320px}
.product-photo-preview-wrap.hidden{display:none}
.product-photo-preview{width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:14px}
@media(max-width:620px){
 .lang-select{min-width:120px}
 .company-switch{min-width:150px;max-width:190px}
 .top-actions{width:100%;justify-content:flex-start}
}

/* V6 */
.lang-select{min-width:72px!important;width:72px!important;max-width:72px!important;padding:8px 26px 8px 10px!important}
.company-switch{min-width:210px!important;width:auto!important}
.product-photo-preview-wrap{max-width:220px!important}
.product-photo-preview{width:220px!important;height:220px!important;aspect-ratio:1/1;object-fit:contain}
.locked-company{padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#f2f4f7;font-weight:800}
.stock-filters{display:flex;gap:10px;margin-bottom:16px}.stock-filters input{flex:1}.stock-filters select{max-width:220px}
@media(max-width:620px){
 .lang-select{min-width:68px!important;width:68px!important;max-width:68px!important}
 .company-switch{min-width:160px!important;max-width:210px!important}
 .product-photo-preview{width:160px!important;height:160px!important}
 .product-photo-preview-wrap{max-width:160px!important}
 .stock-filters{display:grid}.stock-filters select{max-width:none}
}
