/* Conteneur */
.rmlc {
    --accent: #b21616;
    --ring: #fff;
    --shadow: rgba(0, 0, 0, .18);
}

.rmlc-viewport {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    /* box-shadow: 0 5px 7px 0px #00000060; */
}

/* Images superposées */
.rmlc-img {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    pointer-events: none;
    
}

.rmlc-before {
    position: relative;
    z-index: 1;
}

.rmlc-after {
    position: absolute;
    inset: 0;
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}

/* initial 50% (sera maj par JS) */

/* Divider & handle */
.rmlc-divider {
    position: absolute;
    inset: 0;
    z-index: 3;
    --x: 50%;
}

.rmlc-divider::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--x);
    width: 2px;
    background: var(--accent);
    transform: translateX(-1px);
}

.rmlc-handle {
    position: absolute;
    left: var(--x);
    bottom: 10px;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--accent);
    border: 6px solid var(--ring);
    box-shadow: 0 8px 18px var(--shadow);
    cursor: grab;
    background-image: url("../img/double-fleche.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50% 50%;
}

.rmlc-handle:active {
    cursor: grabbing;
}

/* Badges */
.rmlc-badge {
    position: absolute;
    top: 16px;
    z-index: 4;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 800;
    box-shadow: 0 6px 18px rgba(178, 22, 22, .35);
    font-size: clamp(14px, 1.6vw, 16px);
}

.rmlc-badge--left {
    left: 16px;
}

.rmlc-badge--right {
    right: 16px;
}

/* Accessibilité/Responsive */
@media (max-width: 640px) {
    .rmlc-handle {
        width: 38px;
        height: 38px;
        border-width: 5px;
    }
}
.rmlc-labels{
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
}
.avant_txt, .apres_txt{
    background: #B7B6BB;
    color: #fff;
    padding: 8px 12px;
    border-radius: 10px;
    /* font-weight: 600; */
    font-size: 14px;
    text-align: center;
    width: 80px;
}
.avant_txt{
    border-radius: 10px 0px 0px 10px;
}
.apres_txt{
    border-radius: 0px 10px 10px 0px;
}
.entredeux{
    width: 100%;
    background: linear-gradient(70deg, #B7B6BB,#b7b6bb1e, #B7B6BB);
}