/* Reset de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e6f7d4; /* Vert clair comme Accessibilité */
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Structure globale */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header (Barre de navigation) */
#MainTop {
    background: #004d40;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

#MainTop nav a {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    background: #004d40;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

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

/* Conteneur central (carte) */
main.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin: 40px auto;
    max-width: 600px;
    text-align: left;
}

h1 {
    color: #4caf50;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-align: center;
}

h2 {
    color: #333;
    font-size: 1.3em;
    margin-top: 15px;
}

p, li {
    font-size: 1rem;
    line-height: 1.5;
    margin: 10px 0;
}

a {
    color: #00796b;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Date mise à jour */
.updated-date {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-bottom: 15px;
}

/* Footer */
footer {
    background-color: #004d40;
    padding: 15px;
    text-align: center;
    color: white;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    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%;
}

/* Responsive */
@media screen and (max-width: 600px) {
    #MainTop nav {
        flex-direction: column;
        align-items: center;
    }

    main.container {
        width: 90%;
    }
}

   /* ------------------------ *
 *     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;
    }
  }