/* Interface LiveGames — sombre, compacte, pensée pour le téléphone autant que pour l'ordinateur.
   Aucun « backdrop-filter » ni flou animé : sur iPhone, ces effets font fermer la page par Safari. */
:root {
  --bg: #0f0624; --bg2: #1a0b3a; --panel: #1c0f3f; --panel-soft: rgba(255,255,255,.05); --panel2: rgba(255,255,255,.09); --line: rgba(255,255,255,.11); --line2: rgba(255,255,255,.2);
  --text: #fff6ea; --muted: #b3a3d6; --accent: #ffc233; --pink: #ff4fa3; --cyan: #37e6ff; --ok: #35e0a1; --bad: #ff6b7d; --blue: #6a8dff;
  --radius: 14px; --shadow: 0 12px 40px rgba(0,0,0,.4); --tabbar: 64px;
  /* Police système, comme Facebook : Segoe UI (Windows), San Francisco (Apple), Roboto (Android). */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Historic", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); min-height: 100vh; -webkit-tap-highlight-color: transparent; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(110% 55% at 50% -12%, #3b1a78 0%, var(--bg2) 42%, var(--bg) 100%); }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); } .ok { color: var(--ok); } .bad { color: var(--bad); } .tiny { font-size: 13px; }
.mono { font-family: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace; }
[hidden] { display: none !important; }
.ico { display: inline-block; width: 1.2em; text-align: center; flex: none; line-height: 1; }
h3 .ico, .cat-h .ico { color: var(--accent); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 0; border-radius: 11px; font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; color: #2a1200; background: linear-gradient(135deg, #ffd45a, #ffa51f); box-shadow: 0 4px 14px rgba(255,165,31,.22); transition: transform .12s, box-shadow .12s, opacity .12s, background .12s; white-space: nowrap; touch-action: manipulation; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,165,31,.32); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.pink { color: #fff; background: linear-gradient(135deg, #ff4fa3, #b03dff); box-shadow: 0 4px 14px rgba(255,79,163,.25); }
.btn.ghost { color: var(--text); background: var(--panel-soft); border: 1px solid var(--line); box-shadow: none; }
.btn.ghost:hover { background: var(--panel2); border-color: var(--line2); }
.btn.danger { color: var(--bad); background: transparent; border: 1px solid rgba(255,107,125,.45); box-shadow: none; }
.btn.danger:hover { background: rgba(255,107,125,.1); }
.btn.sm { min-height: 34px; padding: 5px 11px; font-size: 14px; border-radius: 9px; gap: 6px; }
.btn.lg { min-height: 52px; padding: 12px 22px; font-size: 17px; border-radius: 13px; }
.btn.block { width: 100%; }
.btn.icon { padding: 0; width: 40px; } .btn.sm.icon { width: 34px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- Champs ---------- */
label.f { display: block; margin-bottom: 14px; font-weight: 600; font-size: 14px; color: var(--muted); }
label.f > span.hint { display: block; font-weight: 400; font-size: 13px; margin-top: 4px; color: var(--muted); opacity: .85; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; margin-top: 6px; border-radius: 11px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); color: var(--text); font: inherit; font-size: 16px; min-width: 0; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(55,230,255,.18); }
select option { background: #1a0b3a; }
input[type=range] { width: 100%; accent-color: var(--accent); margin-top: 10px; }
input[type=color] { width: 54px; height: 42px; padding: 2px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; margin-top: 6px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; } .row.between { justify-content: space-between; } .row.nowrap { flex-wrap: nowrap; }
.grid { display: grid; gap: 14px; } .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)); }
.auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 760px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .g4.keep2, .g2.keep2 { grid-template-columns: 1fr 1fr; } .grid { gap: 10px; } }

/* interrupteur */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; margin-bottom: 12px; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 26px; border-radius: 13px; background: rgba(255,255,255,.18); position: relative; cursor: pointer; transition: background .2s; flex: none; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked { background: var(--ok); } .switch input:checked::after { transform: translateX(20px); }

/* ---------- Cartes & éléments ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h3 { margin-bottom: 12px; }
.card + .card { margin-top: 14px; }
.card.flat { background: var(--panel-soft); }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; font-size: 16px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "\f078"; font-family: "Font Awesome 7 Free"; font-weight: 900; font-size: 13px; color: var(--muted); transition: transform .2s; }
details.fold[open] > summary::after { transform: rotate(180deg); }
details.fold[open] > summary { margin-bottom: 12px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--panel2); color: var(--text); white-space: nowrap; }
.badge.ok { background: rgba(53,224,161,.16); color: var(--ok); } .badge.bad { background: rgba(255,107,125,.16); color: var(--bad); }
.badge.gold { background: rgba(255,194,51,.16); color: var(--accent); } .badge.blue { background: rgba(106,141,255,.2); color: #a9bdff; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.live { background: var(--ok); box-shadow: 0 0 0 3px rgba(53,224,161,.25); }
.kpi { padding: 14px 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); min-width: 0; }
.kpi b { display: block; font-size: 26px; line-height: 1.1; letter-spacing: -.02em; } .kpi span { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi.gold b { color: var(--accent); } .kpi.pink b { color: var(--pink); } .kpi.cyan b { color: var(--cyan); } .kpi.ok b { color: var(--ok); }
.progress { height: 8px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; } .progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--pink)); border-radius: 4px; transition: width .5s; }
.empty { text-align: center; padding: 30px 16px; color: var(--muted); }
.empty .big { font-size: 38px; margin-bottom: 10px; color: var(--accent); opacity: .85; }
.av { border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; color: #fff; overflow: hidden; flex: none; border: 2px solid rgba(255,255,255,.7); vertical-align: middle; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tabs { display: flex; gap: 4px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); } .tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.seg { display: inline-flex; background: rgba(0,0,0,.3); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; padding: 7px 14px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button.on { background: var(--accent); color: #2a1200; }
.callout { padding: 11px 14px; border-radius: 12px; background: rgba(255,194,51,.09); border: 1px solid rgba(255,194,51,.35); margin-bottom: 14px; }
.callout.info { background: rgba(55,230,255,.07); border-color: rgba(55,230,255,.3); } .callout.bad { background: rgba(255,107,125,.09); border-color: rgba(255,107,125,.4); }

/* ---------- Tableaux ---------- */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 8px 10px; white-space: nowrap; }
td { padding: 9px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
tr.hl td { background: rgba(255,255,255,.04); }
td.r, th.r { text-align: right; } td.nw { white-space: nowrap; }
.ell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Fenêtres modales & notifications ---------- */
.overlay { position: fixed; inset: 0; background: rgba(6,1,16,.78); display: grid; place-items: center; padding: 16px; z-index: 60; animation: fade .18s; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(560px, 100%); max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column; background: #1d0e42; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); animation: pop .22s cubic-bezier(.2, 1.2, .4, 1); }
.modal.wide { width: min(760px, 100%); }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } }
.modal header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px 8px; flex: none; } .modal header h2 { font-size: 19px; display: flex; gap: 8px; align-items: center; }
.modal .body { padding: 6px 20px 8px; overflow: auto; -webkit-overflow-scrolling: touch; flex: 1; min-height: 0; } .modal footer { padding: 12px 20px 16px; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; flex: none; border-top: 1px solid var(--line); }
.x { border: 0; background: var(--panel-soft); color: var(--muted); width: 36px; height: 36px; border-radius: 50%; font-size: 17px; cursor: pointer; display: grid; place-items: center; flex: none; }
.x:hover { color: var(--text); background: var(--panel2); }
#toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 80; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { padding: 11px 15px; border-radius: 13px; background: #2b1660; border: 1px solid var(--line2); box-shadow: var(--shadow); font-weight: 600; animation: pop .22s both; }
.toast.ok { border-color: rgba(53,224,161,.6); } .toast.err { border-color: rgba(255,107,125,.7); }

/* ---------- Chargement ---------- */
.spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation-duration: .001s !important; transition-duration: .001s !important; } }

/* ---------- Application : menu latéral (ordinateur), barre d'onglets (téléphone) ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { padding: 18px 12px; border-right: 1px solid var(--line); background: rgba(0,0,0,.22); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; padding: 4px 10px 16px; letter-spacing: -.02em; text-decoration: none; color: var(--text); }
.logo svg { width: 32px; height: 32px; flex: none; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 11px; color: var(--muted); text-decoration: none; font-weight: 700; }
.nav a:hover { background: var(--panel-soft); color: var(--text); } .nav a.on { background: var(--panel2); color: var(--accent); }
.nav .ic { width: 22px; text-align: center; font-size: 17px; display: inline-grid; place-items: center; }
.side .spacer { flex: 1; }
.me { padding: 12px; border-radius: 13px; background: var(--panel-soft); border: 1px solid var(--line); }
.me b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .me .row { margin-top: 8px; }
.main { padding: 24px clamp(14px, 3vw, 36px) 64px; min-width: 0; max-width: 1240px; width: 100%; margin: 0 auto; }
.page-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.page-h > .row { flex-wrap: wrap; }
.banner { padding: 11px 16px; border-radius: 13px; background: linear-gradient(90deg, rgba(255,79,163,.22), rgba(106,141,255,.22)); border: 1px solid var(--line); margin-bottom: 16px; font-weight: 600; }
.topbar, .tabbar { display: none; }
.live-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: var(--panel-soft); border: 1px solid var(--line); color: var(--muted); font-weight: 800; font-size: 13px; text-decoration: none; }
.live-chip.on { color: var(--ok); border-color: rgba(53,224,161,.4); }
/* Feuille « Plus » (téléphone) */
.sheet-ov { position: fixed; inset: 0; z-index: 70; background: rgba(6,1,16,.7); animation: fade .15s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 71; background: #1d0e42; border-top: 1px solid var(--line2); border-radius: 20px 20px 0 0; padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line2); margin: 2px auto 12px; }
.sheet a, .sheet button.item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 13px 10px; border-radius: 12px; color: var(--text); text-decoration: none; font: inherit; font-weight: 700; background: none; border: 0; text-align: left; cursor: pointer; }
.sheet a:hover, .sheet button.item:hover { background: var(--panel-soft); }
.sheet .ico { color: var(--accent); font-size: 18px; width: 24px; }
.sheet .who { padding: 4px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

@media (max-width: 860px) {
  body { font-size: 15px; }
  h1 { font-size: 22px; }
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 10px; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; background: rgba(15,6,36,.97); border-bottom: 1px solid var(--line); }
  .topbar .logo { padding: 0; font-size: 17px; min-width: 0; } .topbar .logo svg { width: 28px; height: 28px; }
  .topbar .logo span.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); background: rgba(15,6,36,.98); border-top: 1px solid var(--line); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; padding: 4px 2px; border: 0; background: none; border-radius: 12px; color: var(--muted); font: inherit; font-size: 11px; font-weight: 700; text-decoration: none; cursor: pointer; position: relative; }
  .tabbar .ico { font-size: 19px; width: 44px; height: 30px; display: grid; place-items: center; border-radius: 10px; }
  .tabbar .on { color: var(--accent); }
  .tabbar .main-tab .ico { background: linear-gradient(135deg, #ff4fa3, #b03dff); color: #fff; font-size: 16px; }
  .tabbar .on .ico { background: rgba(255,194,51,.14); } .tabbar .main-tab.on .ico { background: linear-gradient(135deg, #ff4fa3, #b03dff); box-shadow: 0 0 0 2px var(--accent); }
  .tabbar .badge-dot { position: absolute; top: 6px; right: calc(50% - 22px); width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid #0f0624; }
  .main { padding: 14px 12px calc(var(--tabbar) + 24px + env(safe-area-inset-bottom)); }
  .card { padding: 14px; border-radius: 13px; }
  .card + .card { margin-top: 10px; }
  .page-h { margin-bottom: 14px; }
  .page-h > .row { width: 100%; }
  .page-h > .row .btn { flex: 1 1 auto; }
  .tabs { margin: 0 -12px 14px; padding: 0 12px; }
  .tab { padding: 9px 10px; font-size: 14px; }
  .overlay { padding: 0; place-items: end stretch; }
  .modal, .modal.wide { width: 100%; max-height: 94vh; max-height: 94dvh; border-radius: 20px 20px 0 0; animation: up .22s ease-out; }
  .modal header { padding: 14px 16px 6px; } .modal .body { padding: 6px 16px 8px; }
  .modal footer { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .modal footer { flex-wrap: nowrap; gap: 8px; }
  .modal footer .btn { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.15; padding: 8px 10px; font-size: 14px; }
  #toasts { bottom: calc(var(--tabbar) + 14px + env(safe-area-inset-bottom)); }
  .kpi { padding: 12px; } .kpi b { font-size: 22px; }
  .hide-m { display: none !important; }
}
@media (min-width: 861px) { .hide-d { display: none !important; } }

/* ---------- LiveGames : catalogue, éditeur, médias, programmes ---------- */
.cat-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 22px 0 10px; }
.cat-nav { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 0 6px; padding-bottom: 2px; }
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--panel-soft); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 13px; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.gc { text-align: left; cursor: pointer; color: inherit; font: inherit; padding: 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: transform .12s, border-color .12s, background .12s; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gc:hover { transform: translateY(-2px); border-color: var(--line2); background: #241350; }
/* Vignettes des jeux (capture de l'écran de démonstration) */
.gc { padding: 0 0 12px; overflow: hidden; }
.gc > b, .gc > p, .gc > .tag { margin-left: 12px; margin-right: 12px; }
.thumb-wrap { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #12051f; margin-bottom: 4px; }
.thumb-img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; /* vignettes carrées déjà cadrées sur le jeu */ display: block; transition: transform .3s; }
.gc:hover .thumb-img { transform: scale(1.04); }
.thumb-wrap .new-badge { position: absolute; right: 8px; top: 8px; background: var(--pink, #ff3d8b); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; box-shadow: 0 3px 10px rgba(0,0,0,.4); }
.thumb-wrap .e { position: absolute; left: 8px; bottom: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.45); background: rgba(18,5,31,.88) !important; }
.gi-thumb { position: relative; overflow: hidden; padding: 0 !important; width: 56px !important; height: 72px !important; border-radius: 10px !important; }
.gi-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.gi-thumb .gi-ic { position: absolute; right: 3px; bottom: 3px; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; background: rgba(18,5,31,.9); color: var(--accent); }
.pick { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.pick-pv { display: flex; flex-direction: column; align-items: center; gap: 6px; position: sticky; top: 0; }
.demo-frame { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 14px; background: #12051f; display: block; }
@media (max-width: 760px) { .pick { grid-template-columns: 1fr; } .pick-pv { position: static; } .demo-frame { width: 150px; } }
.gc .e { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: rgba(255,194,51,.13); color: var(--accent); flex: none; }
.gc .e .ico { width: auto; }
.gc b { font-size: 15px; line-height: 1.25; } .gc p { margin: 0; color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gc .tag { align-self: flex-start; margin-top: auto; }
.game-card { display: flex; flex-direction: column; gap: 10px; margin: 0 !important; }
.game-card .gi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: rgba(255,194,51,.13); color: var(--accent); flex: none; }
.game-card.blocked { border-color: rgba(255,107,125,.55); background: #2a1036; }
.kicon { font-size: 18px; width: 30px; text-align: center; flex: none; color: var(--accent); }
.rrow { display: flex; gap: 10px; align-items: center; padding: 9px 12px; margin: 0 0 8px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); }
.rrow .t { flex: 1; min-width: 0; } .rrow .t b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow .r-act { flex-wrap: nowrap; gap: 4px; }
.rrow .t span { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thumb { width: 54px; height: 40px; border-radius: 8px; object-fit: cover; background: rgba(0,0,0,.3); flex: none; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.mitem { border-radius: 13px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; cursor: default; position: relative; }
.mitem.pick { cursor: pointer; } .mitem.pick:hover, .mitem.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.mitem .pv { height: 110px; display: grid; place-items: center; background: rgba(0,0,0,.35); font-size: 34px; color: var(--muted); }
.mitem .pv img { width: 100%; height: 100%; object-fit: cover; }
.mitem .nm { padding: 8px 10px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mitem .act { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.drop { border: 2px dashed var(--line2); border-radius: 14px; padding: 20px; text-align: center; color: var(--muted); transition: border-color .2s, background .2s; cursor: pointer; }
.drop.on, .drop:hover { border-color: var(--accent); background: rgba(255,194,51,.06); color: var(--text); }
.track { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 8px; flex-wrap: wrap; }
.track audio { height: 34px; flex: 1; min-width: 160px; }
.plitem { display: flex; gap: 10px; align-items: center; padding: 9px 11px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); margin-bottom: 8px; }
.plitem .n { width: 26px; height: 26px; border-radius: 50%; background: var(--panel2); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.plitem.now { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.livebox { padding: 14px; border-radius: 14px; background: rgba(0,0,0,.28); }
.livebox .ph { font-size: 19px; font-weight: 800; } .livebox .sub { color: var(--muted); font-size: 14px; }
.mini-ov { width: 100%; aspect-ratio: 9 / 16; border: 0; border-radius: 14px; background: #12051f; display: block; }
.imp-banner { position: sticky; top: 0; z-index: 45; padding: 10px 16px; background: linear-gradient(90deg, #ff4fa3, #b03dff); color: #fff; font-weight: 700; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.status-chip { display: inline-flex; gap: 6px; align-items: center; }
.opt-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: nowrap; }
.opt-row input[type=text] { margin-top: 0; }
.opt-row .l { width: 22px; font-weight: 800; text-align: center; flex: none; }
.scene-box { padding: 12px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line); margin-bottom: 10px; }
.steps a { display: flex; gap: 10px; align-items: center; padding: 8px 0; text-decoration: none; color: var(--text); font-weight: 700; }
.steps a.done { color: var(--muted); font-weight: 500; text-decoration: line-through; }
.steps a .ico { color: var(--accent); } .steps a.done .ico { color: var(--ok); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 13px; text-align: center; }
.quick a .ico { font-size: 20px; color: var(--accent); width: auto; }
.quick a:hover { border-color: var(--line2); background: #241350; }

/* ---------- Aide & contact, À propos ---------- */
.tab .cnt { margin-left: 6px; } .nav .cnt { margin-left: auto; }
.nav .cnt, .tab .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--ok); color: #062b1d; font-size: 12px; font-weight: 800; display: inline-grid; place-items: center; }
.tabbar .has-dot::after { content: ""; position: absolute; top: 8px; right: calc(50% - 20px); width: 9px; height: 9px; border-radius: 50%; background: var(--ok); border: 2px solid #0f0624; }
.thread { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: min(640px, 88%); padding: 11px 14px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.msg.me { align-self: flex-end; background: #2b1a5c; border-color: rgba(255,194,51,.3); border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; border-bottom-left-radius: 4px; }
.msg .who { font-size: 12px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.msg .body { white-space: pre-wrap; word-break: break-word; }
.card.reply textarea { min-height: 70px; }
.about p { white-space: pre-wrap; line-height: 1.6; }
.quick-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.quick-card .ico { font-size: 22px; color: var(--accent); margin-bottom: 6px; } .quick-card span { color: var(--muted); font-size: 13px; }
.quick-card:hover { border-color: var(--line2); background: #241350; }
.searchbar { position: relative; margin: 0 0 12px; }
.searchbar input { margin-top: 0; padding-left: 38px; }
.searchbar .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ---------- Régie (page Diffusion) : aperçu juste à côté des commandes ---------- */
.regie { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); grid-template-areas: "pv state" "pv btns" "pv tools" "pv auto" "pv launch" "pv rest"; grid-template-rows: auto auto auto auto auto 1fr; column-gap: 18px; row-gap: 10px; align-items: start; }
.regie .pv-wrap { grid-area: pv; position: relative; }
.regie .pv-off { aspect-ratio: 9 / 16; border-radius: 14px; border: 1px dashed var(--line2); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 12px; font-size: 13px; background: rgba(0,0,0,.25); }
.regie .pv-tools { display: flex; gap: 6px; margin-top: 8px; }
.regie .pv-tools .btn { flex: 1; min-width: 0; }
.ctrl { display: contents; }
.ctrl .state { grid-area: state; padding: 12px 14px; border-radius: 13px; background: rgba(0,0,0,.28); border: 1px solid var(--line); min-width: 0; }
.ctrl .state .ph { font-size: 18px; font-weight: 800; line-height: 1.2; } .ctrl .state .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.ctrl .main-btns { grid-area: btns; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ctrl .main-btns .btn { min-height: 58px; font-size: 16px; }
.ctrl .tools { grid-area: tools; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ctrl .tools .btn { flex-direction: column; gap: 4px; min-height: 58px; padding: 6px 4px; font-size: 12px; white-space: normal; line-height: 1.15; text-align: center; }
.ctrl .tools .btn .ico { font-size: 17px; }
.ctrl .tools .btn.on-state { border-color: var(--accent); color: var(--accent); background: rgba(255,194,51,.1); }
.ctrl .auto-sw { grid-area: auto; margin: 2px 0 0; font-size: 14px; }
.ctrl .launch { grid-area: launch; display: grid; gap: 8px; min-width: 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ctrl .launch .row { flex-wrap: nowrap; }
.ctrl .launch select { margin-top: 0; }
.kbd { display: inline-block; min-width: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid rgba(42,18,0,.35); font-size: 11px; line-height: 18px; text-align: center; opacity: .75; }
.btn.ghost .kbd { border-color: var(--line2); }
@media (max-width: 860px) {
  .gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gc { padding: 0 0 10px; gap: 4px; } .gc > b, .gc > p, .gc > .tag { margin-left: 9px; margin-right: 9px; } .thumb-wrap .e { left: 6px; bottom: 6px; } .gc .e { width: 34px; height: 34px; font-size: 16px; border-radius: 10px; } .gc b { font-size: 14px; } .gc p { font-size: 12px; } .gc .tag { font-size: 10px; padding: 2px 7px; white-space: normal; }
  .rrow { flex-wrap: wrap; row-gap: 6px; padding: 9px 10px; } .rrow .t { flex: 1 1 calc(100% - 44px); } .rrow .t b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .rrow .badge { margin-left: 40px; } .rrow .r-act { margin-left: auto; }
  .quick { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .quick a { padding: 10px 4px; font-size: 11px; } .quick a .ico { font-size: 18px; }
  .regie { grid-template-columns: 40% minmax(0, 1fr); grid-template-areas: "pv state" "pv btns" "pv tools" "auto auto" "launch launch"; grid-template-rows: auto auto 1fr auto auto; column-gap: 10px; row-gap: 8px; }
  .regie .pv-tools { gap: 4px; } .regie .pv-tools .btn { padding: 4px; font-size: 12px; gap: 4px; }
  .regie .pv-tools .btn span.l { display: none; }
  .ctrl .state { padding: 9px 11px; } .ctrl .state .ph { font-size: 15px; } .ctrl .state .sub { font-size: 12px; }
  .ctrl .main-btns { grid-template-columns: 1fr; gap: 6px; } .ctrl .main-btns .btn { min-height: 50px; font-size: 15px; }
  .ctrl .tools { grid-template-columns: 1fr 1fr; gap: 6px; align-self: stretch; align-content: end; } .ctrl .tools .btn { min-height: 48px; font-size: 11px; }
  .ctrl .seg button { padding: 7px 8px; font-size: 14px; }
  .kbd { display: none; }
}

/* Aperçus des décors de fond (Réglages → Affichage) */
.bgp-venise { background: radial-gradient(circle at 84% 4%, #ffe9a8 0 56px, rgba(255,233,168,.25) 58px, rgba(255,233,168,0) 110px), linear-gradient(180deg, #3b1d5c 0%, #8a3a7a 24%, #f08a4b 40%, #f7b267 46%, #2a3f7a 52%, #18234f 75%, #0c1230 100%); }
.bgp-nuit { background: radial-gradient(circle at 84% 4%, #fff6d6 0 56px, rgba(255,246,214,.2) 58px, rgba(255,246,214,0) 110px), radial-gradient(120% 60% at 50% 0%, #26327a 0%, rgba(38,50,122,0) 60%), linear-gradient(180deg, #0b1236 0%, #070b22 60%, #03050f 100%); }
.bgp-ocean { background: radial-gradient(100% 50% at 50% 0%, #5be3ff 0%, rgba(91,227,255,0) 60%), linear-gradient(180deg, #0a7bb8 0%, #075c95 40%, #04325e 75%, #021a36 100%); }
.bgp-neon { background: linear-gradient(transparent 0 96%, rgba(255,79,163,.35) 96%) 0 0 / 100% 80px, linear-gradient(90deg, transparent 0 96%, rgba(55,230,255,.3) 96%) 0 0 / 80px 100%, radial-gradient(100% 60% at 50% 100%, #ff2d8a 0%, rgba(255,45,138,0) 60%), linear-gradient(180deg, #0d0221 0%, #261447 55%, #3d0e5f 100%); }
.bgp-foret { background: radial-gradient(80% 30% at 50% 0%, #b4f28a 0%, rgba(180,242,138,0) 60%), linear-gradient(180deg, #2e7d4f 0%, #1d5a39 45%, #0f3624 80%, #071d13 100%); }
.bgp-desert { background: radial-gradient(circle at 14% 4%, #fff2b0 0 70px, rgba(255,242,176,.25) 72px, rgba(255,242,176,0) 130px), linear-gradient(180deg, #ffb563 0%, #f08a4b 30%, #d1603d 48%, #a8432f 70%, #5c2420 100%); }
.bgp-espace { background: radial-gradient(40% 20% at 20% 25%, rgba(181,138,255,.45) 0%, rgba(181,138,255,0) 70%), radial-gradient(50% 25% at 80% 70%, rgba(55,230,255,.3) 0%, rgba(55,230,255,0) 70%), linear-gradient(180deg, #05010f 0%, #0d0630 50%, #02010a 100%); }
.bgp-bonbon { background: radial-gradient(70% 40% at 20% 10%, #ffd1ec 0%, rgba(255,209,236,0) 60%), radial-gradient(70% 40% at 80% 90%, #bde7ff 0%, rgba(189,231,255,0) 60%), linear-gradient(160deg, #ff8fc8 0%, #b88cff 50%, #7fb7ff 100%); }
.bgp-arcade { background: radial-gradient(120% 60% at 50% 0%, #ffcc00 0%, rgba(255,204,0,0) 45%), repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 30px, transparent 30px 60px), linear-gradient(180deg, #e8303d 0%, #8d1a6b 45%, #2b0f4c 100%); }

.badge.pink { background: rgba(255,61,139,.16); color: #ff7fb0; }

/* ---------- Fenêtre de paiement (forfaits prépayés Moneroo) ---------- */
.pay-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,194,51,.14), rgba(255,79,163,.1)); border: 1px solid rgba(255,194,51,.25); }
.pay-sec { margin: 18px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pay-grow { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pay-grow .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-flag { width: 30px; height: 21px; border-radius: 4px; object-fit: cover; flex: none; background: var(--panel2); box-shadow: 0 0 0 1px rgba(255,255,255,.12); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--accent); }
.pay-country, .pay-tile, .pay-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 13px; border-radius: 13px; border: 1px solid var(--line); background: var(--panel-soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.pay-country:hover, .pay-tile:hover { border-color: var(--line2); background: var(--panel2); }
.pay-tile:active, .pay-country:active { transform: scale(.99); }
.pay-tile.on { border-color: var(--accent); background: rgba(255,194,51,.1); box-shadow: 0 0 0 1px var(--accent) inset; }
.pay-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.pay-ic { width: 34px; height: 34px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.07); color: var(--accent); }
.pay-tile.on .pay-ic { background: var(--accent); color: #2b1600; }
.pay-check { color: var(--accent); }
.pay-dur { display: grid; gap: 8px; }
.pay-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line2); flex: none; }
.pay-tile.on .pay-radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 45%, transparent 50%); }
.pay-search { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0,0,0,.3); color: var(--muted); }
.pay-search input { border: 0; background: none; margin: 0; padding-left: 0; min-height: 42px; outline: none; }
.pay-list { margin-top: 8px; max-height: 260px; overflow: auto; display: grid; gap: 6px; padding: 2px; -webkit-overflow-scrolling: touch; }
.pay-list button.on { border-color: var(--accent); }
.pay-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,194,51,.08); border: 1px solid rgba(255,194,51,.3); }
.pay-total b { font-size: 26px; line-height: 1.1; }
.pay-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; }
.pay-note .ico { margin-top: 3px; }
.pay-where { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 4px 6px 4px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-soft); font-weight: 400; }
.pay-where select { margin: 0; min-height: 34px; padding: 4px 8px; border: 0; background: transparent; width: auto; max-width: 220px; font-size: 14px; }
@media (max-width: 640px) {
  .pay-tiles { grid-template-columns: 1fr 1fr; }
  .pay-tile { padding: 10px 11px; gap: 10px; }
  .pay-total b { font-size: 22px; }
  .pay-where { width: 100%; } .pay-where select { max-width: none; flex: 1; }
}
.pay-where select option { background: #1d0e42; color: var(--text); }
.pay { min-width: 0; }
.pay-list, .pay-dur { grid-template-columns: minmax(0, 1fr); }
.pay-tiles > *, .pay-dur > *, .pay-list > * { min-width: 0; }
.pay-tile b, .pay-country b, .pay-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-search input { flex: 1; min-width: 0; width: auto; }
@media (max-width: 640px) { .pay-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay-plan .tiny { display: none; } }
.modal, .modal .body { min-width: 0; } .pay-country, .pay-tile, .pay-list button { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .pay-tiles .pay-tile b { white-space: normal; line-height: 1.2; } .pay-tiles .pay-tile .tiny { display: none; } .pay-tiles .pay-ic { width: 28px; height: 28px; border-radius: 8px; } .pay-tiles .pay-check { display: none; } }
/* Paiement : choix du mode et des devises */
.pay-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.pay-modes .pay-tile { padding: 14px; }
.pay-modes .pay-ic { width: 40px; height: 40px; font-size: 18px; }
.pay-seg { display: flex; gap: 6px; padding: 4px; border-radius: 13px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.pay-seg button { flex: 1; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-seg button.on { background: var(--accent); color: #2b1600; }
@media (max-width: 640px) { .pay-modes .pay-tile .tiny { display: block; white-space: normal; } .pay-seg button { font-size: 14px; } }
@media (max-width: 640px) { .pay-modes { grid-template-columns: 1fr; } .pay-modes .pay-tile b { white-space: nowrap; } .pay-seg .seg-name { display: none; } .pay-seg button { font-size: 15px; } }

/* ---------- v6 : barre du haut, menu latéral avec sous-réglages, profil, modèles ---------- */
.topbar { display: none !important; }
.appbar { position: sticky; top: 0; z-index: 45; display: flex; align-items: center; gap: 14px; height: 60px; padding: 0 clamp(14px, 3vw, 36px); background: rgba(15,6,36,.96); border-bottom: 1px solid var(--line); }
.appbar .tb-logo { display: none; padding: 0; font-size: 17px; min-width: 0; } .appbar .tb-logo svg { width: 28px; height: 28px; }
.tb-shortcuts { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tb-sc { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; transition: background .15s, color .15s; }
.tb-sc:hover { background: var(--panel-soft); color: var(--text); } .tb-sc.on { color: var(--accent); background: rgba(255,194,51,.1); }
.tb-sc .ico { font-size: 15px; }
.tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.tb-plan { font-size: 13px; }
.tb-av { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: 2px solid var(--line2); background: none; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.tb-av:hover { border-color: var(--accent); }
.av { border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--panel2); }
.av-ini { display: inline-grid; place-items: center; font-weight: 800; color: #2b1600; background: linear-gradient(135deg, #ffc233, #ff4fa3); }
.tb-menu { position: fixed; z-index: 90; width: 270px; padding: 6px; border-radius: 14px; background: #1d0e42; border: 1px solid var(--line2); box-shadow: var(--shadow); animation: pop .16s ease-out; }
.tb-menu .who { display: flex; gap: 10px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tb-menu a, .tb-menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: none; color: var(--text); text-decoration: none; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; text-align: left; }
.tb-menu a:hover, .tb-menu > button:hover { background: var(--panel2); }
.tb-menu .ico { width: 18px; color: var(--muted); }
.tb-langs:not(:empty) { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 4px 0; }
/* Menu latéral : sous-réglages déroulants */
.nav-group .chev { transition: transform .2s; font-size: 11px; opacity: .7; }
.nav-group.open .chev { transform: rotate(180deg); }
.subnav { display: none; margin: 2px 0 6px 22px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-group.open .subnav { display: block; }
.subnav a { padding: 7px 10px; font-size: 14px; font-weight: 600; gap: 10px; }
.subnav a .ico { font-size: 13px; width: 16px; }
.subnav a.on { background: none; color: var(--accent); }
.side a.me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.side a.me:hover { border-color: var(--line2); }
.set-tabs { display: none; }
.set-sec + .set-sec { margin-top: 26px; }
.set-sec > h2, .pf-h { font-size: 17px; margin: 22px 0 10px; color: var(--muted); font-weight: 700; }
.set-sec > h2 { margin-top: 0; }
.pf-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pf-pic .av { box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px rgba(255,194,51,.5); }
/* Cartes de statistiques cliquables */
a.kpi.link { position: relative; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.kpi.link:hover { border-color: var(--line2); transform: translateY(-2px); }
a.kpi.link .go { position: absolute; top: 12px; right: 12px; font-size: 12px; color: var(--muted); opacity: .6; }
/* Modèles */
.tpl-card { display: flex; flex-direction: column; }
.tpl-card.official { border-color: rgba(255,194,51,.45); }
.tpl-ic, .trial-ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 19px; background: rgba(255,194,51,.12); color: var(--accent); }
.trial-card { border-color: rgba(255,79,163,.45); background: linear-gradient(135deg, rgba(255,79,163,.12), rgba(255,194,51,.06)), var(--panel); margin-bottom: 14px; }
.trial-ic { background: rgba(255,79,163,.18); color: var(--pink); }
@media (max-width: 1100px) { .tb-sc .l { display: none; } .tb-sc { padding: 0 10px; } }
@media (max-width: 860px) {
  .appbar { height: auto; min-height: 54px; padding: calc(6px + env(safe-area-inset-top)) 12px 6px; gap: 8px; }
  .appbar .tb-logo { display: flex; }
  .tb-shortcuts { display: none; }
  .tb-plan { display: none; }
  .tb-av { width: 34px; height: 34px; }
  .set-tabs { display: flex; }
  .tabbar { grid-template-columns: repeat(5, 1fr); }
}
/* Administration : marque, aperçu Google, traductions */
.brand-pv { display: grid; place-items: center; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px dashed var(--line2); overflow: hidden; }
.brand-pv.logo { width: 120px; height: 120px; } .brand-pv.logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-pv.og { aspect-ratio: 1200 / 630; width: 100%; } .brand-pv.og img { width: 100%; height: 100%; object-fit: cover; }
.serp { background: #fff; color: #202124; border-radius: 12px; padding: 14px 16px; font-family: Arial, sans-serif; max-width: 640px; }
.serp-url { display: flex; gap: 10px; align-items: center; font-size: 12px; color: #4d5156; line-height: 1.3; } .serp-url b { color: #202124; font-weight: 400; font-size: 14px; }
.serp-url img { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; object-fit: contain; padding: 3px; }
.serp-t { color: #1a0dab; font-size: 20px; margin: 6px 0 3px; line-height: 1.3; } .serp-d { color: #4d5156; font-size: 14px; line-height: 1.58; }
.tr-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); align-items: start; }
.tr-src { font-size: 14px; padding-top: 8px; color: var(--muted); word-break: break-word; }
.tr-row textarea { margin-top: 0; min-height: 40px; }
@media (max-width: 760px) { .tr-row { grid-template-columns: 1fr; gap: 4px; } }
