/*
 * Fuligule — composants : boutons, liens, pastilles, cartes, formulaire,
 * vues liste/carte, messages, pagination, galerie, infos pratiques, carte.
 */

/* ---------- Boutons ---------- */

.fm-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--fm-espace-3);
}

.fm-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--fm-espace-2);
	min-height: 52px;
	padding: 0 var(--fm-espace-6);
	border: 1.5px solid transparent;
	border-radius: var(--fm-rayon-petit);
	font-family: var(--fm-police);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--fm-duree) ease, color var(--fm-duree) ease, border-color var(--fm-duree) ease, box-shadow var(--fm-duree) ease;
}

.fm-bouton--principal {
	border-color: var(--fm-encre);
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

.fm-bouton--principal:hover {
	border-color: var(--fm-bordeaux);
	background: var(--fm-bordeaux);
	color: var(--fm-ivoire);
}

/* Signature : recherche, appel, bandeau pro */
.fm-bouton--accent {
	border-color: var(--fm-bordeaux);
	background: var(--fm-bordeaux);
	color: var(--fm-ivoire);
}

.fm-bouton--accent:hover {
	border-color: var(--fm-encre);
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

.fm-bouton--secondaire {
	border-color: var(--fm-encre);
	background: transparent;
	color: var(--fm-encre);
}

.fm-bouton--secondaire:hover {
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

/* Bouton blanc ombré, comme les cartes (en-tête des fiches, 2026-11-09) */
.fm-bouton--doux {
	background: var(--fm-blanc);
	box-shadow: var(--fm-ombre);
	color: var(--fm-encre);
}

.fm-bouton--doux:hover {
	box-shadow: var(--fm-ombre-survol);
	color: var(--fm-bordeaux);
}

.fm-bouton--discret {
	min-height: 44px;
	padding-inline: var(--fm-espace-2);
	background: transparent;
	color: var(--fm-encre);
	text-decoration: underline;
	text-decoration-color: var(--fm-bordeaux);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.3em;
}

.fm-bouton--discret:hover {
	text-decoration-color: var(--fm-encre);
}

/* Sur prune ou bordeaux */
.fm-bouton--inverse {
	--fm-epingle: var(--fm-bordeaux);
	--fm-epingle-centre: var(--fm-ivoire);
	border-color: var(--fm-ivoire);
	background: var(--fm-ivoire);
	color: var(--fm-encre);
}

.fm-bouton--inverse:hover {
	border-color: var(--fm-rose);
	background: var(--fm-rose);
	color: var(--fm-encre);
}

.fm-bouton:disabled {
	opacity: 0.6;
	cursor: progress;
}

.fm-bouton svg {
	flex: none;
}

/* Lien fléché : le texte souligné de bordeaux, la flèche sans soulignement
   (bloc en ligne, que le soulignement du lien ne traverse pas). */
.fm-lien-fleche {
	display: inline-block;
	padding-block: 0.6rem; /* cible de 44 px */
	color: var(--fm-encre);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--fm-bordeaux);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.35em;
}

.fm-lien-fleche::after {
	content: "→";
	display: inline-block;
	margin-left: var(--fm-espace-2);
	transition: transform var(--fm-duree) ease;
}

.fm-lien-fleche:hover::after {
	transform: translateX(4px);
}

/* ---------- Pastilles (catégories, caractéristiques, filtres) ---------- */

.fm-pastilles {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fm-espace-2);
	list-style: none;
}

.fm-pastille {
	display: inline-flex;
	align-items: center;
	gap: var(--fm-espace-2);
	min-height: 28px;
	padding: 0.15rem 0.75rem;
	border: 1px solid var(--fm-gris-clair);
	border-radius: var(--fm-rayon-petit);
	color: var(--fm-encre);
	font-size: var(--fm-taille-mini);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
}

a.fm-pastille {
	min-height: 40px;
	padding-inline: 0.9rem;
	font-size: var(--fm-taille-petit);
	transition: background-color var(--fm-duree) ease, color var(--fm-duree) ease;
}

a.fm-pastille:hover {
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

.fm-pastille--plein {
	border-color: var(--fm-ivoire-fonce);
	background: var(--fm-ivoire-fonce);
	font-size: var(--fm-taille-petit);
	font-weight: 400;
}

.fm-pastille--filtre {
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

a.fm-pastille--filtre:hover {
	border-color: var(--fm-bordeaux);
	background: var(--fm-bordeaux);
	color: var(--fm-ivoire);
}

.fm-pastille__retirer {
	font-size: 1.125rem;
	line-height: 1;
}

/* Sur encre */
.fm-sombre .fm-pastille {
	border-color: var(--fm-filet-sombre);
	color: var(--fm-ivoire);
}

.fm-sombre a.fm-pastille:hover {
	border-color: var(--fm-rose);
	background: var(--fm-rose);
	color: var(--fm-encre);
}

/* ---------- Image ---------- */

.fm-image {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	border-radius: var(--fm-rayon);
	background: var(--fm-ivoire-fonce);
}

.fm-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

/* Image absente : ivoire foncé et épingle en filigrane */
.fm-image__vide {
	display: block;
	width: 100%;
	height: 100%;
	background: var(--fm-ivoire-fonce) var(--fm-epingle-vide) center / 2.5rem auto no-repeat;
}

.fm-image--portrait {
	aspect-ratio: 4 / 5;
}

.fm-image--paysage {
	aspect-ratio: 3 / 2;
}

.fm-image--carre {
	aspect-ratio: 1;
}

.fm-image--video {
	aspect-ratio: 16 / 9;
}

/* Pastille ▶ au centre de la miniature d'une vidéo (cartes, bloc « En vidéo ») */
.fm-carte__play {
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	background: var(--fm-ocre);
	color: var(--fm-encre);
	box-shadow: 0 4px 14px rgb(0 0 0 / 0.22);
	translate: -50% -50%;
	transition: transform var(--fm-duree) ease;
	pointer-events: none;
}

.fm-carte__play svg {
	margin-left: 3px;
}

.fm-carte:hover .fm-carte__play,
.fm-lu__article:hover .fm-carte__play {
	transform: scale(1.08);
}

/* Rubrique posée sur l'image, en bas à gauche, comme une étiquette flottante */
.fm-image > .fm-rubrique,
.fm-image__rubriques {
	position: absolute;
	bottom: var(--fm-espace-3);
	left: var(--fm-espace-3);
	z-index: 1;
}

.fm-image > .fm-rubrique,
.fm-image__rubriques .fm-rubrique {
	box-shadow: 0 2px 8px rgb(41 21 29 / 18%);
}

.fm-image__rubriques {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fm-espace-1);
	max-width: calc(100% - 2 * var(--fm-espace-3));
}

/* Ouvert / fermé en ce moment (fiche, bulle de la carte) */
.fm-ouverture {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	color: var(--fm-gris);
	font-size: var(--fm-taille-petit);
	font-weight: 600;
}

.fm-ouverture::before {
	content: "";
	width: 0.55em;
	height: 0.55em;
	border-radius: 50%;
	background: var(--fm-gris-clair);
}

.fm-ouverture--ouvert {
	color: var(--fm-encre);
}

.fm-ouverture--ouvert::before {
	background: var(--fm-bordeaux);
}

/* ---------- Cartes (professionnel, produit, article) ---------- */

/* Carte blanche aux coins arrondis, ombre légère qui se soulève au survol ;
   la photo occupe le haut, bord à bord. */
.fm-carte,
.fm-produit-carte {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--fm-rayon);
	background: var(--fm-blanc);
	box-shadow: var(--fm-ombre);
	transition: box-shadow var(--fm-duree) ease, transform var(--fm-duree) ease;
}

.fm-carte > .fm-image,
.fm-produit-carte > .fm-image {
	border-radius: 0;
}

/* Fiche : la photo du produit s'agrandit dans la visionneuse (galerie.js) */
.fm-produit-carte__agrandir {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.fm-produit-carte__agrandir:hover img {
	transform: scale(1.04);
}

.fm-produit-carte__agrandir:focus-visible {
	outline: 3px solid var(--fm-bordeaux);
	outline-offset: -3px;
}

.fm-carte:hover {
	box-shadow: var(--fm-ombre-survol);
	transform: translateY(-2px);
}

.fm-carte:hover .fm-image img {
	transform: scale(1.04);
}

.fm-carte__corps {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--fm-espace-2);
	padding: var(--fm-espace-4) var(--fm-espace-4) var(--fm-espace-5);
}

.fm-carte__surtitre {
	color: var(--fm-gris);
	font-size: var(--fm-taille-petit);
}

.fm-carte__titre {
	font-size: 1.4375rem;
	line-height: 1.1;
}

.fm-carte__titre a {
	color: var(--fm-encre);
	text-decoration: underline;
	text-decoration-color: transparent;
	text-decoration-thickness: 2px;
	text-underline-offset: 0.14em;
}

/* Toute la carte est cliquable, par le seul lien du titre. */
.fm-carte__titre a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 2;
}

.fm-carte:hover .fm-carte__titre a {
	text-decoration-color: var(--fm-bordeaux);
}

.fm-carte__titre a:focus-visible {
	outline: none;
}

.fm-carte__titre a:focus-visible::after {
	border-radius: var(--fm-rayon);
	outline: 3px solid var(--fm-bordeaux);
	outline-offset: -3px; /* à l'intérieur : la carte coupe ce qui déborde */
}

.fm-carte__lieu {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--fm-encre);
	font-size: var(--fm-taille-petit);
	font-weight: 600;
}

.fm-carte__lieu .fm-epingle {
	height: 1.05em;
}

.fm-carte__accroche {
	color: var(--fm-gris);
	line-height: 1.5;
}

/* Distance (2026-11-17) : petite étiquette discrète en haut à gauche de la
   photo, voile sombre flouté, texte blanc, sur une seule ligne. */
.fm-image__distance {
	position: absolute;
	top: var(--fm-espace-3);
	left: var(--fm-espace-3);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.15rem 0.5rem;
	border-radius: var(--fm-rayon-petit);
	background: rgb(41 21 29 / 55%);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #fff;
	font-size: var(--fm-taille-mini);
	font-weight: 600;
	font-variant-numeric: lining-nums;
	line-height: 1.5;
	white-space: nowrap;
}

.fm-image__distance .fm-epingle {
	--fm-epingle: #fff;
	--fm-epingle-centre: rgb(41 21 29 / 70%);
	width: auto;
	height: 0.95em;
}

/* Prix indicatif : étiquette rose */
.fm-etiquette-prix {
	display: inline-block;
	padding: 0.15rem 0.65rem;
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-rose);
	color: var(--fm-encre);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.fm-carte .fm-pastilles {
	flex-wrap: nowrap;
	max-width: 100%;
	margin-top: auto;
	padding-top: var(--fm-espace-1);
}

/* Cartes (2026-11-11) : deux métiers et « +N » sur une seule ligne ; un nom
   trop long est coupé (« … ») plutôt que de passer à la ligne. */
.fm-carte .fm-pastilles > li {
	min-width: 0;
}

.fm-carte .fm-pastilles > li[data-fm-reste] {
	flex: none;
}

/* Mesure par navigation.js : largeur naturelle des pastilles */
.fm-carte .fm-pastilles.fm-mesure > li {
	flex: none;
}

.fm-carte .fm-pastilles.fm-mesure .fm-pastille {
	overflow: visible;
}

.fm-carte .fm-pastille {
	display: block;
	max-width: 100%;
	overflow: hidden;
	padding-block: 0.3rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* « +N » : les métiers non affichés */
.fm-pastille--reste {
	border-color: transparent;
	background: var(--fm-ivoire-fonce);
	color: var(--fm-gris);
}

.fm-art .fm-pastille--reste {
	background: var(--fm-art-teinte);
}

/* Article sans photo : carte typographique sur un fond ocre très léger */
.fm-carte--texte {
	align-items: flex-start;
	padding-top: var(--fm-espace-4);
	background: color-mix(in srgb, var(--fm-ocre) 16%, var(--fm-blanc));
}

.fm-carte--texte > .fm-rubrique {
	margin-left: var(--fm-espace-4);
}

.fm-carte--texte .fm-carte__corps {
	padding-top: var(--fm-espace-2);
}

.fm-carte--texte.fm-carte--grand .fm-carte__titre {
	max-width: 18ch;
	font-size: clamp(2.25rem, 4.4vw, 3.75rem);
}

/* Grand format (mosaïque de l'accueil) */
.fm-carte--grand .fm-carte__titre {
	font-size: clamp(1.875rem, 3vw, 2.5rem);
}

.fm-carte--grand .fm-carte__accroche {
	font-size: 1.125rem;
}

/* ---------- Formulaire de recherche ---------- */

.fm-recherche {
	display: grid;
	gap: var(--fm-espace-4);
}

.fm-recherche__champs {
	display: grid;
	align-items: start;
	gap: var(--fm-espace-4);
}

.fm-champ {
	display: grid;
	gap: var(--fm-espace-1);
}

.fm-champ label {
	font-size: var(--fm-taille-petit);
	font-weight: 600;
}

.fm-champ input,
.fm-champ select {
	width: 100%;
	min-height: 56px;
	padding: 0 var(--fm-espace-4);
	border: var(--fm-bord-champ);
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-blanc);
	color: var(--fm-encre);
	font-size: 1.0625rem;
	box-shadow: 0 1px 2px rgb(41 21 29 / 5%);
}

.fm-champ select {
	appearance: none;
	padding-right: 3rem;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-position: right 1.1rem center;
	background-repeat: no-repeat;
}

.fm-champ input::placeholder {
	color: #75656a;
}

/* Champ actif : bordure prune doublée vers l'intérieur, sans cadre autour
   (choix de l'utilisateur, 2026-11-04 : pas de cadre bordeaux). */
.fm-champ input:focus-visible,
.fm-champ select:focus-visible,
.fm-champ textarea:focus-visible {
	border-color: var(--fm-encre);
	outline: none;
	box-shadow: inset 0 0 0 1px var(--fm-encre), 0 0 0 4px rgb(41 21 29 / 8%);
}

/* ---------- Choix du produit : panneau dépliable, catégories avec icônes ---------- */

.fm-champ__libelle {
	font-size: var(--fm-taille-petit);
	font-weight: 600;
}

.fm-choix {
	position: relative;
	min-width: 0;
}

.fm-choix__bouton {
	display: flex;
	align-items: center;
	gap: var(--fm-espace-3);
	min-height: 56px;
	padding: 0 3rem 0 var(--fm-espace-4);
	border: var(--fm-bord-champ);
	border-radius: var(--fm-rayon-petit);
	box-shadow: 0 1px 2px rgb(41 21 29 / 5%);
	background: var(--fm-blanc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 1.1rem center;
	color: var(--fm-encre);
	font-size: 1.0625rem;
	white-space: nowrap;
	list-style: none;
	cursor: pointer;
}

.fm-choix__bouton::-webkit-details-marker {
	display: none;
}

.fm-choix[open] > .fm-choix__bouton {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 8l6-6 6 6' fill='none' stroke='%23171717' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.fm-choix__bouton:focus-visible {
	border-color: var(--fm-encre);
	outline: none;
	box-shadow: inset 0 0 0 1px var(--fm-encre), 0 0 0 4px rgb(41 21 29 / 8%);
}

.fm-choix__icone {
	display: flex;
	flex: none;
	color: var(--fm-bordeaux);
}

.fm-choix__valeur {
	overflow: hidden;
	text-overflow: ellipsis;
}

.fm-choix__panneau {
	min-width: 0;
	margin: var(--fm-espace-2) 0 0;
	padding: var(--fm-espace-3);
	border: 1px solid var(--fm-filet);
	border-radius: var(--fm-rayon);
	background: var(--fm-blanc);
	box-shadow: var(--fm-ombre);
}

/* Liste : une ligne par catégorie, icône puis nom ; sur téléphone, la liste
   défile dans le panneau ; sur ordinateur, en trois colonnes. */
.fm-choix__grille {
	max-height: min(26rem, 60vh);
	margin: 0;
	padding: 0;
	overflow-y: auto;
	list-style: none;
	overscroll-behavior: contain;
}

.fm-choix__grille li {
	break-inside: avoid;
}

.fm-choix__option {
	display: flex;
	align-items: center;
	gap: var(--fm-espace-3);
	min-height: 44px;
	padding: var(--fm-espace-2) var(--fm-espace-3);
	border: 2px solid transparent;
	border-radius: var(--fm-rayon-petit);
	color: var(--fm-encre);
	font-size: var(--fm-taille-petit);
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
}

.fm-choix__option .fm-icone {
	flex: none;
	width: 22px;
	height: 22px;
	color: var(--fm-bordeaux);
}

.fm-choix__option:hover {
	background: var(--fm-ivoire);
}

.fm-choix__option:has(input:focus-visible) {
	border-color: var(--fm-encre);
}

.fm-choix__option:has(input:checked) {
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

.fm-choix__option:has(input:checked) .fm-icone {
	color: var(--fm-rose);
}

.fm-choix__option:has(input:checked:focus-visible) {
	border-color: var(--fm-rose);
}

/* Métiers groupés par univers : un titre court au-dessus de chaque groupe */
.fm-choix__groupe {
	margin-top: var(--fm-espace-3);
	padding-top: var(--fm-espace-3);
	border-top: 1px solid var(--fm-filet);
}

.fm-choix__groupe[hidden] {
	display: none;
}

.fm-choix__titre {
	display: flex;
	align-items: center;
	gap: var(--fm-espace-2);
	margin: 0 0 var(--fm-espace-2);
	padding-inline: var(--fm-espace-3);
	color: var(--fm-gris);
	font-size: var(--fm-taille-mini);
	font-weight: 600;
}

.fm-choix__titre::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fm-bordeaux);
}

.fm-choix__groupe--art .fm-choix__titre::before {
	background: var(--fm-art);
}

.fm-choix__groupe--art .fm-choix__option .fm-icone {
	color: var(--fm-art);
}

.fm-choix__groupe--art .fm-choix__option:has(input:checked) .fm-icone {
	color: var(--fm-art-clair);
}

/* Les deux listes se suivent : seule la première défile sur téléphone */
.fm-choix__grille--tous {
	max-height: none;
	overflow: visible;
}

.fm-choix__panneau {
	max-height: min(30rem, 70vh);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.fm-choix__panneau .fm-choix__grille {
	max-height: none;
	overflow: visible;
}

/* « (facultatif) » après le libellé d'un filtre (2026-11-17) : gris, normal */
.fm-facultatif {
	color: var(--fm-gris);
	font-size: var(--fm-taille-mini);
	font-weight: 400;
}

/* ---------- Choix de l'univers : Tous · Artisans du goût · Artisans d'art ---------- */

.fm-univers-choix {
	display: inline-flex;
	flex-wrap: wrap;
	justify-self: start;
	gap: 2px;
	min-width: 0;
	margin: 0;
	padding: 3px;
	border: 1px solid var(--fm-filet);
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-blanc);
	box-shadow: 0 1px 2px rgb(41 21 29 / 5%);
}

.fm-univers-choix__option {
	display: inline-flex;
	align-items: center;
	gap: var(--fm-espace-2);
	min-height: 40px;
	padding: 0 var(--fm-espace-4);
	border-radius: 3px;
	color: var(--fm-encre);
	font-size: var(--fm-taille-petit);
	font-weight: 600;
	cursor: pointer;
}

/* Une pastille de la couleur de l'univers devant son nom */
.fm-univers-choix__option--gout::before,
.fm-univers-choix__option--art::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fm-bordeaux);
}

.fm-univers-choix__option--art::before {
	background: var(--fm-art);
}

.fm-univers-choix__option:hover {
	background: var(--fm-ivoire);
}

/* Téléphone (revu le 2026-11-17, « Artisans d'art » passait à la ligne) : le
   cadre prend toute la largeur, les trois choix se la partagent sur une ligne,
   avec les libellés courts « Goût » / « Art », comme sur la carte et les listes. */
@media (max-width: 639px) {
	.fm-univers-choix {
		display: flex;
		flex-wrap: nowrap;
		justify-self: stretch;
		width: 100%;
	}

	.fm-univers-choix__option {
		flex: 1 1 0;
		justify-content: center;
		gap: 6px;
		min-height: 40px;
		padding-inline: var(--fm-espace-2);
	}

	.fm-univers-choix__nom {
		font-size: 0;
	}

	.fm-univers-choix__nom::after {
		content: attr(data-court);
		font-size: var(--fm-taille-petit);
	}
}

.fm-univers-choix__option:has(input:focus-visible) {
	outline: 2px solid var(--fm-encre);
	outline-offset: -2px;
}

.fm-univers-choix__option:has(input:checked) {
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

.fm-univers-choix__option--gout:has(input:checked) {
	background: var(--fm-bordeaux);
}

.fm-univers-choix__option--art:has(input:checked) {
	background: var(--fm-art);
}

.fm-univers-choix__option:has(input:checked)::before {
	background: var(--fm-ivoire);
}

.fm-sombre .fm-champ__libelle {
	color: var(--fm-ivoire);
}

.fm-sombre .fm-choix__bouton {
	border-color: var(--fm-ivoire);
}

/* Ordinateur : le panneau s'ouvre par-dessus la page, sous le champ */
@media (min-width: 900px) {
	.fm-choix__panneau {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 20;
		width: min(48rem, calc(100vw - 2 * var(--fm-gouttiere)));
		padding: var(--fm-espace-3);
		box-shadow: 0 18px 44px rgb(41 21 29 / 16%);
	}

	.fm-choix__grille {
		max-height: none;
		overflow: visible;
		columns: 3;
		column-gap: var(--fm-espace-2);
	}
}

.fm-champ__erreur {
	color: var(--fm-bordeaux);
	font-size: var(--fm-taille-petit);
	font-weight: 600;
}

.fm-proximite {
	display: grid;
	gap: var(--fm-espace-2);
	justify-items: start;
}

/* Formulaire complet : colonne « Adresse » avec « Autour de moi » à droite du
   libellé et, dessous, le curseur « Dans un rayon de ». */
.fm-champ-adresse__tete {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--fm-espace-1) var(--fm-espace-3);
}

.fm-champ-adresse__position {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	min-height: 24px;
	margin-block: -3px; /* Cible de 24 px sans décaler le champ sous le libellé */
	padding: 0;
	border: 0;
	background: none;
	color: var(--fm-bordeaux);
	font: inherit;
	font-size: var(--fm-taille-petit);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.2em;
	cursor: pointer;
}

.fm-champ-adresse__position:hover {
	color: var(--fm-encre);
}

.fm-champ-adresse__position:disabled {
	opacity: 0.6;
	cursor: wait;
}

.fm-rayon {
	display: grid;
	margin-top: var(--fm-espace-2);
}

.fm-rayon label {
	font-size: var(--fm-taille-petit);
	font-weight: 600;
}

.fm-rayon output {
	color: var(--fm-bordeaux);
	font-variant-numeric: tabular-nums;
}

.fm-champ input[type="range"] {
	min-height: 0;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	accent-color: var(--fm-encre);
	cursor: pointer;
}

.fm-champ input[type="range"]:focus-visible {
	box-shadow: none;
	outline: 2px solid var(--fm-encre);
	outline-offset: 2px;
}

.fm-recherche__actions .fm-bouton--accent {
	flex: 1 1 auto;
}

/* Formulaire compact (accueil) : « Autour de moi », petite pilule sous les champs. */
.fm-recherche--compact .fm-proximite {
	order: 2;
	margin-top: calc(-1 * var(--fm-espace-2));
}

.fm-recherche--compact .fm-recherche__actions {
	order: 3;
}

.fm-recherche--compact .fm-proximite .fm-bouton {
	min-height: 40px;
	padding-inline: var(--fm-espace-4);
	border-color: var(--fm-gris-clair);
	background: var(--fm-blanc);
	font-size: var(--fm-taille-petit);
}

.fm-recherche--compact .fm-proximite .fm-bouton:hover {
	border-color: var(--fm-encre);
	background: var(--fm-encre);
}

/* Sur encre : libellés ivoire, contours ivoire */
.fm-sombre .fm-champ label {
	color: var(--fm-ivoire);
}

.fm-sombre .fm-champ input,
.fm-sombre .fm-champ select {
	border-color: var(--fm-ivoire);
}

.fm-sombre .fm-proximite .fm-bouton--secondaire {
	border-color: var(--fm-ivoire);
	color: var(--fm-ivoire);
}

.fm-sombre .fm-bouton--discret {
	color: var(--fm-ivoire);
}

.fm-sombre .fm-proximite .fm-bouton--secondaire:hover {
	background: var(--fm-ivoire);
	color: var(--fm-encre);
}

.fm-sombre .fm-champ__erreur {
	color: var(--fm-rose);
}

@media (min-width: 640px) {
	.fm-recherche__champs {
		grid-template-columns: 1fr 1fr;
	}

	.fm-recherche__actions .fm-bouton--accent {
		flex: 0 0 auto;
	}
}

@media (min-width: 900px) {
	/* Formulaire complet, trois colonnes : produit, mots-clés, puis l'adresse et
	   son curseur sur deux lignes ; les boutons sous produit et mots-clés, alignés
	   en bas sur le curseur (plus de vide sous les deux premiers champs). */
	.fm-recherche--ligne {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: start;
	}

	.fm-recherche--ligne .fm-recherche__champs {
		display: contents;
	}

	/* Le choix de l'univers occupe la première ligne */
	.fm-recherche--ligne > .fm-univers-choix {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.fm-recherche--ligne .fm-recherche__champs > :nth-child(1) {
		grid-column: 1;
		grid-row: 2;
	}

	.fm-recherche--ligne .fm-recherche__champs > :nth-child(2) {
		grid-column: 2;
		grid-row: 2;
	}

	.fm-recherche--ligne .fm-champ-adresse {
		grid-column: 3;
		grid-row: 2 / span 2;
	}

	.fm-recherche--ligne .fm-recherche__actions {
		grid-column: 1 / span 2;
		grid-row: 3;
		align-self: end;
	}

	/* Formulaire compact (couverture) : catégorie, mots-clés et bouton alignés */
	.fm-recherche--compact {
		grid-template-columns: 1fr auto;
		align-items: end;
		gap: var(--fm-espace-3);
	}

	.fm-recherche--compact .fm-recherche__champs {
		gap: var(--fm-espace-3);
	}

	.fm-recherche--compact > .fm-univers-choix {
		order: -1;
		grid-column: 1 / -1;
	}

	.fm-recherche--compact .fm-bouton--accent {
		min-height: 56px;
	}

	.fm-recherche--compact .fm-proximite {
		order: 3;
		grid-column: 1 / -1;
		margin-top: 0;
	}

	.fm-recherche--compact .fm-recherche__actions {
		order: 0;
	}
}

/* ---------- Synthèse, vues liste / carte, messages ---------- */

.fm-synthese {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--fm-espace-3) var(--fm-espace-4);
}

.fm-synthese__total {
	font-family: var(--fm-police-titre);
	font-size: clamp(1.625rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.fm-resultats__barre {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--fm-espace-4);
	padding-bottom: var(--fm-espace-4);
	border-bottom: 1px solid var(--fm-filet);
}

/* Bascule Liste / Carte : deux pilules dans une pilule, la vue courante est pleine */
.fm-vues {
	display: inline-flex;
	gap: 4px;
	padding: 4px;
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-ivoire-fonce);
	list-style: none;
}

.fm-vues a {
	display: inline-flex;
	align-items: center;
	gap: var(--fm-espace-2);
	min-height: 40px;
	padding: 0 var(--fm-espace-5);
	border-radius: var(--fm-rayon-petit);
	color: var(--fm-encre);
	font-weight: 600;
	text-decoration: none;
	transition: background-color var(--fm-duree) ease, color var(--fm-duree) ease;
}

.fm-vues a:hover {
	background: var(--fm-blanc);
}

.fm-vues a[aria-current="page"] {
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

.fm-message {
	padding: var(--fm-espace-4) var(--fm-espace-5);
	border-left: 4px solid var(--fm-ciel);
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-blanc);
	box-shadow: var(--fm-ombre);
}

.fm-message--erreur {
	border-left-color: var(--fm-bordeaux);
	font-weight: 600;
}

.fm-liste-vide {
	display: grid;
	justify-items: start;
	gap: var(--fm-espace-5);
	padding: var(--fm-espace-7) var(--fm-espace-6);
	border-radius: var(--fm-rayon-grand);
	background: var(--fm-ivoire-fonce);
	font-family: var(--fm-police-titre);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

.fm-liste-vide p {
	max-width: 30ch;
}

/* Recherche sans résultat : le fuligule bredouille (clin d'œil au nom) */
.fm-liste-vide__canard {
	width: clamp(5rem, 10vw, 7.5rem);
	height: auto;
	margin-bottom: calc(-1 * var(--fm-espace-3));
}

.fm-liste-vide .fm-liste-vide__conseil {
	max-width: 40ch;
	margin-top: calc(-1 * var(--fm-espace-3));
	color: var(--fm-gris);
	font-family: var(--fm-police);
	font-size: var(--fm-taille-texte);
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.5;
}

/* ---------- Pagination (the_posts_pagination, paginate_links) ---------- */

.pagination {
	margin-top: var(--fm-espace-8);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--fm-espace-2);
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 48px;
	min-height: 48px;
	padding: 0 var(--fm-espace-4);
	border: 1px solid var(--fm-gris-clair);
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-blanc);
	color: var(--fm-encre);
	font-weight: 600;
	text-decoration: none;
}

.pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

.pagination a.page-numbers:hover {
	border-color: var(--fm-encre);
}

.pagination .page-numbers.current {
	border-color: var(--fm-encre);
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

/* ---------- Fil d'Ariane ---------- */

.fm-ariane ol {
	display: flex;
	flex-wrap: wrap;
	gap: var(--fm-espace-2);
	list-style: none;
	font-size: var(--fm-taille-petit);
}

.fm-ariane li + li::before {
	content: "/";
	margin-right: var(--fm-espace-2);
	color: var(--fm-gris);
}

.fm-ariane a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
}

.fm-ariane [aria-current] {
	font-weight: 600;
}

/* ---------- Galerie ---------- */

/* Bandeau (2026-11-09) : toutes les photos à la même hauteur, chacune dans son
   format (portrait ou paysage, sans recadrage), qui défilent ; le nombre de
   photos et les flèches dessous. */
.fm-galerie {
	--fm-galerie-hauteur: clamp(15rem, 62vw, 22rem);
	display: grid;
	gap: var(--fm-espace-3);
}

.fm-galerie__bandeau {
	display: flex;
	gap: var(--fm-espace-3);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-padding-inline: 0;
	scrollbar-width: none;
}

.fm-galerie__bandeau::-webkit-scrollbar {
	display: none;
}

.fm-galerie__bandeau:focus-visible {
	outline: 2px solid var(--fm-encre);
	outline-offset: 4px;
}

.fm-galerie__photo {
	flex: none;
	height: var(--fm-galerie-hauteur);
	overflow: hidden;
	border-radius: var(--fm-rayon);
	background: var(--fm-ivoire-fonce);
	scroll-snap-align: start;
}

/* Largeur tirée des dimensions de la photo ; un panorama très large est
   recadré pour ne pas dépasser l'écran. */
.fm-galerie__photo img {
	display: block;
	width: auto;
	max-width: min(85vw, 40rem);
	height: 100%;
	object-fit: cover;
}

.fm-galerie__pied {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fm-espace-3);
}

.fm-galerie__compte {
	color: var(--fm-gris);
	font-size: var(--fm-taille-petit);
	font-weight: 600;
}

.fm-galerie__fleches {
	display: flex;
	gap: var(--fm-espace-2);
}

.fm-galerie__fleches[hidden] {
	display: none;
}

.fm-galerie__fleche {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--fm-encre);
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-blanc);
	color: var(--fm-encre);
	cursor: pointer;
	transition: background var(--fm-duree) ease, color var(--fm-duree) ease;
}

.fm-galerie__fleche:hover:not(:disabled) {
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

.fm-galerie__fleche:focus-visible {
	outline: 3px solid var(--fm-bordeaux);
	outline-offset: 2px;
}

.fm-galerie__fleche:disabled {
	border-color: var(--fm-gris-clair);
	color: var(--fm-gris-clair);
	cursor: default;
}

/* Un clic sur une photo ouvre la visionneuse (galerie.js) */
.fm-js [data-fm-galerie] .fm-galerie__photo {
	cursor: zoom-in;
}

/* « +N » : les photos non affichées, petite étiquette en bas à droite de la
   troisième photo de la grille du téléphone (pages.css) ; masqué ailleurs */
.fm-galerie__tout {
	display: none;
	place-items: center;
	min-width: 44px;
	min-height: 36px;
	padding: 0 var(--fm-espace-3);
	border: 0;
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-encre);
	color: var(--fm-blanc);
	font: inherit;
	font-size: var(--fm-taille-petit);
	font-weight: 600;
	cursor: zoom-in;
}

.fm-galerie__tout:focus-visible {
	outline: 3px solid var(--fm-bordeaux);
	outline-offset: 2px;
}

/* Visionneuse (galerie.js) : plein écran sur un voile noir translucide et
   flouté (la page reste devinée derrière, 2026-11-09, demande de
   l'utilisateur), les photos entières défilent à l'horizontale, une par
   écran ; boutons en verre dépoli, sans bordure. */
.fm-visionneuse {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 0;
	background: transparent;
	color: var(--fm-blanc);
}

.fm-visionneuse[open] {
	display: flex;
	flex-direction: column;
}

.fm-visionneuse::backdrop {
	background: rgb(12 12 12 / 72%);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.fm-visionneuse[open]::backdrop {
	animation: fm-visionneuse-voile var(--fm-duree) ease-out;
}

@keyframes fm-visionneuse-voile {
	from {
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fm-visionneuse[open]::backdrop {
		animation: none;
	}
}

html.fm-visionneuse-ouverte {
	overflow: hidden;
}

.fm-visionneuse__haut {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--fm-espace-3);
	padding: var(--fm-espace-3) var(--fm-gouttiere);
}

.fm-visionneuse__titre {
	font-size: var(--fm-taille-petit);
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	opacity: 0.85;
}

/* Bouton en verre dépoli (fermer, flèches) */
.fm-visionneuse__fermer,
.fm-visionneuse__fleche {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--fm-rayon-petit);
	background: rgb(255 255 255 / 14%);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--fm-blanc);
	cursor: pointer;
	transition: background var(--fm-duree) ease;
}

.fm-visionneuse__fermer:hover,
.fm-visionneuse__fleche:hover:not(:disabled) {
	background: rgb(255 255 255 / 26%);
}

.fm-visionneuse__fermer:focus-visible {
	outline: 3px solid var(--fm-blanc);
	outline-offset: 2px;
}

.fm-visionneuse__liste {
	flex: 1;
	display: flex;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	overflow-y: hidden;
	list-style: none;
	overscroll-behavior: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.fm-visionneuse__liste::-webkit-scrollbar {
	display: none;
}

.fm-visionneuse__liste li {
	flex: 0 0 100%;
	display: grid;
	grid-template: minmax(0, 1fr) / minmax(0, 1fr);
	min-width: 0;
	padding: 0 var(--fm-espace-2) var(--fm-espace-5);
	scroll-snap-align: center;
	scroll-snap-stop: always;
}

/* La photo entière, sans recadrage, aussi grande que l'écran le permet */
.fm-visionneuse__liste img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Flèches : seulement avec une souris, au doigt on fait glisser */
.fm-visionneuse__fleche {
	display: none;
}

@media (hover: hover) and (pointer: fine) {
	.fm-visionneuse__fleche {
		position: absolute;
		top: 50%;
		display: grid;
		width: 48px;
		height: 48px;
		transform: translateY(-50%);
	}

	.fm-visionneuse__fleche--precedent {
		left: var(--fm-gouttiere);
	}

	.fm-visionneuse__fleche--suivant {
		right: var(--fm-gouttiere);
	}

	.fm-visionneuse__fleche:disabled {
		opacity: 0.3;
		cursor: default;
	}

	.fm-visionneuse__fleche:focus-visible {
		outline: 3px solid var(--fm-blanc);
		outline-offset: 2px;
	}

}

/* Grand écran à souris : les flèches à côté de la photo, pas dessus */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
	.fm-visionneuse__liste li {
		padding-inline: calc(var(--fm-gouttiere) + 64px);
	}
}

/* Une seule photo : en grand, sur toute la largeur */
.fm-galerie--unique .fm-galerie__photo {
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
}

.fm-galerie--unique .fm-galerie__photo img {
	width: 100%;
	max-width: none;
}

@media (min-width: 900px) {
	.fm-galerie {
		--fm-galerie-hauteur: 22rem;
	}

	.fm-galerie__bandeau {
		gap: var(--fm-espace-4);
	}

	.fm-galerie--unique .fm-galerie__photo {
		aspect-ratio: 21 / 9;
	}
}

/* ---------- Infos pratiques ---------- */

.fm-infos {
	display: grid;
	margin: 0;
}

.fm-infos > div {
	display: grid;
	gap: var(--fm-espace-1);
	padding-block: var(--fm-espace-4);
	border-top: 1px solid var(--fm-filet);
}

.fm-infos > div:first-child {
	border-top: 0;
	padding-top: 0;
}

.fm-infos dt {
	color: var(--fm-gris);
	font-size: var(--fm-taille-mini);
	font-weight: 600;
}

.fm-infos > div,
.fm-infos dd {
	min-width: 0;
}

.fm-infos dd {
	margin: 0;
}

/* Une adresse web longue (sans espace) se coupe au lieu de déborder */
.fm-infos dd > a,
.fm-infos dd > ul > li > a {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	min-height: 44px;
	font-weight: 600;
	overflow-wrap: anywhere;
}

.fm-infos dd > ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0 var(--fm-espace-5);
	list-style: none;
}

.fm-adresse {
	font-family: var(--fm-police-titre);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
}

.fm-horaires {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--fm-espace-1) var(--fm-espace-5);
	margin: 0;
}

.fm-horaires dt {
	margin: 0;
	color: var(--fm-encre);
	font-size: 1rem;
	font-weight: 600;
}

.fm-horaires dd {
	font-variant-numeric: tabular-nums;
}

/* ---------- Produit du catalogue d'une fiche ---------- */

.fm-produit-carte {
	scroll-margin-top: var(--fm-espace-6);
}

.fm-produit-carte:target {
	outline: 3px solid var(--fm-bordeaux);
	outline-offset: 4px;
}

.fm-produit-carte__corps {
	display: grid;
	justify-items: start;
	gap: var(--fm-espace-1);
	padding: var(--fm-espace-3) var(--fm-espace-4) var(--fm-espace-4);
}

.fm-produit-carte__nom {
	font-size: 1.25rem;
	line-height: 1.15;
}

.fm-produit-carte__saison {
	color: var(--fm-gris);
	font-size: var(--fm-taille-mini);
}

.fm-produit-carte__description {
	color: var(--fm-gris);
	font-size: var(--fm-taille-petit);
	line-height: 1.45;
}

.fm-produit-carte__lien {
	font-size: var(--fm-taille-petit);
	font-weight: 600;
}

/* ---------- Encart de carte (toujours affiché, chargé à l'arrivée à l'écran) ---------- */

/* isolation : les z-index de Leaflet (jusqu'à 1000) restent dans l'encart. */
.fm-encart-carte {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: var(--fm-rayon-grand);
	background: var(--fm-encre);
	color: var(--fm-gris-clair);
}

.fm-encart-carte--fiche {
	border-radius: var(--fm-rayon);
}

/* Hauteur réservée dès le départ : rien ne bouge quand la carte arrive. */
.fm-encart-carte__carte {
	position: relative;
	height: 440px;
	background: var(--fm-encre);
}

/* Pendant le chargement : les fiches en points roses, placés par leurs coordonnées */
.fm-encart-carte__points {
	position: absolute;
	inset: var(--fm-espace-6) 20%;
	margin: 0;
	list-style: none;
	opacity: 0.9;
}

.fm-encart-carte__points li {
	position: absolute;
	width: 10px;
	height: 10px;
	margin: -5px 0 0 -5px;
	border-radius: 50%;
	background: var(--fm-rose);
	box-shadow: 0 0 0 4px rgb(233 169 184 / 25%);
}

/* Sans JavaScript : une phrase et un message à la place de la carte */
.fm-encart-carte__sans-js {
	display: grid;
	gap: var(--fm-espace-3);
	padding: var(--fm-espace-6);
}

.fm-js .fm-encart-carte__sans-js,
html:not(.fm-js) .fm-encart-carte__carte {
	display: none;
}

.fm-encart-carte__phrase {
	max-width: 18ch;
	color: var(--fm-ivoire);
	font-family: var(--fm-police-titre);
	font-size: clamp(1.75rem, 3.5vw, 2.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
}

/* Fiche : carte carrée sous l'adresse (2026-11-09), place réservée par le ratio */
.fm-encart-carte--fiche .fm-encart-carte__carte {
	height: auto;
	aspect-ratio: 1;
}

.fm-carte-fiche {
	margin-top: var(--fm-espace-3);
}

/* Page « La carte » : la carte est l'entrée du site, elle prend l'écran. */
.fm-encart-carte--page .fm-encart-carte__carte {
	height: clamp(420px, 68vh, 640px);
}

.fm-encart-carte--fiche .fm-encart-carte__phrase {
	font-size: 1.5rem;
}

.fm-encart-carte__tactile {
	margin: 0;
	padding: var(--fm-espace-2) var(--fm-espace-5) 0;
	color: var(--fm-gris-clair);
}

.fm-encart-carte__erreur {
	margin: var(--fm-espace-3);
	color: var(--fm-encre);
}

@media (max-width: 639px) {
	.fm-encart-carte__points {
		inset: var(--fm-espace-5) 10%;
	}
}

@media (min-width: 900px) {
	.fm-encart-carte__carte {
		height: 560px;
	}

	.fm-encart-carte--page .fm-encart-carte__carte {
		height: clamp(560px, 76vh, 860px);
	}
}

/* Marqueur SVG du thème (L.divIcon) : pas de cadre ni d'image Leaflet. */
.fm-marqueur {
	border: 0;
	background: none;
}

.fm-encart-carte .leaflet-container {
	font-family: var(--fm-police);
	font-size: 0.9375rem;
}

.fm-encart-carte .leaflet-container a {
	color: var(--fm-encre);
}

.fm-encart-carte .leaflet-bar {
	overflow: hidden;
	border: 0;
	border-radius: var(--fm-rayon-petit);
	box-shadow: var(--fm-ombre);
}

.fm-encart-carte .leaflet-bar a,
.fm-encart-carte .leaflet-touch .leaflet-bar a {
	width: 44px;
	height: 44px;
	border-radius: 0;
	color: var(--fm-encre);
	line-height: 44px;
}

.fm-encart-carte .leaflet-top.leaflet-left {
	margin: var(--fm-espace-2);
}

.fm-encart-carte .leaflet-container :focus-visible {
	outline: 3px solid var(--fm-bordeaux);
	outline-offset: 2px;
}

/* Bulle d'une fiche sur la carte, compacte : photo carrée à gauche ; lieu, nom,
   ouverture, accroche (deux lignes au plus) et lien à droite. */
.fm-encart-carte .leaflet-popup-content-wrapper,
.fm-encart-carte .leaflet-popup-tip {
	background: var(--fm-blanc);
	color: var(--fm-encre);
	box-shadow: 0 10px 30px rgb(41 21 29 / 22%);
}

.fm-encart-carte .leaflet-popup-content-wrapper {
	padding: 0;
	overflow: hidden;
	border-radius: var(--fm-rayon);
}

.fm-encart-carte .leaflet-popup-content {
	margin: 0;
	font-size: var(--fm-taille-petit);
	line-height: 1.45;
}

.fm-encart-carte .leaflet-popup-content p {
	margin: 0;
}

.fm-encart-carte .leaflet-container a.leaflet-popup-close-button {
	top: 4px;
	right: 4px;
	z-index: 1;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--fm-ivoire);
	color: var(--fm-encre);
	font: 600 1.125rem/28px var(--fm-police);
	text-align: center;
}

.fm-encart-carte .leaflet-container a.leaflet-popup-close-button:hover {
	background: var(--fm-encre);
	color: var(--fm-ivoire);
}

/* Carte d'une fiche à plusieurs lieux : étiquette prune au nom du lieu
   (au survol, ou au toucher de l'épingle) */
.fm-encart-carte .leaflet-tooltip.fm-etiquette-lieu {
	padding: 0.2rem 0.55rem;
	border: 0;
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-encre);
	box-shadow: var(--fm-ombre);
	color: var(--fm-ivoire);
	font: 600 var(--fm-taille-mini)/1.3 var(--fm-police);
}

.fm-encart-carte .leaflet-tooltip.fm-etiquette-lieu::before {
	border-top-color: var(--fm-encre);
}

.fm-bulle--photo {
	display: grid;
	grid-template-columns: 104px minmax(0, 1fr);
}

.fm-bulle__photo {
	display: block;
	width: 104px;
	height: 100%;
	min-height: 104px;
	object-fit: cover;
	background: var(--fm-ivoire-fonce);
}

.fm-bulle__corps {
	display: grid;
	align-content: start;
	justify-items: start;
	gap: 0.3rem;
	padding: var(--fm-espace-3) 2.25rem var(--fm-espace-3) var(--fm-espace-3);
}

.fm-bulle__corps .fm-rubrique {
	font-size: 0.75rem;
}

.fm-bulle__lieu {
	color: var(--fm-gris);
	font-size: var(--fm-taille-mini);
	font-weight: 600;
	line-height: 1.3;
}

.fm-encart-carte .leaflet-container a.fm-bulle__nom {
	color: var(--fm-encre);
	font-family: var(--fm-police-titre);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
	text-decoration: none;
}

.fm-encart-carte .leaflet-container a.fm-bulle__nom:hover {
	text-decoration: underline;
	text-decoration-color: var(--fm-bordeaux);
}

.fm-bulle__corps .fm-ouverture {
	font-size: var(--fm-taille-mini);
}

.fm-bulle__accroche {
	display: -webkit-box;
	overflow: hidden;
	color: var(--fm-gris);
	font-size: var(--fm-taille-mini);
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.fm-encart-carte .leaflet-container a.fm-bulle__voir {
	display: inline-block;
	margin-top: 0.15rem;
	color: var(--fm-bordeaux);
	font-size: var(--fm-taille-mini);
	font-weight: 600;
	line-height: 24px;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.fm-encart-carte .leaflet-container a.fm-bulle__voir:hover {
	color: var(--fm-encre);
}

.fm-resultats__barre + .fm-liste-vide {
	border-top: 0;
}

/* Bouton « Haut de page » (navigation.js), en bas à droite, après un écran de défilement */
.fm-haut {
	position: fixed;
	right: max(16px, env(safe-area-inset-right));
	bottom: max(16px, env(safe-area-inset-bottom));
	z-index: 40;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: var(--fm-rayon-grand);
	background: var(--fm-blanc);
	box-shadow: var(--fm-ombre-survol);
	color: var(--fm-encre);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity var(--fm-duree), transform var(--fm-duree), visibility var(--fm-duree), background-color var(--fm-duree), color var(--fm-duree);
}

.fm-haut.est-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.fm-haut:hover {
	background: var(--fm-bordeaux);
	color: var(--fm-blanc);
}

.fm-haut:focus-visible {
	outline: 2px solid var(--fm-bordeaux);
	outline-offset: 3px;
}

.fm-univers-art .fm-haut:hover {
	background: var(--fm-art);
}

.fm-univers-art .fm-haut:focus-visible {
	outline-color: var(--fm-art);
}

@media (min-width: 900px) {
	.fm-haut {
		right: 24px;
		bottom: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fm-haut {
		transform: none;
		transition: none;
	}
}