/**********************************************************/
/**********************************************************/
/**********************************************************/
/**********************************************************/
/************************** HEADER ************************/
/**********************************************************/
/**********************************************************/
/**********************************************************/
/**********************************************************/
/**********************************************************/
header {
  position: fixed;
  top: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  /* Transition douce pour l'opacité et le déplacement */
  z-index: 900;
  width: 100%;
}



.header-container {
  display: flex;
  justify-content: end;
  align-items: center;
  padding: 20px;
  position: relative;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  height: 90px;
}


.site-logo {
  margin: auto;
  position: absolute;
  top: 25px;
  left: 25px;
}

/* WordPress ajoute automatiquement une classe à l'image du logo */
#header .custom-logo-link img {
  width: 280px;
  height: 200px;
  transition: all 50ms linear;
}

#header.scrolled .custom-logo-link img {
  width: 80px;
  height: 80px;
  /* Taille réduite après scroll */
}

@media(max-width: 768px){
  #header .custom-logo-link img {
    width: 200px;
    height: 150px;
    transition: all 50ms linear;
  }
}


.btn_burger {
  height: 40px;
  width: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: end;
  cursor: pointer;
  position: absolute;
  top: 25px;
  right: 25px;
  background-color: transparent;
  z-index: 1000;
}

.line_icon {
  display: flex;
  width: 100%;
  height: 4px;
  border-radius: 50px;
  background-color: white;
  transition: all 200ms ease-in-out;
  position: relative;
  z-index: 901;
}

.line_icon:nth-child(1){
  width: 80%;
}

.line_icon:nth-child(3){
  width: 60%;
}


.btn_burger:hover .line_icon {
  width: 100%;
}

.btn_burger.click .line_icon {
  width: 100%;
}

.btn_burger.click .line_icon:nth-child(2) {
  transform: rotate(-45deg);
}

.btn_burger.click .line_icon:nth-child(1) {
  transform: rotate(45deg) translate(9.5px, 9.5px);
}

.btn_burger.click .line_icon:nth-child(3) {
  transform: rotate(45deg) translate(-9px, -9px);
}

.popup_menu {
  position: absolute;
  z-index: 900;
  width: 100%;
  height: 100vh;
  top: 0;
  right: 0;
  padding: 100px 25px 25px 25px;
  backdrop-filter: blur(100px);
  transform: translateX(calc(100%));
  border-left: 2px solid white;
  transition: all 200ms ease-in-out;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.popup_menu.click {
  transform: translateX(0);
}

.menu_list ul {
  display: flex;
  flex-direction: column;
  gap: 35px
}

.menu_list ul li {
  list-style: none;
  font-weight: 900;
  font-size: 32px;
  position: relative;
}

.menu_list ul li::before {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px;
  width: 25px;
  background-color: white;
  transition: width 250ms ease-in-out;
}

.menu_list ul li:hover::before {
  width: 100%;
}

.menu_list ul li a {
  text-decoration: none;
  color: white;
  display: inline-block;
  transition: transform 250ms ease-in-out;
}

.menu_list ul li:hover a {
  transform: translateX(30px);
}

.menu_list ul li svg {
  position: absolute;
  height: auto;
  width: 25px;
  top: 50%;
  left: 0;
  transform: translateY(-16px);
  opacity: 0;
  transition: opacity 250ms ease-in-out;
}

.menu_list ul li:hover svg {
  opacity: 1;
}

.popup_menu .social_media a {
  color: white;
  font-size: 30px;
  margin-right: 20px;
}

.searchform {
  width: 300px;
  height: 35px;
  position: relative;
  display: flex;
  margin-bottom: 15px;
}

.area-text-search {
  height: 100%;
  flex-grow: 1;
  border-top-left-radius: 50px;
  border-bottom-left-radius: 50px;
  padding-left: 15px;
}

.area-text-search:focus {
  outline: none;
}

.button-submit {
  height: 100%;
  width: 45px;
  padding: 10px;
  padding-left: 7px;
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  background-color: #5B53BC;
  cursor: pointer;
}

.button-submit svg {
  height: 100%;
}

@media (min-width: 768px) {
  .popup_menu {
    width: 400px;
  }
}



/**********************************************************/
/************************ FIN HEADER **********************/
/**********************************************************/