/* ————— MENU RESPONSIVE + SOUS-MENU ————— */

.header-nav {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 999;
  margin-bottom: -25px;
  font-size: 1.2rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 30px ;
  padding-right: 30px ;
}

/* MENU */
.menu {
  display: flex;
  list-style: none;
  gap: 25px;
}

.menu li {
  position: relative;
  
  
}

.menu ul {
  
 list-style: none;
 

 
}

.menu a {
  color: #001d5b;
  text-decoration: none;
  padding: 10px 8px;
  font-weight: 500;
  
}

button{
   border: 2px solid #000000;
}
/* CTA */
.btn-nav {
  background: rgb(240, 235, 227);
  padding: 12px;
  border-radius: 6px;
  text-align: center;
    
  
}

/* SOUS-MENU DESKTOP */
.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  display: none;
}


/* TOGGLE */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  font-size: 2.5rem;
  color:  #4e4e4e;
  cursor: pointer;
}

/* FLÈCHE SOUS-MENU */
.has-submenu > a {
  position: relative;
  padding-right: 26px;
  
}

.has-submenu > a::after {
  content: "▾";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  
  transition: transform 0.3s ease;
}

/* FLÈCHE OUVERTE */
.has-submenu.open > a::after {
  transform: translateY(-50%) rotate(180deg);
}


@media (min-width: 992px) {
  .has-submenu:hover .submenu {
    display: block;
  }
}
/* MOBILE */
@media (max-width: 991px) {

  .menu-icon {
    display: block;
    margin-left: auto;
  }

  .header-content {
    flex-wrap: wrap;
    margin-bottom: 0px;
    margin-top: ;
  }

  .nav {
    width: 100%;
  }

  /* MENU CACHÉ PAR DÉFAUT */
  .menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #ffffff;
    height: ;
    margin-top: 10px;
    margin-bottom: 20px;

  }

  /* MENU OUVERT */
  #menu-toggle:checked + .menu-icon + .nav .menu {
    display: flex;
  }

  .menu a {
    padding: 15px 18px;
    
    line-height: ;
    
  }

  /* SOUS-MENU MOBILE */
  .submenu {
    position: static;
    display: none;
    background: #ffffff;
    
    padding: 15px;
  }

  .has-submenu.open .submenu {
    display: block; 
  }

  .submenu a {
    padding-left: 35px;
    
line-height: 55px;
  }

  /* FLÈCHE SOUS-MENU */
.has-submenu > a {
  position: relative;
  padding-right: 26px;
}

.has-submenu > a::after {
  content: "▾";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  
  transition: transform 0.3s ease;
}

/* FLÈCHE OUVERTE */
.has-submenu.open > a::after {
  transform: translateY(-50%) rotate(180deg);
}
}
