html{
    overflow-x:hidden ;
    scroll-behavior: smooth;
}


nav{
    z-index: 99;
    position: sticky;
    width: 100%;
    top: 0;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    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;
        }
    }
    .content{
        backdrop-filter: blur(20px);
        padding: 5px;
        border-radius: 20px;
        .form-control{
            width: 40vw;
            height: 35px;
            background-color: transparent;
            text-align: center;
            color: white;
            border: 1px solid white;
            border-radius: 20px;
            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;
                }

                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;
                }
            }
        }
    }
}

.livreDetail{
    color: white;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    .page{
        display: flex;
        flex-direction: row;
        width: 100vw;
        align-items: flex-start;
        justify-content: space-evenly;
        .livres{
            display: flex;
            flex-direction: column;

            .container{
                margin: 30px;
                display: flex;
                flex-direction: row;
                justify-content: center;
                border: 1px solid white;
                backdrop-filter: blur(50px);
                padding: 10px;
                a{
                    text-decoration: none;
                    color: white;
                }
                .imagelivre{
                    width: 300px;
                    margin: 10px;
                    margin-right: 30px;
                }
                .content{
                    display: flex;
                    flex-direction: column;
                    text-align: center;
                    width: 20vw;
                    align-items: center;
                    font-size: large;
                    .pascoEmprunt{
                        color: red;
                        text-align: center;
                    }
                }

            }
        }
    }
    .ajoutPanier{
        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{
            box-shadow: -1px 1px 17px cyan;
            cursor: pointer;
        }
    }
}
.livreAuteur{
    h1{
    margin: 10px;
        span{
            color: cyan;
        }
    }
    color: white;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    .page{
        display: flex;
        flex-direction: row;
        width: 100vw;
        align-items: flex-start;
        justify-content: space-evenly;
        text-align: center;
        .livres{
            display: flex;
            flex-direction: column;

            .container{
                margin: 10px;
                display: flex;
                flex-direction: row;
                justify-content: center;
                border: 1px solid white;
                width: 33vw;
                backdrop-filter: blur(5px);
                padding: 10px;
                a{
                    text-decoration: none;
                    color: white;
                }
                .imagelivre{
                    width: 200px;
                    margin: 10px;
                }
                .content{
                    display: flex;
                    flex-direction: column;
                    text-align: center;
                    width: 20vw;
                    align-items: center;
                    font-size: large;
                    .pascoEmprunt{
                        color: red;
                        text-align: center;
                    }
                }
            }
        }
    }
}
.profil{
    .connecte{

        margin-top: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
        align-items: center;

        .infoUser{
            box-shadow: -1px 1px 17px #2196f3;
            backdrop-filter: blur(5px) grayscale(0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            width: 30vw;
            border: 1px solid #2196f3;
            p{
                padding: 10px;
                border: 1px solid #2196f3;
                border-radius: 10px;
                backdrop-filter: blur(10px);
            }
            a{
                text-decoration: none;
            }
            .buttonCo {
                font-size: 1rem;
                color: #fefefe;
                border: 1px solid #2196f3;
                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;
                }
            }
        }

    }
    .pasconnecte{
        margin-top: 150px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        .erreur{
            font-size: 1.75rem;
            text-align: center;
            color: white;
        }
    }

}
.connexion, .infoBiblio{
    margin-top: 100px;
    padding: 20px;
    border: 1px solid #9e9e9e;
    backdrop-filter: blur(10px);
    border-radius: 5px;
    width: 20vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    box-shadow: 1px 20px 20px black;
    p{
        span{
            color: green;
        }
    }
    h3{
        font-size: 1.7vw;
        color: white;
        text-align: center;
    }
    .input-container {
        display: flex;
        flex-direction: column;

        .input-group {
            --primary: #2196f3;
            margin-bottom: 40px;
            position: relative;
            .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;
    }
}
.panier{
    .connecte{
        margin-top: 100px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: white;
        align-items: center;

        .LivrePanier{
            box-shadow: -1px 1px 17px cyan;
            backdrop-filter:blur(5px) grayscale(0.9);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 20px;
            width: 40vw;
            border: 1px solid cyan;
            h3{
                span{
                    color: green;
                }
            }
            .vide{
                text-align: center;
            }
            .livreGrid
            {
                grid-gap: 15px;
                /* display: grid; */
                width: 100%;
                display: grid; /* ou grid */
                grid-template-columns: repeat(2, 1fr);
                flex-wrap: wrap;
                justify-content: center;
                margin-bottom: 10px;
                .infoLivre{
                    padding: 10px;
                    border: 1px solid cyan;
                    border-radius: 10px;

                    text-align: center;
                    a{
                        padding: 5px;
                        border: 1px solid white;
                        border-radius: 10px;
                        text-decoration: none;
                        color: white;
                        transition: all ease 0.5s;
                        &:hover{
                            color: red;
                            border: 1px solid red;
                        }
                    }
            }
            }
            a{
                text-decoration: none;
            }
            .buttonCo {
                font-size: 1rem;
                color: white;
                border: 1px solid cyan;
                border-radius: 10px;
                background-color: transparent;
                padding: 0.5rem;
                text-align: center;
                transition: all ease 0.5s;
                &:hover{
                    border: 1px solid cyan;
                    padding: 0.7rem;
                    cursor: pointer;
                }
            }
        }
    }
    .pasconnecte{
        margin-top: 150px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        .erreur{
            font-size: 1.75rem;
            text-align: center;
            color: white;
        }
    }

}.adminHome .container {
     display: flex;
     justify-content: space-evenly;
     color: white;
     margin: 50px;
 }

.adminHome .connexion,
.adminHome .infoBiblio {
    justify-content: space-evenly;
    box-shadow: 0 0 0 0;
}
.adminHome .connexion{
    animation: animate_border1 5s infinite;
}
.adminHome .infoBiblio{
    border-radius: 100px 100px 100px 100px;
    animation: animate_border2 5s infinite;
}

.adminHome .infoBiblio span {
    color: cyan;
}

.adminHome .connexion .buttonCo:hover,
.adminHome .infoBiblio .buttonCo:hover {
    border: 1px solid cyan;
}
.navAdmin{
        backdrop-filter: blur(20px);
}
@keyframes animate_border1 {
    0% {
        border-radius: 0px 0px 0px 0px;
    }

    20% {
        border-radius: 100px 100px 100px 100px;
    }

    45% {
        border-radius: 0px 0px 0px 0px;
    }

    65% {
        border-radius: 100px 100px 100px 100px;
    }

    85% {
        border-radius: 0px 0px 0px 0px;
    }
}
@keyframes animate_border2 {
    0% {
        border-radius: 100px 100px 100px 100px;
    }

    20% {
        border-radius: 0px 0px 0px 0px;
    }

    45% {
        border-radius: 100px 100px 100px 100px;
    }

    65% {
        border-radius: 0px 0px 0px 0px;
    }

    85% {
        border-radius: 100px 100px 100px 100px;
    }
}
.adminHome{
    margin: 0px;
    .AjoutUser, .AjoutLivre{
        color: white;
        display: flex;
        flex-direction: column;
        align-items: center;
        .contenuajout{
            display: flex;
            flex-direction: column;
            align-items: center;
            backdrop-filter: blur(10px);
            padding: 10px;
            border-radius: 20px;
            border: 1px solid cyan;
            .labIn{
                display: flex;
                align-items: center;
                margin: 20px;
                label{
                    margin: 5px;
                }
                input, select{
                    padding-left: 5px;
                    padding-right: 5px;
                    align-content: center;
                    color: white;
                    border: 1px solid cyan;
                    height: 30px;
                    text-align: center;
                    border-radius: 10px;
                    background-color: transparent;
                    option{
                        background-color: black;
                        color: white;
                    }
                }
                textarea{
                    color: white;
                    border: 1px solid cyan;
                    text-align: center;
                    border-radius: 10px;
                    background-color: transparent;
                    min-width: 450px;
                    max-width: 450px;
                    max-height: 200px;
                    min-height: 200px;
                    align-content: center;
                }
            }

            .Valid{
                font-size: 1rem;
                color: white;
                border: 1px solid cyan;
                border-radius: 10px;
                background-color: transparent;
                padding: 0.5rem;
                text-align: center;
                transition: all ease 0.5s;
                &:hover{
                    border: 1px solid cyan;
                    padding: 0.7rem;
                    cursor: pointer;
                }
            }
        }
    }
}

@media (max-width:1024px){
    /* adminHome */

    .imgAdmin{
        display: none;
    }
    .navAdmin {
        height: 125px;
        justify-content: center;
        margin-top: 0px;
        backdrop-filter: blur(20px);
        .content{
            ul{
                display: flex;
                align-items: center;
                width: 60vw !important;
                justify-content: space-between !important;
                li{
                    font-size: 20px;
                }
            }
        }
    }

    .adminHome{
        .container{
            flex-direction: column;
            align-items: center;
            .connexion, .infoBiblio{
                margin-top: 100px;
                padding: 20px;
                width: 70vw;
                p{
                    font-size: 20px;
                    span{
                        color: green;
                    }
                }
                h3{
                    font-size: 30px;
                    color: white;
                    text-align: center;
                }
            }
        }
        .AjoutUser, .AjoutLivre{
            height: 80vh;
            justify-content: center;
            .contenuajout{
                h2{
                    font-size: 35px
                }
                .labIn{
                    input, select{
                        height: 35px;
                        font-size: 15px;
                        option{
                            font-size: 15px;
                        }
                    }
                    textarea{
                        min-width: 450px;
                        max-width: 450px;
                        max-height: 200px;
                        min-height: 200px;
                    }
                    label{
                        font-size: 20px;
                    }
                }
            }
        }
    }
    /* Fin adminHome */
}
