/* ==========================================================================
   Event Program Manager — socle commun à tous les modèles.
   Tout est préfixé par .epm pour rester isolé du thème. Les valeurs viennent
   des variables CSS injectées par programme (réglages de personnalisation).
   ========================================================================== */

.epm {
	--epm-primary: #e11d74;
	--epm-primary-on: #fff;
	--epm-secondary: #f59e0b;
	--epm-text: #4b5563;
	--epm-heading: #1f2a44;
	--epm-bg: transparent;
	--epm-card: #fff;
	--epm-border: #e6e8ef;
	--epm-border-w: 1px;
	--epm-radius: 14px;
	--epm-title-size: 22px;
	--epm-text-size: 16px;
	--epm-time-size: 15px;
	--epm-gap: 24px;
	--epm-max-width: 1200px;
	--epm-photo: 56px;
	--epm-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--epm-heading-weight: 700;
	--epm-shadow: 0 1px 2px rgba(20, 24, 40, .05), 0 8px 24px -12px rgba(20, 24, 40, .18);
	--epm-muted: color-mix(in srgb, var(--epm-text) 72%, transparent);
	--epm-photo-radius: 50%;

	container-type: inline-size;
	container-name: epm;

	box-sizing: border-box;
	width: 100%;
	max-width: var(--epm-max-width);
	margin-inline: auto;
	padding: 0;
	background: var(--epm-bg);
	color: var(--epm-text);
	font-family: var(--epm-font);
	font-size: var(--epm-text-size);
	line-height: 1.6;
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.epm *,
.epm *::before,
.epm *::after {
	box-sizing: border-box;
}

.epm :is(h2, h3, h4, p, ul, ol, li, figure, table, th, td) {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}

.epm :is(ul, ol) {
	list-style: none;
}

/* Protection contre les styles globaux des thèmes appliqués aux balises génériques
   (ex. « section { padding: 130px 0; min-height: 100vh } », en-tête mobile sur
   « header », menu sur « nav ») : le programme utilise ces balises, qui héritaient
   alors d'espaces énormes. Spécificité volontairement faible : les modèles gardent
   leurs propres réglages. */
.epm :is(header, nav, section, article, footer, aside, time) {
	float: none;
	width: auto;
	height: auto;
	min-height: 0;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	transform: none;
}

.epm :is(header, nav, section, article, footer, aside)::before,
.epm :is(header, nav, section, article, footer, aside)::after {
	content: none;
}

.epm time {
	display: inline;
}

.epm button {
	margin: 0;
}

.epm :is(h2, h3, h4) {
	color: var(--epm-heading);
	font-weight: var(--epm-heading-weight);
	line-height: 1.25;
}

.epm img {
	max-width: 100%;
	height: auto;
	border: 0;
	box-shadow: none;
}

.epm a {
	color: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.epm button {
	font: inherit;
	letter-spacing: normal;
	text-transform: none;
	text-shadow: none;
	box-shadow: none;
	min-height: 0;
	line-height: 1.3;
}

.epm :focus-visible {
	outline: 3px solid var(--epm-current-day, var(--epm-primary));
	outline-offset: 3px;
}

.epm .epm-desc p + p,
.epm .epm-extra p + p,
.epm .epm-header__desc p + p,
.epm .epm-day-desc p + p {
	margin-top: .75em;
}

/* Ombres (réglage) */
.epm.epm-shadow-none { --epm-shadow: none; }
.epm.epm-shadow-strong { --epm-shadow: 0 2px 4px rgba(20, 24, 40, .06), 0 18px 40px -16px rgba(20, 24, 40, .32); }

/* Forme des photos (réglage) */
.epm.epm-photo-rounded { --epm-photo-radius: 22%; }
.epm.epm-photo-square { --epm-photo-radius: 0; }

/* Accessibilité */
.epm .epm-sr-only,
.epm .epm-day-title--tabs {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.epm [hidden] {
	display: none !important;
}

.epm .epm-notice {
	margin: 0 0 16px;
	padding: 10px 14px;
	border-left: 4px solid #d97706;
	background: #fffbeb;
	color: #78350f;
	font-size: 14px;
}

/* --------------------------------------------------------------------------
   En-tête du programme
   -------------------------------------------------------------------------- */
.epm .epm-header {
	display: flex;
	gap: calc(var(--epm-gap) * .8);
	align-items: center;
	margin: 0 0 calc(var(--epm-gap) * 1.6);
}

.epm .epm-header__logo {
	flex: 0 0 auto;
	width: clamp(56px, 12cqi, 96px);
	height: auto;
	border-radius: calc(var(--epm-radius) * .6);
}

.epm .epm-header__type {
	margin-bottom: 6px;
	color: var(--epm-primary);
	font-size: .9em;
	font-weight: 600;
}

.epm .epm-header__title {
	font-size: clamp(calc(var(--epm-title-size) * 1.2), 5cqi, calc(var(--epm-title-size) * 1.8));
	line-height: 1.12;
}

.epm .epm-header__subtitle {
	margin-top: 8px;
	color: var(--epm-heading);
	font-size: 1.08em;
	opacity: .8;
}

.epm .epm-header__dates {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	align-items: center;
	margin-top: 12px;
	color: var(--epm-muted);
	font-size: .92em;
}

.epm .epm-header__dates .epm-icon {
	color: var(--epm-primary);
}

.epm .epm-header__count {
	padding: 1px 10px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--epm-primary) 10%, transparent);
	color: var(--epm-heading);
	font-weight: 600;
	font-size: .92em;
}

.epm .epm-header__desc {
	max-width: 70ch;
	margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Éléments partagés
   -------------------------------------------------------------------------- */
.epm .epm-icon {
	display: inline-block;
	flex: 0 0 auto;
	width: 1.05em;
	height: 1.05em;
	vertical-align: -.15em;
}

.epm .epm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 10px 2px 8px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--epm-chip, var(--epm-primary)) 12%, transparent);
	color: color-mix(in srgb, var(--epm-chip, var(--epm-primary)) 78%, #000);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.6;
}

.epm .epm-chip::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--epm-chip, var(--epm-primary));
}

.epm .epm-access {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	color: var(--epm-muted);
	font-size: .88em;
	font-weight: 500;
}

.epm .epm-access--reserved,
.epm .epm-access--invitation {
	color: color-mix(in srgb, #b45309 90%, var(--epm-text));
}

.epm .epm-avatar {
	display: inline-grid;
	place-items: center;
	flex: 0 0 auto;
	width: var(--epm-photo);
	height: var(--epm-photo);
	object-fit: cover;
	border-radius: var(--epm-photo-radius);
	background: color-mix(in srgb, var(--epm-heading) 8%, #fff);
}

.epm .epm-avatar--logo {
	object-fit: contain;
	padding: 6%;
	background: #fff;
	border: 1px solid var(--epm-border);
}

.epm .epm-avatar--initials {
	color: var(--epm-heading);
	font-size: calc(var(--epm-photo) * .34);
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1;
	user-select: none;
}

.epm .epm-people--list {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 22px;
}

.epm .epm-person {
	display: flex;
	gap: 12px;
	align-items: center;
	min-width: 0;
}

.epm .epm-person__text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.epm .epm-person__name {
	color: var(--epm-heading);
	font-weight: 600;
}

.epm .epm-person__name a,
.epm .epm-people__name a {
	text-decoration: none;
}

.epm .epm-person__name a:hover,
.epm .epm-people__name a:hover {
	text-decoration: underline;
}

.epm .epm-person__role {
	color: var(--epm-muted);
	font-size: .86em;
}

.epm .epm-people--avatars {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.epm .epm-people--avatars .epm-people__item {
	display: block;
	line-height: 0;
}

.epm .epm-people--names .epm-people__name {
	color: var(--epm-heading);
	font-weight: 600;
}

.epm .epm-empty {
	padding: calc(var(--epm-gap) * 1.2);
	border: 1px dashed var(--epm-border);
	border-radius: var(--epm-radius);
	color: var(--epm-muted);
	text-align: center;
}

.epm .epm-day-desc {
	max-width: 70ch;
	margin: 0 0 var(--epm-gap);
	color: var(--epm-muted);
}

.epm .epm-extra {
	margin-top: 12px;
	padding: 12px 14px;
	border-left: 3px solid var(--epm-accent, var(--epm-primary));
	background: color-mix(in srgb, var(--epm-accent, var(--epm-primary)) 6%, transparent);
	font-size: .95em;
}

/* Boutons (réglage : plein / contour / pilule) */
.epm .epm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 20px;
	border: 2px solid var(--epm-btn, var(--epm-accent, var(--epm-primary)));
	border-radius: calc(var(--epm-radius) * .5);
	background: var(--epm-btn, var(--epm-accent, var(--epm-primary)));
	color: var(--epm-btn-on, var(--epm-accent-on, var(--epm-primary-on)));
	font-size: .95em;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease, background-color .15s ease;
}

.epm .epm-btn:hover {
	filter: brightness(.94);
}

.epm.epm-btn-outline .epm-btn {
	background: transparent;
	color: color-mix(in srgb, var(--epm-btn, var(--epm-accent, var(--epm-primary))) 85%, #000);
}

.epm.epm-btn-outline .epm-btn:hover {
	background: color-mix(in srgb, var(--epm-btn, var(--epm-accent, var(--epm-primary))) 10%, transparent);
	filter: none;
}

.epm.epm-btn-pill .epm-btn {
	border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
	.epm *,
	.epm *::before,
	.epm *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}

@container epm (max-width: 560px) {
	/* En-tête mobile compact : petit logo à côté du texte. */
	.epm .epm-header {
		flex-direction: row;
		gap: 12px;
		align-items: flex-start;
		margin-bottom: 20px;
	}

	.epm .epm-header__logo {
		width: 52px;
		margin-top: 2px;
	}

	.epm .epm-header__text {
		min-width: 0;
	}

	.epm .epm-header__type {
		font-size: 12px;
		letter-spacing: .06em;
	}

	.epm .epm-header__subtitle {
		margin-top: 4px;
		font-size: 15px;
	}

	.epm .epm-header__dates {
		gap: 6px 10px;
		margin-top: 10px;
		font-size: 14px;
	}

	.epm .epm-header__desc {
		margin-top: 10px;
		font-size: 15px;
		line-height: 1.55;
	}
}

/* ==========================================================================
   Responsive commun à tous les modèles (1.5.0)
   ========================================================================== */

/* Les mots très longs (URL, noms composés) ne doivent jamais élargir une grille
   ou une carte au-delà de l'écran : « anywhere » réduit leur largeur minimale. */
.epm :is(.epm-desc, .epm-extra, .epm-day-desc, .epm-header__desc, .epm-loc, .epm-subtitle, .epm-person__name, .epm-person__role, .epm-people__name, .epm-access) {
	overflow-wrap: anywhere;
}

.epm :is(h2, h3, h4) {
	overflow-wrap: break-word;
}

.epm :is(ol, ul, article, section) {
	min-width: 0;
}

/* Taille de titre mobile dérivée du réglage du programme (jamais écrasée). */
.epm {
	--epm-title-size-m: calc(var(--epm-title-size) * .82);
}

@container epm (max-width: 560px) {
	/* Titres longs : césure propre plutôt que débordement. */
	.epm :is(.epm-header__title, h4) {
		hyphens: auto;
		-webkit-hyphens: auto;
	}

	.epm .epm-header__title {
		font-size: clamp(21px, 7.2cqi, calc(var(--epm-title-size) * 1.2));
	}

	.epm > * {
		--epm-title-size: var(--epm-title-size-m);
	}

}

/* Tablette et mobile (écrans tactiles) : liens et boutons d'au moins 44 px de haut. */
@container epm (max-width: 900px) {
	.epm :is(a[class$="__link"], a[class*="__link "], .epm-btn) {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}
}

/* Téléphone : marges latérales confortables (le contenu ne touche plus les bords). */
@media (max-width: 640px) {
	.epm {
		--epm-edge: 14px;
		padding-inline: var(--epm-edge);
	}
}

@container epm (max-width: 620px) {
	/* Participants : empilés, sans grands espaces, avatars de taille raisonnable. */
	.epm .epm-people--list {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 10px;
	}

	.epm .epm-people--list .epm-avatar {
		width: min(var(--epm-photo), 44px);
		height: min(var(--epm-photo), 44px);
	}

	.epm .epm-person {
		gap: 10px;
	}

	.epm .epm-person__name {
		font-size: 15px;
		line-height: 1.3;
	}

	.epm .epm-person__role {
		font-size: 13px;
		line-height: 1.35;
	}

	/* Navigation des jours : défilement horizontal avec magnétisme, jamais comprimée. */
	.epm [role="tablist"] {
		scroll-snap-type: x proximity;
		scroll-padding-inline: 2px;
		-webkit-overflow-scrolling: touch;
	}

	.epm [role="tablist"] > [role="tab"] {
		scroll-snap-align: start;
	}
}

/* ==========================================================================
   Correctif 1.5.6 — espace vide sous le programme (Elementor, mobile)
   « container-type: inline-size » rend la largeur intrinsèque du programme nulle.
   Dans un conteneur flex qui dimensionne ses éléments d'après leur contenu
   (conteneurs Elementor en mobile : flex-wrap: wrap), le navigateur calculait
   la hauteur pour une largeur de 0 px (un mot par ligne) : des milliers de
   pixels vides sous le programme.
   ========================================================================== */

/* Widget Elementor contenant un programme : pleine largeur par défaut
   (la largeur choisie dans Elementor reste prioritaire). */
.elementor-widget-epm-program,
.elementor-widget:has(> .elementor-widget-container .epm) {
	--container-widget-width: 100%;
}

/* Sécurité mobile pour tout constructeur de page : largeur intrinsèque réaliste. */
@media (max-width: 767px) {
	.epm {
		contain-intrinsic-inline-size: 100vw;
	}
}

/* ==========================================================================
   1.6.0 — Activités en accordéon (tous les modèles de programme).
   Actif uniquement avec JavaScript (.epm-js) : sans JS, tout reste visible.
   ========================================================================== */
.epm.epm-js.epm-acc [data-epm-act]:not(.is-open) .epm-acc-d {
	display: none !important;
}

.epm.epm-js.epm-acc [data-epm-act]:not(.is-open):not(.epm-acc-empty) {
	cursor: pointer;
}

.epm.epm-acc .epm-acc-title {
	display: block;
}

.epm.epm-acc .epm-acc-title .epm-acc-toggle,
.epm.epm-acc .epm-acc-title .epm-acc-toggle:hover,
.epm.epm-acc .epm-acc-title .epm-acc-toggle:focus,
.epm.epm-acc .epm-acc-title .epm-acc-toggle:active {
	display: flex;
	gap: .6em;
	align-items: flex-start;
	justify-content: space-between;
	width: 100%;
	min-height: 0;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: transparent !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit;
	letter-spacing: inherit;
	line-height: inherit;
	text-align: inherit;
	text-decoration: none;
	text-transform: inherit;
	white-space: normal;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.epm.epm-acc .epm-acc-title .epm-acc-toggle:focus-visible {
	outline: 2px solid var(--epm-accent, currentColor);
	outline-offset: 3px;
	border-radius: 4px;
}

.epm.epm-acc .epm-acc-toggle__text {
	flex: 1 1 auto;
	min-width: 0;
}

.epm.epm-acc .epm-acc-chevron {
	display: none;
}

.epm.epm-js.epm-acc .epm-acc-chevron {
	display: inline-block;
	flex: 0 0 auto;
	width: .55em;
	height: .55em;
	margin: .3em .15em 0 0;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	opacity: .6;
	transform: rotate(45deg);
	transition: transform .2s ease;
}

.epm.epm-js.epm-acc [data-epm-act].is-open .epm-acc-chevron {
	margin-top: .55em;
	transform: rotate(-135deg);
}

.epm.epm-js.epm-acc .epm-acc-empty .epm-acc-chevron {
	display: none;
}

.epm.epm-js.epm-acc .epm-acc-empty .epm-acc-toggle {
	cursor: default;
}

@media (prefers-reduced-motion: reduce) {
	.epm.epm-js.epm-acc .epm-acc-chevron {
		transition: none;
	}
}

/* ==========================================================================
   Accordéon en liste compacte (identique pour tous les designs).
   1.6.2 : version minimaliste — lignes resserrées, horaire + type + titre sur
   une seule ligne, textes plus petits, participants en petites vignettes.
   Les règles « !important » neutralisent les marges / interlignes que certains
   thèmes appliquent aux paragraphes et boutons.
   ========================================================================== */
.epm .epm-accl {
	--epm-photo: 34px;
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 6px 0 0;
	border-top: 3px solid var(--epm-current-day, var(--epm-primary));
	border-radius: 2px 2px 0 0;
	list-style: none;
	line-height: 1.35;
}

.epm .epm-accl :is(p, h4, ul, li, div) {
	margin: 0 !important;
}

.epm .epm-accl__item {
	position: relative;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: var(--epm-border-w) solid var(--epm-border);
	border-radius: min(var(--epm-radius), 14px);
	background: var(--epm-card);
	box-shadow: 0 1px 2px rgba(20, 24, 40, .04);
	transition: border-color .2s ease;
}

.epm .epm-accl__item.is-open {
	border-color: color-mix(in srgb, var(--epm-dot, var(--epm-accent, var(--epm-primary))) 35%, var(--epm-border));
}

/* Ligne verticale discrète qui relie les points */
.epm .epm-accl__item::before {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 21px;
	width: 2px;
	background: color-mix(in srgb, var(--epm-dot, var(--epm-accent, var(--epm-primary))) 16%, transparent);
	pointer-events: none;
}

.epm .epm-accl__row {
	position: relative;
	display: flex;
	gap: 12px;
	align-items: center;
	min-height: 0;
	padding: 10px 12px 10px 16px;
}

.epm.epm-js .epm-accl__item:not(.epm-acc-empty) .epm-accl__row {
	cursor: pointer;
}

.epm .epm-accl__dot {
	position: relative;
	z-index: 1;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	border: 2px solid var(--epm-card);
	border-radius: 50%;
	background: var(--epm-dot, var(--epm-accent, var(--epm-primary)));
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--epm-dot, var(--epm-accent, var(--epm-primary))) 30%, transparent);
}

.epm .epm-accl__tags {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: nowrap;
	gap: 8px;
	align-items: center;
}

.epm .epm-accl__time {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 7px;
	background: color-mix(in srgb, var(--epm-time, var(--epm-secondary)) 12%, transparent);
	color: color-mix(in srgb, var(--epm-time, var(--epm-secondary)) 85%, #000);
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
}

.epm .epm-accl__time .epm-time__sep {
	white-space: pre;
}

.epm .epm-accl__chip {
	padding: 4px 10px;
	border-radius: 7px;
	font-size: 12px;
	line-height: 1.3;
	white-space: nowrap;
}

.epm .epm-accl__chip::before {
	content: none;
}

.epm .epm-accl__main {
	flex: 1 1 auto;
	min-width: 0;
}

.epm .epm-accl__title {
	color: var(--epm-heading);
	font-size: 15px !important;
	font-weight: 700;
	line-height: 1.3 !important;
}

.epm .epm-accl .epm-accl__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 2px 18px;
	margin-top: 3px !important;
	color: var(--epm-muted);
	font-size: 12.5px;
	line-height: 1.35;
}

.epm .epm-accl__meta :is(.epm-accl__loc, .epm-accl__access) {
	display: inline-flex;
	gap: 5px;
	align-items: center;
	min-width: 0;
	color: inherit;
	font-size: inherit;
	font-weight: 400;
	line-height: inherit;
}

.epm .epm-accl__meta .epm-icon {
	width: 13px;
	height: 13px;
}

.epm .epm-accl__btn,
.epm .epm-accl__btn:hover,
.epm .epm-accl__btn:focus {
	display: inline-grid;
	flex: 0 0 auto;
	place-items: center;
	width: 32px;
	height: 32px;
	min-height: 0;
	margin: 0 0 0 auto !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: color-mix(in srgb, var(--epm-heading) 6%, transparent) !important;
	box-shadow: none !important;
	outline: none;
	color: var(--epm-heading) !important;
	line-height: 1;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .15s ease;
}

.epm .epm-accl__btn:hover {
	background: color-mix(in srgb, var(--epm-heading) 11%, transparent) !important;
}

/* Contour uniquement au clavier (pas de gros cercle après un clic souris) */
.epm .epm-accl__btn:focus-visible {
	outline: 2px solid var(--epm-dot, var(--epm-accent, var(--epm-primary)));
	outline-offset: 2px;
}

.epm .epm-accl__item.is-open .epm-accl__btn {
	background: color-mix(in srgb, var(--epm-dot, var(--epm-accent, var(--epm-primary))) 14%, transparent) !important;
	color: color-mix(in srgb, var(--epm-dot, var(--epm-accent, var(--epm-primary))) 85%, #000) !important;
}

.epm .epm-accl__chev {
	display: block;
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s ease, margin .2s ease;
}

.epm .epm-accl__item.is-open .epm-accl__chev {
	margin-top: 3px;
	transform: rotate(-135deg);
}

/* Sans JavaScript, la flèche n'a pas d'utilité : tout est affiché. */
.epm:not(.epm-js) .epm-accl__btn {
	display: none;
}

/* Panneau ouvert : compact, aligné sous le titre */
.epm .epm-accl__panel {
	position: relative;
	display: grid;
	gap: 8px;
	padding: 0 14px 12px 40px;
	font-size: 13.5px;
	line-height: 1.45;
}

.epm .epm-accl__panel p,
.epm .epm-accl__panel li {
	line-height: 1.45 !important;
}

.epm .epm-accl__panel .epm-desc p + p,
.epm .epm-accl__panel .epm-extra p + p {
	margin-top: .5em !important;
}

.epm .epm-accl__subtitle {
	color: var(--epm-muted);
	font-size: 13px;
	font-weight: 600;
}

.epm .epm-accl__desc {
	color: var(--epm-text);
}

.epm .epm-accl__panel .epm-extra {
	padding: 8px 10px;
	font-size: 1em;
}

.epm .epm-accl__people-wrap {
	padding-top: 8px;
	border-top: 1px solid var(--epm-border);
}

.epm .epm-accl__people {
	gap: 8px 18px;
}

.epm .epm-accl__people .epm-person {
	gap: 8px;
}

.epm .epm-accl__people .epm-avatar {
	width: var(--epm-photo);
	height: var(--epm-photo);
}

.epm .epm-accl__people .epm-avatar--initials {
	font-size: 12px;
}

.epm .epm-accl__people .epm-person__name {
	font-size: 13px;
	line-height: 1.25;
}

.epm .epm-accl__people .epm-person__role {
	font-size: 11.5px;
	line-height: 1.25;
}

.epm .epm-accl__link,
.epm .epm-accl__link:hover {
	justify-self: start;
	padding: 6px 14px;
	font-size: 13px;
}

/* Tablette / mobile : horaire et type au-dessus du titre */
@container epm (max-width: 700px) {
	.epm .epm-accl__row {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr) auto;
		grid-template-areas:
			"dot tags btn"
			". main main";
		gap: 6px 10px;
		padding: 10px 10px 10px 14px;
	}

	.epm .epm-accl__item::before {
		left: 19px;
	}

	.epm .epm-accl__dot { grid-area: dot; }
	.epm .epm-accl__tags { grid-area: tags; flex-wrap: wrap; gap: 6px; }
	.epm .epm-accl__main { grid-area: main; }
	.epm .epm-accl__btn { grid-area: btn; }

	.epm .epm-accl__row:not(:has(.epm-accl__tags)) {
		grid-template-areas: "dot main btn";
	}

	.epm .epm-accl__panel {
		padding: 0 12px 12px 36px;
	}

	.epm .epm-accl__meta {
		gap: 2px 12px;
	}
}

@container epm (max-width: 420px) {
	.epm .epm-accl__panel {
		padding-left: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.epm .epm-accl__chev,
	.epm .epm-accl__btn,
	.epm .epm-accl__item {
		transition: none;
	}
}

/* ==========================================================================
   1.9.0 — Titres d'activité longs : taille réduite automatiquement
   (classes epm-title--long / --xlong posées selon la longueur du titre).
   Les titres courts gardent leur taille normale.
   ========================================================================== */
.epm .epm-title--long,
.epm .epm-title--xlong {
	overflow-wrap: anywhere;
	-webkit-hyphens: auto;
	hyphens: auto;
	text-wrap: balance;
}

.epm .epm-accl__title.epm-title--long {
	font-size: 14px !important;
}

.epm .epm-accl__title.epm-title--xlong {
	font-size: 13px !important;
	line-height: 1.35 !important;
}

.epm [class].epm-title--long:not(.epm-accl__title) {
	font-size: calc(var(--epm-title-size, 20px) * .88);
}

.epm [class].epm-title--xlong:not(.epm-accl__title) {
	font-size: calc(var(--epm-title-size, 20px) * .78);
	line-height: 1.3;
}

/* Designs dont le titre est agrandi (éditorial ×1.3, tuile bento XL ×1.5) */
.epm-tpl-editorial [class].epm-ed__title.epm-title--long {
	font-size: calc(var(--epm-title-size, 20px) * 1.12);
}

.epm-tpl-editorial [class].epm-ed__title.epm-title--xlong {
	font-size: calc(var(--epm-title-size, 20px) * .98);
}

.epm-tpl-bento .epm-bt__tile--xl [class].epm-bt__title.epm-title--long {
	font-size: calc(var(--epm-title-size, 20px) * 1.25);
}

.epm-tpl-bento .epm-bt__tile--xl [class].epm-bt__title.epm-title--xlong {
	font-size: calc(var(--epm-title-size, 20px) * 1.05);
}

/* Tableau : titre en em */
.epm-tpl-table [class].epm-tb__title.epm-title--long {
	font-size: .95em;
}

.epm-tpl-table [class].epm-tb__title.epm-title--xlong {
	font-size: .88em;
}

@container epm (max-width: 700px) {
	.epm .epm-accl__title.epm-title--long {
		font-size: 13.5px !important;
	}

	.epm .epm-accl__title.epm-title--xlong {
		font-size: 12.5px !important;
	}
}

/* ==========================================================================
   1.9.0 — Participants cliquables + popup (programme public)
   ========================================================================== */
.epm .epm-pbtn {
	display: inline;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: none !important;
	box-shadow: none !important;
	color: inherit !important;
	font: inherit !important;
	letter-spacing: inherit;
	text-align: inherit;
	text-transform: inherit;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.epm .epm-pbtn:hover,
.epm .epm-pbtn:focus-visible {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.epm .epm-pbtn:focus-visible {
	outline: 2px solid var(--epm-primary);
	outline-offset: 2px;
}

.epm .epm-pbtn--avatar {
	display: inline-block;
	line-height: 0;
	border-radius: 50% !important;
}

.epm .epm-person--pop {
	cursor: pointer;
}

.epm .epm-person--pop .epm-avatar {
	transition: transform .15s ease, box-shadow .15s ease;
}

.epm .epm-person--pop:hover .epm-avatar {
	box-shadow: 0 0 0 2px var(--epm-primary);
	transform: scale(1.04);
}

html.epm-ppl-lock {
	overflow: hidden;
}

.epm-ppl {
	--epm-ppl-accent: #3b5bfd;
	width: min(560px, calc(100vw - 24px));
	max-width: none;
	max-height: min(86vh, 760px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #1f2937;
	font-size: 15px;
	line-height: 1.5;
	box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

.epm-ppl[open] {
	display: flex;
	flex-direction: column;
}

.epm-ppl:not([open]) {
	display: none;
}

/* Repli sans showModal : fenêtre centrée */
.epm-ppl[open]:not(:modal) {
	position: fixed;
	z-index: 100000;
	inset: 0;
}

.epm-ppl::backdrop {
	background: rgba(15, 23, 42, .55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.epm-ppl__box {
	position: relative;
	overflow-y: auto;
	padding: 26px 26px 24px;
	border-top: 4px solid var(--epm-ppl-accent);
}

.epm-ppl__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f3f7;
	color: #111827;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.epm-ppl__close:hover,
.epm-ppl__close:focus-visible {
	background: #e3e7ef;
	outline: none;
}

.epm-ppl__head {
	display: flex;
	gap: 18px;
	align-items: center;
	padding-right: 30px;
}

.epm-ppl__media {
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	width: 96px;
	height: 96px;
	overflow: hidden;
	border-radius: 50%;
	background: color-mix(in srgb, var(--epm-ppl-accent) 12%, #fff);
	color: var(--epm-ppl-accent);
	font-size: 30px;
	font-weight: 700;
}

.epm-ppl__media.is-logo {
	border-radius: 12px;
	background: #fff;
	box-shadow: inset 0 0 0 1px #e5e7eb;
}

.epm-ppl__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.epm-ppl__media.is-logo img {
	padding: 8px;
	object-fit: contain;
}

.epm-ppl__id {
	min-width: 0;
}

.epm-ppl__name {
	margin: 0 0 4px !important;
	color: #111827;
	font-size: 21px !important;
	font-weight: 800;
	line-height: 1.25 !important;
	overflow-wrap: anywhere;
}

.epm-ppl__job,
.epm-ppl__org {
	margin: 0 !important;
	font-size: 14px;
	line-height: 1.4;
}

.epm-ppl__job {
	color: #374151;
	font-weight: 600;
}

.epm-ppl__org {
	color: var(--epm-ppl-accent);
	font-weight: 600;
}

.epm-ppl__desc {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #eef0f4;
	color: #374151;
	white-space: pre-line;
	overflow-wrap: anywhere;
}

.epm-ppl__link {
	display: inline-flex;
	align-items: center;
	margin-top: 18px;
	padding: 9px 18px;
	border-radius: 999px;
	background: var(--epm-ppl-accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.epm-ppl__link:hover,
.epm-ppl__link:focus-visible {
	filter: brightness(1.08);
}

@media (max-width: 520px) {
	.epm-ppl {
		width: calc(100vw - 16px);
		max-height: 88vh;
		border-radius: 14px;
	}

	.epm-ppl__box {
		padding: 22px 18px 20px;
	}

	.epm-ppl__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.epm-ppl__media {
		width: 76px;
		height: 76px;
		font-size: 24px;
	}

	.epm-ppl__name {
		font-size: 19px !important;
	}
}
