/* FONT FACE */
/* Imports des fonts */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "DMSans";
  src: url("../fonts/DM_Sans/static/DMSans-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}
/* VARIABLES */
/**********
* ACCUEIL *
**********/
/* HERO */
.hero {
  padding-top: 5rem;
}
.hero__titre {
  margin-bottom: 1rem;
}

@media (min-width: 1188px) {
  .hero {
    padding-top: 10rem;
  }
}
/* OFFRES */
.offres {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.offres__titre {
  text-align: center;
  margin-bottom: 3rem;
}
.offres__conteneur {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
}
.offres .offre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  background-color: #117FC4;
  padding: 2rem;
}
.offres .offre__titre {
  font-size: 1.75rem;
}
.offres .offre ul {
  list-style: disc;
  padding-left: 1.25rem;
}
.offres .offre ul li {
  margin-bottom: 0.25rem;
}
.offres .offre__contenu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.offres .offre__prix {
  font-weight: 800;
  width: 100%;
  text-align: center;
}

@media (min-width: 1188px) {
  .offres {
    gap: 1rem;
  }
  .offres__conteneur {
    flex-direction: row;
    gap: 6rem;
  }
}
/* REALISATIONS */
.realisations {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}
.realisations__titre {
  text-align: center;
  margin-bottom: 3rem;
}
.realisations__titre span {
  width: -moz-fit-content;
  width: fit-content;
  display: block;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
.realisations__titre span::before {
  content: "";
  position: absolute;
  top: -0.5rem;
  bottom: 0.5rem;
  left: 0.5rem;
  right: -0.5rem;
  background-color: #3BB1E4;
  z-index: -1;
}
.realisations__conteneur {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}
.realisations .realisation {
  position: relative;
  display: inline-block;
  width: 300px;
  height: 300px;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
}
.realisations .realisation__image {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.5s ease;
}
.realisations .realisation {
  /* Filtre */
}
.realisations .realisation .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(54, 161, 53, 0.8);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}
.realisations .realisation:hover .overlay {
  opacity: 1;
}
.realisations .realisation:hover .realisation__image {
  transform: scale(1.1);
}
.realisations .realisation:hover .realisation__legende {
  opacity: 1;
}
.realisations .realisation__legende {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: blanc;
  font-size: 1.2rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 2;
  margin: 0;
}
.realisations .realisation {
  /* Masquer les 3 derniers realisations */
}
.realisations .realisation:nth-of-type(4), .realisations .realisation:nth-of-type(5), .realisations .realisation:nth-of-type(6) {
  display: none;
}

@media (min-width: 1024px) {
  /* Afficher les 3 derniers realisations */
  .realisation:nth-of-type(4), .realisation:nth-of-type(5), .realisation:nth-of-type(6) {
    display: block;
  }
}
@media (min-width: 1188px) {
  .realisations {
    gap: 1rem;
    padding: 6rem 15%;
  }
  .realisations__conteneur {
    display: flex;
    gap: 5rem;
  }
}
/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(29, 29, 27, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.popup__content {
  background-color: #ffffff;
  width: 90vw;
  max-height: 90vh;
  display: flex;
  overflow: hidden;
  padding: 1.5rem;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

.popup__close {
  position: absolute;
  top: 0;
  right: 0.25rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1D1D1B;
  cursor: pointer;
}

.popup__description {
  max-height: 40vh;
  overflow-y: auto;
}

.popup__title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

/* Carousel */
.carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  height: 37.5rem;
}

.carousel__container {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;
}

.carousel__container {
  cursor: grab;
}

.carousel__container:active {
  cursor: grabbing;
}

.carousel__image {
  max-width: 100%;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

/* Responsive desktop */
@media screen and (min-width: 1170px) {
  .popup__content {
    flex-direction: row;
    gap: 6rem;
    padding: 4rem;
    max-height: 80vh;
  }
  .carousel {
    flex: 1;
  }
  .popup__details {
    flex: 2;
  }
  .popup__description {
    max-height: 90vh;
  }
  .popup__title {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .popup__close {
    top: 0.5rem;
    right: 1.5rem;
    font-size: 3rem;
  }
}
/* CONTACT */
.contact__titre {
  text-align: center;
  margin-bottom: 3rem;
}

.contact__texte {
  text-align: center;
}