/* ============ Dashboard (design "POC") ============ */

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;
    align-items: start;
    margin-top: 0.5rem;
}

@media (max-width: 820px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Carte de section + tête séparée (titre + rond de comptage) ---- */
.section-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.section-head h2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
}

.count-badge {
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--gold-strong);
    border: 1px solid var(--border-strong);
    font-size: 0.8rem;
    font-weight: 700;
}

.section-body {
    padding: 0.35rem 1.25rem 0.85rem;
}

.section-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 1.25rem 0.5rem 0.75rem;
}

/* ---- Mini-avatar à initiales (membre) ---- */
.mini-av {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-soft);
    color: var(--gold-strong);
    border: 1px solid var(--border-strong);
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
}

/* ---- Agenda / prochains cours ---- */
.agenda-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}

.agenda-item:last-child {
    border-bottom: none;
}

.agenda-date {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--surface-3);
    border: 1px solid var(--border);
    line-height: 1.1;
}

.agenda-date .d {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.agenda-date .m {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.agenda-info {
    flex: 1 1 auto;
    min-width: 0;
}

.agenda-title {
    font-weight: 600;
    color: var(--text);
}

.agenda-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.agenda-time {
    flex: 0 0 auto;
    align-self: flex-start;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-strong);
    white-space: nowrap;
}

/* Membres concernés par un cours (groupés sous l'événement) */
.agenda-members {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.55rem;
    margin-top: 0.4rem;
}

.agenda-member {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Prochaine compétition ---- */
.comp-name {
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin-top: 0.25rem;
}

.comp-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.comp-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comp-line svg {
    flex: 0 0 auto;
    opacity: 0.85;
}

.comp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.8rem;
}

.comp-tags .tag {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--text);
    background: var(--surface-3);
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    padding: 0.12rem 0.6rem;
}

.comp-tags .tag-accent {
    color: var(--gold-strong);
    background: var(--gold-soft);
    border-color: var(--gold);
}

.comp-members {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.6rem;
    margin-top: 0.85rem;
}

.comp-members-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
}

.comp-member {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.83rem;
    color: var(--text);
}

.comp-register-hint {
    margin-top: 0.8rem;
    font-size: 0.82rem;
    color: var(--warning);
}

/* ---- Lignes "Mes licences" (avatar + nom/club, réutilise .row-link) ---- */
.row-link .rl-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.row-link .rl-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
