/* Bandeau sous l'en-tête « Dernier résultat | Prochaine course | Tous les résultats » — inc/bandeau-resultats.php.
   Chaque bloc : intitulé sur deux lignes (trait rose) à gauche, puis deux lignes d'infos (course + date [+ J-X] ; rang + coureuse / lieu). */

.mpe-bandeau {
	--marine: #000034;
	--rose: #ff00a3; /* rose de la charte */
	color: #fff;
	background: var(--marine);
	font-size: 13px;
	line-height: 1.2;
}
.mpe-bandeau a { color: #fff; text-decoration: none; }

.mpe-bandeau__inner {
	display: flex;
	align-items: center;
	gap: 12px 32px;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
}

.mpe-bandeau__bloc { display: flex; align-items: center; gap: 18px; min-width: 0; }
/* Pas de filet entre les deux blocs : le trait rose de chaque intitulé suffit à les séparer. */

.mpe-bandeau__label {
	flex: none;
	padding-left: 10px;
	font-size: 12px;
	font-weight: 600; /* entre l'ancien 800 et le 500 du 29/11 : présent sans concurrencer le nom de la course */
	letter-spacing: .04em;
	line-height: 1.25;
	text-transform: uppercase;
	color: #fff; /* repéré par un trait rose à gauche */
	border-left: 3px solid var(--rose);
}

.mpe-bandeau__infos { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mpe-bandeau__ligne { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.mpe-bandeau__quand { flex: none; color: rgba(255, 255, 255, .75); font-size: 12px; }
.mpe-bandeau__titre { overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 14px; }
.mpe-bandeau__rang {
	flex: none;
	min-width: 28px;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	background: var(--rose);
	border-radius: 999px;
}
.mpe-bandeau__rang sup { font-size: .75em; }
.mpe-bandeau__nom { font-weight: 700; }
/* Compte à rebours (prochaine course) : petite pastille à la place de l'heure ; le jour J en rose, point qui pulse. */
.mpe-bandeau__compte {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	background: rgba(255, 255, 255, .12);
	border-radius: 999px;
}
.mpe-bandeau__compte--jour { background: var(--rose); }
.mpe-bandeau__compte--jour::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
	animation: mpe-bandeau-pulse 1.2s ease-in-out infinite;
}
@keyframes mpe-bandeau-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .mpe-bandeau__compte--jour::before { animation: none; } }
.mpe-bandeau__heure { display: none; } /* l'heure n'apparaît que sur mobile, à la place du compte à rebours */
.mpe-bandeau__detail { overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .75); font-size: 12px; }

/* Survol d'un bloc : fond légèrement éclairci (zone cliquable visible) et petite flèche en fin de première ligne,
   sans soulignement. Marges négatives = le contenu ne bouge pas. */
.mpe-bandeau__bloc {
	margin: -8px -14px;
	padding: 8px 14px;
	border-radius: 12px;
	transition: background-color .2s ease;
}
.mpe-bandeau__bloc + .mpe-bandeau__bloc { margin-left: 18px; }
.mpe-bandeau__ligne:first-child::after { /* en fin de 1re ligne (course + date) */
	content: "→";
	display: inline-block;
	margin-left: -2px;
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity .2s ease, transform .2s ease;
}
.mpe-bandeau__bloc:hover,
.mpe-bandeau__bloc:focus-visible { background: rgba(255, 255, 255, .07); }
.mpe-bandeau__bloc:hover .mpe-bandeau__ligne:first-child::after,
.mpe-bandeau__bloc:focus-visible .mpe-bandeau__ligne:first-child::after { opacity: 1; transform: none; }
.mpe-bandeau a.mpe-bandeau__bloc:focus-visible { outline-offset: 0; border-radius: 12px; }

.mpe-bandeau__tout { flex: none; margin-left: auto; font-size: 15px; font-weight: 700; white-space: nowrap; }
.mpe-bandeau__tout span { display: inline-block; margin-left: 4px; transition: transform .15s; }
.mpe-bandeau__tout:hover span { transform: translateX(3px); }
.mpe-bandeau a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }

/* Écran moyen : « Tous les résultats » masqué (les deux blocs sont des liens). */
@media (max-width: 1100px) {
	.mpe-bandeau__tout { display: none; }
}
/* Mobile : un bloc sous l'autre, filet horizontal entre les deux. */
@media (max-width: 760px) {
	.mpe-bandeau__inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
	.mpe-bandeau__bloc { gap: 14px; }
	.mpe-bandeau__bloc { margin: -6px -10px; padding: 6px 10px; }
	.mpe-bandeau__bloc + .mpe-bandeau__bloc { margin: 0 -10px -6px; }
	.mpe-bandeau__label { width: 84px; font-size: 11px; }
	.mpe-bandeau__titre { font-size: 13px; }
	.mpe-bandeau__compte { display: none; }
	.mpe-bandeau__heure { display: inline; }
}

/* Grand écran : le trait rose de « Dernier résultat » sur le bord de la grille de 1 200 px (comme « Partenaires »
   et les titres des pages), et non 24 px plus à droite. Les blocs gardent leur zone de survol (marges négatives). */
@media (min-width: 1280px) {
	.mpe-bandeau__inner { padding-inline: 0; }
}
