/* TeamKit — page Statut v3 (7 sept. 2026). Préfixe st-. */
.st-main { padding-top: 80px; }
.st-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.st-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent-primary); }
.st-eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent-primary); }
.st-sec { padding: 48px 0; }
.st-alt { background: var(--bg-secondary); border-block: 1px solid var(--border-color); }
.st-sec h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; text-transform: uppercase; letter-spacing: .5px; margin: 6px 0 0; color: var(--text-primary); text-wrap: balance; }
.st-sec-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.st-sec-h p { color: var(--text-muted); max-width: 60ch; margin: 6px 0 0; }
.st-more { white-space: nowrap; color: var(--accent-primary); text-decoration: none; font-weight: 700; font-size: .95rem; }
.st-note { margin: 14px 0 0; font-size: .88rem; color: var(--text-muted); max-width: 80ch; line-height: 1.55; }

/* ---- Bandeau d'état ---- */
.st-hero { padding: 36px 0 32px; border-bottom: 1px solid var(--border-color); position: relative; overflow: hidden; }
.st-hero::before { content: ''; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(ellipse at 20% 30%, rgba(0,255,136,.10), transparent 55%), radial-gradient(ellipse at 85% 10%, rgba(0,240,255,.12), transparent 55%); pointer-events: none; }
.st-hero .container { position: relative; }
.st-health { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; padding: 18px 22px; border-radius: 16px; background: var(--bg-card); border: 1px solid var(--border-color); }
.st-health-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.st-health[data-state="ok"] .st-health-dot { background: var(--accent-success); animation: stPulse 1.8s infinite; }
.st-health[data-state="warn"] .st-health-dot { background: var(--accent-warning); animation: stPulse 1.8s infinite; }
.st-health[data-state="down"] .st-health-dot { background: var(--accent-danger); animation: stPulse 1s infinite; }
.st-health[data-state="ok"] { border-color: rgba(0,255,136,.35); }
.st-health[data-state="warn"] { border-color: rgba(255,170,0,.45); }
.st-health[data-state="down"] { border-color: rgba(255,68,68,.5); }
@keyframes stPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.st-health h1 { font-family: var(--font-display); font-size: clamp(1.15rem, 2.6vw, 1.6rem); font-weight: 800; text-transform: uppercase; margin: 0; color: var(--text-primary); }
.st-health p { margin: 4px 0 0; color: var(--text-secondary); font-size: .95rem; }
.st-health-meta { display: flex; align-items: center; gap: 12px; font-size: .82rem; color: var(--text-muted); white-space: nowrap; }
.st-refresh { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-tertiary); color: var(--text-primary); cursor: pointer; display: grid; place-items: center; }
.st-refresh span { font-size: .95rem; line-height: 1; }
.st-refresh .st-ring { position: absolute; inset: 0; width: 40px; height: 40px; transform: rotate(-90deg); }
.st-ring-bg { fill: none; stroke: var(--border-color); stroke-width: 3; }
.st-ring-fg { fill: none; stroke: var(--accent-success); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 97.4; stroke-dashoffset: 97.4; transition: stroke-dashoffset .6s; }
.st-ring-fg.is-cyan { stroke: var(--accent-primary); }
.st-refresh .st-ring-fg { stroke: var(--accent-primary); transition: stroke-dashoffset 1s linear; }

.st-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.st-tile { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.st-tile-v { font-size: 1.9rem; font-weight: 700; color: var(--text-primary); line-height: 1.05; }
.st-tile-l { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.st-tile-l small { display: block; text-transform: none; letter-spacing: 0; font-size: .78rem; margin-top: 2px; color: var(--text-secondary); }
.st-tile-ring { display: grid; grid-template-columns: 54px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; }
.st-tile-ring svg { grid-row: 1 / 3; width: 54px; height: 54px; transform: rotate(-90deg); }

/* ---- Liste des serveurs ---- */
.st-tools { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.st-search { max-width: 280px; width: 100%; padding: 9px 12px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.st-chip { background: var(--bg-secondary); border: 1px solid var(--border-color); color: var(--text-secondary); border-radius: 99px; padding: 5px 11px; font-size: .8rem; cursor: pointer; font-family: inherit; transition: all .15s; }
.st-chip:hover { border-color: var(--accent-primary); color: var(--text-primary); }
.st-chip.is-active { background: rgba(0,240,255,.12); border-color: var(--accent-primary); color: var(--text-primary); }
.st-chip small { color: var(--text-muted); margin-left: 3px; }
.st-list { display: grid; gap: 8px; }
.st-loading, .st-empty { color: var(--text-muted); text-align: center; padding: 30px 0; }
.st-row { display: grid; grid-template-columns: 44px minmax(0, 1.5fr) minmax(0, 1fr) 150px 130px auto; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-color); transition: border-color .15s; }
.st-row:hover { border-color: var(--line2, #34344a); }
.st-row.is-off { opacity: .72; }
.st-row.is-official { border-color: rgba(0,240,255,.45); box-shadow: inset 3px 0 0 #00f0ff; }
.st-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--bg-tertiary); display: grid; place-items: center; font-size: 1.35rem; }
.st-name { min-width: 0; }
.st-name b { display: block; color: var(--text-primary); font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-name b a { color: inherit; text-decoration: none; }
.st-name b a:hover { color: var(--accent-primary); }
.st-name span { display: block; font-size: .8rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-crown { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-family: var(--font-mono); font-size: .62rem; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; background: linear-gradient(90deg,#00f0ff 0%,#2f7bff 60%,#7b2cbf 100%); color: #06101a; box-shadow: 0 0 10px rgba(0,240,255,.45), 0 0 22px rgba(47,123,255,.25); vertical-align: middle; }
.st-commu { min-width: 0; font-size: .86rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-commu a { color: var(--text-secondary); text-decoration: none; }
.st-commu a:hover { color: var(--accent-primary); }
.st-commu .st-votes { color: var(--text-muted); font-size: .78rem; margin-left: 6px; }
.st-players { font-family: var(--font-mono); font-size: .86rem; color: var(--text-primary); }
.st-players .st-bar { margin-top: 5px; height: 5px; }
.st-state { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.st-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-state.is-on { color: var(--accent-success); }
.st-state.is-boot { color: var(--accent-warning); }
.st-state.is-idle { color: var(--text-secondary); }
.st-state.is-off { color: var(--text-muted); }
.st-state.is-on::before { animation: stPulse 1.8s infinite; }
.st-act { display: flex; gap: 6px; }
.st-btn { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-secondary); color: var(--text-primary); font-family: inherit; font-weight: 600; font-size: .82rem; cursor: pointer; text-decoration: none; white-space: nowrap; }
.st-btn:hover { border-color: var(--accent-primary); }
.st-btn.is-primary { background: var(--accent-primary); color: #06151a; border-color: transparent; }

/* ---- Machine ---- */
.st-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.st-gauge { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; }
.st-gauge-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.st-gauge-h span { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); }
.st-gauge-h b { font-size: 1.35rem; color: var(--text-primary); }
.st-bar { position: relative; height: 10px; border-radius: 99px; background: var(--bg-tertiary); overflow: hidden; }
.st-bar-res { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(135deg, rgba(0,240,255,.28) 0 6px, rgba(0,240,255,.10) 6px 12px); transition: width .6s; }
.st-bar-real { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-success); border-radius: 99px; transition: width .6s; }
.st-bar-real.is-warn { background: var(--accent-warning); }
.st-bar-real.is-danger { background: var(--accent-danger); }
.st-gauge-l { margin-top: 8px; font-size: .8rem; color: var(--text-muted); }
.st-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: .8rem; color: var(--text-muted); }
.st-legend i { display: inline-block; width: 14px; height: 8px; border-radius: 99px; margin-right: 6px; vertical-align: middle; }
.st-legend i.is-real { background: var(--accent-success); }
.st-legend i.is-res { background: repeating-linear-gradient(135deg, rgba(0,240,255,.35) 0 4px, rgba(0,240,255,.12) 4px 8px); }
.st-bygame { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.st-bygame span { padding: 6px 11px; border-radius: 99px; background: var(--bg-card); border: 1px solid var(--border-color); font-size: .84rem; color: var(--text-secondary); }
.st-bygame b { color: var(--text-primary); font-family: var(--font-mono); font-weight: 400; }

/* ---- Méthode ---- */
.st-how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.st-how div { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px; }
.st-how b { display: block; color: var(--text-primary); margin-bottom: 4px; font-size: .95rem; }
.st-how span { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .st-tiles { grid-template-columns: 1fr 1fr; }
  .st-row { grid-template-columns: 44px minmax(0, 1fr) 130px auto; }
  .st-commu, .st-row .st-players { display: none; }
  .st-gauges, .st-how { grid-template-columns: 1fr; }
  .st-tools { align-items: stretch; width: 100%; }
  .st-search { max-width: none; }
  .st-chips { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .st-hero { padding: 24px 0; }
  .st-health { grid-template-columns: auto 1fr; }
  .st-health-meta { grid-column: 1 / -1; justify-content: space-between; }
  .st-sec { padding: 36px 0; }
  .st-row { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-rows: auto auto; row-gap: 8px; padding: 12px; }
  .st-ico { width: 40px; height: 40px; font-size: 1.2rem; }
  .st-state { grid-column: 3; }
  .st-act { grid-column: 1 / -1; }
  .st-act .st-btn { flex: 1; text-align: center; }
  .st-tile-v { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) { .st-health-dot, .st-state.is-on::before { animation: none; } }
@media (max-width: 640px) {
  /* Les deux tuiles à anneau prennent toute la largeur : le pourcentage ne se coupe plus */
  .st-tile-ring { grid-column: 1 / -1; grid-template-columns: 54px 1fr auto; }
  .st-tile-ring .st-tile-l { grid-column: 2 / 4; }
}

/* ---- Services & bots ---- */
.st-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.st-svc { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border-color); }
.st-svc.is-off { opacity: .72; }
.st-svc .st-name b { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
.st-svc .st-name span { white-space: normal; }
