header {
  margin-bottom: 0;
  align-items: center;
  text-align: center;
  max-width: 100vw;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px 25px;
  background: lightgray;
  color: #000;
  box-shadow: inset 0px -1px 0px #262323;
  z-index: 6;
  min-height: 15.1vh;
  max-height: 15.1vh;
}

.nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-right: 20px;
  text-align: center;
}

.nav-icon img {
  max-width: 85%;
}

.hamburger {
  display: none;
}

.main-navlinks {
  position: absolute;
  top: auto;
  right: 10vh;
}

.navlinks-container {
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  flex-direction: row;
  position: relative;
  background-color: lightgray;
  align-items: center;
}

.navlinks-container ul li {
  list-style: none;
  text-align: center;
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

.navlinks-container li a {
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
}

#affiche {
  text-transform: uppercase;
}

.navlinks-container li a:hover {
  color: #000;
  position: relative;
  top: -1px;
}

.navlinks-container li:hover .sub-menu {
  opacity: 0;
  animation: apparition-haut-bas 0.4s ease-out forwards;
  display: block;
}

@keyframes apparition-haut-bas {
  from {
    opacity: 0;
    transform: translateY(-20%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

li:hover #affiche {
  color: #000;
  position: relative;
  top: -1px;
}

#EVJF {
  margin: auto;
  padding: none;
}

#JTI {
  margin: auto;
}

.hrjti {
  margin-top: 50px;
}

#GN {
  margin: auto auto 20px auto;
}

.hr2 {
  display: none;
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: -15px;
  background-color: lightgray;
  padding: 0;
  margin: 0;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  width: 190px;
  display: none;
}

.sub-menu li {
  display: block;
}

#flecheAffiche {
  margin-left: 5px;
  position: relative;
  font-size: 1.2em;
  top: 3.5px;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

li:hover #flecheAffiche {
  transform: rotate(0deg);
}

#tourne {
  text-transform: uppercase;
  margin-right: 0px;
}

#contact::after,
#tourne::after {
  content: '';
  display: block;
  margin: auto;
  width: 0;
  height: 2.5px;
  background: #333;
  transition: width .3s;
}

#contact:hover::after {
  width: 100%;
}

#tourne:hover::after {
  width: 100%;
}

@media (max-width: 900px) {
  nav {
    padding: 15px 20px;
  }

  .nav-icon {
    margin: auto;
  }

  .nav-icon span {
    font-size: 22.5px;
    text-align: center;
  }

  .main-navlinks {
    background-color: lightgray;
    position: static;
  }

  /*     .navlinks-container li a:hover {
      color: #262323;
    } */

  .hamburger {
    min-width: 36px;
    max-width: 36px;
    min-height: 36px;
    max-height: 36px;
    cursor: pointer;
    border: none;
    display: flex;
    background: #333;
    align-items: center;
    position: relative;
    background-color: lightgray;
    z-index: 5;
  }

  .hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background: #333;
    position: absolute;
    pointer-events: none;
    transition: opacity 0.3s 0.15s ease-out;

  }

  .hamburger span:nth-child(1),
  .hamburger span:nth-child(3) {
    transition: transform 0.3s ease-out;
  }

  .hamburger span:nth-child(1) {
    transform: translateY(12.7px);
  }

  .hamburger span:nth-child(3) {
    transform: translateY(-12.7px);
  }

  .hamburger.open span:nth-child(1) {
    transform: translate(0) rotate(135deg);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transition: opacity 0s ease-out;
  }

  .hamburger.open span:nth-child(3) {
    transform: translate(0) rotate(-135deg);
  }

  .menutest {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    height: 100%;
    z-index: 4;
  }

  .navlinks-container {
    border-top: #333 3px solid;
    background: lightgray;
    top: 100%;
    left: 0%;
    position: absolute;
    padding-bottom: 20px;
    padding-right: 20px;
    min-height: 1000vh;
    width: auto;
    transform: translateX(-100%);
    z-index: 5;
    margin-bottom: 20px;
  }

  .open {
    transform: translateX(0%);
  }


  .navlinks-container ul {
    display: flex;
    flex-direction: column;
    justify-content: end;
    background: lightgray;
    position: relative;
  }

  .sub-menu,
  .sub-menu2 {
    align-items: flex-start;
    text-align: justify-all;
  }

  .navlinks-container ul li {
    text-align: justify;
    max-width: 100%;
    margin-left: 10px;

  }

  .navlinks-container li:hover .sub-menu {
    animation: none;
    display: block;
    opacity: 1;
  }

  #JTI {
    margin-left: 50px;
    padding: 5px;
    text-align: start;
    margin-top: 10px;
    border-bottom: #333 2px solid;
  }

  #EVJF {
    margin-left: 50px;
    padding: 5px;
    text-align: justify-all;
    border-bottom: #333 2px solid;
  }

  #EVJF br {
    display: none;
  }

  #GN {
    margin-left: 50px;
    padding: 5px;
    text-align: start;
  }

  hr {
    display: none;
  }

  #takeplace,
  .pesp {
    background-image: linear-gradient(to right, orange, orangered);
    border: none;
  }

  #takeplace2 {
    background-image: linear-gradient(to right, orangered, orange);
    border: none;
  }

  form .pied-form button {
    background-image: linear-gradient(to right, orange, orangered);
    border: none;
  }

  .sub-menu {
    margin-bottom: 20px;
  }

  #tourne::after {
    margin-bottom: 50px;
    margin-right: 100%;
  }

  #tourne:hover::after {
    width: 50%;
  }

}

@media (max-width: 500px) {
  .nav-icon span {
    font-size: 22px;
  }
}

hr {
  border: none;
  border-top: 3px double black;
  color: black;
  overflow: visible;
  text-align: center;
  height: 5px;
  width: 100px;
  margin: 15px auto;
}

hr:after {
  background: #1e1d1d;
  padding: 0 4px;
  position: relative;
  top: -13px;
}