
/* ------------------------ *
 *     RESET & BASE CSS     *
 * ------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: rgb(159, 255, 202); /* Fond pastel */
  font-family: Arial, sans-serif;
  color: #333;
}
a {
  color: #00AA7F; 
  text-decoration: none;
}
/* Header */
#MainTop {
  background: rgba(0,121,107,0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
}

#MainTop nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
}

#MainTop nav a {
  text-decoration: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  background: #004d40;
  font-weight: 600;
  transition: transform 0.3s, background 0.3s;
}

#MainTop nav a:hover {
  background: #ffffff;
  color: #00796b;
  transform: scale(1.05);
}

#MainTop nav a:hover {
  background-color: #23494D;
  transform: translateY(-2px);
}
/* ------------------------ *
 *   CONTENEUR PRINCIPAL    *
 * ------------------------ */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
/* ------------------------ *
 *     TITRES & TEXTES      *
 * ------------------------ */
h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #0cc14c;
  margin-bottom: 10px;
}
h2 {
  color: #0cc14c;
  margin: 30px 0 10px;
}
h3 {
  color: #0cc14c;
  margin-bottom: 8px;
  font-size: 1.2rem;
}
p, ul {
  margin-bottom: 10px;
  line-height: 1.6;
}
ul {
  list-style-type: disc;
  padding-left: 20px;
}
.badge {
  display: inline-block;
  background: #0cc14c;
  color: #fff;
  padding: 5px 10px;
  border-radius: 20px;
  margin: 5px 8px 5px 0;
  font-size: 0.9rem;
}
/* ------------------------ *
 *          HERO            *
 * ------------------------ */
.hero {
  position: relative;
  text-align: center;
  margin: 20px 0;
}
.hero img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  height: 100%;
}
.hero-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 1.5rem;
}
/* Footer */
footer {
  background-color: #004d40;
  color: white;
  padding: 1rem;
  text-align: center;
  width: 100%;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.footer-content a {
  color: white;
  text-decoration: none;
}

.footer-content a:hover {
  text-decoration: underline;
}

.footer-content img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
/* ------------------------ *
 *     MENU BURGER (Mobile)
 * ------------------------ */
 #menu-label {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: white;
  padding: 10px;
  text-align: center;
  background: #004d40;
}

#MainTop nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
  flex-wrap: wrap;
}

#MainTop nav a {
  text-decoration: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  background: #004d40;
  font-weight: 600;
  transition: transform 0.3s, background 0.3s;
}

#MainTop nav a:hover {
  background: #ffffff;
  color: #00796b;
  transform: scale(1.05);
}

/* Mode mobile */
@media (max-width: 768px) {
  #menu-label {
      display: block;
      padding: 15px;
      font-size: 1.5rem;
  }

  #MainTop nav {
      display: none;
      flex-direction: column;
      align-items: center;
      width: 100%;
      background: #004d40;
      position: absolute;
      top: 60px;
      left: 0;
      z-index: 999;
  }

  /* ✅ Ajout de cette ligne pour s'assurer que la classe active s'affiche bien */
  #MainTop nav.active {
      display: flex;
  }

  #MainTop nav a {
      width: 100%;
      text-align: center;
      padding: 15px;
      font-size: 1.2rem;
  }
}