/* TITRES */
h1 {
  font-size: 46px;
  text-align: center;
  margin: 10px 0 4px;
  color: gold;
}
h2 {
  font-size: 38px;
  text-align: center;
  margin: 0 0 18px;
  color: gold;
}

/* MACHINE */
.machine-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.machine-card {
  width: 500px;
  max-width: 90%;
  margin: 0 auto;
}

/* GRILLE SERVEURS */
.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  padding: 0 16px;
}

/* CARTES */
.card {
  border: 2px solid gold;
  border-radius: 10px;
  padding: 12px;
  background: rgba(0,0,0,0.55);
  color: gold;
  box-shadow: 0 0 10px rgba(255,215,0,0.25);
  transition: 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(255,215,0,0.35);
}

/* TITRE SERVEUR */
.server-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.server-header h3 {
  margin: 0;
  font-size: 18px;
}
.server-header small {
  color: #d9c46b;
}

/* ICÔNES */
.server-icon {
  width: 42px;
  height: 42px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 8px rgba(255,215,0,0.35);
}

/* BADGES */
.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
  color: #fff;
}
.online {
  background: #2e7d32;
}
.offline {
  background: #b71c1c;
}
.players {
  background: #1e88e5;
}

/* BARRES CPU/RAM */
.bar {
  height: 8px;
  background: #333;
  border-radius: 4px;
  margin-top: 2px;
}
.bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}
.bar-fill.cpu {
  background: #2e7d32;
}
.bar-fill.ram {
  background: #1e88e5;
}

/* META */
.meta {
  font-size: 0.9em;
  color: #d9c46b;
  margin-top: 4px;
}

/* STATUS */
.status {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- PING BADGE --- */
.ping {
  background: #9c27b0;
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9em;
  margin-left: 6px;
}

/* --- ONLINE GLOW (vert) --- */
.server-card.online-glow {
  box-shadow: 0 0 14px rgba(0,255,0,0.55), 0 0 4px rgba(0,255,0,0.35);
  border-color: #00ff00;
  transition: 0.25s ease;
}

/* --- OFFLINE PULSE (rouge) --- */
@keyframes offlinePulse {
  0%   { box-shadow: 0 0 6px rgba(255,0,0,0.4); }
  50%  { box-shadow: 0 0 14px rgba(255,0,0,0.8); }
  100% { box-shadow: 0 0 6px rgba(255,0,0,0.4); }
}

.server-card.offline-pulse {
  border-color: #ff0000;
  animation: offlinePulse 1.4s infinite ease-in-out;
}


