.navbar{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 20px;
}

.navbardroite{
    display: flex;
    gap: 20px;
}

body{
    background-color: rgb(17,17,17);
    font-family: "DM Sans", sans-serif;
    color: white;
}

h1{
    font-weight: 700;
}
.section1{
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.section1gauche h1{
    margin: 0;
}

.section1gauche p{
    color: rgb(82, 82, 82);
}

.section1droite{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 430px;
    height: 430px;
    background-color: rgba(30, 29, 29, 0.2);
    border: 0.2px solid rgba(32, 32, 32, 1);
    border-radius: 50%;
}

.section1droite img{
    width: 400px;
    height: 400px;
    border-radius: 50%;
}

.btns button:first-child{
    background-color: rgba(39, 174, 96, 1);
    padding: 10px 20px;
    border: 1px solid rgba(39, 174, 96, 1);
    color: white;
}

.btns button:last-child{
    background-color: transparent;
    border: 1px solid white;
    padding: 10px 20px;
    color: white;
}

.section2{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.aboutme{
    max-width: 50%;
    text-align: center;
}


.section2 h1{
    margin: 0;
}

.contacts p{
    text-align: center;
    margin: 1px 0px;
}

.contacts{
    display: flex;
    gap: 40px;
}

.contacts div{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.icone{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgb(39, 39, 39);
    border-radius: 50%;
}

.sousicone{
    width: 9px;
    height: 9px;
    background-color: rgba(39, 174, 96, 1);
    border-radius: 50%;
}

.section3{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.activities{
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.activitie1, .activitie2, .activitie3{
    background-color: rgba(33, 33, 33, 1);
    width: 200px;
    height: 125px;
}

.activitiecontainer{
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 10px;
    margin: 20px;
}

.activities div p{
    color: rgba(83, 83, 83, 1);
    font-weight: 500;
    margin: 0;
}

svg{
    height: 30px;
    width: 30px;
}

.section4{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skills{
    display: flex;
    width: 80%;
    background-color: rgba(33, 33, 33, 1);
    justify-content: space-around;
    padding: 30px 0px;
}

.skillcontainer{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skillcontainer p{
    margin: 0;
    font-weight: 700;
}

.skillcontainer p:first-child{
    color: rgba(79, 79, 79, 1);
    font-size: 2em;
}

.skillcontainer p:last-child{
    color: rgba(39, 174, 96, 1);
}

.section5{
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.name, .email{
    display: flex;
    gap: 25px;
}

form input, form textarea{
    background-color: rgba(33, 33, 33, 0);
    padding: 10px;
    color: white;
    font-weight: 700;
    font-style: normal;
}

form input{
    border: 0;
    border-bottom: 1px solid rgba(79, 79, 79, 1);
}

form textarea{
    resize: none;
    font-family: "DM Sans", sans-serif;
    color: rgba(79, 79, 79, 1);
}

.buttoncontainer{
    display: flex;
    justify-content: center;
}

form button{
    background-color: rgba(39, 174, 96, 1);
    color: white;
    font-family: "DM Sans", sans-serif;
    padding: 10px;
    border: none;
    width: 35%;
}

.section1, .section2, .section3, .section4, .section5{
    margin: 80px 0px;
}

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 50px;
    color: rgba(79, 79, 79, 1);
    font-weight: 500;
}

html::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE et Edge */
}

/* RESPONSIVE */
@media screen and (max-width: 450px){
    
    /* 1. Navbar : On empile le logo et les liens verticalement */
    .navbar {
        flex-direction: column;
        gap: 15px;
        padding: 20px 0;
    }
    
    .navbardroite {
        gap: 15px;
        font-size: 0.9em;
    }

    /* 2. Section 1 (Hero) : On passe le texte au-dessus de l'image */
    .section1 {
        flex-direction: column-reverse; /* Image en haut ou en bas selon préférence, ici texte en bas */
        text-align: center;
        gap: 30px;
        margin: 40px 0;
    }

    /* On réduit la taille du cercle de l'image qui était fixé à 430px */
    .section1droite {
        width: 300px;
        height: 300px;
    }

    .section1droite img {
        width: 280px;
        height: 280px;
    }

    /* On centre les boutons */
    .btns {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }

    /* 3. Section 2 (About) */
    /* Le texte prend plus de largeur sur mobile (50% -> 90%) */
    .aboutme {
        max-width: 90%;
    }

    /* Les contacts s'empilent au lieu d'être côte à côte */
    .contacts {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }

    /* 4. Section 3 (Activities) */
    /* On empile les cartes d'activités */
    .activities {
        flex-direction: column;
    }

    /* 5. Section 4 (Skills) */
    /* On permet aux compétences de passer à la ligne si nécessaire */
    .skills {
        width: 90%;
        flex-wrap: wrap;
        gap: 20px;
    }

    /* 6. Section 5 (Formulaire) */
    form {
        width: 90%; /* Pour ne pas coller aux bords */
    }

    /* Les champs (Nom/Prénom et Email/Tel) s'empilent */
    .name, .email {
        flex-direction: column;
        gap: 15px;
    }

    /* Le bouton prend toute la largeur pour être facile à cliquer */
    form button {
        width: 100%;
    }
}