:root {
  --bg: #f4f6f9; --surface: #ffffff; --surface-2: #f8fafc; --border: #e3e8ef; --border-strong: #cbd3df;
  --text: #0f1b2d; --text-2: #4a5568; --muted: #7b8798;
  --side: #0f2a4a; --side-2: #163a63; --side-text: #c9d6e8; --side-muted: #7f97b6;
  --accent: #0d9488; --accent-2: #0f766e; --accent-soft: #e6f6f4;
  --blue: #2a78d6; --blue-soft: #eaf2fc;
  --good: #15803d; --good-soft: #e8f6ec; --warn: #b45309; --warn-soft: #fdf3e2;
  --bad: #c2410c; --bad-soft: #fdeee6; --crit: #b91c1c; --crit-soft: #fde8e8;
  --radius: 10px; --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 4px 16px rgba(15, 27, 45, .05);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1420; --surface: #141d2b; --surface-2: #182233; --border: #243146; --border-strong: #33445e;
  --text: #e8eef7; --text-2: #b4c0d2; --muted: #8392a8;
  --side: #0a1a2e; --side-2: #12304f;
  --accent: #14b8a6; --accent-2: #2dd4bf; --accent-soft: #10302e;
  --blue: #3987e5; --blue-soft: #14263f;
  --good: #4ade80; --good-soft: #12301f; --warn: #fbbf24; --warn-soft: #33270f; --bad: #fb923c; --bad-soft: #36200f;
  --crit: #f87171; --crit-soft: #3a1717; --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow-x: clip; }
body { overflow-x: clip; font: 14px/1.45 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); } .small { font-size: 12px; } .right { text-align: end; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; text-align: end; white-space: nowrap; }
.hidden { display: none !important; }

/* Layout ------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; font-weight: 700; font-size: 17px; }
.brand small { display: block; font-weight: 400; font-size: 11px; color: var(--side-muted); }
.nav { padding: 6px 10px 20px; flex: 1; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; color: var(--side-text); border-radius: 8px; cursor: pointer; text-align: start; font-size: 13.5px; }
.nav-item:hover { background: var(--side-2); color: #fff; text-decoration: none; }
.nav-item.active { background: var(--side-2); color: #fff; box-shadow: inset 3px 0 0 #14b8a6; }
[dir="rtl"] .nav-item.active { box-shadow: inset -3px 0 0 #14b8a6; }
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .9; }
.nav-item .chev { margin-inline-start: auto; width: 14px; height: 14px; transition: transform .15s; }
.nav-group.open > .nav-item .chev { transform: rotate(90deg); }
[dir="rtl"] .nav-group.open > .nav-item .chev { transform: rotate(-90deg); }
[dir="rtl"] .nav-item .chev { transform: scaleX(-1); }
.nav-sub { display: none; padding: 2px 0 6px; }
.nav-group.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: 6px 10px 6px 38px; color: var(--side-muted); border-radius: 6px; font-size: 13px; }
[dir="rtl"] .nav-sub a { padding: 6px 38px 6px 10px; }
.nav-sub a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.04); }
.nav-sub a.active { color: #fff; font-weight: 600; }
.side-trial { margin: 0 14px 10px; padding: 8px 10px; border-radius: 8px; background: rgba(251, 191, 36, .15); color: #fcd34d; font-size: 12px; font-weight: 600; text-align: center; }
.side-trial:hover { text-decoration: none; background: rgba(251, 191, 36, .25); }
.side-foot { padding: 12px 18px; font-size: 11px; color: var(--side-muted); border-top: 1px solid rgba(255,255,255,.06); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { width: 100%; padding: 8px 12px 8px 34px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
[dir="rtl"] .search input { padding: 8px 34px 8px 12px; }
.search > svg { position: absolute; inset-inline-start: 10px; top: 9px; width: 16px; height: 16px; color: var(--muted); }
.search-res { position: absolute; top: 40px; inset-inline: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); max-height: 420px; overflow: auto; padding: 6px; }
.search-res h5 { margin: 8px 8px 4px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.search-res a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 6px; color: var(--text); }
.search-res a:hover { background: var(--surface-2); text-decoration: none; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }
.content { padding: 22px 24px 48px; max-width: 1500px; width: 100%; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 3px; }
.page-head .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Components --------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-2); }
.btn.danger { color: var(--crit); border-color: color-mix(in srgb, var(--crit) 40%, transparent); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: none; padding: 6px; border-radius: 6px; cursor: pointer; color: var(--text-2); display: inline-flex; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.card-h .actions { margin-inline-start: auto; display: flex; gap: 6px; }
.card-b { padding: 0 16px 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi .l { color: var(--muted); font-size: 12.5px; }
.kpi .v { font-size: 24px; font-weight: 650; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .s { font-size: 12px; color: var(--text-2); margin-top: 2px; }
a.kpi:hover { text-decoration: none; border-color: var(--border-strong); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.crit { background: var(--crit-soft); color: var(--crit); border-color: transparent; }
.badge.info { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.badge.accent { background: var(--accent-soft); color: var(--accent-2); border-color: transparent; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Tables */
.toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.toolbar input[type=search], .toolbar select { padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.toolbar input[type=search] { min-width: 240px; }
.toolbar .count { color: var(--muted); font-size: 12.5px; margin-inline-start: auto; }
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
.t th { text-align: start; font-weight: 600; font-size: 12px; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface-2); cursor: default; user-select: none; }
.t th.sortable { cursor: pointer; }
.t th.sortable:hover { color: var(--text); }
.t td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: var(--surface-2); }
.t tr.best td { background: var(--accent-soft); }
.empty { padding: 34px 16px; text-align: center; color: var(--muted); }
.pager { display: flex; gap: 6px; justify-content: flex-end; align-items: center; padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 9px 14px; border: 0; background: none; cursor: pointer; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-2); border-color: var(--accent); }
.tab .n { margin-inline-start: 5px; font-size: 11px; color: var(--muted); }

/* Detail */
.dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 22px; }
.dl div > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.dl div > b { font-weight: 500; word-break: break-word; }
.hero { display: flex; gap: 16px; align-items: center; padding: 18px; flex-wrap: wrap; }
.avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 700; font-size: 18px; flex: none; }
.hero .badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hero .actions { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 12px 1fr; gap: 10px; padding: 8px 0; }
.timeline li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-top: 6px; }
.timeline .meta { font-size: 12px; color: var(--muted); }
.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.alert:hover { text-decoration: none; border-color: var(--border-strong); }
.alert .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 13px; }
.alert.critical .ic { background: var(--crit-soft); color: var(--crit); }
.alert.serious .ic { background: var(--bad-soft); color: var(--bad); }
.alert.warning .ic { background: var(--warn-soft); color: var(--warn); }
.alert .c { margin-inline-start: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; min-width: 90px; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.progress.low > i { background: var(--warn); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.check-list li:last-child { border-bottom: 0; }
.ok-ic, .ko-ic { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.ok-ic { background: var(--good-soft); color: var(--good); } .ko-ic { background: var(--warn-soft); color: var(--warn); }

/* Offers comparator */
.offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.offer { border: 1px solid var(--border); border-radius: 10px; padding: 14px; background: var(--surface); position: relative; display: flex; flex-direction: column; gap: 6px; }
.offer.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.offer.chosen { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.offer .price { font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; }
.offer .tag { position: absolute; top: -10px; inset-inline-end: 10px; }
.stars { color: #d69e00; letter-spacing: 1px; }

/* Forms / modal */
.modal-bg { position: fixed; inset: 0; background: rgba(9, 18, 32, .45); display: grid; place-items: center; z-index: 100; padding: 16px; animation: fade .12s; }
.modal { background: var(--surface); border-radius: 14px; width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.sm { width: min(460px, 100%); } .modal.lg { width: min(1000px, 100%); }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-h .icon-btn { margin-inline-start: auto; }
.modal-b { padding: 18px 20px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }
@keyframes fade { from { opacity: 0; } }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.form .full { grid-column: 1 / -1; }
.form h4 { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); }
.form h4:first-child { border: 0; margin: 0; padding: 0; }
.field label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; font-weight: 500; }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .search input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 0; border-color: var(--accent); }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.field.check label { display: flex; gap: 8px; align-items: center; font-weight: 400; color: var(--text); cursor: pointer; margin: 0; padding-top: 22px; }
.field.check.inline label { padding-top: 0; }
.field .req { color: var(--crit); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { display: inline-flex !important; gap: 6px; align-items: center; padding: 5px 10px !important; border: 1px solid var(--border-strong); border-radius: 999px; cursor: pointer; font-weight: 400 !important; color: var(--text) !important; }
.chips input:checked + span { color: var(--accent-2); font-weight: 600; }
.err { color: var(--crit); font-size: 13px; margin-top: 10px; }

/* Toast */
#toast-root { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #10233d; color: #fff; padding: 10px 14px; border-radius: 9px; box-shadow: var(--shadow); max-width: 360px; animation: fade .15s; }
.toast.error { background: #8f1d1d; }

/* Charts */
.vchart { position: relative; display: flex; align-items: flex-end; gap: 4px; margin-top: 18px; border-bottom: 1px solid var(--border-strong); }
.vchart .gl { position: absolute; inset-inline: 0; border-top: 1px solid var(--border); pointer-events: none; }
.vchart .gl span { position: absolute; inset-inline-start: 0; top: -15px; font-size: 10.5px; color: var(--muted); }
.vchart .col { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; position: relative; z-index: 1; cursor: default; }
.vchart .col i { display: block; width: min(64%, 34px); background: var(--blue); border-radius: 4px 4px 0 0; min-height: 0; }
.vchart.alt .col i { background: var(--accent); }
.vchart .col:hover i { opacity: .82; }
.vlabels { display: flex; gap: 4px; margin-top: 5px; }
.vlabels span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); overflow: hidden; white-space: nowrap; }
.chart { width: 100%; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .lbl { fill: var(--text-2); }
.chart .val { fill: var(--text); font-weight: 600; }
.chart .grid-l { stroke: var(--border); stroke-width: 1; }
.chart .bar { fill: var(--blue); }
.chart .bar.alt { fill: var(--accent); }
.chart .bar:hover, .chart .hit:hover + .bar { opacity: .82; }
.hbar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 0 4px 4px 0; position: relative; }
.hbar .track > i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--blue); border-radius: 0 4px 4px 0; }
[dir="rtl"] .hbar .track > i, [dir="rtl"] .hbar .track { border-radius: 4px 0 0 4px; }
.hbar .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hbar .v { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 80px; text-align: end; }
#tip { position: fixed; pointer-events: none; z-index: 300; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px; font-size: 12.5px; box-shadow: var(--shadow); display: none; max-width: 260px; }
#tip b { display: block; }

/* Logo du bureau */
.brand-logo { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 8px; padding: 2px; flex: none; }
.login-logo { max-height: 72px; max-width: 240px; object-fit: contain; align-self: flex-start; }
.logo-mgr { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.logo-box { width: 170px; height: 110px; border: 1px dashed var(--border-strong); border-radius: 10px; display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-2) 0% 25%, var(--surface) 0% 50%) 50% / 16px 16px; flex: none; }
.logo-box img { max-width: 150px; max-height: 90px; object-fit: contain; }
.logo-mgr > div:last-child { flex: 1; min-width: 220px; }

/* Login */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: linear-gradient(150deg, #0f2a4a 0%, #0b3b5c 55%, #0d6b68 100%); color: #e6eef8; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art h1 { font-size: 34px; color: #fff; margin-top: 40px; max-width: 460px; line-height: 1.15; }
.login-art p { color: #b8cbe2; max-width: 440px; }
.login-art ul { padding: 0; list-style: none; color: #cfe0f2; } .login-art li { padding: 4px 0; }
.login-art li::before { content: "✓  "; color: #5eead4; }
.login-form { display: grid; place-items: center; padding: 32px; background: var(--surface); }
.login-form form { width: min(360px, 100%); display: flex; flex-direction: column; gap: 14px; }
.lang-pick { display: flex; gap: 4px; }
.lang-pick button { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; padding: 3px 8px; cursor: pointer; font-size: 12px; }
.lang-pick button.on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Print */
.doc { font: 13px/1.5 var(--font); color: #111; }

@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  [dir="rtl"] .side { transform: translateX(100%); }
  .shell.nav-open .side { transform: none; }
  .menu-btn { display: inline-flex; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
  .form { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; } .login-art { display: none; }
  .toolbar input[type=search] { min-width: 0; flex: 1; }
  .top-actions .hide-sm { display: none; }
}

/* démonstration publique */
.demo-bar { background: #0f2a4a; color: #e6f6f4; text-align: center; font-size: .82rem; padding: 7px 12px; }
.demo-bar a { color: #5eead4; font-weight: 600; }
.demo-login { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line, #e2e8f0); }
.demo-role { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; text-decoration: none; color: inherit; }
.demo-role:hover { border-color: #14b8a6; background: rgba(20, 184, 166, .08); }
.demo-role span { font-size: .8rem; opacity: .75; }

/* personnel : pointeuse */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.staff-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: inherit; font: inherit; cursor: pointer; text-align: center; min-width: 0; }
.staff-tile:hover { border-color: var(--accent); }
.staff-tile.on { border-color: var(--good); box-shadow: inset 0 0 0 1px var(--good); }
.staff-tile.on .small { color: var(--good); }
.staff-tile b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent-soft); color: var(--accent-2); }
/* poste de pointage (écran dédié) */
.kiosk { min-height: 100vh; padding: 24px clamp(16px, 4vw, 48px); background: var(--bg); }
.kiosk header { display: flex; align-items: center; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.kiosk-clock { text-align: center; }
.kiosk-clock b { display: block; font-size: clamp(40px, 8vw, 72px); line-height: 1; font-variant-numeric: tabular-nums; }
.kiosk-clock span { color: var(--muted); text-transform: capitalize; }
.kiosk-actions { display: flex; gap: 8px; align-items: center; }
.kiosk-help { text-align: center; color: var(--text-2); margin: 18px 0 22px; font-size: 16px; }
.kiosk-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.kiosk-grid .staff-tile { padding: 22px 12px; font-size: 16px; }
.kiosk-grid .staff-av { width: 64px; height: 64px; font-size: 20px; }
.kiosk-pin { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.kiosk-dots { font-size: 30px; letter-spacing: .4em; min-height: 40px; }
.kiosk-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 10px; }
.kiosk-pad .btn { height: 60px; font-size: 22px; justify-content: center; }
