/**
 * Grille d'articles de blog — shortcode [axyz_blog].
 * Reprend la charte du calculateur : violet #9D44A7, Inter, cartes
 * blanches à coins arrondis sur fond clair.
 */

/* ── En-tête de la page blog ───────────────────────────────────── */
.axyz-blog-header {
	text-align: center;
	margin: 0 0 30px;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.axyz-blog-header-title {
	margin: 0 0 12px;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.25;
	color: #1C1A22;
}
.axyz-blog-header-rule {
	display: block;
	width: 54px;
	height: 3px;
	margin: 0 auto 14px;
	border-radius: 999px;
	background: #9D44A7;
}
.axyz-blog-header-sub {
	margin: 0 auto;
	max-width: 620px;
	font-size: 15.5px;
	line-height: 1.6;
	color: #7c7487;
}
@media (max-width: 600px) {
	.axyz-blog-header-title { font-size: 25px; }
	.axyz-blog-header-sub { font-size: 14.5px; }
	.axyz-blog-header { margin-bottom: 22px; }
}

.axyz-blog {
	--v: #9D44A7;
	--v-deep: #7E3486;
	--text: #1C1A22;
	--muted: #7c7487;
	--line: #e5e0ea;
	--surface: #f8f6f9;

	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
	margin: 0 0 34px;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.axyz-blog-cols-1 { grid-template-columns: minmax(0, 1fr); }
.axyz-blog-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.axyz-blog-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Carte ─────────────────────────────────────────────────────── */
.axyz-blog-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	overflow: hidden;
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.axyz-blog-card:hover {
	transform: translateY(-3px);
	border-color: rgba(157, 68, 167, 0.35);
	box-shadow: 0 16px 34px -18px rgba(157, 68, 167, 0.55);
}

/* ── Vignette ──────────────────────────────────────────────────── */
.axyz-blog-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--surface);
	line-height: 0;
}
.axyz-blog-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.axyz-blog-card:hover .axyz-blog-thumb img { transform: scale(1.04); }

/* Article sans image mise en avant : cube discret plutôt qu'un trou blanc. */
.axyz-blog-thumb-empty {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(157, 68, 167, 0.4);
	background: linear-gradient(135deg, #f8f6f9 0%, #f1e9f3 100%);
}

/* ── Contenu ───────────────────────────────────────────────────── */
.axyz-blog-body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: 18px 20px 20px;
}

.axyz-blog-cat {
	align-self: flex-start;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--v);
	background: rgba(157, 68, 167, 0.09);
	border-radius: 999px;
	padding: 4px 11px;
	margin-bottom: 11px;
}

.axyz-blog-title {
	margin: 0 0 9px;
	font-size: 18.5px;
	font-weight: 800;
	line-height: 1.32;
	color: var(--text);
}
.axyz-blog-title a {
	color: inherit;
	text-decoration: none;
}
.axyz-blog-title a:hover { color: var(--v); }

.axyz-blog-excerpt {
	margin: 0 0 15px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--muted);
}

.axyz-blog-meta {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	padding-top: 13px;
	border-top: 1px solid var(--line);
	font-size: 12.5px;
	color: var(--muted);
}
.axyz-blog-sep { opacity: .55; }

.axyz-blog-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 13px;
	font-size: 14px;
	font-weight: 700;
	color: var(--v);
	text-decoration: none;
}
.axyz-blog-more:hover { color: var(--v-deep); }
.axyz-blog-more svg { transition: transform .2s ease; }
.axyz-blog-more:hover svg { transform: translateX(3px); }

/* ── Pagination ────────────────────────────────────────────────── */
.axyz-blog-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 40px;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.axyz-blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 13px;
	border: 1px solid var(--line, #e5e0ea);
	border-radius: 10px;
	background: #fff;
	color: #1C1A22;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color .18s, border-color .18s, color .18s;
}
.axyz-blog-pagination .page-numbers:hover {
	border-color: #9D44A7;
	color: #9D44A7;
}
.axyz-blog-pagination .page-numbers.current {
	background: #9D44A7;
	border-color: #9D44A7;
	color: #fff;
}
.axyz-blog-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

.axyz-blog-empty {
	text-align: center;
	color: #7c7487;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	padding: 40px 0;
}

/* ── Tablette / téléphone ──────────────────────────────────────── */
@media (max-width: 900px) {
	.axyz-blog,
	.axyz-blog-cols-3,
	.axyz-blog-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 600px) {
	.axyz-blog,
	.axyz-blog-cols-2,
	.axyz-blog-cols-3,
	.axyz-blog-cols-4 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.axyz-blog-title { font-size: 17px; }
	.axyz-blog-body { padding: 16px 17px 18px; }
}
