/**
 * ST-MAXIMIN — MODULE CONSEIL MUNICIPAL & VOS ÉLUS
 * Architecture CSS Moderne, Responsive & Mobile-First
 * Version : 1.1.7
 * Direction Artistique : Design System Page 49 (Pauline Belhamani & Djaps)
 * Spécialiste : Pazu (Webomatik)
 * Normes : Mobile-first, CSS Grid, Flexbox, Variables CSS pilotables, WCAG AAA, zéro surcharge forcée
 */

/* ==========================================================================
   1. DESIGN TOKENS & VARIABLES PILOTABLES (stmax-theme-studio)
   ========================================================================== */
:where(.stmax-elus, .stmax-elus-header-simple, .stmax-elus-permanences, .stmax-elus-layout) {
	--stmax-prune: #38164B;
	--stmax-jaune: #FFF563;
	--stmax-lilas: #EFCBFF;
	--stmax-menthe: #9AFAB3;
	--stmax-bg: #FAF8FC;
	--stmax-surface: #FFFFFF;
	--stmax-border: #EAE4F0;
	--stmax-muted: #5E4B6B;
	--stmax-elus-font: 'JUST Sans', 'Just Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--stmax-elus-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--stmax-elus-fast: 160ms;
	--stmax-elus-smooth: 240ms;
	--stmax-elus-radius: 16px;
	--stmax-elus-shadow-subtle: 0 4px 16px rgba(56, 22, 75, 0.05);
	--stmax-elus-shadow-card: 0 2px 10px rgba(56, 22, 75, 0.04);
	--stmax-elus-shadow-hover: 0 10px 26px rgba(56, 22, 75, 0.11);
	--stmax-elus-touch-min: 44px;
}

.stmax-elus {
	--stmax-elu-badge-maire: var(--stmax-jaune, #FFF563);
	--stmax-elu-badge-adjoint: var(--stmax-lilas, #EFCBFF);
	--stmax-elu-badge-delegue: var(--stmax-menthe, #9AFAB3);
	--stmax-elu-badge-opposition: #F2ECF6;
	--stmax-elus-connector: #D8CEE2;
	--stmax-elus-radius: 16px;
	--stmax-elus-shadow-subtle: 0 4px 16px rgba(56, 22, 75, 0.05);
	--stmax-elus-shadow-card: 0 2px 10px rgba(56, 22, 75, 0.04);
	--stmax-elus-shadow-hover: 0 10px 26px rgba(56, 22, 75, 0.11);
	--stmax-elus-touch-min: 44px;

	font-family: var(--stmax-elus-font);
	color: var(--stmax-prune, #38164B);
	width: 100%;
	min-width: 0;
	max-width: 1238px;
	margin-inline: auto;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	-webkit-tap-highlight-color: transparent;
}

.stmax-elus *,
.stmax-elus *::before,
.stmax-elus *::after,
.stmax-elus-header-simple *,
.stmax-elus-header-simple *::before,
.stmax-elus-header-simple *::after,
.stmax-elus-permanences *,
.stmax-elus-permanences *::before,
.stmax-elus-permanences *::after {
	box-sizing: border-box;
}

/* Garantit le masquage natif via [hidden] face aux règles flex/grid */
.stmax-elus [hidden],
.stmax-elus .stmax-elus__tier[hidden],
.stmax-elus .stmax-elus__subtier[hidden],
.stmax-elus .stmax-elus__connector[hidden],
.stmax-elus .stmax-elu-card[hidden],
.stmax-elus .stmax-elus__tree[hidden],
.stmax-elus .stmax-elus__empty[hidden],
.stmax-elus button.stmax-elus__search-clear[hidden] {
	display: none;
}

/* Neutralisation propre des styles génériques Hello Elementor */
.stmax-elus a,
.stmax-elus a:visited,
.stmax-elus-header-simple a,
.stmax-elus-header-simple a:visited,
.stmax-elus-permanences a,
.stmax-elus-permanences a:visited {
	color: var(--stmax-prune, #38164B);
	touch-action: manipulation;
}

.stmax-elus button {
	font-family: var(--stmax-elus-font);
	touch-action: manipulation;
	user-select: none;
	-webkit-user-select: none;
	-webkit-touch-callout: none;
}

/* ==========================================================================
   1b. EN-TÊTE SIMPLE COMPACT (.stmax-elus-header-simple — HTML & Elementor natif)
   ========================================================================== */
:where(body, .elementor, .stmax-hub) .e-con.stmax-elus-header-simple {
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 0px;
	--margin-right: auto;
	--margin-bottom: 1.25rem;
	--margin-left: auto;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--flex-direction: column;
	--align-items: flex-start;
	--width: 100%;
}

:where(body, .elementor, .stmax-hub) .stmax-elus-header-simple:not(.e-con) {
	margin: 0 auto 1.25rem;
	padding: 0;
}

:where(body, .elementor, .stmax-hub) .stmax-elus-header-simple {
	width: 100%;
	min-width: 0;
	max-width: 1360px;
	background: none;
	background-color: transparent;
	background-image: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--stmax-prune, #38164B);
	font-family: var(--stmax-elus-font);
	-webkit-tap-highlight-color: transparent;
}

:where(.stmax-elus-header-simple) .elementor-widget-container {
	height: auto;
}

:where(.e-con.stmax-elus-header-simple) > :where(.elementor-widget:not(:last-child)) {
	margin-block-end: 0;
	margin-bottom: 0;
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-breadcrumbs {
	min-width: 0;
	max-width: 100%;
	font-family: var(--stmax-elus-font);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--stmax-muted, #5E4B6B);
	margin: 0 0 0.55rem;
}

:where(.stmax-elus-header-simple) :is(.stmax-elus-simple-breadcrumbs:not(.elementor-widget-text-editor), .stmax-elus-simple-breadcrumbs p) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	min-width: 0;
	max-width: 100%;
}

:where(.stmax-elus-simple-breadcrumbs) p {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-breadcrumbs a,
:where(.stmax-elus-header-simple) .stmax-elus-simple-breadcrumbs a:visited {
	display: inline-flex;
	align-items: center;
	min-block-size: 24px;
	padding: 0.25rem;
	margin: -0.25rem;
	border-radius: 4px;
	color: var(--stmax-prune, #38164B);
	text-decoration: none;
	touch-action: manipulation;
	overflow-wrap: break-word;
	max-width: 100%;
	transition: color var(--stmax-elus-fast) var(--stmax-elus-ease), opacity var(--stmax-elus-fast) var(--stmax-elus-ease);
}

@media (hover: hover) and (pointer: fine) {
	:where(.stmax-elus-header-simple) .stmax-elus-simple-breadcrumbs a:hover {
		color: var(--stmax-prune, #38164B);
		text-decoration: underline;
		text-decoration-thickness: 1px;
		text-underline-offset: 3px;
	}
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-breadcrumbs a:active {
	color: var(--stmax-prune, #38164B);
	opacity: 0.8;
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-breadcrumbs a:focus-visible {
	color: var(--stmax-prune, #38164B);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	box-shadow: none;
}

:where(.stmax-elus-header-simple) :is(.stmax-elus-simple-breadcrumbs, .stmax-elus-simple-breadcrumbs p) > span {
	min-width: 0;
	max-width: 100%;
	overflow-wrap: break-word;
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-sep {
	color: var(--stmax-muted, #5E4B6B);
	opacity: 0.6;
	flex-shrink: 0;
	line-height: 1;
	user-select: none;
	-webkit-user-select: none;
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-title {
	margin: 0 0 0.6rem;
	min-width: 0;
	max-width: 100%;
}

:where(.stmax-elus-header-simple) :is(.stmax-elus-simple-title:not(.elementor-widget-heading), .stmax-elus-simple-title .elementor-heading-title) {
	font-family: var(--stmax-elus-font);
	font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--stmax-prune, #38164B);
	text-wrap: balance;
	overflow-wrap: break-word;
	min-width: 0;
	max-width: 100%;
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-title .elementor-heading-title {
	margin: 0;
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-rule:not(.elementor-widget-divider) {
	width: 44px;
	max-width: 100%;
	height: 3px;
	border-radius: 9999px;
	background-color: var(--stmax-jaune, #FFF563);
	margin: 0 0 0.65rem;
}

:where(.stmax-elus-header-simple) .elementor-widget-divider.stmax-elus-simple-rule {
	width: 44px;
	max-width: 100%;
	height: auto;
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	margin: 0 0 0.65rem;
	--divider-border-style: solid;
	--divider-border-width: 3px;
	--divider-color: var(--stmax-jaune, #FFF563);
}

:where(.elementor-widget-divider.stmax-elus-simple-rule) .elementor-divider {
	padding: 0;
	display: flex;
}

:where(.elementor-widget-divider.stmax-elus-simple-rule) .elementor-divider-separator {
	width: 100%;
	border-radius: 9999px;
}

:where(.stmax-elus-header-simple) .stmax-elus-simple-desc {
	font-family: var(--stmax-elus-font);
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--stmax-muted, #5E4B6B);
	text-wrap: pretty;
	overflow-wrap: break-word;
	min-width: 0;
	max-width: 100%;
}

:where(.stmax-elus-simple-desc) p {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* ==========================================================================
   1c. LAYOUT 2 COLONNES & SIDEBAR STICKY (.stmax-elus-layout)
   ========================================================================== */
/* Garantit qu'aucun conteneur parent Elementor ne bloque position: sticky */
body .elementor .elementor-element.e-con:has(.stmax-elus-layout),
body .elementor .elementor-element.e-con:has(.stmax-elus-layout) > .e-con-inner,
.elementor .elementor-element.e-con:has(.stmax-elus-layout),
.elementor .elementor-element.e-con:has(.stmax-elus-layout) > .e-con-inner {
	--overflow: visible;
	overflow: visible;
}

/* Neutralisation propre des largeurs/flex/paddings Elementor .e-con */
body .elementor .elementor-element.e-con.stmax-elus-layout,
.elementor .elementor-element.e-con.stmax-elus-layout,
.stmax-elus-layout {
	--width: 100%;
	--content-width: 100%;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 0px;
	--margin-right: auto;
	--margin-bottom: 0px;
	--margin-left: auto;
	--gap: 24px;
	--row-gap: 24px;
	--column-gap: 24px;
	--overflow: visible;
	--flex-grow: 0;
	--flex-shrink: 0;
	--flex-basis: auto;
	width: 100%;
	max-width: 1360px;
	min-width: 0;
	margin-block: 0;
	margin-inline: auto;
	padding: 0;
	overflow: visible;
	flex: 0 0 auto;
	box-sizing: border-box;
}

body .elementor .elementor-element.e-con.stmax-elus-layout.e-con-boxed,
.elementor .elementor-element.e-con.stmax-elus-layout.e-con-boxed,
.stmax-elus-layout:has(> .e-con-inner) {
	--display: block;
	display: block;
}

/* Grille Mobile / Tablette (< 1024px) : 1 colonne pleine largeur */
body .elementor .elementor-element.e-con.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
.elementor .elementor-element.e-con.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
body .elementor .elementor-element.e-con.stmax-elus-layout > .e-con-inner,
.elementor .elementor-element.e-con.stmax-elus-layout > .e-con-inner,
.stmax-elus-layout > .e-con-inner {
	--display: grid;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 24px;
	align-items: start;
	width: 100%;
	max-width: 100%;
	height: auto;
	min-width: 0;
	margin: 0;
	padding: 0;
	overflow: visible;
}

body .elementor .elementor-element.e-con.stmax-elus-layout__main,
body .elementor .elementor-element.e-con.stmax-elus-layout__aside,
.elementor .elementor-element.e-con.stmax-elus-layout__main,
.elementor .elementor-element.e-con.stmax-elus-layout__aside,
.stmax-elus-layout__main,
.stmax-elus-layout__aside {
	--width: 100%;
	--content-width: 100%;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 0px;
	--margin-right: 0px;
	--margin-bottom: 0px;
	--margin-left: 0px;
	--flex-grow: 0;
	--flex-shrink: 1;
	--flex-basis: auto;
	--overflow: visible;
	--position: relative;
	--display: flex;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	flex: none;
	overflow: visible;
	box-sizing: border-box;
}

body .elementor .elementor-element.e-con.stmax-elus-layout__aside,
.elementor .elementor-element.e-con.stmax-elus-layout__aside,
.stmax-elus-layout__aside {
	position: static;
}

.elementor :is(.stmax-elus-layout__main, .stmax-elus-layout__aside) > .e-con-inner,
.elementor :is(.stmax-elus-layout__main, .stmax-elus-layout__aside) > .elementor-widget,
.elementor :is(.stmax-elus-layout__main, .stmax-elus-layout__aside) > .e-con-inner > .elementor-widget,
.elementor :is(.stmax-elus-layout__main, .stmax-elus-layout__aside) > .elementor-widget > .elementor-widget-container,
.elementor :is(.stmax-elus-layout__main, .stmax-elus-layout__aside) > .e-con-inner > .elementor-widget > .elementor-widget-container,
:is(.stmax-elus-layout__main, .stmax-elus-layout__aside) > .e-con-inner,
:is(.stmax-elus-layout__main, .stmax-elus-layout__aside) > .elementor-widget {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0;
}

.stmax-elus-layout__main .stmax-elus {
	max-width: 100%;
	margin-inline: 0;
}

/* Desktop (>= 1024px) : 2 colonnes + sidebar droite sticky */
@media (min-width: 1024px) {
	body .elementor .elementor-element.e-con.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
	.elementor .elementor-element.e-con.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
	.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
	body .elementor .elementor-element.e-con.stmax-elus-layout > .e-con-inner,
	.elementor .elementor-element.e-con.stmax-elus-layout > .e-con-inner,
	.stmax-elus-layout > .e-con-inner {
		--gap: 28px;
		--row-gap: 28px;
		--column-gap: 28px;
		grid-template-columns: minmax(0, 1fr) 340px;
		gap: 28px;
		align-items: start;
	}

	body .elementor .elementor-element.e-con.stmax-elus-layout__aside,
	.elementor .elementor-element.e-con.stmax-elus-layout__aside,
	.stmax-elus-layout__aside {
		--position: sticky;
		--align-self: start;
		position: sticky;
		top: 108px;
		top: calc(108px + var(--wp-admin--admin-bar--height, 0px));
		align-self: start;
		overflow: visible;
	}
}

/* Grands écrans (>= 1200px) : sidebar affinée à 316px et gap 24px pour 4 colonnes d'élus */
@media (min-width: 1200px) {
	body .elementor .elementor-element.e-con.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
	.elementor .elementor-element.e-con.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
	.stmax-elus-layout:not(.e-con-boxed):not(:has(> .e-con-inner)),
	body .elementor .elementor-element.e-con.stmax-elus-layout > .e-con-inner,
	.elementor .elementor-element.e-con.stmax-elus-layout > .e-con-inner,
	.stmax-elus-layout > .e-con-inner {
		--gap: 24px;
		--row-gap: 24px;
		--column-gap: 24px;
		grid-template-columns: minmax(0, 1fr) 316px;
		gap: 24px;
	}
}

/* ==========================================================================
   2. BARRE DE CONTRÔLES : RECHERCHE CAPSULE, COMPTEUR & PILULES
   ========================================================================== */
.stmax-elus .stmax-elus__controls {
	background-color: var(--stmax-bg, #FAF8FC);
	border: 1px solid var(--stmax-border, #EAE4F0);
	border-radius: var(--stmax-elus-radius);
	padding: 1rem;
	box-shadow: var(--stmax-elus-shadow-subtle);
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

@media (min-width: 768px) {
	.stmax-elus .stmax-elus__controls {
		padding: 1.25rem 1.5rem;
		gap: 1rem;
	}
}

.stmax-elus .stmax-elus__search-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0.75rem;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

@media (min-width: 640px) {
	.stmax-elus .stmax-elus__search-row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}
}

/* Capsule de recherche */
.stmax-elus label.stmax-elus__search-box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.55rem;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: 48px;
	margin: 0;
	padding-inline: 0.45rem 0.5rem;
	background-color: var(--stmax-surface, #FFFFFF);
	border: 1.5px solid var(--stmax-border, #EAE4F0);
	border-radius: 9999px;
	cursor: text;
	transition: border-color var(--stmax-elus-fast) var(--stmax-elus-ease), box-shadow var(--stmax-elus-fast) var(--stmax-elus-ease);
}

@media (min-width: 640px) {
	.stmax-elus label.stmax-elus__search-box {
		width: auto;
	}
}

@media (hover: hover) and (pointer: fine) {
	.stmax-elus label.stmax-elus__search-box:hover {
		border-color: rgba(56, 22, 75, 0.32);
	}
}

.stmax-elus label.stmax-elus__search-box:focus-within {
	border-color: var(--stmax-prune, #38164B);
	box-shadow: 0 0 0 3px rgba(56, 22, 75, 0.12);
}

.stmax-elus .stmax-elus__search-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 9999px;
	background-color: var(--stmax-jaune, #FFF563);
	color: var(--stmax-prune, #38164B);
}

.stmax-elus .stmax-elus__search-icon svg {
	display: block;
	flex-shrink: 0;
}

.stmax-elus input.stmax-elus__search-input[type="search"] {
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	outline: none;
	font-family: var(--stmax-elus-font);
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--stmax-prune, #38164B);
	flex: 1 1 0%;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	height: auto;
	min-height: 0;
	padding: 0.5rem 0.25rem;
	margin: 0;
}

@media (min-width: 768px) and (pointer: fine) {
	.stmax-elus input.stmax-elus__search-input[type="search"] {
		font-size: 0.9375rem;
	}
}

.stmax-elus input.stmax-elus__search-input[type="search"]::placeholder {
	color: var(--stmax-muted, #5E4B6B);
	opacity: 0.85;
}

.stmax-elus input.stmax-elus__search-input[type="search"]::-webkit-search-decoration,
.stmax-elus input.stmax-elus__search-input[type="search"]::-webkit-search-cancel-button,
.stmax-elus input.stmax-elus__search-input[type="search"]::-webkit-search-results-button,
.stmax-elus input.stmax-elus__search-input[type="search"]::-webkit-search-results-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.stmax-elus button.stmax-elus__search-clear[type="button"] {
	position: relative;
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	padding: 0;
	margin: 0;
	border: 1px solid var(--stmax-border, #EAE4F0);
	border-radius: 50%;
	background-color: var(--stmax-bg, #FAF8FC);
	color: var(--stmax-prune, #38164B);
	box-shadow: none;
	cursor: pointer;
	transition: background-color var(--stmax-elus-fast) var(--stmax-elus-ease), border-color var(--stmax-elus-fast) var(--stmax-elus-ease), transform var(--stmax-elus-fast) var(--stmax-elus-ease);
}

/* Extension de la zone tactile à 44px sans modifier la pastille visuelle */
.stmax-elus button.stmax-elus__search-clear[type="button"]::after {
	content: "";
	position: absolute;
	inset: -5px;
}

.stmax-elus button.stmax-elus__search-clear[type="button"] svg {
	display: block;
}

@media (hover: hover) and (pointer: fine) {
	.stmax-elus button.stmax-elus__search-clear[type="button"]:hover {
		background-color: var(--stmax-prune, #38164B);
		border-color: var(--stmax-prune, #38164B);
		color: #FFFFFF;
	}
}

.stmax-elus button.stmax-elus__search-clear[type="button"]:active {
	transform: scale(0.94);
}

/* Compteur de résultats */
.stmax-elus .stmax-elus__counter {
	display: inline-flex;
	align-items: baseline;
	gap: 0.35rem;
	flex-shrink: 0;
	align-self: flex-start;
	padding: 0.5rem 1rem;
	border-radius: 9999px;
	background-color: var(--stmax-surface, #FFFFFF);
	border: 1px solid var(--stmax-border, #EAE4F0);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--stmax-muted, #5E4B6B);
	white-space: nowrap;
}

@media (min-width: 640px) {
	.stmax-elus .stmax-elus__counter {
		align-self: center;
	}
}

.stmax-elus .stmax-elus__counter strong {
	font-weight: 800;
	font-size: 0.9375rem;
	color: var(--stmax-prune, #38164B);
	font-variant-numeric: tabular-nums;
}

/* Pilules filtres rondes */
.stmax-elus .stmax-elus__filters {
	display: flex;
	flex-wrap: wrap;
	flex-wrap: balance;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.stmax-elus button.stmax-elus__pill[type="button"] {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: var(--stmax-elus-touch-min);
	padding: 0.5rem 1.05rem;
	margin: 0;
	border-radius: 9999px;
	background-color: var(--stmax-surface, #FFFFFF);
	border: 1.5px solid var(--stmax-border, #EAE4F0);
	color: var(--stmax-prune, #38164B);
	font-family: var(--stmax-elus-font);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	white-space: normal;
	max-width: 100%;
	min-width: 0;
	box-shadow: none;
	cursor: pointer;
	transition: background-color var(--stmax-elus-fast) var(--stmax-elus-ease), border-color var(--stmax-elus-fast) var(--stmax-elus-ease), color var(--stmax-elus-fast) var(--stmax-elus-ease), box-shadow var(--stmax-elus-fast) var(--stmax-elus-ease), transform var(--stmax-elus-fast) var(--stmax-elus-ease);
}

@media (hover: hover) and (pointer: fine) {
	.stmax-elus button.stmax-elus__pill[type="button"]:hover:not(.is-active) {
		background-color: var(--stmax-surface, #FFFFFF);
		border-color: var(--stmax-prune, #38164B);
		color: var(--stmax-prune, #38164B);
		transform: translateY(-1px);
	}
}

.stmax-elus button.stmax-elus__pill[type="button"]:active {
	transform: scale(0.98);
}

.stmax-elus button.stmax-elus__pill[type="button"].is-active {
	background-color: var(--stmax-prune, #38164B);
	border-color: var(--stmax-prune, #38164B);
	color: #FFFFFF;
	box-shadow: 0 3px 10px rgba(56, 22, 75, 0.16);
}

.stmax-elus .stmax-elus__pill-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 1.5rem;
	padding: 0.22rem 0.55rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	background-color: var(--stmax-bg, #FAF8FC);
	color: var(--stmax-muted, #5E4B6B);
	transition: background-color var(--stmax-elus-fast) var(--stmax-elus-ease), color var(--stmax-elus-fast) var(--stmax-elus-ease);
}

.stmax-elus button.stmax-elus__pill[type="button"].is-active .stmax-elus__pill-count {
	background-color: var(--stmax-jaune, #FFF563);
	color: var(--stmax-prune, #38164B);
	font-weight: 800;
}

/* ==========================================================================
   3. ARBRE HIÉRARCHIQUE & CONNECTEURS VISUELS
   ========================================================================== */
.stmax-elus .stmax-elus__tree {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.stmax-elus.is-filtered .stmax-elus__tree {
	gap: 2rem;
}

.stmax-elus .stmax-elus__tier {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

/* Trait connecteur vertical + nœud circulaire Prune/Lilas */
.stmax-elus .stmax-elus__connector {
	position: relative;
	width: 2px;
	height: 36px;
	margin-inline: auto;
	margin-block: 0.65rem;
	background-color: var(--stmax-elus-connector, #D8CEE2);
	border-radius: 9999px;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.stmax-elus .stmax-elus__connector {
		height: 46px;
		margin-block: 0.85rem;
	}
}

.stmax-elus .stmax-elus__connector::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background-color: var(--stmax-lilas, #EFCBFF);
	border: 2.5px solid var(--stmax-prune, #38164B);
	box-shadow: 0 0 0 4px var(--stmax-surface, #FFFFFF);
}

.stmax-elus.is-filtered .stmax-elus__connector {
	display: none;
}

/* En-têtes de strates */
.stmax-elus .stmax-elus__tier-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	margin-block-end: 1.125rem;
	min-width: 0;
	max-width: 100%;
}

.stmax-elus .stmax-elus__tier-header--center {
	align-items: center;
	text-align: center;
}

.stmax-elus .stmax-elus__tier-step {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.75rem;
	border-radius: 9999px;
	background-color: var(--stmax-bg, #FAF8FC);
	border: 1px solid var(--stmax-border, #EAE4F0);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--stmax-muted, #5E4B6B);
	max-width: 100%;
}

.stmax-elus .stmax-elus__tier--maire .stmax-elus__tier-step {
	background-color: var(--stmax-jaune, #FFF563);
	border-color: var(--stmax-jaune, #FFF563);
	color: var(--stmax-prune, #38164B);
}

.stmax-elus .stmax-elus__subtier--opposition .stmax-elus__tier-step {
	background-color: var(--stmax-elu-badge-opposition);
	border-color: rgba(56, 22, 75, 0.14);
	color: var(--stmax-prune, #38164B);
}

.stmax-elus h2.stmax-elus__tier-title {
	font-family: var(--stmax-elus-font);
	font-size: clamp(1.3125rem, 1.15rem + 0.75vw, 1.75rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--stmax-prune, #38164B);
	margin: 0;
	text-wrap: balance;
	overflow-wrap: break-word;
	max-width: 100%;
}

.stmax-elus p.stmax-elus__tier-desc {
	font-family: var(--stmax-elus-font);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--stmax-muted, #5E4B6B);
	margin: 0.1rem 0 0;
	max-width: 66ch;
	text-wrap: pretty;
	overflow-wrap: break-word;
}

/* ==========================================================================
   4. GRILLES PAR NIVEAU HIÉRARCHIQUE
   ========================================================================== */
/* Niveau 1 : Le Maire (Grande carte horizontale centrée) */
.stmax-elus .stmax-elus__maire-wrap {
	width: 100%;
	max-width: 760px;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	min-width: 0;
}

/* Grilles génériques des niveaux 2, 3 et 4 */
.stmax-elus .stmax-elus__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 1.125rem;
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

/* Niveau 2 : Maire & Adjoints (1 mob -> 2 tab >= 600px -> 3 inter >= 860px -> 4 desk >= 1024px) */
@media (min-width: 600px) {
	.stmax-elus .stmax-elus__grid--adjoints {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 860px) {
	.stmax-elus .stmax-elus__grid--adjoints {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

@media (min-width: 1024px) {
	.stmax-elus .stmax-elus__grid--adjoints {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

/* Niveau 3 : Conseillers délégués (1 mob -> 2 tab -> 4 desk) */
@media (min-width: 640px) {
	.stmax-elus .stmax-elus__grid--delegues {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.125rem;
	}
}

@media (min-width: 1024px) {
	.stmax-elus .stmax-elus__grid--delegues {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

/* Niveau 4 : Conseillers municipaux (1 mob -> 2 tab -> 4 desk, 0 overflow sur 390px) */
.stmax-elus .stmax-elus__tier--conseillers {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.stmax-elus .stmax-elus__subtier {
	width: 100%;
	min-width: 0;
	max-width: 100%;
}

.stmax-elus .stmax-elus__subtier--opposition {
	background-color: var(--stmax-bg, #FAF8FC);
	border: 1px solid var(--stmax-border, #EAE4F0);
	border-radius: calc(var(--stmax-elus-radius) + 4px);
	padding: 1.25rem 1rem 1.35rem;
}

@media (min-width: 768px) {
	.stmax-elus .stmax-elus__subtier--opposition {
		padding: 1.75rem 1.75rem 2rem;
	}
}

@media (min-width: 640px) {
	.stmax-elus .stmax-elus__grid--conseillers {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.125rem;
	}
}

@media (min-width: 1024px) {
	.stmax-elus .stmax-elus__grid--conseillers {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.25rem;
	}
}

/* Fallback sans container queries dans la colonne principale avec sidebar */
@supports not (container-type: inline-size) {
	@media (min-width: 1024px) {
		.stmax-elus-layout__main .stmax-elus .stmax-elus__grid:is(.stmax-elus__grid--adjoints, .stmax-elus__grid--delegues, .stmax-elus__grid--conseillers) {
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: 1.25rem;
		}
	}

	@media (min-width: 1200px) {
		.stmax-elus-layout__main .stmax-elus .stmax-elus__grid:is(.stmax-elus__grid--adjoints, .stmax-elus__grid--delegues, .stmax-elus__grid--conseillers) {
			grid-template-columns: repeat(4, minmax(0, 1fr));
			gap: 16px;
		}

		.stmax-elus-layout__main .stmax-elus .stmax-elu-card:not(.stmax-elu-card--maire) .stmax-elu-card__body {
			padding: 14px;
		}

		.stmax-elus-layout__main .stmax-elus .stmax-elu-card:not(.stmax-elu-card--maire) h3.stmax-elu-card__name {
			font-size: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
		}

		.stmax-elus-layout__main .stmax-elus .stmax-elu-card:not(.stmax-elu-card--maire) :is(a.stmax-elu-card__mail, a.stmax-elu-card__mail:visited) {
			font-size: 0.71875rem;
			font-weight: 600;
			padding: 0.375rem 0.55rem;
			gap: 0.3rem;
		}

		.stmax-elus-layout__main .stmax-elus .stmax-elu-card:not(.stmax-elu-card--maire) a.stmax-elu-card__mail svg {
			width: 13px;
			height: 13px;
		}
	}
}

@media (min-width: 768px) {
	.stmax-elus-layout__main .stmax-elus .stmax-elus__subtier--opposition {
		padding: 1.5rem 1.35rem 1.75rem;
	}
}

/* Adaptation intrinsèque à la largeur réelle de la colonne via @container */
@supports (container-type: inline-size) {
	.stmax-elus {
		container: stmax-elus / inline-size;
	}

	.stmax-elus .stmax-elus__grid:is(.stmax-elus__grid--adjoints, .stmax-elus__grid--delegues, .stmax-elus__grid--conseillers) {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.125rem;
	}

	@container stmax-elus (min-width: 520px) {
		.stmax-elus .stmax-elus__grid:is(.stmax-elus__grid--adjoints, .stmax-elus__grid--delegues, .stmax-elus__grid--conseillers) {
			grid-template-columns: repeat(2, minmax(0, 1fr));
			gap: 1.125rem;
		}
	}

	@container stmax-elus (min-width: 740px) {
		.stmax-elus .stmax-elus__grid:is(.stmax-elus__grid--adjoints, .stmax-elus__grid--delegues, .stmax-elus__grid--conseillers) {
			grid-template-columns: repeat(3, minmax(0, 1fr));
			gap: 1.25rem;
		}
	}

	@container stmax-elus (min-width: 820px) {
		.stmax-elus .stmax-elus__grid:is(.stmax-elus__grid--adjoints, .stmax-elus__grid--delegues, .stmax-elus__grid--conseillers) {
			grid-template-columns: repeat(4, minmax(0, 1fr));
			gap: 16px;
		}

		.stmax-elus .stmax-elu-card:not(.stmax-elu-card--maire) .stmax-elu-card__body {
			padding: 14px;
		}

		.stmax-elus .stmax-elu-card:not(.stmax-elu-card--maire) h3.stmax-elu-card__name {
			font-size: clamp(1rem, 0.94rem + 0.2vw, 1.125rem);
		}

		.stmax-elus .stmax-elu-card:not(.stmax-elu-card--maire) :is(a.stmax-elu-card__mail, a.stmax-elu-card__mail:visited) {
			font-size: 0.71875rem;
			font-weight: 600;
			padding: 0.375rem 0.55rem;
			gap: 0.3rem;
		}

		.stmax-elus .stmax-elu-card:not(.stmax-elu-card--maire) a.stmax-elu-card__mail svg {
			width: 13px;
			height: 13px;
		}
	}
}

/* ==========================================================================
   5. CARTE ÉLU (.stmax-elu-card) & VARIANTES HIÉRARCHIQUES
   ========================================================================== */
.stmax-elus .stmax-elu-card {
	position: relative;
	background-color: var(--stmax-surface, #FFFFFF);
	border: 1px solid var(--stmax-border, #EAE4F0);
	border-radius: var(--stmax-elus-radius);
	box-shadow: var(--stmax-elus-shadow-card);
	display: flex;
	flex-direction: column;
	overflow: clip;
	min-width: 0;
	max-width: 100%;
	transition: transform var(--stmax-elus-smooth) var(--stmax-elus-ease), box-shadow var(--stmax-elus-smooth) var(--stmax-elus-ease), border-color var(--stmax-elus-fast) var(--stmax-elus-ease);
}

@media (hover: hover) and (pointer: fine) {
	.stmax-elus .stmax-elu-card:hover {
		transform: translateY(-2px);
		box-shadow: var(--stmax-elus-shadow-hover);
		border-color: rgba(56, 22, 75, 0.24);
	}
}

/* Zone portrait + badge superposé */
.stmax-elus .stmax-elu-card .stmax-elu-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 4.6;
	background-color: var(--stmax-bg, #FAF8FC);
	overflow: clip;
	flex-shrink: 0;
}

.stmax-elus .stmax-elu-card .stmax-elu-card__media:has(> img)::after {
	content: "";
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	height: 34%;
	background: linear-gradient(to top, rgba(56, 22, 75, 0.24), transparent);
	pointer-events: none;
}

.elementor .stmax-elus .stmax-elu-card .stmax-elu-card__media > img,
.stmax-elus .stmax-elu-card .stmax-elu-card__media > img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-height: none;
	object-fit: cover;
	object-position: center 15%;
	display: block;
	margin: 0;
	border: 0;
	border-radius: 0;
}

/* Fallback monogramme Prune + initiales Jaune Citron */
.stmax-elus .stmax-elu-card .stmax-elu-card__monogram {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: grid;
	place-items: center;
	background-color: var(--stmax-prune, #38164B);
	background-image:
		radial-gradient(circle at 22% 18%, rgba(239, 203, 255, 0.2) 0%, transparent 58%),
		linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0.16) 100%);
	color: var(--stmax-jaune, #FFF563);
	font-family: var(--stmax-elus-font);
	font-weight: 800;
	font-size: clamp(2.125rem, 1.75rem + 1.4vw, 2.875rem);
	letter-spacing: 0.05em;
	line-height: 1;
	user-select: none;
	-webkit-user-select: none;
}

/* Badges de rang superposés en bas à gauche de la photo */
.stmax-elus .stmax-elu-badge {
	position: absolute;
	inset-block-end: 0.75rem;
	inset-inline-start: 0.75rem;
	z-index: 2;
	max-width: calc(100% - 1.5rem);
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.75rem;
	border-radius: 9999px;
	font-family: var(--stmax-elus-font);
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	box-shadow: 0 2px 10px rgba(56, 22, 75, 0.18);
	overflow-wrap: break-word;
}

/* Spécificité (0,1,0) via :where() pour préserver les surcharges stmax-theme-studio */
:where(.stmax-elus) .stmax-elu-badge--maire {
	background-color: var(--stmax-elu-badge-maire);
	color: var(--stmax-prune, #38164B);
}

:where(.stmax-elus) .stmax-elu-badge--adjoint {
	background-color: var(--stmax-elu-badge-adjoint);
	color: var(--stmax-prune, #38164B);
}

:where(.stmax-elus) .stmax-elu-badge--delegue {
	background-color: var(--stmax-elu-badge-delegue);
	color: var(--stmax-prune, #38164B);
}

:where(.stmax-elus) .stmax-elu-badge--opposition {
	background-color: var(--stmax-elu-badge-opposition);
	color: var(--stmax-prune, #38164B);
	border: 1px solid rgba(56, 22, 75, 0.14);
}

/* Corps de carte */
.stmax-elus .stmax-elu-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.45rem;
	padding: 1.125rem 1.15rem 1.2rem;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}

.stmax-elus .stmax-elu-card__kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--stmax-muted, #5E4B6B);
	margin-block-end: 0.1rem;
}

.stmax-elus .stmax-elu-card__kicker svg {
	display: block;
	flex-shrink: 0;
	color: var(--stmax-prune, #38164B);
}

.stmax-elus h3.stmax-elu-card__name {
	font-family: var(--stmax-elus-font);
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
	font-weight: 800;
	line-height: 1.26;
	letter-spacing: -0.01em;
	color: var(--stmax-prune, #38164B);
	margin: 0;
	overflow-wrap: break-word;
	max-width: 100%;
}

.stmax-elus p.stmax-elu-card__role {
	font-family: var(--stmax-elus-font);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--stmax-prune, #38164B);
	margin: 0;
	overflow-wrap: break-word;
	max-width: 100%;
}

.stmax-elus p.stmax-elu-card__delegations {
	font-family: var(--stmax-elus-font);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--stmax-muted, #5E4B6B);
	margin: 0.1rem 0 0;
	overflow-wrap: break-word;
	text-wrap: pretty;
	max-width: 100%;
}

.stmax-elus p.stmax-elu-card__meta {
	display: inline-flex;
	align-items: flex-start;
	gap: 0.45rem;
	font-family: var(--stmax-elus-font);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--stmax-muted, #5E4B6B);
	margin: 0.25rem 0 0;
	padding: 0.38rem 0.68rem;
	border-radius: 10px;
	background-color: var(--stmax-bg, #FAF8FC);
	border: 1px solid var(--stmax-border, #EAE4F0);
	max-width: 100%;
}

.stmax-elus p.stmax-elu-card__meta svg {
	display: block;
	flex-shrink: 0;
	margin-block-start: 0.12rem;
	color: var(--stmax-prune, #38164B);
}

.stmax-elus .stmax-elu-card__actions {
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin-block-start: auto;
	padding-block-start: 0.75rem;
}

.stmax-elus a.stmax-elu-card__mail,
.stmax-elus a.stmax-elu-card__mail:visited {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: var(--stmax-elus-touch-min);
	max-width: 100%;
	min-width: 0;
	padding: 0.45rem 0.85rem;
	border-radius: 9999px;
	background-color: var(--stmax-bg, #FAF8FC);
	border: 1px solid var(--stmax-border, #EAE4F0);
	color: var(--stmax-prune, #38164B);
	font-family: var(--stmax-elus-font);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	touch-action: manipulation;
	transition: background-color var(--stmax-elus-fast) var(--stmax-elus-ease), border-color var(--stmax-elus-fast) var(--stmax-elus-ease), color var(--stmax-elus-fast) var(--stmax-elus-ease), transform var(--stmax-elus-fast) var(--stmax-elus-ease);
}

.stmax-elus a.stmax-elu-card__mail svg {
	display: block;
	flex-shrink: 0;
}

.stmax-elus a.stmax-elu-card__mail span {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
	.stmax-elus a.stmax-elu-card__mail:hover {
		background-color: var(--stmax-prune, #38164B);
		border-color: var(--stmax-prune, #38164B);
		color: #FFFFFF;
	}
}

.stmax-elus a.stmax-elu-card__mail:active {
	transform: scale(0.98);
}

/* --- Variante Niveau 1 : Le Maire (Grande carte horizontale centrée) --- */
.stmax-elus .stmax-elu-card--maire {
	border: 1.5px solid rgba(56, 22, 75, 0.16);
	box-shadow: 0 8px 28px rgba(56, 22, 75, 0.08);
}

.stmax-elus .stmax-elu-card--maire::before {
	content: "";
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 4px;
	z-index: 3;
	background: linear-gradient(90deg, var(--stmax-prune, #38164B) 72%, var(--stmax-jaune, #FFF563) 72%);
}

@media (min-width: 640px) {
	.stmax-elus .stmax-elu-card--maire {
		display: grid;
		grid-template-columns: 220px minmax(0, 1fr);
		align-items: stretch;
	}

	.stmax-elus .stmax-elu-card--maire .stmax-elu-card__media {
		width: 220px;
		aspect-ratio: 3 / 4;
		height: 100%;
	}

	.stmax-elus .stmax-elu-card--maire .stmax-elu-card__body {
		padding: 1.65rem 1.75rem 1.5rem;
		gap: 0.55rem;
	}
}

.stmax-elus .stmax-elu-card--maire h3.stmax-elu-card__name {
	font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
	line-height: 1.18;
}

.stmax-elus .stmax-elu-card--maire p.stmax-elu-card__role {
	font-size: 1rem;
}

.stmax-elus .stmax-elu-card--maire p.stmax-elu-card__delegations {
	font-size: 0.9375rem;
	line-height: 1.55;
}

/* --- Variantes Niveau 3 & 4 : Cartes plus compactes --- */
.stmax-elus .stmax-elu-card--delegue .stmax-elu-card__media,
.stmax-elus .stmax-elu-card--conseiller .stmax-elu-card__media {
	aspect-ratio: 4 / 4.4;
}

.stmax-elus .stmax-elu-card--delegue .stmax-elu-card__body,
.stmax-elus .stmax-elu-card--conseiller .stmax-elu-card__body {
	padding: 0.95rem 1rem 1.05rem;
	gap: 0.38rem;
}

.stmax-elus .stmax-elu-card--delegue h3.stmax-elu-card__name,
.stmax-elus .stmax-elu-card--conseiller h3.stmax-elu-card__name {
	font-size: 1.0625rem;
}

.stmax-elus .stmax-elu-card--delegue p.stmax-elu-card__delegations,
.stmax-elus .stmax-elu-card--conseiller p.stmax-elu-card__delegations {
	font-size: 0.8125rem;
	line-height: 1.45;
}

.stmax-elus .stmax-elu-card--delegue .stmax-elu-card__actions,
.stmax-elus .stmax-elu-card--conseiller .stmax-elu-card__actions {
	padding-block-start: 0.6rem;
}

/* ==========================================================================
   6. ÉTAT VIDE (.stmax-elus__empty)
   ========================================================================== */
.stmax-elus .stmax-elus__empty {
	background-color: var(--stmax-surface, #FFFFFF);
	border: 1.5px dashed var(--stmax-border, #EAE4F0);
	border-radius: var(--stmax-elus-radius);
	padding: 2.5rem 1.25rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	width: 100%;
	min-width: 0;
}

.stmax-elus p.stmax-elus__empty-title {
	font-family: var(--stmax-elus-font);
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--stmax-prune, #38164B);
	margin: 0;
}

.stmax-elus p.stmax-elus__empty-sub {
	font-family: var(--stmax-elus-font);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--stmax-muted, #5E4B6B);
	margin: 0;
	max-width: 52ch;
}

.stmax-elus button.stmax-elus__reset-btn[type="button"] {
	appearance: none;
	-webkit-appearance: none;
	margin-block-start: 0.45rem;
	min-height: var(--stmax-elus-touch-min);
	padding: 0.65rem 1.45rem;
	border: 0;
	border-radius: 9999px;
	background-color: var(--stmax-jaune, #FFF563);
	color: var(--stmax-prune, #38164B);
	font-family: var(--stmax-elus-font);
	font-size: 0.875rem;
	font-weight: 800;
	line-height: 1.25;
	box-shadow: 0 2px 8px rgba(56, 22, 75, 0.12);
	cursor: pointer;
	transition: transform var(--stmax-elus-fast) var(--stmax-elus-ease), box-shadow var(--stmax-elus-fast) var(--stmax-elus-ease), filter var(--stmax-elus-fast) var(--stmax-elus-ease);
}

@media (hover: hover) and (pointer: fine) {
	.stmax-elus button.stmax-elus__reset-btn[type="button"]:hover {
		transform: translateY(-1px);
		box-shadow: 0 4px 14px rgba(56, 22, 75, 0.2);
		filter: brightness(0.97);
	}
}

.stmax-elus button.stmax-elus__reset-btn[type="button"]:active {
	transform: scale(0.98);
}

/* ==========================================================================
   6b. ENCART « PERMANENCE DES ÉLUS » (.stmax-elus-permanences — HTML & Elementor natif)
   ========================================================================== */
:where(.elementor, .stmax-hub, body) .e-con.stmax-elus-permanences {
	--padding-top: 20px;
	--padding-right: 18px;
	--padding-bottom: 20px;
	--padding-left: 18px;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--flex-direction: column;
	--align-items: stretch;
	--margin-top: 0px;
	--margin-right: 0px;
	--margin-bottom: 0px;
	--margin-left: 0px;
	--width: 100%;
}

:where(.elementor, .stmax-hub, body) .stmax-elus-permanences:not(.e-con) {
	margin: 0;
	padding: 20px 18px;
}

:where(.elementor, .stmax-hub, body) .stmax-elus-permanences {
	position: relative;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	background-color: #FDFBF7;
	border: 1px solid var(--stmax-border, #EAE4F0);
	border-radius: var(--stmax-elus-radius, 16px);
	box-shadow: 0 4px 18px rgba(56, 22, 75, 0.04);
	box-sizing: border-box;
	overflow: hidden;
	overflow: clip;
	font-family: var(--stmax-elus-font);
	color: var(--stmax-prune, #38164B);
	-webkit-tap-highlight-color: transparent;
}

:where(.stmax-elus-permanences) .elementor-widget-container {
	height: auto;
}

:where(
	.e-con.stmax-elus-permanences,
	.e-con.stmax-elus-perm__head,
	.e-con.stmax-elus-perm__grid,
	.e-con.stmax-elus-perm__card,
	.e-con.stmax-elus-perm__annexe,
	.e-con.stmax-elus-perm__item
) > :where(.elementor-widget:not(:last-child)) {
	margin-block-end: 0;
	margin-bottom: 0;
}

:where(.stmax-elus-permanences) .e-con.stmax-elus-perm__head {
	--flex-direction: column;
	--align-items: flex-start;
	--gap: 8px;
	--row-gap: 8px;
	--column-gap: 8px;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-bottom: 16px;
	--width: 100%;
	min-width: 0;
	max-width: 100%;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__head:not(.e-con) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin-block-end: 16px;
	min-width: 0;
	max-width: 100%;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__kicker {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: 100%;
	align-self: flex-start;
	margin: 0;
	padding: 4px 12px;
	border-radius: 9999px;
	background-color: var(--stmax-jaune, #FFF563);
	color: var(--stmax-prune, #38164B);
	font-family: var(--stmax-elus-font);
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

:where(.stmax-elus-perm__kicker) p {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__title {
	margin: 0;
	min-width: 0;
	max-width: 100%;
}

:where(.elementor, .stmax-hub, body, .stmax-elus-permanences) :where(.stmax-elus-permanences) :is(h2.stmax-elus-perm__title, .stmax-elus-perm__title:not(.elementor-widget-heading), .stmax-elus-perm__title .elementor-heading-title) {
	margin: 0;
	font-family: 'TT Ramillas', Georgia, serif;
	font-size: clamp(1.1875rem, 1.05rem + 0.45vw, 1.375rem);
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: var(--stmax-prune, #38164B);
	text-wrap: balance;
	overflow-wrap: break-word;
	max-width: 100%;
}

:where(.stmax-elus-permanences) .e-con.stmax-elus-perm__grid {
	--display: flex;
	--flex-direction: column;
	--align-items: stretch;
	--gap: 14px;
	--row-gap: 14px;
	--column-gap: 14px;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--width: 100%;
	width: 100%;
	min-width: 0;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__grid:not(.e-con) {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 14px;
	width: 100%;
	min-width: 0;
	align-items: stretch;
}

:where(.stmax-elus-permanences) .e-con.stmax-elus-perm__card {
	--flex-direction: column;
	--align-items: stretch;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--padding-top: 14px;
	--padding-right: 16px;
	--padding-bottom: 14px;
	--padding-left: 16px;
	--width: 100%;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__card:not(.e-con) {
	display: flex;
	flex-direction: column;
	padding: 14px 16px;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__card {
	min-width: 0;
	max-width: 100%;
	background-color: var(--stmax-surface, #FFFFFF);
	border: 1px solid var(--stmax-border, #EAE4F0);
	border-radius: 12px;
	box-shadow: var(--stmax-elus-shadow-card, 0 2px 10px rgba(56, 22, 75, 0.04));
}

:where(.stmax-elus-permanences) .stmax-elus-perm__card-title {
	margin: 0 0 10px;
	min-width: 0;
	max-width: 100%;
}

:where(.elementor, .stmax-hub, body, .stmax-elus-permanences) :where(.stmax-elus-permanences) :is(h3.stmax-elus-perm__card-title, .stmax-elus-perm__card-title:not(.elementor-widget-heading), .stmax-elus-perm__card-title .elementor-heading-title) {
	font-family: var(--stmax-elus-font);
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.005em;
	color: var(--stmax-prune, #38164B);
	text-wrap: pretty;
	overflow-wrap: break-word;
	max-width: 100%;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__card-title .elementor-heading-title {
	margin: 0;
}

:where(.stmax-elus-permanences) :is(p.stmax-elus-perm__rdv, .stmax-elus-perm__rdv) {
	margin: 0;
	font-family: var(--stmax-elus-font);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--stmax-muted, #5E4B6B);
	min-width: 0;
	max-width: 100%;
	overflow-wrap: break-word;
}

:where(.stmax-elus-permanences) :is(p.stmax-elus-perm__rdv, .stmax-elus-perm__rdv p) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

:where(.elementor, .stmax-hub, body, .stmax-elus-permanences) :where(.stmax-elus-permanences) :is(a.stmax-elus-perm__mail, .stmax-elus-perm__rdv a[href^="mailto:"]),
:where(.elementor, .stmax-hub, body, .stmax-elus-permanences) :where(.stmax-elus-permanences) :is(a.stmax-elus-perm__mail, .stmax-elus-perm__rdv a[href^="mailto:"]):is(:visited, :focus, :active) {
	display: inline-flex;
	align-items: center;
	min-height: var(--stmax-elus-touch-min, 44px);
	min-width: 0;
	max-width: 100%;
	padding: 6px 12px;
	border-radius: 10px;
	background-color: #F5EFFA;
	border: 1px solid var(--stmax-border, #EAE4F0);
	color: var(--stmax-prune, #38164B);
	font-family: var(--stmax-elus-font);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 3px;
	text-decoration-color: rgba(56, 22, 75, 0.38);
	word-break: break-word;
	overflow-wrap: anywhere;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color var(--stmax-elus-fast) var(--stmax-elus-ease),
		border-color var(--stmax-elus-fast) var(--stmax-elus-ease),
		color var(--stmax-elus-fast) var(--stmax-elus-ease);
}

@media (hover: hover) and (pointer: fine) {
	:where(.elementor, .stmax-hub, body, .stmax-elus-permanences) :where(.stmax-elus-permanences) :is(a.stmax-elus-perm__mail, .stmax-elus-perm__rdv a[href^="mailto:"]):hover {
		background-color: #ECE1F6;
		border-color: #5A2A75;
		color: #5A2A75;
		text-decoration-color: #5A2A75;
	}
}

:where(.elementor, .stmax-hub, body, .stmax-elus-permanences) :where(.stmax-elus-permanences) :is(a.stmax-elus-perm__mail, .stmax-elus-perm__rdv a[href^="mailto:"]):active {
	background-color: #E4D5F2;
	border-color: #5A2A75;
	color: #5A2A75;
}

:where(.elementor, .stmax-hub, body, .stmax-elus-permanences) :where(.stmax-elus-permanences) :is(a.stmax-elus-perm__mail, .stmax-elus-perm__rdv a[href^="mailto:"]):focus:not(:focus-visible) {
	outline: none;
	box-shadow: none;
}

:where(.elementor, .stmax-hub, body, .stmax-elus-permanences) :where(.stmax-elus-permanences) :is(a.stmax-elus-perm__mail, .stmax-elus-perm__rdv a[href^="mailto:"]):focus-visible {
	background-color: #F5EFFA;
	color: var(--stmax-prune, #38164B);
	outline: 2px solid var(--stmax-prune, #38164B);
	outline-offset: 2px;
}

:where(.stmax-elus-permanences) .e-con.stmax-elus-perm__annexe {
	--flex-direction: column;
	--align-items: stretch;
	--gap: 0px;
	--row-gap: 0px;
	--column-gap: 0px;
	--padding-top: 14px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--margin-top: 14px;
	--width: 100%;
	border-block-start: 1px dashed #E2DAE9;
	min-width: 0;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__annexe:not(.e-con) {
	display: flex;
	flex-direction: column;
	border-block-start: 1px dashed #E2DAE9;
	margin-block-start: 14px;
	padding-block-start: 14px;
	min-width: 0;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__list > li {
	list-style: none;
	margin: 0;
	padding: 0;
}

:where(.stmax-elus-permanences) :where(.e-con).stmax-elus-perm__item {
	--flex-direction: column;
	--align-items: flex-start;
	--gap: 6px;
	--row-gap: 6px;
	--column-gap: 6px;
	--padding-top: 0px;
	--padding-right: 0px;
	--padding-bottom: 0px;
	--padding-left: 0px;
	--width: 100%;
	min-width: 0;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__item:not(.e-con) {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
}

:where(.stmax-elus-permanences) :where(.e-con).stmax-elus-perm__item:not(:last-child) {
	--padding-bottom: 10px;
	border-block-end: 1px solid #F0EAF5;
}

:where(.stmax-elus-permanences) :where(.e-con).stmax-elus-perm__item + :where(.e-con).stmax-elus-perm__item {
	--margin-top: 10px;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__item:not(.e-con) + .stmax-elus-perm__item:not(.e-con) {
	margin-block-start: 10px;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__item:not(.e-con):not(:last-child) {
	padding-block-end: 10px;
	border-block-end: 1px solid #F0EAF5;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__who {
	flex: 0 1 auto;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	margin: 0;
	font-family: var(--stmax-elus-font);
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--stmax-prune, #38164B);
	overflow-wrap: break-word;
}

:where(.stmax-elus-perm__who) p {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__who strong {
	color: var(--stmax-prune, #38164B);
	font-weight: 800;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__role {
	color: var(--stmax-muted, #5E4B6B);
	font-size: 0.8125rem;
	font-weight: 400;
}

:where(.stmax-elus-permanences) .stmax-elus-perm__slot {
	display: inline-flex;
	align-items: center;
	width: auto;
	max-width: 100%;
	align-self: flex-start;
	margin: 0;
	padding: 4px 10px;
	border-radius: 14px;
	background-color: #F5EFFA;
	color: var(--stmax-prune, #38164B);
	font-family: var(--stmax-elus-font);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	white-space: normal;
	overflow-wrap: break-word;
	flex-shrink: 0;
}

:where(.stmax-elus-perm__slot) p {
	margin: 0;
	color: inherit;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

/* ==========================================================================
   7. ACCESSIBILITÉ, CONTRASTE FORCÉ & MOUVEMENTS RÉDUITS
   ========================================================================== */
.stmax-elus :focus-visible,
.stmax-elus-header-simple :focus-visible,
.stmax-elus-permanences :focus-visible {
	outline: 2px solid var(--stmax-prune, #38164B);
	outline-offset: 2px;
}

/* Le contour de focus du champ recherche est porté par la capsule parente */
.stmax-elus label.stmax-elus__search-box:has(input:focus-visible) {
	outline: 2px solid var(--stmax-prune, #38164B);
	outline-offset: 2px;
}

.stmax-elus input.stmax-elus__search-input[type="search"]:focus-visible {
	outline: none;
}

@media (forced-colors: active) {
	:where(.stmax-elus-header-simple) .stmax-elus-simple-breadcrumbs a,
	:where(.stmax-elus-permanences) :is(a.stmax-elus-perm__mail, .stmax-elus-perm__rdv a[href^="mailto:"]) {
		text-decoration: underline;
	}

	:where(.elementor, .stmax-hub, body) .stmax-elus-permanences {
		border: 1px solid CanvasText;
	}

	.stmax-elus-permanences .stmax-elus-perm__kicker,
	.stmax-elus-permanences .stmax-elus-perm__slot {
		border: 1px solid CanvasText;
	}

	.stmax-elus label.stmax-elus__search-box:focus-within {
		outline: 2px solid Highlight;
		outline-offset: 2px;
	}

	.stmax-elus .stmax-elus__connector {
		background-color: GrayText;
	}

	.stmax-elus .stmax-elus__connector::before {
		background-color: Canvas;
		border-color: CanvasText;
		box-shadow: none;
	}

	.stmax-elus button.stmax-elus__pill[type="button"].is-active {
		background-color: Highlight;
		border-color: Highlight;
		color: HighlightText;
	}

	.stmax-elus .stmax-elu-badge {
		border: 1px solid CanvasText;
	}

	.stmax-elus .stmax-elu-card__monogram {
		border-bottom: 1px solid CanvasText;
	}
}

@media (prefers-reduced-motion: reduce) {
	.stmax-elus *,
	.stmax-elus *::before,
	.stmax-elus *::after,
	.stmax-elus-header-simple *,
	.stmax-elus-header-simple *::before,
	.stmax-elus-header-simple *::after,
	.stmax-elus-permanences *,
	.stmax-elus-permanences *::before,
	.stmax-elus-permanences *::after {
		transition-duration: 0.01ms;
		animation-duration: 0.01ms;
		transform: none;
	}
}
