/* entête */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    box-shadow: 0 4px 4px 0 #00000008;
}

nav {
    margin-right: 100px;
}

.logo {
    margin-left: 100px;
}

.logo img {
    max-width: 250px;
}

/* Menu */
.menu {
    display: flex;
    gap: 50px;
}

.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;
    text-transform: uppercase; /* majuscules */
}

.menu a:hover {
    font-weight: 700;
}

/* Pied de page */

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px black solid;
    width: 100%;
}


/* Titres */
h2 {
    font-family: 'Poppins', sans-serif; 
    font-style: italic;
    font-size: 32px;
    
}

/* Paragraphes */
p {
    font-family: 'Poppins', sans-serif; 
    font-weight: normal; /* Regular */
    font-size: 12px;
}



/* Taille du logo */
.custom-logo {
    max-width: 150px; 
    height: auto; 
}

/* Styles de la modale contact */
/* Forme de la fenêtre */
.contact-modal {
    opacity: 0;
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-modal-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 400px;
    width: 90%;
    text-align: left;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.contact-modal.show {
    opacity: 1;
    visibility: visible;
}

.contact-modal.show .contact-modal-content {
    transform: scale(1);
}

/* Bouton de fermeture */
.close-modal {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 18px;
    cursor: pointer;
}

/* Bouton d'ouverture */
.contact-button {
    padding: 8px 16px;
    background: #0073aa;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 0;
    font-size: 14px;
}

.contact-button:hover {
    background: #005a87;
}

/* Formulaire Contact Form 7 */
.contact-modal-content form {
    display: flex;
    flex-direction: column;
}

/* Styles des libellés */
.contact-modal-content label {
    font-weight: bold;
    margin-bottom: 3px; 
    display: block;
    text-align: left;
    font-size: 13px;
}

/* Styles des champs */
.contact-modal-content input,
.contact-modal-content textarea {
    width: 100%;
    padding: 5px; 
    border: 1px solid #ccc;
    border-radius: 5px; 
    margin-bottom: 1px; 
    font-size: 13px; 
}

/* Bouton d'envoi du formulaire */
.contact-modal-content input[type="submit"] {
    background: #D8D8D8;
    color: rgb(0, 0, 0);
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

.contact-modal-content input[type="submit"]:hover {
    background: #696969;
}

/* Image du formulaire de contact modal */
.contact-header-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 15px; 
}

/* formate le single-photographie.php */
.photographie-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
    border-bottom: 1px solid #ccc; /* Trait de séparation */
    padding-bottom: 20px; /* Ajout d'un espace entre le contenu et le trait */
}

/* Colonne de gauche */
.photographie-colonne-gauche {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Informations et boutons */
.photographie-infos, .texte-bouton {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Titres */
.photographie-infos h2 {
    margin-top: 0;
    font-size: 1.8em;
}

.photographie-infos {
    text-transform: uppercase;
}

/* Zone photo */
.photographie-photo {
    text-align: center;
}

.photographie-photo img {
    width: auto;
    max-height: 350px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Boutons */
.texte-bouton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.bouton-contact {
    background-color: #777;
    color: #fff;
    border: none;
    padding: 10px 60px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}

.bouton-contact:hover {
    background-color: #555;
}

/* Colonne de droite */
.photographie-colonne-droite {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Navigation */
.vignettes-navigation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: auto;
}

.navigation-posts {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: auto;
    margin-top: 10px;
}

.navigation-posts img {
    width: 40px;
    height: 10px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    margin: 5px;
}

.navigation-posts img:hover {
    transform: scale(1.1);
}

.div-vignettes {
    display: flex;
    justify-content: space-between;
    width: auto;
}

.conteneur-vignette-precedent, .conteneur-vignette-suivant {
    width: 45%;
    overflow: hidden;
}

.conteneur-vignette-precedent img, .conteneur-vignette-suivant img {
    width: auto;
    max-height: 50px;
    border-radius: 4px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
}

/* La Lightbox */
/* Conteneur principal */
.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;
}

@keyframes lightbox-opacite {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Partie "Vous aimerez aussi" du single-photographie.php et de page.php */
.affichage-des-photos {
    width: 100%;
    max-width: 1200px; 
    margin: 20px auto; 
    padding: 10px;
}

/* Overlay lors du survol de la photo */
/* Masquer le lien texte */
.lien-photo {
    display: none;
}

/* Grille en 2 colonnes avec images carrées */
.zone-les-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
    gap: 20px; 
    justify-content: center;
    align-items: center;
}

.autres-photos {
    width: 100%;
    aspect-ratio: 1 / 1; /* Rend les images carrées */
    position: relative;
    overflow: hidden;
}

.autres-photos img {
    width: auto;
    height: 900px;
    object-fit: cover; /* Ajuste le cadrage */
}

/* Overlay au survol */
.survol-photo {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    width: 100%;
    height: 100%;
    z-index: 65;
}

/* Organisation des éléments de l'overlay */
.structuration-survol-photo {
    width: 100%;
    height: 100%;
    position: absolute;
}

/* Icône "full-screen" en haut à droite */
.full-screen {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: black;
    padding: 6px;
    border-radius: 50%;
    opacity: 0.8;
    cursor: pointer;
}

/* Icône "œil" au centre */
.oeil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.8;
    cursor: pointer;
}

/* Référence en bas à gauche */
.survol-reference {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #fff;
}

/* Catégorie en bas à droite */
.survol-categorie {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-family: 'SpaceMono', sans-serif;
    font-weight: 400;
    color: #fff;
}

/* Page d'accueil page.php */
/* Photo aléatoire en pleine page */
.hero {
    position: relative;
    width: 100vw; /* Prend toute la largeur de l'écran */
    height: 100vh; /* Prend toute la hauteur de l'écran */
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Assure que l'image couvre tout l'écran sans déformation */
    position: absolute;
    top: 0;
    left: 0;
}

.hero-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 5vw;
    color: transparent;
    -webkit-text-stroke: 2px white; /* Contour blanc */
    text-align: center;
    width: 100%;
    font-weight: bold;
    z-index: 1;
    font-family: 'ARIAL', sans-serif;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase; 
}

/* Filtres */
.filtres {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 20px 0 30px 0;
    gap: 30px;
}

#filtre-tri {
    padding-left: 220px;
}

.menu-deroulant {
    width: 150px;
    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: 150px;
    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;
}

.vide {
    height: 45px;
    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;
}

/* Bouton charger plus */
.bouton-accueil {
    display: flex;
    justify-content: center;  
    align-items: center;      
    margin: 20px 0px;         
}

.voir-plus {
    padding: 10px 20px;       
    background-color: #D8D8D8; 
    font-family: 'SpaceMono', sans-serif;
    color: black;             
    font-size: 12px;          
    font-weight: normal;       
    border: none;             
    border-radius: 2px;      
    cursor: pointer;          
    transition: background-color 0.3s, color 0.3s; 
}

.voir-plus:hover {
    background-color: black;  
    color: white;             
}

/* Menu burger */
.burger-open{
    display: none;
}

@media (max-width: 769px) {
        .logo img {
            max-width: 200px;
        }
        .burger-open {
            display: block;
            position: absolute;
            top: 80px; 
            right: 20px; 
            z-index: 100; 
            cursor: pointer;
            width: 40px; 
            height: auto;
        }
    
        .header-menu {
            display: none;
            flex-direction: column;
            align-items: center;
            position: absolute;
            top: 80px; 
            left: 0;
            width: 100%;
            background-color: red;
            z-index: 99;
            padding: 100px 0px; 
        }
        
        .header-menu ul {
            flex-direction: column;
            padding-left: 0;
        }
        
        .header-menu ul.menu li a {
            color: white;
            font-size: 44px;
        }
        

    .logo {
        margin: 0 20px;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }
    
    .contact-modal {
        z-index: 999;
        top: 36px;
    }

    /* Filtre en responsive */
    .filtres {
        width: 100%;
        margin-top: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    #filtre-tri {
        padding-left: 0px;
    }

    /* Sur les "Vous aimerez aussi" photos en 1 seule colonne */
    .zone-les-photos {
        grid-template-columns: repeat(1, 1fr); 
    }
    /* Sur entête de single-photographies en 1 seule colonne */
    .photographie-container {
        grid-template-columns: 1fr; 
    }
    /* Mise en colonne du menu de pied */
    .footer-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 10px; 
    }
    .footer-menu ul li {
        width: 100%;
        text-align: center;
    }
}
