@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*{
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    scroll-behavior: smooth;
}

a{
    text-decoration: none;
}

section{
    scroll-margin-top: 100px;
}

.robot{
    position: absolute;
    top: -40px;
    right: -25%;
    z-index: -10;
}

body{
    background-color: black;
    color: #e7e7e7;
    overflow-x: hidden;
    position: relative;
    padding-top: 80px;
}

#header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: auto;
    position: fixed; 
    top: 0;         
    left: 5%;       
    z-index: 1000;  
    background-color: black; 
    padding: 10px 0;
}

#navHeader ul{
    display: flex;
    list-style: none;
    justify-content: space-between;
    width: 500px;
    font-size: 14px;
}

#header p{
    font-size: 40px;
    font-weight: lighter;
}

#header a{
    color: #e7e7e7;
    text-decoration: none;
    cursor:pointer;
    position: relative;
    z-index: 1;
}

#header a:hover{
    color: #999999;
}

#langue{
    width: 35px;
    height: 35px;
    border: 1px solid #e7e7e7;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

#langue:hover{
    border: 1px solid #999999;
}

main{
    width: 85%;
    margin: auto;
}

#prenom{
    width: 18rem;
    height: 2.5rem;
    position: relative;
    font-size: 15px;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

@keyframes animationGradient {
    to {
        background-position: 200%;
    }
}

#prenom p{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.5s ease;
}

#prenom p:hover{
    color: #5300a0;
}

h1{
    width: 470px;
    font-size: 48px;
    line-height: 55px;
    font-weight: 600;
    margin-top: 20px;
}

#detailAcc{
    font-size: 13px;
    color: #999999;
    width: 330px;
    margin-top: 10px;
}

#Accueil{
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    min-height: 100vh;
}

#boutonAcc{
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.bouton{
    width: 175px;
    height: 45px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
}

#boutonSav{
    background-color: #e7e7e7;
    color: black;
}

.bouton p{
    display: inline-block;
    transition: transform 0.5s ease;
}

.bouton p:hover{
    transform: scale(1.05);
}

#boutonCV{
    color: #7f42a7;
}

#infosAcc{
    margin-top: -100px;
}

#Moi{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 100px;
    scroll-margin-top: 100px;
}

#imageProfil{
    width: 100%;
    border-radius: 23px;
    height: 100%;
}

#photoprofil{
    width: 300px;
    height: 400px;
    position: relative;
    padding: 2px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-radius: 25px;
}

#image{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    border-radius: 23px;
}

h2{
    font-size: 45px;
    font-weight: 500;
    margin-top: 80px;
}

.pPrsentation{
    font-size: 17px;
    line-height: 25px;
    margin-top: 10px;
    color: #999999;
}

#Presentation{
    width: 550px;
}

#realisation{
    display: flex;
    margin-top: 15px;
    gap: 30px;
}

.nombre{
    font-size: 40px;
    color: #7f42a7;
}

.real{
    font-size: 17px;
    color: #999999;
}

#Competences{
    margin-top: 200px;
}

#Competence{
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    margin-left: 3%;
    margin-bottom: 100px;
}

.cardCompetences{
    width: 150px;
    height: 150px;
    position: relative;
    padding: 2px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-radius: 25px;  
    cursor: pointer;
    transition: 0.5s;
}

.cardCompetences:hover{
    transform: rotate(10deg) scale(1.1);
    transition: 0.5s;
}

.contenuCardComp{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    border-radius: 23px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.imgComp{
    width: 45px;
    height: 45px;
    border-radius: 5px;
}

#Projets{
    margin-top: 200px;
}

.imgProjet{
    width: 300px;
    height: 200px;
    border-radius: 15px;
}

.CardP{
    display: flex;
    gap: 20px;
    padding: 15px;
    border-radius: 15px;
    cursor: pointer;
}

.CardP:hover{
    background-color: #141414;
}

.infoProjet p{
    color: #c4c4c4;
    font-size: 16px;
    margin-top: 10px;
}

h4{
    font-size: 20px;
    color: #7f42a7;
}

.competenceprojet li{
    list-style: none;
    background-color: #5300a0;
    color: #cba2e6;
    padding: 3px 15px 3px 15px;
    font-size: 14px;
    border-radius: 50px;
}

.competenceprojet ul {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

#CardProjet{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

#CardProjet a{
    text-decoration: none;
}

form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#formhaut{
    display: flex;
    gap: 10px;
}

#Contacts{
    margin-top: 200px;
    scroll-margin-top: 100px;
}

#contacts{
    display: flex;
    width: 100%;
    margin-bottom: 100px;
    justify-content: space-between;
    margin-top: 50px;
    align-items: center;
}

.inputform{
    position: relative;
    padding: 2px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-radius: 10px;  
    cursor: pointer;
    transition: 0.5s;
    
}

.inputformulaire{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    border-radius: 8px;
    color: white;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 7px;
    outline: none;
    font-size: 15px;
}

.inputformhaut{
    width: 100%;
    height: 40px;

}

#chamtext{
    height: 250px;
    resize: none;
}

#formulaire{
    width: 60%;
}

button{
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    height: 40px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.5s;
}

button:hover{
    color: white;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);

}

.reseau{
    position: relative;
    width: 90px;
    height: 90px;
    padding: 2px;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    border-radius: 50px;  
    cursor: pointer;
    transition: 0.5s;
}

.backroundreseau{
    position: absolute;
    inset: 3px 3px 3px 3px;
    background-color: black;
    display: flex;
    border-radius: 50px;
    justify-content: center;
    align-items: center;
}

.imgreseau{
    width: 60px;
    height: 60px;
}

#mesReseaux{
    width: 30%;
}

#carrereseaux{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.reseau:hover{
    transform: rotate(15deg) scale(1.2);
    transition: 0.3s;
}

footer{
    background-color: #1b0035;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
    margin-top: 200px;
}

#footer{
    display: flex;
    width: 70%;
    margin: auto;
    justify-content: space-between;
    align-items: flex-start;
}

.imgreseaufooter{
    width: 20px;
    height: 20px;
}

.cardreseaufooter{
    width: 40px;
    height: 40px;
    border-radius: 5px;
    position: relative;
    background: linear-gradient(to right, #656565, #7f42a7, #6600c5, #5300a0, #757575, #656565);
    background-size: 200%;
    animation: animationGradient 2.5s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.fondreseaufooter{
    position: absolute;
    border-radius: 5px;
    inset: 2px 2px 2px 2px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.cardreseaufooter:hover{
    transform: translateY(-10px);
}

#cardfooter{
    display: flex;
    width: 150px;
    justify-content: space-between;
}

footer a{
    color: white;
    text-decoration: none;
}

h3{
    margin-bottom: 20px;
    font-size: 25px;
}

#navfooter li{
    list-style: none;
    font-size: 13px;
    margin-top: 15px;
}

#navfooter a{
    color: #999999;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.5s ease;
}

#navfooter a:hover{
    transform: translateX(5px);
    color: #7f42a7;
}

#merci{
    width: 270px;
}

#merci p{
    margin-top: 15px;
    color: #999999;
    font-size: 14px;
}

@media screen and (max-width: 768px){
    body {
        overflow-x: hidden; /* Coupe tout ce qui dépasse à droite */
        width: 100%;
        position: relative;
    }
    #header{
        width: 100%;
        padding-left: 20px;
    }
    #header p{
        font-size: 30px;
    }

    #navHeader{
        display: none;
    }

    #langue{
        width: 25px;
        height: 25px;
    }
    #Accueil{
        flex-direction: column;
    }
    #coupe{
        margin-top: 30rem;
    }
    .robot{
        display: none;
    }
    #infosAcc{
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 150px;
    }
    #prenom{
        width: 200px;
        font-size: 12px;
        height: 30px;
    }
    h1{
        font-size: 35px;
        width: 100%;
        line-height: 45px;
        margin: auto;
        margin-top: 15px;
    }
    h2{
        font-size: 30px;
    }
    #Moi{
        flex-direction: column-reverse;
    }
    #photoprofil{
        width: 250px;
        height: 350px;
    }

    #Presentation{
        width: 90%;
    }
    .pPrsentation{
        font-size: 15px;
        line-height: 20px;
    }
    .nombre{
        font-size: 28px;
    }
    .real{
        font-size: 15px;
    }
    .bouton{
        width: 150px;
        height: 50;
    }
    #Competence{
        width: 100%;
        margin: auto;
        margin-top: 30px;
        gap: 10px;
    }
    .cardCompetences{
        width: 90px;
        height: 90px;
        font-size: 13px;
    }
    .imgComp{
        margin-bottom: -10px;
        width: 30px;
        height: 30px;
    }
    .contenuCardComp{
        inset: 2px 2px 2px 2px;
    }

    .CardP{
        flex: 0 0 280px;
        width: 90%;
        height: 520px;
        margin: auto;
        flex-direction: column;
        background-color: #0e0e0e;
    }
    .infoProjet p{
        font-size: 13px;
    }
    .competenceprojet ul{
        font-size: 12px;
        width: 100%;
        flex-wrap: wrap;
        
    }
    #CardProjet{
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 20px;
        padding: 20px 0;
        -webkit-overflow-scrolling: touch;
    }
    #contacts{
        flex-direction: column;
    }
    #carrereseaux{
        flex-direction: row;
    }
    .reseau{
        width: 75px;
        height: 75px;
    }
    .imgreseau{
        width: 40px;
        height: 40px;
    }
    #formulaire{
        width: 90%;
        margin: auto;
        margin-top: 20px;
    }
    #formhaut {
        flex-direction: column;
    }
    .inputformulaire{
        inset: 2px 2px 2px 2px;
    }
    .inputformhaut {
        width: 100%;
    }
    footer{
        height: 700px;
    }
    #footer{
        flex-direction: column-reverse;
        gap: 50px;
    }
    .backroundreseau{
        position: absolute;
        inset: 2px 2px 2px 2px;
    }
}
