body {
    overflow: hidden;
    transition: background 0.5s ease-in-out;
    background-color: white;
}



header>.informations {
    position: fixed;
    top: 1em;
    display: flex;
    justify-content: space-between;
    gap: 1em;
    left: 50%;
    max-width: 80vw;

    width: 100%;
    transform: translate(-50%, 0);
    z-index: 200;
    mix-blend-mode: difference;
    color: white;


}

header>button {
    display: none;
}

@media screen and (max-width: 1250px) {
    header {
        top: 0;
        gap: 0;
        padding: 1em;
        max-width: 100vw;
    }

}

@media screen and (max-width: 750px) {
    header {}

}

section>.sources {
    opacity: .5;
    margin-top: 1em;
}

section>.sources a:hover {
    text-decoration: underline;
}

.swiper-slide {
    visibility: hidden;
}

.swiper-slide-prev,
.swiper-slide-active,
.swiper-slide-next {
    visibility: visible;
}


header a,
header h1 {}

h1.date {
    font-feature-settings: "onum";
}

header a {
    font-family: "FF Ultra", sans-serif;
    font-weight: 900;
    font-feature-settings: "onum";
    text-decoration: none;
    color: inherit;
    line-height: 0.9;
}



.swiper {
    width: 100vw;
    height: 100dvh;
}


.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: calc(50% - 1em);
    transform: translate(-50%, 0);
}


.swiper {
    width: 100%;
    height: 100dvh;
    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;
}


@media (width <=1250px) {

    header {
        display: flex;
        flex-direction: column;
        text-align: center;


        mix-blend-mode: normal;
        color: black;


    }

    header>.informations {
        opacity: 0;
        height: 0;
        display: none;
        background: white;
        color: black;
        mix-blend-mode: normal;
        padding: 1em;
    }

    header>.informations.open {
        opacity: 1;
        height: auto;
        top: 3em;
        display: block
    }



    header>.informations.open+button.menu-mobile span.open,
    header>.informations+button.menu-mobile span.close {
        display: none;
    }


    header>.informations.open+button.menu-mobile span.close,
    header>.informations+button.menu-mobile span.open {
        display: block;
    }

    header>button.menu-mobile {
        display: block;
        font-family: "FF Ultra", sans-serif;
        font-weight: 900;
        font-feature-settings: "onum";
        text-transform: lowercase;
        text-align: center;
        font-size: 1em;
        width: fit-content;

        position: relative;


        right: 0;
        height: 100%;
        padding: 0;
        display: flex;
        border: none;
        z-index: 10;
        width: 100%;
        justify-content: center;
        background: transparent;

    }

    header>button.menu-mobile>span {
        text-align: center;
        padding: .4em;
        color: white;
        background-color: black;

    }


}




.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: 8em;
    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) {

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


    }

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

    }

}

@media (1250px >=width) {

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

    }


}