/*
 * Fuligule — base : remise à zéro légère, typographie, liens, focus, texte long.
 */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--fm-ivoire);
	color: var(--fm-encre);
	font-family: var(--fm-police);
	font-size: var(--fm-taille-texte);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	color: var(--fm-encre);
	font-family: var(--fm-police-titre);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 {
	font-size: var(--fm-taille-h1);
}

h2 {
	font-size: var(--fm-taille-h2);
}

h3 {
	font-size: var(--fm-taille-h3);
	line-height: 1.12;
	letter-spacing: -0.01em;
}

h4 {
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

/* Le mot accentué d'un titre : italique souligné de bordeaux sur porcelaine. */
h1 em,
h2 em,
.fm-accent {
	font-style: italic;
	text-decoration: underline;
	text-decoration-color: var(--fm-bordeaux);
	text-decoration-thickness: 0.07em;
	text-underline-offset: 0.1em;
	text-decoration-skip-ink: none;
}

p {
	margin: 0;
	text-wrap: pretty;
}

/* Seules les graisses chargées : Inter 600, Playfair 700 (pas de graisse simulée). */
b,
strong {
	font-weight: 600;
}

h1 strong,
h2 strong,
h3 strong,
.fm-tampon strong,
.fm-prix strong {
	font-weight: 700;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

img,
svg,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

figure {
	margin: 0;
}

address {
	font-style: normal;
}

a {
	color: var(--fm-encre);
	text-decoration-thickness: 2px;
	text-decoration-color: var(--fm-bordeaux);
	text-underline-offset: 0.2em;
	transition: color var(--fm-duree) ease, text-decoration-color var(--fm-duree) ease;
}

a:hover {
	text-decoration-color: var(--fm-encre);
}

:focus-visible {
	outline: 3px solid var(--fm-bordeaux);
	outline-offset: 3px;
	border-radius: var(--fm-rayon-petit);
}

.fm-texte img {
	border-radius: var(--fm-rayon);
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

::selection {
	background: var(--fm-rose);
	color: var(--fm-encre);
}

/* Texte réservé aux lecteurs d'écran */
.screen-reader-text,
.fm-visuellement-cache {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* L'attribut hidden l'emporte toujours sur le display d'un composant. */
[hidden] {
	display: none !important;
}

/* Lien d'évitement */
.fm-evitement {
	position: absolute;
	top: -100px;
	left: var(--fm-espace-4);
	z-index: 1000;
	padding: var(--fm-espace-3) var(--fm-espace-5);
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-encre);
	color: var(--fm-ivoire);
	font-weight: 600;
	text-decoration: none;
}

.fm-evitement:focus {
	top: var(--fm-espace-3);
	color: var(--fm-ivoire);
}

.admin-bar .fm-evitement:focus {
	top: calc(var(--wp-admin--admin-bar--height, 46px) + var(--fm-espace-3));
}

/* Rubrique : étiquette pleine au-dessus d'un titre ou sur une image */
.fm-rubrique {
	display: inline-block;
	padding: 0.3rem 0.75rem 0.25rem;
	border-radius: var(--fm-rayon-petit);
	background: var(--fm-encre);
	color: var(--fm-ivoire);
	font-family: var(--fm-police);
	font-size: var(--fm-taille-mini);
	font-style: normal;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1.3;
}

.fm-rubrique--bordeaux {
	background: var(--fm-bordeaux);
	color: var(--fm-ivoire);
}

.fm-rubrique--rose {
	background: var(--fm-rose);
	color: var(--fm-encre);
}

.fm-rubrique--ocre {
	background: var(--fm-ocre);
	color: var(--fm-encre);
}

.fm-rubrique--ivoire {
	background: var(--fm-ivoire);
	color: var(--fm-encre);
}

/* « Artisan d'art » : bleu des artisans d'art, texte clair */
.fm-rubrique--art {
	background: var(--fm-art);
	color: var(--fm-ivoire);
}

/* Chez les artisans d'art (2026-11-09) : le bleu remplace le bordeaux comme
   accent (soulignements, épingles, boutons d'action, liens, icônes, cases).
   fm-art se pose sur un bloc (carte, section, mot) ; fm-univers-art, sur
   <body>, colore tout le contenu de la page (fiche, page d'univers…). */
.fm-art,
.fm-univers-art .fm-main {
	--fm-bordeaux: var(--fm-art);
	--fm-epingle: var(--fm-art);
	--fm-ivoire-fonce: var(--fm-art-teinte);
	--fm-filet: var(--fm-art-filet);
}

.fm-legende {
	color: var(--fm-gris);
	font-size: var(--fm-taille-petit);
	line-height: 1.5;
}

/* Texte long saisi dans l'éditeur (présentation, description, article, page) */
.fm-texte {
	max-width: var(--fm-largeur-lecture);
	font-size: 1.0625rem;
	line-height: 1.7;
}

.fm-texte > * + * {
	margin-top: 1em;
}

.fm-texte h2,
.fm-texte h3 {
	margin-top: 1.5em;
}

.fm-texte h2 {
	font-size: 2rem;
}

.fm-texte h3 {
	font-size: 1.5rem;
}

.fm-texte ul,
.fm-texte ol {
	padding-left: 1.4em;
}

.fm-texte li + li {
	margin-top: 0.35em;
}

.fm-texte li::marker {
	color: var(--fm-bordeaux);
}

.fm-texte blockquote {
	margin-inline: 0;
	padding-left: var(--fm-espace-5);
	border-left: 4px solid var(--fm-bordeaux);
	font-family: var(--fm-police-titre);
	font-size: 1.625rem;
	font-style: italic;
	line-height: 1.3;
}

.fm-texte figcaption {
	margin-top: var(--fm-espace-2);
	color: var(--fm-gris);
	font-size: var(--fm-taille-petit);
}

.fm-texte hr {
	border: 0;
	border-top: 1px solid var(--fm-filet);
}

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