/* =========================================================
   Espace Gestion multi-clubs : sélecteur de club (sidebar)
   + accueil « Mes clubs ». Tokens : tokens.css.
   ========================================================= */

/* ---- Sélecteur de club (en tête de la sidebar Gestion) ---- */
.club-switch { list-style: none; margin: 0 0 0.6rem; padding: 0; }
.club-switch-btn {
    width: 100%; display: flex; align-items: center; gap: 0.55rem; text-align: left;
    padding: 0.5rem 0.6rem; border-radius: var(--radius-sm);
    background: var(--surface-3); border: 1px solid var(--border-strong); color: var(--text);
    cursor: pointer;
}
.club-switch-btn:hover { background: var(--surface-2-hov); }
.club-switch-btn .cs-caret { margin-left: auto; flex: 0 0 auto; color: var(--text-muted); transition: transform 0.15s ease; }
.club-switch-btn[aria-expanded="true"] .cs-caret { transform: rotate(180deg); }

.club-switch .ci, .club-switch-menu .ci {
    width: 30px; height: 30px; border-radius: 8px; flex: 0 0 auto;
    display: grid; place-items: center;
    background: var(--gold-soft); color: var(--gold-strong);
    border: 1px solid var(--border-strong); font-weight: 700; font-size: 0.72rem;
}
.club-switch .cs-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.club-switch .cs-eyebrow { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.club-switch .cs-name { font-weight: 600; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Menu en flux (collapse) : pas d'absolu → insensible à l'overflow/z-index de la sidebar. */
.club-switch-menu { margin: 0.35rem 0 0; padding: 0.3rem; background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.club-opt { display: flex; align-items: center; gap: 0.55rem; padding: 0.45rem 0.5rem; border-radius: var(--radius-sm); text-decoration: none; }
.club-opt:hover { background: var(--hover); }
.club-opt.active { background: var(--gold-soft); }
.club-opt .co-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; line-height: 1.2; }
.club-opt .co-name { font-weight: 600; font-size: 0.86rem; color: var(--text); }
.club-opt .co-role { font-size: 0.72rem; color: var(--text-muted); }
.club-opt svg { color: var(--gold-strong); flex: 0 0 auto; }
.club-opt-all { display: block; padding: 0.5rem 0.55rem; font-size: 0.82rem; color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm); }
.club-opt-all:hover { color: var(--text); background: var(--hover); }

/* ---- Accueil « Mes clubs » ---- */
.gestion-hint { font-size: 0.88rem; color: var(--text-muted); margin: 0.2rem 0 1.4rem; max-width: 60ch; }
.gestion-clubs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 760px) { .gestion-clubs { grid-template-columns: 1fr; } }
.gestion-club { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.1rem 1.15rem; display: flex; flex-direction: column; }
.gestion-club.current { border-color: var(--gold); }
.gc-top { display: flex; align-items: center; gap: 0.7rem; }
.gc-av { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-strong); border: 1px solid var(--border-strong); font-weight: 700; }
.gc-id { min-width: 0; }
.gc-name { font-weight: 600; }
.gc-roles { display: flex; gap: 0.3rem; margin-top: 0.2rem; }
.gc-role { font-size: 0.68rem; font-weight: 600; color: var(--gold-strong); background: var(--gold-soft); border: 1px solid var(--border-strong); border-radius: 999px; padding: 0.05rem 0.5rem; }
.gc-current { margin-left: auto; align-self: flex-start; font-size: 0.68rem; font-weight: 600; color: var(--success); background: rgba(79, 174, 139, 0.12); border: 1px solid rgba(79, 174, 139, 0.4); border-radius: 999px; padding: 0.1rem 0.55rem; }
.gc-kpis { display: flex; gap: 1.4rem; margin: 1rem 0 0.2rem; }
.gc-kpi .l { font-size: 0.72rem; color: var(--text-muted); }
.gc-kpi .n { font-size: 1.3rem; font-weight: 700; line-height: 1.1; color: var(--text); }
.gc-kpi .n.warn { color: var(--warning); }
.gc-kpi .n.due { color: var(--gold-strong); }
.gc-foot { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--border); }
