/**
 * Fiche athlète de l'appli mobile (athlete.php et components/athlete/*) : en-tête, onglets plats,
 * chiffres, lignes à filet. La couleur de la discipline principale est dans --disc.
 */

/* ── En-tête ── */
.pm-ath-entete {
    display: flex;
    gap: 14px;
    padding: 16px 16px 12px;
    border-top: 3px solid var(--disc, var(--blue));
}
.pm-ath-photo {
    flex-shrink: 0;
    width: 88px;
    aspect-ratio: 4 / 5;
    border-radius: 6px;
    overflow: hidden;
    background: var(--ink3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
    font-size: 34px;
    color: color-mix(in srgb, var(--white) 40%, transparent);
}
.pm-ath-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-ath-identite { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pm-ath-nom {
    margin: 0;
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: .95;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--white);
}
.pm-ath-nom small { display: block; font-size: 20px; color: var(--disc, var(--blue)); filter: brightness(1.3); }
.pm-ath-ligne-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: color-mix(in srgb, var(--white) 72%, transparent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pm-ath-ligne-info .flag-icon { font-size: 12px; border-radius: 2px; flex-shrink: 0; }
.pm-ath-ligne-info strong { color: var(--white); font-weight: 700; }
.pm-ath-rang {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue);
}

/* Boutons de l'en-tête : plats, sur une ligne */
.pm-ath-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
}
.pm-ath-actions::-webkit-scrollbar { display: none; }
.pm-ath-actions a,
.pm-ath-actions button {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--rule2, var(--rule));
    border-radius: 6px;
    background: transparent;
    color: var(--white);
    font: 700 12px/1 Inter, system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.pm-ath-actions .actif { background: var(--blue); border-color: var(--blue); color: var(--ink, #0d0f14); }
.pm-ath-actions i { font-size: 12px; }

/* ── Chiffres du bilan ── */
.pm-ath-chiffres {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0;
    padding: 14px 16px 6px;
    list-style: none;
}
.pm-ath-chiffres li { border-top: 2px solid var(--disc, var(--blue)); padding-top: 6px; }
.pm-ath-chiffres strong {
    display: block;
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    color: var(--white);
}
.pm-ath-chiffres span {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--white) 55%, transparent);
}

/* ── Ligne générique « texte à gauche, valeur à droite » ── */
.pm-ath-ligne {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--rule);
    color: inherit;
    text-decoration: none;
}
.pm-ath-ligne:active { background: var(--ink2); }
.pm-ath-ligne-texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pm-ath-ligne-nom { font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--white); }
.pm-ath-ligne-sous { font-size: 12px; color: color-mix(in srgb, var(--white) 55%, transparent); }
.pm-ath-ligne-sous b { font-weight: 800; letter-spacing: .05em; text-transform: uppercase; font-size: 10px; color: var(--d, var(--muted)); filter: brightness(1.4); }
.pm-ath-valeur {
    flex-shrink: 0;
    text-align: right;
    font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif;
    font-size: 22px;
    line-height: 1;
    color: var(--white);
    white-space: nowrap;
}
.pm-ath-valeur small { display: block; margin-top: 3px; font: 600 10px/1 Inter, system-ui, sans-serif; color: color-mix(in srgb, var(--white) 55%, transparent); }
.pm-ath-valeur small.hausse { color: var(--blue); }
.pm-ath-valeur small.baisse { color: var(--live); }

/* Tir : quatre chiffres puis une ligne par course */
.pm-ath-tir-chiffres { grid-template-columns: repeat(2, 1fr); padding-bottom: 0; }
.pm-ath-tir-chiffres strong { font-size: 24px; }
.pm-ath-note { margin: 0; padding: 8px 16px 10px; font-size: 12px; line-height: 1.45; color: color-mix(in srgb, var(--white) 55%, transparent); }

/* ── Infos ── */
.pm-ath-infos { margin: 0; padding: 0 16px; }
.pm-ath-infos div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.pm-ath-infos dt { font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--white) 55%, transparent); }
.pm-ath-infos dd { margin: 0; text-align: right; color: var(--white); font-weight: 600; }
.pm-ath-texte { margin: 0; padding: 4px 16px 10px; font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--white) 85%, transparent); white-space: pre-line; }
.pm-ath-liens { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
.pm-ath-liens a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid var(--rule2, var(--rule));
    border-radius: 6px;
    color: var(--white);
    font: 700 12px/1 Inter, system-ui, sans-serif;
    text-decoration: none;
}
.pm-ath-sponsors { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 16px 12px; }
.pm-ath-sponsors a, .pm-ath-sponsors span { display: block; height: 44px; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 6px; background: #fff; }
.pm-ath-sponsors img { height: 100%; width: auto; display: block; }

/* Revendiquer sa fiche : bloc sobre en bas de l'onglet Infos */
.pm-ath-revendiquer { margin: 20px 16px 8px; padding: 16px; border: 1px solid var(--rule2, var(--rule)); border-radius: 6px; }
.pm-ath-revendiquer h2 { margin: 0 0 6px; font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.pm-ath-revendiquer p { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--white) 70%, transparent); }
.pm-ath-revendiquer .pm-bouton { margin: 0; }

/* Vidéos : vignette 16/9 + titre */
.pm-ath-video { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); text-decoration: none; color: inherit; }
.pm-ath-video-img { flex-shrink: 0; width: 120px; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--ink3); }
.pm-ath-video-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Athlète introuvable */
.pm-ath-introuvable { padding: 60px 24px; text-align: center; }
.pm-ath-introuvable h1 { margin: 0 0 8px; font-family: 'Bebas Neue', 'Barlow Condensed', sans-serif; font-size: 30px; font-weight: 400; letter-spacing: .04em; text-transform: uppercase; color: var(--white); }
.pm-ath-introuvable p { margin: 0 0 18px; color: color-mix(in srgb, var(--white) 65%, transparent); }
