/* CARROUSEL D IMAGES */
nav.menu ul {
  display: flex;
  align-items: center;
  gap: 35px;
  margin: 0;
  padding: 0;
  list-style: none;
}

main.offer {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 105px);
  overflow: hidden;
}

.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: calc(100vh - 105px);
  transform: translateX(0);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
  flex: 0 0 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SLIDE OVERLAY */
.slide-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 18vh 80px 40px 100px;
}

.offer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  gap: 50px;
}

.offer-content.single-block {
  justify-content: flex-start;
}

/* bloc texte */
.offer-content-texte-cta {
  max-width: 510px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.offer-content-texte-cta h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.offer-content-texte-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.offer-content-texte-cta p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 22px;
}

.offer-content-texte-cta p span {
  font-weight: bold;
}

/* FLÈCHES DE NAVIGATION */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--primary-color);
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  user-select: none;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.carousel-arrow:hover {
  background-color: #ffffff;
  color: var(--primary-hover);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.carousel-arrow.prev {
  left: 25px;
}

.carousel-arrow.next {
  right: 25px;
}

/* POINTS DE NAVIGATION (DOTS) */
.carousel-dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  z-index: 10;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border-radius: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  display: block;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.dot:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.dot[aria-current="true"] {
  background-color: var(--primary-color);
  transform: scale(1.35);
}

.carousel-arrow:focus-visible,
.dot:focus-visible {
  outline: 3px solid var(--text-dark);
  outline-offset: 4px;
}

/* RESPONSIVE DESIGN (MOBILES ET TABLETTES) */
@media (max-width: 992px) {
  .offer-content {
    gap: 30px;
  }
  .offer-content-texte-cta h1 {
    font-size: 2rem;
  }
  .offer-content-texte-cta h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  nav.menu ul {
    flex-direction: column;
    gap: 20px;
  }

  .carousel-container {
    min-height: calc(100vh - 75px);
  }

  .slide-overlay {
    align-items: center;
    padding: 18px 46px 42px;
  }

  .offer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .offer-content.single-block {
    justify-content: center;
  }

  .offer-content-texte-cta {
    align-items: center;
    width: 100%;
    padding: 16px 12px;
    border-radius: 16px;
  }

  .offer-content-texte-cta h1 {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .offer-content-texte-cta h2 {
    font-size: 0.85rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .offer-content-texte-cta p {
    font-size: 0.75rem;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .offer-content-texte-cta .bouton-decouverte {
    padding: 8px 18px;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .carousel-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  .carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
  }
  .carousel-arrow.prev {
    left: 4px;
  }
  .carousel-arrow.next {
    right: 4px;
  }

  .carousel-dots {
    bottom: 15px;
  }

}
