:root{
  --bg: #0b1020;
  --panel: #101a33;
  --panel2:#0e1730;
  --text: #eaf1ff;
  --muted:#aab6d0;
  --line: rgba(255,255,255,.10);

  /* Couleurs (moins fade) */
  --accent:#38bdf8;     /* cyan */
  --accent2:#22c55e;    /* vert */
  --violet:#a78bfa;     /* violet */
  --warn:#fbbf24;
  --danger:#fb7185;

  --radius: 16px;
  --shadow: 0 14px 40px rgba(0,0,0,.40);
  --shadow2: 0 10px 24px rgba(0,0,0,.30);
  --max: 1180px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font: 14px/1.55 system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(56,189,248,.22), transparent 55%),
    radial-gradient(820px 520px at 92% 5%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(900px 520px at 60% 110%, rgba(34,197,94,.14), transparent 55%),
    linear-gradient(180deg, #070a14, var(--bg));
}

a{color:var(--accent); text-decoration:none}
a:hover{opacity:.92}

.wrap{max-width:var(--max); margin:0 auto; padding:18px}

.topbar{
  position:sticky; top:0; z-index:50;
  background: rgba(7,10,20,.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner{
  display:flex; justify-content:space-between; align-items:center; gap:14px;
  max-width:var(--max); margin:0 auto; padding:14px 18px;
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  box-shadow: var(--shadow2);
}
.brand h1{margin:0; font-size:16px; letter-spacing:.2px}
.brand .sub{margin-top:2px; font-size:12px; color:var(--muted)}

.nav{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.pill{
  padding:8px 11px;
  border:1px solid var(--line);
  border-radius:999px;
  background: color-mix(in oklab, var(--panel) 70%, transparent);
  color:var(--text);
  font-size:13px;
}
.pill:hover{border-color: color-mix(in oklab, var(--accent) 40%, var(--line))}
.pill.live{
  border-color: transparent;
  background: linear-gradient(135deg, rgba(56,189,248,.35), rgba(34,197,94,.25));
}

.grid{
  display:grid;
  grid-template-columns: 1fr 330px;
  gap:16px;
  margin-top:16px;
}
@media (max-width:980px){ .grid{grid-template-columns:1fr} }

.panel{
  background: color-mix(in oklab, var(--panel) 88%, transparent);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel .hd{
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  background: linear-gradient(90deg, rgba(56,189,248,.10), transparent 55%);
}
.panel .hd h2{margin:0; font-size:14px}
.panel .hd .meta{font-size:12px; color:var(--muted)}
.panel .bd{padding:16px}

.cards{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}
@media (max-width:720px){ .cards{grid-template-columns:1fr} }

.card{
  background: color-mix(in oklab, var(--panel2) 92%, transparent);
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
}
.card b{display:block; margin-bottom:6px}
.card p{margin:0; color:var(--muted)}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--panel) 75%, transparent);
  color:var(--text);
  cursor:pointer;
  font-size:13px;
}
.btn:hover{border-color: color-mix(in oklab, var(--accent) 45%, var(--line))}
.btn.primary{
  border-color: transparent;
  background: linear-gradient(135deg, rgba(56,189,248,.40), rgba(167,139,250,.30));
}

.widget{padding:14px 14px 16px}
.widget + .widget{border-top:1px solid var(--line)}
.widget h3{
  margin:0 0 10px; font-size:12px; color:var(--muted);
  text-transform:uppercase; letter-spacing:.3px;
}

/* Shoutbox look (compatible avec ton widget actuel) */
.shoutbox-widget #shoutbox-msgs{
  height: 300px; /* ajuste si tu veux */
  overflow:auto;
  border:1px solid var(--line);
  background: rgba(0,0,0,.18);
  border-radius:14px;
  padding:10px;
}
.shoutbox-widget .msg{border-bottom:1px solid rgba(255,255,255,.08); padding:8px 0}
.shoutbox-widget .msg:last-child{border-bottom:0}
.shoutbox-widget .meta{font-size:11px; color:var(--muted); margin-bottom:3px}
.shoutbox-widget input,
.shoutbox-widget textarea{
  width:100%;
  box-sizing:border-box;
  margin:6px 0;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.16);
  color:var(--text);
}
.shoutbox-widget button{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:0;
  background: linear-gradient(135deg, rgba(34,197,94,.55), rgba(56,189,248,.45));
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.shoutbox-widget button:hover{filter:brightness(1.05)}
.shoutbox-widget .err{color: var(--danger); font-size:12px; margin-top:6px}

/* Nav sous le chat */
.chat-nav{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top:10px;
}
.chat-nav a{
  font-size:12px;
  color:var(--muted);
  border:1px solid var(--line);
  padding:6px 10px;
  border-radius:999px;
  background: rgba(0,0,0,.12);
}
.chat-nav a:hover{color:var(--text); border-color: color-mix(in oklab, var(--accent) 40%, var(--line))}

.footer{
  margin-top:16px;
  padding:14px 18px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
}
.shoutbox-widget{
  max-width:100%;
}

#shoutbox-box{
  border:1px solid #ccc;
  background:#f8f8f8;
  padding:10px;
  border-radius:6px;
}

#shoutbox-msgs{
  height:260px;
  overflow:auto;
  background:#fff;
  border:1px solid #ddd;
  padding:8px;
  border-radius:6px;
}

#shoutbox-box .msg{
  border-bottom:1px solid #eee;
  padding:6px 0;
}

#shoutbox-box .meta{
  font-size:11px;
  opacity:.7;
  margin-bottom:2px;
}

#shoutbox-box input,
#shoutbox-box textarea{
  width:100%;
  box-sizing:border-box;
  margin:4px 0;
  padding:6px;
  border:1px solid #ccc;
  border-radius:6px;
}

#shoutbox-box button{
  padding:8px 12px;
  border:1px solid #fa2;
  background:#fa2;
  border-radius:6px;
  font-weight:bold;
  cursor:pointer;
}

#shoutbox-box .err{
  color:#a00;
  margin-top:6px;
}

#shoutbox-box .row{
  display:flex;
  gap:8px;
}
#shoutbox-box .row > *{
  flex:1;
}
/* Conteneur shoutbox */
#sidebar #shoutbox-box{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Zone messages */
#sidebar #shoutbox-msgs{
  height: 240px;
  overflow: auto;
}

/* Champs : évite qu'ils deviennent minuscules */
#sidebar #shoutbox-box input,
#sidebar #shoutbox-box textarea{
  width: 100% !important;
  box-sizing: border-box !important;
  display: block;
  margin: 6px 0;
}

/* Bouton */
#sidebar #shoutbox-box button{
  width: 100%;
  display: block;
  margin-top: 6px;
}
/* === Shoutbox widget (IDs st-*) === */
#st-shoutbox{
  width: 100%;
  max-width: 240px;          /* adapte à la largeur de ta colonne */
  box-sizing: border-box;
  border: 1px solid #ccc;
  background: #f8f8f8;
  padding: 10px;
  border-radius: 6px;
  overflow: hidden;
}

#st-msgs{
  height: 260px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #ddd;
  padding: 8px;
  border-radius: 6px;
  box-sizing: border-box;
}

#st-shoutbox .msg{
  border-bottom: 1px solid #eee;
  padding: 6px 0;
}

#st-shoutbox .meta{
  font-size: 11px;
  opacity: .75;
  margin-bottom: 2px;
}

#st-shoutbox input,
#st-shoutbox textarea,
#st-shoutbox button{
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
  margin: 6px 0 !important;
  float: none !important;
}

#st-shoutbox button{
  border: 1px solid #fa2;
  background: #fa2;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  padding: 8px 10px;
}

#st-shoutbox .err{
  color:#a00;
  font-size: 12px;
  margin-top: 6px;
}

#sidebar ul { list-style: none; padding-left: 0; }
#sidebar li { margin-bottom: 12px; }
.shout-smileys {
  margin: 6px 0;
}
.shout-smileys img {
  cursor: pointer;
  margin-right: 4px;
  vertical-align: middle;
}
.shout-smileys img:hover {
  transform: scale(1.1);
}
/* ===== Grille stable ===== */
.grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;          /* important: évite les effets de hauteur */
}

.grid > section{
  min-width: 0;               /* évite des débordements */
}

.right-col{
  position: sticky;
  top: 16px;
}

/* Responsive */
@media (max-width: 900px){
  .grid{ grid-template-columns: 1fr; }
  .right-col{ position: static; }
}

/* ===== Cards cliquables ===== */
.cards{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px){
  .cards{ grid-template-columns: 1fr; }
}

.card{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* ===== Shoutbox: styles "scopés" anti-blanc ===== */
.shoutbox-widget{
  color: #dbe7ff;
}

.shoutbox-widget #box,
.shoutbox-widget #shoutbox-box{
  background: rgba(10, 14, 24, .45);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding: 12px;
}

.shoutbox-widget #msgs,
.shoutbox-widget #shoutbox-msgs{
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 10px;
  max-height: 320px;
  overflow: auto;
}

.shoutbox-widget .msg{
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 8px 0;
}

.shoutbox-widget .meta{
  font-size: 11px;
  opacity: .75;
}

/* Inputs */
.shoutbox-widget input,
.shoutbox-widget textarea{
  background: rgba(0,0,0,.20);
  color: #eaf1ff;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 8px;
  outline: none;
}

.shoutbox-widget input::placeholder,
.shoutbox-widget textarea::placeholder{
  color: rgba(255,255,255,.55);
}

/* Bouton */
.shoutbox-widget button{
  width: 100%;
  background: #ffa726;
  border: 0;
  color: #1b1200;
  font-weight: 700;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}

