/* Styles généraux */
body {
    background-color: #FFFFE8;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    

}



/*---------------------------- NAV BAR ----------------------------------*/
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 50px; /* Espacement entre les éléments */
    margin-right: 100px; /* Ajouter un peu d'espace entre le dernier élément (Contact) et le bord droit */
}

.nav-links a {
    text-decoration: none;
    color: black;
    font-weight: bold;
}



@media screen and (max-width: 768px) {
    
    .navbar {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .logo{
        display: flex;
        justify-content: center;
        text-align: center;

    }


    .navbar img {
        width: 70%;
    }
    
    
    .nav-links {
        display: flex;
        flex-direction: row;
        justify-content: space-around; /* Répartit les éléments */
        align-items: center; /* Centre verticalement */
        text-align: center;
        gap: 1px; /* Espacement entre les éléments */
        margin: 0;
        padding: 0;
        width: 100%;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .nav-links li {
        list-style: none; /* Enlever les puces */
    }
}



/*----------------------------FIN NAV BAR ----------------------------------*/




/*---------------------------- ANIMATION ----------------------------------*/



.scrolling-text-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.scrolling-text {
    font-size: 20px;
    color: #FF5A5F;
    display: inline-block;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(100%); /* Le texte commence à droite */
    }
    50% {
        transform: translateX(0%); /* Le texte est au centre */
    }
    100% {
        transform: translateX(-100%); /* Le texte se déplace complètement à gauche */
    }
}

.project-image-1  {
    width: 100%;
    object-fit: cover;
    max-height: 500px;
}

.image-info.first-image-info{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

.image-title {
    font-size: 30px;
    font-weight: bold;
}

.image-subtitle {
    font-size: 22px;
    margin-top: 10px;
}

.image-date {
    font-size: 18px;
    margin-top: 10px;
}



@media screen and (max-width: 768px) {
    
    .image-info.first-image-info{
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        padding-bottom: 30px;
    }

    .image-title {
        font-size: 20px;
        font-weight: bold;
    }

    .image-subtitle {
        font-size: 15px;
        margin-top: 10px;
    }

    .image-date {
        font-size: 13px;
        margin-top: 10px;
    }


}








.project-images {
    display: flex; 
    justify-content: center;
    gap: 10px; 
    margin: 30px;
}

.image_projet {
    flex: 1; /* Permet aux images de prendre une largeur égale */
    max-width: 50%; /* Chaque image prend 50% de la largeur */
}

.project-image {
    width: 100%; 
    height: auto; 
}



@media screen and (max-width: 768px) {
    .project-images {
        flex-direction: column; /* Passe en affichage vertical sur mobile */
        align-items: center;
    }
    
    .image_projet {
        max-width: 100%; /* Les images prennent toute la largeur */
    }
}



.text_projet {
    margin: 50px;
padding-left: 10%;
padding-right: 10%;
font-size: medium;
}


.project.three-images{
    display: flex;
    justify-content: center;
    gap: 10px; 
    margin: 30px;
}



@media screen and (max-width: 768px) {
    .project.three-images{
        display: flex;
        flex-direction: column;
    }
    
    .text_projet {
        margin: 50px;
    padding-left: 5%;
    padding-right: 5%;
    font-size: small;
    }

    iframe {
        width: 100%;
        height: auto; /* Hauteur automatique pour garder le ratio */
        display: block;
        object-fit: contain;
    }
}



/*---------------------------- footer ----------------------------------*/

.footer {
    text-align: center;
}

/*---------------------------- FIN footer ----------------------------------*/
