*{
  list-style: none;
  text-decoration: none;
  color: #000;
  padding: 0;
  margin: 0;
  
}
#nav-container{
  display: none;
}
header {
  display: flex;
  background-color: whitesmoke;
  height: 70px;
  width: 100%;
  position: fixed;
  z-index: 1;
}
.bandeau {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  z-index: 1;

}
.logo{
  width: 20%;
  padding: 20px;
  position: relative;
  bottom: -40px;
  z-index: 1;
}
.bar_nav{
  display: flex;
}
.panier img{
  width: 40px;
  margin: 20px;
}
.bar_nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.bar_nav li {
  position: relative;
}
.bar_nav a {
  text-decoration: none;
  font-size: 16px;
  padding: 5px 10px;
  display: inline-block;
}

/* Cacher le submenu par défaut */
.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5;
  position: absolute;
  top: 45px;
  left: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index:10;
  width: 300px;
}
.sous_menu_vetement{
  left: -160px;
  width: 200px;
  text-align: end;
  display: none;
}

.submenu li {
  padding: 9px;
  border-bottom: 1px solid #ddd;
}

.submenu li:last-child {
  border-bottom: none;
}

.submenu li a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

/* Afficher le submenu lorsque la checkbox est cochée */
#vetement:checked ~ .submenu {
  display: flex;
}
#accesoir:checked ~ .submenu {
  display: flex;
}
#sous-menu-accesoir{
  left: -20px;
  width: 400px;
}

/* Styles supplémentaires pour la navigation */
.bar_nav {
  display: flex;
  justify-content: space-evenly;
  width: 80%;
  gap: 20px;
  position: relative;
}
.bar_nav label {
  cursor: pointer;
  color: #333;
  padding: 5px 10px;
}
.text_label{
  font-size: 16px;
  display: block;
}

.bar_nav label:hover {
  color: #555;
}

/* hover a header */
.menu_item {
  position: relative;
  text-decoration: none;
}
.menu_item a{
    color: #464646;
}

.menu_item::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  border-radius: 4px;
  background-color: #2e2e2e;
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform .3s ease-in-out;
}

.menu_item:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}
#sous_menu_vetement{
  display: none;
}


@media  (max-width:800px) {
  .bandeau{
    display: none;
  }
  
  .bandeau-responsive{
    display: flex;
    flex-direction: row;
    background-color: #f5f5f5;
    width: 100%;
  }
  #nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    position: fixed;
    height: 100vh;
    width: 100%;
    pointer-events: none;
    
  }
  #ResponsiveVET:checked + .text_label + .reponsive_submenu {
    display: block;
    animation: fadeIn 0.3s ease;
}
#ResponsiveACC:checked + .text_label + .reponsive_submenu {
  display: block;
  animation: fadeIn 0.3s ease;
}
  #nav-container .bg {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    visibility: hidden;
    opacity: 0;
    transition: .3s;
    background: #000;
  }
  #nav-container:focus-within .bg {
    visibility: visible;
    opacity: .6;
  }
  #nav-container * {
    visibility: visible;
  }
  .button {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    border-radius: 0;
    height: 70px;
    width: 30px;
    cursor: pointer;
    pointer-events: auto;
    margin-left: 25px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
  }
  .icon-bar {
    display: block;
    width: 100%;
    height: 3px;
    background: #aaa;
    transition: .3s;
  }
  .icon-bar + .icon-bar {
    margin-top: 5px;
  }

  #nav-container:focus-within .button {
    pointer-events: none;
  }
  #nav-container:focus-within .icon-bar:nth-of-type(1) {
    transform: translate3d(0,8px,0) rotate(45deg);
  }
  #nav-container:focus-within .icon-bar:nth-of-type(2) {
    opacity: 0;
  }
  #nav-container:focus-within .icon-bar:nth-of-type(3) {
    transform: translate3d(0,-8px,0) rotate(-45deg);
  }

  #nav-content {
    display: flex;
    justify-content: space-between;
    margin-top: 70px;
    padding: 20px;
    width: 90%;
    max-width: 300px;
    overflow: scroll;
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    height: calc(100% - 70px);
    background: #ececec;
    pointer-events: auto;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    transform: translateX(-100%);
    transition: transform .3s;
    will-change: transform;
    contain: paint;
  }
  .menu_responsive_item:first-of-type{
    padding-top:70px ;
  }
  .menu_responsive_item{
    margin-bottom: 40px;
    padding-bottom: 2px;
  }

  #nav-content li a {
    display: block;
    text-transform: uppercase;
    text-align: start;
    transition: color .1s;
    padding: 2px;
  }

  #nav-content li a {
    color: black;
  }

  #nav-content li:not(.small) + .small {
    margin-top: auto;
  }
  .menu_responsive_item {
    position: relative;
    text-decoration: none;
  }
  .menu_responsive_item a{
      color: #464646;
  }
  
  .menu_responsive_item::before {
    content: '';
    position: absolute;
    width: 110%;
    height: 1px;
    border-radius: 4px;
    background-color: #2e2e2e;
    bottom: 0;
    left: -10px;
    transform-origin: right;
    transform: scaleX(0);
    transition: transform .3s ease-in-out;
  }
  
  .menu_responsive_item:hover::before {
    transform-origin: left;
    transform: scaleX(1);
  }
  #sous_menu_vetement li{
    padding: 15px;
  }

  .small {
    display: flex;
    justify-content: center;
    position: fixed;
    bottom: 30px;
    align-self: center;
    width: 80%;
  }

  .small a {
    font-size: 12px;
    font-weight: 400;
    color: #888;
  }
  .small a + a {
    margin-left: 15px;
  }

#nav-container:focus-within #nav-content {
  transform: none;
  }
  #logo_responsive{
    position: absolute;
    width: 213px;
    top: -38px;
    left: 16px;
    z-index: 100;
  }
  .panier_responisve{
    width: 60px;
    padding: 10px;
  }
  
} 