/* ==============================
   FOOTER
================================= */

.site-footer {
    position: relative;
    z-index: 5;

    margin-top: 96px;
    padding: 0 0 24px;
}

/* Carte footer en glassmorphisme */
.site-footer .footer-container {
    position: relative;
    overflow: hidden;
    isolation: isolate;

    width: calc(100% - 32px);
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 26px;

    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 24px;

    box-shadow:
        0 18px 44px rgba(31, 31, 31, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);

    backdrop-filter: blur(26px) saturate(1.22);
    -webkit-backdrop-filter: blur(26px) saturate(1.22);
}

/* Reflet glass interne, pas un halo extérieur */
.site-footer .footer-container::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.62) 0%,
            rgba(255, 255, 255, 0.22) 34%,
            rgba(255, 255, 255, 0.08) 100%
        );

    pointer-events: none;
}

/* Fine ligne lumineuse supérieure */
.site-footer .footer-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    z-index: 0;

    height: 1px;


    pointer-events: none;
}

.footer-main {
    position: relative;
    z-index: 1;

    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 18px;
}

.footer-top {
    width: 100%;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 32px;
}

/* ==============================
   BRAND
================================= */

.footer-brand {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-logo-link {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    display: block;

    width: 145px;
    height: auto;

    object-fit: contain;
}

.footer-brand p {
    max-width: 260px;
    margin: 0;

    color: var(--color-text-soft);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
}

/* ==============================
   FOOTER NAV
================================= */

.footer-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(22px, 3vw, 46px);
}

.footer-nav a {
    color: var(--color-text);

    font-family: var(--font-title);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-nav a:hover {
    color: var(--color-primary-dark);
    transform: translateY(-1px);
}

/* ==============================
   SOCIAL ICONS
================================= */

.footer-socials {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.footer-socials a {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 50%;

    box-shadow:
        0 10px 24px rgba(31, 31, 31, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(16px) saturate(1.16);
    -webkit-backdrop-filter: blur(16px) saturate(1.16);

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background-color 0.2s ease;
}

.footer-socials a:hover {
    color: var(--color-white);
    background: var(--color-primary);
    transform: translateY(-2px);
}

.footer-socials svg {
    width: 18px;
    height: 18px;

    display: block;
    fill: currentColor;
}

/* ==============================
   BOTTOM INSIDE FOOTER
================================= */

.footer-bottom {
    width: 100%;
    padding-top: 14px;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;

    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.58);
}

.footer-copyright {
    margin: 0;

    color: var(--color-text-soft);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.4;
}

.footer-legal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.footer-legal a {
    color: var(--color-text-soft);

    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 400;
    text-decoration: none;

    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--color-primary-dark);
}

/* ==============================
   TABLETTE
================================= */

@media screen and (max-width: 1024px) {
    .site-footer {
        margin-top: 80px;
    }

    .site-footer .footer-container {
        padding: 32px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-brand p {
        max-width: 420px;
        text-align: left;
    }

    .footer-nav {
        flex-wrap: wrap;
    }

    .footer-socials {
        justify-content: center;
    }
}

/* ==============================
   MOBILE
================================= */

@media screen and (max-width: 768px) {
    .site-footer {
        margin-top: 72px;
        padding-bottom: 20px;
    }

    .site-footer .footer-container {
        width: calc(100% - 24px);
        padding: 28px 22px;

        border-radius: 20px;

        background: rgba(255, 255, 255, 0.44);
        border: 1px solid rgba(255, 255, 255, 0.58);

        box-shadow:
            0 14px 34px rgba(31, 31, 31, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.72);

        backdrop-filter: blur(22px) saturate(1.18);
        -webkit-backdrop-filter: blur(22px) saturate(1.18);
    }

    .site-footer .footer-container::after {
        left: 18px;
        right: 18px;
    }

    .footer-brand {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .footer-logo {
        width: 130px;
    }

    .footer-brand p {
        max-width: 300px;
        text-align: center;
    }

    .footer-nav {
        gap: 14px 22px;
    }

    .footer-nav a {
        font-size: 0.8rem;
    }

    .footer-socials a {
        width: 40px;
        height: 40px;
    }

    .footer-legal {
        flex-wrap: wrap;
    }
}