/* Style du bouton burger */
.burger-menu {
    display: block;
    padding: 15px;
    cursor: pointer;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 9999;
    background: #2c3e50; /* Couleur du titre h1 */
    border-radius: 5px;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    transition: .3s all;
}

.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 8px; }
.burger-icon span:nth-child(3) { top: 16px; }

/* Animation du burger quand actif */
.burger-icon.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 8px;
}

.burger-icon.active span:nth-child(2) {
    opacity: 0;
}

.burger-icon.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 8px;
}

/* Style du menu de navigation */
.nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: #e8e8e8; /* Gris légèrement plus foncé que #f4f4f4 */
    flex-direction: column;
    padding: 1rem;
    padding-top: 60px;
    box-sizing: border-box;
    overflow-y: auto;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 9997;
}

.nav-links.active {
    display: flex;
    transform: translateX(0);
}

/* Style des sections du menu */
.nav-section {
    margin-bottom: 1rem;
}

.nav-section h3 {
    color: #2c3e50 !important; /* Même couleur que le h1 */
    font-size: 0.9rem;
    margin: 0.5rem 0;
    padding: 0.5rem;
    border-bottom: 1px solid #ccc;
    font-weight: bold;
}

/* Style des liens */
.nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 0.5rem !important;
    transition: .3s all !important;
    white-space: nowrap !important;
    color: #333 !important; /* Même couleur que le texte de body */
    text-decoration: none !important;
    font-family: Arial, sans-serif !important;
    border-radius: 4px;
}

.nav-link:hover {
    background: #3498db !important; /* Couleur du bouton submit */
    color: white !important;
}

/* Style des icônes */
.nav-link .icon {
    margin-right: 8px !important;
}

/* Style de l'overlay */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* Plus transparent */
    z-index: 9996;
}

.overlay.active {
    display: block;
}

/* Ajustement pour le contenu principal */
body {
    margin: 0;
    min-height: 100vh;
}
