/* ============================================================
   SITE FOOTER — Footer global pleine largeur
   Partage par /demo (chat) + /legal/* + /contact/ + /about/
   ============================================================ */

.site-footer {
    flex-shrink: 0;
    background: var(--c-bg-warm, #e2f1ef);
    border-top: 1px solid var(--c-border, #cce7e3);
    padding: 0.75rem 1.25rem;
    font-size: 13px;
    color: var(--c-text-secondary, #545454);
    line-height: 1.5;
}

.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0 1.25rem;
    align-items: center;
}

.site-footer-links li {
    line-height: 1.6;
}

.site-footer-links a {
    color: var(--c-text-secondary, #545454);
    text-decoration: none;
    transition: color 0.15s ease-out;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
    color: var(--c-primary, #1b555c);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer-lang {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.site-footer-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--c-text-muted, #7d7474);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: background 0.15s ease-out, color 0.15s ease-out;
}

.site-footer-lang-btn:hover,
.site-footer-lang-btn:focus-visible {
    background: var(--c-bg-card, #ffffff);
    color: var(--c-primary, #1b555c);
}

.site-footer-lang-btn.active {
    background: var(--c-primary, #1b555c);
    color: #ffffff;
}

.site-footer-lang-btn.active:hover {
    color: #ffffff;
}

.site-footer-lang-code {
    font-size: 11px;
}

.site-footer-copy {
    margin: 0;
    color: var(--c-text-muted, #7d7474);
    font-size: 12px;
}

/* Responsive — tablet */
@media (max-width: 1023px) {
    .site-footer { padding: 0.65rem 1rem; }
    .site-footer-links { gap: 0 1rem; font-size: 12.5px; }
}

/* Responsive — mobile (<768px)
   Plus de footer fixed couplé au drawer (l'ancienne barre 96px qui glissait via
   body:has(.demo-sidebar.open) a été supprimée). Sur /demo/, le footer global est
   masqué (le légal + langue vit dans le drawer « Plus », cf. demo-core.css :
   body:has(.demo-layout) .site-footer { display:none }). Sur /legal/*, /contact/,
   /about/, il reste un footer NORMAL en flux, ici simplement resserré pour mobile. */
@media (max-width: 767px) {
    .site-footer { padding: 0.6rem 1rem; }

    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .site-footer-links { gap: 0.1rem 0.9rem; font-size: 12px; }
    .site-footer-meta { gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer,
    .site-footer-links a,
    .site-footer-lang-btn { transition: none; }
}
