.container_befor_after {
    width: 500px;
    height: 400px;
    margin-top: 60px;
    /* background: var(--color7); */
}

.slider_befor_after {
    top: 0;
    left: 0;
    height: 100%;
    cursor: ew-resize;
}

/* .before,.after {
    top: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    align-items: end;
}
.portrait.before,.portrait.after {
    top: 0;
    bottom: 0;
    background-size: contain;
    background-position: center;
    align-items: end;

}

.before {
    left: 0;
    width: 50%;
    z-index: 1;
    justify-content:flex-start;
}

.after {
    right: 0;
    justify-content: end; 
} */



.before,
.after {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%; /* Toujours pleine largeur */
    height: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain; /* Garde l'image entière */
}

.before {
    clip-path: inset(0 50% 0 0); /* Masque la moitié droite */
}

.after {
    clip-path: inset(0 0 0 50%); /* Masque la moitié gauche */
}

.slider_befor_after-handle {
    /* position: absolute; */
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: white;
    border: 1px solid var(--color1);
    z-index: 1;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, var(--color3), var(--color4), var(--color5), var(--color2));
    z-index: 0;
    background-size: 250% 250%;
    animation: bg_colorv2 5s ease infinite;
    box-shadow: 0 0 5px 1px var(--color7);
}
.span_div{
    padding: 20px;
    color: var(--color8);
    font-size: 2rem;
    height: max-content;
}
.btn_radius{
    top: 46%;
    left: -23px;
    background-color: var(--color7);
    width: 50px;
    height: 50px;
    background: url(../img/doufle_fleche.webp) no-repeat center;
    background-size: contain;
}