/* ====================================================
   ARCHIVE JOUEURS — /joueur/
   Inspiré de .fm-card / .carriere-table (fiche-joueur)
==================================================== */
.aj-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
    min-height: 80vh;
}

/* ── Hero ─────────────────────────────────────────── */
.aj-hero {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.aj-hero__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}
.aj-hero__count {
    color: #555;
    font-size: 0.85rem;
    margin: 0;
}

/* ── Toolbar ─────────────────────────────────────── */
.aj-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.aj-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
}
.aj-filter-btn {
    background: transparent;
    border: 1px solid #242424;
    color: #666;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.38rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.aj-filter-btn:hover  { border-color: #444; color: #fff; }
.aj-filter-btn.is-active { background: #ffe327; color: #000; border-color: #ffe327; }

/* Search */
.aj-search {
    background: #171717;
    border: 1px solid #242424;
    color: #fff;
    font-size: 0.85rem;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    outline: none;
    width: 210px;
    transition: border-color 0.15s;
}
.aj-search::placeholder { color: #444; }
.aj-search:focus { border-color: #ffe327; }

/* ── Index alphabétique ───────────────────────────── */
.aj-alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-bottom: 1.25rem;
}
.aj-alpha-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #444;
    font-size: 0.75rem;
    font-weight: 700;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.aj-alpha-btn:hover { background: #1e1e1e; color: #fff; border-color: #242424; }
.aj-alpha-btn.is-active { background: #ffe327; color: #000; border-color: #ffe327; }

/* ── Card container (fm-card) ─────────────────────── */
.aj-card {
    background: #171717;
    border: 1px solid #242424;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Table ────────────────────────────────────────── */
.aj-table {
    width: 100%;
    border-collapse: collapse;
}

/* En-tête */
.aj-table thead tr {
    border-bottom: 1px solid #242424;
}
.aj-table th {
    text-align: left;
    color: #555;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.9rem 1rem;
    white-space: nowrap;
    border: 0!important;
}
.aj-th-num { width: 42px; padding-left: 1.25rem; color: #333; }

/* Lignes */
.aj-row {
    border-bottom: 1px solid #1e1e1e;
    transition: background 0.1s;
    cursor: pointer;
}
.aj-row:last-child { border-bottom: none; }
.aj-row:hover { background: #1f1f1f; }

.aj-table td {
    padding: 0.78rem 1rem;
    vertical-align: middle;
    border: 0;
}

/* Numéro */
.aj-col-num {
    padding-left: 1.25rem;
    color: #333;
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    width: 42px;
}

/* Nom */
.aj-col-name a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}
.aj-row:hover .aj-lname { color: #ffe327; }
.aj-fname {
    color: #555;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.2;
}
.aj-lname {
    color: #e8e8e8;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: color 0.15s;
    line-height: 1.2;
}

/* Poste */
.aj-col-poste { width: 140px; }

.aj-badge {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.18rem 0.55rem;
    border-radius: 4px;
    background: #242424;
    color: #666;
}
.aj-badge.badge--gk  { background: #2a1a00; color: #f59e0b; }
.aj-badge.badge--def { background: #0a2040; color: #60a5fa; }
.aj-badge.badge--mid { background: #0f2d10; color: #4ade80; }
.aj-badge.badge--att { background: #2d0a0a; color: #f87171; }

/* Club */
.aj-col-club {
    color: #aaa;
    font-size: 0.85rem;
}

/* Nationalité */
.aj-col-nat {
    color: #555;
    font-size: 0.8rem;
}

/* ── Empty state ─────────────────────────────────── */
.aj-empty {
    text-align: center;
    color: #444;
    margin-top: 2rem;
    font-size: 0.9rem;
    padding: 1rem;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 700px) {
    .aj-th-nat, .aj-col-nat { display: none; }
}
@media (max-width: 520px) {
    .aj-th-club, .aj-col-club { display: none; }
    .aj-toolbar { flex-direction: column; align-items: stretch; }
    .aj-search  { width: 100%; }
    .aj-th-num, .aj-col-num { display: none; }
}
