/*
------------------------------------------------
Perm'Educ — article.css
------------------------------------------------
*/

/* ---- Bandeau haut article ---- */
.article-hero {
	position: relative;
	display: block;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	/* Ratio source ≈ 2027×776 */
	aspect-ratio: 2027 / 776;
	min-height: clamp(180px, 28vw, 360px);
	background: url("../images/photos/article-hero.jpg") center center / cover no-repeat;
	background-color: var(--color-surface, #FBF8F1);
}

/* Bandeau d'en-tête de page. Même mécanique que .article-hero — inc/article.php
   y injecte l'image à la une et son format — à deux différences près : aucune
   image par défaut, et la bande reste absente tant que la page n'a pas
   d'illustration. Une page sans image ne doit pas réserver de vide en haut. */
.page-hero {
	display: none;
	position: relative;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	/* Les illustrations de page se terminent par une vague qui se fond dans le
	   fond : c'est cette couleur-là qui doit prolonger l'image, pas le crème
	   des articles, sans quoi la jointure se voit. */
	background-color: var(--color-background, #F5EFE3);
}

/* Colonne contenu à droite du menu */
.wp-site-blocks > main.article,
main.article {
	/* héros est hors de main : le contenu garde sa largeur */
}



.article {
	max-width: 860px;
	margin: auto;
	padding: 64px var(--space-md);
}

.article-header {
	margin-bottom: 64px;
}

.article-lede {
	font-family: "Cormorant Garamond", serif;
	font-style: italic;
	font-size: 26px;
	color: var(--color-moss);
	margin: 8px 0 32px;
}

.article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	color: var(--color-moss);
	font-size: .95rem;
}

.article-section {
	margin: 96px 0;
}

.article-section h2 {
	margin-bottom: 32px;
}

/* Titre de section numéroté (1. La question, etc.) */
.section-step {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 32px;
}

.section-step .step-num {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--color-forest);
	color: var(--color-background);
	font-weight: 700;
	font-family: "Source Sans 3", sans-serif;
}

.section-step h2 {
	margin: 0;
}

/* Encadrés « ce que je cherche à comprendre » / « à retenir » */
.callout {
	padding: 24px 28px;
	border-radius: var(--radius-md);
	background: var(--color-surface);
	border: 1px solid var(--color-stone);
	font-style: italic;
	color: var(--color-moss);
	margin: 24px 0;
}

/* Grille des contradictions */
.contradictions {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.contradiction {
	padding: 24px;
	border-radius: var(--radius-md);
	background: var(--color-surface);
	border: 1px solid var(--color-stone);
}

.contradiction h4 {
	font-family: "Source Sans 3", sans-serif;
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 8px;
}

/* Sources */
.sources {
	margin-top: 96px;
	padding: 48px;
	background: var(--color-surface);
	border-radius: 24px;
}

.sources ol {
	line-height: 1.6;
}

/* Questions liées */
.related-posts {
	margin-top: 96px;
}
