:root {
  --bg-main: #0b0e1a;
  --card-bg: #14182b;
  --card-bg-2: #1b2040;
  --text-main: #ffffff;
  --text-muted: #9aa0b5;

  --info: #4da3ff;
  --success: #3cff9e;
  --warning: #ffb74d;
  --error: #ff5c5c;

  --radius: 14px;
  --blur-min: 6px;
  --blur-max: 18px;
  --max-width: 900px;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  font-family: Inter, system-ui, sans-serif;
}

body {
  margin: 0;
  color: var(--text-main);
  background:
    radial-gradient(1200px 500px at 50% -200px, #2a2f55 0%, transparent 70%),
    linear-gradient(180deg, #0b0e1a 0%, #070914 100%);
  min-height: 100vh;
  overflow-x: hidden;
}


/* ===== HEADER ===== */
.header {
  position: relative;
  height: 280px;
  overflow: hidden;
  z-index: 1;
}

.header::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: url("../img/background.png") center / cover no-repeat;
  animation: blurPulse 12s ease-in-out infinite alternate;
  transform: scale(1.15);
}

@keyframes blurPulse {
  0% { filter: blur(var(--blur-min)); }
  100% { filter: blur(var(--blur-max)); }
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,12,25,0.25),
    rgba(7,9,20,0.95)
  );
}


.header-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-content img {
  height: 85px;
  filter: drop-shadow(0 0 20px rgba(140,120,255,0.4));
}

.header-content h1 {
  margin-top: 15px;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-weight: 700;
}

/* ===== CONTAINER ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto 60px;
  padding: 40px 20px 0;
  position: relative;
  z-index: 2;
}

/* ===== INFO MESSAGE ===== */
.alert {
  background: linear-gradient(145deg, var(--card-bg), var(--card-bg-2));
  border-left: 6px solid;
  padding: 18px 22px;
  border-radius: var(--radius);
  margin-bottom: 30px;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.4),
    0 0 15px rgba(120,120,255,0.05);
}

.alert.info { border-color: var(--info); }
.alert.success { border-color: var(--success); }
.alert.warning { border-color: var(--warning); }
.alert.error { border-color: var(--error); }

.alert-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.alert-date {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ===== SERVICES ===== */
.service {
  background: rgba(20, 24, 45, 0.65);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 14px;

  display: flex;
  flex-direction: column;
  gap: 10px;

  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}


.service:hover {
  transform: translateY(-2px);
}
.service-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}


/* ===== STATUS GLOW ===== */
.service-status {
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  text-shadow: none;
}

.status-ok {
  color: #2dffb3;
  background: rgba(45,255,179,0.12);
  box-shadow: 0 0 12px rgba(45,255,179,0.35);
}

.status-warn {
  color: #ffb74d;
  background: rgba(255,183,77,0.15);
  box-shadow: 0 0 12px rgba(255,183,77,0.35);
}

.status-down {
  color: #ff5c5c;
  background: rgba(255,92,92,0.15);
  box-shadow: 0 0 12px rgba(255,92,92,0.4);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .header { height: 230px; }

  .service {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.uptime-bars {
  display: flex;
  gap: 3px;
  margin-top: 8px;
}


.bar {
  flex: 1;              /* 🔥 prend la largeur */
  height: 32px;
  border-radius: 4px;
  background: #444;
  cursor: pointer;
  position: relative;

  transition:
    transform .15s ease,
    background .15s ease;
}


.bar.ok { background: #2dffb3; }
.bar.warn { background: #ffb74d; }
.bar.down { background: #ff5c5c; }

.bar:hover {
  transform: scaleX(1.4);   /* 🔥 largeur */
  z-index: 2;
}

.bar::after {
  content: attr(data-status) " • " attr(data-ping);
  position: absolute;
  bottom: 140%;
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  color: white;
  padding: 6px 8px;
  font-size: 11px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.bar:hover::after {
  opacity: 1;
}
.service-metric {
  font-size: 13px;
  color: var(--text-muted);
  min-width: 70px;
}

.service-metric.left {
  text-align: left;
}

.service-metric.right {
  text-align: right;
}

.service-updated {
  margin-top: 6px;
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  opacity: 0.8;
}
.service-center {
  display: flex;
  justify-content: space-around;
  width: 400px;
}