
*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}


body{
    background: #080808;
    color: #ffff;
}


#header{
    height : 100vh;
    width: 100%;
    background-image: url(img/fond.jpg);
    background-size: cover;
    background-position: center;
}


.container{
    padding: 10px 10%;
}

nav{
    display : flex;
    align-items: center;
    justify-content: space-between;
}


.logo{
    width: 180px;

}
.logo:hover {
    animation-play-state: running;
}


nav ul li{
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0%;
    height: 3px;
    background: red;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after{
    width: 100%;
}


.header-text{
    margin-top: 10%;
    font-size: 30px;
}

.header-text h1{
    font-size: 50px;
    margin-top:20px;
}

.header-text h1 span{
    color : rgb(255, 0, 0);
}

/*--------------------A Mon Propos--------------------*/

#a_mon_propos{
    padding : 80px 0;
    color: #ababab;

}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}


.a_mon_propos1{
    flex-basis: 35%;
}

.a_mon_propos1  img{
    width: 100%;
    border-radius: 15px;
}

.a_mon_propos2{
    flex-basis: 60%;
}

.sub-title{
    font-size : 60px;
    font-weight: 600; 
    color :#fff;
}
.a_mon_propos2 p {
    font-size: 18px;
}

.onglet{
    display:flex;
    margin: 20px 0 40px;
}

.lien {
    margin-right:50px ;
    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    color:white;

}


.lien::after{
    content: '';
    width: 0;
    height: 3px;
    background:rgb(255, 0, 0);
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;

}


.lien.lien_active::after{
    width:50%;

}

.onglet_container ul li {
    list-style: none;
    margin: 20px 0;

}
.onglet_container ul li span{
     color: rgb(255, 67, 67);
     font-size: 20px;
}

.onglet_container{
    display: none;
}

.onglet_container.onglet_active{
    display: block;
}

/*-------------------porjets------------------*/

#projets{
    padding: 50px 0
}

.liste_projets{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.projet{
    border-radius: 10px;
    position : relative;
    overflow: hidden;
}
.projet img{
    width : 100%;
    border-radius: 10px;
    display : block;
    transition: transform 0.5s;
}

.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #ff004f );
    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: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.projet:hover img{
    transform: scale(1.1);
}

.projet:hover .layer{
    height: 100%
}


.voirPlus{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    transition: background 0.5s;

}

.voirPlus:hover{
    background: #ff004f;

}

nav .fas{
    display: none;
}




/*--------------css pour petits écrans------------*/

@media only screen and (max-width: 600px){
    #header{
        background-image: url(img/fondTelephone.jpg);
    }

    .header-text{
        font-size : 16px;
    }

    .header-text h1{
        font-size: 30px;
    }
    nav .fas{
        display : block;
        font-size: 25px;
    }

    nav ul{
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }
    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fas{
        position: absolute;
        top: 25px;
        left: 20px;
        cursor: pointer;
    }

    .sub-title{
        font-size: 40px;
    }

    .a_mon_propos2, .a_mon_propos1{
        flex-basis: 100%;
    }

    .a_mon_propos1{
        margin-bottom: 30px;
    }

    .a_mon_propos2 {
        font-size: 14px;
    }

    .lien{
        font-size: 16px;
        margin-right: 20px;
    }


}