/* ---------- Corps de la page ---------- */
body {
  margin:0; /* Supprime les marges par défaut du navigateur */
  font-family: 'Segoe UI', sans-serif; /* Définie une police lisible et moderne */
  background-color: #020617; /* Fond sombre pour un style élégant */
  color: #ffffff; /* Texte en blanc pour un bon contraste */
  text-align: center; /* Centre le texte par défaut */
}

/* ---------- En-tête du site ---------- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px; /* ✅ Hauteur réduite */
  background-color: #1e293b; /* Couleur de fond sombre */
  z-index: 1000; /* Toujours visible en haut */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center; /* Centre verticalement les éléments */
}

/* ---------- Conteneur interne ---------- */
.container {
  width: 100%;
  max-width: 1300px;!
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px; /* Espace horizontal interne */
}

/* ---------- Logo ou titre principal ---------- */
h1 {
  color: #00d9ff;
  font-size: 1rem; /* Augmenté pour être visible */
  margin: 0;
}

h1 img {
  height: 40px; /* Taille du logo */
}

/* ---------- Liens de navigation ---------- */
nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #00b4d8;
}

/* ---------- Titre principal du tableau ---------- */
main h1,
h1:not(header h1) {
  font-size: 2em;
  margin-top: 100px;
  color: #22d3ee;
}

/* ---------- Tableau crypto ---------- */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #1e293b;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 20px;
  align-items: center;
}

th, td {
  padding: 12px 10px;
  text-align: center;
}

th {
  background-color: #334155;
}

tr:nth-child(even) {
  background-color: #1e293b;
}

tr:nth-child(odd) {
  background-color: #0f172a;
}

/* ---------- Variations de prix ---------- */
.positive {
  color: #4caf50;
  font-weight: 600;
}

.negative {
  color: #f44336;
  font-weight: 600;
}

/* ---------- Sparklines ---------- */
svg {
  vertical-align: middle;
  width: 60px;
  height: 20px;
}
