/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f9fa;
  
  color: #222;
  line-height: 1.6;
}

/* Header */
.hero-slideshow {
  position: relative;
  height: 550px;
  overflow: hidden;
  color: white;
  padding-top: 20px; /* si tu veux espacer le haut */
}


.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero-slideshow {
  position: relative;
  height: 550px;
  overflow: hidden;
  color: white;
}

header.hero-slideshow .container {
  position: relative;
  z-index: 3;
  background-color: rgba(0, 0, 0, 0.4); /* pour la lisibilité */
  padding: 20px;
  border-radius: 8px;
}


.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  opacity: 0;
  animation: fadeZoom 18s infinite;
}

#slide1 {
  background-image: url('images/arriere_plan1.jpg');
  animation-delay: 0s;
}
#slide2 {
  background-image: url('images/arriere_plan2.png');
  animation-delay: 6s;
  
}
#slide3 {
  background-image: url('images/arriere_plan3.jpg');
  animation-delay: 12s;
}

@keyframes fadeZoom {
  0%, 9% {
    opacity: 0;
    transform: scale(1);
  }
  10% {
    opacity: 1;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.02); /* zoom très léger */
  }
  39% {
    opacity: 1;
    transform: scale(1.03); /* max */
  }
  40%, 100% {
    opacity: 0;
    transform: scale(1.03); /* garde le zoom en sortie */
  }
}



.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 40px 60px;
  border-radius: 12px;
  text-align: center;
  z-index: 2;
}

.hero-overlay h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 1.2rem;
}


/* services*/
#services {
  background-color: #002855; /* fond bleu foncé */
  padding: 60px 20px;
  text-align: center;
}

#services h2 {
  color: white;
  font-size: 2rem;
  margin-bottom: 40px;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 160px;
  color: white;
  transition: transform 0.3s ease;
}

.service-card img {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 1.1rem;
  font-weight: 500;
}

.service-card:hover {
  transform: scale(1.05); /* effet zoom au survol */
}


/* About */
#about {
  padding: 50px 20px;
  background-color: #e9ecef;
  text-align: center;
}

/* Contact */
#contact {
  padding: 50px 20px;
  background-color: white;
  text-align: center;
}

#contact ul {
  list-style: none;
  margin-top: 20px;
}

#contact li {
  margin: 8px 0;
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
}

.btn-whatsapp:hover {
  background-color: #1da851;
}

/* Footer */
footer {
  background-color: #003049;
  color: white;
  text-align: center;
  padding: 15px;
  font-size: 0.9rem;
}

#gallery {
  text-align: center;
  padding: 40px 20px;
  background-color: #f0f0f0;
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 8px;
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
}

.carousel .prev {
  left: 0;
}


#gallery {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(to bottom, #001e3c, #003366); /* bleu nuit dégradé */
  color: white;
}

#gallery h2 {
  color: white; /* orange toujours pour le contraste */
  font-size: 2em;
  margin-bottom: 30px;
}




.carousel {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border: 4px white; /* Orange vif */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(90, 44, 160, 0.2); /* Ombre violette douce */
}

.carousel-images {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.carousel-images img:hover {
  transform: scale(1.03);
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(90, 44, 160, 0.6); /* Violet semi-transparent */
  color: white;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 28px;
  border-radius: 50%;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.carousel button:hover {
  background-color: #ff7e00; /* Orange au survol */
}

.carousel .prev {
  left: 16px;
}

.carousel .next {
  right: 16px;
}


.carousel .next {
  right: 0;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
  }

  .hero-overlay {
    padding: 20px;
    width: 90%;
  }

  .hero-overlay h2 {
    font-size: 1.5rem;
  }

  .hero-overlay p {
    font-size: 1rem;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .service-card {
    width: 100%;
    max-width: 200px;
  }

  .services-grid {
    gap: 30px;
  }
}

