/* =========================
   FIELD STRUCTURE
========================= */
.eg-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.eg-label {
    flex: 0 0 140px;
    font-size: 13px;
    color: #374151;
    text-align: left;
    font-weight: bold;
}

/* =========================
   RIGHT SIDE
========================= */
.eg-field > div:last-child,
.eg-field > label {
    margin-left: auto;
}

/* =========================
   BUTTON CONTAINER
========================= */
.eg-buttons {
    display: flex;
    flex-wrap: wrap; /* retour ligne si besoin */
    gap: 4px;
    justify-content: flex-end;
    max-width: 100%;
}

/* =========================
   BUTTON STYLE
========================= */
.eg-choice-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 0;
    border: 1px solid #d1d5db;
    background: #969799; /* 👉 gris par défaut */
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}

/* hover léger (optionnel mais propre) */
.eg-choice-btn:hover {
    background: #7c7d80;
}

/* =========================
   ACTIVE (BLEU)
========================= */
.eg-choice-btn.active {
    background: #00ad7f;
    border-color: #00ad7f;
    color: #fff;
}

/* =========================
   SWITCH
========================= */
/* =========================
   SWITCH FIX COMPLET
========================= */
.eg-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

/* 🔥 cache la vraie checkbox */
.eg-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* slider */
.eg-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #969799;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

/* bouton rond */
.eg-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

/* état ON */
.eg-switch input:checked + .eg-slider {
    background: #1e3a8a;
}

.eg-switch input:checked + .eg-slider:before {
    transform: translateX(24px);
}