/* Carrousel d'images - Styles principaux */

@keyframes pulse {
  0%, 100% { 
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.8),
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 -5px 30px rgba(255, 140, 0, 0.6),
      0 5px 30px rgba(255, 69, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% { 
    box-shadow: 
      0 30px 60px rgba(0, 0, 0, 0.9),
      0 0 0 1px rgba(255, 255, 255, 0.2),
      0 -8px 40px rgba(255, 140, 0, 0.8),
      0 8px 40px rgba(255, 69, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.01);
  }
}

/* Images originales */
img.img-fluid {
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

img.img-fluid:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 140, 0, 0.3);
  filter: brightness(1.05);
}

/* Modal */
#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 100%);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  backdrop-filter: blur(0px);
}

/* Image dans la modal */
#modalImage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0) rotate(-5deg);
  max-width: 85%;
  max-height: 85%;
  border-radius: 15px;
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 -5px 30px rgba(255, 140, 0, 0.6),
    0 5px 30px rgba(255, 69, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  filter: brightness(0.8) contrast(1.1);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Boutons de navigation */
#imageModal button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 140, 0, 0.3);
  border: none;
  color: white;
  font-size: 24px;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10001;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.3;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

#imageModal button:hover,
#imageModal button:active {
  background: rgba(255, 140, 0, 1) !important;
  opacity: 1 !important;
  transform: translateY(-50%) scale(1.05) !important;
}

/* Compteur d'images */
#imageCounter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  z-index: 10001;
  border: 2px solid rgba(255, 140, 0, 0.5);
  user-select: none;
}

/* Indicateurs (points) */
#imageIndicators {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10001;
}

#imageIndicators span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  -webkit-tap-highlight-color: transparent;
}

/* Responsive Design */
@media (max-width: 768px) {
  #modalImage {
    max-width: 95% !important;
    max-height: 95% !important;
  }
  
  #imageModal button {
    font-size: 20px !important;
    padding: 10px 14px !important;
  }
  
  #imageCounter {
    bottom: 20px !important;
    font-size: 12px !important;
  }
  
  #imageIndicators {
    bottom: 60px !important;
  }
}