* {
  box-sizing: border-box;
  max-width: 100%;
}

/* ===========================
   RESET GLOBAL
=========================== */
body {
  font-family: 'Quicksand', sans-serif;
  background-color: #fdfaf6;
  color: #3e3e3e;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Bannière */
.spa-banner {
    background-image: url('../RESSOURCES/IMAGES/SPA_accueil.png'); /* Remplacez avec votre image */
    background-size: cover;
    background-position: center;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.banner-content h1 {
    font-size: 3rem;
}

.banner-content p {
    font-size: 1.2rem;
}

/* Contenu */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

h2 {
    font-size: 2rem;
    color: #2e5f4d;
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
}

/* Services */
.services .grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 2rem;
}

.card {
    background: #f4f4f4;
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 80vh; /* ajuste selon tes besoins */
  margin-top: 2rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
  width: 100%;
  height: 100%;
}

.carousel-track > div {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.carousel-track > img {
  flex: 0 0 100%;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 10;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  text-align: center;
  margin-top: 1rem;
}

.carousel-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.carousel-dot.active {
  background-color: #333;
}

  
@keyframes scrollCarousel {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-100%); }
  50%  { transform: translateX(-200%); }
  75%  { transform: translateX(-300%); }
  100% { transform: translateX(0); }
}

/* Réservation */
.reservation {
    background: #e0f7f1;
    padding: 4rem 2rem;
    text-align: center;
}

.reservation .btn {
    margin-top: 1rem;
    background: #2e5f4d;
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    transition: background 0.3s;
}

.reservation .btn:hover {
    background: #1c4234;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */

/* TABLETTES (≤ 1024px) */
@media (max-width: 1024px) {
  .banner-content h1 {
    font-size: 2.5rem;
  }

  .banner-content p {
    font-size: 1.1rem;
  }

  .container {
    padding: 3rem 1.5rem;
  }

  .card {
    padding: 1.5rem;
  }

  .reservation {
    padding: 3rem 1.5rem;
  }
}

/* SMARTPHONES (≤ 768px) */
@media (max-width: 768px) {
  .spa-banner {
    height: 50vh;
    padding: 0 1rem;
  }

  .banner-content h1 {
    font-size: 2rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .container {
    padding: 2rem 1rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 0.95rem;
  }

  .services .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.2rem;
  }

  .carousel-wrapper {
    height: 50vh;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.4rem 0.8rem;
  }

  .reservation {
    padding: 2rem 1rem;
  }

  .reservation .btn {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* PETITS TÉLÉPHONES (≤ 480px) */
@media (max-width: 480px) {
  .banner-content h1 {
    font-size: 1.6rem;
  }

  .banner-content p {
    font-size: 0.95rem;
  }

  .carousel-btn {
    font-size: 1.2rem;
  }

  .carousel-dots {
    margin-top: 0.5rem;
  }

  .carousel-dot {
    width: 10px;
    height: 10px;
  }

  .reservation .btn {
    width: 100%;
    display: block;
  }
}
