/**
 * myip.casa — Dark mode toggle switch (générique, site-wide)
 * ------------------------------------------------------------
 * Style du bouton uniquement. Les couleurs de PAGE en mode sombre
 * (body.dark-mode .xxx) restent dans le CSS propre à chaque template.
 */

.theme-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 500;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.toggle-track {
    width: 56px;
    height: 28px;
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
    position: relative;
    backdrop-filter: blur(6px);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.toggle-icon {
    font-size: 13px;
    line-height: 1;
    z-index: 1;
    opacity: 0.9;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.theme-toggle-btn.active .toggle-thumb {
    transform: translateX(28px);
}

.theme-toggle-btn.active .toggle-track {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(255, 255, 255, 0.2);
}
