/* ============ Pyroosino — thème Lounge Mid-Century × Néon ============ */
:root {
  --bg: #140B0A; --bg2: #1E120E; --bg3: #2A1812; --wood: #3A2016; --line: #3A2016;
  --cream: #F4E6D0; --muted: #CDB79C; --dim: #A8927A;
  --brass: #D4A24C; --brass-l: #E9C27A;
  --carmine: #9E1B2F; --emerald: #0F5A45; --cognac: #6B3A1E; --plum: #3E1E5C;
  --neon: #FF3FA4; --neon-core: #FFCFE8; --cyan: #3FE0FF; --cyan-core: #DFFBFF; --orange: #FF8A2B; --violet: #8A3FFF;
  --ok: #4BD08B; --bad: #FF5D6C;
  --radius: 18px;
  --f-script: 'Yellowtail', cursive;
  --f-title: 'DM Serif Display', Georgia, serif;
  --f-body: 'Josefin Sans', system-ui, sans-serif;
  --glow-neon: 0 0 2px #fff, 0 0 6px var(--neon), 0 0 14px var(--neon), 0 0 28px var(--neon);
  --glow-cyan: 0 0 2px #fff, 0 0 6px var(--cyan), 0 0 14px var(--cyan), 0 0 26px var(--cyan);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--cream); font-family: var(--f-body); font-size: 16px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--cyan); }
a:hover { color: #A8F0FF; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--f-title); font-weight: 400; margin: 0 0 .5em; line-height: 1.1; }
h1 { font-size: clamp(32px, 5vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.script { font-family: var(--f-script); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ---------- Néons ---------- */
.neon-tube { background: var(--neon); height: 3px; box-shadow: 0 0 6px var(--neon), 0 0 18px var(--neon); }
.neon-tube.violet { background: var(--violet); height: 4px; box-shadow: 0 0 10px var(--violet), 0 0 26px var(--violet); }
.neon-text { color: var(--neon-core); text-shadow: var(--glow-neon); }
.neon-cyan { color: var(--cyan-core); text-shadow: var(--glow-cyan); }

/* ---------- En-tête ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(20, 11, 10, .94); backdrop-filter: blur(8px); }
.topbar-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 10px 24px; }
.logo { display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.logo .script { font-size: 40px; line-height: 1; color: var(--neon-core); text-shadow: var(--glow-neon); }
.logo small { font-size: 12px; font-weight: 700; letter-spacing: 5px; color: var(--cyan-core); text-shadow: 0 0 8px var(--cyan); }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; border-bottom: 2px solid transparent; transition: color .2s, text-shadow .2s; }
.mainnav a:hover { color: #fff; text-shadow: 0 0 8px var(--neon); }
.mainnav a.active { color: var(--neon); border-bottom-color: var(--neon); }
.mainnav svg, .bottomnav svg { width: 18px; height: 18px; }
.userbox { display: flex; align-items: center; gap: 10px; }
.wallet { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border: 1px solid var(--brass); border-radius: 999px; background: var(--bg2); color: var(--cream); font-weight: 700; text-decoration: none; transition: transform .15s; }
.wallet:hover { transform: translateY(-1px); color: #fff; }
.wallet .chip-ico { width: 32px; height: 32px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--brass); background: var(--carmine); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: inset 0 0 0 3px var(--bg); padding: 0; }
.icon-btn.plain { background: var(--bg2); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--neon); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 8px var(--neon); }
.dropdown { position: absolute; right: 0; top: 52px; min-width: 260px; background: var(--bg2); border: 1px solid var(--brass); border-radius: 14px; box-shadow: 0 20px 40px #000a; padding: 8px; z-index: 60; }
.dropdown a, .dropdown button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; color: var(--cream); text-decoration: none; font: inherit; border-radius: 8px; cursor: pointer; text-align: left; }
.dropdown a:hover, .dropdown button:hover { background: var(--bg3); }
.dropdown .notif { font-size: 14px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.dropdown .notif.unread { color: #fff; }
.dropdown .notif small { display: block; color: var(--dim); }
.rel { position: relative; }

/* Barre de navigation mobile */
.bottomnav { display: none; }
@media (max-width: 900px) {
  .mainnav { display: none; }
  .topbar-inner { padding: 8px 14px; }
  .logo .script { font-size: 32px; }
  .logo small { display: none; }
  .userbox { margin-left: auto; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: #0D0706; border-top: 2px solid var(--neon); box-shadow: 0 -4px 16px rgba(255, 63, 164, .35); padding-bottom: env(safe-area-inset-bottom); }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 62px; color: var(--cream); text-decoration: none; font-size: 9px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .bottomnav a.active { color: var(--neon); }
  .bottomnav a.active svg { filter: drop-shadow(0 0 5px var(--neon)); }
  body { padding-bottom: 66px; }
  .wallet .lbl { display: none; }
}

/* ---------- Mise en page ---------- */
main { flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px; }
@media (max-width: 600px) { main { padding: 16px 14px; } }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 32px 0 16px; }
.section-title::before { content: ''; width: 36px; height: 1px; background: var(--brass); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: var(--brass-l); }

/* ---------- Panneaux & cartes ---------- */
.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel.brass { border: 2px solid var(--brass); box-shadow: inset 0 0 0 3px var(--bg), 0 10px 26px #0007; }
.velvet { background-image: radial-gradient(circle, rgba(0, 0, 0, .33) 0 2px, transparent 2.5px); background-size: 26px 26px; }
.felt { background: radial-gradient(ellipse at 50% 30%, #17735A 0, #0F5A45 45%, #093A2D 100%); border: 10px solid var(--cognac); border-radius: 28px; box-shadow: inset 0 0 0 3px var(--brass), inset 0 0 60px #000a, 0 20px 40px #000a; }
.wood { background-color: #2A160F; background-image: repeating-linear-gradient(90deg, #3B2116 0 44px, #321A10 44px 46px, #1C0E08 46px 48px, #3B2116 48px 50px); }

.game-card { --tube: var(--neon); position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 16px; border-radius: 22px; border: 2px solid var(--brass); box-shadow: inset 0 0 0 4px rgba(0, 0, 0, .2), 0 10px 24px #0008; color: var(--cream); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.game-card:hover { transform: translateY(-6px); color: var(--cream); box-shadow: 0 18px 36px #000a, 0 0 0 1px var(--brass-l), 0 0 28px var(--tube); }
.game-card.closed { opacity: .55; filter: grayscale(.6); pointer-events: none; }
.game-card .medal { width: 58px; height: 58px; border-radius: 50%; border: 2px solid var(--brass); background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--tube); box-shadow: 0 0 14px color-mix(in srgb, var(--tube) 55%, transparent), inset 0 0 10px color-mix(in srgb, var(--tube) 30%, transparent); }
.game-card .medal svg { width: 30px; height: 30px; filter: drop-shadow(0 0 4px currentColor); }
.game-card .tag { font-family: var(--f-script); font-size: 22px; margin-top: 4px; color: var(--tube); text-shadow: 0 0 6px var(--tube), 0 0 16px var(--tube); }
.game-card .name { font-family: var(--f-title); font-size: 26px; line-height: 1; }
.game-card .sub { font-size: 14px; color: #E8D6BC; }
.game-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(212, 162, 76, .35); font-size: 12px; letter-spacing: 1px; color: #E8D6BC; }
.game-card .go { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--tube); color: var(--tube); display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.game-card:hover .go { background: var(--tube); color: var(--bg); }
.game-card .badge { position: absolute; top: 14px; right: 14px; }
.bg-carmine { background-color: #7E1526; }
.bg-emerald { background-color: var(--emerald); }
.bg-cognac { background-color: var(--cognac); }
.bg-plum { background-color: var(--plum); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--brass); background: var(--carmine); color: var(--cream); font: 700 14px/1 var(--f-body); letter-spacing: 2px; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: inset 0 0 0 3px var(--bg), 0 8px 22px rgba(158, 27, 47, .4); transition: transform .15s, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.15); color: #fff; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn .play svg { width: 18px; height: 18px; }
.btn .play { width: 34px; height: 34px; margin-left: -18px; border-radius: 50%; background: var(--brass); color: var(--bg); display: flex; align-items: center; justify-content: center; }
.btn-neon { background: #0F1A1E; border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 14px rgba(63, 224, 255, .35), inset 0 0 10px rgba(63, 224, 255, .2); }
.btn-neon:hover { color: #A8F0FF; }
.btn-brass { background: var(--brass); color: var(--bg); box-shadow: inset 0 0 0 3px var(--brass-l); }
.btn-ghost { background: transparent; box-shadow: none; border-color: var(--line); color: var(--cream); }
.btn-emerald { background: var(--emerald); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 12px; letter-spacing: 1px; box-shadow: none; }
.btn-block { width: 100%; }
.btn-danger { background: #5c1018; border-color: var(--bad); }

/* ---------- Formulaires ---------- */
label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--brass-l); margin-bottom: 6px; }
.field { margin-bottom: 16px; }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid #5a3a28; background: #0E0807; color: var(--cream); font: 16px var(--f-body); }
textarea { min-height: 120px; resize: vertical; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: none; box-shadow: 0 0 0 3px rgba(63, 224, 255, .2); }
input[type=checkbox] { flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; accent-color: var(--neon); cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--cream); font-size: 15px; }
.form-error { color: var(--bad); min-height: 22px; font-size: 14px; }
.auth-wrap { max-width: 460px; margin: 20px auto; }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--bg3); color: var(--brass-l); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
tr:hover td { background: rgba(255, 255, 255, .02); }
.pos { color: var(--ok); }
.neg { color: var(--bad); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--brass); color: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.badge.cyan { background: var(--cyan); }
.badge.neon { background: var(--neon); color: #fff; }
.badge.red { background: var(--bad); color: #fff; }
.badge.green { background: var(--ok); }
.badge.gray { background: #6b5a4c; color: #fff; }

/* ---------- Bandeaux ---------- */
.carpet { height: 22px; background-color: #6E1222; background-image: radial-gradient(circle at 50% 50%, var(--brass) 0 3px, transparent 3.5px), repeating-linear-gradient(45deg, #D9622B 0 6px, transparent 6px 22px), repeating-linear-gradient(-45deg, #D9622B 0 6px, transparent 6px 22px); background-size: 22px 22px, auto, auto; }
.announce { display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-radius: 14px; margin-bottom: 12px; background: #1C1028; border: 1px solid var(--violet); box-shadow: 0 0 14px rgba(138, 63, 255, .3); }
.announce.event { background: #2a0f1d; border-color: var(--neon); box-shadow: 0 0 14px rgba(255, 63, 164, .3); }
.announce.warning { background: #2a1a0a; border-color: var(--orange); }

/* ---------- Héros ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 10px 0 30px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 20px; } }
.sign { position: relative; aspect-ratio: 540 / 350; border: 6px solid var(--brass); border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 3px var(--bg), 0 20px 40px #0009; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4%; }
.sign::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 34%, rgba(255, 63, 164, .25) 0, transparent 70%), radial-gradient(ellipse 40% 40% at 24% 82%, rgba(255, 138, 43, .19) 0, transparent 70%), radial-gradient(ellipse 40% 40% at 78% 82%, rgba(63, 224, 255, .16) 0, transparent 70%); }
.sign::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 70px #000c; pointer-events: none; }
.sign > * { position: relative; }
.sign .big { font-family: var(--f-script); font-size: clamp(56px, 9vw, 96px); line-height: 1; color: var(--neon-core); text-shadow: 0 0 2px #fff, 0 0 6px var(--neon), 0 0 14px var(--neon), 0 0 28px var(--neon), 0 0 50px var(--neon); animation: flicker 7s infinite; }
.sign .bar { width: 42%; height: 4px; border-radius: 4px; background: var(--neon-core); box-shadow: 0 0 4px var(--neon), 0 0 12px var(--neon), 0 0 24px var(--neon); }
.sign .lounge { font-size: clamp(11px, 1.4vw, 15px); font-weight: 700; letter-spacing: 9px; color: var(--cyan-core); text-shadow: var(--glow-cyan); }
.sign .line { display: flex; align-items: center; gap: 6%; width: 100%; justify-content: center; }
.sign .open { padding: 6px 16px; border: 3px solid #FFE2C4; border-radius: 10px; font-size: clamp(13px, 1.8vw, 20px); font-weight: 700; letter-spacing: 5px; color: #FFE2C4; text-shadow: 0 0 2px #fff, 0 0 6px var(--orange), 0 0 14px var(--orange); box-shadow: 0 0 6px var(--orange), 0 0 16px var(--orange), inset 0 0 6px var(--orange), inset 0 0 14px rgba(255, 138, 43, .5); }
.sign .sevens { font-family: var(--f-title); font-size: clamp(34px, 5vw, 50px); letter-spacing: 4px; color: var(--cyan-core); text-shadow: var(--glow-cyan), 0 0 46px var(--cyan); }
.sign .dot { width: 8px; height: 8px; border-radius: 50%; background: #FFF3D6; box-shadow: 0 0 6px var(--brass), 0 0 14px var(--brass); }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .55; } 94% { opacity: 1; } 96% { opacity: .7; } 97% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sign .big { animation: none; } * { transition: none !important; } }

/* ---------- Toasts & modales ---------- */
#toasts { position: fixed; z-index: 200; top: 76px; right: 16px; display: flex; flex-direction: column; gap: 10px; max-width: min(92vw, 360px); }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--brass); box-shadow: 0 12px 30px #000a; animation: toastin .25s ease-out; }
.toast.ok { border-color: var(--ok); }
.toast.err { border-color: var(--bad); }
.toast.win { border-color: var(--neon); box-shadow: 0 0 20px rgba(255, 63, 164, .5); }
@keyframes toastin { from { transform: translateY(-8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(0, 0, 0, .7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { width: min(560px, 100%); max-height: 90vh; overflow: auto; }

/* ---------- Jetons de mise ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { --c: var(--carmine); position: relative; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); color: #fff; font: 700 13px var(--f-body); box-shadow: inset 0 0 0 4px var(--c), inset 0 0 0 7px #F4E6D0, inset 0 0 0 9px var(--c), 0 4px 10px #000a; transition: transform .15s; display: flex; align-items: center; justify-content: center; }
.chip::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; border: 4px dashed rgba(244, 230, 208, .8); }
.chip span { position: relative; }
.chip:hover { transform: translateY(-3px); }
.chip.sel { transform: translateY(-5px); box-shadow: inset 0 0 0 4px var(--c), inset 0 0 0 7px #F4E6D0, inset 0 0 0 9px var(--c), 0 0 0 3px var(--cyan), 0 0 18px var(--cyan); }
.chip.c10 { --c: #2E5FA8; } .chip.c50 { --c: #9E1B2F; } .chip.c100 { --c: #0F5A45; } .chip.c500 { --c: #3E1E5C; } .chip.c1000 { --c: #B8862F; } .chip.c5000 { --c: #1a1a1a; }

/* ---------- Cartes à jouer ---------- */
.cards { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; min-height: 128px; }
.pcard { width: 86px; height: 124px; border-radius: 10px; background: #FBF5E6; color: #1a1a1a; position: relative; box-shadow: 0 6px 14px #000a, inset 0 0 0 1px #d8c9a8; font-family: var(--f-title); animation: deal .3s ease-out both; user-select: none; }
.pcard.red { color: #B3122B; }
.pcard .tl { position: absolute; top: 6px; left: 8px; font-size: 20px; line-height: 1; text-align: center; }
.pcard .br { position: absolute; bottom: 6px; right: 8px; font-size: 20px; line-height: 1; text-align: center; transform: rotate(180deg); }
.pcard .mid { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; }
.pcard.back { background: repeating-linear-gradient(45deg, var(--carmine) 0 6px, #7E1526 6px 12px); box-shadow: 0 6px 14px #000a, inset 0 0 0 4px #FBF5E6, inset 0 0 0 6px var(--brass); }
.pcard.back .mid { color: var(--brass-l); font-family: var(--f-script); font-size: 34px; }
.pcard.held { transform: translateY(-14px); box-shadow: 0 0 0 3px var(--cyan), 0 0 18px var(--cyan), 0 6px 14px #000a; }
@keyframes deal { from { transform: translateY(-30px) rotate(-8deg); opacity: 0; } }
@media (max-width: 600px) { .pcard { width: 58px; height: 84px; } .pcard .tl, .pcard .br { font-size: 15px; } .pcard .mid { font-size: 30px; } .cards { gap: 6px; min-height: 88px; } }

/* ---------- Divers ---------- */
.stat { padding: 18px; border-radius: 16px; background: var(--bg2); border: 1px solid var(--line); }
.stat .v { font-family: var(--f-title); font-size: 30px; color: var(--brass-l); }
.stat .l { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.progress { height: 10px; border-radius: 6px; background: #0E0807; overflow: hidden; border: 1px solid var(--line); }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--neon), var(--violet)); box-shadow: 0 0 10px var(--neon); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg2); color: var(--cream); font: 600 13px var(--f-body); letter-spacing: 1px; text-transform: uppercase; cursor: pointer; }
.tabs button.active { border-color: var(--neon); color: var(--neon); box-shadow: 0 0 10px rgba(255, 63, 164, .35); }
.md h1 { font-size: 36px; } .md h2 { font-size: 24px; margin-top: 1.2em; } .md ul { padding-left: 22px; } .md li { margin: 4px 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--brass); background: var(--bg); display: inline-flex; align-items: center; justify-content: center; color: var(--neon); flex: none; }
.avatar svg { width: 22px; height: 22px; }
.avatar.lg { width: 76px; height: 76px; } .avatar.lg svg { width: 40px; height: 40px; }
.empty { padding: 30px; text-align: center; color: var(--dim); }

/* ---------- Chat ---------- */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; }
.chat-box { position: fixed; right: 18px; bottom: 86px; z-index: 70; width: min(360px, calc(100vw - 24px)); height: min(480px, 60vh); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.chat-box header { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.chat-list { flex: 1; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.chat-list .m b { color: var(--brass-l); }
.chat-list .m.staff b { color: var(--neon); }
.chat-box form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-box input { min-height: 42px; }
@media (max-width: 900px) { .chat-fab { bottom: 80px; } .chat-box { bottom: 146px; } }

/* ---------- Pied de page ---------- */
.footer { border-top: 1px solid var(--line); padding: 20px 24px; color: var(--dim); font-size: 13px; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; gap: 16px; justify-content: space-between; flex-wrap: wrap; }
.footer a { color: var(--muted); }
