/* Slider */

.slider {
    width: 100vw;
    height: 60vh;
    position: relative;
    overflow: hidden;
}

.slider .title__container {
    position: absolute;
    left: 5%;
    bottom: 5%;
    z-index: 10;
}

.slider__title {
    position: relative;
    z-index: 10;
    font-size: 2.2rem;
    padding: 5px 10px;
    margin: 0;
    font-weight: 800;
}

.title__container::before {
    content: "";
    display: block;
    background-color: #fff;
    position: absolute;
    top: 0;
    right: 0;
    clip-path: polygon(37% 0, 37% 43%, 100% 43%, 100% 100%, 0 100%, 0 0);
    width: 100%;
    height: 100%;
}

.prefix__title {
    display: block;
    font-size: 1.8rem;
    font-weight: 500;
}

.slider__deco.deco--ronds {
    position: absolute;
    left: 0;
    bottom: 0;
    transform: translate(0%, 10%);
    width: 150px;
    z-index: 10;
}

/* Container des images */

.slider .slider__container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* flèches de navigations */

.slider .nav {
    position: absolute;
    right: 5%;
    bottom: 5%;
    z-index: 10;
}

.nav__btn {
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.slide {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: opacity .5s ease;
    position: absolute;
    opacity: 0;
}

.slide--prev {
    opacity: 0; 
}

.slide--active {
    opacity: 1; 
}

.slide--next {
    opacity: 0; 
}


/* Si l'écran > 650px */
@media screen and (min-width: 650px) {
    
    .slider .title__container {
        left: 10%;
        bottom: 10%;
    }
    
    .slider__title {
        font-size: 3rem;
    }
    
    .prefix__title {
        font-size: 2.5rem;
    }
    
    .slider .nav__container {
        right: 0;
        bottom: 0;
        z-index: 10;
        height: 100%;
    }
    
    .slider .nav {
        right: 12%;
        bottom: 10%;
        z-index: 10;
        transform: skew(30deg);
    }
    
    .nav__btn {
        color: var(--punchy-color);
    }
    
    .slider__deco.deco--ronds {
        width: 200px;
    }
    
    .slider .decos {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 5;
        width: 150px;
        display: flex;
        justify-content: space-between;
        height: 100%;
        transform: translateX(83%);
    }
    
    .slider .deco__bar {
        width: 60px;
        height: 100%;
        background-color: rgba(255, 255, 255, .8);
        transform: skewX(-30deg);
    }
    
}