#controls {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 10px;
}

#controls select,
#controls button {
  max-width: 100%;
  box-sizing: border-box;
}

/* Sur mobile, empiler verticalement */
@media (max-width: 480px) {
  #controls {
    flex-direction: column;
    align-items: stretch;
  }

  #controls select,
  #controls button {
    width: 100%;
  }
}

/* Styles pour la roue - Responsive */
#circle-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1 / 1;
  margin: auto;
}

/* Styles pour les notes - Responsive */
.note {
  position: absolute;
  width: 10%;
  height: 10%;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  color: #333;
  font-size: clamp(0.7rem, 2.5vw, 1rem);
  transition:
    background 0.3s,
    transform 0.3s;
}

.note:hover {
  background: #ffcc00;
  transform: translate(-50%, -50%) scale(1.2);
  cursor: pointer;
}

/* Styles pour le tableau */
#scale-table table {
  margin: auto;
}

#scale-table table th {
  text-align: center;
  background-color: #ccc;
  padding: 10px;
}

/* Icône d'aide dans les en-têtes */
.icon-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  font-size: 10px;
  font-weight: bold;
  color: #666;
  background: #fff;
  border: 1px solid #999;
  border-radius: 50%;
  cursor: help;
  vertical-align: middle;
}

.icon-help:hover {
  background: #333;
  color: #fff;
  border-color: #333;
}

#scale-table table td {
  padding: 10px;
  text-align: center;
}
/* Layout avec footer en bas */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Le contenu principal prend tout l'espace disponible */
body > .section {
  flex: 1 0 auto;
}

/* Le footer reste en bas */
body > .footer {
  flex-shrink: 0;
}
