*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
    
 }

 html{
   scroll-behavior: smooth;
 }

 body{
    background: #080808;
    color: #fff;
 }
 #header{
    width: 100%;
    height: 100vh;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: center;
 }
 .container{
   padding: 10px 10%;
 }
 nav{
   display: flex;
   align-items: center;
   justify-content: space-between;
   flex-wrap: wrap;
 }
 .logo{
   width: 140px;
 }
nav ul li{
   display: inline-block;
   list-style: none;
   margin: 10px 20px;
}
nav ul li a{
   color: #fff;
   text-decoration: none;
   font-size: 18px;
   position: relative;
}
nav ul li a::after{
   content: '';
   width: 0;
   height: 3px;
   background: #fd6c72;
   position: absolute;
   left: 0;
   bottom: -6px;
   transition: 0.5s;
}
nav ul li a:hover::after{
   width: 100%;
}
.header-text{
   margin-top: 20%;
   font-size: 30px;
}

.header-text h1{
   font-size: 100px;
   margin-top: 20px;
   font-family: 'Caveat Brush', cursive;  /* Police Caveat Brush */
   letter-spacing: 2px;
   font-weight: 400;  /* Poids de police normal pour Caveat Brush */
}

#about{
   padding: 80px 0;
   color: #ababab;
}
.row{
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
}
.about-col-1{
   flex-basis: 35%;
}
.about-col-1 img{
   width: 100%;
   border-radius: 15px;
}
.about-col-2{
   flex-basis: 60%;
}
.about-col-2 h1 {
   font-size: 60px;
   font-weight: 600;
   color: white;
   margin-bottom: 30px;  /* Ajout de marge en bas du titre */
}

.about-col-2 p {
   margin-top: 20px;  /* Ajout de marge en haut du paragraphe */
   line-height: 1.8;  /* Amélioration de l'espacement des lignes */
}
.sub-title{
   font-size: 60px;
   font-weight: 600;
   color: white;
}
.tab-titles{
   display: flex;
   margin: 20px 0 40px;
}
.tab-links{
   margin-right: 50px;
   font-size: 18px;
   font-weight: 500;
   cursor: pointer;
   position: relative;
}.tab-links::after{
   content: '';
   width: 0;
   height: 3px;
   background: #fd6c72;
   position: absolute;
   left: 0;
   bottom: -8px;
   transition: 0.5s;
}
.tab-links.active-link::after{
   width: 50%;
}
.tab-contents ul li{
   list-style: none;
   margin: 20px 0;  /* Plus d'espace entre les éléments */
}
.tab-contents ul li span{
   color: #fd6c72;
   font-size: 18px;  /* Augmentation de la taille du texte des en-têtes */
   font-weight: 500;
   margin-bottom: 10px;
   display: inline-block;
}
.tab-contents ul li br + *{
   font-size: 16px;  /* Taille du texte principal */
   line-height: 1.6;  /* Meilleur espacement des lignes */
   margin-top: 5px;  /* Espace après le saut de ligne */
}

/* Adaptation pour mobile */
@media only screen and (max-width: 600px) {
    .tab-contents ul li span {
        font-size: 16px;
    }
    
    .tab-contents ul li br + * {
        font-size: 14px;
    }
}
.tab-contents{
   display: none;
}
.tab-contents.active-tab{
   display: block;
}
#portfolio{
   padding: 50px 0;
   min-height: 100vh;  /* Occupe toute la hauteur de l'écran */
   display: flex;
   flex-direction: column;
   justify-content: center;
   margin-bottom: 100px;  /* Ajoute de l'espace en bas */
   position: relative;  /* Pour le séparateur */
   }
   
   #portfolio::after {
       content: '';
       position: absolute;
       bottom: -50px;
       left: 50%;
       transform: translateX(-50%);
       width: 80%;
       height: 2px;  /* Augmentation de l'épaisseur */
       background: linear-gradient(to right, 
           transparent,
           rgba(253, 108, 114, 0.2),  /* Plus subtil au début */
           rgba(253, 108, 114, 0.6),  /* Transition */
           rgba(253, 108, 114, 1),    /* Point culminant */
           rgba(253, 108, 114, 0.6),  /* Transition */
           rgba(253, 108, 114, 0.2),  /* Plus subtil à la fin */
           transparent
       );
       box-shadow: 0 0 10px rgba(253, 108, 114, 0.3);  /* Ajout d'un léger halo */
   }
   
   #contact {
       min-height: 100vh;  /* Occupe toute la hauteur de l'écran */
       display: flex;
       flex-direction: column;
       justify-content: center;
       padding-top: 100px;  /* Ajoute de l'espace en haut */
   }
.work-list{
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   grid-gap: 40px;
   margin-top: 50px;
}
.work-list.second-row {
   grid-template-columns: repeat(2, 1fr);
   width: 66.66%;
   margin: 40px auto 0;
}

@media only screen and (max-width: 600px) {
    .work-list, .work-list.second-row {
        grid-template-columns: 1fr;
        width: 100%;
    }
}
.work{
   border-radius: 10px;
   position: relative;
   overflow: hidden;
}

.work img{
   width: 100%;
   border-radius: 10px;
   display: block;
   transition: transform 0.5s;
}

.btn{
   display: block;
   margin: 50px auto; width: fit-content;
   border: 1px solid #ff004f;
   padding: 14px 50px;
   border-radius: 6px;
}

.layer{
   width: 100%;
   height: 0;
   background: linear-gradient(rgba(0,0,0,0.8), #fd6c72);
   border-radius: 10px;
   position: absolute;
   left: 0;
   bottom: 0;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   padding: 0 40px;
   text-align: center;
   font-size: 14px;
   transition: height 0.5s;
}

.layer h3{
   font-weight: 500;
   margin-bottom: 20px;
   color: #ffffff;  /* Texte en blanc pour le titre */
   font-size: 24px;
}

.layer p{
   color: #ffffff;  /* Texte en blanc pour la description */
   font-size: 16px;
   line-height: 1.6;
   margin-bottom: 20px;
}

.layer a{
   margin-top: 20px;
   color: #ff004f;
   text-decoration: none;
   font-size: 18px;
   line-height: 60px;
   background: #fff;
   width: 60px;
   height: 60px;
   border-radius: 50%;
   text-align: center;
}

.work:hover img{
   transform: scale(1.1);
}

.work:hover .layer{
   height: 100%;
}

.btn{
   display: block;
   margin: 50px auto;
   width: fit-content;
   border: 1px solid #fd6c72;
   padding: 14px 50px;
   border-radius: 6px;
   text-decoration: none;
   color: #fff;
   transition: background 0.5s;
}

.btn:hover{
   background: #fd6c72;
}

.contact-left{
   flex-basis: 35%;
}

.contact-right{
   flex-basis: 60%;
}

.contact-left p{
   margin-top: 30px;
}

.contact-left p i{
   color: #fd6c72;
   ;
   margin-right: 15px;
   font-size: 25px;
}

.social-icons{
   margin-top: 30px;
}

.social-icons a{
   text-decoration: none;
   font-size: 30px;
   margin-right: 15px;
   color: #ababab;
   display: inline-block;
   transition: transform 0.5s;
}

.social-icons a:hover{
   color: #fd6c72;
   transform: translateY(-5px) ;
}

.btn.btn2{
   display: inline-block;
   background: #fd6c72;
}

.contact-right form{
   width: 100%;
}

form input, form textarea{
   width: 100%;
   border: 0;
   outline: none;
   background: #262626;
   padding: 15px;
   margin: 15px 0;
   color: #fff;
   font-size: 18px;
   border-radius: 6px;
}

form .btn2{
   padding: 14px 60px;
   font-size: 18px;
   margin-top: 20px;
   cursor: pointer;
}

.copyright{
   width: 100%;
   text-align: center;
   padding: 25px;
   background: #262626;
   font-weight: 300;
   margin-top: 20px;
}

/* Suppression des styles liés aux compétences */

#portfolio{
   padding: 50px 0;
   min-height: 100vh;
   display: flex;
   flex-direction: column;
   justify-content: center;
   margin-bottom: 100px;  /* Ajoute de l'espace en bas */
   position: relative;  /* Pour le séparateur */
   }
   
   #portfolio::after {
       content: '';
       position: absolute;
       bottom: -50px;
       left: 50%;
       transform: translateX(-50%);
       width: 80%;
       height: 1px;
       background: linear-gradient(to right, transparent, #fd6c72, transparent);
   }
   
   #contact {
       min-height: 100vh;  /* Occupe toute la hauteur de l'écran */
       display: flex;
       flex-direction: column;
       justify-content: center;
       padding-top: 100px;  /* Ajoute de l'espace en haut */
   }
.work-list{
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   grid-gap: 40px;
   margin-top: 50px;
}
.work{
   border-radius: 10px;
   position: relative;
   overflow: hidden;
}

.work img{
   width: 100%;
   border-radius: 10px;
   display: block;
   transition: transform 0.5s;
}

.btn{
   display: block;
   margin: 50px auto; width: fit-content;
   border: 1px solid #ff004f;
   padding: 14px 50px;
   border-radius: 6px;
}

.layer{
   width: 100%;
   height: 0;
   background: linear-gradient(rgba(0,0,0,0.6), #fd6c72);
   border-radius: 10px;
   position: absolute;
   left: 0;
   bottom: 0;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center;
   flex-direction: column;
   padding: 0 40px;
   text-align: center;
   font-size: 14px;
   transition: height 0.5s;
}
.layer h3{
   font-weight: 500;
   margin-bottom: 20px;
}

.layer a{
   margin-top: 20px;
   color: #ff004f;
   text-decoration: none;
   font-size: 18px;
   line-height: 60px;
   background: #fff;
   width: 60px;
   height: 60px;
   border-radius: 50%;
   text-align: center;
}

.work:hover img{
   transform: scale(1.1);
}

.work:hover .layer{
   height: 100%;
}

.btn{
   display: block;
   margin: 50px auto;
   width: fit-content;
   border: 1px solid #fd6c72;
   padding: 14px 50px;
   border-radius: 6px;
   text-decoration: none;
   color: #fff;
   transition: background 0.5s;
}

.btn:hover{
   background: #fd6c72;
}

.contact-left{
   flex-basis: 35%;
}

.contact-right{
   flex-basis: 60%;
}

.contact-left p{
   margin-top: 30px;
}

.contact-left p i{
   color: #fd6c72;
   ;
   margin-right: 15px;
   font-size: 25px;
}

.social-icons{
   margin-top: 30px;
}

.social-icons a{
   text-decoration: none;
   font-size: 30px;
   margin-right: 15px;
   color: #ababab;
   display: inline-block;
   transition: transform 0.5s;
}

.social-icons a:hover{
   color: #fd6c72;
   transform: translateY(-5px) ;
}

.btn.btn2{
   display: inline-block;
   background: #fd6c72;
}

.contact-right form{
   width: 100%;
}

form input, form textarea{
   width: 100%;
   border: 0;
   outline: none;
   background: #262626;
   padding: 15px;
   margin: 15px 0;
   color: #fff;
   font-size: 18px;
   border-radius: 6px;
}

form .btn2{
   padding: 14px 60px;
   font-size: 18px;
   margin-top: 20px;
   cursor: pointer;
}

.copyright{
   width: 100%;
   text-align: center;
   padding: 25px;
   background: #262626;
   font-weight: 300;
   margin-top: 20px;
}

nav .fas{
   display: none;
}




/*css partie responsive*/


nav .fa-solid{
   display: none;
}


/* Améliorations responsive */
@media only screen and (max-width: 600px){
    /* Header */
    #header{
        background-image: url(Images/background_responsive.png);
    }
    .header-text{
        margin-top: 100%;
        font-size: 16px;
    }
    .header-text h1{
        font-size: 30px;
    }
    
    /* Navigation */
    nav .fa-solid{
        display: block;
        font-size: 25px;
    }
    nav ul{
        background: #fd6c72;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 999;
        transition: 0.5s;
    }
    nav ul li{
        display: block;
        margin: 25px;
    }
    
    /* About section */
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .about-col-2{
        font-size: 14px;
    }
    .tab-links{
        font-size: 16px;
        margin-right: 20px;
    }
    
    /* Portfolio section */
    .work-list{
        grid-template-columns: 1fr;
    }
    .work{
        margin-bottom: 30px;
    }
    
    /* Contact section */
    .contact-left, .contact-right{
        flex-basis: 100%;
    }
    .contact-right{
        margin-top: 30px;
    }
    
    /* Container padding */
    .container{
        padding: 10px 5%;
    }
}

/* Ajout d'un breakpoint pour tablettes */
@media only screen and (min-width: 601px) and (max-width: 900px){
    .work-list{
        grid-template-columns: repeat(2, 1fr);
    }
    .header-text{
        margin-top: 30%;
        font-size: 20px;
    }
    .header-text h1{
        font-size: 45px;
    }
    .about-col-1, .about-col-2{
        flex-basis: 100%;
    }
    .about-col-1{
        margin-bottom: 30px;
    }
    .container{
        padding: 10px 7%;
    }
}

.skill-category {
    background: #262626;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.5s, background 0.5s;
}

.skill-category:hover {
    background: #fd6c72;
    transform: translateY(-10px);
}

.skill-category i {
    font-size: 40px;
    margin-bottom: 20px;
    color: #fd6c72;
}

.skill-category:hover i {
    color: #fff;
}

.skill-category h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 15px;
}

.header-text p {
    font-size: 24px;  /* Augmentation de 18px à 24px */
    margin-bottom: 15px;
}

.about-col-2 p {
    font-size: 18px;  /* Augmentation pour une meilleure lisibilité */
    line-height: 1.8;
    margin-bottom: 30px;
}

.tab-links {
    font-size: 20px;  /* Augmentation de 18px à 20px */
    margin-right: 50px;
}

.tab-contents ul li {
    font-size: 16px;  /* Taille de base pour le contenu des onglets */
}

.skill-category p {
    font-size: 18px;  /* Augmentation de 16px à 18px */
    line-height: 1.6;
}

.layer p {
    font-size: 16px;  /* Taille appropriée pour les descriptions de projets */
    line-height: 1.6;
}

/* Adaptation pour mobile */
@media only screen and (max-width: 600px) {
    .header-text p {
        font-size: 18px;
    }
    
    .about-col-2 p {
        font-size: 16px;
    }
    
    .tab-links {
        font-size: 16px;
    }
}

.skill-level {
    background: #ff004f;
    height: 100%;
    border-radius: 10px;
    padding: 0 10px;
    color: white;
    display: flex;
    align-items: center;
    font-size: 12px;
}

.competence:hover {
    background: #ff004f;
    transform: translateY(-10px);
}

.competence:hover i {
    color: #fff;
}

#scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
}

#scroll-top a {
    background: #fd6c72;
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

#scroll-top a:hover {
    background: #262626;
    transform: translateY(-5px);
}

#scroll-top i {
    font-size: 20px;
}

@media only screen and (max-width: 600px) {
    #scroll-top {
        bottom: 20px;
        right: 20px;
    }
    
    #scroll-top a {
        width: 35px;
        height: 35px;
    }
    
    #scroll-top i {
        font-size: 16px;
    }
}

/* Uniformiser les couleurs */
.competence i,
.skill-level,
.layer,
.btn {
   color: #fd6c72;  /* Utiliser une seule couleur */
}

/* Combiner les déclarations du bouton */
.btn {
   display: block;
   margin: 50px auto;
   width: fit-content;
   border: 1px solid #fd6c72;
   padding: 14px 50px;
   border-radius: 6px;
   text-decoration: none;
   color: #fff;
   transition: background 0.5s;
}

nav ul .fa-solid{
   position: absolute;
   top: 25px;
   left: 25px;  /* Changer en right: 25px pour le déplacer vers la droite */
   cursor: pointer;
}

/* Ajouter ces nouvelles règles */
nav ul .fa-x {
   position: absolute;
   top: 25px;
   right: 25px;  /* Position à droite */
   cursor: pointer;
   color: #fff;  /* Couleur blanche pour une meilleure visibilité */
   font-size: 24px;  /* Taille légèrement plus grande */
   padding: 10px;  /* Ajoute de l'espace autour de l'icône */
   z-index: 1000;  /* Assure que l'icône reste au-dessus des autres éléments */
}
.project-page {
    min-height: 100vh;
    background: #080808;
    padding: 50px 0;
}

.project-page nav {
    padding: 20px 10%;
}

.back-btn {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #fd6c72;
}

.project-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

.project-content h1 {
    font-size: 48px;
    margin-bottom: 30px;
    color: #fff;
}

.project-main-image {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 40px;
}

.project-description {
    color: #fff;
}

.project-description h2 {
    font-size: 24px;
    margin: 30px 0 15px;
    color: #fd6c72;
}

.project-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ababab;
}

.project-links {
    margin-top: 40px;
}
.nav-logo {
    width: 100px;  /* Ajustez la taille selon vos besoins */
    transition: transform 0.3s ease;  /* Animation au survol */
}

.nav-logo:hover {
    transform: scale(1.1);  /* Léger effet de zoom au survol */
}
.success-message {
    background-color: #4CAF50;
    color: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.error-message {
    background-color: #f44336;
    color: white;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}
.certification-link {
    color: #ff004f;
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.3s ease;
}

.certification-link:hover {
    color: #ff3370;
}

.certification-link i {
    margin-left: 5px;
    font-size: 0.8em;
}