header {
    position: relative;
    top: 0;
    width: 100%;
    z-index: 100;
}
.header-standard{
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.83);
    backdrop-filter: blur(26.7px);
}
.header-home{
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 100;
}

/***************************************************************
* 3. NAVIGATION
***************************************************************/
.animated-nav .wp-block-navigation-item__content{
    padding: 0.35em 0.75em;
    border-radius: 6px;
}
.animated-nav .wp-block-navigation-item__content:hover {
    text-decoration: none;
}
.header-standard .wp-block-navigation-item__content:hover {
    background-color: rgba(242, 244, 252, 1);
}
.header-home .wp-block-navigation-item__content:hover {
    background-color: rgba(255, 255, 255, 0.12);
}
.animated-nav .wp-block-navigation-item__content:hover {
    background-color: rgba(199, 199, 199, 0.192);
}


/***************************************************************
* 4. Soulignement animé (version globale)
***************************************************************/
.animated-nav .wp-block-navigation-item__label {
    position: relative; /* Soulignement à la taille du texte */
    padding-bottom: 0.3em; /* Espace entre le texte et le soulignement */
}
.animated-nav .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__label::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--wp--preset--color--text-nav);
    transform-origin: center;
    animation: underlineActive 0.4s forwards ease-out;
}
@keyframes underlineActive {
0% {
    width: 0;
    left: 50%;
    }
100% {
    width: 100%;
    left: 0;
}
}
/* Soulignement blanc pour l’élément actif sur la home */
.header-home .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__label::after,
.header-home .wp-block-navigation-item.current-menu-ancestor .wp-block-navigation-item__label::after {
    background-color: #ffffff;
}
/* Soulignement blanc pour l’élément actif sur la home */
.header-standard .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__label::after,
.header-standard .wp-block-navigation-item.current-menu-ancestor .wp-block-navigation-item__label::after {
    background-color: var(--wp--preset--color--text-nav);
}

/***************************************************************
* 4. Animation du menu sur la page d'acceuil au scroll
***************************************************************/

.home .header-home{
    opacity: 1;
}
.home .header-standard{
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.home .header-home.scrolled{
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}
.home .header-standard.scrolled{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
