/**
 * Fiberdeck Blog — Variante 2 (grille + détail)
 */

.fiberdeck-blog .site-main {
	background: #fff;
	color: #0d0c0c;
}

.fd-blog-container {
	max-width: 1260px;
	margin: 0 auto;
	padding: 80px 40px;
}

/* Header liste */
.fd-blog-header {
	text-align: center;
	margin-bottom: 48px;
}

.fd-blog-header h1 {
	font-size: clamp(48px, 8vw, 120px);
	font-weight: 300;
	line-height: 110%;
	letter-spacing: 2.9px;
	margin: 0 0 20px;
	text-transform: none;
}

.fd-blog-header p {
	font-size: 18px;
	font-weight: 400;
	line-height: 140%;
	color: rgba(13, 12, 12, 0.7);
	max-width: 600px;
	margin: 0 auto;
}

/* Filtres + recherche */
.fd-blog-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 48px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(13, 12, 12, 0.16);
}

.fd-blog-search {
	display: flex;
	flex: 1 1 280px;
	max-width: 420px;
	gap: 0;
}

.fd-blog-search input[type="search"] {
	flex: 1;
	border: 1px solid #0d0c0c;
	border-right: 0;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 15px;
	background: #fff;
	color: #0d0c0c;
	outline: none;
}

.fd-blog-search button {
	border: 1px solid #0d0c0c;
	background: #0d0c0c;
	color: #fff;
	padding: 12px 20px;
	font-family: inherit;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.fd-blog-search button:hover {
	background: #ea5b0c;
	border-color: #ea5b0c;
}

.fd-blog-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	flex: 1 1 320px;
	justify-content: flex-end;
}

.fd-blog-filter-chip {
	display: inline-block;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.24px;
	text-transform: uppercase;
	text-decoration: none;
	color: #0d0c0c;
	border: 1px solid rgba(13, 12, 12, 0.24);
	background: transparent;
	transition: all 0.2s ease;
}

.fd-blog-filter-chip:hover,
.fd-blog-filter-chip.is-active {
	background: #0d0c0c;
	color: #fff;
	border-color: #0d0c0c;
}

.fd-blog-filter-reset {
	font-size: 13px;
	color: rgba(13, 12, 12, 0.7);
	text-decoration: underline;
	margin-left: 8px;
}

.fd-blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	width: 100%;
	margin-top: 4px;
	justify-content: flex-end;
}

.fd-blog-tag-chip {
	display: inline-block;
	padding: 4px 10px;
	font-size: 12px;
	color: rgba(13, 12, 12, 0.7);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.fd-blog-tag-chip:hover,
.fd-blog-tag-chip.is-active {
	color: #ea5b0c;
	border-bottom-color: #ea5b0c;
}

/* Grille */
.fd-blog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
	gap: 40px;
}

.fd-blog-card {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fd-blog-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.fd-blog-card-image {
	width: 100%;
	height: 280px;
	background: #ececec;
	overflow: hidden;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fd-blog-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fd-blog-card-content {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 0 20px 20px;
}

.fd-blog-card-meta {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

.fd-blog-category {
	background: #0d0c0c;
	color: #fff;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.24px;
	text-decoration: none;
	display: inline-block;
}

a.fd-blog-category:hover {
	background: #ea5b0c;
	color: #fff;
}

.fd-blog-card-date {
	font-size: 14px;
	color: rgba(13, 12, 12, 0.7);
}

.fd-blog-card-title {
	font-size: 24px;
	font-weight: 400;
	line-height: 120%;
	letter-spacing: 0.48px;
	margin: 0;
	text-transform: none;
}

.fd-blog-card-excerpt {
	font-size: 16px;
	line-height: 150%;
	color: rgba(13, 12, 12, 0.7);
	margin: 0;
}

/* Pagination */
.fd-blog-pagination {
	margin-top: 64px;
	display: flex;
	justify-content: center;
	gap: 8px;
}

.fd-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid #0d0c0c;
	color: #0d0c0c;
	text-decoration: none;
	font-size: 14px;
}

.fd-blog-pagination .page-numbers.current,
.fd-blog-pagination .page-numbers:hover {
	background: #0d0c0c;
	color: #fff;
}

.fd-blog-empty {
	text-align: center;
	padding: 80px 20px;
	color: rgba(13, 12, 12, 0.7);
	font-size: 18px;
}

/* ——— Détail ——— */
.fd-blog-detail {
	max-width: 900px;
	margin: 0 auto;
}

.fd-blog-breadcrumb {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
	font-size: 14px;
	color: rgba(13, 12, 12, 0.7);
	margin-bottom: 40px;
}

.fd-blog-breadcrumb a {
	color: #0d0c0c;
	text-decoration: none;
}

.fd-blog-breadcrumb a:hover {
	color: #ea5b0c;
}

.fd-blog-detail-header {
	margin-bottom: 48px;
}

.fd-blog-detail-categories {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.fd-blog-detail-title {
	font-size: clamp(36px, 6vw, 72px);
	font-weight: 300;
	line-height: 110%;
	letter-spacing: 2.9px;
	margin: 0;
	text-transform: none;
}

.fd-blog-detail-image {
	width: 100%;
	height: 600px;
	background: #ececec;
	margin-bottom: 60px;
	overflow: hidden;
}

.fd-blog-detail-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fd-blog-detail-content {
	font-size: 18px;
	font-weight: 400;
	line-height: 150%;
	color: rgba(13, 12, 12, 0.7);
}

.fd-blog-detail-content h2 {
	font-size: 40px;
	font-weight: 400;
	line-height: 120%;
	color: #0d0c0c;
	margin: 48px 0 24px;
	text-transform: none;
}

.fd-blog-detail-content h3 {
	font-size: 28px;
	font-weight: 400;
	line-height: 130%;
	color: #0d0c0c;
	margin: 40px 0 20px;
	text-transform: none;
}

.fd-blog-detail-content p {
	margin-bottom: 24px;
}

.fd-blog-detail-content strong {
	color: #0d0c0c;
	font-weight: 500;
}

.fd-blog-detail-content a {
	color: #ea5b0c;
}

/* Meta APRÈS l'article — sans emoji */
.fd-blog-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	align-items: center;
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid rgba(13, 12, 12, 0.16);
	font-size: 15px;
	color: rgba(13, 12, 12, 0.7);
}

.fd-blog-detail-meta .meta-sep {
	color: rgba(13, 12, 12, 0.3);
}

.fd-blog-share {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	padding: 40px 0;
	border-top: 1px solid rgba(13, 12, 12, 0.16);
	margin-top: 24px;
}

.fd-blog-share-label {
	font-size: 16px;
	font-weight: 500;
	color: #0d0c0c;
}

.fd-blog-share-buttons {
	display: flex;
	gap: 12px;
}

.fd-blog-share-button {
	width: 40px;
	height: 40px;
	border: 1px solid #0d0c0c;
	background: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: #0d0c0c;
	font-size: 14px;
	transition: all 0.3s ease;
}

.fd-blog-share-button:hover {
	background: #0d0c0c;
	color: #fff;
}

.fd-blog-related {
	margin-top: 80px;
	padding-top: 60px;
	border-top: 2px solid #0d0c0c;
}

.fd-blog-related h2 {
	font-size: clamp(32px, 4vw, 48px);
	font-weight: 300;
	line-height: 110%;
	margin: 0 0 40px;
	text-align: center;
	text-transform: none;
}

.fd-blog-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px;
}

.fd-blog-related-card {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease;
}

.fd-blog-related-card:hover {
	transform: translateY(-4px);
}

.fd-blog-related-image {
	width: 100%;
	height: 200px;
	background: #ececec;
	margin-bottom: 16px;
	overflow: hidden;
}

.fd-blog-related-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fd-blog-related-title {
	font-size: 20px;
	font-weight: 400;
	line-height: 120%;
	margin: 12px 0 0;
	text-transform: none;
}

@media (max-width: 768px) {
	.fd-blog-container {
		padding: 48px 20px;
	}

	.fd-blog-header {
		margin-bottom: 32px;
	}

	.fd-blog-header h1 {
		font-size: 48px;
		letter-spacing: 1px;
	}

	.fd-blog-header p {
		font-size: 16px;
	}

	.fd-blog-grid {
		grid-template-columns: 1fr;
		gap: 32px;
	}

	/* Toolbar : colonne compacte, sans stretch vertical */
	.fd-blog-toolbar {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		margin-bottom: 32px;
		padding-bottom: 20px;
	}

	/* Recherche pleine largeur, hauteur normale */
	.fd-blog-search {
		display: flex;
		flex-direction: row;
		flex: none;
		width: 100%;
		max-width: none;
		align-items: stretch;
		height: 48px;
	}

	.fd-blog-search input[type="search"] {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
		height: 48px;
		padding: 0 14px;
		font-size: 16px; /* évite le zoom iOS */
		line-height: 48px;
		border-right: 0;
		-webkit-appearance: none;
		appearance: none;
		border-radius: 0;
	}

	.fd-blog-search button {
		flex: 0 0 auto;
		height: 48px;
		padding: 0 16px;
		font-size: 13px;
		white-space: nowrap;
		line-height: 1;
	}

	/* Catégories : wrap serré, aligné à gauche */
	.fd-blog-filters {
		display: flex;
		flex-wrap: wrap;
		flex: none;
		width: 100%;
		gap: 8px;
		justify-content: flex-start;
		align-items: center;
	}

	.fd-blog-filter-chip {
		padding: 8px 12px;
		font-size: 11px;
		line-height: 1.2;
		max-width: 100%;
	}

	.fd-blog-filter-reset {
		margin-left: 0;
		width: 100%;
		margin-top: 4px;
	}

	/* Tags : wrap compact */
	.fd-blog-tags {
		display: flex;
		flex-wrap: wrap;
		width: 100%;
		gap: 8px 12px;
		margin-top: 0;
		justify-content: flex-start;
		padding-top: 4px;
		border-top: 1px solid rgba(13, 12, 12, 0.08);
	}

	.fd-blog-tag-chip {
		padding: 6px 0;
		font-size: 13px;
	}

	.fd-blog-card-content {
		padding: 0 0 8px;
	}

	.fd-blog-card-image {
		height: 220px;
		margin-bottom: 16px;
	}

	.fd-blog-detail-image {
		height: 240px;
		margin-bottom: 36px;
	}

	.fd-blog-detail-content {
		font-size: 16px;
	}

	.fd-blog-detail-content h2 {
		font-size: 28px;
	}

	.fd-blog-detail-content h3 {
		font-size: 22px;
	}

	.fd-blog-related-grid {
		grid-template-columns: 1fr;
	}
}

/* Très petits écrans */
@media (max-width: 380px) {
	.fd-blog-search {
		flex-wrap: wrap;
		height: auto;
	}

	.fd-blog-search input[type="search"] {
		flex: 1 1 100%;
		border-right: 1px solid #0d0c0c;
		border-bottom: 0;
		height: 48px;
	}

	.fd-blog-search button {
		flex: 1 1 100%;
		width: 100%;
		height: 44px;
	}
}
