/* Carousel */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 2000px;
  max-height: 450px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(194, 148, 148, 0.3);
}
img {
    width: 500px;     /* augmente la largeur */
    height: auto;     /* garde les proportions */
}

.carousel-slide {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide img {
  width: 150%;
  border-radius: 10px;
   height: 50%;
}

/* Boutons */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.8);
}


/* Section Hero */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 5%;
  background: #f9f9f9;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: rgba(20, 67, 251, 0.89);
}

.hero-text p {
  margin: 20px 0;
  font-size: 1.2rem;
  color: #555;
}

.hero-text button {
  padding: 12px 24px;
  background: #8fed8f;
  color: #070340;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.hero-text h2 {
    color: rgba(20, 67, 251, 0.89);
}




.hero-text button:hover {
  background: rgba(20, 67, 251, 0.89);
}

.hero-image {
  flex: 1;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  border-radius: 10px;
}

/* Section Services */
.services {
  text-align: center;
  padding: 50px 10%;
  background: white;
}

.services h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #0073e6;
}

.service-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.service-box {
  background: #f1f1f1;
  padding: 6px;
  border-radius: 5px;
  transition: transform 0.3s;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box i {
  font-size: 2rem;
  color: #0073e6;
  margin-bottom: 10px;
}

.service-box h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  color: #333;
}

.service-box p {
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin-top: 20px;
    text-align: center;
  }
  .service-boxes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .service-boxes {
    grid-template-columns: 1fr;
  }
}
