/* Section du carrousel */
#abc123 {
  height: 600px;
  width: 100%;
  margin: auto;
  padding-top: 50px;
}

.xyz789 {
  margin: auto;
  width: 190px;
  perspective: 1000px;
  position: relative;
  padding-top: 80px;
}

.pqr456 {
  width: 100%;
  position: absolute;
  animation: rotar 15s infinite linear;
  transform-style: preserve-3d;
}

.pqr456:hover {
  animation-play-state: paused;
  cursor: pointer;
}

/* Conteneur pour chaque case + légende */
.item-1,
.item-2,
.item-3,
.item-4,
.item-5,
.item-6,
.item-7 {
  position: absolute;
  transform-origin: center;
  transform-style: preserve-3d;
  text-align: center;
  color: #333;
  cursor: pointer;
}

/* Position des figures */
.item-1 {
  transform: rotateY(0deg) translateZ(300px);
}
.item-2 {
  transform: rotateY(51.43deg) translateZ(300px);
}
.item-3 {
  transform: rotateY(102.86deg) translateZ(300px);
}
.item-4 {
  transform: rotateY(154.29deg) translateZ(300px);
}
.item-5 {
  transform: rotateY(205.71deg) translateZ(300px);
}
.item-6 {
  transform: rotateY(257.14deg) translateZ(300px);
}
.item-7 {
  transform: rotateY(308.57deg) translateZ(300px);
}

/* Style des cases */
.shadow-1,
.shadow-2,
.shadow-3,
.shadow-4,
.shadow-5,
.shadow-6,
.shadow-7 {
  width: 100%;
  height: 120px;
  border: 1px solid #3b444b;
  border-radius: 15px;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-1:hover,
.shadow-2:hover,
.shadow-3:hover,
.shadow-4:hover,
.shadow-5:hover,
.shadow-6:hover,
.shadow-7:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Conteneur intermédiaire pour l'image */
.img-wrapper-1,
.img-wrapper-2,
.img-wrapper-3,
.img-wrapper-4,
.img-wrapper-5,
.img-wrapper-6,
.img-wrapper-7 {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Image */
.img-wrapper-1 img,
.img-wrapper-2 img,
.img-wrapper-3 img,
.img-wrapper-4 img,
.img-wrapper-5 img,
.img-wrapper-6 img,
.img-wrapper-7 img {
  width: 70%;
  height: auto;
  object-fit: contain;
  transition: all 300ms ease-in-out;
}

/* Effet d'agrandissement avec pseudo-élément */
.img-wrapper-1::before,
.img-wrapper-2::before,
.img-wrapper-3::before,
.img-wrapper-4::before,
.img-wrapper-5::before,
.img-wrapper-6::before,
.img-wrapper-7::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  transform: scale(1);
  transition: transform 300ms ease-in-out;
  z-index: 1;
}

.img-wrapper-1:hover img,
.img-wrapper-2:hover img,
.img-wrapper-3:hover img,
.img-wrapper-4:hover img,
.img-wrapper-5:hover img,
.img-wrapper-6:hover img,
.img-wrapper-7:hover img {
  transform: scale(1.2); /* Agrandissement fluide */
}

/* Style des légendes */
.caption-1,
.caption-2,
.caption-3,
.caption-4,
.caption-5,
.caption-6,
.caption-7 {
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-transform: uppercase;
  pointer-events: none;
}

.dark .caption-1,
.dark .caption-2,
.dark .caption-3,
.dark .caption-4,
.dark .caption-5,
.dark .caption-6,
.dark .caption-7 {
  color: #e0e0e0;
}

/* Animation de rotation */
@keyframes rotar {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

/* Amélioration des pop-ups du carrousel */
.popup-hidden {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  transform: scale(0.8);
  transition: visibility 0s linear 0.3s, opacity 0.3s ease, transform 0.3s ease;
  padding: 20px; /* Pour un espace autour de la pop-up */
  overflow-y: auto; /* Permettre le défilement */
  backdrop-filter: blur(8px);
}

.popup-container {
  position: relative;
  background: var(--card-bg);
  border-radius: 10px;
  text-align: center;
  max-width: 60%; /* Largeur maximale */
  max-height: 80%; /* Hauteur maximale */
  overflow-y: auto; /* Ajout du scroll si le contenu dépasse */
  padding: 30px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.3);
  margin: 20px auto; /* Centrer horizontalement */
  animation: fadeIn 0.5s ease forwards;
  max-width: 80%;
  width: auto;
  min-width: 600px;
  max-height: 85vh;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: popupFadeIn 0.5s ease forwards;
  border: 1px solid var(--border-color);
}

.popup-container h3 {
  font-size: 24px;
  font-weight: bold;
  color: var(--heading-color);
  margin-bottom: 15px;
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--heading-color);
  position: relative;
  padding-bottom: 10px;
}

.popup-container h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--sidebar-active);
  border-radius: 2px;
}

.popup-container img {
  max-width: 60%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  max-width: 120px;
  height: auto;
  margin: 20px auto;
  display: block;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.2));
  transition: transform 0.3s ease;
}

.popup-container img:hover {
  transform: scale(1.1);
}

.popup-container p {
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: var(--text-color);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  z-index: 10;
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.05);
}

.close-btn:hover {
  color: var(--sidebar-active);
  transform: rotate(90deg);
  color: var(--sidebar-active);
  transform: rotate(90deg);
  background-color: rgba(0, 0, 0, 0.1);
}

.timeline-container-8wq2i,
.timeline-container-imac,
.timeline-container-macmini,
.timeline-container-macpro,
.timeline-container-macstudio,
.timeline-container-mba,
.timeline-container-mbp {
  margin-top: 30px;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--card-shadow);
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
}

/* Pop-up visible */
.popup-hidden.show {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition-delay: 0s;
}

/* Animation d'entrée */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ajustements pour les petits écrans */
@media (max-width: 768px) {
  .popup-container {
    max-width: 90%;
    padding: 20px;
    min-width: 90%;
    padding: 25px;
  }

  .popup-container img {
    max-width: 80%;
  }
}

