/* Règles globales, chargées après les sections (ex-corps de main.css) */

body {
    font-variant: no-contextual;
}

/* Tailles et graisses des titres : voir @layer base dans inputs.css */
h2, .titre2 {
    scroll-margin-top: calc(var(--spacing) * 12);
}

h1, h2, h3 {
    p {
        margin-bottom: 0 !important;
    }
}

p:has(+ ul) {
    margin: 0 !important;
}

img {
    overflow-clip-margin: unset;
}

/* Listes de contenu (éditeur WYSIWYG) : seules les listes sans classe ont des puces.
   Les listes stylées en Tailwind (menus, méga-menu, footer…) ont une classe et ne sont pas touchées. */
ul:not([class]) > li {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 0px;

    &:last-of-type {
        margin-bottom: 1.5rem;
    }
}

ol:not([class]) > li {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 0px;
}

ol:not([class]):not(:last-child) > li:last-of-type {
    margin-bottom: 1.5rem;
}

/* ============================= */
/* START - Helpers */
/* ============================= */
.container {
    max-width: var(--container-width) !important;
    padding: var(--container-padding);
    margin: 0 auto;

    @media screen and (max-width: 80rem) {
        max-width: 100%;
    }
}

.container-large {
    max-width: var(--container-lg-width) !important;
    padding: var(--container-padding);
    margin: 0 auto;

    @media screen and (max-width: 80rem) {
        max-width: 100%;
    }
}

.z-1 {
    z-index: 1;
}

.z-2 {
    z-index: 2;
}

.xl\:divide-y > .xl\:hidden + :not(.xl\:hidden),
.xl\:divide-y > .hidden + :not(.hidden),
.xl\:divide-y > [hidden] + :not([hidden]),
.divide-y > .xl\:hidden + :not(.xl\:hidden),
.divide-y > .hidden + :not(.hidden),
.divide-y > [hidden] + :not([hidden]) {
    border-top-width: 0 !important;
    border-bottom-width: 0 !important;
}

