/* Container */
.fotoslide-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}

/* Viewport */
.fotoslide-viewport {
  overflow: hidden;
  width: 100%;
}

/* Track */
.fotoslide-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

/* Slide */
.fotoslide-slide {
  flex: 0 0 auto;
  width: calc(100% / 6); /* PC par défaut */
  height: 350px;
  box-sizing: border-box;
}

.fotoslide-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* Boutons */
.fotoslide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  width: 45px;
  line-height: 45px;
  text-align: center;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  user-select: none;
}

.fotoslide-btn.prev { left: 10px; }
.fotoslide-btn.next { right: 10px; }

.fotoslide-btn:hover {
  background-color: var(--color-primary-hover);
}

/* Responsive */
@media (max-width: 1199px) {
  .fotoslide-slide { width: calc(100% / 4); }
}
@media (max-width: 991px) {
  .fotoslide-slide { width: calc(100% / 4); }
}
@media (max-width: 767px) {
  .fotoslide-slide { width: calc(100% / 4); }
}
@media (max-width: 575px) {
  .fotoslide-slide { width: calc(100% / 2); }
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  height: 100%;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  display: block;
}

.lightbox-content button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  font-size: 24px;
  width: 45px;
  line-height: 45px;
  text-align: center;
  cursor: pointer;
  border-radius: 50%;
}

.lightbox-content button:hover {
  background: var(--color-primary-hover);
}

#lightbox-prev { left: -50px; }
#lightbox-next { right: -50px; }
#lightbox-close {
  top: 15px;
  right: 15px;
  transform: none;
  position: fixed;
}
