.galerieImagesProduit {
  width: 100%;
  margin: 20px 0;
}

.imagePrincipaleContainer {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: center;
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imagePrincipale {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
  cursor: pointer;
  object-fit: contain;
}

.videoPrincipale {
  max-width: 100%;
  max-height: 600px;
  width: auto;
  height: auto;
}

.grilleThumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 10px 0;
}

.thumbnailContainer {
  position: relative;
  width: 100px;
  height: 100px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  background-color: #fff;
}

.thumbnailContainer.supprime {
  display: none !important;
}

.thumbnailContainer:hover {
  border-color: #007bff;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.thumbnailContainer.active {
  border-color: #007bff;
  border-width: 3px;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumbnailVideo {
  position: relative;
  width: 100%;
  height: 100%;
}

.thumbnailVideo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iconeLectureVideo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.btnSupprimerThumbnail {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 28px;
  height: 28px;
  background-color: rgba(255, 0, 0, 0.8);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  transition: background-color 0.2s;
  z-index: 10;
  user-select: none;
}

.btnSupprimerThumbnail:hover {
  background-color: rgba(255, 0, 0, 1);
  transform: scale(1.1);
}

.indicateurOrdre {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 24px;
  height: 24px;
  background-color: rgba(0, 123, 255, 0.9);
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
  z-index: 10;
}

.controleReorganisation {
  margin: 20px 0;
  text-align: center;
}

.controleReorganisation bouton {
  margin: 0 5px;
}

.controleReorganisation bouton:hover button {
  background-color: #486fa9 !important;
  color: #ffffff !important;
}

.zoneUpload .gauche:hover button {
  background-color: #486fa9 !important;
  color: #ffffff !important;
}

.zoneUpload {
  margin: 20px 0;
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 4px;
  text-align: center;
}

.zoneUpload input[type="file"] {
  display: none;
}

.zoneUpload bouton {
  display: inline-block;
}

.zoneUpload bouton .cadreBouton {
  width: auto;
}

.progressionUpload {
  margin-top: 15px;
  padding: 15px;
  background-color: #f0f8ff;
  border: 1px solid #b3d9ff;
  border-radius: 4px;
}

.progressionTexte {
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.progressionTexte strong {
  color: #007bff;
}

.barreProgression {
  width: 100%;
  height: 20px;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.barreProgressionRemplie {
  height: 100%;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  transition: width 0.3s ease;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.lightboxContenu {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.imageLightbox {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
}

.videoLightbox {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
}

.navigationLightbox {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

@media (max-width: 768px) {
  .imagePrincipaleContainer {
    min-height: 300px;
    padding: 10px;
  }

  .imagePrincipale {
    max-height: 400px;
  }

  .videoPrincipale {
    max-height: 400px;
  }

  .thumbnailContainer {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .imagePrincipaleContainer {
    min-height: 200px;
  }

  .imagePrincipale {
    max-height: 300px;
  }

  .videoPrincipale {
    max-height: 300px;
  }

  .thumbnailContainer {
    width: 60px;
    height: 60px;
  }

  .grilleThumbnails {
    gap: 5px;
  }
}
