/* Anecdotes Historiques — single article template */
.ahx-article {
	--ahx-dark: #1c1c1c;
	--ahx-darker: #141414;
	--ahx-text: #efefef;
	--ahx-muted: #b9b9b9;
	--ahx-gold: #b7a75d;
	--ahx-gold-light: #d6c785;
	--ahx-card-title: #0c0c0c;
	--ahx-card-text: #54595f;
	font-family: "Nunito", sans-serif;
	color: var(--ahx-text);
	background: var(--ahx-dark);
}
.ahx-article *, .ahx-article *::before, .ahx-article *::after { box-sizing: border-box; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.ahx-hero {
	position: relative;
	overflow: hidden;
	background: #000 var(--ahx-hero-img) center / cover no-repeat;
	padding: clamp(64px, 9vw, 120px) 16px clamp(72px, 10vw, 130px);
	text-align: center;
}
.ahx-hero::before { /* dark diagonal veil, as on the existing pages */
	content: "";
	position: absolute; inset: 0;
	background: linear-gradient(240deg, rgba(28, 28, 28, .62) 80%, rgba(255, 255, 255, 0) 0%);
}
.ahx-hero::after { /* light bottom-left facet */
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 45%; height: 100%;
	background: linear-gradient(to top right, rgba(255, 255, 255, .16) 50%, transparent 50%);
	pointer-events: none;
}
.ahx-hero__inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.ahx-crumbs {
	font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ahx-gold-light); margin-bottom: 18px;
}
.ahx-crumbs a { color: inherit; text-decoration: none; }
.ahx-crumbs a:hover { text-decoration: underline; }
.ahx-crumbs span { margin: 0 .5em; opacity: .7; }
.ahx-hero__title {
	font-family: "Nunito", sans-serif;
	font-weight: 300;
	font-size: clamp(32px, 4.6vw, 52px);
	line-height: 1.2;
	color: var(--ahx-text);
	margin: 0 0 22px;
}
.ahx-hero__intro {
	font-size: clamp(16px, 1.5vw, 18px);
	line-height: 1.7;
	color: var(--ahx-text);
	max-width: 720px;
	margin: 0 auto;
}

/* ── Body ─────────────────────────────────────────────────────────────── */
.ahx-body { background: var(--ahx-dark); padding: clamp(40px, 6vw, 72px) 16px; }
.ahx-body__inner { max-width: 760px; margin: 0 auto; }
.ahx-featured { margin: 0 0 40px; text-align: center; }
.ahx-featured img { max-width: 100%; height: auto; display: inline-block; }
.ahx-featured figcaption, .ahx-content figcaption, .ahx-content .wp-caption-text {
	font-size: 13px; color: var(--ahx-muted); margin-top: 8px; font-style: italic; text-align: center;
}
.ahx-content { font-size: 17px; line-height: 1.8; }
.ahx-content p { margin: 0 0 1.3em; color: var(--ahx-text); }
.ahx-content h2 {
	font-family: "Nunito", sans-serif;
	font-weight: 700;
	font-size: clamp(22px, 2.4vw, 28px);
	line-height: 1.35;
	text-transform: uppercase;
	color: #fff;
	margin: 2.2em 0 .8em;
}
.ahx-content h2::before, .ahx-rule {
	content: "";
	display: block;
	width: 70px; height: 2px;
	background: var(--ahx-gold);
	margin-bottom: 18px;
}
.ahx-content h3 {
	font-family: "Nunito", sans-serif;
	font-weight: 700; font-size: 21px; line-height: 1.4;
	color: var(--ahx-muted);
	margin: 1.8em 0 .6em;
}
.ahx-content a { color: var(--ahx-gold-light); text-decoration: underline; text-underline-offset: 3px; }
.ahx-content a:hover { color: #fff; }
.ahx-content strong { color: #fff; }
.ahx-content img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.ahx-content figure, .ahx-content .wp-caption { margin: 2em auto; max-width: 100%; }
.ahx-content .alignleft { float: left; margin: .3em 1.6em 1em 0; max-width: 45%; }
.ahx-content .alignright { float: right; margin: .3em 0 1em 1.6em; max-width: 45%; }
.ahx-content ul, .ahx-content ol { margin: 0 0 1.3em 1.3em; padding: 0; }
.ahx-content li { margin-bottom: .4em; }
.ahx-content blockquote {
	margin: 2em 0; padding: 4px 0 4px 22px;
	border-left: 2px solid var(--ahx-gold);
	font-style: italic; color: var(--ahx-text);
}
.ahx-content::after { content: ""; display: table; clear: both; }

/* ── Maillage ─────────────────────────────────────────────────────────── */
.ahx-related { background: var(--ahx-darker); padding: clamp(48px, 7vw, 80px) 16px; }
.ahx-related__inner { max-width: 1140px; margin: 0 auto; }
.ahx-related__title {
	font-family: "Nunito", sans-serif;
	font-weight: 700; font-size: clamp(24px, 3vw, 34px); line-height: 1.3;
	color: var(--ahx-text);
	margin: 0 0 36px;
}
.ahx-related__grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px;
}
.ahx-card { margin: 0; }
.ahx-card__link {
	display: flex; align-items: stretch;
	background: #fff; color: var(--ahx-card-title);
	text-decoration: none; height: 100%;
	transition: transform .2s ease, box-shadow .2s ease;
}
.ahx-card__link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45); }
.ahx-card__img { flex: 0 0 180px; width: 180px; min-height: 180px; object-fit: cover; display: block; }
.ahx-card__img--empty {
	display: flex; align-items: center; justify-content: center;
	background: #2a2a2a; color: var(--ahx-gold); font-size: 28px; font-style: italic;
}
.ahx-card__body { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; }
.ahx-card__title { font-weight: 700; font-size: 18px; line-height: 1.35; color: var(--ahx-card-title); margin-bottom: 8px; }
.ahx-card__text { font-size: 14px; line-height: 1.6; color: var(--ahx-card-text); }

@media (max-width: 860px) {
	.ahx-related__grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
	.ahx-card__img { flex-basis: 110px; width: 110px; min-height: 130px; }
	.ahx-card__body { padding: 14px 16px; }
	.ahx-card__title { font-size: 16px; }
	.ahx-content .alignleft, .ahx-content .alignright { float: none; max-width: 100%; margin: 1.5em auto; }
}
