#c7n-competences {
    padding: 120px 0;
    background-color: #fff;
}

.swiper {
    width: 100%;
    padding: 40px 0 80px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    --position: 50%;
    container-type: inline-size;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
    transform: scale(0.9);
    opacity: 0.3;
}

.swiper-slide-active .comparison-slider {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.swiper-slide:not(.swiper-slide-active) * {
    pointer-events: none !important;
}

.swiper-slide-active .slider {
    pointer-events: auto !important;
    cursor: ew-resize;
}

.c7n-details-button {
    border: 1px solid rgba(83, 54, 31, 1);
    width: 100%;
    background-color: rgba(83, 54, 31, 1);
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 43px;
    max-width: 300px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-decoration: none;
}

.c7n-details-button:hover {
    background-color: rgba(132, 190, 65, 1);
    border-color: rgba(132, 190, 65, 1);
    color: #ffffff;
    text-decoration: none;
}

.swiper-controls {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
}

.swiper-navigation-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-family: inherit;
    font-size: 18px;
    color: #000;
}

.swiper-pagination-bullets.swiper-pagination-horizontal {
    position: static !important;
    width: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.swiper-pagination-bullet {
    width: 19px !important;
    height: 19px !important;
    background: #000 !important;
    opacity: 0.3 !important;
    border-radius: 50% !important;
    margin: 0 !important;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.swiper-pagination-bullet-active {
    opacity: 1 !important;
}

.comparison-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    --position: 50%;
    container-type: inline-size;
}

.comparison-slider img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-after {
    width: 100%;
    height: 100%;
}

.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--position);
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid white;
}

.image-before img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100cqw;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    opacity: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: var(--position);
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border: 5px solid white;
    color: #fff;
}

.slider-button::after {
    content: '◀ ▶';
    font-size: 14px;
    letter-spacing: -1px;
}