/**
 * Activities Slider Component
 *
 * @package Annecy_Unik_Lodges
 */

/* ========================================
   Section
   ======================================== */
.activities-section {
  position: relative;
  padding: 150px 0;
  min-height: 100vh;
  overflow: hidden;
}

/* ========================================
   Background dynamique
   ======================================== */
.bg-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bg-color {
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
}

.bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
}

.bg-image.active {
  opacity: 1;
}

.bg-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    rgba(54, 94, 88, 0) 200%
  );
}

/* ========================================
   Header
   ======================================== */
.activities-header {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 24px;
}

.activities-subtitle {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin: 0 0 25px 0;
}

.activities-title,
.activities-title h2,
.activities-title p {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 42px;
  color: var(--color-white);
  margin: 0;
}

.activities-title em,
.activities-title i,
.activities-title .highlight {
  font-style: normal;
  color: var(--color-secondary);
}

/* ========================================
   Swiper Container
   ======================================== */
.swiper-container {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 40px 0;
}

.activities-section .swiper {
  width: 100%;
  height: 600px;
  overflow: visible;
}

.activities-section .swiper-wrapper {
  align-items: center;
}

.activities-section .swiper-slide {
  height: 500px;
  transition: all 0.5s ease;
  opacity: 0.5;
  transform: scale(0.9);
}

.activities-section .swiper-slide-active {
  height: 600px;
  opacity: 1;
  transform: scale(1);
  z-index: 10;
}

.activities-section .swiper-slide-prev,
.activities-section .swiper-slide-next {
  opacity: 0.7;
}

/* ========================================
   Card
   ======================================== */
.slide-card {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.slide-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.swiper-slide-active .slide-card:hover img {
  transform: scale(1.05);
}

.slide-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 60%);
}

.slide-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.swiper-slide-active .slide-card-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-card-title {
  font-family: var(--font-heading);
  font-size: 42px;
  color: var(--color-white);
  margin: 0 0 10px 0;
}

.slide-card-desc {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: 1.6;
  margin: 0;
}

/* ========================================
   Navigation
   ======================================== */
.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  position: relative;
  z-index: 10;
}

.nav-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-btn svg {
  width: 10px;
  height: 20px;
  stroke: var(--color-secondary);
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s ease;
}

.nav-btn:hover svg {
  transform: scale(1.3);
}

.nav-btn.prev svg {
  transform: rotate(180deg);
}

.nav-btn.prev:hover svg {
  transform: rotate(180deg) scale(1.3);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 15px;
}

.pagination-bullet {
  width: 45px;
  height: 5px;
  border-radius: 20px;
  background: var(--color-secondary);
  opacity: 0.25;
  cursor: pointer;
  transition: all 0.4s ease;
}

.pagination-bullet.active {
  width: 95px;
  opacity: 1;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
  .activities-section .swiper {
    height: 500px;
  }

  .activities-section .swiper-slide {
    height: 420px;
  }

  .activities-section .swiper-slide-active {
    height: 500px;
  }

  .slide-card-title {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .activities-section {
    padding: 100px 0;
  }

  .activities-section .swiper {
    height: 450px;
  }

  .activities-section .swiper-slide {
    height: 380px;
  }

  .activities-section .swiper-slide-active {
    height: 450px;
  }

  .slide-card-content {
    padding: 30px;
  }

  .slide-card-title {
    font-size: 28px;
  }

  .slide-card-desc {
    font-size: 14px;
  }

  .activities-title,
  .activities-title h2,
  .activities-title p {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .activities-section .swiper {
    height: 400px;
  }

  .activities-section .swiper-slide {
    height: 340px;
  }

  .activities-section .swiper-slide-active {
    height: 400px;
  }

  .slide-card-title {
    font-size: 24px;
  }

  .slide-card-desc {
    font-size: 12px;
  }

  .activities-title,
  .activities-title h2,
  .activities-title p {
    font-size: 26px;
  }

  .pagination-bullet {
    width: 30px;
  }

  .pagination-bullet.active {
    width: 60px;
  }
}
