
.layout_preproj {
  margin: 0 auto;
  width: 75vw;
  max-width: 800px;
  margin-top: 18vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* Espacement entre les colonnes */
}

.preproj {
  display: block;
  position: relative;
  width: 100%;
  height: 50vh;
  max-height: 450px;
  margin-bottom: 50px; /* Espacement entre les lignes */
  color: #fff;
  flex: none;
  perspective: 1000px;
  text-align: left;
  border-radius: 5rem;
}


.preproj:hover, .preproj:focus {
  color: #fff;
  outline: none;
}

.preproj__figure, .preproj__image {
  margin: 0;
  border-radius: 5px;
  width: 100%;
  height: 100%;
  display: block;
}

.preproj__figure>* {
  transform: translateZ(0px);
  /* Force correct stacking order */
}

.smooth .preproj__figure, .smooth .preproj__caption {
  transition: transform 0.2s ease-out;
}

.preproj__figure {
  position: relative;
}

.preproj__figure::before {
  content: '';
  position: absolute;
  width: 90%;
  height: 90%;
  top: 5%;
  left: 5%;
}

.preproj__caption {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
  bottom: -15px;
}

.preproj__cards {
  display: flex;
  max-width: 90%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.preproj__title {
  font-weight: var(--thin);
  font-size: 6rem;
  text-align: center;
  line-height: 6rem;
  -webkit-animation: fadeIn .4s ease-in 1 forwards;
  animation: fadeIn .4s ease-in 1 forwards;
  animation-delay: .4s;
  opacity: 0;
  text-transform: uppercase;
  margin: 0;
  color: white;
  white-space: pre-line;
}

.preproj__categorie {
  font-weight: var(--regular);
  font-size: 12px;
  padding: 10px;
  border-radius: 50px;
  border: dashed 1px rgba(255,255,255,0.35);
  color: white;
  text-align: center;
  letter-spacing: .02rem;
  text-transform: uppercase;
  -webkit-animation: fadeIn .4s ease-in 1 forwards;
  animation: fadeIn .4s ease-in 1 forwards;
  animation-delay: .3s;
  opacity: 0;
  float: left;
  margin-right: 12px;
  margin-top: 12px;
}


.preproj__date {
  font-weight: var(--regular);
  font-size: 16px;
  margin: 2em 0 0 0;
  text-align: left;
  letter-spacing: .02rem;
  -webkit-animation: fadeIn .4s ease-in 1 forwards;
  animation: fadeIn .4s ease-in 1 forwards;
  animation-delay: .6s;
  opacity: 0;
}


#preproj__video {
  object-fit: cover !important;
  border-radius: 5px;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.fragments_selection {
  position: fixed;
  height: 100%;
  width: 100%;
  background-size: cover;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: -5;
  background-image: url("../img/assets/fragments-selection.webp");
}


.preview_iterium {
background-image: url("../img/cases/iterium.jpg");
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}



/* Media query pour écrans fatos */
@media (min-width: 1750px) {
  .preproj {
    width: calc(50% - 25px);
    max-height: 600px;
  }
  .layout_preproj {
    max-width: none;
  }
  .preproj__title {
    font-size: 8rem;
  }
}


@media screen and (max-width:854px) {
  .preproj__title {
    font-size: 4rem;
  }
  .preproj__card {
    padding-left: 12px;
  }
}

@media screen and (max-width:600px) {
  .preproj__title {
    font-size: 4rem;
    line-height: 4rem;
  }
}

@media screen and (max-width: 400px) {
  .layout_preproj {
    width: 100vw;
  }
  .preproj__title {
    font-size: 2rem;
  }
}
