/* =========================================
   SXR v6 — pages publiques sportives
   =========================================
   Compléments pour championnat, pilotes, écuries, calendrier, Grands Prix,
   circuits, histoire, saisons et records. Les classes de base viennent de
   style.css et css/v6.css ; ici seulement ce qui manque. */

/* ---- Utilitaires ---- */
.texte-2 { color: var(--texte-2); }
.texte-3 { color: var(--texte-3); }
.lien-fiche { color: inherit; text-decoration: none; }
.lien-fiche:hover { color: var(--rouge); }
.page-section .fil { color: var(--texte-3); font-size: 13px; margin-bottom: 14px; }
.page-section .fil a { color: var(--texte-2); text-decoration: none; }
.page-section .fil a:hover { color: var(--rouge); }
.page-hero .badges-course, .course-infos .badges-course { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: inherit; }
.page-hero .badges-course { justify-content: center; }
.sous-titre-encadre { font-size: 15px; color: var(--texte-2); margin: 18px 0 8px; text-transform: uppercase; letter-spacing: 1px; }
.sous-titre-encadre:first-of-type { margin-top: 0; }
.sous-titre-encadre small { text-transform: none; letter-spacing: 0; }
.titre-saison { font-size: 20px; margin: 30px 0 12px; }
.titre-saison small { color: var(--texte-3); font-weight: normal; font-size: 13px; }
.titre-saison a { color: inherit; text-decoration: none; }
.titre-saison a:hover { color: var(--rouge); }
.page-section h2 small { color: var(--texte-3); font-weight: normal; font-size: 14px; }
table a { color: inherit; }
table a:hover { color: var(--rouge); }
table .ecart { color: var(--texte-3); font-size: 12px; }
table .penalite { color: var(--orange); }
table .note-officielle { color: var(--texte-2); font-style: italic; }
.drapeau { font-size: 15px; }
.numero-titre { color: var(--rouge); font-size: 22px; font-weight: 900; margin-left: 8px; vertical-align: middle; }

/* ---- Classements ---- */
table.classement td.rang { white-space: nowrap; }
.tableau-evolution table { min-width: 0; }
.tableau-evolution th[title] { cursor: help; }
.liste-bareme { list-style: none; margin: 14px 0 0; padding: 0; color: #ccc; font-size: 14px; line-height: 1.8; }
.encadre.bareme table { min-width: 0; }
.encadre.bareme th { white-space: nowrap; }

/* ---- Cartes de course (championnat, circuits, saison) ---- */
.carte-course { color: var(--texte); }
.carte-course .nom a { color: inherit; text-decoration: none; font-weight: bold; }
.carte-course .nom a:hover { color: var(--rouge); }
.carte-course.annulee { opacity: 0.5; }
.podium-ligne { min-width: 0; margin: 0; }
.podium-ligne li { display: inline-block; padding: 2px 12px 2px 0; }
.podium-ligne a { color: inherit; text-decoration: none; }
.podium-ligne a:hover { color: var(--rouge); }
@media (max-width: 800px) { .carte-ligne { flex-wrap: wrap; } .podium-ligne { width: 100%; } }

/* ---- Répertoire des pilotes ---- */
.filtres-pilotes input[type="search"] { flex: 1 1 220px; min-width: 0; }
.filtres-pilotes select { max-width: 100%; }
.carte-pilote { display: flex; gap: 18px; align-items: center; border-left: 4px solid var(--bordure); }
.carte-pilote img.portrait { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; background: var(--panneau-2); flex-shrink: 0; }
.carte-pilote .numero-geant { font-size: 34px; font-weight: 900; color: var(--rouge); min-width: 72px; text-align: center; line-height: 1; flex-shrink: 0; }
.carte-pilote-infos { min-width: 0; }
.carte-pilote-infos h3 { font-size: 17px; line-height: 1.15; }
.carte-pilote-infos .ecurie { color: #ccc; margin-top: 4px; }
.carte-pilote-infos .meta { margin-top: 8px; text-transform: none; letter-spacing: 0; }

/* ---- Fiches (pilote, écurie, circuit) ---- */
.fiche-entete .sous-titre a { color: inherit; }
.fiche-entete .sous-titre a:hover { color: var(--rouge); }
.fiche-entete + .encadre { margin-top: 0; }
.palmares { list-style: none; margin: 0; padding: 0; }
.palmares li { padding: 8px 0; border-bottom: 1px solid var(--bordure); font-size: 15px; }
.palmares li:last-child { border-bottom: 0; }
.palmares .trophee { margin-right: 6px; }
.palmares small { color: var(--texte-3); }
.palmares a { color: inherit; }
.chronologie .quoi a { color: inherit; text-decoration: none; }
.chronologie .quoi a:hover { color: var(--rouge); }
.chronologie .quand a { color: var(--texte-2); }
.chronologie .detail.texte-riche p { color: var(--texte-2); font-size: 14px; margin: 4px 0 0; line-height: 1.5; }
.resultats-pilote td { vertical-align: middle; }
.ecurie-pilotes a { color: inherit; text-decoration: none; }
.ecurie-pilotes a:hover { color: var(--rouge); }
.ecurie-pilotes .badge { margin-left: 6px; }
.ecurie-points { color: #ccc; font-size: 14px; margin-bottom: 12px; }
.centre-carte { margin-top: 14px; }
.ecurie-carte h2 a { color: inherit; text-decoration: none; }
.ecurie-carte h2 a:hover { color: var(--rouge); }
.ligne-engagement { font-size: 13px; margin-bottom: 6px; }
.ligne-engagement a { color: var(--texte-2); }
.badge-couleur { color: white; text-shadow: 0 0 3px rgba(0, 0, 0, 0.8); }
.fiche-ecurie .logo-ecurie { object-fit: contain; }
.initiale-geante { width: 120px; height: 120px; font-size: 40px; border-radius: 16px; }
.fiche-circuit img.trace-circuit { width: 260px; max-width: 100%; height: auto; max-height: 220px; object-fit: contain; border-radius: 10px; background: var(--panneau-2); }
.tuiles-circuit { margin: 14px 0 0; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.tuiles-circuit .stat-tuile strong { font-size: 20px; }
.liste-records { list-style: none; margin: 0; padding: 0; counter-reset: rec; }
.liste-records li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--bordure); font-size: 14px; counter-increment: rec; }
.liste-records li::before { content: counter(rec); color: var(--rouge); font-weight: bold; width: 20px; flex-shrink: 0; }
.liste-records li:last-child { border-bottom: 0; }
.liste-records .valeur { margin-left: auto; font-weight: bold; font-variant-numeric: tabular-nums; white-space: nowrap; }
.liste-records .valeur small { color: var(--texte-3); font-weight: normal; }
.liste-records small { color: var(--texte-3); }

/* ---- Calendrier ---- */
.course-date .annee { display: block; font-size: 12px; color: var(--texte-3); }
.course-infos h2 a { color: inherit; text-decoration: none; }
.course-infos h2 a:hover { color: var(--rouge); }
.course-infos p a { color: inherit; }
.sessions { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--texte-2); }
.sessions .type { color: var(--texte); font-weight: bold; }
.sessions-gp { flex-direction: column; gap: 8px; font-size: 14px; }
.meteo { color: #cfe3ff; font-size: 14px; margin-top: 10px; }
.meteo small { color: var(--texte-3); }
.course .compte-a-rebours { font-size: 16px; margin: 12px 0 0; }
.course .compte-a-rebours b { font-size: 22px; }
.podium .lien-resultats { padding-top: 8px; }
.podium small { color: var(--texte-3); }

/* ---- Grand Prix ---- */
.hero-gp h1 { font-size: 40px; }
.hero-gp .compte-a-rebours { justify-content: center; }
.nav-manches { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; font-size: 13px; }
.nav-manches a { color: var(--texte-2); text-decoration: none; }
.nav-manches a:hover { color: var(--rouge); }
.gp-colonnes { grid-template-columns: 3fr 2fr; }
@media (max-width: 900px) { .gp-colonnes { grid-template-columns: 1fr; } }
.podium-grand .pilote a { color: inherit; text-decoration: none; }
.podium-grand .pilote a:hover { color: var(--rouge); }
.podium-grand .portrait-podium { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 6px auto; display: block; }
.podium-grand .pts { display: block; color: var(--texte); font-weight: bold; margin-top: 4px; }
.faits-marquants { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; color: var(--texte-2); font-size: 14px; margin: 0 0 22px; }
.faits-marquants a { color: var(--texte); }
.resultats-gp td.rang { font-size: 16px; }
.trace-circuit { width: 100%; height: auto; max-height: 240px; object-fit: contain; border-radius: 8px; background: var(--panneau-2); margin-bottom: 10px; }

/* ---- Circuits ---- */
.carte-circuit .trace { object-fit: contain; background: var(--panneau-2); }
.carte-circuit .sans-trace { display: flex; align-items: center; justify-content: center; font-size: 40px; background: var(--panneau-2); border-radius: 8px; margin-bottom: 12px; height: 140px; }
.carte-circuit .caracteristiques { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; color: #ccc; }

/* ---- Histoire / saison ---- */
.titre-saison-archive { font-size: 22px; margin: 30px 0 14px; }
.titre-saison-archive:first-of-type { margin-top: 0; }
.titre-saison-archive small { color: var(--texte-3); font-weight: normal; font-size: 13px; margin-left: 8px; }
.carte-archive .champion { color: #ddd; margin: 6px 0; }
.carte-archive .champion small { color: var(--texte-3); }
.carte-archive .trophee { margin-right: 4px; }
.carte-champion { border-left: 5px solid var(--bordure); }
.grille-champions { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.liste-actus-saison { list-style: none; margin: 0; padding: 0; }
.liste-actus-saison li { padding: 8px 0; border-bottom: 1px solid var(--bordure); font-size: 15px; }
.liste-actus-saison li:last-child { border-bottom: 0; }
.liste-actus-saison a { color: inherit; text-decoration: none; }
.liste-actus-saison a:hover { color: var(--rouge); }
.liste-actus-saison small { color: var(--texte-3); }
.encadre.texte-riche h2 { margin-bottom: 12px; }

/* ---- Records ---- */
.encart-fiabilite { margin-bottom: 26px; }
.grille-records { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-bottom: 36px; }
.bloc-record h3 { font-size: 16px; }
.page-hero .onglets-categories { margin-top: 22px; }

/* ---- Téléphone ---- */
@media (max-width: 600px) {
    .fiche-entete { padding: 18px; gap: 16px; }
    .fiche-entete h1 { font-size: 26px; }
    .fiche-entete .numero-geant { font-size: 44px; min-width: 70px; }
    .initiale-geante { width: 80px; height: 80px; font-size: 28px; }
    .hero-gp h1 { font-size: 28px; }
    .nav-manches { flex-direction: column; }
    .course { padding: 16px; gap: 14px; }
    .podium { min-width: 0; width: 100%; }
    .filtres-pilotes select, .filtres-pilotes button { flex: 1 1 45%; }
}

/* ---- Fiche pilote « tracker » (inspirée de la maquette Fantasy Tracker, 12/10) ---- */
.hero-pilote { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(180px, 300px) 1fr; gap: 30px; align-items: center; background: linear-gradient(135deg, var(--panneau) 0%, var(--panneau-2) 60%, #0d1222 100%); border: 1px solid var(--bordure); border-left: 5px solid var(--couleur-ecurie, var(--rouge)); border-radius: var(--rayon-grand); padding: 28px 34px; margin-bottom: 24px; box-shadow: var(--ombre); }
.hero-pilote .filigrane { position: absolute; right: 18px; top: -30px; font-family: var(--titre); font-weight: 800; font-size: 300px; line-height: 1; color: rgba(255, 255, 255, 0.035); pointer-events: none; user-select: none; }
.hero-pilote-visuel { display: flex; justify-content: center; align-items: flex-end; min-height: 220px; }
.hero-pilote-visuel img.portrait { width: 100%; max-width: 300px; max-height: 340px; object-fit: cover; object-position: top; border-radius: var(--rayon-grand); background: var(--panneau-3); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45); }
.hero-pilote-visuel .numero-geant { font-family: var(--titre); font-size: 150px; font-weight: 800; color: var(--couleur-ecurie, var(--rouge-vif)); line-height: 1; text-shadow: 0 0 60px var(--rouge-ombre); }
.hero-pilote-texte { position: relative; min-width: 0; }
.hero-pilote .ecurie-ligne { font-family: var(--titre); text-transform: uppercase; letter-spacing: 2px; font-size: 13px; color: var(--texte-2); margin: 0 0 8px; }
.hero-pilote .ecurie-ligne a { color: var(--texte); text-decoration: none; }
.hero-pilote .ecurie-ligne a:hover { color: var(--rouge); }
.hero-pilote h1 { font-size: 54px; line-height: 1; margin: 0 0 18px; }
.hero-pilote h1 .prenom { font-weight: 300; letter-spacing: 1px; }
.hero-pilote h1 .nom { font-weight: 800; }
.hero-pilote .faits { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0 0 22px; }
.hero-pilote .faits div { min-width: 0; }
.hero-pilote .faits dt { color: var(--texte-3); font-family: var(--titre); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.hero-pilote .faits dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.hero-pilote .faits dd .drapeau { vertical-align: -3px; }
.hero-pilote .bandeau-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--bordure-2); border-radius: var(--rayon); overflow: hidden; }
.hero-pilote .bandeau-chiffres div { padding: 12px 16px; border-right: 1px solid var(--bordure); }
.hero-pilote .bandeau-chiffres div:last-child { border-right: 0; }
.hero-pilote .bandeau-chiffres span { display: block; color: var(--texte-3); font-family: var(--titre); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; }
.hero-pilote .bandeau-chiffres strong { display: block; font-family: var(--titre); font-size: 22px; margin-top: 4px; line-height: 1.1; white-space: nowrap; }
.hero-pilote .bandeau-chiffres strong small { font-size: 12px; color: var(--texte-3); font-weight: normal; }
.cartes-tracker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.carte-tracker { background: var(--panneau); border: 1px solid var(--bordure); border-radius: var(--rayon-grand); padding: 20px 22px; }
.carte-tracker h3 { font-size: 13px; letter-spacing: 2.5px; color: var(--texte-2); margin: 0 0 12px; }
.carte-tracker h3 small { text-transform: none; letter-spacing: 0; color: var(--texte-3); font-weight: normal; margin-left: 6px; }
.carte-tracker dl { margin: 0; }
.carte-tracker dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--bordure); font-size: 14px; }
.carte-tracker dl div:last-child { border-bottom: 0; }
.carte-tracker dt { color: var(--texte-2); }
.carte-tracker dt small { color: var(--texte-3); }
.carte-tracker dd { margin: 0; font-family: var(--titre); font-size: 17px; font-weight: 700; white-space: nowrap; }
.carte-duel .duel-tete { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.carte-duel .duel-tete img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--panneau-3); }
.carte-duel .duel-tete a { color: inherit; text-decoration: none; font-size: 18px; }
.carte-duel .duel-tete a:hover { color: var(--rouge); }
.encadre-libres { margin-bottom: 26px; border-left: 4px solid var(--bleu-vif); }
.liste-libres { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 20px; }
.liste-libres li { padding: 6px 0; border-bottom: 1px solid var(--bordure); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.liste-libres small { color: var(--texte-3); }
@media (max-width: 900px) { .cartes-tracker { grid-template-columns: 1fr; } .hero-pilote { grid-template-columns: 1fr; padding: 20px; } .hero-pilote h1 { font-size: 34px; } .hero-pilote .filigrane { font-size: 180px; } .hero-pilote-visuel { min-height: 0; } .hero-pilote-visuel img.portrait { max-height: 260px; } }
.hero-pilote .bandeau-chiffres strong span { font-size: inherit; font-family: inherit; }
.hero-pilote h1 .numero-titre { white-space: nowrap; }
