/*
 * WP-fêtes-et-manifestations — interface publique.
 * Les styles sont volontairement limités à .wpfm-app afin de ne pas perturber Elementor.
 */
.wpfm-app,
.wpfm-app * { box-sizing: border-box; }
.wpfm-app [hidden] { display: none !important; }
.wpfm-app {
	--wpfm-accent: #bf2f63;
	--wpfm-accent-soft: #f9e8ef;
	--wpfm-title: #17251f;
	--wpfm-text: #2e3d36;
	--wpfm-muted: #6d7973;
	--wpfm-bg: #f5f7f6;
	--wpfm-filters: #fff;
	--wpfm-panel: #fff;
	--wpfm-card: #fff;
	--wpfm-border: #dce4e0;
	--wpfm-button: #173b2d;
	--wpfm-button-text: #fff;
	--wpfm-badge: #eef4f1;
	--wpfm-radius: 22px;
	--wpfm-card-radius: 17px;
	--wpfm-padding: 26px;
	--wpfm-shadow: 0 12px 32px rgba(23, 59, 45, .08);
	--wpfm-map-height: 680px;
	--wpfm-map-height-tablet: 560px;
	--wpfm-map-height-mobile: 500px;
	--wpfm-font: inherit;
	--wpfm-title-size: 42px;
	--wpfm-title-size-tablet: 36px;
	--wpfm-title-size-mobile: 29px;
	--wpfm-text-size: 16px;
	--wpfm-text-size-tablet: 16px;
	--wpfm-text-size-mobile: 15px;
	position: relative;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	padding: var(--wpfm-padding);
	border: 1px solid var(--wpfm-border);
	border-radius: var(--wpfm-radius);
	background: var(--wpfm-bg);
	color: var(--wpfm-text);
	font-family: var(--wpfm-font);
	font-size: var(--wpfm-text-size);
	line-height: 1.48;
	isolation: isolate;
}
.wpfm-app button,
.wpfm-app input,
.wpfm-app select,
.wpfm-app textarea { font: inherit; }
.wpfm-app button,
.wpfm-app a { -webkit-tap-highlight-color: transparent; }
.wpfm-app a { color: var(--wpfm-button); }
.wpfm-app img { display: block; max-width: 100%; }
.wpfm-app h2,
.wpfm-app h3,
.wpfm-app h4,
.wpfm-app p { margin-top: 0; }
.wpfm-app h2,
.wpfm-app h3,
.wpfm-app h4 { color: var(--wpfm-title); }
.wpfm-header { max-width: 1050px; margin-bottom: 22px; }
.wpfm-eyebrow {
	margin-bottom: 8px;
	color: var(--wpfm-accent);
	font-size: .78em;
	font-weight: 800;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.wpfm-title {
	margin: 0;
	font-size: var(--wpfm-title-size);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -.035em;
}
.wpfm-intro {
	max-width: 900px;
	margin: 12px 0 0;
	color: var(--wpfm-muted);
	font-size: 1.05em;
}

/* Statistiques */
.wpfm-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}
.wpfm-stat {
	display: grid;
	grid-template-columns: auto auto 1fr;
	align-items: center;
	gap: 8px;
	min-height: 64px;
	padding: 13px 16px;
	border: 1px solid var(--wpfm-border);
	border-radius: 15px;
	background: var(--wpfm-panel);
}
.wpfm-stat-icon {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--wpfm-accent-soft);
	color: var(--wpfm-accent);
	font-weight: 800;
}
.wpfm-stat strong { color: var(--wpfm-title); font-size: 1.35em; }
.wpfm-stat > span:last-child { color: var(--wpfm-muted); font-size: .88em; }

/* Barre de recherche */
.wpfm-toolbar {
	display: grid;
	grid-template-columns: minmax(220px, 1.65fr) repeat(5, minmax(125px, .75fr)) auto;
	gap: 12px;
	align-items: end;
	margin-bottom: 14px;
	padding: 16px;
	border: 1px solid var(--wpfm-border);
	border-radius: calc(var(--wpfm-radius) - 4px);
	background: var(--wpfm-filters);
}
.wpfm-field { display: flex; min-width: 0; flex-direction: column; gap: 6px; color: var(--wpfm-muted); font-size: .82em; font-weight: 700; }
.wpfm-field input,
.wpfm-field select,
.wpfm-category-search {
	width: 100%;
	height: 46px;
	min-width: 0;
	padding: 0 13px;
	border: 1px solid var(--wpfm-border);
	border-radius: 12px;
	outline: none;
	background: #fff;
	color: var(--wpfm-text);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.wpfm-field input:focus,
.wpfm-field select:focus,
.wpfm-category-search:focus { border-color: var(--wpfm-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wpfm-accent) 15%, transparent); }
.wpfm-reset,
.wpfm-load-more,
.wpfm-card-actions button,
.wpfm-card-actions a,
.wpfm-detail-actions a,
.wpfm-popup-detail {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 9px 14px;
	border: 1px solid transparent;
	border-radius: 11px;
	background: var(--wpfm-button);
	color: var(--wpfm-button-text) !important;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .15s ease, filter .15s ease;
}
.wpfm-reset:hover,
.wpfm-load-more:hover,
.wpfm-card-actions button:hover,
.wpfm-card-actions a:hover,
.wpfm-detail-actions a:hover,
.wpfm-popup-detail:hover { filter: brightness(1.08); transform: translateY(-1px); }
.wpfm-quick-filters { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }
.wpfm-quick-filters label {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 11px;
	border: 1px solid var(--wpfm-border);
	border-radius: 999px;
	background: var(--wpfm-panel);
	color: var(--wpfm-text);
	font-size: .88em;
	cursor: pointer;
}
.wpfm-quick-filters input,
.wpfm-category input { accent-color: var(--wpfm-accent); }

/* Onglets d’affichage */
.wpfm-view-tabs {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	margin: 0 0 14px;
	padding: 4px;
	border: 1px solid var(--wpfm-border);
	border-radius: 14px;
	background: var(--wpfm-panel);
	scrollbar-width: thin;
}
.wpfm-view-button {
	flex: 1 0 auto;
	min-height: 40px;
	padding: 8px 16px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--wpfm-muted);
	font-weight: 750;
	cursor: pointer;
}
.wpfm-view-button.is-active { background: var(--wpfm-accent); color: #fff; }

/* Messages */
.wpfm-error,
.wpfm-warning,
.wpfm-map-notice,
.wpfm-empty {
	padding: 15px 17px;
	border: 1px solid var(--wpfm-border);
	border-radius: 13px;
	background: var(--wpfm-panel);
}
.wpfm-error { border-color: #e6a0a0; background: #fff3f3; color: #8b2525; }
.wpfm-warning { margin-bottom: 14px; border-color: #ead392; background: #fff9e8; color: #705b1d; }
.wpfm-error--standalone { max-width: 820px; margin: 20px auto; }
.wpfm-empty { grid-column: 1 / -1; color: var(--wpfm-muted); text-align: center; }

/* Structure principale */
.wpfm-shell { display: grid; grid-template-columns: clamp(220px, 22%, 285px) minmax(0, 1fr); gap: 16px; align-items: start; min-width: 0; width: 100%; }
.wpfm-sidebar { display: flex; width: 100%; min-width: 0; max-width: 100%; flex-direction: column; gap: 14px; }
.wpfm-sidebar > * { width: 100%; min-width: 0; max-width: 100%; }
.wpfm-mini-calendar,
.wpfm-category-panel,
.wpfm-results-panel,
.wpfm-map-panel,
.wpfm-calendar-view {
	border: 1px solid var(--wpfm-border);
	border-radius: calc(var(--wpfm-radius) - 3px);
	background: var(--wpfm-panel);
	box-shadow: var(--wpfm-shadow);
}
.wpfm-mini-calendar,
.wpfm-category-panel { padding: 14px; }
.wpfm-calendar-head,
.wpfm-category-head,
.wpfm-calendar-view-head,
.wpfm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.wpfm-calendar-head button,
.wpfm-calendar-view-head button {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid var(--wpfm-border);
	border-radius: 10px;
	background: var(--wpfm-panel);
	color: var(--wpfm-title);
	font-size: 1.35em;
	cursor: pointer;
}
.wpfm-calendar-head strong { color: var(--wpfm-title); text-transform: capitalize; }
.wpfm-cal-weekdays,
.wpfm-calendar-view-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; margin: 10px 0 5px; color: var(--wpfm-muted); font-size: .72em; font-weight: 750; text-align: center; }
.wpfm-cal-grid,
.wpfm-calendar-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wpfm-cal-day {
	position: relative;
	display: flex;
	min-width: 0;
	min-height: 36px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3px;
	border: 1px solid transparent;
	border-radius: 9px;
	background: transparent;
	color: var(--wpfm-text);
	cursor: pointer;
}
.wpfm-cal-day:hover { border-color: var(--wpfm-accent); }
.wpfm-cal-day.is-outside { opacity: .35; }
.wpfm-cal-day.is-today { border-color: var(--wpfm-accent); font-weight: 800; }
.wpfm-cal-day.is-in-range { background: var(--wpfm-accent-soft); }
.wpfm-cal-day.is-selected { background: var(--wpfm-accent); color: #fff; }
.wpfm-cal-number { line-height: 1; }
.wpfm-cal-count {
	position: absolute;
	top: 2px;
	right: 2px;
	display: grid;
	place-items: center;
	min-width: 15px;
	height: 15px;
	padding: 0 3px;
	border-radius: 999px;
	background: var(--wpfm-button);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
}

/* Mini-calendrier : le numéro du jour et le compteur ne doivent jamais se chevaucher. */
.wpfm-mini-calendar .wpfm-cal-grid { gap: 5px 3px; }
.wpfm-mini-calendar .wpfm-cal-day {
	min-height: 45px;
	justify-content: flex-start;
	gap: 3px;
	padding: 5px 2px 4px;
}
.wpfm-mini-calendar .wpfm-cal-number {
	display: grid;
	min-height: 20px;
	place-items: center;
	font-size: .9em;
	font-weight: 650;
	line-height: 1;
}
.wpfm-mini-calendar .wpfm-cal-count {
	position: static;
	align-self: center;
	min-width: 20px;
	height: 14px;
	padding: 0 4px;
	font-size: 8px;
	line-height: 14px;
}
.wpfm-mini-calendar .wpfm-cal-day.is-selected .wpfm-cal-count {
	background: #fff;
	color: var(--wpfm-accent);
}
.wpfm-mini-calendar .wpfm-cal-day.is-outside .wpfm-cal-count {
	visibility: hidden;
}
.wpfm-cal-help { margin: 9px 0 0; color: var(--wpfm-muted); font-size: .72em; line-height: 1.35; }
.wpfm-category-head h3 { margin: 0; font-size: 1.03em; }
.wpfm-clear-categories { padding: 0; border: 0; background: transparent; color: var(--wpfm-accent); font-size: .78em; font-weight: 750; cursor: pointer; }
.wpfm-category-search { height: 40px; margin: 10px 0; }
.wpfm-categories { max-height: 510px; overflow: auto; padding-right: 4px; scrollbar-width: thin; }
.wpfm-category {
	display: grid;
	grid-template-columns: auto 24px minmax(0, 1fr) auto;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 5px 3px;
	border-bottom: 1px solid color-mix(in srgb, var(--wpfm-border) 70%, transparent);
	cursor: pointer;
}
.wpfm-category:last-child { border-bottom: 0; }
.wpfm-category input { width: 18px; height: 18px; margin: 0; }
.wpfm-category-icon { color: var(--wpfm-accent); text-align: center; }
.wpfm-category-label { min-width: 0; overflow-wrap: anywhere; }
.wpfm-category-count { min-width: 24px; color: var(--wpfm-muted); font-variant-numeric: tabular-nums; text-align: right; }
.wpfm-workspace { width: 100%; min-width: 0; max-width: 100%; }
.wpfm-split-view { display: grid; width: 100%; min-width: 0; max-width: 100%; gap: 16px; }
.wpfm-map-right.wpfm-ratio-70-30 .wpfm-split-view { grid-template-columns: minmax(0, 30fr) minmax(0, 70fr); }
.wpfm-map-right.wpfm-ratio-65-35 .wpfm-split-view { grid-template-columns: minmax(0, 35fr) minmax(0, 65fr); }
.wpfm-map-right.wpfm-ratio-60-40 .wpfm-split-view { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
.wpfm-map-right.wpfm-ratio-55-45 .wpfm-split-view { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
.wpfm-map-right.wpfm-ratio-50-50 .wpfm-split-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpfm-map-right.wpfm-ratio-45-55 .wpfm-split-view { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.wpfm-map-right.wpfm-ratio-40-60 .wpfm-split-view { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
.wpfm-map-left .wpfm-map-panel { order: 1; }
.wpfm-map-left .wpfm-results-panel { order: 2; }
.wpfm-map-left.wpfm-ratio-70-30 .wpfm-split-view { grid-template-columns: minmax(0, 70fr) minmax(0, 30fr); }
.wpfm-map-left.wpfm-ratio-65-35 .wpfm-split-view { grid-template-columns: minmax(0, 65fr) minmax(0, 35fr); }
.wpfm-map-left.wpfm-ratio-60-40 .wpfm-split-view { grid-template-columns: minmax(0, 60fr) minmax(0, 40fr); }
.wpfm-map-left.wpfm-ratio-55-45 .wpfm-split-view { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); }
.wpfm-map-left.wpfm-ratio-50-50 .wpfm-split-view { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpfm-map-left.wpfm-ratio-45-55 .wpfm-split-view { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); }
.wpfm-map-left.wpfm-ratio-40-60 .wpfm-split-view { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
.wpfm-split-view.is-map-only { grid-template-columns: minmax(0, 1fr) !important; }
.wpfm-split-view.is-map-only .wpfm-map-panel { grid-column: 1 / -1; order: 1; }
.wpfm-results-panel { width: 100%; min-width: 0; max-width: 100%; height: auto; overflow: visible; }
.wpfm-list-head { min-height: 55px; padding: 13px 16px; border-bottom: 1px solid var(--wpfm-border); }
.wpfm-list-head strong { color: var(--wpfm-title); font-size: 1.2em; }
.wpfm-data-state { color: var(--wpfm-muted); font-size: .75em; text-align: right; }
.wpfm-results { width: 100%; height: auto; min-height: 0; overflow: visible; padding: 12px; }
.wpfm-results--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); align-content: start; gap: 12px; }
.wpfm-results--agenda { padding: 15px; }
.wpfm-load-more { display: block; width: calc(100% - 24px); margin: 0 12px 12px; }
.wpfm-map-panel { position: relative; width: 100%; min-width: 0; max-width: 100%; height: var(--wpfm-map-height); overflow: hidden; }
.wpfm-map { width: 100%; min-width: 0; max-width: 100%; height: 100%; min-height: 300px; background: #e8efeb; }
.wpfm-map-notice { position: absolute; z-index: 600; right: 10px; bottom: 10px; left: 10px; box-shadow: var(--wpfm-shadow); }

/* Fiches */
.wpfm-card {
	display: grid;
	grid-template-columns: clamp(125px, 32%, 220px) minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	margin-bottom: 12px;
	border: 1px solid var(--wpfm-border);
	border-radius: var(--wpfm-card-radius);
	background: var(--wpfm-card);
	box-shadow: var(--wpfm-shadow);
}
.wpfm-results--grid .wpfm-card { display: flex; flex-direction: column; margin: 0; }
.wpfm-card--no-media { grid-template-columns: minmax(0, 1fr); }
.wpfm-card-media { position: relative; width: 100%; min-width: 0; min-height: 172px; overflow: hidden; background: var(--wpfm-accent-soft); }
.wpfm-card-media.wpfm-media-16-10 { aspect-ratio: 16 / 10; }
.wpfm-card-media.wpfm-media-4-3 { aspect-ratio: 4 / 3; }
.wpfm-card-media.wpfm-media-1-1 { aspect-ratio: 1 / 1; }
.wpfm-card-media > img:not(.wpfm-card-logo) { width: 100%; height: 100%; object-fit: cover; }
.wpfm-photo-placeholder { display: grid; width: 100%; height: 100%; min-height: 170px; place-items: center; color: var(--wpfm-accent); font-size: 3.4em; }
.wpfm-photo-credit {
	position: absolute;
	right: 5px;
	bottom: 5px;
	max-width: calc(100% - 10px);
	padding: 3px 6px;
	border-radius: 6px;
	background: rgba(0,0,0,.6);
	color: #fff;
	font-size: 9px;
	line-height: 1.2;
}
.wpfm-date-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	max-width: calc(100% - 20px);
	padding: 6px 9px;
	border-radius: 9px;
	background: var(--wpfm-accent);
	color: #fff;
	font-size: .74em;
	font-weight: 800;
	line-height: 1.15;
}
.wpfm-card-logo { position: absolute; right: 9px; top: 9px; width: 46px; height: 46px; padding: 4px; border-radius: 10px; background: #fff; object-fit: contain; box-shadow: 0 4px 15px rgba(0,0,0,.15); }
.wpfm-card-body { display: flex; min-width: 0; flex-direction: column; padding: 15px; }
.wpfm-card-kicker { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 6px; color: var(--wpfm-accent); font-size: .72em; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.wpfm-card-kicker > span:last-child { flex: 0 0 auto; color: var(--wpfm-muted); }
.wpfm-card h3 { margin: 0 0 6px; font-size: 1.08em; line-height: 1.25; }
.wpfm-card-date { margin-bottom: 6px; color: var(--wpfm-accent); font-weight: 750; }
.wpfm-address { color: var(--wpfm-muted); font-size: .86em; }
.wpfm-card-description { display: -webkit-box; margin-top: 8px; overflow: hidden; color: var(--wpfm-text); font-size: .86em; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.wpfm-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wpfm-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 999px; background: var(--wpfm-badge); color: var(--wpfm-text); font-size: .72em; font-weight: 750; }
.wpfm-badge--free { background: var(--wpfm-accent-soft); color: var(--wpfm-accent); }
.wpfm-card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 12px; }
.wpfm-card-actions button,
.wpfm-card-actions a { min-height: 34px; padding: 7px 10px; border-radius: 9px; font-size: .75em; }
.wpfm-card-actions button:first-child { border-color: var(--wpfm-border); background: transparent; color: var(--wpfm-button) !important; }
.wpfm-card-source { margin-top: 8px; color: var(--wpfm-muted); font-size: .66em; }

/* Agenda */
.wpfm-agenda-group { margin-bottom: 22px; }
.wpfm-agenda-group > h3 { position: sticky; top: 0; z-index: 2; margin: 0 0 8px; padding: 8px 10px; border-radius: 9px; background: var(--wpfm-accent-soft); color: var(--wpfm-accent); font-size: .9em; text-transform: capitalize; }
.wpfm-agenda-items { display: flex; flex-direction: column; gap: 8px; }
.wpfm-agenda-item { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 13px; padding: 12px; border: 1px solid var(--wpfm-border); border-radius: 13px; background: var(--wpfm-card); }
.wpfm-agenda-time { color: var(--wpfm-accent); font-weight: 800; }
.wpfm-agenda-main h4 { margin: 2px 0 5px; }

/* Calendrier mensuel complet */
.wpfm-calendar-view { padding: 16px; }
.wpfm-calendar-view-head { margin-bottom: 8px; }
.wpfm-calendar-view-head h3 { margin: 0; text-transform: capitalize; }
.wpfm-calendar-view-weekdays { font-size: .82em; }
.wpfm-calendar-view .wpfm-cal-day { min-height: 112px; align-items: stretch; justify-content: flex-start; padding: 7px; border-color: var(--wpfm-border); text-align: left; }
.wpfm-calendar-view .wpfm-cal-number { font-weight: 800; }
.wpfm-cal-events { display: flex; min-width: 0; flex-direction: column; gap: 3px; margin-top: 6px; }
.wpfm-cal-event { display: block; overflow: hidden; padding: 3px 5px; border-radius: 5px; background: var(--wpfm-accent-soft); color: var(--wpfm-text); font-size: 10px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.wpfm-cal-events small { color: var(--wpfm-muted); }
.wpfm-calendar-day-events { margin-top: 18px; }
.wpfm-calendar-day-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wpfm-calendar-day-list .wpfm-card { display: flex; flex-direction: column; margin: 0; }

/* Marqueurs et infobulles */
.wpfm-marker-wrap { background: none !important; border: 0 !important; }
.wpfm-marker {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--wpfm-accent);
	color: #fff;
	font-size: 12px;
	font-weight: 850;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 5px 15px rgba(0,0,0,.28);
}
.wpfm-popup { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; min-width: 250px; max-width: 330px; }
.wpfm-popup > img { width: 88px; height: 88px; border-radius: 9px; object-fit: cover; }
.wpfm-popup > div { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.wpfm-popup strong { color: var(--wpfm-title); line-height: 1.2; }
.wpfm-popup span { color: var(--wpfm-accent); font-weight: 750; }
.wpfm-popup small { color: var(--wpfm-muted); }
.wpfm-popup-detail { min-height: 30px; margin-top: 4px; padding: 6px 9px; font-size: 12px; }
.wpfm-google-zoom { display: flex; flex-direction: column; margin: 10px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 9px rgba(0,0,0,.25); }
.wpfm-google-zoom button { width: 40px; height: 40px; border: 0; border-bottom: 1px solid #ddd; background: #fff; color: #222; font-size: 24px; cursor: pointer; }
.wpfm-google-zoom button:last-child { border-bottom: 0; }

/* Fiche détaillée */
html.wpfm-modal-open { overflow: hidden; }
.wpfm-modal { position: fixed; z-index: 100000; inset: 0; display: grid; place-items: center; padding: 24px; }
.wpfm-modal-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 16, .72); backdrop-filter: blur(4px); }
.wpfm-modal-dialog { position: relative; width: min(1080px, 100%); max-height: calc(100vh - 48px); overflow: auto; border-radius: 22px; background: #fff; color: var(--wpfm-text); box-shadow: 0 26px 80px rgba(0,0,0,.32); }
.wpfm-modal-close { position: sticky; z-index: 20; top: 12px; float: right; display: grid; width: 46px; height: 46px; margin: 12px 12px -58px 0; place-items: center; border: 0; border-radius: 50%; background: var(--wpfm-accent); color: #fff; font-size: 26px; cursor: pointer; box-shadow: 0 8px 25px rgba(0,0,0,.22); }
.wpfm-modal-content { min-height: 260px; padding: 0 24px 28px; clear: both; }
.wpfm-modal-loading { display: grid; min-height: 280px; place-items: center; color: var(--wpfm-muted); }
.wpfm-detail-gallery { margin: 0 -24px 22px; }
.wpfm-detail-main-media { position: relative; height: clamp(250px, 45vh, 520px); overflow: hidden; background: var(--wpfm-accent-soft); }
.wpfm-detail-main-media img { width: 100%; height: 100%; object-fit: cover; }
.wpfm-detail-credit { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; }
.wpfm-detail-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px; background: #fff; }
.wpfm-detail-thumbs button { flex: 0 0 92px; height: 65px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.wpfm-detail-thumbs button:hover { border-color: var(--wpfm-accent); }
.wpfm-detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.wpfm-detail-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.wpfm-detail-header h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; }
.wpfm-detail-header p { margin: 8px 0 0; color: var(--wpfm-muted); }
.wpfm-detail-logo { flex: 0 0 auto; width: 90px; height: 90px; padding: 7px; border: 1px solid var(--wpfm-border); border-radius: 14px; object-fit: contain; }
.wpfm-detail-section { margin-top: 25px; }
.wpfm-detail-section h3 { margin-bottom: 10px; font-size: 1.25em; }
.wpfm-detail-description { white-space: normal; }
.wpfm-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.wpfm-period { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--wpfm-border); border-radius: 12px; background: var(--wpfm-bg); }
.wpfm-period span { color: var(--wpfm-muted); font-size: .88em; }
.wpfm-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.wpfm-detail-box { display: flex; min-height: 90px; flex-direction: column; gap: 6px; justify-content: center; padding: 14px; border: 1px solid var(--wpfm-border); border-radius: 13px; background: var(--wpfm-bg); }
.wpfm-detail-box span { color: var(--wpfm-muted); font-size: .78em; }
.wpfm-detail-box strong { color: var(--wpfm-title); }
.wpfm-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wpfm-detail-source { margin-top: 25px; padding-top: 14px; border-top: 1px solid var(--wpfm-border); color: var(--wpfm-muted); font-size: .75em; }

/* Source */
.wpfm-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 14px; color: var(--wpfm-muted); font-size: .72em; }

/* Tablette */
@media (max-width: 1180px) {
	.wpfm-app { font-size: var(--wpfm-text-size-tablet); }
	.wpfm-title { font-size: var(--wpfm-title-size-tablet); }
	.wpfm-toolbar { grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(125px, 1fr)); }
	.wpfm-reset { min-height: 46px; }
	.wpfm-shell { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr); }
	.wpfm-results-panel,
	.wpfm-map-panel { height: var(--wpfm-map-height-tablet); }
	.wpfm-results--grid { grid-template-columns: 1fr; }
	.wpfm-calendar-day-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 920px) {
	.wpfm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wpfm-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wpfm-field--search { grid-column: 1 / -1; }
	.wpfm-shell { grid-template-columns: 1fr; }
	.wpfm-sidebar { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); }
	.wpfm-categories { max-height: 330px; }
	.wpfm-split-view { grid-template-columns: 1fr !important; }
	.wpfm-map-panel,
	.wpfm-results-panel { order: initial !important; }
	.wpfm-map-right .wpfm-results-panel { order: 1 !important; }
	.wpfm-map-right .wpfm-map-panel { order: 2 !important; }
	.wpfm-map-left .wpfm-map-panel { order: 1 !important; }
	.wpfm-map-left .wpfm-results-panel { order: 2 !important; }
	.wpfm-results-panel { height: auto; max-height: none; }
	.wpfm-results { height: auto; max-height: 720px; }
	.wpfm-map-panel { height: var(--wpfm-map-height-tablet); }
}

/* Téléphone */
@media (max-width: 767px) {
	.wpfm-app {
		padding: max(12px, calc(var(--wpfm-padding) * .58));
		border-radius: min(var(--wpfm-radius), 16px);
		font-size: var(--wpfm-text-size-mobile);
	}
	.wpfm-title { font-size: var(--wpfm-title-size-mobile); }
	.wpfm-intro { font-size: .96em; }
	.wpfm-stats { gap: 8px; }
	.wpfm-stat { grid-template-columns: auto 1fr; min-height: 58px; padding: 10px; }
	.wpfm-stat strong { font-size: 1.15em; }
	.wpfm-stat > span:last-child { grid-column: 2; }
	.wpfm-toolbar { grid-template-columns: 1fr; padding: 12px; }
	.wpfm-field--search { grid-column: auto; }
	.wpfm-reset { width: 100%; }
	.wpfm-quick-filters { gap: 6px; }
	.wpfm-quick-filters label { padding: 6px 9px; font-size: .8em; }
	.wpfm-view-tabs { position: sticky; z-index: 500; top: 0; }
	.wpfm-view-button { padding: 8px 12px; }
	.wpfm-sidebar { display: block; }
	.wpfm-mini-calendar { margin-bottom: 12px; }
	.wpfm-mini-calendar .wpfm-cal-day { min-height: 43px; }
	.wpfm-mini-calendar .wpfm-cal-number { font-size: .86em; }
	.wpfm-category-panel { margin-bottom: 12px; }
	.wpfm-categories { max-height: 300px; }
	.wpfm-map-panel { height: var(--wpfm-map-height-mobile); }
	.wpfm-mobile-mode-tabs .wpfm-split-view:not(.is-map-only) .wpfm-map-panel { display: none; }
	.wpfm-results { max-height: none; overflow: visible; padding: 9px; }
	.wpfm-list-head { padding: 11px; }
	.wpfm-data-state { display: none; }
	.wpfm-card,
	.wpfm-results--grid .wpfm-card { display: flex; flex-direction: column; }
	.wpfm-card-media { min-height: 190px; }
	.wpfm-card-body { padding: 13px; }
	.wpfm-card-actions > * { flex: 1 1 auto; }
	.wpfm-agenda-item { grid-template-columns: 1fr; }
	.wpfm-agenda-time { padding-bottom: 5px; border-bottom: 1px solid var(--wpfm-border); }
	.wpfm-calendar-view { padding: 8px; }
	.wpfm-calendar-view-weekdays span { overflow: hidden; font-size: 0; }
	.wpfm-calendar-view-weekdays span::first-letter { font-size: 11px; }
	.wpfm-calendar-view .wpfm-cal-day { min-height: 58px; padding: 4px; }
	.wpfm-calendar-view .wpfm-cal-count { position: static; align-self: flex-end; margin-top: 3px; }
	.wpfm-cal-events { display: none; }
	.wpfm-calendar-day-list { grid-template-columns: 1fr; }
	.wpfm-source { display: block; }
	.wpfm-source span { display: block; margin-top: 5px; }
	.wpfm-modal { padding: 0; }
	.wpfm-modal-dialog { width: 100%; max-height: 100vh; min-height: 100vh; border-radius: 0; }
	.wpfm-modal-content { padding: 0 15px 24px; }
	.wpfm-detail-gallery { margin: 0 -15px 18px; }
	.wpfm-detail-main-media { height: 280px; }
	.wpfm-detail-header { flex-direction: column-reverse; }
	.wpfm-detail-logo { width: 70px; height: 70px; }
	.wpfm-periods,
	.wpfm-detail-grid { grid-template-columns: 1fr; }
	.wpfm-detail-actions a { flex: 1 1 auto; }
	.wpfm-popup { grid-template-columns: 68px minmax(0, 1fr); min-width: 220px; }
	.wpfm-popup > img { width: 68px; height: 68px; }
}


/* Adaptation à la largeur réelle du conteneur Elementor.
 * Les classes sont calculées par ResizeObserver : le module réagit à son
 * conteneur, même lorsqu'Elementor change sa largeur sans redimensionner la fenêtre. */
.wpfm-app.wpfm-size-tablet { font-size: var(--wpfm-text-size-tablet); }
.wpfm-app.wpfm-size-tablet .wpfm-title { font-size: var(--wpfm-title-size-tablet); }
.wpfm-app.wpfm-size-tablet .wpfm-toolbar { grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(125px, 1fr)); }
.wpfm-app.wpfm-size-tablet .wpfm-shell { grid-template-columns: clamp(205px, 23%, 250px) minmax(0, 1fr); }
.wpfm-app.wpfm-size-tablet .wpfm-results-panel { height: auto; max-height: none; overflow: visible; }
.wpfm-app.wpfm-size-tablet .wpfm-map-panel { height: var(--wpfm-map-height-tablet); }
.wpfm-app.wpfm-size-tablet .wpfm-results--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.wpfm-app.wpfm-size-tablet .wpfm-calendar-day-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.wpfm-app.wpfm-size-narrow .wpfm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpfm-app.wpfm-size-narrow .wpfm-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wpfm-app.wpfm-size-narrow .wpfm-field--search { grid-column: 1 / -1; }
.wpfm-app.wpfm-size-narrow .wpfm-shell { grid-template-columns: minmax(0, 1fr); }
.wpfm-app.wpfm-size-narrow .wpfm-sidebar { display: grid; grid-template-columns: minmax(240px, .85fr) minmax(0, 1.15fr); align-items: start; }
.wpfm-app.wpfm-size-narrow .wpfm-categories { max-height: 360px; }
.wpfm-app.wpfm-size-narrow .wpfm-split-view { grid-template-columns: minmax(0, 1fr) !important; }
.wpfm-app.wpfm-size-narrow .wpfm-map-panel,
.wpfm-app.wpfm-size-narrow .wpfm-results-panel { order: initial !important; }
.wpfm-app.wpfm-size-narrow.wpfm-map-right .wpfm-results-panel { order: 1 !important; }
.wpfm-app.wpfm-size-narrow.wpfm-map-right .wpfm-map-panel { order: 2 !important; }
.wpfm-app.wpfm-size-narrow.wpfm-map-left .wpfm-map-panel { order: 1 !important; }
.wpfm-app.wpfm-size-narrow.wpfm-map-left .wpfm-results-panel { order: 2 !important; }
.wpfm-app.wpfm-size-narrow .wpfm-results-panel { height: auto; max-height: none; overflow: visible; }
.wpfm-app.wpfm-size-narrow .wpfm-map-panel { height: var(--wpfm-map-height-tablet); }
.wpfm-app.wpfm-size-narrow .wpfm-results--grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

.wpfm-app.wpfm-size-mobile {
	padding: max(12px, calc(var(--wpfm-padding) * .58));
	border-radius: min(var(--wpfm-radius), 16px);
	font-size: var(--wpfm-text-size-mobile);
}
.wpfm-app.wpfm-size-mobile .wpfm-title { font-size: var(--wpfm-title-size-mobile); }
.wpfm-app.wpfm-size-mobile .wpfm-toolbar { grid-template-columns: minmax(0, 1fr); padding: 12px; }
.wpfm-app.wpfm-size-mobile .wpfm-field--search { grid-column: auto; }
.wpfm-app.wpfm-size-mobile .wpfm-reset { width: 100%; }
.wpfm-app.wpfm-size-mobile .wpfm-shell { grid-template-columns: minmax(0, 1fr); }
.wpfm-app.wpfm-size-mobile .wpfm-split-view { grid-template-columns: minmax(0, 1fr) !important; }
.wpfm-app.wpfm-size-mobile .wpfm-map-panel,
.wpfm-app.wpfm-size-mobile .wpfm-results-panel { order: initial !important; }
.wpfm-app.wpfm-size-mobile.wpfm-map-right .wpfm-results-panel { order: 1 !important; }
.wpfm-app.wpfm-size-mobile.wpfm-map-right .wpfm-map-panel { order: 2 !important; }
.wpfm-app.wpfm-size-mobile.wpfm-map-left .wpfm-map-panel { order: 1 !important; }
.wpfm-app.wpfm-size-mobile.wpfm-map-left .wpfm-results-panel { order: 2 !important; }
.wpfm-app.wpfm-size-mobile.wpfm-mobile-mode-tabs .wpfm-split-view:not(.is-map-only) .wpfm-map-panel { display: none; }
.wpfm-app.wpfm-size-mobile .wpfm-sidebar { display: block; }
.wpfm-app.wpfm-size-mobile .wpfm-mini-calendar,
.wpfm-app.wpfm-size-mobile .wpfm-category-panel { margin-bottom: 12px; }
.wpfm-app.wpfm-size-mobile .wpfm-categories { max-height: 300px; }
.wpfm-app.wpfm-size-mobile .wpfm-map-panel { height: var(--wpfm-map-height-mobile); }
.wpfm-app.wpfm-size-mobile .wpfm-card,
.wpfm-app.wpfm-size-mobile .wpfm-results--grid .wpfm-card { display: flex; flex-direction: column; }
.wpfm-app.wpfm-size-mobile .wpfm-card-media { min-height: 190px; }
.wpfm-app.wpfm-size-mobile .wpfm-calendar-day-list { grid-template-columns: minmax(0, 1fr); }

.wpfm-app.wpfm-size-compact .wpfm-stats { grid-template-columns: minmax(0, 1fr); }
.wpfm-app.wpfm-size-compact .wpfm-stat { grid-template-columns: auto 1fr; }
.wpfm-app.wpfm-size-compact .wpfm-view-button { padding-inline: 10px; }
.wpfm-app.wpfm-size-compact .wpfm-card-actions > * { flex: 1 1 100%; }

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

/* --------------------------------------------------------------------------
 * Version 2.0.0 — filtres unifiés, plein écran et sélections d’accueil.
 * ----------------------------------------------------------------------- */
.wpfm-app .wpfm-toolbar {
	grid-template-columns: minmax(230px, 1.6fr) repeat(5, minmax(120px, .72fr)) auto auto;
}
.wpfm-more-filters {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 9px 14px;
	border: 1px solid var(--wpfm-border);
	border-radius: 11px;
	background: var(--wpfm-panel);
	color: var(--wpfm-button);
	font-weight: 750;
	cursor: pointer;
}
.wpfm-more-filters[aria-expanded="true"] { border-color: var(--wpfm-accent); color: var(--wpfm-accent); }
.wpfm-advanced-filters {
	margin: -2px 0 14px;
	padding: 15px;
	border: 1px solid var(--wpfm-border);
	border-radius: calc(var(--wpfm-radius) - 4px);
	background: var(--wpfm-filters);
}
.wpfm-advanced-filters .wpfm-quick-filters { padding: 0 0 14px; }
.wpfm-advanced-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
	gap: 14px;
	align-items: start;
}
.wpfm-advanced-grid > * { min-width: 0; box-shadow: none; }
.wpfm-advanced-grid .wpfm-categories {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0 16px;
	max-height: 430px;
}
.wpfm-shell { display: block; }
.wpfm-workspace { width: 100%; }
.wpfm-map-fullscreen {
	position: absolute;
	z-index: 650;
	top: 12px;
	right: 12px;
	display: grid;
	width: 44px;
	height: 44px;
	padding: 0;
	place-items: center;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 9px;
	background: #fff;
	color: #17251f;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.wpfm-map-fullscreen svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wpfm-map-panel:fullscreen,
.wpfm-map-panel.is-fullscreen,
.wpfm-map-panel:-webkit-full-screen {
	width: 100vw !important;
	height: 100vh !important;
	max-width: none !important;
	border-radius: 0 !important;
	background: #e8efeb;
}
.wpfm-map-panel:fullscreen .wpfm-map,
.wpfm-map-panel.is-fullscreen .wpfm-map,
.wpfm-map-panel:-webkit-full-screen .wpfm-map { height: 100% !important; min-height: 100vh; }
.wpfm-modal-close { line-height: 0; }
.wpfm-modal-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* Sélections compactes destinées à l’accueil. */
.wpfm-home-module,
.wpfm-home-module * { box-sizing: border-box; }
.wpfm-home-module [hidden] { display: none !important; }
.wpfm-home-module {
	--wpfm-accent: #bf2f63;
	--wpfm-accent-soft: #f9e8ef;
	--wpfm-title: #17251f;
	--wpfm-text: #2e3d36;
	--wpfm-muted: #6d7973;
	--wpfm-border: #dce4e0;
	--wpfm-card: #fff;
	--wpfm-button: #173b2d;
	--wpfm-button-text: #fff;
	--wpfm-card-radius: 0px;
	--wpfm-shadow: 0 10px 28px rgba(16,43,33,.08);
	position: relative;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	color: var(--wpfm-text);
	font-family: var(--wpfm-font, inherit);
}
.wpfm-home-title { margin: 0 0 18px; color: var(--wpfm-title); }
.wpfm-home-list { display: flex; min-width: 0; flex-direction: column; gap: 16px; }
.wpfm-home-card {
	display: grid;
	grid-template-columns: minmax(260px, 38%) minmax(0, 1fr);
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--wpfm-border);
	border-radius: var(--wpfm-card-radius);
	background: var(--wpfm-card);
	box-shadow: var(--wpfm-shadow);
}
.wpfm-home-media { position: relative; min-height: 245px; overflow: hidden; background: var(--wpfm-accent-soft); }
.wpfm-home-media > img { width: 100%; height: 100%; object-fit: cover; }
.wpfm-home-body { display: flex; min-width: 0; flex-direction: column; padding: clamp(18px, 3vw, 34px); }
.wpfm-home-body h3 { margin: 0 0 8px; color: var(--wpfm-title); font-size: clamp(21px, 2.2vw, 31px); line-height: 1.15; }
.wpfm-home-summary { display: -webkit-box; margin: 14px 0 0; overflow: hidden; color: var(--wpfm-text); -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.wpfm-home-module .wpfm-address { margin: 0; }
.wpfm-home-module .wpfm-card-actions { margin-top: auto; }
.wpfm-home-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 14px; }
.wpfm-home-controls button {
	display: grid;
	width: 40px;
	height: 40px;
	padding: 0;
	place-items: center;
	border: 1px solid var(--wpfm-border);
	border-radius: 50%;
	background: #fff;
	color: var(--wpfm-title);
	cursor: pointer;
}
.wpfm-home-module .wpfm-modal { font-size: 16px; }

@media (max-width: 1180px) {
	.wpfm-app .wpfm-toolbar { grid-template-columns: minmax(210px, 1.6fr) repeat(3, minmax(120px, 1fr)); }
	.wpfm-app .wpfm-more-filters,
	.wpfm-app .wpfm-reset { min-height: 46px; }
}
@media (max-width: 900px) {
	.wpfm-advanced-grid { grid-template-columns: minmax(0, 1fr); }
	.wpfm-advanced-grid .wpfm-categories { max-height: 320px; }
	.wpfm-home-card { grid-template-columns: minmax(220px, 36%) minmax(0, 1fr); }
}
@media (max-width: 720px) {
	.wpfm-app .wpfm-toolbar { grid-template-columns: minmax(0, 1fr); }
	.wpfm-app .wpfm-field--search { grid-column: auto; }
	.wpfm-more-filters,
	.wpfm-reset { width: 100%; }
	.wpfm-advanced-filters { padding: 12px; }
	.wpfm-advanced-grid .wpfm-categories { grid-template-columns: minmax(0, 1fr); }
	.wpfm-home-card { display: flex; flex-direction: column; }
	.wpfm-home-media { min-height: 230px; aspect-ratio: 16 / 9; }
	.wpfm-home-body { padding: 17px; }
	.wpfm-home-module .wpfm-card-actions > * { flex: 1 1 auto; }
}

/* 2.1.0 — Sélections éditoriales administrées dans le studio. */
.wpfm-editorial-selection{container-type:inline-size;max-width:100%;min-width:0}.wpfm-selection-heading{margin:0 0 28px}.wpfm-selection-eyebrow{display:block;margin-bottom:8px;color:var(--wpfm-accent,#bf2f63);font-size:.78rem;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.wpfm-selection-heading h2{margin:0;font-size:clamp(2rem,4vw,4.5rem);line-height:1.02}.wpfm-selection-heading p{max-width:780px;margin:14px 0 0;color:var(--wpfm-muted,#6d7973);font-size:1.08rem;line-height:1.55}.wpfm-selection-grid{display:grid;grid-template-columns:repeat(var(--wpfm-selection-cols,3),minmax(0,1fr));gap:22px}.wpfm-selection-card{min-width:0;overflow:hidden;border:1px solid var(--wpfm-border,#dce4e0);border-radius:18px;background:var(--wpfm-card,#fff);box-shadow:0 10px 30px rgba(28,44,37,.07)}.wpfm-selection-card .wpfm-home-media{aspect-ratio:var(--wpfm-selection-ratio,16 / 9);height:auto}.wpfm-selection-card .wpfm-home-media img{width:100%;height:100%;object-fit:cover}.wpfm-selection-card .wpfm-home-body{padding:20px}.wpfm-selection-badge{display:inline-flex;margin-bottom:10px;padding:7px 11px;border-radius:999px;background:var(--wpfm-accent-soft,#f9e8ef);color:var(--wpfm-title,#17251f);font-size:.76rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.wpfm-selection-card h3{margin:7px 0 9px;font-size:clamp(1.25rem,2vw,1.8rem);line-height:1.1}.wpfm-selection-card .wpfm-address{margin:0 0 10px}.wpfm-selection-card .wpfm-home-summary{display:-webkit-box;overflow:hidden;-webkit-line-clamp:4;-webkit-box-orient:vertical}.wpfm-selection-card .wpfm-card-source{margin:12px 0 0;color:var(--wpfm-muted,#6d7973);font-size:.78rem}.wpfm-selection--vertical .wpfm-selection-grid{grid-template-columns:1fr}.wpfm-selection--vertical .wpfm-selection-card{display:grid;grid-template-columns:minmax(240px,38%) minmax(0,1fr)}.wpfm-selection--vertical .wpfm-selection-card .wpfm-home-media{height:100%;min-height:260px}.wpfm-selection--compact .wpfm-selection-grid{gap:12px}.wpfm-selection--compact .wpfm-selection-card{display:grid;grid-template-columns:120px minmax(0,1fr);border-radius:12px;box-shadow:none}.wpfm-selection--compact .wpfm-selection-card .wpfm-home-media{height:100%;min-height:130px}.wpfm-selection--compact .wpfm-selection-card .wpfm-home-body{padding:14px}.wpfm-selection--compact .wpfm-home-summary,.wpfm-selection--compact .wpfm-selection-badge{display:none}.wpfm-selection--compact .wpfm-card-actions{font-size:.84rem}.wpfm-selection--mosaique .wpfm-selection-card.is-primary{grid-column:span 2;grid-row:span 2}.wpfm-selection--mosaique .wpfm-selection-card.is-primary .wpfm-home-media{aspect-ratio:4 / 3}.wpfm-selection--mosaique .wpfm-selection-card:not(.is-primary) .wpfm-home-summary{display:none}.wpfm-selection--mosaique .wpfm-selection-card.is-primary h3{font-size:clamp(1.8rem,3vw,3rem)}
@container (max-width:900px){.wpfm-selection-grid{grid-template-columns:repeat(var(--wpfm-selection-cols-tablet,2),minmax(0,1fr))}.wpfm-selection--vertical .wpfm-selection-card{grid-template-columns:1fr}.wpfm-selection--vertical .wpfm-selection-card .wpfm-home-media{min-height:0}.wpfm-selection--mosaique .wpfm-selection-card.is-primary{grid-column:1/-1;grid-row:auto}.wpfm-selection--compact .wpfm-selection-card{grid-template-columns:100px minmax(0,1fr)}}
@container (max-width:540px){.wpfm-selection-grid{grid-template-columns:repeat(var(--wpfm-selection-cols-mobile,1),minmax(0,1fr));gap:14px}.wpfm-selection-card .wpfm-home-body{padding:16px}.wpfm-selection--compact .wpfm-selection-card{grid-template-columns:1fr}.wpfm-selection--compact .wpfm-selection-card .wpfm-home-media{min-height:0}.wpfm-selection-card .wpfm-card-actions{display:flex;flex-wrap:wrap}.wpfm-selection-heading h2{font-size:2.25rem}}

/* Correctif 2.1.0 — les cartes de sélection en mosaïque et en grille sont
 * verticales. Elles ne doivent pas hériter de la grille interne du module
 * compact historique, qui supposait une carte beaucoup plus large. */
.wpfm-selection--mosaique .wpfm-selection-card,
.wpfm-selection--grille .wpfm-selection-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	grid-template-columns: none;
}
.wpfm-selection--mosaique .wpfm-selection-card .wpfm-home-media,
.wpfm-selection--grille .wpfm-selection-card .wpfm-home-media {
	width: 100%;
	min-height: 0;
}
.wpfm-selection--mosaique .wpfm-selection-card .wpfm-home-body,
.wpfm-selection--grille .wpfm-selection-card .wpfm-home-body {
	width: 100%;
	flex: 1 1 auto;
}
.wpfm-selection-card .wpfm-card-actions > * {
	min-width: 0;
	max-width: 100%;
}

/* 2.1.1 — shortcodes spécialisés */
.wpfm-admin-diagnostic{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 16px;border:1px solid #e7b5c8;background:#fff7fa;color:#4d2434}
.wpfm-admin-diagnostic strong{font-weight:900}.wpfm-admin-diagnostic span{flex:1 1 260px}.wpfm-admin-diagnostic a{font-weight:800}
.wpfm-no-map-shortcode .wpfm-split-view{grid-template-columns:1fr!important}.wpfm-no-map-shortcode .wpfm-results-panel{min-width:0}.wpfm-locked-view .wpfm-view-tabs{display:none!important}


/* 2.1.2 — géométrie carrée sur l'ensemble de l'affichage public. */
.wpfm-app,
.wpfm-app .wpfm-stat,
.wpfm-app .wpfm-stat-icon,
.wpfm-app .wpfm-toolbar,
.wpfm-app .wpfm-field input,
.wpfm-app .wpfm-field select,
.wpfm-app .wpfm-category-search,
.wpfm-app .wpfm-reset,
.wpfm-app .wpfm-load-more,
.wpfm-app .wpfm-card-actions button,
.wpfm-app .wpfm-card-actions a,
.wpfm-app .wpfm-detail-actions a,
.wpfm-app .wpfm-popup-detail,
.wpfm-app .wpfm-quick-filters label,
.wpfm-app .wpfm-view-tabs,
.wpfm-app .wpfm-view-button,
.wpfm-app .wpfm-error,
.wpfm-app .wpfm-warning,
.wpfm-app .wpfm-map-notice,
.wpfm-app .wpfm-empty,
.wpfm-app .wpfm-mini-calendar,
.wpfm-app .wpfm-category-panel,
.wpfm-app .wpfm-results-panel,
.wpfm-app .wpfm-map-panel,
.wpfm-app .wpfm-calendar-view,
.wpfm-app .wpfm-calendar-head button,
.wpfm-app .wpfm-calendar-view-head button,
.wpfm-app .wpfm-cal-day,
.wpfm-app .wpfm-cal-count,
.wpfm-app .wpfm-card,
.wpfm-app .wpfm-card-media,
.wpfm-app .wpfm-card-logo,
.wpfm-app .wpfm-badge,
.wpfm-app .wpfm-agenda-group > h3,
.wpfm-app .wpfm-agenda-item,
.wpfm-app .wpfm-cal-event,
.wpfm-app .wpfm-popup > img,
.wpfm-app .wpfm-google-zoom,
.wpfm-app .wpfm-modal-dialog,
.wpfm-app .wpfm-modal-close,
.wpfm-app .wpfm-detail-credit,
.wpfm-app .wpfm-detail-thumbs button,
.wpfm-app .wpfm-detail-logo,
.wpfm-app .wpfm-period,
.wpfm-app .wpfm-detail-box,
.wpfm-app .wpfm-home-card,
.wpfm-app .wpfm-home-controls button,
.wpfm-app .leaflet-control,
.wpfm-app .leaflet-control-zoom,
.wpfm-app .leaflet-control-zoom a,
.wpfm-app .leaflet-popup-content-wrapper,
.wpfm-app .leaflet-popup-tip,
.wpfm-app .leaflet-bar,
.wpfm-app .leaflet-bar a,
.wpfm-editorial-selection .wpfm-selection-card,
.wpfm-editorial-selection .wpfm-selection-badge,
.wpfm-editorial-selection .wpfm-home-media,
.wpfm-editorial-selection .wpfm-card-actions a,
.wpfm-editorial-selection .wpfm-card-actions button,
.wpfm-admin-diagnostic {
	border-radius: 0 !important;
}
.wpfm-app { --wpfm-radius: 0px !important; --wpfm-card-radius: 0px !important; }
/* Les contrôles natifs conservent leur forme fonctionnelle. */
.wpfm-app input[type="radio"] { border-radius: 50% !important; }
.wpfm-app input[type="checkbox"] { border-radius: 0 !important; }
/* Complément 2.1.2 — composants publics apparus après la première feuille. */
.wpfm-app .wpfm-more-filters,
.wpfm-app .wpfm-advanced-filters,
.wpfm-app .wpfm-map-fullscreen,
.wpfm-home-module,
.wpfm-home-module .wpfm-home-card,
.wpfm-home-module .wpfm-home-media,
.wpfm-home-module .wpfm-card-actions a,
.wpfm-home-module .wpfm-card-actions button,
.wpfm-home-module .wpfm-home-controls button,
.wpfm-home-module .wpfm-modal-dialog,
.wpfm-home-module .wpfm-modal-close {
	border-radius: 0 !important;
}


/* 2.1.4 — correction des hauteurs fantômes des sélections mobiles. */
.wpfm-home-module [hidden],
.wpfm-editorial-selection [hidden],
.wpfm-selection-grid > [hidden] {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
@media (max-width: 767px) {
  .wpfm-home-module,
  .wpfm-editorial-selection,
  .wpfm-home-list,
  .wpfm-selection-grid {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }
  .wpfm-selection-grid {
    grid-auto-rows: auto !important;
    align-content: start !important;
  }
}

/* v2.2.2 — la fiche rapide reste prioritaire ; la page permanente reste accessible. */
@keyframes wpfm-drawer-enter {
	from { transform: translateX(100%); }
	to { transform: translateX(0); }
}
.wpfm-modal[hidden] { display: none !important; }
.wpfm-modal {
	display: block;
	padding: 0 !important;
}
.wpfm-modal-dialog {
	position: absolute !important;
	inset: 0 0 0 auto !important;
	width: min(820px, 92vw) !important;
	max-width: 92vw !important;
	height: 100dvh !important;
	min-height: 100dvh !important;
	max-height: 100dvh !important;
	margin: 0 !important;
	border-radius: 0 !important;
	overflow: auto !important;
	overscroll-behavior: contain;
	animation: wpfm-drawer-enter .28s ease-out both;
}
.wpfm-detail-page-link {
	flex-basis: 100%;
	justify-content: center;
	margin-top: 6px;
	background: var(--wpfm-button-bg, var(--wpfm-accent)) !important;
	color: var(--wpfm-button-text, #fff) !important;
}
.wpfm-detail-page-link:hover, .wpfm-detail-page-link:focus-visible {
	background: var(--wpfm-button-hover-bg, var(--wpfm-accent-dark, var(--wpfm-accent))) !important;
	color: var(--wpfm-button-hover-text, #fff) !important;
}
@media (max-width: 767px) {
	.wpfm-modal-dialog { width: 100vw !important; max-width: 100vw !important; }
}
