body {
  margin: 0;
  font-family: system-ui, "Helvetica Neue", Arial, sans-serif;
  color: var(--clr-gray-700);
  background: var(--clr-gray-50);
  line-height: 1.55;
}

main {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  padding: var(--space-3) var(--space-2);
}



/* === Conteneur général du menu === */
.bilan-nav {
  background: #f8f9fa;
  border-bottom: 2px solid #ddd;
  padding: 0.5rem;
}

/* === Menu Desktop (onglets visibles sur grand écran) === */
.bilan-nav-desktop {
  display: none; /* Par défaut, visible uniquement via @media */
  flex-wrap: wrap; /* Permet de passer à la ligne si nécessaire */
  justify-content: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Liens de navigation Desktop */
.bilan-nav-desktop a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-width: 160px;      /* Largeur uniforme */
  height: 45px;          /* Hauteur uniforme */
  padding: 0 10px;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

/* Effets survol */
.bilan-nav-desktop a:hover {
  background: #eaf2ff;
  border-color: #99b3ff;
}

/* Onglet actif */
.bilan-nav-desktop a.active {
  background: #dce6ff;
  border-color: #668cff;
  font-weight: bold;
  color: #003366;
}

/* === Menu Mobile (toujours visible par défaut) === */
.bilan-nav-mobile {
  display: block;
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  margin-top: 0.5rem;
  cursor: pointer;
  background: #fff;
  color: #333;

  /* Style flèche décorative */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23668cff' d='M5 7l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center;
  background-size: 14px;
  padding-right: 36px;
}

/* === Responsive : affichage conditionnel === */
@media (max-width: 768px) {
  .bilan-nav-desktop {
    display: none !important; /* Forcé sur mobile */
  }
}

@media (min-width: 769px) {
  .bilan-nav-desktop {
    display: flex;
  }
  .bilan-nav-mobile {
    display: none;
  }
}