.kpr-public-wrap { max-width: 900px; margin: 0 auto; padding: 40px 20px; }
.kpr-page-header { margin-bottom: 30px; }
.kpr-page-header h1 { margin-bottom: 6px; }
.kpr-course-lieu { color: #666; }

.kpr-course-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kpr-course-card { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; }
.kpr-course-card-past { opacity: 0.75; }
.kpr-course-date { flex: 0 0 56px; text-align: center; font-weight: 700; font-size: 1.3rem; line-height: 1.1; }
.kpr-course-date span { display: block; font-size: 0.7rem; text-transform: uppercase; font-weight: 600; color: #ca131d; }
.kpr-course-info { display: flex; flex-direction: column; }

.kpr-edition-block { border-top: 1px solid #e0e0e0; padding: 20px 0; }
.kpr-edition-numero { font-weight: 400; color: #666; font-size: 0.9rem; }
.kpr-edition-date { color: #666; margin-top: 2px; }
.kpr-format-block { margin: 14px 0; padding: 14px; background: #f9f9f9; border-radius: 6px; }
.kpr-no-results { color: #888; font-style: italic; }

.kpr-table-scroll {
	overflow-x: auto;
	margin-top: 6px;
	scrollbar-width: thin;
	scrollbar-color: #ddd transparent;
}
.kpr-table-scroll::-webkit-scrollbar { height: 6px; }
.kpr-table-scroll::-webkit-scrollbar-track { background: transparent; }
.kpr-table-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 999px; }
.kpr-table-scroll::-webkit-scrollbar-thumb:hover { background: #ccc; }
.kpr-club-cell { max-width: 150px; overflow: hidden; text-overflow: ellipsis; cursor: help; }
.kpr-results-table { width: 100%; border-collapse: collapse; }
.kpr-results-table th, .kpr-results-table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid #f5f5f5; white-space: nowrap; }
.kpr-results-table th { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #999; font-weight: 800; border-bottom: 2px solid #f0f0f0; }
.kpr-results-table tbody tr:hover { background: #fef7f7; }
.kpr-results-table tbody tr:last-child td { border-bottom: none; }
.kpr-format-label { color: #888; font-size: 0.8em; }
.kpr-historique-course-link { font-weight: 700; color: #1a202c; text-decoration: none; }
.kpr-historique-course-link:hover { color: #ca131d; text-decoration: underline; }
.kpr-position-chip { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 34px; padding: 0 9px; border-radius: 999px; font-weight: 800; font-size: 0.92rem; background: #f2f2f2; color: #555; }
.kpr-position-chip.kpr-pos-1, .kpr-position-chip.kpr-pos-2, .kpr-position-chip.kpr-pos-3 { font-size: 1.35rem; }
.kpr-position-chip.kpr-pos-1 { background: #fdf6e3; border: 1.5px solid #e8a723; }
.kpr-position-chip.kpr-pos-2 { background: #f4f4f4; border: 1.5px solid #aaa; }
.kpr-position-chip.kpr-pos-3 { background: #fbeee1; border: 1.5px solid #c07a3f; }
@media (max-width: 600px) {
	.kpr-results-table th, .kpr-results-table td { padding: 10px 12px; font-size: 0.86rem; }
}

.kpr-coureur-header { display: flex; align-items: center; gap: 20px; }
.kpr-coureur-photo img { border-radius: 999px; width: 100px; height: 100px; object-fit: cover; }
.kpr-coureur-club { color: #666; }
.kpr-kokpei-score { font-weight: 700; color: #ca131d; }
.kpr-meilleure-perf { margin-top: 12px; }

.kpr-palmares-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin-top: 4px; }
.kpr-palmares-col-title { display: block; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #ca131d; margin-bottom: 2px; }
.kpr-palmares-col .kpr-cartouche-item { padding: 9px 0; gap: 10px; }
.kpr-palmares-col .kpr-cartouche-label { font-size: 0.68rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }\n.kpr-palmares-col .kpr-cartouche-item { justify-content: space-between; }\n.kpr-palmares-col .kpr-cartouche-value { flex-shrink: 0; }
.kpr-cartouche-emoji { font-size: 1.25em; vertical-align: -2px; display: inline-block; margin-right: 1px; }
@media (max-width: 560px) {
	.kpr-palmares-columns { grid-template-columns: 1fr; gap: 0; }
	.kpr-palmares-col + .kpr-palmares-col { margin-top: 8px; padding-top: 8px; border-top: 1px solid #f0f0f0; }
}
.kpr-cartouche-podium .kpr-cartouche-value { font-size: 1.08rem; }
.kpr-cartouche-podium-1 .kpr-cartouche-value { color: #a8710a; }
.kpr-cartouche-podium-2 .kpr-cartouche-value { color: #6b6b6b; }
.kpr-cartouche-podium-3 .kpr-cartouche-value { color: #93540f; }
.kpr-palmares-note { margin: 10px 0 0; font-size: 0.78rem; color: #999; line-height: 1.5; }
.kpr-meilleure-perf-box {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
	padding: 18px 20px;
	background: linear-gradient(135deg, #fff8ec, #fff);
	border: 1px solid #f3e6c8;
	border-radius: 16px;
}
.kpr-meilleure-perf-badge { font-size: 2rem; line-height: 1; flex: 0 0 auto; }
.kpr-meilleure-perf-kicker { display: block; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: #a8710a; margin-bottom: 4px; }
.kpr-meilleure-perf-main { margin: 0; font-size: 1.1rem; font-weight: 800; color: #1a202c; }
.kpr-meilleure-perf-pct { font-size: 0.85rem; font-weight: 700; color: #ca131d; margin-left: 6px; }
.kpr-meilleure-perf-sub { margin: 2px 0 0; font-size: 0.85rem; color: #777; }
.kpr-meilleure-perf-course-link { color: #777; font-weight: 700; text-decoration: none; }
.kpr-meilleure-perf-course-link:hover { color: #ca131d; text-decoration: underline; }
@media (max-width: 480px) {
	.kpr-meilleure-perf-box { flex-direction: column; align-items: flex-start; text-align: left; }
}

.kpr-classement-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.kpr-classement-nav a { padding: 6px 14px; border-radius: 999px; background: #f0f0f0; text-decoration: none; color: #333; font-size: 0.85rem; }
.kpr-classement-nav a.kpr-nav-active { background: #000; color: #fff; }

.kpr-classement-sexe-filter { display: flex; gap: 8px; margin-bottom: 24px; }
.kpr-classement-sexe-filter a { padding: 6px 16px; border-radius: 999px; border: 1px solid #ddd; text-decoration: none; color: #333; font-size: 0.85rem; font-weight: 600; }
.kpr-classement-sexe-filter a.kpr-nav-active { background: #000; color: #fff; border-color: #000; }

/* ===== Fiche course (refonte) ===== */
.kpr-course-single { max-width: 1000px; padding-top: 14px; }

.kpr-course-hero { text-align: center; margin-bottom: 24px; }
.kpr-course-hero-badges { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.kpr-badge-type { background: #f0f0f0; color: #333; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.kpr-badge-ffa { background: #fff4e0; color: #a8710a; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.kpr-course-hero h1 { font-size: 2.1rem; margin: 6px 0 10px; }
.kpr-course-hero-meta { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; color: #555; font-size: 0.95rem; }
.kpr-meta-item a { color: #ca131d; text-decoration: none; font-weight: 600; }
.kpr-meta-item a:hover { text-decoration: underline; }

.kpr-course-cartouche {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	background: linear-gradient(160deg, #ffffff, #f7f9fc);
	border: 1px solid #ececf1;
	border-radius: 20px;
	box-shadow: 0 6px 24px rgba(0,0,0,0.05);
	padding: 22px 26px;
	margin-bottom: 28px;
}
.kpr-cartouche-rows { display: flex; flex-direction: column; }
.kpr-cartouche-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	border-bottom: 1px solid #eef1f6;
}
.kpr-cartouche-rows .kpr-cartouche-item:last-child { border-bottom: none; }
.kpr-cartouche-icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	background: #f3f1ee;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ca131d;
	transition: background 0.25s ease, color 0.25s ease;
}
.kpr-cartouche-icon svg { width: 19px; height: 19px; }
.kpr-cartouche-text { display: flex; flex-direction: column; gap: 2px; }
.kpr-cartouche-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #888; font-weight: 600; }
.kpr-cartouche-value { font-size: 1.08rem; font-weight: 800; color: #1a202c; }
.kpr-cartouche-cta { margin-top: 18px; }
.kpr-cartouche-cta .kpr-btn-primary { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0.65em 1.8em; }

.kpr-btn { display: inline-block; padding: 0.6em 1.3em; border-radius: 30px; font-size: 0.9rem; font-weight: 700; text-decoration: none; transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.kpr-btn-primary { background: #111; color: #fff; }
.kpr-btn-primary:hover { background: #000 !important; color: #ffffff !important; transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }

.kpr-course-description { font-size: 1.02rem; line-height: 1.75; color: #333; }

.kpr-course-map { position: relative; isolation: isolate; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.kpr-course-trace-map-canvas { width: 100%; height: 340px; background: #eee; }
.kpr-course-trace-map .leaflet-popup-content { font-size: 0.85rem; font-weight: 600; }

.kpr-trace-marker { background: none; border: none; }
.kpr-trace-marker-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 4px 10px rgba(0,0,0,0.35);
}
.kpr-trace-marker-pin svg { width: 14px; height: 14px; transform: rotate(45deg); }
.kpr-trace-hover-dot { background: none !important; border: none !important; }
.kpr-trace-hover-dot span {
	display: block;
	box-sizing: border-box;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: #1a1a1a;
	border: 2px solid #fff;
	box-shadow: 0 1px 5px rgba(0,0,0,0.5);
}
.kpr-trace-hover-tooltip {
	background: #1a1a1a !important;
	color: #fff !important;
	border: none !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
	font-size: 0.72rem !important;
	font-weight: 700 !important;
	padding: 2px 7px !important;
	border-radius: 6px !important;
}
.kpr-trace-hover-tooltip::before { border-top-color: #1a1a1a !important; }

.kpr-course-trace-legend { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px 0; }
.kpr-course-trace-legend-item { display: inline-flex; align-items: center; gap: 6px; background: #f3f3f3; color: #666; border: 2px solid transparent; border-radius: 999px; padding: calc(0.35em - 2px) calc(0.9em - 2px); font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s; }
.kpr-course-trace-legend-item.is-active { background: #ececec; color: #222; }
.kpr-course-trace-legend-item.is-hovered { border-color: var(--trace-color, rgba(0,0,0,0.3)); transform: translateY(-1px); }
/* :hover reserve aux appareils avec une vraie souris : sur tactile, :hover reste "colle" apres
   un tap (pas de mouseleave naturel), ce qui laissait un anneau colore visible en permanence. */
@media (hover: hover) and (pointer: fine) {
	.kpr-course-trace-legend-item:hover { border-color: var(--trace-color, rgba(0,0,0,0.3)); transform: translateY(-1px); }
}
.kpr-course-trace-legend-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; opacity: 0.4; transition: opacity 0.15s; }
.kpr-course-trace-legend-item.is-active .kpr-course-trace-legend-dot { opacity: 1; }

.kpr-trace-profile { position: relative; margin-top: 0; padding: 14px 14px 8px; background: #fafafa; border-radius: 0 0 12px 12px; border: 1px solid #eee; border-top: none; }
.kpr-trace-profile-label { display: flex; align-items: baseline; justify-content: space-between; font-size: 0.82rem; font-weight: 700; color: #333; margin-bottom: 8px; }
.kpr-trace-profile-dplus { font-size: 0.76rem; font-weight: 700; color: #ca131d; }
.kpr-trace-profile-chart { width: 100%; min-height: 160px; }
.kpr-trace-profile-chart svg { display: block; cursor: crosshair; touch-action: pan-y; }
.kpr-profile-grid-h { stroke: #e6e6e6; stroke-width: 1; stroke-dasharray: 3,4; }
.kpr-profile-grid-v { stroke: #eee; stroke-width: 1; }
.kpr-profile-baseline { stroke: #ccc; stroke-width: 1; }
.kpr-trace-profile-cursor { stroke: #333; stroke-width: 1; }
.kpr-profile-axis-label { font-size: 10.5px; fill: #9a9a9a; font-weight: 600; font-family: inherit; letter-spacing: 0.01em; }
.kpr-trace-profile-tooltip { position: absolute; top: 16px; transform: translateX(-50%); background: #1a1a1a; color: #fff; font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.1s; }
.kpr-profile-grade-legend { display: flex; justify-content: flex-end; gap: 12px; margin-top: 4px; }
.kpr-profile-grade-legend span { display: inline-flex; align-items: center; gap: 4px; font-size: 0.68rem; font-weight: 600; color: #777; }
.kpr-profile-grade-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.kpr-section-card-map { padding-bottom: 12px; }

.kpr-formats-section .kpr-formats-grid { margin-top: 4px; }
.kpr-formats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.kpr-format-card { background: #fff; border: 1px solid #eaeaea; border-radius: 14px; padding: 20px; text-align: center; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.kpr-format-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.kpr-format-distance { display: block; font-size: 2rem; font-weight: 800; color: #ca131d; line-height: 1; }
.kpr-format-distance small { font-size: 1rem; font-weight: 600; margin-left: 2px; }
.kpr-format-card h3 { font-size: 1.05rem; margin: 6px 0 12px; }
.kpr-format-specs { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; color: #555; }
.kpr-format-gpx { display: inline-block; font-size: 0.85rem; font-weight: 600; color: #ca131d; text-decoration: none; }
.kpr-format-gpx:hover { text-decoration: underline; }
.kpr-format-gpx-absent { color: #999; font-weight: 400; font-style: italic; }

.kpr-editions-section .kpr-edition-switcher { margin-top: 4px; }
.kpr-edition-switcher { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.kpr-edition-pill { padding: 6px 16px; border-radius: 999px; background: #f0f0f0; color: #333; text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.kpr-edition-pill.is-active { background: #ca131d; color: #fff; }
.kpr-edition-pill:hover:not(.is-active) { background: #e2e2e2; }

.kpr-format-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 18px; }
.kpr-format-tab { padding: 8px 18px; border-radius: 10px 10px 0 0; background: #F7FAFC; color: #555; text-decoration: none; font-size: 0.9rem; font-weight: 600; border-bottom: 3px solid transparent; }
.kpr-format-tab.is-active { background: #fff; color: #ca131d; border-bottom-color: #ca131d; box-shadow: 0 -2px 8px rgba(0,0,0,0.05); }

.kpr-results-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid #f0f0f2;
}
.kpr-results-count { color: #666; font-size: 0.88rem; flex: 0 0 auto; white-space: nowrap; margin: 0; }

.kpr-results-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: 1 1 240px; min-width: 200px; margin: 0; }
.kpr-results-search input[type=search] { flex: 1 1 200px; padding: 0.55em 1em; border: 1px solid #ddd; border-radius: 30px; font-size: 0.9rem; }
.kpr-results-search button { width: 38px; height: 38px; padding: 0; border-radius: 50%; border: none; background: #000; color: #fff; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kpr-results-search button svg { width: 16px; height: 16px; }
.kpr-results-search button:hover { background: #333; }
.kpr-results-search-reset { font-size: 0.82rem; color: #666; text-decoration: underline; flex-shrink: 0; }

.kpr-results-pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 0; flex: 0 0 auto; }
#kpr-pagination-top { margin-left: auto; }
.kpr-results-pagination a { color: #ca131d; text-decoration: none; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.kpr-results-pagination a:hover { text-decoration: underline; }
.kpr-pagination-info { color: #666; font-size: 0.82rem; white-space: nowrap; }
#kpr-pagination-bottom { margin-top: 24px; }

@media (max-width: 780px) {
	.kpr-results-toolbar { flex-direction: column; align-items: stretch; gap: 8px; margin-bottom: 12px; padding-bottom: 12px; }
	.kpr-results-search { flex-basis: auto; min-width: 0; }
	#kpr-pagination-top { margin-left: 0; justify-content: space-between; }
}

@media (max-width: 600px) {
	.kpr-course-cartouche { grid-template-columns: 1fr 1fr; }
	.kpr-cartouche-item:nth-child(2) { border-left: none; }
}

/* Affiche edition + grille du haut de fiche */
.kpr-course-top-grid.has-affiche {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 26px;
	align-items: stretch;
	margin-bottom: 28px;
}
.kpr-course-top-grid.has-affiche .kpr-course-cartouche {
	margin-bottom: 0;
	height: 100%;
}
.kpr-course-affiche {
	height: 100%;
}
.kpr-course-affiche img {
	width: 100%;
	height: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(0,0,0,0.16);
}
@media (max-width: 680px) {
	.kpr-course-top-grid.has-affiche {
		grid-template-columns: 1fr;
	}
}

/* Etat de chargement AJAX */
#kpr-results-panel.is-loading {
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

/* ===== Fiche coureur (refonte) ===== */
.kpr-coureur-profil { max-width: 1000px; }

.kpr-coureur-hero-modern {
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
	background: #fafafa;
	border: 1px solid #eef0f3;
	border-radius: 22px;
	padding: 28px 34px;
	margin-bottom: 32px;
}
.kpr-coureur-avatar-wrap { flex: 0 0 auto; }
.kpr-coureur-avatar-placeholder {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #F7FAFC;
	border: 3px solid #fff;
	box-shadow: 0 4px 14px rgba(0,0,0,0.12);
	font-size: 2rem;
	font-weight: 800;
	color: #ca131d;
}
.kpr-coureur-identity h1 { margin: 0 0 6px; font-size: 1.9rem; }
.kpr-coureur-identity-meta { display: flex; gap: 10px; flex-wrap: wrap; color: #555; font-size: 0.92rem; }
.kpr-coureur-identity-meta .kpr-badge { background: #f0f0f0; padding: 3px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.kpr-badge-gender { display: inline-flex; align-items: center; gap: 6px; }
.kpr-badge-gender svg { width: 13px; height: 13px; flex: 0 0 auto; }
.kpr-badge-gender-h { background: #e7f0fa; color: #2b6cb0; }
.kpr-badge-gender-f { background: #fbe8f1; color: #d53f8c; }

/* Cartouche fusionne : indice Kok Pei + indices de performance */
.kpr-kokpei-card {
	position: relative;
	background: #ffffff;
	border: 1px solid #eef0f3;
	border-radius: 22px;
	box-shadow: 0 8px 28px rgba(17,17,17,0.05);
	padding: 32px 34px;
	margin-bottom: 32px;
	transition: box-shadow 0.2s ease;
}
.kpr-kokpei-card:hover { box-shadow: 0 12px 32px rgba(17,17,17,0.08); }
.kpr-kokpei-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	border-radius: 22px 22px 0 0;
	background: linear-gradient(90deg, #ca131d, #ff7a5c);
}
.kpr-kokpei-card-main {
	display: flex;
	align-items: center;
	gap: 28px;
	flex-wrap: wrap;
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid #f0e2e2;
}
.kpr-kokpei-gauge {
	position: relative;
	width: 150px;
	height: 86px;
	flex: 0 0 auto;
}
.kpr-has-tooltip { cursor: help; }
.kpr-has-tooltip::after,
.kpr-has-tooltip::before {
	position: absolute;
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
	z-index: 20;
}
.kpr-has-tooltip::after {
	content: attr(data-tooltip);
	bottom: 100%;
	margin-bottom: 10px;
	background: #1a202c;
	color: #fff;
	padding: 7px 13px;
	border-radius: 8px;
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.kpr-has-tooltip::before {
	content: '';
	bottom: 100%;
	margin-bottom: 5px;
	border: 6px solid transparent;
	border-top-color: #1a202c;
}
.kpr-has-tooltip:hover::after,
.kpr-has-tooltip:hover::before {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
.kpr-kokpei-gauge-bg,
.kpr-kokpei-gauge-fill {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: center;
	mask-position: center;
}
.kpr-kokpei-gauge-bg { background: #9a9a9a; opacity: 1; }
.kpr-kokpei-gauge-fill { transition: clip-path 0.8s ease; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.kpr-kokpei-gauge-fill.kpr-gauge-gender-h { background: linear-gradient(180deg, #5b9bd9, #2b6cb0); }
.kpr-kokpei-gauge-fill.kpr-gauge-gender-f { background: linear-gradient(180deg, #ee85b5, #d53f8c); }
.kpr-kokpei-gauge-fill.kpr-gauge-gender-default { background: linear-gradient(180deg, #444, #111); }
.kpr-kokpei-info { flex: 1 1 240px; }
.kpr-kokpei-kicker { display: block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; color: #ca131d; margin-bottom: 4px; }
.kpr-kokpei-value { font-size: 2.6rem; font-weight: 800; color: #111; margin: 0 0 10px; line-height: 1; }
.kpr-kokpei-value small { font-size: 1rem; font-weight: 600; color: #999; }
.kpr-kokpei-ranks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.kpr-kokpei-rank-pill { background: #1a202c; color: #fff; font-size: 0.78rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.kpr-kokpei-rank-pill.kpr-kokpei-rank-secondary { background: #f2f2f4; color: #444; }
.kpr-kokpei-top-pill { background: #c05621; color: #fff; }
.kpr-rank-gender-icon { display: inline-flex; vertical-align: -2px; }
.kpr-rank-gender-icon svg { width: 11px; height: 11px; }
.kpr-kokpei-link { display: inline-block; font-size: 0.85rem; font-weight: 700; color: #111; text-decoration: underline; }

.kpr-kokpei-subscores { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 28px; }
.kpr-subscore-mini-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; font-weight: 600; color: #333; margin-bottom: 6px; }
.kpr-subscore-mini-label { display: flex; align-items: center; gap: 8px; }
.kpr-subscore-mini-icon { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; font-size: 0.85rem; flex-shrink: 0; }
.kpr-subscore-mini { cursor: help; }
.kpr-subscore-mini-value { color: #ca131d; font-weight: 800; }
.kpr-subscore-mini-bar { display: block; height: 8px; background: #f1e6e6; border-radius: 999px; overflow: hidden; }
.kpr-subscore-mini-bar-fill { display: block; height: 100%; background: linear-gradient(90deg, #ffce00, #ca131d); border-radius: 999px; }

.kpr-medal { font-size: 1.15rem; }

@media (max-width: 600px) {
	.kpr-coureur-hero-modern { padding: 24px 20px; border-radius: 18px; justify-content: center; text-align: center; }
	.kpr-kokpei-card { padding: 24px 20px; border-radius: 18px; }
	.kpr-kokpei-card::before { border-radius: 18px 18px 0 0; }
	.kpr-kokpei-card-main { justify-content: center; text-align: center; }
	.kpr-kokpei-info { flex-basis: 100%; }
	.kpr-kokpei-ranks { justify-content: center; }
	.kpr-kokpei-subscores { grid-template-columns: 1fr; }
}

/* Cartouche de statistiques finishers (en-tete des resultats) */
.kpr-results-stats {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px;
	background: #f7f7f7;
	border-radius: 14px;
	padding: 20px 24px;
	margin-bottom: 20px;
}
.kpr-stat-total {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding-right: 24px;
	border-right: 1px solid #e0e0e0;
}
.kpr-stat-total-value {
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1;
	color: #111;
}
.kpr-stat-total-label {
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #777;
	margin-top: 4px;
}
.kpr-stat-gauges {
	flex: 1 1 220px;
	min-width: 220px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.kpr-stat-gauge-row {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.85rem;
}
.kpr-stat-gauge-label {
	width: 98px;
	flex-shrink: 0;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.kpr-stat-gauge-track {
	flex: 1;
	height: 10px;
	background: #e2e2e2;
	border-radius: 6px;
	overflow: hidden;
}
.kpr-stat-gauge-fill {
	display: block;
	height: 100%;
	border-radius: 6px;
	transition: width 0.5s ease;
}
.kpr-stat-gauge-fill.kpr-gauge-h { background: #2b6cb0; }
.kpr-stat-gauge-fill.kpr-gauge-f { background: #d53f8c; }
.kpr-stat-gauge-value {
	width: 92px;
	flex-shrink: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.kpr-stat-minis {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	padding-left: 24px;
	border-left: 1px solid #e0e0e0;
}
.kpr-stat-mini {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 68px;
}
.kpr-stat-mini-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	border-radius: 50%;
	color: #fff;
	box-shadow: 0 3px 8px rgba(0,0,0,0.12);
	line-height: 1;
}
.kpr-stat-mini-icon svg { width: 14px; height: 14px; }
.kpr-stat-mini-icon-record.kpr-gender-h { background: #2b6cb0; }
.kpr-stat-mini-icon-record.kpr-gender-f { background: #d53f8c; }
.kpr-stat-mini-icon-neutral { background: #3a3a3a; }
.kpr-stat-mini-value { font-weight: 700; font-size: 0.95rem; margin-top: 2px; }
.kpr-stat-mini-label {
	font-size: 0.62rem;
	color: #777;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin-top: 1px;
	text-align: center;
}

@media (max-width: 700px) {
	.kpr-results-stats { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; }
	.kpr-stat-total { border-right: none; border-bottom: 1px solid #e0e0e0; padding-right: 0; padding-bottom: 8px; }
	.kpr-stat-gauges { flex-basis: auto; gap: 6px; }
	.kpr-stat-minis { border-left: none; padding-left: 0; justify-content: space-around; gap: 8px 14px; }
}

/* Pictos H/F : icones SVG nettes (remplacent les glyphes unicode peu lisibles) */
.kpr-gender-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	color: #fff;
	flex-shrink: 0;
	box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.kpr-gender-icon svg { width: 14px; height: 14px; }
.kpr-gender-icon.kpr-gender-h { background: #2b6cb0; }
.kpr-gender-icon.kpr-gender-f { background: #d53f8c; }

/* Compense le header sticky Kadence (~136px) lors du scroll vers le cartouche de stats */
.kpr-results-stats, #kpr-results-panel, .kpr-results-toolbar, .kpr-table-scroll { scroll-margin-top: 150px; }


.kpr-back-to-list { margin-bottom: 14px; }
.kpr-back-to-list a { font-size: 0.85rem; font-weight: 600; color: #666; text-decoration: none; }
.kpr-back-to-list a:hover { color: #ca131d; }


/* Affiche : lien lightbox */
.kpr-course-affiche .kpr-affiche-lightbox-trigger {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: none;
	background: none;
	cursor: zoom-in;
	font: inherit;
	text-align: left;
}
.kpr-affiche-zoom-hint {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.25);
	opacity: 0;
	transition: opacity 0.25s ease;
	border-radius: 18px;
}
.kpr-affiche-zoom-hint svg {
	width: 34px;
	height: 34px;
	color: #fff;
	filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}
.kpr-course-affiche a.kpr-affiche-lightbox-trigger:hover .kpr-affiche-zoom-hint {
	opacity: 1;
}

/* Lightbox plein ecran */
.kpr-lightbox-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: rgba(10,10,10,0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}
.kpr-lightbox-overlay.is-visible { opacity: 1; }
.kpr-lightbox-overlay img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.kpr-lightbox-close {
	position: absolute;
	top: 24px;
	right: 28px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255,255,255,0.12);
	border: none;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}
.kpr-lightbox-close:hover { background: rgba(255,255,255,0.25); }
.kpr-lightbox-close svg { width: 20px; height: 20px; }

/* ===== Calendrier des courses (refonte liste + carte) ===== */
.kpr-calendrier-v2 { max-width: 1200px; }

.kpr-cal-toolbar {
	display: flex;
	align-items: center;
	background: #f7f7f8;
	border-radius: 16px;
	padding: 14px 20px;
	margin-bottom: 14px;
}
.kpr-cal-filters {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: center;
	width: 100%;
	overflow-x: auto;
	padding-bottom: 2px;
	scrollbar-width: thin;
}
.kpr-cal-search-wrap { position: relative; flex: 1 1 180px; min-width: 160px; }
.kpr-cal-search-wrap svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: #999; pointer-events: none; }
.kpr-cal-search-wrap input[type=search] { width: 100%; padding: 0.55em 0.9em 0.55em 2.2em; border-radius: 30px; border: 1px solid #ddd; font-size: 0.86rem; box-sizing: border-box; }
.kpr-cal-toolbar select {
	flex-shrink: 0;
	padding: 0.55em 0.9em;
	border-radius: 30px;
	border: 1px solid #ddd;
	font-size: 0.83rem;
	background: #fff;
	cursor: pointer;
}
.kpr-cal-toggle, .kpr-cal-reset-btn { flex-shrink: 0; }

.kpr-cal-subbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 14px;
}
.kpr-cal-toggle { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: #333; cursor: pointer; user-select: none; }
.kpr-cal-toggle input { accent-color: #ca131d; width: 16px; height: 16px; cursor: pointer; }

.kpr-cal-reset-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	background: none;
	border: 1px solid #ddd;
	border-radius: 30px;
	padding: 0.5em 1em;
	font-size: 0.82rem;
	font-weight: 700;
	color: #666;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kpr-cal-reset-btn svg { width: 13px; height: 13px; }
.kpr-cal-reset-btn:hover { background: #fff; color: #ca131d; border-color: #ca131d; }

.kpr-cal-view-toggle { display: flex; background: #fff; border-radius: 999px; padding: 4px; border: 1px solid #e2e2e2; flex-shrink: 0; }
.kpr-cal-view-toggle button {
	display: flex;
	align-items: center;
	gap: 6px;
	border: none;
	background: transparent;
	padding: 8px 16px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 700;
	color: #666;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}
.kpr-cal-view-toggle button svg { width: 15px; height: 15px; }
.kpr-cal-view-toggle button.is-active { background: #111; color: #fff; }

.kpr-cal-count { color: #777; font-size: 0.85rem; margin-bottom: 14px; }

.kpr-cal-view { display: none; }
.kpr-cal-view.is-active { display: block; }

.kpr-cal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
}
.kpr-cal-card {
	display: block;
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0,0,0,0.07);
	text-decoration: none;
	color: inherit;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.kpr-cal-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0,0,0,0.14); }
.kpr-cal-card-media {
	position: relative;
	height: 230px;
	background-color: #232323;
	background-image: linear-gradient(135deg, #2b2b2b, #4a4a4a);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 14px;
}
.kpr-cal-card-media.has-affiche {
	background-size: contain;
	background-repeat: no-repeat;
}
.kpr-cal-card-media.has-map {
	filter: saturate(0.85);
	position: relative;
	overflow: hidden;
}
.kpr-cal-card-pin {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -100%);
	width: 30px;
	height: 38px;
	filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
	pointer-events: none;
}
.kpr-cal-card-pin svg {
	width: 100%;
	height: 100%;
	fill: #d64545;
	stroke: #fff;
}
.kpr-cal-card-date {
	background: #fff;
	border-radius: 10px;
	padding: 6px 10px;
	text-align: center;
	line-height: 1.1;
	box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.kpr-cal-card-date-d { display: block; font-size: 1.15rem; font-weight: 800; color: #111; }
.kpr-cal-card-date-m { display: block; font-size: 0.65rem; text-transform: uppercase; color: #ca131d; font-weight: 700; letter-spacing: 0.03em; }
.kpr-cal-card-date-y { display: block; font-size: 0.6rem; color: #999; font-weight: 600; letter-spacing: 0.02em; }
.kpr-cal-badge-past { background: rgba(0,0,0,0.55); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.kpr-cal-card-body { padding: 16px 18px 18px; }
.kpr-cal-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.kpr-cal-card-lieu { margin: 0 0 10px; color: #777; font-size: 0.85rem; }
.kpr-cal-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.kpr-cal-card-tags .kpr-tag { background: #f2f2f2; color: #444; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.kpr-cal-card-tags .kpr-tag-ffa { background: #fff4e0; color: #b7791f; }

.kpr-cal-empty { text-align: center; padding: 60px 20px; color: #777; }
.kpr-cal-empty button { margin-left: 8px; background: #111; color: #fff; border: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; cursor: pointer; }

#kpr-cal-map { height: 600px; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.08); z-index: 1; }
.leaflet-popup-content-wrapper.kpr-map-popup-wrap, .kpr-map-popup-wrap .leaflet-popup-content-wrapper { padding: 0; border-radius: 14px; overflow: hidden; }
.kpr-map-popup-wrap .leaflet-popup-content { margin: 0; width: 220px !important; }
.kpr-map-popup-wrap .leaflet-popup-tip { display: none; }
.kpr-map-popup {
	display: block;
	text-decoration: none;
	color: inherit;
}
.kpr-map-popup-media {
	height: 110px;
	background-color: #232323;
	background-image: linear-gradient(135deg, #2b2b2b, #4a4a4a);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}
.kpr-map-popup-media.has-affiche { background-size: contain; }
.kpr-map-popup-body { padding: 12px 14px 14px; }
.kpr-map-popup-body h4 { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.3; color: #111; }
.kpr-map-popup-meta { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 0.78rem; color: #777; }
.kpr-map-popup-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.kpr-map-popup-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.kpr-map-popup-tags .kpr-tag { background: #f2f2f2; color: #444; font-size: 0.65rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.kpr-map-popup-link { display: inline-block; font-size: 0.8rem; font-weight: 700; color: #ca131d; transition: color 0.2s ease, transform 0.2s ease; }
.kpr-map-popup:hover .kpr-map-popup-link { color: #111; transform: translateX(3px); }
.kpr-map-popup:hover .kpr-map-popup-body h4 { color: #ca131d; }
.kpr-map-popup-body h4 { transition: color 0.2s ease; }

/* Picto de marqueur personnalise (montagne, identite du site) */
.kpr-map-marker { background: none; border: none; }
.kpr-map-marker-pin {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	background: #ca131d;
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	box-shadow: 0 4px 10px rgba(0,0,0,0.35);
	transition: transform 0.2s ease;
}
.kpr-map-marker-pin svg {
	width: 16px;
	height: 16px;
	transform: rotate(45deg);
}
.leaflet-marker-icon.kpr-map-marker:hover .kpr-map-marker-pin {
	transform: rotate(-45deg) scale(1.15);
}

@media (max-width: 680px) {
	.kpr-cal-toolbar { align-items: stretch; }
	.kpr-cal-filters { flex-direction: column; flex-wrap: nowrap; overflow-x: visible; align-items: stretch; }
	.kpr-cal-search-wrap { flex: 1 1 auto; min-width: 0; }
	.kpr-cal-search-wrap input, .kpr-cal-toolbar select { width: 100%; }
	.kpr-cal-subbar { flex-wrap: wrap; }
	#kpr-cal-map { height: 420px; }
}

/* Navigation laterale flottante de la fiche course (style timeline/stepper moderne) */
.kpr-course-dotnav {
	position: fixed;
	right: 26px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 40;
	display: flex;
	flex-direction: column;
	background: rgba(255,255,255,0.86);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	border: 1px solid rgba(17,17,17,0.06);
	border-radius: 18px;
	padding: 14px 10px;
	box-shadow: 0 16px 40px rgba(17,17,17,0.1);
}
.kpr-course-dotnav a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 9px 16px 9px 6px;
	border-radius: 10px;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #a3a3a3;
	text-decoration: none;
	white-space: nowrap;
	transition: color 0.2s ease, background 0.2s ease;
}
.kpr-course-dotnav a:hover { color: #333; background: #f7f7f7; }
.kpr-course-dotnav a.is-active { color: #111; }
.kpr-dotnav-dot {
	position: relative;
	flex-shrink: 0;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #e2e2e2;
	transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.kpr-course-dotnav a:not(:last-child) .kpr-dotnav-dot::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	height: 24px;
	background: #ececec;
}
.kpr-course-dotnav a:hover .kpr-dotnav-dot { background: #ca131d; }
.kpr-course-dotnav a.is-active .kpr-dotnav-dot {
	background: #ca131d;
	transform: scale(1.5);
	box-shadow: 0 0 0 5px rgba(202,19,29,0.14);
}

#kpr-section-infos, #kpr-section-description, #kpr-section-carte, #kpr-section-formats, #kpr-section-resultats {
	scroll-margin-top: 140px;
}

@media (max-width: 1180px) {
	.kpr-course-dotnav { display: none; }
}

/* Cartes de section uniformes (Description / Carte / Formats / Resultats) : separation visuelle claire */
.kpr-section-infos { margin-bottom: 32px; }
.kpr-section-card {
	background: #fff;
	border: 1px solid #eef0f3;
	border-radius: 22px;
	box-shadow: 0 8px 28px rgba(17,17,17,0.05);
	padding: 32px 34px;
	margin-bottom: 32px;
}
.kpr-section-kicker {
	display: block;
	font-size: 0.7rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: #ca131d;
	margin-bottom: 6px;
}
.kpr-section-title { margin: 0 0 20px; font-size: 1.4rem; text-align: left; }
@media (max-width: 600px) {
	.kpr-section-card { padding: 24px 20px; border-radius: 18px; }
}

/* Lien cartouche "Formats" -> ancre #kpr-section-formats */
.kpr-cartouche-item-link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	border-radius: 10px;
	margin: 0 -10px;
	padding-left: 10px;
	padding-right: 10px;
	transition: background 0.2s ease;
}
.kpr-cartouche-item-link:hover { background: #faf5f5; }
.kpr-cartouche-item-link:hover .kpr-cartouche-icon { background: #ca131d; color: #fff; }
.kpr-cartouche-item-link:hover .kpr-cartouche-value { color: #ca131d; }
.kpr-cartouche-chevron {
	margin-left: auto;
	flex-shrink: 0;
	color: #ccc;
	transition: transform 0.2s ease, color 0.2s ease;
}
.kpr-cartouche-chevron svg { width: 16px; height: 16px; }
.kpr-cartouche-item-link:hover .kpr-cartouche-chevron { color: #ca131d; transform: translateX(3px); }
/* ===== Evolution de la performance (fiche coureur) ===== */
.kpr-evolution-card {
	background: linear-gradient(160deg, #ffffff, #fff6f6);
	border: 1px solid #f2e4e4;
	border-radius: 22px;
	box-shadow: 0 8px 28px rgba(17,17,17,0.05);
	padding: 32px 34px 24px;
	margin-bottom: 32px;
}
.kpr-evolution-header { margin-bottom: 6px; }
.kpr-evolution-header h2 { margin: 0 0 4px; font-size: 1.3rem; }
.kpr-evolution-sub { margin: 0 0 14px; font-size: 0.88rem; color: #777; }
.kpr-evolution-insights { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.kpr-evolution-insight { display: flex; align-items: center; gap: 10px; background: #faf7f6; border: 1px solid #f0e6e4; border-radius: 14px; padding: 10px 16px; }
.kpr-evolution-insight-icon { font-size: 1.3rem; line-height: 1; }
.kpr-evolution-insight-label { display: block; font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.06em; color: #999; font-weight: 700; }
.kpr-evolution-insight-value { display: block; font-size: 0.95rem; font-weight: 800; color: #1a202c; margin-top: 1px; }
.kpr-evolution-insight-trend.kpr-trend-up .kpr-evolution-insight-value { color: #2f855a; }
.kpr-evolution-insight-trend.kpr-trend-down .kpr-evolution-insight-value { color: #ca131d; }
.kpr-evolution-svg { width: 100%; height: auto; display: block; overflow: visible; }
.kpr-evolution-band-top { fill: #2f855a; opacity: 0.05; }
.kpr-evolution-band-mid { fill: #dd8b1f; opacity: 0.05; }
.kpr-evolution-band-low { fill: #ca131d; opacity: 0.05; }
.kpr-evolution-gridline { stroke: #f0e2e2; stroke-width: 1; stroke-dasharray: 4 4; }
.kpr-evolution-axis-label { font-size: 9px; fill: #aaa; }
.kpr-evolution-year-label { font-size: 11px; font-weight: 700; fill: #777; }
.kpr-evolution-point-group { cursor: help; }
.kpr-evolution-dot { fill: #ca131d; stroke: #fff; stroke-width: 2; transition: fill 0.15s ease; }
.kpr-evolution-point-group:hover .kpr-evolution-dot { fill: #ff7a5c; }
.kpr-evolution-note { margin: 12px 0 4px; font-size: 0.85rem; color: #888; font-style: italic; }

@media (max-width: 600px) {
	.kpr-evolution-card { padding: 24px 20px 16px; border-radius: 18px; }
	.kpr-evolution-insight { padding: 8px 12px; }
}

/* ===== Resultats croises (page 'resultats-courses-reunion') ===== */
.kpr-resultats-page { max-width: 1200px; }

.kpr-resultats-page .kpr-resultats-filters {
	background: #f7f7f8;
	border-radius: 16px;
	padding: 14px 20px;
	margin-bottom: 20px;
}
.kpr-resultats-page .kpr-resultats-filters-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}
.kpr-resultats-page .kpr-resultats-search-input {
	flex: 1 1 200px;
	min-width: 160px;
	padding: 0.55em 0.9em;
	border-radius: 30px;
	border: 1px solid #ddd;
	font-size: 0.86rem;
	box-sizing: border-box;
}
.kpr-resultats-page .kpr-resultats-filters-row select {
	flex-shrink: 0;
	padding: 0.55em 0.9em;
	border-radius: 30px;
	border: 1px solid #ddd;
	font-size: 0.83rem;
	background: #fff;
	cursor: pointer;
	max-width: 200px;
}
.kpr-resultats-page .kpr-resultats-filter-submit {
	flex-shrink: 0;
	padding: 0.55em 1.4em;
}
.kpr-resultats-page .kpr-resultats-reset-btn {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	background: none;
	border: 1px solid #ddd;
	border-radius: 30px;
	padding: 0.5em 1em;
	font-size: 0.82rem;
	font-weight: 700;
	color: #666;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.kpr-resultats-page .kpr-resultats-reset-btn:hover { background: #fff; color: #ca131d; border-color: #ca131d; }

.kpr-resultats-page #kpr-resultats-panel-wrap.is-loading { opacity: 0.5; transition: opacity 0.2s ease; }
#kpr-classement-app.is-loading { opacity: 0.5; transition: opacity 0.2s ease; }
.kpr-classement-nav-icon { margin-right: 4px; }
.kpr-classement-card { padding-top: 24px; }

@media (max-width: 680px) {
	.kpr-resultats-page .kpr-resultats-filters-row { flex-direction: column; align-items: stretch; }
	.kpr-resultats-page .kpr-resultats-search-input,
	.kpr-resultats-page .kpr-resultats-filters-row select,
	.kpr-resultats-page .kpr-resultats-filter-submit,
	.kpr-resultats-page .kpr-resultats-reset-btn { width: 100%; max-width: none; box-sizing: border-box; text-align: center; }
}
.kpr-tcr-etapes-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}
.kpr-tcr-etape-link {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,0.15);
	color: inherit;
	text-decoration: none;
	font-size: 0.9rem;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}
.kpr-tcr-etape-link:hover {
	background-color: rgba(255,255,255,0.08);
}
.kpr-tcr-etape-link.is-active {
	background-color: var(--kpr-accent, #e8532c);
	border-color: transparent;
	color: #fff;
	font-weight: 600;
	cursor: default;
	pointer-events: none;
}
