/* Blog – Le Mercière. Palette et typo reprises du thème Breakdance (Melodrama / Montserrat, rouille). */
:root {
	--lm-rouille: var(--bde-palette-rouille-rouge-bd456453-ce07-4b7c-b75d-0d84c52506a1-16, #8b2500);
	--lm-ligne: var(--bde-palette-lignes-0f8a3b61-e934-4704-ba1b-68260c48a424-12, #d2c0b3);
	--lm-encre: #1d1a17;
	--lm-gris: #6b625b;
}

/* ---------- Liste : en-tête (même style que les autres pages) ---------- */
.lm-blog-subtitle {
	margin: 0;
	text-align: center;
	font-family: "Melodrama", serif;
	font-weight: 300;
	font-size: clamp(18px, 2.4vw, 35px);
	line-height: 1.3;
	color: var(--lm-encre);
}
.breakdance .bde-heading.bde-heading { text-align: center; }

/* ---------- Liste : cartes ---------- */
.ee-posts-grid .ee-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 2px 18px rgba(60, 40, 20, .08);
	transition: transform .25s ease, box-shadow .25s ease;
}
.ee-posts-grid .ee-post:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(60, 40, 20, .14);
}
.ee-posts .ee-post .ee-post-image-link { display: block; }
.ee-posts .ee-post .ee-post-image-link .ee-post-image { overflow: hidden; }
.ee-posts .ee-post .ee-post-image-link img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform .5s ease;
}
.ee-posts .ee-post:hover .ee-post-image-link img { transform: scale(1.04); }

/* Article sans image à la une : Breakdance injecte une icône grise ; on la masque derrière un aplat beige du site. */
.ee-posts .ee-post .ee-post-image { position: relative; }
.ee-posts .ee-post .ee-post-image:has(img[src^="data:image/svg"])::after {
	content: "";
	position: absolute;
	inset: 0;
	background: #ebe2da; /* beige clair opaque (version éclaircie de la couleur « lignes » du site) */
}

.ee-posts .ee-post .ee-post-wrap {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 26px 28px;
	flex: 1;
}
/* ordre visuel : catégorie, titre, méta, extrait */
.ee-posts .ee-post .ee-post-wrap .ee-post-taxonomy { order: 1; }
.ee-posts .ee-post .ee-post-wrap .ee-post-title { order: 2; }
.ee-posts .ee-post .ee-post-wrap .ee-post-meta { order: 3; }
.ee-posts .ee-post .ee-post-wrap .ee-post-content { order: 4; }

.ee-posts .ee-post .ee-post-taxonomy {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ee-posts .ee-post .ee-post-taxonomy-item {
	margin: 0;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(139, 37, 0, .08);
	color: var(--lm-rouille);
	font: 600 11px/1.4 "Montserrat", sans-serif;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.ee-posts .ee-post .ee-post-title {
	margin: 0;
	font-family: "Melodrama", serif;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	color: var(--lm-encre);
}
.ee-posts .ee-post .ee-post-title a { color: inherit; text-decoration: none; }
.ee-posts .ee-post .ee-post-title a:hover { color: var(--lm-rouille); }
.ee-posts .ee-post .ee-post-meta {
	margin: 0;
	font: 500 12px/1.5 "Montserrat", sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lm-gris);
}
.ee-posts .ee-post .ee-post-content {
	font: 400 15px/1.7 "Montserrat", sans-serif;
	color: var(--lm-gris);
}

/* Pagination numérotée (aucun texte à traduire) */
.bde-posts-pagination.bde-posts-navigation-numbers ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 56px 0 0;
	padding: 0;
	list-style: none;
}
.bde-posts-pagination.bde-posts-navigation-numbers li { margin: 0; }
.bde-posts-pagination.bde-posts-navigation-numbers a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 8px;
	border: 1px solid var(--lm-ligne);
	border-radius: 999px;
	font: 600 14px/1 "Montserrat", sans-serif;
	letter-spacing: .04em;
	color: var(--lm-rouille);
	text-decoration: none;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.bde-posts-pagination.bde-posts-navigation-numbers a:hover,
.bde-posts-pagination.bde-posts-navigation-numbers a.is-active {
	background: var(--lm-rouille);
	border-color: var(--lm-rouille);
	color: #fff;
}

/* ---------- Article ---------- */
.breakdance .bde-div.lm-article { width: 100%; max-width: 820px; margin-inline: auto; }
.lm-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0 0 8px;
	font: 500 13px/1.5 "Montserrat", sans-serif;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lm-gris);
}
.lm-meta span { white-space: nowrap; }
/* le séparateur termine la ligne au lieu de la commencer quand la méta passe à la ligne */
.lm-meta span:not(:last-child)::after {
	content: "";
	display: inline-block;
	width: 4px;
	height: 4px;
	margin: 0 14px;
	border-radius: 50%;
	background: var(--lm-rouille);
	vertical-align: middle;
}
.single-post .lm-meta a, .single-post .lm-meta a:visited { color: var(--lm-rouille); text-decoration: none; font-weight: 600; }
.single-post .lm-meta a:hover { text-decoration: underline; }

.lm-blog-featured {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
	margin: 28px 0 40px;
	border-radius: 8px;
}

/* Zone de contenu (élément « Template Content Area ») : pleine largeur ; colonne de lecture seulement pour le contenu Gutenberg */
.breakdance .lm-article-content { width: 100%; }
.lm-gutenberg-post .lm-article-content { max-width: 820px; margin-inline: auto; }

/* Corps de l'article Gutenberg */
.lm-gutenberg-post .lm-article-content {
	font: 400 18px/1.8 "Montserrat", sans-serif;
	color: var(--lm-encre);
}
.lm-gutenberg-post .lm-article-content p { margin: 0 0 1.4em; }
.lm-gutenberg-post .lm-article-content h2, .lm-gutenberg-post .lm-article-content h3, .lm-gutenberg-post .lm-article-content h4 {
	font-family: "Melodrama", serif;
	font-weight: 500;
	line-height: 1.2;
	color: var(--lm-rouille);
}
.lm-gutenberg-post .lm-article-content h2 { margin: 2em 0 .6em; font-size: 36px; }
.lm-gutenberg-post .lm-article-content h3 { margin: 1.8em 0 .5em; font-size: 28px; }
.lm-gutenberg-post .lm-article-content a:not(.wp-block-button__link) { color: var(--lm-rouille); text-decoration: underline; text-underline-offset: 3px; }

/* Bouton Gutenberg : même style que les boutons Breakdance du site (alignement réglable dans l'éditeur) */
.lm-gutenberg-post .lm-article-content .wp-block-buttons { margin: 0 0 1.4em; }
.lm-gutenberg-post .lm-article-content .wp-block-button__link {
	display: inline-block;
	padding: 14px 24px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--lm-rouille);
	color: #fff;
	font: 500 20px/20px "Melodrama", serif;
	letter-spacing: 3px;
	text-transform: uppercase;
	text-decoration: none;
}
.lm-gutenberg-post .lm-article-content .wp-block-button__link:hover,
.lm-gutenberg-post .lm-article-content .wp-block-button__link:focus-visible { color: #fff; }
.lm-gutenberg-post .lm-article-content ul, .lm-gutenberg-post .lm-article-content ol { margin: 0 0 1.4em; padding-left: 1.2em; }
.lm-gutenberg-post .lm-article-content li { margin-bottom: .4em; }
.lm-gutenberg-post .lm-article-content li::marker { color: var(--lm-rouille); }
.lm-gutenberg-post .lm-article-content blockquote {
	margin: 2em 0;
	padding: 6px 0 6px 28px;
	border-left: 4px solid var(--lm-rouille);
	font-family: "Melodrama", serif;
	font-size: 26px;
	line-height: 1.4;
	color: var(--lm-rouille);
}
.lm-gutenberg-post .lm-article-content blockquote p { margin: 0 0 .5em; }
.lm-gutenberg-post .lm-article-content blockquote cite {
	font: 500 13px/1.4 "Montserrat", sans-serif;
	font-style: normal;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--lm-gris);
}
.lm-gutenberg-post .lm-article-content img { max-width: 100%; height: auto; border-radius: 8px; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.ee-posts .ee-post .ee-post-wrap { padding: 20px 20px 24px; }
	.ee-posts .ee-post .ee-post-title { font-size: 24px; }
	.lm-gutenberg-post .lm-article-content { font-size: 16px; }
	.lm-gutenberg-post .lm-article-content h2 { font-size: 28px; }
	.lm-gutenberg-post .lm-article-content h3 { font-size: 23px; }
	.lm-gutenberg-post .lm-article-content blockquote { font-size: 21px; padding-left: 20px; }
	.lm-meta { font-size: 12px; }
	.lm-blog-featured { margin: 20px 0 28px; }
}