/* VARIABLES */
:root {
    --body-padding: 30px;
    --space-md: var(--wp--preset--spacing--md);
}

:root :where(.wp-block-image) {
    margin-top: var(--wp--preset--spacing--md) !important;
    margin-bottom: var(--wp--preset--spacing--md) !important;
}


::-moz-selection {
    color: #eeeeee;
    background-color: #000000c0;
}

::selection {
    color: #eeeeee;
    background-color: #000000c0;
}


/* RESET */
/* reset global */
body {
    margin: 0;
}

/* titres */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500;
    margin: 0;
}

/* listes */
ul,
li {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
}

a:hover {
    font-style: normal;
}

/* blocs WP */
/* .wp-block-template-part,
.wp-block-site-title,
.wp-block-navigation,
.wp-block-navigation__container,
.wp-block-navigation-item {
    margin: 0;
    padding: 0;
} */

/* navigation verticale */
.wp-block-navigation.is-vertical {
    gap: 0;
}

.wp-block-spacer {
    margin: 0 !important;
}

*+.wp-block-spacer {
    margin-block-end: 0 !important;
}


.wp-block-spacer+* {
    margin-block-start: 0 !important;
}



.site-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-columns: clamp(0px, 20vw, 280px) 1fr;

}

.site-sidebar {
    position: sticky;
    top: 0;
}

/* .site-content {
    padding-left: var(--wp--preset--spacing--xl);
} */



/* légendes d'images */
.wp-block-image figcaption {
    font-style: italic;
    /* margin-bottom: 0; */
}


@media (max-width: 767px) {

    /* TAILLES DE TYPO MOBILE */
    :root {
        --wp--preset--font-size--s: 17px;
        --wp--preset--font-size--m: 19px;
        --wp--preset--font-size--l: 19px;
    }


    .site-layout {
        grid-template-columns: 1fr;
    }


    .site-sidebar {
        position: fixed;
        z-index: 2;
        left: 0;
        width: 100%;
        padding-right: var(--wp--preset--spacing--md);
    }

    .site-content {
        padding-top: calc(var(--space-md) * 2 + 1em) !important;
        padding-left: var(--wp--preset--spacing--md) !important;
        position: relative;
        z-index: 0;
    }
}