

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Climate+Crisis&display=swap');


*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'poppins', sans-serif;
}
body{
    background:#e4e7ee;
}

.wrapper{
    width: 90%;
    margin: auto;
}
/* Section Hero */
.home {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Slider */
.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    
}

.slide.active {
    opacity: 1;
}


/* Texte à droite */
.home .hero-text {
    top: 25%;
    position: absolute;
    z-index: 80;
    width: 50%;
   
}

.home .hero-text h1 {
    font-size: 1.5rem;
}

.home .hero-text p {
    font-size: 1rem;
   
}


.home .hero-text  span{
 font-size: 8rem;
 color: #000;
 font-family: Playfair Display;
}
.home .hero-text h1 {
    color: #2c522b;
}
/* 
.hero-text h1 span {
    color: dark;
} */

.home .hero-text .price {
    font-size: 1.5rem;
    color:#000;
    margin-top: 8px;
}
.home .hero-text .banner-btn{
    background-color: #5d8c4a;
    color: white;
    padding: 10px 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 20px 0;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Boutons d'indication (dots) */
.slider-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active {
    background-color: white;
    transform: scale(1.2);
}

/* section categorie */
.categories-section {
  text-align: center;
  padding: 60px 20px;
}

.section-title {
  color: #555;
  font-size: 1.2rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.subtitle {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 40px;
}

.subtitle span {
  color: #5d8c4a;
}

.category-grid {
  display: flex;
  justify-content: center;
}

.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  max-width: 100%;
  margin: 0 auto;
  scrollbar-width: none; /* Firefox */
}

.category-scroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.category-card {
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  /* border-radius: 12px; */
  padding: 10px;
  text-align: center;
  transition: transform 0.3s ease;
  /* cursor: pointer; */
  
}

.category-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  object-fit: cover;
  border-radius: 50%;
}

.category-card h3 {
  font-size: 14px;
  margin-bottom: 5px;
  /* color:#555; */
   color:#323232;

}



/* Benefits */
.benefits {
    padding: 50px 20px;
    text-align: center;
    background: #e9f3ed;
   
    margin-bottom: 30px;
  }
  
  .benefits h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color:#2c522b;
  }
  
  .benefits-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
  }
  
  .benefit-item {
    width: 200px;
  }
  
  .benefit-item img {
    width: 40px;
    margin-bottom: 10px;
  }
  
  .benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #5d8c4a;
  }


     .wrapper-grid{
        display: grid;
        gap: 20px;
        position: relative;
        align-items: center;
        margin-bottom: 70px;
       
    }
    
@media (max-width: 1599px) and (min-width: 1200px) {
    .wrapper-grid {
        grid-template-columns: repeat(3, 1fr); /* 4 colonnes entre 1200px et 1599px */
    }
}

    /* responsive Banner */
    @media (max-width: 1024px) {
.home .hero-text {
    width: 90%;
    left: 50%;
    top:30%;
    transform: translateX(-50%);
    text-align: center;
  }

 .home .hero-text span {
    font-size: 3.5rem; 
    margin-bottom:20px;
  }

  .home .hero-text h1 {
    font-size: 1rem;
  }

  .home .hero-text p {
    font-size: 0.9rem;
    width: 100%;
    margin: 0 auto;
  }

  .home .hero-text .price {
    font-size: 1.2rem;
  }

  .home .hero-text .banner-btn {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
}


@media (min-width: 1025px) {
  .category-scroll {
    max-width: 680px; 
  }
}

/* Tablette - 3 cartes visibles */
@media (min-width: 768px) and (max-width: 1024px) {
  .category-scroll {
    max-width: 510px;
  }
}

/* Mobile - 2 cartes visibles */
@media (max-width: 767px) {
  .category-scroll {
    max-width: 340px; 
    padding-inline: 10px;
  }
}

  