/**
 * Espace organisateur — Mes événements + bouton Modifier + sheet Créer.
 * Tokens : calendanse-branding.css + calendanse-simple-nav :root
 * Scope : liste FES ?vlist=1, fiche single MEC, bottom nav Créer.
 */

body.cd-oem-vlist,
body.cd-oem-fes-create,
body.cd-oem-fes-edit,
body.cd-oem-transactional {
	--cd-oem-night: var(--cd-brand-night, var(--cdsn-night, #0b1f4d));
	--cd-oem-violet: var(--cd-brand-violet, var(--cdsn-violet, #6a3fb5));
	--cd-oem-surface: var(--cd-brand-bg-soft, var(--cdsn-surface, #f4f6f8));
	--cd-oem-card: var(--cdsn-card, #ffffff);
	--cd-oem-ink: var(--cdsn-ink, #14233f);
	--cd-oem-muted: var(--cdsn-muted, #4d5d78);
	--cd-oem-line: var(--cd-border, var(--cdsn-line, rgba(11, 31, 77, 0.14)));
	--cd-oem-radius: var(--cdsn-radius-md, 16px);
	--cd-oem-radius-sm: var(--cdsn-radius-sm, 12px);
	--cd-oem-shadow: var(--cdsn-shadow-card, 0 8px 24px rgba(11, 31, 77, 0.07));
	--cd-oem-focus: var(--cd-brand-focus, var(--cd-oem-violet));
	--cd-oem-focus-ring: var(--cd-brand-focus-ring, rgba(106, 63, 181, 0.35));
	--cd-oem-btn: var(--cd-brand-btn, var(--cd-oem-night));
	--cd-oem-btn-hover: var(--cd-brand-btn-hover, var(--cd-oem-violet));
	--cd-oem-bottom-h: var(--csn-bottom-h, calc(68px + env(safe-area-inset-bottom, 0px)));
}

/* ----- Bouton Modifier (fiche publique) ----- */
body.single-mec-events .cd-event-edit-btn,
.cd-event-actions .cd-event-edit-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0.55rem 1rem;
	min-height: 44px;
	min-width: 44px;
	border: 1px solid var(--cd-oem-btn, #0b1f4d);
	border-radius: var(--cd-oem-radius-sm, 12px);
	background: var(--cd-oem-btn, #0b1f4d);
	color: #fff !important;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: background 0.16s ease, border-color 0.16s ease;
}

body.single-mec-events .cd-event-edit-btn:hover,
body.single-mec-events .cd-event-edit-btn:focus-visible,
.cd-event-actions .cd-event-edit-btn:hover,
.cd-event-actions .cd-event-edit-btn:focus-visible {
	background: var(--cd-oem-btn-hover, #6a3fb5);
	border-color: var(--cd-oem-btn-hover, #6a3fb5);
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}

@media (max-width: 781px) {
	body.single-mec-events .cd-event-actions .cd-event-edit-btn {
		min-height: 44px;
	}
}

/* ----- Mes événements (liste FES) ----- */
body.cd-oem-vlist .mec-fes-list {
	max-width: 100%;
	overflow-x: hidden;
	padding: 0 0.75rem calc(var(--cd-oem-bottom-h, 5.5rem) + 1rem);
	box-sizing: border-box;
}

body.cd-oem-vlist .mec-fes-list.cd-oem-ready {
	background: transparent;
}

.cd-oem-header {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin: 0 0 1.15rem;
	padding: 0.15rem 0.15rem 0;
}

.cd-oem-header__title {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--cd-oem-night, #0b1f4d);
}

.cd-oem-header__lead {
	margin: 0;
	color: var(--cd-oem-muted, #4d5d78);
	font-size: 0.98rem;
	line-height: 1.45;
	max-width: 38rem;
}

.cd-oem-scope {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.15rem 0 0;
	padding: 0.2rem;
	border-radius: 999px;
	background: rgba(11, 31, 77, 0.05);
	width: fit-content;
	max-width: 100%;
}

.cd-oem-scope__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	color: var(--cd-oem-night, #0b1f4d);
	font-size: 0.86rem;
	font-weight: 650;
	text-decoration: none;
	transition: background 0.16s ease, color 0.16s ease;
}

.cd-oem-scope__btn.is-active {
	background: var(--cd-oem-night, #0b1f4d);
	color: #fff;
}

.cd-oem-scope__btn:focus-visible {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}

.cd-oem-admin-banner {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--cd-oem-muted, #4d5d78);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.cd-oem-admin-banner--mine {
	background: transparent;
	color: var(--cd-oem-muted, #4d5d78);
}

.cd-oem-header__summary {
	margin: 0;
	color: var(--cd-oem-muted, #4d5d78);
	font-size: 0.92rem;
	font-weight: 600;
}

.cd-oem-header__actions {
	margin: 0.25rem 0 0;
}

.cd-oem-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 44px;
	padding: 0.5rem 1.05rem;
	border-radius: var(--cd-oem-radius-sm, 12px);
	border: 1px solid var(--cd-oem-line, rgba(11, 31, 77, 0.14));
	background: #fff;
	color: var(--cd-oem-ink, #14233f);
	font-weight: 650;
	font-size: 0.95rem;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
	transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.cd-oem-btn--primary {
	background: var(--cd-oem-btn, #0b1f4d);
	border-color: var(--cd-oem-btn, #0b1f4d);
	color: #fff;
}

.cd-oem-btn--primary:hover,
.cd-oem-btn--primary:focus-visible {
	background: var(--cd-oem-btn-hover, #6a3fb5);
	border-color: var(--cd-oem-btn-hover, #6a3fb5);
	color: #fff;
}

.cd-oem-btn--ghost {
	background: transparent;
	border-color: transparent;
	color: var(--cd-oem-night, #0b1f4d);
	text-decoration: underline;
	text-underline-offset: 0.18em;
	min-height: 44px;
	padding-left: 0.35rem;
	padding-right: 0.35rem;
}

.cd-oem-btn--ghost:hover,
.cd-oem-btn--ghost:focus-visible {
	background: rgba(11, 31, 77, 0.04);
	text-decoration: underline;
}

.cd-oem-btn:focus-visible {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}

.cd-oem-btn:active {
	transform: translateY(1px);
}

.cd-oem-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
	margin: 0 0 1rem;
	padding: 0;
}

.cd-oem-filters__search {
	flex: 1 1 12rem;
	min-width: 0;
}

.cd-oem-filters__search input {
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--cd-oem-line, rgba(11, 31, 77, 0.14));
	border-radius: 999px;
	font-size: 1rem;
	box-sizing: border-box;
	background: #fff;
	color: var(--cd-oem-ink, #14233f);
}

.cd-oem-filters__search input:focus {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 1px;
	border-color: var(--cd-oem-focus, #6a3fb5);
}

.cd-oem-filters__toggle {
	flex: 0 0 auto;
	min-height: 44px;
	padding: 0.5rem 1rem;
	border: 1px solid var(--cd-oem-line, rgba(11, 31, 77, 0.14));
	border-radius: 999px;
	background: #fff;
	color: var(--cd-oem-night, #0b1f4d);
	font-weight: 650;
	cursor: pointer;
}

.cd-oem-filters__toggle[aria-expanded="true"],
.cd-oem-filters__toggle.is-active {
	background: var(--cd-oem-night, #0b1f4d);
	border-color: var(--cd-oem-night, #0b1f4d);
	color: #fff;
}

.cd-oem-filters__toggle:focus-visible {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}

.cd-oem-filters__chips {
	flex: 1 1 100%;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0.15rem 0 0;
}

.cd-oem-filters__chips:empty {
	display: none;
}

.cd-oem-chip--dismiss {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	min-height: 32px;
	max-width: 100%;
	padding: 0.15rem 0.55rem 0.15rem 0.7rem;
	border: 0;
	border-radius: 999px;
	background: rgba(11, 31, 77, 0.07);
	color: var(--cd-oem-night, #0b1f4d);
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cd-oem-chip--dismiss:focus-visible {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}

.cd-oem-filters__backdrop {
	display: none;
}

.cd-oem-filters__panel {
	flex: 1 1 100%;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	padding: 0.85rem;
	border: 0;
	border-radius: var(--cd-oem-radius, 16px);
	background: #fff;
	box-shadow: var(--cd-oem-shadow);
}

.cd-oem-filters__panel[hidden] {
	display: none !important;
}

.cd-oem-filters__sheet-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin: 0 0 0.15rem;
}

.cd-oem-filters__sheet-title {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 750;
	color: var(--cd-oem-night, #0b1f4d);
}

.cd-oem-filters__sheet-close {
	min-height: 44px;
	min-width: 44px;
	border: 0;
	border-radius: 999px;
	background: rgba(11, 31, 77, 0.06);
	color: var(--cd-oem-night, #0b1f4d);
	font-size: 1.2rem;
	cursor: pointer;
}

.cd-oem-filters__sheet-close:focus-visible {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}

.cd-oem-filters__field {
	margin: 0;
	min-width: 0;
}

.cd-oem-filters__field label {
	display: block;
	margin: 0 0 0.3rem;
	font-size: 0.85rem;
	font-weight: 650;
	color: var(--cd-oem-night, #0b1f4d);
}

.cd-oem-filters__field select {
	width: 100%;
	min-height: 44px;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--cd-oem-line, rgba(11, 31, 77, 0.14));
	border-radius: var(--cd-oem-radius-sm, 12px);
	background: #fff;
	font-size: 1rem;
	color: var(--cd-oem-ink, #14233f);
}

.cd-oem-filters__field select:focus {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 1px;
}

.cd-oem-filters__group {
	margin: 0 0 0.35rem;
	padding: 0.45rem 0 0;
	border: 0;
	border-top: 1px solid var(--cd-oem-line, rgba(11, 31, 77, 0.08));
	min-width: 0;
	grid-column: 1 / -1;
}

.cd-oem-filters__sheet-head + .cd-oem-filters__group {
	border-top: 0;
	padding-top: 0;
}

.cd-oem-filters__group legend {
	padding: 0;
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.01em;
	color: var(--cd-oem-muted, #4d5d78);
}

.cd-oem-filters__group .cd-oem-filters__field {
	margin-top: 0.4rem;
}

.cd-oem-filters__more {
	display: none;
	min-height: 44px;
	padding: 0.4rem 0.2rem;
	border: 0;
	background: transparent;
	color: var(--cd-oem-night, #0b1f4d);
	font-weight: 650;
	font-size: 0.9rem;
	text-decoration: underline;
	text-underline-offset: 0.16em;
	cursor: pointer;
	justify-self: start;
}

.cd-oem-filters__more:focus-visible {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}

.cd-oem-filters__extra {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
}

.cd-oem-ms {
	margin: 0;
	min-width: 0;
	border: 0;
	padding: 0;
}

.cd-oem-ms legend {
	display: block;
	margin: 0 0 0.3rem;
	font-size: 0.85rem;
	font-weight: 650;
	color: var(--cd-oem-night, #0b1f4d);
	padding: 0;
}

.cd-oem-ms__search {
	width: 100%;
	min-height: 44px;
	margin: 0 0 0.45rem;
	padding: 0.4rem 0.7rem;
	border: 1px solid var(--cd-oem-line, rgba(11, 31, 77, 0.14));
	border-radius: var(--cd-oem-radius-sm, 12px);
	font-size: 1rem;
	box-sizing: border-box;
}

.cd-oem-ms__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	margin: 0 0 0.4rem;
}

.cd-oem-ms__list {
	max-height: 12.5rem;
	overflow: auto;
	border: 1px solid var(--cd-oem-line, rgba(11, 31, 77, 0.14));
	border-radius: var(--cd-oem-radius-sm, 12px);
	background: #fff;
	-webkit-overflow-scrolling: touch;
}

.cd-oem-ms__opt {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 44px;
	padding: 0.4rem 0.7rem;
	margin: 0;
	cursor: pointer;
	font-size: 0.95rem;
}

.cd-oem-ms__opt + .cd-oem-ms__opt {
	border-top: 1px solid rgba(11, 31, 77, 0.06);
}

.cd-oem-ms__opt[hidden] {
	display: none;
}

.cd-oem-ms__opt input {
	width: 1.15rem;
	height: 1.15rem;
	flex: 0 0 auto;
}

.cd-oem-chip--filter {
	min-height: 32px;
	border: 0;
	background: rgba(11, 31, 77, 0.07);
	cursor: pointer;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--cd-oem-night, #0b1f4d);
	border-radius: 999px;
	padding: 0.15rem 0.65rem;
}

.cd-oem-empty {
	margin: 0.75rem 0 1.5rem;
	padding: 1.5rem 1.1rem;
	border: 0;
	border-radius: var(--cd-oem-radius, 16px);
	background: #fff;
	box-shadow: var(--cd-oem-shadow);
	text-align: center;
}

.cd-oem-empty[hidden] {
	display: none !important;
}

.cd-oem-empty__title {
	margin: 0 0 0.4rem;
	font-size: 1.15rem;
	font-weight: 750;
	color: var(--cd-oem-night, #0b1f4d);
}

.cd-oem-empty p {
	margin: 0 0 0.85rem;
	color: var(--cd-oem-muted, #4d5d78);
}

.cd-oem-empty__filters,
.cd-oem-empty__none {
	display: none;
}

.cd-oem-empty[data-cd-oem-empty="filters"] .cd-oem-empty__filters,
.cd-oem-empty[data-cd-oem-empty="none"] .cd-oem-empty__none {
	display: block;
}

.cd-oem-filters__submit {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
	margin: 0;
	position: sticky;
	bottom: 0;
	padding-top: 0.35rem;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
}

.cd-oem-filters__submit .cd-oem-btn--primary {
	flex: 1 1 12rem;
}

body.cd-oem-vlist .mec-fes-list-top-actions > a,
body.cd-oem-vlist .mec-fes-list-top-actions form {
	display: none !important;
}

body.cd-oem-vlist .mec-fes-list ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

body.cd-oem-vlist .mec-fes-list ul > li {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.4rem;
	margin: 0;
	padding: 1rem 1.05rem 1.05rem;
	border: 0;
	border-radius: var(--cd-oem-radius, 16px);
	background: var(--cd-oem-card, #fff);
	box-shadow: var(--cd-oem-shadow);
	max-width: 100%;
	overflow: hidden;
}

body.cd-oem-vlist .mec-fes-list .mec-event-title {
	font-size: 1.08rem;
	font-weight: 750;
	line-height: 1.3;
	word-break: break-word;
	color: var(--cd-oem-night, #0b1f4d);
}

body.cd-oem-vlist .mec-fes-list .mec-event-title a {
	color: var(--cd-oem-night, #0b1f4d) !important;
	text-decoration: none;
}

body.cd-oem-vlist .mec-fes-list .mec-fes-event-view,
body.cd-oem-vlist .mec-fes-list .mec-fes-event-edit,
body.cd-oem-vlist .mec-fes-list .mec-fes-event-export,
body.cd-oem-vlist .mec-fes-list .mec-event-status,
body.cd-oem-vlist .mec-fes-list ul > li > .mec-fes-event-clone,
body.cd-oem-vlist .mec-fes-list .mec-fes-event-remove,
body.cd-oem-vlist .mec-fes-list ul > li > .cd-fes-event-cancel,
body.cd-oem-vlist .mec-fes-list ul > li > .cd-fes-event-reactivate,
body.cd-oem-vlist .mec-fes-list ul > li > .mec-fes-event-boost {
	display: none;
}

body.cd-oem-vlist .mec-fes-list .mec-event-title > span {
	display: none;
}

body.cd-oem-vlist .cdp-fes-boost-row-below .cdp-fes-boost-row-panel[hidden],
body.cd-oem-vlist .cdp-fes-boost-row-below:not(:has(.cdp-fes-boost-row-panel:not([hidden]))) {
	display: none;
}

.cd-oem-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.cd-oem-card__when {
	margin: 0;
	color: var(--cd-oem-night, #0b1f4d);
	font-size: 0.95rem;
	font-weight: 650;
	display: flex;
	flex-direction: column;
	gap: 0.05rem;
}

.cd-oem-card__date-short {
	display: inline;
}

.cd-oem-card__date-full {
	display: none;
}

.cd-oem-card__time {
	font-weight: 600;
	color: var(--cd-oem-muted, #4d5d78);
}

.cd-oem-card__place {
	margin: 0;
	color: var(--cd-oem-muted, #4d5d78);
	font-size: 0.92rem;
	line-height: 1.4;
}

.cd-oem-card__place-name,
.cd-oem-card__place-city {
	display: block;
}

.cd-oem-card__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0.15rem 0 0.15rem;
}

.cd-oem-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	background: rgba(11, 31, 77, 0.06);
	color: var(--cd-oem-night, #0b1f4d);
	font-size: 0.78rem;
	font-weight: 650;
}

.cd-oem-chip--org {
	background: rgba(11, 31, 77, 0.07);
	color: var(--cd-oem-night, #0b1f4d);
}

.cd-oem-chip--type {
	background: rgba(106, 63, 181, 0.1);
	color: var(--cd-oem-violet, #6a3fb5);
}

.cd-oem-chip--status {
	background: transparent;
	color: var(--cd-oem-muted, #4d5d78);
	padding-left: 0;
}

.cd-oem-status {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	margin: 0;
	font-size: 0.8rem;
	font-weight: 650;
	color: var(--cd-oem-muted, #4d5d78);
}

.cd-oem-status::before {
	content: "";
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}

.cd-oem-status--published {
	color: #1f6b45;
}

.cd-oem-status--draft {
	color: #6b5a1f;
}

.cd-oem-status--past {
	color: #5b6780;
}

.cd-oem-status--cancelled {
	color: #8b2e2e;
}

.cd-oem-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin: 0.4rem 0 0;
}

.cd-oem-card__actions .cd-oem-btn--primary {
	flex: 1 1 100%;
}

.cd-oem-card__actions .cd-oem-btn--ghost {
	flex: 1 1 auto;
	justify-content: flex-start;
}

.cd-oem-more {
	position: relative;
	flex: 0 0 auto;
	margin-left: auto;
}

.cd-oem-more[hidden] {
	display: none !important;
}

.cd-oem-more__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0 0.65rem;
	border: 1px solid var(--cd-oem-line, rgba(11, 31, 77, 0.14));
	border-radius: var(--cd-oem-radius-sm, 12px);
	background: #fff;
	color: var(--cd-oem-ink, #14233f);
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}

.cd-oem-more__btn:focus-visible {
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}

.cd-oem-more__menu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 0.35rem);
	z-index: 40;
	min-width: 16rem;
	max-width: min(20rem, calc(100vw - 2rem));
	padding: 0.4rem;
	border: 0;
	border-radius: var(--cd-oem-radius-sm, 12px);
	background: #fff;
	box-shadow: 0 12px 32px rgba(11, 31, 77, 0.14);
}

.cd-oem-more__menu[hidden] {
	display: none !important;
}

.cd-oem-more__menu.is-below {
	bottom: auto;
	top: calc(100% + 0.35rem);
}

.cd-oem-more__menu .cd-fes-event-cancel,
.cd-oem-more__menu .cd-fes-event-reactivate,
.cd-oem-more__menu .mec-fes-event-boost,
.cd-oem-more__menu .mec-fes-event-clone {
	display: block;
	margin: 0;
}

.cd-oem-more__menu .cd-fes-cancel-btn,
.cd-oem-more__menu a,
.cd-oem-more__menu button {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 0.4rem 0.65rem;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--cd-oem-ink, #14233f);
	font-size: 0.92rem;
	font-weight: 600;
	text-align: left;
	text-decoration: none;
	box-sizing: border-box;
	cursor: pointer;
}

.cd-oem-more__menu .cd-fes-event-cancel {
	margin-top: 0.25rem;
	padding-top: 0.25rem;
	border-top: 1px solid rgba(11, 31, 77, 0.08);
}

.cd-oem-more__menu .cd-fes-cancel-btn {
	border: 0;
	color: #8b2e2e;
}

.cd-oem-more__menu .cd-fes-cancel-btn:hover,
.cd-oem-more__menu a:hover,
.cd-oem-more__menu button:hover,
.cd-oem-more__menu .cd-fes-cancel-btn:focus-visible,
.cd-oem-more__menu a:focus-visible,
.cd-oem-more__menu button:focus-visible {
	background: rgba(11, 31, 77, 0.05);
	outline: none;
}

body.cd-oem-vlist .mec-fes-list .mec-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	margin: 1.15rem 0 0;
	max-width: 100%;
	overflow-x: hidden;
}

body.cd-oem-vlist .mec-fes-list .mec-pagination a,
body.cd-oem-vlist .mec-fes-list .mec-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 44px;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: #fff;
	color: var(--cd-oem-night, #0b1f4d);
	font-weight: 650;
	text-decoration: none;
	box-shadow: var(--cd-oem-shadow);
}

body.cd-oem-vlist .mec-fes-list .mec-pagination .current {
	background: var(--cd-oem-night, #0b1f4d);
	color: #fff;
}

.cd-oem-pager {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin: 1.15rem 0 0;
}

.cd-oem-pager__status {
	font-weight: 650;
	color: var(--cd-oem-muted, #4d5d78);
}

@media (max-width: 767px) {
	.cd-oem-filters__backdrop.is-open {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 100040;
		background: rgba(11, 31, 77, 0.4);
	}

	.cd-oem-filters__panel {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 100045;
		max-height: min(88vh, 40rem);
		overflow: auto;
		padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -12px 32px rgba(11, 31, 77, 0.16);
	}

	.cd-oem-filters__panel[hidden] {
		display: none !important;
	}

	.cd-oem-filters__more {
		display: none !important;
	}

	.cd-oem-filters__extra[hidden] {
		display: grid !important;
	}

	.cd-oem-more__menu {
		bottom: auto;
		top: calc(100% + 0.35rem);
	}
}

@media (min-width: 768px) {
	.cd-oem-header {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
		justify-content: space-between;
		gap: 0.75rem 1.25rem;
	}

	.cd-oem-header__main {
		flex: 1 1 16rem;
		min-width: 0;
		display: flex;
		flex-direction: column;
		gap: 0.4rem;
	}

	.cd-oem-header__actions {
		margin: 0;
		flex: 0 0 auto;
	}

	.cd-oem-filters {
		align-items: flex-start;
	}

	.cd-oem-filters__toggle,
	.cd-oem-filters__sheet-head,
	.cd-oem-filters__backdrop {
		display: none !important;
	}

	.cd-oem-filters__panel {
		display: grid !important;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.75rem 0.85rem;
		padding: 1rem;
	}

	.cd-oem-filters__panel[hidden] {
		display: grid !important;
	}

	.cd-oem-ms {
		grid-column: 1 / -1;
	}

	.cd-oem-filters__more {
		display: inline-flex;
		grid-column: 1 / -1;
	}

	.cd-oem-filters__extra {
		grid-column: 1 / -1;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cd-oem-filters__extra[hidden] {
		display: none !important;
	}

	.cd-oem-filters__submit {
		grid-column: 1 / -1;
		position: static;
		background: none;
		padding-top: 0;
	}

	body.cd-oem-vlist .mec-fes-list ul > li {
		padding: 1.15rem 1.25rem;
	}

	.cd-oem-card__when {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 0.35rem;
		align-items: baseline;
	}

	.cd-oem-card__date-short {
		display: none;
	}

	.cd-oem-card__date-full {
		display: inline;
	}

	.cd-oem-card__time::before {
		content: "· ";
		color: var(--cd-oem-muted, #4d5d78);
	}

	.cd-oem-card__place-name,
	.cd-oem-card__place-city {
		display: inline;
	}

	.cd-oem-card__place-city::before {
		content: " · ";
	}

	.cd-oem-card__actions .cd-oem-btn--primary {
		flex: 0 0 auto;
		min-width: 8.5rem;
	}

	.cd-oem-card__actions .cd-oem-btn--ghost {
		flex: 0 0 auto;
	}

	body.cd-oem-vlist .mec-fes-list {
		padding-bottom: 2rem;
		max-width: 52rem;
		margin-left: auto;
		margin-right: auto;
	}

	.cd-oem-pager {
		display: none;
	}
}

@media (min-width: 1024px) {
	.cd-oem-filters__panel {
		grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
	}

	.cd-oem-filters {
		display: grid;
		grid-template-columns: minmax(12rem, 1.4fr) 1fr;
		align-items: start;
	}

	.cd-oem-filters__search {
		grid-column: 1 / -1;
	}

	.cd-oem-filters__chips {
		grid-column: 1 / -1;
	}

	.cd-oem-filters__panel {
		grid-column: 1 / -1;
	}
}

@media (max-width: 360px) {
	.cd-oem-header__title {
		font-size: 1.35rem;
	}

	.cd-oem-card__actions .cd-oem-btn {
		width: 100%;
	}

	.cd-oem-more {
		margin-left: 0;
	}
}

/* ----- Sheet Créer (bottom nav) ----- */
.cd-oem-sheet[hidden] {
	display: none !important;
}

.cd-oem-sheet {
	position: fixed;
	inset: 0;
	z-index: 100050;
}

.cd-oem-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(11, 31, 77, 0.45);
}

.cd-oem-sheet__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
	border-radius: 20px 20px 0 0;
	background: #fff;
	box-shadow: 0 -8px 24px rgba(11, 31, 77, 0.16);
}

.cd-oem-sheet__title {
	margin: 0 0 0.75rem;
	font-size: 1.1rem;
	color: var(--cd-oem-night, #0b1f4d);
}

.cd-oem-sheet__list {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
}

.cd-oem-sheet__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	padding: 0.5rem 0.25rem;
	color: var(--cd-oem-ink, #14233f);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(11, 31, 77, 0.08);
}

.cd-oem-sheet__close {
	width: 100%;
}

@media (min-width: 768px) {
	.cd-oem-sheet__panel {
		left: 50%;
		right: auto;
		bottom: auto;
		top: 50%;
		width: min(22rem, calc(100vw - 2rem));
		transform: translate(-50%, -50%);
		border-radius: var(--cd-oem-radius, 16px);
		padding: 1.1rem;
	}
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Titre de page thème : un seul H1 visuel */
body.cd-oem-transactional .entry-title,
body.cd-oem-transactional h1.page-title,
body.cd-oem-transactional .ast-page-header-title {
	display: none !important;
}

/* Padding bas : bottom nav, sans collision Live/micro */
body.cd-oem-transactional.cdsn-simple-mode .mec-fes-form,
body.cd-oem-transactional.cdsn-simple-mode .mec-fes-list {
	padding-bottom: calc(var(--cd-oem-bottom-h, 5.5rem) + env(safe-area-inset-bottom, 0px));
}

/* Live FAB + micro assistant + lecteur audio : masquage contextuel pages organisateur */
body.cd-oem-transactional .cdl-global-live,
body.cd-oem-transactional .cdl-global-live__fab,
body.cd-oem-transactional #cda-assistant-root,
body.cd-oem-transactional .cda-assistant__toggle,
body.cd-oem-transactional #car-root,
body.cd-oem-transactional .car-root {
	display: none !important;
}

/* Comparaison d’événements : hors parcours FES (formulaire / liste organisateur) */
body.cd-oem-transactional #cd-compare-sticky-bar,
body.cd-oem-transactional .cd-compare-bar,
body.cd-oem-transactional .cd-compare-btn-wrap,
body.cd-oem-transactional .cd-compare-btn,
body.cd-oem-transactional #cd-compare-modal,
body.cd-oem-transactional .cd-compare-modal {
	display: none !important;
}

/* Bouton MEC « Retour à la liste » : utile, restylé (pas de vert MEC) */
body.cd-oem-transactional .mec-fes-form-top-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
	margin: 0 0 0.85rem;
}
body.cd-oem-transactional .cd-fes-wizard-ui--header .mec-fes-form-top-actions {
	margin: 0 0 0.35rem;
}
body.cd-oem-transactional .mec-fes-form-top-actions a,
body.cd-oem-transactional .mec-fes-form-back-to {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0 !important;
	padding: 0.4rem 0.85rem !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cd-oem-night, #0b1f4d) !important;
	font-size: 0.95rem !important;
	font-weight: 650 !important;
	text-transform: none !important;
	text-decoration: underline !important;
	text-underline-offset: 0.18em;
}
body.cd-oem-transactional .mec-fes-form-back-to:hover,
body.cd-oem-transactional .mec-fes-form-back-to:focus-visible {
	background: rgba(11, 31, 77, 0.06) !important;
	color: var(--cd-oem-night, #0b1f4d) !important;
	outline: 2px solid var(--cd-oem-focus, #6a3fb5);
	outline-offset: 2px;
}
body.cd-oem-transactional .mec-fes-form-top-actions .post-status {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 0.15rem 0.65rem;
	border-radius: 999px;
	background: rgba(11, 31, 77, 0.07);
	color: var(--cd-oem-muted, #4d5d78);
	font-size: 0.8rem;
	font-weight: 650;
}

@media (prefers-reduced-motion: reduce) {
	.cd-oem-btn,
	.cd-oem-scope__btn,
	.cd-oem-filters__toggle,
	.cd-event-edit-btn {
		transition: none;
	}

	.cd-oem-btn:active {
		transform: none;
	}
}
