*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}

:root{
    --bg-color: #2a2a2a;
    --second-bg-color: #202020;
    --text-color: #fff;
    --second-color: #ccc;
    --main-color: #0f00f9;
    --big-font: 5rem;
    --h2-font: 3rem;
    --p-font: 1.1rem;
}
 
body{
    background: var(--bg-color);
    color: var(--text-color);
}
header{
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    padding: 22px 15%;
    border-bottom: 1px solid transparent;
    transition: all .45s ease;
}
.logo{
   color: var(--text-color); 
   font-size: 35px;
   font-weight: 700;
   letter-spacing: 1px;
}
span{
    color: var(--main-color);
}
.navlist{
   display: flex;
}
.navlist a{
    color: var(--second-color);
    font-size: 17px;
    font-weight: 500;
    margin: 0 25px;
    transition: all .45s ease;
}
.navlist a:hover{
    color: var(--main-color);   
}
.navlist a.active{
    color: var(--main-color);
}
#menu-icon{
    font-size: 35px;
    color: var(--text-color);
    z-index: 10001;
    cursor: pointer;
    margin-left: 25px;
    display: none;
}
section{
    padding: 160px 15% 120px;
}
.home{
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url(https://cdn.wallpapersafari.com/19/19/uP5RSM.jpg);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.home-text h1{
    font-size: var(--big-font);
    font-weight: 700;
    color: var(--text-color);
    list-style: 1.1;
    margin: 0 0 8px;

}
.home-text h3{
    color: var(--text-color);
    margin: 0 0 35px;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
}
.home-text p{
    color: var(--second-color);
    font-size: var(--p-font);
    line-height: 1.8;
    margin-bottom: 10px;
}
.button{
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn{
    display: inline-block;
    padding: 12px 28px;
    background: var(--main-color);
    border-radius: 5px;
    color: var(--text-color);
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all .45s ease;
}
.btn:hover{
    transform: scale(0.9);
}
.btn2{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 35px;
}
.btn2 span i{
   height: 55px;
   width: 55px;
   background: var(--main-color);
   color: var(--text-color);
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 35px;
   border-radius: 50%;
   margin-right: 15px;
   transition: all .45s ease;
}
.btn2 span i:hover{
    transform: scale(1.1) translateY(5px);
}

header.sticky{
    background: var(--bg-color);
    border-bottom: 1px solid #ffffff1a;
    padding: 12px 15%;
}
@media screen and (max-width: 1024px) {
    header { 
        padding: 12px 5%;
    }
    .navlist a {
        margin: 0 10px;
    }
    .home {
        padding: 80px 5% 60px;
    }
    .home-text h1 {
        font-size: calc(var(--big-font) - 2rem); /* Réduction de la taille de police */
    }
    .home-text h3 {
        font-size: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .navlist {
        display: none; /* Cache la navigation sur les petits écrans */
    }
    #menu-icon {
        display: block; /* Affiche l'icône du menu hamburger */
    }
    section {
        padding: 80px 5% 60px;
    }
    .home-text h1 {
        font-size: calc(var(--big-font) - 3rem); /* Réduction supplémentaire de la taille de police */
    }
    .home-text h3 {
        font-size: 1.5rem;
    }
    .button {
        flex-direction: column; /* Alignement vertical des boutons */
    }
    .btn2 {
        margin-left: 0;
        margin-top: 20px; /* Espacement entre les boutons */
    }
}

@media screen and (max-width: 480px) {
    .home-text h1 {
        font-size: calc(var(--big-font) - 4rem); /* Adaptation pour les très petits écrans */
    }
    .home-text h3, .home-text p {
        font-size: var(--p-font);
    }
    header.sticky {
        padding: 12px 5%;
    }
}