@font-face {
    font-family: 'UniversLTStd-Bold';
    src: url("./fonts/UniversLTStd-Bold.otf");
    src: url("./fonts/UniversLTStd-Bold.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-size: 1.2em;
}

@font-face {
    font-family: 'UniversLTStd-Black';
    src: url("./fonts/UniversLTStd-Black.otf");
    src: url("./fonts/UniversLTStd-Black.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-size: 1.2em;
}

@font-face {
    font-family: 'UniversLTStd';
    src: url("./fonts/UniversLTStd.otf");
    font-weight: normal;
    font-style: normal;
    font-size: 1.2em;
}
* {
    padding: 0;
    margin :0;
   
}
body {
    font-family: "UniversLTStd", sans-serif;
    height: 100vh;
    vertical-align: middle;
    
}
.container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: orange;
}
/* Bord doux uniquement sur les thumbnails */

.container .img_grid {
    border: 4px solid rgba(0, 0, 0, 0.8);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.20);
    box-sizing: border-box;
}

/* =========================================
   IMAGE DE FOND / IMAGE DU HAUT
   ========================================= */

.grid1 {
    position: absolute;
    left: 0;
    top: 0;

    width: 100vw;
    height: 18vh;

    z-index: 1;
}

.positiongrid1 {
    position: absolute;
    left: 0;
    top: 0;
}


/* Image de fond beaucoup moins dominante */

/* .item1 {
    position: absolute;

    left: 50%;
    top: 0;

    width: 50vw;
    height: 18vh;

    transform: translateX(-50%);

    overflow: hidden;
}

.item1 img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0.35;
} */


/* =========================================
   TITRE
   ========================================= */

/* .item2 {
    position: absolute;

    left: 50%;
    top: 11vh;

    transform: translateX(-50%);

    width: auto;
    height: auto;

    background: transparent;

    z-index: 10;
}
*/
.titre {
    color: rgb(9, 6, 0);

    text-align: center;

    font-size: clamp(1.8rem, 3vw, 3.5rem);

    font-family: "UniversLTStd-Black", sans-serif;

    white-space: nowrap;
} 


/* =========================================
   PHOTOS LIBRES
   ========================================= */
.item1,
.item2,
.item3,
.item4,
.item5,
.item8,
.item9,
.item10,
.item11 {
    position: absolute;

    background: transparent;

    overflow: hidden;

    z-index: 5;
}


/* Photo 1 */
.item1 {
    left: 15vw;
    top: 25vh;

    width: 13vw;
    height: 25vh;

    transform: rotate(-3deg);
}
.item2 {
    left: 38vw;
    top: 29vh;

    width: 18vw;
    height: 20vh;

    transform: rotate(-3deg);
}

.item3 {
    right: 35vw;
    top: 42vh;

    width: 18vw;
    height: 16vh;

    transform: rotate(-9deg);
}


/* Photo 2 */

.item4 {
    left: 25vw;
    top: 22vh;

    width: 14vw;
    height: 17vh;

    transform: rotate(8deg);
}


/* Photo 3 */

.item5 {
    left: 25vw;
    top: 37vh;

    width: 14vw;
    height: 25vh;

    transform: rotate(4deg);
}


/* Photo 4 */

.item8 {
    right: 15vw;
    top: 47vh;

    width: 14vw;
    height: 28vh;

    transform: rotate(12deg);
}
.item9 {
    right: 25vw;
    top: 36vh;

    width: 14vw;
    height: 28vh;

    transform: rotate(-2deg);
}


/* Photo 5 */

.item10 {
    left: 38vw;
    bottom: 27vh;

    width: 12vw;
    height: 21vh;

    transform: rotate(3deg);
}
.item11 {
    right: 36vw;
    bottom: 19vh;

    width: 12vw;
    height: 21vh;

    transform: rotate(3deg);
}

/* =========================================
   IMAGES
   ========================================= */

.img_grid {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    cursor: pointer;

    transition:
        transform 0.45s ease,
        opacity 0.45s ease;
}


.img_gridHor {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


/* =========================================
   SURVOL
   ========================================= */

.item3:hover,
.item4:hover,
.item5:hover,
.item8:hover,
.item9:hover,
.item10:hover {
    z-index: 50;
}


.item3:hover .img_grid,
.item4:hover .img_grid,
.item5:hover .img_grid,
.item8:hover .img_grid,
.item9:hover .img_grid,
.item10:hover .img_grid {
    transform: scale(1.08);
}


/* =========================================
   ÉLÉMENT VIDE
   ========================================= */

/* .item9 {
    display: none;
} */
/* =========================================
   GALERIE INTERACTIVE
   ========================================= */

.gallery {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* La grille originale */
.container {
    position: relative;
    z-index: 2;
    transition: none;
}

/* Images */
.container img {
    cursor: pointer;
    display: block;
    max-width: 100%;
}

/* Petit effet au survol */
.container img {
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.container img:hover {
    transform: scale(1.06);
    z-index: 20;
}

/* =========================================
   GRANDE IMAGE À DROITE
   ========================================= */

.large-view {
     position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;

    width: 50vw;
    height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000;

    opacity: 0;
    visibility: hidden;

    z-index: 100;
    pointer-events: none;
}

.large-image {
    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    object-fit: contain;

    padding: 5px;
    box-sizing: border-box;

    display: block;
}
/* Bouton fermer */

.close-gallery {
    position: absolute;
    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;
    background: transparent;

    color: #fff;

    font-family: Arial, sans-serif;
    font-size: 40px;
    font-weight: 200;

    cursor: pointer;
    z-index: 110;
}

.close-gallery:hover {
    opacity: 0.5;
}


/* =========================================
   MODE IMAGE OUVERTE
   ========================================= */

.gallery.open .large-view {
    pointer-events: auto;
}


/* Les petites images passent à gauche */

.gallery.open .container {
    position: fixed;

    left: 0;
    top: 0;

    width: 50vw;
    height: 100vh;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 20px;

    box-sizing: border-box;
}


/* Les images deviennent plus petites */

.gallery.open .container img {
    cursor: pointer;
}

/* =========================================
   BOUTON RETOUR ACCUEIL
   ========================================= */

/* .back-home {
    position: fixed;

    top: 25px;
    left: 25px;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 16px;

    color: #000;
    background: rgba(255, 255, 255, 0.85);

    text-decoration: none;

    font-family: "UniversLTStd", sans-serif;
    font-size: 14px;

    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 30px;

    z-index: 200;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.back-arrow {
    font-size: 20px;
    line-height: 1;
}

.back-home:hover {
    background: #000;
    color: orange;

    transform: translateX(-3px);
} */

/* =========================================
   RETOUR INDEX
   ========================================= */

.retour-index {
    position: fixed;

    top: 20px;
    left: 20px;

    display: block;

    padding: 8px 15px;

    color: #000;
    background: #fff;

    text-decoration: none;

    font-family: "UniversLTStd", sans-serif;
    font-size: 14px;

    border-radius: 20px;

    z-index: 9999;

    transition: all 0.3s ease;
}

.retour-index:hover {
    background: #000;
    color: orange;
}


/* =========================================
   MOBILE
   ========================================= */
/* =========================================
   VERSION TÉLÉPHONE
   ========================================= */

/* =========================================
   VERSION TÉLÉPHONE
   ========================================= */

@media (max-width: 700px) {

    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
      
        
    }

    .gallery {
        position: relative;
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
    }

    .container {
        position: relative;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
        background-color: orange;
    }


.retour-index {
    top: 12px;
    left: 12px;

    padding: 6px 11px;

    font-size: 12px;
}


    /* =====================================
       LES PHOTOS
       ===================================== */

    .item1,
    .item2,
    .item3,
    .item4,
    .item5,
    .item8,
    .item9,
    .item10,
    .item11 {
        position: absolute;
        display: block;
        overflow: hidden;
        background: transparent;
        z-index: 5;
    }


    /* =====================================
       POSITION DES PHOTOS SUR TÉLÉPHONE
       ===================================== */

    .item1 {
        left: 18vw;
        top: 15vh;
        width: 34vw;
        height: 21vh;
        transform: rotate(-4deg);
    }

    .item2 {
        left: 38vw;
        top: 41vh;
        width: 30vw;
        height: 16vh;
        transform: rotate(13deg);
    }

    .item3 {
        right: 33vw;
        top: 29vh;
        width: 35vw;
        height: 12vh;
        transform: rotate(-3deg);
    }

    .item4 {
        left: 14vw;
        top: 35vh;
        width: 25vw;
        height: 16vh;
        transform: rotate(4deg);
    }

    .item5 {
        left: 23vw;
        top: 52vh;
        width: 29vw;
        height: 16vh;
        transform: rotate(9deg);
    }

    .item8 {
        left: 58vw;
        top: 23vh;
        width: 25vw;
        height: 19vh;
        transform: rotate(3deg);
    }
 .item9 {
       right: 8vw;
        top: 42vh;
        width: 25vw;
        height: 19vh;
        transform: rotate(5deg);
    }
    .item10 {
        left: 18vw;
        bottom: 18vh;
        width: 22vw;
        height: 18vh;
        transform: rotate(-3deg);
    }

    .item11 {
        right: 28vw;
        bottom: 23vh;
        width: 24vw;
        height: 19vh;
        transform: rotate(4deg);
    }


    /* =====================================
       IMAGES
       ===================================== */

    .img_grid,
    .img_gridHor {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        cursor: pointer;
    }


    /* =====================================
       PAS D'EFFET HOVER SUR TÉLÉPHONE
       ===================================== */

    .container img:hover {
        transform: none;
    }


    /* =====================================
       PHOTO OUVERTE
       ===================================== */

    .gallery.open .container {
        position: fixed;
        left: 0;
        top: 0;

        width: 28vw;
        height: 100vh;

        padding: 4px;

        overflow: hidden;

        box-sizing: border-box;

        background-color: orange;
    }


    /* =====================================
       MINIATURES À GAUCHE
       ===================================== */

    .gallery.open .item1,
    .gallery.open .item2,
    .gallery.open .item3,
    .gallery.open .item4,
    .gallery.open .item5,
    .gallery.open .item8,
    .gallery.open .item9,
    .gallery.open .item10,
    .gallery.open .item11 {

        position: relative;

        left: auto;
        right: auto;
        top: auto;
        bottom: auto;

        width: 100%;
        height: 10vh;

        margin-bottom: 5px;

        transform: none;
    }


    /* =====================================
       GRANDE PHOTO À DROITE
       ===================================== */

@media (max-width: 700px) {

    .large-view {
        left: 28vw;
        right: 0;

        width: 72vw;
        height: 100vh;

        background: #000;
    }

    .large-image {
        width: 100%;
        height: 100%;

        object-fit: contain;

        padding: 3px;
        box-sizing: border-box;
    }

}


    /* =====================================
       BOUTON FERMER
       ===================================== */

    .close-gallery {
        position: absolute;

        top: 8px;
        right: 8px;

        width: 35px;
        height: 35px;

        font-size: 30px;

        color: white;

        z-index: 110;
    }

}
   
/*
.item11{
    grid-column: 3;
    grid-row: 3;
    background-color:  rgb(255, 255, 255); 
}

.item12{
    grid-column: 4;
    grid-row: 3;
    background-color: rgb(0, 0, 0);
}

.item13{
    grid-column: 1;
    grid-row: 4;
    background-color:  rgb(255, 255, 255); 
}

.item14{
    grid-column: 2;
    grid-row: 4;
    background-color: rgb(0, 0, 0);
}

.item15{
    grid-column: 3;
    grid-row: 4;
    background-color:  rgb(255, 255, 255); 
}

.item16{
    grid-column: 4;
    grid-row: 4;
    background-color: rgb(0, 0, 0);
}

.item70{
    grid-column: 1;
    grid-row: 5;
    background-color:  rgb(255, 255, 255); 
}

.item18{
    grid-column: 2;
    grid-row: 5;
    background-color: rgb(0, 0, 0);
}

.item19{
    grid-column: 3;
    grid-row: 5;
    background-color:  rgb(255, 255, 255); 
}

.item20{
    grid-column: 4;
    grid-row: 5;
    background-color: rgb(0, 0, 0);
}

.item21{
    grid-column: 1;
    grid-row: 6;
    background-color:  rgb(255, 255, 255); 
}

.item22{
    grid-column: 2;
    grid-row: 6;
    background-color: rgb(0, 0, 0);
}

.item23{
    grid-column: 3;
    grid-row: 6;
    background-color:  rgb(255, 255, 255); 
}

.item24{
    grid-column: 4;
    grid-row: 6;
    background-color: rgb(0, 0, 0);
} */