/* Avant / Après — comparateur */

.aa-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-select: none;
}

.aa-wrap .aa-img-before {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: bottom;
    pointer-events: none;
}

.aa-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.aa-after img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.aa-divider {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: #ffffff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    transform: translateX(-1px);
}

.aa-handle {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    z-index: 10;
    transition: box-shadow 0.15s ease;
}

.aa-handle:hover,
.aa-handle:focus {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.35);
    outline: none;
}

.aa-handle svg {
    width: 22px;
    height: 22px;
    color: #444444;
    pointer-events: none;
}

.aa-label {
    position: absolute;
    bottom: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.45);
    pointer-events: none;
    letter-spacing: 0.04em;
    font-family: system-ui, -apple-system, sans-serif;
}

.aa-label-before { left: 12px; }
.aa-label-after  { right: 12px; }
