:root {
  --ink: #17202a;
  --muted: #667085;
  --line: #d8dee8;
  --page: #f4f7fb;
  --surface: #ffffff;
  --brand: #1265d8;
  --brand-dark: #0b3e91;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.09);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--page); font-family: "Segoe UI", Arial, sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.login-body { display: grid; place-items: center; padding: 24px; background: #eef2f7; }
.login-shell { display: grid; grid-template-columns: minmax(320px, .92fr) minmax(360px, 1fr); width: min(1040px, 100%); min-height: 620px; overflow: hidden; border-radius: 8px; background: white; box-shadow: var(--shadow); }
.login-brand-panel { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 34px; color: white; background: linear-gradient(180deg, #000000 0%, #03070d 42%, #061b3d 100%); }
.login-brand-panel img { width: min(100%, 380px); margin: auto; border-radius: 8px; object-fit: contain; }
.login-brand-panel strong, .login-brand-panel span { display: block; }
.login-brand-panel strong { margin-bottom: 6px; font-size: 24px; }
.login-brand-panel span { color: #b8c7d2; }
.login-form-panel { display: grid; align-items: center; padding: 42px; }
.login-card { width: 100%; max-width: 430px; margin: auto; }
.install-card { padding: 28px; border-radius: 8px; background: white; box-shadow: var(--shadow); }
.login-badge { display: inline-flex; min-height: 30px; align-items: center; padding: 0 10px; border-radius: 999px; color: #0b3e91; background: #dbeafe; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.login-card h1 { margin: 14px 0 0; }
.login-card p { margin: 8px 0 22px; color: var(--muted); }
.alert { padding: 10px 12px; margin-bottom: 14px; border-radius: 8px; color: #7a271a; background: #ffebe7; }
.demo-accounts { display: grid; gap: 4px; margin-top: 16px; padding: 12px; border-radius: 8px; background: #f8fafc; color: var(--muted); font-size: 13px; }
.sidebar { position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; gap: 18px; width: 282px; padding: 22px; color: white; background: linear-gradient(180deg, #000000 0%, #03070d 42%, #061b3d 100%); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.brand strong, .brand span { display: block; }
.brand span { color: #b8c7d2; }
nav { display: grid; gap: 8px; }
nav a { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 8px; color: #e5edf5; text-decoration: none; }
nav a:hover { background: rgba(255,255,255,.12); }
.main { margin-left: 282px; padding: 28px; }
.topbar { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.topbar p { margin: 0 0 4px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.topbar h1 { margin: 0; font-size: 30px; }
.user-pill { align-self: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; font-weight: 700; }
.hero { position: relative; min-height: 180px; overflow: hidden; margin-bottom: 18px; border-radius: 8px; background: #111827; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.hero div { position: relative; max-width: 680px; padding: 28px; color: white; }
.hero strong, .hero span { display: block; }
.hero strong { margin-bottom: 8px; font-size: 30px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metrics article, .panel, .cards article { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 22px rgba(15,23,42,.05); }
.metrics article { padding: 18px; }
.metrics span, .cards span, .cards small { display: block; color: var(--muted); }
.metrics strong { display: block; margin-top: 8px; font-size: 30px; }
.panel { margin-bottom: 18px; padding: 18px; }
.panel.narrow { max-width: 760px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel h2, .panel-title h2 { margin: 0 0 12px; }
.primary-link, .primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 0; border-radius: 8px; color: white; background: var(--brand); text-decoration: none; cursor: pointer; }
.primary-button:hover, .primary-link:hover { background: var(--brand-dark); }
.table { display: grid; gap: 8px; }
.table-head, .table-row { display: grid; grid-template-columns: 95px minmax(220px, 1fr) 160px 100px 150px 140px; gap: 10px; align-items: center; }
.table-head { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.table-row { min-height: 62px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.table-row small { display: block; color: var(--muted); }
.badge { display: inline-flex; justify-content: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.Critique { color: white; background: var(--danger); }
.Haute { color: #7a2e0e; background: #ffedd5; }
.Normale { color: #365314; background: #ecfccb; }
.Faible, .soft { color: #155e75; background: #cffafe; }
select, input, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards article { padding: 16px; }
.cards strong { display: block; margin-bottom: 6px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.detail-grid span, .timeline { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f8fafc; }
.timeline + .timeline { margin-top: 10px; }
.timeline p { margin: 6px 0; }
.timeline small { color: var(--muted); }
@media (max-width:1050px){.sidebar{position:static;width:auto}.main{margin-left:0;padding:18px}.metrics,.cards,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.table-head{display:none}.table-row{grid-template-columns:1fr}}
@media (max-width:620px){.login-body{padding:0}.login-shell{min-height:100vh;grid-template-columns:1fr;border-radius:0}.login-brand-panel{min-height:260px;padding:22px}.login-brand-panel img{max-width:230px}.login-form-panel{padding:24px}.metrics,.cards,.detail-grid{grid-template-columns:1fr}.topbar,.panel-title{align-items:stretch;flex-direction:column}}

