/* Variables pour les couleurs et les transitions */
:root {
    --sun-color: #ffd700;
    --sun-gradient: linear-gradient(145deg, #ffd700, #ffa500);
    --moon-color: #4a6baf;
    --moon-gradient: linear-gradient(145deg, #ffffff, #e0e8ff);
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
    --aura-opacity: 0.6;
}

.site-footer {
    background: linear-gradient(to bottom, var(--color-dark), #000);
    color: var(--color-light);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Thème clair */
.site-footer.footer-light {
    background: linear-gradient(to bottom, #f5f5f5, #fff);
    color: var(--color-dark);
}

.footer-light .footer-widget-column h3 {
    color: var(--color-primary);
}

.footer-light .footer-widget-column p {
    color: rgba(0, 0, 0, 0.7);
}

.footer-light .footer-menu a,
.footer-light .contact-info li {
    color: rgba(0, 0, 0, 0.7);
}

.footer-light .footer-menu a:hover {
    color: var(--color-primary);
}

.footer-light .social-link {
    color: var(--color-dark);
    background: rgba(0, 0, 0, 0.1);
}

.footer-light .social-link:hover {
    background: var(--color-primary);
    color: var(--color-light);
}

.footer-light .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-light .copyright {
    color: rgba(0, 0, 0, 0.6);
}

.footer-light .payment-methods {
    color: rgba(0, 0, 0, 0.6);
}

/* Effet de particules dorées en arrière-plan */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Styles des colonnes */
.footer-widget-column {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.footer-widget-column:nth-child(1) { animation-delay: 0.1s; }
.footer-widget-column:nth-child(2) { animation-delay: 0.2s; }
.footer-widget-column:nth-child(3) { animation-delay: 0.3s; }
.footer-widget-column:nth-child(4) { animation-delay: 0.4s; }

.footer-widget-column h3 {
    color: var(--color-primary);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-widget-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.footer-widget-column:hover h3::after {
    width: 50px;
}

.footer-widget-column p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Menus et listes */
.footer-menu,
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.8rem;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 1.2rem;
}

.footer-menu a::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: var(--color-primary);
}

.footer-menu a:hover {
    color: var(--color-primary);
    padding-left: 1.5rem;
}

.footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Réseaux sociaux */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    color: var(--color-light);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--color-dark);
    background: var(--color-primary);
    transform: translateY(-3px);
}

/* Informations de contact */
.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.contact-info li i {
    width: 20px;
    font-size: 1.1rem;
    color: #FFD700;
    transition: all 0.3s ease;
}

.contact-info li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.contact-info li a:hover {
    color: #FFD700;
    transform: translateX(5px);
}

.contact-info li a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.contact-info li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.contact-info li:hover i {
    transform: scale(1.2);
}

/* Ajustement des couleurs pour le thème clair */
.footer-light .contact-info li,
.footer-light .contact-info li a {
    color: rgba(0, 0, 0, 0.7);
}

.footer-light .contact-info li a:hover {
    color: var(--color-primary);
}

/* Barre du bas */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Moyens de paiement */
.payment-methods {
    display: flex;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.payment-methods i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.payment-methods i:hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* Bouton de changement de thème */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-light .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-dark);
}

.theme-toggle-btn:hover {
    background: var(--color-primary);
    color: var(--color-light);
    transform: rotate(180deg);
}

/* Theme Switcher Mystique */
.mystic-switch {
    position: relative;
    width: 80px;
    height: 80px;
    animation: floatEffect 6s ease-in-out infinite;
}

.theme-toggle {
    opacity: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

.switch-label {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.celestial-body {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.8s var(--transition-timing);
}

.sun, .moon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    transition: all 0.8s var(--transition-timing);
}

.sun {
    transform: translate(-50%, -50%);
}

.moon {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
}

/* Noyaux des corps célestes */
.sun-core, .moon-core {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.sun-core {
    background: var(--sun-gradient);
    box-shadow: 0 0 20px var(--sun-color);
}

.moon-core {
    background: var(--moon-gradient);
    box-shadow: 0 0 25px rgba(74, 107, 175, 0.8);
}

/* Auras */
.sun-aura, .moon-aura {
    position: absolute;
    width: 150%;
    height: 150%;
    top: -25%;
    left: -25%;
    transition: opacity 0.8s ease;
}

.sun-aura {
    background: radial-gradient(circle, rgba(255, 215, 0, var(--aura-opacity)) 0%, transparent 70%);
}

.moon-aura {
    background: radial-gradient(circle, rgba(74, 107, 175, var(--aura-opacity)) 0%, transparent 70%);
}

/* Particules et étoiles */
.particles span, .stars span {
    position: absolute;
    transition: opacity 0.4s ease;
}

.particles span {
    width: 2px;
    height: 2px;
    background: var(--sun-color);
}

.stars span {
    width: 1px;
    height: 1px;
    background: #ffffff;
}

/* États du switch */
.theme-toggle:checked + .switch-label {
    background: transparent;
}

.theme-toggle:checked + .switch-label .celestial-body {
    transform: rotateZ(180deg);
}

.theme-toggle:checked + .switch-label .sun {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
}

.theme-toggle:checked + .switch-label .moon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Animations */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes particleFloat {
    0% { transform: translate(0, 0); opacity: 0; }
    20%, 80% { opacity: 1; }
    100% { transform: translate(20px, -20px); opacity: 0; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes floatEffect {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Positionnement des particules et étoiles */
.particles span:nth-child(1) { transform: rotate(0deg) translateX(25px); }
.particles span:nth-child(2) { transform: rotate(45deg) translateX(25px); }
.particles span:nth-child(3) { transform: rotate(90deg) translateX(25px); }
.particles span:nth-child(4) { transform: rotate(135deg) translateX(25px); }
.particles span:nth-child(5) { transform: rotate(180deg) translateX(25px); }
.particles span:nth-child(6) { transform: rotate(225deg) translateX(25px); }
.particles span:nth-child(7) { transform: rotate(270deg) translateX(25px); }
.particles span:nth-child(8) { transform: rotate(315deg) translateX(25px); }

.stars span:nth-child(1) { top: 10%; left: 10%; }
.stars span:nth-child(2) { top: 20%; right: 20%; }
.stars span:nth-child(3) { bottom: 30%; left: 30%; }
.stars span:nth-child(4) { bottom: 15%; right: 15%; }
.stars span:nth-child(5) { top: 40%; left: 40%; }
.stars span:nth-child(6) { top: 25%; right: 35%; }
.stars span:nth-child(7) { bottom: 40%; left: 20%; }
.stars span:nth-child(8) { bottom: 25%; right: 40%; }

/* Animation d'entrée */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-widgets {
        grid-template-columns: 1fr;
    }

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

    .footer-widget-column {
        text-align: center;
    }

    .footer-widget-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .social-links {
        justify-content: center;
    }

    .contact-info li {
        justify-content: center;
    }

    .footer-menu a {
        padding-left: 0;
    }

    .footer-menu a::before {
        display: none;
    }
}
