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

}

html {
    scroll-behavior: smooth; /* Ajoute un effet de défilement fluide */
}



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


/*---------------------------- HEADING ----------------------------------*/
.about-me {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.about-image {
    width: 40%;
    height: auto;
    margin-right: 5%;
}

/* Animation du texte */
.animated-text {
    font-size: 70px;
    font-weight: bold;
    text-align: left;
    margin: 0;
    opacity: 0;
    animation: fadeInOut 2s infinite; /* Animation qui fait apparaître et disparaître les mots */
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0;
    }
    20%, 80% {
        opacity: 1;
    }
}

/* Animation du texte Hello et Hind */
.about-content h2 {
    font-size: 70px;
    margin: 0;
    text-align: left; /* Aligne le texte à gauche */
}

.about-content {
    margin-left: 10%;
    min-height: 220px;
}



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

    .about-image {
        width: 100%;
   
    }
    
    .animated-text {
        font-size: 30px;
        font-weight: bold;
        text-align: left;
        margin: 0;
        opacity: 0;
        animation: fadeInOut 2s infinite; /* Animation qui fait apparaître et disparaître les mots */
    }

    .about-content h2 {
        font-size: 40px;
        margin: 0;
        margin-bottom: 50px;
    
    }
    .about-content {
        margin-left: 0%;
    }
    

}




/*----------------------------FIN HEADING ----------------------------------*/

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

/*----------------------------IMAGE PROJET----------------------------------*/

.project-images {
    display: flex;               /* Alignement des images côte à côte */
    justify-content: center;
    gap: 20px;
    padding-left: 5%;
    padding-right: 5%;
}


.project-image-wrapper {
    position: relative;          /* Positionne le conteneur pour superposer l'info */
    width: 650px;
    height: 400px;
}

.project-image {
    width: 100%;                 /* Remplir tout le conteneur */
    height: 100%;
    object-fit: cover;           /* Garde le ratio de l'image */
    transition: transform 0.5s ease; /* Animation au hover */
}

.image-info {
    position: absolute;          /* Positionnement absolu pour superposer l'info */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: white;                /* Texte blanc */
    opacity: 0;   
    display: flex;               /* Initialement invisible */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.3s ease; /* Animation pour l'apparition */
}

.project-image-wrapper:hover .image-info {
    opacity: 1;                  /* L'info devient visible au hover */
}

.project-image-wrapper:hover .project-image {
    transform: scale(1.02);        /* Zoom léger sur l'image au hover */
    
}


/* Titres et sous-titres */
.image-title {
    font-size: 20px;
    font-weight: bold;
}

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

/* Bordures spécifiques à chaque image */
.image1 {
    border-top-left-radius: 80px;  
    border-bottom-right-radius: 80px;  
}

.image2 {
    border-top-right-radius: 80px;  
    border-bottom-left-radius: 80px;  

}



@media screen and (max-width: 768px) {

    .project-images {
        display: flex;               /* Alignement des images côte à côte */
        flex-direction: column;

    }
    
    .project-image-wrapper {
        max-width: fit-content;
    }




    .project-image-wrapper{
        max-height: 300px;
    }
}


/*----------------------------FIN IMAGE PROJET ----------------------------------*/


/*----------------------------BUTTON----------------------------------*/


.button {
    display: flex;
    justify-content: center;      /* Centre horizontalement */
    margin-top: 60px;              /* Ajuste l'espace entre les images et le bouton */
}

.button a {
    background-color: #C3DAA8;
    padding: 12px 30px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-weight: bold;             /* Ajoute du gras pour le texte */
}

.button a:hover {
    background-color: #FF5A5F;     /* Couleur plus foncée au survol */
    transform: scale(1.05);         /* Zoom léger sur le bouton */
}


/*----------------------------FIN BUTTON----------------------------------*/


/*---------------------------- Qui suis-je ? ----------------------------------*/


.about {
    margin-top: 6%;
    background-color: #13293D;
}


.about-details {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.about-me-image {
    max-width: 35%; /* Réduit la taille de l’image */
}

.about-me-image-only {
    width: 100%;
    height: auto;
}

.para {
    width: 60%; /* Ajuster selon le besoin */
    padding-right: 10%;
    padding-left: 10%;
    color: white;
    line-height: 30px;
}

.about .scrolling-text {
    color: white;
}




@media screen and (max-width: 768px) {

    .about-me-image {
        max-width: 70%; /* Réduit la taille de l’image */
    }
    

    .about-details {
        display: flex;
        flex-direction:column;
        width: 100%;
        align-items: center;
    }


    .para {
        font-size: small;
    }

}

/*---------------------------- FIN Qui suis-je ? ----------------------------------*/


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

.footer {
    text-align: center;
}

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



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




/*---------------------------- galerie ----------------------------------*/
 
.container-tout{
    display: flex;
    flex-direction: column;
}

.container{
    width: 1000px;
    height: 900px;
    border-top-left-radius: 1em;
    border-bottom-right-radius: 1em;
    padding: 2em;
    display: flex;
    gap: 1em;
    justify-content: center;
    margin: 0 auto; /* Centre horizontalement */

}


.row-1 {
  flex: 2;
  display: flex;
  flex-direction: column;
    gap: 1em;
}
.row-2 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  
}
.row-3 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}


.col{
    flex: 1;
    display: flex;
    gap: 1em;

}
.col.col-2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1em;
}
.col-box{
    /* border: 2px solid red; */
    flex: 1;
}
.box{
    flex: 2;
    /* border: 2px solid red; */
}
.col-box{
    /* background-color: #FF5A5F;
    border: 2px solid #FF5A5F; */
}
.box {
    /* background-color: #FF5A5F;
    border: 2px solid #FF5A5F; */
    
}

.col-box img {
        width: 100%; /* Empêche l’image de dépasser la largeur de la div */
        height: 100%; /* Empêche l’image de dépasser la hauteur de la div */
        object-fit: cover; /* L’image s’adapte sans être coupée */
}

.box img {

    width: 100%; /* Empêche l’image de dépasser la largeur de la div */
    height: 100%; /* Empêche l’image de dépasser la hauteur de la div */
    object-fit: cover; /* L’image s’adapte sans être coupée */
    

}

.img1 {
    border-top-left-radius: 3em;
    border-bottom-right-radius: 3em;

}
.img2 {
    border-top-right-radius: 3em;
    border-bottom-left-radius: 3em;
}
.img3 {
    border-radius: 2em;
}


.col-box {
    position: relative;          /* Positionne le conteneur pour superposer l'info */
}


.box {
    position: relative;          /* Positionne le conteneur pour superposer l'info */
    
}

.image-info {
    color: white;                /* Texte blanc */
    opacity: 0;   
    transition: opacity 0.3s ease; /* Animation pour l'apparition */
}

.box:hover .image-info {
    opacity: 1;                  /* L'info devient visible au hover */
}

.box:hover {
    transform: scale(1.02);        /* Zoom léger sur l'image au hover */ 
}


.col-box:hover .image-info {
    opacity: 1;                  /* L'info devient visible au hover */
}

.col-box:hover  {
    transform: scale(1.02);        /* Zoom léger sur l'image au hover */
}



/*---------------------------- CONTACTEZ-MOI ----------------------------------*/
/*---------------------------- CONTACTEZ-MOI ----------------------------------*/
#contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 6%;
    padding-bottom: 100px;
 
}

#contact h2 {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #13293D;
}

#contact form {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

#contact form label {
    font-size: 18px;
    color: #13293D;
}

#contact form input,
#contact form textarea {
    padding: 10px;
    font-size: 16px;
    border-radius: 10px;
    border: 2px solid #C3DAA8;
    width: 100%;
    transition: border 0.3s ease;
}

#contact form input:focus,
#contact form textarea:focus {
    outline: none;
    border-color: #FF5A5F;
}

#contact form button {
    background-color: #C3DAA8;
    padding: 12px 30px;
    border-radius: 20px;
    border: none;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#contact form button:hover {
    background-color: #FF5A5F;
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    #contact h2 {
        font-size: 40px;
    }

    #contact form {
        width: 90%;
    }

    #contact form label {
        font-size: 16px;
    }
}
