.construc {
  border: 1px solid pink;
}

.ambiance-page {

  padding-bottom: 80px;
}

/*  -------------------
    SECTIONS AMBIANCE
    --------------------- */

.ambiance-page-main {
  margin-bottom: 50px;
  background-color: #333;
}

.ambiance-page-main-inner {
  max-width: 1600px;
  width: 96%;
  margin: 0 auto;

}

.ambiance-page h1 {
  margin-bottom: 20px;
  font-size: 2rem;
  font-family: 'Roboto Slab', serif;
  font-weight: normal;

}





.ambiance-page h1 span::before {
  content: '';
  position: relative;
  top: -3px;
  display: inline-block;
  background-image: url('/img/h1-before.png');
  background-repeat: no-repeat;
  background-size: contain;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  vertical-align: middle;
}

.ambiance-page h1 span:after {}

.ambiance-page-main .wordings {
  max-width: 75%;
  padding-left: 3%
}

.ambiance-page-main .description {}


/*  -------------------
    SECTION PRODUITS 
    --------------------- */
h2.products-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  padding-bottom: 25px;
}

h2.products-title span {
  padding: 10px 0 15px;
  position: relative;
}

h2.products-title span:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80px;
  height: 5px;
  content: ' ';
  background-color: var(--orange);
  transform: translateX(-50%);
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}



.ambiance-page .products-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  max-width: 1600px;
  width: 96%;
  margin: 0 auto;
}

.ambiance-page .product-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
  margin-bottom: 0;
  /* S'assurer que l'élément occupe toute la hauteur disponible */
}

.ambiance-page .product-image-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
}



.ambiance-page .product-image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  overflow: hidden;
}

.ambiance-page .product-image {
  position: absolute;
  width: 100%;
  height: 100% !important;
  object-fit: cover;

  transition: transform 0.3s ease;

}

.ambiance-page .product-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);

  color: white;
  text-align: center;
  padding: 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.ambiance-page .product-title {
  font-size: 0.9rem;
  margin: 0;
  padding: 0 5px;
}

.ambiance-page .product-description {
  font-size: 0.8rem;
  margin: 0;
}

.ambiance-page .product-item:hover .product-image {
  transform: scale(1.05);
}

.ambiance-page .product-item:hover .product-info {
  opacity: 1;

}





/*  ------------
    MODAL
    ----------------- */
#product-modal .modal {
  display: none;

  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0%;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);

}

#product-modal .modal-content {
  position: relative;
  margin: auto;
  padding: 20px 10px 10px 10px;
  width: 96%;
  max-width: 1200px;
  background-color: #666;
  color: white;
  display: flex;
  align-items: stretch;
}

#product-modal .modal-body {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  max-width: 96%;
  margin: 0 auto;
  height: 100%;
}

#product-modal .modal-image {
  flex: 1;
  display: flex;
  padding: 10px;
  align-items: center;
}

#product-modal .modal-image img {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
}

#product-modal .modal-text {
  flex: 1;
  padding: 10px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#product-modal .modal-text .description {
  text-align: justify;
}

#product-modal .modal-content .logo {
  position: absolute;
  left: 75%;
  transform: translateX(-50%);
  max-width: 25%;
  opacity: 0.7;
}

#product-modal .modal-content .logo img {
  filter: grayscale(1);
  opacity: 0.5;
}

#product-modal .swiper-container {
  height: 100%;
}

#product-modal .swiper-wrapper {
  height: 100%;
}

#product-modal .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

#product-modal .swiper-button-next,
#product-modal .swiper-button-prev {
  color: #ccc !important;
  opacity: 0.8;
}

#product-modal .swiper-button-next:hover,
#product-modal .swiper-button-prev:hover {
  opacity: 1;
}

#product-modal .swiper-container {
  max-width: 100%;
}

#product-modal .modal-close {
  position: absolute;
  right: 15px;
  top: 5px;
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  z-index: 1001;
}

#product-modal .modal-close:hover {
  color: #ccc;
}

body.ambiance-page.modal-opened {
  overflow: hidden;
}

body.ambiance-page.modal-opened #menu-burger {
  display: none;
}

#product-modal .modal-content h5 {
  position: relative;
  font-size: 1.7rem;
  margin-bottom: 20px;
  padding-left: 20px;
}

#product-modal .modal-content h5::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 7px;
  bottom: 0%;
  background-color: var(--orange);
}

#product-modal .price {
  font-size: 0.9rem;
  color: #aaa;
  margin-top: 10px;
}

#product-modal .price i {
  margin-right: 5px;
  font-size: 0.5rem;
  color: #aaa;
}


@media screen and (min-width: 992px) {
  .ambiance-page-main-inner {
    align-items: center;
  }

  .ambiance-page-main .wordings {
    max-width: 75%;
    padding-left: 3%
  }

  .ambiance-page-main .description {
    font-size: 120%;
    line-height: 1.7;
  }
}

@media screen and (min-width: 768px) {

  .ambiance-page-main .wordings {
    max-width: 75%;
    padding-left: 3%;
  }

  #product-modal .swiper-slide {
    height: auto;
  }
}

@media screen and (max-width: 767px) {
  .ambiance-page h1 {

    font-size: 1.7rem;



  }

  .ambiance-page-main .wordings {
    max-width: 100%;
    padding: 15px 0px 25px;

  }

  #product-modal .modal-body {
    flex-direction: column;
    max-width: 100%;
    padding: 10px 0px;
  }

  #product-modal .modal-image {
    padding: 20px 0px 10px;
    flex: 0;
  }

  #product-modal .modal-text {
    padding: 10px 0px;
    flex: 0;
  }

  .ambiance-page .swiper-button-next,
  .ambiance-page .swiper-button-prev {
    display: none !important;
  }

  #product-modal .modal-content .logo {
    position: absolute;
    left: auto;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 50%;
    opacity: 0.7;
  }

  .ambiance-page .products-grid {
    max-width: 90%;
    margin: 0 auto;
  }
}