@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700;800&display=swap");

.hamburger-icon {
  background: transparent;
  border: transparent;
  font-size: 26px;
  line-height: 36px;
  z-index: 15; /* Z-index de l'icône hamburger pour qu'il soit au-dessus */
  cursor: pointer;
}

.nav {
  position: fixed;
  z-index: 5; /* Z-index du menu pour qu'il soit en dessous du header */
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px; /* Ajustement du padding pour petits écrans */
  background-color: #fff;
  box-shadow: 0px 8px 7px -11px #000;
  z-index: 10; /* Z-index du header pour qu'il soit au-dessus */
}

/* Logo image styles */
.logo img {
  max-width: 200px; /* Contrainte de largeur pour un bon affichage par défaut */
  max-height: 150px; /* Contrainte de hauteur */
  width: auto; /* Maintient les proportions */
  height: auto;
  object-fit: contain; /* Ajuste l'image dans la zone définie */
  transition: all 0.3s ease; /* Transition douce pour le redimensionnement */
}

/* Media queries pour le logo sur petits écrans */
@media (max-width: 768px) {
  .logo img {
    max-width: 150px; /* Taille réduite sur tablettes */
    max-height: 97px;
  }
}

@media (max-width: 480px) {
  .logo img {
    max-width: 150px; /* Taille encore plus réduite pour mobiles */
    max-height: 97px;
  }
}

/* Navigation */
.nav {
  border: 20px solid #d8d8d8;
  border-left: 0;
  transition: all 0.5s;
  position: fixed;
  border-radius: 0 50% 50% 0;
  top: -35px;
  overflow: hidden;
  left: -100%; /* Menu caché à gauche par défaut */
  width: 400px;
  background: url("../images/personnel.jpg") no-repeat center center / cover;
  height: calc(100vh + 97px);
  min-height: 700px;
  display: flex;
  align-items: center;
  z-index: 999; /* Assurez-vous que le z-index est suffisamment élevé */
}

.nav:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  width: 200%;
  height: 100%;
  border-radius: 0 50% 50% 0;
}

.nav-content {
  margin-left: 40px;
  position: relative;
  z-index: 99;
}

.nav-content .cross-btn {
  margin-bottom: 50px;
  background: transparent;
  color: #fff;
  border: transparent;
  font-size: 24px;
  line-height: 34px;
  padding: 5px 15px;
  cursor: pointer;
  transition: all 0.5s;
}

.nav-content li {
  display: block;
  margin-bottom: 25px;
}

.nav-content li a {
  text-decoration: none;
  color: #fff;
  text-transform: capitalize;
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
  position: relative;
  padding: 5px 15px;
}

.nav-content li a:hover::after {
  opacity: 1;
  width: 100%;
}

.nav-content li a::after {
  opacity: 0;
  content: "";
  transition: all 0.5s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: #006eff;
  z-index: -1;
  transform: skewX(15deg);
  margin-left: 2px;
}

.terms-links {
  margin-top: 120px;
}

.terms-links li a {
  font-size: 12px;
  line-height: 22px;
}
