/* ===== NAVBAR ===== */
#mainNavbar {
  background-color: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

#mainNavbar.scrolled,
#mainNavbar.menu-open {
  background-color: white !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ===== BRAND & LINKS ===== */
.navbar-brand {
  color: black;
  font-weight: bold;
}

#mainNavbar .nav-link {
  color: black;
  transition: color 0.3s ease;
}

/* ===== UNDERLINE HOVER EFFECT ===== */
.nav-link.modern-link {
  position: relative;
  padding-bottom: 4px;
  font-weight: 500;
  display: inline-block;
}

.nav-link.modern-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: black;
  transition: width 0.3s ease;
}

.nav-link.modern-link:hover::after {
  width: 100%;
}

.nav-link.modern-link:hover {
  color: #555;
}

/* ===== MOBILE MENU FULLSCREEN ===== */
@media (max-width: 991.98px) {
  /* MENU OVERLAY */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    animation: fadeInMenu 0.3s ease-in-out;
  }

  .navbar-collapse.show {
    display: flex !important;
  }

  /* MOBILE BRAND */
  .navbar-collapse .mobile-brand {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #111;
    text-align: center;
  }

  /* LINKS */
  .navbar-collapse .nav-link {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1rem 0;
    color: #111 !important;
    text-align: center;
  }

  .navbar-collapse .nav-link:hover {
    color: #555 !important;
  }

  /* TOGGLER BUTTON FIXÉ */
.navbar-toggler {
  position: fixed;
  right: 1.25rem;
  z-index: 1001;
  border: none;
  background: none;
  padding: 0.5rem;
}


  .navbar-toggler .navbar-toggler-icon {
    display: none;
  }

  .navbar-toggler .custom-icon {
    font-size: 2rem;
    line-height: 1;
    color: #111;
    pointer-events: auto;
    transition: opacity 0.2s ease;
  }

  .navbar-toggler .custom-icon.fade-out {
    opacity: 0;
  }
}

/* ===== BODY SCROLL LOCK ===== */
body.no-scroll {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
  height: 100vh;
}

/* ===== MENU ANIMATION ===== */
@keyframes fadeInMenu {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutMenu {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.navbar-collapse.fade-out {
  animation: fadeOutMenu 0.3s ease-in-out forwards;
}
