#header {
  padding: 0px;
  /* Espacement autour du logo */
  width: 100%;
}

#headerTop {
  padding: 0px;
  /* Espacement autour du logo */
  text-align: center;
  /* Centre le contenu du header */
  display: flex;
  /* Utilise un conteneur flexible pour le logo et les images */
  justify-content: center;
  /* Centre les éléments horizontalement */
  align-items: center;
  /* Centre les éléments verticalement */
  height: 100px;
  width: 100%;
  background-image: url("../images/header/header_back.jpg");
  background-size: 100% 100%;
}

#menu {
  padding: 10px;
  text-align: center;
  /* Centre le contenu */
  display: flex;
  /* Utilise un conteneur flexible */
  justify-content: center;
  /* Centre les éléments horizontalement */
  align-items: center;
  /* Centre les éléments verticalement */
  height: 20px;
  width: 100%;
  background-color: #000;
  background: linear-gradient(to top, transparent 0%, black 50%);
}

.imageHeaderCreature {
  width: auto;
  /* Permet de conserver les proportions d'origine des images */
  margin: 20px;
  /* Espacement entre les images */
  max-height: 100px;
}

.imageHeaderAdn {
  width: auto;
  /* Permet de conserver les proportions d'origine des images */
  margin: 20px;
  /* Espacement entre les images */
  max-height: 80px;
}

.headerFrise {
  width: 100%;
  height: 30px;
  margin: 0;
}

.frise {
  background-image: url("../images/header/frise.png");
  background-repeat: repeat-x;
  background-size: 1379px 30px;
  width: auto;
  height: 100%;
}

button {
  background-color: #b06521;
  color: #ddb27e;
  border: thick #32a1ce;
  border-radius: 5px 10px;
  font-family: Soopafre;
  font-size: 16px;
  cursor: pointer;
}

.inactive {
  background-color: #666666;
  color: #dddddd;
  border: thick #dddddd;
  border-radius: 5px 10px;
  cursor: no-drop;
}

/* Dropdown menu styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #000;
  border: 2px solid rgb(221, 178, 126);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
  border-radius: 5px;
  /* Petit écart sous le bouton + zone ::before élargie = moins de « trous » au survol */
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
}
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.dropdown-content a {
  color: #ddb27e;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-family: Soopafre;
  font-size: 14px;
}

.dropdown-content a:hover {
  background-color: #b06521;
  border-radius: 5px;
}

/* Entrée non disponible (ex. CO2 / Bilan radiatif en cours) */
.dropdown-content .dropdown-item-disabled {
  color: #666666;
  padding: 12px 16px;
  display: block;
  font-family: Soopafre;
  font-size: 14px;
  cursor: not-allowed;
  opacity: 0.55;
}

/* :hover classique + :focus-within : menu reste ouvert si le bouton garde le focus (ex. inspection DevTools) */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
  display: block;
}

.dropdown:hover button,
.dropdown:focus-within button {
  background-color: #8a4e1a;
}