/**
 * FOOTER MODERNE - Moustaqim.com
 * Design cohérent avec le header (thème Kaaba)
 * Classes uniques: site-footer, footer-*
 */

/* ========================================
   FOOTER PRINCIPAL
   ======================================== */

.site-footer {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black-light) 100%);
    color: var(--color-white);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ========================================
   FOOTER GRID
   ======================================== */

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

/* Section Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-gold);
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 4px;
}

.footer-logo-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold) 0%, transparent 100%);
}

.footer-description {
    color: rgba(255, 255, 255, 0.65);
    font-size: var(--text-sm);
    line-height: 1.6;
    max-width: 300px;
}

/* Sections de liens */
.footer-section h4 {
    color: var(--color-gold);
    font-size: var(--text-md);
    font-weight: 600;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    line-height: normal;
}

.footer-links li {
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: normal;
}

.footer-links li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.footer-links li a:hover {
    color: var(--color-gold);
    transform: translateX(4px);
}

/* ========================================
   FOOTER BOTTOM
   ======================================== */

.footer-bottom {
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

.footer-copyright a {
    color: var(--color-gold);
    text-decoration: none;
}

.footer-copyright a:hover {
    text-decoration: underline;
}

/* Scroll to Top */
.footer-scroll-top {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: var(--space-2) var(--space-4);
    border-radius: 0;
    font-size: var(--text-sm);
    font-family: var(--font-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.footer-scroll-top:hover {
    background: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-2px);
}

.footer-scroll-top svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ========================================
   RESPONSIVE FOOTER
   ======================================== */

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: var(--space-8) 0 var(--space-4);
    }

    .footer-container {
        padding: 0 var(--space-4);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h4 {
        text-align: center;
    }

    .footer-links {
        align-items: center;
    }

    .footer-links li a:hover {
        transform: none;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================
   DARK MODE ADJUSTMENTS
   ======================================== */

[data-theme="dark"] .site-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #151515 100%);
}

[data-theme="dark"] .footer-links li a {
    color: #b0b0b0;
}
