*{
    font-family: "Open Sans",sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}


/* ---- GRID PAGE ----- */
.main-container{
    display: grid;
    grid-template-areas: 
    'header header header'
    '. content .';
    grid-template-columns: 1fr 4fr 1fr;
}

header {
    grid-area: header;
    display: grid;
    grid-template-areas: 
        '. liens .';
    grid-template-columns: 1fr 4fr 1fr;
    margin-bottom: 20px;
    background-color: transparent; 
    position: sticky;
    top: 0;
    z-index: 1;

}

.les_projets{
    display: grid;
    grid-template-areas: 
    'projet1 projet2'
    'projet3 projet4';
    grid-template-columns: 1fr 1fr;
    margin: 10px;
    gap: 20px;

}




/* ----- HEADER ------- */
header{
    box-shadow: 
        5px 5px 15px rgba(0, 0, 0, 0.2),  
        -5px -5px 20px rgba(0, 255, 0, 0.1), 
        inset 0 0 20px rgba(255, 255, 255, 0.3); 
}

.presentation {
    grid-area: pres;
    padding: 10px;
    display: flex; 
    justify-content: space-evenly;
    align-items: center;
    /* background-color: rgba(128, 128, 128, 0.281);  */
}

.liens {
    grid-area: liens;
    display: flex;
    padding: 10px;
    justify-content: space-evenly;
    background-color: #FBFEFB; 
    
}

.section{
    height: 100vh;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section:target::before{
    content: "";
    display: block;
    height: 60px;
    margin-top: -60px;
}

/* ----- FOOTER ----- */



/* ----- MAIN PRESENTATION ----- */
main{
    grid-area: content;
}

h2{
    font-size: 2rem;
    font-weight: bold;
    padding: 20px;
    border-bottom: 3px solid #6A9B6B;
}

.text{
    padding-bottom: 40px;
}

.text-container{
    padding: 20px;
}

.img{grid-area: img;}

.img img{
    width: 100%;
    height: 250px;
    /* object-fit: cover; */
}

.btn{
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 25px;
    cursor: pointer;
}


button{
    all: unset;
}

.btn img{
    max-height: 32px;
    max-width: 32px;
    padding-right: 10px;
}

.content_landing{
    border-radius: 20px;
    margin-bottom: 50px;
    padding: 10px;
}


.presentation img{
    height: 200px;
    width: 200px;
    border-radius: 50%;
}

#nom{
    padding-bottom: 10px;
    font-size: 2.5rem;
    font-weight: bold;
}

#metier{
    font-size: 1.5rem;
    font-style: italic;
}



.projet-content{
    padding: 20px;
    margin-bottom: 20px;
    min-height: 450px;

}


.projet img{
    margin: 5px 0 5px 0;
    width: 450px;
    height: 250px;    
}



.projet{
    margin: 20px;
    padding: 10px;
}

.langages{font-size: 3rem;}

.langage{padding: 10px;}

.outils-line1{
    padding: 10px;
    display: grid;
    grid-template-areas: 
    '1 2 3';
    grid-template-columns: 1fr 1fr 1fr;
}

.outils-line1 img{width: 100px;height: 100px;}
.outils-line2 img{width: 100px;height: 100px;}

.outils-line2{
    padding: 10px;
    display: grid;
    grid-area: '1 2';
    grid-template-columns: 1fr 1fr;
}


.description{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: rgba(211, 211, 211, 0.425);
    flex-grow: 1;
    min-height: 180px;
    
}

.btn-card{
    text-align: center;
    border: 2px solid #D9EAD3;
    background-color: #6A9B6B;

    border-radius: 20px;
    padding: 10px;
    margin: 5px;
    /* width: 30%; */
}

.skill{
    display: flex;
    text-align: left;
    align-items: center;
    justify-content: center;
    margin: 20px 0 20px 0;
}

.skill img{
    width: 150px;height: 100%;
}

.txt-skill{
    padding-left: 20px;
}

.progress-bar{
    border: 2px solid black;
    height: 30px;
    width: 80%;
    border-radius: 30px;
    margin: auto;
}

.progress{
    border-radius: 30px;
    height: 100%;
    transition: width 2s ease;
}

.reset {
    transition: none; /* Pas de transition lors de la réinitialisation */
}

@keyframes fill{
    from{
        width: 0;
    }to{
        width: 75%;
    }
}

.progress.animate{
    animation: fill 2s forwards;
}


#me-contacter {
    padding: 20px;
    background-color: #FBFEFB;
}

.contact-container {
    display: flex; /* Utiliser flexbox pour aligner les éléments */
    justify-content: space-between; /* Espacement entre les éléments */
    margin-top: 20px;
}


.contact-info {
    flex: 1; 
    margin-right: 20px; 
    padding: 20px;
    border-radius: 10px; 
    display: flex;
    flex-direction: column;

}

.contact{
    margin: 30px;
}

.titre-info{
    margin-bottom: 50px;
}

.contact-form {
    flex: 2; 
    padding: 20px;
    border-radius: 10px; 
}

.contact-list {
    text-align: left;
    list-style-type: none; 
    padding: 0; 
}

.contact-list li {
    margin-bottom: 10px; 
}

label {
    display: block; 
    margin-top: 10px; 
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px; 
    margin-top: 5px; 
    resize: none;
}

button {
    margin-top: 10px; 
}



/* ----- COULEUR DU SITE ------ */

.border{
    border: 2px solid;
    border-color: #B2DDB5;
    border-radius: 20px;
}


.border_bottom{
    border-bottom: 2px solid;
    border-color: #B2DDB5;
}

.border_bottom_darkmode{
    border-bottom: 2px solid;
    border-color: #2D5736;
}


.back_lightmode{
    background-color: #FBFEFB;
}


.back_item{
    background-color: #F5FBF5;
}

.btn:hover{
    background-color: #D9EAD3;
    color: rgba(0, 0, 0, 0.726);
}



.white{
    color: white;
}

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

.flip-projet{
    background-color: transparent;
    width: 100%;
    height: 550px;
    perspective: 1000px;
    display: inline-block;
    /* margin: 20px; */
}

.flip-projet-content{
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.flip-projet-front, .flip-projet-back{
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.flip-projet-front{
    background-color: #fff;
    display: flex;
    flex-direction: column;

}

.flip-projet-back{
    background-color: #2D5736;
    color: white;
    transform: rotatey(180deg);
    display: flex;
    flex-direction: column;
}

.flip-projet:hover .flip-projet-content{
    transform: rotateY(180deg);
}

.flip-projet-content.flipped {
    transform: rotateY(180deg);
}



.flip-image {
    width: 90%; /* Prend toute la largeur du conteneur */
    height: 90%; /* Conserve le ratio d'aspect */
    max-height: auto; /* Hauteur maximale pour éviter le débordement */
    /* object-fit: cover; */
}





/* -------- GENERALITE -------- */
.icon{margin-right: 0.5em;}
li{list-style: none;}
a{color: inherit;text-decoration: none;}
.center{text-align: center; display: block;}
.justify{text-align: justify;}
.list-projet li{list-style: initial;margin-left: 30px;}
h3{
    font-size: 2rem; 
    background-color: #6A9B6B; 
    color: white;
    /* max-height: 38px; */
}
.p5{padding: 5px;}
.space{margin: 1rem 0;}
.top-space{margin-top: 1rem 0;}

h1,h2,h3,h4,h5,h6{font-family: "Oswald",sans-serif;}



/* ---- RESPONSIVE ----- */
@media screen and (max-width:1200px){
    .content_landing{
        padding: 0;
        border-radius: 0;
    }
    .projet-content{
        border-radius: 0;
    }
    
}

@media screen and (max-width:1000px){
    .main-container{
        display: grid;
        grid-template-areas: 
        'header'
        'content';
        grid-template-columns: 1fr;
    }

    .flip-projet{
        width: 95%;
        margin: auto;
        gap: 10px;
    }

    header {
        grid-area: header;
        background-color: #FBFEFB; 

    }
}

@media screen and (max-width:880px){
    
    .description{font-size: 0.9rem;}
}

@media screen and (max-width:740px){
    
    .les_projets{
        grid-template-areas: 
        'projet1'
        'projet2'
        'projet3'
        'projet4';
        grid-template-columns: 1fr;
    }

    .flip-projet{
        width: 80%;
    }

    .section{
        height: auto;
    }

    .skill img{
        width: 100px;height: 100%;
    }
    .skill{padding: 5px 10px 5px 5px;}

    body{
        font-size: 0.9rem;
    };

    .presentation img{
        height: 125px;
        width: 125px;
        border-radius: 50%;
    }

    #nom{
        padding-bottom: 10px;
        font-size: 2rem;
    }

    #metier{font-size: 1rem;}

    .contact{
        margin: 0;
    }

    .description{font-size: 1rem;}




}


@media screen and (max-width:500px) {
    .flip-projet{width: 95%;margin: auto;gap: 10px;}

    .skill img{width: 75px;height: 100%;}

    .liens{padding: 0;}

    .presentation img{
        height: 100px;
        width: 100px;
    }

    .contact-container {
        display: grid; 
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    .contact-info {
        flex: 1; 
        margin-right: 0px; 
        padding: 20px;

    
    }
}

@media screen and (max-width:440px) {
    .projet img{
        margin: 5px;
        width: 250px;
        height: 150px;
    }

    .text-container{
        padding: 5px;
    }

    .space{
        margin: 0.2rem;
    }

    .description{font-size: 0.9rem;}

    .langage{padding: 2px;}

    .langages{font-size: 3rem;}
    .btn-card{padding: 5px;}

    

    .projet-content{border: none;}
    .content_landing{padding: 0;}

    .presentation{padding: 2px;}

    .presentation img{
        height: 120px;
        width: 120px;
        border-radius: 50%;
    }

    #nom{
        font-size: 1.75rem;
    }

    h2{
        font-size: 2rem;
        font-weight: bold;
        padding: 5px;
        border-bottom: 3px solid #6A9B6B;
    }

    #nom{
        font-size: 1.5rem;
    }



}
