/**
 * Barre d’administration : sticky dans le flux, sans marge compensatoire sur html.
 * WordPress cible `html` directement (sans classe .admin-bar sur html).
 *
 * --init-studio-sticky-offset : décale sticky/fixed (top) sous la barre d’admin.
 */
:root {
    --wp-admin--admin-bar--height: 32px;
    --init-studio-sticky-offset: 0px;
}

@media screen and (max-width: 782px) {
    :root {
        --wp-admin--admin-bar--height: 46px;
    }
}

body.admin-bar {
    --init-studio-sticky-offset: var(--wp-admin--admin-bar--height, 32px);
}

@media screen {
    html {
        margin-top: 0 !important;
    }
}

@media screen and (max-width: 782px) {
    html {
        margin-top: 0 !important;
    }
}

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.wp-site-blocks {
    position: relative;
}

#wpadminbar {
    position: sticky !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 99999;
}
