

@import url('https://fonts.googleapis.com/css2?family=ABeeZee:ital@0;1&display=swap');


body {
    background-color: #1F2024;
    font-family: 'ABeeZee', sans-serif;
    color: white;
    overflow-y: hidden;
    margin-right: -20vw;
}

#presentation{
  position: absolute;
  left: 50px;
  bottom: 6vh;
  font-family: 'ABeeZee', sans-serif;
  font-size: xx-large;
  color: white;
  text-align: start;
  line-break:auto;
  width: 50%;
  font-size: 18px;
  opacity: 0;
  transition: opacity 10s ease; 
}

#cat-date {
    top: 0px;
    position: relative;
    left: 30px;

}

#cat-soustitre{
    position: relative;
    margin-top: 50px;
    left: 30px;
}

#cat-titre {
position : relative;
margin : 0;
top: 5vh;
left: 30px;
}



h1{
    font-size: 85px;
    
}

h2{
    font-size:20px;
    font-style: italic;
}

h3{
    font-size: 20px;

}
/*
.container {
    overflow-x: scroll;
    overflow-y: hidden; 
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    margin-left: 50px;
}*/



main {
    overflow-x: hidden;
    display: flex;
  }

  #section-img{
    min-width: 80vw;
    min-height: 80vh;
    display: flex;
    z-index: 2;
    margin-top: 8vh;
    margin-left: 18vh;
    margin-bottom: 7vh;
    align-items: center;
  }





#section-img video{
width: 100%;
}


.grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes de largeur égale */
    grid-template-rows: auto auto; /* 2 lignes avec hauteur automatique */
    grid-gap: 5vw;
    width: 60%;
  }


#section-img2{
    min-width: 100vw;
    min-height: 50vh;
    z-index: 2;
    display: flex;
    align-items: center;
    margin-left: -20vw;
    margin-right: 7vw;

  }

#section-img2 video{
    width: 95%; 
    height: auto; /* Permet à l'image de conserver ses proportions */
  }

  .grid2{
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes de largeur égale */
    grid-template-rows: auto auto; /* 2 lignes avec hauteur automatique */
    grid-gap: 2vw;
    width: 60%;
  }


  #section-img3{
    min-width: 100vw;
    min-height: 50vh;
    z-index: -2;
    display: flex;
    align-items: center;


  }

  #section-img3 img{
    width: 100%; 
    height: auto; /* Permet à l'image de conserver ses proportions */
  }



  section:nth-child(even) {
    /*background-color: rgb(255, 0, 0);*/
    color: white;
  }
  
  #section-titre{
    margin : 0;
    min-width: 50vw;
    min-height: 100vh;
    align-items: top;
  }



  @media only screen and (max-width: 600px) {
    .presentation{
        width: 70%;
        font-size: 14px;
    }
    #section-img {
        min-width: 100vw;
    }
    #section-titre {
        min-width: 70%;
    }
    #cat-titre {
        top: 2vh;
        left: 30px;
        font-size: 30px;
    }
  }


  .container {
    display: flex;
    align-items: center;
    margin-right: 80vw;
    margin-left: -30vw;
    height: 100vh; /* Ajustez cette valeur selon votre mise en page */
}
.bouton-projet {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.767);
  cursor: pointer;
  font-size: 66px;
  padding: 8px 12px;
  position: relative;
  overflow: hidden;
  transition: padding 0.3s ease-in-out; /* Transition pour le redimensionnement */
}

/* Style de la flèche à droite */
.fleche {
  transition: transform 0.3s ease-in-out;
}

/* Style du texte caché */
.texte-caché {
  position: absolute;
  top: 0;
  font-family: 'ABeeZee', sans-serif;
  left: 100%; /* Initiallement, hors de la vue */
  background-color: none;
  color: rgba(255, 255, 255, 0.767);
  padding:40px;
  border-radius: 4px;
  font-size: 24px;
  white-space: nowrap;
  transition: left 0.3s ease-in-out; /* Transition pour l'animation */
}

/* Au survol du bouton */
.bouton-projet:hover .fleche {
  transform: translateX(50%);
  opacity: 0;
}

.bouton-projet:hover .texte-caché {
 left: 0; /* Fait apparaître le texte caché au survol */
}

.bouton-projet:hover {
  padding: 8px 150px;
  width: fit-content; /* Redimensionnement du bouton pour accueillir le texte */
}



.btn {
  margin-left:-25vw;
  margin-top: 10vh;
  position: relative;
  width: 50px;
  height: 50px;
  border: none;
  transition: all 0.5s ease-in-out;
  font-size: 48px;
  font-weight: 600;
  display: flex;
  align-items: center;
  background: #1F2024;
  color: rgba(255, 255, 255);
  font-family: 'ABeeZee', sans-serif;
  text-decoration: none;
}


#bouton-suivant{
  text-decoration: none;
}


.icon {
  position: absolute;
  top: 50%; /* Centre l'icône verticalement */
  left: 10px; /* Ajoute un espace à gauche de l'icône */
  transform: translateY(-50%); /* Ajuste pour centrer l'icône verticalement */
  transition: all 0.5s;
  height: 40px;
  width: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.767);
  font-family: 'ABeeZee', sans-serif;
}
.btn:hover {
  box-shadow: 0 0 20px 0px #2e2e2e3a;
}

.btn .icon {
  position: absolute;
  height: 40px;
  width: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.5s;
}

.btn .text {
  transform: translateX(55px);
}

.btn:hover .icon {
  width: 175px;
  
}

.btn:hover .text {
  transition: all 0.5s;
  opacity: 0;
}

.btn:focus {
  outline: none;
}

.btn:active .icon {
  transform: scale(0.85);
}



.hover-text {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.767);
  font-family: 'ABeeZee', sans-serif;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#prev-hover {
  left: 30px; 
  text-decoration: none;
}

#next-hover {
  right: 30px; 
  text-decoration: none;
}

body:hover #prev-hover,
body:hover #next-hover {
  opacity: 1;
}
