/*********** Keyframes ***********/

@keyframes fade-in-top {
    from {
        opacity: 0;
        transform: translateY(-350px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-bottom {
    from {
        opacity: 0;
        transform: translateY(350px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-top-filtres {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lightbox-opacite {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/*********** Header ***********/

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    box-shadow: 0px 4px 4px 0 #00000008;
}

.burger-open{
    display: none;
}

.logo-site {
    margin-left: 100px;
}

.logo-site img {
    max-width: 250px;
}

nav {
    margin-right: 100px;
}

/*********** Menu ***********/
.menu {
    display: flex;
    gap: 50px;
}

/* Menu burger */

.menu-burger {
    display: none;
}

.ligne {
    width: 100%;
    height: 2px;
    background-color: #000;
}

.navigation-burger {
    display: none;
    width: 100%;
    height: calc(100% - 80px);
    position: absolute;
    background-color: #E00000;
    z-index: 99;
    animation: fade-in-top 1s ease-in-out;
    padding: 200px 0 2830px 0;
}

.navigation-burger ul {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-right: 30px;
}

.navigation-burger a {
    color: #FFFFFF !important;
    font-size: 45px;
}



.menu li {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu a {
    color: black;
    text-decoration: none;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
}

.menu a:hover {
    font-weight: 700;
}

/* Modale de contact */

.emplacement-modale {
    display: none;
    position: fixed;
    z-index: 99;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    animation: fade-in-bottom 1s ease-in-out;
}

#modale-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fermeture {
    margin: 3px 0 3px 580px;
    background: #D8D8D8;
    border: 1px solid #D8D8D8;
    border-radius: 2px;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
}

.fermeture:hover {
    font-weight: 700;
    cursor: pointer;
}

.contenu-modale {
    width: 597px;
    overflow: hidden;
    border: 5px #000 solid;
    background-color: #FFFFFF;
}

.image-contact {
    height: 105px;
    width: 885px;
    margin-left: -145px;
    margin-top: 10px;
}

.shortcode-formulaire {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.libellé {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-style: normal;
}

.libellé input {
    border-radius: 8px;
    border: 1px #B8BBC2 solid;
    width: 263px;
    height: 40px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.libellé textarea {
    border-radius: 8px;
    border: 1px #B8BBC2 solid;
    width: 263px;
    height: 210px;
    text-transform: uppercase;
}

.bouton-envoyer {
    margin-left: 2px;
}

.bouton-envoyer input {
    background: #D8D8D8;
    border: 1px solid #D8D8D8;
    border-radius: 2px;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
    width: 263px;
    height: 50px;
}

/*********** Home.PHP ***********/

/* Hero */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    text-transform: uppercase;
    color: transparent;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 700;
    font-style: italic;
    font-size: 96px;
    line-height: 140px;
    position: absolute;
    z-index: 50;
    -webkit-text-stroke: 3px #FFFFFF;
}

.hero-background {
    position: relative;
    width: 100%;
    height: 950px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-background figure {
    width: 100%;
    height: 100%;
}


.hero-background figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bloc photos */

.bloc-les-photos {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
}

/* Filtres */

.filtres {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 60px 0 30px 0;
    gap: 30px;
    text-transform: uppercase;
}


#filtre-tri {
    padding-left: 300px;
}

.menu-deroulant {
    width: 260px;
    height: 45px;
    border: 1px solid #B8BBC2;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    line-height: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-titre {
    padding-left: 10px;
}

.cache {
    display: none;
}

.menu-fleche {
    padding-right: 10px;
    cursor: pointer;
}

.apparition {
    animation: fade-in-top-filtres 0.5s ease-in-out;
}

.rotation {
    transform: rotate(180deg) translateX(10px);
    transition: transform 0.5s ease-in-out;
}

.menu-ouvert {
    border: 1.3px solid #215AFF
}

.menu-options {
    display: none;
    position: absolute;
    flex-direction: column;
    width: 260px;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 12px;
    line-height: 18px;
    justify-content: flex-start;
    align-items: center;
    z-index: 75;
}

.menu-option {
    height: 45px;
    padding-left: 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
}

.cache {
    height: 17px;
    cursor: pointer;
}

.dernier {
    border-radius: 0 0 8px 8px;
}

.menu-option:hover {
    background-color: #FFD6D6;
}

.menu-option:active {
    background-color: #FE5858;
}

.menu-option:focus {
    background-color: #E00000
;
}

.menu-option.selectionne {
    background-color: #E00000;
    color: #fff;
}

.menu-option.dernier-selectionne {
    background-color: #E00000;
    color: #fff;
    border-radius: 0 0 8px 8px;
}

/* Photos */

.affichage-des-photos {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zone-les-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 20px;
}

/* Bouton Charger plus */

.bouton-accueil {
    margin-top: 30px;
}

.bouton-accueil .voir-plus {
    margin-bottom: 30px;
}

/* Message d'erreur AJAX */

.message-erreur {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-style: normal;
    font-size: 20px;
    line-height: 15px;
    margin: 20px 0 40px 0;
    color: #E00000;
}

/*********** Overlay Survol Photo ***********/

.lien-photo {
    display: none;
}

.zone-les-photos .autres-photos, .zone-photos .autres-photos {
    position: relative;
}

.zone-les-photos .survol-photo, .zone-photos .survol-photo {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    height: 98.5%;
    z-index: 65;
    justify-content: center;
    align-items: center;
}

.zone-les-photos .structuration-survol-photo, .zone-photos .structuration-survol-photo {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    text-transform: uppercase;
    font-size: 15px;
    line-height: 20px;
}

.zone-les-photos .haut-survol, .zone-photos .haut-survol {
    transform: scale(1.6);
    position: absolute;
    top: 15px;
    left: 520px;
}

.zone-les-photos .haut-survol i, .zone-photos .haut-survol i {
    background-color: #000;
    padding: 6px;
    border-radius: 50%;
    opacity: 0.8;
    cursor: pointer;
}

.zone-les-photos .milieu-survol, .zone-photos .milieu-survol {
    transform: scale(2.4);
    position: absolute;
}

.zone-les-photos .milieu-survol i, .zone-photos .milieu-survol i {
    cursor: pointer;
    opacity: 0.8;
}

.zone-les-photos .bas-survol, .zone-photos .bas-survol {
    display: flex;
    gap: 220px;
    transform: scale(1.5);
    position: absolute;
    top: 450px;
    opacity: 0.8;
}

.survol-reference {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-style: normal;
}

.survol-categorie {
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
}

/*********** Lightbox ***********/

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 666;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #FFFFFF;
    animation: lightbox-opacite 0.5s ease-in-out;
}

.lightbox-fermeture {
    width: 100%;
    height:20px;
}

.lightbox-fermeture i {
    position: fixed;
    top: 30px;
    right: 30px;
    cursor: pointer;
    transform: scale(2);
    opacity: 0.8;
}

.lightbox-fermeture i:hover {
    opacity: 1;
    transition: opacity 0.3s;
}

.lightbox-affichage {
    width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: scroll;
}

.lightbox-affichage::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.lightbox-affichage img {
    animation: lightbox-opacite 0.8s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    object-fit: cover;
}

.lightbox-fleches {
    width: 100%;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 16px;
    line-height: 18px;
    display: flex;
    justify-content: space-between;
    position: fixed;
}

.precedente, .suivante {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 667;
}

.suivante {
    padding-right: 20px;
}

.precedente {
    padding-left: 20px;
}

.lightbox-precedente, .lightbox-suivante {
    cursor: pointer;
    opacity: 0.8;
}

.lightbox-precedente:hover, .lightbox-suivante:hover {
    font-weight: 800;
    transition: 0.3s;
    opacity: 1;
}

.precedente i, .suivante i {
    transform: scale(1.7);
    cursor: pointer;
    opacity: 0.8;
}

.precedente i:hover, .suivante i:hover {
    transform: scale(2);
    transition: 0.3s;
    opacity: 1;
}

.informations-photo {
    width: 100%;
    display: flex;
    justify-content: center;
    text-transform: uppercase;
    gap: 480px;
    margin-top: 10px;
    margin-bottom: 10px;
    font-style: normal;
    font-size: 16px;
    line-height: 21px;
}

.reference-photo {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.categorie-photo {
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
}

/*********** Single-photo.PHP ***********/

.bloc-photo {
    display: flex;
    margin: 0;
    margin-top: 30px;
}

.zone-gauche {
    width: 50%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    margin-left: 70px;
    margin-bottom: 20px;
}

.infos-photo {
    display: flex;
    flex-direction: column;
    width: 420px;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 15px;
    text-transform: uppercase;
    line-height: 20px;
}

.infos-photo h2 {
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: italic;
    font-size: 66px;
    line-height: 60px;
    margin-bottom: 20px;
}

.zone-droite {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 70px;
}

.la-photo {
    width: 100%;
    height: 100%;
}

.la-photo figure {
    width: 100%;
    height: 100%;
}

.la-photo figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bandeau-interactions {
    width: 100%;
    height: 118px;
    display: flex;
}

.bandeau-gauche {
    width: 50%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid black;
    margin-left: 70px;
}

.bandeau-gauche p {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-style: normal;
}

.bouton-photo-unique {
    background-color: #D8D8D8;
    padding: 8px 15px 8px 15px;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
    color: #000;
    width: 270px;
    height: 50px;
    border-radius: 2px;
    border: 1px solid #D8D8D8;
    cursor: pointer;
}

.bandeau-droit {
    width: 50%;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    justify-content: flex-end;
    margin-right: 80px;
}

.fleches:hover {
    transform: scale(1.25);
}

.div-fleches, .div-vignettes {
    display: flex;
    flex-direction: row;
}

.div-fleches {
    gap: 40px;
    margin-top: 95px;
    position: absolute;
}

.div-vignettes {
    margin-top: 5px;
}

.conteneur-vignette-precedent, .conteneur-vignette-suivant {
    display: none;
    overflow: hidden;
    width: 90px;
    height: 90px;
    justify-content: center;
    align-items: center;
}

.conteneur-vignette-precedent figure, .conteneur-vignette-suivant figure {
    width: 100%;
    height: 100%;
}

.conteneur-vignette-precedent figure img, .conteneur-vignette-suivant figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photos-apparentees {
    border-top: 1px solid black;
    padding-top: 50px;
    margin-left: 70px;
    margin-right: 70px;
}

.bloc-photos-apparentees {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.photos-apparentees h3 {
    text-transform: uppercase;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
}

.zone-photos {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin: 50px 0 50px 0;
}

.autres-photos {
    overflow: hidden;
    width: 565px;
    height: 495px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.autres-photos figure {
    width: 100%;
    height: 100%;
}

.autres-photos figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voir-plus {
    background: #D8D8D8;
    border: 1px solid #D8D8D8;
    border-radius: 2px;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    font-style: normal;
    width: 263px;
    height: 50px;
    margin-bottom: 70px;
    cursor: pointer;
}

button, input[type="submit"] {
    transition: background-color 0.3s, color 0.3s;
}

button:hover, input[type="submit"]:hover {
    background-color: #000;
    color: #fff;
}

/***Footer****/

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px black solid  
    width: 100% ;
}

/*********** Media Queries ***********/

@media (min-width: 1026px) {
    /* Home.php */
    .filtres {
        justify-content: center;
    }
}

@media (max-width: 1025px) {

    /* Home.php */
    .hero h1 {
        font-size: 70px;
    }
    .filtres {
        gap: 18px;
        margin-left: -20px;
        overflow: scroll;
    }
    .filtres::-webkit-scrollbar {
        width: 0;
        height: 0;
    }
    #filtre-tri {
        padding-left: 0;
    }
    .zone-les-photos .autres-photos, .zone-photos .autres-photos {
        width: 400px;
        height: 365px;
    }

    /* Lightbox */
    .zone-les-photos .survol-photo, .zone-photos .survol-photo {
        height: 98%;
    }
    .zone-les-photos .haut-survol, .zone-photos .haut-survol {
        transform: scale(1.4);
        top: 15px;
        left: 360px;
    }
    .zone-les-photos .bas-survol, .zone-photos .bas-survol {
        gap: 120px;
        top: 320px;
        transform: scale(1.4);
    }
}

@media (max-width: 769px) {

    /* Header */
    .logo-site img {
        max-width: 200px;
    }
    header{
        flex-direction: column;
    }
    .emplacement-modale{
        z-index: 9999;
        top: 36px;
    }

    nav {
        display: none;
        width: 100%;
        z-index: 999;
        background-color: red;
        margin: 0;
        justify-content: center;
        padding: 150px 0;
    }
    nav ul {
        flex-direction: column;
        padding-left: 0;
    }
    nav ul.menu li a{
        color: white;
        font-size: 44px;
    }

    .burger-open{
        display: block;
    }

    .logo-site {
        margin: 0 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    /* Modale */
    .contenu-modale {
        width: 280px;
    }
    .fermeture {
        margin-left: 263px;
    }
    .libellé textarea {
        height: 150px;
    }

    /* Single-photo.php */
    .bloc-photo {
        margin-bottom: 30px;
        flex-direction: column-reverse;
        align-items: center;
        justify-content: center;
    }
    .zone-gauche {
        margin-left: 10px;
        width: 80%;
    }
    .zone-gauche h2{
        font-size: 35px;
        line-height: 40px;
    }
    .zone-droite {
        margin-right: 10px;
        width: 80%;
    }
    .infos-photo {
        font-size: 12px;
        line-height: 10px;
    }
    .infos-photo h2 {
        font-size: 50px;
        line-height: 60px;
    }
    .bandeau-gauche {
        width: 100%;
        margin-left: 0;
        flex-direction: column;
    }
    .bouton-photo-unique {
        margin-bottom: 20px;
    }
    .bandeau-droit {
        display: none;
    }
    .photos-apparentees {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding-top: 10px;
        margin: 0;
    }
    .photos-apparentees h3 {
        margin-left: 0;
    }
    .zone-photos {
        flex-direction: column;
        gap: 10px;
        margin: 5px 0 5px 0;
    }
    .autres-photos {
        width: 320px;
        height: 280px;
    }
    .voir-plus {
        display: none;
    }

    /* Home.php */
    .hero-background {
        height: 250px;
    }
    .hero h1 {
        font-size: 25px;
    }
    .filtres {
        width: 100%;
        margin-top: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    .menu-options {
        position: sticky;
    }
    .zone-les-photos {
        display: flex;
        flex-direction: column;
        row-gap: 0;
    }
    .zone-les-photos .autres-photos, .zone-photos .autres-photos {
        width: 320px;
        height: 280px;
    }
    #charger-plus {
        display: block;
    }

    /* Lightbox */
    .lightbox-suivante, .lightbox-precedente {
        display: none;
    }
    .informations-photo {
        gap: 150px;
    }
    .zone-les-photos .survol-photo, .zone-photos .survol-photo {
        height: 97.5%;
    }
    .zone-les-photos .haut-survol, .zone-photos .haut-survol {
        transform: scale(1.2);
        top: 5px;
        left: 290px;
    }
    .zone-les-photos .bas-survol, .zone-photos .bas-survol {
        gap: 110px;
        top: 240px;
        transform: scale(1.2);
    }

    
    /* Footer */
    footer .menu {
        flex-direction: column;
        gap: 10px;
    }
}