.cis-slider {
  position: relative;
  width: 100%;
  margin: 30px auto;
  overflow: hidden;
    /* Added display: flex and flex-direction: column to make height work properly */
  display: flex;
  flex-direction: column;
}

.cis-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Make wrapper take full height of parent */
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cis-slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  /* Make track take full height */
  height: 100%;
}

.cis-slide {
  min-width: 100%;
  /* Make slides take full height when parent has fixed height */
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Style Horizontal */
/* Removed max-width to allow slider to adapt to parent container width */
.cis-slider-horizontal {
  /* max-width: 1200px; - Removed */
}

.cis-slider-horizontal .cis-slide-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative; /* Added position relative to contain dots */
  /* When parent slider has fixed height, image should grow to fill space */
  flex: 1;
}

.cis-slider-horizontal .cis-slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cis-slider-horizontal .cis-slide-content {
  padding: 20px;
  text-align: center;
  background: #d9d9d9;
}

.cis-slider-horizontal h3.cis-slide-title {
  font-family: "Playfair Display", serif;
  font-size: 16px !important;
  font-weight: bold;
  text-align: left;
  margin: 0 0 5px 0;
  color: #333;
}

.cis-slider-horizontal h4.cis-slide-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 12px !important;
  font-weight: bold;
  text-align: left;
  margin: 0 0 5px 0;
  color: #333;
}

.cis-slider-horizontal .cis-slide-text {
  font-family: "Poppins", sans-serif;
  font-size: 12px !important;
  font-weight: normal;
  text-align:left;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

/* Style Colonne */
/* Removed max-width to allow slider to adapt to parent container width */
.cis-slider-column {
}

.cis-slider-column .cis-slide {
}

.cis-slider-column .cis-slide-row {
  display: flex;
  align-items: stretch;
  gap: 40px;
  padding: 0px;
  /* Make row take full height */
  height: 100%;
}

.cis-slider-column .cis-slide-image {
  flex: 1;
  min-width: 0;
  display: flex;
  position: relative;
  /* Image should fill available height */
  min-height: 0;
}

.cis-slider-column .cis-slide-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  /* When height is fixed, image should fill container */
  min-height: 100%;
}

.cis-slider-column .cis-slide-content {
  flex: 0 0 270px;
  width: 270px;
  background: #d9d9d9;
  padding: 10px;
}

.cis-slider-column .cis-slide-content h3.cis-slide-title {
  font-family: "Playfair Display", serif;
  font-size: 16px !important;
  font-weight: bold;
  text-align: left;
  margin: 0 0 5px 0;
  color: #333;
}

.cis-slider-column h4.cis-slide-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: bold;
  margin: 5px 0 5px 0;
  color: #333;
  text-align: left;
}

.cis-slider-column .cis-slide-text {
  font-family: "Poppins", sans-serif;
  font-size: 12px !important;
  font-weight: normal;
  text-align: left;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

/* Navigation */
.cis-slider-prev,
.cis-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 40px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: background 0.3s;
  /* Added flexbox to center the arrows vertically */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;

  padding:0px 0px 6px 2px; /* Pour annuler le padding envoyé par Astra et la déformation du bouton */
}

.cis-slider-prev:hover,
.cis-slider-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.cis-slider-prev {
  left: 20px;
}

.cis-slider-next {
  right: 20px;
}

/* Dots are now inside .cis-slide-image, so positioning is relative to the image */
.cis-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}

.cis-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}

.cis-slider-dot.active {
  background: #d8b26f;
  border-color: white;
  transform: scale(1.2);
}

/* Gestion layout column en responsive */
@media (max-width: 1024px) {
  /* Make column slider horizontal on mobile */
  .cis-slider-column .cis-slide-row {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .cis-slider-column .cis-slide-image {
    flex: 0 0 auto;
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative; /* Keep position relative in responsive mode */
  }

  .cis-slider-column .cis-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
  }

  /* Set width to 100% and height to auto for responsive */
  .cis-slider-column .cis-slide-content {
    flex: 0 0 auto;
    width: 100%;
    height: auto;
    padding: 20px;
    text-align: center;
    background: #f8f9fa;
  }

  .cis-slider-column .cis-slide-content h3.cis-slide-title {
    font-family: "Playfair Display", serif;
    font-size: 16px !important;
    font-weight: bold;
    text-align: left;
  }

  .cis-slider-column h4.cis-slide-subtitle {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: bold;
    margin: 5px 0 5px 0;
    text-align: left;
    
  }

  .cis-slider-column .cis-slide-text {
    font-family: "Poppins", sans-serif;
    font-size: 12px !important;
    font-weight: normal;
    text-align: left;
  }

  .cis-slider-horizontal .cis-slide-image {
    height: 250px;
  }

  .cis-slider-prev,
  .cis-slider-next {
    width: 40px;
    height: 40px;
    font-size: 30px;
    
  }
}
