:root {
  --bg: #0f1720;
  --text: #e6eef7;
  --muted: #94a3b8;
  --accent: #7dd3fc;
  --accent-2: #a78bfa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  text-align: center;
  padding: 40px 20px;
}

/* Conteneur principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Titres */
h1 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 10px;
}

p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 30px;
}

/* Grille responsive */
.servers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Carte projet */
.card {
  background: rgba(255, 255, 255, 0.03);
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Logo projet */
.server-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid var(--accent);
  transition: transform 0.3s ease;
}

.server-logo:hover {
  transform: scale(1.1);
}

/* Titre projet */
.card h2 {
  margin-bottom: 10px;
  color: var(--accent-2);
}

/* Description projet */
.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Bouton retour accueil */
a.home-button {
  all: unset;
  position: fixed;
  top: 16px;
  left: 16px;
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: bold;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.3s ease;
  z-index: 1000;
  cursor: pointer;
}

a.home-button:hover {
  transform: translateY(-2px) scale(1.05);
}

/* Toggle thème */
.theme-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 1000;
}

.theme-toggle:hover {
  transform: rotate(20deg) scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.theme-toggle .icon {
  pointer-events: none;
}

/* Mode clair (body.light) */
body.light {
  --bg: #f8fafc;
  --text: #1e293b;
  --muted: #475569;
  --accent: #2563eb;
  --accent-2: #9333ea;
  background: linear-gradient(160deg, #f8fafc, #e2e8f0);
  color: var(--text);
}

/* Ajuste le fond des cartes en mode clair */
body.light .card {
  background: rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.05);
}