/* ==========================================================================
   Bonne Mouture — charte « Torréfaction » (GeneratePress + Bonne Mouture Core)
   Valeurs relevées sur les maquettes Torrefaction-desktop et -mobile.
   Polices : Newsreader (titres, logo), Figtree (texte), auto-hébergées.
   Tout est rangé sous body.bm : aucune règle ne touche aux fichiers du thème.
   Aucune adresse externe dans ce fichier.
   ========================================================================== */

:root {
	--bm-torrefie: #22150E;
	--bm-encre: #22160F;
	--bm-caramel: #E8B57B;
	--bm-caramel-clair: #F1CB97;
	--bm-creme: #F7EEE4;
	--bm-sable: #CDB8A3;
	--bm-gris-brun: #6E5D51;
	--bm-rouille: #9A3F12;
	--bm-rouille-survol: #6F2C0B;
	--bm-lait: #F8F2EB;
	--bm-bordure: #E6D9CB;
	--bm-surligne: #FBF1E4;
	--bm-vert: #2E6A45;
	--bm-blanc: #FFFFFF;
	--bm-torrefie-survol: #3A2618;
	--bm-trait-sombre: rgba(247, 238, 228, 0.2);
	--bm-alerte-fond: #FFF6E0;
	--bm-titre: 'Newsreader', Georgia, 'Times New Roman', serif;
	--bm-texte: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
	--bm-largeur: 1140px;
	--bm-gouttiere: 24px;
	--bm-haut: var(--wp-admin--admin-bar--height, 0px);
}

/* ── Base ────────────────────────────────────────────────────────────── */

html { scroll-padding-top: calc(var(--bm-haut) + 16px); }

/* Sous le pied (page courte, grand écran) et au rebond de défilement (iOS) :
   torréfié comme le pied et l'en-tête. Le contenu garde le fond blanc de body.bm. */
html { background: var(--bm-torrefie); }

@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}

body.bm {
	background: var(--bm-blanc);
	color: var(--bm-encre);
	font-family: var(--bm-texte);
	font-size: 18px;
	line-height: 1.6;
	overflow-x: clip;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.bm button,
body.bm input,
body.bm select,
body.bm textarea { font-family: var(--bm-texte); }

body.bm a {
	color: var(--bm-rouille);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

body.bm a:hover,
body.bm a:focus,
body.bm a:active { color: var(--bm-rouille-survol); }

body.bm :focus-visible {
	outline: 2px solid var(--bm-rouille);
	outline-offset: 3px;
}

body.bm .site-header :focus-visible,
body.bm .bm-reponse :focus-visible,
body.bm .site-footer :focus-visible { outline-color: var(--bm-caramel); }

body.bm strong,
body.bm b { font-weight: 700; }

body.bm h1,
body.bm h2,
body.bm h3 {
	font-family: var(--bm-titre);
	font-weight: 600;
	color: var(--bm-encre);
	text-wrap: balance;
}

.bm-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.bm-icone { display: block; flex-shrink: 0; }

/* Étiquettes en capitales (« La réponse courte », « Notre méthode »…) */
body.bm .bm-label {
	display: block;
	margin: 0;
	font-family: var(--bm-texte);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bm-gris-brun);
}

body.bm .bm-label--caramel { color: var(--bm-caramel); }
body.bm .bm-label--sable { color: var(--bm-sable); margin-bottom: 8px; }
body.bm .bm-label--discret { margin-bottom: 8px; }

/* ── En-tête ─────────────────────────────────────────────────────────── */

body.bm .site-header {
	background: var(--bm-torrefie);
	color: var(--bm-creme);
}

body.bm .inside-header {
	max-width: var(--bm-largeur);
	box-sizing: content-box;
	margin: 0 auto;
	padding: 0 var(--bm-gouttiere);
	min-height: 76px;
	column-gap: 32px;
}

body.bm .main-title {
	margin: 0;
	font-size: inherit;
	line-height: 1;
}

body.bm .bm-logo a,
body.bm a.bm-logo,
body.bm .bm-logo a:hover,
body.bm a.bm-logo:hover,
body.bm .bm-logo a:focus,
body.bm a.bm-logo:focus {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	color: var(--bm-caramel);
	text-decoration: none;
}

.bm-logo__grain { width: 28px; height: 28px; }

.bm-logo__nom {
	font-family: var(--bm-titre);
	font-style: italic;
	font-weight: 600;
	font-size: 28px;
	line-height: 1;
	white-space: nowrap;
}

/* Menu des rubriques (ordinateur) */
body.bm .main-navigation,
body.bm .main-navigation ul ul { background: transparent; }

body.bm .main-navigation .main-nav > ul { gap: 0 30px; }

body.bm .main-navigation .main-nav ul li a,
body.bm .main-navigation .main-nav ul li[class*="current-menu-"] > a,
body.bm .main-navigation .main-nav ul li:hover > a,
body.bm .main-navigation .main-nav ul li > a:focus {
	display: block;
	padding: 29px 0 26px;
	line-height: 1.2;
	font-family: var(--bm-texte);
	font-weight: 500;
	font-size: 15.5px;
	color: var(--bm-creme);
	background: transparent;
	text-decoration: none;
	border-bottom: 2px solid transparent;
}

body.bm .main-navigation .main-nav ul li:hover > a,
body.bm .main-navigation .main-nav ul li > a:focus { color: var(--bm-caramel-clair); }

body.bm .main-navigation .main-nav ul li.current-menu-item > a,
body.bm .main-navigation .main-nav ul li.current-menu-ancestor > a { border-bottom-color: var(--bm-caramel); }

/* Anneau de focus du menu en ligne : un lien occupe toute la hauteur de
   l'en-tête, un contour ordinaire sortirait de la page en haut et tomberait
   sur le blanc du contenu en bas. Il est donc dessiné à l'intérieur de
   l'en-tête sombre, sans couvrir le texte ni le soulignement de la rubrique
   courante. Le menu ouvert sur téléphone (.toggled) garde le contour. */
body.bm .main-navigation:not(.toggled) .main-nav ul li a { position: relative; }

body.bm .main-navigation:not(.toggled) .main-nav ul li a:focus-visible { outline: none; }

body.bm .main-navigation:not(.toggled) .main-nav ul li a:focus-visible::after {
	content: "";
	position: absolute;
	top: 6px;
	bottom: 4px;
	left: -8px;
	right: -8px;
	border: 2px solid var(--bm-caramel);
	border-radius: 8px;
	pointer-events: none;
}

/* ── Mise en page GeneratePress : contenu + colonne de 280 px ────────── */

body.bm .site.grid-container {
	max-width: calc(var(--bm-largeur) + 2 * var(--bm-gouttiere));
	background: transparent;
}

body.bm .site-content { padding: 32px var(--bm-gouttiere) 80px; }

body.bm.right-sidebar .site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	column-gap: 64px;
	align-items: start;
}

body.bm.right-sidebar .site-content .content-area,
body.bm.right-sidebar .site-content .is-right-sidebar { width: auto; }

body.bm.one-container .site-main,
body.bm.separate-containers .site-main,
body.bm .site-main { margin: 0; }

body.bm .site-main > * { margin-bottom: 0; }

body.bm .inside-article {
	padding: 0;
	background: transparent;
}

/* Colonne de droite collante */
body.bm .is-right-sidebar {
	position: sticky;
	top: calc(var(--bm-haut) + 24px);
	align-self: start;
}

body.bm .inside-right-sidebar {
	margin: 0;
	padding: 0;
}

body.bm .is-right-sidebar .widget { display: none; }

/* ── Haut de page : bandeau d'exemple, fil d'Ariane, H1, date ────────── */

body.bm .entry-header { margin: 0; }

body.bm .bm-bandeau-exemple {
	margin: 0 0 18px;
	padding: 10px 14px;
	border: 1px solid var(--bm-caramel);
	border-radius: 10px;
	background: var(--bm-surligne);
	color: var(--bm-rouille);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

body.bm .bm-fil__liste {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--bm-gris-brun);
}

body.bm .bm-fil__etape {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 6px;
}

body.bm .bm-fil a {
	position: relative;
	color: var(--bm-gris-brun);
	text-decoration: none;
}

/* Zone tactile de 44 px de haut autour du lien, invisible : la mise en page
   et l'anneau de focus restent ceux du texte. */
body.bm .bm-fil a::before {
	content: "";
	position: absolute;
	left: -4px;
	right: -4px;
	top: 50%;
	height: 44px;
	margin-top: -22px;
}

body.bm .bm-fil a:hover,
body.bm .bm-fil a:focus {
	color: var(--bm-rouille);
	text-decoration: underline;
}

body.bm .bm-fil [aria-current="page"] { color: var(--bm-encre); }

body.bm .entry-title {
	margin: 22px 0 0;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 48px;
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--bm-encre);
	text-wrap: balance;
}

body.bm .entry-header > .entry-title:first-child { margin-top: 0; }

body.bm .bm-date {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--bm-gris-brun);
}

/* ── Corps de la page ────────────────────────────────────────────────── */

body.bm .entry-content:not(:first-child) { margin-top: 0; }

body.bm .entry-content {
	padding-top: 22px;
	font-size: 18px;
	line-height: 1.6;
}

body.bm .entry-content > :first-child { margin-top: 0; }

/* Typographie générale du contenu (les composants ont leurs propres règles, plus précises). */
body.bm :where(.entry-content) p { margin: 0 0 18px; }

body.bm :where(.entry-content) h2 {
	margin: 52px 0 12px;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 34px;
	line-height: 1.15;
	color: var(--bm-encre);
}

body.bm :where(.entry-content) h3 {
	margin: 32px 0 10px;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 24px;
	line-height: 1.25;
	color: var(--bm-encre);
}

body.bm :where(.entry-content ul:not([class]), .entry-content ol:not([class])) {
	margin: 0 0 18px 1.3em;
	padding: 0;
}

body.bm :where(.entry-content ul:not([class]) > li, .entry-content ol:not([class]) > li) { margin: 0 0 8px; }

/* Listes du corps (0.1.6) : puces rouille ; étapes numérotées en pastilles caramel, comme le rang des fiches. */
body.bm .entry-content ul:not([class]) > li::marker { color: var(--bm-rouille); }

body.bm .entry-content ol:not([class]) {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
	counter-reset: bm-etape;
}

body.bm .entry-content ol:not([class]) > li {
	position: relative;
	margin: 0 0 14px;
	padding-left: 46px;
	min-height: 32px;
	counter-increment: bm-etape;
}

body.bm .entry-content ol:not([class]) > li::before {
	content: counter(bm-etape);
	position: absolute;
	left: 0;
	top: -1px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bm-caramel);
	color: var(--bm-torrefie);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 18px;
	line-height: 1;
}

/* Encadré d'ouverture sombre (accueil), dans l'esprit de « La réponse courte ». */
body.bm .bm-une {
	margin: 8px 0 40px;
	padding: 30px 34px;
	background: var(--bm-torrefie);
	border-radius: 18px;
	color: var(--bm-creme);
}

body.bm .bm-une .bm-chapeau {
	margin: 10px 0 0;
	font-size: 19px;
	line-height: 1.6;
	color: var(--bm-creme);
}

body.bm .bm-une__actions {
	margin: 24px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
}

body.bm .bm-une :focus-visible { outline-color: var(--bm-caramel); }

body.bm a.bm-bouton--contour,
body.bm a.bm-bouton--contour:visited {
	background: transparent;
	color: var(--bm-creme);
	box-shadow: inset 0 0 0 2px var(--bm-caramel);
	text-decoration: none;
}

body.bm a.bm-bouton--contour:hover,
body.bm a.bm-bouton--contour:focus,
body.bm a.bm-bouton--contour:active {
	background: rgba(232, 181, 123, 0.16);
	color: var(--bm-creme);
	text-decoration: none;
}

/* Encadré clair (méthode, renvois), comme « En résumé ». */
body.bm .bm-encadre {
	margin: 40px 0 0;
	padding: 26px 30px;
	background: var(--bm-lait);
	border-radius: 16px;
}

body.bm .bm-encadre > h2 { margin: 0; }

body.bm .bm-encadre > p { margin: 12px 0 0; }

/* Grille [bm_cartes] dans le corps : deux colonnes, une sur téléphone. */
body.bm .bm-cartes {
	list-style: none;
	margin: 18px 0 8px;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

body.bm .bm-cartes li { margin: 0; }

body.bm .bm-chapeau { margin: 0 0 18px; }

/* ── Boutons ─────────────────────────────────────────────────────────── */

body.bm .bm-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 24px;
	border-radius: 999px;
	font-family: var(--bm-texte);
	font-weight: 600;
	font-size: 16.5px;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.bm a.bm-bouton--caramel,
body.bm a.bm-bouton--caramel:visited {
	background: var(--bm-caramel);
	color: var(--bm-torrefie);
	text-decoration: none;
}

body.bm a.bm-bouton--caramel:hover,
body.bm a.bm-bouton--caramel:focus,
body.bm a.bm-bouton--caramel:active {
	background: var(--bm-caramel-clair);
	color: var(--bm-torrefie);
	text-decoration: none;
}

body.bm a.bm-bouton--sombre,
body.bm a.bm-bouton--sombre:visited {
	background: var(--bm-torrefie);
	color: var(--bm-caramel-clair);
	text-decoration: none;
}

body.bm a.bm-bouton--sombre:hover,
body.bm a.bm-bouton--sombre:focus,
body.bm a.bm-bouton--sombre:active {
	background: var(--bm-torrefie-survol);
	color: var(--bm-caramel-clair);
	text-decoration: none;
}

body.bm .bm-bouton-seul {
	display: flex;
	flex-wrap: wrap;
	margin: 24px 0;
}

body.bm .bm-indisponible {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--bm-gris-brun);
}

/* ── Encadré « La réponse courte » ───────────────────────────────────── */

body.bm .bm-reponse {
	margin: 32px 0 0;
	background: var(--bm-torrefie);
	color: var(--bm-creme);
	border-radius: 18px;
	overflow: hidden;
}

body.bm .bm-reponse__grille {
	padding: 30px 34px;
	display: grid;
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	gap: 36px;
}

body.bm .bm-reponse--seule .bm-reponse__grille { grid-template-columns: minmax(0, 1fr); }

body.bm .bm-reponse__titre {
	margin: 14px 0 0;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 36px;
	line-height: 1.1;
	color: var(--bm-creme);
}

body.bm .bm-reponse__nom { color: var(--bm-caramel); }

body.bm .bm-reponse__raison {
	margin: 10px 0 0;
	font-size: 18px;
	line-height: 1.55;
	color: var(--bm-creme);
}

body.bm .bm-reponse__raison a,
body.bm .bm-reponse__raison a:hover,
body.bm .bm-reponse__raison a:focus { color: var(--bm-caramel); }

body.bm .bm-reponse__action { margin-top: 20px; }

body.bm .bm-reponse__cas {
	border-left: 1px solid var(--bm-trait-sombre);
	padding-left: 32px;
}

body.bm .bm-reponse__liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.bm .bm-reponse__ligne {
	margin: 0;
	padding: 12px 0;
	border-top: 1px solid var(--bm-trait-sombre);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

body.bm .bm-reponse__qui { min-width: 0; }

body.bm .bm-reponse__situation {
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
	color: var(--bm-sable);
}

body.bm .bm-reponse__autre {
	margin: 4px 0 0;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 22px;
	line-height: 1.2;
	color: var(--bm-creme);
}

body.bm a.bm-reponse__lien,
body.bm a.bm-reponse__lien:visited {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	min-height: 44px;
	font-weight: 600;
	font-size: 15.5px;
	color: var(--bm-caramel);
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

body.bm a.bm-reponse__lien:hover,
body.bm a.bm-reponse__lien:focus,
body.bm a.bm-reponse__lien:active { color: var(--bm-caramel-clair); }

body.bm .bm-reponse .bm-indisponible {
	color: var(--bm-sable);
	white-space: normal;
}

/* ── Sommaire : colonne de droite et bloc repliable (téléphone) ──────── */

body.bm .bm-colonne { display: block; }

body.bm .bm-sommaire {
	background: var(--bm-lait);
	border-radius: 16px;
	padding: 22px 24px;
}

body.bm .bm-sommaire__titre {
	margin: 0 0 8px;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 21px;
	line-height: 1.25;
	color: var(--bm-encre);
}

body.bm .bm-sommaire__liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.bm .bm-sommaire__liste li { margin: 0; }

body.bm .bm-sommaire__liste a {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 8px 0;
	color: var(--bm-encre);
	text-decoration: none;
	font-size: 16px;
	line-height: 1.35;
}

body.bm .bm-sommaire__liste a:hover,
body.bm .bm-sommaire__liste a:focus {
	color: var(--bm-rouille);
	text-decoration: underline;
}

body.bm .bm-sommaire__num {
	min-width: 16px;
	font-family: var(--bm-titre);
	font-style: italic;
	font-size: 17px;
	color: var(--bm-rouille);
}

body.bm .bm-methode {
	margin-top: 24px;
	padding: 0 4px;
}

body.bm .bm-methode__texte {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--bm-gris-brun);
}

/* Bloc repliable : seulement sur téléphone (voir plus bas). */
body.bm .bm-sommaire-mobile { display: none; }

body.bm .bm-sommaire-mobile__titre {
	min-height: 52px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.3;
	color: var(--bm-encre);
}

body.bm .bm-sommaire-mobile__titre::-webkit-details-marker { display: none; }

body.bm .bm-sommaire-mobile__titre .bm-icone { transition: transform 0.15s ease; }

body.bm .bm-sommaire-mobile[open] > .bm-sommaire-mobile__titre .bm-icone { transform: rotate(180deg); }

body.bm .bm-sommaire-mobile__corps { padding: 0 0 12px; }

/* ── Tableau comparatif ──────────────────────────────────────────────── */

body.bm .bm-tableau__titre {
	margin: 52px 0 0;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 34px;
	line-height: 1.15;
	color: var(--bm-encre);
}

body.bm .bm-tableau { margin: 16px 0 0; }

body.bm .bm-tableau__cadre {
	border: 1px solid var(--bm-bordure);
	border-radius: 16px;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

body.bm .bm-tableau__table {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	font-family: var(--bm-texte);
}

body.bm .bm-tableau__table th,
body.bm .bm-tableau__table td {
	border: 0;
	border-top: 1px solid var(--bm-bordure);
	text-align: left;
	vertical-align: top;
}

body.bm .bm-tableau__table thead th {
	border-top: 0;
	padding: 14px 18px;
	background: var(--bm-lait);
	font-weight: 600;
	font-size: 14.5px;
	line-height: 1.3;
	color: var(--bm-encre);
}

body.bm .bm-tableau__table tbody th {
	padding: 16px;
	font-weight: 400;
}

body.bm .bm-tableau__table td {
	padding: 16px;
	font-size: 16.5px;
	line-height: 1.4;
	color: var(--bm-encre);
}

body.bm .bm-tableau__premier { background: var(--bm-surligne); }

body.bm .bm-tableau__nom {
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 19.5px;
	line-height: 1.25;
	color: var(--bm-encre);
}

body.bm .bm-pastille {
	display: inline-block;
	margin-left: 4px;
	padding: 3px 9px;
	border-radius: 999px;
	background: var(--bm-caramel);
	color: var(--bm-torrefie);
	font-family: var(--bm-texte);
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.3;
	vertical-align: 2px;
	white-space: nowrap;
}

body.bm .bm-tableau__lien {
	display: block;
	width: fit-content;
	margin-top: 4px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.4;
}

body.bm a.bm-tableau__lien { color: var(--bm-rouille); }
body.bm a.bm-tableau__lien:hover,
body.bm a.bm-tableau__lien:focus { color: var(--bm-rouille-survol); }

body.bm .bm-tableau__table .bm-tableau__vide {
	color: var(--bm-gris-brun);
	font-size: 15px;
}

body.bm .bm-note {
	margin: 10px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bm-gris-brun);
}

/* ── Section produit ─────────────────────────────────────────────────── */

body.bm .bm-produit {
	margin: 28px 0 0;
	padding: 28px 32px 30px;
	border: 1px solid var(--bm-bordure);
	border-radius: 18px;
	background: var(--bm-blanc);
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	grid-template-areas:
		"picto tete"
		"picto corps";
	column-gap: 28px;
	align-items: start;
}

body.bm .bm-tableau + .bm-produit { margin-top: 48px; }

body.bm .bm-produit__picto {
	grid-area: picto;
	width: 96px;
	height: 96px;
	border-radius: 14px;
	background: var(--bm-lait);
	color: var(--bm-torrefie);
	display: flex;
	align-items: center;
	justify-content: center;
}

body.bm .bm-produit__picto .bm-picto {
	display: block;
	width: 59px;
	height: 59px;
}

body.bm .bm-produit__tete {
	grid-area: tete;
	min-width: 0;
}

body.bm .bm-produit__corps {
	grid-area: corps;
	min-width: 0;
}

body.bm .bm-produit__rang-ligne {
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

body.bm .bm-produit__rang {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--bm-caramel);
	color: var(--bm-torrefie);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 18px;
	line-height: 1;
}

body.bm .bm-produit__etiquette {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--bm-rouille);
}

body.bm .bm-produit__nom {
	margin: 8px 0 0;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 34px;
	line-height: 1.1;
	color: var(--bm-encre);
}

body.bm .bm-produit__tete > .bm-produit__nom:first-child { margin-top: 0; }

body.bm .bm-produit__pour-qui {
	margin: 12px 0 0;
	font-size: 18px;
	line-height: 1.55;
}

body.bm .bm-produit__avis {
	margin-top: 22px;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 32px;
}

body.bm .bm-produit__sous-titre {
	margin: 0;
	font-family: var(--bm-texte);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

body.bm .bm-produit__sous-titre--forts { color: var(--bm-vert); }
body.bm .bm-produit__sous-titre--defauts { color: var(--bm-rouille); }

body.bm .bm-liste {
	list-style: none;
	margin: 10px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

body.bm .bm-liste li {
	margin: 0;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 17px;
	line-height: 1.5;
	color: var(--bm-encre);
}

body.bm .bm-liste .bm-icone { margin-top: 3px; }
body.bm .bm-liste--forts .bm-icone { color: var(--bm-vert); }
body.bm .bm-liste--defauts .bm-icone { color: var(--bm-rouille); }

body.bm .bm-fiche {
	margin: 22px 0 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
}

body.bm .bm-fiche__ligne {
	padding: 10px 12px;
	background: var(--bm-lait);
	border-radius: 10px;
}

body.bm .bm-fiche dt {
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	color: var(--bm-gris-brun);
}

body.bm .bm-fiche dd {
	margin: 2px 0 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--bm-encre);
}

body.bm .bm-produit__action {
	margin-top: 24px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
}

body.bm .bm-produit__mention {
	font-size: 14px;
	line-height: 1.4;
	color: var(--bm-gris-brun);
}

/* ── Liens affiliés dans le texte ────────────────────────────────────── */

body.bm a.bm-lien-affilie { font-weight: 600; }

/* ── Questions fréquentes et « En résumé » ───────────────────────────── */

body.bm .bm-faq { margin: 52px 0 0; }

body.bm .bm-faq > h2 { margin-top: 0; }

body.bm .bm-faq details {
	margin: 0;
	border-bottom: 1px solid var(--bm-bordure);
}

body.bm .bm-faq h2 + details {
	margin-top: 10px;
	border-top: 1px solid var(--bm-bordure);
}

body.bm .bm-faq summary {
	min-height: 56px;
	padding: 14px 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.4;
	color: var(--bm-encre);
}

body.bm .bm-faq summary::-webkit-details-marker { display: none; }

/* Chevron dessiné en CSS (aucune image). */
body.bm .bm-faq summary::after {
	content: "";
	flex-shrink: 0;
	width: 9px;
	height: 9px;
	margin-right: 5px;
	border-right: 2px solid var(--bm-gris-brun);
	border-bottom: 2px solid var(--bm-gris-brun);
	transform: translateY(-3px) rotate(45deg);
	transition: transform 0.15s ease;
}

body.bm .bm-faq details[open] > summary::after { transform: translateY(2px) rotate(225deg); }

body.bm .bm-faq details > :not(summary) { margin: 0 0 18px; }

body.bm .bm-resume {
	margin: 48px 0 0;
	padding: 26px 30px;
	background: var(--bm-lait);
	border-radius: 16px;
}

body.bm .bm-resume > h2 { margin: 0; }

body.bm .bm-resume > p { margin: 12px 0 0; }

/* ── Bande « À lire aussi » ──────────────────────────────────────────── */

body.bm .bm-lire { background: var(--bm-lait); }

body.bm .bm-lire__dedans {
	max-width: var(--bm-largeur);
	box-sizing: content-box;
	margin: 0 auto;
	padding: 56px var(--bm-gouttiere) 64px;
}

body.bm .bm-lire__titre {
	margin: 0;
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 34px;
	line-height: 1.15;
	color: var(--bm-encre);
}

body.bm .bm-lire__rubrique {
	margin: 8px 0 0;
	font-size: 15.5px;
	line-height: 1.5;
	color: var(--bm-gris-brun);
}

body.bm .bm-lire__liste {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

body.bm .bm-lire__liste li { margin: 0; }

body.bm .bm-carte {
	height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 14px;
	padding: 22px 24px;
	background: var(--bm-blanc);
	border: 1px solid var(--bm-bordure);
	border-radius: 16px;
	color: var(--bm-encre);
	text-decoration: none;
	transition: border-color 0.15s ease;
}

body.bm a.bm-carte,
body.bm a.bm-carte:visited {
	color: var(--bm-encre);
	text-decoration: none;
}

body.bm a.bm-carte:hover,
body.bm a.bm-carte:focus {
	color: var(--bm-encre);
	border-color: var(--bm-rouille);
	text-decoration: none;
}

body.bm a.bm-carte:hover .bm-carte__titre,
body.bm a.bm-carte:focus .bm-carte__titre {
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.bm .bm-carte__haut {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

body.bm .bm-carte__type {
	font-family: var(--bm-texte);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bm-rouille);
}

body.bm .bm-carte__titre {
	font-family: var(--bm-titre);
	font-weight: 600;
	font-size: 21px;
	line-height: 1.25;
}

body.bm .bm-carte__lire {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 15px;
	font-weight: 600;
	color: var(--bm-rouille);
}

body.bm .bm-carte__exemple {
	align-self: flex-start;
	padding: 3px 10px;
	border: 1px solid var(--bm-caramel);
	border-radius: 999px;
	background: var(--bm-surligne);
	color: var(--bm-rouille);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* ── Pied de page ────────────────────────────────────────────────────── */

body.bm .site-footer {
	background: var(--bm-torrefie);
	color: var(--bm-creme);
}

/* Placé dans .inside-site-info (footer de GeneratePress), qui porte déjà la largeur et la gouttière. */
body.bm .bm-pied {
	max-width: none;
	margin: 0;
	padding: 56px 0 0;
}

body.bm .bm-pied__grille {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
}

body.bm .bm-pied__phrase {
	margin: 14px 0 0;
	max-width: 420px;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--bm-sable);
}

body.bm .bm-pied__titre {
	margin: 0 0 8px;
	font-family: var(--bm-texte);
	font-weight: 600;
	font-size: 13px;
	line-height: 1.4;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--bm-sable);
}

body.bm .bm-pied__liste {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.bm .bm-pied__liste li { margin: 0; }

body.bm .bm-pied__liste a,
body.bm .bm-pied__liste a:visited {
	display: block;
	padding: 6px 0;
	color: var(--bm-creme);
	text-decoration: none;
	font-size: 15.5px;
	line-height: 1.4;
}

body.bm .bm-pied__liste a:hover,
body.bm .bm-pied__liste a:focus {
	color: var(--bm-caramel);
	text-decoration: underline;
}

body.bm .site-info {
	background: var(--bm-torrefie);
	color: var(--bm-creme);
	text-align: left;
	font-size: 15.5px;
}

body.bm .inside-site-info {
	display: block;
	max-width: var(--bm-largeur);
	box-sizing: content-box;
	margin: 0 auto;
	padding: 0 var(--bm-gouttiere) 44px;
}

body.bm .copyright-bar { width: 100%; }

body.bm .bm-legal {
	margin-top: 36px;
	padding-top: 22px;
	border-top: 1px solid rgba(247, 238, 228, 0.18);
}

body.bm .bm-legal__amazon {
	margin: 0;
	font-size: 15.5px;
	line-height: 1.55;
	color: var(--bm-creme);
}

body.bm .bm-legal__copie {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--bm-sable);
}

/* ── Avertissements (éditeurs connectés seulement) ───────────────────── */

body.bm .bm-alerte {
	display: block;
	margin: 12px 0;
	padding: 10px 14px;
	border: 1px dashed var(--bm-rouille);
	border-radius: 10px;
	background: var(--bm-alerte-fond);
	color: var(--bm-encre);
	font-family: var(--bm-texte);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.45;
}

/* ── Tablette et petit ordinateur ────────────────────────────────────── */

@media (max-width: 1024px) {
	body.bm.right-sidebar .site-content {
		grid-template-columns: minmax(0, 1fr) 240px;
		column-gap: 40px;
	}

	body.bm .bm-reponse__grille {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	body.bm .bm-reponse__cas {
		border-left: 0;
		padding-left: 0;
	}

	body.bm .bm-produit__avis {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	body.bm .bm-fiche { grid-template-columns: repeat(2, minmax(0, 1fr)); }

	body.bm .bm-pied__grille { gap: 32px; }
}

/* Cibles tactiles de 44 px (sommaire, liens du pied) : tablette, téléphone,
   et tout écran tactile, même large (iPad en paysage, colonne de droite visible). */
@media (max-width: 1024px), (pointer: coarse) {
	body.bm .bm-sommaire__liste a {
		padding: 11px 0;
		min-height: 44px;
		box-sizing: border-box;
	}

	body.bm .bm-pied__liste a,
	body.bm .bm-pied__liste a:visited {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: 10px 0;
		box-sizing: border-box;
	}
}

/* Entre téléphone et ordinateur : le menu passe sous le logo, sur une ligne. */
@media (min-width: 769px) and (max-width: 1024px) {
	body.bm .inside-header {
		flex-wrap: wrap;
		padding-top: 14px;
		row-gap: 0;
	}

	body.bm .site-header #site-navigation {
		margin-left: 0;
		flex-basis: 100%;
	}

	body.bm .main-navigation .main-nav > ul { gap: 0 24px; }

	body.bm .main-navigation .main-nav ul li a,
	body.bm .main-navigation .main-nav ul li[class*="current-menu-"] > a,
	body.bm .main-navigation .main-nav ul li:hover > a,
	body.bm .main-navigation .main-nav ul li > a:focus { padding: 14px 0 12px; }
}

/* ── Téléphone (≤ 768 px) ────────────────────────────────────────────── */

@media (max-width: 768px) {
	:root { --bm-gouttiere: 16px; }

	body.bm .bm-cartes { grid-template-columns: minmax(0, 1fr); }

	body.bm .bm-une { padding: 22px 18px; margin-bottom: 32px; }

	body.bm .bm-une .bm-chapeau { font-size: 18px; }

	body.bm { font-size: 17px; }

	/* En-tête de 64 px : logo 24 px + bouton « Menu » en pilule */
	/* Le menu (vide tant qu'il est fermé) passe à la ligne : la première ligne garde 64 px. */
	body.bm .inside-header {
		min-height: 0;
		padding: 0 16px;
		column-gap: 12px;
		row-gap: 0;
		align-content: flex-start;
	}

	body.bm .site-branding,
	body.bm .site-header .mobile-menu-control-wrapper {
		min-height: 64px;
		display: flex;
		align-items: center;
	}

	body.bm .bm-logo__grain {
		width: 24px;
		height: 24px;
	}

	body.bm .bm-logo__nom { font-size: 24px; }

	body.bm .mobile-menu-control-wrapper .menu-toggle,
	body.bm .mobile-menu-control-wrapper .menu-toggle:hover,
	body.bm .mobile-menu-control-wrapper .menu-toggle:focus {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		height: 44px;
		min-height: 44px;
		padding: 0 14px;
		line-height: 1;
		background: transparent;
		border: 1px solid var(--bm-sable);
		border-radius: 999px;
		color: var(--bm-creme);
		font-family: var(--bm-texte);
		font-size: 16px;
		font-weight: 600;
	}

	body.bm .menu-toggle .gp-icon svg {
		width: 20px;
		height: 20px;
		top: 0;
	}

	body.bm .menu-toggle .gp-icon + .mobile-menu,
	body.bm .menu-toggle .mobile-menu { padding-left: 0; }

	/* Menu ouvert : une rubrique par ligne, cibles de 48 px */
	body.bm .site-header #site-navigation.toggled {
		margin-top: 0;
		background: transparent;
	}

	body.bm .main-navigation.toggled .main-nav > ul { padding: 4px 0 12px; }

	body.bm .main-navigation.toggled .main-nav ul li a,
	body.bm .main-navigation.toggled .main-nav ul li[class*="current-menu-"] > a,
	body.bm .main-navigation.toggled .main-nav ul li:hover > a,
	body.bm .main-navigation.toggled .main-nav ul li > a:focus {
		display: flex;
		align-items: center;
		min-height: 48px;
		padding: 12px 0;
		font-size: 17px;
		border-bottom: 1px solid var(--bm-trait-sombre);
	}

	body.bm .main-navigation.toggled .main-nav ul li.current-menu-item > a,
	body.bm .main-navigation.toggled .main-nav ul li.current-menu-ancestor > a {
		color: var(--bm-caramel);
		border-bottom-color: var(--bm-trait-sombre);
	}

	/* Une seule colonne : la colonne de droite disparaît */
	body.bm .site-content { padding: 18px 16px 44px; }

	body.bm.right-sidebar .site-content { display: block; }

	body.bm .is-right-sidebar { display: none; }

	body.bm .bm-fil__liste { font-size: 14px; }

	body.bm .entry-title {
		margin-top: 16px;
		font-size: 33px;
	}

	body.bm .bm-date { font-size: 14px; }

	body.bm .entry-content {
		padding-top: 18px;
		font-size: 17px;
	}

	body.bm :where(.entry-content) h2 {
		margin-top: 36px;
		font-size: 28px;
	}

	body.bm :where(.entry-content) h3 { font-size: 21px; }

	/* Réponse courte : empilée, bouton pleine largeur */
	body.bm .bm-reponse { margin-top: 24px; }

	body.bm .bm-reponse__grille { padding: 22px 18px; }

	body.bm .bm-reponse__titre { font-size: 28px; }

	body.bm .bm-reponse__raison { font-size: 17px; }

	body.bm .bm-reponse__action .bm-bouton {
		display: flex;
		width: 100%;
		padding: 0 18px;
	}

	/* Sommaire repliable, placé sous la réponse courte */
	body.bm .bm-sommaire-mobile {
		display: block;
		margin: 24px 0 0;
		padding: 0 16px;
		background: var(--bm-lait);
		border-radius: 14px;
	}

	/* Tableau : lisible à 390 px, défilement horizontal en dernier recours */
	body.bm .bm-tableau__titre {
		margin-top: 36px;
		font-size: 28px;
	}

	body.bm .bm-tableau__table thead th { padding: 14px 10px; }

	body.bm .bm-tableau__table tbody th,
	body.bm .bm-tableau__table td { padding: 12px 10px; }

	body.bm .bm-tableau__table td {
		font-size: 15px;
		-webkit-hyphens: auto;
		hyphens: auto;
		overflow-wrap: break-word;
	}

	body.bm .bm-tableau__nom { font-size: 18px; }

	/* Liens « Voir sur Amazon » masqués, comme sur la maquette ; la mention
	   « Indisponible… » (un span) reste affichée. */
	body.bm a.bm-tableau__lien { display: none; }

	/* 3 colonnes au plus, comme la maquette : colonnes du catalogue en trop masquées. */
	body.bm .bm-tableau__table .bm-tableau__col--large { display: none; }

	/* Section produit : pictogramme 64 px à côté du nom, le reste dessous */
	body.bm .bm-produit {
		padding: 20px 16px 22px;
		grid-template-columns: 64px minmax(0, 1fr);
		grid-template-areas:
			"picto tete"
			"corps corps";
		column-gap: 14px;
	}

	body.bm .bm-tableau + .bm-produit { margin-top: 28px; }

	body.bm .bm-produit__picto {
		width: 64px;
		height: 64px;
		align-self: start;
	}

	body.bm .bm-produit__picto .bm-picto {
		width: 39px;
		height: 39px;
	}

	body.bm .bm-produit__tete { align-self: center; }

	body.bm .bm-produit__nom { font-size: 26px; }

	body.bm .bm-produit__pour-qui {
		margin-top: 14px;
		font-size: 17px;
	}

	body.bm .bm-produit__avis { margin-top: 18px; }

	body.bm .bm-liste li { font-size: 16px; }

	body.bm .bm-produit__action {
		margin-top: 22px;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	body.bm .bm-produit__action .bm-bouton,
	body.bm .bm-bouton-seul .bm-bouton {
		display: flex;
		width: 100%;
	}

	/* Questions fréquentes, résumé */
	body.bm .bm-faq { margin-top: 36px; }

	body.bm .bm-faq summary { font-size: 17px; }

	body.bm .bm-resume {
		margin-top: 36px;
		padding: 20px 18px;
	}

	/* À lire aussi : cartes empilées */
	body.bm .bm-lire__dedans { padding: 36px 16px 40px; }

	body.bm .bm-lire__titre { font-size: 28px; }

	body.bm .bm-lire__liste {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	body.bm .bm-carte { padding: 16px; }

	body.bm .bm-carte__titre { font-size: 20px; }

	/* Pied : marque, puis deux colonnes de liens de 44 px (règle commune ≤ 1024 px) */
	body.bm .bm-pied { padding: 36px 0 0; }

	body.bm .bm-pied__grille {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 28px 20px;
	}

	body.bm .bm-pied__marque { grid-column: 1 / -1; }

	body.bm .inside-site-info { padding: 0 16px 32px; }
}

/* ── Mouvements réduits ──────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	body.bm *,
	body.bm *::before,
	body.bm *::after {
		transition: none !important;
		animation: none !important;
		scroll-behavior: auto !important;
	}
}
