body {
  margin: 0px;
}

.buttontest {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

.buttontest:hover {
  background-color: #45a049;
}

#background-video {
  height: 100vh;
  width: 100vw;
  object-fit: cover;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: -1;
}

h1 {
  /*position: sticky;*/
  z-index: 2;
  margin-top: 0;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgb(255, 255, 255);
  padding: 10px;
}

.h2resume {
  text-align: center;
  font-size: 35px;
  color: white;
  background-color: rgba(57, 17, 17, 0.84);
  margin: 5px 500px;
  border-radius: 15px;
  height: auto;
  width: auto;
  padding: 10px;
}


iframe {
  width: 100%;
  border: 2px solid white
}

iframe:hover {
  transition: 0.2s ease-in-out;
  box-shadow: 1px 5px 5px white;
}

/* -------------------------------------------------------------------------*/

.txt_align {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: 15vh;
  flex-wrap: wrap;
  /* Permet aux éléments de se déplacer sur une nouvelle ligne si nécessaire */
  margin: 300px 30px;
  /* Ajoute un espace autour des éléments */
}

.box_align {
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  height: auto;
  width: 100%;
  flex-wrap: wrap;
  /* Permet aux éléments de se déplacer sur une nouvelle ligne si nécessaire */
  padding: 20px;
}

a {
  color: white;
  transition: 0.2s ease-in-out;
}

a.up:hover {
  color: darkred;
}

a:link {
  color: white;
  background-color: transparent;
  text-decoration: none;
}

.link_back {
  position: relative;
  display: inline-block;
  background-color: rgba(57, 17, 17, 0.84);
  border: 3px solid black;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  transition: 0.5s ease-in-out;
}

.link_back:hover {
  background-color: darkred;
  border: 3px solid rgb(6, 6, 66);
  transform: scale(1.5);
}


.sep_navbar {
  display: flex;
  justify-content: right;
  /* Centrer les éléments à l'intérieur */
  align-items: right;
  /* Centrer verticalement */
  flex-grow: 0.90;
  /* Prendre tout l'espace restant pour centrer le menu */
  text-align: center;
  padding: 0px;
}


.icone_usr {
  width: 60px;
  height: 60px;
  border: 2px solid white;
  border-radius: 100px;
  background-color: rgb(200, 200, 200);
}

/*------------------------------------------------------------------*/

.box_title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  width: 100%;
  /* Utilisation de 100% de la largeur de l'écran */
  height: 200px;
  border-top: 5px solid white;
  border-bottom: 5px solid white;
  text-shadow: 6px 6px rgba(21, 207, 207, 0.639);
  background-color: rgba(0, 0, 0, 0.705);
  transition: 0.0001s ease-in-out;
}

.aligne {
  display: flex;
}

.litt {
  font-size: 20px;
  text-shadow: none;
  margin: 20px;
  transition: 0.1s ease-in-out;
}

.sep_navbar:hover .litt {
  color: darkred;
}

.sep_navbar:hover .icone_usr {
  box-shadow: 1px 1px 50px red;
}

.box_title:hover {
  text-shadow: 6px 6px red;
}


#deb:hover #logos {
  content: url("img/logor.png");
}

.box_text {
  display: flex;
  justify-content: center;
  /* Centre horizontalement */
  align-items: center;
  /* Centre verticalement */
  text-align: center;
  /* Centre le texte à l'intérieur du <p> */
  width: 100%;
  /* Prend toute la largeur disponible */
  max-width: 800px;
  /* Limite la largeur du conteneur */
  padding: 20px;
  margin: 0px 20px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.813);
  /* Fond noir transparent */
  color: white;
  font-size: 40px;
  overflow-wrap: break-word;
  /* Permet au texte de se couper et passer à la ligne */
  height: auto;
  /* Hauteur de 100% de la vue, peut être ajustée */
  text-align: justify;
  padding: 0 10px;
  padding: 10px;
}

@keyframes rotate {
  0% {
    opacity: 0;
    scale: 0;
    transform: rotateZ(520deg) rotateX(520deg);
  }

  100% {
    opacity: 1;
    scale: 1.0;
    transform: rotateZ(0) rotateX(0);
  }
}

.rota {
  width: 90%;
  animation: rotate 2s ease-out;
}

.box_img {
  padding: 0;
  width: 100%;
  /* La largeur s'adapte à l'écran */
  max-width: 300px;
  /* Limite la largeur pour une meilleure lisibilité */
  height: 168;
  background-color: black;
}

.firstslide {
  animation: firstslide 2s ease-out forwards;
}

.secondslide {
  animation: secondslide 2.5s ease-out forwards;
}

.thirdslide {
  animation: thirdslide 3s ease-out forwards;
}

.fourthslide {
  animation: fourthslide 3.5s ease-out forwards;
}

/*-----------------------------------------------------------------------------*/

/* Conteneur qui englobe le titre et la galerie */

.text-wrapper {
  position: relative;
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.911);
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  margin: 40px auto;
  width: 100%;
}

.gallery-container {
  position: relative;
  display: flex;
  justify-content: center;
  /* Centrer horizontalement */
  background-color: rgba(57, 17, 17, 0.84);
  border-radius: 10px;
  padding: 40px;
  flex-wrap: wrap;
  /* Permet aux galeries de se réorganiser si l'espace est trop petit */
  gap: 10px;
  /* Espacement entre les galeries */
  margin: 10px auto;
  /* Centrer le conteneur s'il est plus large que l'écran */
}

div.gallery {
  margin: 10px;
  border: 3px solid #b40000;
  float: left;
  width: 280px;
  background-color: rgb(0, 0, 0);
  transition: transform 0.3s ease-in-out;
}

div.gallery:hover {
  border: 3px solid #ccc;
  transform: scale(1.1);
}

div.gallery img {
  width: 100%;
  height: 168;

}

div.desc {
  padding: 15px;
  text-align: center;
}

/*-------------------------------- PAGINATION -----------------------------------------*/

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagination a {
  color: white;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}

.pagination a.active {
  background-color: rgba(57, 17, 17, 0.84);
  color: white;
  border-radius: 5px;
}

.pagination a:hover:not(.active) {
  background-color: darkred;
  border-radius: 5px;
}


/*-------------------------------------------------------------------------------------------- transitions -----------------------------------------------------------------------------*/


@keyframes firstslide {
  0% {
    opacity: 0;
    transform: translateX(500px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}


@keyframes secondslide {
  0% {
    opacity: 0;
    transform: translateX(470px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes thirdslide {
  0% {
    opacity: 0;
    transform: translateX(440px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fourthslide {
  0% {
    opacity: 0;
    transform: translateX(410px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/*------------------------------------------------------------------------------- Identification ----------------------------------------------------------------------------------*/


.txt_id {
  color: white;
  font-size: 40px;
  text-align: center;
  text-shadow: 5px 5px 3px black;
}


.input_style {
  border-radius: 20px;
  height: 50px;
  width: 200px;
}

.submit_style {
  color: darkred;
  background-color: gray;
  cursor: pointer;
  height: 50px;
  width: 100px;
  font-size: 15px;
  border-radius: 5px;
  border: 2px solid white;
  text-shadow: 1px 1px 1px black;
  font-size: 25px;
}

.submit_style:hover {
  box-shadow: 1px 1px 25px white;
  transform: scale(1.2);
  transition: 0.2s ease-in-out;
}

#inscription {
  text-decoration: underline;
  text-decoration-color: white;
  margin-left: 10px;
  font-size: 17px;
}



#inscription:hover {
  text-decoration: underline;
  color: red;
  text-decoration-color: red;
}



/*--------------------------------------------------------------------------------- Responsive ------------------------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .h2resume {
    font-size: 25px;
  }

  .box_text {
    font-size: 20px;
  }

  .box_title p {
    font-size: 30px;
  }

  .litt {
    font-size: 5px;
  }

  .aligne {
    font-size: 5px;
  }

}