/*
 * Switch flottant de bascule de thème (classique <-> moderne) — DEV uniquement.
 * Markup : div.bascule-theme dans WEB-INF/jsp/layout/_switch-theme.jspf
 *          (inclus par deconnexionBandeau.jsp et les pages erreur/*).
 * Chargement : layout/_theme.jspf, dans le <head>, gardé par Proprietes.enDev().
 * Doit fonctionner dans les DEUX thèmes (classique comme moderne), d'où une feuille
 * autonome chargée indépendamment de theme-moderne.css.
 */
.bascule-theme {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 11px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #c4c4c4;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    font-family: sans-serif;
    font-size: 12px;
    color: #444444;
}

.bascule-theme .switch {
    position: relative;
    display: inline-block;
    flex: none;
    width: 38px;
    height: 20px;
}

.bascule-theme .switch input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
}

.bascule-theme .slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #bbbbbb;
    border-radius: 20px;
    transition: background 0.2s;
}

.bascule-theme .slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #ffffff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.bascule-theme .switch input:checked + .slider {
    background: #2271b1;
}

.bascule-theme .switch input:checked + .slider::before {
    transform: translateX(18px);
}
