  .overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0%;
    z-index: 2000;
    background: #edb604;
  }
  
  .first {
    top: 0;
  }
  
  .second {
    top: 33.3%
  }
  
  .third {
    top: 66.6%;
  }

  /* Mobile Sidebar Styles */
  @media (max-width: 991px) {
    /* Overlay pour fermer la sidebar */
    .sidebar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1040;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .sidebar-overlay.show {
      opacity: 1;
      visibility: visible;
    }

    /* Sidebar container */
    .navbar-collapse {
      position: fixed;
      top: 0;
      right: -100%;
      bottom: 0;
      width: 300px;
      max-width: 85%;
      height: 100vh !important;
      min-height: 100vh !important;
      max-height: 100vh !important;
      background: var(--bg-color, #fff);
      z-index: 1050;
      padding: 20px;
      padding-top: 60px;
      overflow-y: auto;
      transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
      margin: 0 !important;
      border-radius: 0 !important;
      border: none !important;
      transform: translateX(0);
    }

    .navbar-collapse.show {
      right: 0;
      transform: translateX(0);
      animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes slideInRight {
      from {
        right: -100%;
        opacity: 0;
        transform: translateX(20px);
      }
      to {
        right: 0;
        opacity: 1;
        transform: translateX(0);
      }
    }

    /* Close button dans la sidebar */
    .sidebar-close {
      position: absolute;
      top: 15px;
      right: 15px;
      background: none;
      border: none;
      font-size: 28px;
      color: var(--nav-color, #333);
      cursor: pointer;
      padding: 8px 12px;
      z-index: 1051;
      line-height: 1;
      display: block;
      opacity: 0;
      transform: scale(0.8);
      transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s, color 0.2s ease;
    }

    .navbar-collapse.show .sidebar-close {
      opacity: 1;
      transform: scale(1);
    }

    .sidebar-close:hover {
      color: var(--primary-color, #edb604);
      transform: scale(1.1) !important;
    }

    .sidebar-close:focus {
      outline: none;
    }

    /* Styles pour les liens dans la sidebar */
    .navbar-collapse .navbar-nav {
      flex-direction: column;
      margin-top: 50px;
      width: 100%;
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    }

    .navbar-collapse.show .navbar-nav {
      opacity: 1;
      transform: translateY(0);
    }

    .navbar-collapse .navbar-nav .nav-item {
      width: 100%;
      margin-bottom: 10px;
      opacity: 0;
      transform: translateX(-20px);
      transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-collapse.show .navbar-nav .nav-item {
      opacity: 1;
      transform: translateX(0);
    }

    .navbar-collapse.show .navbar-nav .nav-item:nth-child(1) { transition-delay: 0.15s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(2) { transition-delay: 0.2s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(3) { transition-delay: 0.25s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(4) { transition-delay: 0.3s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(5) { transition-delay: 0.35s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(6) { transition-delay: 0.4s; }
    .navbar-collapse.show .navbar-nav .nav-item:nth-child(7) { transition-delay: 0.45s; }

    .navbar-collapse .navbar-nav .nav-link {
      padding: 12px 15px !important;
      text-align: left;
      border-bottom: 1px solid rgba(0, 0, 0, 0.05);
      display: block;
      width: 100%;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-collapse .navbar-nav .nav-link:hover {
      background: rgba(0, 0, 0, 0.03);
      padding-left: 20px;
      transform: translateX(5px);
    }

    .navbar-collapse .header-search {
      margin-top: 20px;
      width: 100%;
      justify-content: flex-start !important;
    }

    .navbar-collapse .header-search .btn {
      width: 100%;
      margin-top: 10px;
    }

    /* Empêcher le scroll du body quand la sidebar est ouverte - uniquement sur mobile */
    body.sidebar-open {
      overflow: hidden !important;
      position: fixed;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
    }
  }

  /* Masquer le bouton de fermeture sur les écrans PC et tablettes */
  @media (min-width: 992px) {
    .sidebar-close {
      display: none !important;
    }
  }

  @media (max-width: 480px) {
    .navbar-collapse {
      width: 280px;
      max-width: 90%;
    }
  }
  