.slider3D-container {
  width: 100%;
  min-width: 60%;
  max-width: 960px;
  text-align: center;

}


.slider3D {
  width: 960px;
  max-width: 100%;
  height: 500px;
  margin: 0 auto;
  position: relative;
  perspective: 1000px;
  overflow: hidden;
}

.slider3D-track {
  position: relative;
  height: 100%;
}

.slide3D {
  position: absolute;
  top: 0;
  width: 320px;
  height: 100%;
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scale(0.8);
  z-index: 0;
  left: 50%;
  transform-origin: center center;
  transform: translateX(-50%) scale(0.8);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  background-color: #f6ebeb4f;
  padding: 0 1em;
  box-sizing: border-box;
}

.slide3D img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 1.2rem;
  background: var(--color-dark-blue);
  padding: 5px 10px;
  border-radius: 5px;
  color: #f36;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: #222;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 20;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.dots {
  margin-top: 20px;
}

.dots button {
  width: 10px;
  height: 12px;
  border-radius: 50%;
  border: none;
  margin: 10px;
  background: #555;
  transition: background 0.3s;
  cursor: pointer;
}

.dots button.active {
  background: #f36;
}

/* Message affiché quand JS est désactivé (visible via <noscript>) */
.slider3D .no-js-warning {
  display: block;
  position: absolute;
  left: 50%;
  transform: translate(-50%, 100px);
  top: 0;
  max-width: 80%;
  margin-top: 6em;
  text-align: center;
  z-index: 30;
  padding: 1rem 0;
}

/* 🔄 Responsive Breakpoint */
@media (max-width: 768px) {
  .slider3D {
    width: 100%;
    /* height: 450px; */
    height: 350px;
  }

  .slide3D {
    width: 65%;
    max-width: 250px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
  }

  .slide3D img {
    height: 100%;
  }


  .label {
    right: 20px;
  }
  
  .slider3D .no-js-warning {
    margin-top: 6vw;
  }
}
