/* Par défaut, on cache le header-jeu et on affiche le header-global */
#header-jeu {
  display: none;
}
#header-global {
  display: block;
}

/* Sur mobile, on inverse */
@media (max-width: 991.98px) {
  #header-global {
    display: none !important;
  }
  #header-jeu {
    display: block !important;
  }
}


/* Burger lines */
#burgerBtn {
  width: 36px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Burger transform to cross */
#burgerBtn.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
#burgerBtn.active .burger-line:nth-child(2) {
  opacity: 0;
}
#burgerBtn.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu hidden by default */
.navbar-collapse {
  display: none;
  opacity: 0;
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  padding: 1rem 2rem;
  z-index: 1100;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  transition: opacity 0.3s ease;
  flex-direction: column;
  gap: 1rem;
  /* Important: pas de fond tant que menu fermé */
  background-color: transparent;
}

/* Show menu with fade and pink background */
.navbar-collapse.show {
  display: flex !important;
  opacity: 1;
  background-color: #e91e63;
}

/* Desktop - normal */
@media (min-width: 992px) {
  #burgerBtn {
    display: none;
  }
  .navbar-collapse {
    position: static !important;
    display: flex !important;
    opacity: 1 !important;
    background: none !important;
    padding: 0 !important;
    flex-direction: row !important;
    gap: 1rem !important;
  }
  .navbar-brand {
    display: flex !important;
  }
}
