/* CSI Live — thème sombre premium */
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url(/fonts/manrope-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --bg: #090B10;
  --bg-2: #10131B;
  --bg-3: #171B26;
  --bg-4: #1F2433;
  --line: #242A3A;
  --line-2: #2F3649;
  --text: #F2F4F8;
  --text-2: #9098AD;
  --text-3: #626B82;
  --live: #FF3B5C;
  --live-2: #FF8A3D;
  --grad: linear-gradient(120deg, #FF3B5C 0%, #FF6A45 55%, #FF9A3D 100%);
  --glow: 0 8px 28px rgba(255, 59, 92, .35);
  --blue: #6E8BFF;
  --ok: #34D399;
  --warn: #FBBF24;
  --err: #FB7185;
  --r: 14px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--live-2); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
.muted { color: var(--text-2); }
.mono { font-family: var(--mono); font-size: .9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Barre du haut ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 66px; padding: 0 28px; background: rgba(9, 11, 16, .82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.brand .mk { width: 32px; height: 32px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; box-shadow: var(--glow); }
.brand .mk svg { width: 15px; height: 15px; fill: #fff; margin-left: 2px; }
.tnav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.tnav a, .tnav button { position: relative; padding: 8px 13px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .92rem; background: none; border: 0; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tnav a:hover, .tnav button:hover { color: var(--text); background: var(--bg-3); }
.tnav a.on { color: var(--text); }
.tnav a.on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: -13px; height: 2px; border-radius: 2px; background: var(--grad); }
.tnav svg { width: 15px; height: 15px; }
.more { position: relative; }
.menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 230px; background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 12px; padding: 6px; box-shadow: 0 18px 50px rgba(0,0,0,.55); display: none; z-index: 40; }
.menu.open { display: block; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .92rem; background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg-4); }
.menu svg { width: 17px; height: 17px; color: var(--text-2); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
.burger { display: none !important; }

.onair { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--bg-3); color: var(--text-2); white-space: nowrap; }
.onair i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.onair.live { background: var(--live); color: #fff; box-shadow: var(--glow); }
.onair.live i { background: #fff; animation: blink 1.3s infinite; }
.onair.wait { background: rgba(251,191,36,.14); color: var(--warn); }
.onair.wait i { background: var(--warn); }
@keyframes blink { 50% { opacity: .25; } }

.page { max-width: 1280px; margin: 0 auto; padding: 30px 28px 70px; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.pagehead h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.pagehead p { margin: 4px 0 0; color: var(--text-2); }
.pagehead .grow { flex: 1; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; background: var(--bg-4); color: var(--text); font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { background: #283047; }
.btn svg { width: 17px; height: 17px; }
.btn.gold, .btn.go { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.btn.gold:hover, .btn.go:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(255,59,92,.5); background: var(--grad); }
.btn.line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.line:hover { background: var(--bg-3); border-color: var(--text-3); }
.btn.ghost { background: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--bg-3); color: var(--text); }
.btn.red { background: #fff; color: var(--live); }
.btn.red:hover { background: #FFE4E9; }
.btn.white { background: #fff; color: #0B0D13; }
.btn.white:hover { background: #E8EBF2; }
.btn.sm { height: 34px; padding: 0 13px; font-size: .85rem; border-radius: 9px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 34px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Surfaces ---------- */
.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r); }
.panel > header { display: flex; align-items: center; gap: 10px; padding: 18px 22px 0; }
.panel > header h2 { font-size: 1.05rem; font-weight: 700; }
.panel > header .grow { flex: 1; }
.panel > header + .list, .panel > header + .body, .panel > header + .log { margin-top: 6px; }
.panel .body { padding: 18px 22px 22px; }
.cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.cols.even { grid-template-columns: 1fr 1fr; }
.stack { display: grid; gap: 22px; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 38px 0 14px; }
.section-title h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.section-title .grow { flex: 1; }
.section-title a { font-weight: 600; font-size: .9rem; }

label.f { display: block; font-size: .86rem; font-weight: 600; color: var(--text-2); margin: 16px 0 7px; }
label.f:first-child { margin-top: 0; }
.input, select.input, textarea.input { width: 100%; height: 42px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--text); }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239098AD' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
select.input option, select.input optgroup { background: var(--bg-3); }
textarea.input { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; }
.input:focus { outline: 2px solid var(--live-2); outline-offset: 0; border-color: transparent; }
.input::placeholder { color: var(--text-3); }
.help { font-size: .84rem; color: var(--text-2); margin: 7px 0 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.copy { display: flex; gap: 8px; }
.copy .input { font-family: var(--mono); font-size: .86rem; }

.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--bg-4); border-radius: 24px; cursor: pointer; transition: background .15s; border: 1px solid var(--line-2); }
.switch span::after { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--grad); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--live-2); outline-offset: 2px; }

.plat { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .78rem; flex: none; }
.plat.sm { width: 26px; height: 26px; border-radius: 8px; font-size: .64rem; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--bg-4); color: var(--text-2); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.ok { background: rgba(52,211,153,.12); color: var(--ok); }
.tag.warn { background: rgba(251,191,36,.12); color: var(--warn); }
.tag.err { background: rgba(251,113,133,.12); color: var(--err); }

.list { list-style: none; margin: 0; padding: 6px 0; }
.list > li { display: flex; align-items: center; gap: 14px; padding: 12px 22px; }
.list > li + li { border-top: 1px solid var(--line); }
.list .grow { flex: 1; min-width: 0; }
.list .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .s { font-size: .85rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty { padding: 34px 22px; text-align: center; color: var(--text-2); }
.empty b { display: block; color: var(--text); font-weight: 700; margin-bottom: 4px; font-size: 1.02rem; }
.empty .btn { margin-top: 16px; }

.when { width: 52px; flex: none; text-align: center; border-radius: 11px; overflow: hidden; background: var(--bg-4); }
.when b { display: block; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 0; text-transform: capitalize; }
.when span { display: block; font-size: 1.15rem; font-weight: 800; padding: 3px 0 4px; }

/* ---------- Accueil : grand écran ---------- */
.hero { position: relative; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 16 / 9; max-height: 64vh; width: 100%; border: 1px solid var(--line); }
.hero.is-live { border-color: rgba(255,59,92,.6); box-shadow: 0 0 0 1px rgba(255,59,92,.35), 0 20px 60px rgba(255,59,92,.15); }
.hero .screen { position: absolute; inset: 0; }
.hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.slate { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(60% 70% at 70% 20%, rgba(255,59,92,.20), transparent 70%), radial-gradient(50% 60% at 15% 85%, rgba(110,139,255,.16), transparent 70%), #0C0F17; }
.slate .mk { width: 64px; height: 64px; border-radius: 20px; background: var(--grad); display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--glow); }
.slate .mk svg { width: 26px; height: 26px; fill: #fff; margin-left: 4px; }
.slate p { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.slate small { color: var(--text-2); font-size: .95rem; }
.hero .badge { position: absolute; left: 20px; top: 18px; display: none; align-items: center; gap: 10px; }
.hero.is-live .badge { display: flex; }
.hero .badge .lv { background: var(--live); color: #fff; font-weight: 800; font-size: .8rem; padding: 4px 10px; border-radius: 7px; letter-spacing: .04em; }
.hero .badge .tm { background: rgba(0,0,0,.6); color: #fff; font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 7px; font-variant-numeric: tabular-nums; }
.hero .bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 26px 22px; background: linear-gradient(transparent, rgba(5,6,10,.92)); display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.hero .bottom .info { flex: 1; min-width: 240px; }
.hero h2 { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hero .src { color: #C3C9D8; margin-top: 4px; font-size: .95rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); font-size: .83rem; font-weight: 600; color: #E6E9F0; }
.chip .plat { width: 24px; height: 24px; border-radius: 50%; font-size: .6rem; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.chip.ok i { background: var(--ok); box-shadow: 0 0 8px var(--ok); } .chip.warn i { background: var(--warn); } .chip.err i { background: var(--err); }
.chip button { height: 22px; padding: 0 8px; border-radius: 6px; border: 0; background: rgba(255,255,255,.14); color: #fff; font-size: .75rem; font-weight: 700; cursor: pointer; }
.hero .go { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn.line { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.kpis { color: var(--text-2); font-size: .92rem; margin-top: 14px; display: flex; gap: 22px; flex-wrap: wrap; }
.kpis b { color: var(--text); font-weight: 800; }

/* Rangées de vignettes */
.rowscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.rowscroll > * { scroll-snap-align: start; }
.rowscroll::-webkit-scrollbar { height: 6px; } .rowscroll::-webkit-scrollbar-thumb { background: var(--bg-4); border-radius: 3px; }
.tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-3) center / cover no-repeat; aspect-ratio: 16 / 9; display: block; color: #fff; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.85)); }
.tile .lbl { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 1; font-weight: 700; font-size: .92rem; line-height: 1.25; }
.tile .lbl small { display: block; color: #C3C9D8; font-weight: 500; font-size: .78rem; }
.tile .play { position: absolute; z-index: 1; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: #0B0D13; display: grid; place-items: center; opacity: 0; transition: opacity .15s; border: 0; cursor: pointer; }
.tile .play svg { width: 15px; height: 15px; fill: currentColor; margin-left: 2px; }
.tile:hover .play, .tile:focus-within .play { opacity: 1; }
.tile.add { display: flex; align-items: center; justify-content: center; border: 1.5px dashed var(--line-2); background: transparent; color: var(--text-2); font-weight: 700; }
.tile.add::after { display: none; }

/* Médiathèque */
.subtabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.subtabs a { padding: 7px 16px; border-radius: 9px; color: var(--text-2); font-weight: 700; font-size: .9rem; }
.subtabs a.on { background: var(--bg-4); color: var(--text); }
.grid-v { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.vcard { border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); }
.vcard .th { position: relative; aspect-ratio: 16 / 9; background: var(--bg-3) center / cover no-repeat; }
.vcard .th .d { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: .74rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.vcard .th .prep { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 10px; font-size: .85rem; font-weight: 600; background: rgba(9,11,16,.82); }
.vcard .th .bar { width: 60%; height: 4px; background: var(--bg-4); border-radius: 2px; overflow: hidden; }
.vcard .th .bar div { height: 100%; background: var(--grad); }
.vcard .meta { padding: 13px 15px 2px; }
.vcard .meta .t { font-weight: 700; line-height: 1.3; }
.vcard .meta .s { font-size: .82rem; color: var(--text-2); margin-top: 3px; }
.vcard .ops { padding: 12px 15px 15px; display: flex; gap: 6px; margin-top: auto; align-items: center; }
.drop { border: 1.5px dashed var(--line-2); border-radius: 14px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; background: var(--bg-2); margin-bottom: 24px; }
.drop.over { border-color: var(--live-2); background: rgba(255,138,61,.08); }
.drop .grow { flex: 1; }
.upq { margin: -12px 0 24px; padding: 6px 18px 4px; }
.upq-h { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
#upList { list-style: none; margin: 0; padding: 0; max-height: 360px; overflow: auto; }
.upi { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 12px 0; align-items: center; }
.upi + .upi { border-top: 1px solid var(--line); }
.upi-t { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.upi-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upi-t span { color: var(--text-2); font-size: 13px; flex: none; }
.upi .progress { grid-column: 1; margin: 0; height: 5px; background: var(--bg-4); border-radius: 3px; overflow: hidden; }
.upi .progress div { height: 100%; background: var(--grad, linear-gradient(90deg,#FF3B5C,#FF9A3D)); transition: width .3s; }
.upi-s { grid-column: 1; font-size: 13px; color: var(--text-2); }
.upi-a { grid-column: 2; grid-row: 1 / span 3; display: flex; gap: 6px; }
.upi.ok .progress div { background: var(--ok); }
.upi.ok .upi-s { color: var(--ok); }
.upi.erreur .upi-s { color: var(--err); font-weight: 600; }
.upi.erreur .progress div { background: var(--err); }
.upi.annulé { opacity: .6; }
@media (max-width: 640px) { .upi { grid-template-columns: 1fr; } .upi-a { grid-column: 1; grid-row: auto; } }
.drop .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--grad); display: grid; place-items: center; flex: none; box-shadow: var(--glow); }
.drop .ico svg { width: 22px; height: 22px; color: #fff; }
.drop .progress { height: 5px; background: var(--bg-4); border-radius: 3px; overflow: hidden; margin-top: 10px; display: none; }
.drop .progress div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }

.pl-items { list-style: none; margin: 0; padding: 0; }
.pl-items li { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.pl-items li + li { border-top: 1px solid var(--line); }
.pl-items .num { width: 22px; color: var(--text-2); font-size: .85rem; text-align: right; font-weight: 700; }
.pl-items img, .pl-items .ph { width: 74px; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; background: var(--bg-4); flex: none; }
.pl-items .grow { flex: 1; min-width: 0; }

.log { font-family: var(--mono); font-size: .8rem; max-height: 300px; overflow: auto; color: var(--text-2); padding: 8px 22px 18px; }
.log div { padding: 3px 0; }
.log time { color: var(--live-2); margin-right: 10px; }
.embed { font-family: var(--mono); font-size: .8rem; height: 86px; }
.preview-frame { width: 100%; aspect-ratio: 16 / 10; border: 1px solid var(--line); border-radius: 12px; background: #000; }

/* Boîtes de dialogue */
dialog { border: 1px solid var(--line-2); border-radius: 18px; padding: 0; width: min(520px, 92vw); color: var(--text); background: var(--bg-2); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(3,4,8,.72); backdrop-filter: blur(4px); }
dialog header { padding: 20px 22px 4px; display: flex; align-items: center; }
dialog header h2 { font-size: 1.15rem; font-weight: 800; flex: 1; }
dialog .body { padding: 14px 22px 20px; }
dialog footer { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 10px; }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 14px; align-items: center; padding: 15px; border: 1px solid var(--line-2); border-radius: 13px; color: var(--text); background: var(--bg-3); cursor: pointer; text-align: left; width: 100%; }
.choice:hover { border-color: var(--live); background: rgba(255,59,92,.07); }
.choice .ci { width: 42px; height: 42px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.choice .ci svg { width: 20px; height: 20px; color: #fff; }
.choice b { display: block; font-weight: 700; }
.choice span { font-size: .85rem; color: var(--text-2); }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); font-weight: 600; padding: 12px 20px; border-radius: 11px; box-shadow: 0 14px 40px rgba(0,0,0,.5); display: none; z-index: 100; max-width: 90vw; font-size: .92rem; }
.toast.err { background: var(--err); color: #fff; }

/* Pages de connexion */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(50% 50% at 80% 10%, rgba(255,59,92,.22), transparent 70%), radial-gradient(45% 50% at 10% 90%, rgba(110,139,255,.16), transparent 70%), var(--bg); }
.auth .card { width: 100%; max-width: 420px; background: rgba(16,19,27,.85); border: 1px solid var(--line); border-radius: 20px; padding: 34px 32px; backdrop-filter: blur(10px); }
.auth .brand { margin-bottom: 26px; }
.auth h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.auth .btn { width: 100%; margin-top: 22px; height: 46px; }
.error { color: var(--err); font-size: .9rem; min-height: 1.3em; margin-top: 10px; }

@media (max-width: 1100px) {
  .cols, .cols.even { grid-template-columns: 1fr; }
  .tnav .lbl-long { display: none; }
}
@media (max-width: 860px) {
  .topbar { padding: 0 14px; gap: 10px; }
  .tnav { display: none; position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 10px; }
  .tnav.open { display: flex; }
  .tnav a.on::after { display: none; }
  .tnav .menu { position: static; display: block; box-shadow: none; border: 0; background: transparent; padding: 0; }
  .tnav .more > button { display: none; }
  .burger { display: inline-flex !important; }
  .topbar .spacer { flex: 1; }
  #onair span { display: none; }
  #onair { padding: 9px; }
  .page { padding: 22px 16px 60px; }
  .hero { aspect-ratio: auto; max-height: none; background: var(--bg-2); }
  .hero .screen { position: relative; aspect-ratio: 16 / 9; }
  .hero .bottom { position: static; background: none; padding: 18px; }
  .slate small { display: none; }
  .hero h2 { font-size: 1.5rem; }
  .pagehead h1 { font-size: 1.5rem; }
}

/* ---------- Abonnement, console, bannières ---------- */
.banner { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.banner > div { margin-top: 18px; padding: 12px 16px; border-radius: 12px; font-weight: 600; font-size: .93rem; background: rgba(110,139,255,.12); color: #C9D3FF; border: 1px solid rgba(110,139,255,.3); }
.banner a { color: #fff; text-decoration: underline; margin-left: 6px; }
.banner.warn > div { background: rgba(251,191,36,.1); color: var(--warn); border-color: rgba(251,191,36,.3); }
.banner.err > div { background: rgba(251,113,133,.1); color: var(--err); border-color: rgba(251,113,133,.35); }
.page .banner, .banner[style] { padding: 0; }
.ico-l { width: 52px; height: 52px; border-radius: 16px; background: var(--bg-4); display: grid; place-items: center; margin: 0 auto 14px; }
.ico-l svg { width: 24px; height: 24px; color: var(--live-2); }
.big-plan { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.ubar { height: 8px; border-radius: 4px; background: var(--bg-4); overflow: hidden; }
.ubar div { height: 100%; background: var(--grad); border-radius: 4px; }
.usage label.f { margin-top: 14px; }
.usage label.f:first-child { margin-top: 0; }
.prices-app { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 12px; }
.price-c.hl { border-color: rgba(255,106,69,.55); }
.price-c .amt { font-size: 1.7rem; font-weight: 800; margin: 10px 0 2px; letter-spacing: -.02em; }
.price-c .amt small { font-size: .9rem; color: var(--text-2); font-weight: 600; }
.feat-l { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; font-size: .88rem; color: #D5DAE5; }
.feat-l li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.feat-l li.no { color: var(--text-3); } .feat-l li.no::before { content: "–"; color: var(--text-3); }
.kgrid { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.kgrid > div { padding: 16px 18px; border-left: 1px solid var(--line); }
.kgrid > div:first-child { border-left: 0; }
.kgrid b { display: block; font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.kgrid span { font-size: .82rem; color: var(--text-2); }
.tbl-wrap { overflow-x: auto; padding: 8px 0 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--text-2); font-size: .82rem; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.plans-t td:first-child { color: var(--text-2); white-space: nowrap; }
@media (max-width: 1100px) { .kgrid { grid-template-columns: repeat(3, 1fr); } .kgrid > div:nth-child(4) { border-left: 0; } .kgrid > div:nth-child(n+4) { border-top: 1px solid var(--line); } .prices-app { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .banner { padding: 0 16px; } }
@media (max-width: 1680px) and (min-width: 1101px) {
  .topbar { gap: 14px; }
  .tnav { gap: 0; }
  .tnav a, .tnav button { padding: 8px 9px; font-size: .9rem; }
  #appName { display: none; }
  #onair span { display: none; }
  #onair { padding: 9px; }
}

.ref-note { background: rgba(110,139,255,.12); border: 1px solid rgba(110,139,255,.35); color: var(--text); border-radius: 12px; padding: 10px 14px; margin: -8px 0 18px; font-size: .92rem; }
footer a { color: var(--text-3); text-decoration: none; } footer a:hover { color: var(--text); }

/* ---------- v6 : sécurité, abonnement, console ---------- */
.qr-box { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 14px; width: 210px; margin: 12px auto; }
.qr-box svg { width: 180px; height: 180px; }
.steps-l { margin: 0; padding-left: 20px; color: var(--text-2); line-height: 1.6; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 10px 0; }
.codes span { font-family: var(--mono); background: var(--bg-3); border: 1px solid var(--line); border-radius: 8px; padding: 8px; text-align: center; letter-spacing: .06em; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.seg button { flex: 1; min-width: 90px; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-2); border-radius: 10px; padding: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.seg button.on { border-color: #FF6A45; color: var(--text); background: rgba(255, 106, 69, .12); }
.quote { margin: 16px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--line); }
.qr-l { display: flex; justify-content: space-between; padding: 3px 0; color: var(--text-2); }
.qr-l.ok { color: var(--ok); } .qr-l.tot { color: var(--text); font-size: 1.1rem; padding-top: 6px; }
.ref-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
.ref-stats div { background: var(--bg-3); border-radius: 12px; padding: 12px; text-align: center; }
.ref-stats b { display: block; font-size: 1.4rem; } .ref-stats span { color: var(--text-2); font-size: .85rem; }
.help-d { margin: 12px 0; color: var(--text-2); font-size: .9rem; }
.help-d summary { cursor: pointer; color: var(--text); font-weight: 600; }
.help-d ol { padding-left: 20px; line-height: 1.6; }
.check-l { display: flex; gap: 8px; align-items: center; margin: 8px 0; color: var(--text-2); cursor: pointer; }
.logbox { background: var(--bg-3); border-radius: 10px; padding: 12px; font-size: .78rem; max-height: 260px; overflow: auto; white-space: pre-wrap; color: var(--text-2); }
.mono { font-family: var(--mono); }
#ctabs { flex-wrap: wrap; }
@media (max-width: 1260px) and (min-width: 1101px) { .tnav a, .tnav button { padding: 8px 6px; font-size: .85rem; } }

/* ---------- v6.2 : habillage ---------- */
.ov-prev { margin: 4px 0 8px; }
.ov-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, #2a3350, #151925 60%, #3a2030); }
.ov-logo { position: absolute; height: auto; max-height: 40%; object-fit: contain; }
.ov-logo.tr { top: 2.5%; right: 2.5%; } .ov-logo.tl { top: 2.5%; left: 2.5%; } .ov-logo.br { bottom: 14%; right: 2.5%; } .ov-logo.bl { bottom: 14%; left: 2.5%; }
.ov-tick { position: absolute; left: 0; right: 0; bottom: 4%; height: 7.5%; display: flex; align-items: center; overflow: hidden; opacity: .9; }
.ov-tick span { color: #fff; font-weight: 600; font-size: clamp(.6rem, 1.6vw, .95rem); white-space: nowrap; padding-left: 4%; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days label { cursor: pointer; } .days input { position: absolute; opacity: 0; pointer-events: none; }
.days span { display: inline-block; min-width: 46px; text-align: center; padding: 8px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-3); color: var(--text-2); font-weight: 600; font-size: .88rem; }
.days input:checked + span { border-color: #FF6A45; color: var(--text); background: rgba(255,106,69,.14); }
.days input:focus-visible + span { outline: 2px solid #FF6A45; outline-offset: 2px; }
