/* ------------------------ *
 *     RESET & BASE CSS     *
 * ------------------------ */
 * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: rgb(159, 255, 202);
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: #00AA7F;
  text-decoration: none;
}

/* ------------------------ *
*       HEADER & NAV       *
* ------------------------ */
#MainTop {
  background: rgba(0, 121, 107, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 10px 0;
}

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

#MainTop nav a {
  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);
}

/* ------------------------ *
*   CONTENEUR PRINCIPAL    *
* ------------------------ */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex-grow: 1;
}

/* ------------------------ *
*     TITRES & TEXTES      *
* ------------------------ */
h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #0cc14c;
  margin-bottom: 10px;
}

h2 {
  color: #0cc14c;
  margin: 30px 0 10px;
}

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;
  max-height: 400px;
}

.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;
}

/* ------------------------ *
*        BOUTON PDF        *
* ------------------------ */
.pdf-button {
  text-align: center;
  margin: 30px 0;
}

.pdf-button a {
  background: #c4a3f0;
  color: #fff;
  padding: 12px 20px;
  font-size: 1rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.pdf-button a:hover {
  background: #a387d9;
}

/* ------------------------ *
*         FOOTER           *
* ------------------------ */
footer {
  background-color: #004d40;
  color: white;
  padding: 1rem;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

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

.footer-content a {
  color: white;
}

.footer-content img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/* ------------------------ *
 *     MENU BURGER (Mobile)
 * ------------------------ */
 #menu-label {
  display: none;
  font-size: 1.8rem;
  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;
  }

  /* ✅ Correction du bug où le menu ne s'affichait pas */
  #MainTop nav.active {
      display: flex;
  }

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

/* ------------------------ *
*     BLOCS PROFESSIONNELS
* ------------------------ */
.professional-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* ✅ Adaptatif */
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.professional-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.professional-card img {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.professional-card a {
  display: block;
  color: #00796b;
  font-weight: bold;
  margin-top: 10px;
  text-decoration: none;
}

.professional-card a:hover {
  text-decoration: underline;
}

/* ------------------------ *
*     FOOTER RESPONSIVE
* ------------------------ */
footer {
  background-color: #004d40;
  color: white;
  padding: 1rem;
  text-align: center;
  width: 100%;
  margin-top: auto;
}

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

.footer-content img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

/* ------------------------ *
*      RESPONSIVITÉ GLOBALE
* ------------------------ */
@media (max-width: 1024px) {
  .container {
      padding: 30px;
      margin: 20px auto;
  }

  h1 {
      font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
      padding: 20px;
  }

  h1 {
      font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .professional-section {
      grid-template-columns: 1fr;
  }

  h1 {
      font-size: 1.6rem;
  }
}