/* ===== FOOTER ÉLÉGANT ET FONCTIONNEL ===== */
.main-footer {
    background: var(--noir-profond);
    color: var(--blanc-pur);
    padding: var(--espace-xl) var(--espace-md);
    position: relative;
    overflow: hidden;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
}

.main-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Grille du footer */
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--espace-lg);
    margin-bottom: var(--espace-xl);
}

/* Colonne Brand avec logo */
.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: var(--espace-md);
}

.footer-logo-link {
    display: flex;
    text-decoration: none;
    color: var(--blanc-pur);
    transition: opacity 0.3s ease;
}

.footer-logo-link:hover {
    opacity: 0.9;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: var(--espace-sm);
}

.footer-logo-image {
    width: 60px;
    height: 60px;
    border-radius: 2px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.footer-logo-link:hover .footer-logo-image {
    transform: scale(1.05);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-main {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.footer-logo-subtitle {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pilier-1);
    letter-spacing: 0.03em;
}

.footer-philosophy {
    font-size: 1.125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: var(--espace-sm) 0;
    max-width: 35ch;
}

/* Contact mini */
.footer-contact-mini {
    display: flex;
    flex-direction: column;
    gap: var(--espace-sm);
    margin-top: var(--espace-md);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--espace-sm);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}

.contact-item i {
    color: var(--pilier-1);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.email-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--pilier-1);
}

/* Titres des colonnes */
.footer-column-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--blanc-pur);
    margin-bottom: var(--espace-md);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--pilier-1);
}

/* Listes de navigation */
.footer-nav-list,
.footer-services-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer-nav-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-nav-list a:hover {
    color: var(--pilier-1);
    transform: translateX(4px);
}

/* Services */
.service-link {
    display: flex;
    align-items: center;
    gap: var(--espace-xs);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
}

.service-link i {
    font-size: 0.8rem;
    color: var(--pilier-1);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--blanc-pur);
}

.service-link:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* Social */
.footer-social-column {
    display: flex;
    flex-direction: column;
    gap: var(--espace-lg);
}

.footer-social-icons {
    display: flex;
    gap: var(--espace-sm);
    margin-top: var(--espace-md);
}

.social-icon-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon-link:hover {
    background: var(--pilier-1);
    color: var(--blanc-pur);
    transform: translateY(-3px);
    border-color: var(--pilier-1);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.3);
}

/* Newsletter */
.footer-newsletter {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    padding: var(--espace-md);
    margin-top: var(--espace-md);
}

.newsletter-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--espace-sm);
    line-height: 1.5;
}

.newsletter-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--espace-xs);
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--pilier-1);
    text-decoration: none;
    font-weight: 500;
    border: 1.5px solid var(--pilier-1);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.newsletter-cta:hover {
    background: var(--pilier-1);
    color: var(--blanc-pur);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.2);
}

/* Séparateur */
.footer-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: var(--espace-lg) 0;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--espace-md);
}

/* Legal */
.footer-legal {
    display: flex;
    flex-direction: column;
    gap: var(--espace-xs);
}

.copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: var(--espace-sm);
    flex-wrap: wrap;
}

.legal-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--pilier-1);
}

.separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Back to top */
.back-to-top-btn {
    display: flex;
    align-items: center;
    gap: var(--espace-xs);
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.back-to-top-btn:hover {
    color: var(--blanc-pur);
    border-color: var(--pilier-1);
    background: rgba(42, 157, 143, 0.1);
    transform: translateY(-2px);
}

.back-to-top-btn i {
    transition: transform 0.3s ease;
}

.back-to-top-btn:hover i {
    transform: translateY(-2px);
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--espace-xl) var(--espace-lg);
    }
    
    .footer-brand-column {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: var(--espace-lg) var(--espace-md);
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--espace-lg);
    }
    
    .footer-brand-column {
        grid-column: span 1;
    }
    
    .footer-logo-image {
        width: 50px;
        height: 50px;
    }
    
    .footer-logo-main {
        font-size: 1.75rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--espace-md);
    }
    
    .footer-legal {
        order: 2;
    }
    
    .footer-back-to-top {
        order: 1;
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .main-footer {
        padding: var(--espace-lg) var(--espace-sm);
    }
    
    .footer-logo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .footer-logo-image {
        width: 45px;
        height: 45px;
    }
    
    .footer-logo-main {
        font-size: 1.5rem;
    }
    
    .footer-philosophy {
        font-size: 1rem;
    }
    
    .footer-column-title {
        font-size: 0.95rem;
    }
    
    .legal-links {
        justify-content: center;
        text-align: center;
    }
    
    .back-to-top-btn {
        width: 100%;
        justify-content: center;
    }
}