/* Footer partagé : styles isolés des pieds de cartes et de formulaires. */
.site-footer {
    padding: 56px 5% 28px;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}
.site-footer .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 2.6fr);
    gap: 48px;
}
.site-footer .footer-brand {
    display: inline-flex;
    margin-bottom: 16px;
}
.site-footer .footer-brand img {
    height: 35px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
.site-footer .footer-newsletter p {
    margin: 0 0 18px;
    line-height: 1.65;
}
.site-footer .footer-newsletter .footer-tagline {
    color: var(--text-dark);
    font-size: 1rem;
    max-width: 34ch;
    margin-bottom: 28px;
}
.site-footer .footer-newsletter h2,
.site-footer .footer-col h2 {
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 16px;
}
.site-footer .footer-newsletter h2 { color: var(--secondary-color); }
.site-footer .newsletter-form { align-items: stretch; }
.site-footer .newsletter-form input[type="email"] {
    min-width: 0;
    width: 100%;
    padding: 11px 14px;
}
.site-footer .newsletter-form button { flex-shrink: 0; }
.site-footer .footer-newsletter .newsletter-consent {
    font-size: .75rem;
    line-height: 1.6;
    margin-bottom: 0;
}
.site-footer .newsletter-consent a {
    color: var(--secondary-color);
    text-underline-offset: 3px;
}
.site-footer .footer-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-top: 6px;
}
.site-footer .footer-col ul { padding: 0; margin: 0; }
.site-footer .footer-col li { margin-bottom: 8px; }
.site-footer .footer-col li a {
    display: inline-block;
    padding-block: 4px;
    font-weight: 500;
    line-height: 1.5;
    overflow-wrap: anywhere;
}
.site-footer a:focus-visible,
.site-footer button:focus-visible,
.site-footer input:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
}
.site-footer .footer-col a:hover,
.site-footer .footer-legal a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer .footer-bottom {
    margin-top: 36px;
    padding-top: 24px;
    gap: 16px 24px;
}
.site-footer .footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.site-footer .footer-meta small { color: var(--text-secondary); font-size: .75rem; }
.site-footer .social-links { gap: 8px; }
.site-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-secondary);
    text-decoration: none;
}
.site-footer .social-links a:hover { color: var(--secondary-color); }
.site-footer .footer-legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.site-footer .footer-legal a,
.site-footer .footer-photo-credit {
    color: var(--text-secondary);
    font-size: .75rem;
    text-decoration: none;
    line-height: 1.5;
    padding-block: 8px;
}
.site-footer .footer-language {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-dark);
    cursor: pointer;
    font-size: .8rem;
    padding: 9px 12px;
}
.site-footer .footer-language .flag-circle { width: 20px; height: 20px; flex-shrink: 0; }
.site-footer .footer-language i { font-size: .65rem; }
.site-footer .footer-photo-credit { flex-basis: 100%; padding: 0; }
@media (max-width: 1000px) {
    .site-footer .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .site-footer .footer-newsletter { max-width: 540px; }
    .site-footer .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .site-footer { padding: 36px 5% 24px; }
    .site-footer .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .site-footer .footer-bottom { margin-top: 28px; }
    .site-footer .footer-legal { flex-basis: 100%; }
}
@media (max-width: 420px) {
    .site-footer .footer-links { grid-template-columns: 1fr; gap: 20px; }
    .site-footer .footer-col { border-top: 1px solid var(--border-color); padding-top: 20px; }
    .site-footer .footer-col h2 { margin-bottom: 8px; }
}
