/*
Theme Name:   Divi Child - La Mothe-Saint-Heray
Theme URI:    https://www.la-mothe-saint-heray.fr
Description:  Theme enfant de Divi pour le site de la commune de La Mothe-Saint-Heray.
              Porte la charte V2 : typographie, palette, en-tete, cartes, pied de page.
Author:       Commune de La Mothe-Saint-Heray
Template:     Divi
Version:      2.6.0
Text Domain:  divi-child-lmsh
*/

/* ==========================================================================
   1. JETONS DE CHARTE
   La palette vient du logo : le vert profond et le terracotta du batiment,
   assombris juste assez pour qu'un texte pose dessus reste lisible.
   ========================================================================== */

:root {
	--lmsh-ground:        #faf8f3;
	--lmsh-surface:       #ffffff;
	--lmsh-ink:           #1b1a17;
	--lmsh-ink-soft:      #57544c;
	--lmsh-primary:       #0a6e64;
	--lmsh-primary-dark:  #064e46;
	--lmsh-primary-pale:  #dcefec;
	--lmsh-accent:        #b04a1e;
	--lmsh-accent-pale:   #fdeee4;
	--lmsh-line:          #e4dfd4;

	--lmsh-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--lmsh-body:    'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--lmsh-rayon:   12px;
	--lmsh-gouttiere: 18px;
}

/* ==========================================================================
   2. BASE
   Corps de texte a 18 px et non 16 : le confort de lecture prime, et la
   commune compte une part importante de lecteurs ages.

   Toutes les tailles de texte sont en rem (1rem = 16 px par defaut, donc
   1.125rem = 18 px) : elles suivent la taille de texte choisie dans le
   navigateur et dans « Confort de lecture » (section 42). Une taille ecrite
   en px ne grandirait pas. Seules exceptions : les icones de l'en-tete fixe,
   dont la hauteur ne doit pas changer.
   ========================================================================== */

body,
body.et_pb_button_helper_class,
#page-container {
	font-family: var(--lmsh-body);
	font-weight: 400;   /* Divi posait 500, graisse que la police du site ne charge pas */
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--lmsh-ink);
	background-color: var(--lmsh-ground);
}

#page-container p,
#page-container li,
#et-boc p,
#et-boc li {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--lmsh-ink);
}

#page-container h1, #page-container h2, #page-container h3,
#page-container h4, #page-container h5, #page-container h6,
#et-boc h1, #et-boc h2, #et-boc h3, #et-boc h4 {
	font-family: var(--lmsh-display);
	font-weight: 600;
	color: var(--lmsh-ink);
	letter-spacing: -0.005em;
}

#page-container h1 { font-size: 2.4rem;  line-height: 1.15; }
#page-container h2 { font-size: 1.85rem; line-height: 1.22; }
#page-container h3 { font-size: 1.35rem; line-height: 1.3;  }

#page-container a,
#et-boc a {
	color: var(--lmsh-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
#page-container a:hover,
#et-boc a:hover {
	color: var(--lmsh-primary-dark);
}

/* Le focus doit toujours se voir : c'est la seule boussole d'une
   navigation au clavier. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--lmsh-accent);
	outline-offset: 2px;
	border-radius: 3px;
}

/* ==========================================================================
   3. EN-TETE
   ========================================================================== */

#main-header {
	background-color: var(--lmsh-surface);
	box-shadow: none;
	border-bottom: 1px solid var(--lmsh-line);
}

#logo {
	max-height: 62px !important;
	width: auto;
}

/* Divi genere son propre CSS depuis les options du theme, et il se charge
   APRES cette feuille. Prefixer par #main-header donne deux identifiants,
   ce qui suffit a l'emporter sans recourir a !important. */

#main-header #top-menu li a {
	font-family: var(--lmsh-body);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--lmsh-ink);
	opacity: 1;
}

#main-header #top-menu > li {
	padding-right: 6px;
}

#main-header #top-menu > li > a {
	display: block;
	padding: 12px 18px;
	border-radius: 9px;
	transition: background-color .15s ease, color .15s ease;
}

#main-header #top-menu > li > a:hover {
	background-color: var(--lmsh-primary-pale);
	color: var(--lmsh-primary-dark);
	opacity: 1;
}

/* La porte « Ma mairie » reste toujours visible : une demarche d'urbanisme
   n'appartient a aucun univers. */
#main-header #top-menu > li:last-child > a {
	background-color: var(--lmsh-primary);
	color: var(--lmsh-surface);
}
#main-header #top-menu > li:last-child > a:hover {
	background-color: var(--lmsh-primary-dark);
	color: var(--lmsh-surface);
}

#main-header #top-menu li.current-menu-item > a,
#main-header #top-menu li.current_page_item > a {
	color: var(--lmsh-primary-dark);
	background-color: var(--lmsh-primary-pale);
}
#main-header #top-menu > li:last-child.current-menu-item > a,
#main-header #top-menu > li:last-child.current_page_item > a {
	color: var(--lmsh-surface);
	background-color: var(--lmsh-primary-dark);
}

/* Le trait de survol de Divi ferait doublon avec la pastille. */
#main-header #top-menu > li > a:before,
#main-header #top-menu > li > a:after { display: none; }

#et_search_icon:before {
	color: var(--lmsh-ink);
	font-size: 20px;
}

/* Menu mobile : cibles larges, texte lisible. */
.et_mobile_menu {
	border-top: 3px solid var(--lmsh-primary);
	background-color: var(--lmsh-surface);
	padding: 8px 0;
}
#main-header .et_mobile_menu li a {
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--lmsh-ink);
	padding: 18px 20px;
	border-bottom: 1px solid var(--lmsh-line);
}
.mobile_menu_bar:before {
	color: var(--lmsh-primary) !important;
	font-size: 34px;
}

/* ==========================================================================
   4. BOUTONS
   ========================================================================== */

#page-container .et_pb_button,
#et-boc .et_pb_button {
	font-family: var(--lmsh-body);
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0;
	padding: 14px 28px !important;
	border: none;
	border-radius: 10px;
	background-color: var(--lmsh-accent);
	color: var(--lmsh-surface);
	transition: background-color .15s ease;
}
#page-container .et_pb_button:hover,
#et-boc .et_pb_button:hover {
	background-color: #8c3a16;
	color: var(--lmsh-surface);
	padding: 14px 28px !important;
}
#page-container .et_pb_button:after,
#et-boc .et_pb_button:after { display: none; }

/* ==========================================================================
   5. BANDEAUX DE PAGE
   Chaque page ouvre sur un bandeau titre. On lui donne un rythme constant
   et un contraste suffisant sur l'image de fond.
   ========================================================================== */

.et_pb_section.et_pb_with_background:first-of-type {
	position: relative;
}

.et_pb_section.et_pb_with_background:first-of-type h1 {
	color: var(--lmsh-surface) !important;
	font-family: var(--lmsh-display);
	font-size: 2.7rem;
	line-height: 1.12;
	text-shadow: 0 2px 14px rgba(20, 24, 22, .45);
}

/* ==========================================================================
   6. GRILLE DE PAGES — shortcode [pages_enfants]
   Une carte par page : le titre, puis deux lignes qui disent ce qu'on y
   trouve (l'extrait de la page). Le lien porte sur le titre seul — c'est ce
   qu'annonce un lecteur d'ecran — et s'etend en CSS a toute la carte.
   Cibles larges, contrastes conformes, au doigt comme a l'oeil.
   ========================================================================== */

.lmsh-sous-pages {
	list-style: none;
	margin: 1.6em 0 0;
	padding: 0;
	display: grid;
	gap: var(--lmsh-gouttiere);
}

.lmsh-sous-pages--col2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lmsh-sous-pages--col3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lmsh-sous-pages--col4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

#page-container .lmsh-sous-pages .lmsh-sous-pages__item {
	position: relative;
	margin: 0;
	padding: 22px 24px 24px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
/* Carte sans resume (plan du site, page sans extrait) : titre centre. */
#page-container .lmsh-sous-pages .lmsh-sous-pages__item--seul {
	display: flex;
	align-items: center;
	min-height: 72px;
	padding-top: 18px;
	padding-bottom: 18px;
}

/* Fleche dessinee (masque SVG) : aucun texte, donc muette a l'oral. */
#page-container .lmsh-sous-pages .lmsh-sous-pages__item::after {
	content: "";
	position: absolute;
	top: 25px;
	right: 22px;
	width: 18px;
	height: 18px;
	background-color: var(--lmsh-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .15s ease;
}
#page-container .lmsh-sous-pages .lmsh-sous-pages__item--seul::after { top: calc(50% - 9px); }

#page-container .lmsh-sous-pages .lmsh-sous-pages__titre {
	margin: 0;
	padding: 0;
	padding-right: 30px;       /* place de la fleche ; le resume garde toute la largeur */
	font-family: var(--lmsh-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
}
#page-container .lmsh-sous-pages .lmsh-sous-pages__lien {
	color: var(--lmsh-ink);
	text-decoration: none;
}
/* Le lien couvre la carte entiere. */
#page-container .lmsh-sous-pages .lmsh-sous-pages__lien::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
}
#page-container .lmsh-sous-pages .lmsh-sous-pages__resume {
	margin: 8px 0 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--lmsh-ink-soft);
}

/* Survol et clavier : bord vert, titre souligne, fleche qui avance. */
#page-container .lmsh-sous-pages .lmsh-sous-pages__item:hover,
#page-container .lmsh-sous-pages .lmsh-sous-pages__item:focus-within {
	border-color: var(--lmsh-primary);
	box-shadow: 0 6px 18px rgba(27, 26, 23, .08);
}
#page-container .lmsh-sous-pages .lmsh-sous-pages__item:hover .lmsh-sous-pages__lien,
#page-container .lmsh-sous-pages .lmsh-sous-pages__lien:focus-visible {
	color: var(--lmsh-primary-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#page-container .lmsh-sous-pages .lmsh-sous-pages__item:hover::after,
#page-container .lmsh-sous-pages .lmsh-sous-pages__item:focus-within::after { transform: translateX(3px); }

/* L'anneau de focus entoure la carte, pas seulement le titre. */
#page-container .lmsh-sous-pages .lmsh-sous-pages__lien:focus-visible { outline: none; }
#page-container .lmsh-sous-pages .lmsh-sous-pages__lien:focus-visible::after {
	outline: 3px solid var(--lmsh-primary);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	#page-container .lmsh-sous-pages .lmsh-sous-pages__item { padding: 18px 20px 20px; }
	#page-container .lmsh-sous-pages .lmsh-sous-pages__item::after { top: 21px; right: 18px; }
	#page-container .lmsh-sous-pages .lmsh-sous-pages__item--seul { min-height: 64px; padding-top: 16px; padding-bottom: 16px; }
	#page-container .lmsh-sous-pages .lmsh-sous-pages__item--seul::after { top: calc(50% - 9px); }
	#page-container .lmsh-sous-pages .lmsh-sous-pages__titre { font-size: 1.1875rem; }
}
@media (prefers-reduced-motion: reduce) {
	#page-container .lmsh-sous-pages .lmsh-sous-pages__item,
	#page-container .lmsh-sous-pages .lmsh-sous-pages__item::after { transition: none; }
}

/* ==========================================================================
   7. PIED DE PAGE
   ========================================================================== */

/* Le fond sombre se pose sur la SECTION Divi, qui occupe deja toute la
   largeur. Etirer le bloc interieur avec des marges negatives de 100vw
   deborde de la fenetre et provoque un defilement horizontal. */
.et-l--footer .et_pb_section {
	background-color: var(--lmsh-ink) !important;
	padding-top: 0;
	padding-bottom: 0;
}
.et-l--footer .et_pb_row { width: 90%; max-width: 1180px; }

.et-l--footer a { text-decoration: none; }
.et-l--footer a:hover { text-decoration: underline; }

/* ==========================================================================
   8. RESPONSIVE
   Deux visiteurs sur trois arrivent sur un telephone : le petit ecran est
   le cas normal, pas l'exception.
   ========================================================================== */

@media (max-width: 980px) {
	.lmsh-sous-pages--col3,
	.lmsh-sous-pages--col4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#page-container h1 { font-size: 2rem; }
	#page-container h2 { font-size: 1.6rem; }
	.et_pb_section.et_pb_with_background:first-of-type h1 { font-size: 2.1rem; }
}

@media (max-width: 640px) {
	body, #page-container p, #page-container li { font-size: 1.0625rem; }
	.lmsh-sous-pages { grid-template-columns: 1fr !important; }
	#page-container h1 { font-size: 1.75rem; }
	.et_pb_section.et_pb_with_background:first-of-type h1 { font-size: 1.8rem; }
	#logo { max-height: 48px !important; }
}

/* ==========================================================================
   9. LIEN D'EVITEMENT
   Invisible a la souris, il apparait des la premiere tabulation.
   ========================================================================== */

.lmsh-evitement {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	padding: 14px 22px;
	background: var(--lmsh-primary-dark);
	color: #ffffff !important;
	font-family: var(--lmsh-body);
	font-size: 1.0625rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 var(--lmsh-rayon) 0;
}

.lmsh-evitement:focus {
	left: 0;
}

/* ==========================================================================
   10. PAGE D'ACCUEIL
   ========================================================================== */

/* --- Bandeau + recherche ------------------------------------------------ */

.lmsh-hero { position: relative; }

.lmsh-hero__image {
	display: block;
	width: 100%;
	height: 372px;
	object-fit: cover;
	object-position: center 58%;
	border-radius: var(--lmsh-rayon);
}

.lmsh-hero__carte {
	position: relative;
	max-width: 700px;
	margin: -72px 0 0;
	padding: 30px 34px 34px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(27, 26, 23, .13);
}

#page-container .lmsh-hero__carte h1 {
	font-size: 2.15rem;
	line-height: 1.15;
	margin: 0 0 6px;
	color: var(--lmsh-ink);
	text-shadow: none;
}

#page-container .lmsh-hero__carte p {
	margin: 0 0 18px;
	font-size: 1.0625rem;
	color: var(--lmsh-ink-soft);
}

.lmsh-recherche { display: flex; gap: 12px; }

.lmsh-recherche__champ {
	flex-grow: 1;
	min-width: 0;
	height: 56px;
	box-sizing: border-box;
	padding: 0 18px;
	font-family: var(--lmsh-body);
	font-size: 1.0625rem;
	color: var(--lmsh-ink);
	background: var(--lmsh-ground);
	/* Le contour dessine le champ : 3:1 au moins contre le fond (RGAA 3.3). */
	border: 1.5px solid var(--lmsh-ink-soft);
	border-radius: 10px;
}

.lmsh-recherche__bouton {
	flex-shrink: 0;
	height: 56px;
	padding: 0 28px;
	font-family: var(--lmsh-body);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--lmsh-surface);
	background: var(--lmsh-accent);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color .15s ease;
}
.lmsh-recherche__bouton:hover { background: #8c3a16; }

/* --- Les trois univers -------------------------------------------------- */

.lmsh-univers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.lmsh-univers__item { margin: 0; padding: 0; }

.lmsh-univers__lien {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 16px;
	overflow: hidden;
	color: var(--lmsh-ink) !important;
	text-decoration: none;
	transition: box-shadow .15s ease, transform .15s ease;
}
.lmsh-univers__lien:hover {
	box-shadow: 0 10px 26px rgba(27, 26, 23, .12);
	transform: translateY(-2px);
	text-decoration: none;
}

.lmsh-univers__image {
	display: block;
	width: 100%;
	height: 178px;
	object-fit: cover;
}

.lmsh-univers__corps { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }

#page-container .lmsh-univers__corps h2 {
	margin: 0;
	font-size: 1.55rem;
	line-height: 1.2;
}

#page-container .lmsh-univers__corps p {
	margin: 0;
	font-size: 1.03125rem;
	line-height: 1.5;
	color: var(--lmsh-ink-soft);
	flex-grow: 1;
}

.lmsh-univers__fleche {
	font-size: 1.03125rem;
	font-weight: 600;
	color: var(--lmsh-primary);
}

/* --- En ce moment ------------------------------------------------------- */

.lmsh-moment { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.lmsh-moment__item { margin: 0; padding: 0; }

.lmsh-moment__lien {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	padding: 18px 22px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: var(--lmsh-rayon);
	color: var(--lmsh-ink) !important;
	text-decoration: none;
	transition: border-color .15s ease;
}
a.lmsh-moment__lien:hover { border-color: var(--lmsh-primary); text-decoration: none; }

.lmsh-moment__lien--fixe {
	background: #f3efe6;
	border-style: dashed;
	border-color: #c9c2b4;
	cursor: default;
	align-items: center;
}

.lmsh-moment__date {
	flex-shrink: 0;
	width: 74px;
	text-align: center;
	padding: 9px 0 11px;
	background: var(--lmsh-primary);
	color: var(--lmsh-surface);
	border-radius: 10px;
	font-family: var(--lmsh-display);
	line-height: 1.1;
}
.lmsh-moment__date--actu { background: var(--lmsh-accent); }
.lmsh-moment__date--fixe {
	background: transparent;
	color: var(--lmsh-ink-soft);
	font-family: var(--lmsh-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.3;
	padding: 0;
}

.lmsh-moment__jour { display: block; font-size: 1.625rem; font-weight: 700; }
.lmsh-moment__mois { display: block; margin-top: 3px; font-family: var(--lmsh-body); font-size: 0.78125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }

.lmsh-moment__corps { display: flex; flex-direction: column; gap: 4px; }
.lmsh-moment__titre { font-family: var(--lmsh-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
.lmsh-moment__note { font-size: 1rem; color: var(--lmsh-ink-soft); }

/* --- Demandes frequentes ------------------------------------------------ */

.lmsh-acces {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}
.lmsh-acces__item { margin: 0; padding: 0; }

.lmsh-acces__lien {
	display: flex;
	align-items: center;
	min-height: 92px;
	box-sizing: border-box;
	padding: 20px 20px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-left: 4px solid var(--lmsh-accent);
	border-radius: var(--lmsh-rayon);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--lmsh-ink) !important;
	text-decoration: none;
	transition: box-shadow .15s ease, transform .15s ease;
}
.lmsh-acces__lien:hover {
	box-shadow: 0 6px 18px rgba(27, 26, 23, .10);
	transform: translateY(-1px);
	text-decoration: none;
}

/* --- Titre de section --------------------------------------------------- */

.lmsh-section-titre { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
#page-container .lmsh-section-titre h2 { margin: 0; }
.lmsh-section-titre__lien { margin-left: auto; font-size: 1.03125rem; font-weight: 600; }

/* --- Credits ------------------------------------------------------------ */

.lmsh-credit { margin-top: 10px; font-size: 0.875rem; color: var(--lmsh-ink-soft); }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 980px) {
	.lmsh-univers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lmsh-acces   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lmsh-hero__image { height: 280px; }
	.lmsh-hero__carte { max-width: none; margin-top: -56px; }
}

@media (max-width: 640px) {
	.lmsh-univers, .lmsh-acces { grid-template-columns: 1fr; }
	/* Bandeau bord a bord : sur un ecran de 375 px, chaque pixel de marge
	   se paie en surface d'image. */
	.lmsh-hero__image {
		height: 210px;
		border-radius: 0;
		width: 100vw;
		margin-left: calc(50% - 50vw);
		max-width: none;
	}
	.lmsh-hero__carte { margin-top: -40px; padding: 24px 22px 26px; border-radius: 14px; }
	#page-container .lmsh-hero__carte h1 { font-size: 1.7rem; }
	.lmsh-recherche { flex-direction: column; }
	.lmsh-recherche__bouton { width: 100%; }
	.lmsh-univers__image { height: 150px; }
	.lmsh-moment__lien { gap: 15px; padding: 15px 17px; }
	.lmsh-moment__date { width: 62px; }
	.lmsh-moment__jour { font-size: 1.375rem; }
	.lmsh-acces__lien { min-height: 62px; }
}

/* ==========================================================================
   11. BARRE UTILITAIRE
   Au-dessus de l'en-tete : l'etat d'ouverture et le numero, c'est-a-dire
   ce qu'on cherche en premier sur le site d'une mairie.
   ========================================================================== */

.lmsh-barre {
	background: var(--lmsh-ink);
	color: #ede9e0;
	font-family: var(--lmsh-body);
	font-size: 1rem;   /* 16 px (14 avant le 24/09) : l'etat et le numero se lisent de loin */
	line-height: 1.3;
}

.lmsh-barre__inner {
	max-width: 1280px;
	margin: 0 auto;
	min-height: 34px;
	padding: 5px 30px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.lmsh-barre__etat { font-weight: 600; }
/* « Tél. : » et le numero ne se separent jamais. */
.lmsh-barre__tel-bloc { margin-left: 10px; white-space: nowrap; }
.lmsh-barre__espace { flex-grow: 1; }

.lmsh-barre a,
.lmsh-barre__tel,
.lmsh-barre__lien {
	color: #ede9e0 !important;
	font-family: var(--lmsh-body);
	font-size: inherit;
	text-decoration: none;
	background: none;
	border: none;
	padding: 4px 2px;
	cursor: pointer;
}
.lmsh-barre a:hover,
.lmsh-barre__lien:hover { text-decoration: underline; color: #ffffff !important; }
.lmsh-barre__lien:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }

/* Sur ce bandeau, liens et texte ont la meme couleur : sans soulignement,
   rien ne distingue un lien d'une simple information (RGAA 10.6). Le bouton
   « Confort de lecture » prend l'allure d'un bouton pour la meme raison. */
.lmsh-barre a,
.lmsh-barre a.lmsh-barre__tel,
.lmsh-barre a.lmsh-barre__lien {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
.lmsh-barre a:hover { text-decoration-thickness: 2px; }
.lmsh-barre button.lmsh-barre__lien {
	border: 1px solid #a8a296;
	border-radius: 4px;
	padding: 2px 9px;
}
.lmsh-barre button.lmsh-barre__lien:hover { border-color: #ffffff; text-decoration: none; }

/* ==========================================================================
   12. LABEL PETITES CITES DE CARACTERE
   ========================================================================== */

.lmsh-label-pcc {
	display: inline-block;
	margin-left: 18px;
	padding-left: 18px;
	border-left: 1px solid var(--lmsh-line);
	vertical-align: middle;
	line-height: 0;
}
.lmsh-label-pcc img {
	height: 44px;
	width: auto;
	display: block;
}

/* ==========================================================================
   13. CONTRASTE RENFORCE
   Un reglage reel, retenu d'une visite a l'autre. Il ne remplace pas la mise
   en conformite : il aide les lecteurs qui en ont besoin, tout de suite.
   ========================================================================== */

html.lmsh-contraste {
	--lmsh-ground:       #ffffff;
	--lmsh-surface:      #ffffff;
	--lmsh-ink:          #000000;
	--lmsh-ink-soft:     #2b2b2b;
	--lmsh-primary:      #00504a;
	--lmsh-primary-dark: #003831;
	--lmsh-accent:       #8a3512;
	--lmsh-line:         #6b6b6b;
}
html.lmsh-contraste #page-container,
html.lmsh-contraste body { background: #ffffff; color: #000000; }
html.lmsh-contraste #page-container p,
html.lmsh-contraste #page-container li { color: #000000; }
html.lmsh-contraste .lmsh-acces__lien,
html.lmsh-contraste .lmsh-univers__lien,
html.lmsh-contraste .lmsh-moment__lien { border-color: #6b6b6b; }
html.lmsh-contraste .lmsh-univers__corps p,
html.lmsh-contraste .lmsh-moment__note { color: #2b2b2b; }

/* ==========================================================================
   14. RESPONSIVE DE LA BARRE ET DU LABEL
   ========================================================================== */

@media (max-width: 980px) {
	.lmsh-barre__inner { padding: 6px 20px; gap: 10px; }
	.lmsh-label-pcc { margin-left: 12px; padding-left: 12px; }
	.lmsh-label-pcc img { height: 36px; }
}

@media (max-width: 640px) {
	.lmsh-barre__inner { font-size: 0.9375rem; padding: 7px 16px; gap: 4px 8px; }
	.lmsh-barre__tel-bloc { margin-left: 0; }
	.lmsh-barre__espace { display: none; }
	.lmsh-label-pcc { display: none; }
}

/* ==========================================================================
   15. EN CE MOMENT — deux colonnes
   ========================================================================== */

.lmsh-moment-grille {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* agenda et « À la une » a egalite */
	gap: 30px;
	align-items: start;
}

.lmsh-facebook {
	background: var(--lmsh-ground);
	border: 1px solid var(--lmsh-line);
	border-radius: var(--lmsh-rayon);
	padding: 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.lmsh-facebook__entete { display: flex; align-items: center; gap: 10px; color: var(--lmsh-primary); }
#page-container .lmsh-facebook__entete h3 { margin: 0; font-size: 1.15rem; color: var(--lmsh-ink); }

.lmsh-facebook__image {
	display: block;
	width: 100%;
	height: 158px;
	object-fit: cover;
	object-position: center 28%;
	border-radius: 8px;
}

#page-container .lmsh-facebook__texte { margin: 0; font-size: 1rem; line-height: 1.5; }
#page-container .lmsh-facebook__date  { margin: 0; font-size: 0.875rem; color: var(--lmsh-ink-soft); }

.lmsh-facebook__lien { margin-top: auto; font-size: 1rem; font-weight: 600; }

#page-container .lmsh-section-soustitre { margin: -14px 0 22px; font-size: 1.0625rem; color: var(--lmsh-ink-soft); }

@media (max-width: 980px) {
	.lmsh-moment-grille { grid-template-columns: 1fr; gap: 22px; }
	.lmsh-facebook__image { height: 200px; }
}

/* ==========================================================================
   16. PIED DE PAGE
   ========================================================================== */

.lmsh-pied {
	background: transparent;
	color: #ede9e0;
	margin: 0;
	padding: 40px 0 24px;
}

.lmsh-pied__grille {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 44px;
}

.lmsh-pied__col { min-width: 0; }

.lmsh-pied__logo {
	display: inline-block;
	background: #ffffff;
	border-radius: 10px;
	padding: 10px 14px;
	margin-bottom: 16px;
}
.lmsh-pied__logo img { display: block; height: 48px; width: auto; }

#page-container .lmsh-pied h2,
#page-container .lmsh-pied h3,
.lmsh-pied h2,
.lmsh-pied h3 {
	margin: 0 0 12px;
	padding-bottom: 0;
	line-height: 1.3;
	font-family: var(--lmsh-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: #ffffff;
}

#page-container .lmsh-pied p,
.lmsh-pied p {
	margin: 0 0 14px;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: #c9c3b7;
}
.lmsh-pied p strong { color: #ede9e0; font-weight: 600; }

#page-container .lmsh-pied a,
.lmsh-pied a { color: #ede9e0; text-decoration: none; }
#page-container .lmsh-pied a:hover,
.lmsh-pied a:hover { color: #ffffff; text-decoration: underline; }

.lmsh-pied__bouton {
	display: inline-block;
	padding: 13px 22px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--lmsh-ink) !important;
	background: #ede9e0;
	border-radius: 9px;
	text-decoration: none !important;
}
.lmsh-pied__bouton:hover { background: #ffffff; }

.lmsh-pied__legal {
	margin: 32px 0 0;
	padding-top: 18px;
	border-top: 1px solid #3a3730;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	font-size: 0.9375rem;
}
.lmsh-pied__legal a { color: #c9c3b7; }
.lmsh-pied__espace { flex-grow: 1; }
.lmsh-pied__credit { color: #9b958a; font-size: 0.875rem; }
.lmsh-pied__credit a { color: #9b958a; }

@media (max-width: 980px) {
	.lmsh-pied__grille { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 640px) {
	.lmsh-pied { padding: 30px 0 20px; }
	.lmsh-pied__grille { grid-template-columns: 1fr; gap: 26px; }
	.lmsh-pied__legal { margin-top: 24px; gap: 10px 16px; }
	.lmsh-pied__espace { display: none; }
}

/* ==========================================================================
   17. ALIGNEMENT SUR LA MAQUETTE
   La maquette compose sur 1280 px avec 56 px de gouttiere : la colonne de
   contenu fait donc 1168 px. Divi sert 1024 px (80 %, plafonne a 1080).
   Tout etait comprime de 144 px. Les tailles sont reprises en pixels, comme
   dans la maquette : les rem se resolvaient sur 16 px et rapetissaient tout.
   ========================================================================== */

#page-container .et_pb_row,
#et-boc .et_pb_row {
	width: calc(100% - 112px);
	max-width: 1168px;
}

/* --- Barre utilitaire : 34 px, aligne sur la colonne de contenu --------- */
.lmsh-barre__inner {
	max-width: 1168px;
	min-height: 34px;
	padding: 3px 0;
}

/* --- En-tete ------------------------------------------------------------ */
#logo { max-height: 64px !important; }
.lmsh-label-pcc img { height: 46px; }

#main-header #top-menu li a { font-size: 1.125rem; }
#main-header #top-menu > li > a {
	padding: 14px 20px;
	border-radius: 8px;
}

/* --- Titres : valeurs de la maquette, en pixels -------------------------- */
#page-container h1 { font-size: 2.375rem; }
#page-container h2 { font-size: 2rem; }
#page-container h3 { font-size: 1.3125rem; }

#page-container .lmsh-hero__carte h1 { font-size: 2.375rem; }
#page-container .lmsh-hero__carte p  { font-size: 1.0625rem; }

/* --- Bandeau ------------------------------------------------------------ */
.lmsh-hero__carte {
	max-width: 704px;
	margin-top: -64px;
	padding: 32px 36px;
}

.lmsh-recherche { gap: 12px; }
.lmsh-recherche__champ  { font-size: 1.125rem; }
.lmsh-recherche__bouton { font-size: 1.125rem; padding: 0 30px; }

/* --- Univers ------------------------------------------------------------ */
.lmsh-univers { gap: 28px; }
.lmsh-univers__corps { padding: 26px 28px 30px; gap: 0; }
#page-container .lmsh-univers__corps h2 { font-size: 1.6875rem; margin-bottom: 8px; }
#page-container .lmsh-univers__corps p  { font-size: 1.0625rem; margin-bottom: 16px; }
.lmsh-univers__fleche { font-size: 1.0625rem; }

/* --- Titres de section -------------------------------------------------- */
#page-container .lmsh-section-titre h2 { font-size: 2rem; }
.lmsh-section-titre__lien { font-size: 1.0625rem; }
#page-container .lmsh-section-soustitre { font-size: 1.0625rem; }

/* --- En ce moment ------------------------------------------------------- */
.lmsh-moment-grille { column-gap: 32px; }
.lmsh-moment { gap: 16px; }
.lmsh-moment__lien { padding: 20px 24px; column-gap: 22px; }
.lmsh-moment__date { padding: 10px 0 12px; }
.lmsh-moment__jour { font-size: 1.75rem; }
.lmsh-moment__mois { font-size: 0.8125rem; }
.lmsh-moment__titre { font-size: 1.3125rem; }
.lmsh-moment__note  { font-size: 1rem; }

/* --- Facebook ----------------------------------------------------------- */
.lmsh-facebook { padding: 24px; }
.lmsh-facebook__image { height: 150px; }
#page-container .lmsh-facebook__entete h3 { font-size: 1.1875rem; }

/* --- Demandes frequentes ------------------------------------------------ */
.lmsh-acces { gap: 18px; }
.lmsh-acces__lien { padding: 22px 20px; font-size: 1.125rem; }

/* --- Pied de page ------------------------------------------------------- */
.et-l--footer .et_pb_row { width: calc(100% - 112px); max-width: 1168px; }
#page-container .lmsh-pied h2, .lmsh-pied h2,
#page-container .lmsh-pied h3, .lmsh-pied h3 { font-size: 1.25rem; }
#page-container .lmsh-pied p,  .lmsh-pied p  { font-size: 1.0625rem; }
.lmsh-pied__legal { font-size: 0.9375rem; column-gap: 26px; }

/* ==========================================================================
   18. EN-TETE : ALIGNEMENT ET HAUTEUR
   Le conteneur de Divi reste a 1024 px quand le contenu passe a 1168 :
   le logo et le menu se decalent du reste de la page. Et Divi cale le menu
   sur le logo avec un padding-top calcule (49 px ici), ce qui portait
   l'en-tete a 154 px au lieu des 96 de la maquette.
   ========================================================================== */

#main-header .container,
#main-header .et_menu_container {
	width: calc(100% - 112px);
	max-width: 1168px;
	padding: 0;
}

/* 19 + 58 (hauteur d'un lien) + 19 = 96 px */
#main-header #et-top-navigation {
	padding-top: 19px !important;
	padding-bottom: 19px;
}

#main-header .logo_container {
	height: 96px;
}

/* ==========================================================================
   19. RYTHME VERTICAL ET FONDS DE SECTION
   Divi pose un fond blanc et 51 px de marge sur chaque section. La maquette
   fait l'inverse : fond creme partout, blanc reserve a la bande « En ce
   moment », et des marges propres a chaque bloc.
   ========================================================================== */

body.home #page-container .et_pb_section {
	background-color: transparent;
	padding: 0;
}
body.home #page-container .et_pb_section .et_pb_row {
	padding-top: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

body.home #page-container .et_pb_section:has(.lmsh-hero)    { padding-bottom: 26px; }
body.home #page-container .et_pb_section:has(.lmsh-univers) { padding-bottom: 56px; }
body.home #page-container .et_pb_section:has(.lmsh-acces)   { padding: 48px 0 52px; }

body.home #page-container .et_pb_section:has(.lmsh-moment-grille) {
	padding: 48px 0 54px;
	background-color: var(--lmsh-surface);
	border-top: 1px solid var(--lmsh-line);
	border-bottom: 1px solid var(--lmsh-line);
}

/* Navigateurs sans :has() — reprise par le rang des sections (ordre du
   24/09/2026 : bandeau, univers, actualités, agenda, accès rapides, vie
   municipale ; section 44). */
@supports not selector(:has(*)) {
	body.home #page-container .et_pb_section_0 { padding-bottom: 26px; }
	body.home #page-container .et_pb_section_1 { padding-bottom: 56px; }
	body.home #page-container .et_pb_section_2 { padding: 0 0 56px; }
	body.home #page-container .et_pb_section_3 {
		padding: 48px 0 54px;
		background-color: var(--lmsh-surface);
		border-top: 1px solid var(--lmsh-line);
		border-bottom: 1px solid var(--lmsh-line);
	}
	body.home #page-container .et_pb_section_4 { padding: 48px 0 52px; }
	body.home #page-container .et_pb_section_5 {
		padding: 48px 0 56px;
		background-color: var(--lmsh-surface);
		border-top: 1px solid var(--lmsh-line);
	}
}

/* ==========================================================================
   20. FIN DE LIGNE DU MENU
   La loupe de Divi est retiree : elle ouvrait un champ invisible qui prenait
   le focus, et decalait le menu de 40 px du bord droit. La loupe du site,
   un simple lien vers la page Recherche, est ajoutee a sa place (section 43).
   ========================================================================== */

#et-top-navigation #et_top_search,
#et-top-navigation .et_search_outer,
#main-header .et_search_outer { display: none; }
/* Le formulaire de Divi n'est pas dans #et-top-navigation : seulement rendu
   transparent, son champ prenait encore le focus au clavier, sans se voir. */
#main-header #top-menu > li:last-child { padding-right: 0; }

/* ==========================================================================
   21. PAGES INTERIEURES
   Les regles precedentes ne visaient que l'accueil : les pages interieures
   gardaient le fond blanc de Divi et ses marges. On etend, en epargnant les
   sections a image de fond, qui portent les bandeaux de titre.
   ========================================================================== */

#page-container .et_pb_section:not(.et_pb_with_background) {
	background-color: transparent;
}

#page-container .et_pb_section:not(.et_pb_with_background) {
	padding-top: 44px;
	padding-bottom: 44px;
}

#page-container .et_pb_section:not(.et_pb_with_background) > .et_pb_row {
	padding-top: 0;
	padding-bottom: 0;
}

/* La grille etait decalee de 16 px a gauche : un padding de liste que la
   regle generique ne neutralisait pas faute de specificite. */
#page-container ul.lmsh-sous-pages,
#page-container ul.lmsh-univers,
#page-container ul.lmsh-acces,
#page-container ul.lmsh-moment,
#et-boc ul.lmsh-sous-pages {
	padding-left: 0;
	margin-left: 0;
	list-style: none;
}
#page-container ul.lmsh-sous-pages > li,
#page-container ul.lmsh-univers > li,
#page-container ul.lmsh-acces > li,
#page-container ul.lmsh-moment > li {
	padding-left: 0;
	list-style: none;
}
#page-container ul.lmsh-sous-pages > li:before,
#page-container ul.lmsh-univers > li:before,
#page-container ul.lmsh-acces > li:before,
#page-container ul.lmsh-moment > li:before { content: none; }

/* Bandeau de titre : hauteur constante d'une page a l'autre. */
#page-container .et_pb_section.et_pb_with_background:first-of-type {
	padding-top: 76px;
	padding-bottom: 76px;
}

/* ==========================================================================
   22. GOUTTIERES PROPORTIONNEES
   Les 56 px de la maquette valent pour 1280 px de large. Appliques tels
   quels a un ecran de 375, ils devorent 30 % de la surface utile. La
   gouttiere se resserre donc avec l'ecran.
   ========================================================================== */

@media (max-width: 1100px) {
	#page-container .et_pb_row,
	#et-boc .et_pb_row,
	.et-l--footer .et_pb_row,
	#main-header .container,
	#main-header .et_menu_container,
	.lmsh-barre__inner { width: calc(100% - 80px); }
}

@media (max-width: 980px) {
	#page-container .et_pb_row,
	#et-boc .et_pb_row,
	.et-l--footer .et_pb_row,
	#main-header .container,
	#main-header .et_menu_container,
	.lmsh-barre__inner { width: calc(100% - 56px); }
	#page-container .et_pb_section:not(.et_pb_with_background) { padding-top: 36px; padding-bottom: 36px; }
	body.home #page-container .et_pb_section:has(.lmsh-univers) { padding-bottom: 40px; }
	body.home #page-container .et_pb_section:has(.lmsh-moment-grille) { padding: 36px 0 40px; }
	body.home #page-container .et_pb_section:has(.lmsh-acces) { padding: 36px 0 40px; }
}

@media (max-width: 640px) {
	#page-container .et_pb_row,
	#et-boc .et_pb_row,
	.et-l--footer .et_pb_row,
	#main-header .container,
	#main-header .et_menu_container { width: calc(100% - 32px); }
	.lmsh-barre__inner { width: 100%; padding: 6px 16px; }
	#page-container .et_pb_section:not(.et_pb_with_background) { padding-top: 28px; padding-bottom: 28px; }
	#page-container .et_pb_section.et_pb_with_background:first-of-type { padding-top: 48px; padding-bottom: 48px; }
}

/* ==========================================================================
   23. HERO
   Un hero occupe la largeur de la fenetre et non celle de la colonne de
   contenu. Sa hauteur est celle des bandeaux d'univers (section 29) :
   300 px, 250 px sous 980 px — une meme bande d'image, quelle que soit la
   porte d'entree (consigne du 23 septembre).
   ========================================================================== */

.lmsh-hero { position: relative; }

.lmsh-hero__media {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	height: 300px;
	overflow: hidden;
	background: var(--lmsh-ink);
}

#page-container .lmsh-hero__image,
.lmsh-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 58%;
	border-radius: 0;
}

.lmsh-hero__carte {
	position: relative;
	z-index: 2;
	max-width: 704px;
	margin: -64px 0 0;
	padding: 32px 36px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(27, 26, 23, .13);
}

@media (max-width: 980px) {
	.lmsh-hero__media { height: 250px; }
	.lmsh-hero__carte { max-width: none; margin-top: -52px; }
}

@media (max-width: 640px) {
	.lmsh-hero__media { height: 250px; }
	.lmsh-hero__carte { margin-top: -36px; padding: 24px 22px 26px; border-radius: 14px; }
	#page-container .lmsh-hero__carte h1 { font-size: 1.75rem; }
}

/* ==========================================================================
   24. EMPILEMENT BARRE / EN-TETE
   L'en-tete de Divi est fixe a top:0 avec un z-index de 99999 : il
   recouvrait entierement la barre utilitaire, restee dans le flux normal.
   Les deux sont donc fixes, empiles, et le contenu decale d'autant.
   ========================================================================== */

:root { --lmsh-barre-h: 58px; }   /* valeur de depart : le script mesure la vraie */

.lmsh-barre {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100000;
}

#main-header { top: var(--lmsh-barre-h) !important; }

#page-container { padding-top: calc(97px + var(--lmsh-barre-h)) !important; }

/* Quand Divi retracte l'en-tete au defilement, il reste sous la barre. */
#main-header.et-fixed-header { top: var(--lmsh-barre-h) !important; }

/* ==========================================================================
   25. BOUTON D'ACCESSIBILITE
   Place a cheval sur la limite entre l'en-tete et le hero, plutot qu'en
   haut a gauche ou il masquait le logo.
   ========================================================================== */

/* Le bouton porte une marge propre de 15 px : sans la retrancher, il tombe
   trop bas. 97 (en-tete) + barre - 31 (demi-hauteur) - 15 (marge). */
html body section.onetap-container-toggle button.onetap-toggle,
html body button.onetap-toggle {
	/* Le bas du logo tombe a barre + 80,5 px. On pose le bouton juste en
	   dessous : il chevauche toujours la limite en-tete / hero, mais ne
	   masque plus le logo. Les 15 px retranches sont sa marge propre. */
	top: calc(var(--lmsh-barre-h) + 68px) !important;
	left: 1px !important;
	bottom: auto !important;
	right: auto !important;
}

@media (max-width: 980px) {
	#page-container { padding-top: calc(97px + var(--lmsh-barre-h)) !important; }
	html body button.onetap-toggle { top: calc(var(--lmsh-barre-h) + 66px) !important; left: 1px !important; }
}

@media (max-width: 640px) {
	html body button.onetap-toggle { top: calc(97px + var(--lmsh-barre-h) - 26px - 15px) !important; left: 12px !important; }
}

/* ==========================================================================
   26. COULEUR DES TITRES DANS LES MODULES DIVI
   Divi genere, depuis les reglages de chaque module texte, des regles du
   type « .et_pb_text_0 h2 { color: … !important } ». Son !important bat la
   charte. Un identifiant de plus suffit a reprendre la main.
   ========================================================================== */

#page-container .et_pb_text h2,
#page-container .et_pb_text h3,
#page-container .et_pb_code h2,
#page-container .et_pb_code h3,
#page-container .lmsh-section-titre h2 {
	color: var(--lmsh-ink) !important;
}

/* Les bandeaux de titre gardent leur texte blanc sur l'image. */
#page-container .et_pb_section.et_pb_with_background:first-of-type h1,
#page-container .et_pb_section.et_pb_with_background:first-of-type h2 {
	color: var(--lmsh-surface) !important;
}

/* Le lien « Tout l'agenda » : a droite, a la couleur de la charte. */
#page-container .lmsh-section-titre__lien,
#et-boc .lmsh-section-titre__lien {
	margin-left: auto;
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--lmsh-primary) !important;
	white-space: nowrap;
}

/* ==========================================================================
   27. DIAPORAMA « A LA UNE »
   Les affiches ne sont pas rognees : leur texte porte l'information.
   D'ou object-fit: contain sur un fond neutre, plutot qu'un cadrage.
   ========================================================================== */

.lmsh-alaune { display: flex; flex-direction: column; }

/* La carte du diaporama, sous le titre « À la une ». */
.lmsh-alaune__cadre {
	background: var(--lmsh-ground);
	border: 1px solid var(--lmsh-line);
	border-radius: var(--lmsh-rayon);
	padding: 20px 20px 16px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.lmsh-alaune__pause {
	width: 34px; height: 34px;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: transparent;
	border: 1px solid var(--lmsh-line);
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
}
.lmsh-alaune__pause:hover { border-color: var(--lmsh-primary); }
.lmsh-alaune__icone-pause {
	display: block; width: 10px; height: 12px;
	border-left: 3px solid var(--lmsh-primary);
	border-right: 3px solid var(--lmsh-primary);
}
.lmsh-alaune.est-en-pause .lmsh-alaune__icone-pause {
	width: 0; height: 0;
	border: none;
	border-left: 11px solid var(--lmsh-primary);
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
}

.lmsh-alaune__scene { position: relative; }

/* Les diapositives se superposent au lieu d'etre retirees du flux : le
   navigateur les considere alors comme presentes et peut les charger
   d'avance, au lieu de laisser une case blanche a l'affichage. */
.lmsh-alaune__scene { display: grid; }
.lmsh-alaune__slide {
	margin: 0;
	grid-area: 1 / 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .3s ease;
}
.lmsh-alaune__slide.est-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
	.lmsh-alaune__slide { transition: none; }
}

#page-container .lmsh-alaune__image,
.lmsh-alaune__image {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: contain;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 8px;
}

#page-container .lmsh-alaune__legende,
.lmsh-alaune__legende {
	margin: 10px 0 0;
	font-size: 0.96875rem;
	line-height: 1.45;
	color: var(--lmsh-ink-soft);
}

.lmsh-alaune__commandes { display: flex; align-items: center; gap: 10px; }

.lmsh-alaune__fleche {
	width: 36px; height: 36px;
	flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
	background: var(--lmsh-surface);
	color: var(--lmsh-primary);
	border: 1px solid var(--lmsh-line);
	border-radius: 8px;
	cursor: pointer;
	padding: 0;
}
.lmsh-alaune__fleche:hover { border-color: var(--lmsh-primary); background: var(--lmsh-primary-pale); }

.lmsh-alaune__puces { flex-grow: 1; display: flex; justify-content: center; gap: 8px; }

.lmsh-alaune__puce {
	width: 26px; height: 26px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.lmsh-alaune__puce:before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	transform: translate(-50%, -50%);
	width: 10px; height: 10px;
	border-radius: 5px;
	/* 3:1 au moins contre le fond : une pastille doit se voir (RGAA 3.3). */
	background: #8a8274;
	transition: background-color .15s ease, width .15s ease;
}
/* Le visuel affiché : la pastille s'allonge, elle ne change pas seulement
   de couleur (RGAA 3.1). */
.lmsh-alaune__puce.est-active:before {
	background: var(--lmsh-primary);
	width: 24px;
}

@media (max-width: 980px) {
	.lmsh-alaune__image { aspect-ratio: 16 / 10; }
}

/* Lien vers la page Facebook, en pied de page : il vivait dans l'ancien
   bloc « Sur Facebook », remplace par « A la une ». */
#page-container .lmsh-pied__reseau,
.lmsh-pied__reseau { margin: 16px 0 0; font-size: 1rem; }
.lmsh-pied__reseau a { display: inline-flex; align-items: center; gap: 9px; }

/* Zones cliquables du diaporama portees a 44 px : le dessin reste discret,
   la cible ne l'est pas. Un site pense pour des lecteurs ages ne peut pas
   demander de viser une pastille de 9 px. */
.lmsh-alaune__fleche,
.lmsh-alaune__pause { width: 44px; height: 44px; }
.lmsh-alaune__puce  { width: 44px; height: 44px; }
.lmsh-alaune__puces { gap: 2px; }
.lmsh-alaune__commandes { gap: 6px; }
.lmsh-alaune__figure { margin: 0; }

/* Sur un écran de 320 px, la rangée de commandes ne tient plus : elle passe
   à la ligne au lieu de déborder (RGAA 10.11). */
@media (max-width: 420px) {
	.lmsh-alaune__commandes { flex-wrap: wrap; justify-content: center; row-gap: 8px; }
	.lmsh-alaune__puces { flex-grow: 0; }
	.lmsh-alaune__puce { width: 34px; }
}

/* ==========================================================================
   28. PAGES D'UNIVERS COMPOSEES
   Une page d'univers oriente : elle resume et renvoie vers les sous-pages,
   elle ne recopie pas leur contenu. Les cartes sont des liens entiers,
   dimensionnes pour le doigt.
   ========================================================================== */

.lmsh-univers-intro p {
	font-size: 1.12rem;
	line-height: 1.6;
	color: var(--lmsh-ink-soft);
	max-width: 62ch;
}

/* --- Etapes numerotees --- */
.lmsh-etapes {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--lmsh-gouttiere);
	margin: 0;
	padding: 0;
	list-style: none;
}
.lmsh-etape {
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: var(--lmsh-rayon);
	padding: 24px 24px 26px;
	display: flex;
	flex-direction: column;
}
.lmsh-etape__num {
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	background: var(--lmsh-primary);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--lmsh-display);
	font-size: 1.3125rem;
	font-weight: 700;
	margin-bottom: 16px;
}
#page-container .lmsh-etape__titre {
	font-size: 1.25rem;
	line-height: 1.25;
	margin: 0 0 8px;
}
.lmsh-etape__texte {
	font-size: 1rem;
	line-height: 1.55;
	color: var(--lmsh-ink-soft);
	margin: 0 0 14px;
	flex: 1 1 auto;
}
.lmsh-etape__lien {
	font-weight: 600;
	color: var(--lmsh-primary);
	text-decoration: none;
}
.lmsh-etape__lien:hover,
.lmsh-etape__lien:focus-visible { text-decoration: underline; }

/* --- Encart en vedette --- */
.lmsh-encart {
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 16px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
/* L'image du bourg est un panoramique : en bandeau haut, elle n'est pas
   recadree a l'excès et garde sa lisibilite. */
.lmsh-encart__image {
	width: 100%;
	height: 210px;
	object-fit: cover;
	object-position: center 58%;
	display: block;
	order: -1;
}
.lmsh-encart__corps { padding: 32px 40px 36px; }
.lmsh-encart__badge {
	display: inline-block;
	background: var(--lmsh-accent-pale);
	color: #8c3a16;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	padding: 7px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}
.lmsh-encart__corps p {
	font-size: 1.05rem;
	line-height: 1.65;
	margin: 0 0 14px;
}
.lmsh-encart__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.lmsh-bouton,
.lmsh-bouton--creux {
	display: inline-block;
	padding: 14px 24px;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 10px;
	text-decoration: none;
	border: 1.5px solid transparent;
}
/* Divi impose sa couleur de lien : il faut un id pour la surcharger,
   sinon le libelle ressort en vert sur l'orange (contraste 1,12). */
#page-container a.lmsh-bouton,
#et-boc a.lmsh-bouton {
	background: var(--lmsh-accent);
	color: #fff;                       /* blanc sur #b04a1e : 5,5:1 */
}
#page-container a.lmsh-bouton:hover,
#page-container a.lmsh-bouton:focus-visible,
#et-boc a.lmsh-bouton:hover {
	background: #8c3a16;
	color: #fff;
}
#page-container a.lmsh-bouton--creux,
#et-boc a.lmsh-bouton--creux {
	background: var(--lmsh-surface);
	color: var(--lmsh-primary);
	border-color: var(--lmsh-primary);
}
#page-container a.lmsh-bouton--creux:hover,
#page-container a.lmsh-bouton--creux:focus-visible {
	background: var(--lmsh-primary-pale);
	color: var(--lmsh-primary-dark);
}

/* --- Raccourcis --- */
.lmsh-raccourcis {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 16px;
	margin: 0; padding: 0; list-style: none;
}
.lmsh-raccourcis a {
	display: flex;
	align-items: center;
	min-height: 84px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 12px;
	padding: 18px;
	font-size: 1rem;
	font-weight: 600;
	color: var(--lmsh-ink);
	text-decoration: none;
}
.lmsh-raccourcis a:hover,
.lmsh-raccourcis a:focus-visible {
	border-color: var(--lmsh-primary);
	background: var(--lmsh-primary-pale);
}

/* --- Duo contacts / appel --- */
.lmsh-duo {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 26px;
}
.lmsh-contacts,
.lmsh-appel {
	border-radius: 16px;
	padding: 30px 34px 32px;
}
.lmsh-contacts { background: var(--lmsh-surface); border: 1px solid var(--lmsh-line); }
.lmsh-contacts dl { margin: 0; display: flex; flex-direction: column; gap: 13px; }
.lmsh-contacts .lmsh-contacts__ligne { display: flex; gap: 16px; align-items: baseline; }
.lmsh-contacts dt { width: 170px; flex: 0 0 auto; font-weight: 600; }
.lmsh-contacts dd { margin: 0; color: var(--lmsh-ink-soft); }

.lmsh-appel { background: var(--lmsh-primary); color: #fff; display: flex; flex-direction: column; }
/* La section « couleur des titres » impose l'encre en !important aux titres
   des modules texte et code (pour battre le CSS genere par Divi). Sur la carte
   verte il faut du blanc : meme priorite, specificite superieure. */
#page-container .et_pb_code .lmsh-appel h2,
#page-container .lmsh-appel h2,
#et-boc .lmsh-appel h2 { color: #fff !important; }
/* Identifiant obligatoire : « #page-container p » repeignait ce texte en encre
   sur le vert (2,84:1). #d5ede9 sur #0a6e64 : 5,0:1. */
#page-container .lmsh-appel p,
#et-boc .lmsh-appel p { color: #d5ede9; font-size: 1.05rem; line-height: 1.65; margin: 0 0 16px; }
#page-container .lmsh-appel a.lmsh-bouton,
#et-boc .lmsh-appel a.lmsh-bouton {
	background: #fff;
	color: var(--lmsh-primary-dark);   /* #064e46 sur blanc : 8,9:1 */
	align-self: flex-start;
	margin-top: auto;
}
#page-container .lmsh-appel a.lmsh-bouton:hover,
#page-container .lmsh-appel a.lmsh-bouton:focus-visible {
	background: var(--lmsh-primary-pale);
	color: var(--lmsh-primary-dark);
}
/* Sur le fond vert, l'anneau terracotta ne se voyait pas (1,1:1) : il passe
   au blanc (RGAA 10.7). */
#page-container .lmsh-appel a:focus-visible,
#page-container .lmsh-appel button:focus-visible { outline-color: #ffffff; }

/* --- Adaptation --- */
@media (max-width: 1100px) {
	.lmsh-etapes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lmsh-raccourcis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.lmsh-encart__image { height: 180px; }
}
@media (max-width: 720px) {
	.lmsh-etapes { grid-template-columns: 1fr; }
	.lmsh-raccourcis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lmsh-duo { grid-template-columns: 1fr; }
	.lmsh-contacts .lmsh-contacts__ligne { flex-direction: column; gap: 2px; }
	.lmsh-contacts dt { width: auto; }
	.lmsh-encart__corps { padding: 26px 22px 28px; }
	.lmsh-encart__image { height: 140px; }
}

/* ==========================================================================
   29. BANDEAU DE PAGE — composant [lmsh_bandeau]
   Titre cale a gauche sur l'image, voile degrade de la gauche vers la droite
   (maquette V2). Sur mobile le texte occupe toute la largeur : le voile
   devient uniforme pour garder le contraste d'un bout a l'autre.
   ========================================================================== */

.lmsh-section-bandeau,
.lmsh-section-bandeau .et_pb_fullwidth_code,
.lmsh-section-bandeau .et_pb_code_inner { padding: 0 !important; margin: 0 !important; }

.lmsh-bandeau-u {
	position: relative;
	display: flex;
	align-items: center;
	height: 220px;
	overflow: hidden;
	background: var(--lmsh-primary-dark);      /* avant chargement de l'image */
}
.lmsh-bandeau-u--grand { height: 300px; }

.lmsh-bandeau-u__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 55%;
	display: block;
}
.lmsh-bandeau-u::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg,
		rgba(20, 32, 28, .88) 0%,
		rgba(20, 32, 28, .70) 45%,
		rgba(20, 32, 28, .15) 100%);
}
.lmsh-bandeau-u__texte {
	position: relative;
	z-index: 1;
	width: calc(100% - 112px);
	max-width: 1168px;
	margin: 0 auto;
}
#page-container .lmsh-bandeau-u__titre,
#et-boc .lmsh-bandeau-u__titre {
	font-family: var(--lmsh-display);
	font-size: 2.625rem;
	line-height: 1.1;
	font-weight: 600;          /* le titre peut etre un p (agenda) : meme graisse que le h1 */
	color: #fff !important;
	margin: 0;
	padding: 0;
	max-width: 700px;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .35);
}
#page-container .lmsh-bandeau-u--grand .lmsh-bandeau-u__titre,
#et-boc .lmsh-bandeau-u--grand .lmsh-bandeau-u__titre { font-size: 3.125rem; }

/* Blanc et non creme : sur la partie la plus claire du voile, le blanc
   tient encore 4,5:1 ; le creme de la maquette descendait sous le seuil.
   L'identifiant est indispensable : la regle « #page-container p » du theme
   enfant repeignait sinon l'accroche en encre, sur fond sombre. */
#page-container .lmsh-bandeau-u__accroche,
#et-boc .lmsh-bandeau-u__accroche {
	margin: 14px 0 0;
	max-width: 620px;
	font-size: 1.25rem;
	line-height: 1.55;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

@media (max-width: 980px) {
	.lmsh-bandeau-u { height: 190px; }
	.lmsh-bandeau-u--grand { height: auto; min-height: 250px; padding: 40px 0; }
	.lmsh-bandeau-u__texte { width: calc(100% - 40px); }
	#page-container .lmsh-bandeau-u__titre { font-size: 2.125rem; }
	#page-container .lmsh-bandeau-u--grand .lmsh-bandeau-u__titre { font-size: 2.375rem; }
	#page-container .lmsh-bandeau-u__accroche { font-size: 1.125rem; }
}
/* Sur tablette et telephone, le texte du bandeau occupe toute la largeur :
   le voile doit etre sombre partout, pas seulement a gauche (RGAA 3.2). */
@media (max-width: 980px) {
	.lmsh-bandeau-u::after { background: linear-gradient(0deg, rgba(20, 32, 28, .86), rgba(20, 32, 28, .62)); }
}
@media (max-width: 600px) {
	#page-container .lmsh-bandeau-u__titre { font-size: 1.8125rem; }
	#page-container .lmsh-bandeau-u--grand .lmsh-bandeau-u__titre { font-size: 2rem; }
	#page-container .lmsh-bandeau-u__accroche { font-size: 1.0625rem; }
}

/* ==========================================================================
   30. EN-TETES DE SECTION ET CARTES A IMAGE
   ========================================================================== */

.lmsh-section-chapo {
	margin: -12px 0 24px;
	font-size: 1.05rem;
	line-height: 1.55;
	color: var(--lmsh-ink-soft);
}

/* Cartes « a visiter » : l'image est decorative, le titre nomme le lien. */
.lmsh-visites {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--lmsh-gouttiere);
	margin: 0;
	padding: 0;
	list-style: none;
}
.lmsh-visite a {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: var(--lmsh-rayon);
	overflow: hidden;
	color: var(--lmsh-ink);
	text-decoration: none;
}
.lmsh-visite img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
}
.lmsh-visite__corps { padding: 18px 20px 22px; }
#page-container .lmsh-visite__titre { font-size: 1.25rem; line-height: 1.25; margin: 0 0 6px; }
.lmsh-visite__texte { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--lmsh-ink-soft); }
.lmsh-visite a:hover,
.lmsh-visite a:focus-visible { border-color: var(--lmsh-primary); }
.lmsh-visite a:hover .lmsh-visite__titre,
.lmsh-visite a:focus-visible .lmsh-visite__titre { text-decoration: underline; }

@media (max-width: 1100px) { .lmsh-visites { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .lmsh-visites { grid-template-columns: 1fr; } }

/* --- Encart : variantes ---
   Par defaut l'image est un bandeau en tete (fait pour un panoramique).
   « --cote » la place a droite, comme la maquette : pour une photo ordinaire.
   « --couverture » la montre entiere, sans rognage : pour une couverture. */
.lmsh-encart--cote {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
}
.lmsh-encart--cote .lmsh-encart__image {
	order: 0;
	height: 100%;
	min-height: 300px;
	object-position: center;
}
.lmsh-encart--couverture .lmsh-encart__image {
	object-fit: contain;
	background: var(--lmsh-ground);
	padding: 24px;
	box-sizing: border-box;
}
@media (max-width: 1100px) {
	.lmsh-encart--cote { display: flex; flex-direction: column; }
	.lmsh-encart--cote .lmsh-encart__image { order: -1; height: 240px; min-height: 0; }
	.lmsh-encart--couverture .lmsh-encart__image { height: 320px; }
}

/* Dans le corps d'un gabarit, Divi applique a toute liste
   « .et-l--body ul/ol { padding: 0 0 23px 1em; list-style: disc/decimal } ».
   Nos listes sont des grilles de cartes : ni retrait, ni puce, ni numero
   (les etapes portent deja leur pastille). */
#page-container .lmsh-visites,
#page-container .lmsh-etapes,
#page-container .lmsh-raccourcis,
#page-container .lmsh-sous-pages,
#et-boc .lmsh-visites,
#et-boc .lmsh-etapes,
#et-boc .lmsh-raccourcis,
#et-boc .lmsh-sous-pages {
	padding: 0;
	margin: 0;
	list-style: none;
}
#page-container .lmsh-visites > li,
#page-container .lmsh-etapes > li,
#page-container .lmsh-raccourcis > li,
#page-container .lmsh-sous-pages > li { margin: 0; padding-left: 0; }

/* Une couverture est en portrait : laissee libre, elle imposait sa hauteur
   a la rangee (602 px pour 250 px de texte). Hauteur fixe, image entiere. */
.lmsh-encart--cote.lmsh-encart--couverture .lmsh-encart__image {
	height: 340px;
	min-height: 0;
	align-self: center;
}
@media (max-width: 1100px) {
	.lmsh-encart--cote.lmsh-encart--couverture .lmsh-encart__image { height: 320px; }
}

/* ==========================================================================
   31. ALIGNEMENT SUR LA MAQUETTE V2 — pages sous gabarit
   ========================================================================== */

/* --- Largeur. Le contenu d'une page s'inscrit dans une rangee du gabarit ;
   ses propres rangees retranchaient encore 112 px : le texte etait en
   retrait de 56 px sur le bandeau et l'en-tete. --- */
#page-container .et_pb_post_content .et_pb_row,
#et-boc .et_pb_post_content .et_pb_row {
	width: 100%;
	max-width: none;
}

/* --- Rythme vertical. La maquette espace les blocs de 44 px (48 sous le
   bandeau). La section du gabarit et celles de la page ajoutaient chacune
   44 px en haut et en bas : 88 px partout. --- */
#page-container .et_pb_section.lmsh-section-univers { padding: 0 !important; }
#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section { padding: 44px 0 0; }
#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section:first-child { padding-top: 48px; }
#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section:last-child { padding-bottom: 64px; }

#page-container .et_pb_section.lmsh-section-rubrique { padding: 48px 0 64px !important; }
#page-container .lmsh-section-rubrique .et_pb_post_content .et_pb_section { padding: 36px 0 0; }
#page-container .lmsh-section-rubrique .et_pb_post_content .et_pb_section:first-child { padding-top: 0; }

/* --- Titres de section : 8 px jusqu'au chapo, 28 px jusqu'au contenu. --- */
#page-container .lmsh-section-chapo {
	margin: -14px 0 28px;
	font-size: 1.0625rem;
	color: var(--lmsh-ink-soft);
}

/* --- Cartes « etapes ». La remise a zero des listes Divi (section 30)
   otait aussi le retrait gauche : ici la <li> EST la carte. --- */
#page-container .lmsh-etapes > .lmsh-etape,
#et-boc .lmsh-etapes > .lmsh-etape {
	padding: 24px 24px 26px;
	border-radius: 14px;
}
#page-container .lmsh-etape__texte,
#page-container .lmsh-visite__texte {
	font-size: 1rem;
	line-height: 1.55;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-etape__lien { font-size: 1rem; }

/* --- Exposants (« 1er ») : sans ceci, ils gonflent l'interligne et le
   « er » saute au-dessus de la ligne. --- */
#page-container sup,
#et-boc sup {
	font-size: .72em;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
	top: -.45em;
}

/* --- Encart (maquette : colonne image de 460 px, corps 40/44/42,
   titre 32, texte 18 / 1,65). --- */
.lmsh-encart--cote { grid-template-columns: minmax(0, 1fr) 460px; }
.lmsh-encart__corps { padding: 40px 44px 42px; }
#page-container .lmsh-encart h2 { font-size: 2rem; line-height: 1.15; margin: 0 0 14px; }
#page-container .lmsh-encart__corps p {
	font-size: 1.125rem;
	line-height: 1.65;
	color: #3c3a34;
	margin: 0 0 16px;
}
.lmsh-encart__badge { font-size: 0.875rem; margin-bottom: 18px; }
#page-container a.lmsh-bouton,
#page-container a.lmsh-bouton--creux {
	padding: 15px 26px;
	font-size: 1.0625rem;
	border-radius: 10px;
}

/* --- Duo contacts / appel (maquette : ecart 28, cartes 32/36/34, titres 26). --- */
.lmsh-duo { gap: 28px; }
.lmsh-contacts,
.lmsh-appel { padding: 32px 36px 34px; }
#page-container .lmsh-contacts h2,
#page-container .lmsh-appel h2 { font-size: 1.625rem; line-height: 1.2; margin: 0 0 18px; }
.lmsh-contacts dl { gap: 14px; }
.lmsh-contacts dt { width: 168px; font-size: 1rem; }
.lmsh-contacts dd { font-size: 1rem; }

/* --- En-tete (consigne du 23 septembre). Dans un univers ou l'une de ses
   rubriques, l'entree courante garde son aspect et recoit un trait vert
   dessous. « Ma mairie » reste toujours un bouton vert ; quand on est chez
   elle, le trait passe sous le bouton, ou il reste visible. --- */
#main-header #top-menu li.current-menu-item > a,
#main-header #top-menu li.current_page_item > a,
#main-header #top-menu li.current-menu-ancestor > a,
#main-header #top-menu li.current-page-ancestor > a,
#main-header #top-menu li.current_page_ancestor > a,
#main-header #top-menu li.current-menu-parent > a,
#main-header #top-menu li.current_page_parent > a {
	position: relative;
	color: var(--lmsh-ink);
	background-color: transparent;
}
#main-header #top-menu > li.current-menu-item > a:after,
#main-header #top-menu > li.current_page_item > a:after,
#main-header #top-menu > li.current-menu-ancestor > a:after,
#main-header #top-menu > li.current-page-ancestor > a:after,
#main-header #top-menu > li.current_page_ancestor > a:after,
#main-header #top-menu > li.current-menu-parent > a:after,
#main-header #top-menu > li.current_page_parent > a:after {
	content: "";
	display: block;
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 6px;
	height: 3px;
	border-radius: 2px;
	background: var(--lmsh-primary);
}

/* « Ma mairie » : toujours le bouton vert, qu'elle soit courante ou non. */
#main-header #top-menu > li:last-child > a,
#main-header #top-menu > li:last-child.current-menu-item > a,
#main-header #top-menu > li:last-child.current_page_item > a,
#main-header #top-menu > li:last-child.current-menu-ancestor > a,
#main-header #top-menu > li:last-child.current-page-ancestor > a,
#main-header #top-menu > li:last-child.current_page_ancestor > a,
#main-header #top-menu > li:last-child.current-menu-parent > a,
#main-header #top-menu > li:last-child.current_page_parent > a {
	color: #fff;                                   /* 6,1:1 sur #0a6e64 */
	background-color: var(--lmsh-primary);
}
#main-header #top-menu > li:last-child.current-menu-item > a:after,
#main-header #top-menu > li:last-child.current_page_item > a:after,
#main-header #top-menu > li:last-child.current-menu-ancestor > a:after,
#main-header #top-menu > li:last-child.current-page-ancestor > a:after,
#main-header #top-menu > li:last-child.current_page_ancestor > a:after,
#main-header #top-menu > li:last-child.current-menu-parent > a:after,
#main-header #top-menu > li:last-child.current_page_parent > a:after {
	bottom: -9px;                  /* sous le bouton : sur le vert il disparaitrait */
}
#main-header #top-menu > li:last-child > a:hover,
#main-header #top-menu > li:last-child > a:focus-visible {
	color: #fff;
	background-color: var(--lmsh-primary-dark);
}

/* Menu resserre entre 981 et 1 100 px : le trait suit la marge interieure. */
@media (min-width: 981px) and (max-width: 1100px) {
	#main-header #top-menu > li.current-menu-item > a:after,
	#main-header #top-menu > li.current_page_item > a:after,
	#main-header #top-menu > li.current-menu-ancestor > a:after,
	#main-header #top-menu > li.current-page-ancestor > a:after,
	#main-header #top-menu > li.current_page_ancestor > a:after,
	#main-header #top-menu > li.current-menu-parent > a:after,
	#main-header #top-menu > li.current_page_parent > a:after { left: 12px; right: 12px; bottom: 4px; }
	#main-header #top-menu > li:last-child.current-menu-item > a:after,
	#main-header #top-menu > li:last-child.current_page_item > a:after,
	#main-header #top-menu > li:last-child.current-menu-ancestor > a:after,
	#main-header #top-menu > li:last-child.current-page-ancestor > a:after,
	#main-header #top-menu > li:last-child.current_page_ancestor > a:after,
	#main-header #top-menu > li:last-child.current-menu-parent > a:after,
	#main-header #top-menu > li:last-child.current_page_parent > a:after { bottom: -8px; }
}

/* ==========================================================================
   32. SURFACES SOMBRES — bandeau, carte verte, pied de page
   Deux regles globales y repeignaient le texte en encre : « couleur des
   titres » (!important, section 24), et le mode contraste renforce
   (« html.lmsh-contraste #page-container p »). Les titres du pied etaient
   ainsi invisibles pour tous ; le reste l'etait en contraste renforce —
   le mode meme concu pour les malvoyants. Specificite superieure, deux modes.
   ========================================================================== */

/* Titres : battre un !important de specificite (1,1,1). */
#page-container .et_pb_code .lmsh-appel h2,
#page-container .et_pb_code .lmsh-pied h2,
#page-container .et_pb_text .lmsh-pied h2,
#page-container .lmsh-pied .lmsh-pied__col h2,
#page-container .et_pb_code .lmsh-pied h3,
#page-container .et_pb_text .lmsh-pied h3,
#page-container .lmsh-pied .lmsh-pied__col h3 { color: #fff !important; }

/* Texte courant : battre « html.lmsh-contraste #page-container p » (1,1,2). */
#page-container .lmsh-bandeau-u .lmsh-bandeau-u__accroche { color: #fff; }
#page-container .lmsh-duo .lmsh-appel p { color: #d5ede9; font-size: 1.125rem; line-height: 1.65; }
#page-container .lmsh-pied .lmsh-pied__col p { color: #c9c3b7; }
#page-container .lmsh-pied .lmsh-pied__col p strong { color: #ede9e0; }

/* En contraste renforce, plus de nuance : blanc pur sur les fonds sombres. */
html.lmsh-contraste #page-container .lmsh-duo .lmsh-appel p,
html.lmsh-contraste #page-container .lmsh-pied .lmsh-pied__col p,
html.lmsh-contraste #page-container .lmsh-pied .lmsh-pied__col p strong,
html.lmsh-contraste #page-container .lmsh-pied .lmsh-pied__credit { color: #fff; }

/* --- Le texte du bandeau suit les gouttieres des rangees (section 22),
   pour rester aligne sur le contenu et l'en-tete a toutes les largeurs.
   Le rythme vertical se resserre comme sur les autres pages. --- */
@media (max-width: 1100px) {
	.lmsh-bandeau-u__texte { width: calc(100% - 80px); }
}
@media (max-width: 980px) {
	.lmsh-bandeau-u__texte { width: calc(100% - 56px); }
	#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section { padding-top: 36px; }
	#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section:first-child { padding-top: 40px; }
	#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section:last-child { padding-bottom: 48px; }
	#page-container .et_pb_section.lmsh-section-rubrique { padding: 36px 0 48px !important; }
}
@media (max-width: 640px) {
	.lmsh-bandeau-u__texte { width: calc(100% - 32px); }
	#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section { padding-top: 28px; }
	#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section:first-child { padding-top: 32px; }
	#page-container .lmsh-section-univers .et_pb_post_content .et_pb_section:last-child { padding-bottom: 40px; }
	#page-container .et_pb_section.lmsh-section-rubrique { padding: 28px 0 40px !important; }
}

/* ==========================================================================
   33. CONTENU HERITE — harmonisation avec la charte
   Les pages de rubrique viennent de l'ancien site : chaque module Divi y
   porte ses couleurs (orange #F88A33, olive #A0B70D, turquoise #00A698) et
   ses polices (Roboto, Spline Sans). La charte reprend la main ; un
   identifiant bat le CSS genere par Divi, meme marque !important.
   Nos propres composants vivent dans des modules « code » : non concernes.
   ========================================================================== */

#page-container .et_pb_post_content .et_pb_text,
#page-container .et_pb_post_content .et_pb_text p,
#page-container .et_pb_post_content .et_pb_text li,
#page-container .et_pb_post_content .et_pb_toggle_content,
#page-container .et_pb_post_content .et_pb_toggle_content p,
#page-container .et_pb_post_content .et_pb_toggle_content li {
	font-family: var(--lmsh-body) !important;
}

#page-container .et_pb_post_content .et_pb_text h2,
#page-container .et_pb_post_content .et_pb_text h3,
#page-container .et_pb_post_content .et_pb_text h4,
#page-container .et_pb_post_content .et_pb_text h5,
#page-container .et_pb_post_content .et_pb_text h6,
#page-container .et_pb_post_content .et_pb_toggle_content h2,
#page-container .et_pb_post_content .et_pb_toggle_content h3,
#page-container .et_pb_post_content .et_pb_toggle_content h4,
#page-container .et_pb_post_content .et_pb_toggle_content h5,
#page-container .et_pb_post_content .et_pb_toggle_content h6 {
	font-family: var(--lmsh-display) !important;
	color: var(--lmsh-ink) !important;
}

/* Liens : vert de la charte, souligne (6,1:1 sur blanc). */
#page-container .et_pb_post_content .et_pb_text a,
#page-container .et_pb_post_content .et_pb_toggle_content a,
#page-container .et_pb_post_content .et_pb_blurb a {
	color: var(--lmsh-primary) !important;
	text-decoration: underline;
	text-underline-offset: .15em;
}
#page-container .et_pb_post_content .et_pb_text a:hover,
#page-container .et_pb_post_content .et_pb_toggle_content a:hover {
	color: var(--lmsh-primary-dark) !important;
}

/* Accordeons : cartes blanches a filet clair, comme le reste du site. */
#page-container .et_pb_post_content .et_pb_toggle {
	background-color: var(--lmsh-surface) !important;
	border: 1px solid var(--lmsh-line) !important;
	border-radius: 12px !important;
	padding: 18px 22px !important;
	margin-bottom: 12px !important;
}
#page-container .et_pb_post_content .et_pb_toggle .et_pb_toggle_title {
	font-family: var(--lmsh-display) !important;
	font-size: 1.25rem !important;
	line-height: 1.35 !important;
	font-weight: 600 !important;
	color: var(--lmsh-ink) !important;
}
#page-container .et_pb_post_content .et_pb_toggle_open .et_pb_toggle_title {
	color: var(--lmsh-primary-dark) !important;
}
#page-container .et_pb_post_content .et_pb_toggle .et_pb_toggle_title:before {
	color: var(--lmsh-primary) !important;
}
@media (max-width: 640px) {
	#page-container .et_pb_post_content .et_pb_toggle { padding: 16px 16px !important; }
	#page-container .et_pb_post_content .et_pb_toggle .et_pb_toggle_title { font-size: 1.125rem !important; }
}

/* Contraste renforce : encre pure, filets marques. */
html.lmsh-contraste #page-container .et_pb_post_content .et_pb_toggle { border-color: #6b6b6b !important; }
html.lmsh-contraste #page-container .et_pb_post_content .et_pb_text a,
html.lmsh-contraste #page-container .et_pb_post_content .et_pb_toggle_content a { color: #00504a !important; }

/* --- « Je veux visiter la Mothe » allonge le menu de six caracteres :
   entre 981 et 1 100 px, il debordait sur le label Petite Cite de
   Caractere (-52 px a 990). On resserre les entrees dans cette plage
   seulement ; au-dela, la maquette s'applique telle quelle.

   Le calage VERTICAL, lui, ne bouge pas : la page reserve 97 px sous
   l'en-tete fixe (section 22, « padding-top: calc(97px + … ) »). En
   descendant a 11 px, l'en-tete ne mesurait plus que 87 px et une bande
   blanche de 10 px apparaissait entre l'en-tete et l'image du haut, sur les
   ecrans de 1 000 a 1 100 px (corrige le 13/11/2026). Seul l'espacement
   horizontal fait gagner de la place : garder 16 px en haut et en bas. --- */
@media (min-width: 981px) and (max-width: 1100px) {
	#main-header #top-menu > li { padding-right: 4px; }
	#main-header #top-menu > li > a { padding: 16px 12px; font-size: 1rem; }
}

/* ==========================================================================
   34. FIL D'ARIANE — dans le bandeau, au-dessus du titre
   Blanc sur le voile, comme le titre : sur la moitie gauche, ou le texte est
   cale, le voile tient 4,5:1 meme sur une image claire. Les separateurs sont
   dessines en CSS, donc muets pour les lecteurs d'ecran. Sur mobile, la page
   courante — repetee juste dessous par le titre — s'efface pour gagner une
   ligne.
   ========================================================================== */

#page-container .lmsh-fil { margin: 0 0 12px; padding: 0; }

#page-container .lmsh-fil__liste {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--lmsh-body);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	text-shadow: 0 1px 8px rgba(0, 0, 0, .35);
}
/* Deux classes : il faut battre « #page-container li », qui peint les
   elements de liste en encre, et sa variante du contraste renforce. */
#page-container .lmsh-fil .lmsh-fil__etape {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: inherit;
	line-height: inherit;
	color: #fff;
}
/* Chevron : deux bordures d'un carre tourne. */
#page-container .lmsh-fil__etape + .lmsh-fil__etape::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin: 0 12px 0 9px;
	border-top: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
}
#page-container .lmsh-fil__lien,
#page-container .lmsh-fil__lien:visited {
	color: #fff;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#page-container .lmsh-fil__lien:hover { text-decoration-thickness: 2px; }
#page-container .lmsh-fil__lien:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
	border-radius: 2px;
}
#page-container .lmsh-fil__courant { font-weight: 600; }

/* Date d'un article, nombre de resultats d'une recherche. */
#page-container .lmsh-bandeau-u__meta {
	margin: 10px 0 0;
	padding: 0;
	font-size: 1.0625rem;
	line-height: 1.5;
	color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}

/* Le fil ajoute une ligne, parfois deux : sur tablette et mobile, le
   bandeau grandit au besoin plutot que de rogner le titre. */
@media (max-width: 980px) {
	.lmsh-bandeau-u:not(.lmsh-bandeau-u--grand) { height: auto; min-height: 190px; padding: 28px 0; }
}
@media (max-width: 600px) {
	#page-container .lmsh-fil { margin-bottom: 8px; }
	#page-container .lmsh-fil .lmsh-fil__liste { font-size: 0.875rem; }
	#page-container .lmsh-fil .lmsh-fil__etape:last-child:not(:first-child) { display: none; }
	#page-container .lmsh-bandeau-u__meta { font-size: 1rem; }
}

/* ==========================================================================
   35. NAVIGATION DE RUBRIQUE — [lmsh_nav_rubrique]
   Remplace la colonne verte, lourde et muette sur la page en cours : une
   carte claire, le nom de l'univers en tete, la page courante signalee par
   un trait vert, un fond teinte et du gras — jamais par la seule couleur.
   Ecran large : colonne de gauche, qui accompagne le defilement.
   Tablette et mobile : la meme liste, apres le contenu.
   ========================================================================== */

@media (min-width: 981px) {
	#page-container .lmsh-rangee-rubrique {
		display: grid;
		grid-template-columns: 272px minmax(0, 1fr);
		column-gap: 48px;
	}
	#page-container .lmsh-rangee-rubrique::after { display: none; }
	#page-container .lmsh-rangee-rubrique > .et_pb_column {
		float: none;
		width: auto;
		margin-right: 0;
	}
	/* Sous l'en-tete fixe (barre 34 px + en-tete 87 px), avec un peu d'air. */
	#page-container .lmsh-colonne-nav .lmsh-module-nav {
		position: sticky;
		top: calc(var(--lmsh-barre-h) + 87px + 24px);
		margin-bottom: 0;
	}
	#page-container .lmsh-colonne-nav .lmsh-nav-rubrique {
		max-height: calc(100vh - var(--lmsh-barre-h) - 87px - 48px);
		overflow-y: auto;
		overscroll-behavior: contain;
	}
	#page-container .lmsh-module-nav--bas { display: none; }
}
@media (max-width: 980px) {
	#page-container .lmsh-colonne-nav { display: none; }
	#page-container .lmsh-module-nav--bas { margin-top: 40px; }
}

#page-container .lmsh-nav-rubrique {
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 14px;
	padding: 20px 0 12px;
	font-family: var(--lmsh-body);
}
#page-container .lmsh-nav-rubrique__titre {
	margin: 0 22px 8px;
	padding: 0 0 14px;
	border-bottom: 1px solid var(--lmsh-line);
	font-family: var(--lmsh-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.25;
}
#page-container .lmsh-nav-rubrique__titre a {
	color: var(--lmsh-ink);
	text-decoration: none;
}
#page-container .lmsh-nav-rubrique__titre a:hover {
	color: var(--lmsh-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
#page-container .lmsh-nav-rubrique__liste,
#page-container .lmsh-nav-rubrique__element {
	margin: 0;
	padding: 0;
	list-style: none;
}
#page-container .lmsh-nav-rubrique__lien {
	display: block;
	padding: 9px 22px 9px 19px;
	border-left: 3px solid transparent;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--lmsh-ink);
	text-decoration: none;
}
#page-container .lmsh-nav-rubrique__lien:hover {
	background: var(--lmsh-ground);
	color: var(--lmsh-primary-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}
#page-container .lmsh-nav-rubrique__lien:focus-visible {
	outline: 3px solid var(--lmsh-primary);
	outline-offset: -3px;
}
/* Page courante : trait, fond et graisse — trois indices, pas une couleur seule. */
#page-container .lmsh-nav-rubrique__lien[aria-current="page"] {
	border-left-color: var(--lmsh-primary);
	background: var(--lmsh-primary-pale);
	color: var(--lmsh-primary-dark);
	font-weight: 700;
}
/* Sous-pages eventuelles, depliees sur le chemin de la page courante. */
#page-container .lmsh-nav-rubrique__liste .lmsh-nav-rubrique__liste .lmsh-nav-rubrique__lien {
	padding-left: 35px;
	font-size: 0.9375rem;
}

/* Tablette : la liste de fin de page sur deux colonnes, pour rester courte. */
@media (min-width: 641px) and (max-width: 980px) {
	#page-container .lmsh-nav-rubrique--bas > .lmsh-nav-rubrique__liste { columns: 2; column-gap: 0; }
	#page-container .lmsh-nav-rubrique--bas .lmsh-nav-rubrique__element { break-inside: avoid; }
}

/* Articles : une ligne de lecture confortable plutot que toute la largeur. */
#page-container .lmsh-section-article .et_pb_post_content { max-width: 780px; }

/* ==========================================================================
   36. RECHERCHE — champ et resultats (page de resultats, page 404)
   Le module de recherche de Divi remis a la charte : un champ au bord franc
   (3:1 au moins, comme tout composant d'interface), un bouton vert. Les
   resultats : une carte par page trouvee.
   ========================================================================== */

#page-container .lmsh-recherche-affiner { max-width: 640px; margin-bottom: 36px; }

#page-container .et_pb_search {
	border: 0;
	border-radius: 0;
	overflow: visible;
	background: transparent;
}
#page-container .et_pb_search .et_pb_searchform > div {
	display: flex;
	gap: 10px;
}
#page-container .et_pb_search input.et_pb_s {
	flex: 1 1 auto;
	min-width: 0;
	box-sizing: border-box;
	height: 52px !important;   /* un script de Divi ecrit « height: 55px » sur le champ */
	padding: 0 18px !important;
	border: 1.5px solid var(--lmsh-ink-soft);
	border-radius: 10px;
	background: var(--lmsh-surface);
	font-family: var(--lmsh-body);
	font-size: 1.0625rem !important;
	color: var(--lmsh-ink);
}
#page-container .et_pb_search input.et_pb_s::placeholder { color: var(--lmsh-ink-soft); opacity: 1; }
#page-container .et_pb_search input.et_pb_s:focus {
	border-color: var(--lmsh-primary);
	outline: 3px solid var(--lmsh-primary);
	outline-offset: 2px;
}
#page-container .et_pb_search input.et_pb_searchsubmit {
	position: static;
	flex: none;
	display: block !important;
	height: 52px;
	min-height: 0 !important;
	padding: 0 24px;
	border: 0;
	border-radius: 10px;
	background: var(--lmsh-primary);
	color: #fff;
	font-family: var(--lmsh-body);
	font-size: 1.0625rem;
	font-weight: 600;
	cursor: pointer;
}
#page-container .et_pb_search input.et_pb_searchsubmit:hover,
#page-container .et_pb_search input.et_pb_searchsubmit:focus-visible { background: var(--lmsh-primary-dark); }
#page-container .et_pb_search input.et_pb_searchsubmit:focus-visible { outline: 3px solid var(--lmsh-primary); outline-offset: 2px; }

#page-container .lmsh-resultats .et_pb_post {
	margin: 0 0 14px;
	padding: 20px 24px 22px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: var(--lmsh-rayon);
}
#page-container .lmsh-resultats .et_pb_post .entry-title {
	margin: 0;
	padding: 0;
	font-family: var(--lmsh-display);
	font-size: 1.375rem;
	line-height: 1.3;
}
#page-container .lmsh-resultats .et_pb_post .entry-title a {
	color: var(--lmsh-ink);
	text-decoration: none;
}
#page-container .lmsh-resultats .et_pb_post .entry-title a:hover {
	color: var(--lmsh-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}
#page-container .lmsh-resultats .post-content { margin-top: 8px; }
#page-container .lmsh-resultats .post-content p {
	margin: 0;
	padding: 0;
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--lmsh-ink-soft);
}
/* Les pages composees au constructeur n'ont pas d'extrait : pas de ligne vide. */
#page-container .lmsh-resultats .post-content:has(.excerpt_part:only-child:empty) { display: none; }

@media (max-width: 640px) {
	#page-container .et_pb_search input.et_pb_searchsubmit { padding: 0 16px; }
	#page-container .lmsh-resultats .et_pb_post { padding: 16px 18px 18px; }
	#page-container .lmsh-resultats .et_pb_post .entry-title { font-size: 1.25rem; }
}

/* Texte de la page 404 : le reglage par defaut des modules Texte de Divi
   (Roboto 500) ne passe pas par l'harmonisation du contenu herite. */
#page-container .et_pb_text.lmsh-404,
#page-container .et_pb_text.lmsh-404 p {
	font-family: var(--lmsh-body);
	font-weight: 400;
}

/* ==========================================================================
   37. AGENDA — couleurs et police de la charte
   The Events Calendar passe par des variables CSS : les redefinir suffit a
   remplacer son bleu et sa police par ceux du site, sur toutes ses vues.
   Double :root pour l'emporter quel que soit l'ordre de chargement.
   ========================================================================== */

:root:root {
	--tec-font-family-sans-serif: var(--lmsh-body);
	--tec-color-accent-primary: var(--lmsh-primary);
	--tec-color-accent-primary-hover: var(--lmsh-primary-dark);
	--tec-color-link-accent: var(--lmsh-primary);
	--tec-color-text-primary: var(--lmsh-ink);
	--tec-color-link-primary: var(--lmsh-ink);
	/* Largeur et marges de l'agenda calees sur celles du site (section 22) :
	   le calendrier s'aligne sur le bandeau et le fil d'Ariane. */
	--tec-grid-width-default: 1168px;
	--tec-grid-gutter-page: 56px;
}
@media (max-width: 1100px) {
	:root:root { --tec-grid-gutter-page: 40px; }
}
@media (max-width: 980px) {
	:root:root { --tec-grid-gutter-page: 28px; --tec-grid-gutter-page-small: 28px; }
}
/* Sur telephone, les rangees de la liste debordent de leur marge (21 px
   contre 19,5) : 1,5 px de defilement horizontal. Marge et gouttiere
   ramenees a 16 px, celles du site. */
@media (max-width: 640px) {
	:root:root { --tec-grid-gutter-page-small: 16px; --tec-grid-gutter-small: 32px; }
}

/* ==========================================================================
   38. THÈMES DES UNIVERS — [lmsh_themes]
   Les pages d'un univers rangées par thèmes : un panneau par thème (titre,
   introduction, pages avec leurs deux lignes, « À savoir »). Deux colonnes
   sur grand écran. Sur téléphone, un script fait de chaque titre un bouton :
   les thèmes se replient, on voit les quatre d'un coup d'oeil, on ouvre le
   sien. Sans script, tout reste déplié.
   ========================================================================== */

#page-container .lmsh-themes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin: 1.6em 0 0;
}
#page-container .lmsh-theme {
	display: flex;
	flex-direction: column;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 16px;
	overflow: hidden;
}
#page-container .lmsh-theme .lmsh-theme__photo {
	display: block;
	width: 100%;
	height: 150px;
	object-fit: cover;
}
#page-container .lmsh-theme__entete {
	position: relative;
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 26px 28px 18px;
}
#page-container .lmsh-theme--photo .lmsh-theme__entete { padding-top: 22px; padding-bottom: 16px; }
#page-container .lmsh-theme__icone {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--lmsh-primary-pale);
	color: var(--lmsh-primary);
}
#page-container .lmsh-theme__icone svg { width: 24px; height: 24px; }
#page-container .lmsh-theme .lmsh-theme__titre {
	margin: 0 0 4px;
	padding: 0;
	font-family: var(--lmsh-display);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--lmsh-ink);
}
#page-container .lmsh-theme .lmsh-theme__intro {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--lmsh-ink-soft);
}

#page-container .lmsh-theme__corps { display: flex; flex-direction: column; flex-grow: 1; }
/* Sans cette ligne, le display ci-dessus l'emporterait sur l'attribut hidden. */
#page-container .lmsh-theme__corps[hidden] { display: none; }

#page-container .lmsh-theme .lmsh-theme__liste {
	flex-grow: 1;              /* l'« À savoir » reste au pied, panneaux d'une rangée égaux */
	margin: 0;
	padding: 0;
	list-style: none;
}
#page-container .lmsh-theme .lmsh-theme__element {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: 0;
	padding: 15px 60px 15px 28px;
	border-top: 1px solid #efebe3;
	list-style: none;
}
/* Flèche dessinée (masque) : muette pour les lecteurs d'écran. */
#page-container .lmsh-theme .lmsh-theme__element::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 26px;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background-color: var(--lmsh-primary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .15s ease;
}
#page-container .lmsh-theme .lmsh-theme__element--externe::after {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6'/%3E%3Cpath d='M10 14 21 3'/%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3C/svg%3E");
}
#page-container .lmsh-theme .lmsh-theme__lien {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--lmsh-ink);
	text-decoration: none;
}
/* Toute la ligne est cliquable ; le lien, lui, ne porte que le titre. */
#page-container .lmsh-theme .lmsh-theme__lien::after {
	content: "";
	position: absolute;
	inset: 0;
}
#page-container .lmsh-theme .lmsh-theme__resume {
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-theme .lmsh-theme__element:hover { background: var(--lmsh-ground); }
#page-container .lmsh-theme .lmsh-theme__element:hover .lmsh-theme__lien,
#page-container .lmsh-theme .lmsh-theme__lien:focus-visible {
	color: var(--lmsh-primary-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#page-container .lmsh-theme .lmsh-theme__element:hover::after { transform: translateX(3px); }
#page-container .lmsh-theme .lmsh-theme__element--externe:hover::after { transform: none; }
/* Au clavier, l'anneau entoure la ligne entière. */
#page-container .lmsh-theme .lmsh-theme__lien:focus-visible { outline: none; }
#page-container .lmsh-theme .lmsh-theme__lien:focus-visible::after {
	outline: 3px solid var(--lmsh-primary);
	outline-offset: -3px;
}

#page-container .lmsh-theme__asavoir {
	margin: 8px 28px 26px;
	padding: 14px 16px;
	border-radius: 10px;
	background: #f3efe6;
}
#page-container .lmsh-theme .lmsh-theme__asavoir-titre {
	margin: 0 0 4px;
	padding: 0;
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lmsh-primary-dark);
}
#page-container .lmsh-theme .lmsh-theme__asavoir-texte {
	margin: 0;
	padding: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #3c3a34;
}
#page-container .lmsh-theme .lmsh-theme__asavoir-texte a { color: var(--lmsh-primary-dark); text-decoration: underline; }

@media (max-width: 640px) {
	#page-container .lmsh-themes { grid-template-columns: 1fr; gap: 14px; }
	#page-container .lmsh-theme { border-radius: 14px; }
	#page-container .lmsh-theme .lmsh-theme__photo { height: 120px; }
	#page-container .lmsh-theme__entete,
	#page-container .lmsh-theme--photo .lmsh-theme__entete { padding: 18px 16px; gap: 14px; }
	#page-container .lmsh-theme__icone { width: 40px; height: 40px; }
	#page-container .lmsh-theme__icone svg { width: 20px; height: 20px; }
	#page-container .lmsh-theme .lmsh-theme__titre { font-size: 1.3125rem; }
	#page-container .lmsh-theme .lmsh-theme__intro { font-size: 0.9375rem; }
	#page-container .lmsh-theme .lmsh-theme__element { padding: 14px 48px 14px 16px; }
	#page-container .lmsh-theme .lmsh-theme__element::after { right: 16px; }
	#page-container .lmsh-theme__asavoir { margin: 6px 16px 18px; padding: 12px 14px; }

	/* Replié : on garde le titre et son introduction, la photo attend l'ouverture. */
	#page-container .lmsh-theme:has(.lmsh-theme__bascule):not(.est-ouvert) .lmsh-theme__photo { display: none; }
	#page-container .lmsh-theme.est-ouvert { border-color: var(--lmsh-primary); }
	#page-container .lmsh-theme:has(.lmsh-theme__bascule) .lmsh-theme__entete { padding-right: 52px; }
	#page-container .lmsh-theme .lmsh-theme__bascule {
		display: inline;
		margin: 0;
		padding: 0;
		border: 0;
		background: none;
		font: inherit;
		color: inherit;
		text-align: left;
		cursor: pointer;
	}
	/* Tout l'en-tête est la cible. */
	#page-container .lmsh-theme .lmsh-theme__bascule::after {
		content: "";
		position: absolute;
		inset: 0;
	}
	#page-container .lmsh-theme .lmsh-theme__bascule::before {
		content: "";
		position: absolute;
		top: 21px;
		right: 16px;
		width: 22px;
		height: 22px;
		background-color: var(--lmsh-primary);
		-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
		transition: transform .2s ease;
	}
	#page-container .lmsh-theme .lmsh-theme__bascule[aria-expanded="true"]::before { transform: rotate(180deg); }
	#page-container .lmsh-theme .lmsh-theme__bascule:focus-visible { outline: none; }
	#page-container .lmsh-theme .lmsh-theme__bascule:focus-visible::after {
		outline: 3px solid var(--lmsh-primary);
		outline-offset: -3px;
		border-radius: 14px;
	}
}
@media (prefers-reduced-motion: reduce) {
	#page-container .lmsh-theme .lmsh-theme__element::after,
	#page-container .lmsh-theme .lmsh-theme__bascule::before { transition: none; }
}

/* --- Navigation de rubrique (section 35) : intitulés de thèmes. Quand
   l'univers a des thèmes, la liste reprend ses sous-parties, dans le même
   ordre que sur la page d'univers. --- */
#page-container .lmsh-nav-rubrique .lmsh-nav-rubrique__groupe {
	margin: 18px 22px 6px;
	padding: 0;
	font-family: var(--lmsh-body);
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-nav-rubrique .lmsh-nav-rubrique__titre + .lmsh-nav-rubrique__groupe { margin-top: 12px; }
@media (min-width: 641px) and (max-width: 980px) {
	#page-container .lmsh-nav-rubrique--bas .lmsh-nav-rubrique__groupe { margin-top: 14px; }
}

/* ==========================================================================
   39. ACCUEIL — L'AGENDA DE LA COMMUNE ET « À LA UNE »
   L'agenda : deux lignes de détail par évènement, quand et où (en gras,
   vert sombre), puis de quoi il s'agit (une ligne). « À la une » passe à
   la moitié de la largeur ; chaque visuel s'ouvre en grand dans une
   fenêtre (élément <dialog>), à sa taille réelle dans la limite de l'écran.
   ========================================================================== */

#page-container .lmsh-moment-col > .lmsh-section-titre,
#page-container .lmsh-alaune > .lmsh-section-titre { margin-bottom: 20px; }

#page-container .lmsh-moment .lmsh-moment__corps { min-width: 0; gap: 3px; }
#page-container .lmsh-moment .lmsh-moment__infos {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.45;
	color: var(--lmsh-primary-dark);
}
/* Le résumé est écrit court (deux lignes) ; il n'est pas coupé pour autant :
   un texte agrandi ou plus espacé doit rester lisible en entier (RGAA 10.12). */
#page-container .lmsh-moment .lmsh-moment__resume {
	display: block;
	font-size: 1rem;
	line-height: 1.45;
	color: var(--lmsh-ink-soft);
}
#page-container a.lmsh-moment__lien:hover .lmsh-moment__titre { text-decoration: underline; text-underline-offset: 3px; }
#page-container a.lmsh-moment__lien:focus-visible { outline: 3px solid var(--lmsh-primary); outline-offset: 2px; }

/* --- « Agrandir » : tout le visuel est le lien, la pastille le signale. --- */
#page-container .lmsh-alaune__zoom {
	position: relative;
	display: block;
	border-radius: 8px;
	cursor: zoom-in;
}
#page-container .lmsh-alaune__loupe {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px 6px 10px;
	border-radius: 999px;
	background: rgba(27, 26, 23, .8);
	color: #fff;
	font-family: var(--lmsh-body);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	pointer-events: none;
}
#page-container .lmsh-alaune__zoom:hover .lmsh-alaune__loupe,
#page-container .lmsh-alaune__zoom:focus-visible .lmsh-alaune__loupe { background: var(--lmsh-primary-dark); }
#page-container .lmsh-alaune__zoom:focus-visible { outline: 3px solid var(--lmsh-primary); outline-offset: 3px; }
#page-container .lmsh-alaune__commandes .lmsh-alaune__pause { margin-left: 4px; }

/* --- La visionneuse --------------------------------------------------- */
#page-container .lmsh-visionneuse {
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 14px;
	background: var(--lmsh-surface);
	color: var(--lmsh-ink);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
	overflow: auto;
}
#page-container .lmsh-visionneuse::backdrop { background: rgba(20, 20, 18, .82); }
#page-container .lmsh-visionneuse__cadre {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 18px 18px;
}
#page-container .lmsh-visionneuse__entete {
	display: flex;
	align-items: center;
	gap: 16px;
}
#page-container .lmsh-visionneuse .lmsh-visionneuse__titre {
	flex-grow: 1;
	margin: 0;
	padding: 0;
	font-family: var(--lmsh-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--lmsh-ink);
}
#page-container .lmsh-visionneuse__fermer {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid var(--lmsh-line);
	border-radius: 10px;
	background: var(--lmsh-surface);
	color: var(--lmsh-ink);
	font-family: var(--lmsh-body);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}
#page-container .lmsh-visionneuse__fermer:hover { border-color: var(--lmsh-primary); background: var(--lmsh-primary-pale); }
#page-container .lmsh-visionneuse__fermer:focus-visible { outline: 3px solid var(--lmsh-primary); outline-offset: 2px; }
/* Taille réelle, sans agrandir au-delà ; réduite si l'écran est plus petit. */
#page-container .lmsh-visionneuse__image {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: calc(100vh - 170px);
	margin: 0 auto;
	border-radius: 6px;
}
#page-container .lmsh-visionneuse .lmsh-visionneuse__legende {
	margin: 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-visionneuse .lmsh-visionneuse__legende[hidden] { display: none; }

@media (max-width: 640px) {
	#page-container .lmsh-visionneuse { max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
	#page-container .lmsh-visionneuse__cadre { padding: 12px; }
	#page-container .lmsh-visionneuse .lmsh-visionneuse__titre { font-size: 1.0625rem; }
	#page-container .lmsh-visionneuse__image { max-height: calc(100vh - 150px); }
}

/* Texte réservé aux lecteurs d'écran (la classe standard de WordPress, que
   le thème ne définissait pas) : dates complètes de l'agenda, « agrandir
   l'image »… */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
	word-wrap: normal !important;
}

/* Accueil, tablette et mobile : les titres de colonne (agenda, « À la une »)
   passent à la ligne au lieu d'élargir la grille au-delà de l'écran. */
@media (max-width: 980px) {
	#page-container .lmsh-moment-grille { grid-template-columns: minmax(0, 1fr); }
	#page-container .lmsh-moment-col > .lmsh-section-titre { flex-wrap: wrap; row-gap: 4px; column-gap: 16px; }
}

/* ==========================================================================
   40. ASSISTANT DU SITE — « Posez votre question »
   Le champ de l'accueil et la page « Votre question » : la réponse rédigée
   par l'IA, puis les pages du site qui en parlent. La mention IA reste
   visible près du champ (transparence exigée par le règlement européen).
   ========================================================================== */

#page-container .lmsh-question__mention,
#page-container .lmsh-hero__carte .lmsh-question__mention {
	margin: 10px 0 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--lmsh-ink-soft);
}

#page-container .lmsh-assistant { max-width: 820px; }
#page-container .lmsh-assistant .lmsh-question { margin: 0; }
#page-container .lmsh-assistant .lmsh-assistant__intro {
	margin: 0 0 16px;
	padding: 0;
	font-size: 1.125rem;
	line-height: 1.5;
	color: var(--lmsh-ink);
}

#page-container .lmsh-assistant .lmsh-assistant__etat {
	margin: 24px 0 0;
	padding: 0;
	font-size: 1.0625rem;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-assistant.a-une-reponse .lmsh-assistant__etat {
	/* L'annonce « Réponse prête » sert aux lecteurs d'écran ; à l'écran, la réponse suffit. */
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
}
#page-container .lmsh-assistant__attente {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}
#page-container .lmsh-assistant__attente::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border: 3px solid var(--lmsh-primary-pale);
	border-top-color: var(--lmsh-primary);
	border-radius: 50%;
	animation: lmsh-tourne .9s linear infinite;
}
@keyframes lmsh-tourne { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
	#page-container .lmsh-assistant__attente::before { animation: none; border-color: var(--lmsh-primary); }
}

/* --- La réponse -------------------------------------------------------- */
#page-container .lmsh-reponse {
	margin: 24px 0 0;
	padding: 30px 34px 28px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 16px;
}
#page-container .lmsh-reponse .lmsh-reponse__titre {
	margin: 0 0 14px;
	padding: 0;
	font-family: var(--lmsh-display);
	font-size: 1.75rem;
	line-height: 1.25;
	color: var(--lmsh-ink);
}
#page-container .lmsh-reponse h3 {
	margin: 22px 0 8px;
	padding: 0;
	font-family: var(--lmsh-display);
	font-size: 1.3125rem;
	line-height: 1.3;
	color: var(--lmsh-ink);
}
#page-container .lmsh-reponse p,
#page-container .lmsh-reponse li {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--lmsh-ink);
}
#page-container .lmsh-reponse p { margin: 0 0 14px; padding: 0; }
#page-container .lmsh-reponse ul { margin: 0 0 14px; padding: 0 0 0 1.3em; list-style: disc; }
#page-container .lmsh-reponse li { margin: 0 0 6px; padding: 0; list-style: disc; }
#page-container .lmsh-reponse a {
	color: var(--lmsh-primary-dark);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}
#page-container .lmsh-reponse a:hover { text-decoration-thickness: 2px; }
#page-container .lmsh-reponse a:focus-visible { outline: 3px solid var(--lmsh-primary); outline-offset: 2px; border-radius: 2px; }

#page-container .lmsh-reponse .lmsh-reponse__sources {
	margin: 22px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid var(--lmsh-line);
}
#page-container .lmsh-reponse .lmsh-reponse__sources h3 {
	margin: 0 0 8px;
	font-family: var(--lmsh-body);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-reponse .lmsh-reponse__sources ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; }
#page-container .lmsh-reponse .lmsh-reponse__sources li { margin: 0; list-style: none; font-size: 1rem; }

/* --- Les pages du site qui en parlent ---------------------------------- */
#page-container .lmsh-assistant__pages { margin: 36px 0 0; }
#page-container .lmsh-assistant__pages h2 {
	margin: 0 0 12px;
	padding: 0;
	font-size: 1.375rem;
}
#page-container .lmsh-assistant__pages ul { margin: 0; padding: 0; list-style: none; }
#page-container .lmsh-assistant__pages li {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--lmsh-line);
	list-style: none;
	font-size: 1.0625rem;
}
#page-container .lmsh-assistant__pages li a { font-weight: 600; }
#page-container .lmsh-assistant__pages li span {
	display: block;
	margin-top: 2px;
	font-size: 0.9375rem;
	color: var(--lmsh-ink-soft);
}

@media (max-width: 640px) {
	#page-container .lmsh-reponse { padding: 22px 18px 20px; border-radius: 14px; }
	#page-container .lmsh-reponse .lmsh-reponse__titre { font-size: 1.5rem; }
	#page-container .lmsh-reponse p,
	#page-container .lmsh-reponse li { font-size: 1.0625rem; }
}

/* ==========================================================================
   41. ACCESSIBILITE — REPRISES DE L'AUDIT RGAA (2026)
   ========================================================================== */

/* Sous-titres dans les accordeons : passes du niveau 4 au niveau 3 pour
   suivre la hierarchie, ils gardent leur taille d'avant. */
#page-container .et_pb_toggle_content h3 { font-size: 1.15rem; line-height: 1.35; }

/* Horaires de la mairie : un vrai tableau, avec ses en-tetes. */
#page-container table.lmsh-horaires {
	border-collapse: collapse;
	margin: 6px 0 18px;
	min-width: min(100%, 420px);
	font-size: 1rem;
}
#page-container table.lmsh-horaires caption {
	text-align: left;
	font-weight: 600;
	padding: 0 0 8px;
	color: var(--lmsh-ink);
}
#page-container table.lmsh-horaires th,
#page-container table.lmsh-horaires td {
	padding: 7px 14px 7px 0;
	border-bottom: 1px solid var(--lmsh-line);
	text-align: left;
	vertical-align: top;
}
#page-container table.lmsh-horaires thead th { font-weight: 600; color: var(--lmsh-ink-soft); }
#page-container table.lmsh-horaires tbody th { font-weight: 600; }

/* Citations mises en forme comme telles. */
#page-container .et_pb_text blockquote {
	margin: 12px 0 20px;
	padding: 4px 0 4px 20px;
	border-left: 4px solid var(--lmsh-primary);
	font-style: italic;
}

/* Mots recherches, surlignes dans les resultats : texte fonce sur fond clair. */
#page-container mark {
	background: #fde68a;
	color: var(--lmsh-ink);
	padding: 0 2px;
	border-radius: 2px;
}

/* Agenda : l'anneau de focus de The Events Calendar manquait de contraste. */
#page-container .tribe-common a:focus-visible,
#page-container .tribe-common button:focus-visible,
#page-container .tribe-common input:focus-visible,
#page-container .tribe-common select:focus-visible {
	outline: 3px solid var(--lmsh-accent) !important;
	outline-offset: 2px !important;
}

/* Liens places dans un texte : soulignes, pour ne pas reposer sur la seule
   couleur (RGAA 10.6). Les liens-composants (cartes, boutons, menus), qui
   portent tous une classe, gardent leur dessin. */
#page-container main p a:not([class]),
#page-container main li a:not([class]),
#page-container main td a:not([class]),
#page-container main dd a:not([class]),
#page-container .lmsh-pied p a:not([class]) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}
#page-container main p a:not([class]):hover,
#page-container main li a:not([class]):hover,
#page-container .lmsh-pied p a:not([class]):hover { text-decoration-thickness: 2px; }

/* --- Recherche : réponse directe et résultats ----------------------------- */
#page-container .lmsh-reponse-directe {
	margin: 28px 0 0;
	padding: 20px 24px;
	border-left: 4px solid var(--lmsh-primary);
	border-radius: 0 12px 12px 0;
	background: var(--lmsh-surface);
}
#page-container .lmsh-reponse-directe h2 { margin: 0 0 8px; padding: 0; font-size: 1.375rem; }
#page-container .lmsh-reponse-directe p,
#page-container .lmsh-reponse-directe li { font-size: 1.0625rem; line-height: 1.55; }
#page-container .lmsh-reponse-directe ul { margin: 8px 0 8px 1.2em; padding: 0; }
#page-container .lmsh-reponse-directe p:last-child { margin-bottom: 0; padding-bottom: 0; }
#page-container .lmsh-reponse-directe__etat { font-weight: 600; color: var(--lmsh-primary-dark); }
#page-container .lmsh-assistant__pages li .lmsh-resultat__resume {
	display: block;
	margin-top: 4px;
	font-size: 1rem;
	line-height: 1.5;
	color: var(--lmsh-ink);
}
#page-container .lmsh-assistant__pages ul.lmsh-resultat__suggestions li { padding: 8px 0; }

/* ==========================================================================
   42. CONFORT DE LECTURE — panneau et reglages (inc/confort.php)
   Chaque reglage pose une classe sur <html> : lmsh-taille-125/150/200,
   lmsh-contraste (section 13), lmsh-espace, lmsh-police, lmsh-liens,
   lmsh-curseur, lmsh-immobile. Le script pose en plus deux classes
   d'ajustement de l'en-tete : lmsh-menu-replie et lmsh-entete-libre.
   ========================================================================== */

/* --- Taille du texte : la racine grandit, tout le texte suit (section 2) --- */
html.lmsh-taille-125 { font-size: 125%; }
html.lmsh-taille-150 { font-size: 150%; }
html.lmsh-taille-200 { font-size: 200%; }

/* Tailles en px venues d'ailleurs, remises en rem pour qu'elles suivent aussi.
   L'agenda (The Events Calendar) range les siennes dans des variables. */
html:root {
	--tec-font-size-0: 0.6875rem;
	--tec-font-size-1: 0.75rem;
	--tec-font-size-2: 0.875rem;
	--tec-font-size-3: 1rem;
	--tec-font-size-4: 1.125rem;
	--tec-font-size-5: 1.25rem;
	--tec-font-size-6: 1.375rem;
	--tec-font-size-7: 1.5rem;
	--tec-font-size-8: 1.75rem;
	--tec-font-size-9: 2rem;
	--tec-font-size-10: 2.625rem;
}

/* Le CSS additionnel du personnalisateur, herite de l'ancien site, fixe en px
   et en !important les titres des pages filles de 17, 98 et 166. Memes
   tailles, en rem. Le pied de page, qu'il grossissait aussi, reprend les
   siennes (section 7). */
body.parent-pageid-17 #page-container h2,
body.parent-pageid-98 #page-container h2,
body.parent-pageid-166 #page-container h2 { font-size: 2.1875rem !important; }
body.parent-pageid-17 #page-container h3 { font-size: 1.5625rem !important; }
body.parent-pageid-17 #page-container .lmsh-pied :is(h2, h3),
body.parent-pageid-98 #page-container .lmsh-pied :is(h2, h3),
body.parent-pageid-166 #page-container .lmsh-pied :is(h2, h3) { font-size: 1.25rem !important; }

/* Une adresse courriel est un seul « mot » : en tres grand, sur telephone,
   elle depassait de l'ecran. Elle peut desormais passer a la ligne. */
#page-container a[href^="mailto:"] { overflow-wrap: anywhere; }
/* Meme chose pour tout mot trop long pour la ligne (adresse dans un resume). */
#page-container main { overflow-wrap: break-word; }

/* Boites de hauteur fixe qui contiennent du texte : en em, elles grandissent
   avec lui. */
.lmsh-recherche__champ,
.lmsh-recherche__bouton { height: 3.1em; }
#page-container .et_pb_search input.et_pb_s { height: 3.06em !important; }
.lmsh-etape__num { width: 2.1em; height: 2.1em; }

/* --- Le bouton, dans la barre du haut --------------------------------------
   C'est lui qu'une personne malvoyante doit trouver sans aide, avant d'avoir
   agrandi quoi que ce soit : 20 px en gras, blanc sur la barre sombre
   (contraste 17:1), pictogramme de l'accessibilite, cible de 44 px. */
.lmsh-barre__inner { position: relative; }
.lmsh-barre button.lmsh-confort__bouton {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	margin-left: auto;   /* renvoye a la ligne (texte agrandi), il reste a droite */
	min-height: 44px;
	padding: .3em .8em .3em .35em;
	font-family: var(--lmsh-body);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.15;
	color: #1b1a17 !important;
	background: #ffffff;
	border: 2px solid #ffffff;
	border-radius: 999px;
	text-decoration: none;
}
.lmsh-barre button.lmsh-confort__bouton:hover {
	color: #1b1a17 !important;
	background: #f1ede4;
	border-color: #f1ede4;
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: .15em;
}
.lmsh-barre button.lmsh-confort__bouton:focus-visible {
	outline: 3px solid #ffffff;
	outline-offset: 3px;
}
.lmsh-confort__icone {
	flex: none;
	width: 1.5em;
	height: 1.5em;
	color: var(--lmsh-primary);
}
.lmsh-confort__chevron {
	flex: none;
	width: .65em;
	height: .45em;
}
/* Hors telephone, la barre gagne 3 px en haut et en bas : l'anneau de
   focus du bouton n'est plus coupe par le bord de l'ecran. */
@media (min-width: 641px) {
	.lmsh-barre .lmsh-barre__inner { padding-top: 6px; padding-bottom: 6px; }
}
/* Ouvert : anneau vert et chevron retourne. */
.lmsh-barre button.lmsh-confort__bouton[aria-expanded="true"] { box-shadow: inset 0 0 0 3px var(--lmsh-primary); }
.lmsh-confort__bouton[aria-expanded="true"] .lmsh-confort__chevron { transform: rotate(180deg); }

/* Sur telephone : une ligne a lui, sur toute la largeur de la barre. La
   barre fait alors deux lignes (trois sur les plus petits ecrans) : le
   script decide si barre et en-tete restent fixes (voir ajuster()). */
@media (max-width: 640px) {
	:root { --lmsh-barre-h: 84px; }   /* valeur de depart, avant mesure */
	.lmsh-barre button.lmsh-confort__bouton {
		flex: 1 1 100%;
		justify-content: center;
		min-height: 48px;
	}
}

/* --- Le panneau ------------------------------------------------------------- */
.lmsh-confort {
	position: absolute;
	top: calc(100% + 1px);
	right: 0;
	z-index: 2;
	box-sizing: border-box;
	width: min(28rem, calc(100vw - 16px));
	max-height: calc(100vh - var(--lmsh-barre-h) - 12px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 1rem 1.25rem 1.1rem;
	background: var(--lmsh-surface);
	color: var(--lmsh-ink);
	border: 1px solid var(--lmsh-line);
	border-top: 3px solid var(--lmsh-primary);
	border-radius: 0 0 var(--lmsh-rayon) var(--lmsh-rayon);
	box-shadow: 0 14px 34px rgba(27, 26, 23, .22);
	font-family: var(--lmsh-body);
	font-size: 1rem;
	line-height: 1.45;
	text-align: left;
}
.lmsh-confort[hidden] { display: none; }
@media (max-width: 640px) {
	.lmsh-confort { right: 8px; }
}

.lmsh-confort p { margin: 0; padding: 0; }
.lmsh-confort__tete {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .35rem;
}
.lmsh-confort .lmsh-confort__titre {
	font-family: var(--lmsh-display);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
}
.lmsh-confort .lmsh-confort__intro {
	margin-bottom: .9rem;
	font-size: .95rem;
	color: var(--lmsh-ink-soft);
}

.lmsh-confort button {
	font-family: inherit;
	cursor: pointer;
}
.lmsh-confort__fermer,
.lmsh-confort__action {
	min-height: 44px;
	padding: .45em .95em;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--lmsh-primary-dark);
	background: var(--lmsh-surface);
	border: 1.5px solid var(--lmsh-primary);
	border-radius: 8px;
}
.lmsh-confort__fermer:hover,
.lmsh-confort__action:hover { background: var(--lmsh-primary-pale); }
.lmsh-confort button:focus-visible,
.lmsh-confort input:focus-visible {
	outline: 3px solid var(--lmsh-accent);
	outline-offset: 2px;
}

.lmsh-confort__groupe {
	min-width: 0;
	margin: 0 0 .9rem;
	padding: .85rem 0 0;
	border: 0;
	border-top: 1px solid var(--lmsh-line);
}
.lmsh-confort .lmsh-confort__legende {
	float: left;
	width: 100%;
	margin: 0 0 .55rem;
	padding: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--lmsh-ink);
}
.lmsh-confort__legende + * { clear: both; }

/* Tailles : quatre cartes cote a cote, deux par rang quand le panneau est
   etroit (telephone). Le bouton radio reste visible : l'etat ne repose pas
   sur la seule couleur. */
.lmsh-confort { container-type: inline-size; }
.lmsh-confort__tailles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: .5rem;
}
@container (max-width: 25rem) {
	.lmsh-confort__tailles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Trois rangs : le rond en haut, le « A » au milieu, le nom en bas, aligne
   d'une carte a l'autre. */
.lmsh-confort__taille {
	display: grid;
	grid-template-rows: auto 1fr auto;
	justify-items: center;
	row-gap: .3rem;
	padding: .55rem .3rem .6rem;
	border: 1.5px solid var(--lmsh-line);
	border-radius: 10px;
	background: var(--lmsh-surface);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-wrap: balance;
	cursor: pointer;
}
.lmsh-confort__taille:hover { border-color: var(--lmsh-primary); }
/* Le focus encadre toute la carte plutot que le petit rond. */
@supports selector(:has(*)) {
	.lmsh-confort__taille:has(input:focus-visible) {
		outline: 3px solid var(--lmsh-accent);
		outline-offset: 2px;
	}
	.lmsh-confort .lmsh-confort__taille input:focus-visible { outline: none; }
}
.lmsh-confort__taille:has(input:checked) {
	border-color: var(--lmsh-primary);
	background: var(--lmsh-primary-pale);
	color: var(--lmsh-primary-dark);
}
.lmsh-confort__taille input,
.lmsh-confort__option input {
	width: 1.3rem;
	height: 1.3rem;
	margin: 0;
	accent-color: var(--lmsh-primary);
	cursor: pointer;
}
.lmsh-confort__a {
	align-self: end;
	font-family: var(--lmsh-display);
	font-weight: 700;
	line-height: 1;
	color: var(--lmsh-ink);
}
.lmsh-confort__a--100 { font-size: 1rem; }
.lmsh-confort__a--125 { font-size: 1.25rem; }
.lmsh-confort__a--150 { font-size: 1.5rem; }
.lmsh-confort__a--200 { font-size: 2rem; }

/* Cases a cocher : la precision sous l'intitule, reliee par aria-describedby. */
.lmsh-confort__option {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	column-gap: .7rem;
	align-items: start;
	padding: .4rem 0;
}
.lmsh-confort__option input { grid-row: 1 / span 2; margin-top: .1rem; }
.lmsh-confort__option label {
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
}
.lmsh-confort__aide {
	display: block;
	font-size: .9rem;
	line-height: 1.4;
	color: var(--lmsh-ink-soft);
}
.lmsh-confort__ecoute .lmsh-confort__aide { margin-top: .45rem; }

.lmsh-confort__pied {
	padding-top: .9rem;
	border-top: 1px solid var(--lmsh-line);
}
.lmsh-confort .lmsh-confort__etat {
	margin-top: .5rem;
	font-weight: 600;
	color: var(--lmsh-primary-dark);
}
.lmsh-confort .lmsh-confort__etat:empty { margin-top: 0; }

/* --- Ecoute de la page ------------------------------------------------------ */
.lmsh-lecture-stop {
	position: fixed;
	right: 16px;
	bottom: 16px;
	z-index: 100001;
	min-height: 48px;
	padding: .7rem 1.2rem;
	font-family: var(--lmsh-body);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
	background: var(--lmsh-accent);
	border: 2px solid #ffffff;
	border-radius: 999px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
	cursor: pointer;
}
.lmsh-lecture-stop[hidden] { display: none; }
.lmsh-lecture-stop:hover { background: #8a3512; }
.lmsh-lecture-stop:focus-visible { outline: 3px solid var(--lmsh-ink); outline-offset: 3px; }
/* Carre « stop », dessine : muet pour les lecteurs d'ecran. */
.lmsh-lecture-stop::before {
	content: "";
	display: inline-block;
	width: .7em;
	height: .7em;
	margin-right: .5em;
	background: currentColor;
	border-radius: 2px;
}
/* Le passage en cours de lecture : cadre, et halo blanc pour les fonds sombres. */
.lmsh-lecture-bloc {
	outline: 3px solid var(--lmsh-accent) !important;
	outline-offset: 4px;
	border-radius: 3px;
	box-shadow: 0 0 0 7px rgba(255, 255, 255, .85);
}

/* --- Texte plus espace ------------------------------------------------------ */
html.lmsh-espace body * {
	letter-spacing: .08em !important;
	word-spacing: .16em !important;
}
html.lmsh-espace #page-container :is(p, li, dd, dt, td, th, blockquote, figcaption, label, address) { line-height: 1.8 !important; }
html.lmsh-espace #page-container :is(h1, h2, h3, h4, h5, h6) { line-height: 1.35 !important; }
html.lmsh-espace #page-container p { margin-bottom: .6em; }

/* --- Police tres lisible : Atkinson Hyperlegible, chargee a la demande ------- */
html.lmsh-police {
	--lmsh-display: 'Atkinson Hyperlegible', 'Source Sans 3', system-ui, sans-serif;
	--lmsh-body:    'Atkinson Hyperlegible', 'Source Sans 3', system-ui, sans-serif;
}
html.lmsh-police body,
html.lmsh-police :is(input, select, textarea, button) { font-family: var(--lmsh-body); }

/* --- Liens soulignes -------------------------------------------------------- */
html.lmsh-liens a[href] {
	text-decoration-line: underline !important;
	text-decoration-thickness: max(2px, .08em) !important;
	text-underline-offset: .18em !important;
}
/* Le logo n'est fait que d'une image : le trait tomberait sous un espace. */
html.lmsh-liens .logo_container a[href] { text-decoration-line: none !important; }

/* --- Grand pointeur (48 px, contour blanc : visible sur tous les fonds) ----- */
html.lmsh-curseur,
html.lmsh-curseur * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M7 4 L7 40 L16 31.5 L22 45 L29.5 41.8 L23.6 28.6 L36 28.6 Z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 7 4, auto !important;
}
html.lmsh-curseur :is(a[href], button, [role="button"], label, select, summary, input[type="checkbox"], input[type="radio"], input[type="submit"], input[type="button"]),
html.lmsh-curseur :is(a[href], button, [role="button"], label, summary) * {
	cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M17 7 a3.5 3.5 0 0 1 7 0 V21 a3 3 0 0 1 6 0 v1.5 a3 3 0 0 1 6 0 v2 a3 3 0 0 1 6 0 V35 c0 6.5 -4.5 10.5 -10.5 10.5 H26 c-4 0 -6.2 -1.8 -8.8 -4.6 L7.6 30.4 c-1.6 -1.7 -1.4 -4 .3 -5.4 c1.6 -1.3 3.8 -1.1 5.2 .5 L17 29.5 Z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 20 4, pointer !important;
}
html.lmsh-curseur :is(input:not([type]), input[type="text"], input[type="search"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], textarea) { cursor: text !important; }

/* --- Arreter les animations ------------------------------------------------- */
html.lmsh-immobile *,
html.lmsh-immobile *::before,
html.lmsh-immobile *::after {
	animation-duration: 0s !important;
	animation-iteration-count: 1 !important;
	transition-duration: 0s !important;
	transition-delay: 0s !important;
	scroll-behavior: auto !important;
}

/* --- En-tete : menu replie ---------------------------------------------------
   Sur grand ecran, quand le menu ne tient plus sur une ligne (texte agrandi ou
   espace), le bouton « Menu » du mobile prend le relais. Reprend les regles
   de Divi pour les ecrans de 980 px et moins. */
@media (min-width: 981px) {
	html.lmsh-menu-replie #top-menu-nav { display: none; }
	html.lmsh-menu-replie #et_mobile_nav_menu { display: block; }
	html.lmsh-menu-replie #et-top-navigation { margin-right: 0; }
}

/* --- En-tete libre -------------------------------------------------------------
   Quand la barre et l'en-tete fixes prendraient plus du quart de l'ecran
   (petit ecran, texte agrandi), ils defilent avec la page. */
html.lmsh-entete-libre .lmsh-barre { position: relative; }
html.lmsh-entete-libre body #main-header,
html.lmsh-entete-libre body #main-header.et-fixed-header {
	position: relative !important;
	top: 0 !important;
}
html.lmsh-entete-libre body #page-container { padding-top: 0 !important; }
html.lmsh-entete-libre #page-container .lmsh-colonne-nav .lmsh-module-nav { top: 24px; }
html.lmsh-entete-libre #page-container .lmsh-colonne-nav .lmsh-nav-rubrique { max-height: calc(100vh - 48px); }

/* Le temps d'appliquer un reglage, les transitions (celles de Divi sur
   l'en-tete) sont suspendues : le script mesure la mise en page finale. */
html.lmsh-bascule *,
html.lmsh-bascule *::before,
html.lmsh-bascule *::after { transition: none !important; }

/* ==========================================================================
   43. EN-TETE — LOUPE DE RECHERCHE (lmsh_loupe_entete)
   A droite de « Ma mairie » ; sur telephone, et quand le menu est replie,
   a gauche du bouton Menu. Taille en px, comme les icones de l'en-tete :
   la hauteur de l'en-tete fixe ne doit pas changer.
   ========================================================================== */

#main-header #et-top-navigation {
	display: flex;
	align-items: center;
}
/* position: relative, comme les entrees du menu de Divi : sinon la zone du
   logo (un calque transparent, en position absolue, large comme tout
   l'en-tete) passe devant la loupe et prend le clic. */
#main-header .lmsh-loupe {
	position: relative;
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 48px;
	height: 48px;
	margin-left: 10px;
	border: 2px solid var(--lmsh-primary);
	border-radius: 50%;
	background: var(--lmsh-surface);
	color: var(--lmsh-primary-dark);
	text-decoration: none;
}
#main-header .lmsh-loupe:hover { background: var(--lmsh-primary-pale); }
/* Sur la page Recherche : pleine, comme l'entree de menu de la page courante. */
#main-header .lmsh-loupe[aria-current="page"] {
	background: var(--lmsh-primary);
	color: #ffffff;
}
#main-header .lmsh-loupe:focus-visible {
	outline: 3px solid var(--lmsh-accent);
	outline-offset: 3px;
}
.lmsh-loupe__icone {
	width: 26px;
	height: 26px;
}
@media (max-width: 980px) {
	#main-header .lmsh-loupe { margin: 0 14px 0 0; }
}
html.lmsh-menu-replie #main-header .lmsh-loupe { margin: 0 14px 0 0; }
/* Divi pose l'icone du menu en haut de sa zone (24 px de marge dessous) :
   la marge est repartie dessus et dessous — meme hauteur, donc meme en-tete
   et menu deroulant au meme endroit — et l'icone tombe au niveau de la loupe
   (le dessin de l'icone est un peu haut dans sa ligne : 14 + 10 plutot que 12 + 12). */
#main-header #et-top-navigation .mobile_menu_bar {
	padding-top: 14px;
	padding-bottom: 10px;
}

/* ==========================================================================
   44. ACCUEIL — ACTUALITES, CONSEIL MUNICIPAL, RESTEZ INFORME (inc/accueil.php)
   Ordre de la page : bandeau de recherche, univers, actualites, agenda et
   « A la une », acces rapides, vie municipale. Les fonds alternent (creme,
   blanc) pour que chaque section se lise d'un bloc. Les cartes reprennent le
   dessin des cartes d'agenda : fond blanc, filet, rayon de 12 px.
   ========================================================================== */

/* --- Espacement des nouvelles sections --- */
body.home #page-container .et_pb_section:has(.lmsh-actus) { padding: 0 0 56px; }
body.home #page-container .et_pb_section:has(.lmsh-civique) {
	padding: 48px 0 56px;
	background-color: var(--lmsh-surface);
	border-top: 1px solid var(--lmsh-line);
}

/* --- Les actualites : trois cartes ; le titre est le lien, un calque rend
   toute la carte cliquable --- */
#page-container ul.lmsh-actus__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
#page-container ul.lmsh-actus__liste > li {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 22px 24px 24px;
	list-style: none;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-top: 4px solid var(--lmsh-primary);
	border-radius: var(--lmsh-rayon);
	transition: box-shadow .15s ease, transform .15s ease;
}
#page-container ul.lmsh-actus__liste > li:before { content: none; }
#page-container ul.lmsh-actus__liste > li:hover {
	box-shadow: 0 8px 22px rgba(27, 26, 23, .10);
	transform: translateY(-2px);
}
#page-container .lmsh-actus__titre {
	margin: 0;
	padding: 0;
	font-size: 1.25rem;
	line-height: 1.3;
}
#page-container .lmsh-actus__lien {
	color: var(--lmsh-ink) !important;
	text-decoration: none;
}
/* Le calque : tout l'espace de la carte mene a l'article. */
#page-container .lmsh-actus__lien::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: var(--lmsh-rayon);
}
#page-container .lmsh-actus__item:hover .lmsh-actus__lien { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
#page-container .lmsh-actus__lien:focus-visible { outline: none; }
#page-container .lmsh-actus__lien:focus-visible::after {
	outline: 3px solid var(--lmsh-accent);
	outline-offset: 3px;
}
#page-container .lmsh-actus__date {
	margin: 0;
	padding: 0;
	font-size: .9375rem;
	font-weight: 600;
	color: var(--lmsh-primary-dark);
}
#page-container .lmsh-actus__resume {
	margin: 4px 0 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--lmsh-ink-soft);
}

/* --- Acces rapides : quatre par rang, deux sur telephone, un seul quand le
   texte est tres agrandi (la largeur minimale est en rem) --- */
#page-container ul.lmsh-acces {
	grid-template-columns: repeat(auto-fill, minmax(max(9rem, 23%), 1fr));
}

/* --- Vie municipale : deux cartes cote a cote --- */
.lmsh-civique {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	align-items: stretch;
}
.lmsh-civique__carte {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 26px 28px 28px;
	background: var(--lmsh-ground);
	border: 1px solid var(--lmsh-line);
	border-radius: 16px;
}
#page-container .lmsh-civique__carte h2 {
	margin: 0 0 4px;
	padding: 0;
	font-size: 1.6rem;
	line-height: 1.2;
}
#page-container .lmsh-civique__carte p { margin: 0; padding: 0; }
#page-container .lmsh-civique__texte {
	font-size: 1.0625rem;
	line-height: 1.55;
	color: var(--lmsh-ink);
}
#page-container ul.lmsh-civique__liens {
	list-style: none;
	margin: 0;
	padding: 2px 0 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
#page-container ul.lmsh-civique__liens > li { margin: 0; padding: 0; list-style: none; }
#page-container ul.lmsh-civique__liens > li:before { content: none; }
#page-container ul.lmsh-civique__liens a {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--lmsh-primary);
}

/* La prochaine seance : la pastille de date de l'agenda, pour qu'on la
   reconnaisse. */
#page-container a.lmsh-civique__seance {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 18px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: var(--lmsh-rayon);
	color: var(--lmsh-ink) !important;
	text-decoration: none;
}
#page-container a.lmsh-civique__seance:hover { border-color: var(--lmsh-primary); }
#page-container .lmsh-civique__seance--attente {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 16px 18px;
	background: #f3efe6;
	border: 1px dashed #c9c2b4;
	border-radius: var(--lmsh-rayon);
}
#page-container a.lmsh-civique__seance[hidden],
#page-container .lmsh-civique__seance--attente[hidden] { display: none; }
.lmsh-civique__seance-corps { display: flex; flex-direction: column; gap: 2px; }
.lmsh-civique__seance-titre {
	font-family: var(--lmsh-display);
	font-size: 1.2rem;
	font-weight: 600;
}
.lmsh-civique__seance-infos { font-size: 1rem; color: var(--lmsh-ink-soft); }

/* Restez informe : trois canaux, chacun avec son pictogramme. */
#page-container ul.lmsh-canaux {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
#page-container ul.lmsh-canaux > li {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#page-container ul.lmsh-canaux > li:before { content: none; }
.lmsh-canal__logo,
.lmsh-canal__rond {
	flex: none;
	width: 52px;
	height: 52px;
	border-radius: 14px;
}
.lmsh-canal__logo { object-fit: cover; border: 1px solid var(--lmsh-line); }
.lmsh-canal__rond {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lmsh-primary-pale);
	color: var(--lmsh-primary-dark);
}
.lmsh-canal__picto { width: 28px; height: 28px; }
.lmsh-canal__corps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
#page-container .lmsh-canal__nom {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--lmsh-ink);
}
#page-container .lmsh-canal__texte {
	font-size: 1rem;
	line-height: 1.5;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-canal__liens {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
	margin-top: 2px;
}
#page-container .lmsh-canal__liens a {
	font-size: 1rem;
	font-weight: 600;
	color: var(--lmsh-primary);
}
#page-container .lmsh-canaux__aide {
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid var(--lmsh-line);
	font-size: .9375rem;
	line-height: 1.5;
	color: var(--lmsh-ink-soft);
}

@media (max-width: 980px) {
	#page-container ul.lmsh-actus__liste { grid-template-columns: minmax(0, 1fr); gap: 14px; }
	.lmsh-civique { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	body.home #page-container .et_pb_section:has(.lmsh-actus) { padding-bottom: 40px; }
	body.home #page-container .et_pb_section:has(.lmsh-civique) { padding: 36px 0 40px; }
}
@media (max-width: 640px) {
	#page-container ul.lmsh-actus__liste > li { padding: 18px 18px 20px; }
	.lmsh-civique__carte { padding: 22px 18px 24px; }
	#page-container ul.lmsh-acces { gap: 12px; }
	#page-container .lmsh-acces__lien { min-height: 72px; padding: 14px 14px; font-size: 1rem; }
}

/* Contraste renforce : filets plus fonces. */
html.lmsh-contraste #page-container ul.lmsh-actus__liste > li,
html.lmsh-contraste .lmsh-civique__carte,
html.lmsh-contraste #page-container a.lmsh-civique__seance { border-color: #6b6b6b; }
html.lmsh-contraste #page-container ul.lmsh-actus__liste > li { border-top-color: var(--lmsh-primary); }


/* ==========================================================================
   45. ACTUALITES — page Actualites et pages d'article (inc/actualites.php)
   La page Actualites reprend les cartes de l'accueil, en grille reguliere ;
   un article prend le gabarit des rubriques : colonne des dernieres
   actualites a gauche, texte a droite, lien de retour en fin d'article.
   ========================================================================== */

/* --- Page Actualites --- */
#page-container .lmsh-actus--page { padding: 8px 0 24px; }
/* Dans le contenu d'une page, une regle heritee (section 33) souligne en
   vert tous les liens des modules texte : les titres des cartes et les
   pastilles de pagination reprennent leur dessin. Sans !important sur le
   soulignement : le reglage « Liens soulignes » garde la main. */
#page-container .et_pb_post_content .lmsh-actus a.lmsh-actus__lien {
	color: var(--lmsh-ink) !important;
	text-decoration: none;
}
#page-container .et_pb_post_content .lmsh-actus__item:hover a.lmsh-actus__lien {
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}
#page-container .et_pb_post_content .lmsh-pagination a.page-numbers {
	color: var(--lmsh-ink) !important;
	text-decoration: none;
}
#page-container .et_pb_post_content .lmsh-pagination a.page-numbers:hover { color: var(--lmsh-primary-dark) !important; }
@media (min-width: 641px) and (max-width: 980px) {
	#page-container .lmsh-actus--page ul.lmsh-actus__liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#page-container .lmsh-actus__vide { font-size: 1.125rem; color: var(--lmsh-ink-soft); }

/* Pagination : des pastilles, la page courante pleine (forme et couleur). */
#page-container .lmsh-pagination { margin-top: 36px; }
#page-container .lmsh-pagination ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}
#page-container .lmsh-pagination li { margin: 0; padding: 0; list-style: none; }
#page-container .lmsh-pagination li:before { content: none; }
#page-container .lmsh-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	box-sizing: border-box;
	padding: 0 14px;
	border: 1px solid var(--lmsh-line);
	border-radius: 999px;
	background: var(--lmsh-surface);
	font-size: 1rem;
	font-weight: 600;
	color: var(--lmsh-ink);
	text-decoration: none;
}
#page-container .lmsh-pagination a.page-numbers:hover { border-color: var(--lmsh-primary); color: var(--lmsh-primary-dark); }
#page-container .lmsh-pagination .page-numbers.current {
	background: var(--lmsh-primary);
	border-color: var(--lmsh-primary);
	color: #ffffff;
}
#page-container .lmsh-pagination .page-numbers.dots { border: 0; background: none; min-width: 0; padding: 0 4px; }

/* --- Pages d'article --- */
/* Colonne des dernieres actualites : la date sous chaque titre. */
#page-container .lmsh-nav-actus__date {
	display: block;
	margin-top: 2px;
	font-size: .875rem;
	font-weight: 400;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-nav-rubrique__lien[aria-current="page"] .lmsh-nav-actus__date { color: var(--lmsh-primary-dark); }
#page-container .lmsh-nav-actus__tout {
	margin: 10px 22px 6px;
	padding: 12px 0 0;
	border-top: 1px solid var(--lmsh-line);
	font-size: 1rem;
	font-weight: 600;
}
#page-container .lmsh-nav-actus__tout a { color: var(--lmsh-primary); }
/* Fin de page (tablette, telephone) : le lien de retour est juste au-dessus. */
#page-container .lmsh-nav-rubrique--bas .lmsh-nav-actus__tout { display: none; }

/* Le texte : images a la largeur de la colonne, au plus ; lien de retour. */
#page-container .lmsh-section-article .et_pb_post_content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}
#page-container .lmsh-article-retour {
	max-width: 780px;
	margin: 36px 0 0;
	padding: 20px 0 0;
	border-top: 1px solid var(--lmsh-line);
	font-size: 1.0625rem;
	font-weight: 600;
}
#page-container .lmsh-article-retour a { color: var(--lmsh-primary); }

/* --- Police des modules Texte de Divi ---
   Le reglage par defaut du module Texte, herite de l'ancien site, impose
   Roboto (police que le site ne charge meme pas : repli sur Helvetica ou
   Arial). Il touchait les blocs de l'accueil poses dans ce module
   (actualites, agenda, conseil municipal). Tout module Texte prend la police
   du site, ce qui permet aussi a « Police tres lisible » de s'y appliquer. */
#page-container .et_pb_text { font-family: var(--lmsh-body); }


/* ==========================================================================
   46. ACCUEIL — METEO (inc/meteo.php, [lmsh_meteo])
   ========================================================================== */
/* La carte meteo se range a droite de « Que cherchez-vous ? », a cheval sur
   la photo comme elle ; en dessous sur tablette et telephone. Tailles en rem :
   « Taille du texte » du Confort de lecture les agrandit. */
.lmsh-meteo {
	position: relative;
	box-sizing: border-box;
	margin-top: 16px;
	padding: 20px 24px 18px;
	background: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(27, 26, 23, .13);
	color: var(--lmsh-ink);
	font-size: 1rem;
	line-height: 1.4;
}

@media (min-width: 981px) {
	.lmsh-hero {
		display: grid;
		grid-template-columns: minmax(0, 700px) minmax(0, 1fr);
		column-gap: 24px;
		align-items: start;
	}
	.lmsh-hero__media { grid-column: 1 / -1; }
	/* meme chevauchement que la carte de recherche (.lmsh-hero__carte, margin -64px) */
	.lmsh-meteo { margin-top: -64px; }
}

#page-container .lmsh-meteo__titre {
	margin: 0 0 6px;
	padding: 0;
	font-family: var(--lmsh-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--lmsh-ink);
}

.lmsh-meteo__dessin { flex: none; width: 1.5rem; height: 1.5rem; color: var(--lmsh-primary); }

#page-container .lmsh-meteo__maintenant {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
	margin: 0 0 10px;
	padding: 0;
}
.lmsh-meteo__maintenant .lmsh-meteo__dessin { width: 2.75rem; height: 2.75rem; }
.lmsh-meteo__temperature {
	font-family: var(--lmsh-display);
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1;
}
.lmsh-meteo__temps { font-size: 1.0625rem; color: var(--lmsh-ink-soft); }

#page-container .lmsh-meteo__jours { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--lmsh-line); }
#page-container .lmsh-meteo__jours li {
	display: grid;
	grid-template-columns: 5.5rem 1.5rem minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px solid var(--lmsh-line);
}
.lmsh-meteo__jour { font-weight: 600; }
.lmsh-meteo__prevision { color: var(--lmsh-ink-soft); }
.lmsh-meteo__pluie { display: inline-flex; align-items: center; gap: 2px; color: var(--lmsh-ink-soft); font-size: .9375rem; }
.lmsh-meteo__pluie .lmsh-meteo__dessin { width: 1rem; height: 1rem; }
.lmsh-meteo__minmax { font-weight: 600; white-space: nowrap; text-align: right; }

#page-container .lmsh-meteo__pied {
	margin: 8px 0 0;
	padding: 0;
	font-size: .8125rem;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-meteo__pied a { color: var(--lmsh-primary); text-decoration: underline; white-space: nowrap; }

/* Ecran etroit ou texte tres agrandi : une ligne qui se replie. Le nom du
   jour seul en tete ; le temps garde ses mots entiers, la pluie et les
   temperatures passent a la ligne plutot que de l'ecraser. */
@media (max-width: 420px) {
	#page-container .lmsh-meteo__jours li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
	.lmsh-meteo__jour { flex-basis: 100%; }
	.lmsh-meteo__prevision { flex: 1 1 6em; }
	.lmsh-meteo__minmax { margin-left: auto; }
}
html.lmsh-taille-150 #page-container .lmsh-meteo__jours li,
html.lmsh-taille-200 #page-container .lmsh-meteo__jours li { display: flex; flex-wrap: wrap; gap: 4px 10px; }
html.lmsh-taille-150 .lmsh-meteo__jour,
html.lmsh-taille-200 .lmsh-meteo__jour { flex-basis: 100%; }
html.lmsh-taille-150 .lmsh-meteo__prevision,
html.lmsh-taille-200 .lmsh-meteo__prevision { flex: 1 1 6em; }
html.lmsh-taille-150 .lmsh-meteo__minmax,
html.lmsh-taille-200 .lmsh-meteo__minmax { margin-left: auto; }

/* ==========================================================================
   47. PAGES DE MONUMENTS — L'Orangerie, Le Moulin l'Abbé (inc/monuments.php)
   Composants propres a ces pages : chapo, reperes, chronologie, lexique,
   figure legendee, encadre, galerie, rendez-vous de l'annee. Le reste
   reprend ceux du site : titres de section, cartes « etapes », encart,
   duo contacts / carte verte, agenda. Tailles en rem : la « Taille du
   texte » du Confort de lecture les agrandit.
   ========================================================================== */

#page-container .lmsh-monument-chapo {
	max-width: 62ch;
	margin: 0 0 26px;
	font-size: 1.1875rem;
	line-height: 1.6;
	color: var(--lmsh-ink-soft);
}

/* --- Reperes : cinq faits sous le chapo --- */
#page-container dl.lmsh-reperes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--lmsh-line);
	border-bottom: 1px solid var(--lmsh-line);
}
#page-container .lmsh-reperes > div { padding: 14px 16px 14px 0; }
#page-container .lmsh-reperes dt {
	margin: 0 0 2px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-reperes dd {
	margin: 0;
	font-family: var(--lmsh-display);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.25;
	color: var(--lmsh-ink);
}

/* --- Chronologie : l'annee a gauche, un filet vertical, un point par date --- */
#page-container ol.lmsh-chrono {
	position: relative;
	max-width: 46rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
#page-container ol.lmsh-chrono::before {
	content: "";
	position: absolute;
	top: 10px;
	bottom: 10px;
	left: 5.25rem;
	width: 2px;
	background: var(--lmsh-line);
}
#page-container ol.lmsh-chrono > li {
	position: relative;
	display: grid;
	grid-template-columns: 4.25rem minmax(0, 1fr);
	column-gap: 2.25rem;
	margin: 0;
	padding: 0 0 22px;
	list-style: none;
}
#page-container ol.lmsh-chrono > li::before {
	content: "";
	position: absolute;
	top: 9px;
	left: calc(5.25rem - 5px);
	box-sizing: border-box;
	width: 12px;
	height: 12px;
	border: 2px solid var(--lmsh-primary);
	border-radius: 50%;
	background: var(--lmsh-surface);
}
.lmsh-chrono__an {
	font-family: var(--lmsh-display);
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: right;
	font-variant-numeric: lining-nums tabular-nums;
	color: var(--lmsh-primary-dark);
}
#page-container .lmsh-chrono__titre {
	margin: 2px 0 2px;
	padding: 0;
	font-family: var(--lmsh-body);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--lmsh-ink);
}
#page-container .lmsh-chrono__texte {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--lmsh-ink-soft);
}

/* --- Cartes « etapes » sur deux colonnes : la colonne de contenu d'une
   rubrique est trop etroite pour quatre. --- */
#page-container .lmsh-etapes.lmsh-etapes--deux { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* --- Lexique --- */
#page-container dl.lmsh-lexique {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr);
	gap: 6px 22px;
	margin: 28px 0 0;
}
#page-container .lmsh-lexique dt {
	font-family: var(--lmsh-display);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--lmsh-primary-dark);
}
#page-container .lmsh-lexique dd { margin: 0 0 6px; color: var(--lmsh-ink-soft); }

/* --- Figure legendee, seule ou par deux/trois --- */
#page-container .lmsh-figures {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	gap: var(--lmsh-gouttiere);
	margin: 0;
}
#page-container .lmsh-figure { margin: 0; }
#page-container .lmsh-figure img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	border-radius: var(--lmsh-rayon);
}
#page-container .lmsh-figures .lmsh-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
#page-container .lmsh-figure figcaption {
	margin-top: 8px;
	font-size: 0.9375rem;
	line-height: 1.45;
	color: var(--lmsh-ink-soft);
}

/* --- Encadre : une anecdote, une precision --- */
#page-container .lmsh-encadre {
	margin: 0;
	padding: 18px 22px;
	border-left: 4px solid var(--lmsh-primary);
	border-radius: 0 var(--lmsh-rayon) var(--lmsh-rayon) 0;
	background: var(--lmsh-primary-pale);
}
#page-container .lmsh-encadre p { margin: 0; color: var(--lmsh-ink); }
#page-container .lmsh-encadre p + p { margin-top: 10px; }

/* --- Citation --- */
#page-container .lmsh-citation {
	margin: 0;
	padding: 0 0 0 20px;
	border-left: 2px solid var(--lmsh-accent);
	font-family: var(--lmsh-display);
	font-size: 1.375rem;
	font-style: italic;
	line-height: 1.4;
	color: var(--lmsh-ink);
}
#page-container .lmsh-citation cite {
	display: block;
	margin-top: 6px;
	font-family: var(--lmsh-body);
	font-size: 0.9375rem;
	font-style: normal;
	color: var(--lmsh-ink-soft);
}

/* --- Galerie [lmsh_galerie] : grille de vignettes, visionneuse du site --- */
#page-container ul.lmsh-galerie-photos__grille {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 11.5rem), 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}
#page-container ul.lmsh-galerie-photos__grille > li { margin: 0; padding: 0; list-style: none; }
#page-container ul.lmsh-galerie-photos__grille > li::before { content: none; }
#page-container .lmsh-galerie-photos__lien {
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	max-width: 100%;
	border-radius: 10px;
	background: var(--lmsh-line);
	cursor: zoom-in;
}
#page-container .lmsh-galerie-photos__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}
#page-container .lmsh-galerie-photos__lien:hover .lmsh-galerie-photos__image { transform: scale(1.04); }
#page-container .lmsh-galerie-photos__lien:focus-visible { outline: 3px solid var(--lmsh-primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
	#page-container .lmsh-galerie-photos__image { transition: none; }
	#page-container .lmsh-galerie-photos__lien:hover .lmsh-galerie-photos__image { transform: none; }
}

/* --- Rendez-vous de l'annee : cartes « fixes » de l'agenda, par deux --- */
#page-container ul.lmsh-moment.lmsh-rendez-vous {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}
#page-container .lmsh-rendez-vous .lmsh-moment__lien { height: 100%; box-sizing: border-box; }
#page-container .lmsh-rendez-vous .lmsh-moment__date--fixe { width: 6.5rem; text-align: left; }
#page-container .lmsh-rendez-vous .lmsh-moment__titre { font-family: var(--lmsh-body); font-size: 1.0625rem; line-height: 1.3; }
#page-container .lmsh-rendez-vous .lmsh-moment__note { font-size: 0.9375rem; line-height: 1.45; }
#page-container .lmsh-agenda-lieu__suite + h3 { margin-top: 32px; }

/* --- Infos pratiques : la colonne d'une rubrique est trop etroite pour
   le duo cote a cote ; les contacts passent au-dessus de la carte verte. --- */
#page-container .lmsh-duo.lmsh-duo--empile { grid-template-columns: 1fr; }
#page-container .lmsh-agenda-lieu__vide {
	margin: 0;
	padding: 16px 20px;
	border: 1px dashed var(--lmsh-line);
	border-radius: var(--lmsh-rayon);
	color: var(--lmsh-ink-soft);
}
#page-container .lmsh-agenda-lieu__suite { margin: 16px 0 0; font-weight: 600; }

/* --- Sources --- */
#page-container .lmsh-sources { font-size: 0.9375rem; color: var(--lmsh-ink-soft); }
#page-container .lmsh-sources li { overflow-wrap: anywhere; }

@media (max-width: 767px) {
	#page-container .lmsh-etapes.lmsh-etapes--deux,
	#page-container ul.lmsh-moment.lmsh-rendez-vous { grid-template-columns: 1fr; }
	#page-container ol.lmsh-chrono::before { left: 3.75rem; }
	#page-container ol.lmsh-chrono > li { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1.75rem; }
	#page-container ol.lmsh-chrono > li::before { left: calc(3.75rem - 5px); }
	.lmsh-chrono__an { font-size: 1.125rem; }
	#page-container dl.lmsh-lexique { grid-template-columns: 1fr; gap: 0; }
	#page-container .lmsh-lexique dd { margin-bottom: 12px; }
	/* La periode passe au-dessus du titre : en colonne, elle mangeait la carte. */
	#page-container .lmsh-rendez-vous .lmsh-moment__lien { flex-direction: column; align-items: flex-start; gap: 4px; }
	#page-container .lmsh-rendez-vous .lmsh-moment__date--fixe {
		width: auto;
		font-size: 0.8125rem;
		letter-spacing: .08em;
		text-transform: uppercase;
	}
}
html.lmsh-taille-150 #page-container .lmsh-etapes.lmsh-etapes--deux,
html.lmsh-taille-200 #page-container .lmsh-etapes.lmsh-etapes--deux,
html.lmsh-taille-150 #page-container ul.lmsh-moment.lmsh-rendez-vous,
html.lmsh-taille-200 #page-container ul.lmsh-moment.lmsh-rendez-vous { grid-template-columns: 1fr; }

html.lmsh-contraste #page-container .lmsh-encadre { background: #ffffff; border: 2px solid #000000; border-left-width: 6px; }
html.lmsh-contraste #page-container .lmsh-reperes dt,
html.lmsh-contraste #page-container .lmsh-figure figcaption,
html.lmsh-contraste #page-container .lmsh-chrono__texte { color: #2b2b2b; }

/* ==========================================================================
   47. PAGE CONTACT — noms des elus (verification/contact-elus-ordre.php)
   ========================================================================== */
/* Titres de niveau 3 depuis le retrait de l'intertitre « Le maire et les
   adjoints » (hierarchie des titres, RGAA 9.1), avec l'aspect qu'ils avaient
   au niveau 4 : nom compact, fonction juste dessous. */
#page-container .et_pb_text h3.lmsh-elu {
	font-size: 1.125rem;
	line-height: 1.3;
	margin: 0;
	padding-bottom: 0;
}

/* ==========================================================================
   BLOC ACCORDEON DE WORDPRESS (pages passees a l'editeur de blocs, essai du
   13/11/2026, inc/editeur-blocs.php) : meme dessin que les accordeons Divi
   ci-dessus (cartes blanches a filet clair, titre Fraunces, vert a l'ouverture).
   Tailles en rem : elles suivent le panneau « Confort de lecture ».
   ========================================================================== */
#page-container .et_pb_post_content .wp-block-accordion { margin: 0 0 2rem; }
#page-container .et_pb_post_content .wp-block-accordion-item {
	background-color: var(--lmsh-surface);
	border: 1px solid var(--lmsh-line);
	border-radius: 12px;
	padding: 0 22px;
	margin: 0 0 12px;
}
/* Le titre d'une rubrique garde la meme taille quel que soit son niveau : sur
   les pages d'univers, la section 7 impose 2.1875rem a tout h2 avec
   !important — d'ou le !important ici, sans quoi un titre passe en h2 pour la
   hierarchie (RGAA 9.1) s'afficherait en 35 px. */
#page-container .et_pb_post_content .wp-block-accordion-heading {
	margin: 0;
	padding: 0;
	font-family: var(--lmsh-display);
	font-size: 1.25rem !important;
	line-height: 1.35;
	font-weight: 600;
	color: var(--lmsh-ink);
}
#page-container .et_pb_post_content .wp-block-accordion-heading__toggle {
	padding: 18px 0;
	gap: 12px;
}
#page-container .et_pb_post_content .wp-block-accordion-item.is-open > .wp-block-accordion-heading {
	color: var(--lmsh-primary-dark);
}
#page-container .et_pb_post_content .wp-block-accordion-heading__toggle-icon {
	font-family: var(--lmsh-body);
	font-size: 1.75rem;
	font-weight: 400;
	color: var(--lmsh-primary);
}
#page-container .et_pb_post_content .wp-block-accordion-panel {
	padding: 0 0 18px;
	font-family: var(--lmsh-body);
}
#page-container .et_pb_post_content .wp-block-accordion-panel > :first-child { margin-top: 0; }
/* Les sous-titres d'une rubrique gardent le meme dessin quel que soit leur
   niveau : le niveau suit la hierarchie de la page (RGAA 9.1), pas l'oeil. */
#page-container .et_pb_post_content .wp-block-accordion-panel h3,
#page-container .et_pb_post_content .wp-block-accordion-panel h4,
#page-container .et_pb_post_content .wp-block-accordion-panel h5 {
	font-family: var(--lmsh-display);
	font-size: 1.125rem !important;   /* meme raison que le titre de rubrique */
	line-height: 1.35;
	font-weight: 600;
	color: var(--lmsh-ink);
	margin: 1.25rem 0 .35rem;
}
#page-container .et_pb_post_content .wp-block-accordion-panel p { margin: 0 0 .75rem; }
#page-container .et_pb_post_content .wp-block-accordion-panel a {
	color: var(--lmsh-primary);
	text-decoration: underline;
	text-underline-offset: .15em;
}
#page-container .et_pb_post_content .wp-block-accordion-panel a:hover { color: var(--lmsh-primary-dark); }
@media (max-width: 640px) {
	#page-container .et_pb_post_content .wp-block-accordion-item { padding: 0 16px; }
	#page-container .et_pb_post_content .wp-block-accordion-heading { font-size: 1.125rem !important; }
	#page-container .et_pb_post_content .wp-block-accordion-heading__toggle { padding: 16px 0; }
}
html.lmsh-contraste #page-container .et_pb_post_content .wp-block-accordion-item { border-color: #6b6b6b; }
html.lmsh-contraste #page-container .et_pb_post_content .wp-block-accordion-panel a { color: #00504a; }
