/* fait par lucas marmier du 4 décembre 2025 au 16 janvier 2026. 
Dans le cadre du module 293 de L'emf.
Ce projet à pour bute de conseillé de anime à d'auter personne (particulièrement mes amis) */

@font-face {
  font-family: CommitMono;
  src: url(../assets/font/CommitMono-400-Italic.otf);
  src: url(../assets/font/CommitMono-400-Regular.otf);
  src: url(../assets/font/CommitMono-700-Italic.otf);
  src: url(../assets/font/CommitMono-700-Regular.otf);
}

.content p,
.content h2,
.content h1 {
  color: #f4f4f4;
}

* {
  font-family: CommitMono;
  font-weight: 400;
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f4f4f4;
}

body::-webkit-scrollbar {
  display: none;
}

/* bar de navigation */
.navBar {
  width: 95%;
  border-radius: 7px;
  display: flex;
  height: 60px;
  margin: 30px auto 0 auto;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  margin-left: 10px;
  z-index: 2;
}

/* boutton menu */
.menu {
  display: flex;
  margin-right: 10px;
  z-index: 2;
}

.menu a {
  background-color: transparent;
  padding: 10px;
  border: 2px solid #f4f4f4;
  border-radius: 20px;
  margin-left: 20px;
  color: #f4f4f4;
  text-decoration: none;
}

.menu a:hover {
  background-color: transparent;
  border: 2px solid #414141;
  color: #414141;
  cursor: pointer;
  transition: ease-in;
}

/* contenue */
.content {
  width: 95%;
  margin: auto;
}

/* sert a positionné le boutton et le stylisé */
.posButton {
  width: 95%;
  display: flex;
  justify-content: space-between;
  margin: 30px 30px;
  position: fixed;
  bottom: 0;
  z-index: 1000;
}

.posButton button {
  border: 2px solid #f4f4f4;
  border-radius: 8px;
  background-color: transparent;
  width: 40px;
  height: 40px;
  padding: 5px;
  color: #f4f4f4;
  margin-right: 10px;
  background-color: #414141;
}

.posButton button:hover {
  border: 2px solid #414141;
  color: #414141;
  background-color: #f4f4f4;
}

/* footer du site */
#footer {
  display: none;
  justify-content: space-between;
  background-color: #f4f4f4;
  font-size: 0.9rem;
  height: 215px;
  color: #414141;
  position: fixed;
  z-index: 2;
  bottom: 0;
  width: 100%;
}

#footer div {
  margin: auto 30px;
}

#footer img {
  height: 140px;
}

/* Background */
#background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  z-index: -1;
}

.backgroundContainer {
  min-height: 100%;
  overflow: hidden;
  position: relative;
}

.backgroundContainer div {
  position: absolute;
  border-radius: 3rem;
  animation: gradient 4s infinite;
}

/* boite de couleur de l'arrière plan */
.backgroundContainer div:nth-child(1) {
  height: 100%;
  width: 100%;
  background-color: #181818;
}

.backgroundContainer div:nth-child(2) {
  height: 30%;
  width: 40%;
  background-color: #ce43f4;
  top: -15%;
  right: 0;
  animation-delay: 2s;
}

.backgroundContainer div:nth-child(3) {
  height: 25%;
  width: 35%;
  background-color: #fe7373;
  top: 50%;
  right: 25%;
  animation-delay: 0.5s;
}

.backgroundContainer div:nth-child(4) {
  height: 29%;
  width: 45%;
  background-color: #dd8ded;
  top: 30%;
  right: 80%;
}

.backgroundContainer div:nth-child(5) {
  height: 30%;
  width: 51%;
  background-color: #fff780;
  animation-delay: 1s;
}

/* effect de blur */
.backgroundContainer::after {
  position: absolute;
  content: "";
  height: 100%;
  width: 100%;
  backdrop-filter: blur(200px);
}


@media screen and (max-width: 560px) {
  .menu {
    flex-direction: column;
    margin: 30px auto;
    gap: 24px;
    justify-content: center;
  }

  .menu div {
    width: fit-content;
    margin: auto;
    margin-bottom: 20px;
  }

  .menu div a {
    margin: 0;
  }

  .navBar {
    flex-direction: column;
  }

  .content {
    margin-top: 150px;
  }
}