/*
 * FABRE METAL CONSTRUCTION - V5.4 FINAL FIXES
 * Toutes les corrections réelles
 */

/* ============================================
   1. FOOTER CRÉDIT WG INLINE
   ============================================ */
.footer-credit-inline {
    display: inline;
    margin-left: 5px;
}

.footer-credit-inline .heart-beat {
    display: inline-block;
    color: #ff0000;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.footer-credit-inline .wg-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.footer-credit-inline .wg-link:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
}

/* ============================================
   2. BACKGROUNDS DE QUALITÉ
   ============================================ */

/* Section À Propos */
.about-section {
    background-image: 
        linear-gradient(rgba(0, 31, 63, 0.92), rgba(0, 31, 63, 0.92)),
        url('../images/bg_metal_plate.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* Section Vision/Mission */
.vision-mission-section {
    background-image: 
        linear-gradient(135deg, rgba(0, 31, 63, 0.9) 0%, rgba(13, 71, 161, 0.85) 100%),
        url('../images/bg_steel_construction.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* Section Expertise */
.expertise-section {
    background-image: 
        linear-gradient(rgba(0, 31, 63, 0.88), rgba(0, 31, 63, 0.88)),
        url('../images/bg_metal_diamond.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* Section Contact */
.contact-section {
    background-image: 
        linear-gradient(rgba(0, 31, 63, 0.9), rgba(0, 31, 63, 0.9)),
        url('../images/bg_metal_ridged.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

/* ============================================
   3. VIDÉO HERO FORCÉE
   ============================================ */
.hero-video {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 0 !important;
}

.hero-section video {
    display: block !important;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-video {
        display: block !important;
        object-fit: cover !important;
    }
}

/* ============================================
   4. MENU MOBILE CORRIGÉ
   ============================================ */

/* Toggle burger thématique */
.menu-toggle {
    background: linear-gradient(135deg, #b8b8b8 0%, #8a8a8a 50%, #c0c0c0 100%) !important;
    border: 2px solid #d4af37 !important;
    border-radius: 8px !important;
    padding: 10px !important;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.menu-toggle:hover {
    transform: translateY(-2px) !important;
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.5) !important;
}

.menu-toggle span {
    background: linear-gradient(90deg, #e0e0e0 0%, #a0a0a0 50%, #e0e0e0 100%) !important;
    height: 3px !important;
    border-radius: 2px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

/* Bouton fermeture X */
.mobile-menu-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 10000 !important;
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%) !important;
    border: 2px solid #fff !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    color: #fff !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-close:hover {
    transform: rotate(90deg) scale(1.1) !important;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%) !important;
}

/* Overlay menu mobile */
.mobile-menu-overlay {
    background: linear-gradient(135deg, 
        rgba(0, 31, 63, 0.98) 0%, 
        rgba(13, 71, 161, 0.95) 50%,
        rgba(0, 31, 63, 0.98) 100%) !important;
    backdrop-filter: blur(10px) !important;
}

.mobile-menu-overlay.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Items menu mobile */
.mobile-menu-nav a {
    color: #fff !important;
    font-size: 24px !important;
    padding: 20px 30px !important;
    border-left: 4px solid transparent !important;
    transition: all 0.3s ease !important;
}

.mobile-menu-nav a:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    border-left-color: #d4af37 !important;
    transform: translateX(10px) !important;
}

/* ============================================
   5. PERFORMANCES MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Désactiver parallaxe */
    .about-section,
    .vision-mission-section,
    .expertise-section,
    .contact-section {
        background-attachment: scroll !important;
    }
    
    /* Réduire animations */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Images lazy loading */
    img {
        loading: lazy;
    }
}

/* ============================================
   6. CARDS FULL-WIDTH MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Vision/Mission cards */
    .vm-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .vm-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
    
    /* Expertise cards */
    .expertise-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .expertise-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}

/* ============================================
   7. SCROLL MOBILE DÉSACTIVÉ
   ============================================ */
@media (max-width: 1024px) {
    /* Désactiver scroll automatique */
    html {
        scroll-behavior: auto !important;
    }
    
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
    
    section {
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Permettre scroll normal */
    .scroll-container {
        overflow-y: auto !important;
        scroll-snap-type: none !important;
    }
}

/* ============================================
   8. CARROUSEL CLIENTS OPTIMISÉ
   ============================================ */

/* Container carrousel */
.clients-carousel-container {
    width: 100% !important;
    overflow: hidden !important;
    padding: 40px 0 !important;
}

/* Carrousel */
.clients-carousel {
    display: flex !important;
    gap: 60px !important;
    animation: scrollCarousel 30s linear infinite !important;
    will-change: transform !important;
}

/* Pause au hover */
.clients-carousel:hover {
    animation-play-state: paused !important;
}

/* Items */
.client-logo-item {
    flex-shrink: 0 !important;
    width: 180px !important;
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    transition: all 0.4s ease !important;
}

.client-logo-item:hover {
    transform: scale(1.1) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3) !important;
}

.client-logo-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    filter: grayscale(100%) brightness(0) invert(1) !important;
    opacity: 0.7 !important;
    transition: all 0.4s ease !important;
}

.client-logo-item:hover img {
    filter: grayscale(0%) brightness(1) invert(0) !important;
    opacity: 1 !important;
}

/* Animation */
@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .clients-carousel {
        gap: 40px !important;
        animation-duration: 20s !important;
    }
    
    .client-logo-item {
        width: 140px !important;
        height: 80px !important;
        padding: 10px !important;
    }
}

/* Tablette */
@media (min-width: 769px) and (max-width: 1024px) {
    .client-logo-item {
        width: 160px !important;
        height: 90px !important;
    }
}

/* ============================================
   9. CORRECTIONS SUPPLÉMENTAIRES
   ============================================ */

/* Badge hero visible */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 150px !important;
    }
    
    .hero-badge {
        margin-top: 20px !important;
    }
}

/* Construction visible mobile */
@media (max-width: 768px) {
    .logo-subtitle {
        display: block !important;
        font-size: 9px !important;
        color: #d4af37 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Langue harmonisée */
.language-selector {
    background: linear-gradient(135deg, #b8b8b8 0%, #8a8a8a 50%, #c0c0c0 100%) !important;
    border: 2px solid #d4af37 !important;
    border-radius: 8px !important;
    padding: 8px 15px !important;
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 3px rgba(255, 255, 255, 0.3) !important;
}

/* Optimisation générale mobile */
@media (max-width: 768px) {
    /* Réduire tailles textes */
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }
    p { font-size: 14px !important; }
    
    /* Réduire paddings */
    section {
        padding: 60px 15px !important;
    }
    
    /* Optimiser images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
}
