main
{
    width: 100vw;
    overflow: hidden;
}
.fond
{
    width: 100vw;
    height: calc(100vh - 80px);
    overflow: hidden;
    position: relative;
}

.fond .liste .item
{
    position: absolute;
    inset: 0 0 0 0;
}

.fond .liste .item img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fond .liste .item .contenu
{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: white;
    box-shadow: 0 5 10px rgba(0, 0, 0, 0.25);

}

.liste .item .contenu .titre
{
    font-weight: 700;
    letter-spacing: 5px;
}

.liste .item .contenu .intitule
{
    font-weight: 700;
    font-size: 3rem;
    list-style: 1em;
}

.liste .item .contenu .description
{
    margin-bottom: 10px;
}

.liste .item .contenu a
{
    background: rgb(225, 222, 222);
    font-size: 0.8rem;
    font-weight: 700px;
    color:rgb(49,42,69);
    text-decoration: none;
    padding: 3px 5px;
    border: 2px solid transparent;
    border-radius: 20px;
    transition: all 0.7s ease;
    white-space: nowrap;
}

.liste .item .contenu a:hover
{
    color: #162532;
    background: rgba(242, 142, 44, 0.8);
    border: 2px solid white;
}


.bas
{
    position: absolute;
    width: max-content;
    bottom: 20px;
    left: 50%;
    z-index: 100;
    display: flex;
    gap: 20px;
}

.bas .item
{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}

.bas .item img
{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.bas .item .contenu
{
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    color: white;
}

.bas .item .contenu .titre
{
    font-weight: 700;
}

.fleche
{
    position: absolute;
    bottom: 110px;
    left: 40%;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.fleche button
{
    color: var(--infinity-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgb(167, 156, 156);
    border: none;
    font-weight: 700;
    font-size: large;
    transition: .5s;
    z-index: 100;
}


.fleche button:hover
{
    background: var(--infinity-orange);
    color: var(--infinity-blue);
}

.fond .liste .item:nth-child(1)
{
    z-index: 1;
}

.fond .liste .item:nth-child(1) .titre, .fond .liste .item:nth-child(1) .intitule, .fond .liste .item:nth-child(1) .description, .fond .liste .item:nth-child(1) a
{
    transform: translateY(50%);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    animation: showContent 1s 1s linear 1 forwards;
}

@keyframes showContent
{
    to
    {
        opacity: 1;
        -webkit-backdrop-filter: blur(0);
        backdrop-filter: blur(0);
        transform: translateY(0);
    }
}

.fond .liste .item:nth-child(1) .titre
{
    animation-delay: 1.2s;
}

.fond .liste .item:nth-child(1) .intitule
{
    animation-delay: 1.4s;
}

.fond .liste .item:nth-child(1) .description
{
    animation-delay: 1.6s;
}

.fond.suivant .liste .item:nth-child(1) .img
{
    width: 150px;
    height: 220px;
    position: absolute;
    left: 50%;
    bottom: 20px;
    border-radius: 20px;
    animation: showImage 1s linear 1 forwards;
}

@keyframes showImage 
{
    to
    {
        width: 100%;
        height: 100%;
        border-radius: 0;
        left: 0;
        bottom: 0;
    }
}

.fond.suivant .bas .item:nth-child(1)
{
    width: 0;
    overflow: hidden;
    animation: showBas 0.5s linear 1 forwards;
}

@keyframes showBas 
{
    to
    {
        width: 150px;
    }
    
}

.fond.suivant .bas
{
    transform: translateX(150px);
    animation: transformBas 0.5s linear 1 forwards;
}

@keyframes transformBas
{
    to
    {
        transform: translateX(0);
    }
}

.fond.precedent .liste .item:nth-child(2)
{
    z-index: 2;
}

.fond.precedent .liste .item:nth-child(2) img
{
    position: absolute;
    top: 0;
    left:0;
    animation: outImage 0.5s linear 1 forwards;
}


@keyframes outImage
{
    to
    {
        width: 150px;
        height: 220px;
        border-radius: 20px;
        left: 50%;
        bottom: 50%;
    }
}

.fond.precedent .bas .item:nth-child(1)
{
    width: 0;
    overflow: hidden;
    opacity: 0;
    animation: showBas 0.5s linear 1 forwards;
}

.fond.precedent .liste .item.item:nth-child(1) .titre, .fond.precedent .liste .item.item:nth-child(1) .intitule, .fond.precedent .liste .item.item:nth-child(1) .description, .fond.precedent .liste .item.item:nth-child(1) a
{
    animation: contentOut 0.5s linear 1 forwards;
}

@keyframes contentOut
{
    to
    {
        transform: translateY(-150px);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        opacity: 0;
    }
}

.fond.suivant .fleche button, .fond.precedent .fleche button
{
    pointer-events: none;
}

.time
{
    width: 0%;
    height: 5px;
    background-color: var(--infinity-orange);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.fond.suivant .time, .fond.precedent .time
{
    width: 100%;
    animation: timeRunning 2s linear 1 forwards;
}

@keyframes timeRunning 
{
    to
    {
        width: 0;
    }
    
}

@media screen and (max-width:975px)
{
    .fleche
    {
        left: 37%;
    }
}

@media screen and (max-width:727px)
{
    .fleche
    {
        left: 35%;
    }
}

@media screen and (max-width:620px)
{
    .fleche
    {
        left: 29%;
    }
}

@media screen and (max-width:658px)
{
    .fond .liste .item .contenu
    {
        padding-right: 0px;
    }  


    .fond .liste .item .contenu .titre
    {
        font-size: 30px;
    }
}


@media screen and (max-width:430px)
{
    .fleche
    {
        left: 27%;
    }
}

@media screen and (max-width:390px)
{
    .fleche
    {
        left: 25%;
    }
}