* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}


body{
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #050510 60%, #000000 100%);
    font-family: 'Space Grotesk','Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

nav {
    background: rgba(20, 20, 30, 0.447);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(178, 178, 255, 0.15);
    padding: 1rem 2rem;
    width: 90%; 
    max-width: 1100px; 
    left: 50%; 
    transform: translateX(-50%);
    top: 2rem;
    position: fixed;
    border-radius: 50px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between; 
    align-items: center;
    z-index: 999;
}

.navbar-logo a {
    font-size: 20px;
    white-space: nowrap;
}

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

#accueil-collab{
    background: rgba(132, 119, 119, 0.116);
    border: 1px solid rgba(178, 178, 255, 0.15);
    padding: 0.5rem;
    display: inline-block;
    border-radius: 50px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.3);
}

span{
    color: rgb(178, 178, 255);
    font-weight: bolder;
}


.navbar-elements {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}


.navbar-elements a {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.navbar-elements a i{
    transition: color 0.3s ease;
}

.navbar-elements a:hover,
.navbar-elements a:hover i{
    color: rgb(178, 178, 255);
}

main{
    margin-top: 10rem;
    padding: 2rem;
}

.accueil{
    display: flex;
    height: 500px;
    scroll-margin-top: 180px; 
}

.name{
    background: linear-gradient(135deg, rgb(178, 178, 255) 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.profil img{
    border-radius: 100%;
    width: 350px;
    height: 350px;
    margin-left: 2rem;
    margin-right: 2rem;
    box-shadow: 0 0 20px 1px rgb(178, 178, 255);
    transition: transform 0.3s ease;
}

.profil img:hover{
    transform: translateY(-3px) scale(1.05);
}

.accueil-description{
    margin-top: 20px;
}

.accueil-description h1{
    font-size: 50px;
}

.accueil-description span{
    color: rgb(178, 178, 255);
}

.accueil-elements{
    display: flexbox;
    padding: 3rem;
}

.accueil-boutons{
    margin-top: 20px;
}

.accueil-boutons button{
    padding: 1rem;
    border: none;
    border-radius: 15px;
    background-color:  rgb(178, 178, 255);
    transition: all 0.5s;
    margin-right: 10px;
}

#bouton_2{
    background-color: #1a1a2e;
    border: 1px solid  rgba(178, 178, 255, 0.594);
}

#bouton_2 a{
    color: rgb(178, 178, 255);
}

.accueil-boutons button a{
    color: white;
}

button:hover{
    box-shadow: 0 0 20px rgba(107, 107, 196, 0.897);
    transform: scale(1.05);
}

button:active{
    transition: all 0.25s;
    -webkit-transition: all 0.25s;
    box-shadow: none;
    transform: scale(0.98);
}

hr{
    border: none; 
    height: 1px;
    background-color: rgba(178, 178, 255, 0.2);
    margin: 2rem 0;
}

.accueil-follow{
    margin-top: 10px;
    display: flex;
}

.accueil-follow p{
    margin-right: 10px;
}

.accueil-follow a{
    margin-right: 7px;
    transition: color 0.3s ease;
}

.accueil-follow a:hover i{
    color: rgb(178, 178, 255)
}

.about{
    min-height: 1000px;
    padding: 3rem;
}

.titres{
    margin-bottom: 30px;
}

.about-description{
    display: flex;
    font-size: 20px;
    gap: 4rem;
}


.about-description #paragraphe{
    margin-top: 30px;
    margin-bottom: 3rem;
    font-size: 15px;
}

.about img{
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 20px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about img:hover{
    transform: translateY(-3px) scale(1.05);
}

.about h2{
    background: linear-gradient(135deg, rgb(178, 178, 255) 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.specification-card{
    background: rgba(132, 119, 119, 0.116);
    border: 1px solid rgba(178, 178, 255, 0.15);
    padding: 0.5rem;
    display: flex;
    border-radius: 20px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    align-items: center;
}

.specification-card i{
    padding: 1rem;
    font-size: 15px;
    color: rgb(178, 178, 255);
}

.specification-card p{
    font-size: 15px;
    padding: 0.5rem;
    font-weight: 100;
}

.cv button{
    margin-top: 10px;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    background-color:  rgb(178, 178, 255);
    transition: all 0.5s;
}

.specification-card .information{
    color: rgb(178, 178, 255);
    font-weight: 600;
}

.competences{
    min-height: auto;
    padding: 3rem;
}

.skills-stats-container{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.skills-card{
    background: rgba(132, 119, 119, 0.116);
    border: 1px solid rgba(178, 178, 255, 0.15);
    display: flex;
    border-radius: 20px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.3);
    margin-bottom: 10px;
    align-items: center;
    margin-right: 20px;
    padding: 1rem;
    width: 170px;
    height:170px;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.skills-card:hover{
    border-color: rgba(178, 178, 255, 0.594);
    transform: translateY(-3px) scale(1.1);
}

.skills-card i{
    justify-content: center;
    align-items: center;
    font-size: 40px;
    margin-bottom: 10px;
}

.python-svg-icon {
    width: 2.8rem; 
    height: 2.8rem;
    object-fit: contain;
    margin-bottom: 8px;
    display: inline-block;
}

.skills-card p{
    text-align: center;
    margin-bottom: 5px;
    margin-top: 10px;
}

.progress-container{
    width: 100%;
    background-color: white;
    height: 6px;
    border: 1px solid rgba(82, 31, 106, 0.769);
    border-radius: 20px;
}

.progress-bar{
    height: 100%;
    background: linear-gradient(135deg, rgb(88, 88, 158) 0%, rgb(178, 178, 255) 100%);
    border-radius: 10px;
}

.projets {
    padding: 5rem 2rem;
    min-height: 100vh;
}

.projets-card {
    background: rgba(132, 119, 119, 0.116);
    border: 1px solid rgba(178, 178, 255, 0.15);
    border-radius: 20px;
    box-shadow: 0 0 15px 5px rgba(0, 0, 0, 0.3);
    display: flex; 
    flex-direction: column; 
    width: 100%;
    max-width: 380px;
    height: 550px; 
    position: relative;
    overflow: hidden; 
    transition: transform 0.3s ease;
}

.projets-card:hover{
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(178, 178, 255, 0.594);
}


.image_projet {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease; 
}

.projets-card:hover img{
    transform: translateY(-3px) scale(1.1);
}

.projets-card h4, .projets-card p{
    padding: 1rem;
}

.projets-stats-elements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
    justify-items: center;
}

.projets h4{
    background: linear-gradient(135deg, rgb(178, 178, 255) 0%, #ffffff 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.boutons-projet{
    padding: 1rem;
    position: absolute;
    bottom: 15px;
    left: 15px;
}

.boutons-projet a{
    margin-right: 10px;
}

.contact h1{
    text-align: center;
}

.contact {
    display: flex;
    flex-direction: column; 
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 4rem 1.5rem;
}

.formulaire{
    display: flex;
    padding: 3rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(132, 119, 119, 0.078);
    border: 1px solid rgba(178, 178, 255, 0.15);
    display: inline-block;
    border-radius: 20px;
}

.formulaire input{
    background: rgba(132, 119, 119, 0.078);
    border: 1px solid rgba(178, 178, 255, 0.15);
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 15px;
}


#input_sujet{
    width: 100%;
}

textarea{
    background: rgba(132, 119, 119, 0.078);
    border: 1px solid rgba(178, 178, 255, 0.15);
    border-radius: 4px;
    padding: 1rem;
    width: 100%;
    height: 100px;
    resize: vertical;
    box-sizing: border-box;
}

.formulaire a i{
    color: rgb(178, 178, 255);
    margin: 10px;
    font-size: 20px;
    transition: color 0.3s ease;
}

.formulaire a i:hover{
    color: white;
}

.contact button{
    margin-top: 10px;
    padding: 1rem;
    border: none;
    border-radius: 15px;
    background-color: rgb(178, 178, 255);
    transition: all 0.5s;
}

footer{
    align-items: center;
    text-align: center;
    padding: 2rem;
}


@media (max-width: 768px){
    nav{
        width: 95%;
        padding: 0.6rem 1rem;
        top: 1rem;
        justify-content: space-between;
    }

    .navbar-elements{
        gap: 0.8rem;
    }

    .navbar-elements a{
        font-size: 14px;
    }

    .navbar-elements a span,
    .navbar-elements a{
        font-size: 0;
    }

    .navbar-elements a i{
        font-size: 16px;
    }

    main{
        margin-top: 7rem;
        padding: 1rem;
    }

    .accueil{
        flex-direction: column-reverse;
        height: auto;
        text-align: center;
    }

    .accueil-elements{
        padding: 1rem 0;
    }

    .accueil-description h1{
        font-size: 25px;
    }

    .accueil-follow{
        justify-content: center;
    }

    .profil img{
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem auto;
    }

    .about{
        min-height: auto;
        padding: 2rem 2rem;
    }

    .about-description{
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }

    .about img{
        max-width: 280px;
    }

    .specification-card{
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .competences{
        height: auto;
        padding: 2rem 1rem;
    }
    .skills-stats-container{
        padding: 0;
    }

    .skills-card{
        margin-right: 0;
        margin: 10px;
        height: 150px;
    }

    .projets-stats-elements{
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .image_projet {
        width: 100%;
        height: auto;
        max-height: 250px;
        object-fit: cover;
    }

    .projets-card{
        width: 100%;
        max-width: 100%;
        height: auto;
        padding-bottom: 60px;
    }

    .formulaire{
        padding: 1.5rem;
        width: 100%;
    }

    .formulaire-infos{
        display: flex;
        flex-direction: column;
    }

    .formulaire input{
        width: 100%;
    }
}
