/* Accueil : strate « Résultats et calendrier » ([mpe_equipe_resultats], template-parts/calendrier/accueil-resultats.php).
   Fond bleu ; dernier résultat (photo paysage) à gauche, prochaines courses à droite, l'équipe dessous. */

.mpe-ht2 {
	--mpe-ht2-pad: max(3rem, calc((100vw - var(--mpe-scrollbar, 0px) - 1200px) / 2));
	margin: 0;
	padding: clamp(56px, 7vw, 96px) var(--mpe-ht2-pad);
	background: #1f53f3;
	color: #fff;
}
.mpe-ht2 a, .mpe-ht2 a * { text-decoration: none !important; }
.mpe-ht2 a, .mpe-ht2 a:hover, .mpe-ht2 a:focus { color: #fff; }
.mpe-ht2__inner { display: grid; gap: 32px; max-width: 1200px; margin: 0 auto; }

/* En-tête */
.mpe-ht2__tete { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 40px; }
.mpe-ht2__kicker { margin: 0 0 8px !important; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mpe-ht2__titre { margin: 0 0 10px !important; color: #fff; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.05; }
.mpe-ht2__texte { margin: 0 !important; max-width: 760px; color: rgba(255, 255, 255, .85); font-size: 17px; line-height: 1.55; }
.mpe-ht2__lien { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; white-space: nowrap; }
.mpe-ht2__lien svg { transition: transform .2s; }
.mpe-ht2__lien:hover svg, .mpe-ht2__lien:focus-visible svg { transform: translateX(3px); }
.mpe-ht2__lien:hover { text-decoration: underline !important; text-underline-offset: 4px; }

.mpe-ht2__grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }

/* Dernier résultat : card bleu nuit, photo de la course en paysage en haut */
.mpe-ht2-result { display: flex; flex-direction: column; overflow: hidden; margin: 0; border-radius: 22px; background: #000034; color: #fff; }
.mpe-ht2-result__photo { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #0b0b47; }
.mpe-ht2-result__photo img, .mpe-ht2-result__photo svg { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .5s ease; }
.mpe-ht2-result:hover .mpe-ht2-result__photo img { transform: scale(1.03); }
/* Image portrait : entière sur la même image floutée (comme les cartes d'actualités, mpe_actu_fond_flou()). */
.mpe-ht2-result__photo .mpe-fond-flou { position: absolute; inset: -48px; background: var(--fond) center / cover no-repeat; filter: blur(40px) saturate(1.2); opacity: .9; transform: translateZ(0); pointer-events: none; }
.mpe-ht2-result__photo img.is-portrait { object-fit: contain; }
.mpe-ht2-result__pastilles { position: absolute; top: 16px; left: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.mpe-ht2-result__pastille { padding: 5px 12px; border-radius: 999px; background: #ff00a3; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.mpe-ht2-result__pastille.is-claire { background: #fff; color: #000034; text-transform: none; letter-spacing: 0; }
.mpe-ht2-result__pastille.is-uci { background: #000034; text-transform: none; letter-spacing: 0; }
.mpe-ht2-result__bas { display: flex; flex: 1 1 auto; align-items: center; gap: 20px; padding: 22px 24px 24px 28px; }
.mpe-ht2-result__rang { flex: none; color: #fff; font-size: clamp(56px, 6vw, 80px); font-weight: 800; line-height: .9; letter-spacing: -.02em; }
.mpe-ht2-result__rang sup { top: -.9em; margin-left: 2px; font-size: .35em; }
.mpe-ht2-result__rang.is-podium { color: #ff00a3; }
.mpe-ht2-result__infos { display: grid; flex: 1 1 auto; gap: 6px; min-width: 0; }
.mpe-ht2-result__course { font-size: clamp(1.25rem, 1.9vw, 1.6rem); font-weight: 800; line-height: 1.15; }
.mpe-ht2-result__detail { color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.4; }
.mpe-ht2-result__detail strong { color: #fff; font-weight: 700; }
.mpe-ht2__rond { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #000034; transition: background-color .2s, color .2s, transform .2s; }
.mpe-ht2-result:hover .mpe-ht2__rond, .mpe-ht2-result:focus-visible .mpe-ht2__rond { background: #ff00a3; color: #fff; transform: translateX(3px); }
.mpe-ht2-result--vide { justify-content: center; padding: 32px; color: rgba(255, 255, 255, .85); }

/* Prochaines courses */
.mpe-ht2-agenda { display: flex; flex-direction: column; padding: 24px 24px 20px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 22px; background: rgba(255, 255, 255, .08); }
.mpe-ht2 .mpe-ht2-agenda__titre { margin: 0 0 8px !important; color: #fff; font-size: 18px; font-weight: 800; }
.mpe-ht2-agenda__liste { flex: 1 1 auto; margin: 0 !important; padding: 0; list-style: none; }
.mpe-ht2-agenda__liste li { margin: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.mpe-ht2-agenda__liste li:last-child { border-bottom: 0; }
.mpe-ht2-agenda__course { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 14px 4px; border-radius: 12px; transition: background-color .2s; }
.mpe-ht2-agenda__course:hover { background: rgba(255, 255, 255, .08); }
.mpe-ht2-agenda__date { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: #fff; color: #000034; line-height: 1; text-align: center; }
.mpe-ht2-agenda__date span { margin-top: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.mpe-ht2-agenda__date strong { margin-top: -6px; font-size: 22px; font-weight: 800; }
.mpe-ht2-agenda__date strong.is-plage { font-size: 15px; }
.mpe-ht2-agenda__corps { display: grid; gap: 3px; min-width: 0; }
.mpe-ht2-agenda__nom { font-size: 16px; font-weight: 800; line-height: 1.25; }
.mpe-ht2-agenda__infos { color: rgba(255, 255, 255, .8); font-size: 13px; line-height: 1.35; }
.mpe-ht2-agenda__uci { padding: 5px 12px; border-radius: 999px; background: #000034; font-size: 12px; font-weight: 800; white-space: nowrap; }
/* 25/11 : lien vers le calendrier complet sous les 3 prochaines courses. */
.mpe-ht2-agenda__tout { align-self: flex-start; margin-top: 12px; padding-top: 4px; color: #fff; }
.mpe-ht2-agenda__chevron { display: grid; place-items: center; transition: transform .2s; }
.mpe-ht2-agenda__course:hover .mpe-ht2-agenda__chevron { transform: translateX(3px); }
.mpe-ht2-agenda__vide { margin: 12px 0 0; color: rgba(255, 255, 255, .85); }

/* L'équipe */
.mpe-ht2-equipe { display: grid; gap: 20px; margin-top: 24px; }
.mpe-ht2-equipe__tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.mpe-ht2 .mpe-ht2-equipe__titre { margin: 0 !important; color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
.mpe-ht2-equipe__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 20px 12px; margin: 0 !important; padding: 0; list-style: none; }
.mpe-ht2-equipe__liste li { margin: 0; }
.mpe-ht2-equipe__athlete { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.mpe-ht2-equipe__photo { position: relative; display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border-radius: 50%; background: rgba(255, 255, 255, .2); box-shadow: 0 0 0 2px rgba(255, 255, 255, .0); transition: box-shadow .2s, transform .2s; }
.mpe-ht2-equipe__photo img { width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 15%; }
.mpe-ht2-equipe__initiales { font-size: 20px; font-weight: 800; color: rgba(255, 255, 255, .9); }
.mpe-ht2-equipe__athlete:hover .mpe-ht2-equipe__photo, .mpe-ht2-equipe__athlete:focus-visible .mpe-ht2-equipe__photo { box-shadow: 0 0 0 3px #fff; transform: translateY(-2px); }
.mpe-ht2-equipe__nom { display: grid; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .9); }
.mpe-ht2-equipe__nom strong { color: #fff; font-weight: 800; }

@media (max-width: 921px) {
	.mpe-ht2__tete { grid-template-columns: minmax(0, 1fr); }
	.mpe-ht2__grille { grid-template-columns: minmax(0, 1fr); }
	.mpe-ht2-agenda__course { grid-template-columns: auto minmax(0, 1fr) auto; }
	.mpe-ht2-agenda__uci { grid-column: 2; justify-self: start; }
	.mpe-ht2-agenda__chevron { grid-column: 3; grid-row: 1 / span 2; }
	.mpe-ht2-equipe__liste { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 6px; scroll-snap-type: x mandatory; }
	.mpe-ht2-equipe__liste li { flex: 0 0 84px; scroll-snap-align: start; }
}
@media (max-width: 544px) {
	.mpe-ht2 { --mpe-ht2-pad: 1.5rem; }
	.mpe-ht2-result__bas { padding: 18px 18px 20px 20px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.mpe-ht2 * { transition: none !important; }
}

/* L'équipe d'après Figma (node 2987-19146) : titre Toroka 40/48, pastilles 72 px réparties sur toute la largeur,
   visage cadré serré, prénom 12/16 regular + nom 12/16 gras. */
.mpe-ht2-equipe { gap: 40px; }
.mpe-ht2 .mpe-ht2-equipe__titre { font-family: Toroka, Helvetica, Arial, sans-serif; font-weight: 700; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.2; }
.mpe-ht2-equipe__liste { display: flex; justify-content: space-between; gap: 12px; }
.mpe-ht2-equipe__liste li { flex: 0 1 88px; min-width: 0; }
.mpe-ht2-equipe__athlete { gap: 12px; }
.mpe-ht2-equipe__photo { width: 72px; height: 72px; background: rgba(255, 255, 255, .22); box-shadow: 0 0 0 3px #1f53f3; }
.mpe-ht2-equipe__photo img { object-position: 50% 8%; transform: scale(1.45); transform-origin: 50% 0; }
.mpe-ht2-equipe__athlete:hover .mpe-ht2-equipe__photo, .mpe-ht2-equipe__athlete:focus-visible .mpe-ht2-equipe__photo { box-shadow: 0 0 0 3px #fff; }
.mpe-ht2-equipe__nom { font-size: 12px; line-height: 16px; font-weight: 400; color: #fff; }
.mpe-ht2-equipe__nom strong { font-weight: 700; }
@media (max-width: 921px) {
	.mpe-ht2-equipe { gap: 24px; }
	.mpe-ht2-equipe__liste { justify-content: flex-start; overflow-x: auto; }
	.mpe-ht2-equipe__liste li { flex: 0 0 84px; }
}

/* En-tête et « Prochaines courses » d'après Figma (node 2987-19146). */
.mpe-ht2__inner { gap: 40px; }
.mpe-ht2__kicker { margin: 0 0 8px !important; font-size: 16px; font-weight: 700; letter-spacing: .04em; line-height: 1.25; }
.mpe-ht2__titre { margin: 0 0 4px !important; font-family: Toroka, Helvetica, Arial, sans-serif; font-weight: 700; font-size: clamp(30px, 3.2vw, 40px); line-height: 1.2; }
.mpe-ht2__texte { max-width: none; color: rgba(255, 255, 255, .8); font-size: 19px; line-height: 30px; }
.mpe-ht2__lien { font-size: 12px; line-height: 19px; }

.mpe-ht2-agenda { gap: 8px; padding: 32px 32px 24px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; background: rgba(255, 255, 255, .06); }
.mpe-ht2 .mpe-ht2-agenda__titre { margin: 0 0 4px !important; font-size: 16px; font-weight: 700; line-height: 22px; }
.mpe-ht2-agenda__liste li { border-bottom-color: rgba(255, 255, 255, .12); }
.mpe-ht2-agenda__course { gap: 14px; padding: 12px 0; border-radius: 0; }
.mpe-ht2-agenda__course:hover { background: none; }
.mpe-ht2-agenda__course:hover .mpe-ht2-agenda__nom { text-decoration: underline !important; text-underline-offset: 3px; }
.mpe-ht2-agenda__date { width: 48px; height: 48px; padding: 5px 7px; box-sizing: border-box; border-radius: 7px; gap: 0; align-content: center; }
.mpe-ht2-agenda__date span { margin: 0; font-size: 7px; font-weight: 700; line-height: 1; letter-spacing: .02em; }
.mpe-ht2-agenda__date strong { margin: 0; font-family: Toroka, Helvetica, Arial, sans-serif; font-size: 24.8px; font-weight: 700; line-height: 1.2; }
.mpe-ht2-agenda__date strong.is-plage { font-size: 13px; line-height: 1.5; }
.mpe-ht2-agenda__nom { font-size: 16px; font-weight: 700; line-height: 1; }
.mpe-ht2-agenda__corps { gap: 4px; }
.mpe-ht2-agenda__infos { color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.25; }
.mpe-ht2-agenda__uci { padding: 0 10px; background: #ff00a3; font-size: 12px; font-weight: 700; line-height: 19px; }

/* Dernier résultat : l'athlète mise en avant (presque aussi grande que la course), lieu en dessous. */
.mpe-ht2-result__infos { gap: 4px; }
.mpe-ht2-result__course { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 700; color: rgba(255, 255, 255, .85); }
.mpe-ht2-result__athlete { font-family: Toroka, Helvetica, Arial, sans-serif; font-size: clamp(1.5rem, 2.3vw, 2rem); font-weight: 700; line-height: 1.1; color: #fff; }
.mpe-ht2-result__detail { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .75); }
.mpe-ht2-agenda__date { width: auto; min-width: 48px; }
.mpe-ht2-agenda__date strong.is-plage { font-size: 15px; line-height: 1.6; white-space: nowrap; }
.mpe-ht2-agenda__course { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.mpe-ht2-agenda__date { justify-self: start; }
@media (max-width: 921px) { .mpe-ht2-agenda__course { grid-template-columns: 56px minmax(0, 1fr) auto; } }

/* Gélules UCI en bleu nuit ; liste calée sur le titre « Prochaines courses » (retrait de liste du thème annulé). */
.mpe-ht2-agenda__uci { background: #000034; }
.entry-content .mpe-ht2 .mpe-ht2-agenda__liste { margin: 0 !important; padding: 0 !important; }
.entry-content .mpe-ht2 .mpe-ht2-agenda__liste li { margin: 0 !important; padding: 0 !important; }

/* Dernier résultat : date en vignette, comme dans « Prochaines courses ». */
.mpe-ht2-result__pastilles { align-items: center; }
.mpe-ht2-result__date { order: -1; }
/* Lien « Découvrir tous les résultats » sur la ligne de base de la phrase d'intro. */
.mpe-ht2__tete { align-items: last baseline; }
.mpe-ht2-equipe__tete { align-items: last baseline; }

/* Dernier résultat : date à gauche, place à droite, sans flèche. */
.mpe-ht2-result__bas .mpe-ht2-result__date { flex: none; align-self: center; }
.mpe-ht2-result__bas .mpe-ht2-result__rang { margin-left: auto; }
/* Pastille « Dernier résultat » en casse normale ; catégorie UCI après le nom de la course. */
.mpe-ht2-result__pastille { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 700; }
.mpe-ht2-result__uci { font-weight: 400; color: rgba(255, 255, 255, .7); white-space: nowrap; }
/* Retours du 20/11 : UCI plus discret (plus petit, plus pâle), date plus grande, lieu plus lisible. */
.mpe-ht2-result__uci { font-size: 13px; vertical-align: 2px; color: rgba(255, 255, 255, .55); }
.mpe-ht2-result__bas .mpe-ht2-result__date { min-width: 64px; height: 64px; padding: 6px 9px; border-radius: 9px; }
.mpe-ht2-result__bas .mpe-ht2-result__date span { font-size: 9px; }
.mpe-ht2-result__bas .mpe-ht2-result__date strong { font-size: 32px; }
.mpe-ht2-result__detail { margin-top: 4px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.mpe-ht2-result__detail svg { vertical-align: -1px; }
/* Liens « Découvrir tous les résultats » / « toutes les athlètes » : même taille que « Explorer la boutique » (16 px gras, flèche 18 px). */
.mpe-ht2__lien { gap: 6px; font-size: 16px; line-height: 1.65; }
.mpe-ht2__lien svg { width: 18px; height: 18px; }
/* Survol d'une course : toute la ligne s'éclaire (plus de soulignement du nom). Marges négatives : le contenu reste aligné sur le titre. */
.mpe-ht2-agenda__course { margin: 0 -12px; padding: 12px; border-radius: 12px; transition: background-color .2s; }
.mpe-ht2-agenda__course:hover, .mpe-ht2-agenda__course:focus-visible { background: rgba(255, 255, 255, .1); }
.mpe-ht2-agenda__course:hover .mpe-ht2-agenda__nom { text-decoration: none !important; }
/* Pastilles calées sur les bords : chaque item a la largeur de la photo (72 px), la première s'aligne sur le titre,
   la dernière sur le lien ; les noms, centrés sous la photo, peuvent déborder un peu de part et d'autre. */
@media (min-width: 922px) {
	.mpe-ht2-equipe__liste li { flex: 0 0 72px; }
	.mpe-ht2-equipe__athlete { width: 72px; }
	.mpe-ht2-equipe__nom { width: 120px; margin: 0 -24px; }
}
.entry-content .mpe-ht2 .mpe-ht2-equipe__liste { margin: 0 !important; padding: 0 !important; }
.entry-content .mpe-ht2 .mpe-ht2-equipe__liste li { margin: 0 !important; padding: 0 !important; }
/* Prochaines courses : les lignes se répartissent sur la hauteur du panneau (plus d'air entre elles, moins de vide en bas). */
.mpe-ht2-agenda { padding-bottom: 20px; }
.entry-content .mpe-ht2 .mpe-ht2-agenda__liste { display: flex; flex: 1 1 auto; flex-direction: column; justify-content: space-between; }
.mpe-ht2-agenda__course { padding-top: 16px; padding-bottom: 16px; }
/* Titres : même interlignage que les autres strates de l'accueil. */
.mpe-ht2__titre, .mpe-ht2 .mpe-ht2-equipe__titre { line-height: 1.05; }
.mpe-ht2__titre { margin-bottom: 10px !important; }
.mpe-ht2-agenda__infos svg { margin-right: 6px; vertical-align: -1px; }
/* Chaque course occupe une part égale de la hauteur, contenu centré entre les traits (même marge en haut et en bas). */
.entry-content .mpe-ht2 .mpe-ht2-agenda__liste { justify-content: flex-start; }
.entry-content .mpe-ht2 .mpe-ht2-agenda__liste li { display: flex; flex: 1 1 0; align-items: center; }
.mpe-ht2-agenda__liste li > .mpe-ht2-agenda__course { flex: 1 1 auto; }

/* Dernier résultat : date et texte forment un bloc de même hauteur (la vignette s'étire sur les 3 lignes resserrées). */
.mpe-ht2-result__bas { align-items: stretch; }
.mpe-ht2-result__infos { gap: 2px; align-content: center; }
.mpe-ht2-result__course { line-height: 1.15; }
.mpe-ht2-result__athlete { line-height: 1.05; }
.mpe-ht2-result__detail { margin-top: 2px; line-height: 1.3; }
.mpe-ht2-result__bas .mpe-ht2-result__date { align-self: stretch; height: auto; min-width: 84px; padding: 8px 12px; border-radius: 12px; }
.mpe-ht2-result__bas .mpe-ht2-result__date span { font-size: 10px; }
.mpe-ht2-result__bas .mpe-ht2-result__date strong { font-size: 40px; line-height: 1.05; }
.mpe-ht2-result__bas .mpe-ht2-result__rang { align-self: center; }
/* Ordre : course · UCI, lieu, puis l'athlète (avec un peu d'air au-dessus). */
.mpe-ht2-result__detail { margin-top: 0; }
.mpe-ht2-result__athlete { margin-top: 6px; }
/* Prochaines courses : un peu plus d'air entre le nom et le lieu. */
.mpe-ht2-agenda__corps { gap: 6px; }
.mpe-ht2-agenda__nom { line-height: 1.2; }
.mpe-ht2-agenda__infos { line-height: 1.4; }
.mpe-ht2-agenda__corps { gap: 3px; }

/* Date sur la photo (vignette 48 px, comme les prochaines courses), à gauche de « Dernier résultat ». */
.mpe-ht2-result__pastilles .mpe-ht2-result__date { order: 0; min-width: 48px; height: 48px; box-shadow: 0 4px 14px rgba(0, 0, 52, .25); }
.mpe-ht2-result__pastilles { align-items: center; }
.mpe-ht2-result__bas { align-items: center; }
/* Date en bas à gauche de la photo (la pastille « Dernier résultat » reste seule en haut). */
.mpe-ht2-result__photo > .mpe-ht2-result__date { position: absolute; left: 16px; bottom: 16px; z-index: 1; min-width: 48px; height: 48px; box-shadow: 0 4px 14px rgba(0, 0, 52, .3); }
/* Moins de 4 courses à venir : les lignes gardent leur hauteur (pas une course seule perdue au milieu du panneau). */
.entry-content .mpe-ht2 .mpe-ht2-agenda__liste li { max-height: 112px; }
/* Phrase d'intro en blanc plein. */
.mpe-ht2__texte { color: #fff; }
/* Prochaines courses : lieu et heure en blanc plein (à 70 % sur le bleu, contraste ≈ 3,3:1, insuffisant en 13 px). */
.mpe-ht2-agenda__infos { color: #fff; }

/* Apparition discrète au défilement (script projet-piliers.js) */
@media (prefers-reduced-motion: no-preference) {
	.mpe-ht2.is-pret .mpe-ht2-result,
	.mpe-ht2.is-pret .mpe-ht2-agenda__liste > li,
	.mpe-ht2.is-pret .mpe-ht2-equipe__liste > li {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1);
	}
	.mpe-ht2.is-pret .mpe-ht2-agenda__liste > li { transform: translateY(12px); transition-duration: .5s; }
	.mpe-ht2.is-pret .mpe-ht2-equipe__liste > li { transform: translateY(8px); transition-duration: .4s; }
	.mpe-ht2.is-visible .mpe-ht2-result,
	.mpe-ht2.is-visible .mpe-ht2-agenda__liste > li,
	.mpe-ht2.is-visible .mpe-ht2-equipe__liste > li { opacity: 1; transform: none; }
	.mpe-ht2.is-visible .mpe-ht2-agenda__liste > li:nth-child(1) { transition-delay: .2s; }
	.mpe-ht2.is-visible .mpe-ht2-agenda__liste > li:nth-child(2) { transition-delay: .28s; }
	.mpe-ht2.is-visible .mpe-ht2-agenda__liste > li:nth-child(3) { transition-delay: .36s; }
	.mpe-ht2.is-visible .mpe-ht2-agenda__liste > li:nth-child(4) { transition-delay: .44s; }
	.mpe-ht2.is-visible .mpe-ht2-equipe__liste > li { transition-delay: calc(.5s + var(--i, 0) * .03s); }
}

/* Dernier résultat : carte sur fond blanc (texte bleu nuit) au lieu du fond bleu foncé. */
.mpe-ht2-result { background: #fff; color: #000034; }
.mpe-ht2-result__photo { background: #e8eaf4; }
.mpe-ht2-result__rang { color: #000034; }
.mpe-ht2-result__rang.is-podium { color: #ff00a3; }
.mpe-ht2-result__course { color: #000034; } /* 29/11 : deux couleurs seulement, bleu nuit (principal) et gris (secondaire) */
.mpe-ht2-result__athlete { color: #000034; }
.mpe-ht2-result__detail { color: #6b6f8a; }
.mpe-ht2-result__detail strong { color: #000034; }
.mpe-ht2-result__uci { color: #6b6f8a; }
.mpe-ht2-result--vide { color: rgba(0, 0, 52, .8); }

/* ==========================================================================
   Vignette date — même design sur l'accueil (.mpe-ht2-agenda__date) et sur la page calendrier (.mpe-cal-date).
   Largeur fixe ; sur plusieurs jours (« FÉVR. 11-14 »), chiffres plus petits et tiret fin, même largeur.
   Bloc identique dans accueil-equipe.css et calendrier.css : modifier les deux.
   ========================================================================== */
.mpe-ht2-agenda__date, .mpe-cal-date {
	display: grid; place-items: center; align-content: center; gap: 1px; box-sizing: border-box;
	width: 60px; min-width: 60px; height: 56px; padding: 6px 4px; border-radius: 8px;
	background: #fff; color: #000034; line-height: 1; text-align: center;
	box-shadow: 0 4px 14px rgba(0, 0, 52, .3);
}
.mpe-ht2-agenda__date > span, .mpe-cal-date .mpe-cal-mois-court {
	margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 9px; font-weight: 700; line-height: 1;
	letter-spacing: .04em; text-transform: uppercase; color: #000034;
}
.mpe-ht2-agenda__date strong, .mpe-cal-date .mpe-cal-jour {
	margin: 0; font-family: Toroka, Helvetica, Arial, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.1;
	letter-spacing: 0; white-space: nowrap; color: #000034;
}
.mpe-ht2-agenda__date strong.is-plage, .mpe-cal-date .mpe-cal-jour:has(.mpe-tiret) { font-size: 17px; line-height: 1.5; }
.mpe-ht2-agenda__date .mpe-tiret, .mpe-cal-date .mpe-tiret {
	display: inline-block; margin: 0 .06em; font-size: .7em; font-weight: 400; vertical-align: .15em; opacity: 1;
}
/* Accueil : colonne de la vignette à sa largeur fixe. */
.mpe-ht2-agenda__course { grid-template-columns: 60px minmax(0, 1fr) auto auto; }
@media (max-width: 921px) { .mpe-ht2-agenda__course { grid-template-columns: 60px minmax(0, 1fr) auto; } }
.mpe-ht2-result__bas .mpe-ht2-result__date strong.is-plage { font-size: 17px; }
.mpe-ht2-result__photo > .mpe-ht2-result__date { width: 60px; min-width: 60px; height: 56px; }

/* Dernier résultat sur plusieurs jours (« 22-30 ») : chiffres plus petits et pastille qui s'élargit, pour garder de l'air autour. */
.mpe-ht2-result__photo > .mpe-ht2-result__date:has(.is-plage) { width: auto; padding: 6px 10px; }
.mpe-ht2-result__photo > .mpe-ht2-result__date strong.is-plage { font-size: 15px; white-space: nowrap; }

/* 22/11 : chiffres des vignettes date en Plus Jakarta Sans (plus de Toroka) — même règle dans accueil-equipe.css et calendrier.css. */
.mpe-ht2-agenda__date strong, .mpe-cal-date .mpe-cal-jour { font-family: "Plus Jakarta Sans", sans-serif !important; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* Prochaines courses : participation en attente de validation. */
.mpe-ht2-agenda__attente { display: inline-block; margin-left: .35em; padding: 0 8px; border-radius: 999px; background: #FFC53D; color: #000034; font-size: 11px; font-weight: 800; line-height: 18px; vertical-align: 2px; white-space: nowrap; }

/* Tablette paysage (922–1199 px) : les 12 pastilles (≈ 1000 px) élargissaient la grille ; les liens « Découvrir… »
   sortaient à droite, collés au bord. La colonne reste à la largeur de l'écran et la liste défile au doigt. */
.mpe-ht2__inner { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 922px) and (max-width: 1199px) {
	.mpe-ht2-equipe__liste { justify-content: flex-start; gap: 20px; overflow-x: auto; padding-bottom: 6px !important; scrollbar-width: none; }
	.mpe-ht2-equipe__liste::-webkit-scrollbar { display: none; }
	.mpe-ht2-equipe__liste li { flex: 0 0 84px; }
	.mpe-ht2-equipe__athlete { width: 84px; margin-inline: auto; }
	.mpe-ht2-equipe__nom { width: auto; margin: 0; }
}

/* 29/11 : vignette date sur plusieurs jours — « 22 » puis « → 30 » en dessous (mpe_calendrier_jours()), au moins carrée.
   Même règle dans accueil-equipe.css et calendrier.css. */
.mpe-ht2-agenda__date:has(.mpe-jour-fin), .mpe-cal-date:has(.mpe-jour-fin) { height: auto; min-height: 60px; padding-top: 7px; padding-bottom: 7px; }
.mpe-ht2-result__photo > .mpe-ht2-result__date:has(.mpe-jour-fin) { width: 60px; height: auto; padding: 7px 4px; }
.mpe-jour-fin {
	display: block; margin-top: 2px;
	font-size: max(11px, .42em); font-weight: 700; line-height: 1.1; letter-spacing: 0;
	white-space: nowrap; color: #64748b;
}
.mpe-ht2-agenda__date strong .mpe-jour-fin, .mpe-ht2-agenda__date strong .mpe-jour-fin span { margin: 2px 0 0; font-size: max(11px, .42em); font-weight: 700; letter-spacing: 0; text-transform: none; color: #64748b; }
.mpe-ht2-agenda__date strong .mpe-jour-fin span { display: inline; margin: 0; font-size: inherit; }

/* 29/11 (proto) : « Dernier résultat » — vignette date en haut à gauche de la photo, un peu plus grande ;
   pastille « Dernier résultat » au-dessus du nom de la course. */
.mpe-ht2-result__photo > .mpe-ht2-result__date { top: 16px; bottom: auto; width: 72px; min-width: 72px; height: 68px; }
.mpe-ht2-result__photo > .mpe-ht2-result__date:has(.mpe-jour-fin) { width: 72px; height: auto; min-height: 72px; padding: 8px 4px; }
.mpe-ht2-result__photo > .mpe-ht2-result__date > span { font-size: 11px; }
.mpe-ht2-result__photo > .mpe-ht2-result__date strong { font-size: 32px; }
.mpe-ht2-result__infos > .mpe-ht2-result__pastille { justify-self: start; margin-bottom: 4px; }

/* 29/11 : « Prochaines courses » sur mobile — vignettes date plus petites, marges réduites (le texte n'avait que ~170px). */
@media (max-width: 544px) {
	.mpe-ht2-agenda { padding: 20px 14px 16px; }
	.mpe-ht2-agenda__titre { padding-left: 2px; }
	.mpe-ht2-agenda__course { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; margin: 0 -6px; padding: 10px 6px; }
	.mpe-ht2-agenda__course .mpe-ht2-agenda__date { width: 48px; min-width: 48px; height: 48px; padding: 4px 2px; border-radius: 8px; }
	.mpe-ht2-agenda__course .mpe-ht2-agenda__date > span { font-size: 8px; }
	.mpe-ht2-agenda__course .mpe-ht2-agenda__date strong { font-size: 20px; }
	.mpe-ht2-agenda__course .mpe-ht2-agenda__date:has(.mpe-jour-fin) { height: auto; min-height: 52px; }
	.mpe-ht2-agenda__course .mpe-ht2-agenda__date strong .mpe-jour-fin { font-size: 10px; }
}

/* 29/11 : « À confirmer » avec le picto horloge, comme sur les cartes du calendrier. */
.mpe-ht2-agenda__attente { display: inline-flex; align-items: center; gap: 3px; vertical-align: 1px; }
.mpe-ht2-agenda__attente svg { flex: none; margin: 0; transform: translateY(.5px); } /* 29/11 : picto à peine descendu (1,5 px : trop bas), centré sur le texte (Plus Jakarta Sans écrit bas dans sa boîte) */
/* Mobile : pas de pastille UCI dans « Prochaines courses » (elle prenait une ligne à elle seule ; visible sur la fiche). */
@media (max-width: 544px) {
	.mpe-ht2-agenda__uci { display: none; }
	/* « À confirmer » sous le nom, avec un peu d'air (collé au nom quand il passait à la ligne). */
	.mpe-ht2-agenda__attente { display: flex; width: fit-content; margin: 5px 0 2px; }
}
