/**
 * FOOTER - VERSION ADMIN MODERNE
 * Utilise les variables de theme.css
 * Mode clair par défaut avec design épuré
 */

/* ========================================
   FOOTER PRINCIPAL
   ======================================== */

.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 50px 0 0 0;
    color: var(--text-secondary);
    transition: var(--transition);
}

/* ========================================
   CONTENU PRINCIPAL DU FOOTER
   ======================================== */

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

/* ========================================
   COLONNES DU FOOTER
   ======================================== */

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Logo dans le footer */
.footer-title {
    margin: 0 0 8px 0;
}

.footer-logo {
    font-family: 'Arial Black', sans-serif;
    font-size: 24px;
    color: var(--primary);
    letter-spacing: 2px;
}

/* Description */
.footer-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   RÉSEAUX SOCIAUX
   ======================================== */

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ========================================
   TITRES DES COLONNES
   ======================================== */

.footer-column-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    position: relative;
    padding-bottom: 8px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

/* ========================================
   LIENS DU FOOTER
   ======================================== */

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-links a:hover {
    color: var(--success);
    padding-left: 8px;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--success);
    transition: width 0.2s;
}

.footer-links a:hover::before {
    width: 4px;
}

/* ========================================
   BARRE DE COPYRIGHT
   ======================================== */

.footer-bottom {
    background: var(--gray-50);
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
}

[data-theme="dark"] .footer-bottom {
    background: rgba(255, 255, 255, 0.02);
}

.footer-bottom-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.copyright strong {
    color: var(--primary);
    font-weight: 700;
}

.footer-version {
    margin: 0;
    color: var(--text-placeholder);
    font-size: 12px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 30px 20px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-column {
        align-items: center;
        text-align: center;
    }

    .footer-column-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 30px 0 0 0;
    }

    .footer-content {
        padding: 0 15px 20px 15px;
    }

    .footer-logo {
        font-size: 20px;
    }

    .footer-description {
        font-size: 13px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .copyright,
    .footer-version {
        font-size: 12px;
    }
}

/* ========================================
   ANIMATIONS AU CHARGEMENT
   ======================================== */

.footer-column {
    animation: fadeInUp 0.6s ease-out backwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }


/* ========================================
   STICKY FOOTER
   ======================================== */

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Lien « Désactiver / Réactiver le thème saisonnier » (affiché seulement quand un thème est actif) */
.seasonal-toggle {
    margin: 10px 0 0;
    padding: 0 20px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.seasonal-toggle a {
    color: var(--primary);
    text-decoration: underline;
}
