/* ========================================= */
/* ================ Footer ================= */
/* ========================================= */
.site-footer {
    position: relative;
    margin-top: 60px;
    background: var(--oc-color-background);
    border-top: 1px solid var(--oc-color-border);
    color: var(--oc-color-text);
}

    /* ========================================= */
    /* ============== Ligne haut =============== */
    /* ========================================= */
    .site-footer::before {
        content: "";
        position: absolute;
        top: -1px;
        left: 50%;
        width: min(500px, 60%);
        height: 2px;
        transform: translateX(-50%);
        background: linear-gradient( 90deg, transparent, var(--oc-color-title), var(--oc-color-accent), transparent );
        box-shadow: 0 0 12px var(--oc-color-title);
    }
/* ========================================= */
/* =============== Container =============== */
/* ========================================= */
.site-footer__container {
    width: min(1350px, calc(100% - 50px));
    margin: 0 auto;
}

/* ========================================= */
/* ========== Contenue principal =========== */
/* ========================================= */
.site-footer__main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 50px;
    min-height: 100px;
}

/* ========================================= */
/* ================= Logo ================== */
/* ========================================= */
.site-footer__logo {
    display: block;
    width: 135px;
    height: auto;
}

/* ========================================= */
/* ============== Navigation =============== */
/* ========================================= */
.site-footer__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

    .site-footer__nav a {
        position: relative;
        color: var(--oc-color-text-muted);
        font-family: 'Roboto', sans-serif;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 1px;
        text-decoration: none;
        text-transform: uppercase;
        transition: color .2s ease, transform .2s ease;
    }

        .site-footer__nav a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 0;
            height: 1px;
            background: var(--oc-color-title);
            transition: width .2s ease;
        }

        .site-footer__nav a:hover {
            color: var(--oc-color-text);
            transform: translateY(-1px);
        }

            .site-footer__nav a:hover::after {
                width: 100%;
            }

/* ========================================= */
/* =============== Réseaux ================= */
/* ========================================= */
.site-footer__socials {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-footer__social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--oc-color-surface-soft);
    border: 1px solid var(--oc-color-border);
    transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

    .site-footer__social:hover {
        background: var(--oc-color-box-background);
        border-color: var(--oc-color-title);
        transform: translateY(-2px);
    }

.site-footer__icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: var(--oc-filter-icon);
}

/* ========================================= */
/* ============ Barre inférieur ============ */
/* ========================================= */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    border-top: 1px solid var(--oc-color-border);
    color: var(--oc-color-text-muted);
    font-family: 'Roboto', sans-serif;
    font-size: 9px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.site-footer__bottom-left,
.site-footer__bottom-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ========================================= */
/* ================== Led ================== */
/* ========================================= */
.site-footer__status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .site-footer__status::before {
        content: "";
        width: 5px;
        height: 5px;
        border-radius: 50%;
        background: var(--oc-color-title);
        box-shadow: 0 0 6px var(--oc-color-title);
    }

/* ========================================= */
/* =========== Liens bas de page =========== */
/* ========================================= */
.site-footer__bottom a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

    .site-footer__bottom a:hover {
        color: var(--oc-color-title);
    }

/* ========================================= */
/* ================ Mobile ================= */
/* ========================================= */
@media (max-width: 800px) {

    .site-footer__container {
        width: calc(100% - 30px);
        margin-top: 10px;
    }

    .site-footer__main {
        grid-template-columns: 1fr auto;
        gap: 20px;
        min-height: 90px;
    }

    .site-footer__nav {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: flex-start;
        gap: 20px;
        padding-bottom: 18px;
    }

    .site-footer__socials {
        justify-content: flex-end;
    }
}


@media (max-width: 550px) {

    .site-footer {
        margin-top: 45px;
    }

    .site-footer__main {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 28px 0 22px;
    }

    .site-footer__container {
        margin-top: 0px;
    }

    .site-footer__logo {
        width: 120px;
    }

    .site-footer__nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 18px;
        padding: 0;
    }

        .site-footer__nav a {
            font-size: 10px;
        }

    .site-footer__socials {
        justify-content: center;
    }

    .site-footer__bottom {
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 12px 0;
        text-align: center;
    }

    .site-footer__bottom-left,
    .site-footer__bottom-right {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px 15px;
    }
}
