/* Front uniquement : les modèles restent éditables normalement dans le FSE. */
html.siao-fixed-header {
    scroll-padding-top: calc(var(--siao-header-height, 0px) + var(--siao-admin-offset, 0px) + 16px);
}
html.siao-fixed-header .wp-site-blocks {
    padding-top: var(--siao-header-height, 0px);
}
html.siao-fixed-header .wp-site-blocks > header.wp-block-template-part {
    position: fixed;
    top: var(--siao-admin-offset, 0px);
    inset-inline: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--wp--preset--color--base);
}
/* Couleur spécifique à la page d’accueil */
html.siao-fixed-header body.home
.wp-site-blocks > header.wp-block-template-part {
    background-color: var(--wp--preset--color--accent-3);
}
/* Page actuelle : couleur héritée de la navigation et trait inférieur */
.wp-block-navigation .current-menu-item > .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item__content[aria-current="page"] {
    color: inherit;
    border-bottom: 2px solid currentColor;
}
@media print {
    html.siao-fixed-header .wp-site-blocks { padding-top: 0; }
    html.siao-fixed-header .wp-site-blocks > header.wp-block-template-part {
        position: static;
    }
}
