:root {
  --bg: #0f1115;
  --panel: #151822;
  --panel-2: #1b2030;
  --text: #e7e9ee;
  --muted: #a9afbd;
  --accent: #00c2a8;
  --accent-2: #00e5c1;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 10px;
  --gap: 16px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  background: radial-gradient(1200px 600px at 20% 0%, #12151f 0%, #0f1115 50%, #0b0d11 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
}

.app {
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 32px 24px;
}

.app-header {
  text-align: center;
  padding: 12px 0 24px 0;
}

.app-title {

  display: inline-flex;     /* garde la pastille à côté du texte */
  align-items: center;
  gap: 10px;
  justify-content: center;  /* centre le texte + pastille */

  margin: 0;
  font-weight: 700;
  font-size: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.app-subtitle {

  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;       /* centre aussi la description */

  margin: 6px 0 0 0;
  color: var(--muted);
  font-size: 14px;
}

.buttons-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
}

.button-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  transition: transform 140ms ease, border-color 140ms ease;
}

.button-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.button-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.button-label {
  font-weight: 600;
  font-size: 16px;
}

.button-accent {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  opacity: 0.9;
  position: relative;
}

.button-accent::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #00e676; /* par défaut vert */
  box-shadow: 0 0 10px #00e676;
}

/* États forcés */
.status-green::before {
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
}
.status-orange::before {
  background: #ff9800;
  box-shadow: 0 0 10px #ff9800;
}
.status-red::before {
  background: #f44336;
  box-shadow: 0 0 10px #f44336;
}

.button-link {
  margin-top: 10px;
  display: inline-flex;
  justify-content: center;
  width: 100%;
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: background 140ms ease, transform 140ms ease;
}

.button-link:hover {
  background: #1f2638;
  transform: translateY(-1px);
}

.button-desc {
  margin: 8px 0 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* Lumière globale à côté du titre */
.global-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  margin-left: 0px;
  font-size: 14px;
  color: var(--muted);
  position: relative;
}

.global-status::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #00e676; /* par défaut vert */
  box-shadow: 0 0 10px #00e676;
}

/* États forcés */
.global-green::before {
  background: #00e676;
  box-shadow: 0 0 10px #00e676;
}
.global-orange::before {
  background: #ff9800;
  box-shadow: 0 0 10px #ff9800;
}
.global-red::before {
  background: #f44336;
  box-shadow: 0 0 10px #f44336;
}


