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

body{
    background: #080808; 
    color: #fff;

}
#header{
    width: 100%;
    height: 100vh;
    margin: 0px;
    background-image: url(images/background.png);
    background-size: cover;
    background-position: right;
    background-attachment: fixed;
}

.container{
    padding: 5px 10%;
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    width: 240px;
}

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: #00adb5;
    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{
    margin-top: 20px;
    font-size: 60px;
}

.header-text h1 span{
    color: #00adb5;
}

/*------------- About me----------*/

#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%;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

.description{
    font-size: 30px;
    font-weight: 600;
    color: #00adb5;
}
.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: #00adb5;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after{
    width: 50%;
}
.tab-contents ul li{
    list-style: none;
    margin: 10 px 0;

}

.tab-contents ul li span{
    color:#00adb5;
    font-size: 14px;
}
.tab-contents{
    display: none;
}

.tab-contents.active-tab{
    display: block;
}

/* -----------------portfolio -------*/
#portfolio{
    padding: 50px 0;
}/*
.work-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}*/
/* .work-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 1fr;
    grid-gap: 40px;
    margin-top: 50px;
} */


.work{
    border-radius: 10px;
    position : relative;
    overflow: hidden;
}

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

.work video{
    display: block;   
    border-radius: 10px;
    width: 100%;
    position: center;
}
.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #00adb5);
    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: 18px;
    transition : height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
    font-size: 40px;
    color:rgb(248, 248, 248);
    font-weight: bold;
}

.layer a{
    margin-top: 20px;
    color:#00adb5;
    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 #00adb5;
    padding: 14px 50px;
    border-radius: 6px;
}


/**-----contact -------*/
.contact-left{
    flex-basis: 35%;
}
.contact-right{
    flex-basis: 60%;
    margin-top: 100px;
    margin-left: 50px;
}
.contact-left p{
    margin-top: 30px;
}

.contact-left p i{
    color:#00adb5;
    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:#00adb5;
    transform: translateY(-5px);
}

.btn2 {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background-color: #080808;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn2:hover {
    background-color: #00adb5;
}

html{
    scroll-behavior: smooth;
}
.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}


.cert-section .sub-title{ margin-bottom: 20px; }
.cert-carousel{
    overflow: hidden;
    position: relative;
    width: 100%;
    border-radius: 8px;
    background: #000000;
    box-shadow: 0 6px 18px rgba(200, 41, 41, 0.06);
}
.cert-track{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.cert-item{
    min-width: unset;
    max-width: 260px;
    background: #000000;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(155, 151, 151, 0.04);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform .18s ease;
}
.cert-item:hover{ transform: translateY(-6px); }
.cert-item img{ width: 100%; height: 220px; object-fit: cover; border-radius:4px; }
.cert-item .title{ font-weight:600; font-size:0.95rem; }
.cert-item .issuer{ font-size:0.85rem; color:#666; }

/* Modal */
.cert-modal{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(184, 180, 180, 0.5);
    z-index: 1200;
    padding: 24px;
}
.cert-modal.open{ display:flex; }
.cert-modal .card{
    background:#050505;
    border-radius:8px;
    width: min(920px, 96%);
    max-height: 120vh;
    overflow:auto;
    padding:20px;
    position: relative;
}
.cert-modal .card img{ width: 240px; height: 250px; object-fit:cover; float:left; margin-right:16px; border-radius:6px; }
.cert-modal .close-btn{
    position:absolute;
    right:12px;
    top:8px;
    background:transparent;
    border:none;
    font-size:1.4rem;
    cursor:pointer;
}

/* small screens */
@media (max-width:640px){
    .cert-item{ min-width: 200px; max-width: 200px; }
    .cert-modal .card img{ width:100%; float:none; margin:0 0 12px 0; height:160px; }
}
/*-----------phones-----------------*/

@media only screen and (max-width: 600px){
    
}

/* -------- Recommendations Section -------- */
#recommendations {
    padding: 50px 0;
}
.recommendations-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Force 2 colonnes égales */
    gap: 30px;
    margin-top: 30px;
}

@media only screen and (max-width: 768px) {
    .recommendations-list {
        grid-template-columns: 1fr;
    }
}

.rec-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #262626;
    padding: 30px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.rec-card:hover {
    transform: translateY(-8px);
    border-color: #0056ff; /* Remplace par la couleur principale de ton site */
    background: #2e2e2e;
}

.rec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.quote-icon {
    font-size: 28px;
    color: #0056ff; /* Couleur d'accentuation */
}

.linkedin-badge {
    font-size: 22px;
    color: #0a66c2;
    transition: transform 0.3s ease;
}

.rec-card:hover .linkedin-badge {
    transform: scale(1.2);
}

.rec-text {
    font-size: 15px;
    line-height: 1.6;
    font-style: italic;
    color: #d1d1d1;
    margin-bottom: 25px;
}

.rec-author h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.rec-author span {
    font-size: 13px;
    color: #ababab;
}