/* ===== STYLES POUR LA LISTE DES COURSES ===== */

.race-list-container {
	margin: 20px auto;
	max-width: 1200px;
	font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header de la page */
.race-list-header {
	background: linear-gradient(135deg, rgba(129, 199, 132, 0.15) 0%, rgba(102, 187, 106, 0.2) 100%);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	border: 1px solid rgba(129, 199, 132, 0.3);
	padding: 60px 40px;
	margin-bottom: 40px;
	border-radius: 30px;
	box-shadow: 0 10px 40px rgba(76, 175, 80, 0.15);
	text-align: center;
	position: relative;
	overflow: hidden;
}

.race-list-header::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(165, 214, 167, 0.2) 0%, transparent 70%);
	animation: liquid-move 20s ease-in-out infinite;
}

@keyframes liquid-move {
	0%, 100% { transform: translate(0, 0) rotate(0deg); }
	50% { transform: translate(30px, 30px) rotate(180deg); }
}

.race-list-header > * {
	position: relative;
	z-index: 1;
}

.race-list-header h1 {
	margin: 0 0 15px 0;
	font-size: 48px;
	font-weight: 800;
	background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -1px;
}

.race-list-header p {
	margin: 0;
	font-size: 19px;
	color: #388E3C;
	font-weight: 500;
}

/* Section mois */
.month-section {
	margin-bottom: 60px;
}

.month-title {
	font-size: 34px;
	font-weight: 800;
	color: #388E3C;
	margin: 0 0 35px 0;
	padding: 20px 25px;
	background: linear-gradient(90deg, rgba(129, 199, 132, 0.15) 0%, transparent 100%);
	border-left: 5px solid #66BB6A;
	border-radius: 12px;
}

/* Grille des courses */
.races-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
	gap: 30px;
}

/* Carte de course - Liquid Glass */
.race-card {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border: 1px solid rgba(129, 199, 132, 0.25);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(76, 175, 80, 0.12);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.race-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 5px;
	background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.race-card:hover::before {
	transform: scaleX(1);
}

.race-card:hover {
	transform: translateY(-12px);
	box-shadow: 0 20px 60px rgba(76, 175, 80, 0.25);
	border-color: rgba(129, 199, 132, 0.5);
}

/* Badge de date */
.race-date-badge {
	background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
	color: white;
	padding: 25px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.day-name {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-weight: 700;
	opacity: 0.95;
}

.day-number {
	font-size: 42px;
	font-weight: 900;
	line-height: 1;
}

/* Contenu de la carte */
.race-content {
	padding: 30px;
}

.race-title {
	margin: 0 0 22px 0;
	font-size: 23px;
	font-weight: 700;
	color: #2E7D32;
	line-height: 1.3;
}

.race-info {
	margin: 14px 0;
	font-size: 15px;
	color: #555;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.race-info.participants {
	color: #4CAF50;
	font-weight: 700;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 2px solid rgba(129, 199, 132, 0.2);
}

.info-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.race-info strong {
	color: #388E3C;
}

/* Bouton voir les résultats */
.view-results-btn {
	display: inline-block;
	margin-top: 22px;
	padding: 14px 32px;
	background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
	color: white;
	text-decoration: none;
	border-radius: 50px;
	font-weight: 700;
	font-size: 15px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

.view-results-btn:hover {
	transform: translateX(8px);
	box-shadow: 0 8px 30px rgba(76, 175, 80, 0.45);
	background: linear-gradient(135deg, #388E3C 0%, #4CAF50 100%);
	color: white;
}


/* ===== STYLES POUR L'AFFICHAGE DES RÉSULTATS ===== */

.race-results-container {
	margin: 20px auto;
	max-width: 1200px;
	font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Design Liquid Glass pour les infos de course */
.race-results-container .race-info {
	background: linear-gradient(135deg, rgba(129, 199, 132, 0.15) 0%, rgba(102, 187, 106, 0.2) 100%);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	border: 1px solid rgba(129, 199, 132, 0.3);
	padding: 40px;
	margin-bottom: 35px;
	border-radius: 28px;
	box-shadow: 0 10px 40px rgba(76, 175, 80, 0.15);
	position: relative;
	overflow: hidden;
}

.race-results-container .race-info::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(165, 214, 167, 0.15) 0%, transparent 70%);
	animation: liquid-move 20s ease-in-out infinite;
}

.race-results-container .race-info > * {
	position: relative;
	z-index: 1;
}

.race-results-container .race-info h2 {
	margin-top: 0;
	font-size: 36px;
	font-weight: 800;
	margin-bottom: 22px;
	background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 50%, #81C784 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	letter-spacing: -0.5px;
}

.race-results-container .race-info p {
	margin: 12px 0;
	font-size: 16px;
	color: #388E3C;
	font-weight: 500;
}

.race-results-container .race-info strong {
	color: #2E7D32;
	font-weight: 700;
}

/* Barre de recherche unique - Liquid Glass */
.search-container {
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border: 1px solid rgba(129, 199, 132, 0.25);
	padding: 35px;
	margin-bottom: 35px;
	border-radius: 24px;
	box-shadow: 0 10px 40px rgba(76, 175, 80, 0.12);
}

.search-container h3 {
	margin: 0 0 20px 0;
	color: #388E3C;
	font-size: 19px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 10px;
}

.search-wrapper {
	position: relative;
	width: 100%;
}

.search-icon {
	position: absolute;
	left: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	color: #66BB6A;
}

#global-search {
	width: 100%;
	padding: 18px 22px 18px 60px;
	border: 2px solid rgba(129, 199, 132, 0.3);
	border-radius: 50px;
	font-size: 16px;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 5px 20px rgba(76, 175, 80, 0.08);
}

#global-search:focus {
	outline: none;
	border-color: #66BB6A;
	background: rgba(255, 255, 255, 1);
	box-shadow: 0 6px 30px rgba(76, 175, 80, 0.2), 
				0 0 0 4px rgba(129, 199, 132, 0.15);
}

#global-search::placeholder {
	color: #999;
}

/* Tableau - Liquid Glass */
.table-wrapper {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border: 1px solid rgba(129, 199, 132, 0.2);
	border-radius: 24px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(76, 175, 80, 0.15);
}

.race-results-table {
	width: 100%;
	border-collapse: collapse;
}

.race-results-table thead {
	background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
	backdrop-filter: blur(10px);
	color: white;
}

.race-results-table th {
	padding: 20px 16px;
	text-align: left;
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.race-results-table td {
	padding: 18px 16px;
	border-bottom: 1px solid rgba(129, 199, 132, 0.15);
	font-size: 15px;
	color: #333;
}

.race-results-table tbody tr {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	background: rgba(255, 255, 255, 0.6);
}

.race-results-table tbody tr:hover {
	background: rgba(165, 214, 167, 0.25);
	transform: scale(1.005);
}

.race-results-table tbody tr:nth-child(even) {
	background: rgba(255, 255, 255, 0.4);
}

.race-results-table tbody tr:nth-child(even):hover {
	background: rgba(165, 214, 167, 0.25);
}

/* Médailles avec effet glass */
.medal {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-weight: bold;
	font-size: 17px;
	margin-right: 10px;
	vertical-align: middle;
	backdrop-filter: blur(8px);
}

.medal-gold {
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.95) 0%, rgba(255, 237, 78, 0.95) 100%);
	color: #8b6914;
	box-shadow: 0 5px 20px rgba(255, 215, 0, 0.7);
	border: 1px solid rgba(255, 215, 0, 0.6);
}

.medal-silver {
	background: linear-gradient(135deg, rgba(192, 192, 192, 0.95) 0%, rgba(232, 232, 232, 0.95) 100%);
	color: #5a5a5a;
	box-shadow: 0 5px 20px rgba(192, 192, 192, 0.7);
	border: 1px solid rgba(192, 192, 192, 0.6);
}

.medal-bronze {
	background: linear-gradient(135deg, rgba(205, 127, 50, 0.95) 0%, rgba(212, 165, 116, 0.95) 100%);
	color: #4a2f1a;
	box-shadow: 0 5px 20px rgba(205, 127, 50, 0.7);
	border: 1px solid rgba(205, 127, 50, 0.6);
}

.rank-cell {
	font-weight: 800;
	color: #2E7D32;
}

/* Message aucun résultat */
.no-results {
	text-align: center;
	padding: 60px;
	color: #888;
	font-size: 16px;
	background: rgba(255, 255, 255, 0.6);
}

/* Message d'erreur */
.race-error-message {
	background: rgba(255, 193, 7, 0.18);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border: 1px solid rgba(255, 193, 7, 0.35);
	padding: 45px;
	margin: 20px auto;
	max-width: 600px;
	border-radius: 24px;
	box-shadow: 0 10px 40px rgba(255, 193, 7, 0.15);
	text-align: center;
}

.race-error-message p {
	font-size: 18px;
	color: #856404;
	margin: 0 0 22px 0;
}


/* ===== STYLES POUR L'AFFICHAGE D'ÉVÉNEMENT AVEC ONGLETS ===== */

.event-results-container {
	margin: 20px auto;
	max-width: 1400px;
	font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header de l'événement */
.event-header {
	background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
	color: white;
	padding: 50px;
	border-radius: 30px 30px 0 0;
	margin-bottom: 0;
	position: relative;
	overflow: hidden;
}

.event-header::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -10%;
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
	border-radius: 50%;
}

.event-header-content {
	position: relative;
	z-index: 1;
}

.back-link {
	display: inline-flex;
	align-items: center;
	color: rgba(255, 255, 255, 0.95);
	text-decoration: none;
	font-size: 15px;
	margin-bottom: 18px;
	transition: all 0.3s ease;
	font-weight: 600;
}

.back-link:hover {
	color: white;
	transform: translateX(-8px);
}

.event-title {
	margin: 0 0 25px 0;
	font-size: 48px;
	font-weight: 900;
	color: white;
	text-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
	letter-spacing: -1px;
}

.event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	font-size: 17px;
	opacity: 0.98;
}

.event-meta span {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

/* Onglets des courses */
.race-tabs-container {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(15px);
	border-bottom: 2px solid rgba(129, 199, 132, 0.25);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 3px 15px rgba(76, 175, 80, 0.1);
}

.race-tabs {
	display: flex;
	overflow-x: auto;
	gap: 8px;
	padding: 0;
	scrollbar-width: thin;
	scrollbar-color: rgba(129, 199, 132, 0.4) transparent;
}

.race-tabs::-webkit-scrollbar {
	height: 5px;
}

.race-tabs::-webkit-scrollbar-track {
	background: transparent;
}

.race-tabs::-webkit-scrollbar-thumb {
	background: rgba(129, 199, 132, 0.4);
	border-radius: 3px;
}

.race-tab {
	flex: 0 0 auto;
	min-width: 220px;
	padding: 22px 28px;
	text-decoration: none;
	color: #555;
	border-bottom: 4px solid transparent;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	flex-direction: column;
	gap: 6px;
	background: transparent;
	position: relative;
}

.race-tab::before {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 0;
	background: rgba(129, 199, 132, 0.08);
	transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.race-tab:hover::before {
	height: 100%;
}

.race-tab:hover {
	color: #2E7D32;
}

.race-tab.active {
	color: #2E7D32;
	border-bottom-color: #66BB6A;
	font-weight: 700;
	background: rgba(129, 199, 132, 0.12);
}

.tab-distance {
	font-size: 22px;
	font-weight: 800;
	color: #4CAF50;
}

.tab-name {
	font-size: 14px;
	font-weight: 600;
}

.tab-participants {
	font-size: 12px;
	color: #888;
	font-weight: 500;
}

/* Statistiques */
.race-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 25px;
	padding: 35px;
	background: linear-gradient(135deg, rgba(129, 199, 132, 0.05) 0%, rgba(165, 214, 167, 0.08) 100%);
}

.stat-card {
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(25px);
	border: 1px solid rgba(129, 199, 132, 0.2);
	border-radius: 20px;
	padding: 30px;
	display: flex;
	align-items: center;
	gap: 22px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 5px 20px rgba(76, 175, 80, 0.08);
}

.stat-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(76, 175, 80, 0.2);
}

.stat-icon {
	font-size: 44px;
	width: 70px;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, rgba(129, 199, 132, 0.15) 0%, rgba(165, 214, 167, 0.2) 100%);
	border-radius: 16px;
}

.stat-content {
	flex: 1;
}

.stat-value {
	font-size: 36px;
	font-weight: 900;
	color: #2E7D32;
	line-height: 1;
	margin-bottom: 6px;
}

.stat-label {
	font-size: 14px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	font-weight: 600;
}

/* Section résultats */
.results-section {
	padding: 35px;
}

.results-title {
	font-size: 30px;
	font-weight: 800;
	color: #2E7D32;
	margin: 0 0 28px 0;
	padding-bottom: 18px;
	border-bottom: 4px solid rgba(129, 199, 132, 0.25);
}

/* Modifications du tableau pour ce style */
.event-results-container .search-container {
	margin: 0 35px 35px 35px;
}

.event-results-container .table-wrapper {
	box-shadow: 0 6px 30px rgba(76, 175, 80, 0.12);
}

.event-results-container .race-results-table th {
	background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
	color: white;
	font-size: 12px;
	padding: 18px 14px;
}

.event-results-container .race-results-table td {
	padding: 16px 14px;
	font-size: 14px;
}

.event-results-container .race-results-table tbody tr:hover {
	background: rgba(165, 214, 167, 0.2);
}

/* Badge de dossard */
.bib-number {
	display: inline-block;
	background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
	color: white;
	padding: 5px 12px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 13px;
}

/* Badge de sexe */
.gender-badge {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
}

.gender-badge.gender-m {
	background: rgba(33, 150, 243, 0.18);
	color: #1565C0;
}

.gender-badge.gender-f {
	background: rgba(233, 30, 99, 0.18);
	color: #C2185B;
}

/* Temps */
.time-value {
	font-family: 'Courier New', monospace;
	color: #2E7D32;
	font-size: 15px;
	font-weight: 700;
}

/* ===== STYLES MOBILE ACCORDÉON ===== */

.mobile-result-card {
	display: none;
}

.desktop-only {
	display: table-cell;
}

/* Les styles d'accordéon seront activés uniquement sur mobile via le @media */

@media screen and (max-width: 768px) {
	/* Cacher la version desktop */
	.desktop-only {
		display: none !important;
	}
	
	/* Afficher la version mobile */
	.mobile-result-card {
		display: block !important;
		padding: 0 !important;
	}
	
	.race-results-table tbody tr {
		display: table-row;
		margin-bottom: 12px;
		border: 1px solid rgba(129, 199, 132, 0.3);
		border-radius: 16px;
		background: rgba(255, 255, 255, 0.95) !important;
		backdrop-filter: blur(15px);
		box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
		overflow: hidden;
	}
	
	/* Header cliquable */
	.mobile-result-header {
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 16px;
		cursor: pointer;
		position: relative;
	}
	
	.mobile-result-header:active {
		background: rgba(129, 199, 132, 0.1);
	}
	
	/* Badge de rang */
	.mobile-rank {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 4px;
	}
	
	.rank-badge {
		background: linear-gradient(135deg, #C8B568 0%, #D4C684 100%);
		color: white;
		font-size: 20px;
		font-weight: 900;
		width: 48px;
		height: 48px;
		border-radius: 14px;
		display: flex;
		align-items: center;
		justify-content: center;
		box-shadow: 0 4px 12px rgba(200, 181, 104, 0.4);
	}
	
	.mobile-rank .medal {
		width: 24px;
		height: 24px;
		font-size: 14px;
		margin: 0;
	}
	
	/* Infos principales */
	.mobile-main-info {
		flex: 1;
	}
	
	.mobile-name {
		font-size: 15px;
		font-weight: 700;
		color: #2E7D32;
		margin-bottom: 10px;
	}
	
	.mobile-key-stats {
		display: flex;
		gap: 12px;
	}
	
	.mobile-stat {
		display: flex;
		align-items: center;
		gap: 6px;
		background: rgba(129, 199, 132, 0.12);
		padding: 8px 10px;
		border-radius: 10px;
		flex: 1;
	}
	
	.mobile-stat-icon {
		font-size: 16px;
	}
	
	.mobile-stat-label {
		font-size: 9px;
		color: #666;
		text-transform: uppercase;
		letter-spacing: 0.3px;
		font-weight: 600;
	}
	
	.mobile-stat-value {
		font-size: 13px;
		font-weight: 800;
		color: #2E7D32;
	}
	
	/* Icône d'expansion */
	.mobile-expand-icon {
		font-size: 14px;
		color: #4CAF50;
		transition: transform 0.3s ease;
		margin-left: 8px;
	}
	
	/* Détails cachés */
	.mobile-result-details {
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease;
		background: rgba(129, 199, 132, 0.05);
		border-top: 1px solid rgba(129, 199, 132, 0.2);
	}
	
	.mobile-result-card.expanded .mobile-result-details {
		padding: 16px;
	}
	
	.mobile-detail-item {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 10px 0;
		border-bottom: 1px solid rgba(129, 199, 132, 0.15);
	}
	
	.mobile-detail-item:last-child {
		border-bottom: none;
	}
	
	.mobile-detail-label {
		font-size: 12px;
		color: #666;
		font-weight: 600;
	}
	
	.mobile-detail-value {
		font-size: 13px;
		color: #2E7D32;
		font-weight: 700;
	}
}

/* ===== RESPONSIVE MOBILE ===== */

@media screen and (max-width: 768px) {
	/* Liste des courses */
	.race-list-header {
		padding: 40px 28px;
	}
	
	.race-list-header h1 {
		font-size: 36px;
	}
	
	.race-list-header p {
		font-size: 17px;
	}
	
	.month-title {
		font-size: 28px;
		padding: 18px 22px;
	}
	
	.races-grid {
		grid-template-columns: 1fr;
		gap: 25px;
	}
	
	.race-card {
		border-radius: 20px;
	}
	
	.race-content {
		padding: 25px;
	}
	
	.race-title {
		font-size: 21px;
	}
	
	/* Affichage des résultats */
	.race-results-container .race-info {
		padding: 30px;
	}
	
	.race-results-container .race-info h2 {
		font-size: 28px;
	}
	
	.search-container {
		padding: 25px;
	}
	
	.search-container h3 {
		font-size: 17px;
	}
	
	#global-search {
		padding: 16px 20px 16px 55px;
		font-size: 15px;
	}
	
	/* Transformation du tableau en cards sur mobile */
	.table-wrapper {
		overflow-x: auto;
	}
	
	.race-results-table {
		display: block;
	}
	
	.race-results-table thead {
		display: none;
	}
	
	.race-results-table tbody {
		display: block;
	}
	
	.race-results-table tr {
		display: block;
		margin-bottom: 15px;
		border: 1px solid rgba(129, 199, 132, 0.25);
		border-radius: 16px;
		padding: 16px;
		background: rgba(255, 255, 255, 0.95) !important;
		backdrop-filter: blur(15px);
		box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
	}
	
	.race-results-table tr:hover {
		transform: scale(1);
	}
	
	.race-results-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 8px 0;
		border: none;
		text-align: left;
		font-size: 14px;
	}
	
	.race-results-table td:before {
		content: attr(data-label);
		font-weight: 600;
		color: #2E7D32;
		font-size: 11px;
		text-transform: uppercase;
		letter-spacing: 0.5px;
		flex-shrink: 0;
		margin-right: 10px;
	}
	
	/* Valeurs à droite */
	.race-results-table td:after {
		content: '';
		flex: 1;
	}
	
	/* Style spécial pour la première ligne (rang) */
	.race-results-table td.rank-cell {
		font-size: 18px;
		font-weight: 800;
		padding: 0 0 12px 0;
		margin-bottom: 10px;
		border-bottom: 2px solid rgba(129, 199, 132, 0.2);
	}
	
	/* Médailles sur mobile */
	.race-results-table .medal {
		width: 26px;
		height: 26px;
		font-size: 14px;
	}
	
	/* Message d'erreur */
	.race-error-message {
		padding: 35px 25px;
	}
	
	/* Événement avec onglets */
	.event-header {
		padding: 30px;
		border-radius: 20px 20px 0 0;
	}
	
	.event-title {
		font-size: 32px;
	}
	
	.event-meta {
		flex-direction: column;
		gap: 12px;
		font-size: 15px;
	}
	
	.race-tabs {
		padding: 0;
	}
	
	.race-tab {
		min-width: 180px;
		padding: 18px 22px;
	}
	
	.tab-distance {
		font-size: 18px;
	}
	
	/* STATISTIQUES ULTRA-COMPACTES SUR MOBILE */
	.race-stats {
		grid-template-columns: repeat(4, 1fr);
		gap: 8px;
		padding: 15px;
	}
	
	.stat-card {
		padding: 12px 8px;
		flex-direction: column;
		text-align: center;
		gap: 8px;
		border-radius: 12px;
	}
	
	.stat-icon {
		font-size: 20px;
		width: 36px;
		height: 36px;
		border-radius: 8px;
	}
	
	.stat-value {
		font-size: 18px;
		font-weight: 800;
		margin-bottom: 2px;
	}
	
	.stat-label {
		font-size: 9px;
		letter-spacing: 0.3px;
	}
	
	.results-section {
		padding: 20px;
	}
	
	.results-title {
		font-size: 22px;
	}
	
	.event-results-container .search-container {
		margin: 0 15px 20px 15px;
		padding: 20px;
	}
}

@media screen and (max-width: 480px) {
	/* Liste des courses */
	.race-list-header {
		padding: 30px 22px;
	}
	
	.race-list-header h1 {
		font-size: 30px;
	}
	
	.month-title {
		font-size: 24px;
	}
	
	.race-title {
		font-size: 19px;
	}
	
	.race-content .race-info {
		font-size: 14px;
	}
	
	/* Affichage des résultats */
	.race-results-container .race-info {
		padding: 25px;
	}
	
	.race-results-container .race-info h2 {
		font-size: 24px;
	}
	
	.race-results-container .race-info p {
		font-size: 15px;
	}
	
	.search-container {
		padding: 20px;
	}
	
	/* Message d'erreur */
	.race-error-message {
		padding: 30px 20px;
	}
	
	.race-error-message p {
		font-size: 17px;
	}
	
	/* Événement */
	.event-title {
		font-size: 26px;
	}
	
	/* STATISTIQUES ENCORE PLUS COMPACTES */
	.race-stats {
		grid-template-columns: repeat(4, 1fr);
		gap: 6px;
		padding: 12px;
	}
	
	.stat-card {
		padding: 10px 6px;
		gap: 6px;
		border-radius: 10px;
	}
	
	.stat-icon {
		font-size: 18px;
		width: 32px;
		height: 32px;
	}
	
	.stat-value {
		font-size: 16px;
	}
	
	.stat-label {
		font-size: 8px;
		letter-spacing: 0.2px;
	}
	
	.race-tab {
		min-width: 160px;
		padding: 15px 18px;
	}
	
	/* Résultats en liste compacte */
	.race-results-table tr {
		padding: 14px;
		margin-bottom: 12px;
		border-radius: 14px;
	}
	
	.race-results-table td {
		padding: 6px 0;
		font-size: 13px;
	}
	
	.race-results-table td:before {
		font-size: 10px;
	}
}
