/* Styles pour le header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	height:10vh;
}

/* Ajout de la police Quicksand avec une règle @font-face */
@font-face {
    font-family: 'Quicksand';
    src: url('fonts/Quicksand-light.ttf') format('truetype'); /* Chemin vers le fichier .ttf de la police Quicksand */
    font-weight: normal;
    font-style: normal;
}

/* Styles de base */
body {
    font-family: 'Quicksand', Arial, sans-serif; /* Utilisation de Quicksand avec des polices de secours */
    background-color: #fff;
    color: #333;
    line-height: 1.6;
}

#home-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: absolute; /* Permet de positionner l'icône */
	}

#home-button img {
    height: auto; /* Laisser la hauteur s'ajuster automatiquement pour conserver les proportions de l'image */
    width: 3vw; /* Changez la taille de l'icône selon vos besoins */
	margin-left: 5vw;
    margin-top: 7vh;
}






/* Styles pour la section du projet */
.project-section {
    text-align: center;
    padding: 3vw;
}

.project-title {
    font-size: 2vw; /* Taille plus grande pour h1 */
    text-align: center;
    /* margin: 4vw auto; /* Ajout de cette ligne pour centrer horizontalement */ 
	margin-top: 1vw;
    margin-bottom: 0;
    font-style: italic; /* Mettre le titre en italique */
	font-weight: 300;
}

.project-name {
    font-size: 1vw; /* Taille plus petite pour h2 */
    text-align: center;
    /* margin: 2vw auto; /* Ajout de cette ligne pour centrer horizontalement */
	margin-top: 0;
    margin-bottom: 3vw;
	font-weight: 100;
}

.project-description {
    font-size: 1vw; /* Taille plus petite pour h3 */
    text-align: center;
    /* margin: 2vw auto; /* Ajout de cette ligne pour centrer horizontalement */
	margin-left: auto;
    margin-right: auto;
    margin-top: 2vw;
    margin-bottom: 4vw;
    max-width: 40%;
    font-weight: 100;
    font-style: italic;
}
.project-image {
    /* margin-bottom: 10vw; */
}

.project-image img {
    max-width: 30%;
    height: auto;
    display: block;
    margin: 0 auto; /* Centrer horizontalement */
}
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2vw;
    max-width: 45%;
    margin: 0 auto;
}

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



/* Specific layout adjustments */
.gallery img:nth-child(1),
.gallery img:nth-child(2),
.gallery img:nth-child(3) {
    grid-column: span 1;
}
.gallery img:nth-child(4) {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery img:nth-child(5),
.gallery img:nth-child(6) {
    grid-column: span 1;
}
.gallery img:nth-child(7) {
    grid-column: span 3;
}
.gallery img:nth-child(8) {
    grid-column: span 1;
}
.gallery img:nth-child(9) {
    grid-column: span 2;
}
.gallery img:nth-child(10),
.gallery img:nth-child(11),
.gallery img:nth-child(12) {
    grid-column: span 1;
}
.gallery img:nth-child(13) {
    grid-column: span 2;
}
.gallery img:nth-child(14) {
    grid-column: span 1;
}
.gallery img:nth-child(15) {
    grid-column: span 3;
}
.gallery img:nth-child(16) {
    grid-column: span 3;
}
.gallery img:nth-child(17),
.gallery img:nth-child(18),
.gallery img:nth-child(19) {
    grid-column: span 1;
}
.gallery img:nth-child(20) {
    grid-column: span 3;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(137, 156, 162, 0.4); /* Changed to a lighter shade */
    display: none;
    justify-content: center;
    align-items: center;
}

.overlay img {
    max-width: 70%;
    max-height: 70%;
}

.overlay.open {
    display: flex;
}

/* CSS pour l'opacité des images en arrière-plan */
body.overlay-active .gallery img {
    opacity: 0.2; /* Réduire l'opacité des images en arrière-plan */
    transition: opacity 0.3s; /* Transition pour un effet plus fluide */
}

#prev {
	position: absolute;
    background-color: transparent;
    border: none;
    cursor: pointer;
	left: 5%;
    padding: 0; /* Supprimer le remplissage pour éviter les espaces indésirables */
    margin: 0; /* Supprimer les marges pour plus de précision */
}
#next {
	position: absolute;
    background-color: transparent;
    border: none;
    cursor: pointer;
	right: 5%;
    padding: 0; /* Supprimer le remplissage pour éviter les espaces indésirables */
    margin: 0; /* Supprimer les marges pour plus de précision */
}

#prev img {
    width: 10vw; /* Ajuster la taille de l'image selon vos besoins */
    height: 10vh;
}
#next img {
    width: 10vw; /* Ajuster la taille de l'image selon vos besoins */
    height: 10vh;
}



footer {
    display: flex;
    /* bottom: 2vh; */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-details {
    text-align: center;
	margin-top: 3vh; 
    margin-bottom: 3vh; /* Ajoute une marge inférieure pour espacer les éléments */
}

.contact-details a {
	display: block;
	color: #333;
	text-decoration: none;
	font-size: 1vw;	
    margin-bottom: -0.6vh;
}

.contact-details a:hover {
    text-decoration: underline;
}
.contact-details .phone {
    /* Ajoutez ici des styles spécifiques pour le téléphone si nécessaire */
}

.contact-details .email {
    font-weight: bold;
}

.contact-details .instagram {
    font-style: italic;
}

.copyright-details {
    text-align: center;
    font-size: 1vw;
}

.copyright-details p {
    display: inline;
    margin: 0;
}

.copyright-details .moc {
    font-weight: LIGHTER;
    font-size: 1vw;
}

.copyright-details .architecture {
    font-size: 0.75vw;
    font-weight: normal;
}













/* Media queries pour les écrans plus petits */
@media (max-width: 768px) {
	#home-button {
        position: fixed; /* Fixe l'icône en haut à gauche */
        top: 1vw;
        left: 1vw;
        z-index: 1000; /* Assure que l'icône reste au-dessus d'autres éléments */
    }
	
    header {
        flex-direction: column;
        align-items: center;
    }

    .project-title {
        font-size: 4vw;
		margin-top: 2vw;
    }
	.project-name {
        font-size: 3vw;
    }
	.project-description {
        font-size: 2.5vw;
		max-width: 80%; /* Limite de la largeur */
	    margin-bottom: 6vw;
    }

    .project-image img {
        max-width: 60%;
        /* margin-bottom: 5vw; */
    }

    .gallery {
		display: block;
        max-width: 100%;
        justify-content: center;
    }

    .gallery img {
        width: 60%;
        margin-bottom: 3vw;
    }
    #next{
        display: none; /* Masquer les flèches sur les écrans mobiles */
    }
    #prev{
        display: none; /* Masquer les flèches sur les écrans mobiles */
    }
	.contact-details {
	}
	.copyright {
		font-size: 2vw;
	}
	.contact-details a {
		font-size: 2vw;	
	}


	.copyright-details .moc {
		font-size: 2vw;
	}

	.copyright-details .architecture {
		font-size: 1.5vw;
	}

}


@media (min-width: 769px) and (max-height: 600px) {
    /* Styles pour les smartphones en mode paysage */
    /* Ajoutez vos styles ici pour les smartphones en mode paysage */

}
