body {
  font-weight: 400;
  line-height: 1.5;
  font-size: 16px;
  font-family: "Lato", sans-serif;
}

* {
  box-sizing: border-box;
}

strong {
  font-weight: bold;
}



.header-container {
  position: relative;
}

header {
  width: 100%;
  height: 230px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: fixed;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  background-color: white;
  z-index: 999;
  color: black;
  transition: all 0.4s ease;
}

.header-logo-container {
  height: 140px;
  padding: 5px;
  transition: all 0.4s ease;
}

.header-logo {
  height: 100%;
  transition: all 0.4s ease;
}

.header-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 5px;
  font-size: 15px;
  margin: 1rem 0;
  border-top: 1px solid black;
  border-bottom: 1px solid black;
  transition: all 0.4s ease;
}

.header-menu a {
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  color: black;
  padding: 15px 20px;
}

h1 {
  font-size: 25px;
  font-weight: 600;
  font-family: "Ancizar Serif", serif;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.current-menu-item a {
  color: #177FC2 !important;
}

.hamburger {
  display: none !important;
}

.navigation-mobile {
  width: 100%;
  position: absolute;
  top: 100%;
  right: 0;
  padding: 10px;
  font-size: 15px;
  z-index: 9999;
  background-color: white;

  text-transform: uppercase;
}

.navigation-mobile.active {
  visibility: visible;
  animation: latteral 0.4s forwards;
}

.navigation-mobile.inactive {
  display: none;
}

.navigation-mobile.closing {
  animation: latteral-off 0.4s forwards;
}

@keyframes latteral {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes latteral-off {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

/* version mobile */

@media (max-width: 862px) {
  body {
    font-size: 14px;
  }

  header {
    height: fit-content;
    align-items: center;
    flex-direction: row;
  }

  .header-logo-container {
  height: 70px;

}

h1 {
  font-size: 18px;
  text-align: center;
}

  .header-menu {
    display: none;
  }

  .hamburger {
    display: block !important;
  }

  .menu-item {
    display: flex;
    justify-content: end;
    margin: 5px 0;
    padding: 5px 0;
  }

  .menu-item a {
    text-decoration: none;
    color: black;
  }

  .header-spacer {
  height: 70px!important;
  transition: height 0.4s ease;
}
}

/* SCROLL MODE (desktop + tablet) */
@media (min-width: 863px) {
  header.header-scrolled {
    height: 80px;
    padding: 0 2rem;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  background-color: rgba(255, 255, 255, 0.769);

 

  }

  header.header-scrolled h1 {
  
   
    pointer-events: none;
  }

  header.header-scrolled .header-logo-container {
    height: 60px;
    padding: 0;
  }

  header.header-scrolled .header-menu {
    border: none;
    margin: 0;
    gap: 1.5rem;
    align-items: center;
    font-size: 14px;
 
  }

  /* Spacer adapte sa taille automatiquement */
  header.header-scrolled + .header-spacer {
    height: 80px;
  }



}

/* Spacer visible sous le header pour pousser le main */
.header-spacer {
  height: 230px;
  transition: height 0.4s ease;
}
