/* Dans ton style.css */

#header {
    position: relative;
    width: 100%;
    background-color: white;
    z-index: 1000;
}

#header .container {
    position: relative;
    width: 100%;
    background-color: white;
}

/* Nouvelle classe qui sera ajoutée par le JS */
.menu-fixe {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    /* Jolie ombre quand c'est collé */
    animation: slideDown 0s ease-out;
    z-index: 9999;
}


/* Animation pour l'arrivée du menu */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* CORRECTION BARRE WORDPRESS (Admin Bar) */
/* Si l'admin bar est là, on décale le menu de 32px vers le bas */
body.admin-bar .menu-fixe {
    top: 32px !important;
}

/* Ajustement mobile pour la barre admin (elle est plus grande parfois sur mobile) */
@media screen and (max-width: 782px) {
    body.admin-bar .menu-fixe {
        top: 46px !important;
    }
}

#header .entete-don {
    background-color: var(--dark-blue-color);
    text-align: end;
    padding: 20px 40px;
}

.btn-entete-don {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    background-color: var(--red-site);
    border-radius: 10px;
    font-size: 18px;
}

#header .container {
    display: flex;
    justify-content: space-between;
    background-color: white;
    width: 100%;
    z-index: 1000;
}

.main-navigation {
    display: flex;
    padding-right: 20px;
}

#primary-menu {
    display: flex;
}

#primary-menu{
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    /* Bonnes pratiques : reset margin */
    padding: 0;
    /* Bonnes pratiques : reset padding */
}

#primary-menu li {
    display: flex;
    position: relative;
}

#primary-menu li::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 5px;
    bottom: 0;
    left: 0;
    background-color: var(--yellow-site);
    transition: all 0.3s ease-in-out;
}

#primary-menu li:hover::before {
    width: 100%;
}

#primary-menu li.current_page_item:before {
    width: 100%;
}

#primary-menu li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    display: flex;
    align-items: center;
    font-size: 1.25rem;
}



.custom-logo-link {
    display: flex;
    padding: 20px;
}

.custom-logo-link img {
    width: 225px;
    height: auto;
}


@media screen and (max-width: 768px) {

    .main-navigation {
        display: none;
    }

    .custom-logo-link img{
        width: 125px;
    }
}