/*
Theme Name: Le Jardin des Câlins
Template: colormag
Description: Thème enfant de ColorMag pour lejardindescalins.fr : palette « Jardin lumineux » tirée du logo, titres Fraunces, lecture confortable sur mobile, encadrés produits et signaux de confiance.
Version: 2.4.0
Text Domain: colormag-child
*/

/* Polices hébergées sur le site (Fraunces 500, Nunito Sans 400-700 et italique 400), sous-ensembles latin et latin étendu : fichiers dans fonts/. */
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/fraunces-normal-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Fraunces';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('fonts/fraunces-normal-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Nunito Sans';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/nunito-sans-italic-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Nunito Sans';
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/nunito-sans-italic-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Nunito Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/nunito-sans-normal-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Nunito Sans';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('fonts/nunito-sans-normal-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: 'Nunito Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/nunito-sans-normal-latin-ext.woff2') format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: 'Nunito Sans';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('fonts/nunito-sans-normal-latin.woff2') format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* =========================================================================
   1. Palette « Jardin lumineux » (tirée du logo) et jetons
   Contrastes vérifiés (WCAG AA) : encre 14,7:1, sapin 6,3:1 sur blanc,
   blanc sur framboise 6:1, méta 5,6:1. Soleil et arc-en-ciel : décor seulement.
   ========================================================================= */
:root {
	--jdc-encre: #2a2633;
	--jdc-texte-2: #4a4556;
	--jdc-meta: #6b6575;
	--jdc-fond: #fbf8f4;
	--jdc-sable: #f4eee6;
	--jdc-surface: #fff;
	--jdc-bordure: #ebe4dc;

	--jdc-framboise: #b3305f;
	--jdc-framboise-fonce: #8f2149;
	--jdc-framboise-clair: #fcecf2;
	--jdc-sapin: #1d6b63;
	--jdc-sapin-fonce: #14514b;
	--jdc-sapin-clair: #e7f3f0;
	--jdc-soleil-clair: #fdf3dc;
	--jdc-ambre: #7a5a00;
	--jdc-nuit: #2d2536;

	/* Signature : l'arc-en-ciel de la sucette, en petits traits */
	--jdc-arc: linear-gradient(90deg, #ec298c 0%, #f79e3c 22%, #f8d225 42%, #0faa56 62%, #26bece 80%, #8e6cc9 100%);

	--jdc-police-titres: "Fraunces", Georgia, "Times New Roman", serif;
	--jdc-police-texte: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--jdc-poids-titres: 500;

	--jdc-rayon: 14px;
	--jdc-rayon-carte: 20px;
	--jdc-ombre: 0 1px 2px rgba(42, 38, 51, 0.04), 0 10px 28px -14px rgba(42, 38, 51, 0.14);
	--jdc-ombre-survol: 0 2px 4px rgba(42, 38, 51, 0.05), 0 20px 40px -18px rgba(42, 38, 51, 0.24);
	--jdc-mesure: 700px;
}

/* =========================================================================
   2. Base
   ========================================================================= */
html {
	scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

::selection {
	background: var(--jdc-framboise-clair);
	color: var(--jdc-framboise-fonce);
}

body.wp-child-theme-colormag-child :focus-visible {
	outline: 3px solid var(--jdc-framboise);
	outline-offset: 2px;
}

body.wp-child-theme-colormag-child #cm-content:focus {
	outline: none;
}

/* Le customizer ColorMag injecte ses polices et couleurs en CSS en ligne après cette feuille :
   le préfixe body.wp-child-theme-colormag-child donne la priorité au thème enfant. */
body.wp-child-theme-colormag-child,
body.wp-child-theme-colormag-child :is(p, li, button, input, select, textarea, td, th) {
	font-family: var(--jdc-police-texte);
	color: var(--jdc-encre);
}

body.wp-child-theme-colormag-child :is(h1, h2, .cm-entry-title, .cm-entry-title a, .cm-widget-title, .cm-page-title) {
	font-family: var(--jdc-police-titres);
	font-weight: var(--jdc-poids-titres);
	letter-spacing: -0.005em;
}

body.wp-child-theme-colormag-child :is(h3, h4, h5, h6) {
	font-family: var(--jdc-police-texte);
	font-weight: 700;
}

body.wp-child-theme-colormag-child :is(h1, .cm-entry-title) {
	text-wrap: balance;
}

body.wp-child-theme-colormag-child :is(h2, h3) {
	text-wrap: pretty;
}

body.wp-child-theme-colormag-child .cm-entry-summary p {
	text-wrap: pretty;
}

body.wp-child-theme-colormag-child,
body.wp-child-theme-colormag-child .cm-content {
	background-color: var(--jdc-fond);
}

body.wp-child-theme-colormag-child .cm-content {
	padding-top: 32px;
	padding-bottom: 64px;
}

/* =========================================================================
   3. En-tête et menu : barre blanche éditoriale, onglet actif en arc-en-ciel
   ========================================================================= */
body.wp-child-theme-colormag-child .cm-main-header,
body.wp-child-theme-colormag-child .cm-header-1 {
	background: var(--jdc-surface);
}

body.wp-child-theme-colormag-child #cm-primary-nav,
body.wp-child-theme-colormag-child #cm-primary-nav .cm-row,
body.wp-child-theme-colormag-child #cm-primary-nav .cm-home-icon {
	background: var(--jdc-surface) !important;
	border-top: 0 !important;
}

body.wp-child-theme-colormag-child #cm-primary-nav {
	border-top: 1px solid var(--jdc-bordure) !important;
	border-bottom: 1px solid var(--jdc-bordure);
	box-shadow: 0 10px 24px -20px rgba(42, 38, 51, 0.35);
}

body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li > a {
	position: relative;
	color: var(--jdc-encre);
	font-family: var(--jdc-police-texte);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
	background: transparent;
}

body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li,
body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li:hover {
	background: transparent;
}

body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li > a:hover,
body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li:is(.current-menu-item, .current-post-ancestor, .current-menu-ancestor, .current-menu-parent) > a {
	color: var(--jdc-framboise);
}

/* Icônes (accueil, hasard, recherche, menu) en encre */
body.wp-child-theme-colormag-child #cm-primary-nav svg {
	fill: var(--jdc-encre);
}

body.wp-child-theme-colormag-child #cm-primary-nav :is(.fa, .search-top, .cm-menu-toggle) {
	color: var(--jdc-encre);
}

body.wp-child-theme-colormag-child #cm-primary-nav :is(.cm-home-icon a, .cm-random-post a, .search-top):hover {
	background: var(--jdc-sapin-clair);
	border-radius: 12px;
}

body.wp-child-theme-colormag-child #cm-primary-nav .cm-home-icon.front_page_on {
	background: transparent !important;
}

@media (min-width: 769px) {
	body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li > a::after {
		content: "";
		position: absolute;
		left: 50%;
		right: 50%;
		bottom: 2px;
		height: 3px;
		border-radius: 3px;
		background: var(--jdc-arc);
		transition: left 0.2s ease, right 0.2s ease;
	}

	body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li:hover > a::after,
	body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li:is(.current-menu-item, .current-post-ancestor, .current-menu-ancestor, .current-menu-parent) > a::after {
		left: 14px;
		right: 14px;
	}
}

body.wp-child-theme-colormag-child #cm-primary-nav ul ul.sub-menu {
	border-radius: 0 0 12px 12px;
	overflow: hidden;
	box-shadow: var(--jdc-ombre-survol);
}

/* Recherche ouverte */
body.wp-child-theme-colormag-child .search-form-top {
	border-radius: 14px;
	box-shadow: var(--jdc-ombre-survol);
}

/* Menu mobile ouvert : liste blanche aérée (le parent et le customizer la mettent en anthracite) */
body.wp-child-theme-colormag-child #cm-primary-nav.cm-mobile-nav .cm-mobile-menu--open,
body.wp-child-theme-colormag-child #cm-primary-nav.cm-mobile-nav .cm-menu-primary-container {
	background: var(--jdc-surface) !important;
	padding: 0 !important;
}

body.wp-child-theme-colormag-child #cm-primary-nav.cm-mobile-nav li {
	background: var(--jdc-surface) !important;
	border-top: 1px solid var(--jdc-bordure);
}

body.wp-child-theme-colormag-child #cm-primary-nav.cm-mobile-nav li a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 12px 20px;
	color: var(--jdc-encre) !important;
	background: transparent !important;
	font-family: var(--jdc-police-texte);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

body.wp-child-theme-colormag-child #cm-primary-nav.cm-mobile-nav li a:hover,
body.wp-child-theme-colormag-child #cm-primary-nav.cm-mobile-nav li:is(.current-menu-item, .current-post-ancestor, .current-menu-parent) > a {
	background: var(--jdc-framboise-clair) !important;
	color: var(--jdc-framboise-fonce) !important;
	box-shadow: inset 4px 0 0 var(--jdc-framboise);
}

body.wp-child-theme-colormag-child #cm-primary-nav.cm-mobile-nav li a:focus-visible {
	outline-offset: -3px;
}

/* Mobile : en-tête compact. La bannière 728×90 y est illisible : masquée (et non téléchargée,
   voir inc/accessibilite.php). Le logo n'est pas modifié. */
body.wp-child-theme-colormag-child .cm-header-col-2 {
	display: none;
}

/* Sans la bannière, le logo (inchangé) est centré, façon titre de magazine */
body.wp-child-theme-colormag-child .cm-header-1 .cm-row {
	justify-content: center;
	padding: 14px 0 12px;
}

body.wp-child-theme-colormag-child .cm-header-1 .cm-header-col-1 {
	align-items: center;
}

@media (max-width: 767px) {

	body.wp-child-theme-colormag-child .cm-header-1 .cm-row {
		padding: 10px 0;
		gap: 0;
	}
}

/* =========================================================================
   4. Accueil : bandeau d'introduction (widget HTML)
   ========================================================================= */
body.wp-child-theme-colormag-child .custom-html-widget:has(> h1) {
	position: relative;
	background:
		radial-gradient(circle at 96% 8%, rgba(236, 41, 140, 0.1), transparent 32%),
		radial-gradient(circle at 84% 92%, rgba(248, 210, 37, 0.18), transparent 34%),
		radial-gradient(circle at 4% 100%, rgba(38, 190, 206, 0.1), transparent 30%),
		var(--jdc-sable);
	border-radius: 28px;
	padding: 52px 56px;
	margin-bottom: 48px;
}

body.wp-child-theme-colormag-child .custom-html-widget:has(> h1)::before {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: var(--jdc-arc);
	margin-bottom: 20px;
}

body.wp-child-theme-colormag-child .custom-html-widget > h1 {
	font-family: var(--jdc-police-titres) !important;
	font-size: 44px !important;
	font-weight: 500 !important;
	line-height: 1.12 !important;
	letter-spacing: -0.01em;
	color: var(--jdc-encre) !important;
	max-width: 780px;
	margin: 0 0 14px !important;
}

body.wp-child-theme-colormag-child .custom-html-widget > h1 + :is(h2, p) {
	font-family: var(--jdc-police-texte) !important;
	font-size: 19px !important;
	font-weight: 400 !important;
	line-height: 1.55 !important;
	color: var(--jdc-texte-2) !important;
	max-width: 620px;
	margin: 0 !important;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .custom-html-widget:has(> h1) {
		padding: 28px 22px;
		border-radius: 20px;
		margin-bottom: 36px;
	}

	body.wp-child-theme-colormag-child .custom-html-widget > h1 {
		font-size: 30px !important;
	}

	body.wp-child-theme-colormag-child .custom-html-widget > h1 + :is(h2, p) {
		font-size: 17px !important;
	}
}

body.wp-child-theme-colormag-child .jdc-themes {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

body.wp-child-theme-colormag-child .jdc-themes a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid var(--jdc-bordure);
	border-radius: 999px;
	color: var(--jdc-encre);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.wp-child-theme-colormag-child .jdc-themes a:hover {
	background: var(--jdc-sapin);
	border-color: var(--jdc-sapin);
	color: #fff;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .jdc-themes {
		gap: 8px;
		margin-top: 20px;
	}

	body.wp-child-theme-colormag-child .jdc-themes a {
		min-height: 40px;
		padding: 0 14px;
		font-size: 14px;
	}
}

/* =========================================================================
   5. Titres de rubrique (accueil) et en-tête des catégories
   ========================================================================= */
body.wp-child-theme-colormag-child .cm-widget-title,
body.wp-child-theme-colormag-child .cm-page-header .cm-page-title {
	border-bottom: 0 !important;
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-widget-title {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 12px 0 28px;
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-widget-title::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--jdc-bordure);
	transform: translateY(-5px);
}

body.wp-child-theme-colormag-child .cm-widget-title span,
body.wp-child-theme-colormag-child .cm-page-header .cm-page-title span {
	position: relative;
	display: inline-block;
	background: none !important;
	color: var(--jdc-encre) !important;
	font-family: var(--jdc-police-titres);
	font-size: 30px;
	font-weight: var(--jdc-poids-titres);
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none;
	padding: 0 0 10px;
	border-radius: 0;
}

/* Les titres de rubrique sont en capitales dans le HTML (« CONSEILS ») */
body.wp-child-theme-colormag-child .cm-featured-posts .cm-widget-title span {
	text-transform: lowercase;
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-widget-title span::first-letter {
	text-transform: uppercase;
}

body.wp-child-theme-colormag-child .cm-widget-title span::after,
body.wp-child-theme-colormag-child .cm-page-header .cm-page-title span::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 56px;
	height: 4px;
	border-radius: 4px;
	background: var(--jdc-arc);
}

body.wp-child-theme-colormag-child .cm-page-header {
	background: var(--jdc-sable);
	border-radius: 24px;
	padding: 32px 36px 28px;
	margin-bottom: 32px;
}

body.wp-child-theme-colormag-child .cm-page-header .cm-page-title {
	margin-bottom: 12px;
}

body.wp-child-theme-colormag-child .cm-page-header .cm-page-title span {
	font-size: 38px;
}

body.wp-child-theme-colormag-child .cm-page-header .taxonomy-description p {
	font-size: 18px;
	line-height: 1.6;
	color: var(--jdc-texte-2);
	max-width: 720px;
	margin: 0;
}

@media (max-width: 768px) {
	body.wp-child-theme-colormag-child .cm-widget-title span,
	body.wp-child-theme-colormag-child .cm-page-header .cm-page-title span {
		font-size: 25px;
	}

	body.wp-child-theme-colormag-child .cm-page-header {
		padding: 24px 20px;
		border-radius: 18px;
	}

	body.wp-child-theme-colormag-child .cm-page-header .taxonomy-description p {
		font-size: 16px;
	}
}

/* =========================================================================
   6. Étiquettes de catégorie et métadonnées
   ========================================================================= */
body.wp-child-theme-colormag-child .cm-post-categories a {
	background: var(--jdc-sapin-clair) !important;
	color: var(--jdc-sapin-fonce) !important;
	border-radius: 999px;
	font-family: var(--jdc-police-texte);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 5px 11px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

body.wp-child-theme-colormag-child .cm-post-categories a:hover {
	background: var(--jdc-sapin) !important;
	color: #fff !important;
}

body.wp-child-theme-colormag-child .cm-below-entry-meta,
body.wp-child-theme-colormag-child .cm-below-entry-meta a {
	color: var(--jdc-meta);
	font-size: 13px;
}

body.wp-child-theme-colormag-child .cm-below-entry-meta .cm-icon {
	fill: var(--jdc-meta);
}

/* =========================================================================
   7. Cartes d'articles (accueil, archives, recherche)
   ========================================================================= */
body.wp-child-theme-colormag-child .cm-featured-posts .cm-post,
body.wp-child-theme-colormag-child .cm-highlighted-posts .cm-post,
body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article {
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	border-radius: var(--jdc-rayon-carte);
	box-shadow: var(--jdc-ombre);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-post > a,
body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article .cm-featured-image {
	display: block;
	overflow: hidden;
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-post img,
body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article .cm-featured-image img {
	transition: transform 0.4s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	body.wp-child-theme-colormag-child .cm-featured-posts .cm-post:hover,
	body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article:hover {
		transform: translateY(-3px);
		box-shadow: var(--jdc-ombre-survol);
	}

	body.wp-child-theme-colormag-child .cm-featured-posts .cm-post:hover img,
	body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article:hover .cm-featured-image img {
		transform: scale(1.04);
	}
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-entry-title a,
body.wp-child-theme-colormag-child .cm-posts .cm-entry-title a {
	color: var(--jdc-encre);
	font-weight: var(--jdc-poids-titres);
	line-height: inherit;
	transition: color 0.15s ease;
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-post:hover .cm-entry-title a,
body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article:hover .cm-entry-title a {
	color: var(--jdc-framboise);
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-first-post .cm-entry-title {
	font-size: 24px;
	line-height: 1.25;
}

body.wp-child-theme-colormag-child .cm-featured-posts .cm-posts .cm-entry-title,
body.wp-child-theme-colormag-child .cm-featured-posts .cm-posts .cm-entry-title a {
	font-family: var(--jdc-police-texte);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article .cm-entry-title {
	font-size: 22px;
	line-height: 1.25;
}

/* Résumés des cartes (et seulement des cartes) */
body.wp-child-theme-colormag-child .cm-featured-posts .cm-entry-summary p,
body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article .cm-entry-summary p {
	color: var(--jdc-texte-2);
	font-size: 16px;
	line-height: 1.6;
}

@media (max-width: 768px) {
	body.wp-child-theme-colormag-child .cm-featured-posts .cm-first-post .cm-entry-title {
		font-size: 22px;
	}

	body.wp-child-theme-colormag-child .cm-featured-posts .cm-posts .cm-entry-title {
		font-size: 16px;
	}
}

/* Bouton « Lire la suite » : un seul bouton (le parent ajoute un span bleu à l'intérieur) */
body.wp-child-theme-colormag-child .cm-entry-button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 22px;
}

body.wp-child-theme-colormag-child .cm-entry-button span {
	background: none !important;
	padding: 0;
	border-radius: 0;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

/* Pagination */
body.wp-child-theme-colormag-child .pagination .page-numbers,
body.wp-child-theme-colormag-child .default-wp-page a {
	border-radius: 999px;
	min-width: 40px;
	text-align: center;
}

/* =========================================================================
   8. Article et page : feuille blanche, colonne de lecture, hiérarchie
   ========================================================================= */
body.wp-child-theme-colormag-child.single .cm-posts > article,
body.wp-child-theme-colormag-child.page:not(.home) .cm-primary article {
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	border-radius: 28px;
	box-shadow: var(--jdc-ombre);
	padding: 48px 32px 56px;
}

body.wp-child-theme-colormag-child:is(.single, .page:not(.home)) article > .cm-post-content {
	padding: 0;
}

body.wp-child-theme-colormag-child:is(.single, .page:not(.home)) :is(.cm-entry-summary, .cm-entry-header, .cm-entry-header-meta, .cm-below-entry-meta, .cm-featured-image, .jdc-ariane) {
	max-width: var(--jdc-mesure);
	margin-left: auto;
	margin-right: auto;
}

/* Image d'en-tête : largeur du texte, recadrée en 16/9 */
body.wp-child-theme-colormag-child.single .cm-featured-image {
	margin-bottom: 28px;
	border-radius: var(--jdc-rayon-carte);
}

body.wp-child-theme-colormag-child.single .cm-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--jdc-rayon-carte);
}

body.wp-child-theme-colormag-child:is(.single, .page:not(.home)) h1.cm-entry-title {
	font-size: 44px;
	line-height: 1.12;
	letter-spacing: -0.01em;
	color: var(--jdc-encre);
	margin: 8px 0 14px;
}

body.wp-child-theme-colormag-child.single .cm-below-entry-meta {
	padding-bottom: 20px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--jdc-bordure);
}

body.wp-child-theme-colormag-child.single .cm-below-entry-meta,
body.wp-child-theme-colormag-child.single .cm-below-entry-meta a {
	font-size: 14px;
}

/* Texte */
body.wp-child-theme-colormag-child .cm-entry-summary :is(p, li) {
	font-size: 18px;
	line-height: 1.72;
	color: var(--jdc-encre);
}

body.wp-child-theme-colormag-child .cm-entry-summary strong {
	color: var(--jdc-encre);
	font-weight: 700;
}

body.wp-child-theme-colormag-child .cm-entry-summary h2 {
	font-size: 30px;
	line-height: 1.25;
	color: var(--jdc-sapin-fonce);
	margin: 52px 0 16px;
}

body.wp-child-theme-colormag-child .cm-entry-summary h3 {
	font-size: 22px;
	line-height: 1.35;
	color: var(--jdc-encre);
	margin: 36px 0 12px;
}

body.wp-child-theme-colormag-child .cm-entry-summary h4 {
	font-size: 19px;
	line-height: 1.4;
	margin: 28px 0 10px;
}

body.wp-child-theme-colormag-child .cm-entry-summary li::marker {
	color: var(--jdc-framboise);
}

/* Liens du texte : sapin (le customizer impose sinon un vert vif) */
body.wp-child-theme-colormag-child .cm-entry-summary a:not(.wp-block-button__link):not(.jdc-bouton) {
	color: var(--jdc-sapin);
	text-decoration: underline;
	text-decoration-color: rgba(29, 107, 99, 0.35);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

body.wp-child-theme-colormag-child .cm-entry-summary a:not(.wp-block-button__link):not(.jdc-bouton):hover {
	color: var(--jdc-framboise);
	text-decoration-color: currentColor;
}

/* Titres liés (anciens encadrés produits) : couleur du titre */
body.wp-child-theme-colormag-child .cm-entry-summary :is(h2, h3) a:not(.wp-block-button__link):not(.jdc-bouton) {
	color: inherit;
	text-decoration: none;
}

body.wp-child-theme-colormag-child .cm-entry-summary img,
body.wp-child-theme-colormag-child .cm-featured-image img {
	border-radius: var(--jdc-rayon);
}

/* Citations : le customizer leur met un aplat de couleur */
body.wp-child-theme-colormag-child .cm-entry-summary :is(blockquote, .wp-block-quote) {
	background: var(--jdc-framboise-clair);
	border: 0;
	border-left: 4px solid var(--jdc-framboise);
	border-radius: 0 var(--jdc-rayon) var(--jdc-rayon) 0;
	padding: 18px 24px;
	margin: 28px 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary blockquote p {
	font-style: italic;
	margin-bottom: 0;
}

/* Tableaux */
body.wp-child-theme-colormag-child .cm-entry-summary table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	border: 1px solid var(--jdc-bordure);
	border-radius: var(--jdc-rayon);
	overflow: hidden;
	font-size: 16px;
	line-height: 1.5;
	margin: 28px 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary :is(th, td) {
	border: 0;
	border-bottom: 1px solid var(--jdc-bordure);
	padding: 12px 16px;
	text-align: left;
	vertical-align: top;
	font-size: 16px;
}

body.wp-child-theme-colormag-child .cm-entry-summary :is(th, thead td) {
	background: var(--jdc-sapin-clair);
	color: var(--jdc-sapin-fonce);
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary tbody tr:nth-child(even) td {
	background: #fcfaf7;
}

body.wp-child-theme-colormag-child .cm-entry-summary tr:last-child td {
	border-bottom: 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 28px 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-table table {
	margin: 0;
}

/* Mobile : article bord à bord (350 px de texte au lieu de 280), titres resserrés */
@media (max-width: 768px) {
	body.wp-child-theme-colormag-child:is(.single, .page:not(.home)) h1.cm-entry-title {
		font-size: 30px;
		line-height: 1.15;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary :is(p, li) {
		font-size: 17px;
		line-height: 1.68;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary h2 {
		font-size: 25px;
		margin-top: 44px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary h3,
	body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-columns h3[style*="font-size"] {
		font-size: 20px !important;
	}
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .cm-content {
		padding-top: 12px;
		padding-bottom: 32px;
	}

	body.wp-child-theme-colormag-child.single .cm-posts > article,
	body.wp-child-theme-colormag-child.page:not(.home) .cm-primary article {
		margin-left: -16px;
		margin-right: -16px;
		padding: 20px 20px 36px;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
		box-shadow: none;
	}

	body.wp-child-theme-colormag-child.single .cm-featured-image,
	body.wp-child-theme-colormag-child.single .cm-featured-image img {
		border-radius: 16px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary :is(ul, ol) {
		padding-left: 22px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary table {
		font-size: 15px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary :is(th, td) {
		min-width: 120px;
		padding: 10px 12px;
		font-size: 15px;
		line-height: 1.45;
	}
}

/* Barre de progression de lecture (navigateurs récents, sans JavaScript) */
@supports (animation-timeline: scroll()) {
	@keyframes jdc-progression {
		from {
			transform: scaleX(0);
		}

		to {
			transform: scaleX(1);
		}
	}

	body.single-post::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		height: 4px;
		z-index: 100000;
		background: var(--jdc-arc);
		transform-origin: 0 50%;
		animation: jdc-progression linear both;
		animation-timeline: scroll(root);
	}
}

/* =========================================================================
   9. Boutons et formulaires
   ========================================================================= */
body.wp-child-theme-colormag-child :is(.wp-block-button__link, .wp-element-button, .cm-entry-button, a.jdc-bouton) {
	background-color: var(--jdc-framboise) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 999px;
	font-family: var(--jdc-police-texte);
	font-weight: 700;
	text-decoration: none !important;
	box-shadow: 0 8px 18px -10px rgba(143, 33, 73, 0.55);
	transition: background-color 0.15s ease, transform 0.15s ease;
}

body.wp-child-theme-colormag-child :is(.wp-block-button__link, .wp-element-button, .cm-entry-button, a.jdc-bouton):hover {
	background-color: var(--jdc-framboise-fonce) !important;
}

body.wp-child-theme-colormag-child .wp-block-button__link :is(mark, .has-black-color) {
	color: #fff !important;
	background: transparent !important;
}

body.wp-child-theme-colormag-child :is(input[type="search"], input[type="text"], input[type="email"], textarea) {
	border: 1px solid var(--jdc-bordure);
	border-radius: 12px;
	padding: 10px 14px;
}

body.wp-child-theme-colormag-child :is(.search-form button, .search-form-top button, input[type="submit"]) {
	background-color: var(--jdc-framboise);
	border-radius: 12px;
}

/* =========================================================================
   10. Haut d'article : ligne de confiance, mention d'affiliation, « L'essentiel »
   ========================================================================= */
body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mise-a-jour {
	margin: 0 0 14px;
	color: var(--jdc-meta);
	font-size: 14px !important;
	line-height: 1.5 !important;
}

body.wp-child-theme-colormag-child .jdc-mise-a-jour .jdc-meta-maj {
	color: var(--jdc-sapin-fonce);
	font-weight: 700;
}

body.wp-child-theme-colormag-child .jdc-mise-a-jour .jdc-meta-maj::before {
	content: "✓";
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	margin-right: 6px;
	vertical-align: 1px;
	border-radius: 50%;
	background: var(--jdc-sapin-clair);
	font-size: 11px;
	font-weight: 700;
}

body.wp-child-theme-colormag-child .jdc-mise-a-jour .jdc-meta-sep {
	margin: 0 10px;
	color: #c9c1cc;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-mise-a-jour a.jdc-meta-sources {
	color: var(--jdc-sapin-fonce);
	font-weight: 700;
	text-decoration-thickness: 1px;
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mention-affiliation {
	position: relative;
	margin: 0 0 28px;
	padding: 10px 14px 10px 42px;
	background: var(--jdc-sable);
	border: 0;
	border-radius: 12px;
	color: var(--jdc-meta);
	font-size: 14px !important;
	line-height: 1.5 !important;
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mention-affiliation::before {
	content: "i";
	position: absolute;
	left: 14px;
	top: 12px;
	display: grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--jdc-meta);
	color: #fff;
	font: 700 12px/1 var(--jdc-police-texte);
}

/* Chapô : premier paragraphe du texte */
body.wp-child-theme-colormag-child.single .cm-entry-summary .jdc-mise-a-jour + p:not(.jdc-mention-affiliation) {
	font-size: 20px;
	line-height: 1.65;
	color: var(--jdc-texte-2);
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mention-affiliation {
		font-size: 13px !important;
		margin-bottom: 22px;
	}

	body.wp-child-theme-colormag-child.single .cm-entry-summary .jdc-mise-a-jour + p:not(.jdc-mention-affiliation) {
		font-size: 18px;
	}
}

/* Bloc « À retenir » et « L'essentiel en bref » (scripts/apply_enrichment.py) */
body.wp-child-theme-colormag-child .jdc-a-retenir {
	position: relative;
	overflow: hidden;
	background: var(--jdc-soleil-clair);
	border: 1px solid #f3e2b5;
	border-radius: var(--jdc-rayon-carte);
	padding: 28px 28px 22px;
	margin: 32px 0;
}

body.wp-child-theme-colormag-child .jdc-a-retenir > :first-child {
	margin-top: 0;
}

body.wp-child-theme-colormag-child .jdc-a-retenir::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--jdc-arc);
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-a-retenir h2 {
	font-size: 22px;
	color: var(--jdc-ambre);
	margin: 0 0 12px;
}

body.wp-child-theme-colormag-child .jdc-a-retenir ul {
	margin: 0;
	padding-left: 20px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-a-retenir li {
	font-size: 17px;
	line-height: 1.6;
	margin-bottom: 6px;
}

body.wp-child-theme-colormag-child .jdc-a-retenir li::marker {
	color: var(--jdc-ambre);
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .jdc-a-retenir {
		padding: 22px 16px 16px;
		margin: 24px 0;
		border-radius: 16px;
	}

	body.wp-child-theme-colormag-child .jdc-a-retenir ul {
		padding-left: 18px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary .jdc-a-retenir li {
		font-size: 16px;
		line-height: 1.55;
	}
}

/* Sommaire repliable (inc/sommaire.php) */
body.wp-child-theme-colormag-child .jdc-sommaire {
	margin: 28px 0 8px;
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	border-radius: var(--jdc-rayon);
}

body.wp-child-theme-colormag-child .jdc-sommaire summary {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 52px;
	padding: 12px 18px;
	cursor: pointer;
	list-style: none;
	font-family: var(--jdc-police-titres);
	font-size: 19px;
	font-weight: var(--jdc-poids-titres);
	color: var(--jdc-encre);
}

body.wp-child-theme-colormag-child .jdc-sommaire summary::-webkit-details-marker {
	display: none;
}

body.wp-child-theme-colormag-child .jdc-sommaire .jdc-sommaire-nombre {
	color: var(--jdc-meta);
	font-family: var(--jdc-police-texte);
	font-size: 14px;
	font-weight: 400;
}

body.wp-child-theme-colormag-child .jdc-sommaire summary::after {
	content: "";
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-right: 2px solid var(--jdc-sapin);
	border-bottom: 2px solid var(--jdc-sapin);
	transform: rotate(45deg) translateY(-3px);
	transition: transform 0.2s ease;
}

body.wp-child-theme-colormag-child .jdc-sommaire details[open] summary::after {
	transform: rotate(-135deg) translateY(-3px);
}

body.wp-child-theme-colormag-child .jdc-sommaire ol {
	margin: 0;
	padding: 4px 18px 14px 42px;
	border-top: 1px solid var(--jdc-bordure);
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-sommaire li {
	font-size: 16px;
	line-height: 1.4;
	margin: 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-sommaire li a {
	display: block;
	padding: 7px 0;
	color: var(--jdc-encre);
	text-decoration: none;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-sommaire li a:hover {
	color: var(--jdc-framboise);
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-rank-math-toc-block {
	display: none;
	margin: 28px 0 8px;
	padding: 16px 20px 10px;
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	border-radius: var(--jdc-rayon);
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-rank-math-toc-block::before {
	content: "Sommaire";
	display: block;
	margin-bottom: 6px;
	font-family: var(--jdc-police-titres);
	font-size: 19px;
	font-weight: var(--jdc-poids-titres);
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-rank-math-toc-block ul {
	margin: 0;
	padding-left: 20px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-rank-math-toc-block li {
	font-size: 16px;
	line-height: 1.4;
	margin: 0 0 6px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-rank-math-toc-block a {
	color: var(--jdc-encre);
	text-decoration: none;
}

/* =========================================================================
   11. Encadré produit : <div class="jdc-produit"> <a><img></a>
   <div> .jdc-badge, .jdc-produit-titre, accroche, ul.jdc-points, a.jdc-bouton </div> </div>
   Conforme Amazon Partenaires : ni prix, ni étoiles, ni avis.
   ========================================================================= */
body.wp-child-theme-colormag-child .jdc-produit {
	position: relative;
	display: grid;
	grid-template-columns: 168px minmax(0, 1fr);
	column-gap: 24px;
	align-items: start;
	margin: 40px 0 36px;
	padding: 28px 24px 22px;
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	border-radius: var(--jdc-rayon-carte);
	box-shadow: var(--jdc-ombre);
	text-align: left;
	transition: box-shadow 0.2s ease;
}

body.wp-child-theme-colormag-child .jdc-produit:hover {
	box-shadow: var(--jdc-ombre-survol);
}

body.wp-child-theme-colormag-child .jdc-produit > a:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 10px;
	background: #fff;
	border: 1px solid var(--jdc-bordure);
	border-radius: 14px;
	text-decoration: none;
}

body.wp-child-theme-colormag-child .jdc-produit img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 0;
}

body.wp-child-theme-colormag-child .jdc-produit > div {
	grid-column: 2;
	min-width: 0;
}

/* Étiquette posée sur la bordure supérieure */
body.wp-child-theme-colormag-child .jdc-produit .jdc-badge {
	position: absolute;
	top: -13px;
	left: 20px;
	margin: 0;
	padding: 3px 12px;
	background: var(--jdc-framboise-clair);
	border: 1px solid #f1cfdc;
	border-radius: 999px;
	color: var(--jdc-framboise-fonce);
	font-family: var(--jdc-police-texte);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 18px;
	text-transform: uppercase;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit .jdc-produit-titre {
	margin: 0 0 6px;
	font-family: var(--jdc-police-titres);
	font-size: 21px !important;
	font-weight: var(--jdc-poids-titres);
	line-height: 1.3;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit .jdc-produit-titre a {
	color: var(--jdc-encre);
	text-decoration: none;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit .jdc-produit-titre a:hover {
	color: var(--jdc-framboise);
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit p:not(.jdc-produit-titre) {
	margin: 0 0 12px;
	color: var(--jdc-texte-2);
	font-size: 16px !important;
	line-height: 1.55;
}

body.wp-child-theme-colormag-child .jdc-produit p:empty {
	display: none;
}

body.wp-child-theme-colormag-child .jdc-produit .jdc-points {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit .jdc-points li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 28px;
	font-size: 15.5px;
	line-height: 1.5;
}

body.wp-child-theme-colormag-child .jdc-produit .jdc-points li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 2px;
	display: grid;
	place-items: center;
	width: 19px;
	height: 19px;
	border-radius: 50%;
	background: var(--jdc-sapin-clair);
	color: var(--jdc-sapin-fonce);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

/* Bouton d'achat (nouveaux et anciens encadrés) */
body.wp-child-theme-colormag-child a.jdc-bouton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 26px;
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
}

/* Icône « s'ouvre sur un autre site » */
body.wp-child-theme-colormag-child a.jdc-bouton::after {
	content: "";
	flex: none;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 10 14'/%3E%3Cpath d='M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	body.wp-child-theme-colormag-child a.jdc-bouton:hover {
		transform: translateY(-1px);
	}
}

/* Rappel de l'affiliation au moment du clic */
body.wp-child-theme-colormag-child .jdc-produit::after {
	content: "Lien affilié : prix et disponibilité sur Amazon.";
	grid-column: 2;
	margin-top: 8px;
	color: var(--jdc-meta);
	font-size: 13px;
	line-height: 1.4;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .jdc-produit {
		grid-template-columns: 96px minmax(0, 1fr);
		column-gap: 14px;
		align-items: center;
		margin: 36px 0 32px;
		padding: 24px 16px 16px;
	}

	/* Les enfants du <div> deviennent des cellules de la grille */
	body.wp-child-theme-colormag-child .jdc-produit > div {
		display: contents;
	}

	body.wp-child-theme-colormag-child .jdc-produit > a:first-child {
		grid-column: 1;
		grid-row: 1;
		padding: 6px;
		border-radius: 12px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit .jdc-produit-titre {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		font-size: 18px !important;
	}

	body.wp-child-theme-colormag-child .jdc-produit :is(p:not(.jdc-produit-titre), .jdc-points, a.jdc-bouton),
	body.wp-child-theme-colormag-child .jdc-produit::after {
		grid-column: 1 / -1;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit p:not(.jdc-produit-titre) {
		margin-top: 14px;
		font-size: 15.5px !important;
	}

	body.wp-child-theme-colormag-child .jdc-produit a.jdc-bouton {
		display: flex;
		width: 100%;
	}

	body.wp-child-theme-colormag-child .jdc-produit::after {
		text-align: center;
	}
}

/* Anciens espaceurs Gutenberg collés aux encadrés */
body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-spacer:has(+ .jdc-produit) {
	display: none;
}

/* Anciens encadrés (inc/encadres-anciens.php) : même allure que .jdc-produit */
body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien {
	gap: 24px;
	align-items: center !important;
	margin: 36px 0 0 !important;
	padding: 24px 24px 8px;
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	border-bottom: 0;
	border-radius: var(--jdc-rayon-carte) var(--jdc-rayon-carte) 0 0 !important;
}

/* Émojis (WordPress les remplace par de petites images) : taille du texte */
body.wp-child-theme-colormag-child .cm-entry-summary img:is(.emoji, .wp-smiley, [src*="/emoji/"]) {
	display: inline !important;
	width: 1em !important;
	height: 1em !important;
	max-height: none;
	margin: 0 0.15em 0 0 !important;
	vertical-align: -0.1em;
	border-radius: 0;
	box-shadow: none;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien img:not(.emoji):not(.wp-smiley) {
	max-height: 220px;
	width: auto !important;
	height: auto !important;
	object-fit: contain;
	border-radius: 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien h3 {
	margin: 0 0 10px;
	font-family: var(--jdc-police-titres);
	font-size: 21px !important;
	font-weight: var(--jdc-poids-titres);
	line-height: 1.3;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien p {
	margin: 0 0 6px;
	color: var(--jdc-texte-2);
	font-size: 15.5px;
	line-height: 1.5;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien p strong {
	color: var(--jdc-texte-2);
	font-weight: 700;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien + .jdc-boutons-ancien,
body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien + .wp-block-spacer + .jdc-boutons-ancien {
	margin: 0 0 36px !important;
	padding: 12px 24px 24px;
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	border-top: 0;
	border-radius: 0 0 var(--jdc-rayon-carte) var(--jdc-rayon-carte);
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien + .wp-block-spacer {
	display: none;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-boutons-ancien .wp-block-button {
	width: auto !important;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-boutons-ancien::after {
	content: "Lien affilié : prix et disponibilité sur Amazon.";
	flex-basis: 100%;
	margin-top: 4px;
	color: var(--jdc-meta);
	font-size: 13px;
	text-align: center;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien {
		padding: 18px 16px 4px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien img:not(.emoji):not(.wp-smiley) {
		max-height: 160px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit-ancien + .jdc-boutons-ancien {
		padding: 8px 16px 18px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary .jdc-boutons-ancien :is(.wp-block-button, a.jdc-bouton) {
		width: 100% !important;
	}
}

/* Anciens bandeaux « tranche d'âge » (blocs Couverture vert fluo) : intertitre doux */
body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-cover.is-light {
	min-height: 0 !important;
	margin: 36px 0 12px;
	padding: 12px 18px !important;
	border-radius: 12px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-cover.is-light .wp-block-cover__background {
	background-color: var(--jdc-sapin-clair) !important;
	opacity: 1 !important;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-cover.is-light p {
	margin: 0;
	color: var(--jdc-sapin-fonce) !important;
	font-size: 16px;
	font-weight: 700;
	text-align: left !important;
}

/* =========================================================================
   12. Fin d'article : « À lire aussi », FAQ, sources, autrice, articles liés
   ========================================================================= */
body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-lire-aussi {
	position: relative;
	margin: 24px 0;
	padding: 12px 16px 12px 44px;
	background: var(--jdc-sapin-clair);
	border-radius: 12px;
	color: var(--jdc-sapin-fonce);
	font-size: 16px;
	line-height: 1.55;
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-lire-aussi::before {
	content: "→";
	position: absolute;
	left: 16px;
	top: 11px;
	font-weight: 700;
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-lire-aussi a {
	color: var(--jdc-sapin-fonce);
	font-weight: 700;
}

body.wp-child-theme-colormag-child .jdc-lire-aussi-liste {
	margin: 40px 0 0;
	padding: 22px 24px;
	border: 1px solid var(--jdc-bordure);
	border-radius: 16px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-lire-aussi-liste h2 {
	margin: 0 0 8px;
	font-size: 22px;
}

body.wp-child-theme-colormag-child .jdc-lire-aussi-liste ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-lire-aussi-liste li {
	padding: 9px 0;
	border-top: 1px solid var(--jdc-bordure);
	font-size: 17px;
}

body.wp-child-theme-colormag-child .jdc-lire-aussi-liste li:first-child {
	border-top: 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-lire-aussi-liste a {
	color: var(--jdc-encre);
	font-weight: 700;
	text-decoration: none;
}

body.wp-child-theme-colormag-child .jdc-lire-aussi-liste a::after {
	content: " →";
	color: var(--jdc-framboise);
}

/* Questions fréquentes */
body.wp-child-theme-colormag-child .jdc-faq .jdc-faq-item {
	margin: 0 0 12px;
	padding: 18px 20px;
	background: var(--jdc-fond);
	border: 1px solid var(--jdc-bordure);
	border-radius: 16px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-faq .jdc-faq-item h3 {
	position: relative;
	margin: 0 0 8px;
	padding-left: 34px;
	font-size: 18px;
	line-height: 1.4;
}

body.wp-child-theme-colormag-child .jdc-faq .jdc-faq-item h3::before {
	content: "?";
	position: absolute;
	left: 0;
	top: 1px;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--jdc-sapin-clair);
	color: var(--jdc-sapin-fonce);
	font-size: 14px;
	font-weight: 700;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-faq .jdc-faq-item p {
	margin: 0 0 8px;
	padding-left: 34px;
	font-size: 16.5px;
	line-height: 1.65;
}

body.wp-child-theme-colormag-child .jdc-faq .jdc-faq-item > :last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .jdc-faq .jdc-faq-item {
		padding: 16px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary .jdc-faq .jdc-faq-item p {
		padding-left: 0;
	}
}

/* Sources */
body.wp-child-theme-colormag-child .jdc-sources {
	margin: 48px 0 0;
	padding: 22px 24px;
	background: var(--jdc-fond);
	border: 1px solid var(--jdc-bordure);
	border-radius: 16px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-sources h2 {
	margin: 0 0 4px;
	font-size: 22px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-sources p.jdc-sources-note {
	margin: 0 0 12px;
	color: var(--jdc-meta);
	font-size: 14px;
	line-height: 1.5;
}

body.wp-child-theme-colormag-child .jdc-sources ul {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: jdc-source;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-sources li {
	position: relative;
	padding: 9px 0 9px 32px;
	border-top: 1px solid var(--jdc-bordure);
	font-size: 15px;
	line-height: 1.5;
	counter-increment: jdc-source;
}

body.wp-child-theme-colormag-child .jdc-sources li::before {
	content: counter(jdc-source);
	position: absolute;
	left: 0;
	top: 10px;
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--jdc-bordure);
	color: var(--jdc-meta);
	font-size: 12px;
	font-weight: 700;
}

body.wp-child-theme-colormag-child .jdc-sources a {
	overflow-wrap: anywhere;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .jdc-sources {
		padding: 18px 16px;
	}
}

/* Fil d'Ariane (inc/confiance.php) */
body.wp-child-theme-colormag-child .jdc-ariane {
	margin-bottom: 16px;
}

body.wp-child-theme-colormag-child .jdc-ariane p {
	margin: 0;
	overflow: hidden;
	color: var(--jdc-meta);
	font-size: 14px;
	line-height: 24px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.wp-child-theme-colormag-child .jdc-ariane a {
	color: var(--jdc-sapin-fonce);
	font-weight: 700;
	text-decoration: none;
}

body.wp-child-theme-colormag-child .jdc-ariane a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.wp-child-theme-colormag-child .jdc-ariane .separator {
	margin: 0 4px;
	color: #b9b1c4;
}

/* Boîte « Écrit par » (inc/confiance.php) */
body.wp-child-theme-colormag-child .jdc-auteur {
	position: relative;
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 18px;
	max-width: var(--jdc-mesure);
	margin: 48px auto 0;
	padding: 26px 24px 24px;
	background: var(--jdc-sable);
	border-radius: var(--jdc-rayon-carte);
	overflow: hidden;
}

body.wp-child-theme-colormag-child .jdc-auteur::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--jdc-arc);
}

body.wp-child-theme-colormag-child .jdc-auteur-initiale {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--jdc-framboise);
	color: #fff;
	font: 500 30px/1 var(--jdc-police-titres);
}

body.wp-child-theme-colormag-child .jdc-auteur p {
	margin: 0 0 6px;
	font-size: 16px;
	line-height: 1.6;
}

body.wp-child-theme-colormag-child .jdc-auteur p.jdc-auteur-surtitre {
	margin: 0;
	color: var(--jdc-meta);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.wp-child-theme-colormag-child .jdc-auteur p.jdc-auteur-nom {
	font: 500 22px/1.3 var(--jdc-police-titres);
}

body.wp-child-theme-colormag-child .jdc-auteur-nom a {
	color: var(--jdc-encre);
	text-decoration: none;
}

body.wp-child-theme-colormag-child .jdc-auteur p.jdc-auteur-bio {
	color: var(--jdc-texte-2);
}

body.wp-child-theme-colormag-child .jdc-auteur p.jdc-auteur-liens {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 18px;
	margin-top: 10px;
}

body.wp-child-theme-colormag-child .jdc-auteur-liens a {
	color: var(--jdc-sapin);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-color: rgba(29, 107, 99, 0.35);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

body.wp-child-theme-colormag-child .jdc-auteur p.jdc-avertissement {
	margin: 14px 0 0;
	padding-top: 12px;
	border-top: 1px dashed #dccfc0;
	color: var(--jdc-meta);
	font-size: 14px;
	line-height: 1.5;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .jdc-auteur {
		grid-template-columns: 48px minmax(0, 1fr);
		gap: 14px;
		margin-top: 36px;
		padding: 22px 16px 18px;
	}

	body.wp-child-theme-colormag-child .jdc-auteur-initiale {
		width: 48px;
		height: 48px;
		font-size: 24px;
	}
}

/* Articles liés « Sur le même thème » (ColorMag) */
body.wp-child-theme-colormag-child .related-posts-wrapper {
	margin-top: 48px;
}

body.wp-child-theme-colormag-child .related-posts-main-title {
	margin-bottom: 20px;
}

body.wp-child-theme-colormag-child .related-posts-main-title .fa {
	display: none;
}

body.wp-child-theme-colormag-child .related-posts-main-title span {
	padding-left: 0;
	font: 500 28px/1.25 var(--jdc-police-titres);
	color: var(--jdc-encre);
}

body.wp-child-theme-colormag-child .related-posts-wrapper .related-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

body.wp-child-theme-colormag-child .single-related-posts {
	width: auto;
	margin: 0;
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	border-radius: var(--jdc-rayon-carte);
	box-shadow: var(--jdc-ombre);
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

body.wp-child-theme-colormag-child .single-related-posts:hover {
	box-shadow: var(--jdc-ombre-survol);
}

body.wp-child-theme-colormag-child .single-related-posts img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
}

body.wp-child-theme-colormag-child .single-related-posts .cm-post-content {
	padding: 14px 16px 18px;
}

body.wp-child-theme-colormag-child .single-related-posts .cm-entry-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}

body.wp-child-theme-colormag-child .single-related-posts .cm-entry-title a {
	color: var(--jdc-encre);
}

body.wp-child-theme-colormag-child .single-related-posts:hover .cm-entry-title a {
	color: var(--jdc-framboise);
}

/* Dates de publication anciennes sans la date de mise à jour : signal trompeur */
body.wp-child-theme-colormag-child .single-related-posts .cm-below-entry-meta {
	display: none;
}

@media (max-width: 768px) {
	body.wp-child-theme-colormag-child .related-posts-wrapper .related-posts {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	body.wp-child-theme-colormag-child .single-related-posts {
		display: grid;
		grid-template-columns: 112px minmax(0, 1fr);
		align-items: center;
	}

	body.wp-child-theme-colormag-child .single-related-posts img {
		height: 100%;
		aspect-ratio: 1 / 1;
	}

	body.wp-child-theme-colormag-child .single-related-posts .cm-entry-title {
		font-size: 17px;
	}
}

/* =========================================================================
   13. Pied de page : nuit aubergine, liseré arc-en-ciel
   ========================================================================= */
body.wp-child-theme-colormag-child .cm-footer {
	background: var(--jdc-nuit);
	margin-top: 0;
}

body.wp-child-theme-colormag-child .cm-footer::before {
	content: "";
	display: block;
	height: 4px;
	background: var(--jdc-arc);
}

body.wp-child-theme-colormag-child :is(.cm-footer-cols, .cm-footer .cm-upper-footer-cols .widget, .cm-footer-cols .widget) {
	background-color: transparent;
}

body.wp-child-theme-colormag-child .cm-footer-cols {
	padding-top: 32px;
}

@media (min-width: 769px) {
	body.wp-child-theme-colormag-child .cm-upper-footer-cols {
		display: grid;
		grid-template-columns: 1fr 2fr;
		gap: 56px;
	}

	body.wp-child-theme-colormag-child .cm-upper-footer-cols .cm-upper-footer-col {
		width: auto !important;
		float: none;
		margin: 0;
	}

	body.wp-child-theme-colormag-child .cm-upper-footer-col--2 .menu {
		columns: 2;
		column-gap: 40px;
	}
}

/* Colonnes vides */
body.wp-child-theme-colormag-child .cm-footer .cm-upper-footer-col:not(:has(.widget)),
body.wp-child-theme-colormag-child .cm-footer .cm-lower-footer-cols:not(:has(.widget)) {
	display: none;
}

body.wp-child-theme-colormag-child .cm-footer .widget_nav_menu li {
	border: 0;
	padding: 6px 0;
	break-inside: avoid;
}

body.wp-child-theme-colormag-child .cm-footer :is(a, li, p) {
	color: #d9d3e0;
	font-size: 16px;
}

body.wp-child-theme-colormag-child .cm-footer a:hover {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: #f6a8c8;
	text-underline-offset: 4px;
}

body.wp-child-theme-colormag-child .cm-footer :focus-visible {
	outline-color: #fff;
}

body.wp-child-theme-colormag-child .cm-footer-bar {
	background: rgba(0, 0, 0, 0.2);
}

body.wp-child-theme-colormag-child .cm-footer-bar .copyright a {
	color: #fff;
}

body.wp-child-theme-colormag-child .cm-footer-bar,
body.wp-child-theme-colormag-child .cm-footer-bar :is(a, p, span) {
	color: #b9b1c4;
	font-size: 13px;
}

@media (max-width: 768px) {
	body.wp-child-theme-colormag-child .cm-footer #menu-categories-menu-1 {
		columns: 2;
		column-gap: 24px;
	}
}

/* Bouton « haut de page » */
body.wp-child-theme-colormag-child #scroll-up {
	background-color: var(--jdc-framboise);
	border-radius: 50%;
	box-shadow: 0 8px 20px -8px rgba(143, 33, 73, 0.7);
}

body.wp-child-theme-colormag-child #scroll-up:hover {
	background-color: var(--jdc-framboise-fonce);
}

/* Écrans tactiles et mouvement réduit : pas d'effets de survol animés */
@media (prefers-reduced-motion: reduce) {
	body.wp-child-theme-colormag-child * {
		transition: none !important;
	}
}

/* =========================================================================
   14. Finitions (jury design, 2e passage)
   ========================================================================= */

/* Bandeau d'accueil : barre de confiance sous les thèmes */
body.wp-child-theme-colormag-child .custom-html-widget .jdc-confiance {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 22px 0 0;
	color: var(--jdc-texte-2);
	font-size: 14px;
	line-height: 1.5;
}

body.wp-child-theme-colormag-child .custom-html-widget .jdc-confiance span::before {
	content: "✓";
	margin-right: 6px;
	color: var(--jdc-sapin);
	font-weight: 700;
}

body.wp-child-theme-colormag-child .custom-html-widget .jdc-confiance a {
	color: var(--jdc-sapin);
	font-weight: 700;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .custom-html-widget:has(> h1)::before {
		margin-bottom: 14px;
	}

	body.wp-child-theme-colormag-child .custom-html-widget > h1 {
		font-size: 27px !important;
	}

	body.wp-child-theme-colormag-child .custom-html-widget .jdc-confiance {
		font-size: 13px;
	}
}

/* « Article au hasard » : gadget sans valeur pour le lecteur */
body.wp-child-theme-colormag-child #cm-primary-nav .cm-random-post {
	display: none;
}

/* Catégories : toute la carte est un lien, pas de bouton de lecture (le framboise reste
   la couleur de l'achat) ; image vedette sur toute la largeur de la carte */
body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts .cm-entry-button {
	display: none;
}

body.wp-child-theme-colormag-child:is(.archive, .search, .blog) .cm-posts > article .cm-featured-image img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0;
}

/* Ligne de confiance : pas de coupure à l'intérieur d'un élément */
body.wp-child-theme-colormag-child .jdc-mise-a-jour > * {
	white-space: nowrap;
}

/* Images d'illustration des articles : pleine largeur de la colonne */
body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-image {
	margin: 28px 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-image img:not(.emoji) {
	display: block;
	width: 100% !important;
	height: auto !important;
	margin: 0 auto;
}

/* Boîte « Écrit par » : largeur de la colonne, nom à côté de l'initiale sur mobile */
body.wp-child-theme-colormag-child .jdc-auteur {
	box-sizing: border-box;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .jdc-auteur {
		align-items: center;
	}

	body.wp-child-theme-colormag-child .jdc-auteur-texte {
		display: contents;
	}

	body.wp-child-theme-colormag-child .jdc-auteur :is(.jdc-auteur-bio, .jdc-auteur-liens, .jdc-avertissement) {
		grid-column: 1 / -1;
	}

	body.wp-child-theme-colormag-child .jdc-auteur :is(.jdc-auteur-surtitre, .jdc-auteur-nom) {
		grid-column: 2;
	}

	body.wp-child-theme-colormag-child .jdc-auteur-initiale {
		grid-row: 1 / span 2;
	}
}

/* =========================================================================
   15. Finitions (jury design, 3e passage)
   ========================================================================= */

/* Le bouton d'achat reste dans la carte, même en pleine largeur */
body.wp-child-theme-colormag-child a.jdc-bouton {
	box-sizing: border-box;
	max-width: 100%;
}

/* Anciens espaceurs Gutenberg : 30 à 100 px de vide entre les blocs */
body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-spacer {
	height: 8px !important;
}

/* Tableaux qui défilent : ombre sur le bord quand il reste du contenu à droite */
@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .cm-entry-summary table {
		background:
			linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0)) left / 32px 100% no-repeat local,
			linear-gradient(270deg, #fff 30%, rgba(255, 255, 255, 0)) right / 32px 100% no-repeat local,
			radial-gradient(farthest-side at 0 50%, rgba(42, 38, 51, 0.18), transparent) left / 12px 100% no-repeat scroll,
			radial-gradient(farthest-side at 100% 50%, rgba(42, 38, 51, 0.18), transparent) right / 12px 100% no-repeat scroll;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary tbody tr:nth-child(even) td {
		background: transparent;
	}

	/* Premier écran : image moins haute pour que la réponse remonte */
	body.wp-child-theme-colormag-child.single .cm-featured-image img {
		aspect-ratio: 2 / 1;
	}

	body.wp-child-theme-colormag-child.single .cm-featured-image {
		margin-bottom: 18px;
	}
}

/* Tableaux sur mobile : une carte par ligne, chaque valeur précédée de l'intitulé de sa colonne
   (data-label ajouté par inc/tableaux.php) */
@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] {
		display: block;
		overflow: visible;
		background: none;
		border: 0;
		border-radius: 0;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] :is(tbody, tr, td) {
		display: block;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] thead,
	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] tr:has(> th),
	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] tr[data-jdc-entete] {
		display: none;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] tr {
		margin: 0 0 10px;
		padding: 12px 14px;
		background: var(--jdc-fond);
		border: 1px solid var(--jdc-bordure);
		border-radius: 14px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] td {
		min-width: 0;
		padding: 3px 0;
		border: 0;
		background: none !important;
		font-size: 15.5px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] td:first-child {
		color: var(--jdc-sapin-fonce);
		font-weight: 700;
		font-size: 16.5px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary table[data-jdc-cartes] td:not(:first-child)[data-label]::before {
		content: attr(data-label) " : ";
		color: var(--jdc-meta);
		font-weight: 700;
	}

}

/* Ordinateur : bordure portée par le conteneur pour ne pas rogner le bord droit */
@media (min-width: 601px) {
	body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-table {
		border: 1px solid var(--jdc-bordure);
		border-radius: var(--jdc-rayon);
	}

	body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-table table {
		border: 0;
		border-radius: 0;
	}
}

/* Accueil mobile : introduction plus courte, thèmes sur une ligne qui défile */
@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .custom-html-widget:has(> h1) {
		padding: 22px 18px 20px;
		margin-bottom: 28px;
	}

	body.wp-child-theme-colormag-child .custom-html-widget > h1 {
		font-size: 24px !important;
		margin-bottom: 8px !important;
	}

	body.wp-child-theme-colormag-child .custom-html-widget > h1 + :is(h2, p) {
		font-size: 15.5px !important;
	}

	body.wp-child-theme-colormag-child .jdc-themes {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin: 16px -18px 0;
		padding: 0 18px 4px;
		scrollbar-width: none;
	}

	body.wp-child-theme-colormag-child .jdc-themes a {
		flex: none;
	}

	body.wp-child-theme-colormag-child .custom-html-widget .jdc-confiance {
		display: none;
	}
}

/* Icône « accueil » du menu : le logo y mène déjà (ordinateur) */
@media (min-width: 769px) {
	body.wp-child-theme-colormag-child #cm-primary-nav .cm-home-icon {
		display: none;
	}
}

/* Pied de page : colonne d'identité (widget « Le Jardin des Câlins ») en premier */
body.wp-child-theme-colormag-child .cm-footer .jdc-pied-identite p {
	max-width: 360px;
	margin: 0 0 12px;
	color: #d9d3e0;
	font-size: 15px;
	line-height: 1.6;
}

body.wp-child-theme-colormag-child .cm-footer .jdc-pied-identite .jdc-pied-titre {
	color: #fff;
	font: 500 24px/1.2 var(--jdc-police-titres);
}

body.wp-child-theme-colormag-child .cm-footer .jdc-pied-identite .jdc-pied-titre::after {
	content: "";
	display: block;
	width: 48px;
	height: 3px;
	margin-top: 12px;
	border-radius: 3px;
	background: var(--jdc-arc);
}

@media (min-width: 769px) {
	body.wp-child-theme-colormag-child .cm-upper-footer-cols:has(.jdc-pied-identite) {
		grid-template-columns: 1.4fr 1fr 1.6fr;
	}

	body.wp-child-theme-colormag-child .cm-upper-footer-col:has(.jdc-pied-identite) {
		order: -1;
	}
}

@media (max-width: 768px) {
	body.wp-child-theme-colormag-child .cm-upper-footer-col:has(.jdc-pied-identite) {
		order: -1;
		margin-bottom: 20px;
	}

	body.wp-child-theme-colormag-child .cm-upper-footer-cols:has(.jdc-pied-identite) {
		display: flex;
		flex-direction: column;
	}
}

/* =========================================================================
   16. Finitions (jury design, 4e passage)
   ========================================================================= */
@media (max-width: 600px) {
	/* Premier écran d'article : la rubrique est déjà dans le fil d'Ariane, image plus basse */
	body.wp-child-theme-colormag-child.single .cm-posts > article .cm-entry-header-meta {
		display: none;
	}

	body.wp-child-theme-colormag-child.single .cm-featured-image img {
		aspect-ratio: 5 / 2;
	}

	body.wp-child-theme-colormag-child.single .jdc-ariane {
		margin-bottom: 10px;
	}

	body.wp-child-theme-colormag-child.single h1.cm-entry-title {
		font-size: 27px;
		margin-top: 0;
	}

	body.wp-child-theme-colormag-child.single .cm-below-entry-meta {
		padding-bottom: 12px;
		margin-bottom: 14px;
	}

	/* Mention d'affiliation lisible */
	body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mention-affiliation {
		font-size: 14px !important;
	}

	/* Accueil : thèmes sur deux lignes plutôt qu'une ligne coupée, réassurance courte visible */
	body.wp-child-theme-colormag-child .jdc-themes {
		flex-wrap: wrap;
		overflow: visible;
		margin: 16px 0 0;
		padding: 0;
	}

	body.wp-child-theme-colormag-child .jdc-themes a {
		min-height: 36px;
		padding: 0 12px;
		font-size: 13.5px;
	}

	body.wp-child-theme-colormag-child .custom-html-widget .jdc-confiance {
		display: flex;
		gap: 4px 14px;
		margin-top: 14px;
		font-size: 12.5px;
	}
}

/* Cartes de l'accueil : pas de date de publication (souvent 2024, signal trompeur
   sans la date de mise à jour) */
body.wp-child-theme-colormag-child.home .cm-featured-posts .cm-below-entry-meta {
	display: none;
}

/* Une seule date par article : celle de la ligne de confiance (inc/mise-a-jour.php) */
body.wp-child-theme-colormag-child.single .cm-posts > article .cm-below-entry-meta .cm-post-date,
body.wp-child-theme-colormag-child:is(.archive, .search) .cm-posts .cm-below-entry-meta .cm-post-date {
	display: none;
}

body.wp-child-theme-colormag-child .jdc-mise-a-jour .jdc-meta-publie {
	color: var(--jdc-meta);
}

/* Menu : un article dans deux rubriques ne doit en souligner qu'une */
body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li:is(.current-post-ancestor, .current-menu-parent) ~ li:is(.current-post-ancestor, .current-menu-parent) > a {
	color: var(--jdc-encre);
}

@media (min-width: 769px) {
	body.wp-child-theme-colormag-child #cm-primary-nav .cm-menu-primary-container > ul > li:is(.current-post-ancestor, .current-menu-parent) ~ li:is(.current-post-ancestor, .current-menu-parent):not(:hover) > a::after {
		left: 50%;
		right: 50%;
	}
}

/* Icône « accueil » : le logo y mène déjà, y compris sur mobile */
body.wp-child-theme-colormag-child #cm-primary-nav .cm-home-icon {
	display: none;
}

/* Pas d'espaceur entre un encadré produit et la suite */
body.wp-child-theme-colormag-child .cm-entry-summary .jdc-produit + .wp-block-spacer {
	display: none;
}

body.wp-child-theme-colormag-child .jdc-produit {
	margin-bottom: 28px;
}

/* =========================================================================
   17. Finitions (jury design, 5e passage)
   ========================================================================= */

/* Photo produit : toujours contenue dans sa vignette carrée (photos verticales comprises) */
body.wp-child-theme-colormag-child .jdc-produit > a:first-child {
	box-sizing: border-box;
	overflow: hidden;
}

body.wp-child-theme-colormag-child .jdc-produit > a:first-child img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
}

/* Bandeaux de tranche d'âge (anciens blocs Couverture) : un intertitre, pas un encart */
body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-cover.is-light {
	margin: 36px 0 14px;
	padding: 0 0 0 14px !important;
	border-left: 4px solid var(--jdc-framboise);
	border-radius: 0;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-cover.is-light .wp-block-cover__background {
	background: transparent !important;
}

body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-cover.is-light .wp-block-cover__inner-container > p:first-child {
	color: var(--jdc-encre) !important;
	font-family: var(--jdc-police-titres);
	font-size: 21px;
	font-weight: var(--jdc-poids-titres);
	line-height: 1.35;
}

/* Article : une seule ligne de méta (autrice, date, lecture, sources) */
body.wp-child-theme-colormag-child.single .cm-posts > article .cm-below-entry-meta {
	display: none;
}

body.wp-child-theme-colormag-child.single .cm-entry-summary p.jdc-mise-a-jour {
	padding-bottom: 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--jdc-bordure);
}

body.wp-child-theme-colormag-child .jdc-mise-a-jour a.jdc-meta-auteur {
	color: var(--jdc-encre);
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 600px) {
	/* Pas de séparateur « · » orphelin en début de ligne */
	body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mise-a-jour {
		display: flex;
		flex-wrap: wrap;
		gap: 4px 14px;
	}

	body.wp-child-theme-colormag-child .jdc-mise-a-jour .jdc-meta-sep {
		display: none;
	}
}

/* Catégories : image bord à bord en haut de la carte, la première en bandeau large,
   pas de méta (l'autrice est la même partout, les dates sont masquées) */
body.wp-child-theme-colormag-child:is(.archive, .search) .cm-posts > article .cm-featured-image {
	margin: -20px -20px 16px;
}

body.wp-child-theme-colormag-child:is(.archive, .search) .cm-posts > article:first-child .cm-featured-image img {
	aspect-ratio: 21 / 9;
}

body.wp-child-theme-colormag-child:is(.archive, .search) .cm-posts .cm-below-entry-meta {
	display: none;
}

body.wp-child-theme-colormag-child:is(.archive, .search) .cm-posts .cm-entry-header {
	margin-top: 10px;
}

body.wp-child-theme-colormag-child:is(.archive, .search) .cm-posts .cm-entry-summary p:last-child {
	margin-bottom: 0;
}

/* Pied de page : lien de la charte visible, groupes resserrés sur mobile */
body.wp-child-theme-colormag-child .cm-footer .jdc-pied-identite a {
	color: #fff;
	text-decoration: underline;
	text-decoration-color: #f6a8c8;
	text-underline-offset: 3px;
}

@media (max-width: 768px) {
	body.wp-child-theme-colormag-child .cm-footer .cm-upper-footer-col {
		margin-bottom: 12px !important;
		padding: 0 !important;
	}

	body.wp-child-theme-colormag-child .cm-footer .cm-upper-footer-col .widget {
		margin-bottom: 0;
		padding-bottom: 0;
	}
}

/* Accueil : « À la une » dans le bandeau (widget HTML) */
body.wp-child-theme-colormag-child .custom-html-widget:has(> .jdc-une) {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	column-gap: 44px;
	align-items: center;
}

body.wp-child-theme-colormag-child .custom-html-widget:has(> .jdc-une) > :not(.jdc-une) {
	grid-column: 1;
}

body.wp-child-theme-colormag-child .custom-html-widget:has(> .jdc-une)::before {
	grid-column: 1;
}

body.wp-child-theme-colormag-child .custom-html-widget > .jdc-une {
	grid-column: 2;
	grid-row: 1 / span 6;
	display: block;
	overflow: hidden;
	background: var(--jdc-surface);
	border-radius: var(--jdc-rayon-carte);
	box-shadow: var(--jdc-ombre-survol);
	color: var(--jdc-encre);
	text-decoration: none;
	transition: transform 0.2s ease;
}

body.wp-child-theme-colormag-child .custom-html-widget > .jdc-une img {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

body.wp-child-theme-colormag-child .jdc-une-texte {
	display: block;
	padding: 16px 20px 20px;
}

body.wp-child-theme-colormag-child .jdc-une-surtitre {
	display: block;
	margin-bottom: 6px;
	color: var(--jdc-framboise);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.wp-child-theme-colormag-child .jdc-une-titre {
	display: block;
	font: var(--jdc-poids-titres) 21px/1.3 var(--jdc-police-titres);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	body.wp-child-theme-colormag-child .custom-html-widget > .jdc-une:hover {
		transform: translateY(-3px);
	}
}

@media (max-width: 900px) {
	body.wp-child-theme-colormag-child .custom-html-widget:has(> .jdc-une) {
		display: block;
	}

	body.wp-child-theme-colormag-child .custom-html-widget > .jdc-une {
		margin-top: 20px;
	}

	body.wp-child-theme-colormag-child .custom-html-widget > .jdc-une img {
		aspect-ratio: 2 / 1;
	}
}

/* Signes « trop chaud / trop froid » (article Température) : deux listes côte à côte */
body.wp-child-theme-colormag-child .jdc-signes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin: 24px 0 28px;
}

body.wp-child-theme-colormag-child .jdc-signes > div {
	padding: 16px 18px 6px;
	border-radius: 16px;
}

body.wp-child-theme-colormag-child .jdc-signes-chaud {
	background: var(--jdc-framboise-clair);
}

body.wp-child-theme-colormag-child .jdc-signes-froid {
	background: var(--jdc-sapin-clair);
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-signes .jdc-signes-titre {
	margin: 0 0 8px;
	font-family: var(--jdc-police-titres);
	font-size: 19px;
	font-weight: var(--jdc-poids-titres);
}

body.wp-child-theme-colormag-child .jdc-signes-chaud .jdc-signes-titre {
	color: var(--jdc-framboise-fonce);
}

body.wp-child-theme-colormag-child .jdc-signes-froid .jdc-signes-titre {
	color: var(--jdc-sapin-fonce);
}

body.wp-child-theme-colormag-child .jdc-signes ul {
	margin: 0;
	padding-left: 20px;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-signes li {
	font-size: 16px;
	line-height: 1.5;
	margin-bottom: 8px;
}

@media (max-width: 600px) {
	body.wp-child-theme-colormag-child .jdc-signes {
		grid-template-columns: 1fr;
	}
}

/* Finitions (jury design, 6e passage) */
body.wp-child-theme-colormag-child .cm-entry-summary .wp-block-cover.is-light .wp-block-cover__inner-container > p:first-child {
	font-size: 22px !important;
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mention-affiliation {
	font-size: 15px !important;
}

body.wp-child-theme-colormag-child .cm-entry-summary p:empty {
	display: none;
}

@media (max-width: 768px) {
	body.wp-child-theme-colormag-child .cm-footer-cols {
		padding-top: 24px;
		padding-bottom: 8px;
	}

	body.wp-child-theme-colormag-child .cm-footer .cm-upper-footer-cols {
		gap: 0;
	}
}

/* =========================================================================
   18. Responsive
   ========================================================================= */

/* À exactement 768 px, ColorMag affiche à la fois le menu complet (sur deux lignes) et le
   bouton menu : on garde le bouton jusqu'à 768 px compris. */
@media (max-width: 768px) {
	body.wp-child-theme-colormag-child #cm-primary-nav.cm-primary-nav .cm-menu-primary-container > ul {
		display: none;
	}
}

/* Photo produit : positionnée dans sa vignette carrée pour être toujours entière, même
   verticale (la hauteur en pourcentage ne se calcule pas sur un aspect-ratio) */
body.wp-child-theme-colormag-child .jdc-produit > a:first-child {
	position: relative;
}

body.wp-child-theme-colormag-child .jdc-produit > a:first-child img {
	position: absolute;
	inset: 8px;
	width: calc(100% - 16px);
	height: calc(100% - 16px);
	max-width: none;
	max-height: none;
	object-fit: contain;
}

/* Petits téléphones : bandeau d'accueil plus court */
@media (max-width: 400px) {
	body.wp-child-theme-colormag-child .custom-html-widget > h1 {
		font-size: 22px !important;
	}

	body.wp-child-theme-colormag-child .custom-html-widget > .jdc-une img {
		aspect-ratio: 5 / 2;
	}

	body.wp-child-theme-colormag-child .jdc-une-texte {
		padding: 12px 16px 14px;
	}

	body.wp-child-theme-colormag-child .jdc-une-titre {
		font-size: 18px;
	}
}

/* Mention d'affiliation discrète : une ligne de texte, sans encadré (la phrase Amazon
   complète est dans le pied de page de tout le site) */
body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mention-affiliation {
	margin: -4px 0 22px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	color: var(--jdc-meta);
	font-size: 13.5px !important;
	font-style: italic;
	line-height: 1.5 !important;
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mention-affiliation::before {
	content: none;
}

body.wp-child-theme-colormag-child .cm-footer-bar .jdc-mention-amazon {
	margin: 6px 0 0;
	color: #b9b1c4;
	font-size: 12.5px;
}

/* Mention d'affiliation en fin d'article */
body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-mention-affiliation {
	margin: 36px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--jdc-bordure);
}

/* =========================================================================
   19. Page contact et formulaire Forminator (style Forminator désactivé)
   ========================================================================= */
body.wp-child-theme-colormag-child.page.page-id-285 :is(.cm-entry-summary, .cm-entry-header) {
	max-width: 980px;
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-contact-intro {
	max-width: 680px;
	margin: 0 0 32px;
	color: var(--jdc-texte-2);
	font-size: 19px;
	line-height: 1.6;
}

body.wp-child-theme-colormag-child .jdc-contact {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 28px;
	align-items: start;
}

body.wp-child-theme-colormag-child .jdc-contact > * {
	box-sizing: border-box;
	border-radius: var(--jdc-rayon-carte);
}

body.wp-child-theme-colormag-child .jdc-contact-infos {
	position: relative;
	overflow: hidden;
	padding: 28px 26px 24px;
	background: var(--jdc-sable);
}

body.wp-child-theme-colormag-child .jdc-contact-infos::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: var(--jdc-arc);
}

body.wp-child-theme-colormag-child .jdc-contact-formulaire {
	padding: 28px 28px 22px;
	background: var(--jdc-surface);
	border: 1px solid var(--jdc-bordure);
	box-shadow: var(--jdc-ombre);
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-contact-titre {
	margin: 0 0 14px;
	color: var(--jdc-encre);
	font: var(--jdc-poids-titres) 23px/1.25 var(--jdc-police-titres);
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-contact-liste {
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

body.wp-child-theme-colormag-child .cm-entry-summary .jdc-contact-liste li {
	position: relative;
	margin: 0 0 10px;
	padding-left: 30px;
	font-size: 16px;
	line-height: 1.5;
}

body.wp-child-theme-colormag-child .jdc-contact-liste li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 2px;
	display: grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--jdc-surface);
	color: var(--jdc-sapin);
	font-size: 12px;
	font-weight: 700;
}

body.wp-child-theme-colormag-child .cm-entry-summary :is(p.jdc-contact-note, p.jdc-contact-recaptcha) {
	margin: 0;
	color: var(--jdc-meta);
	font-size: 13.5px;
	line-height: 1.5;
}

body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-contact-recaptcha {
	margin-top: 14px;
	font-size: 12.5px;
}

/* Le badge reCAPTCHA flottant chevauchait la page : la mention ci-dessus le remplace,
   comme Google l'autorise. */
body.wp-child-theme-colormag-child .grecaptcha-badge {
	visibility: hidden;
}

/* Conteneur vide généré par Forminator avant le formulaire */
body.wp-child-theme-colormag-child .jdc-contact-formulaire > div.forminator-custom-form {
	display: none;
}

/* Champs */
body.wp-child-theme-colormag-child .forminator-custom-form :is(.forminator-row, .forminator-col, .forminator-field) {
	margin: 0;
	padding: 0;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-row {
	margin: 0 0 18px !important;
}

body.wp-child-theme-colormag-child .forminator-custom-form :is(.forminator-input, .forminator-textarea, .forminator-label) {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-row:has(.forminator-g-recaptcha) {
	margin: 0;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-label {
	display: block;
	margin: 0 0 6px;
	color: var(--jdc-encre);
	font-family: var(--jdc-police-texte);
	font-size: 15px;
	font-weight: 700;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-required {
	color: var(--jdc-framboise);
}

body.wp-child-theme-colormag-child .forminator-custom-form :is(.forminator-input, .forminator-textarea) {
	box-sizing: border-box;
	width: 100%;
	padding: 13px 15px;
	background: var(--jdc-fond);
	border: 1.5px solid var(--jdc-bordure);
	border-radius: 14px;
	color: var(--jdc-encre);
	font-family: var(--jdc-police-texte);
	font-size: 16px;
	line-height: 1.5;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-textarea {
	min-height: 170px;
	resize: vertical;
}

body.wp-child-theme-colormag-child .forminator-custom-form :is(.forminator-input, .forminator-textarea)::placeholder {
	color: #9a93a3;
}

body.wp-child-theme-colormag-child .forminator-custom-form :is(.forminator-input, .forminator-textarea):hover {
	border-color: #d9cfc4;
}

body.wp-child-theme-colormag-child .forminator-custom-form :is(.forminator-input, .forminator-textarea):focus {
	outline: none;
	background: var(--jdc-surface);
	border-color: var(--jdc-framboise);
	box-shadow: 0 0 0 4px var(--jdc-framboise-clair);
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-description {
	display: block;
	margin-top: 6px;
	color: var(--jdc-meta);
	font-size: 13px;
	text-align: right;
}

/* Erreurs et confirmation */
body.wp-child-theme-colormag-child .forminator-custom-form .forminator-has_error :is(.forminator-input, .forminator-textarea) {
	border-color: #c0392b;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-error-message {
	display: block;
	margin-top: 6px;
	color: #b03a2e;
	font-size: 14px;
	font-weight: 700;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-response-message:not(:empty) {
	margin: 0 0 18px;
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 15px;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-response-message.forminator-success {
	background: var(--jdc-sapin-clair);
	color: var(--jdc-sapin-fonce);
	font-weight: 700;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-response-message.forminator-error:not(:empty) {
	background: #fdecea;
	color: #8e2a20;
}

/* Bouton d'envoi : même pilule framboise que les boutons du site */
body.wp-child-theme-colormag-child .forminator-custom-form .forminator-button-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 50px;
	padding: 0 30px;
	background: var(--jdc-framboise) !important;
	border: 0;
	border-radius: 999px;
	box-shadow: 0 8px 18px -10px rgba(143, 33, 73, 0.55);
	color: #fff !important;
	font-family: var(--jdc-police-texte);
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-button-submit:hover {
	background: var(--jdc-framboise-fonce) !important;
}

body.wp-child-theme-colormag-child .forminator-custom-form .forminator-button-submit::after {
	content: "→";
	font-size: 18px;
	line-height: 1;
}

@media (max-width: 768px) {
	body.wp-child-theme-colormag-child .jdc-contact {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	body.wp-child-theme-colormag-child .jdc-contact-formulaire {
		order: -1;
		padding: 22px 18px 18px;
	}

	body.wp-child-theme-colormag-child .jdc-contact-infos {
		padding: 24px 18px 20px;
	}

	body.wp-child-theme-colormag-child .cm-entry-summary p.jdc-contact-intro {
		font-size: 17px;
		margin-bottom: 22px;
	}

	body.wp-child-theme-colormag-child .forminator-custom-form .forminator-button-submit {
		width: 100%;
	}
}
