/* =============================================
   Badges
   ============================================= */

.badge {
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

/* Badges de rôles */
.badge.admin {
    background: linear-gradient(135deg, #f44336, #e91e63);
    color: white;
}

.badge.tresorier {
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-orange));
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.badge.animatrice {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.badge.responsable {
    background: linear-gradient(135deg, var(--accent-blue), #4FC3F7);
    color: white;
}

.badge.volontaire {
    background: linear-gradient(135deg, var(--accent-purple), #BA68C8);
    color: white;
}

/* Badges de statut */
.badge.success {
    background: var(--success-color);
    color: white;
}

.badge.danger {
    background: var(--danger-color);
    color: white;
}

.badge.warning {
    background: var(--warning-color);
    color: white;
}

.badge.info {
    background: var(--info-color);
    color: white;
}

.badge.maternelle,
.badge--maternelle {
    background: linear-gradient(135deg, #FF6B9D, #FF8FB3);
    color: white;
}

.badge.primaire,
.badge--primaire {
    background: linear-gradient(135deg, #3498DB, #5DADE2);
    color: white;
}

/* Badges pour les niveaux scolaires spécifiques */
.badge--ps,
.badge--ms,
.badge--gs {
    background: #FFB6C1;
    color: white;
}

.badge--cp,
.badge--ce1,
.badge--ce2,
.badge--cm1,
.badge--cm2 {
    background: #87CEEB;
    color: white;
}

/* Badge avec sélecteur de rôle */
.badge--with-selector {
    position: relative;
    padding: 6px 30px 6px 12px;
}

.badge__text {
    pointer-events: none;
    position: relative;
    z-index: 1;
}

.badge__arrow {
    font-size: 10px;
    pointer-events: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}

.role-switcher {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 12px;
}

.role-switcher option {
    background: white;
    color: #333;
}

/* =============================================
   Notification Badge (pour alertes)
   ============================================= */

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Bouton alertes dans le header */
#alertes-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

#alertes-btn:hover {
    background-color: rgba(0,0,0,0.05);
}
