/***** Footer *****/

.footer {
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(
        180deg,
        rgba(30, 31, 34, 0.96),
        rgba(43, 45, 49, 0.98)
    );
    color: var(--text);

    a {
        color: inherit;
        text-decoration: none;
    }

    .footer-social {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        padding: 1rem 1.4rem;
        border-bottom: 1px solid var(--border);
        background: rgba(30, 31, 34, 0.9);
    }

    .footer-brand {
        display: inline-flex;
        align-items: center;
    }

    .footer-brand-logo {
        width: 2.8rem;
        height: auto;
        object-fit: contain;
    }

    .footer-social-nav {
        display: flex;
        align-items: center;
    }

    .footer-social-list {
        display: flex;
        align-items: center;
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-social-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.4rem;
        height: 2.4rem;
        border-radius: 999px;
        color: var(--text);
        background: rgba(255, 255, 255, 0.06);
        transition:
            transform 0.2s ease,
            background 0.2s ease;

        &:hover,
        &:focus-visible {
            background: var(--accent-soft);
            transform: translateY(-1px);
        }
    }

    .footer-content {
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
    }

    .footer-grid {
        width: min(1100px, 92%);
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1.3fr 1fr;
        gap: 2rem;
    }

    .footer-panel {
        padding: 1.25rem 1.35rem;
        border-radius: 20px;
        background: rgba(49, 51, 56, 0.72);
        border: 1px solid var(--border);
        box-shadow: var(--shadow);
    }

    .footer-title {
        margin: 0 0 0.8rem;
        text-transform: uppercase;
        font-size: 0.9rem;
        font-family:
            "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
        letter-spacing: 0.18em;
        color: var(--text);
    }

    .footer-separator {
        width: 100%;
        height: 1px;
        margin: 0 0 1rem;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(88, 101, 242, 0.5),
            transparent
        );
    }

    .footer-text {
        margin: 0;
        color: var(--muted);
        line-height: 1.7;
        text-align: justify;
    }

    .footer-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .footer-list-item {
        display: flex;
        align-items: center;
    }

    .footer-contact-link {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
        color: var(--muted);
        font-size: 0.95rem;
        line-height: 1.5;

        i {
            color: #fff;
            flex-shrink: 0;
        }

        &:hover,
        &:focus-visible {
            color: var(--text);
        }
    }

    .footer-bottom {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.7rem;
        padding: 1rem 1.3rem 1.4rem;
        font-size: small;
        color: var(--muted);

        .footer-bottom-link {
            color: var(--muted);

            &:hover,
            &:focus-visible {
                color: var(--text);
            }
        }
    }
}

/***** Responsive Mobile *****/

@media screen and (max-width: 768px) {
    .footer .footer-social {
        /* flex-wrap: nowrap; */
        gap: 0.75rem;
    }

    .footer .footer-social-nav {
        width: 100%;
        justify-content: center;
    }

    .footer .footer-grid {
        grid-template-columns: 1fr;
        width: 90%;
        gap: 1.25rem;
    }

    .footer .footer-panel {
        width: 100%;
    }

    .footer .footer-title {
        text-align: center;
    }

    .footer .footer-bottom {
        gap: 0.35rem;
    }
}

/***** Responsive Tablette *****/

@media screen and (max-width: 1115px) and (min-width: 769px) {
    .footer .footer-grid {
        grid-template-columns: 1fr;
    }
}
