/* ========== Footer — Devolim ========== */

.footer {
    background: var(--dark);
    color: var(--text-secondary);
    position: relative;
    border-top: 1px solid var(--dark-border);
}

.footer-wrapper {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Divider animé */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary) 20%, var(--accent) 50%, var(--primary) 80%, transparent);
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.footer-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
    animation: shimmer 3s linear infinite;
}

/* Grid principal */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

/* Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-logo-img:hover {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 20px rgba(var(--primary-rgb), 0.5));
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
}

.footer-stat {
    text-align: center;
}

.footer-stat .stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-stat .stat-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Colonnes de navigation */
.footer-nav h4,
.footer-services h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-nav h4::after,
.footer-services h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
}

.footer-nav li,
.footer-services li {
    margin-bottom: 0.6rem;
}

.footer-nav a,
.footer-services a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
    position: relative;
    display: inline-block;
}

.footer-nav a::before,
.footer-services a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gradient);
    transition: width var(--transition-base);
}

.footer-nav a:hover,
.footer-services a:hover {
    color: var(--white);
    transform: translateX(4px);
}

.footer-nav a:hover::before,
.footer-services a:hover::before {
    width: 100%;
}

/* Contact */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all var(--transition-base);
}

a.contact-link:hover {
    color: var(--white);
    transform: translateX(4px);
}

.contact-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--primary);
}

/* Social links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.4);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* CTA */
.footer-cta {
    background: rgba(var(--primary-rgb), 0.05);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: var(--space-lg) 0;
    position: relative;
    overflow: hidden;
}

.footer-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.08), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.cta-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.cta-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-cta-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient);
    color: var(--white);
    padding: 0.9rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.footer-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.footer-cta-button svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.footer-cta-button:hover svg {
    transform: translateX(4px);
}

/* Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--dark-border);
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color var(--transition-base);
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal .separator {
    color: var(--text-muted);
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-lg);
    }
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .footer-main {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .footer-cta {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-stats {
        justify-content: space-around;
    }
    .footer-legal {
        flex-direction: column;
        gap: 0.4rem;
    }
    .footer-legal .separator {
        display: none;
    }
}
