/* Kazeia-central — design system « clinique-apaisé » (clair, sans build). */ :root { --bg: #eef2f6; /* fond app, gris-bleu très clair */ --surface: #ffffff; --surface-2: #f4f7fa; --line: #e2e8f0; --line-strong: #cdd7e2; --txt: #25323f; --muted: #64748b; --primary: #3b7dd8; /* bleu calme */ --primary-d: #2f68bb; --primary-soft: #e8f0fb; --ok: #2e9e6b; --ok-soft: #e4f4ec; --warn: #c98a1b; --warn-soft: #fbf1dc; --danger: #d2544f; --danger-soft: #fbe9e8; --radius: 12px; --radius-sm: 8px; --shadow: 0 1px 2px rgba(20,40,70,.06), 0 4px 16px rgba(20,40,70,.06); --shadow-sm: 0 1px 2px rgba(20,40,70,.08); --side: 230px; --top: 58px; } * { box-sizing: border-box; } html, body { height: 100%; } body { margin: 0; background: var(--bg); color: var(--txt); font: 14px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; } a { color: var(--primary); text-decoration: none; } h1,h2,h3 { margin: 0; font-weight: 650; } .muted { color: var(--muted); } .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; } /* ---- shell ---- */ .topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--top); z-index: 20; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: var(--surface); border-bottom: 1px solid var(--line); } .brand { font-weight: 700; font-size: 15px; letter-spacing: .2px; } .brand .dot { color: var(--primary); } .topbar .ctx { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; } .topbar .spacer { flex: 1; } .lockpill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); } .lockpill.on { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); } .lockpill.off { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); } .sidebar { position: fixed; top: var(--top); left: 0; bottom: 0; width: var(--side); background: var(--surface); border-right: 1px solid var(--line); padding: 14px 12px; overflow: auto; } .nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--txt); cursor: pointer; font-weight: 500; margin-bottom: 2px; user-select: none; } .nav-item .ic { width: 18px; text-align: center; opacity: .85; } .nav-item:hover { background: var(--surface-2); } .nav-item.active { background: var(--primary-soft); color: var(--primary-d); font-weight: 650; } .nav-sep { height: 1px; background: var(--line); margin: 10px 6px; } .nav-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 6px 12px 4px; } main { margin: var(--top) 0 0 var(--side); padding: 22px 26px; min-height: calc(100vh - var(--top)); } .page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; } .page-head h1 { font-size: 19px; } .page-head .sub { color: var(--muted); font-size: 13px; } .page-head .actions { margin-left: auto; display: flex; gap: 8px; } /* ---- composants ---- */ .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; } .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; } .card.full { grid-column: 1 / -1; } .card > h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; font-weight: 650; } .kv { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--surface-2); } .kv:last-child { border-bottom: 0; } .kv .k { color: var(--muted); } .kv .v { font-variant-numeric: tabular-nums; } button, .btn { font: inherit; cursor: pointer; border-radius: var(--radius-sm); padding: 7px 13px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--txt); box-shadow: var(--shadow-sm); transition: .12s; } button:hover, .btn:hover { border-color: var(--primary); color: var(--primary-d); } .btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; } .btn-primary:hover { background: var(--primary-d); color: #fff; } .btn-sm { padding: 4px 9px; font-size: 12.5px; } .btn-ghost { background: transparent; border-color: transparent; box-shadow: none; } button:disabled { opacity: .5; cursor: default; } input, select { font: inherit; padding: 8px 11px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--txt); } input:focus, select:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); } label.chk { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; } table { width: 100%; border-collapse: collapse; font-size: 13.5px; } th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; } th { color: var(--muted); font-weight: 600; font-size: 12px; } tr:last-child td { border-bottom: 0; } tbody tr:hover { background: var(--surface-2); } .badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface-2); } .badge.ok { color: var(--ok); border-color: var(--ok); background: var(--ok-soft); } .badge.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); } .badge.danger { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); } .badge.primary { color: var(--primary-d); border-color: var(--primary); background: var(--primary-soft); } .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .dot.ok { background: var(--ok); } .dot.off { background: var(--danger); } .dot.idle { background: var(--muted); } .empty { text-align: center; color: var(--muted); padding: 34px 16px; } .empty .big { font-size: 30px; opacity: .5; } .err { color: var(--danger); font-size: 13px; } .list-tablet { display: flex; flex-direction: column; gap: 8px; } .tablet-row { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; box-shadow: var(--shadow-sm); } .tablet-row:hover { border-color: var(--primary); } .tablet-row.sel { border-color: var(--primary); background: var(--primary-soft); } .tablet-row .name { font-weight: 600; } .tablet-row .meta { color: var(--muted); font-size: 12px; } .spinner { width: 16px; height: 16px; border: 2px solid var(--line-strong); border-top-color: var(--primary); border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; } @keyframes spin { to { transform: rotate(360deg); } } /* ---- toasts ---- */ #toasts { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; flex-direction: column; gap: 8px; } .toast { background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--primary); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 11px 15px; max-width: 360px; font-size: 13.5px; animation: slideup .18s ease; } .toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--danger); } @keyframes slideup { from { transform: translateY(8px); opacity: 0; } } /* ---- écran de déverrouillage ---- */ .gate { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); } .gate .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; width: 360px; text-align: center; } .gate .panel .logo { font-size: 22px; font-weight: 700; margin-bottom: 4px; } .gate .panel .logo .dot { color: var(--primary); } .gate .panel p { color: var(--muted); font-size: 13px; margin: 4px 0 18px; } .gate .panel input { width: 100%; margin-bottom: 10px; } .gate .panel .btn-primary { width: 100%; }