/* FORMULAIRE ADMIN (login / changement de zone / logout)
   ============================================ */

.admin {
    display: inline-block;
    position: relative
}

.admin-form {
    position: absolute;
    top: 100%;
    z-index: 10;
    background: var(--blanc);
    padding: 0.75rem;
    min-width: 19rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem
}

.admin-toggle {
    cursor: pointer;
    font-size: 0.75rem;
    color: var(--noir-footer);
    list-style: none;
    display: inline-block;
    padding: 0 0.5rem
}

.admin-toggle::-webkit-details-marker {
    display: none
}

.admin-switch {
    display: flex;
    justify-content: center
}

.admin-switch input {
    position: absolute;
    opacity: 0
}

.switch-track {
    position: relative;
    display: flex;
    width: 8rem;
    height: 1.5rem;
    background: transparent;
    border-bottom: 1px solid var(--bordure)
}

.switch-option {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    line-height: 1.5rem;
    cursor: pointer;
    z-index: 2;
    color: var(--noir-footer);
    transition: color 0.15s ease
}

.switch-indicator {
    position: absolute;
    bottom: -1px;
    height: 2px;
    width: 50%;
    background: var(--noir-footer);
    left: 0;
    transition: transform 0.2s ease
}

#zone-news:checked ~ .switch-track .switch-option[for="zone-news"],
#zone-site:checked ~ .switch-track .switch-option[for="zone-site"] {
    font-weight: 600
}

#zone-news:checked ~ .switch-track .switch-indicator {
    transform: translateX(100%)
}

.admin-champs input {
    width: 100%;
    padding: 0.3rem;
    font-size: 0.7rem;
    border: 1px solid var(--bordure)
}

.admin-form button {
    background: var(--bouton);
    color: var(--blanc);
    border: none;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-family: sans-serif;
    cursor: pointer
}

.logout-btn {
    background-color: #ff4444 !important;
    color: white !important;
    margin-left: 10px
}

.admin-msg {
    color: red;
    font-size: 0.9em;
    margin: 0.5em 0
}