/* STYLES DE BASE */
html {
    font-size: 16px !important;
}

.container {
    width: 80rem !important;
}

.post {
    width: 56rem !important;
}

/* ANIMATION AU SCROLL */
[data-block] {
    opacity: 0;
    transition: transform 0.5s linear, opacity 0.5s linear;

    &:nth-of-type(odd) {
        transform: translateX(-50px);
    }

    &:nth-of-type(even) {
        transform: translateX(50px);
    }

    &.is-visible {
        opacity: 1;
        transform: translateX(0);
    }
}


/* TAILWIND PROSE */
.prose-dark {
    :not(.button) {
        color: #f9f9f9 !important;
    }

    h2, h3 {
        color: #fff !important;
    }

    .button * {
        color: inherit !important;
    }
}

/* IMAGES DES ARTICLES */
.wp-block-image, .wp-image-module {
    position: relative;
    z-index: 1;
    padding: 125px !important;

    img {
        position: relative;
        mix-blend-mode: color;
    }

    &::after {
        z-index: 2;
        content: '';
        position: absolute;
        width: 250px;
        height: 250px;
        border-radius: 50%;
        mix-blend-mode: overlay;
    }

    &:nth-child(3n + 1)::after {
        background: var(--color-primary);
        top: calc(100% - 320px);
        left: 60px;
    }
    &:nth-child(3n + 2)::after {
        background: var(--color-secondary);
        top: calc(100% - 320px);
        left: calc(100% - 320px);
    }
    &:nth-child(3n + 3)::after {
        background: var(--color-alt);
        top: 60px;
        left: 60px;
    }
}

/* EFFET DE LA CHARTE SUR LES ICONES/PHOTOS DES BLOCS DE CITATIONS */
.blockquote .blockquote-icon::before {
    content: '';
    position: absolute;
    top: 40%;
    left: -10%;
    width: 75px;
    height: 75px;
    background: transparent;
    border: 6px solid var(--color-primary-dark);
    border-radius: 50%;
}

/* BLOCK `image_with_text` */
.image-with-text__color-inverted {
    background-color: var(--color-primary-dark);
    border-radius: var(--radius-semilarge);

    .image-with-text__content {
        margin-right: calc(var(--spacing) * 16);

        h2:first-child {
            background-color: var(--color-primary-light);
            padding: calc(var(--spacing) * 4) calc(var(--spacing) * 8);
            color: var(--color-primary-dark) !important;
            border-radius: var(--radius-semilarge);
        }
    }
}

.background-block.container > div > :not(.container) {
    .image-with-text:not(.image-with-text__reversed) > div:first-child {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
    .image-with-text__reversed > div:first-child {
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
    }
}
