footer {
    background-color: #031535;
    color: #ffffff;
    padding: 30px 20px;
}

/* ========== GRILLE 7 COLONNES ========== */
.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: center;
    gap: 20px;
}

/* ========== COLONNE 1 : CONTACT ========== */
.footer-contact {
    grid-column: 1 / 2;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
}

.footer-contact .footer-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.footer-contact .footer-contact-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 18px;
    font-family: "Montserrat", sans-serif;
}

/* ========== COLONNE 4 : LOGO ========== */
.footer-logo {
    grid-column: 4 / 5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.footer-logo em {
    font-style: normal;
    color: #0AAA66;
}

.footer-logo .logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* ========== COLONNE 7 : RÉSEAUX SOCIAUX + MENTIONS LÉGALES ========== */
.footer-right {
    grid-column: 7 / 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-social {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    color: #031535;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: #0AAA66;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========== MENTIONS LÉGALES ========== */
.footer-legal {
    font-size: 14px;
    color: #ffffff;
    font-weight: 400;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-align: center;
    cursor: default;
}

.footer-legal:hover {
    opacity: 1;
}

/* ======================================== */
/* ========== RESPONSIVE ========== */
/* ======================================== */

/* ✅ Tablette : on garde la grille mais on réduit les écarts */
@media (max-width: 992px) {
    .footer-grid {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .footer-contact,
    .footer-logo,
    .footer-right {
        grid-column: unset; /* on annule le placement en grille */
    }

    .footer-contact .footer-contact-text {
        font-size: 15px;
    }

    .footer-logo .logo {
        font-size: 22px;
    }

    .footer-logo .logo-img {
        height: 36px;
    }

    .footer-social a {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .footer-legal {
        font-size: 12px;
    }
}

/* ✅ Mobile : on garde la grille mais on réduit encore plus */
@media (max-width: 768px) {
    .footer-grid {
        gap: 10px;
    }

    .footer-contact .footer-contact-text {
        font-size: 14px;
    }

    .footer-contact .footer-icon {
        width: 22px;
        height: 22px;
    }

    .footer-logo .logo {
        font-size: 20px;
    }

    .footer-logo .logo-img {
        height: 30px;
    }

    .footer-social a {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .footer-legal {
        font-size: 11px;
    }
}

/* ✅ Très petit mobile : on garde la grille mais on réduit encore */
@media (max-width: 480px) {
    .footer-grid {
        flex-direction: column;
        gap: 16px;
    }

    .footer-contact {
        justify-content: center; /* centré une fois empilé, plus logique */
    }

    .footer-contact .footer-contact-text {
        font-size: 12px;
    }

    .footer-contact .footer-icon {
        width: 18px;
        height: 18px;
    }

    .footer-logo .logo {
        font-size: 16px;
        gap: 6px;
    }

    .footer-logo .logo-img {
        height: 24px;
    }

    .footer-social a {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .footer-legal {
        font-size: 10px;
    }
}