/* Footer global — simple, lisible */

#footer-container {
    width: 100%;
}

.site-footer {
    width: 100%;
    margin-top: 3rem;
    padding: 1.35rem 1.25rem 1.5rem;
    border-top: 1px solid rgba(59, 130, 246, 0.22);
    background: rgba(4, 8, 18, 0.85);
    color: #9ca3af;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    text-align: center;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

.site-footer-inner {
    max-width: 56rem;
    margin: 0 auto;
}

.site-footer-links-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

@media (min-width: 640px) {
    .site-footer-links-wrap {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.85rem 1rem;
    }
}

.site-footer-divider {
    display: none;
    width: 1px;
    height: 1.1rem;
    background: rgba(59, 130, 246, 0.25);
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .site-footer-divider {
        display: block;
    }
}

.site-footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.2rem;
    line-height: 1.65;
}

.site-footer-nav a {
    color: #d1d5db;
    text-decoration: none;
    padding: 0.2rem 0.35rem;
    font-weight: 500;
    border-radius: 0.35rem;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-footer-site a:hover,
.site-footer-site a:focus-visible {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.1);
    outline: none;
}

.site-footer-site a.is-active {
    color: #93c5fd;
    font-weight: 600;
}

/* Liens externes — style distinct */
.site-footer-external a.is-external {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.7rem;
    color: #e5e7eb;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    font-size: 0.78rem;
}

.site-footer-external a.is-external i:first-child {
    font-size: 0.72rem;
    color: #93c5fd;
}

.site-footer-external a.is-external .site-footer-ext-icon {
    font-size: 0.55rem;
    color: #6b7280;
    margin-left: 0.05rem;
}

.site-footer-external a.is-external:hover,
.site-footer-external a.is-external:focus-visible {
    color: #f9fafb;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    outline: none;
}

.site-footer-external a.is-external:hover .site-footer-ext-icon,
.site-footer-external a.is-external:focus-visible .site-footer-ext-icon {
    color: #93c5fd;
}

.site-footer-external .site-footer-sep {
    display: none;
}

@media (min-width: 480px) {
    .site-footer-external .site-footer-sep {
        display: inline;
    }
}

.site-footer-sep {
    color: #4b5563;
    user-select: none;
    padding: 0 0.15rem;
    font-weight: 600;
}

.site-footer-copy {
    margin: 0;
    font-size: 0.72rem;
    color: #6b7280;
    letter-spacing: 0.02em;
}

@media (max-width: 639px) {
    .site-footer {
        margin-top: 2rem;
        padding: 1.15rem 0 1.25rem;
        font-size: 0.78rem;
    }

    .site-footer-links-wrap {
        gap: 0.65rem;
    }

    .site-footer-divider {
        display: block;
        width: 2.5rem;
        height: 1px;
        background: rgba(59, 130, 246, 0.25);
    }

    .site-footer-external {
        width: 100%;
    }

    .site-footer-external .site-footer-links {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .site-footer-external a.is-external {
        justify-content: center;
        padding: 0.5rem 0.65rem;
        font-size: 0.74rem;
    }

    .site-footer-nav a {
        padding: 0.3rem 0.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer-nav a {
        transition: none;
    }
}
