/*
Theme Name: sm-v1
Theme URI: https://www.saint-marcellinois.fr
Description: Thème de www.saint-marcellinois.fr, histoire locale de Saint-Marcellin (issu du thème paul-v2 le 21/11/2026).
Version: 1.0.0
Author: Paul Argoud
Author URI: https://paul.argoud.net
Colors: #218721 #006400 #8b0000 #111 var(--couleur-lien, #006400) #FFF #767676
*/

/* Les styles propres à la section Saint-Marcellin sont dans saint-marcellin.css (chargé sur ses pages seulement). */

/* ─── Polices ─── */

/* Nimbus Sans (URW, AGPL v3 : fonts/NimbusSans/LICENSE), woff2 réduites aux caractères latins */
@font-face
{
	font-display: swap;
	font-family: 'Nimbus Sans';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/NimbusSans/NimbusSans-Regular.woff2') format('woff2');
	unicode-range: U+0000-017F, U+0192, U+02BB-02DD, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FB01-FB02, U+FEFF, U+FFFD;
}

@font-face
{
	font-display: swap;
	font-family: 'Nimbus Sans';
	font-style: italic;
	font-weight: 400;
	src: url('fonts/NimbusSans/NimbusSans-Italic.woff2') format('woff2');
	unicode-range: U+0000-017F, U+0192, U+02BB-02DD, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FB01-FB02, U+FEFF, U+FFFD;
}

@font-face
{
	font-display: swap;
	font-family: 'Nimbus Sans';
	font-style: normal;
	font-weight: 700;
	src: url('fonts/NimbusSans/NimbusSans-Bold.woff2') format('woff2');
	unicode-range: U+0000-017F, U+0192, U+02BB-02DD, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FB01-FB02, U+FEFF, U+FFFD;
}

@font-face
{
	font-display: swap;
	font-family: 'Nimbus Sans';
	font-style: italic;
	font-weight: 700;
	src: url('fonts/NimbusSans/NimbusSans-BoldItalic.woff2') format('woff2');
	unicode-range: U+0000-017F, U+0192, U+02BB-02DD, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215, U+FB01-FB02, U+FEFF, U+FFFD;
}

@font-face
{
	font-display: swap;
	font-family: '3270font';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/3270.woff2') format('woff2');
}

/* ─── Variables ─── */

:root
{
	--couleur-principale: #218721; /* titres, intertitres, boutons, liens par défaut : vert proche de #228b22 (choix de Paul, 21/11/2026), contraste 4,6 sur blanc */
	--couleur-accent: #8b0000; /* survols et dates des cartes : rouge sombre des titres d'événements du site municipal de 2005 */
	--couleur-bandeau: #006400; /* bandeaux de dates, texte blanc (site municipal de 2005) */
	--couleur-lien: #006400; /* liens (21/11/2026, à la place du bleu #4a77b0) : vert foncé, contraste 7,4:1 sur blanc */
	--filets: linear-gradient(to bottom, #b22222 0 3px, #006400 3px 6px, #ff8c00 6px 9px); /* rouge, vert, orange du bandeau de 2005 */
	--couleur-texte: #111; /* corps des textes */
	--font-heading: 'Nimbus Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif; /* titres en Bold Italic */
	--font-body: 'Nimbus Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

	--font-size-base: 1rem;
	--font-size-h4: 1.25rem;
	/* Titres : les mêmes tailles sur toutes les pages (21/11/2026 : les articles, les pages et les archives avaient chacun les
	   leurs, héritées du blog) ; réduites sur un téléphone (media 599px, plus bas) */
	--font-size-h3: 1.75rem;
	--font-size-h2: 2.25rem;
	--font-size-h1: 3rem;

	--line-height-base: 1.5;
	--line-height-heading: 1.2;

	--space-xs: 0.25rem;
	--space-sm: 0.5rem;
	--space-md: 1rem;
	--space-lg: 1.5rem;
	--space-xl: 2rem;
	--space-2xl: 3rem;
}

/* ─── Reset & Base ─── */

*
{
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html
{
	font-size: 100%;
}

body
{
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-around;
	font-family: var(--font-body);
	font-size: var(--font-size-base);
	font-weight: 400;
	line-height: var(--line-height-base);
	padding: 0;
	text-align: center;
	background-color: #FFF;
	color: var(--couleur-texte);
}

h1, h2, h3, h4, h5, h6
{
	color: var(--couleur-principale);
	font-family: var(--font-heading);
	font-style: italic;
	font-weight: 700;
	hyphens: auto;
	-webkit-hyphens: auto;
	-moz-hyphens: auto;
	text-decoration: none;
}

h1 { font-size: var(--font-size-h1); line-height: var(--line-height-heading); }
h2 { font-size: var(--font-size-h2); line-height: var(--line-height-heading); }
h3 { font-size: var(--font-size-h3); line-height: var(--line-height-heading); }
h4 { font-size: var(--font-size-h4); line-height: var(--line-height-heading); }

h2 { margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
h3 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
h4 { margin-top: var(--space-lg); margin-bottom: var(--space-xs); }

p
{
	margin-bottom: var(--space-lg);
}

figure { margin: 0; }

a
{
	color: var(--couleur-principale);
	text-decoration: none;
}

a:hover,
a:focus-visible
{
	color: var(--couleur-accent);
}

button
{
	font: inherit;
}

/* Texte réservé aux lecteurs d'écran (titres masqués, annonces du Load More) */
.screen-reader-text
{
	border: 0 !important;
	clip-path: inset(50%) !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	padding: 0 !important;
	position: absolute !important;
	white-space: nowrap !important;
	width: 1px !important;
}

/* Focus clavier visible partout (22/11/2026, audit d'accessibilité) : contour rouge de 3 px, décalé ; les composants qui ont le
   leur (pied de page, boîte de recherche) le gardent. Champs de saisie : un contour vert, seul indicateur ; vignettes des grilles
   (overflow: hidden) : contour dessiné à l'intérieur ; agrandissement des photos de classe (fond sombre) : contour blanc */
:focus-visible
{
	outline: 3px solid var(--couleur-accent);
	outline-offset: 2px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible
{
	outline: 2px solid var(--couleur-principale);
	outline-offset: 2px;
}

section.grid article a:focus-visible
{
	outline-offset: -3px;
}

.visages-agrandi :focus-visible
{
	outline-color: #fff;
}

/* Lien d'évitement : visible au focus clavier */
.skip-link:focus
{
	background: #FFF;
	clip-path: none !important;
	color: var(--couleur-principale);
	height: auto !important;
	left: .5rem;
	margin: 0 !important;
	outline: 2px solid var(--couleur-principale);
	padding: .75rem 1rem !important;
	top: .5rem;
	width: auto !important;
	z-index: 100000;
}

.aligncenter
{
	margin-left: auto;
	margin-right: auto;
	text-align: center;
	display: block;
}

.alignleft
{
	display: block;
	float: left;
	margin: 0 10px 0 0 !important;
}

.alignright
{
	display: block;
	float: right;
	margin: 0 0 0 10px !important;
}

/* Écran étroit : une image flottante passe sur toute la largeur, sinon le texte se réduit à quelques mots par ligne */
@media (max-width: 768px)
{
	.alignleft,
	.alignright,
	.wp-block-image .alignleft,
	.wp-block-image .alignright
	{
		float: none;
		margin: 0 0 1.5rem !important;
	}
}

/* ─── Layout ─── */

#contenu
{
	width: 100%;
}

#wrap,
body > header > .wrap,
body > footer > .wrap
{
	background-color: #FFF;
	box-sizing: border-box;
	margin: 0 auto;
	max-width: 1190px;
	padding: .75rem .75rem 1.85rem .75rem;
	text-align: center;
	width: 100%;
}

/* ─── Load More ─── */

.load-more-btn
{
	border-bottom:1px solid var(--couleur-principale);
	border-top:1px solid var(--couleur-principale);
	border-left:1px solid transparent;
	border-right:1px solid transparent;
	display: block;
	margin: 2rem auto;
	padding: 1rem 2rem;
	background: none;
	color: var(--couleur-principale);
	cursor: pointer;
	font-size: 1.1rem;
	transition: all 250ms linear;
}
.load-more-btn:hover
{
	/*background: var(--couleur-principale);*/
	color: var(--couleur-accent);
	border-bottom:1px solid var(--couleur-accent);
	border-top:1px solid var(--couleur-accent);
	border-left:1px solid var(--couleur-accent);
	border-right:1px solid var(--couleur-accent);
}

.load-more-btn:disabled,
.load-more-btn[aria-busy="true"]
{
	cursor: progress;
	opacity: .6;
}

/* ─── Recherche en surimpression (<dialog>, cf. functions.php) ─── */

#search-modal
{
	-webkit-backdrop-filter: blur(40px) saturate(180%);
	backdrop-filter: blur(40px) saturate(180%);
	background: rgba(255, 255, 255, .85);
	border: 0;
	color: var(--couleur-principale);
	height: 100%;
	inset: 0;
	margin: 0;
	max-height: none;
	max-width: none;
	padding: 0;
	position: fixed;
	width: 100%;
}

#search-modal[open]
{
	align-items: center;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

#search-modal::backdrop
{
	background: transparent;
}

#search-modal .close-search
{
	background: none;
	border: 0;
	color: #333;
	cursor: pointer;
	font-size: 40px;
	line-height: 1;
	min-height: 44px;
	min-width: 44px;
	padding: 0;
	position: absolute;
	right: 40px;
	top: 30px;
}

#search-modal .close-search:hover
{
	color: var(--couleur-accent);
}

#search-modal .modal-content
{
	max-width: 700px;
	padding: 20px;
	text-align: center;
	width: 100%;
}

#search-modal input[type="search"]
{
	background: transparent;
	border: 0;
	border-bottom: 2px solid #333;
	border-radius: 0;
	box-shadow: none;
	color: var(--couleur-principale);
	font: inherit;
	font-size: 32px;
	padding: 10px 0;
	text-align: center;
	width: 100%;
}

#search-modal input[type="search"]:focus
{
	outline: 2px solid var(--couleur-principale) !important;
	outline-offset: 4px;
}

/* Bouton d'envoi visible (22/11/2026 : masqué, il obligeait à connaître la touche Entrée) */
#search-modal .search-submit
{
	background: var(--couleur-principale);
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	display: inline-block !important;
	font: inherit;
	font-size: 1.125rem;
	margin-top: 1rem;
	min-height: 44px;
	padding: 0 1.5rem;
}

#search-modal .search-submit:hover,
#search-modal .search-submit:focus-visible
{
	background: var(--couleur-accent);
}

#search-modal .search-hint
{
	color: #555;
	font-size: .875rem;
	letter-spacing: 1px;
	margin-top: 20px;
	text-transform: uppercase;
}

/* ─── Blocs WordPress ─── */

.wp-block-quote
{
	padding: .75rem;
}

.wp-block-quote > p:nth-child(1)
{
	margin-top: 0 !important;
}

.wp-block-quote > p:last-of-type
{
	margin-bottom: 0 !important;
}

/* ─── Mailing / Newsletter ─── */

form.mailpoet_form input.mailpoet_text
{
	border: 1px solid var(--couleur-principale);
}

.wpforms-submit { border-radius: 0 !important; }

.wpforms-field input[type="text"],
.wpforms-field input[type="email"],
.wpforms-field input[type="tel"],
.wpforms-field input[type="url"],
.wpforms-field textarea,
.wpforms-field select
{
	border-radius: 0 !important;
}

form.mailpoet_form input.mailpoet_submit,
div.wpforms-container-full input[type="submit"]:not(:hover):not(:active),
div.wpforms-container-full button[type="submit"]:not(:hover):not(:active),
div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full input[type="submit"]:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full button[type="submit"]:not(:hover):not(:active),
.wp-core-ui div.wpforms-container-full .wpforms-page-button:not(:hover):not(:active)
{
	background-color: var(--couleur-principale);
	border: 1px solid var(--couleur-principale);
	color: #FFF;
}

a.photonic-more-button,
a.photonic-more-dynamic
{
	background: var(--couleur-principale);
	border-radius: 0;
	color: #FFF !important;
	display: block;
	font-family: var(--font-body);
	font-weight: 400;
	margin: 0 2px;
	transition: all .2s ease-in-out;
}

a.photonic-more-button:hover
{
	background: var(--couleur-accent);
}

/* ─── Boutons ─── */

form.mailpoet-unsubscribe-reason button
{
	background-color: var(--couleur-principale);
	border: 3px solid var(--couleur-principale);
	color: #FFF;
	cursor: pointer;
	display: inline-block;
	font-size: initial;
	padding: 0.75em 1.6em 0.65em 1.6em;
	text-shadow: 0 1px 1px rgb(0 0 0 / 20%);
	transition: all .2s ease-in-out;
}

form.mailpoet-unsubscribe-reason button:hover
{
	color: var(--couleur-accent);
}

/* ─── Header ─── */

body > header
{
	box-sizing: border-box;
	padding: 0;
}

/* Filets du bandeau de 2005 sous l'en-tête, sur toute la largeur de la page, comme ceux du pied de page (22/11/2026) */
body > header > hr
{
	background: var(--filets);
	border: 0;
	height: 9px;
	box-sizing: border-box;
	margin: 1.075rem 0 1.25rem;
	width: 100%;
}

body > header > div > a
{
	display: inline-block;
}

/* Nom du site et slogan (réglages de WordPress), à la place du logo « AP » du blog d'origine (21/11/2026) : en vert, gras
   italique comme les titres, le slogan dessous en gris ; à leur gauche, le dessin de Pierre Ballouhey (22/11/2026,
   paulv1_logo()), au-dessus d'eux sur un écran étroit */
body > header .site-nom
{
	align-items: center;
	display: inline-flex;
	gap: 1.25rem;
	line-height: 1.1;
	padding: 1.5rem .5rem 1rem;
	text-align: left;
	text-decoration: none;
}

body > header .site-logo
{
	flex: none;
}

body > header .site-logo img
{
	display: block;
	height: auto;
	width: 158px;
}

body > header .site-textes
{
	display: block;
}

body > header .site-titre
{
	color: var(--couleur-principale);
	display: block;
	font-size: 2.5rem;
	font-style: italic;
	font-weight: 700;
	transition: color 150ms linear;
}

body > header .site-slogan
{
	color: #595959;
	display: block;
	font-size: 1rem;
	margin-top: .35rem;
}

body > header .site-nom:hover .site-titre,
body > header .site-nom:focus-visible .site-titre
{
	color: var(--couleur-accent);
}

#wrap > hr,
body > footer hr
{
	border-bottom: 1px solid var(--couleur-principale);
	border-top:0;
	box-sizing: border-box;
	margin: 1.25rem auto;
	max-width: 740px;
	width: 100%;
}

#wrap > hr
{
	margin: 10rem auto;
}

/* ─── Footer ─── */

/* Pied du site (footer.php) : sur fond vert, sous les filets du bandeau de 2005 ; la mention que le site n'est pas celui de
   la ville, et le lien vers la page Facebook. Blanc sur #218721 : contraste 4,6:1 */
body > footer.pied-site
{
	background: var(--filets) top / 100% 9px no-repeat, var(--couleur-principale, #218721);
	color: #fff;
	padding-top: 9px;
}

body > footer.pied-site > .wrap
{
	align-items: center;
	background: none;
	display: flex;
	font-size: .9375rem;
	gap: 1.5rem;
	line-height: 1.5;
	max-width: 52rem;
	padding: 1.5rem 1rem;
	text-align: left;
}

/* Armoiries de la ville, en bas à gauche, sur une pastille blanche, sans légende ; au-dessus du texte sur un écran étroit */
.pied-site .pied-site-blason
{
	flex: none;
}

.pied-site .pied-site-blason img
{
	background: #fff;
	border-radius: 6px;
	display: block;
	height: auto;
	margin: 0 auto;
	width: 88px;
}

@media screen and (max-width: 779px)
{
	body > footer.pied-site > .wrap
	{
		flex-direction: column;
		text-align: center;
	}

}

.pied-site p
{
	margin: 0;
}

.pied-site a,
body > footer.pied-site a,
body > footer.pied-site a:hover,
body > footer.pied-site a:focus-visible
{
	color: #fff;
	text-decoration: underline;
}

.pied-site a:focus-visible
{
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.pied-site .pied-site-reseaux
{
	margin-top: 1rem;
}

.pied-site .pied-site-reseaux a
{
	display: inline-flex;
	padding: 6px;
}

.pied-site .pied-site-reseaux svg
{
	display: block;
}

body > footer > hr
{
	background: var(--filets);
	border: 0;
	height: 9px;
	box-sizing: border-box;
	margin: 1.075rem auto;
	max-width: 740px;
	width: 100%;
}

/* ─── Single : wp-block-gallery (Masonry, js/masonry-init.js) ─── */

.wp-block-gallery
{
	display: block;
	width: 100%;
	margin: 0 auto;
}

.wp-block-gallery .wp-block-image
{
	margin: 0;
	padding: 0;
	display: inline-block;
	float: none;
}

.wp-block-gallery .wp-block-image img
{
	width: 100%;
	height: auto;
	display: block;
}

@media (min-width: 769px)
{
	.columns-1 figure { width: calc(100% / 1) !important; }
	.columns-2 figure { width: calc(100% / 2) !important; }
	.columns-3 figure { width: calc(100% / 3) !important; }
	.columns-4 figure { width: calc(100% / 4) !important; }
	.columns-5 figure { width: calc(100% / 5) !important; }
	.columns-6 figure { width: calc(100% / 6) !important; }
	.columns-7 figure { width: calc(100% / 7) !important; }
	.columns-8 figure { width: calc(100% / 8) !important; }
}

/* Légendes sous les vignettes, sur un fond commun image + légende (hors Instant tanné, category-264, sans Masonry).
   Gutter Masonry à 0 : l'espacement est porté par le padding des figures, le fond est dessiné en retrait sur ::after
   (le ::before du cœur porte son dégradé de surimpression). La marge négative annule le padding de la dernière rangée */
body:not(.category-264) .wp-block-gallery.has-nested-images
{
	margin-bottom: -1.25rem;
}

body:not(.category-264) .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)
{
	isolation: isolate;
	justify-content: flex-start;
	padding: 0 .375rem 1.25rem;
}

body:not(.category-264) .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image):has(figcaption)::before
{
	content: none;
}

body:not(.category-264) .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)::after
{
	background: #f3f5f9;
	bottom: 1.25rem;
	content: '';
	left: .375rem;
	pointer-events: none;
	position: absolute;
	right: .375rem;
	top: 0;
	z-index: -1;
}

body:not(.category-264) .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) figcaption
{
	background: none;
	bottom: auto;
	color: #767676;
	flex: none;
	font-size: .875rem;
	line-height: 1.35;
	margin: 0;
	max-height: none;
	overflow: visible;
	padding: .5rem .625rem .625rem;
	position: static;
	text-align: left;
	text-shadow: none;
	width: auto;
}

/* « Recadrer » (is-cropped, coché par défaut) : le cœur force height: 100% et object-fit: cover ; en colonne avec
   légende, l'image s'écraserait */
body:not(.category-264) .wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image) img
{
	flex: none;
	height: auto;
	object-fit: initial;
}

@media (min-width: 769px)
{
	.columns-1 figure { width: calc(100% / 1) !important; }
	.columns-2 figure { width: calc(100% / 2) !important; }
	.columns-3 figure { width: calc(100% / 3) !important; }
	.columns-4 figure { width: calc(100% / 4) !important; }
	.columns-5 figure { width: calc(100% / 5) !important; }
	.columns-6 figure { width: calc(100% / 6) !important; }
	.columns-7 figure { width: calc(100% / 7) !important; }
	.columns-8 figure { width: calc(100% / 8) !important; }
}

/* ─── Home ─── */

section.grid
{
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	font-size: 1rem;
	justify-content: space-between;
	margin: 0;
	width: 100%;
}

body.archive header > .taxonomy-description
{
	color: #444;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 1.125rem;
	hyphens: manual;
	line-height: 2rem;
	margin-bottom: 2rem;
	max-width: 46rem;
	text-align: left;
}

body.archive header > .taxonomy-description a { color: var(--couleur-principale); }

body.archive header > .taxonomy-description a:hover { color: var(--couleur-accent); }

/* Listes des descriptions : retrait rendu (remis à zéro par *), sinon les puces sortent du bloc */
body.archive header > .taxonomy-description ul,
body.archive header > .taxonomy-description ol
{
	margin-bottom: var(--space-lg);
	padding-left: 1.75rem;
}

body.archive header > .taxonomy-description li > ul,
body.archive header > .taxonomy-description li > ol
{
	margin-bottom: 0;
}

body.home section.grid article h2,
body.search section.grid article h2,
body.archive section.grid article h2
{
	font-family: var(--font-heading);
	font-size: var(--font-size-h3); /* titre d'une carte : un cran sous l'intertitre, réduit sur téléphone */
	height: auto;
	line-height: 1.3;
}

body.home section.grid article,
body.search section.grid article,
body.category section.grid article,
body.post-type-archive-galerie section.grid article,
section.grid.cards article
{
	border: none;
	box-sizing: border-box;
	margin-bottom: 3.125rem;
	max-width: none;
	text-align: left;
	width: 100%;
}

body.home section.grid article p,
body.search section.grid article p,
body.category section.grid article p,
body.post-type-archive-galerie section.grid article p,
section.grid.cards article p
{
	font-family: var(--font-body);
	font-size: 1.125rem;
	hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	-webkit-hyphens: auto;
	line-height: 2rem;
	padding: .75rem 0 0 0;
	text-align: justify;
}

/*body.home section.grid article > a:nth-child(1)
{
	display:none;
}*/

body.home section.grid article a,
body.search section.grid article a,
body.category section.grid article a,
body.post-type-archive-galerie section.grid article a,
section.grid.cards article a
{
	color: var(--couleur-principale);
	display: block;
	transition: all 150ms linear;
}

body.home section.grid article a:hover,
body.search section.grid article a:hover,
body.category section.grid article a:hover,
body.post-type-archive-galerie section.grid article a:hover,
section.grid.cards article a:hover
{
	color: var(--couleur-accent);
}

section.grid article img
{
	height: auto;
	max-width: 100%;
}

body.home section.grid article time,
body.search section.grid article time,
body.archive section.grid article time,
body.category section.grid article span,
body.post-type-archive-galerie section.grid article span
{
	color: var(--couleur-accent);
	display: none;
	font-size: 1rem;
	height: 3.2rem;
	line-height: 1.35em;
	margin: 0;
	overflow: hidden;
	padding-right: .5rem;
	transition: all 150ms linear;
}

section.grid article
{
	box-sizing: content-box;
	margin-bottom: .625rem;
	max-width: 380px;
	overflow: hidden;
	position: relative;
	text-align: left;
	width: calc(100% / 3);
}

section.grid article:hover
{
	border-color: var(--couleur-accent);
}

/* Photos */

body.term-photos section.grid
{
	justify-content: center;
	margin-top: 1em;
}

body.category-photographie section.grid,
body.term-cartes-postales-cpa section.grid
{
	margin-top: 1em;
}

body.term-photos section.grid article
{
	border: 0;
	margin: 0;
	width: auto;
}

body.term-photos section.grid article img
{
	width: auto;
}

pre.wp-block-code code,
pre.wp-block-code code.hljs
{
	font-family: '3270font', 'Courier New', monospace !important;
}

pre.wp-block-code code.hljs
{
	padding:1.25rem !important;
}

pre.wp-block-code code::selection
{
    background: #20C20E;
    color: #0D0D0D;
}

pre.wp-block-code
{
	background-color:#0D0D0D !important;
}

pre.wp-block-code code
{
	background-color:#0D0D0D !important;
	color:#20C20E !important;
}

section.grid article h1,
section.grid article h2,
section.grid article h3,
body.tag section.grid article h2
{
	align-content: end;
	box-sizing: border-box;
	color: var(--couleur-principale);
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 1rem;
	height: 3.2rem;
	line-height: 1.35em;
	margin: 0;
	overflow: hidden;
	padding: .225em 0;
	transition: all 150ms linear;
}

section.grid article:hover h1,
section.grid article:hover h2,
section.grid article:hover h3
{
	color: var(--couleur-accent);
}

/* Drapeau de Leaflet devant son nom, dans l'attribution des cartes : masqué */
svg.leaflet-attribution-flag
{
	display: none !important;
}

/* ─── Single / Page ─── */

body.single:is(.single-format-image, .single-post, .single-saint-marcellin, .single-histoire, .single-sm_image, .single-emplacement, .single-organisation, .single-personne) article > footer
{
	box-sizing: border-box;
	border-top: 1px solid #ddd;
	clear: both;
	margin-top: 3rem;
	padding-top: .75rem;
	width: 100%;
}

/* Dates et liens du pied d'une fiche (template-parts/saint-marcellin/pied-de-fiche.php) : une ligne discrète, plus une liste à
   puces (22/11/2026) */
body.single #wrap article > footer > ul
{
	color: #595959;
	display: flex;
	flex-wrap: wrap;
	font-size: .9375rem;
	gap: .25rem 1.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.single #wrap article > footer > ul > li
{
	font-size: .9375rem;
	list-style: none;
	margin: 0;
}

body.single article > footer > p,
body.single:is(.single-format-image, .single-post, .single-saint-marcellin, .single-histoire, .single-sm_image) article > footer > p
{
	font-size: .875rem !important;
	margin: .75rem 0 0 0 !important;
}

/* Largeur de lecture : le texte d'une fiche, d'une page ou d'un article (hors page de lecture à deux volets) ne dépasse pas
   46rem (70 à 80 signes par ligne) ; cartes, tableaux et images gardent toute la largeur (22/11/2026) */
body.single:not(.lecture) #wrap article > :is(p, ul, ol, h2, h3, h4, blockquote, .fiche-infos, footer),
body.page #wrap > article > :is(p, ul, ol, h2, h3, h4, blockquote)
{
	max-width: 46rem;
}

body.single.single-format-image figure img,
body.single:is(.single-post, .single-saint-marcellin, .single-histoire, .single-sm_image, .single-emplacement, .single-organisation, .single-personne) article > figure img
{
	display: block;
	margin: 0 auto;
	width: 100%;
}

.leaflet-map
{
	border: 1px solid #000;
	box-sizing: border-box;
	margin-bottom: 1em;
	width: 100%;
}

/* Archive d'une rue, d'une place, d'un lieu… : carte entre le titre et la description (à l'impression, marges de print.css) */
/* La liste qui suit ne doit pas écraser la carte : celle-ci remplit l'écran sous l'en-tête (220 px, 86 px sur
   téléphone ; min-height, que print.css remet à 0). Puis la liste des emplacements (paulv1_sm_liste_emplacements()),
   dans la largeur habituelle, voies en colonnes, chacune d'un bloc */
/* Recherche (search.php, 22/11/2026) : le champ en tête et le compte par nature ; des groupes (textes, lieux, personnes,
   organisations, autres pages), chaque résultat sur sa ligne, sa nature et son chapeau en gris, les mots cherchés surlignés ;
   sans résultat, des portes d'entrée */
body.search .recherche-tete
{
	margin: 0 0 2rem;
	max-width: 46rem;
	text-align: left;
}

body.search .recherche-tete h1
{
	margin-bottom: .5rem;
}

body.search .recherche-compte
{
	color: #595959;
	font-size: 1rem;
	margin: 0 0 1rem;
}

body.search .recherche-tete .search-form
{
	display: flex;
	gap: .5rem;
	max-width: 32rem;
}

body.search .recherche-tete .search-form label
{
	flex: 1;
}

body.search .recherche-tete .search-field
{
	border: 2px solid #767676;
	border-radius: 4px;
	box-sizing: border-box;
	font: inherit;
	font-size: 1.0625rem;
	min-height: 44px;
	padding: .4rem .7rem;
	width: 100%;
}

body.search .recherche-tete .search-field:focus
{
	border-color: var(--couleur-principale);
}

body.search .recherche-tete .search-submit
{
	background: var(--couleur-principale);
	border: 0;
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font: inherit;
	min-height: 44px;
	padding: 0 1.1rem;
}

body.search .recherche-tete .search-submit:hover,
body.search .recherche-tete .search-submit:focus-visible
{
	background: var(--couleur-accent);
}

body.search .resultats-groupe
{
	margin: 0 0 2.5rem;
	text-align: left;
}

body.search .resultats-groupe > h2
{
	border-bottom: 1px solid #ddd;
	font-size: var(--font-size-h3);
	margin: 0 0 1rem;
	max-width: 46rem;
	padding-bottom: .35rem;
}

body.search .resultats-liste
{
	list-style: none;
	margin: 0;
	max-width: 46rem;
	padding: 0;
}

body.search .resultats-liste li
{
	line-height: 1.45;
	margin-bottom: 1rem;
}

body.search .resultats-fiches
{
	column-gap: 2rem;
	columns: 16rem auto;
	max-width: none;
}

body.search .resultats-fiches li
{
	break-inside: avoid;
	margin-bottom: .5rem;
}

body.search .resultats-liste a,
body.search .recherche-portes a
{
	color: var(--couleur-lien, #006400);
	font-size: 1.125rem;
}

body.search .resultats-liste a:hover,
body.search .recherche-portes a:hover
{
	color: var(--couleur-accent);
}

body.search .resultats-liste mark
{
	background: #fff3b0;
	color: inherit;
	padding: 0 .1em;
}

body.search .resultat-nature,
body.search .resultat-chapeau
{
	color: #595959;
	display: block;
	font-size: .9375rem;
}

body.search .resultat-chapeau
{
	color: #444;
	font-size: 1rem;
	margin-top: .15rem;
}

body.search .fiches-bornees,
body.search .resultats-groupe > p
{
	color: #595959;
	font-size: .9375rem;
}

body.search .recherche-portes ul
{
	list-style: none;
	margin: 0;
	max-width: 46rem;
	padding: 0;
	text-align: left;
}

body.search .recherche-portes li
{
	margin-bottom: .75rem;
}

h2.geoloc
{
	width: 100%;
}

body.page #wrap > article p,
body.single #wrap article p,
body.error404 #wrap article p,
body.page #wrap > article figure.wp-block-table,
body.single #wrap article figure.wp-block-table,
body section#commentaires > p
{
	font-family: var(--font-body);
	font-weight: 400; 
	font-size: 1.125rem;
	hyphens: auto;
	-moz-hyphens: auto;
	-ms-hyphens: auto;
	-webkit-hyphens: auto;
	line-height: 1.75rem;
	margin: 2rem 0;
	overflow-wrap: normal;
	text-align: justify;
	word-break: normal;
}

body.single #wrap article p.has-text-align-right,
body.page #wrap > article p.has-text-align-right
{
	text-align: right;
}

body.single #wrap article p.has-text-align-center,
body.page #wrap > article p.has-text-align-center
{
	text-align: center;
}

body.single #wrap article p.has-text-align-left,
body.page #wrap > article p.has-text-align-left
{
	text-align: left;
}

hr.wp-block-separator
{
	border-bottom: none;
	border-top: 1px solid #000;
}

.wp-block-image figcaption
{
	font-size: 1rem;
}

body.page #wrap > article ul,
body.page #wrap > article ol,
body.single #wrap article ul,
body.single #wrap article ol,
body.error404 #wrap article ul,
body.error404 #wrap article ol
{
	font-size: 1.125rem;
	line-height: 30px;
	margin: .5em 0;
	padding-left: 1.75rem;
	text-align: justify;
}

body.page #wrap > article li,
body.single #wrap article li,
body.error404 #wrap article li
{
	line-height: 30px;
	margin-bottom: .5rem;
}

body.page #wrap > article li:last-child,
body.single #wrap article li:last-child,
body.error404 #wrap article li:last-child
{
	margin-bottom: 0;
}

body.page a,
body.single a,
body.error404 a,
body.saint-marcellin-template-default a
{
	color: var(--couleur-lien, #006400);
}

body.page #wrap > article p a,
body.page #wrap > article li a,
body.single #wrap article p a,
body.single #wrap article li a
{
	text-decoration: underline;
}

body.single #wrap #ez-toc-container a
{
	text-decoration: none;
}

body.page a:hover,
body.single a:hover,
body.error404 a:hover,
body.saint-marcellin-template-default a:hover
{
	color: var(--couleur-accent);
}

/* Titres à gauche, comme le texte, et un rythme vertical resserré (harmonisation du 22/11/2026 : titres centrés et vides
   de 72 px venaient du blog d'origine) */
body.page h1,
body.single h1,
body.error404 h1
{
	font-size: var(--font-size-h1);
	line-height: 1.25;
	margin-bottom: 1.25rem;
	text-align: left;
}

body.single article > header > time
{
	display: block;
	font-size: 1.25rem;
	line-height: 2rem;
	margin-bottom: 4.5rem;
	text-align: center;
}

body.single article > header > time::first-letter
{
	text-transform: uppercase;
}

body.single #ez-toc-container
{
	border-radius:0;
}

body.single h2,
body.page h2
{
	font-size: var(--font-size-h2);
	line-height: 1.3;
	margin: 3rem 0 1rem;
	text-align: left;
}

body.single h3,
body.page h3
{
	font-size: var(--font-size-h3);
	line-height: 1.3;
	margin: 2rem 0 .75rem;
	text-align: left;
}

body.single h4,
body.page h4
{
	font-size: 2rem;
	line-height: 2.5rem;
	margin: 1.5rem 0 .5rem;
	text-align: left;
}

body.page img,
body.single img,
body.saint-marcellin-template-default img
{
	height: auto;
	max-width: 100%;
}

/* ─── Category ─── */

body.category h1,
body.tag h1,
body.tax-sm_category h1,
body.tax-sm_voie h1,
body.tax-sm_lieu h1,
body.tax-activite h1
{
	font-size: var(--font-size-h1);
	line-height: 1.25;
	text-align: left;
}

/* ─── Pagination ─── */

nav.pagination
{
	font-family: var(--font-body);
	font-weight: 300;
	font-size: .875rem;
	line-height: 1.6;
}

nav.pagination .nav-links
{
	display: inline-block;
	margin: 9px 0;
	position: relative;
}

nav.pagination .nav-links::before,
nav.pagination .nav-links::after
{
	border-bottom: 1px solid #999;
	content: '';
	height: 1px;
	position: absolute;
	top: 50%;
	width: 40px;
}

nav.pagination .nav-links::after
{
	right: -10px;
	transform: translate(100%, -2px);
}

nav.pagination .nav-links::before
{
	left: -10px;
	transform: translate(-100%, -2px);
}

nav.pagination .nav-links a
{
	color: #444;
}

nav.pagination .nav-links a:hover
{
	color: #000;
}

nav.pagination .nav-links span.page-numbers,
nav.pagination .nav-links a.page-numbers
{
	margin: 0 .5rem;
}

nav.pagination .nav-links span.page-numbers.current
{
	color: #767676;
}

nav.pagination .facetwp-type-pager
{
	margin: 0 auto;
}

nav.pagination button
{
	background-color: var(--couleur-principale);
	border: 3px solid var(--couleur-principale);
	color: #FFF;
	cursor: pointer;
	font-size: inherit;
	padding: 0.75em 1.6em 0.65em 1.6em;
	text-shadow: 0 1px 1px rgb(0 0 0 / 20%);
	transition: all .2s ease-in-out;
}

nav.pagination button:hover
{
	border-color: var(--couleur-accent);
	background-color: var(--couleur-accent);
	color: #FFF;
}

/* ─── Commentaires ─── */

/* Taille du texte de lecture (18 px), et non plus 1,6em (25,6 px, reste du blog d'origine), pour le formulaire natif
   que montrent les pages depuis que wpDiscuz est désactivé */
section#commentaires
{
	box-sizing: border-box;
	font-size: 1.125rem;
	text-align: left;
	width: 100%;
}

section#commentaires > span
{
	font-family: var(--font-heading);
	font-size: 2.75rem;
	line-height: 3.5rem;
	margin: 4.5rem 0 1.5rem;
}

/* ─── MailPoet : [mailpoet_manage_subscription] ─── */

form.mailpoet-manage-subscription p.mailpoet_paragraph
{
	border: 1px solid var(--couleur-principale);
	box-sizing: border-box;
	font-size: 1.2rem;
	line-height: 2.2rem;
	margin: 0 auto 1rem !important;
	padding: .5rem;
	width: 50%;
}

form.mailpoet-manage-subscription p.mailpoet_paragraph label
{
	font-size: 1.2rem;
	font-weight: bold;
	line-height: 2.2rem;
}

form.mailpoet-manage-subscription .mailpoet_paragraph
{
	box-sizing: border-box;
	font-size: 1.2rem;
	line-height: 2.2rem;
	margin: 0 auto 1rem;
	width: 50%;
}

form.mailpoet-manage-subscription .mailpoet_paragraph label.mailpoet_text_label,
form.mailpoet-manage-subscription .mailpoet_paragraph label.mailpoet_select_label,
form.mailpoet-manage-subscription .mailpoet_paragraph label.mailpoet_segment_label
{
	display: block;
	font-weight: bold;
	margin-right: 1.2rem;
}

form.mailpoet-manage-subscription .mailpoet_paragraph select.mailpoet_select,
form.mailpoet-manage-subscription .mailpoet_paragraph input.mailpoet_text
{
	border: 1px solid var(--couleur-principale);
	padding: .25rem;
	width: 100%;
}

form.mailpoet-manage-subscription .mailpoet_paragraph select.mailpoet_select:hover,
form.mailpoet-manage-subscription .mailpoet_paragraph input.mailpoet_text:hover
{
	border-color: var(--couleur-accent);
}

form.mailpoet-manage-subscription .mailpoet_paragraph input.mailpoet_text
{
	font-size: 1.2rem;
	width: 100%;
}

form.mailpoet-manage-subscription .mailpoet_paragraph select.mailpoet_select
{
	background: none;
	font-size: 1.2rem;
	box-sizing: content-box;
}

form.mailpoet-manage-subscription .mailpoet_paragraph input.mailpoet_submit
{
	background-color: var(--couleur-principale);
	border: 3px solid var(--couleur-principale);
	color: #FFF;
	cursor: pointer;
	display: block;
	font-size: initial;
	margin: 0 auto;
	padding: 0.75em 1.6em 0.65em 1.6em;
	text-shadow: 0 1px 1px rgb(0 0 0 / 20%);
	transition: all .2s ease-in-out;
}

form.mailpoet-manage-subscription .mailpoet_paragraph input.mailpoet_submit:hover
{
	border-color: var(--couleur-accent);
	color: var(--couleur-accent);
}

/* Classe doublée : doit l'emporter sur les liens d'article (body.single #wrap article p a) */
#wrap .mailpoet_confirm_unsubscribe_button.mailpoet_confirm_unsubscribe_button
{
	background-color: var(--couleur-principale);
	border: 3px solid var(--couleur-principale);
	color: #FFF;
	display: inline-block;
	padding: 0.75em 1.6em 0.65em 1.6em;
	text-decoration: none;
	transition: all .2s ease-in-out;
}

#wrap .mailpoet_confirm_unsubscribe_button.mailpoet_confirm_unsubscribe_button:hover,
#wrap .mailpoet_confirm_unsubscribe_button.mailpoet_confirm_unsubscribe_button:focus-visible
{
	background-color: #FFF;
	border-color: var(--couleur-accent);
	color: var(--couleur-accent);
}

/* ─── Media Queries ─── */

@media (min-width: 1032px)
{
	.navbar-perfecty-push { display: block !important; }
}

@media (max-width: 1031px)
{
	.navbar-perfecty-push-mobile { display: block !important; }
}

/* Galerie Instant tanné (category-264.php, sans Masonry) : largeurs calculées avec l'espacement de 8 px,
   sinon la 4e vignette passe à la ligne et laisse un vide à droite */
body.category-264 .wp-block-gallery.has-nested-images
{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.category-264 .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)
{
	flex-grow: 0;
	width: calc((100% - 3 * 8px) / 4) !important;
}

@media (max-width: 768px)
{
	body.category-264 .wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)
	{
		width: calc((100% - 8px) / 2) !important;
	}
}

@media (max-width: 768px)
{
	/* Galeries des articles (Masonry) : deux colonnes sur tablette et mobile, les vignettes gardent à peu près leur taille d'origine */
	.wp-block-gallery .wp-block-image,
	.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image)
	{
		width: 50% !important;
	}
	.wp-block-gallery.columns-1 .wp-block-image,
	.wp-block-gallery.has-nested-images.columns-1 figure.wp-block-image:not(#individual-image)
	{
		width: 100% !important;
	}
}

@media (min-width: 769px)
{
	.wp-block-gallery .wp-block-image
	{
		width: 33.333%;
	}
}

@media screen and (max-width: 380px)
{
	body > header
	{
		font-size: 2em;
	}
	body > header > .wrap
	{
		text-align: center;
	}
}

@media screen and (max-width: 599px)
{
	/* Titres réduits sur un téléphone, pour toutes les pages */
	:root
	{
		--font-size-h1: 1.875rem;
		--font-size-h2: 1.75rem;
		--font-size-h3: 1.5rem;
	}
	body.page h1,
	body.single h1,
	body.error404 h1,
	body.saint-marcellin-template-default h1
	{
		font-family:var(--font-heading);
		font-size: var(--font-size-h1);
		line-height: 1.3;
		margin-bottom: 2rem;
	}
	body.single article > header > time
	{
		margin-bottom: 2rem;
	}
	body.page h2,
	body.single h2,
	body.saint-marcellin-template-default h2
	{
		font-size: var(--font-size-h2);
		line-height: 2.625rem;
		margin-bottom: 0.5em;
		margin-top: 2em;
	}
	body.page h3,
	body.single h3,
	body.saint-marcellin-template-default h3
	{
		font-size: var(--font-size-h3);
		line-height: 2.25rem;
	}
	body.page h4,
	body.single h4,
	body.saint-marcellin-template-default h4
	{
		font-size: 1.25rem;
		line-height: 1.875rem;
	}
	body.page h5,
	body.single h5,
	body.saint-marcellin-template-default h5
	{
		font-size: 1.125rem;
		line-height: 1.6875rem;
	}
	body.single #wrap article ul,
	body.single #wrap article ol,
	body.archive header > .taxonomy-description ul,
	body.archive header > .taxonomy-description ol
	{
		padding-left: 1.25rem;
	}
	body.single section#commentaires h3#reply-title
	{
		font-size: 1.25rem;
	}
}

@media screen and (max-width: 779px)
{
	body.home section.grid article h2
	{
		font-size: 1.5rem;
		line-height: 2rem;
	}
	body.category h1,
	body.tag h1,
	body.tax-sm_category h1,
	body.tax-sm_voie h1,
	body.tax-sm_lieu h1,
	body.tax-activite h1
	{
		font-size: var(--font-size-h1);
	}
	section.grid article
	{
		border: 0;
		margin-bottom: 2em;
		max-width: none;
		padding: 0;
		text-align: center;
		width: 100%;
	}
	body > header > .wrap
	{
		padding: .2em;
		text-align: center;
	}
	#wrap,
	body > footer > .wrap
	{
		padding: 0 1.5rem;
		padding: 0 24px;
	}
	body.home section.grid article p,
	body.post-type-archive-galerie section.grid article p,
	section.grid.cards article p
	{
		font-size:1rem;
		line-height:1.5rem;
		margin-top: 1rem;
		padding: 0;
	}
	body > header hr,
	body > footer hr
	{
		display: none;
	}
	.not_mobile { display: none; }
	body > header .site-nom
	{
		flex-direction: column;
		gap: .6rem;
		padding: 1rem .5rem .5rem;
		text-align: center;
	}
	body > header .site-logo img
	{
		width: 120px;
	}
	/* Bouton du menu (sous 780 px, js/menu.js) en haut à droite de l'en-tête, et non seul sur une ligne sous le nom du site ;
	   la liste ouverte descend sous lui, par-dessus la page (22/11/2026) */
	body > header > .wrap
	{
		position: relative;
	}
	body > header nav.menu-principal.menu-js
	{
		position: absolute;
		right: .25rem;
		top: .5rem;
		z-index: 1002;
	}
	body > header .site-titre
	{
		font-size: 1.75rem;
	}
}

@media screen and (min-width: 780px) and (max-width: 985px)
{
	body > header
	{
		font-size: 3em;
	}
	body > header > .wrap
	{
		padding: .2em;
		text-align: center;
	}
	section.grid article
	{
		border: 0;
		margin-bottom: 2em;
		max-width: none;
		padding: 0;
		text-align: center;
		width: calc(100% / 2);
	}
}

@media screen and (min-width: 780px) and (max-width: 1189px)
{
	section.grid article
	{
		max-width: none;
		text-align: center;
		width: calc(100% / 2);
	}
	}

@media screen and (min-width: 515px) and (max-width: 640px)
{
	body > header
	{
		font-size: 4em;
	}
	body > header > .wrap
	{
		text-align: center;
	}
}

/* ─── Impression : print.css ─── */

/* Adresse de la page (footer.php), imprimée seulement */
.impression-source
{
	display: none;
}
/* ─── Menu principal (inc/theme.php, paulv1_menu() ; js/menu.js), à la place de Max Mega Menu (22/11/2026) : entrées de 18 px
   en vert, rouge au survol ; sous-menus sur fond blanc, filet vert et ombre, au survol, au bouton (flèche) ou, sans script, au
   focus. Sous 780 px : bouton « Menu » en haut à droite de l'en-tête, liste en panneau par-dessus la page ─── */
.menu-principal-liste
{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu-principal-liste > li
{
	align-items: center;
	display: flex;
	position: relative;
}

.menu-principal-liste a
{
	color: var(--couleur-principale);
	text-decoration: none;
}

.menu-principal-liste > li > a
{
	font-size: 1.125rem;
	line-height: 50px;
	padding: 0 10px;
	position: relative;
}

/* Survol des entrées : un trait se déploie sous l'entrée (rouge au survol, vert sous la rubrique de la page affichée) */
.menu-principal-liste > li > a::after
{
	background: var(--couleur-accent);
	border-radius: 1px;
	bottom: 9px;
	content: '';
	height: 2px;
	left: 10px;
	position: absolute;
	right: 10px;
	transform: scaleX(0);
	transition: transform 180ms ease-out;
}

.menu-principal-liste > li:hover > a::after,
.menu-principal-liste > li > a:focus-visible::after,
.menu-principal-liste > li.sous-menu-ouvert > a::after
{
	transform: scaleX(1);
}

.menu-principal-liste > li.current-menu-item > a::after,
.menu-principal-liste > li.current-menu-ancestor > a::after,
.menu-principal-liste > li.rubrique-courante > a::after
{
	background: var(--couleur-principale);
	transform: scaleX(1);
}

.menu-principal-liste a:hover,
.menu-principal-liste a:focus-visible,
.menu-principal-liste li.current-menu-item > a,
.menu-principal-liste > li.current-menu-ancestor > a,
.menu-principal-liste > li.sous-menu-ouvert > a
{
	color: var(--couleur-accent);
}

.menu-principal .sous-menu-bouton
{
	background: none;
	border: 0;
	color: var(--couleur-principale);
	cursor: pointer;
	margin-left: -8px;
	min-height: 44px;
	min-width: 24px;
	padding: 0 6px;
}

.menu-principal .sous-menu-bouton::after
{
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	content: '';
	display: inline-block;
	transition: transform 150ms linear;
	vertical-align: middle;
}

.menu-principal li.sous-menu-ouvert > .sous-menu-bouton::after
{
	transform: rotate(180deg);
}

.menu-principal .sous-menu-bouton:hover,
.menu-principal .sous-menu-bouton:focus-visible
{
	color: var(--couleur-accent);
}

.menu-principal-liste .sub-menu
{
	background: #fff;
	border-top: 3px solid var(--couleur-principale);
	box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
	display: none;
	left: 0;
	list-style: none;
	margin: 0;
	min-width: 15rem;
	padding: .35rem 0;
	position: absolute;
	text-align: left;
	top: 100%;
	z-index: 1002;
}

/* Sous-menus des trois dernières entrées : ouverts vers la gauche, alignés sur le bord droit de l'entrée (le dernier dépassait
   le bord droit de l'écran vers 900 px de large, et faisait défiler tout le site : 13/11/2026, du temps de Max Mega Menu) */
.menu-principal-liste > li:nth-last-child(-n+3) > .sub-menu
{
	left: auto;
	right: 0;
}

.menu-principal-liste > li:hover > .sub-menu,
.menu-principal:not(.menu-js) .menu-principal-liste > li:focus-within > .sub-menu,
.menu-principal-liste > li.sous-menu-ouvert > .sub-menu
{
	animation: sous-menu-apparition 160ms ease-out;
	display: block;
}

/* Ouverture : un fondu et un glissement de quelques pixels (les mouvements réduits la rendent immédiate) */
@keyframes sous-menu-apparition
{
	from
	{
		opacity: 0;
		transform: translateY(-6px);
	}
	to
	{
		opacity: 1;
		transform: translateY(0);
	}
}

.menu-principal-liste .sub-menu a
{
	color: var(--couleur-lien);
	display: block;
	font-size: 1rem;
	line-height: 1.4;
	padding: .55rem 1rem;
	transition: background-color 150ms linear, box-shadow 150ms linear, color 150ms linear;
}

/* Survol d'une ligne de sous-menu : fond vert très pâle, filet vert à gauche, texte rouge ; la page affichée, en gras */
.menu-principal-liste .sub-menu a:hover,
.menu-principal-liste .sub-menu a:focus-visible
{
	background: #f2f7f2;
	box-shadow: inset 3px 0 0 var(--couleur-principale);
	color: var(--couleur-accent);
}

.menu-principal-liste .sub-menu li.current-menu-item > a
{
	font-weight: 700;
}

.menu-principal-liste .menu-recherche-lien
{
	align-items: center;
	color: var(--couleur-principale);
	display: flex;
	min-height: 44px;
	padding: 0 10px;
}

.menu-principal-liste .menu-recherche-lien svg
{
	display: block;
}

.menu-principal .menu-bouton
{
	display: none;
}

@media screen and (max-width: 779px)
{
	.menu-principal.menu-js .menu-bouton
	{
		align-items: center;
		background: none;
		border: 0;
		color: var(--couleur-principale);
		cursor: pointer;
		display: flex;
		flex-direction: column;
		font: inherit;
		font-size: 1rem;
		gap: .45rem;
		min-height: 44px;
		min-width: 44px;
		padding: .55rem .4rem .3rem;
	}

	.menu-principal .menu-bouton-barres
	{
		background: currentColor;
		box-shadow: 0 -7px 0 currentColor, 0 7px 0 currentColor;
		display: block;
		height: 3px;
		margin-top: 7px;
		width: 26px;
	}

	.menu-principal.menu-js .menu-principal-liste
	{
		background: #fff;
		border-top: 3px solid var(--couleur-principale);
		box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
		display: none;
		flex-direction: column;
		padding: .25rem 0;
		position: absolute;
		right: 0;
		text-align: left;
		top: 100%;
		width: calc(100vw - 1rem);
	}

	.menu-principal.menu-js.menu-ouvert .menu-principal-liste
	{
		display: flex;
	}

	.menu-principal.menu-js .menu-principal-liste > li
	{
		flex-wrap: wrap;
	}

	.menu-principal.menu-js .menu-principal-liste > li > a
	{
		flex: 1;
		padding: 0 1rem;
	}

	/* Dans le panneau, pas de trait sous l'entrée (il traverserait la ligne) : la rubrique de la page en gras */
	.menu-principal.menu-js .menu-principal-liste > li > a::after
	{
		display: none;
	}

	.menu-principal.menu-js .menu-principal-liste > li.rubrique-courante > a,
	.menu-principal.menu-js .menu-principal-liste > li.current-menu-item > a
	{
		font-weight: 700;
	}

	.menu-principal.menu-js .sous-menu-bouton
	{
		margin: 0;
		min-width: 48px;
	}

	.menu-principal.menu-js .menu-principal-liste .sub-menu
	{
		border-top: 0;
		box-shadow: none;
		padding: 0 0 .35rem 1rem;
		position: static;
		width: 100%;
	}

	.menu-principal.menu-js .menu-principal-liste > li:hover > .sub-menu
	{
		display: none;
	}

	.menu-principal.menu-js .menu-principal-liste > li.sous-menu-ouvert > .sub-menu
	{
		display: block;
	}

	.menu-principal.menu-js .menu-recherche-lien
	{
		padding: 0 1rem;
	}
}

/* Mouvements réduits, si le visiteur le demande : transitions et animations quasi nulles (0,01 ms et non 0, pour que
   transitionend se déclenche encore, ce qu'attend le zoom de Leaflet), défilement sans glissé */

@media (prefers-reduced-motion: reduce)
{
	*,
	*::before,
	*::after
	{
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
	}
}

/* Formulaire natif des commentaires (wpDiscuz désactivé le 21/11/2026) : la zone de texte ne déborde pas sur téléphone */

#respond textarea,
#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"]
{
	box-sizing: border-box;
	max-width: 100%;
}

/* Liens en vert foncé partout (21/11/2026) : aussi dans les bulles des cartes (Leaflet : .leaflet-container a, bleu) ;
   survol en rouge */
#wrap .leaflet-container a:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(.leaflet-popup-close-button)
{
	color: var(--couleur-lien);
}

#wrap .leaflet-container a:not(.leaflet-control-zoom-in):not(.leaflet-control-zoom-out):not(.leaflet-popup-close-button):hover
{
	color: var(--couleur-accent);
}

/* Formulaire de contact (WPForms) : bordure des champs lisible, 2 px #767676 (contraste 4,5:1) au lieu de son gris pâle ;
   bouton, focus des champs et flèche de la liste aux couleurs du site, plus le bleu #066aab de WPForms */
.wpforms-container
{
	--wpforms-button-background-color: var(--couleur-principale);
	--wpforms-button-border-color: var(--couleur-principale);
	--wpforms-field-border-color: #767676;
	--wpforms-field-border-color-spare: #767676;
	--wpforms-field-border-size: 2px;
	--wpforms-page-break-color: var(--couleur-principale);
}
