:root {
    --background-dark: #03251f;
    --background-light: #e7fffa;
    --accent-dark: #1cf0c4;
    --accent-light: #009970;
    --text-dark: #d0f0ec;
    --text-light: #00332f;
  }
  
  body {
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 108px;
    transition: background 0.3s, color 0.3s;
  }
  
  body.dark {
    background-color: var(--background-dark);
    color: var(--text-dark);
  }
  
  body.light {
    background-color: var(--background-light);
    color: var(--text-light);
  }
  
  /* Header */
  header {
    position: fixed;
    top: 52px; /* colle juste sous la bannière */
    left: 0;
    right: 0;
    height: 60px;
    z-index: 1500;
    background-color: var(--background-dark); /* ou background-light en mode clair */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
  }
  
  
  body.light header {
    background-color: var(--background-light);
    color: var(--text-light);
  }
  
  nav {
    display: flex;
    gap: 1rem;
  }
  
  nav a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
  }
  
  nav a:hover {
    color: var(--accent-dark);
  }
  
  .site-name {
    font-weight: bold;
    font-size: 1.4rem;
    cursor: pointer;
  }

  /* Dropdown */
  .header-right {
    display: flex;
    gap: 1rem;
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .buy-button {
    display: inline-block;
    background-color: var(--accent-dark);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    font-weight: bold;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    align-self: center;
  }

  .buy-button:hover {
    background-color: #00b893;
    transform: scale(1.05);
  }
  .icon-button {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.2rem;
    cursor: pointer;
  }
  
  .dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    background-color: #04332a;
    border-radius: 5px;
    display: none;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1001;
  }
  
  .dropdown-menu div {
    padding: 0.5rem 1rem;
    cursor: pointer;
    white-space: nowrap;
  }
  
  .dropdown-menu div:hover {
    background-color: var(--accent-dark);
    color: #000;
  }
  
  .dropdown.open .dropdown-menu {
    display: flex;
  }

  #menuLanguage div.active {
    font-weight: bold;
    color: var(--accent-dark);
  }
  
  /* Pages */
  .page {
    display: none;
    padding: 4px 24px;
  }
  
  .page.active {
    display: block;
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .project-card {
    background-color: #054438;
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.2s, background-color 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  
  .project-card:hover {
    transform: translateY(-5px);
  }
  
  body.light .project-card {
    background-color: #d9fef4;
    color: #00332f;
  }

  .hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
  }
  .hamburger span {
    width: 25px;
    height: 3px;
    background-color: currentColor;
    border-radius: 3px;
    transition: 0.3s;
  }
/* Hamburger visible seulement sur mobile */
@media (max-width: 768px) {
  nav, .header-right:not(:has(.hamburger)) {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* Le menu mobile remplace visuellement le header */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: var(--background-dark);
  color: var(--text-dark);
  z-index: 999;
  padding: 14px 24px;
  box-sizing: border-box;
  display: none;
  overflow-y: auto;
  flex-direction: column;
}

body.light .mobile-menu {
  background-color: var(--background-light);
  color: var(--text-light);
}

.mobile-menu.open {
  display: flex;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
  
  
  .mobile-logo {
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
  }
  .close-icon {
    font-size: 2rem;
    cursor: pointer;
    color: inherit;
  }
  
  .mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;
    gap: 1.5rem;
  }
  .mobile-nav a {
    text-decoration: none;
    font-weight: bold;
  }
  .mobile-nav a:hover {
    color: var(--accent-dark);
  }
  
  /* Contrôles du menu mobile (Thème & Langue en ligne) */
.mobile-controls {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding-top: 2rem;
}

/* Ligne avec texte à gauche, icône à droite */
.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* Icônes dans le bouton */
.icon-button {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Dropdown langue visible quand .open est ajouté */
/* Spécifique mobile uniquement */
@media (max-width: 768px) {
  .mobile-lang {
    position: relative;
    width: 100%;
    margin-top: 1rem;
  }

  .mobile-lang .dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: rgba(255,255,255,0.05);
    border-radius: 8px;
    cursor: pointer;
  }

  .mobile-lang .dropdown-toggle span {
    font-size: 1rem;
    font-weight: bold;
  }

  .mobile-lang .icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .mobile-lang .dropdown-menu {
    display: none;
    position: relative;
    background-color: #04332a;
    border-radius: 6px;
    margin-top: 0rem;
    overflow-y: auto;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  body.light .mobile-lang .dropdown-menu {
    background-color: #d9fef4;
  }

  .mobile-lang .dropdown-menu div {
    padding: 1rem;
    font-size: 1rem;
    cursor: pointer;
  }

  .mobile-lang .dropdown-menu div:hover {
    background-color: var(--accent-dark);
    color: #000;
  }

  .mobile-lang.open .dropdown-menu {
    display: flex;
  }
}
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  background-color: #054438;
  padding: 1.2rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, transform 0.2s;
}

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

.stat-card h3 {
  margin-top: 0;
  color: var(--accent-dark);
}

body.light .stat-card {
  background-color: #d9fef4;
  color: #00332f;
}
.big-number {
  font-size: 1.8rem;
  font-weight: bold;
  margin: 0.8rem 0;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.stats-table thead {
  background-color: rgba(255, 255, 255, 0.05);
}

.stats-table th, .stats-table td {
  padding: 0.6rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.light .stats-table thead {
  background-color: rgba(0, 0, 0, 0.05);
}

body.light .stats-table td, body.light .stats-table th {
  border-color: rgba(0, 0, 0, 0.1);
}
.supply-line {
  font-size: 1rem;
  margin: 0.4rem 0;
  display: flex;
  justify-content: space-between;
}
.hyperliquid-card {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--accent-dark);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}


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

.hyperliquid-logo {
  max-width: 100px;
  height: auto;
  margin-bottom: 1rem;
}

.hl-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--accent-dark);
  color: var(--text-light);
  text-decoration: none;
  font-weight: bold;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.hl-button:hover {
  background-color: #00b893;
}

body.light .hyperliquid-card {
  background-color: #d9fef4;
  color: var(--text-light);
}
#supplyDonut {
  height: 300px !important;
}
#donut-chart-hype {
  width: 700px;
  height: 500px;
}

.top-banner a {
  color: #00332f;
  font-weight: bold;
}

.top-banner.hidden {
  display: none !important;
}

.top-banner-custom {
  background-color: #1cf0c4;
  color: #00332f;
  padding: 0.50rem 0rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.875rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.banner-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.icon-circle img {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
}

.banner-link {
  font-weight: 600;
  text-decoration: underline;
  color: #00332f;
}

.banner-subtext {
  font-size: 0.75rem;
  color: #00332f;
}
/* En mode clair, inverser les couleurs */
body.light .top-banner-custom {
  background-color: #00332f;
  color: #d0f0ec;
}
body.light .top-banner a {
  color: #d0f0ec;
  font-weight: bold;
  padding-right: 1.1rem;
}
body.light .banner-link {
  font-weight: 600;
  text-decoration: underline;
  color: #d0f0ec;
}

body.light .banner-subtext {
  font-size: 0.75rem;
  color: #d0f0ec;
}
/* Affiche l'image sombre en dark mode */
body.dark .dark-only {
  display: inline;
}
body.dark .light-only {
  display: none;
}

/* Affiche l'image claire en light mode */
body.light .dark-only {
  display: none;
}
body.light .light-only {
  display: inline;
}

/* Style commun à toutes les images de la bannière */
.banner-img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}


#pie-chart-root {
  height: 500px;
  text-align: center;
}

@media (max-width: 768px) {
  #pie-chart-root {
    width: 100%;
    max-width: 500px;
    height: 300px;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 0 auto;
    text-align: center;
  }  

  #historyChart {
    width: 100% !important;
    max-height: 400px;
  }
  #chartContainer {
    max-width: 1000px;
    margin: auto;
  }
  
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.filter-buttons button {
  padding: 0.5rem 1rem;
  background-color: var(--accent-dark);
  color: var(--text-light);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.filter-buttons button:hover {
  background-color: #00b893;
}

#historyChart {
  width: 100% !important;
  max-height: 400px;
}

.buttons {
  text-align: center;
  margin-bottom: 20px;
}

.buttons button {
  background: #222;
  color: white;
  border: none;
  padding: 6px 12px;
  margin: 2px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.buttons button.active {
  background: #444;
}

#chartContainer {
  max-width: 1000px;
  margin: auto;
}

.site-footer a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s;
}

.site-footer a:hover {
  opacity: 0.7;
}


#burn-history {
  text-align: center;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}
#burn-history h2 {
  margin-bottom: 1rem;
}
#home {
  text-align: center;
  margin: 2rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}
#home h2 {
  margin-bottom: 1rem;
}

.site-logo {
  height: 32px;       /* ✔️ Ajuste ici selon ton header */
  width: auto;        /* conserve le ratio */
  display: inline-block;
  vertical-align: middle; /* aligne avec d’autres éléments comme un menu */
}

