
/**
 * ONG CAV — couche de stabilisation et de finition.
 * Chargée après le CSS historique afin de neutraliser ses conflits connus.
 */

:root {
	--oc-green-900: #123e31;
	--oc-green-700: #1d6b50;
	--oc-green-500: #2d8a68;
	--oc-gold: #d3a63b;
	--oc-ink: #18322a;
	--oc-muted: #61716b;
	--oc-surface: #ffffff;
	--oc-surface-soft: #f3f8f5;
	--oc-border: #dce8e1;
	--oc-shadow: 0 14px 38px rgba(18, 62, 49, 0.12);
	--oc-radius: 18px;
}

html {
	max-width: 100%;
	overflow-x: clip;
	scroll-behavior: smooth;
}

body {
	max-width: 100%;
	overflow-x: clip;
	color: var(--oc-ink);
	background: var(--oc-surface);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.65;
}

img,
svg,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
}

:where(a, button, input, textarea, select):focus-visible {
	outline: 3px solid rgba(211, 166, 59, 0.85);
	outline-offset: 3px;
}

/* Navigation : le flex horizontal ne concerne que le premier niveau. */
.hfe-nav-menu__layout-horizontal > ul.hfe-nav-menu {
	display: flex !important;
	flex-wrap: nowrap !important;
}

.hfe-nav-menu__layout-horizontal ul.sub-menu {
	display: block !important;
	flex: none !important;
	flex-wrap: initial !important;
	width: min(280px, calc(100vw - 32px)) !important;
	min-width: 220px !important;
	max-width: calc(100vw - 32px) !important;
	padding: 10px !important;
	border: 1px solid var(--oc-border) !important;
	border-radius: 14px !important;
	background: #ffffff !important;
	box-shadow: var(--oc-shadow) !important;
}

.hfe-nav-menu__layout-horizontal ul.sub-menu > li {
	display: block !important;
	width: 100% !important;
	min-width: 0 !important;
	flex: none !important;
}

.hfe-nav-menu__layout-horizontal ul.sub-menu a {
	white-space: normal !important;
	overflow-wrap: anywhere;
	border-radius: 9px;
}

/* Accueil : la section des domaines revient dans le flux normal. */
body.home #home-hero {
	background: #f7f8f4 !important;
	background-image: none !important;
}

body.home #home-domains {
	display: block !important;
	position: relative !important;
	inset: auto !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	bottom: auto !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	min-height: 0 !important;
	margin: 40px 0 !important;
	padding: 0 !important;
	transform: none !important;
	z-index: 1 !important;
	isolation: isolate;
}

/* Smart Slider ajoutait un flou de 7 px aux visuels du diaporama. */
body.home #home-hero .n2-ss-slide-background-image picture,
body.home #home-hero .n2-ss-slide-background-image img {
	filter: none !important;
	image-rendering: auto;
}

body.home #home-domains > .elementor-widget-container {
	width: 100%;
}

body.home #home-domains .oc-domains {
	position: relative !important;
	inset: auto !important;
	width: 100% !important;
	max-width: none !important;
	height: auto !important;
	margin: 0 !important;
	padding: clamp(54px, 7vw, 86px) 24px !important;
	transform: none !important;
	background: linear-gradient(145deg, #123e31 0%, #1e684f 100%);
}

/* Sépare clairement les domaines du héros et du bloc Chiffres clés. */
body.home .elementor-element-ba5aba9 {
	position: relative !important;
	clear: both;
	margin-top: 0 !important;
	z-index: 1 !important;
	background: linear-gradient(135deg, #f5efe3 0%, #eadfc8 100%) !important;
	border-top: 1px solid rgba(150, 119, 57, 0.22);
	border-bottom: 1px solid rgba(150, 119, 57, 0.22);
}

/* Pages des domaines : palette claire, naturelle et cohérente avec l’ONG. */
body:has(.evt-section) {
	background: #f4f7f2 !important;
	background-image: linear-gradient(180deg, #f7f8f4 0%, #edf3ee 100%) !important;
}

.dom-hero {
	box-sizing: border-box !important;
	padding: 16px !important;
	background: linear-gradient(135deg, #123e31 0%, #1e684f 100%) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	border-radius: 24px !important;
	box-shadow: 0 16px 42px rgba(18, 62, 49, 0.18) !important;
}

.evt-section {
	box-sizing: border-box !important;
	color: #26352f !important;
	background: linear-gradient(180deg, #fbfcf9 0%, #eef4ef 100%) !important;
	border: 1px solid #d7e2d8 !important;
	border-radius: 24px !important;
	box-shadow: 0 18px 50px rgba(18, 62, 49, 0.12) !important;
}

.evt-section .pdf-h1 {
	color: #123e31 !important;
	font-weight: 750 !important;
}

.evt-section .pdf-periode {
	color: #52645d !important;
}

.evt-section .pdf-divider {
	border-color: #c79a3b !important;
	color: #c79a3b !important;
}

.evt-section .evt-cover img,
.evt-section .single-thumb {
	max-width: 100% !important;
	height: auto !important;
	border-radius: 18px !important;
	box-shadow: 0 14px 34px rgba(18, 62, 49, 0.16) !important;
	image-rendering: auto;
}

.evt-section .evt-item {
	box-sizing: border-box !important;
	padding: 8px !important;
	background: #ffffff !important;
	border: 1px solid #dce6de !important;
	border-radius: 16px !important;
	box-shadow: 0 8px 22px rgba(18, 62, 49, 0.09) !important;
	overflow: hidden;
}

.evt-section .evt-item img {
	border-radius: 10px !important;
	image-rendering: auto;
}

.evt-section .evt-item figcaption {
	color: #ffffff !important;
	background: rgba(18, 62, 49, 0.92) !important;
}

.dom-slider {
	background: #eef4ef !important;
	border: 1px solid #d7e2d8 !important;
	border-radius: 18px !important;
	box-shadow: 0 12px 32px rgba(18, 62, 49, 0.1) !important;
	overflow: hidden;
}

/* Remplace les miniatures WebP de 228 px par les originaux disponibles. */
body.page-id-265 img[src*="/image36.webp"],
body.page-id-265 img[src*="/image36-1024x767.webp"] {
	content: url("https://ongcav.org/wp-content/uploads/2025/08/image36.jpeg");
}

body.page-id-265 img[src*="/image10-2.webp"] {
	content: url("https://ongcav.org/wp-content/uploads/2025/08/image10-2.jpeg");
}

body.page-id-265 img[src*="/image16.webp"] {
	content: url("https://ongcav.org/wp-content/uploads/2025/08/image16.jpeg");
}

/* Eau et assainissement : utiliser la photo originale, pas le WebP 228 px. */
body.page-id-271 img[src*="/image1-6.webp"],
body.page-id-271 img[src*="/image1-6-1024x769.webp"] {
	content: url("https://ongcav.org/wp-content/uploads/2025/08/image1-6.jpeg");
}

body.home #home-domains .oc-container {
	width: min(1160px, 100%) !important;
	max-width: 1160px !important;
	margin-inline: auto !important;
}

body.home #home-domains h2 {
	margin: 0 0 34px !important;
	color: #ffffff !important;
	font-size: clamp(2rem, 4vw, 3.25rem) !important;
	line-height: 1.1 !important;
	text-align: center;
}

body.home #home-domains .oc-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100% !important;
}

body.home #home-domains .oc-card {
	display: flex !important;
	flex-direction: column !important;
	align-items: flex-start;
	min-width: 0;
	height: 100%;
	padding: 30px !important;
	border: 1px solid rgba(255, 255, 255, 0.35) !important;
	border-radius: var(--oc-radius) !important;
	background: rgba(255, 255, 255, 0.97) !important;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18) !important;
}

body.home #home-domains .oc-card-title {
	margin: 0 0 12px !important;
	color: var(--oc-green-900) !important;
	font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
	line-height: 1.25 !important;
}

body.home #home-domains .oc-card-desc {
	margin: 0 0 24px !important;
	color: var(--oc-muted) !important;
}

body.home #home-domains .oc-btn {
	margin-top: auto !important;
	border-color: var(--oc-green-700) !important;
	color: var(--oc-green-900) !important;
}

/* Articles : colonne de lecture prioritaire, galeries bornées, récents en dessous. */
.single-post .oc-article-wrap {
	display: block !important;
	width: 100% !important;
}

.single-post .oc-article-layout {
	display: grid !important;
	grid-template-columns: minmax(180px, 240px) minmax(0, 720px) minmax(180px, 240px) !important;
	grid-template-areas:
		"left content right"
		"recent recent recent" !important;
	justify-content: center;
	align-items: start;
	gap: 32px !important;
	width: min(1280px, 100%) !important;
	max-width: 1280px !important;
	margin-inline: auto !important;
	padding: clamp(28px, 5vw, 64px) 24px !important;
}

.single-post .oc-aside--left {
	grid-area: left;
}

.single-post .oc-article-content {
	grid-area: content;
	width: 100% !important;
	min-width: 0;
	font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.single-post .oc-aside--right {
	grid-area: right;
}

.single-post .oc-recent-posts {
	grid-area: recent;
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px !important;
	width: 100% !important;
	margin-top: 28px !important;
	padding: 30px !important;
	border: 1px solid var(--oc-border);
	border-radius: var(--oc-radius);
	background: var(--oc-surface-soft);
}

.single-post .oc-recent-posts > h3 {
	grid-column: 1 / -1;
	margin: 0 0 4px !important;
	color: var(--oc-green-900);
}

.single-post .oc-recent-item {
	min-width: 0;
	padding: 18px;
	border: 1px solid var(--oc-border);
	border-radius: 13px;
	background: #ffffff;
}

.single-post .oc-aside-photo,
.single-post .oc-article-content img {
	display: block;
	width: 100% !important;
	height: auto !important;
	border-radius: 14px;
}

.single-post .oc-article-content :where(p, li) {
	overflow-wrap: anywhere;
}

/* Cartes d’actualités cohérentes et bornées. */
.oc-news .elementor-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px !important;
}

.oc-news .ekit-post-card,
.oc-news .elementor-post__card {
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	overflow: hidden;
	border: 1px solid var(--oc-border) !important;
	border-radius: var(--oc-radius) !important;
	background: #ffffff !important;
	box-shadow: 0 10px 28px rgba(18, 62, 49, 0.1) !important;
}

.oc-news .thumb img,
.oc-news .elementor-post__thumbnail img {
	display: block;
	width: 100% !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.oc-news .ekit-post-body,
.oc-news .elementor-post__text {
	display: flex !important;
	flex: 1 1 auto;
	flex-direction: column !important;
	padding: 22px !important;
}

.oc-news .more-link,
.oc-news .elementor-post__read-more {
	margin-top: auto !important;
}

@media (max-width: 1024px) {
	body.home #home-domains .oc-grid,
	.oc-news .elementor-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.single-post .oc-article-layout {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
		grid-template-areas:
			"content content"
			"left right"
			"recent recent" !important;
		max-width: 860px !important;
	}

	.single-post .oc-recent-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	body.home #home-domains {
		display: block !important;
		margin: 36px 0 44px !important;
	}

	body.home #home-domains .oc-domains {
		padding: 44px 18px !important;
	}

	body.home #home-domains .oc-grid,
	.oc-news .elementor-grid {
		grid-template-columns: minmax(0, 1fr) !important;
		gap: 18px !important;
	}

	body.home #home-domains .oc-card {
		padding: 24px !important;
	}

	.single-post .oc-article-layout {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas:
			"content"
			"left"
			"right"
			"recent" !important;
		gap: 24px !important;
		padding: 28px 16px !important;
	}

	.single-post .oc-recent-posts {
		grid-template-columns: minmax(0, 1fr);
		padding: 20px !important;
	}
}

/* ================================================================
 * Actualités : magazine sobre, images contenues et cartes homogènes.
 * ================================================================ */
body.blog.wp-child-theme-hello-elementor-child-oc {
	background: linear-gradient(180deg, #f4f8f5 0%, #ffffff 440px) !important;
}

body.blog.wp-child-theme-hello-elementor-child-oc .site-main {
	box-sizing: border-box;
	width: min(1180px, 100%) !important;
	max-width: 1180px !important;
	margin-inline: auto !important;
	padding: clamp(44px, 6vw, 76px) 24px 84px !important;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-header {
	margin: 0 0 34px !important;
	padding: 0 0 22px;
	border-bottom: 1px solid var(--oc-border);
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-header::before {
	display: block;
	margin-bottom: 8px;
	color: #9b7728;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	content: "Nos actions sur le terrain";
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-header .entry-title {
	margin: 0 !important;
	font-size: clamp(2rem, 4vw, 3.15rem) !important;
	line-height: 1.08 !important;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > article.post {
	display: flex !important;
	flex-direction: column;
	min-width: 0;
	margin: 0 !important;
	padding: 0 0 24px !important;
	overflow: hidden;
	border: 1px solid var(--oc-border);
	border-radius: 18px;
	background: #ffffff;
	box-shadow: 0 12px 34px rgba(18, 62, 49, 0.1);
	transition: transform 180ms ease, box-shadow 180ms ease;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > article.post:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 42px rgba(18, 62, 49, 0.15);
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > article.post > a:has(img) {
	order: -1;
	display: block;
	overflow: hidden;
	background: #e8f0eb;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > article.post img.single-thumb {
	display: block;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	transition: transform 280ms ease;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > article.post:hover img.single-thumb {
	transform: scale(1.025);
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > article.post > .entry-title {
	margin: 22px 24px 12px !important;
	font-size: clamp(1.12rem, 1.4vw, 1.35rem) !important;
	line-height: 1.35 !important;
	letter-spacing: -0.01em;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > article.post > .entry-title a {
	color: var(--oc-green-900) !important;
	text-decoration: none !important;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > article.post > p {
	display: -webkit-box;
	margin: 0 24px !important;
	overflow: hidden;
	color: #53665f;
	font-size: 1rem !important;
	line-height: 1.65 !important;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
}

body.blog.wp-child-theme-hello-elementor-child-oc .page-content > nav {
	grid-column: 1 / -1;
	margin-top: 16px;
}

/* ================================================================
 * Article : une image à la une maîtrisée, lecture + galerie + récents.
 * ================================================================ */
body.single-post.wp-child-theme-hello-elementor-child-oc > .oc-single-title {
	width: min(1040px, calc(100% - 40px));
	margin: clamp(42px, 6vw, 72px) auto 28px !important;
	font-size: clamp(1.85rem, 3.2vw, 3rem) !important;
	line-height: 1.12 !important;
	text-align: center;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-single-thumb-wrap {
	box-sizing: border-box;
	width: min(980px, calc(100% - 40px)) !important;
	margin: 0 auto 42px !important;
	overflow: hidden;
	border-radius: 22px;
	background: #e8f0eb;
	box-shadow: 0 18px 46px rgba(18, 62, 49, 0.16);
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-single-thumb-wrap img.oc-single-thumb {
	display: block;
	width: 100% !important;
	height: auto !important;
	max-height: 580px !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-gallery-ready {
	grid-template-columns: minmax(0, 780px) minmax(240px, 280px) !important;
	grid-template-areas: "content recent" !important;
	gap: 36px !important;
	width: min(1120px, 100%) !important;
	max-width: 1120px !important;
	padding: 24px 20px 72px !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-gallery-ready > .oc-aside {
	display: none !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-gallery-ready .oc-article-content {
	padding: clamp(24px, 4vw, 44px) !important;
	border: 1px solid var(--oc-border);
	border-radius: 20px;
	background: #ffffff;
	box-shadow: 0 12px 36px rgba(18, 62, 49, 0.08);
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	margin-top: 42px;
	padding-top: 34px;
	border-top: 1px solid var(--oc-border);
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery-title {
	grid-column: 1 / -1;
	margin: 0 0 4px !important;
	font-family: Inter, system-ui, sans-serif !important;
	font-size: 1.45rem !important;
	line-height: 1.25 !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery figure {
	margin: 0 !important;
	overflow: hidden;
	border-radius: 14px;
	background: #e8f0eb;
	box-shadow: 0 8px 22px rgba(18, 62, 49, 0.12);
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery figure:last-child:nth-child(even) {
	grid-column: 1 / -1;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery a,
body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery img {
	display: block;
	width: 100% !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery img {
	height: auto !important;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery figure:last-child:nth-child(even) img {
	aspect-ratio: 16 / 8;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-gallery-ready .oc-recent-posts {
	position: sticky;
	top: 24px;
	grid-area: recent !important;
	align-self: start;
	width: 100% !important;
	max-height: calc(100vh - 48px);
	margin: 0 !important;
	overflow-y: auto;
}

@media (max-width: 1024px) {
	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-gallery-ready {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas: "content" "recent" !important;
		max-width: 820px !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-gallery-ready .oc-recent-posts {
		position: static;
		max-height: none;
	}
}

@media (max-width: 767px) {
	body.blog.wp-child-theme-hello-elementor-child-oc .site-main {
		padding-inline: 16px !important;
	}

	body.blog.wp-child-theme-hello-elementor-child-oc .page-content,
	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery {
		grid-template-columns: minmax(0, 1fr) !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-single-thumb-wrap,
	body.single-post.wp-child-theme-hello-elementor-child-oc > .oc-single-title {
		width: calc(100% - 28px) !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-gallery-ready {
		padding-inline: 14px !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-gallery-ready .oc-article-content {
		padding: 24px 20px !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery figure:last-child:nth-child(even) {
		grid-column: auto;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery img,
	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-gallery figure:last-child:nth-child(even) img {
		aspect-ratio: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Priorité finale face aux anciens sélecteurs très spécifiques. */
body.wp-child-theme-hello-elementor-child-oc .hfe-nav-menu__layout-horizontal > ul.hfe-nav-menu li.menu-item ul.sub-menu {
	display: block !important;
	flex: none !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	box-sizing: border-box !important;
	width: min(280px, calc(100vw - 32px)) !important;
	min-width: 220px !important;
	max-width: calc(100vw - 32px) !important;
}

body.wp-child-theme-hello-elementor-child-oc .hfe-nav-menu__layout-horizontal > ul.hfe-nav-menu li.menu-item ul.sub-menu > li.menu-item {
	display: block !important;
	flex: none !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

/*
 * L'ancien CSS cible le widget Elementor avec un identifiant et impose des
 * sous-menus horizontaux. Cette règle plus précise restaure une liste stable.
 */
body.wp-child-theme-hello-elementor-child-oc .elementor-591 .elementor-element.elementor-element-9f35492 nav.hfe-nav-menu__layout-horizontal > ul.hfe-nav-menu > li.menu-item > ul.sub-menu {
	display: block !important;
	flex: none !important;
	flex-flow: column nowrap !important;
	box-sizing: border-box !important;
	width: min(280px, calc(100vw - 32px)) !important;
	min-width: 220px !important;
	max-width: calc(100vw - 32px) !important;
	padding: 8px 0 !important;
}

body.wp-child-theme-hello-elementor-child-oc .elementor-591 .elementor-element.elementor-element-9f35492 nav.hfe-nav-menu__layout-horizontal > ul.hfe-nav-menu > li.menu-item > ul.sub-menu > li.menu-item {
	display: block !important;
	flex: none !important;
	box-sizing: border-box !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	border-right: 0 !important;
	white-space: normal !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout {
	display: grid !important;
	grid-template-columns: minmax(180px, 240px) minmax(0, 720px) minmax(180px, 240px) !important;
	grid-template-areas: "left content right" "recent recent recent" !important;
	justify-content: center !important;
	align-items: start !important;
	box-sizing: border-box !important;
	gap: 32px !important;
	width: 100% !important;
	max-width: 1280px !important;
	margin-inline: auto !important;
	padding: clamp(28px, 5vw, 64px) 24px !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-aside--left {
	grid-area: left !important;
	width: 100% !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-content {
	grid-area: content !important;
	width: 100% !important;
	min-width: 0 !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-aside--right {
	grid-area: right !important;
	width: 100% !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-recent-posts {
	grid-area: recent !important;
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: none !important;
}

/*
 * Articles desktop : quatre colonnes équilibrées.
 * Les articles récents retrouvent la colonne droite, sous forme compacte.
 */
@media (min-width: 1180px) {
	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout {
		grid-template-columns: minmax(150px, 190px) minmax(540px, 1fr) minmax(150px, 190px) minmax(220px, 260px) !important;
		grid-template-areas: "left content right recent" !important;
		gap: 22px !important;
		width: 100% !important;
		max-width: 1348px !important;
		padding: 48px 18px 64px !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-recent-posts {
		position: sticky;
		top: 24px;
		display: flex !important;
		flex-direction: column !important;
		align-self: start;
		gap: 10px !important;
		width: 100% !important;
		max-height: calc(100vh - 48px);
		margin: 0 !important;
		padding: 18px !important;
		overflow-y: auto;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-recent-posts > h3 {
		margin: 0 0 8px !important;
		font-size: 1.2rem !important;
		line-height: 1.25 !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-recent-item {
		padding: 12px !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-recent-item a {
		display: -webkit-box;
		overflow: hidden;
		color: #183e32 !important;
		font-size: 0.9rem !important;
		font-weight: 700 !important;
		line-height: 1.4 !important;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-recent-cat {
		display: block;
		margin-bottom: 5px;
		color: #7b6330 !important;
		font-size: 0.72rem !important;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}
}

/* Typographie cohérente et confortable sur l’ensemble du site. */
body.wp-child-theme-hello-elementor-child-oc {
	font-size: 17px;
	line-height: 1.65;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

body.wp-child-theme-hello-elementor-child-oc :where(h1, h2, h3, h4, h5, h6) {
	color: var(--oc-green-900);
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: -0.018em;
	text-wrap: balance;
}

body.wp-child-theme-hello-elementor-child-oc h1 {
	font-size: clamp(2rem, 4vw, 3.25rem);
}

body.wp-child-theme-hello-elementor-child-oc h2 {
	font-size: clamp(1.65rem, 3vw, 2.5rem);
}

body.wp-child-theme-hello-elementor-child-oc h3 {
	font-size: clamp(1.25rem, 2vw, 1.65rem);
}

body.wp-child-theme-hello-elementor-child-oc :where(.entry-content, .elementor-widget-text-editor, .evt-section) :where(p, li) {
	font-size: clamp(1rem, 0.25vw + 0.96rem, 1.1rem);
	line-height: 1.75;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-content {
	color: #203b33 !important;
	font-family: Georgia, "Times New Roman", serif !important;
	font-size: clamp(1.08rem, 0.35vw + 1rem, 1.22rem) !important;
	line-height: 1.72 !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-content :where(p, li, blockquote) {
	margin-block: 0 1.15em;
	font: inherit !important;
	line-height: inherit !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-content a {
	color: #126346;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.16em;
}

@media (max-width: 1024px) {
	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		grid-template-areas: "content content" "left right" "recent recent" !important;
		max-width: 860px !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-recent-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout {
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas: "content" "left" "right" "recent" !important;
		gap: 24px !important;
		padding: 28px 16px !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-recent-posts {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Articles avec photos parallèles : colonnes visuelles élargies. */
@media (min-width: 1200px) {
	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-parallel-photos {
		grid-template-columns: minmax(220px, 260px) minmax(480px, 1fr) minmax(220px, 260px) minmax(200px, 220px) !important;
		grid-template-areas: "left content right recent" !important;
		gap: 16px !important;
		width: 100% !important;
		max-width: 1360px !important;
		padding: 44px 12px 68px !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-parallel-photos > .oc-aside {
		display: grid !important;
		align-content: start;
		gap: 16px;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-parallel-photos .oc-aside-img {
		width: 100% !important;
		margin: 0 !important;
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-parallel-photos .oc-aside-photo {
		display: block;
		width: 100% !important;
		height: auto !important;
		border-radius: 14px;
		box-shadow: 0 9px 24px rgba(18, 62, 49, 0.14);
	}

	body.single-post.wp-child-theme-hello-elementor-child-oc .oc-article-layout.oc-parallel-photos .oc-recent-posts {
		width: 100% !important;
		padding: 15px !important;
	}
}

/* Commentaires : un seul bouton pilote l'ouverture du formulaire. */
body.single-post.wp-child-theme-hello-elementor-child-oc .oc-comment-form-panel .comments-area > button.oc-comment-toggle {
	display: none !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-comment-form-panel .comment-respond {
	display: block !important;
}

body.single-post.wp-child-theme-hello-elementor-child-oc .oc-surplus-gallery-below[hidden] {
	display: none !important;
}

/*
 * Accueil desktop : les trois cartes font la jonction entre le diaporama
 * et le haut du bloc Chiffres clés. Leur enveloppe reste transparente.
 */
@media (min-width: 1025px) {
	body.home.wp-child-theme-hello-elementor-child-oc #home-hero {
		position: relative !important;
		overflow: visible !important;
		isolation: auto;
	}

	body.home.wp-child-theme-hello-elementor-child-oc #home-domains {
		display: block !important;
		position: absolute !important;
		inset: auto 0 -127px 0 !important;
		box-sizing: border-box !important;
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 24px !important;
		background: transparent !important;
		transform: none !important;
		z-index: 30 !important;
	}

	body.home.wp-child-theme-hello-elementor-child-oc #home-domains > .elementor-widget-container,
	body.home.wp-child-theme-hello-elementor-child-oc #home-domains .oc-domains {
		width: 100% !important;
		height: auto !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
	}

	body.home.wp-child-theme-hello-elementor-child-oc #home-domains h2 {
		margin: 0 0 24px !important;
		color: #ffffff !important;
		font-size: clamp(2rem, 3.4vw, 3rem) !important;
		line-height: 1.1 !important;
		text-shadow: 0 3px 16px rgba(0, 0, 0, 0.62);
	}

	body.home.wp-child-theme-hello-elementor-child-oc #home-domains .oc-grid {
		gap: 24px !important;
	}

	body.home.wp-child-theme-hello-elementor-child-oc #home-domains .oc-card {
		border: 1px solid rgba(18, 62, 49, 0.16) !important;
		box-shadow: 0 20px 48px rgba(18, 62, 49, 0.22) !important;
	}

	body.home.wp-child-theme-hello-elementor-child-oc .elementor-element-ba5aba9 {
		box-sizing: border-box !important;
		min-height: 350px !important;
		padding: 172px 20px 28px !important;
		background: linear-gradient(135deg, #f5efe3 0%, #eadfc8 100%) !important;
		z-index: 1 !important;
	}
}


/* Accueil : citations reparties parmi les actualites */
@media (min-width: 1025px) {
  body.home .oc-news-ekit .row.post-items {
    grid-auto-flow: row dense !important;
  }

  body.home .oc-news-ekit .row.post-items::before,
  body.home .oc-news-ekit .row.post-items::after {
    display: none !important;
    content: none !important;
  }

  body.home .oc-news-ekit .oc-news-quote-col[data-oc-quote="0"] {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }

  body.home .oc-news-ekit .oc-news-quote-col[data-oc-quote="1"] {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  body.home .oc-news-ekit .oc-news-quote-col[data-oc-quote="2"] {
    grid-column: 2 !important;
    grid-row: 4 !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  body.home .oc-news-ekit .row.post-items {
    grid-auto-flow: row dense !important;
  }

  body.home .oc-news-ekit .row.post-items::before,
  body.home .oc-news-ekit .row.post-items::after {
    display: none !important;
    content: none !important;
  }

  body.home .oc-news-ekit .oc-news-quote-col[data-oc-quote="0"] {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.home .oc-news-ekit .oc-news-quote-col[data-oc-quote="1"] {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }

  body.home .oc-news-ekit .oc-news-quote-col[data-oc-quote="2"] {
    grid-column: 2 !important;
    grid-row: 5 !important;
  }
}
