/* ========================================
   THEME SWITCHER
   ======================================== */
.theme-switcher {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9998;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.theme-toggle-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.theme-toggle-btn:active {
    transform: translateY(0) scale(0.98);
}

.theme-icon {
    font-size: 20px;
    line-height: 1;
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover .theme-icon {
    transform: rotate(20deg);
}

.theme-text {
    font-size: 15px;
    font-weight: 600;
}

/* Animation de rotation lors du changement */
@keyframes rotate-theme {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.theme-toggle-btn.switching .theme-icon {
    animation: rotate-theme 0.5s ease;
}

/* Version mobile */
@media (max-width: 768px) {
    .theme-switcher {
        bottom: 20px;
        right: 20px;
    }

    .theme-toggle-btn {
        padding: 12px 16px;
    }

    .theme-text {
        display: none; /* Cacher le texte sur mobile, garder juste l'icône */
    }

    .theme-toggle-btn {
        width: 56px;
        height: 56px;
        justify-content: center;
        border-radius: 50%;
    }
}

/* Transition fluide pour le changement de thème */
[data-theme="light"] {
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] {
    transition: background-color 0.3s ease, color 0.3s ease;
}
