/* Menu mobile - Pleine largeur */


.header_mobile .content_wrap {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: fixed; /* <-- change de relative à fixed */
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  z-index: 1003; /* <-- pour qu’il reste au-dessus du menu et du contenu */
}


/* Bouton hamburger */
.menu_button.icon-menu {
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: transparent;
  z-index: 1002;
  font-size: 24px;
}

.menu_button.icon-menu:hover {
  background: rgba(0, 0, 0, 0.05);
}

.menu_button.icon-menu:active {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.1);
}

/* Menu dropdown - PLEINE LARGEUR */
.header_mobile .side_wrap {
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  margin: 0 !important;
  max-width: none !important;
  max-height: 0;
  background: linear-gradient(180deg, #0a4d3c 0%, #073d2f 100%);
  z-index: 999;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  overflow: hidden;
  opacity: 0;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.header_mobile .side_wrap.opened {
  max-height: 200px !important;
  opacity: 1 !important;
  overflow-y: auto;
}

/* Overlay backdrop */
.header_mobile .mask {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100vw;
  height: calc(100vh - 60px);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.header_mobile .mask.active {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Navigation - PLEINE LARGEUR */
.header_mobile .side_wrap .panel_top {
  padding: 0;
  width: 100%;
  margin: 0;
}

.header_mobile .menu_main_nav_area {
  width: 100%;
  margin: 0;
  padding: 0;
}

.header_mobile .menu_main_nav {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.header_mobile .menu_main_nav li {
  width: 100%;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header_mobile .menu_main_nav li:last-child {
  border-bottom: none;
}

.header_mobile .menu_main_nav li a {
  display: block;
  width: 100%;
  padding: 18px 20px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  background: transparent;
  box-sizing: border-box;
  position: relative;
}

.header_mobile .menu_main_nav li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(255, 255, 255, 0.15);
  transition: width 0.3s ease;
  z-index: 0;
}

.header_mobile .menu_main_nav li a:hover::before,
.header_mobile .menu_main_nav li a:active::before {
  width: 100%;
}

.header_mobile .menu_main_nav li a span {
  position: relative;
  z-index: 1;
}

.header_mobile .menu_main_nav li a:hover,
.header_mobile .menu_main_nav li a:active {
  padding-left: 30px;
}

.header_mobile .menu_main_nav li a::after {
  content: '›';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0.5;
  transition: all 0.3s ease;
  z-index: 1;
}

.header_mobile .menu_main_nav li a:hover::after {
  opacity: 1;
  right: 15px;
}

/* Scrollbar */
.header_mobile .side_wrap::-webkit-scrollbar {
  width: 5px;
}

.header_mobile .side_wrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.header_mobile .side_wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

/* Cacher éléments */
.header_mobile .side_wrap .close,
.header_mobile .search_wrap {
  display: none !important;
}

/* Animation */
@keyframes menuSlideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 200px;
    opacity: 1;
  }
}

.header_mobile .side_wrap.opened {
  animation: menuSlideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Forcer la pleine largeur */
.header_mobile * {
  box-sizing: border-box;
}

body.menu-open {
  overflow: hidden !important;
}

/* Responsive */
@media (max-width: 480px) {
  .header_mobile .menu_main_nav li a {
    padding: 16px 18px;
    font-size: 15px;
  }
}

@media (min-width: 768px) {
  .header_mobile {
    display: none;
  }
}

