/* ============================================================================
   Footer
   ============================================================================ */

.footer {
    position: relative;
    padding: 5rem 1.5rem 2rem;
    background-color: var(--background);
    border-top: 2px solid var(--foreground);
    overflow: hidden;
}

.footer-watermark {
    position: absolute;
    bottom: -2rem;
    right: -1rem;
    font-family: var(--font-display);
    font-size: clamp(12rem, 30vw, 22rem);
    line-height: 1;
    font-weight: 700;
    opacity: 0.04;
    user-select: none;
    pointer-events: none;
    color: var(--foreground);
}

/* ── Ligne principale ─────────────────────────────────────────────────────── */

.footer-main {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(var(--foreground-rgb), 0.12);
}

@media (min-width: 768px) {
    .footer-main {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
}

/* Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 0.6;
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.8;
    opacity: 0.5;
}

/* Nav */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-nav a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.footer-nav a:hover {
    opacity: 1;
}

/* Socials */
.footer-socials {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-socials-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.35;
    margin-bottom: 0.25rem;
}

.footer-socials a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    width: fit-content;
}

.footer-socials a:hover {
    opacity: 1;
}

/* ── Ligne basse ──────────────────────────────────────────────────────────── */

.footer-bottom {
    max-width: var(--container-max);
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.copyright {
    opacity: 0.4;
}

.footer-email {
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

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

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.55;
}

.footer-legal a {
    transition: opacity 0.2s ease;
}

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

/* Survol : chaque mot souligné séparément (soulignés détachés entre les mots) */
.footer-legal a:hover span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal__sep {
    opacity: 0.5;
}
