/* Réinitialisation globale */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  list-style-type: none;
}

:root {
  --primary: #6a59ff; /* Couleur principale */
  --white: #ffffff; /* Couleur blanche */
  --bg: #f5f5f5; /* Couleur de fond */
}

html {
  font-size: 62.5%; /* Base pour des tailles en rem */
  scroll-behavior: smooth; /* Défilement fluide */
}

/* Suppression des règles de zoom qui causent des conflits */
/* Les ajustements sont maintenant gérés dans index.css */

::-webkit-scrollbar {
  width: 1.3rem;
}

::-webkit-scrollbar-thumb {
  border-radius: 1rem;
  background: #797979;
  transition: all 0.5s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: #222224;
}

::-webkit-scrollbar-track {
  background: #f9f9f9;
}

/* Corps de la page */
body {
  font-size: 1.6rem;
  background: var(--bg);
}

/* Conteneur principal */
.container {
  max-width: 135rem;
  padding: 4rem 1rem;
  margin: 0 auto;
}

/* Titre */
.heading {
  padding: 1rem 0;
  font-size: 3.5rem;
  text-align: center;
  font-weight: bold;
  color: #333333;
}

/* Swiper container */
.swiper_container {
  height: 52rem;
  padding: 2rem 0;
  position: relative;
}

/* Swiper slide */
.swiper-slide {
  width: 37rem;
  height: 42rem;
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  box-shadow: 0px 8px 24px rgba(18, 28, 53, 0.1); /* Ombre subtile */
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Coupe l'image pour remplir le conteneur */
  border-radius: 2rem;
}

/* Responsive design pour les petits écrans */
@media (max-width: 500px) {
  .swiper_container {
    height: 47rem;
  }
  .swiper-slide {
    width: 28rem !important;
    height: 36rem !important;
  }
  .swiper-slide img {
    width: 27rem !important;
    height: 36rem !important;
  }
}

/* Pagination */
.swiper-pagination {
  position: relative;
  width: 15rem !important;
  bottom: 1rem;
}

.swiper-pagination .swiper-pagination-bullet {
  filter: drop-shadow(0px 8px 24px rgba(18, 28, 53, 0.1));
}

.swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary);
}

/* Navigation (flèches) */
.slider-controler {
  position: relative;
  bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-controler .swiper-button-next {
  left: 58% !important;
  transform: translateX(-58%) !important;
}

@media (max-width: 990px) {
  .slider-controler .swiper-button-next {
    left: 70% !important;
    transform: translateX(-70%) !important;
  }
}

@media (max-width: 450px) {
  .slider-controler .swiper-button-next {
    left: 80% !important;
    transform: translateX(-80%) !important;
  }
}

@media (max-width: 990px) {
  .slider-controler .swiper-button-prev {
    left: 30% !important;
    transform: translateX(-30%) !important;
  }
}

@media (max-width: 450px) {
  .slider-controler .swiper-button-prev {
    left: 20% !important;
    transform: translateX(-20%) !important;
  }
}

.slider-controler .slider-arrow {
  background: var(--white);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  left: 42%;
  transform: translateX(-42%);
  filter: drop-shadow(0px 8px 24px rgba(18, 28, 53, 0.1));
}

.slider-controler .slider-arrow ion-icon {
  font-size: 2rem;
  color: #222224;
}

.slider-controler .slider-arrow::after {
  content: '';
}