/* LiveGameShow · studio : même DA que le jeu (blanc, bleu, Inter), pensé pour aller vite pendant un direct. */
:root { --accent: #2f5bea; --accent-l: #eef2fd; --text: #1d2233; --muted: #6b7387; --line: #e3e8f1; --bg: #f3f5fa; --card: #ffffff; --good: #1fae79; --bad: #e5484d; --warn: #f2a01f; --gold: #ffc62e; --r: 16px; --shadow: 0 6px 20px rgba(29, 34, 51, .07); }
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; } body { font: 500 15px/1.45 "Inter", system-ui, sans-serif; color: var(--text); background: var(--bg); }
button, input, select, textarea { font: inherit; color: inherit; } a { color: var(--accent); text-decoration: none; }
h1 { font: 800 24px/1.2 "Inter"; letter-spacing: -.02em; } h2 { font: 800 17px/1.3 "Inter"; } h3 { font: 700 14px/1.3 "Inter"; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font: 600 13px ui-monospace, Menlo, monospace; } .right { margin-left: auto; } .nowrap { white-space: nowrap; } .ok { color: var(--good); } .ko { color: var(--bad); }

/* ---------- squelette : menu, barre d'état, contenu ---------- */
#app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
#nav { position: sticky; top: 0; height: 100vh; background: #fff; border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; } .brand .lg { width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: #fff; display: grid; place-items: center; font: 900 18px "Inter"; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); }
.brand b { display: block; font: 800 16px "Inter"; } .brand small { color: var(--muted); font-size: 12px; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; color: var(--text); font-weight: 600; } #nav a:hover { background: var(--bg); } #nav a.on { background: var(--accent-l); color: var(--accent); font-weight: 700; }
#nav a i { font-style: normal; width: 20px; text-align: center; } #nav .sep { flex: 1; } #nav .foot { font-size: 12px; color: var(--muted); padding: 8px 12px; }
main { min-width: 0; } #bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 28px; background: rgba(243, 245, 250, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
#page { padding: 24px 28px 60px; max-width: 1500px; }
.head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; } .head p { color: var(--muted); margin-top: 4px; max-width: 760px; }

/* ---------- éléments ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.card > h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; } .card > h2 small { font: 500 13px "Inter"; color: var(--muted); margin-left: auto; }
.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)); }
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1250px) { .split, .g3, .g4 { grid-template-columns: 1fr 1fr; } } @media (max-width: 900px) { #app { grid-template-columns: 1fr; } #nav { position: static; height: auto; flex-direction: row; flex-wrap: wrap; } #nav .sep, #nav .foot { display: none; } .split, .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .col { display: flex; flex-direction: column; gap: 10px; } .stack > * + * { margin-top: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; transition: .15s; }
.btn:hover { border-color: #c9d2e3; background: #fafbfe; } .btn.p { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.p:hover { filter: brightness(1.08); } .btn.g { background: var(--good); border-color: var(--good); color: #fff; } .btn.r { background: #fff; border-color: #f5c2c6; color: var(--bad); } .btn.r:hover { background: #fff5f6; }
.btn.s { height: 30px; padding: 0 10px; border-radius: 9px; font-size: 13px; } .btn.big { height: 46px; padding: 0 20px; font-size: 16px; border-radius: 13px; } .btn:disabled { opacity: .45; cursor: default; } .btn.on { background: var(--accent-l); border-color: var(--accent); color: var(--accent); }
label.f { display: flex; flex-direction: column; gap: 5px; font: 600 13px "Inter"; color: var(--muted); min-width: 0; } label.f > span { white-space: nowrap; }
input[type=text], input[type=number], input[type=password], input[type=email], input[type=url], input:not([type]), select, textarea { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--text); width: 100%; min-width: 0; }
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; font-weight: 500; line-height: 1.45; } input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
input[type=color] { width: 44px; height: 34px; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: #fff; cursor: pointer; } input[type=range] { width: 100%; accent-color: var(--accent); }
.sw { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; } .sw input { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: #d5dbe7; position: relative; transition: .2s; cursor: pointer; flex: none; }
.sw input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); } .sw input:checked { background: var(--accent); } .sw input:checked::after { left: 20px; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font: 700 13px "Inter"; white-space: nowrap; } .pill i { width: 8px; height: 8px; border-radius: 50%; background: #b7bfcf; }
.pill.live i { background: var(--bad); animation: bl 1.2s infinite; } .pill.live { color: var(--bad); border-color: #f5c2c6; background: #fff5f6; } .pill.ok i { background: var(--good); } .pill.warn i { background: var(--warn); } .pill.ko i { background: var(--bad); } .pill.test { background: #fff7e6; border-color: #ffe0a3; color: #8a5a00; }
@keyframes bl { 50% { opacity: .3; } }
.tag { display: inline-block; padding: 1px 8px; border-radius: 7px; background: var(--accent-l); color: var(--accent); font: 700 12px "Inter"; } .tag.g { background: #e3f7ec; color: #148a4c; } .tag.o { background: #fff3d1; color: #8a5a00; } .tag.r { background: #ffe8ea; color: #a1121f; } .tag.n { background: #eef1f6; color: var(--muted); }
.list { display: flex; flex-direction: column; } .item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); min-width: 0; } .item:last-child { border-bottom: 0; } .item .grow { flex: 1; min-width: 0; } .item b { display: block; } .ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; } .kpi { padding: 12px 14px; border-radius: 13px; background: var(--bg); } .kpi b { display: block; font: 800 22px "Inter"; } .kpi small { color: var(--muted); font-size: 12.5px; }
.empty { padding: 26px; text-align: center; color: var(--muted); }
.tabs { display: inline-flex; padding: 3px; border-radius: 12px; background: #e9edf4; gap: 2px; } .tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; color: var(--muted); cursor: pointer; } .tabs button.on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.check { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-weight: 600; } .check i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 800 12px "Inter"; font-style: normal; color: #fff; background: #c9d2e3; flex: none; } .check.on i { background: var(--good); }
details.adv { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; } details.adv summary { cursor: pointer; font-weight: 700; color: var(--muted); } details.adv[open] summary { margin-bottom: 10px; }
.bar { height: 8px; border-radius: 99px; background: #e8edf6; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
code.k { font: 600 12.5px ui-monospace, Menlo, monospace; background: var(--bg); padding: 2px 6px; border-radius: 6px; }

/* ---------- aperçu de la scène ---------- */
.frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #dfe6f1; border: 1px solid var(--line); }
.frame.v { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; } .frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.qbox { padding: 14px; border-radius: 14px; background: var(--bg); } .qbox .q { font: 800 18px/1.3 "Inter"; margin: 6px 0 10px; } .qbox .a { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .qbox .a span { padding: 6px 10px; border-radius: 9px; background: #fff; font-weight: 600; font-size: 14px; } .qbox .a span.ok { background: #e3f7ec; color: #148a4c; }
.chat .item { padding: 7px 4px; } .chat .item .act { display: none; gap: 4px; } .chat .item:hover .act { display: flex; }
.log { font: 500 12.5px/1.5 ui-monospace, Menlo, monospace; color: var(--muted); max-height: 220px; overflow: auto; background: var(--bg); border-radius: 10px; padding: 10px; white-space: pre-wrap; }
.sfx { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 6px; } .sfx .btn { justify-content: flex-start; font-weight: 600; }
.colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 14px; } .colors label { display: flex; align-items: center; gap: 10px; font: 600 13px "Inter"; } .colors label span { flex: 1; }
.qrow { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: start; padding: 11px 4px; border-bottom: 1px solid var(--line); } .qrow img { width: 74px; height: 50px; object-fit: cover; border-radius: 8px; } .qrow .ph { width: 74px; height: 50px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: 20px; }
.qrow .ans { font-size: 13px; color: var(--muted); margin-top: 3px; } .qrow .ans b { color: var(--good); display: inline; }

/* ---------- notifications, fenêtres ---------- */
#toasts { position: fixed; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 100; } .toast { padding: 12px 16px; border-radius: 12px; background: var(--text); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); max-width: 420px; animation: tin .25s; } .toast.err { background: var(--bad); }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(20, 25, 40, .35); display: grid; place-items: center; padding: 20px; } .modal .card { width: min(980px, 100%); max-height: 90vh; overflow: auto; }
#login { min-height: 100vh; display: grid; place-items: center; padding: 20px; } #login .card { width: 400px; } #login h1 { margin: 10px 0 4px; }
