/* === SECTION NOS DEUX FACETTES === */
.about-two-faces-section {
    padding: 120px 5% 100px;
    position: relative;
    background-color: var(--dark-bg);
    overflow: hidden;
}

.two-faces-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Couches superposées */
.vision-layer,
.mission-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    box-sizing: border-box;
}

.vision-layer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 50, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1519003722824-194d4455a60c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.mission-layer {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(50, 0, 80, 0.8)), 
                url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    z-index: 2;
    width: 100%; /* Initialement à 100%, sera modifié par JS */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    transition: clip-path 0.1s ease;
}

/* Contenu des faces */
.face-content {
    max-width: 600px;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 2;
}

.face-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.face-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.face-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.face-content strong {
    color: var(--accent-cyan);
}

.face-icon {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-top: 30px;
    opacity: 0.8;
}

/* Poignée du slider */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    cursor: ew-resize;
}

.handle-line {
    width: 2px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.5);
}

.handle-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    box-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
    animation: pulse-handle 2s infinite alternate;
}

@keyframes pulse-handle {
    0% {
        transform: scale(1);
        box-shadow: 0 0 15px rgba(0, 224, 255, 0.7);
    }
    100% {
        transform: scale(1.2);
        box-shadow: 0 0 25px rgba(0, 224, 255, 1);
    }
}

/* Instructions pour l'utilisateur */
.slider-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 3;
    white-space: nowrap;
    animation: fade-in-out 3s infinite alternate;
}

@keyframes fade-in-out {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .face-content {
        max-width: 500px;
    }
    
    .face-content h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .two-faces-container {
        height: 600px;
    }
    
    .vision-layer,
    .mission-layer {
        padding: 40px 20px;
    }
    
    .face-content {
        max-width: 100%;
    }
    
    .face-content h2 {
        font-size: 2rem;
    }
    
    .face-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .two-faces-container {
        height: 700px;
    }
    
    .face-content h2 {
        font-size: 1.8rem;
    }
    
    .slider-handle {
        height: 80px;
    }
    
    .handle-line {
        height: 20px;
    }
}