:root{
  --bg:        #0b0b10;
  --panel:     #12121b;
  --panelHi:   #181824;
  --ink:       #eef0ff;
  --inkDim:    rgba(238,240,255,.55);
  --line:      rgba(238,240,255,.12);
  --accent:    #6b7bff;
  --ok:        #38d996;
  --danger:    #ff4d6d;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.root{
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* ═══ TOPBAR ═══ */
.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.brand{ display: flex; align-items: center; gap: 12px; }

.pill{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--danger);
  flex: 0 0 12px;
  transition: background .2s;
}
.pill.live{ background: var(--ok); }

.brandTitle{ font-size: 17px; font-weight: 1000; letter-spacing: .3px; }
.brandSub{ font-size: 12px; color: var(--inkDim); margin-top: 2px; }

.stageChip{
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ═══ GRILLE DE BOUTONS ═══ */
.grid{
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px;
  align-content: start;
}

@media (max-width: 900px){ .grid{ grid-template-columns: repeat(2, 1fr); } }

.stageBtn{
  appearance: none;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--panelHi);
  color: var(--ink);
  padding: 26px 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color .12s, background .12s, transform .06s;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stageBtn:hover{ border-color: rgba(238,240,255,.30); }
.stageBtn:active{ transform: translateY(1px); }

.stageBtn.active{
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 18%, var(--panelHi));
}

.stageBtnKey{
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: .5px;
}

.stageBtnDesc{
  font-size: 13px;
  font-weight: 700;
  color: var(--inkDim);
  line-height: 1.35;
}

.stageBtn.active .stageBtnDesc{ color: rgba(238,240,255,.80); }

/* ═══ FOOTER ═══ */
.footerbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--panel);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--inkDim);
}

.footerLeft{ display: flex; align-items: center; gap: 8px; }

.footerDot{
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.footerRight .footerText.warn{ color: var(--danger); font-weight: 900; }
