/* projet5/style/essaims.css — Mes essaims */

.mes-essaims-page .essaim-bees-row,
.essaim-bees-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 4px;
    width: 100%;
}

/* Tuiles bee_card — actions Voir / Déplacer en bas de la carte */
.essaim-bee-tile {
    position: relative;
    display: block;
    width: 220px;
    height: 220px;
    flex: 0 0 220px;
}
.essaim-bee-tile__visual {
    display: block;
    width: 220px;
    height: 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(53, 77, 59, 0.12);
    /* pas de transform au survol : carte fixe */
}
.essaim-bee-tile__img {
    display: block;
    width: 220px;
    height: 220px;
    border: 0;
    background: transparent;
    pointer-events: none;
}
.essaim-bee-tile__actions {
    position: absolute;
    left: 50%;
    bottom: 6px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    pointer-events: none; /* seuls les enfants cliquables */
}
/* Même taille pour Voir et Déplacer */
.essaim-bee-tile .essaim-bee-action,
.essaim-bee-tile .essaim-bee-action--view,
.essaim-bee-tile .essaim-bee-action--move,
.essaim-bee-tile .essaim-bee-transfer {
    pointer-events: auto;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
    height: 22px;
    min-height: 22px;
    padding: 0 8px;
    margin: 0;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    white-space: nowrap;
    position: static;
    left: auto;
    bottom: auto;
    transform: none;
}
.essaim-bee-tile .essaim-bee-action__icon {
    font-size: 0.72rem;
    line-height: 1;
    flex: 0 0 auto;
}
.essaim-bee-tile .essaim-bee-action__label {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}
/* Voir → simulateur */
.essaim-bee-tile .essaim-bee-action--view {
    background: linear-gradient(180deg, #42a5f5 0%, #1565c0 100%);
    border-color: #0d47a1;
    color: #fff;
}
.essaim-bee-tile .essaim-bee-action--view:hover {
    background: linear-gradient(180deg, #64b5f6 0%, #1976d2 100%);
    color: #fff;
}
/* Voir grisé si essaim non actif */
.essaim-bee-tile .essaim-bee-action--view.is-disabled,
.essaim-bee-tile .essaim-bee-action--view.is-disabled:hover {
    background: #cfd8dc;
    border-color: #b0bec5;
    color: #78909c;
    cursor: not-allowed;
    box-shadow: none;
    pointer-events: auto; /* on bloque via JS / aria-disabled */
    opacity: 0.75;
}
/* Déplacer → popup transfert */
.essaim-bee-tile .essaim-bee-action--move,
.essaim-bee-tile .essaim-bee-transfer {
    background: linear-gradient(180deg, #66bb6a 0%, #2e7d32 100%);
    border-color: #1b5e20;
    color: #fff;
}
.essaim-bee-tile .essaim-bee-action--move:hover,
.essaim-bee-tile .essaim-bee-transfer:hover {
    background: linear-gradient(180deg, #81c784 0%, #388e3c 100%);
    border-color: #1b5e20;
    transform: none;
}
.essaim-bee-tile .essaim-bee-transfer span,
.essaim-bee-tile .essaim-bee-action--move .essaim-bee-action__icon {
    color: #fff;
    font-size: 0.72rem;
}

/* Smartphone : icônes seules, même diamètre */
@media (max-width: 640px) {
    .essaim-bee-tile .essaim-bee-action,
    .essaim-bee-tile .essaim-bee-action--view,
    .essaim-bee-tile .essaim-bee-action--move,
    .essaim-bee-tile .essaim-bee-transfer {
        width: 28px;
        min-width: 28px;
        max-width: 28px;
        height: 28px;
        min-height: 28px;
        padding: 0;
        border-radius: 50%;
        gap: 0;
    }
    .essaim-bee-tile .essaim-bee-action__label {
        display: none;
    }
    .essaim-bee-tile__actions {
        bottom: 4px;
        gap: 6px;
    }
}

.mes-essaims-page .essaim-bees-empty,
.essaim-bees-empty {
    margin: 0;
    color: #8a968c;
    font-size: 0.88rem;
    font-style: italic;
}

/* =========================================================
   Bandeau abeille (équivalent local de gerer_ruche, styles propres)
   Layout : [visuel hex+abeille] [nom + pills + poches] [actions]
   ========================================================= */
.essaim-bee-bandeau {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(53, 77, 59, 0.12);
    border-left: 5px solid #90a4ae;
    background: linear-gradient(180deg, #ffffff 0%, #f4f7f4 100%);
    box-shadow: 0 3px 10px rgba(53, 77, 59, 0.08);
    position: relative;
}

.essaim-bee-bandeau.hive-bee-card--basic,
.essaim-bee-bandeau.hive-bee-card--Basic {
    border-left-color: #78909c;
}
.essaim-bee-bandeau.hive-bee-card--advanced,
.essaim-bee-bandeau.hive-bee-card--Advanced {
    border-left-color: #43a047;
}
.essaim-bee-bandeau.hive-bee-card--rare,
.essaim-bee-bandeau.hive-bee-card--Rare {
    border-left-color: #1e88e5;
}

/* Visuel gauche : hex + image */
.essaim-bee-bandeau__visual {
    position: relative;
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    display: block;
    text-decoration: none;
    border-radius: 12px;
    overflow: visible;
}

.essaim-bee-bandeau__hex {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    pointer-events: none;
    z-index: 0;
}

.essaim-bee-bandeau__img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* Zone centrale */
.essaim-bee-bandeau__main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.essaim-bee-bandeau__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 15px;
}

.essaim-bee-bandeau__name {
    font-size: 1.08rem;
    font-weight: 800;
    color: #1b5e20;
    text-decoration: none;
    line-height: 1.2;
    word-break: break-word;
}
.essaim-bee-bandeau__name:hover {
    color: #2e7d32;
    text-decoration: underline;
}

.essaim-bee-bandeau__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.essaim-bee-bandeau__meta .type-pill,
.essaim-bee-bandeau__meta .excellence-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.essaim-bee-bandeau__meta .excellence-pill {
    background: rgba(46, 125, 50, 0.12);
    color: #2e7d32;
}

.essaim-bee-bandeau__meta .type-pill {
    background: rgba(55, 71, 79, 0.1);
    color: #37474f;
    text-transform: capitalize;
}
.essaim-bee-bandeau__meta .type-pill.forager { background: #fff3e0; color: #ef6c00; }
.essaim-bee-bandeau__meta .type-pill.guardian { background: #e3f2fd; color: #1565c0; }
.essaim-bee-bandeau__meta .type-pill.nurse { background: #f3e5f5; color: #7b1fa2; }
.essaim-bee-bandeau__meta .type-pill.builder { background: #e8f5e9; color: #2e7d32; }

/* Poches en ligne (style ruche) */
.poches-mini.essaim-inline-poches,
.essaim-inline-poches,
.essaim-bee-bandeau .poches-mini {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 2px;
}

.essaim-bee-bandeau .poche-mini-slot {
    position: relative;
    width: 30px;
    height: 24px;
    flex: 0 0 30px;
}

.essaim-bee-bandeau .poche-mini-half {
    width: 100%;
    height: 100%;
    border-radius: 0 0 15px 15px;
    background: #b0b8b2;
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.25), 0 1px 3px rgba(0,0,0,.18);
}

.essaim-bee-bandeau .poche-mini-half.yellow { background: linear-gradient(135deg, #ffd54f, #ffb300); }
.essaim-bee-bandeau .poche-mini-half.blue { background: linear-gradient(135deg, #42a5f5, #1976d2); }
.essaim-bee-bandeau .poche-mini-half.red { background: linear-gradient(135deg, #ef5350, #c62828); }
.essaim-bee-bandeau .poche-mini-half.emerald { background: linear-gradient(135deg, #26a69a, #00796b); }
.essaim-bee-bandeau .poche-mini-half.gray,
.essaim-bee-bandeau .poche-mini-half.grey { background: linear-gradient(135deg, #9e9e9e, #757575); }

.essaim-bee-bandeau .poche-mini-pdm-img {
    position: absolute;
    left: 50%;
    top: calc(38% - 5px); /* remontés de 5px */
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    object-fit: contain;
    z-index: 2;
}

.essaim-bee-bandeau .taille-mini {
    position: absolute;
    left: 50%;
    bottom: 9px; /* +10px vers le haut (était -1px) */
    transform: translateX(-50%);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.35);
    z-index: 3;
}

/* Actions droite */
.essaim-bee-bandeau__actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-left: auto;
}

/* Ancien style transfert (bandeau) — ne s'applique pas aux tuiles */
.essaim-bee-bandeau .essaim-bee-transfer {
    min-width: 44px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(46, 125, 50, 0.35);
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #eef7ef 100%);
    color: #2e7d32;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.essaim-bee-bandeau .essaim-bee-transfer span {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1;
}
.essaim-bee-bandeau .essaim-bee-transfer:hover {
    background: linear-gradient(180deg, #e8f5e9 0%, #c8e6c9 100%);
    border-color: #2e7d32;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

@media (max-width: 640px) {
    .essaim-bee-bandeau {
        flex-wrap: wrap;
        gap: 12px;
    }
    .essaim-bee-bandeau__actions {
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        margin-left: 0;
    }
}

/* Sélecteur d'essaims (un seul affiché) */
.mes-essaims-page .essaims-switcher-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.mes-essaims-page .essaims-switcher-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}
.mes-essaims-page .essaim-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    box-sizing: border-box;
    min-width: 150px;
    width: 150px;
    max-width: 150px;
    height: 46px;
    padding: 8px 12px;
    border: 1px solid rgba(53, 77, 59, 0.18);
    border-radius: 12px;
    background: #fff;
    color: #1b5e20;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(53, 77, 59, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    overflow: hidden;
}
.mes-essaims-page .essaim-switch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(53, 77, 59, 0.12);
}
.mes-essaims-page .essaim-switch-btn.is-active {
    border-color: #2e7d32;
    background: #e8f5e9;
    box-shadow: 0 8px 18px rgba(46, 125, 50, 0.18);
}
.mes-essaims-page .essaim-switch-letter {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    border: 1px solid rgba(0,0,0,.12);
    box-sizing: border-box;
    transition: box-shadow 0.15s ease, outline 0.15s ease;
}
/* Cercle vert = essaim globalement actif (filtre contexte) */
.mes-essaims-page .essaim-switch-letter.is-global-active,
.mes-essaims-page .essaim-switch-btn.is-global-active .essaim-switch-letter {
    box-shadow: 0 0 0 3px #22c55e, 0 0 0 5px rgba(34, 197, 94, 0.35);
    outline: none;
}
.mes-essaims-page .essaim-switch-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
.mes-essaims-page .essaims-grid--single {
    display: block;
}
.mes-essaims-page .essaims-grid--single .essaim-card[hidden],
.mes-essaims-page .essaims-grid--single .essaim-card:not(.is-active) {
    display: none !important;
}
.mes-essaims-page .essaims-grid--single .essaim-card.is-active {
    display: block !important;
}
.mes-essaims-page .essaims-primary-btn {
    flex: 0 0 auto;
    height: 46px;
    min-width: 150px;
    width: 150px;
    box-sizing: border-box;
}


/* En-tête simplifié carte essaim */
.mes-essaims-page .essaim-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.mes-essaims-page .essaim-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}
.mes-essaims-page .essaim-card-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1b5e20;
    line-height: 1.2;
    word-break: break-word;
}
.mes-essaims-page .essaim-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
}
.mes-essaims-page .essaim-card-delete,
.essaim-card-delete {
    position: static;
    top: auto;
    right: auto;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: #e53935;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.35);
    transition: transform 0.15s ease, background 0.15s ease;
}
.mes-essaims-page .essaim-card-delete:hover,
.essaim-card-delete:hover {
    background: #c62828;
    transform: scale(1.08);
}
.mes-essaims-page .essaim-card-actions .essaim-card-delete {
    position: static;
    top: auto;
    right: auto;
}
.mes-essaims-page .essaim-card-badge {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--essaim-color, #F5A623);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    border: 1px solid rgba(0,0,0,.1);
}




/* Modal transfert abeille */
.essaim-transfer-intro {
    margin: 0 0 12px;
    color: #2f3a33;
    line-height: 1.45;
}
.essaim-transfer-choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
    max-height: 280px;
    overflow-y: auto;
}
.essaim-transfer-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid rgba(53, 77, 59, 0.18);
    border-radius: 12px;
    background: #fff;
    color: #1b5e20;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.essaim-transfer-choice:hover {
    border-color: rgba(46, 125, 50, 0.45);
    background: #f7fbf7;
}
.essaim-transfer-choice.is-selected {
    border-color: #2e7d32;
    background: #e8f5e9;
    box-shadow: 0 0 0 2px rgba(46, 125, 50, 0.15);
}
.essaim-transfer-choice.is-current {
    opacity: 0.55;
}
.essaim-transfer-choice__letter {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    border: 1px solid rgba(0,0,0,.12);
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.essaim-transfer-choice__label {
    flex: 1 1 auto;
    min-width: 0;
}
.essaim-transfer-choice--none .essaim-transfer-choice__letter {
    background: #90a4ae;
}

/* Actions modales (suppression / transfert) */
.essaim-delete-actions,
.essaim-transfer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 14px;
}
.essaim-btn-cancel,
.essaim-btn-confirm-delete,
.essaim-btn-confirm-transfer {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.essaim-btn-cancel {
    background: #f5f7f5;
    border-color: rgba(53, 77, 59, 0.25);
    color: #2f3a33;
}
.essaim-btn-cancel:hover {
    background: #e8ece9;
    border-color: rgba(53, 77, 59, 0.4);
}
.essaim-btn-confirm-delete {
    background: #e53935;
    border-color: #c62828;
    color: #fff;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.25);
}
.essaim-btn-confirm-delete:hover {
    background: #c62828;
}
.essaim-btn-confirm-transfer {
    background: #2e7d32;
    border-color: #1b5e20;
    color: #fff;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.25);
}
.essaim-btn-confirm-transfer:hover:not(:disabled) {
    background: #1b5e20;
}
.essaim-btn-confirm-transfer:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.essaim-delete-text {
    margin: 0 0 8px;
    color: #2f3a33;
    line-height: 1.45;
}

.essaim-transfer-choice__badge {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #546e7a;
    background: rgba(84, 110, 122, 0.12);
    padding: 2px 8px;
    border-radius: 999px;
}


/* Onglet / badge "Aucun" — même logo que le header : gris + barre oblique */
.essaim-switch-btn--unassigned .essaim-switch-letter--hollow,
.essaim-switch-letter--hollow {
    position: relative;
    overflow: hidden;
    background: #90A4AE !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    text-shadow: none !important;
}
.essaim-switch-btn--unassigned .essaim-switch-letter--hollow::after,
.essaim-switch-letter--hollow::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120%;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 1px;
    pointer-events: none;
}
.essaim-card-badge--hollow {
    position: relative;
    overflow: hidden;
    background: #90A4AE !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    box-shadow: none !important;
    color: transparent !important;
    font-size: 0 !important;
    text-shadow: none !important;
}
.essaim-card-badge--hollow::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 120%;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    transform: translate(-50%, -50%) rotate(-45deg);
    border-radius: 1px;
    pointer-events: none;
}
.essaim-switch-btn--unassigned.is-active {
    border-color: #607d8b;
    background: #eceff1;
}
.essaim-card--unassigned {
    border-style: dashed;
}


/* Pastilles police : blanc / noir bien visibles */
.essaim-color-group--police .essaim-color-ball[data-hex="#FFFFFF"],
.essaim-color-group--police .essaim-color-ball[data-hex="#ffffff"] {
    border: 2px solid #90a4ae;
    box-shadow: inset 0 0 0 1px #fff;
}
.essaim-color-group--police .essaim-color-ball[data-hex="#000000"],
.essaim-color-group--police .essaim-color-ball[data-hex="#000"] {
    border: 2px solid #455a64;
}
.essaim-color-group--police .essaim-color-ball.is-selected {
    outline: 2px solid #2e7d32;
    outline-offset: 2px;
}

/* ── Toggle ON/OFF essaim actif (filtre contexte) ── */
.mes-essaims-page .essaim-active-toggle {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    flex: 0 0 auto;
}
.mes-essaims-page .essaim-active-toggle__track {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 56px;
    height: 28px;
    border-radius: 999px;
    background: #cfd8dc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
    transition: background 0.18s ease;
    overflow: hidden;
}
.mes-essaims-page .essaim-active-toggle.is-on .essaim-active-toggle__track {
    background: #22c55e;
}
.mes-essaims-page .essaim-active-toggle.is-off .essaim-active-toggle__track {
    background: #cfd8dc;
}
.mes-essaims-page .essaim-active-toggle__knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.25);
    transition: transform 0.18s ease;
    z-index: 2;
}
.mes-essaims-page .essaim-active-toggle.is-on .essaim-active-toggle__knob {
    transform: translateX(28px);
}
.mes-essaims-page .essaim-active-toggle.is-off .essaim-active-toggle__knob {
    transform: translateX(0);
}
.mes-essaims-page .essaim-active-toggle__label {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}
.mes-essaims-page .essaim-active-toggle__label--on {
    left: 8px;
    color: #fff;
    opacity: 0;
}
.mes-essaims-page .essaim-active-toggle__label--off {
    right: 7px;
    color: #607d8b;
    opacity: 1;
}
.mes-essaims-page .essaim-active-toggle.is-on .essaim-active-toggle__label--on {
    opacity: 1;
}
.mes-essaims-page .essaim-active-toggle.is-on .essaim-active-toggle__label--off {
    opacity: 0;
}
.mes-essaims-page .essaim-active-toggle.is-off .essaim-active-toggle__label--on {
    opacity: 0;
}
.mes-essaims-page .essaim-active-toggle.is-off .essaim-active-toggle__label--off {
    opacity: 1;
}
