/* ===================================
   ADW Menu Hamburger - Styles
   =================================== */
#header .adw-sidebar-content a:hover {
  color: var(--adw-primary) !important;
}

#adw-menu-container {
  width: 100%;
}

#displayNavFullWidth {
  /* padding: 1rem 2.5rem !important; */
  padding: 1rem 0rem !important;
}

/* Bouton hamburger */
.adw-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
  transition: transform 0.3s ease;
}

.adw-hamburger:hover {
  transform: scale(1.1);
}

.adw-hamburger-line {
  width: 100%;
  height: 3px;
  background-color: var(--adw-secondary);
  border-radius: 2px;
  transition: all var(--adw-transition-normal);
}

/* Animation du hamburger en X */
.adw-hamburger.active .adw-hamburger-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.adw-hamburger.active .adw-hamburger-line:nth-child(2) {
  opacity: 0;
}

.adw-hamburger.active .adw-hamburger-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.adw-menu-fullwidth {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.adw-menu-label {
  font-size: var(--adw-font-sm);
  font-weight: var(--adw-font-medium);
  color: var(--adw-text-dark);
}

/* Liens rapides à côté du hamburger */
.adw-quicklinks {
  display: flex;
  align-items: center;
  gap: var(--adw-space-md);
  flex-wrap: wrap;
}

.adw-quicklink {
  display: flex;
  align-items: center;
  gap: var(--adw-space-sm);
  padding: var(--adw-space-sm) var(--adw-space-lg);
  background: transparent;
  border: 1px solid var(--adw-border-medium);
  border-radius: 4px;
  color: var(--adw-text-dark);
  text-decoration: none;
  font-size: var(--adw-font-sm);
  font-weight: var(--adw-font-medium);
  font-family: var(--adw-font-family);
  transition: all var(--adw-transition-normal);
  white-space: nowrap;
}

.adw-quicklink:hover {
  background: var(--adw-primary);
  border-color: var(--adw-primary);
  color: var(--adw-text-white) !important;
  text-decoration: none;
  box-shadow: var(--adw-shadow-md);
}

.adw-quicklink i {
  font-size: var(--adw-font-md);
}

.adw-quicklink-text {
  font-weight: var(--adw-font-medium);
}

/* Responsive pour les liens rapides */
@media (max-width: 768px) {
  #adw-menu-container {
    gap: var(--adw-space-md);
  }

  .adw-quicklinks {
    gap: var(--adw-space-sm);
  }

  .adw-quicklink {
    padding: var(--adw-space-sm) var(--adw-space-md);
    font-size: var(--adw-font-xs);
  }

  .adw-quicklink-text {
    display: none;
  }

  .adw-quicklink i {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .adw-quicklinks {
    gap: var(--adw-space-xs);
    display: none;
  }

  .adw-quicklink {
    padding: var(--adw-space-sm) var(--adw-space-md);
  }
}

.adw-meu-fullwidth-inner {
  display: flex;
  gap: var(--adw-space-lg);
}

.adw-contact-phone {
  display: flex;
  flex-direction: column;
  font-size: var(--adw-font-sm);
  color: var(--adw-text-dark);
  text-align: center;
  background-color: var(--adw-primary);
  border-radius: var(--adw-buttons-radius-small);
  padding: var(--adw-space-xs);
}

.adw-contact-phone .text-phone {
  color: var(--adw-white);
}

.adw-contact-phone .phone {
  color: var(--adw-white);
  font-weight: var(--adw-font-bold);
  font-size: var(--adw-font-md);
}

/* Overlay */
.adw-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.adw-overlay.active {
  display: block;
  opacity: 1;
}

/* Sidebar Principal (Premier volet) */
.adw-sidebar {
  position: fixed;
  top: 0;
  left: -34.375rem;
  width: 34.375rem;
  height: 100%;
  background-color: #fff;
  /* box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); */
  z-index: 99998;
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.adw-sidebar.active {
  left: 0;
}

/* Sidebar Secondaire (Deuxième volet pour sous-catégories) */
.adw-sidebar-secondary {
  position: fixed;
  top: 0;
  left: -34.375rem;
  width: 34.375rem;
  height: 100%;
  background-color: #f8f9fa;
  /* box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1); */
  z-index: 99999;
  transition: left 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.adw-sidebar-secondary.active {
  left: 0px;
}

/* Bouton retour dans le volet secondaire */
.adw-sidebar-back {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  text-align: left;
  width: 100%;
  transition: background-color 0.2s ease;
}

.adw-sidebar-back:hover {
  background-color: #e9ecef;
}

.adw-sidebar-back svg {
  flex-shrink: 0;
}

/* Header du sidebar */
.adw-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  /* border-bottom: 1px solid #e0e0e0;
  background-color: #f8f9fa; */
}

.adw-sidebar-title {
  margin: 0;
  font-size: var(--adw-font-xl);
  font-weight: var(--adw-font-semibold);
  font-family: var(--adw-font-family);
  color: var(--adw-text-dark);
}

.adw-close-btn {
  background: transparent;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.adw-close-btn:hover {
  color: #333;
}

/* Contenu du sidebar */
.adw-sidebar-content {
  flex: 1;
  padding: 15px 0;
}

/* Liste du menu */
.adw-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.adw-menu-item {
  position: relative;
  border-bottom: 1px solid #f0f0f0;
}

.adw-menu-item:last-child {
  border-bottom: none;
}

/* Liens du menu */
.adw-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-size: 15px;
}

.adw-menu-link:hover {
  background-color: #f8f9fa;
  color: var(--adw-primary);
}

.adw-menu-text {
  flex: 1;
}

.adw-menu-arrow {
  display: flex;
  align-items: center;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

/* Flèche chevron pour navigation vers deuxième volet */
.adw-menu-chevron {
  display: flex;
  align-items: center;
  margin-left: auto;
  color: #999;
  transition: color 0.2s ease;
}

.adw-menu-link:hover .adw-menu-chevron {
  color: var(--adw-primary);
}

/* Bouton pour toggle submenu */
.adw-submenu-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.adw-submenu-toggle svg {
  transition: transform 0.3s ease;
}

.adw-menu-item.adw-submenu-open > .adw-submenu-toggle svg {
  transform: rotate(90deg);
}

/* Sous-menus */
.adw-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: #f8f9fa;
}

.adw-menu-item.adw-submenu-open > .adw-submenu {
  max-height: 1000px;
}

.adw-submenu .adw-menu-link {
  padding-left: 40px;
  font-size: 14px;
}

.adw-menu-level-2 .adw-menu-link {
  padding-left: 60px;
}

.adw-menu-level-3 .adw-menu-link {
  padding-left: 80px;
}

/* Message si aucun item */
.adw-no-items {
  padding: 20px;
  text-align: center;
  color: #999;
}

.adw-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Styles pour les items avec enfants */
.adw-has-children > .adw-menu-link {
  padding-right: 50px;
}

@media (max-width: 1063px) {
  .adw-contact-phone {
    display: none;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .adw-sidebar {
    width: 280px;
    left: -280px;
  }

  .adw-sidebar-secondary {
    width: 280px;
    left: -280px;
  }

  .adw-sidebar-secondary.active {
    /* left: 280px; */
    left: 0px;
  }
}

/* Désactiver le scroll du body quand le menu est ouvert */
body.adw-menu-open {
  overflow: hidden;
}

/* Animation d'entrée */
@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.adw-sidebar.active {
  animation: slideInFromLeft 0.3s ease;
}

/* Focus states pour l'accessibilité */
.adw-hamburger:focus,
.adw-close-btn:focus,
.adw-menu-link:focus,
.adw-submenu-toggle:focus {
  outline: 2px solid var(--adw-primary);
  outline-offset: 2px;
}

/* Dark mode support (optionnel) */
/* @media (prefers-color-scheme: dark) {
  .adw-sidebar {
    background-color: #1a1a1a;
  }

  .adw-sidebar-header {
    background-color: #2a2a2a;
    border-bottom-color: #333;
  }

  .adw-sidebar-title,
  .adw-menu-link {
    color: #e0e0e0;
  }

  .adw-close-btn {
    color: #999;
  }

  .adw-menu-link:hover {
    background-color: #2a2a2a;
    color: var(--adw-primary);
  }

  .adw-submenu {
    background-color: #2a2a2a;
  }

  .adw-menu-item {
    border-bottom-color: #333;
  }
} */
