body{
    margin: 0;
    font-family: sans-serif;
}

nav{
    position: fixed;
    top: 0;
    height: 25px;
    width: 100%;
    background-color: transparent;
    color:rgb(16, 233, 233);
    padding: 15px 9px;
    transition: background-color 0.3s, color 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: default;
}

nav h1{
    transition: opacity 0.3s;
}

nav.scrolled{
    background-color: #0082e6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: black;
}

nav.scrolled h1{
    color: white;
}

nav.scrolled a{
    color: white;
}

span{
    position: absolute;
    top: 20px;
    left: 0;
    right: -9px;
    padding: 0 0 0 66px;
}

h1{
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 16pt;
    padding: 0 0 0 66px;
}

nav ul{
    display: flex;
    margin: 18px;
}

nav ul li{
    list-style-type: none;
    padding: 15px;
    font-size: 16pt;
}

nav ul li:hover a{
    background-color: #1b9bff;
    color: white;
    width: 100%;
}

a{
    text-decoration: none;
    color: black;
}

div a:hover{
    color: gray;
}

img{
    width: 54px;
    height: 41px;
    position: relative;
    top: 0;
    right: 3px;
}

#section-scroll {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
    text-align: center;
    font-weight: bolder;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    z-index: 0;
}

#section-scroll::before {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(2px);
    z-index: -1;
    transform: scale(1.05);
}

#section-scroll video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

#section-scroll .background{
    display: none;
}

#section-scroll h1{
    position: relative; 
    font-size: 4rem;
}


#icons{
    cursor: pointer;
    display: none;
    padding: 17px;
}

@media(min-width: 320px) and (max-width: 768px){
    nav{
        height: 15px;
    }

    #icons{
        position: fixed;
        display: block;
        top: -9px;
        right: 0;
    }
    
    header{
       height: 20px; 
    }
    
    h1{
        font-size: 12pt;
        padding: 0;
        position: fixed;
        left: 50px;
        top: -7px;
    }

    span{
        position: absolute;
        top: 16px;
        left: 2px;
        padding: 0;
    }
    
    img{
        width: 46px;
        height: 35px;
        position: relative;
        top: -1px;
        right: 7px;
    }

    #icons::before{
        content: "\2630";
    }

    #icons.menu::before{
        content: "\2715";
        display: block;
    }

    nav ul{
        display: flex;
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        height: 100vh;
        padding: 60px 2px;
        margin: 0;
        transition: 0.9s ;
        background-color: white;
        width: 38%;
    }

    nav ul li a{
        color: black;
        font-size: 14pt;
        font-weight: bold;
    }

    nav.scrolled a{
        color: black;
        font-size: 14pt;
        font-weight: bold;
    }

    nav.active ul{
        right: 0;
    }

    #section-scroll{
        height: 80vh;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 4em;
        color: white;
        text-align: center;
        font-weight: bolder;
        background-size: cover;
        background-position: center;
        overflow: hidden;
        z-index: 0;
    }

    #section-scroll .background{
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: blur(8px) brightness(70%);
        z-index: 1;
    }

    #section-scroll .overlay{
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        z-index: 2;
    }

    #section-scroll .foreground{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    #nom-entreprise h1{
        padding: 0 0 0 30px;
    }

    #nom-entreprise span{
        padding: 0 0 0 30px;
    }

    /* Efè blur pou kontni dèyè meni an */
    body.menu-active #main, body.menu-active img, body.menu-active h1 {
        filter: blur(5px);
        transition: 0.5s ease-in-out;
    }
    
    /* Retire efè blur lè meni an fèmen */
    body:not(.menu-active) main {
        filter: none;
        transition: 0.5s ease-in-out;
    }

    iframe{
        height: 2330px;
    }

    #content{
        display: none;

    }
}

#lien{
    display: flex;
    padding: 10px 0;
    align-items: center;
    justify-content: center;
    
}

#lien a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    width: 100%;
    background-color: #0082e6;
    text-align: center;
    padding: 9px;
}

#fleche{
    display: none;
}

#fleche.affiche{
    width: 25px;
    height: 23px;
    background-color: darkgrey;
    border-radius: 45px;
    float: right;
    margin: 0 7px 12px;
    display: block;
    position: fixed;
    top: 80%;
    padding: 2px;
}
