/*
Theme Name: Détox Journal
Description: Thème magazine éditorial pour detoxnaturelle.com : une, rubriques, articles lisibles, sans constructeur de pages.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: detox-journal
License: GPL-2.0-or-later
*/

/* ---------- Fonts (self-hosted, SIL OFL: see assets/fonts) ---------- */
@font-face {
	font-family: "Fraunces";
	src: url("assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Inter";
	src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
	font-weight: 200 900;
	font-display: swap;
}
@font-face {
	font-family: "Source Serif 4";
	src: url("assets/fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
	font-weight: 200 900;
	font-style: italic;
	font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
	--paper: #fbfaf6;
	--paper-2: #f3f0e7;
	--ink: #17201b;
	--ink-2: #46514a;
	--ink-3: #6f7a72;
	--rule: #e1ddd1;
	--rule-strong: #17201b;
	--green: #1d4d36;
	--green-2: #2f6b4c;
	--green-soft: #e4ede6;
	--accent: #b4532a;
	--accent-soft: #f6e6dc;
	--white: #fff;

	--f-head: "Fraunces", Georgia, "Times New Roman", serif;
	--f-body: "Source Serif 4", Georgia, serif;
	--f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 3vw, 32px);
	--radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.6 var(--f-ui);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; font-optical-sizing: auto; }
p { margin: 0 0 1em; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px;
	background: var(--ink); color: var(--white); padding: 10px 16px;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Top bar ---------- */
.topbar { background: var(--green); color: #dfe9e2; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar__date::first-letter { text-transform: uppercase; }
.topbar__date { display: inline-block; }
.topbar nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.topbar a:hover { color: var(--white); }
.social { display: flex; gap: 12px; align-items: center; }
.social a { display: inline-flex; opacity: .85; }
.social a:hover { opacity: 1; color: inherit; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Masthead ---------- */
.masthead { border-bottom: 1px solid var(--rule); background: var(--paper); }
.masthead .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 22px; padding-bottom: 18px; }
.masthead__brand { grid-column: 2; text-align: center; }
.masthead__brand img { max-height: 76px; width: auto; margin: 0 auto; }
.masthead__title { font-family: var(--f-head); font-size: 44px; font-weight: 700; color: var(--green); }
.masthead__tagline { margin: 8px 0 0; font: italic 400 15px/1.3 var(--f-body); color: var(--ink-2); }
.masthead__actions { grid-column: 3; justify-self: end; display: flex; gap: 8px; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 40px; min-width: 40px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 999px;
	background: var(--white); color: var(--ink); cursor: pointer; font: 500 14px var(--f-ui);
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-toggle { display: none; }

/* ---------- Primary nav ---------- */
.primary-nav { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 3px double var(--rule-strong); }
.admin-bar .primary-nav { top: 32px; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.primary-nav a {
	display: block; padding: 13px 14px; font: 600 14px/1 var(--f-ui); letter-spacing: .02em;
	border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-cat > a, .primary-nav .current-post-ancestor > a, .primary-nav .current-category-ancestor > a {
	color: var(--green); border-bottom-color: var(--accent);
}

/* ---------- Search panel ---------- */
.search-panel { display: none; background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.search-panel.is-open { display: block; }
.search-panel .wrap { padding-top: 20px; padding-bottom: 20px; }
.search-form { display: flex; gap: 8px; max-width: 640px; margin: 0 auto; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--ink-3); border-radius: var(--radius);
	font: 400 17px var(--f-ui); background: var(--white); color: var(--ink);
}
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
	background: var(--green); color: var(--white); border: 0; border-radius: var(--radius);
	font: 600 15px var(--f-ui); cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn--ghost:hover { background: var(--green); color: var(--white); }

/* ---------- Shared bits ---------- */
.kicker {
	display: inline-block; font: 700 11.5px/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase;
	color: var(--accent);
}
a.kicker:hover { color: var(--ink); }
.meta { font: 400 13px/1.4 var(--f-ui); color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.meta__sep::before { content: "·"; }
.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	border-top: 3px solid var(--rule-strong); padding-top: 10px; margin-bottom: 22px;
}
.section-head h2 { font-size: 26px; }
.section-head a.more { font: 600 13px var(--f-ui); color: var(--green); white-space: nowrap; }
.section-head a.more:hover { color: var(--accent); }
.thumb { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--radius); aspect-ratio: 3 / 2; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a:hover .thumb img, .card:hover .thumb img { transform: scale(1.03); }
.thumb--wide { aspect-ratio: 16 / 9; }
.thumb--square { aspect-ratio: 1; }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; gap: 10px; }
.card__title { font-size: 20px; line-height: 1.22; }
.card__title a:hover { color: var(--green-2); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card__excerpt { margin: 0; color: var(--ink-2); font: 400 16px/1.55 var(--f-body); }
.card--lead .card__title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; font-weight: 650; }
.card--lead .card__excerpt { font-size: 18px; }
.card--h { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
.card--h .card__title { font-size: 16.5px; line-height: 1.28; }
.card--h .thumb { aspect-ratio: 1; }
.card--text .card__title { font-size: 17.5px; }
.card--overlay { position: relative; color: var(--white); }
.card--overlay .thumb { aspect-ratio: 4 / 5; }
.card--overlay .card__body {
	position: absolute; inset: auto 0 0 0; padding: 18px; border-radius: 0 0 var(--radius) var(--radius);
	background: linear-gradient(to top, rgba(10, 20, 14, .9) 0%, rgba(10, 20, 14, .55) 60%, transparent 100%);
	display: flex; flex-direction: column; gap: 8px;
}
.card--overlay .kicker { color: #f3c9b3; }
.card--overlay .card__title { font-size: 20px; color: var(--white); }
.card--overlay .card__title a:hover { color: var(--white); }
.card--overlay .meta { color: #d5ddd7; }

/* ---------- Front page: une ---------- */
.une { padding-top: 32px; padding-bottom: 44px; }
.une__grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.une__lead { grid-row: span 2; }
.une__lead .thumb { aspect-ratio: 4 / 3; }
.une__col { display: flex; flex-direction: column; gap: 26px; }
.une__col + .une__col { border-left: 1px solid var(--rule); padding-left: 32px; }
.fil h2 { font-size: 15px; font-family: var(--f-ui); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.fil h2::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fil ol { list-style: none; margin: 0; padding: 0; counter-reset: fil; }
.fil li { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.fil li:last-child { border-bottom: 0; }
.fil time { display: block; font: 600 12px var(--f-ui); color: var(--accent); margin-bottom: 4px; }
.fil a { font: 600 16px/1.3 var(--f-head); }

/* ---------- Rubriques strip ---------- */
.rubriques { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.rubriques .wrap { display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.rubriques .wrap::-webkit-scrollbar { display: none; }
.rubriques__label { font: 700 12px/36px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; margin-right: 6px; }
.chip {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; white-space: nowrap;
	border: 1px solid var(--rule); border-radius: 999px; background: var(--white); font: 500 14px var(--f-ui);
}
.chip span { font-size: 12px; color: var(--ink-3); }
.chip:hover { border-color: var(--green); color: var(--green); }

/* ---------- Category blocks ---------- */
.blocks { padding-top: 48px; padding-bottom: 16px; }
.blocks__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 48px; }
.rubrique { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; }
.rubrique .section-head { grid-column: 1 / -1; margin-bottom: 0; }
.rubrique__list { display: flex; flex-direction: column; gap: 0; }
.rubrique__list .card { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.rubrique__list .card:first-child { padding-top: 0; }
.rubrique__list .card:last-child { border-bottom: 0; }

/* ---------- Guides band ---------- */
.band { background: var(--green); color: var(--white); padding: 48px 0 56px; margin: 40px 0; }
.band .section-head { border-top-color: rgba(255, 255, 255, .85); }
.band .section-head h2, .band .section-head a.more { color: var(--white); }
.band .section-head p { margin: 4px 0 0; font: italic 400 16px var(--f-body); color: #cfe0d5; }
.band__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }

/* ---------- Layout with sidebar ---------- */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; padding-top: 40px; padding-bottom: 64px; align-items: start; }
.sidebar { display: flex; flex-direction: column; gap: 36px; }
.sidebar--sticky { position: sticky; top: 72px; }
.widget h2, .widget-title { font: 700 13px/1 var(--f-ui); letter-spacing: .09em; text-transform: uppercase; border-top: 3px solid var(--rule-strong); padding-top: 10px; margin-bottom: 16px; }
.ad { text-align: center; }
.ad__label { display: block; font: 500 10.5px var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.ad img { border-radius: var(--radius); border: 1px solid var(--rule); width: 100%; }
.author-card { background: var(--paper-2); border-radius: var(--radius); padding: 22px; text-align: center; }
.author-card img { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 12px; object-fit: cover; }
.author-card h3 { font-size: 20px; margin-bottom: 4px; }
.author-card .role { font: 600 12px var(--f-ui); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.author-card p { font: 400 15px/1.5 var(--f-body); color: var(--ink-2); margin: 0; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list li { border-bottom: 1px solid var(--rule); }
.cat-list a { display: flex; justify-content: space-between; padding: 10px 0; font: 500 15px var(--f-ui); }
.cat-list span { color: var(--ink-3); font-size: 13px; }
.numbered { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 36px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.numbered li::before { content: counter(n); font: 600 28px/1 var(--f-head); color: var(--accent); }
.numbered a { font: 600 16px/1.3 var(--f-head); }

/* ---------- Lists ---------- */
.river { display: flex; flex-direction: column; }
.river .card--row { display: grid; grid-template-columns: 260px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.river .card--row:first-child { padding-top: 0; }
.river .card--row .card__title { font-size: 23px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }

/* ---------- Archive header ---------- */
.archive-head { padding-top: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--rule); text-align: center; }
.archive-head .kicker { margin-bottom: 10px; }
.archive-head h1 { font-size: clamp(34px, 5vw, 56px); }
.archive-head p { max-width: 640px; margin: 12px auto 0; color: var(--ink-2); font: 400 18px/1.5 var(--f-body); }
.archive-head .search-form { margin-top: 20px; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers {
	min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); font: 600 14px var(--f-ui);
}
.pagination .page-numbers.current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .dots { border: 0; background: none; }

/* ---------- Single ---------- */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 100; }
.article-head { max-width: 900px; margin: 0 auto; padding-top: 40px; padding-bottom: 28px; text-align: center; }
.breadcrumbs { font: 500 13px var(--f-ui); color: var(--ink-3); margin-bottom: 18px; }
.breadcrumbs a:hover { color: var(--green); }
.breadcrumbs span[aria-hidden] { margin: 0 6px; }
.article-head h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; font-weight: 650; margin: 12px 0 18px; }
.standfirst { font: 400 clamp(18px, 2vw, 21px)/1.5 var(--f-body); color: var(--ink-2); margin: 0 auto 24px; max-width: 720px; }
.byline { display: flex; align-items: center; justify-content: center; gap: 12px; font: 400 14px var(--f-ui); color: var(--ink-3); flex-wrap: wrap; }
.byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--ink); font-weight: 600; }
.article-figure { margin: 0 auto 8px; }
.article-figure .thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.article-figure figcaption { font: 400 13px var(--f-ui); color: var(--ink-3); padding: 8px 0; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding-top: 32px; padding-bottom: 56px; align-items: start; }
.article-body { max-width: 700px; min-width: 0; width: 100%; }
.with-sidebar > *, .article-layout > * { min-width: 0; }

.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.share__label { font: 600 12px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: 4px; }
.share a, .share button {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--rule); background: var(--white); color: var(--ink); cursor: pointer; padding: 0;
}
.share a:hover, .share button:hover { border-color: var(--ink); color: var(--ink); }
.share svg { width: 16px; height: 16px; fill: currentColor; }
.share .copied { border-color: var(--green); color: var(--green); }

.toc { background: var(--paper-2); border-left: 3px solid var(--green); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 22px; margin: 0 0 32px; }
.toc summary { cursor: pointer; font: 700 13px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: "+"; font-size: 18px; line-height: 1; }
.toc[open] summary::after { content: "–"; }
.toc ol { margin: 12px 0 0; padding-left: 20px; font: 400 15px/1.45 var(--f-ui); }
.toc li { margin: 6px 0; }
.toc a { color: var(--green); }
.toc a:hover { text-decoration: underline; }

/* Prose */
.prose { font: 400 19px/1.7 var(--f-body); color: #1f2722; }
.prose p, .prose ul, .prose ol, .prose figure, .prose iframe, .prose details { margin: 0 0 1.1em; }
.prose > p:first-of-type::first-letter {
	float: left; font: 600 4.1em/0.82 var(--f-head); margin: 0.06em 0.09em 0 0; color: var(--green);
}
.prose h2 { font-size: 30px; margin-top: 1.8em; padding-top: .2em; scroll-margin-top: 80px; }
.prose h3 { font-size: 23px; margin-top: 1.5em; scroll-margin-top: 80px; }
.prose h4 { font-size: 19px; margin-top: 1.3em; font-family: var(--f-ui); font-weight: 700; }
.prose h2, .prose h3, .prose h4 { margin-bottom: .55em; }
.prose > :first-child { margin-top: 0; }
.prose li > p, .prose blockquote > :last-child { margin-bottom: 0; }
.prose a { color: var(--green); text-decoration: underline; text-decoration-color: rgba(29, 77, 54, .35); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--accent); text-decoration-color: currentColor; }
.prose sup a { text-decoration: none; font: 600 .62em var(--f-ui); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 650; color: var(--ink); }
.prose blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent);
	font-style: italic; color: var(--ink-2);
}
.prose blockquote p + p, .prose blockquote p + ul { margin-top: .6em; }
.prose blockquote ul { font-style: normal; font-size: .85em; }
.prose img { border-radius: var(--radius); margin-left: auto; margin-right: auto; }
.prose iframe { width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.prose .table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font: 400 15px/1.45 var(--f-ui); min-width: 520px; }
.prose th { background: var(--green); color: var(--white); text-align: left; font-weight: 600; padding: 10px 14px; }
.prose td { padding: 10px 14px; border-top: 1px solid var(--rule); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: var(--paper-2); }

.disclaimer {
	display: flex; gap: 14px; margin: 40px 0 0; padding: 18px 20px; background: var(--accent-soft); border-radius: var(--radius);
	font: 400 14px/1.5 var(--f-ui); color: #5a3524;
}
.disclaimer svg { flex: none; width: 22px; height: 22px; fill: var(--accent); margin-top: 1px; }
.disclaimer p { margin: 0; }
.author-box { display: grid; grid-template-columns: 96px 1fr; gap: 20px; margin: 40px 0 0; padding: 24px 0; border-top: 3px solid var(--rule-strong); border-bottom: 1px solid var(--rule); }
.author-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.author-box .kicker { margin-bottom: 4px; }
.author-box h2 { font-size: 22px; margin-bottom: 8px; }
.author-box p { margin: 0; font: 400 16px/1.55 var(--f-body); color: var(--ink-2); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 32px 0 0; }
.post-nav a { display: block; padding: 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.post-nav a:hover { border-color: var(--ink); color: var(--ink); }
.post-nav small { display: block; font: 600 12px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.post-nav span { font: 600 16px/1.3 var(--f-head); }
.post-nav .next { text-align: right; }
.related { border-top: 1px solid var(--rule); padding: 44px 0 64px; background: var(--paper-2); }

/* ---------- Pages ---------- */
.page-body { max-width: 760px; margin: 0 auto; padding-top: 8px; padding-bottom: 72px; }
.page-body .prose > p:first-of-type::first-letter { all: unset; }

/* Contact Form 7 */
.wpcf7 form p { margin: 0 0 18px; }
.wpcf7 label { display: block; font: 600 14px var(--f-ui); color: var(--ink); }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
	width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid var(--ink-3); border-radius: var(--radius);
	font: 400 16px var(--f-ui); background: var(--white); color: var(--ink);
}
.wpcf7 textarea { min-height: 180px; }
.wpcf7 input[type="submit"] { height: 48px; padding: 0 28px; background: var(--green); color: var(--white); border: 0; border-radius: var(--radius); font: 600 15px var(--f-ui); cursor: pointer; }
.wpcf7 input[type="submit"]:hover { background: var(--ink); }

/* ---------- 404 / empty ---------- */
.notfound { text-align: center; padding: 64px 0 24px; }
.notfound .big { font: 600 clamp(80px, 14vw, 160px)/1 var(--f-head); color: var(--green); }
.notfound h1 { font-size: 32px; margin: 12px 0; }
.notfound p { color: var(--ink-2); font: 400 18px var(--f-body); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c4cdc7; margin-top: 0; }
.site-footer a:hover { color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand img { max-height: 60px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-brand p { font: 400 15px/1.6 var(--f-body); margin: 0 0 16px; }
.site-footer h2 { font: 700 12px var(--f-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 9px; font-size: 14.5px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px 0 28px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #8d9891; }
.footer-legal p { margin: 0; max-width: 760px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.une__grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
	.une__lead { grid-row: auto; grid-column: 1 / -1; }
	.une__col + .une__col { border-left: 0; padding-left: 0; }
	.une__col:nth-child(3) { border-left: 1px solid var(--rule); padding-left: 32px; }
	.blocks__grid { grid-template-columns: 1fr; }
	.band__grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.with-sidebar, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.sidebar--sticky { position: static; }
	.article-body { margin: 0 auto; }
	.article-layout .sidebar { max-width: 700px; margin: 0 auto; width: 100%; }
	.footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .primary-nav { top: 0; }
	.topbar nav { display: none; }
	.masthead .wrap { grid-template-columns: auto 1fr auto; padding-top: 12px; padding-bottom: 12px; gap: 12px; }
	.masthead__brand { grid-column: 2; }
	.masthead__brand img { max-height: 48px; }
	.masthead__tagline { display: none; }
	.menu-toggle { display: inline-flex; grid-column: 1; grid-row: 1; }
	.masthead__actions { grid-column: 3; grid-row: 1; }
	.search-toggle .label { display: none; }
	.primary-nav { display: none; position: static; border-bottom-width: 1px; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; }
	.primary-nav a { padding: 14px var(--gutter); border-bottom: 1px solid var(--rule); margin: 0; }
	.une { padding-top: 20px; }
	.une__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.une__col:nth-child(3) { border-left: 0; padding-left: 0; }
	.rubrique { grid-template-columns: minmax(0, 1fr); }
	.river .card--row { grid-template-columns: 120px 1fr; gap: 14px; padding: 16px 0; }
	.river .card--row .card__title { font-size: 18px; }
	.river .card--row .card__excerpt { display: none; }
	.grid-3 { grid-template-columns: minmax(0, 1fr); }
	.band__grid, .grid-4 { grid-template-columns: minmax(0, 1fr); }
	.band .card--overlay .thumb { aspect-ratio: 16 / 10; }
	.prose { font-size: 18px; }
	.prose h2 { font-size: 25px; }
	.prose h3 { font-size: 21px; }
	.article-head { padding-top: 24px; }
	.article-figure { padding: 0; }
	.author-box { grid-template-columns: 64px 1fr; }
	.author-box img { width: 64px; height: 64px; }
	.post-nav { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.topbar, .primary-nav, .masthead__actions, .sidebar, .share, .related, .site-footer, .progress, .toc { display: none !important; }
	.article-layout { display: block; }
}
