/*
  Auteur : Kenny NGUYEN
  Date : 15.01.2025
  Description : page CSS de ma page HTML
*/

body {
  font-family: Arial, Helvetica, sans-serif;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}
/*ID pour la video en arrière plan*/
#background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  pointer-events: none;
}
/*definit la taille du nav*/
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  color: white;
  font-size: larger;
  text-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
/*definit la taille des boutons*/
nav div {
  padding: 20px;
}
/*fais en sortes que les boutons deviennent plus opaque quand la souris passe dessus*/
nav div:hover {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  transition: 0.5s;
  display: block;
}
/*definit la taille des images contenu dans la barre de navigation */
nav > img {
  width: 120px;
  height: auto;
}
/*definit la taille des images contenu dans la barre de navigation */
nav > a > img {
  padding: 15px;
  width: 120px;
  height: auto;
}
/*fais en sorte que le bouton contenant une image devient un peu opaque quand la souris passe dessus */
nav > a > img:hover {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  transition: 0.5s;
}
/*definit la taille et la couleur des boutons de la barre de navigation*/
a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
/*definit la taille et la couleur du texte des headers*/
header {
  padding: 20px;
  color: rgba(0, 0, 0, 0.644);
}
/*ID pour le header 1 */
#img-header {
  padding: 20px;
  border-radius: 10px;
  background-image: url("../IMAGES/img_header1.png");
  background-repeat: no-repeat;
  background-size: cover;
}
/*ID pour le header 2 */
#img-header2 {
  padding: 20px;
  border-radius: 10px;
  background-image: url("../IMAGES/img_header2.png");
  background-repeat: no-repeat;
  background-size: cover;
}
/*ID pour le header 3 */
#img-header3 {
  padding: 20px;
  border-radius: 10px;
  background-image: url("../IMAGES/img_header3.png");
  background-repeat: no-repeat;
  background-size: cover;
}
/*ID pour le header 4 */
#img-header4 {
  padding: 20px;
  border-radius: 10px;
  background-image: url("../IMAGES/img_header4.png");
  background-repeat: no-repeat;
  background-size: cover;
}
/*Pour les grands titres des pages*/
h1 {
  text-align: center;
  font-family: Arial black, Helvetica, sans-serif;
  color: rgba(0, 0, 0, 0.829);
  font-weight: bold;
  font-size: 60px;
  text-shadow: 5px 2px 20px rgba(0, 0, 0, 0.5);
  margin-top: 100px;
  margin-bottom: 100px;
}
/*cette classe permets d'afficher sur la meme ligne du texte et une image */
.img-txt-l {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 10%;
  margin-right: 10%;
  column-gap: 50px;
  margin-bottom: 2%;
  margin-top: 2%;
}
.img-txt-r {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 10%;
  margin-right: 10%;
  column-gap: 50px;
  margin-bottom: 2%;
  margin-top: 2%;
}

/*Pour les paragrahpes dans img-txt elle ca les justifie*/
.img-txt-l > p {
  font-size: 35px;
}
.img-txt-r > p {
  font-size: 35px;
}
.img-txt-l > img {
  width: 40%;
}
.img-txt-r > img {
  width: 40%;
}
/*classe center qui permets de centrer textes et images */
.center {
  text-align: center;
  font-size: 35px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-weight: 100px;
  margin-bottom: 10%;
  align-items: center;
  margin-left: 10%;
  margin-right: 10%;
}
/*pour les images a qui se trouvent dans la classe center*/
.center > img {
  width: 50%;
  box-shadow: 5px 2px 20px rgba(0, 0, 0, 0.5);
}
/*classe pour les pieds de pages*/
.footer {
  padding: 20px;
  border-radius: 10px;
  background-image: url("../IMAGES/img_header1.png");
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 30px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  text-align: center;
  font-weight: 100px;
  color: white;
}
/*footer de la page d'accueil*/
#footer-index {
  padding: 20px;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.5);
  font-size: 30px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  text-align: center;
  font-weight: 100px;
  color: white;
}

/* Classe pour le fade-in */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Classe pour le fade-out */
.fade-out {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
}

/*mediaqueries adapte l'affichage du site en fonction de l'appareil */
@media (max-width: 600px) {
  /*menu de navigation*/
  nav {
    flex-direction: column;
    text-align: center;
    padding: 2px;
    font-size: 25px;
    margin-top: 2px;
    align-items: center;
  }

  /*titre 1*/
  h1 {
    font-size: 40px;
    margin-top: 10%;
    margin-bottom: 10%;
  }
  /*faire en sorte que les iamges qui sont a gauche dans la version web soit en column reverse pour toujours avoir les textes puis les images*/
  .img-txt-l {
    flex-direction: column-reverse;
    font-size: 1px;
  }

  /*faire en sorte que le texte et le images soit en colonne*/
  .img-txt-r {
    flex-direction: column;
    font-size: 1px;
  }
  /*definit la taille de la police */
  .img-txt-l > p {
    font-size: 20px;
  }
  /*definit la taille de la police*/
  .img-txt-r > p {
    font-size: 20px;
  }
  /*definit la taille des images en %*/
  .img-txt-l > img {
    width: 90%;
  }
  /*definit la taille des images en %*/
  .img-txt-r > img {
    width: 90%;
  }
  /*definit la taille de la police des textes centré*/
  .center {
    font-size: 20px;
  }
  /*definit la taille des images centrée*/
  .center > img {
    width: 90%;
  }
  /*definit la taille de la police des paragraphes dans la div center*/
  .center > p {
    font-size: 20px;
  }
  /*definit la taille de la police dans le footer*/
  .footer {
    font-size: 10px;
  }
  /*ID pour la video en arrière plan*/
  #background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
  }
}
