/* 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 {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.background {
  position: fixed;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  transform: translateX(calc((100% - 100vw) / 2));
  filter: blur(5px);
  z-index: -1;
}

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;
}

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

main {
  padding-bottom: 0%;
}

.articles {
  margin-left: 2em;
  margin-right: 2em;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20em, 1fr));
  gap: 2em;
  justify-content: center;
}

.article {
  background-color: #002154;
  border-radius: 2em;
  padding: 1em;
  text-align: center;
}

.section_title {
  font-size: 2.5em;
  color: #00C8F8;
}

.section_p {
  font-size: 1.7em;
  color: white;
}

footer {
  color: white;
  text-align: center;
  margin-top: auto;
}

@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;
  }
}

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

  .title {
    font-size: 1.2em;
  }

  .section_title {
    font-size: 1.7em;
  }
  
  .section_p {
    font-size: 1.5em;
  }
}