header {
  height: 80px;
  background: linear-gradient(90deg, #192653 0%, #243a6c 100%);
  color: white;
}
.brand-logo {
  width: 100%;
  max-height: 60px;
  object-fit: contain;
}
.nav-secondary {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
}
.nav-secondary .nav-link {
  color: #495057;
  font-weight: 500;
}
.nav-secondary .nav-link.active {
  color: #243a6c;
  border-bottom: 3px solid #243a6c;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.offcanvas-header {
  background: #ffc107;
  color: black;
}

.dropdown-menu {
  z-index: 2000 !important;
}

.dropdown-tcg-block {
  position: relative;
  z-index: 10; /* Passe devant les autres éléments */
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* effet relief */
}

.dropdown-tcg img {
  max-height: 50px !important;
}

.dropdown-tcg::after {
  font-size: 1.5rem;
  font-weight: bold;
}

#mobileSearchOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  z-index: 1050;
  display: none;
  overflow-y: auto;
  padding: 1rem;
  animation: fadeIn 0.3s ease;
}

#mobileSearchOverlay.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#searchResults {
  top: 100%; /* s’affiche juste sous le champ */
  left: 0;
}

#searchResults a:hover {
  background-color: #f8f9fa;
}

/* FIX DROPDOWN MOBILE */
@media (max-width: 991.98px) {
  .navbar-nav .dropdown-menu {
    position: static !important;
    transform: none !important;
    inset: auto !important;

    width: 100%;
    margin: 0.25rem 0 0.5rem 1rem;
    padding: 0.25rem 0;

    background-color: #fff8e1; /* 🎯 couleur demandée */
    border-left: 3px solid rgba(255, 193, 7, 0.6); /* rappel jaune Bootstrap */
    border-radius: 8px;

    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .navbar-nav .dropdown-item {
    padding-left: 1.75rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 991.98px) {
  .dropdown-menu.show {
    animation: submenuFade 0.15s ease-out;
  }

  @keyframes submenuFade {
    from {
      opacity: 0;
      transform: translateY(-3px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
