/* Challenge AS Chronos — classement annuel (s'appuie sur results-center.css + evenements.css) */
.ch-page { padding: 26px 0 60px; }
.ch-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: -34px 0 24px; position: relative; z-index: 2; }
.ch-pill { display: flex; flex-direction: column; min-width: 150px; padding: 10px 16px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); border: 2px solid transparent; transition: transform .2s ease, border-color .2s ease; }
.ch-pill span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b7c88; }
.ch-pill strong { font-size: 17px; }
.ch-pill:hover { transform: translateY(-2px); color: var(--ink); }
.ch-pill.is-active { border-color: var(--teal); background: var(--navy); color: #fff; }
.ch-pill.is-active span { color: var(--teal-light); }

.ch-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.ch-stat { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(7, 23, 38, .07); border-left: 4px solid var(--teal); }
.ch-stat strong { display: block; font-size: 26px; line-height: 1.1; color: var(--navy); }
.ch-stat span { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7c88; }
.ch-stat--leader { border-left-color: var(--orange); }
.ch-stat--leader strong { font-size: 19px; }
.ch-stat--f { border-left-color: #e57bb0; }
.ch-stat.age-68 { border-left-color: #de1285; } .ch-stat.age-911 { border-left-color: #289941; } .ch-stat.age-1214 { border-left-color: #f5a800; }

.ch-epreuves { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.ch-ep-link { text-decoration: none; }
.ch-ep { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.ch-ep b { font-weight: 700; }
.ch-ep small { color: #6b7c88; }
.ch-ep i { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: #eceff3; color: #6b7c88; }
.ch-ep.is-done i { background: #e6f6f3; color: var(--teal); }
.ch-ep-link:hover .ch-ep { border-color: var(--teal); }

.ch-empty { background: #fff; border-radius: 16px; padding: 32px 26px; text-align: center; box-shadow: var(--shadow); margin-bottom: 26px; }
.ch-empty h2 { font-size: 24px; margin: 0 0 10px; color: var(--navy); }
.ch-empty p { max-width: 640px; margin: 0 auto 18px; color: #425765; font-size: 15px; line-height: 1.6; }
.ch-empty .ev-btn { margin: 4px 6px; }

.ch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.ch-tab { flex: 1 1 140px; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; align-items: center; text-align: left; font: inherit; cursor: pointer; padding: 10px 14px; border-radius: 12px; background: #fff; border: 2px solid var(--line); border-left-width: 6px; color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.ch-tab strong { font-size: 15px; color: var(--navy); }
.ch-tab span { grid-column: 1; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7c88; }
.ch-tab small { grid-column: 2; grid-row: 1 / span 2; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #eceff3; color: #425765; }
.ch-tab.age-68 { border-left-color: #de1285; } .ch-tab.age-911 { border-left-color: #289941; } .ch-tab.age-1214 { border-left-color: #f5a800; }
.ch-tab:hover { transform: translateY(-2px); }
.ch-tab.is-active { background: var(--navy); border-color: var(--navy); }
.ch-tab.is-active.age-68 { border-left-color: #de1285; } .ch-tab.is-active.age-911 { border-left-color: #289941; } .ch-tab.is-active.age-1214 { border-left-color: #f5a800; }
.ch-tab.is-active strong { color: #fff; } .ch-tab.is-active span { color: var(--teal-light); } .ch-tab.is-active small { background: rgba(255,255,255,.16); color: #fff; }
.ch-tab--all { border-left-width: 2px; }
.ch-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.ch-search { flex: 1 1 240px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); font: inherit; font-size: 14px; background: #fff; }
.ch-search:focus { outline: 2px solid var(--teal); border-color: var(--teal); }
.ch-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.ch-filters button { font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: #425765; cursor: pointer; }
.ch-filters button.is-active { background: var(--navy); color: #fff; border-color: var(--navy); }

.ch-section { margin-bottom: 30px; }
.ch-section__title { font-size: 20px; margin: 0 0 10px; color: var(--navy); }
.ch-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.ch-dot.is-f { background: #e57bb0; } .ch-dot.is-h { background: #41beea; }
.ch-section__title small { font-size: 13px; font-weight: 600; color: #6b7c88; margin-left: 8px; }
.ch-tablewrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.ch-table { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 0; }
.ch-table thead th { position: sticky; top: 0; z-index: 1; background: var(--navy); color: #cbd8df; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; padding: 10px 10px; text-align: center; white-space: nowrap; border-bottom: 1px solid #1d3346; }
.ch-table thead th small { display: block; font-size: 9px; font-weight: 500; letter-spacing: .02em; text-transform: none; color: #8ea3b3; margin-top: 2px; }
.ch-table thead th[data-sort] { cursor: pointer; }
.ch-table thead th[data-sort]:hover { color: #fff; }
.ch-table thead th.sorted-asc::after { content: " ▲"; color: var(--teal-light); }
.ch-table thead th.sorted-desc::after { content: " ▼"; color: var(--teal-light); }
.ch-table thead th.is-pending { color: #6b7c88; }
.ch-table thead tr:nth-child(2) th { top: 0; background: #0d2234; }
.ch-table th.ch-col-nom { text-align: left; min-width: 180px; }
.ch-table td { padding: 9px 10px; border-bottom: 1px solid #edf1f4; font-size: 13px; color: #425765; text-align: center; white-space: nowrap; vertical-align: middle; }
.ch-table tbody tr:hover td { background: #f6f9fa; }
.ch-table tbody tr:last-child td { border-bottom: 0; }
.ch-rang { font-weight: 800; color: var(--navy); width: 54px; }
.ch-rang.p1, .ch-rang.p2, .ch-rang.p3 { color: #fff; }
.ch-rang.p1 { background: #d4a017; } .ch-rang.p2 { background: #8a9aa8; } .ch-rang.p3 { background: #b06a3b; }
.ch-nom { text-align: left !important; }
.ch-nom b { display: block; color: var(--navy); font-weight: 700; white-space: normal; }
.ch-nom small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal); }
.ch-sexe { font-weight: 800; }
.ch-sexe.is-f { color: #e57bb0; } .ch-sexe.is-h { color: #41beea; }
.ch-cell span { display: block; font-size: 10px; color: #8a9aa8; }
.ch-cell b { display: block; font-weight: 800; color: var(--navy); }
.ch-cell.is-empty { color: #c3ccd3; }
.ch-cell.is-pending { background: #f8fafb; color: #d0d7dd; }
.ch-bonus b { display: block; font-weight: 800; color: #c3ccd3; }
.ch-bonus span { display: block; font-size: 10px; color: #8a9aa8; }
.ch-bonus.is-full b { color: var(--orange); } .ch-bonus.is-half b { color: #e3b35a; }
.ch-total { font-weight: 900; font-size: 15px; color: var(--navy); background: #f1f7f6; }
.ch-noresult { padding: 14px; text-align: center; color: #6b7c88; }

.ch-rules { margin-top: 36px; }
.ch-rules h2 { font-size: 24px; color: var(--navy); margin: 0 0 14px; }
.ch-rules__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.ch-rule { background: #fff; border-radius: 12px; padding: 16px 18px; box-shadow: 0 8px 22px rgba(7, 23, 38, .07); border-top: 4px solid var(--teal); }
.ch-rule:nth-child(2) { border-top-color: var(--orange); } .ch-rule:nth-child(3) { border-top-color: #41beea; } .ch-rule:nth-child(4) { border-top-color: #e57bb0; }
.ch-rule h3 { font-size: 16px; margin: 0 0 6px; color: var(--navy); }
.ch-rule p { margin: 0; font-size: 14px; line-height: 1.55; color: #425765; }
.ch-bareme { margin-top: 16px; background: #fff; border-radius: 12px; padding: 12px 18px; box-shadow: 0 8px 22px rgba(7, 23, 38, .07); }
.ch-bareme summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.ch-bareme .ch-tablewrap { box-shadow: none; margin-top: 12px; border: 1px solid var(--line); }
.ch-table--bareme td { font-weight: 700; }
.ch-table--bareme td:first-child { text-align: left; }
.ch-bareme .ev-muted { margin: 12px 0 4px; font-size: 13px; line-height: 1.6; }

@media (max-width: 640px) {
    .ch-switch { margin-top: -26px; }
    .ch-pill { min-width: calc(50% - 5px); flex: 1 1 calc(50% - 5px); padding: 8px 12px; }
    .ch-pill strong { font-size: 15px; }
    .ch-stat strong { font-size: 22px; }
    .ch-table td, .ch-table thead th { padding: 8px 7px; }
    .ch-tab { flex-basis: calc(50% - 4px); padding: 8px 10px; }
}

/* Bloc challenge en tête de la page Résultats */
.rs-challenge { padding: 30px 0 6px; }
.rs-challenge__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.rs-challenge__head span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.rs-challenge__head h2 { margin: 2px 0 0; font-size: 26px; color: var(--navy); }
.rs-challenge__head--sub { margin: 26px 0 14px; }
.rs-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rs-card { background: #fff; border-radius: 16px; padding: 18px 20px 16px; box-shadow: var(--shadow); border-top: 5px solid var(--orange); display: flex; flex-direction: column; }
.rs-card.is-final { border-top-color: var(--teal); }
.rs-card__top { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.rs-card__season { color: var(--navy); }
.rs-card__status { color: #fff; background: var(--orange); border-radius: 999px; padding: 3px 9px; font-size: 10px; }
.rs-card.is-final .rs-card__status { background: var(--teal); }
.rs-card h3 { margin: 10px 0 12px; font-size: 20px; color: var(--navy); }
.rs-card__podium { list-style: none; margin: 0; padding: 0; }
.rs-card__podium li { display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid #edf1f4; }
.rs-card__podium i { font-style: normal; font-weight: 900; color: #fff; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #8a9aa8; grid-row: span 2; }
.rs-card__podium li:nth-child(1) i { background: #d4a017; } .rs-card__podium li:nth-child(3) i { background: #b06a3b; }
.rs-card__podium b { color: var(--navy); font-size: 14px; }
.rs-card__podium small, .rs-card__list small { color: #6b7c88; font-size: 11px; }
.rs-card__list { list-style: none; margin: 0; padding: 0; }
.rs-card__list li { display: grid; grid-template-columns: 1fr auto; row-gap: 0; column-gap: 8px; padding: 6px 0; border-top: 1px solid #edf1f4; font-size: 13px; }
.rs-card__list li span { color: #6b7c88; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; grid-column: 1 / -1; }
.rs-card__list li b { color: var(--navy); }
.rs-card__note { margin: 10px 0 0; font-size: 12.5px; color: #425765; }
.rs-card__podiums { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rs-card__col h4 { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding-left: 10px; border-left: 4px solid #41beea; color: #41beea; }
.rs-card__col.is-f h4 { border-left-color: #e57bb0; color: #e57bb0; }
.rs-card__col.is-f .rs-card__podium li:nth-child(1) i { background: #d4a017; } .rs-card__col.is-f .rs-card__podium li:nth-child(2) i { background: #8a9aa8; } .rs-card__col.is-f .rs-card__podium li:nth-child(3) i { background: #b06a3b; }
.rs-card__list li { border-left: 4px solid #cfd6dc; padding-left: 10px; }
.rs-card__list li.age-68 { border-left-color: #de1285; } .rs-card__list li.age-911 { border-left-color: #289941; } .rs-card__list li.age-1214 { border-left-color: #f5a800; }
.rs-card__list li.age-68 span { color: #de1285; } .rs-card__list li.age-911 span { color: #289941; } .rs-card__list li.age-1214 span { color: #c98700; }
.rs-card__empty { margin: 0; font-size: 13.5px; line-height: 1.5; color: #425765; }
.rs-card__link { margin-top: auto; padding-top: 12px; font-weight: 800; font-size: 13px; color: var(--teal); text-decoration: none; }
.rs-card__link:hover { text-decoration: underline; }

/* Page Résultats : cartes des courses du week-end (sélecteur RACE RESULT) */
.rs-events { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.rs-event { display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; cursor: pointer; padding: 12px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); box-shadow: 0 8px 22px rgba(7, 23, 38, .07); color: var(--ink); transition: transform .15s ease, border-color .15s ease; }
.rs-event:hover { transform: translateY(-2px); border-color: var(--teal); }
.rs-event time { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 62px; padding: 6px 4px; border-radius: 10px; background: var(--navy); color: #fff; line-height: 1; }
.rs-event time span { font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.rs-event time strong { font-size: 24px; font-weight: 900; margin: 2px 0; }
.rs-event time small { font-size: 9px; font-weight: 700; letter-spacing: .06em; color: var(--teal-light); }
.rs-event__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rs-event__body b { font-size: 16px; color: var(--navy); }
.rs-event__body i { font-style: normal; font-size: 12px; color: #6b7c88; }
.rs-event.is-selected-event { border-color: var(--teal); background: #f1faf8; }
.rs-event.is-selected-event time { background: var(--teal); }
.rs-event.is-selected-event time small { color: #fff; }
.rs-events__status { margin: 4px 0 14px; }

/* Trois onglets : Inscrits · Résultats · Live */
.view-tabs { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 480px) { .view-tab { font-size: 12px; gap: 6px; padding: 0 6px; } }

/* Page Résultats : deux onglets Challenge / Suivi des courses */
.rs-tabs-wrap { margin-top: -30px; position: relative; z-index: 2; }
.rs-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.rs-tab { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; padding: 12px 16px; border-radius: 12px; text-decoration: none; color: #617582; border: 2px solid transparent; }
.rs-tab > span { grid-row: span 2; font-size: 22px; }
.rs-tab b { font-size: 16px; color: inherit; }
.rs-tab small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rs-tab:hover { color: var(--navy); text-decoration: none; background: #f4f7f8; }
.rs-tab.is-active { background: var(--navy); color: #fff; }
.rs-tab.is-active small { color: var(--teal-light); }
.rs-tab .live-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(242, 154, 46, .25); margin: 0 5px; }
.rs-panel.rs-challenge { padding-top: 26px; }
@media (max-width: 560px) { .rs-tab { grid-template-columns: 1fr; padding: 10px 12px; text-align: center; } .rs-tab > span { display: none; } .rs-tab small { font-size: 10px; } }
