body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #f5f5f5;
  display: block; /* ✅ retire le flex qui forçait au centre */
  min-height: 100vh;
  padding: 10px;
}

/* Card principale (utilisée si besoin) */
.card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  width: 350px;
  max-width: 100%;
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.card:hover {
  transform: translateY(-5px);
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ffb700;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.7);
}

a {
    font-size: 1.2rem;
  color: #ffb700;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.7);
}

/* Conteneur des prix */
#price {
  display: grid; /* ✅ organise les cartes en grille */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

/* Chaque prix = une petite card */
.crypto-price {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.crypto-price:hover {
  transform: translateY(-4px);
}

/* Nom de la crypto */
.crypto-price h2 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ffb700;
  text-shadow: 0 0 6px rgba(0, 255, 204, 0.7);
}

/* Valeur */
.price {
  font-size: 1.2rem;
  color: #ffb700;
  text-shadow: 0 0 8px rgba(0, 255, 204, 0.7);
}

/* Emoji (si utilisé pour les drapeaux ou icônes) */
.emoji {
  font-size: 1.3rem;
  margin-right: 5px;
}

/* 🔹 Responsive : petits écrans */
@media (max-width: 500px) {
  h1 {
    font-size: 1.5rem;
  }

  #price {
    grid-template-columns: 1fr; /* ✅ une seule colonne sur mobile */
  }

  .crypto-price {
    padding: 12px;
  }

  .crypto-price h2 {
    font-size: 1rem;
  }

  .price {
    font-size: 1rem;
  }
}

/* Barre de navigation */
nav {
  background: #111827; /* fond sombre */
  padding: 12px 20px;
  position: fixed; /* reste collé en haut */
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0;
  gap: 30px;
}

nav a {
  color: #f9fafb;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover {
  color: #38bdf8;
}

/* Décalage du contenu pour ne pas être caché par le menu */
main {
  padding-top: 50px; /* espace sous la barre */
  text-align: center;
}
