/* Footer */
.footer {
    background: var(--primary-color); /* Utilise la couleur primaire (désormais bleu royal) */
    color: var(--white);
    padding: var(--space-lg) 0;
}

/* Container du footer */
.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo dans le footer */
.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

/* Grille du footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    width: 100%;
    margin-bottom: var(--space-lg);
}

/* Sections du footer */
.footer-brand,
.footer-links,
.footer-legal {
    text-align: left;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Titres des sections */
.footer h4 {
    color: var(--white);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
}

/* Liste de liens */
.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer li {
    margin-bottom: var(--space-xs);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
    transform: translateX(5px);
}

/* Texte de copyright */
.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Media Queries */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .footer-brand {
        grid-column: span 2;
        text-align: center;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-md) 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-md);
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-links,
    .footer-legal {
        text-align: center;
    }

    .footer li {
        margin-bottom: var(--space-sm);
    }

    .footer a:hover {
        transform: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-content > * {
    animation: fadeInUp 0.5s ease-out forwards;
}

.footer-brand { animation-delay: 0.1s; }
.footer-links { animation-delay: 0.2s; }
.footer-legal { animation-delay: 0.3s; }

/* Support des préférences de réduction de mouvement */
@media (prefers-reduced-motion: reduce) {
    .footer-content > *,
    .footer a {
        animation: none;
        transition: none;
    }

    .footer a:hover {
        transform: none;
    }
}