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

body{
    background: #f4f4f4;
}
nav{
    position: fixed;
    z-index: 1000;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 15px 25px;
    background: #fafafa;
    box-shadow: inset 0px -1px 0px #c5c5c6;
    margin-bottom: 10px;
}
.body{
    margin-top: 70px;
}
.nav-icon{
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-right: 20px;
}
.nav-icon span{
    font-family: sans-serif;
    font-size: 25px;
    margin-left: 10px;
    font-weight: 400;
    color: #333;
}
.nav-icon img{
    width: 40px;
}
.nav-icon:hover img{
    animation: balanced 1s linear infinite;
}
@keyframes balanced {
    0%{
        transform: rotate(0deg);
    }
    25%{
        transform: rotate(30deg);
    }
    50%{
        transform: rotate(0deg);
    }
    75%{
        transform: rotate(-30deg);
    }
    100%{
        transform: rotate(0deg);
    }
}
.hamburger{
    display: none;
}
.navlinks-container a{
    margin: 0 10px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: #414141;
    display: inline-block;
    position: relative;
}
.navlinks-container a::after{
    content: "";
    display: block;
    position: absolute;
    bottom: -3px;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: #333;
    transition: transform 0.3s ease-out;
}
.navlinks-container a:hover::after{
    transform: scaleX(1);
}
.nav-authentication{
    margin-left: auto;
}
.sign-btns button{
    font-family: sans-serif;
    font-size: 16px;
    min-width: 90px;
    padding: 10px 5px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    border: none;
}
.sign-btns button:nth-child(2){
    border: none;
    background: #92c3eeb7;
}
.user-toggler{
    display: block;
    cursor: pointer;
    border: none;
}
.user-toggler img {
    width: 20px;
}

/*  gestion des cards  */
.container{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    flex-flow: row wrap;
    align-content: space-evenly;
}
.container.appropos{
    flex-wrap: wrap;
}
.container.accueil{
    flex-flow: column wrap;
}
.container .card{
    order: -1;
    position: relative;
    width: 500px;
    height: 230px;
    padding: 15px;
    /*background: linear-gradient(60deg, #151516 0%, #1d2229);*/
    background: linear-gradient(60deg,transparent,rgba(0,123,0,0.5));
    backdrop-filter: blur(5px);
    overflow: hidden;
    margin: 5px;
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}
.container .card.accueil{
    width: 1000px;
    height: 460px;
}
.container .card h2{
    z-index: 99;
    position: absolute;
    bottom: 25px;
    right: 130px;
    font-size: 50px;
    font-weight: 700;
    color: #fff;
    pointer-events: none;
    transition: 0.2s ease;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}
.container .card.accueil h2{
    bottom: 50px;
    right: 245px;
}
.container .card p {
    z-index: 99;
    position: absolute;
    bottom: 30px;
    right: 130px;
    width: 250px;
    color: #fff;
    opacity: 0;
    font-size: 12px;
    text-align: right;
    letter-spacing: 1px;
    transition: 0.2s ease;
}
.container .card.accueil p {
    font-size: 24px;
}
.container .card span{
    z-index: 99;
    position: absolute;
    top: 60px;
    right: 35px;
    color: #fff;
    font-size: 12px;
    letter-spacing: 1px;
    writing-mode: vertical-lr;
    transition: 0.2s ease;
    opacity: 0.7;
}
.container .card .pic{
    z-index: 99;
    width: 395px;
    height: 200px;
    background: url("../img/floribeirinha5.webp") center;
    background-size: cover;

    border-radius: 12px;
    filter: grayscale(100%);
    transition: 0.3s ease;
}
.container .card.accueil .pic{
    width: 895px;
    height: 430px;
}
.container .card button{
    position: absolute;
    right: 30px;
    bottom: 40px;
    width: 30px;
    height: 30px;
    background-color: #772a9b;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    outline: none;
    opacity: 1;
    transition: 0.3s ease;
}
.container .card:hover button{
    transform: scale(16.5);
    opacity: 0.5;
}
.container .card.accueil:hover button{
    transform: scale(20.5);
    opacity: 0.5;
}
.container .card:hover h2 {
    bottom: 80px;
    right: 50px;
}
.container .card.accueil:hover h2 {
    bottom: 200px;
    right: 100px;
}
.container .card:hover p{
    opacity: 1;
    right: 60px;
}
.container .card:hover span{
    opacity: 0;
    top: 80px;
}
.container .card:hover .pic{
    filter: grayscale(0);
    width: 470px;
}
.container .card.accueil:hover .pic{
    width: 970px;
}
.container .card2 .pic{
    background-image: url("../img/ban_festival.jpg");
    transition: 0.3s ease;
}
.container .card2 button{
    background-color: #26c3a1;
}
.slider{
    display: flex;
    height: auto;
    margin: auto;
    overflow: hidden;
    align-items: center;
}
.slider::before{
    position: absolute;
    z-index: 1;
    left: 0;
    content: "";
    width: 23.958%;
    height: 110px;
    background: linear-gradient(-90deg, hsla(0, 0%, 96.9%, 0), #f7f7f7);
}
.slider::after {
    position: absolute;
    right: 0;
    content: "";
    width: 23.958%;
    height: 110px;
    background: linear-gradient(90deg, hsla(0, 0%, 96.9%, 0), hsla(0, 0%, 96.9%, 0.99) 99%);
}
.slider .slide-track{
    display: flex;
    animation: scroll 35s linear infinite;
    -webkit-animation: scroll 35s linear infinite;
    width: calc(240px * 10);
}
.slider .slide{
    display: flex;
}
.slider .slide img{
    width: 180px;
    height: 120px;
    padding: 10px;
    background-color: white;
    cursor: pointer;
    margin: 20px;
    border-radius: 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
}
@keyframes scroll {
    0% {
        -webkit-transform: translateX(0) ;
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(calc(-240px * 5));
        transform: translateX(calc(-240px * 5));
    }
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-box{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 500px;
    padding: 10px;
    border-radius: 20px;
    background: linear-gradient(60deg,transparent,rgba(0,123,0,0.5));
    box-shadow: 10px 10px 15px #c7c4c4, -10px -10px 15px #fff;
    overflow: hidden;
}
.form-box input{
    font-size: 18px;
    color: #000;
    padding: 15px 10px;
    border: none;
    outline: none;
    background: transparent;
}
.form-box button{
    color:#fff;
    padding: 15px 20px;
    font-size: 20px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(60deg,transparent,rgba(119,42,155,0.5));
    cursor: pointer;
    transition: 0.3s;
}


.container .card:hover button{
    transform: scale(16.5);
    opacity: 0.5;
}

section{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: url("../img/login.jpg")no-repeat center;
    background-size: cover;

}
.formbox{
    position: relative;
    width: 400px;
    height: 450px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
}
h2{
    font-size: 2em;
    color: #fff;
    text-align: center;
}
.inputbox{
    position: relative;
    margin: 30px 0;
    width: 310px;
    border-bottom: 2px solid #fff;
}
.inputbox label{
    position: absolute;
    top: 50%;
    left: 5px;
    transform: translateY(-50%);
    color: #fff;
    font-size: 1em;
    pointer-events: none;
    transition: 0.5s;
}
input:focus ~ label,
input:valid ~ label{
    top: -5px;
}

.inputbox input{
    width: 100px;
    height: 50px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 1em;
    padding: 0 35px 0 5px;
    color: #fff;
}
.inputbox ion-icon{
    position: absolute;
    right: 8px;
    color: #fff;
    font-size: 1.2em;
    top:20px
}
.forget{
    margin: -15px 0 15px;
    font-size: 0.9em;
    color: #fff;
    display: flex;
    justify-content: center;
}
.forget label input{
    margin-right: 3px;
}
.forget label a{
    color: #fff;
    text-decoration: none;
}
.forget label a:hover{
    text-decoration: underline;
}
.formbox button{
    width: 100%;
    height: 40px;
    border-radius: 40px;
    background: #fff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
}
.register{
    font-size: 0.9em;
    color: #fff;
    text-align: center;
    margin: 25px 0 10px;
}
.register p a{
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}
.register p a:hover{
    text-decoration: underline;
    color: #fff;
    font-weight: 600;
}
.signup-form, .login-form{
    z-index: 1000;
    position: absolute;
    background: transparent;
    transition: -5s;
    visibility: hidden;
    backdrop-filter: blur(15px);
}
.signup-form.show,.login-form.show{
    visibility: revert;
}




@media (max-width: 1100px) {
    .container .card {
        width: auto;
        height: 230px;
        /*background: linear-gradient(60deg, #151516 0%, #1d2229);*/
        backdrop-filter: blur(5px);
        overflow: hidden;
        margin: 5px;
        border-radius: 20px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    }


}
@media (max-width: 1050px) {
    .container.accueil{
        flex-flow: row wrap;
    }
    .container .card.accueil{
        width: 500px;
        height: 230px;
    }
    .container .card.accueil h2{
        bottom: 25px;
        right: 130px;
    }
    .container .card.accueil p{
        font-size: 12px;
    }
    .container .card.accueil .pic{
        width: 395px;
        height: 200px;
    }
    .container .card.accueil:hover button{
        transform: scale(16.5);
        opacity: 0.5;
    }
    .container .card.accueil:hover h2 {
        bottom: 80px;
        right: 50px;
    }
    .container .card.accueil:hover .pic{
        width: 470px;
    }
}

@media (max-width: 900px) {

    nav {
        padding: 15px 20px;
        position: fixed;
    }
    .nav-icon {
        order: 2;
        margin: 0 auto;
    }
    .nav-icon span {
        font-size: 22px;
    }
    .main-navlinks {
        order: 1;
    }
    /* Hamburger */
    .hamburger{
        width: 20px;
        height: 20px;
        cursor: pointer;
        border: none;
        display: flex;
        background: #fafafa;
        align-items: center;
        position: relative;
    }
    .hamburger span{
        display: block;
        width: 100%;
        height: 2px;
        background: #333;
        position: absolute;
        pointer-events: none;
        transition: opacity 0.3s 0.15s ease-out;
    }
    .hamburger span:nth-child(1),
    .hamburger span:nth-child(3){
        transition: transform 0.3s ease-out;
    }
    .hamburger span:nth-child(1){
        transform: translateY(7px);
    }
    .hamburger span:nth-child(3){
        transform: translateY(-7px);
    }
    .hamburger.open span:nth-child(1){
        transform: translate(0) rotate(135deg);
    }
    .hamburger.open span:nth-child(2){
        opacity: 0;
        transition: opacity 0s ease-out;
    }
    .hamburger.open span:nth-child(3){
        transform: translate(0) rotate(-135deg);
    }

    .navlinks-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        background: #fafafa;
        top: 100%;
        left: 0;
        height: 100vh;
        padding: 15px 50px 15px 20px;
        border-right: 1px solid #c5c5c6;
        transform: translate(-100%);
    }

    .open {
        transform: translate(0%);
    }

    .navlinks-container a {
        font-size: 18px;
        margin: 10px 0;
    }

    .nav-authentication {
        order: 3;
        margin-left: 0;
    }

    .sign-btns {
        display: none;
    }

    .body.open{
        transition: filter 0.3s;
        z-index: -1000;
        filter: blur(10px);
    }
}
@media (max-width: 700px) {
    .nav-icon img{
        width: 30px;
    }
    .nav-icon span{
        font-size: 20px;
    }


}
