/* --- Executive Image Comparison Slider --- */

.image-comparison-slider {
    position: relative;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.75rem; /* 12px */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    cursor: col-resize;
}

.image-comparison-slider img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

.image-comparison-slider .img-comp-img {
    position: absolute;
    width: auto;
    height: auto;
    overflow: hidden;
}

.image-comparison-slider .img-comp-img img {
    display: block;
}

.image-comparison-slider .img-comp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 3px solid white;
    box-sizing: border-box;
}

.image-comparison-slider .img-comp-slider {
    position: absolute;
    z-index: 9;
    cursor: col-resize;
    width: 40px;
    height: 40px;
    background-color: white;
    opacity: 0.9;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.image-comparison-slider:hover .img-comp-slider {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.image-comparison-slider .img-comp-slider:before, 
.image-comparison-slider .img-comp-slider:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.image-comparison-slider .img-comp-slider:before {
    border-width: 6px 8px 6px 0;
    border-color: transparent #333 transparent transparent;
    left: 8px;
}

.image-comparison-slider .img-comp-slider:after {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent #333;
    right: 8px;
}

/* Avant/Après Labels */
.image-comparison-slider .comp-label {
    position: absolute;
    top: 1rem;
    padding: 0.5rem 1rem;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 0.25rem;
    pointer-events: none;
    user-select: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.image-comparison-slider:hover .comp-label {
    opacity: 1;
}

.image-comparison-slider .avant-label {
    left: 1rem;
}

.image-comparison-slider .apres-label {
    right: 1rem;
}
