/* Footer */
.footer {
    background: #F9F9F9;
}

.footer-header {
    padding: 60px 20px;
    border-bottom: 1px solid #E0E0E0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 0px 80px;
}

.footer-main-title {
    max-width: 1400px;
    margin: 0 auto;
    font-size: 24px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
}

.footer-top {
    padding: 60px 20px 40px;
    margin: 0px 0px;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2fr;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-brand-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1.3;
    margin: 0;
}

.footer-brand-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.footer-social-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.footer-social-links {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 40px;
    height: 40px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: transform 0.2s ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.footer-column-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    margin-bottom: 16px;
}

.footer-list {
    list-style: none;
}

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

.footer-list a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    background: white;
    position: relative;
    border-top: 1px solid #E0E0E0;
}

.emblem {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    top: 0;
    padding-top: 15px;
}

.footer-bottom-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    color: #666;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-powered {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #999;
    margin: 10px 0;
}

/* Responsive Contact & Footer */
@media (max-width: 1200px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-main-title {
        font-size: 20px;
    }

    .footer-badges {
        flex-direction: column;
        gap: 15px;
    }

    /* Additional mobile footer fixes */
    .footer-header {
        grid-template-columns: 1fr;
        margin: 0 20px;
        padding: 40px 15px;
    }

    .footer-top {
        padding: 40px 15px 30px;
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-brand-title {
        font-size: 16px;
    }

    .footer-social-links {
        justify-content: center;
    }

    .ultra {
        padding: 10px;
    }

    .footer-social-link {
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .footer-column-title {
        display: flex;
        justify-content: center;
    }

    .emblem {
        position: static;
        transform: none;
        text-align: center;
    }

    .emblem img {
        height: 60px;
    }

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

    .footer-list a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 8px;
        font-size: 12px;
        line-height: 1.3;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Spécifiquement pour les liens très longs sur mobile */
    .footer-list a[href*="Ministère"] {
        font-size: 11px;
        line-height: 1.2;
        padding: 6px;
    }
}

/* Tablet Footer Responsive (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .footer-header {
        margin: 0 40px;
        padding: 50px 20px;
    }

    .footer-main-title {
        font-size: 22px;
    }

    .footer-top {
        padding: 50px 20px 35px;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    /* Gestion du texte long pour les tablettes */
    .footer-list a {
        font-size: 13px;
        line-height: 1.4;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Spécifiquement pour les liens très longs */
    .footer-list a[href*="Ministère"] {
        font-size: 12px;
        line-height: 1.3;
    }
}

/* Small Tablet Footer (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
    .footer-header {
        grid-template-columns: 1fr;
        margin: 0 30px;
        padding: 45px 20px;
    }

    .footer-main-title {
        font-size: 22px;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .footer-social-link {
        width: 38px;
        height: 38px;
    }

    .emblem img {
        height: 80px;
    }

    /* Gestion du texte long pour les tablettes */
    .footer-list a {
        font-size: 13px;
        line-height: 1.4;
        text-align: center;
        word-wrap: break-word;
        hyphens: auto;
    }

    /* Spécifiquement pour les liens très longs */
    .footer-list a[href*="Ministère"] {
        font-size: 12px;
        line-height: 1.3;
    }
}