/* 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);
}

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

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

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

/* contenue de la page*/
.content {
  display: flex;
  flex-direction: row;
  width: 95%;
  margin: auto;
  justify-content: space-between;
}

/* image */
#cover img {
  height: 400px;
  border-radius: 20px;
}

#cover :hover {
  box-shadow: 0px 0px 100px #3b6e71;
  border-radius: 20px;
  transition: 0.3s ease;
}

/* liens youtube + site de streaming */

.liens {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.liens img {
  height: 30px;
  width: 43.2px;
}

/* information sur l'anime */

.info {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  font-size: 0.75rem;
  color: #f4f4f4;
  justify-content: space-around;
}

.info p {
  margin: 0 auto;
  text-align: center;
}

.auteur {
  margin-bottom: 10px;
}

/* texte d'avis plus réseumé */
.texte {
  margin-left: 20px;
  color: #f4f4f4;
  text-align: justify;
  width: 95%;
}

.avis {
  width: 70%;
}

.resum {
  width: 70%;
}

/* image d'ilustration */

.ilustr {
  display: flex;
  justify-content: end;
  height: fit-content;
  margin: auto;
  z-index: -1;
  position: relative;
  margin-top: -250px;
}

.ilustr img {
  max-width: 20%;
  min-width: 170px;
}

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

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

/* boutton menu */
.menu {
  display: flex;
  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;
}

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

.posButton div {
  width: 40px;
  height: 40px;
}

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

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

/* 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: 15vh;
}

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

.backgroundContainer {
  min-height: 100vh;
  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: #3b6e71;
  top: -15%;
  right: 20%;
  animation-delay: 2s;
}

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

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

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

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

/* animation background */
@keyframes gradient {
  50% {
    transform: scale(1.3) translate(100px);
  }
}


@media screen and (max-width: 1100px) {
  .backgroundContainer {
    height: 125vh;
  }


}

@media screen and (max-width: 900px) {
  .ilustr {
    display: none;
  }

  .avis {
    width: 100%;
  }

  .resum {
    width: 100%;
  }
}

@media screen and (max-width: 850px) {
  #footer img {
    height: 100px;
  }

  #footer {
    flex-direction: column;
    width: 100%;
    height: auto;
  }

  #footer div {
    margin: auto;
  }

  .footer {
    height: fit-content;
  }

  .navBar {
    flex-direction: column;
  }

  .menu {
    margin-top: 30px;
  }

  .content {
    flex-direction: column;
  }

  #cover {
    display: flex;
    justify-content: center;
  }

  .info {
    justify-content: center;
    gap: 10px;
  }

  .auteur {
    width: 80px;
  }

  .editeur {
    width: 80px;
  }

  .backgroundContainer {
    height: 175vh;
  }

  .texte {
    margin: auto;
  }
}

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

  .logo {
    margin: auto;
  }

  .navbar {
    margin: auto;
  }

  .menu div {
    margin: 10px auto 0px auto;
  }

  .menu button {
    margin-left: 0px;
  }

  .content {
    margin-top: 200px;
  }

  .backgroundContainer {
    height: 200vh;
  }
}

@media screen and (max-width: 320px) {
  .backgroundContainer {
    height: 225vh;
  }
}