/* Personnalisations Perdre du ventre — styles globaux (légers) */

/* Rubik et Josefin Sans ne sont pas chargées (Google Fonts désactivé) :
   on remplace le repli Arial par la police système, plus lisible. */
html body {
	--pdv-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bodyFont: var(--pdv-font);
	--headFont: var(--pdv-font);
}
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6 {
	letter-spacing: -0.01em;
}

/* Couleurs du site (vert du logo) */
html body {
	--pdv-green-900: #1f3d12;
	--pdv-green-700: #355f1a;
	--pdv-green-600: #467a22;
	--pdv-green-100: #eef5e2;
	--pdv-green-50: #f6faef;
	--pdv-pear: #a6c94a;
	--pdv-ink: #1c2530;
	--pdv-text: #3b4754;
	--pdv-muted: #5f6b77;
	--pdv-line: #e3e8dc;
	--pdv-card: #fff;
	--pdv-radius: 18px;
	--pdv-shadow: 0 1px 2px rgba(31, 61, 18, .06), 0 8px 24px rgba(31, 61, 18, .07);
}
html body.dark {
	--pdv-green-600: #a6c94a;
	--pdv-green-700: #c3dd7f;
	--pdv-green-100: #26331c;
	--pdv-green-50: #1d2617;
	--pdv-ink: #f1f4ee;
	--pdv-text: #cfd6cc;
	--pdv-muted: #a3ad9f;
	--pdv-line: #344029;
	--pdv-card: #1b1f19;
	--pdv-shadow: none;
}

/* ---------- Sommaire (Joli Table of Contents) ---------- */
.wpj-jtoc.wpj-jtoc--main { width: 100%; margin: 32px 0 40px; }
.wpj-jtoc .wpj-jtoc--toc {
	width: 100% !important;
	max-width: none !important;
	padding: 22px 26px 18px !important;
	background: var(--pdv-green-50) !important;
	border: 1px solid var(--pdv-line) !important;
	border-radius: var(--pdv-radius) !important;
	box-shadow: none !important;
}
.wpj-jtoc .wpj-jtoc--header,
.wpj-jtoc .wpj-jtoc--header-main,
.wpj-jtoc .wpj-jtoc--title { padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; }
.wpj-jtoc .wpj-jtoc--title { flex: 1 1 auto; order: 1; }
.wpj-jtoc .wpj-jtoc--toggle-wrap { order: 2; }
.wpj-jtoc .wpj-jtoc--header-main {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: row !important;
	gap: 12px;
	cursor: pointer;
}
.wpj-jtoc .wpj-jtoc--title-label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--pdv-ink) !important;
	font-size: 18px !important;
	font-weight: 700 !important;
	letter-spacing: -0.01em;
}
.wpj-jtoc .wpj-jtoc--title-label::before {
	content: "";
	width: 32px;
	height: 32px;
	border-radius: 10px;
	display: inline-block !important;
	vertical-align: middle;
	margin-right: 2px;
	background: var(--pdv-green-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4.5 6h.01M4.5 12h.01M4.5 18h.01'/%3E%3C/svg%3E") center / 18px no-repeat;
	flex: none;
}
.wpj-jtoc .wpj-jtoc--toggle-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--pdv-card);
	border: 1px solid var(--pdv-line);
	color: var(--pdv-green-600);
	margin: 0 !important;
}
.wpj-jtoc .wpj-jtoc--body { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--pdv-line); }
.wpj-jtoc .wpj-jtoc--nav > ol.wpj-jtoc--items { margin: 0 !important; padding: 0 !important; list-style: none; }
.wpj-jtoc ol.wpj-jtoc--items ol.wpj-jtoc--items { margin: 2px 0 6px 38px !important; padding: 0 !important; list-style: none; }
.wpj-jtoc li.wpj-jtoc--item { margin: 0 !important; padding: 0 !important; break-inside: avoid; }
.wpj-jtoc .wpj-jtoc--item-content { padding: 0 !important; margin: 0 !important; }
.wpj-jtoc .wpj-jtoc--item-content a {
	display: flex !important;
	align-items: flex-start;
	gap: 10px;
	padding: 6px 8px !important;
	margin: 0 -8px;
	border-radius: 8px;
	color: var(--pdv-text) !important;
	font-size: 15.5px !important;
	line-height: 1.45 !important;
	text-decoration: none !important;
	transition: background-color .15s ease, color .15s ease;
}
.wpj-jtoc .wpj-jtoc--item-content.--jtoc-h2 a { color: var(--pdv-ink) !important; font-weight: 600; }
.wpj-jtoc .wpj-jtoc--item-content.--jtoc-h2 a::before {
	content: attr(data-numeration);
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	margin-top: -1px;
	border-radius: 50%;
	background: var(--pdv-green-100);
	color: var(--pdv-green-700);
	font-size: 12px;
	font-weight: 700;
}
.wpj-jtoc .wpj-jtoc--item-content.--jtoc-h3 a { font-size: 14.5px !important; color: var(--pdv-muted) !important; }
.wpj-jtoc .wpj-jtoc--item-content.--jtoc-h3 a::before {
	content: "";
	flex: none;
	width: 6px;
	height: 6px;
	margin-top: 8px;
	border-radius: 50%;
	background: var(--pdv-pear);
}
.wpj-jtoc .wpj-jtoc--item-content a:hover,
.wpj-jtoc .wpj-jtoc--item-content.active a,
.wpj-jtoc .wpj-jtoc--item-content a.active {
	background: var(--pdv-card);
	color: var(--pdv-green-600) !important;
}
.wpj-jtoc .wpj-jtoc--toc { container-type: inline-size; }
@container (min-width: 760px) {
	.wpj-jtoc .wpj-jtoc--nav > ol.wpj-jtoc--items { column-count: 2; column-gap: 36px; }
}

/* ---------- Box auteur (StarBox) ---------- */
html body .abh_box[class] {
	margin: 40px 0 24px !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
}
.abh_box .abh_tabs {
	display: inline-flex !important;
	width: auto !important;
	gap: 4px;
	margin: 0 0 12px !important;
	padding: 4px !important;
	border: 1px solid var(--pdv-line) !important;
	border-radius: 999px;
	background: var(--pdv-green-50) !important;
	list-style: none;
}
.abh_box .abh_tabs li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	float: none !important;
	list-style: none !important;
}
.abh_box .abh_tabs li a {
	display: block !important;
	padding: 6px 16px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: none !important;
	color: var(--pdv-muted) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	text-decoration: none !important;
	box-shadow: none !important;
}
.abh_box .abh_tabs li.abh_active a {
	background: var(--pdv-card) !important;
	color: var(--pdv-green-700) !important;
	box-shadow: 0 1px 3px rgba(31, 61, 18, .12) !important;
}
.abh_box .abh_tab_content {
	border: 1px solid var(--pdv-line) !important;
	border-radius: var(--pdv-radius) !important;
	background: linear-gradient(180deg, var(--pdv-green-50) 0%, var(--pdv-card) 100%) !important;
	box-shadow: var(--pdv-shadow) !important;
	overflow: hidden;
}
.abh_box .abh_tab {
	padding: 24px 26px !important;
	display: none;
	grid-template-columns: 96px minmax(0, 1fr);
	column-gap: 22px;
	align-items: start;
}
.abh_box .abh_tab[style*="block"] { display: grid !important; }
html body .abh_box[class] .abh_tab_content .abh_tab .abh_image {
	grid-column: 1;
	grid-row: 1;
	float: none !important;
	width: 96px !important;
	margin: 0 !important;
}
html body .abh_box[class] .abh_tab_content .abh_tab .abh_image img,
html body .abh_box[class] .abh_tab_content .abh_tab .abh_image .photo {
	width: 96px !important;
	height: 96px !important;
	max-width: none !important;
	object-fit: cover;
	border-radius: 50% !important;
	border: 3px solid var(--pdv-card) !important;
	box-shadow: 0 0 0 2px var(--pdv-pear) !important;
}
html body .abh_box[class] .abh_tab_content .abh_tab .abh_social {
	grid-column: 1;
	grid-row: 2;
	float: none !important;
	width: 96px !important;
	margin: 10px 0 0 !important;
	text-align: center;
}
html body .abh_box[class] .abh_tab_content .abh_tab .abh_text {
	grid-column: 2;
	grid-row: 1 / span 2;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}
.abh_box .abh_name,
.abh_box .abh_name a {
	margin: 2px 0 2px !important;
	color: var(--pdv-ink) !important;
	font-size: 20px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	text-decoration: none !important;
}
.abh_box .abh_name::before {
	content: "À propos de l'autrice";
	display: block;
	margin-bottom: 2px;
	color: var(--pdv-green-600);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.abh_box .abh_posts_tab .abh_name::before { content: none; }
.abh_box .abh_job:empty { display: none; }
.abh_box .abh_job { color: var(--pdv-muted) !important; font-size: 14px !important; }
.abh_box .abh_description,
.abh_box .abh_description p {
	margin-top: 8px !important;
	color: var(--pdv-text) !important;
	font-size: 15.5px !important;
	line-height: 1.65 !important;
}
.abh_box .abh_allposts { font-size: 14px !important; font-weight: 400; }
.abh_box .abh_allposts a { color: var(--pdv-green-600) !important; }
.abh_box .abh_posts_tab ul { margin: 6px 0 0 !important; padding: 0 !important; list-style: none !important; }
.abh_box .abh_posts_tab li {
	margin: 0 !important;
	padding: 8px 0 !important;
	border-bottom: 1px solid var(--pdv-line);
	list-style: none !important;
}
.abh_box .abh_posts_tab li:last-child { border-bottom: 0; }
.abh_box .abh_posts_tab li a { color: var(--pdv-ink) !important; font-weight: 600; text-decoration: none !important; }
.abh_box .abh_posts_tab li a:hover { color: var(--pdv-green-600) !important; }
.abh_box .abh_posts_tab li span { color: var(--pdv-muted); font-size: 13px; }
@media (max-width: 600px) {
	.abh_box .abh_tab { grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding: 18px !important; }
	html body .abh_box[class] .abh_tab_content .abh_tab .abh_image,
	html body .abh_box[class] .abh_tab_content .abh_tab .abh_social { width: 64px !important; }
	html body .abh_box[class] .abh_tab_content .abh_tab .abh_image img,
	html body .abh_box[class] .abh_tab_content .abh_tab .abh_image .photo { width: 64px !important; height: 64px !important; }
	.abh_box .abh_name, .abh_box .abh_name a { font-size: 18px !important; }
}

/* Logo du footer : texte sombre illisible sur fond noir */
footer .footer-logo .custom-logo {
	background: #fff;
	border-radius: 12px;
	padding: 6px 14px;
	max-height: 64px;
	width: auto;
}

/* Bloc « À lire aussi » : titre en casse de phrase, titres non coupés */
.missed .bs-widget-title .title {
	text-transform: none;
}
.missed h4.title {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* En-tête mobile : le logo débordait et masquait l'icône de recherche */
@media (max-width: 991px) {
	.m-header .navbar-header { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
	.m-header .site-logo, .m-header .navbar-brand { max-width: 100%; margin: 0; }
	.m-header .custom-logo { width: auto !important; max-width: 100%; height: auto !important; max-height: 52px; }
}

/* Ajustements StarBox / sommaire */
.abh_box, .abh_box * { font-family: inherit !important; }
html body .abh_box[class] .abh_tab_content .abh_posts_tab .abh_name { font-size: 18px !important; }
html body .abh_box[class] .abh_tab_content .abh_allposts,
html body .abh_box[class] .abh_tab_content .abh_allposts a { font-size: 14px !important; font-weight: 600 !important; }
html body .abh_box[class] .abh_tab_content .abh_posts_tab li a { font-size: 15px !important; line-height: 1.45 !important; }
html body .abh_box[class] .abh_tab_content .abh_posts_tab li span { font-size: 13px !important; }
html body .abh_box[class] .abh_social a { color: var(--pdv-green-600) !important; opacity: .85; }
html body .abh_box[class] .abh_social a:hover { opacity: 1; }
.wpj-jtoc .wpj-jtoc--title-label::before { margin-right: 10px !important; }
