header {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0px;
  width: 100%;
  padding: 1rem 0;
  text-align: center;
  color: white;
  text-shadow: 0 0 5px black;
  height: 131px;
  overflow: hidden;
  font-size: 1.5rem;

  backdrop-filter: blur(5px);
  z-index: 2 !important;
}

header h1 {
  font-size: 3rem;
  margin: 1rem 0;
}

header .main_pages {
  background-color: rgba(2, 11, 129, 0.507);
  display: flex;
  justify-content: space-around;
}

header .main_pages > * {
  display: block;
}

header .main_pages a {
  list-style: none;
  text-decoration: none;
  color: white;
  text-shadow: 0 0 5px black;
}

header label,
#toggle {
  display: none;
}
.effetPage {
  text-transform: uppercase;
  font-weight: bold;
}

@media screen and (max-width: 998px) {
  header {
    backdrop-filter: blur(2px);
  }

  header h1 {
    font-size: 1.2em;
  }

  nav .main_pages {
    display: none;
    flex-direction: column;
    background-color: rgba(2, 11, 129, 0.507);
    height: 220px;
  }

  nav .main_pages a {
    width: 50%;
    margin: auto;
  }

  header label {
    display: block;
  }

  label {
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    font-size: 40px;
    color: white;
    background-color: rgba(2, 11, 129, 0.507);
    cursor: pointer;
  }

  #toggle:checked + .main_pages {
    display: flex;
  }

  header {
    height: auto;
  }
}
