/* ============================================
   SLIDER AVANT / APRÈS — GS Peinture
   ============================================ */

.aa-outer {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
}

.aa-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 450px;
    overflow: hidden;
    border-radius: 16px;
    line-height: 0;
    touch-action: none;
    cursor: ew-resize;
    box-shadow: none;
}

/* Image AVANT — fixe, couvre tout, ne bouge jamais */
.aa-container img.aa-base {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    display: block;
}

/* Image APRÈS — même taille que le container, clippée via clip-path */
.aa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* clip-path mis à jour par JS */
    clip-path: inset(0 50% 0 0);
    z-index: 10;
}

.aa-overlay img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
    display: block;
}

/* Ligne de séparation */
.aa-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #ffffff;
    z-index: 30;
    pointer-events: none;
}

/* Cercle central */
.aa-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 45px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    cursor: ew-resize;
    pointer-events: none;
}

.aa-circle svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Labels AVANT / APRÈS */
.aa-tag {
    position: absolute;
    top: 16px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 11px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 30px;
    line-height: 1.5;
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.aa-tag-l { left: 16px; }
.aa-tag-r { right: 16px; z-index: 5; }

.aa-titre {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.aa-sous-titre {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #777;
    margin-bottom: 28px;
}

/* Responsive */
@media (max-width: 600px) {
    .aa-container {
        height: 220px;
        border-radius: 10px;
    }
    .aa-circle { width: 40px; height: 40px; }
    .aa-circle svg { width: 16px; height: 16px; }
    .aa-tag { font-size: 9px; padding: 4px 10px; }
}