p + #acf-bloc-fwf-top-references,
h1 + #acf-bloc-fwf-top-references,
h2 + #acf-bloc-fwf-top-references,
h3 + #acf-bloc-fwf-top-references{
  margin-top: 2rem;
}

#acf-bloc-fwf-top-references{
  height:45vh;
}

#acf-bloc-fwf-top-references ul{
  margin: 0;
  padding: 0;
  list-style-type: none;
  display: flex;
  height: 100%;
  width: 100%;
}

#acf-bloc-fwf-top-references li{
  margin: 0;
  overflow:hidden;
}

#acf-bloc-fwf-top-references li::before{
  display: none;
}

#acf-bloc-fwf-top-references ul a{
  display: flex;
  height: 100%;
  align-items: flex-end;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  text-decoration: none;
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 1);
  transition: 0.5s all ease;
  overflow: hidden;
}

#acf-bloc-fwf-top-references ul a span{
  position: absolute;
  top: 100%;
  width: 100%;
  background:rgba(255, 255, 255, 0.7);
  width: 100%;
  padding:0.8rem 0.7rem;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color:rgba(0, 0, 0, 0.8);
  font-family: var(--main-title-font);
  transition: 0.3s all ease;
}

#acf-bloc-fwf-top-references ul li:hover a{
  text-decoration: none;
  transform: scale(0.9);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.6);
}

#acf-bloc-fwf-top-references ul li:hover a span{
  transform: translateY(-100%);
}

#acf-bloc-fwf-top-references ul.references{
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

#acf-bloc-fwf-top-references ul.references > *{
  width: 49.5%;
}

#acf-bloc-fwf-top-references ul.autres-references{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: -1%;
}

#acf-bloc-fwf-top-references ul.autres-references > li{
  width: 49%;
  height: 30.7%;
  margin-top: 2%;
}

#acf-bloc-fwf-top-references ul.autres-references a:hover{
  transform: scale(0.9);
  box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.6);
}

#acf-bloc-fwf-top-references ul.autres-references > li span{
  font-size: 1.1rem;
  padding: 0.5rem 0.5rem 0.3rem 0.5rem;
}

/* Ecrans moyens et petits */
@media (min-width: 992px) and (max-width: 1600px) {
  
  #acf-bloc-fwf-top-references ul.autres-references{
    margin-top: -1.2%;
  }

  #acf-bloc-fwf-top-references ul.autres-references > li{
    margin-top: 2.5%;
  }

}


/* lg */
@media (min-width: 1200px) {


}


/* md */
@media (min-width: 992px) and (max-width: 1199px) {

}


/* <= à sm -> Tablettes & Smartphones */
@media (max-width: 991px) {

  #acf-bloc-fwf-top-references{
    height: auto;
  }

  #acf-bloc-fwf-top-references ul.references{
    flex-direction: column;
  }

  #acf-bloc-fwf-top-references ul.references > *{
    width: 100%;
  }

  #acf-bloc-fwf-top-references ul.references > li{
    height: 50vh;
  }

  #acf-bloc-fwf-top-references ul.autres-references > li{
    height: 20vh;
    margin-top: 0.5rem;
    width: 100%;
  }
  
  #acf-bloc-fwf-top-references ul a span{
    top:auto;
    bottom: 0;
  }

}


/* sm - Tablettes */
@media (min-width: 768px) and (max-width: 991px) {

}


/* xs - Smartphones */
@media (max-width: 767px) {

}


/* very xs - petits Smartphones */
@media (max-width: 480px) {


}