/* ===== SECTION FOCUS RÉALISATIONS - VERSION SPECTACULAIRE ===== */
/* Fichier CSS dédié pour éviter les conflits */

/* 1. CONTENEUR PRINCIPAL */
.focus-realisations-section {
    position: relative;
    padding: 140px 0;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    overflow: hidden;
    min-height: 100vh;
}

/* États initiaux simplifiés pour les animations d'entrée */
.focus-realisations-header {
    opacity: 0;
    transform: translateY(50px);
}

.focus-project-card {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
}

/* État normal des cartes après animation */
.focus-project-card.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* 2. EFFET DE FOND LUMINEUX SPECTACULAIRE */
.focus-realisations-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1400px;
    height: 1400px;
    background: radial-gradient(circle, 
        rgba(0, 224, 255, 0.15) 0%, 
        rgba(0, 150, 255, 0.08) 40%, 
        rgba(0, 100, 200, 0.04) 70%, 
        transparent 90%);
    border-radius: 50%;
    filter: blur(150px);
    animation: focus-realisations-glow-pulse 15s ease-in-out infinite;
    z-index: 1;
}

@keyframes focus-realisations-glow-pulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.7;
    }
    33% {
        transform: translate(-45%, -55%) scale(1.2) rotate(120deg);
        opacity: 1;
    }
    66% {
        transform: translate(-55%, -45%) scale(1.1) rotate(240deg);
        opacity: 0.8;
    }
}

/* 3. EN-TÊTE DE LA SECTION */
.focus-realisations-header {
    text-align: center;
    margin-bottom: 100px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.focus-realisations-badge {
    display: inline-block;
    padding: 14px 28px;
    background: linear-gradient(135deg, rgba(0, 224, 255, 0.2) 0%, rgba(0, 150, 255, 0.1) 100%);
    border: 2px solid rgba(0, 224, 255, 0.4);
    border-radius: 35px;
    color: #00E0FF;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 224, 255, 0.2);
    animation: focus-badge-pulse 4s ease-in-out infinite;
}

@keyframes focus-badge-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 224, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 15px 40px rgba(0, 224, 255, 0.4);
        transform: scale(1.02);
    }
}

.focus-realisations-header h2 {
    font-size: 4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 0 30px rgba(0, 224, 255, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #00E0FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.focus-realisations-header p {
    font-size: 1.4rem;
    color: #c0c0c0;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 4. GRILLE DES PROJETS */
.focus-realisations-grid {
    display: grid;
    grid-template-columns: repeat(1, 3fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

/* 5. CARTES DE PROJET */
.focus-project-card {
    background: linear-gradient(135deg, 
        rgba(20, 25, 35, 0.9) 0%, 
        rgba(15, 20, 30, 0.8) 100%);
    border: 2px solid rgba(0, 224, 255, 0.2);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.focus-project-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 224, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 224, 255, 0.15);
}

/* 6. SLIDER AVANT/APRÈS - LE CŒUR DE L'INTERACTION */
.before-after-slider {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    cursor: ew-resize;
    border-radius: 20px 20px 0 0;
}

.slider-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.slider-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.before-image {
    z-index: 1;
}

.after-image {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
    transition: clip-path 0.1s ease;
}

/* 7. POIGNÉE DU SLIDER */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffffff 0%, #00E0FF 100%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    cursor: ew-resize;
    z-index: 10;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(0, 224, 255, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle::before {
    content: '⟷';
    font-size: 20px;
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(0, 224, 255, 0.6);
}

/* Ligne de séparation */
.slider-handle::after {
    content: '';
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 300px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 20%, 
        rgba(0, 224, 255, 0.9) 50%, 
        rgba(255, 255, 255, 0.8) 80%, 
        transparent 100%);
    z-index: -1;
    box-shadow: 0 0 10px rgba(0, 224, 255, 0.5);
}

/* 8. CONTENU DU PROJET */
.focus-project-content {
    padding: 30px;
    text-align: center;
}

.focus-project-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.focus-project-content p {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* 9. BOUTON CTA AVEC PULSATION */
.focus-project-cta {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #00E0FF 0%, #0099CC 100%);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: focus-cta-pulse 3s ease-in-out infinite;
}

@keyframes focus-cta-pulse {
    0%, 100% {
        box-shadow: 
            0 8px 25px rgba(0, 224, 255, 0.3),
            0 0 0 0 rgba(0, 224, 255, 0.7);
    }
    50% {
        box-shadow: 
            0 12px 35px rgba(0, 224, 255, 0.4),
            0 0 0 15px rgba(0, 224, 255, 0);
    }
}

/* Animation simple pour l'entrée des cartes */
@keyframes focus-card-entrance {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.focus-project-cta:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 224, 255, 0.5);
}

.focus-project-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.focus-project-cta:hover::before {
    left: 100%;
}

/* 10. LABELS AVANT/APRÈS */
.before-after-slider::before,
.before-after-slider::after {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    border-radius: 20px;
    z-index: 5;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.before-after-slider::before {
    content: 'AVANT';
    left: 20px;
    background: rgba(255, 100, 100, 0.8);
}

.before-after-slider::after {
    content: 'APRÈS';
    right: 20px;
    background: rgba(100, 255, 100, 0.8);
}

/* 11. RESPONSIVITÉ */

/* Tablette */
@media (max-width: 992px) {
    .focus-realisations-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .focus-realisations-header h2 {
        font-size: 3.5rem;
    }
    
    .before-after-slider {
        height: 250px;
    }
    
    .focus-realisations-section {
        padding: 120px 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .focus-realisations-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .focus-realisations-header h2 {
        font-size: 2.8rem;
    }
    
    .focus-realisations-header p {
        font-size: 1.2rem;
    }
    
    .before-after-slider {
        height: 220px;
    }
    
    .slider-handle {
        width: 50px;
        height: 50px;
    }
    
    .slider-handle::before {
        font-size: 16px;
    }
    
    .focus-project-content {
        padding: 25px;
    }
    
    .focus-project-content h3 {
        font-size: 1.6rem;
    }
    
    .focus-project-cta {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .focus-realisations-section {
        padding: 100px 0;
    }
}

@media (max-width: 480px) {
    .focus-realisations-header h2 {
        font-size: 2.2rem;
    }
    
    .before-after-slider {
        height: 200px;
    }
    
    .focus-project-content {
        padding: 20px;
    }
    
    .focus-project-content h3 {
        font-size: 1.4rem;
    }
    
    .focus-project-content p {
        font-size: 1rem;
    }
}