/* =============================================
   SPORTIFY — Niveau par sport
   Modale + badges sur les cartes
============================================= */

/* ── Hint dans section-label ── */
.section-hint {
    font-size: 0.72rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.5rem;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Badge niveau sur les sport-cards ── */
.sport-niveau-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 99px;
    margin-top: 0.25rem;
    white-space: nowrap;
    letter-spacing: 0.03em;
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
}

.sport-niveau-badge.niveau-debutant {
    background: rgba(76, 175, 80, 0.18);
    color: #81c784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}
.sport-niveau-badge.niveau-moyen {
    background: rgba(255, 193, 7, 0.15);
    color: #ffd54f;
    border: 1px solid rgba(255, 193, 7, 0.3);
}
.sport-niveau-badge.niveau-expert {
    background: rgba(255, 87, 34, 0.18);
    color: #ff8a65;
    border: 1px solid rgba(255, 87, 34, 0.35);
}

/* Variante couleur de bordure sur la card sélectionnée selon niveau */
.sport-card.selected-debutant { border-color: #66bb6a !important; box-shadow: 0 0 10px rgba(76,175,80,0.25) !important; }
.sport-card.selected-moyen    { border-color: #ffc107 !important; box-shadow: 0 0 10px rgba(255,193,7,0.25) !important; }
.sport-card.selected-expert   { border-color: var(--orange) !important; box-shadow: var(--shadow-glow) !important; }

/* ── Overlay ── */
.niveau-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 1100;
    pointer-events: none;
    transition: background 0.25s;
}
.niveau-overlay.open {
    background: rgba(0,0,0,0.65);
    pointer-events: all;
    backdrop-filter: blur(4px);
}

/* ── Modale ── */
.niveau-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -48%) scale(0.92);
    z-index: 1200;
    width: min(420px, 92vw);
    background: #1c1c1c;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem 1.75rem 1.75rem;
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}

.niveau-modal.open {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.niveau-modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    background: rgba(255,255,255,0.07);
    border: none;
    color: var(--text-muted);
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
}
.niveau-modal-close:hover { background: rgba(255,255,255,0.15); color: var(--text); }

.niveau-sport-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.niveau-sport-emoji {
    font-size: 2.8rem;
    width: 64px; height: 64px;
    background: rgba(255,87,34,0.1);
    border: 2px solid rgba(255,87,34,0.25);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.niveau-modal-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.niveau-sport-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.6rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

/* ── Choix de niveau ── */
.niveau-choices {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.niveau-choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s;
    text-align: left;
    width: 100%;
    font-family: 'Outfit', sans-serif;
}

.niveau-choice:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.18);
}

/* Actif selon niveau */
.niveau-choice[data-niveau="debutant"].active {
    background: rgba(76,175,80,0.12);
    border-color: #66bb6a;
}
.niveau-choice[data-niveau="moyen"].active {
    background: rgba(255,193,7,0.1);
    border-color: #ffc107;
}
.niveau-choice[data-niveau="expert"].active {
    background: rgba(255,87,34,0.12);
    border-color: var(--orange);
}

.niveau-choice-icon { font-size: 1.6rem; flex-shrink: 0; }

.niveau-choice-text {
    flex: 1;
}
.niveau-choice-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 700;
}
.niveau-choice-text span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.niveau-check {
    font-size: 1rem;
    color: transparent;
    font-weight: 700;
    flex-shrink: 0;
    transition: color 0.15s;
}
.niveau-choice.active .niveau-check { color: var(--orange); }
.niveau-choice[data-niveau="debutant"].active .niveau-check { color: #66bb6a; }
.niveau-choice[data-niveau="moyen"].active    .niveau-check { color: #ffc107; }

/* ── Remember me checkbox ── */
.remember-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0.75rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}
.remember-label input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--orange);
    cursor: pointer;
    flex-shrink: 0;
}
.remember-label:hover { color: var(--text); }

/* ── Badge niveau dans dashboard / member / profil ── */
.niveau-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
}
.niveau-tag.debutant { background: rgba(76,175,80,0.15);  color: #81c784; border: 1px solid rgba(76,175,80,0.25); }
.niveau-tag.moyen    { background: rgba(255,193,7,0.12);  color: #ffd54f; border: 1px solid rgba(255,193,7,0.25);  }
.niveau-tag.expert   { background: rgba(255,87,34,0.15);  color: #ff8a65; border: 1px solid rgba(255,87,34,0.3);   }

/* ── Filtre niveau dans sidebar ── */
.filter-niveaux {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}
.filter-niveau-btn {
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    border: 1.5px solid var(--border);
    background: var(--dark2);
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}
.filter-niveau-btn:hover { border-color: rgba(255,255,255,0.25); color: var(--text); }
.filter-niveau-btn.active-debutant { background: rgba(76,175,80,0.15);  border-color: #66bb6a; color: #81c784; }
.filter-niveau-btn.active-moyen    { background: rgba(255,193,7,0.12);  border-color: #ffc107; color: #ffd54f; }
.filter-niveau-btn.active-expert   { background: rgba(255,87,34,0.15);  border-color: var(--orange); color: #ff8a65; }

/* ── Match status badge on profile cards ── */
.matched-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(156,39,176,0.15);
    border: 1px solid rgba(156,39,176,0.35);
    color: #ce93d8;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    letter-spacing: 0.04em;
}

.statut-indisponible-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(244,67,54,0.12);
    border: 1px solid rgba(244,67,54,0.3);
    color: #ef9a9a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

.statut-disponible-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(76,175,80,0.12);
    border: 1px solid rgba(76,175,80,0.3);
    color: #a5d6a7;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

/* Member card when matched/unavailable */
.member-card.is-matched { border-color: rgba(156,39,176,0.3); }
.member-card.is-matched::before { background: #9c27b0; }
.member-card.is-unavailable { opacity: 0.65; }