:root{
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --card-bg-secondary: #21262d;
    --dark : #161b22;
    --accent: #58a6ff;
    --text-light: #d2dae2;
    --text-muted: #8b949e;
    --linker-color: var(--text-light);
    --green: #238636;
    --purple: #a371f7;
    --blue: #58a6ff;
    --brown: #ad2c04;
    --yellow: #f2aa1a;
    --orange: #e44f15;
    --transition: all 0.3s ease;
    --font-size : 1rem ;
    --title-primary : 2.5rem ;
    --title-secondly : 2rem ;
    --title-thirdly : 1.5rem ;
    --title-fourth : 0.9rem ;

    }
*{
    box-sizing: border-box;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}
body{
    
    overflow-x: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-light);
    background-color: var(--bg-color);
    max-width: 3000px;
    font-size: var(--font-size);
    
}



#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    background: #0a0a0a; /* Fond sombre */
}


#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
}

.loading-text { 
    font-size: 1.8rem;
    background: linear-gradient(90deg, #bb86fc, #03dac6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 2s infinite;
}

.progress-container {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    margin: 20px auto;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #bb86fc, #03dac6);
    transition: width 0.4s ease;
}


#main-content {
    display: none; 
    opacity: 0;
    transition: opacity 0.5s ease;
}

#main-content.show {
    display: block;
    opacity: 1;
}

/* Animation du texte (identique) */
@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Animation du logo (identique) */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}


section{
    margin: 5rem 0;
}
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.animated-bg {
    background: linear-gradient(-45deg, var(--card-bg), var(--card-bg-secondary), var(--card-bg));
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
    height: 4px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
}
.container{
    width: 80%;
    max-width: 1600px;
    margin: auto;
    border-radius: 20px;
    margin-bottom: 2rem;
}
.container1{
    background-color: var(--card-bg);
    width: 80%;
    max-width: 1600px;
    margin: auto;
    padding: 2rem 5%;
    border-radius: 20px;
}
.container2{
    background-color: var(--card-bg-secondary);
    width: 100%;
    max-width: 1100px;
    margin: auto;
    padding: 2rem;
    border-radius: 20px;
}

.title{
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.font1{
    font-size: var(--title-primary);
}
.font2{
    font-size: var(--title-secondly);
}
.font3{
    font-size: var(--title-thirdly);
}
.font4{
    font-size: var(--font-size);
}
.font5{
    font-size: var(--title-fourth);
}
.flex{
    display: flex;
    
}
.flex-row{
    display: flex;
    flex-direction: row;
}
.flex-column{
    display: flex;
    flex-direction: column;
}
.content-center{
    align-items: center;
    align-content: center;
}
.fit-content{
    height: fit-content;
    width: fit-content;
}
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--card-bg);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
    border: none;
    transition: var(--transition);
}
.theme-toggle:hover {
    background-color: var(--accent);
    color: white;
    transform: scale(1.1);
}
.theme-toggle i {
    transition: 5s;
}
.nav{

    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 1rem 5% 1.3rem 5%;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    z-index: 10;
    backdrop-filter: blur(20px) saturate(80%);
    
}

.navname{

    color: var(--text-light);
    cursor: pointer;
    font-size:var(--title-thirdly);
    font-weight: 700;
    vertical-align: center;
    
}
.nav-links{
    display: flex;
    flex-direction: row;
    gap: 1rem;


}
.nav-link {
    color: var(--text-light);
    font-size: var(--title-thirdly);
}
.nav-link a::after {
    content: "";
    display: block;
    background: linear-gradient(120deg, var(--accent), var(--purple));
    position: relative;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    transition: var(--transition);
}
.nav-link a:hover::after {
    width: 100%;
}

a{
    text-decoration: none;
    color: var(--text-light);
}
a:hover{
    text-decoration: none;
    color: rgb(59 130 246);
}
.option{
    display: none;
    margin: 0;
}
#main{
    padding: 5rem 8rem 0 8rem;
    display: flex;
    flex-direction: column;
}
.first{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 0 8rem 0;
}
.hero{
    max-width: 60%;
}
.hero-name{
    margin: 0;
    font-size: 5rem;
}
.hero-job{
    margin: 0;
    font-size: var(--title-primary);
}
.hero-links{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    padding-top: 1rem;
}
.hero-links img{
    width: 80%;
    height: auto;
}
.hero-profile{
    width: 30%;
}
.hero-buttons-container{
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: .5rem 0;
}
.hero-buttons{
    border: 2px solid rgb(59 130 246);
    padding: .5rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: var(--title-fourth);
    color: rgb(59 130 246);
    display: inline-block;
    text-align: center;
    
}
.cv-button{
    background-color: rgb(59 130 246);
    color: white;
    
}
.hero-buttons:hover{
    color: white;
}
.project-button:hover{
    background-color: rgb(59 130 246);
}
.profile img{
    animation: shadow 3s ease-in-out infinite;
    box-shadow: 0 0 14px white;
    height: auto;
    width: 100%;
    max-width: 450px;
    border-radius: 250px;
}


.maintitle{
    
    font-size: var(--title-primary);
    font-weight: 1000;
    color: var(--text-light);
    margin: 0;
}
#heroskill{
    color: var(--blue);
}
.secondTitle{
    text-align: start;
    color: var(--text-light);
    font-size: var(--title-secondly);
    font-weight: 700;
    margin: 2% 10% 2% 10%;
}
.mainContent{
    text-align: center;
    max-width: 1500px;
    background:var(--card-bg);
    border-radius: 20px;
    font-size: inherit;
    font-weight: 600;
    padding: 30px 30px 30px 30px ;
    margin-bottom:50px;
}
.mainContent p{
    font-size: inherit;
}

.about-container{
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}
.about-profile{
    width: 60%;
}
.about-profile img{
    width: 100%;
    max-width: 350px;
    min-width: 200px;
    border-radius: 250px;
}
.about-div{
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
}
.about-info{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));;
    gap: 1rem;
    padding: 1rem;
}
.about-info-item{
    background: var(--card-bg-secondary);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    min-width: 10%;
    max-width: 200px;
}
.about-info-item strong{
    font-size: var(--title-thirdly);
}
.blue{
    color: rgb(59 130 246);
}
.green{
    color: rgb(1, 190, 64);
}
.yellow{
    color: rgb(189, 179, 4);
}
.orange{
    color: rgb(255, 102, 0);
}

.bg-blue{
    background: rgb(59 130 246);
}
.bg-green{
    background: rgb(1, 190, 64);
}
.bg-yellow{
    background: rgb(189, 179, 4);
}
.bg-orange{
    background: rgb(255, 102, 0);
}

.competences{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}
.skilldiv{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}
.skillTitle{
    background: #161b22;
    border: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    color: white;
}
.skill{
    min-width: 10px;
    width: 100%;
    margin-bottom: 0;
    border: none;
   
}
.skillContent{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    color: #161b22;
    text-align: start;
    background: white;
}

.jaugetitle{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;

}
.jauge-info{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: fit-content;
    width: 100%;
}
.jauge-banner{
    display: flex;
    flex-direction: row;
    width: 100%;
    align-content: center;

}
.jauge{

    padding: 5px;
    border: 3px solid var(--dark);
    height: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    z-index: 1;
    width: 100%;
    display: flex;
    
}
.jaugeContent{
    border-radius: 10px;
    border: none;
    height: 100%;
    color: var(--text-muted);
    text-align: end;
    animation: Translate  3s ease ;
    z-index: 0;
}
.html{
    width: 80%;
    background: linear-gradient(90deg, rgb(255, 102, 0), var(--dark) 90%);
}
.css{
    width: 60%;
    background: linear-gradient(90deg, rgb(0, 128, 255), var(--dark) 70%);
}
.bs{
    width: 70%;
    background: linear-gradient(90deg, rgb(0, 174, 255), var(--dark) 80%);
}
.vbd{
    width: 60%;
    background: linear-gradient(90deg, rgb(109, 1, 192), var(--dark) 60%);
}
.js{
    width: 70%;
    background: linear-gradient(90deg, rgb(255, 242, 0), var(--dark) 85%);
}
.node{
    width: 60%;
    background: linear-gradient(90deg, rgb(0, 255, 85), var(--dark) 80%);
}
.python{
    width: 80%;
    background: linear-gradient(90deg, rgb(0, 255, 85), var(--dark) 80%);
}
.vb{
    width: 40%;
    background: linear-gradient(90deg, rgb(109, 1, 192), var(--dark) 60%);
}
.sql{
    width: 40%;
    background: linear-gradient(90deg, rgb(175, 49, 49), var(--dark) 60%);
}
.vps{
    width: 50%;
    background: linear-gradient(90deg, rgb(175, 49, 49), var(--dark) 80%);
}
.c{
    width: 30%;
    background: linear-gradient(90deg, rgb(0, 123, 255), var(--dark) 60%);
}
.bda{
    width: 30%;
    background: linear-gradient(90deg, rgb(109, 1, 192), var(--dark) 80%);
}
.cloud{
    width: 30%;
    background: linear-gradient(90deg, rgb(109, 1, 192), var(--dark) 60%);
}


.contact{
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.icon{
    position: relative;
    top: 10px;
}

.main-project-container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.project-container{
    margin: 0;
    padding: 0;
    border-radius: 20px;
    max-width: 600px;
    background-color:  var(--card-bg);
    height: fit-content;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.project-images {
    border-top-left-radius:  20px;
    border-top-right-radius: 20px;
    width: 100%;
    height: 230px;
    object-fit: cover;

}

.project-banner{
    background-color:  var(--card-bg);
    padding: 1rem;
    box-sizing: content-box;
    border-bottom-left-radius:  20px;
    border-bottom-right-radius: 20px;
}
.project-title{
    font-size: var(--title-thirdly);
    font-weight: bold;
    color: rgb(59 130 246);;
    margin-bottom: 2%;
}
.project-description{
    font-size: var(--font-size);
    padding-bottom: 2%;
    color: var(--text-muted);
}
.project-technologies{
    display: flex;
    text-wrap: nowrap;
    justify-content: left;
    flex-wrap: wrap;

}
.project-technologies span{
    padding: 0.3rem 0.5rem;
    border-radius: 20px;
    margin-bottom: 10px;
    margin-right: 10px;
    font-size: var(--title-fourth);
}
.t-orange{
    border: 2px solid #ff6600;
    color: #ff6600;
    background-color: #330000;
}
.t-green{
    border: 2px solid #03cf03;
    color: #03cf03;
    background-color: #00420a;
}

.t-blue{
    border: 2px solid #6a6afa;
    color: #6a6afa;
    background-color: #02026e;
}
.t-yellow{
    background-color: #5e5e02;
    color: #ffff37;
    border: 2px solid #ffff37;
}
.t-marron{
    background-color: #830303;
    color: #fd4c4c;
    border: 2px solid #fd4c4c;
}
.project-footer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid  rgb(59 130 246);
    padding: 0.5rem ;
    margin-top: 0.5rem;
    color:  rgb(59 130 246);
}

.project-details{
    cursor: pointer;
    text-decoration: underline;
}

.contact-container{
    display:  grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    align-items: start;
}
.contact-form{
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.form-title{
    margin: 0;
}
.contact-input{
    height: 3rem;
    padding: 0 1rem;

}
.contact-input-el{
    background-color: var(--card-bg-secondary);
    color: var(--text-light);
    border:1px solid var(--card-bg-secondary);
    border-radius: 10px;
    outline: none;
}

.contact-input-el:focus{
    border: 2px solid var(--accent);
}
.contact-input-el:hover{
    border: 2px solid var(--accent);
}

.copy{
    cursor: pointer;
}

#message{
    resize: none;
    font-size: var(--font-size);
    padding: 1rem 2rem;
}
.send-div{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}
.contact-info{
    display: flex;
    flex-direction: column;
    align-content: center;
    gap: 1rem;
}
.contact-info h1{
    margin: 0;
}
.contact-info-div{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}
.contact-button{
    background-color: var(--green);
    border-radius: 10px;
    padding: .5rem 0 .7rem 0;
    border: none;
    color: white;
    width: 80%;
}

.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.blog-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.post-card:hover,.project-container:hover {
    transition: 100ms ease-in-out;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.post-image {
    height: 160px;
    background-size: cover;
    background-position: center;
}

.post-content {
    padding: 1.5rem;
}

.post-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
}

.post-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.post-excerpt {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid #252525;
    padding-top: 1rem;
}

.read-more {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
}

.read-more:hover {
    text-decoration: underline;
}


footer{
    background: var(--card-bg);
    position:static;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 0;
}
.footer-text{
    font-size:var(--font-size);
    color: #848383;
    text-align: center;
    
}
.social-links img{
    width: auto;
    height: 0.1%;
    max-height: 50px;
}

.ctx{
    width: 100%;
    margin: 20px 0 20px 0;
    font-weight: bold ;
    font-size: var(--title-thirdly);
    text-align: center;
}
.social-links{
    
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
}
.social-des{
    display: flex;
    flex-wrap: nowrap;
    color: black;
    max-width: 50%;
    min-width:300px ;
    border-radius: 50px;
    margin: 10px;
    padding: 5px 5px;
}
.social-des p{
    margin: 2px;
    font-size: var(--title-fourth);
    padding-top: 5px;
    font-weight: 500;
}
.mail img{
    border-radius: 20px;
    margin: 1px;
    width: auto;
    height: 0.1%;
    max-height: 50px;
    padding-top: 5px;
}
.phone{
    background-color: cyan;
}
.whatsapp{
    background-color: rgb(12, 240, 12);
}
.telegram{
    background-color: rgb(51, 143, 229);
}
.mail{
    background-color: #EBEBF5;
    padding: 10px;
}
.github{
    background-color: #848383;
}



@keyframes messageAppear {
    from {
        color: black;
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes shadow {
    0% {
        box-shadow: 0 0 0 white;
    }
    50% {
        box-shadow: 0 0 25px var(--text-light);
    }
    100% {
        box-shadow: 0 0 0 white;
    }
}

@keyframes vivid {
    from {
        text-shadow: none;
    }
    to {
        text-shadow: 5px 5px 5px 5px  rgb(255, 51, 0);
    }
}

@keyframes Translate {
    from {
        width: 0;
    }
    to {
        
    }
}

@keyframes Rotate {
   
    0%{
        transform: scale(1.0);
    }
    50%{
        transform: scale(1.5) translateX(160px);
        
    }
    100%{
        transform: scale(1.0);
    }

}

@keyframes zoomblur {
    from{

    }to{
        
    }
}
@keyframes gradient {
    0% { background-position: 0 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}


@media (max-width: 950px) {
    .hero-name{
        margin: 0;
        font-size: 4rem;
    }
    .about-container{
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}


@media (max-width: 850px) {
    :root{
        --font-size : 1rem ;
        --title-primary : 1.8rem ;
        --title-secondly : 1.5rem ;
        --title-thirdly : 1.2rem ;
        --title-fourth : 0.8rem ;
        
    }
    @media (max-width: 750px) {
        :root{
            --font-size : 1rem ;
            --title-primary : 1.5rem ;
            --title-secondly : 1.3rem ;
            --title-thirdly : 1.2rem ;
            --title-fourth : 0.8rem ;
            
        }
        .hero-name{
            margin: 0;
            font-size: 3rem;
        }
        .posts-grid {
                grid-template-columns: 1fr;
            }
    }
    
}




@media (max-width: 620px) {
    :root{

            --font-size : 1rem ;
            --title-primary : 1.5rem ;
            --title-secondly : 1.3rem ;
            --title-thirdly : 1.1rem ;
            --title-fourth : 0.7rem ;
        
    }
    .first{
        padding-left:  .5rem;
    }
    .about-container{
        padding: 0 1rem;
    }
    @media (max-width: 540px) {
        :root{
            --font-size : 0.8rem ;
            --title-primary : 1.4rem ;
            --title-secondly : 1.3rem ;
            --title-thirdly : 1.2rem ;
            --title-fourth :0.6rem ;
            
        }
    }
    .container1, .container{
        width: 95%;
    }
    .hero-name{
        font-size: 2rem;
    }
    #main{
        padding: 0;
    }
    .nav-links{
        display: none;
    }
    .option{
        display: inline;
    }

    .maintitle{
        margin-top: 2.5%;
        margin-bottom: 2.5%;
    }
    .main-project-container{
            
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            
    }

}
