@charset "UTF-8";
nav {
  position: absolute;
  z-index: 2;
  top: 0;
  display: flex;
  width: 100vw;
  height: 120px;
  transition: height 0.5s ease;
}
nav .burgerIcone {
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 30px;
  left: 10px;
  visibility: hidden;
  display: none;
  width: 100%;
}
nav .burgerIcone img {
  height: 30px;
  width: 30px;
}
nav .burgerIcone img:hover {
  border: solid #CFA2FE 2px;
  border-radius: 25px;
  justify-content: center;
  align-items: center;
  width: 30px;
  cursor: pointer;
}
nav .menu {
  width: 100vw;
  height: 100%;
  padding: 0 100px;
  display: flex;
  justify-content: space-between;
  font-size: 18px;
}
nav .menu a {
  color: black;
}
nav .menu div {
  display: flex;
  align-self: center;
  flex-direction: row;
  gap: 3rem;
  margin: 10px;
  font-family: "Orbitron", sans-serif;
  font-family: "Russo One", sans-serif;
}
nav .menu div .nav-left {
  justify-content: space-around;
  padding-left: 50px;
}
nav .menu div .title {
  display: flex;
  justify-content: center;
  width: 80px;
  color: black;
  cursor: pointer;
}
nav .menu div .home {
  width: 10px;
}
nav .menu div .home img {
  height: 80px;
}
nav .reversed-menu {
  background-color: #0f0007;
}
nav .reversed-menu a {
  color: white;
}

#logo {
  transition: height 0.5s ease;
}

.reduced {
  height: 40px;
}
.reduced .reversed-menu {
  background-color: rgba(15, 0, 7, 0.9);
}

@media (orientation: portrait) or (max-width: 900px) {
  nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    height: 40px;
  }
  nav .burgerIcone {
    display: flex;
    justify-content: center;
    visibility: visible;
    z-index: 4;
    height: 100%;
  }
  nav .burgerIcone .hamburger {
    height: 30px;
  }
  nav .menu {
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: -100dvh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    z-index: -1;
    transition: top 0.5s ease;
  }
  nav .menu .nav-left, nav .menu .nav-right {
    width: 100vw;
    flex-direction: column;
    justify-content: center;
  }
  nav .menu .nav-left .title, nav .menu .nav-right .title {
    border-bottom: #CFA2FE solid 1px;
    height: 30px;
  }
  nav .menu .nav-left .home, nav .menu .nav-right .home {
    border: none;
  }
  nav .reversed-menu {
    background-color: rgba(15, 0, 7, 0.95);
    color: white;
  }
  nav .display {
    display: flex;
    flex-direction: column;
  }
  nav .top_page_menu {
    top: 40px;
  }
  nav .lower_page_menu {
    top: 40px;
  }
  nav #logo {
    height: 40px;
  }
  nav .menuHomepage {
    visibility: hidden;
    position: absolute;
    display: flex;
    flex-direction: column;
    background-color: #072A5D;
    height: 100%;
    top: 0;
    width: 15%;
    z-index: 2;
    left: -500px;
  }
}
:root {
  --size: 48px; /* taille du bouton */
  --thickness: 4px; /* épaisseur des lignes */
  --gap: 12px; /* distance entre les lignes */
  --color: #111; /* couleur des lignes */
  --duration: 350ms; /* durée de l'animation */
}

/* bouton contenant l'icône */
.hamburger {
  --w: var(--size);
  --h: calc(var(--size));
  width: var(--w);
  height: var(--h);
  display: inline-grid;
  place-items: center;
  padding: 0.25rem;
  border-radius: 15px;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms linear;
}

/* la "barre" utilisée 3 fois */
.hamburger .bar {
  display: block;
  width: 100%;
  height: var(--thickness);
  background: var(--color);
  border-radius: 4px;
  transform-origin: center;
  transition: transform var(--duration) cubic-bezier(0.2, 0.9, 0.2, 1), opacity calc(var(--duration) / 1.2) ease, width calc(var(--duration) / 1.2) ease;
}

/* espacement vertical entre les barres (en utilisant margin) */
.hamburger .bar + .bar {
  margin-top: 8px;
}

/* état ouvert -> transformation en croix */
.hamburger.open .bar:nth-child(1) {
  transform: translateY(calc(var(--gap) * 0.55)) rotate(45deg);
}

.hamburger.open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.6);
}

.hamburger.open .bar:nth-child(3) {
  transform: translateY(calc(-1 * var(--gap) * 0.55)) rotate(-45deg);
}

/* Respecter la préférence de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
  .hamburger .bar {
    transition: none;
  }
}/*# sourceMappingURL=navbar.css.map */