body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f0f0f0;
}

.carousel {
  margin: 40px auto;
  position: relative;
  overflow: hidden;
  background: white;
  border-radius: 10px;
  width: 100vw;
  height: 100vh; /* toute la hauteur de la fenêtre */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  /*height: 400px;*/
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto; /* important pour scroller verticalement si besoin */
  display: flex;
  gap: 20px;
  padding: 40px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.left,
.right {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.left img {
  height: 60%;
  object-fit: cover;
  border-radius: 8px;
}

.left img:hover {
  transform: scale(1.05);
}

.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
  animation: fadeInDown 0.8s ease;
}

.description {
  font-size: 16px;
  color: #666;
  animation: fadeInUp 0.8s ease;
}

.indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.dot.active {
  background-color: #555;
}

/* Animation */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.4s ease;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.4s ease;
}

.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Rendre les images cliquables */
.left img {
  cursor: zoom-in;
  transition: transform 0.3s ease;
}
