.introduction {
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    background: black;
    color: white;
    z-index: 200000;
    padding: 1em;


    display: block;
    position: relative;
    transition: all .5s;
    transition-behavior: allow-discrete;
    opacity: 1;


}

.swiper-slide#introduction>section,
.swiper-slide#caption>section {
    display: block !important;
    margin: 0 10em;
    line-height: 1.2;
    text-indent: 3em;
    max-width: 80ch;
    font-size: 1.5em;

}


.swiper .swiper-pagination {
    display: flex;
    justify-content: center;
    gap: .2em;

    font-family: "FF Ultra", sans-serif;
    font-weight: 900;
    font-feature-settings: "onum";
    color: rgb(255, 255, 255);
    background-color: black;
    padding: .4em;
    width: fit-content;
    left: 50%;
    transform: translate(-50%, 0);
}


.swiper {
    width: 100%;
    height: 100svh;
    box-sizing: border-box;
    position: absolute !important;
    top: 0;
    left: 0;

    justify-content: center;

    .swiper-pagination-fraction {
        text-align: left;
        margin: 1em;

        bottom: 0;
    }

    .swiper-wrapper {}

    .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;

        img,
        video {
            max-width: 90vw;
            max-height: 90vh;
            object-fit: contain;
            height: auto;
            width: 80vw;
        }

    }
}


/* Taille et style des flèches */


/* Changer la couleur au survol */
.swiper-button-next:hover,
.swiper-button-prev:hover {}

.swiper .swiper-button-next:after,
.swiper .swiper-button-prev:after {
    font-family: "FF Ultra", sans-serif;
    font-weight: 900;
    font-size: 1em;
    text-transform: none !important;
    letter-spacing: 0;
    font-variant: initial;
    line-height: 1;
    color: rgb(255, 255, 255);
    background-color: black;
    padding: .4em;
}

.swiper .swiper-button-next::after {
    content: "→" !important;

}

.swiper .swiper-button-prev::after {
    content: "←" !important;

}

.swiper-button-home {
    font-family: "FF Ultra", sans-serif;
    font-weight: 900;
    font-size: 1em;
    right: var(--swiper-navigation-sides-offset, 10px);
    left: auto;

    position: absolute;
    top: calc(50% - var(--swiper-navigation-size) /2);
    height: var(--swiper-navigation-size);

    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    display: none;


}

.swiper-button-home.visible {
    display: flex;
}

.swiper-button-next.swiper-button-disabled,
.swiper-button-prev.swiper-button-disabled {
    opacity: 0 !important;
}

.swiper-button-home a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    background-color: black;
    padding: .4em;
    text-transform: uppercase;
    text-align: center;
}

.hidden {
    display: none;
    opacity: 0;

}

@media (1250px >=width) {

    .swiper-slide#introduction>section,
    .swiper-slide#caption>section {
        display: block !important;
        margin: 0 1em;
        line-height: 1.2;
        text-indent: 3em;
        max-width: 80ch;
        font-size: 1em;

    }

    .swiper .swiper-slide {
        display: flex;
        align-items: flex-start;
        justify-content: flex-end;
    }
}

.introductionImages {
    position: fixed;

    width: 100vw;
    height: 100vh;
    z-index: 999990;
    pointer-events: none;
    /* Laisse passer les clics vers les éléments en dessous */

}

.introductionImages picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 12em;
    pointer-events: auto;
    /* Les images restent interactives */

}

.introductionImages img {

    width: 100%;
    object-fit: cover;
    height: auto;
    transition: all .3s ease;


}

.introductionImages:has(+ .introduction.hidden) {
    filter: grayscale(1);
    transition: all .3s ease;
}

.introductionImages:has(+ .introduction.hidden) img {
    scale: 0.7;
}


.introductionImages>picture {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.introductionImages>picture.hovered>img {
    transform: scale(0.98);

}

.introductionImages>picture.dragging>img {
    transform: scale(1.1);
    cursor: grabbing;
}

@media (1250px >=width) {
    .introductionImages picture {
        position: absolute;
        top: 0;
        left: 0;
        width: 5em;
        pointer-events: auto;
        /* Les images restent interactives */

    }

    .swiper-button-home {
        animation: bounce 1s infinite alternate;
        top: calc(100% - var(--swiper-navigation-size) /2 - var(--body-margin) *2)
    }



    @-webkit-keyframes bounce {
        0% {
            -webkit-transform: scale(1);
            transform: scale(1);
        }

        100% {
            -webkit-transform: scale(1.2);
            transform: scale(1.2);
        }

    }



}