* {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General setting */
ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  border: none;
  cursor: pointer;
  background: none;
}

img {
  width: 100%;
}

/* Navbar setting */
header {
  background-color: var(--tertiary-color);
  /* box-shadow: 0px 0px 12px 3px #000000cc; */
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 5%;
  height: 100%;
}

.navbar .nav-menu {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-width: 60%;
}

.navbar .nav-menu .nav-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  border-radius: 45px;
  height: 40px;
}

/* .navbar .nav-menu .nav-item:hover a {
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
} */

.navbar .nav-menu .nav-item .nav-link {
  color: var(--primary-color);
}

.navbar .nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 40%;
}

.navbar .nav-logo .logo-text {
  font-weight: bolder;
  color: var(--secondary-color);
}

/* .navbar .wr-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  width: 95px;
  height: 40px;
  border-radius: 45px;
  background-color: var(--primary-color);
}

.navbar .wr-btn:hover {
  border: 1px solid var(--primary-color);
  background-color: transparent;
  /* color: var(--tertiary-color); 
}*/

/* .navbar .wr-btn:hover a {
  color: var(--primary-color);
}

.navbar .wr-btn a {
  flex: 1;
  text-align: center;
  color: var(--tertiary-color);
}

 */

@media screen and (min-width: 768px) {
  .navbar .nav-menu .nav-item:last-child {
    /* isoler le dernier element du navbar */
    margin-left: auto;
    height: 40px;
    background-color: var(--secondary-color);
  }

  .navbar .nav-menu .nav-item:last-child a {
    color: var(--tertiary-color);
  }

  /* .navbar .nav-menu .nav-item.social-link {
    margin-left: auto;
  } */

  .navbar .nav-menu .nav-item:last-child:hover {
    background-color: transparent;
    border: 1px solid var(--secondary-color);
  }

  /* .navbar .nav-menu .nav-item:last-child .nav-link {
    color: var(--tertiary-color);
  } */

  .navbar .nav-menu .nav-item:last-child:hover .nav-link {
    color: var(--secondary-color);
  }

  .navbar .nav-menu .nav-item .nav-link:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 5px vr(--secondary-color);
  }
  .hamburger {
    display: none;
  }

  .mobile {
    display: none;
  }
}

@media screen and (max-width: 768px) {
  header {
    height: 60px;
  }

  .navbar {
    position: relative;
    margin-right: 0;
    width: 100%;
    height: 8vh;
  }

  .hamburger {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    cursor: pointer;
    width: 30px;
    height: 24px;
    z-index: 2;
  }

  .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: 0.3s ease-in-out;
    transform-origin: center;
  }

  .hamburger.active {
    justify-content: space-between;
  }

  .hamburger.active > .bar:first-child {
    transform: translateY(10.5px) rotate(45deg);
  }

  .hamburger.active > .bar:last-child {
    transform: translateY(-10.5px) rotate(-45deg);
  }

  @keyframes menu_shown {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  @keyframes menu_hide {
    from {
      opacity: 1;
    }

    to {
      opacity: 0;
    }
  }

  .hamburger.shown > :last-child {
    display: block;
    animation: menu_shown 0.5s ease-out;
  }

  .hamburger.shown > :first-child {
    display: none;
    animation: menu_hide 0.5s ease-in;
  }

  .hamburger.hide > :last-child {
    display: none;
    animation: menu_hide 0.5s ease-out;
  }

  .hamburger.hide > :first-child {
    display: block;
    animation: menu_shown 0.5s ease-out;
  }

  /* .navbar .wr-btn a {
    color: var(--primary-color);
  } */

  .nav-menu {
    position: absolute;
    top: 60px;
    right: -100%;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.25rem;
    width: 70vw;
    height: 100vh;
    background: #003366aa;
    backdrop-filter: blur(20px);
  }

  @keyframes fade_menu_hide {
    from {
      opacity: 1;
      right: 0;
    }
    to {
      opacity: 0;
      right: -100%;
    }
  }
  @keyframes fade_menu_show {
    from {
      opacity: 0;
      right: -100%;
    }
    to {
      opacity: 1;
      right: 0;
    }
  }

  .nav-menu.show {
    animation: fade_menu_show 0.5s linear forwards;
  }
  .nav-menu.hide {
    animation: fade_menu_hide 0.5s linear forwards;
  }

  .nav-menu .nav-link {
    flex: 1;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    padding: 10px 15px;
    padding-left: 1rem;
    border-bottom: 1px solid var(--primary-color);
    text-align: center;
    color: var(--primary-color) !important;
  }

  .nav-menu .nav-link > :last-child {
    margin-left: auto;
  }

  /* .navbar .wr-btn {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    padding-left: 4rem;
    text-align: center;
    color: var(--primary-color) !important;
  } */

  .navbar .nav-logo {
    width: 98%;
    justify-content: flex-start !important;
  }

  .nav-logo .hamburger {
    margin-left: auto;
    font-size: 8vw;
  }

  .nav-item {
    /* conteneur menu iray */
    width: 100% !important;
    border-radius: 0 !important;
    /* background: linear-gradient(
      230deg,
      var(--tertiary-color) 0% 82.5%,
      var(--secondary-color) 82.5% 100%
    ); */
  }

  /* .navbar .wr-btn {
    margin: 0;
    width: 100%;
    border-radius: 0;
    background: linear-gradient(
      230deg,
      var(--tertiary-color) 0% 82.5%,
      var(--secondary-color) 82.5% 100%
    ); 
  }*/

  /* .navbar .wr-btn a {
        color: var(--tertiary-color);
    } */
}
.social-link {
  display: flex;
  flex-direction: row;
  gap: 2vh;
}

.social-link a {
  color: var(--secondary-color);
  font-size: 1.5vw;
  transition: ease-in-out;
  /* animation: socialanim 2s ease-in-out; */
  z-index: 3;
}

@keyframes socialanim {
  from {
    opacity: 0;
    transform: scale(0, 0);
  }
  to {
    opacity: 1;
    transform: scale(1, 1);
  }
}

.social-link a:hover {
  color: var(--primary-color);
  text-shadow: 2px 2px 5px var(--secondary-color);
}
