/* Articles liés — encart en bas d'un article (inc/articles-lies.php). Variables : .mpe-article (actualites.css). */

.mpe-lies {
	display: grid;
	gap: 32px;
	max-width: 1200px; /* même largeur que « À lire aussi » */
	margin: 56px auto 0;
	padding: 0 24px;
}
.mpe-article .mpe-lies__titre {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--rose);
}
.mpe-lies ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mpe-lies li { margin: 0; }
.mpe-lies__infos { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mpe-lies__nom { font-weight: 700; line-height: 1.3; color: var(--marine); }
.mpe-lies__detail { font-size: 14px; line-height: 1.4; color: var(--doux); }

/* Cartes blanches cliquables (courses, profils, partenaires) */
.entry-content .mpe-lies a {
	display: flex;
	align-items: center;
	gap: 14px;
	color: inherit;
	background: #fff;
	border: 1px solid var(--bord);
	border-radius: 10px;
	text-decoration: none;
	transition: border-color .15s, box-shadow .15s;
}
.entry-content .mpe-lies a:hover,
.entry-content .mpe-lies a:focus-visible { border-color: var(--bleu); box-shadow: 0 10px 24px -16px rgba(31, 83, 243, .55); }
.mpe-lies a:hover .mpe-lies__nom { color: var(--bleu); }

/* La course */
.entry-content .mpe-lies__evenement { padding: 14px 16px; }
.mpe-lies__date {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 56px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #fff;
	background: var(--marine);
	border-radius: 8px;
}
.mpe-lies__date strong { margin-bottom: 3px; font-size: 22px; letter-spacing: 0; color: #fff; }
.mpe-lies__evenement .mpe-lies__infos { flex: 1; }
.mpe-lies__resultat { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--bleu); }
.mpe-lies__fleche { flex: none; margin-left: auto; color: var(--bleu); transition: transform .15s; }
.mpe-lies a:hover .mpe-lies__fleche { transform: translateX(3px); }

/* L'équipe */
.mpe-lies__profils { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.entry-content .mpe-lies__profil { height: 100%; padding: 10px 14px 10px 10px; }
.mpe-lies__photo { flex: none; width: 48px; height: 48px; overflow: hidden; background: var(--bord); border-radius: 50%; }
.mpe-lies__photo img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; object-position: center top; border-radius: 0; }

/* Les partenaires */
.mpe-lies__partenaires { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.entry-content .mpe-lies__partenaire { flex-direction: column; justify-content: flex-start; gap: 10px; height: 100%; padding: 16px 12px 14px; text-align: center; }
.mpe-lies__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 56px; }
.mpe-lies__logo img { display: block; max-width: 110px; max-height: 56px; width: auto; height: auto; margin: 0; object-fit: contain; border-radius: 0; }
.mpe-lies__partenaire .mpe-lies__nom { font-size: 14px; }

@media (max-width: 760px) {
	.mpe-lies { margin-top: 40px; padding: 0 20px; }
}
@media (max-width: 480px) {
	.mpe-lies__profils { grid-template-columns: minmax(0, 1fr); }
	.mpe-lies__partenaires { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.mpe-lies__date { width: 46px; height: 50px; }
	.mpe-lies__date strong { font-size: 19px; }
}

/* ==========================================================================
   Section d'articles liés (fiche événement « Nos articles », profil et partenaire « Dans l'actu »)
   ========================================================================== */

.mpe-lies-articles {
	--bleu: #1f53f3;
	--marine: #000034;
	--rose: #ff00a3;
	--texte: #334155;
	--doux: #64748b;
	--fond: #f0f5fa;
	--bord: #e2e8f0;
	--rayon: 12px;
}
.mpe-lies-articles__tete { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 1.5rem; }
.entry-content .mpe-lies-articles .mpe-lies-articles__tete h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--marine); }
.entry-content .mpe-lies-articles__tete a { font-weight: 600; color: var(--bleu); text-decoration: none; }
.entry-content .mpe-lies-articles a,
.mpe-fiche-partenaire .mpe-lies-articles a { text-decoration: none; }
.mpe-lies-articles .mpe-actus__grille { gap: 40px 28px; }
/* Fiche événement : pas de marge basse en double avec « Les autres rendez-vous » qui suit. */
.mpe-event .mpe-lies-articles.mpe-event__autres { margin-bottom: 0; }
/* Fiche profil : « Dans l'actu » suivi des autres profils, un seul filet entre les deux. */
.mpe-profil .mpe-lies-articles.mpe-profil__autres { margin-bottom: 0; }
/* Fiche partenaire (hors .entry-content) : titre et lien au format des autres sections (« Dans le même secteur »). */
.mpe-fiche-partenaire .mpe-lies-articles .mpe-lies-articles__tete { margin-bottom: 20px; }
.mpe-fiche-partenaire .mpe-lies-articles .mpe-lies-articles__tete h2 { margin: 0; font-size: 24px; font-weight: 700; color: var(--marine); }
.mpe-fiche-partenaire .mpe-lies-articles__tete a { font-size: 14px; font-weight: 600; color: var(--bleu); }

/* 25/11 : strate « Dans cet article » (coureuses et encadrement liés) : cartes photo comme « Les autres coureuses »
   d'une fiche profil (mu-plugins/mpe-profils.php). Largeur et titre : ceux de « À lire aussi » (.mpe-article__autres). */
.mpe-lies-profils + .mpe-article__autres { margin-top: 56px; }
.entry-content ul.mpe-lies-profils__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.mpe-lies-profils__liste li { margin: 0; }
@media (min-width: 1025px) { .entry-content ul.mpe-lies-profils__liste { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.entry-content a.mpe-lies-profils__carte { display: grid; gap: 2px; color: var(--marine, #000034); text-decoration: none; }
.mpe-lies-profils__photo { display: block; overflow: hidden; margin-bottom: 10px; border-radius: 10px; aspect-ratio: 3 / 4; background: #f0f5fa; }
.mpe-lies-profils__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.mpe-lies-profils__carte:hover .mpe-lies-profils__photo img { transform: scale(1.05); }
.mpe-lies-profils__nom { font-family: Toroka, Helvetica, Arial, sans-serif; font-weight: 700; line-height: 1.2; }
.entry-content .mpe-lies-profils__carte:hover .mpe-lies-profils__nom { color: var(--bleu, #1F53F3); }
.mpe-lies-profils__detail { font-size: .85rem; color: #6b6f8a; }
.entry-content a.mpe-lies-profils__carte:focus-visible { outline: 2px solid var(--bleu, #1F53F3); outline-offset: 4px; border-radius: 10px; }
@media (max-width: 767px) {
	.entry-content ul.mpe-lies-profils__liste { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; scrollbar-width: none; }
	.mpe-lies-profils__liste::-webkit-scrollbar { display: none; }
	.mpe-lies-profils__liste li { flex: 0 0 42%; scroll-snap-align: start; }
}
