/* ==========================================================================
   EBP Carousel Sorties
   ========================================================================== */

.ebp-carousel {
  --_navy: #060A40;
  --_navy-hover: #0d1260;
  --_card-bg: #ffffff;
  --_radius: 16px;
  --_gap: 24px;
  --_shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --_transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --_arrow-size: 44px;

  position: relative;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ---- Viewport & Track ---- */

.ebp-carousel__viewport {
  overflow: hidden;
  width: 100%;
  padding: 20px 0;
  margin: -20px 0;
}

.ebp-carousel__track {
  display: flex;
  transition: transform var(--_transition);
  will-change: transform;
}

/* ---- Slide (flex item) ---- */

.ebp-carousel__slide {
  flex: 0 0 auto;
  box-sizing: border-box;
  padding: 0 calc(var(--_gap) / 2);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--entrance-speed, 600ms) ease-out, transform var(--entrance-speed, 600ms) ease-out;
}

.ebp-carousel__slide.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Card ---- */

.ebp-carousel__card {
  display: flex;
  flex-direction: column;
  background: var(--_card-bg);
  border-radius: var(--_radius);
  box-shadow: var(--_shadow);
  overflow: hidden;
  height: 100%;
}

/* ---- Image ---- */

.ebp-carousel__card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: #edf0f4;
  flex-shrink: 0;
}

.ebp-carousel__card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebp-carousel__card-placeholder {
  width: 100%;
  height: 100%;
  background: #edf0f4;
}

/* ---- Body ---- */

.ebp-carousel__card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 28px;
}

/* ---- Typography ---- */

.ebp-carousel__card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--_navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.ebp-carousel__card-title a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.ebp-carousel__card-title a:hover {
  opacity: 0.7;
}

.ebp-carousel__card-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4a5568;
  margin: 0 0 16px;
  flex: 1;
}

.ebp-carousel__separator {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.4);
  width: 100%;
  margin: 0 0 16px;
}

.ebp-carousel__card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--_navy);
  margin: 0 0 20px;
}

/* ---- Buttons ---- */

.ebp-carousel__card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.ebp-carousel__btn {
  display: inline-block;
  width: auto;
  min-width: 220px;
  padding: 6px 32px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
  box-sizing: border-box;
  line-height: 1.4;
}

.ebp-carousel__btn--booking {
  background-color: var(--_navy);
  color: #ffffff !important;
  border: 2px solid var(--_navy);
}

.ebp-carousel__btn--booking:hover {
  background-color: var(--_navy-hover);
  border-color: var(--_navy-hover);
  box-shadow: 0 4px 14px rgba(26, 39, 68, 0.3);
  color: #ffffff !important;
}

.ebp-carousel__btn--gift {
  background-color: var(--_navy);
  color: #ffffff !important;
  border: 2px solid var(--_navy);
}

.ebp-carousel__btn--gift:hover {
  background-color: var(--_navy-hover);
  border-color: var(--_navy-hover);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(26, 39, 68, 0.3);
}

/* ---- Arrows ---- */

.ebp-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--_arrow-size);
  height: var(--_arrow-size);
  border-radius: 10px;
  border: none;
  background: var(--_navy);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.ebp-carousel__arrow:hover {
  background-color: var(--_navy-hover);
  box-shadow: 0 4px 14px rgba(26, 39, 68, 0.35);
}

.ebp-carousel__arrow--prev {
  left: -2px;
}

.ebp-carousel__arrow--next {
  right: -2px;
}

.ebp-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

/* ---- Dots ---- */

.ebp-carousel__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
}

.ebp-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(6, 10, 64, 0.25);
  cursor: pointer;
  padding: 0;
  transition: width 0.35s ease, border-radius 0.35s ease, background-color 0.35s ease;
}

.ebp-carousel__dot:hover {
  background: rgba(6, 10, 64, 0.4);
}

.ebp-carousel__dot.is-active {
  width: 28px;
  border-radius: 5px;
  background: var(--_navy);
}

/* ---- Empty ---- */

.ebp-carousel__empty {
  text-align: center;
  color: #8896a8;
  font-style: italic;
  padding: 40px 20px;
}

/* ---- Divi overrides ---- */

.et_pb_section .ebp-carousel__card-title,
.et_pb_section .ebp-carousel__card-desc,
.et_pb_section .ebp-carousel__card-price {
  padding-bottom: 0;
}

.et_pb_section .ebp-carousel__btn {
  letter-spacing: 0;
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .ebp-carousel {
    padding: 0 20px;
  }
  .ebp-carousel__card-body {
    padding: 20px 20px 24px;
  }
}

@media (max-width: 767px) {
  .ebp-carousel {
    --_arrow-size: 36px;
    --_gap: 16px;
    padding: 0 16px;
  }
  .ebp-carousel__card-title {
    font-size: 1.1rem;
  }
  .ebp-carousel__card-body {
    padding: 16px 16px 20px;
  }
  .ebp-carousel__dots {
    margin-top: 20px;
  }
}
