/* ======================================= */
/*               FOOTER STYLES             */
/*        Professional Footer Design      */
/* ======================================= */

.site-footer {
    background: linear-gradient(135deg, var(--color-primary) 0%, #001a33 100%);
    color: var(--color-text-inverse);
    position: relative;
    overflow: hidden;
}

/* Effet de texture subtile */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(255, 136, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 136, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* --- SECTION PRINCIPALE --- */
.footer-main {
    padding: var(--spacing-lg) 0 var(--spacing-md) 0;
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--spacing-lg);
    align-items: start;
}

/* --- COLONNE MARQUE --- */
.footer-brand {
    max-width: 400px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
}

.footer-logo-js {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: var(--font-primary);
    text-transform: uppercase;
}

.footer-logo-creations {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-inverse);
    letter-spacing: 0.5px;
}

.footer-logo-digitales {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

/* --- CERTIFICATIONS --- */
.footer-certifications {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 136, 0, 0.1);
    border: 1px solid rgba(255, 136, 0, 0.2);
    border-radius: 6px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.certification-badge:hover {
    background: rgba(255, 136, 0, 0.15);
    border-color: rgba(255, 136, 0, 0.3);
    transform: translateY(-1px);
}

.certification-badge i {
    color: var(--color-accent);
    font-size: 1rem;
}

/* --- COLONNES STANDARDS --- */
.footer-column-title {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-inverse);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* --- SECTION CONTACT --- */
.footer-contact {
    margin-bottom: var(--spacing-sm);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.contact-item i {
    color: var(--color-accent);
    font-size: 1rem;
    width: 16px;
    text-align: center;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-accent);
}

/* --- RÉSEAUX SOCIAUX --- */
.footer-social {
    margin-top: var(--spacing-xs);
}

.social-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-inverse);
    margin-bottom: 12px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 136, 0, 0.3);
}

/* --- SECTION LÉGALE --- */
.footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) 0;
    position: relative;
    z-index: 2;
}

.footer-legal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.legal-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.legal-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: var(--color-accent);
}

.footer-copyright {
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-copyright p {
    margin: 0;
    margin-bottom: 4px;
}

.footer-signature {
    font-style: italic;
}

.footer-signature i {
    color: var(--color-accent);
    margin: 0 4px;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* --- BOUTON RETOUR EN HAUT --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--color-accent);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(255, 136, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #e67700;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 136, 0, 0.4);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-md);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        margin-bottom: var(--spacing-sm);
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: var(--spacing-md) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .footer-legal-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    .footer-copyright {
        text-align: left;
    }

    .legal-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-certifications {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .footer-logo-js {
        font-size: 1.8rem;
    }

    .footer-logo-creations {
        font-size: 0.85rem;
    }

    .footer-logo-digitales {
        font-size: 0.75rem;
    }
}

/* Préférences d'accessibilité */
@media (prefers-reduced-motion: reduce) {
    .certification-badge,
    .footer-links a,
    .social-links a,
    .back-to-top {
        transition: none;
    }

    .back-to-top:hover {
        transform: none;
    }

    @keyframes heartbeat {
        0%, 100% { transform: none; }
    }
}
