/* ---- RESET MINIMAL ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { line-height: 1.5; font-family: Arial, sans-serif; background: #f0f2f5; }
img { display: block; max-width: 100%; }
select { font: inherit; }

/* ---- LAYOUT ---- */
.site-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 50px 20px; }

/* ---- TITRE ---- */
.main-title { font-size: 2rem; font-weight: 700; margin-bottom: 30px; color: #111; }

/* ---- FILTRES ---- */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }

.select-box { display: inline-block; width: 210px; background: #fff; position: relative; border-radius: 6px; border: 1px solid #ddd; }
.select-box::after { content: ''; display: block; border-top: 6px solid #111; border-right: 4px solid transparent; border-left: 4px solid transparent; pointer-events: none; position: absolute; top: 17px; right: 12px; }
.select-box select { width: 100%; height: 42px; padding: 0 12px; border: none; background: transparent; appearance: none; cursor: pointer; color: #111; }
.select-box select:focus { outline: none; }

.reset { color: #aaa; font-size: 0.85rem; text-decoration: none; }
.reset:hover { color: #111; }

/* NB RÉSULTATS */
.nb-resultats { color: #aaa; font-size: 0.82rem; margin: 10px 0 24px; }

/* ---- GRILLE ---- */
.cards { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---- CARTE ---- */
.card {
    width: calc(25% - 15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 4px solid #111;
    /* AJOUT : la carte est un lien <a>, on enlève le soulignement et on garde la couleur du texte */
    text-decoration: none;
    color: inherit;
}

/* Zone photo */
.card__img-wrapper {
    width: 100%;
    height: 140px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

/* Image du joueur dans la carte */
.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.card__initiales {
    font-size: 3rem;
    font-weight: 700;
    color: #ccc;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Contenu */
.card__name {
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    color: #111;
    margin: 14px 16px 0;
}

.card__types {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 10px 0;
}

.card__type {
    padding: 4px 14px;
    border-radius: 4px;
    background: #111;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Stats */
.card__stats {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 12px 16px 16px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 0.72rem;
    color: #999;
    margin-top: auto;
}

.card__stats div { display: flex; flex-direction: column; gap: 2px; }
.card__stats strong { font-size: 0.82rem; font-weight: 700; color: #111; }

.vide { width: 100%; text-align: center; color: #ccc; padding: 40px 0; }

/* ---- PAGE DETAIL ---- */
#detail-joueur {
    max-width: 600px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#detail-joueur h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111;
}

.detail__photo {
    width: 200px;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 8px;
    margin-bottom: 24px;
    border: 3px solid #111;
}

.detail__initiales {
    width: 200px;
    height: 200px;
    background: #f7f7f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 24px;
    border: 3px solid #eee;
}

#detail-joueur table {
    width: 100%;
    border-collapse: collapse;
}

#detail-joueur th, #detail-joueur td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

#detail-joueur th {
    color: #999;
    font-weight: 600;
    width: 40%;
}

#detail-joueur td {
    color: #111;
    font-weight: 500;
}

@media (max-width: 1100px) { .card { width: calc(33.333% - 14px); } }
@media (max-width: 768px)  { .card { width: calc(50% - 10px); } }
@media (max-width: 480px)  { .card { width: 100%; } }