/*
    ==========================================================
    PROJECT : SITE-GENERIQUE
    FILE    : css/footer-social.css
    AUTH    : Renaud
    CREATED : 09 décembre 2025
    UPDATED : 07 mars 2026
    ==========================================================
*/

/**
*   @project        SITE-GENERIQUE
*   @description    Style des liens réseaux sociaux du footer.
*                   Affiche les noms des réseaux en ligne avec hover.
*   
*   @file           css/footer-social.css
*
*   @see            includes/footer-social.php
*   @see            css/color-semantic.css
*   @see            css/fonts-semantic.css
*/


/* --- BLOCK --- */
.footer-social {
    /* PLACEMENT */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}


/* --- ELEMENT : Label --- */
.footer-social__label {
    /* PLACEMENT */
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    /* TEXTE */
    font-family: var(--font-family-sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-footer-title);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Trait accent sous le titre */
.footer-social__label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--color-footer-accent);
    border-radius: 2px;
}


/* --- ELEMENT : Links (conteneur) --- */
.footer-social__links {
    /* PLACEMENT */
    display: flex;
    flex-direction: row;
    gap: 1rem;
}


/* --- ELEMENT : Link --- */
.footer-social__link {
    /* PLACEMENT */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    /* VISUEL */
    background-color: var(--color-grey-060);
    border-radius: 50%;
    /* TEXTE */
    font-size: 1.2rem;
    color: var(--color-footer-title);
    text-decoration: none;
    /* EFFET */
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.footer-social__link:hover,
.footer-social__link:focus {
    /* VISUEL */
    background-color: var(--color-orange-120);
    /* EFFET */
    transform: translateY(-3px);
}

.footer-social__link:active {
    /* VISUEL */
    background-color: var(--color-orange-090);
}


/* --- Couleurs officielles des réseaux sociaux --- */
.footer-social__link[title="Facebook"] {
    /* VISUEL */
    background-color: #1877F2;
}

.footer-social__link[title="Pinterest"] {
    /* VISUEL */
    background-color: #E60023;
}

.footer-social__link[title="YouTube"] {
    /* VISUEL */
    background-color: #FF0000;
}

.footer-social__link[title="Instagram"] {
    /* VISUEL */
    background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF, #515BD4);
}

.footer-social__link[title="Twitter"] {
    /* VISUEL */
    background-color: #000000;
}

.footer-social__link[title="LinkedIn"] {
    /* VISUEL */
    background-color: #0A66C2;
}

.footer-social__link[title="TikTok"] {
    /* VISUEL */
    background-color: #000000;
}


/* --- ELEMENT : Icon (SVG ou Font-Awesome) --- */
.footer-social__icon {
    /* PLACEMENT */
    width: 20px;
    height: 20px;
    /* VISUEL */
    fill: currentColor;
}


/* --- RESPONSIVE (Tablette < 1150px) --- */
@media (max-width: 1150px) {
    .footer-social__links {
        /* PLACEMENT */
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
    }
}


/* --- RESPONSIVE (Mobile < 768px) --- */
@media (max-width: 768px) {
    .footer-social {
        /* PLACEMENT */
        align-items: center;
    }

    .footer-social__label::after {
        /* PLACEMENT */
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social__links {
        /* PLACEMENT */
        justify-content: center;
    }
}