/* Crée par Diego Fernandez 15 janvier 2025 */
@import url('https://fonts.googleapis.com/css2?family=ADLaM+Display&display=swap');

* {
  margin: 0;
  padding: 0;
  text-decoration: none;
  font-family: "ADLaM Display", serif;
}

body {
  background-color: slategrey;
}

header nav {
  display: flex;
  background-color: #002154;
  flex-direction: row;
  height: 6em;
  align-items: center;
  justify-content: space-between;
}

.logo {
  height: 3em;
  width: 3em;
}

.titre a {
  display: flex;
  align-items: center;
  color: #0074da;
  font-weight: bold;
  font-size: 2em;
}

.page_link {
  padding-block: 27px;
  text-align: center;
  font-size: 2em;
  color: #0074da;
  transition: 0.3s;
  flex-grow: 1;
}

.page_link:hover {
  font-weight: bold;
  color: white;
}

.download_button {
  transition: 0.3s;
  color: white;
  border-color: #002154;
  border-width: 0px;
  border-style: solid;
  border-radius: 12px 12px 12px 12px;
}

.download_button:hover {
  background-color: #0074da;
  color: #002154;
  font-weight: bold;
}

.menu_button {
  color: white;
  border-color: #002154;
  border-width: 0px;
  border-style: solid;
  border-radius: 12px 12px 12px 12px;
}

.menu_button:hover {
  color: #002154;
  background-color: #0074da;
}

.overlay {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 1;
  bottom: 0;
  left: 0;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.7);
  overflow-x: hidden;
  transition: 0.5s;
}

.overlay-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.overlay a {
  padding: 8px;
  font-size: 36px;
  color: #002154;
  background-color: #0074da;
  display: flex;
  flex-direction: row;
  justify-content: center;
  transition: 0.3s;
}

.overlay a:hover,
.overlay a:focus {
  color: white;
}

.overlay .closebtn {
  position: absolute;
  top: 0px;
  right: 0px;
  font-size: 60px;
}

main {
  width: 70%;
  height: 77.4vh;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: scroll;
  background-color: #002154;
  border-radius: 2em;
}

.title {
  display: flex;
  padding-bottom: 2em;
  justify-content: center;
  justify-self: center;
  flex-direction: column;
  font-size: 2.5em;
  width: 70%;
  text-align: center;
  color: #00C8F8;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.title hr {
  margin-top: 0.5em;
  border-top: 8px solid white;
  border-radius: 5px;
}

.author {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  justify-self: center;
  width: 100%;
  font-size: 0.5em;
  color: #002154;
}

.contenu_article {
  display: flex;
  justify-content: left;
  justify-self: center;
  flex-direction: column;
  width: 70%;
  height: 60%;
  text-align: justify;
}

.contenu_article h1 {
  margin-top: 1em;
  color: #0074da;
  font-size: 2.5em;
}

.contenu_article p {
  color: white;
  font-size: 1.5em;
}

.nav_heading {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: #0074da;
  width: 100%;
  border-radius: 1em;
  transition: 0.5s;
}

.nav_heading a {
  padding-left: 0.5em;
  color: #002154;
  font-size: 2em;
}

@media only screen and (max-width: 950px) {
  .page_link {
    display: none;
  }

  .download_button {
    display: none;
  }

  .menu_button {
    display: block;
    text-align: center;
    font-size: 4em;
    padding-block: 5px;
  }

  .menu_text {
    font-size: 0;
  }

  .title {
    font-size: 1.7em;
  }

  .nav_heading a {
    font-size: 1.2em;
  }

  main {
    height: 80.5vh;
  }
}

@media only screen and (max-width: 500px) {
  .titre a {
    font-size: 1.2em;
  }

  .title {
    font-size: 1.2em;
  }

  main {
    width: 100%;
    border-radius: 0 0 0 0;
  }

  .nav_heading {
    width: 100%;
    border-radius: 0 0 0 0;
  }
}