/* ===== CORRECTIONS LAYOUT GREENFAD ===== */

/* Correction de la section clients - éviter la superposition */
.clients-section {
    padding: 4rem 0 !important;
    background: #F8F9FA !important;
    margin: 3rem 0 !important;
    position: relative !important;
    z-index: 1 !important;
    clear: both !important;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #F8F9FA;
    z-index: -1;
}

.clients-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    position: relative !important;
    z-index: 2 !important;
}

.clients-title {
    text-align: center !important;
    font-size: 1rem !important;
    color: #64748B !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 3rem !important;
}

.clients-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 2rem !important;
    align-items: center !important;
    justify-items: center !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    position: relative !important;
    z-index: 3 !important;
}

.client-logo {
    width: 100px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: white !important;
    border-radius: 8px !important;
    padding: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    transition: all 0.3s ease !important;
    border: 1px solid #E2E8F0 !important;
    position: relative !important;
    z-index: 4 !important;
}

.client-logo:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.15) !important;
}

.client-logo img {
    max-width: 80% !important;
    max-height: 80% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: grayscale(100%) opacity(0.6) !important;
    transition: all 0.3s ease !important;
}

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

/* Correction de la section hero - éviter les débordements */
.hero {
    padding: 6rem 0 4rem !important;
    background: linear-gradient(135deg, #E8F8F5 0%, #F0F9FF 100%) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-bottom: 0 !important;
}

.hero-content {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
    align-items: center !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    position: relative !important;
    z-index: 2 !important;
}

.hero-text {
    max-width: 600px !important;
    position: relative !important;
    z-index: 3 !important;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    margin-bottom: 1.5rem !important;
    color: #2D3748 !important;
}

.hero-description {
    font-size: 1.1rem !important;
    color: #64748B !important;
    line-height: 1.6 !important;
    margin-bottom: 2rem !important;
}

/* Correction des statistiques hero */
.hero-stats {
    display: flex !important;
    gap: 3rem !important;
    margin: 2.5rem 0 !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

.stat {
    text-align: left !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    min-width: 120px !important;
}

.stat-number {
    display: block !important;
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: #00D4AA !important;
    margin-bottom: 0.25rem !important;
    line-height: 1 !important;
}

.stat-label {
    font-size: 0.85rem !important;
    color: #64748B !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

/* Correction des boutons CTA hero */
.hero-cta {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 2.5rem !important;
    flex-wrap: wrap !important;
    align-items: center !important;
}

.btn-large {
    padding: 1rem 2rem !important;
    font-size: 1rem !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    min-height: 50px !important;
}

.btn-primary {
    background: #00D4AA !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.25) !important;
}

.btn-primary:hover {
    background: #00B894 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.3) !important;
}

.btn-outline {
    background: transparent !important;
    border: 2px solid #00D4AA !important;
    color: #00D4AA !important;
}

.btn-outline:hover {
    background: #00D4AA !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 5px 15px rgba(0, 212, 170, 0.25) !important;
}

/* Correction de la section services */
.services {
    padding: 5rem 0 !important;
    background: white !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
}

.services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
    margin-top: 3rem !important;
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 2rem !important;
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0 3rem !important;
    }
    
    .hero-content {
        padding: 0 1rem !important;
    }
    
    .hero-stats {
        gap: 2rem !important;
        justify-content: center !important;
    }
    
    .stat {
        text-align: center !important;
        min-width: 100px !important;
    }
    
    .hero-cta {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 1rem !important;
    }
    
    .btn-large {
        justify-content: center !important;
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .client-logo {
        width: 80px !important;
        height: 60px !important;
        padding: 0.5rem !important;
    }
    
    .clients-container {
        padding: 0 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .client-logo {
        width: 70px !important;
        height: 50px !important;
        padding: 0.4rem !important;
    }
}

/* Correction des z-index pour éviter les superpositions */
.header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
}

.hero {
    margin-top: 80px !important; /* Compenser la hauteur du header fixe */
}

/* Assurer que les sections ne se chevauchent pas */
.section {
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    clear: both !important;
}

.section + .section {
    margin-top: 0 !important;
}

/* Correction des marges entre sections */
.hero + .clients-section {
    margin-top: 0 !important;
}

.clients-section + .services {
    margin-top: 0 !important;
}

/* Assurer que le contenu ne déborde pas */
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    position: relative !important;
}

/* Correction des images de service pour éviter les débordements */
.service-image {
    border-radius: 10px !important;
    overflow: hidden !important;
    margin-bottom: 1rem !important;
    height: 180px !important;
    width: 100% !important;
}

.service-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.service-card:hover .service-image img {
    transform: scale(1.05) !important;
}

