/* Drawer « Ajout rapide » d'un cours (reprendre un visiteur / créer un adhérent). */

.cv-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    z-index: 1045;
}
.cv-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.cv-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: min(460px, 100%);
    background: var(--surface-1);
    border-left: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    z-index: 1046;
    display: flex;
    flex-direction: column;
    padding-top: var(--navbar-height);
}
.cv-drawer.show {
    transform: translateX(0);
}

.cv-head {
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.cv-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
}
.cv-head p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.cv-close {
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.cv-close:hover {
    color: var(--text);
}

.cv-body {
    padding: 1.1rem 1.2rem;
    overflow: auto;
    flex: 1 1 auto;
}

/* Onglets */
.cv-segmented {
    display: inline-flex;
    width: 100%;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px;
    margin-bottom: 1rem;
}
.cv-segmented button {
    flex: 1 1 0;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    white-space: nowrap;
}
.cv-segmented button.active {
    color: var(--gold-strong);
    background: var(--gold-soft);
}

/* Recherche */
.cv-search {
    position: relative;
    margin-bottom: 0.9rem;
}
.cv-search svg {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
}
.cv-search input {
    width: 100%;
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    color: var(--text);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.7rem 0.55rem 2.2rem;
    font: inherit;
    font-size: 0.88rem;
}
.cv-search input::placeholder {
    color: var(--text-faint);
}
.cv-search input:focus {
    outline: none;
    border-color: var(--gold);
}

.cv-hint {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin: 0 0 0.8rem;
    line-height: 1.45;
}

/* Résultats */
.cv-res-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.cv-res-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.cv-res-main {
    flex: 1 1 auto;
    min-width: 0;
}
.cv-res-name {
    font-weight: 500;
    font-size: 0.92rem;
}
.cv-res-sub {
    font-size: 0.74rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.15rem;
}
.cv-res-club {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--text-faint);
}
.cv-res-grade {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}
.cv-res-actions {
    flex: 0 0 auto;
}
.cv-res-empty {
    text-align: center;
    color: var(--text-faint);
    padding: 2rem 1rem;
    font-size: 0.88rem;
}
