/* ─── Saleté du véhicule — drop into cards.css or all.css ─── */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

:root {
    --slider-track-h: 6px;
    --slider-thumb: 20px;
    --slider-clean: #a8edbe;
    --slider-dirty: #7a5c2e;
    --slider-border: rgba(255, 255, 255, 0.08);
    --slider-muted: rgba(255, 255, 255, 0.35);
}

/* ── Wrapper ── */
.dirt-block {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 10px 0 14px;
}

/* ── Header row: label + live pill ── */
.dirt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.dirt-header label[for="steppedSlider"] {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 15px;
    letter-spacing: 0.07em;
    color: rgb(0, 119, 182);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dirt-pill {
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 2px 9px;
    border-radius: 99px;
    border: 1px solid var(--slider-border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--slider-clean);
    white-space: nowrap;
    transition: color .3s, border-color .3s, background .3s;
}

/* ── Track ── */
#steppedSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: var(--slider-track-h);
    background: transparent;
    outline: none;
    cursor: pointer;
    display: block;
    margin-top: calc(var(--slider-thumb) / 2);
}

#steppedSlider::-webkit-slider-runnable-track {
    height: var(--slider-track-h);
    border-radius: 99px;
    background: linear-gradient(to right,
            var(--slider-clean) 0%,
            #c8d96a 20%,
            #d4a843 40%,
            #b07835 60%,
            #8a5a25 80%,
            var(--slider-dirty) 100%);
}

#steppedSlider::-moz-range-track {
    height: var(--slider-track-h);
    border-radius: 99px;
    background: linear-gradient(to right,
            var(--slider-clean) 0%,
            #c8d96a 20%,
            #d4a843 40%,
            #b07835 60%,
            #8a5a25 80%,
            var(--slider-dirty) 100%);
}

/* ── Thumb ── */
#steppedSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: var(--slider-thumb);
    height: var(--slider-thumb);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.1);
    margin-top: calc((var(--slider-track-h) - var(--slider-thumb)) / 2);
    transition: transform .15s ease, box-shadow .15s ease;
}

#steppedSlider:active::-webkit-slider-thumb {
    transform: scale(1.2);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 255, 255, 0.13);
}

#steppedSlider::-moz-range-thumb {
    width: var(--slider-thumb);
    height: var(--slider-thumb);
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform .15s ease;
}

#steppedSlider:active::-moz-range-thumb {
    transform: scale(1.2);
}

/* ── Step dots ── */
.dirt-dots {
    display: flex;
    justify-content: space-between;
    padding: 0 calc(var(--slider-thumb) / 2);
    margin-top: 5px;
}

.dirt-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background .3s;
}

.dirt-dot.active {
    background: var(--slider-muted);
}

/* ── Emoji labels ── */
.dirt-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 0 1px;
}

.dirt-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: 0.28;
    transition: opacity .25s, transform .2s;
}

.dirt-label.active {
    opacity: 1;
    transform: scale(1.18);
}

.dirt-label-emoji {
    font-size: 13px;
    line-height: 1;
}

.dirt-label-text {
    font-size: 7.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
}

.dirt-label.active .dirt-label-text {
    color: rgb(0, 119, 182);
}