/* Classes TEMPLATE */

.hidden {
  display: none;
}

.no_overflow {
  overflow: hidden;
}

/* Classes STRUCTURE */

#slider {
  min-height: 300px;
  height: fit-content;
  /* padding : 50px 0; */
}

.slider_ctr {
  width: 100%;
  /* left: 10%; */
  position: relative;
  top: 0;

}

.slide {
  display: flex;
  justify-content: center;
}

.slide > img {
  width: 100%;
  height: 600px;  

  /* max-height: 400px;
  max-width: 700px; */
  
  object-fit: cover;
}

.carousel {
  position: relative;
  height: auto;
}

.carousel-middle {
  width: 103%;
  left: -3%;
}

.carousel_container {
  display: flex;
  justify-content: center;
  align-items: start;
  transition: transform 0.3s;
  transform: translate3d(0,0,0);
}

.carousel_container::after {
  content: '';
  clear: both;
  display: table;
}

.carousel_item {
  float: left;
}

.carousel_next, .carousel_prev {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #FFFFFF00 url('icons/rigth-arrow.svg') center center no-repeat; /* IMAGE A CHANGER */
  border-radius: 50%;
  margin-top: 0px;
  top: 50%;
  right: 2%;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
}

.carousel_prev {
  background: #FFFFFF00 url('icons/left-arrow.svg') center center no-repeat; /* IMAGE A CHANGER */
  left: 2%;
}

.carousel_prev-middle {
  left: 5%;
}

.carousel_next:hover, .carousel_prev:hover {
  transform: scale(1.2);
}

.carousel_next-hidden, .carousel_prev-hidden {
  opacity: 0;
  pointer-events: none;
}

.carousel_pagination {
  position: absolute;
  bottom: 20px;
  padding: 5px 0;
  left: 0;
  right: 0;
  text-align: center;
  display: none;
}

.carousel_pagination_button {
  background-color: #FFFFFF;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 2px 5px #222222;
  margin: 0 7px;
  transition: transform ease-in 0.2s;
  cursor: pointer;
}

.carousel_pagination_button-active, .carousel_pagination_button:hover {
  transform: scale(1.3);
  background-color: #BD3100;; /* COULEUR A CHANGER */
}

@media screen and (min-width: 768px) {
  .carousel_pagination {
    display: block;
  }
}

/*
CLASSES ADMIN
*/

.admin_gallery_ctr {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
}

.admin_gallery_ctr > .slide > img {
  margin: 10px 20px;
  width: 200px;
  height: auto;
}

.admin_gallery_ctr > .slide {
  position: relative;
}

.carousel_item > .slide > form > .slide_delete_button {
  display: none;
}

.admin_gallery_ctr > .slide > form > .slide_delete_button {
  display: block;
  position: absolute;

  top: 10px;
  right: 20px;

  width: 35px;
  height: 35px;

  cursor: pointer;
  border: none;
  border-radius: 5px;
  background: #ffffff6c url('icons/red-cross.svg') center center no-repeat;
}

.admin_gallery_ctr > .slide > .slide_delete_button:hover {
  background-color: #555 ;
  transition: background-color 0.5s;
}

.admin_advice_ctr {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 20px;
}

.admin_advice {
  font-size: 1.2em;
  font-style: italic;
  margin: 0;
}


/*

SLIDER OVERPRODUCT

*/

/* Conteneur qui va superposer les produits au slider */
.product-carousel {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Pour ne pas bloquer la navigation du slider derrière, si besoin */
  
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Chaque slide produit */
.product-carousel-item {
  width: 75%;
  height: 100%;
  margin-top: 90px;

  justify-content: space-between;
  align-items: center;

  position: absolute;
  text-align: center;
  pointer-events: none; /* Permet de cliquer sur le bouton "Add to Cart" */
  opacity: 0;
  transition: opacity 0.75s ease;

  color: #FFFFFF;

  display: none;
}

.product_carousel_item_infos_ctr {
  width: 50%;
  text-align: start;
}

.product-carousel-item.show {
  opacity: 1;
  display: block;
  pointer-events: auto;
}

.product-carousel-item .add-to-cart {
  cursor: pointer;
  text-decoration: none;
}

.product_carousel_item_price_ctr {
  width: 50%;
  max-width: 250px;
  
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/*

FIN
SLIDER OVERPRODUCT

*/