/* ==========================================================================
   Footer du site
   ========================================================================== */

.site-footer{
    background-color: var(--color-surface-strong);
    color: var(--color-text-inverse);
}

.footer-top{
    display: flex;
    flex-direction: row;
    gap: var(--space-2xl);

    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.footer-brand{
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1 1 34%;
}

/* Carte blanche derrière le logo : le texte noir du logo serait invisible sur le fond sombre du footer */
.footer-logo{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;

    width: 180px;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-medium);

    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
    transition: background-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.footer-logo img{
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.35s ease;
}

.footer-logo:hover{
    background-color: var(--color-accent);
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.footer-logo:hover img{
    transform: scale(1.06);
}

.footer-tagline{
    font-family: var(--font-family-base);
    font-size: 0.92rem;
    line-height: 1.5;
    color: color-mix(in srgb, var(--color-text-inverse) 75%, transparent);
}

.footer-contact-list{
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);

    font-family: var(--font-family-base);
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--color-text-inverse) 85%, transparent);
}

.footer-contact-list a{
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-list a:hover{
    color: var(--color-accent);
}

.footer-column{
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1 1 16%;
}

.footer-heading{
    font-family: var(--font-family-heading);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--color-text-inverse);
}

.footer-link-list{
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-link-list a{
    position: relative;

    font-family: var(--font-family-base);
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--color-text-inverse) 80%, transparent);
    text-decoration: none;

    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-link-list a:hover{
    padding-left: var(--space-xs);
    color: var(--color-accent);
}

.footer-social-icons{
    display: flex;
    flex-direction: row;
    gap: var(--space-sm);
}

.footer-social-icon{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;
    border-radius: 50%;

    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-inverse);

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

.footer-social-icon svg{
    width: 18px;
    height: 18px;
}

.footer-social-icon--text{
    font-family: var(--font-family-heading);
    font-size: 0.8rem;
    font-weight: 800;
}

.footer-social-icon:hover{
    transform: translateY(-3px) scale(1.08);
    background-color: var(--color-accent);
    color: var(--color-logo-black);
}

.footer-bottom{
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p{
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);

    font-family: var(--font-family-base);
    font-size: 0.8rem;
    text-align: center;
    color: color-mix(in srgb, var(--color-text-inverse) 60%, transparent);
}


/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px){
    .footer-top{
        flex-wrap: wrap;
        gap: var(--space-xl) var(--space-lg);
        padding: var(--space-xl) var(--space-md);
    }

    .footer-brand{
        flex-basis: 100%;
        max-width: 560px;
    }

    .footer-column{
        flex-basis: calc(33.33% - var(--space-lg));
    }
}

@media (max-width: 640px){
    .footer-top{
        flex-direction: column;
        gap: var(--space-lg);
        padding: var(--space-xl) var(--space-sm);
    }

    .footer-brand,
    .footer-column{
        flex-basis: auto;
        max-width: none;
    }

    .footer-logo{
        width: 150px;
    }

    .footer-social-icons{
        flex-wrap: wrap;
    }

    .footer-bottom p{
        padding: var(--space-md) var(--space-sm);
    }
}

/* "Gérer mes cookies" : <button> qui reprend l'apparence des liens de la colonne Légal */
.footer-cookie-settings{
    padding: 0;
    font-family: var(--font-family-base);
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--color-text-inverse) 80%, transparent);
    text-align: left;
    background: none;
    border: 0;
    cursor: pointer;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-cookie-settings:hover{
    padding-left: var(--space-xs);
    color: var(--color-accent);
}
