/* =================================== */
/* ==         FOOTER STYLES         == */
/* =================================== */

.footer {
    background-color: var(--color-primary-dark);
    color: #a9b3c1;
    padding: var(--spacing-xxl) 0 0;
}

.footer-grid {
    display: grid;
    gap: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
    
    /* Par défaut : 4 colonnes */
    grid-template-columns: repeat(4, 1fr);

    /* --- MODIFICATION --- */
    /* On centre le texte pour toutes les tailles d'écran */
    text-align: center;
}

.footer-col {
    padding: 0 var(--spacing-s);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #a9b3c1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--color-accent);
}

.footer-col h4 {
    color: var(--color-accent);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: var(--spacing-m);
}

.social-links li a {
    display: flex;
    align-items: center;
    gap: 8px; /* Espace entre l'icône et le texte */
    
    /* --- MODIFICATION --- */
    /* On centre les icônes et le texte des liens sociaux */
    justify-content: center;
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-bottom {
    padding: var(--spacing-l);
    margin-top: var(--spacing-xl);
    text-align: center;
    font-size: 0.9rem;
    background-color: rgba(0, 0, 0, 0.2);
}

/* =================================== */
/* ==   MEDIA QUERIES RESPONSIVES   == */
/* =================================== */

/* Pour les tablettes (écrans jusqu'à 992px) : 2 colonnes */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Pour les mobiles (écrans jusqu'à 576px) : 1 colonne */
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    /* Note : text-align: center est déjà appliqué plus haut */
}