
#overlay{
  display: none;
}

#masthead{
  position:relative;
  width: 100%;
  height:100%;
  margin-top: 3%;
}

.arrow-left{
  color:black;
  cursor: pointer;
  width: 20%;
  padding-bottom: 2%;
}
#retour{
  opacity: 0;
  transition: opacity 0.5s ease;
  margin-left: 2%;
}

#container_intro{

  width: 75%;
}

.arrow-left:hover #retour{
  opacity: 1;
}
.arrow-left::before {
    content: "←"; /* Unicode */
    font-size: 24px;
}
#container_video{
  width: 100%;
  height:100%;
  position: relative;
  margin-top: 5%;
}
#container_line{
  margin-top: 3%;
}
.img_cat{
  position: relative;
  width: 100%;
  height:100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  border-radius: 12px;
}

.line{
  position: relative;
  width: 100%;
  height:60vh;
  min-height: 400px;
  display: flex;
  gap:1%;
  margin-top: 1%;
  justify-content: start;
}
.square{
  width: 25%;
  height:100%;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}
.square:hover .in_text_hover{
  transform: translateY(0%);
}
.in_text_hover{
  transform: translateY(100%);
  transition: transform 0.5s ease;
  background-color: #eceeed40;
  border: 1px solid rgba(0, 0, 0, 0.216);
  padding: 1%;
  cursor: pointer;
  color:black;
  z-index: 2;
  width: 100%;
  position: absolute;
  bottom: 0;
  pointer-events: none;
}

#other_page{
  height: 100%;
  width: 100%;
  margin-top: 4%;
}

#titre{
  margin-left: 2.5%;
  margin-top: 5%;
}

.sep_image{
  background-color: #DA6416;
  height:3px!important;
  margin-top: 0%;
}
#text_video{
  width: 60%;
  text-align: justify;
  margin-top:1%;
}
.text_video{
  margin-top: 2%;
}
#overlay_video {
  position: fixed;  /* Reste fixé même en scrollant */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0, 0, 0); /* Fond semi-transparent */
  z-index: 5;  /* S'assurer qu'il est au-dessus des autres éléments */
  display: none; /* Caché par défaut */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='105' viewBox='0 0 80 105'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='death-star' fill='%23757279' fill-opacity='0.13'%3E%3Cpath d='M20 10a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm15 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zM20 75a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zm30-65a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V10zm0 65a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V75zM35 10a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zM5 45a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10zm60 35a5 5 0 0 1 10 0v50a5 5 0 0 1-10 0V45zm0-35a5 5 0 0 1 10 0v20a5 5 0 0 1-10 0V10z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  transition: opacity 0.3s ease;
  
}

#video_contain{
  position: relative;
  width: 80%;
  margin-left: 10%;
  height:80%;
  transform: translateY(-20%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.5;
}
#image_contain{
  position: relative;
  width: 80%;
  margin-left: 10%;
  height:80%;
  transform: translateY(-20%);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 0.5;
}

#image_back{
  position: relative;
  width: 100%;
  height:100%;
  z-index: 1;
}
#close{
  position: absolute;
  right: 8%;
  top: 15%;
  width:4vh;
  height:auto;
  z-index: 5;
  cursor: pointer;
}

.svg_bio{
  position:absolute;
  top:0;
  left:0;
  z-index: -1;
}

#barre1{
  fill:rgba(146, 142, 142, 0.084);
}
#barre2{
  fill:rgba(82, 81, 81, 0.024);
}
#barre3{
  fill:rgba(0, 0, 0, 0.22);
}
#barre4{
  fill:rgba(0, 0, 0, 0.308);
  z-index: 1;
}
#barre5{
  fill:rgba(174, 172, 172, 0.062);
}

.big{
  position: relative;
  width:48%;
  height:100%;
  overflow: hidden;
}
.mid{
  position: relative;
  width:25%;
  height:100%;
  overflow: hidden;
}
.big:hover .in_text_hover{
  transform: translateY(-0%);
}
.mid:hover .in_text_hover{
  transform: translateY(-0%);
}
.little:hover .in_text_hover{
  transform: translateY(-0%);
}


.titre{
  margin-left: 5%;
}
.carousel {
  position: relative;
  overflow: hidden;
  width: 90%;
  margin-left: 5%;
  border-radius: 20px;
  margin-top: 10%;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-track video {
  min-width: 100%;
  height: 60vh;
  object-fit: cover;
}

.nav_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
}
.prev { left: 10px; }
.next { right: 10px; }


.grid_video {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 95%;
  margin-left: 2.5%;
  padding-right: 2.5%;
  margin-top: 2%;
}
.grid_video video, .card {
  display: block;
  width: 100%;
  height: 35vh;
  min-height: 300px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  pointer-events: auto;
  transition: border 0.5s ease;
  border: 2px solid transparent;
  overflow: hidden;
}
video{
   pointer-events: auto!important;
}
.grid_video video.playing {
 
}
.grid_video video:hover {
  border: 2px solid rgb(0, 0, 0);
}
#container_vide{
  margin-left: 2.5%;
  margin-top: 3%;
}
#video_mast{
  border-radius: 12px;
  margin-left: 2.5%;
  width: 95%;
  height:70vh;
  min-height: 400px;
  overflow: hidden;
  margin-top: 2%;
}
#video_mast video, img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comepte{
  margin-left: 5%;
  margin-top: 3%;
  text-transform: uppercase;
}












@media (max-width: 800px) {
  #container_video{
    height:100%;
  }
  .arrow-left{
    width: 100%;
  }
  #text_video{
    width: 95%;
  }
  .square{
    width: 100%;
    margin-top: 5%;
  }
  #other_page{
    margin-top: 10%;
    padding-bottom: 10%;
  }
  #video_contain{
    width: 100%;
    height:100%;
    margin: 0;
    padding: 0;
    transform: translateY(0%)!important;
  }
  video{
    width: 100%;
    height:100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
  }
  #close{
    right: 2%;
  }
  #image_contain{
    width: 100%;
    height:100%;
    margin: 0;
    padding: 0;
    transform: translateY(0%)!important;
  }
  #image_back{
    width: 100%;
    height:100%;
    margin: 0;
    padding: 0;
    object-fit: cover;
  }

}


@media (orientation: landscape) and (max-width: 768px) {

  #close{
    width: 4%!important;
    top:25%!important;
    z-index: 4;
  }

}
@media (max-width: 800px) {
  #container_intro{
    width: 95%;
  }
  .resp_case{
    width: 100%!important;
  }
  .grid_video{
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .card{
    height:150px;
    min-height: 150px;
  }
  .grid_video{
    grid-template-columns: repeat(1, 1fr);
  }
}


