/* Bannière d'accueil */

/* Images de fond empilées (position absolue) : fondu enchaîné */
.home-banner__slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility 0s linear .7s;

    &.is-active {
        opacity: 1;
        visibility: visible;
        transition: opacity .7s ease, visibility 0s;
        z-index: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-banner__slide,
    .home-banner__slide.is-active {
        transition: none;
    }
}

/* Fondu blanc au-dessus de l'image (mobile : image sous le texte), puis à gauche dès lg */
.home-banner__media {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 20%);
}

@media (min-width: 1024px) {
    .home-banner__media {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 35%);
        mask-image: linear-gradient(to right, transparent 0, #000 35%);
    }
}

.home-banner__progress {
    width: 0;
}

/* Pastille (WYSIWYG) : 1er paragraphe = libellé, texte en gras = chiffre, le reste = légende */
.home-banner__pastille {
    p {
        margin: 0;
    }

    p:first-child {
        font-size: 11px;
        line-height: 1rem;
        font-weight: 600;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        color: var(--color-blue);
    }

    strong, b {
        display: block;
        font-size: 2.625rem;
        line-height: 3rem;
        font-weight: 600;
        color: var(--color-blue);
    }
}
