
:root {
  --col_border: rgba(255, 255, 0, 0.202);
}



.is_margin{
  margin-top: 2%;
}
.is_margin_big{
  margin-top: 5%;
}



/* */
.lines{
  position: absolute;
  transition:height 1s ease-out;
  background-color:rgb(77, 77, 77);
}
#line_top {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;               /* la vraie largeur définie une fois */
  height: 1px;
  background: white;
  transform-origin: left;
  transform: scaleX(0);      /* état initial */
  transition: transform 1.6s ease;
  will-change: transform;
}
.draw_top {
  transform: scaleX(1)!important;      /* état final : trace la ligne */
}

#line_left{
  width: 1px;
  top:0;
  height:0;
  left:0;
  transform-origin: top;
}
#line_right{
  width: 1px;
  top:0;
  right: 0;
  height:0;
  transform-origin: top;
}
#line_center{
  width: 1px;
  top:0;
  left: 50%;
  height:0;
  transform-origin: top;
}
#line_center2{
  width: 1px;
  top:0;
  left: 75%;
  height:0;
  transform-origin: top;
}
.draw_side {
  height: 100%!important;
}







/* */

#top_content{
  width: 100%;
  height:120vh;
  position: relative;
  min-height: 700px;
  margin-top: 10%;
  display: flex;
  justify-content: center;
}
#last{
  position: absolute;
  top:-5vh;
  left:0;
}
#container_top{
  width: 90%;
  height:100%;
  display: flex;
  position: relative;
}
.container{
  width: 50%;
  height:auto;
  padding: 1%;
}
#rect_in_left{
  width: 100%;
  height: 100%;
  position: relative;
  padding: 1%;
}
.rect{
  width: 100%;
  height:100%;
  background-color: rgb(4, 4, 4);
  padding: 3%;
  transition: background 0.5s ease;
  cursor: pointer;
  background: linear-gradient(180deg, #080808, #000000);
  
}

.rect:hover .img_card_rea{
  filter: grayscale(0);
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3%;
    align-items: start;
    justify-content: start;
    width: 100%;
    position: relative;
    z-index: 1;
    height:100%;
}
.card{
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height:100%;
  position: relative;
  padding: 2%;
}
.access{
  transition: transform 0.5s ease;
  transform: translateX(-120%);
  position: absolute;
  bottom: 5%;
}
.card:hover .access{
  transform: translateX(3%);
}
.card:hover .rect{
   background-color: rgb(8, 8, 8);
}
.arrow{
  width: 2vw;
  height:auto;
}
.img_card_rea{
  position: absolute;
  width: 45%;
  height:50%;
  bottom: 3%;
  right:3%;
  object-fit: cover;
  filter:grayscale(100%);
  transition: filter 0.5s ease;
}
#rea1{
  width: 55%;
  height:60%;
}
.img_card_rect{
  position: absolute;
  width: 50%;
  height:55%;
  bottom: 5%;
  right:6%;
  object-fit: cover;
  filter:grayscale(100%);
  transition: filter 0.5s ease;
}
.is_titre_rea{
  width: 70%;
  font-size: clamp(30px, 3.5vw, 50px);
}
.rect_grid:hover .img_card_rect{
  filter: grayscale(0);
}




#realisations{
  width: 100%;
  height:auto;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
#container_rea{
  width: 90%;
  height:100%;
  display: flex;
  position: relative;
  margin-top: 5%;
  
}
#grid_filter{
  width: 20%;
}

.grid_rea{
  height:98%;
  margin-left: 1%;
  position: relative;
}
.grid_full{
  width: 30%;
}
.line_anim{
  position: absolute;
  width: 1px;
  height:0;
  background-color:rgb(77, 77, 77);
  transform-origin: top;
  right: 0;
  transition: height 3s ease-out;
  z-index: 1;
}
.left_line_anim{
  left:0;
  right: auto;
}

#div_filtre{
  height: auto;
  display: none;
  justify-content: start;
  align-items: center;
  gap:2%;
  width: auto;
  cursor: pointer;
  z-index: 999;
}
#div_filtre_in{
  display: flex;
  height: auto;
  justify-content: start;
  align-items: center;
  gap:2%;
  width: auto;
  cursor: pointer;
  margin-top: 5%;
  display: none;
}
.filtre_img{
  width: 20px;
  height: auto;
  transition: transform 0.5s ease;
}
.rotation{
  transform: rotate(180deg);
}


/* */
.are_lower{
  text-transform: lowercase;
}
#letter{
  display: flex;
  gap:1%;
}
.theme{
  margin-top: 3%;
}
.sep_first{
  margin-top: 10%!important;
}
.grid_rea_filter div, .cat{
  transition: filter 0.5s ease;
}
.grid_rea_filter div:hover{
    filter: drop-shadow(0 0 4px #ffd700)
            drop-shadow(0 0 8px #ffd700)
            drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
}
.cat:hover{
    filter: drop-shadow(0 0 4px #ffd700)
            drop-shadow(0 0 8px #ffd700)
            drop-shadow(0 0 12px rgba(255, 215, 0, 0.6));
}
.grid_rea_filter div{
  cursor: pointer;
}
/* */
.rect_grid_2{
  width: 99%;
  margin-left: 0.5%;
  padding: 1%;
  height: 75vh;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.rect_grid_2{
  margin-top: 15%;
}
.first_grd2{
  margin-top: 0%;
}
.top_grid{
  width: 100%;
  height:auto;
  display: flex;
  justify-content: space-between;
}
.top_grid div{
  width: fit-content;
}
.col_grid{
  width: 75%;
  display: flex;
  align-items: start;
  padding-bottom: 1%;
  flex-direction: column;
}

.img_grid{
  width: 75%;
  height:55%;
  object-fit: cover;
  filter: grayscale(100%);
}
.img_r{
  margin-right: 1%;
}
.picture_div{
  overflow: hidden;
  width: 75%;
  position: absolute;
  bottom: 0;
}
.grid2arrow{
 transform: translateX(-120%);
 transition: 0.5s ease; 
}
.rect_grid_2:hover .grid2arrow{
  transform: translateX(0%);
}


.open{
  transform: translateX(0%)!important;
}
.sep_mini_circe{
  display: none;
}


@media (max-width: 1366px){
  .img_card_rect{
    width: 40%;
    height: 45%;
  }
}


@media (max-width: 1280px) and (max-height:1024px){
    .img_card_rect {
        width: 55%;
        height: 45%;
    }
    #rea1{
      width: 75%;
    }
    .img_grid{
      height:50%;
    }
    .rect_grid_2{
      height:60vh;
    }
    .img_grid{
      height: 55%;
      width: 80%;
    }
    #container_top{
      width: 90%;
    }
}

@media (max-width: 1280px) and (max-height:768px){
    .img_grid{
      height: 60%;
      width: 80%;
    }
    .rect_grid_2{
      height:70vh;
    }
}








@media (max-width: 1176px){
    .rect_grid_2{
      height:75vh;
    }
  .picture_div{
    padding-top: 2%;
  }
}
@media (max-width: 1152px){
   #top_content{
    height:100vh;
   }
   .rect_grid_2{
    height:65vh;
   }
}



@media (max-width: 800px){
  #div_filtre{
    display: flex;
  }
  #div_filtre_in{
    display: block;
  }
  .line_anim{
    display: none;
  }
  #container_top{
    flex-direction: column;
    width: 100%;
    height: auto;
  }
  .container{
    width: 100%;
  }
  #right_container{
    width: 98%;
    margin-left: 1%;
  }
  #top_content{
    height: auto;
    min-height: auto;
    margin-top: 0;
  }
  #rect_in_left{
    height:90vh;
    min-height: 500px;
  }
  .card{
    height:60vh;
    min-height: 390px;
  }

  /* */
  #container_rea{
    flex-direction: column;
  }
  .grid_rea{
    width: 100%;
  }
  #grid_filter{
    width: 100%;
    transform: translateX(-120%);
    position: fixed;
    top:75px;
    left:0;
    z-index: 9999;
    overflow-y: auto;
    transition: transform 1s ease;
    background-color: black;
    height:100%;
    padding-bottom: 200px;
    padding-left: 5%;
  }
  .non_display{
    display: none;
  }
  #rea1{
    left:5%;
  }
  .img_card_rea{
    border-radius: 20px;
  }
  .no_border{
    border: transparent;
  }
  .arrow{
    display: none;
  }
  .grid{
    gap:2%;
    grid-template-columns: repeat(2, 1fr);
  }
  .rect{
    border: 1px solid rgba(255, 255, 255, 0.382);
    border-radius: 20px;
  }
  .card{
    height: 40vh;
    min-height: 300px;
    padding: 0;
    margin-top: 1%;
    width: 100%;
  }
  .img_card_rect{
    bottom: 10%;
    border-radius: 20px;
    width: 50%;
    height:55%;
  }
  .titre_resp{
    width: 40%;
  }
  /* */
  .is_left_grid{

    width: 100%;
  }
  .is_left_img{
    left:3%;
    right: auto;
  }


  /* */
  #grid_filter{
    padding-top: 0;
    width: 100%;
  }
  #container_rea{
    width: 95%;
    margin-left: 2.5%;
    margin-top: 5%;
  }
  .grid_rea{
    margin-left: 0;
  }
  .first_grd2{
    margin-top: 5%;
  }
  .text_resp{
    font-size: 16px;
  }
  .img_grid{
    border-radius: 20px;
    height: 60%;
    width: 90%;
  }
  .col_grid{
    width: 95%;
  }
  .rect_grid_2{
    height: 65vh;
    min-height: 250px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.388);
  }
  .lines{
    display: none;
  }
  .sep_first{
    margin-top: 5%!important;
  }
  #filter_top{
    width: 100%;
    margin-top: 5%;
  }
  .in_filter_top{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap:3%;
    margin-top: 1%;
    align-items: center;
  }
  .sep_mini_circe{
    width: 5px;
    height:5px;
    background-color: white;
    border-radius: 50%;
    display: block;
  }


}


@media (max-width: 700px){
  .lines,
  .line_anim{
    display: none;
  }

  .card{
    height:70vh;
    min-height: 500px;
  }
  .img_card_rect{
    width: 80%;
  }
  .is_left_img{
    margin-left: auto;
  }
  .is_left_grid_under{
    width: auto;
  }
  #rect_in_left{
    margin-top: 10%;
  }

}
@media (max-width: 600px){
  .grid{
    gap:2%;
    grid-template-columns: repeat(1, 1fr);
  }
  .card{
    height:40vh;
    min-height: 350px;
  }
  .is_margin_top_section{
    margin-top: 30%!important;
  }
  .rect{
    border: 1px solid white;
  }
  #container_rea{
    margin-top: 10%;
  }
}

