/* Réinitialisation pour compatibilité multi-navigateurs */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Police et style de base */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #1a1a1a;
  color: #fff;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Conteneur principal */
.container {
  max-width: 100%;
  padding: 10px;
  margin: 0 auto;
}

/* En-tête et navigation */
header, nav {
  text-align: center;
  margin-bottom: 15px;
}

header img {
  max-width: 100%;
  height: auto;
}

nav button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  background-color: #ff6200;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

nav button:hover {
  background-color: #e55a00;
}

/* Sections principales */
section {
  margin-bottom: 20px;
}

/* Stats Dashboard */
#stats-dashboard {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

#stats-dashboard div {
  flex: 1 1 100%;
  background-color: #2a2a2a;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
}

#stats-dashboard div span {
  display: block;
  font-size: 18px;
  font-weight: bold;
  color: #ff6200;
}

/* Live Rewards */
#live-rewards {
  background-color: #2a2a2a;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
}

#live-rewards div {
  margin-bottom: 10px;
}

#live-rewards button {
  width: 100%;
  padding: 10px;
  background-color: #ff6200;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

#live-rewards button:hover {
  background-color: #e55a00;
}

/* Staking Slots et Eggs */
#staking-slots, #your-eggs, #staked-eggs {
  text-align: center;
}

#staking-slots div, #your-eggs div, #staked-eggs div {
  background-color: #2a2a2a;
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  font-size: 14px;
}

#staking-slots button, #your-eggs button, #staked-eggs button {
  width: 100%;
  padding: 8px;
  margin: 5px 0;
  background-color: #ff6200;
  border: none;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  cursor: pointer;
}

#staking-slots button:hover, #your-eggs button:hover, #staked-eggs button:hover {
  background-color: #e55a00;
}

/* Tableaux (Estimated Rewards) */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

table th, table td {
  padding: 8px;
  border: 1px solid #444;
  text-align: center;
}

table th {
  background-color: #ff6200;
  color: #fff;
}

table td {
  background-color: #2a2a2a;
}

/* Media Queries pour très petits écrans */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 5px;
  }

  #stats-dashboard div {
    font-size: 12px;
  }

  #stats-dashboard div span {
    font-size: 16px;
  }

  #live-rewards {
    padding: 10px;
  }

  table {
    font-size: 10px;
  }

  table th, table td {
    padding: 5px;
  }

  nav button, #live-rewards button, #staking-slots button, #your-eggs button, #staked-eggs button {
    font-size: 12px;
    padding: 8px;
  }
}

/* Compatibilité pour navigateurs */
@-webkit-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@-moz-keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

section {
  animation: fadeIn 0.5s ease-in;
}