/* 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 ----------------------------------*/
 
.projects {
    margin-top: 6%;

}



.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 */
    }
}

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



/*---------------------------- filtre ----------------------------------*/



/* Styles des filtres */
.filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 30px 0;
}

.filter-btn {
    background: #C3DAA8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.filter-btn:hover,
.filter-btn.active {
    background: #FF5A5F;
    transform: scale(1.05);
}
/*---------------------------- FIN filtre ----------------------------------*/



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

.footer {
    text-align: center;
}

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




.container_test{
    margin-left: 20%;
    margin-right: 20%;
}


.boxi img{
    width: 100%;
}


.project-hori{
    display: flex;
    flex-direction: row;
    gap:0.5em;
}
.boxi {
    position: relative;
    display: inline-block;
    overflow: hidden;

}

.img-info {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    color: white;
    padding: 15px;
    border-radius: 10px;
}

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

.img-subtitle {
    font-size: 16px;
}

.boxi:hover .img-info {
    opacity: 1;
}


.projet-vert {
    display: flex;
    flex-direction: column;
}



@media screen and (max-width: 768px){
    .project-hori{
        display: flex;
        flex-direction: column;
    }

    .boxi img {
        width: 500px;
        height: 400px;
        object-fit: cover;
        
    }
    

}