* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --scrollTop:0px;
    --index: calc(1vw + 1vh);
    --text: #e7e7e0;
    --transition: transform .75s cubic-bezier(.075, .5, 0, 1);
}

.layers__base {
    transform: translate3d(0, calc(var(--scrollTop) / 1.6), 0);
    z-index: 0;
}

.layers__middle {
    transform: translate3d(0, calc(var(--scrollTop) / 2.5), 0);
}

.layers__front {
    transform: translate3d(0, calc(var(--scrollTop) / 5.7), 0);
}
.layer__header {
    transform: translate3d(0, calc(var(--scrollTop) / 2), 0);
}


body {
    background-color: #010101 !important;
    font-family: raleway_f, sans-serif;
    line-height: 1.55;
}

.main-header {
    position: relative;
}

.main-header::after {
    content: '';
    position: absolute;
    z-index: 100;
    width: 100%;
    height: calc(var(--index) * 10);
    background-image: url(../img/ground.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    bottom: calc(var(--index) * -4.5);
}

.layers {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.layer {
    height: 100%;
    width: 100%;
    position: absolute;
    background-size: cover;
    background-position: center;
    will-change: transform;
    z-index: 2;
    transition: var(--transition);
}

.layers__base {
    z-index: 0;
}

.layer__header {
    z-index: 1;
    transition: var(--transition);
    will-change: transform;
    text-transform: uppercase;
    font-weight: 900;
    color: var(--text);
    text-shadow: 0 0 15px #9d822b;
    margin-top: -3.5rem;
}

.layers__title {
    font-size: calc(var(--index) * 2.45);
    letter-spacing: calc(var(--index) / 2.25);
    margin-top: -1rem;
}

.layers__caption {
    font-size: calc(var(--index) / 1.175);
    letter-spacing: calc(var(--index) / 3.5);
    margin-top: calc(var(--index) * -.75);
}

.main-article {
    /*--main-article-transform: translate3d(0, calc(var(--scrollTop) / -13.5), 0);*/
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    color: var(--text);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-align: center;
    .main-article__header {

        font-size: calc(var(--index) * 0.8);

    }
    .main-article__content{
        p{
            margin-top: 20px;
        }
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .HomePage{
        width: 90vw;
        margin-top: 50px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        .connexion{
            padding: 20px;
            border: 1px solid #9e9e9e;
            backdrop-filter: blur(10px);
            border-radius: 5px;
            width: 20vw;
            height: fit-content(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            box-shadow: 1px 20px 20px black;
            p{
                span{
                    color: green;
                }
            }
            h3{
                margin: 20px;
                font-size: 1.3vw;
            }
            .input-container {
                flex-direction: column;

                .input-group {
                    --primary: #2196f3;
                    margin-bottom: 40px;

                    .input {
                        width: 15vw;
                        background-color: transparent;
                        color: #fefefe;
                        padding: 10px;
                        border: 1px solid #9e9e9e;
                        border-radius: 10px;
                        transition: all ease 0.5s;
                        &:focus {
                            border: 1px solid var(--primary);
                        }
                        &:is(:focus, :valid)~label {
                            transform: translateY(-160%) scale(0.9);
                            background-color: transparent;
                            color: var(--primary);
                        }
                    }
                    .label {
                        position: absolute;
                        top: 10px;
                        left: 5px;
                        color: #d4d4d4;
                        pointer-events: none;
                        transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
                    }
                }
            }
            .buttonCo {
                font-size: 1rem;
                color: #fefefe;
                border: 1px solid #9e9e9e;
                border-radius: 10px;
                background-color: transparent;
                padding: 0.5rem;
                text-align: center;
                transition: all ease 0.5s;
                &:hover{
                    border: 1px solid #2196f3;
                    padding: 0.7rem;
                    cursor: pointer;
                }
            }
            a{
                text-decoration: none;
            }
        }
        .livres-titres{
            display: flex;
            justify-content: center;
            width: 80%;
            align-items: center;
            flex-direction: column;
            margin-top: 60px;
            h3{
                text-transform: uppercase;
                font-weight: 900;
                color: var(--text);
                text-shadow: 0 0 15px cyan;
                margin-top: 60px;
                margin-bottom: 20px;
            }
            .carousel {

                .imgcaroussel{
                    width: 20vw;
                    height: 30vw;
                    border: 1px solid cyan;
                    box-shadow: inset -1px 1px 15px 0px cyan;
                    padding: 5px;
                }
                width: 20vw; /* DÃ©finir une largeur fixe pour le carrousel */
                height: 30vw; /* DÃ©finir une hauteur fixe pour le carrousel */
            }
        }

    }

}

nav{
    width: 100vw;
    position: absolute;
    z-index: 999;
    top: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    border-radius: 0px;
    backdrop-filter: blur(20px);
    background-color: transparent;
    align-items: center;
    border-bottom:1px solid white;
    box-shadow: 1px 10px 10px black;
    img{
        position: absolute;
        top: 20px;
        left: 30px;
        width: 100px;
        transform: translateZ(0px);
        filter: drop-shadow(cyan 0px 0px 2.68816px)
        drop-shadow(cyan 0px 0px 13.4408px)
        drop-shadow(cyan 0px 0px 40.3224px);
        transition: all ease 0.5s;

        &:hover{
            transform: rotate(90deg);
            cursor: pointer;
        }
    }
    .form-control{
        width: 40vw;
        height: 35px;
        background-color: transparent;
        text-align: center;
        color: white;
        input{
            width: 40vw;
            height: 35px;
            border: 1px solid white;
            background-color: transparent;
            border-radius: 20px;
            color: white;
        }
    }
    ul{
        display: flex;
        flex-direction:row ;
        justify-content: space-around;
        padding: 0;
        width: 40vw;

        li {
            a {
                text-decoration: none;
                color: #e7e7e0;
                text-shadow: 0 0 15px #9d822b;
                &:hover{
                    color: white;
                }
            }

            align-items: center;
            list-style: none;
            border: 1px solid #e7e7e0;
            text-transform: uppercase;
            font-weight: 900;
            padding: 10px;
            border-radius: 10px;
            transition: all ease 0.3s;

            &:hover {
                cursor: pointer;
                box-shadow: -1px 1px 17px #9d822b;
            }
        }
    }
}

/*.main-article__paragraph {*/
/*    max-width: calc(var(--index) * 30);*/
/*    font-size: calc(var(--index) * .9);*/
/*    margin-top: calc(var(--index) / 1.25);*/
/*    transform: var(--main-article-transform);*/
/*    transition: var(--transition);*/
/*    will-change: transform;*/
/*}*/

@media (max-width:1024px){

    nav{
        padding: 20px;
        img{
            display: none;
        }
        .form-control{
            width: 90vw;
            height: 35px;
            color: white;
            input{
                width: 90vw;
                height: 35px;
                color: white;
            }
        }
        ul{
            width: 80vw;
            justify-content: space-between;
            padding: 0;
            li {
                margin-left: 0px;
                padding: 5px;
                font-size: 25px;
            }
        }
    }
    .main-article{
        .HomePage {
            margin-top: 150px;
            flex-direction: column;

            .connexion {
                margin-top: 100px;
                padding: 20px;
                width: 60vw;
                margin-bottom: 50px;

                h3 {
                    margin: 20px;
                    font-size: 25px;
                    color: white;
                }

                .input-container {
                    .input-group {
                        .input {
                            width: 50vw;
                            padding: 10px;
                        }
                    }
                }
                .buttonCo {
                    font-size: 1rem;
                    padding: 0.5rem;
                }
            }
            .livres-titres {
                width: 90%;
                h3 {
                    font-size: 30px;
                    color: white;
                    width: 100%;
                }
                .carousel {
                    text-align: center;

                    .imgcaroussel {
                        width: 50vw;
                        height: 80vw;
                        border: 1px solid cyan;
                        box-shadow: inset -1px 1px 15px 0px cyan;
                        padding: 5px;
                    }

                    width: 60vw; /* DÃ©finir une largeur fixe pour le carrousel */
                    height: 80vw; /* DÃ©finir une hauteur fixe pour le carrousel */
                }
            }
        }
    }
}

@media (max-width:767px){

	nav {
             ul {
            	li {
                    font-size: 19px;
            	}
             }
        }
    .main-article{
        .HomePage {
            .connexion {
                width: 80vw;
                .input-container {
                    .input-group {
                        .input {
                            width: 60vw;
                        }
                    }
                }
            }
            .livres-titres {
                h3 {
                    font-size: 19px;
                }
                .carousel {
                    width: 70vw; /* DÃ©finir une largeur fixe pour le carrousel */
                    height: 90vw; /* DÃ©finir une hauteur fixe pour le carrousel */
                    .imgcaroussel {
                        width: 60vw;
                        height: 90vw;
                    }
                }
            }
        }
    }
}