/* Gabarit d'article et liste d'articles Barbe-Noire-Seo.
   Aucune couleur ni police imposée : tout hérite du thème (currentColor, font-family du body).
   Chargé seulement quand le gabarit du plugin ou la liste d'articles sont affichés. */

.bnseo-page {
	max-width: 44rem;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3.5rem) max(1rem, env(safe-area-inset-left, 0px)) clamp(2rem, 5vw, 4rem) max(1rem, env(safe-area-inset-right, 0px));
	box-sizing: border-box;
	font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
	line-height: 1.65;
}

.bnseo-single-header {
	margin-bottom: 2rem;
}

.bnseo-single-cat {
	margin: 0 0 0.75rem;
	font-size: 0.8em;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.75;
}

.bnseo-single-cat a {
	text-decoration: none;
}

.bnseo-single-cat a + a::before {
	content: "· ";
}

.bnseo-single-title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
	line-height: 1.15;
	text-wrap: balance;
}

.bnseo-single-meta {
	margin: 0;
	font-size: 0.85em;
	opacity: 0.7;
}

.bnseo-single-figure {
	margin: 0 0 2rem;
}

.bnseo-single-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.bnseo-single-content > *:first-child {
	margin-top: 0;
}

.bnseo-single-content h2 {
	margin: 2.2em 0 0.8em;
	font-size: 1.5em;
	line-height: 1.25;
}

.bnseo-single-content h3 {
	margin: 1.8em 0 0.6em;
	font-size: 1.2em;
	line-height: 1.3;
}

.bnseo-single-content p,
.bnseo-single-content ul,
.bnseo-single-content ol {
	margin: 0 0 1.2em;
}

.bnseo-single-content li {
	margin-bottom: 0.35em;
}

.bnseo-single-content img {
	max-width: 100%;
	height: auto;
}

.bnseo-single-content blockquote {
	margin: 1.5em 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid currentColor;
	opacity: 0.9;
}

.bnseo-single-footer {
	margin-top: 3rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(128, 128, 128, 0.3);
}

.bnseo-single-tags {
	margin: 0 0 1.5rem;
	font-size: 0.85em;
	opacity: 0.8;
}

.bnseo-single-tags a {
	margin-right: 0.75em;
	text-decoration: none;
}

.bnseo-related h2 {
	margin: 0 0 0.75rem;
	font-size: 1.1em;
}

.bnseo-related ul {
	margin: 0;
	padding-left: 1.2em;
}

.bnseo-related li {
	margin-bottom: 0.4em;
}

/* Liste d'articles : bloc Gutenberg et shortcode [bnseo_articles] */

.bnseo-list {
	display: grid;
	grid-template-columns: repeat(var(--bnseo-cols, 3), minmax(0, 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0;
}

.bnseo-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bnseo-card-media {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 4px;
	margin-bottom: 0.9rem;
}

.bnseo-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bnseo-card-body time {
	display: block;
	font-size: 0.8em;
	opacity: 0.7;
	margin-bottom: 0.3rem;
}

.bnseo-card-body h3 {
	margin: 0 0 0.5rem;
	font-size: 1.15em;
	line-height: 1.3;
}

.bnseo-card-body h3 a {
	text-decoration: none;
	color: inherit;
}

.bnseo-card-body h3 a:hover {
	text-decoration: underline;
}

.bnseo-card-body p {
	margin: 0;
	font-size: 0.92em;
	opacity: 0.85;
}

.bnseo-list-empty {
	padding: 1rem;
	border: 1px dashed currentColor;
	opacity: 0.7;
}

@media (max-width: 900px) {
	.bnseo-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.bnseo-list {
		grid-template-columns: 1fr;
	}
}

/* Fil d'Ariane */

.bnseo-breadcrumb ol {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35em;
	font-size: 0.85em;
	opacity: 0.8;
}

.bnseo-breadcrumb li + li::before {
	content: "›";
	margin-right: 0.35em;
	opacity: 0.6;
}

.bnseo-breadcrumb a {
	text-decoration: none;
}

.bnseo-breadcrumb a:hover {
	text-decoration: underline;
}

/* Appel à l'action : encadré sobre, bouton plein dans la couleur du texte courant (donc du thème) */

.bnseo-cta {
	margin: 2.5rem 0 1.5rem;
	padding: 1.5rem 1.6rem;
	border: 1px solid rgba(128, 128, 128, 0.35);
	border-left: 4px solid currentColor;
	border-radius: 6px;
	background: rgba(128, 128, 128, 0.06);
}

.bnseo-cta-title {
	margin: 0 0 0.4rem;
	font-size: 1.25em;
	font-weight: 700;
	line-height: 1.25;
}

.bnseo-cta-text {
	margin: 0 0 1rem;
}

.bnseo-cta-actions {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
}

.bnseo-cta-btn {
	display: inline-block;
	padding: 0.75em 1.4em;
	border-radius: 4px;
	background: currentColor;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
	transition: opacity 0.15s;
}

/* Texte en « différence » sur un fond currentColor : clair sur thème sombre, sombre sur thème clair. */
.bnseo-cta-btn span,
.bnseo-filters button.is-active span {
	color: #fff;
	mix-blend-mode: difference;
}

.bnseo-cta-btn:hover {
	opacity: 0.85;
}

.bnseo-cta-phone {
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.bnseo-cta-phone::before {
	content: "☎ ";
}

/* Page hôte : l'article dans une page du client */

.bnseo-article-wrap {
	max-width: 44rem;
	margin: 0 auto;
	line-height: 1.65;
}

.bnseo-article-title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
	line-height: 1.15;
	text-wrap: balance;
}

.bnseo-article-meta {
	margin: 0 0 1.5rem;
	font-size: 0.85em;
	opacity: 0.7;
}

.bnseo-article-figure {
	margin: 0 0 2rem;
}

.bnseo-article-figure img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 4px;
}

.bnseo-article-content h2 {
	margin: 2.2em 0 0.8em;
	line-height: 1.25;
}

.bnseo-article-content img {
	max-width: 100%;
	height: auto;
}

/* Filtres de la liste */

.bnseo-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 1.5rem;
}

.bnseo-filters button {
	font: inherit;
	font-size: 0.9em;
	padding: 0.45em 1em;
	border: 1px solid rgba(128, 128, 128, 0.4);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.bnseo-filters button.is-active {
	background: currentColor;
}

.bnseo-card[hidden] {
	display: none;
}
