
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f8f9fa;
  color: #333;
}

header {
  position: relative;
  background: #4CAF50;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
   font-size: 2rem; /* taille par défaut */
  margin: 0;
}

header nav a {
  color: white;
  text-decoration: none;
  margin-left: 15px;
  font-size: 1.1rem;
}

/* Media query pour petits écrans (téléphones) */
@media (max-width: 600px) {
  header {
    padding: 10px;
  }

  header h1 {
    font-size: 1.2rem; /* plus petit sur mobile */
  }

  header nav a {
    font-size: 0.9rem; /* aussi plus petit */
    margin-left: 10px;
  }
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-bottom: -50px;
}

.slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.5s ease-in-out, visibility 1.5s;
  z-index: 0;
  display: block;

}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 2;
  max-width: 500px;
  animation: fadeInUp 1.2s ease forwards;
  padding: 1rem;
  border-radius: 10px;
  background-color: rgba(47, 47, 47, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(-40%);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.hero .btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.hero .btn:hover {
  background-color: #45a049;
}

.section.bg-light {
  background-color: #fdf9ef;
}








.section {
  padding: 40px 20px;
  margin-top: 0
}

.section h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.footer {
  background: #4CAF50;
  color: white;
  text-align: center;
  padding: 20px;
}

.btn {
  background: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background: #4CAF50;
}

.about {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 0;
}

.about-text {
  flex: 1 1 60%;
  text-align: justify;
}

.about-img {
  flex: 1 1 35%;
}

.about-img img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}
@media (max-width: 768px) {
  .about {
    flex-direction: column;
  }

  .about-img {
    margin-top: 20px;
  }
}



/* Style normal des liens du menu */
nav#nav-menu a {
  color: white; /* ou une autre couleur par défaut */
  text-decoration: none;
  padding: 10px;
  display: inline-block;
  transition: background-color 0.3s, color 0.3s;
}

/* Style au survol */
nav#nav-menu a:hover {
  background-color: rgba(15, 13, 13, 0.2); /* fond légèrement transparent */
  color: #eb0909; /* ou une autre couleur vive qui ressort bien */
  border-radius: 5px;
}



/* Bouton hamburger */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* NAV desktop */
nav#nav-menu {
  display: flex;
  gap: 15px;
}

/* NAV mobile (menu latéral) */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav#nav-menu {
    position: fixed;
    top: 0;
    left: -250px; /* Caché à gauche */
    width: 250px;
    height: 100%;
    background-color: rgba(76, 175, 80, 0.9); /* 👈 semi-transparent */
    display: flex;
    flex-direction: column;
    padding-top: 60px;
    transition: left 0.3s ease;
    z-index: 1000;
  }

  nav#nav-menu a {
    color: white;
    padding: 15px 20px;
    border-bottom: 1px solid #ffffff33;
    text-decoration: none;
  }

  nav#nav-menu.active {
    left: 0; /* S'affiche depuis la gauche */
  }

  /* Cacher menu horizontal sur mobile */
  header nav:not(#nav-menu) {
    display: none;
  }
}

  /* slide pour mobile */
  @media (max-width: 768px) {
  .hero-content h2 {
    font-size: 1.5rem;
  }

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

  .hero-content .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

