* , *::before, *::after{
    box-sizing: border-box;
}

/* Permettre la sélection des paragraphes avec soulignement noir */
::selection {
    background-color: rgba(0, 0, 0, 0);
    color: inherit;
    text-decoration: none;
}

::-moz-selection {
    background-color: rgba(0, 0, 0, 0.2);
    color: inherit;
}

/* Permettre la sélection sur les paragraphes */
p {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

html, body{
    height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
}

html.page-work3,
body.page-work3 {
    height: 100vh;
    overflow-y: hidden !important;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


body{
    margin-bottom: 30px;
    color: rgb(0, 0, 0);

}

body.page-work3 {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow-y: hidden !important;
}

/* Background overrides per page */
body.page-work1{
    background-image: url('IMAGE/BG/1.jpg');
}

body.page-work2{
    background-image: url('IMAGE/BG/2.jpg');
}

body.page-work3{
    background-image: url('IMAGE/BG/3.jpg');
}


span{
    margin-left: 200px;
}

h3{
    position: fixed;
    top: 0;
    right: 0;
    z-index: 10;
}

.titre{
    width: 60vw;
    font-size: 70px;
    line-height: 1;
}

.InfoImage{
    height: 90%;
    display: flex;
    justify-content: space-between;
    width: max-content;
    min-width: 100vw;
    position: relative;
    z-index: 1;
}

body > *:not(canvas#khakiOverlay):not(.element-fixed):not(.texteAssembly):not(.grillTexte) {
    position: relative;
    z-index: 1;
}

.AllTexte{
    height: 100%;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    font-size: 25px;
    width: 40%;
}

.AllTexte2{
margin-left: -30vw;
right: 30px;

}

.ImageLinked{
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    width: 80vw;
    margin-left: 5vw;
    gap: 25px;
}

.row{
    margin-top: 50px;
    flex-direction: row;
    display: flex;
    justify-content: space-between;
}

.ImageLinked img{
    width: auto;
    max-width: 20vw;
    height: auto;
    object-fit: cover;
}


.texte1{
    color: white;
}

.inline-highlight{
     background-color: rgba(72, 79, 70, 0.90);
     -webkit-box-decoration-break: clone;
     box-decoration-break: clone;
     margin-left: 0 !important; /* annule le style global span{margin-left} */
}





/* ------------------------------------CAROUSEL WORK 3 */

/* Container du carrousel */
.carousel-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    pointer-events: none;
    scroll-behavior: smooth;
}

/* Carousel */
.carousel {
    display: flex;
    align-items: center;
    scroll-snap-type: x mandatory;
    pointer-events: auto;
    padding: 0 calc(50vw - 20vh);
}

/* Images du carousel */
.carousel-image {
    max-height: 40vh;
    object-fit: contain;
    scroll-snap-align: center;
    display: block;
    cursor: pointer;
    transition: filter 0.2s ease;
    flex-shrink: 0;
    pointer-events: auto;
    min-width: 80vh;
    opacity: 0.5;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.2s ease;
}

/* Image principale (au centre) */
.carousel-image.active {
    min-width: 80vh;
    max-height: 80vh;
    opacity: 1;
    transform: scale(1);
}

.effet-blury img.blury {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    display: block;
    clip-path: inset(0); /* clippe le blur sur l'image elle-même */
    transform: translateZ(0); /* isole le filter dans son propre contexte */
}

.effet-blury canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* ----------------------TEXTE WORK2 */

.grillTexte{
    margin-top: 30vh;
    width: auto;
    height: 70vh;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    gap: 30px;
    overflow-x: auto;
    overflow-y: hidden;

}


.texte{
    width: 40vw;
    font-size: 25px;
    line-height: 1;
    color: white;
    transition: line-height 0.4s ease-out, font-size 0.4s ease-out, transform 0.4s ease-out;
    position: relative;
    overflow: hidden;
    background: transparent;
    pointer-events: auto;
    align-self: flex-start;
    flex-shrink: 0;
}

.texte2{
    width: 15vw;
}

.texte.texte-expanded{
    line-height: 0.7;
    font-size: 35px;
    overflow: hidden;
}

.texte.texte-collapsed{
    line-height: 0.3;
    overflow: hidden;
}

















/* -----------------------MEDIAQUERYYYYYYYYYYyyyy */

@media only screen and (max-width: 768px) {

    html, body{
        overflow-y: hidden;
    }

    span{
        margin-left: 20px;
    }

    .titre{
        height: 10vh;
        margin-top: 40px;
        font-size: 30px;
        width: 90vw;
    }

    #video-index {
        display: none;
    }

    .InfoImage{
        padding-right: 0;
    }

    .ImageLinked{
        flex-direction: column;
        width: 90vw;
        margin-left: 0vw;
    }


    .Horiz{
        display: none;
    }


    .ImageLinked img{
        height: auto;
        width: 100%
    }


    .texte1{
        width: 100%;
        font-size: 17px;
    }

    .AllTexte{
        height: auto;
    }



    .gallery-grid{
        grid-auto-flow: column;
        grid-template-rows: repeat(2, 50vh);
        grid-auto-columns: 50vw;
        gap: 12px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .gallery-grid img{
        width: 100%;
        height: auto;
        max-height: 100%;
    }




    /* ----------------------TEXTE WORK2 */

    .texte{
    width: 50vw;
    font-size: 15px;
}

.texte2{
    display: none;
}
.texte.texte-expanded{
    line-height: 0.7;
    font-size: 25px;
    overflow: hidden;
}


/* WORK 3 */

.carousel-container {
    overflow-y: hidden;

}


}

