.header {
  position: relative;
  left: 0;
  top: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  max-width: 100%;
  z-index: 12;
  border: none;
  outline: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media only screen and (max-width: 1023px) and (orientation: portrait) {
  .header {
  height: 60px;
  }
}
@media only screen and (max-width: 1023px) and (orientation: landscape) {
  .header {
  height: 60px;
  }
}
@media only screen and (min-width: 1024px) {
  .header {
    height: 90px;
  }
}

/* ---------------------------------------------------------------------------------
   LOGO
---------------------------------------------------------------------------------*/
.header .logo {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-family: var(--font-family-custom);
  color: var(--title-color-dark-strong);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0rem;
  margin: 0;
  padding: 0;
  height: 50px;
}
.header .logo span {
  font-weight: 100;
  letter-spacing: -2px;
}
.header .logo:hover {
  color: var(--title-color-black);
  text-decoration: none;
}

  /* LOGO TEXT EFFECT / (ajouté le 08.04.2024)
  .header .logo:after {
    display: block;
    position: absolute;
    bottom: 48%;
    left: 0;
    width: 100%;
    height: 1px;
    content: '';
    background: #fff;
  }
  */

@media only screen and (min-width: 1440px) {
  .header .logo {
    font-size: 1.6rem;
  }
}

/* --------------------------------------------------------------------------------
   BTN .open-menu (hamburger)
---------------------------------------------------------------------------------*/
.header .open-menu {
  position: relative;
  cursor: pointer;
  width: 50px;
  height: 50px;
  border: none;
  outline: none;
  background-image: url("/assets/core/svg/menu.svg");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 32px 32px;
  top: 0;
  right: -7px;
}
@media only screen and (min-width: 1024px) {
  .header .open-menu {
    display: none;
  }
}

/* --------------------------------------------------------------------------------
   NAVBAR
---------------------------------------------------------------------------------*/
.header .navbar {
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}
.header .navbar .close-menu {
  position: absolute;
  cursor: pointer;
  width: 60px;
  height: 60px;
  border: none;
  outline: none;
  background-image: url("/assets/core/svg/x.svg");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 32px 32px;
  top: 0;
  right: 0;
}

/* NECESSAIRE ? */
.header .menu {
  /* width: 100%; */
  /* height: auto; */
}

.header .menu > .menu-item {
  position: relative;
  /* margin: 0; */
}
.header .menu > .menu-item > a {
  display: block;
  font-family: var(--font-family-custom);
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.menu-footer {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.75rem;
  margin-bottom: 3.5rem; /* pour combler hauteur barre de recherche du browser mobile / augmenter padding-bottom et supprimer ??? */
}
.menu-footer .social-box {
  height: auto;
  display: flex;
  flex-direction: row;
  margin-left: -20px;
  gap: 0.5rem;
}
.menu-footer .social-box a {
	color: initial;
  font-size: initial;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-footer .social-box a img {
  opacity: 0.7;
  width: 24px;
  height:24px;
}
.menu-footer p.copyright  {
	font-size: 0.8rem;
	margin: 0;
}


/* --------------------------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------------------------*/
@media only screen and (max-width: 1023px) {
  .header .navbar {
    visibility: hidden;
    position: fixed;
    overflow-y: auto;
    z-index: 99;
    top: 0;
    bottom: 0;
    height: 100vh;
    background-color: var(--bg-color-light);
    box-shadow: none;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    -webkit-transition: all 0.5s ease;
       -moz-transition: all 0.5s ease;
        -ms-transition: all 0.5s ease;
         -o-transition: all 0.5s ease;
            transition: all 0.5s ease;
  }
  .header .navbar.active {
    visibility: visible;
    right: 0;
    box-shadow: 0 0 6px -1px rgb(0 0 0 / 40%), 0 0 18px -1px rgb(0 0 0 / 20%);
  }

  /* VERIFIER SI NECESSAIRE ??? */
  .header .navbar::-webkit-scrollbar {
    width: 5px;
  }
  .header .navbar::-webkit-scrollbar-thumb {
    border-radius: 1rem;
    background: #e6e6e6;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .header .menu {
    width: 100%;
    height: auto;
    margin-top: 60px;
    border-top: 1px solid;
    border-color: var(--border-color-dark);
  }
  .header .menu > .menu-item {
    /* display: block; */
    border-bottom: 1px solid;
    border-color: var(--border-color-dark);
  }
  .header .menu > .menu-item > a {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
    padding: 1.75rem 1.75rem;
    color: #505050;
  }
}
@media only screen and (max-width: 480px) {
  .header .navbar {
    right: -75%;
    width: 75%;
  }
}
@media only screen and (min-width: 481px) and (max-width: 1023px) {
  .header .navbar {
    right: -360px;
    width: 360px;
  }
}
@media only screen and (orientation: landscape) and (max-width: 1023px) {
  .header .menu > .menu-item > a {
    font-size: 1rem;
    padding: 1.5rem 1.75rem;
  }
}


@media only screen and (min-width: 1024px) {
  .header .navbar {
    display: inline-block;
  }
  .header .navbar .close-menu {
    display: none;
  }
  .header .menu {
    display: flex;
    flex-direction: row;
    align-items: center;
  }
  .header .menu > .menu-item {
    display: flex;
    flex-direction: column;
    height: 90px;
    align-items: center;
    justify-content: center;
  }
  .header .menu > li.menu-item:last-child {
    margin-right: 0;
  }
  .header .menu > .menu-item > a {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    color: var(--txt-color-dark-strong);
    font-weight: 700;
    line-height: normal;
  }
  .header .menu > .menu-item > a:after {
  	display: block;
  	position: absolute;
  	bottom: 0;
  	left: 0;
  	width: 100%;
  	height: 0;
  	content: '';
  	background: #26a9e1;
    -webkit-transition: all 0.3s ease;
       -moz-transition: all 0.3s ease;
        -ms-transition: all 0.3s ease;
         -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
  }
  .header .menu > .menu-item > a:hover:after{
  	height: 0.3rem
  }
  .menu-footer {
    /* display: none; */
    position: fixed;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: auto;
    padding: 0;
    margin: 0;
    left: 0;
    transform: translateY(-50%);
    top: 50%;
  }
  .menu-footer .social-box {
    flex-direction: column;
    margin-left: 0;
    gap: 0.125rem;
  }
  .menu-footer .social-box .social-icon {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    opacity: 0.9;
  }
  .menu-footer .social-box a img {
    width: 20px;
    height: 20px;
  }
  .menu-footer .copyright {
    display: none;
  }
}
@media only screen and (min-width: 1024px) and (max-width: 1279px) {
  .header .menu {
    gap: 2rem;
  }
  .header .menu > .menu-item > a {
    font-size: 0.875rem;
  }
}
@media only screen and (min-width: 1280px) {
  .header .menu {
    gap: 3rem;
  }
  .header .menu > .menu-item > a {
    font-size: 1rem;
  }
}


/* --------------------------------------------------------------------------------
   OVERLAY
---------------------------------------------------------------------------------*/
.overlay {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 100vw;
  z-index: 6;
  opacity: 0;
  visibility: hidden;
  background: rgba(0, 0, 0, 0.05);
  -webkit-transition: all 0.3s ease;
     -moz-transition: all 0.3s ease;
      -ms-transition: all 0.3s ease;
       -o-transition: all 0.3s ease;
          transition: all 0.3s ease;
}
@media only screen and (max-width: 1023px) {
  .overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

/*---------------------------------------------------------------------------------
   CLASS ON SCROLL + OPEN MENU MOBILE
---------------------------------------------------------------------------------*/

/* MENU LATERAL OPEN / NE SAIT PAS SI CA FONCTIONNE !!! */
body.scrolling {
  overflow-y: hidden;
}
