/* Streamix – maquette – thème sobre, clair/sombre, responsive
   copyright Urbanit Sàrl – novembre 2026 */

:root {
  --bg: #F6F7F9; --panel: #FFFFFF; --panel-2: #F1F3F6; --line: #E2E6EC;
  --ink: #0F172A; --ink-2: #475569; --ink-3: #94A3B8;
  --accent: #2563EB; --client: #2563EB;
  --ok: #15803D; --ok-bg: #DCFCE7; --warn: #B45309; --warn-bg: #FEF3C7; --err: #B91C1C; --err-bg: #FEE2E2;
  --radius: 10px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.04);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
[data-theme="dark"] {
  --bg: #0B1120; --panel: #111827; --panel-2: #1A2333; --line: #243044;
  --ink: #E5E7EB; --ink-2: #A3AEC2; --ink-3: #64748B;
  --ok-bg: #14532D; --ok: #86EFAC; --warn-bg: #451A03; --warn: #FCD34D; --err-bg: #450A0A; --err: #FCA5A5;
  --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; font-weight: 650; }
h3 { font-size: .95rem; margin: 0 0 .5rem; font-weight: 650; }
code { background: var(--panel-2); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.center { text-align: center; }
.right { text-align: right; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- structure ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 1rem; height: 56px; padding: 0 1rem; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-weight: 700; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.pill { font-style: normal; font-size: .7rem; font-weight: 600; padding: .15rem .5rem; border-radius: 99px; background: var(--ink); color: var(--panel); }
.client-name { display: flex; align-items: center; gap: .4rem; color: var(--ink-2); font-size: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.who { color: var(--ink-2); font-size: .9rem; }
.lang { font-size: .8rem; font-weight: 600; color: var(--ink-3); padding: .2rem .35rem; border-radius: 6px; }
.lang.on { color: var(--ink); background: var(--panel-2); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--panel-2); color: var(--ink); text-decoration: none; }
.burger { display: none; border: 0; background: none; font-size: 1.3rem; color: var(--ink); cursor: pointer; }
.impersonate { background: var(--warn-bg); color: var(--warn); padding: .5rem 1rem; font-size: .9rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.shell { display: flex; min-height: calc(100vh - 56px); }
.sidebar { width: 236px; flex: none; padding: 1rem .75rem; border-right: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 2px; position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; }
.sidebar a { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: 8px; color: var(--ink-2); font-size: .92rem; }
.sidebar a:hover { background: var(--panel-2); color: var(--ink); text-decoration: none; }
.sidebar a.active { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); font-weight: 600; }
.nav-group { margin: .9rem .6rem .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; }
.nav-foot { margin-top: auto; padding: 1rem .6rem 0; font-size: .75rem; color: var(--ink-3); }
.content { flex: 1; min-width: 0; padding: 1.5rem 2rem 4rem; max-width: 1400px; }
.page-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- composants ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.grid > .card, .media-grid > .card, .wall > .tile { margin-top: 0; }
.actions select, .actions input:not([type="checkbox"]) { width: auto; }
.card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.card-head .actions { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1rem; }
.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)); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; }
.mt { margin-top: 1rem; }
.kpi .label { color: var(--ink-2); font-size: .85rem; }
.kpi .value { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; margin: .15rem 0; }
.kpi .delta { font-size: .8rem; }
.up { color: var(--ok); } .down { color: var(--err); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem .9rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 550; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--panel-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: .3rem .6rem; font-size: .82rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font: inherit; }
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 99px; background: var(--panel-2); color: var(--ink-2); white-space: nowrap; }
.badge.ok, .badge.online, .badge.paid, .badge.active, .badge.delivered { background: var(--ok-bg); color: var(--ok); }
.badge.warn, .badge.pending, .badge.trial, .badge.shipped, .badge.ordered, .badge.validated { background: var(--warn-bg); color: var(--warn); }
.badge.err, .badge.offline, .badge.overdue { background: var(--err-bg); color: var(--err); }
.badge.premium { background: #EDE9FE; color: #6D28D9; }
.flash { padding: .7rem .9rem; border-radius: 8px; margin-bottom: 1rem; font-size: .92rem; }
.flash.ok { background: var(--ok-bg); color: var(--ok); }
.flash.warn { background: var(--warn-bg); color: var(--warn); }
.flash.err { background: var(--err-bg); color: var(--err); }
.flash.info { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }

/* tableaux */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .6rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* formulaires */
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 550; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: .95rem; color: var(--ink); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .55rem .7rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent); border-color: var(--accent); }
input[type="color"] { padding: .2rem; height: 40px; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
label.check input { width: auto; }
.stack { display: flex; flex-direction: column; gap: .9rem; }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form label { flex: 1; min-width: 140px; }

/* interrupteur */
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--err); }
.switch input:checked + span::before { transform: translateX(20px); }

/* ---------- mur d'écrans ---------- */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.screen { position: relative; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 650; text-align: center; padding: .5rem; font-size: .9rem; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.screen.portrait { aspect-ratio: auto; height: 100%; }
.screen-frame { aspect-ratio: 16/9; background: #0F172A; display: flex; justify-content: center; }
.screen-frame .portrait { aspect-ratio: 9/16; height: 100%; }
.screen.off { background: repeating-linear-gradient(45deg, #1F2937, #1F2937 8px, #111827 8px, #111827 16px) !important; color: #9CA3AF; }
.screen .prio { position: absolute; top: .4rem; left: .4rem; background: var(--err); color: #fff; font-size: .7rem; padding: .1rem .4rem; border-radius: 4px; text-shadow: none; }
.tile-info { padding: .6rem .75rem; display: flex; flex-direction: column; gap: .15rem; }
.tile-info .row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.tile-info small { color: var(--ink-3); font-size: .78rem; }

/* médias */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.thumb { border-radius: 8px; aspect-ratio: 16/9; display: flex; align-items: flex-end; padding: .4rem; color: #fff; font-size: .75rem; font-weight: 600; position: relative; }
.thumb.portrait { aspect-ratio: 16/9; }
.thumb.portrait::after { content: ""; position: absolute; inset: 12% 38%; border: 2px solid rgba(255,255,255,.7); border-radius: 3px; }
.thumb .kind { position: absolute; top: .35rem; right: .35rem; background: rgba(0,0,0,.45); padding: .05rem .35rem; border-radius: 4px; }
.media-card .name { font-size: .85rem; font-weight: 600; margin-top: .4rem; word-break: break-all; }
.media-card .meta { font-size: .75rem; color: var(--ink-3); }
.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; text-align: center; color: var(--ink-2); cursor: pointer; transition: .15s; }
.dropzone.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.progress { height: 8px; background: var(--panel-2); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.upload-row { display: grid; grid-template-columns: 1fr 160px 150px; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }

/* listes réordonnables */
.sortable { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; min-height: 40px; }
.sortable li { display: flex; align-items: center; gap: .75rem; padding: .45rem .6rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; cursor: grab; }
.sortable li.dragging { opacity: .4; }
.sortable li.drop-target { border-color: var(--accent); }
.sortable .mini { width: 64px; aspect-ratio: 16/9; border-radius: 4px; flex: none; }
.sortable .grip { color: var(--ink-3); }
.sortable .grow { flex: 1; min-width: 0; }

/* tableau d'affectation */
.board3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.col { background: var(--panel-2); border-radius: var(--radius); padding: .75rem; min-height: 320px; }
.col h3 { display: flex; align-items: center; gap: .4rem; }
.chip { display: flex; align-items: center; gap: .5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .55rem; margin-bottom: .4rem; font-size: .85rem; cursor: grab; }
.chip.drop { border-style: dashed; cursor: default; }
.chip.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.chip .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.chip .count { margin-left: auto; font-size: .75rem; color: var(--ink-3); }

/* calendrier */
.cal-toolbar { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .75rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--panel); padding: .4rem .75rem; font: inherit; font-size: .85rem; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--accent); color: #fff; }
.cal { display: grid; grid-template-columns: 54px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .78rem; background: var(--panel); }
.cal .h { padding: .45rem; text-align: center; font-weight: 600; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.cal .h.today { color: var(--accent); }
.cal .hour { color: var(--ink-3); padding: 0 .35rem; text-align: right; border-right: 1px solid var(--line); height: 26px; line-height: 26px; }
.cal .slot { border-left: 1px solid var(--line); border-bottom: 1px dashed color-mix(in srgb, var(--line) 70%, transparent); height: 26px; position: relative; }
.cal .ev { position: absolute; left: 3px; right: 3px; border-radius: 5px; color: #fff; padding: 2px 5px; font-weight: 600; overflow: hidden; z-index: 2; font-size: .72rem; line-height: 1.25; }
.cal .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--err); z-index: 3; }
.byscreen td { font-size: .78rem; padding: .35rem; }
.byscreen .bar { display: block; border-radius: 4px; color: #fff; padding: 2px 5px; margin: 2px 0; font-weight: 600; }

/* récapitulatif de commande */
.recap { display: grid; gap: 1rem; }
.yearbar { position: relative; height: 34px; background: var(--panel-2); border-radius: 8px; overflow: hidden; display: flex; }
.yearbar .past { background: repeating-linear-gradient(135deg, var(--line), var(--line) 6px, transparent 6px, transparent 12px); }
.yearbar .paid { background: var(--accent); color: #fff; font-size: .78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.yearbar .free { background: var(--ok); color: #fff; font-size: .78rem; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .7rem; color: var(--ink-3); text-align: center; margin-top: .25rem; }
.recap-lines { display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; font-size: .92rem; }
.recap-lines .total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); padding-top: .4rem; }

/* mapping SOLUM */
.mapping { display: grid; grid-template-columns: 1fr 60px 1fr; gap: .5rem 0; align-items: center; }
.field { padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); font-size: .85rem; font-family: ui-monospace, Menlo, monospace; }
.field.src { cursor: grab; }
.field.dst { border-style: dashed; min-height: 38px; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.field.dst.over { border-color: var(--accent); }
.field.dst .req { color: var(--err); margin-left: auto; font-family: var(--font); font-size: .75rem; }
.field.dst .mapped { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); padding: .05rem .4rem; border-radius: 4px; }
.field.dst .auto { font-family: var(--font); font-size: .7rem; color: var(--ok); }
.arrow { display: flex; align-items: center; justify-content: center; color: var(--ink-3); }

/* designer */
.designer { display: grid; grid-template-columns: 200px 1fr 230px; gap: 1rem; }
.canvas-wrap { background: var(--panel-2); border-radius: var(--radius); padding: 1rem; display: flex; justify-content: center; align-items: center; }
.canvas { position: relative; width: 100%; max-width: 760px; aspect-ratio: 16/9; background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.canvas.portrait { max-width: 300px; aspect-ratio: 9/16; }
.canvas.bw { filter: grayscale(1) contrast(1.4); }
.el { position: absolute; cursor: move; border: 1px dashed transparent; user-select: none; }
.el:hover, .el.sel { border-color: var(--accent); }
.el.text { color: #111; font-weight: 700; }
.el.box { border-radius: 6px; }
.el.merge { font-family: ui-monospace, Menlo, monospace; color: #1D4ED8; background: #DBEAFE; padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.palette button { width: 100%; margin-bottom: .4rem; justify-content: flex-start; }

/* RoomX */
.room-screen { background: #fff; color: #000; aspect-ratio: 4/3; border: 6px solid #222; border-radius: 6px; padding: .8rem; display: flex; flex-direction: column; justify-content: space-between; font-family: Georgia, serif; filter: grayscale(1); }
.room-screen.busy { background: #000; color: #fff; }
.room-screen .big { font-size: 1.3rem; font-weight: 700; }

/* aide */
.help-fab { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--panel); box-shadow: 0 6px 20px rgba(0,0,0,.2); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 40; }
.help-fab .ico { width: 24px; height: 24px; }
.help-panel { position: fixed; right: 1.25rem; bottom: 5.5rem; width: min(380px, calc(100vw - 2.5rem)); max-height: 60vh; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.18); display: flex; flex-direction: column; z-index: 41; }
.help-panel[hidden] { display: none; }
.help-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-bottom: 1px solid var(--line); }
.help-body { padding: .9rem; overflow-y: auto; flex: 1; font-size: .9rem; display: flex; flex-direction: column; gap: .6rem; }
.msg { padding: .5rem .7rem; border-radius: 10px; max-width: 90%; }
.msg.me { align-self: flex-end; background: var(--accent); color: #fff; }
.msg.ai { align-self: flex-start; background: var(--panel-2); }
.help-form { display: flex; gap: .4rem; padding: .7rem; border-top: 1px solid var(--line); }

/* connexion et installation */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent), var(--bg); }
.login-card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); position: relative; }
.login-card.wide { width: min(720px, 100%); }
.login-brand { display: flex; align-items: center; gap: .6rem; font-size: 1.3rem; font-weight: 700; margin-bottom: 1.5rem; }
.login-langs { position: absolute; top: 1.2rem; right: 1.2rem; }
.sso { margin-top: 1.25rem; }
.sso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.demo-code { font-size: 2rem; font-weight: 700; letter-spacing: .3em; text-align: center; padding: .5rem; background: var(--panel-2); border-radius: 10px; font-variant-numeric: tabular-nums; }
.demo-accounts { margin-top: 1.25rem; font-size: .85rem; color: var(--ink-2); }
.demo-accounts ul { padding-left: 1.1rem; }
.checks { list-style: none; padding: 0; }
.checks .ok { color: var(--ok); } .checks .ko { color: var(--err); }
pre.code { background: var(--panel-2); padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: .8rem; }

.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--ink); color: var(--panel); padding: .6rem 1rem; border-radius: 8px; font-size: .9rem; z-index: 60; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 1rem; }
.modal { background: var(--panel); border-radius: 14px; padding: 1.4rem; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .designer { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .sidebar { position: fixed; left: 0; top: 56px; z-index: 25; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .content { padding: 1rem 1rem 5rem; }
  .g2, .g3, .grid2, .board3 { grid-template-columns: 1fr; }
  .who, .client-name { display: none; }
  .upload-row { grid-template-columns: 1fr; }
  .cal { grid-template-columns: 40px repeat(7, minmax(36px, 1fr)); font-size: .65rem; }
  .mapping { grid-template-columns: 1fr 30px 1fr; }
}
@media (max-width: 520px) {
  .g4 { grid-template-columns: 1fr; }
  .sso-grid { grid-template-columns: 1fr; }
}

/* ---------- v2 : notifications, essai, arbre, carte, impression… (copyright Urbanit Sàrl – novembre 2026) ---------- */
.bell-wrap { position: relative; }
.icon-btn { position: relative; }
.bell-count { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px; background: var(--err); color: #fff; font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.bell-menu { position: absolute; right: 0; top: 40px; width: 320px; max-width: 90vw; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px rgba(15,23,42,.15); padding: .6rem; z-index: 50; }
.bell-item, .notif-list li { display: flex; gap: .5rem; align-items: flex-start; padding: .4rem .2rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.bell-item .dot, .notif-list .dot { margin-top: .4rem; background: var(--accent); }
.bell-item.warn .dot, .notif-list .warn .dot { background: var(--warn); }
.bell-item.error .dot, .notif-list .error .dot { background: var(--err); }
.bell-item.read, .notif-list .read { opacity: .6; }
.trial-bar { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: .88rem; padding: .4rem 1rem; font-weight: 600; }
.trial-bar a { margin-left: .5rem; }
.tree, .tree ul { list-style: none; margin: 0; padding-left: 1.1rem; }
.tree { padding-left: 0; }
.tree li { margin: .2rem 0; border-left: 2px solid var(--line); padding-left: .5rem; }
.tree summary { cursor: pointer; display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; padding: .2rem 0; }
.tag-edit { margin: .4rem 0; }
.tag-edit input[type="color"] { width: 44px; padding: 0; }
.players-map { height: 380px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel-2); }
.room-png { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; display: block; background: #fff; }
.steps { display: flex; gap: .3rem; }
.step { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--panel-2); color: var(--ink-3); font-size: .75rem; font-weight: 700; }
.step.done { background: var(--ok); color: #fff; }
.pay-methods { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .75rem; display: flex; gap: .4rem 1rem; flex-wrap: wrap; }
.pay-methods legend { font-size: .85rem; color: var(--ink-2); padding: 0 .3rem; }
.login-card.wide-card { width: min(760px, 100%); }
.pub-title { font-size: 1.25rem; margin: .5rem 0 1rem; }
.terms-box { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin-bottom: 1rem; background: var(--panel-2); }
.layout-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.layout-list .chip { margin: 0; cursor: pointer; color: var(--ink); }
.layout-list .chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--panel)); }
.api-conn { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .75rem; margin-bottom: .6rem; }
[data-voice].rec { color: var(--err); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.help-form { display: flex; gap: .4rem; align-items: center; }
select[multiple] { min-height: 80px; }
/* documents imprimables (facture, Proof of Play) */
.print-page { background: #e5e7eb; color: #111; }
.sheet { background: #fff; color: #111; width: min(210mm, 100%); min-height: 270mm; margin: 1rem auto; padding: 18mm 16mm; box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.sheet table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.sheet th, .sheet td { border-bottom: 1px solid #ddd; padding: .45rem; text-align: left; }
.sheet .num { text-align: right; }
.sheet-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.qr-slip { display: grid; grid-template-columns: 1fr 120px 1.4fr; gap: 1rem; border-top: 1px dashed #999; margin-top: 2rem; padding-top: 1rem; align-items: start; }
.qr-fake { width: 120px; height: 120px; background:
  repeating-linear-gradient(90deg, #111 0 6px, #fff 6px 12px), repeating-linear-gradient(0deg, #111 0 6px, #fff 6px 12px); background-blend-mode: difference; border: 6px solid #fff; outline: 1px solid #111; }
@media print { .no-print { display: none; } .print-page { background: #fff; } .sheet { box-shadow: none; margin: 0; width: auto; } }
select.compact { font-size: .8rem; padding: .3rem 1.4rem .3rem .4rem; min-width: 84px; width: auto; }
