/* --- CONFIGURATION DU FOOTER --- */
.main-footer {
    background-color: #1e3a5f; /* Ton bleu nuit signature */
    color: white;
    padding: 80px 5% 40px;
    font-family: 'Outfit', sans-serif;
    border-top: 2px solid #fcd34d; /* Rappel du jaune */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* --- LOGO ET SLOGAN --- */
.footer-logo {
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer-logo span {
    color: #fcd34d; /* Jaune */
}

.footer-cities {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* --- GRILLE DE NAVIGATION --- */
.footer-nav-grid {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    color: #fcd34d;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    font-weight: 800;
}

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

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

.footer-column ul li a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #fcd34d;
}

/* --- BAS DU FOOTER (LÉGAL) --- */
.footer-bottom {
    max-width: 1200px;
    margin: 60px auto 0;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal p {
    font-size: 0.85rem;
    max-width: 450px;
    line-height: 1.4;
    opacity: 0.8;
}

.footer-copyright {
    text-align: right;
    font-size: 0.85rem;
    opacity: 0.8;
}

.footer-copyright a {
    color: white;
    margin-left: 20px;
}

/* --- RESPONSIVE MOBILE (STRICT) --- */
@media (max-width: 768px) {
    .main-footer { padding: 60px 20px 30px; text-align: center; }
    .footer-container { flex-direction: column; align-items: center; }
    .footer-nav-grid { 
        display: grid; 
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes comme demandé */
        gap: 20px; 
        width: 100%;
    }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
    .footer-copyright { text-align: center; }
}


/* ============================================================
   RESPONSIVE FOOTER - L'UNION CITOYENNE 2026
   ============================================================ */

@media (max-width: 768px) {
    /* 1. Ajustement global et centrage */
    .main-footer {
        padding: 60px 20px 30px !important;
        text-align: center !important;
        margin-top: 40px !important;
    }

    /* 2. Empilement vertical de la marque et des liens */
    .footer-top {
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px !important;
    }

    .footer-brand {
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* 3. Grille en 2 colonnes pour les liens */
    .footer-links {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important; /* 2 colonnes égales */
        gap: 12px !important;
        width: 100% !important;
        text-align: center !important;
    }

    /* 4. Transformation des liens en "Mini Boutons" cliquables */
    .link-group ul li a {
        display: block !important;
        background: rgba(255, 255, 255, 0.08) !important; /* Fond subtil pour l'effet bouton */
        padding: 12px 5px !important;
        border-radius: 12px !important;
        font-size: 0.85rem !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        transition: all 0.2s ease !important;
    }

    /* 5. Épurement : On masque les titres NAVIGATION/ENGAGEMENT sur mobile */
    .link-group h4 {
        display: none !important;
    }

    .link-group ul {
        display: contents !important; /* Permet aux <li> de s'aligner directement dans la grille parent */
    }

    .link-group ul li {
        margin-bottom: 0 !important;
    }

    /* 6. Partie basse : mentions et copyright */
    .footer-bottom {
        margin-top: 40px !important;
        padding-top: 20px !important;
    }

    .legal-notice {
        font-size: 0.75rem !important;
        margin-bottom: 20px !important;
    }

    .copyright {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    /* 7. Ajustement de la vague pour mobile */
    .main-footer::before {
        top: -30px !important;
        height: 30px !important;
    }
}