/* Styles généraux */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.my-product-container {
  width: 80%;
  margin: 20px auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
}

/* Styles pour le slider */
.my-slider {
  position: relative;
  width: 50%; /* 50% de la largeur sur PC */
}

.my-slider-wrapper {
  position: relative;
}

.my-prev,
.my-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 10px;
  z-index: 1;
}

.my-prev {
  left: 10px;
}

.my-next {
  right: 10px;
}

.my-slider-images {
  display: flex;
  overflow: hidden;
  position: relative;
}

.my-slide {
  flex: 1;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

/* Styles pour la ligne de prévisualisation */
.my-preview-line {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

.my-preview-line .my-preview-image {
  width: 60px;
  height: 40px;
  margin: 0 5px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.my-preview-line .my-preview-image:hover {
  opacity: 1;
}

/* Styles pour la description */
.my-description {
  margin-top: 20px;
  width: 50%; /* 50% de la largeur sur PC */
  text-align: center;
}

.my-description h2 {
  font-size: 24px;
}

.my-description p {
  font-size: 16px;
}

/* Styles pour le popup */
.my-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2;
  overflow: auto;
}

.my-popup-image {
  display: block;
  margin: 50px auto;
  max-width: 80%;
  max-height: 80%;
}

.my-close {
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  position: absolute;
  top: 20px;
  right: 30px;
  cursor: pointer;
}

/* Media query pour les appareils mobiles */
@media screen and (max-width: 768px) {
  .my-product-container {
    flex-direction: column; /* Empilage sur les appareils mobiles */
    align-items: center;
  }

  .my-slider,
  .my-description {
    width: 100%; /* Pleine largeur sur les appareils mobiles */
  }
}

.my-iframe {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
}