/* Une ouverture illustrée, puis une colonne de lecture. Palette CONAREF existante. */
.article-heading { padding-block: 32px 44px; }
.article-heading .breadcrumbs { margin-bottom: 34px; }
.article-opening { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.article-opening__copy { min-width: 0; }
.article-heading .editorial-meta { margin-bottom: 16px; color: var(--c-earth); }
.article-heading h1 { max-width: none; margin: 0; font-size: clamp(2.1rem, 3.5vw, 3.25rem); line-height: 1.08; font-weight: 600; letter-spacing: -.035em; color: var(--c-primary-dark); text-wrap: pretty; overflow-wrap: anywhere; }
.article-heading h1.is-long { max-width: none; font-size: clamp(1.9rem, 3vw, 2.75rem); }
.article-lead { margin-top: 24px; font-size: 1.15rem; line-height: 1.65; color: var(--c-muted); }
.article-lead p { margin: 0; }
.article-lead strong { font-weight: 400; }
.article-opening--text { grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
.article-opening--text .article-lead { max-width: 70ch; }
.article-cover { margin: 0; min-width: 0; }
.article-cover img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 4px; }
.article-cover figcaption { text-align: left; margin: 12px 0 0; font-size: .85rem; line-height: 1.5; }
.article-share { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; padding-block: 20px; border-block: 1px solid var(--c-line); }
.article-share__label { flex-shrink: 0; font-size: .95rem; font-weight: 600; color: var(--c-ink); }
.article-share ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.article-share a { display: inline-flex; gap: 7px; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px; font-size: .88rem; line-height: 1.2; text-decoration: none; color: var(--c-primary-dark); border-radius: 4px; }
.article-share a:hover { background: var(--c-cream); }
.article-share svg { flex-shrink: 0; width: 18px; height: 18px; }
.article-layout { display: block; padding-block: 48px 64px; }
.article-reading { max-width: 760px; margin-inline: auto; }
.conaref-article .article-reading .entry-content { font-size: 1.125rem; line-height: 1.85; }
.article-reading .entry-content h2 { font-size: clamp(1.6rem, 2.5vw, 2rem); line-height: 1.25; margin-top: 1.8em; text-wrap: pretty; }
.article-reading .entry-content > :first-child { margin-top: 0; }
.article-reading .entry-content :is(p, ul, ol) { margin-bottom: 1.4em; }
.article-reading .entry-content .wp-block-columns { gap: 24px; }
.article-reading .entry-content .wp-block-image img { display: block; height: auto; }
.article-reading .entry-content figcaption { text-align: left; line-height: 1.5; margin-top: 10px; }
.article-end { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--c-line); }
.article-end a { display: inline-flex; align-items: center; min-height: 44px; font-size: 1rem; font-weight: 600; text-underline-offset: .25em; }

.article-reading .entry-content div[dir="auto"] { margin-bottom: 1.4em; }
.article-photo-placeholders { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.article-reading .entry-content .article-photo-placeholders .conaref-image-skeleton { margin: 0; }
.article-reading .entry-content .conaref-image-skeleton { display: inline-flex; align-items: center; justify-content: center; width: 88px; height: 64px; aspect-ratio: auto; margin: 8px 12px 8px 0; vertical-align: middle; }
.article-reading .entry-content .conaref-image-skeleton svg { width: 32px; height: 28px; }
.article-reading .entry-content .wp-caption:has(.conaref-image-skeleton) { float: none; width: auto !important; max-width: 100%; display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.article-reading .entry-content .wp-caption:has(.conaref-image-skeleton) .wp-caption-text { margin: 0; text-align: left; }

/* Les cartes sans photo restent des articles à lire, sans grand cadre vide. */
.article-related { background: var(--c-cream); padding-block: 56px 64px; }
.article-related__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.article-related__heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 600; color: var(--c-primary-dark); }
.article-related__heading > a { font-size: .95rem; text-underline-offset: .25em; }
.article-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.related-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--c-white); border-radius: 4px; }
.related-card__image { aspect-ratio: 16 / 10; overflow: hidden; border-radius: 4px 4px 0 0; }
.related-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.related-card__body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 26px; }
.related-card__meta { font-size: .9rem; color: var(--c-earth); margin-bottom: 14px; }
.related-card h3 { margin: 0 0 28px; font-size: 1.35rem; font-weight: 600; line-height: 1.35; letter-spacing: -.015em; text-wrap: pretty; overflow-wrap: anywhere; }
.related-card h3 a { color: var(--c-ink); text-decoration: none; }
.related-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 4px; }
.related-card h3 a:focus-visible { outline: none; }
.related-card h3 a:focus-visible::after { outline: 3px solid var(--c-accent); outline-offset: 4px; }
.related-card:hover h3 a { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: .18em; }
.related-card__read { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; margin-top: auto; color: var(--c-primary); font-size: .95rem; font-weight: 600; }
.article-share a:focus-visible, .article-end a:focus-visible, .article-related__heading > a:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; }
@media (max-width: 1100px) {
	.article-share { align-items: start; flex-direction: column; gap: 10px; }
}
@media (max-width: 960px) {
	.article-opening { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; gap: 28px; }
	.article-heading h1, .article-heading h1.is-long { font-size: clamp(2rem, 5vw, 2.8rem); }
	.article-cover img { max-height: none; }
	.article-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
	.article-heading { padding-block: 24px 28px; }
	.article-heading .breadcrumbs { margin-bottom: 24px; }
	.article-heading h1, .article-heading h1.is-long { font-size: 2rem; line-height: 1.12; }
	.article-lead { margin-top: 20px; font-size: 1.075rem; line-height: 1.7; }
	.article-share { padding-block: 16px; }
	.article-share ul { gap: 4px; }
	.article-share a { padding: 10px; }
	.article-layout { padding-block: 32px 40px; }
	.conaref-article .article-reading .entry-content { font-size: 1.0625rem; line-height: 1.8; }
	.article-reading .entry-content h2 { font-size: 1.55rem; }
	.article-related { padding-block: 36px 44px; }
	.article-related__heading { flex-direction: column; gap: 12px; margin-bottom: 24px; }
	.article-related__grid { grid-template-columns: 1fr; gap: 16px; }
	.related-card__body { padding: 24px; }
	.related-card h3 { font-size: 1.25rem; margin-bottom: 24px; }
}
@media print {
	.article-share, .article-end, .article-related { display: none; }
	.article-opening { display: block; }
	.article-cover { margin-top: 24px; }
	.article-layout { padding-block: 24px; }
}
