.menu-toggle-button svg,
.menu-close-button svg {
    width: 24px;
    height: 24px;
    display: block;
}

/* Correction ajoutée ici */
.menu-toggle-button,
.menu-close-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px;
    border-radius: 6px;
    color: #4a5568;
    background-color: transparent;
    border: none;
    cursor: pointer;
    /* Styles pour éviter le flash au chargement */
    opacity: 0; /* Rendre invisible par défaut */
    transition: none; /* Désactiver les transitions au chargement initial */
}

/* Ces classes restent pour la gestion JavaScript du bouton */
body.js-loaded .menu-toggle-button,
body.js-loaded .menu-close-button {
    opacity: 1; /* Rendre visible après le chargement JS */
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Réactiver les transitions */
}


.menu-toggle-button:hover,
.menu-close-button:hover {
    background-color: #f7fafc;
}
.menu-toggle-button:focus,
.menu-close-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-color);
}
.menu-toggle-button.hidden,
.menu-close-button.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.menu-toggle-button.visible,
.menu-close-button.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 30;
    display: none;
    opacity: 0;
}
.mobile-nav-overlay.open {
    opacity: 1;
    display: block;
    transition: opacity 0.3s ease-in-out;
}
.mobile-nav-menu {
    position: fixed;
    top: var(--header-total-height);
    left: 0;
    width: 100%;
    height: auto;
    background-color: white;
    z-index: 40;
    transform: translateY(-100%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-unit) 0;
    white-space: nowrap;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
}
.mobile-nav-menu.open {
    transform: translateY(0);
    transition: transform 0.3s ease-out;
}
.mobile-nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0 var(--padding-sm);
    list-style: none;
    margin: 0;
    width: 100%;
}
.mobile-nav-item {
    flex-shrink: 1;
    flex-grow: 0;
    flex-basis: auto;
}
.mobile-nav-item a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: clamp(0.7rem, 2.2vw, 1rem);
    font-weight: 700;
    color: var(--text-color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
    max-width: 100%;
}
.mobile-nav-item a:hover {
    color: var(--accent-color);
}
@media (min-width: 768px) {
    .desktop-nav {
        display: block;
    }
    .header-buttons {
        display: none;
    }
    .mobile-nav-menu,
    .mobile-nav-overlay {
        display: none !important;
    }
}
.site-footer {
    background-color: var(--text-color-primary);
    color: white;
    padding: var(--padding-xl) var(--padding-md);
    text-align: center;
    width: 100%;
    margin-top: auto;
    flex-shrink: 0;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--padding-md);
}
.footer-text {
    font-size: 0.875rem;
    opacity: 0.8;
}
.footer-nav {
    margin-top: var(--padding-md);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--padding-md);
}
.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.footer-link:hover {
    opacity: 1;
    text-decoration: none;
}
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer-nav {
        margin-top: 0;
    }
}


.form__note {
    text-align: center;
}