/* div {
    border:1px solid #e4e4e4
} */



/* --------top----------- */

.top {
    background-color: #321A59;
    background-image: url(/public/images/top-video.jpg);
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 96vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.top .content {
    /* border: #47267a 1px solid; */
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;

}

.top i {
    font-size: 15rem;
    color: white;
    animation: scrolldown 2s infinite;
    height: 150px;
}

@keyframes scrolldown {
    0% {
       padding-top: 0rem;
    }

    50% {
        padding-top: 2rem;
    }

    60% {
        padding-top: 2rem;
    }

    100% {
        padding-top: 0rem;
    }
}

.top h1 {
    font-size: 7rem;
    color: white;
    text-align: center;
    text-transform: uppercase;
}

.top h2 {
    font-size: 4rem;
    color: white;
    text-align: center;
    text-transform: capitalize;
    font-weight: 400;

}






/* ---------cards----------- */

.real-all {
   display: flex;
   align-items: center;
   flex-direction: column;
}

.cards {
    width: min(100% - 2rem, 120rem);
    display: flex;
    /* min-height: 900px; */
    flex-wrap: wrap;
    justify-content: center;
    /* border-top: 1px solid #321A59; */
    gap:20px;
    padding: 100px 0;
}


.real-all img {
    width: 350px;
    height: 230px;
    object-fit: cover;
    transition: .2s;

}

.cards .case {
    display: flex;
    align-items: end;
    position: relative;
    box-shadow: 0 0 20px 1px rgb(221, 221, 221);
    overflow: hidden;

}

.cards .case .color {
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,1) 20%, rgb(0, 0, 0, 0.2) 50%);
    /* background: linear-gradient(0deg, rgba(0,0,0,1) 0%, rgba(50,26,89,1) 40%); */
    position: absolute;
    filter: opacity(0%);
    transition: .2s;

}

.cards .case .title-case {
    position: absolute;
    color: #ffffff;
    transition: .2s;
    font-size: 2rem;
    filter: opacity(0%);
    line-height: 1.2em;
    opacity: 0;
    padding: 2rem 3rem;
}

.cards .case .categorie {
    text-transform: uppercase;
    font-weight: 700;
    color: #888888;
    font-size: 1rem;
}

.cards .case .title {
    padding-bottom: .3rem;
    font-weight: 500;
}

.cards .case:hover .color {
    filter: opacity(90%);
    cursor:pointer;
    box-shadow: 0 0 20px 1px #000;
}

.cards .case:hover .title-case {
    filter: opacity(90%);
    cursor:pointer;
    animation: apparition-title-case .3s forwards ease-out;

}

.cards .case:hover img{
    transform: scale(1.1);
    filter: blur(0.8px);
    
}

@keyframes apparition-title-case {
    from {
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0px);
    }
}


@media screen and (max-width: 650px) {


    .top h1 {
        font-size: 4rem;
    }

    .real-all img {
        width: 100%;
        height: 200px;
        filter: blur(1px);
    }

    .card {
        width: 90%;
    }

    .cards .case .color {
        filter: opacity(90%);
        cursor:pointer;
        box-shadow: 0 0 20px 1px #000;
        background: linear-gradient(0deg, rgba(0,0,0,1) 10%, rgba(0, 0, 0, 0.5) 100%);

    }

    .cards .case .title {
        padding-bottom: .6rem;
    }
        

    
    .cards .case .title-case {
        filter: opacity(90%);
        cursor:pointer;
        opacity: 1;
        padding: 0;
        text-align: center;
    }

    .cards a {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .cards .case {
        align-items: center;
    }

}


