/* =========================================================
 * WordPress-specific overrides & additions
 * (loaded after styles/pages/article — wins specificity by cascade order)
 * ========================================================= */

/* ---------- Accessibility ---------- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	-webkit-clip-path: inset(50%);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	background: var(--bs-black);
	color: var(--bs-green);
	padding: 10px 16px;
	z-index: 100000;
	border-radius: var(--r-sm);
	text-decoration: none;
	font-weight: 600;
	transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 16px; }

/* ---------- WP core alignment classes ---------- */
.alignleft   { float: left;  margin: 0 var(--s-5) var(--s-4) 0; }
.alignright  { float: right; margin: 0 0 var(--s-4) var(--s-5); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide   { max-width: 1040px; margin-left: auto; margin-right: auto; }
.alignfull   {
	max-width: 100vw;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-caption { max-width: 100%; margin-bottom: var(--s-5); }
.wp-caption-text, .gallery-caption { font-size: var(--t-sm); color: var(--fg-3); text-align: center; padding-top: var(--s-2); }
.sticky { position: relative; }
.bypostauthor { }

.wp-block-image figcaption { font-size: var(--t-sm); color: var(--fg-3); text-align: center; }

/* ---------- Search form ---------- */
.search-form__inner {
	display: flex;
	gap: var(--s-2);
	align-items: center;
	background: var(--bs-white);
	border: 1px solid var(--border-2);
	border-radius: var(--r-pill);
	padding: 6px 6px 6px 16px;
	max-width: 520px;
	margin: 0 auto;
}
.search-form__icon { flex-shrink: 0; color: var(--fg-3); }
.search-form__field {
	flex: 1;
	border: 0;
	outline: 0;
	background: transparent;
	font-family: var(--font-body);
	font-size: var(--t-base);
	color: var(--fg-1);
	padding: 8px 0;
	min-width: 0;
}
.search-form__field::placeholder { color: var(--fg-3); }
.search-form__submit { padding: 8px 16px; font-size: 14px; }

.search-overlay .search-form { max-width: 720px; margin: 0 auto; }
.search-overlay .search-form__inner {
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--bs-green);
	border-radius: 0;
	padding: 8px 0;
}
.search-overlay .search-form__icon { color: var(--bs-green); }
.search-overlay .search-form__field {
	color: var(--bs-green);
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 28px;
	background: transparent;
}
.search-overlay .search-form__field::placeholder { color: rgba(14, 216, 148, 0.4); }
.search-overlay .search-form__submit { display: none; }

/* ---------- Footer menu ---------- */
.footer__menu {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.footer__menu li a {
	color: rgba(235, 245, 223, 0.7);
	text-decoration: none;
	transition: color 0.15s;
}
.footer__menu li a:hover { color: var(--bs-green); }

/* ---------- Site nav walker (plain <a> siblings) ---------- */
.site-nav > a { margin: 0; }

/* ---------- Archive head / Search head ---------- */
.archive-head {
	padding: var(--s-8) 0 var(--s-5);
}
.archive-head__inner {
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}
.archive-head .eyebrow {
	display: inline-block;
	margin-bottom: var(--s-3);
	color: var(--bs-green-700);
}
.archive-head__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(32px, 4vw + 8px, 60px);
	letter-spacing: -0.02em;
	line-height: 1.08;
	margin: 0 0 var(--s-4);
}
.archive-head__title em {
	font-style: normal;
	color: var(--bs-green-700);
	font-weight: 400;
}
.archive-head__desc {
	color: var(--fg-2);
	font-size: var(--t-md);
	line-height: 1.6;
	margin-bottom: var(--s-4);
}
.archive-head__meta {
	color: var(--fg-3);
	font-size: var(--t-sm);
	margin-bottom: var(--s-5);
}
.archive-head__search { margin-top: var(--s-5); }

/* ---------- Author head ---------- */
.author-head {
	padding: var(--s-8) 0 var(--s-5);
}
.author-head__inner {
	max-width: 880px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--s-6);
	align-items: center;
}
.author-head__avatar img {
	width: 120px;
	height: 120px;
	border-radius: 999px;
	display: block;
	border: 3px solid var(--bs-green);
}
.author-head__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(28px, 3vw + 8px, 48px);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin: var(--s-2) 0 var(--s-3);
}
.author-head__bio {
	color: var(--fg-2);
	line-height: 1.6;
	margin-bottom: var(--s-3);
}
.author-head__meta {
	color: var(--fg-3);
	font-size: var(--t-sm);
}
@media (max-width: 620px) {
	.author-head__inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ---------- No results ---------- */
.no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: var(--s-8) var(--s-5);
	background: var(--bs-white);
	border-radius: var(--r-lg);
	border: 1px dashed var(--border-2);
}
.no-results__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 36px;
	margin-bottom: var(--s-3);
}
.no-results__text {
	color: var(--fg-2);
	max-width: 520px;
	margin: 0 auto var(--s-5);
	line-height: 1.6;
}
.no-results__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-4);
}

/* ---------- 404 ---------- */
.error-404 {
	padding: var(--s-9) 0 var(--s-7);
	text-align: center;
}
.error-404__inner {
	max-width: 720px;
	margin: 0 auto;
}
.error-404__code {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(96px, 15vw, 200px);
	line-height: 1;
	color: var(--bs-green);
	-webkit-text-stroke: 2px var(--bs-black);
	margin-bottom: var(--s-5);
	letter-spacing: -0.04em;
}
.error-404__title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: clamp(32px, 4vw + 8px, 56px);
	letter-spacing: -0.02em;
	line-height: 1.1;
	margin-bottom: var(--s-4);
}
.error-404__text {
	color: var(--fg-2);
	font-size: var(--t-md);
	line-height: 1.6;
	max-width: 520px;
	margin: 0 auto var(--s-6);
}
.error-404__search { margin-bottom: var(--s-6); }
.error-404__actions { display: flex; justify-content: center; gap: var(--s-3); flex-wrap: wrap; }

/* ---------- Icon buttons ---------- */
.icon-btn {
	background: transparent;
	border: 0;
	cursor: pointer;
	width: 40px;
	height: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 999px;
	color: var(--fg-1);
	transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--bs-black); color: var(--bs-green); }

/* ---------- Pagination : disabled state ---------- */
.pagination__btn.is-disabled {
	opacity: 0.35;
	cursor: not-allowed;
	pointer-events: none;
}

/* ---------- Pagination dots ---------- */
.pagination__num.dots {
	background: transparent;
	border: 0;
	cursor: default;
}

/* ---------- Card link wrapper ---------- */
.card__link {
	display: grid;
	grid-template-rows: auto 1fr;
	color: inherit;
	text-decoration: none;
	height: 100%;
}
.card__link:hover { color: inherit; }
.card__media--placeholder {
	background: var(--bs-green-100);
	display: grid;
	place-items: center;
	aspect-ratio: 16 / 10;
}
.card__media--placeholder img {
	max-width: 50%;
	max-height: 50%;
	object-fit: contain;
}

/* ---------- Section head link variant ---------- */
.section-head__link {
	font-weight: 600;
	color: var(--bs-green-700);
	text-decoration: none;
	font-size: var(--t-sm);
}
.section-head__link:hover { color: var(--bs-black); }

/* ---------- Widget desc ---------- */
.widget__desc {
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
}

/* ---------- Newsletter inline (article sidebar) ---------- */
.newsletter-form--inline {
	background: rgba(0,0,0,0.08);
	border: 1px solid rgba(0,0,0,0.15);
}
.newsletter-form--inline input { color: var(--bs-black); }
.newsletter-form--inline input::placeholder { color: rgba(0,0,0,0.5); }

/* ---------- Share button — copied feedback ---------- */
.share-btn.is-copied {
	background: var(--bs-green);
	color: var(--bs-black);
	border-color: var(--bs-black);
}
.share-btn.is-copied::after {
	content: attr(data-label, 'Copié !');
}

/* ---------- Author avatar with WP avatar image ---------- */
.author-avatar--img,
.author-bio__avatar--img {
	padding: 0;
	overflow: hidden;
}
.author-avatar--img img,
.author-bio__avatar--img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: inherit;
}

/* ---------- WP comments ---------- */
.comments-area {
	margin-top: var(--s-7);
	padding-top: var(--s-6);
	border-top: 1px solid var(--border-1);
}
.comments-title {
	font-family: var(--font-display);
	font-weight: 500;
	font-size: var(--t-2xl);
	margin-bottom: var(--s-5);
}
.comment-list {
	list-style: none;
	padding: 0;
	margin: 0 0 var(--s-6);
	display: flex;
	flex-direction: column;
	gap: var(--s-5);
}
.comment-body {
	padding: var(--s-5);
	background: var(--bs-white);
	border: 1px solid var(--border-1);
	border-radius: var(--r-md);
}
.comment-author .fn { font-weight: 600; }
.comment-meta { font-size: var(--t-sm); color: var(--fg-3); margin-bottom: var(--s-3); }
.comment-reply-link {
	display: inline-block;
	margin-top: var(--s-3);
	font-size: var(--t-sm);
	color: var(--bs-green-700);
	font-weight: 600;
}
.comment-form p { margin-bottom: var(--s-3); }
.comment-form label { display: block; font-size: var(--t-sm); color: var(--fg-2); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--border-2);
	border-radius: var(--r-sm);
	font-family: var(--font-body);
	font-size: var(--t-base);
	background: var(--bs-white);
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit,
.form-submit .submit {
	background: var(--bs-black);
	color: var(--bs-green);
	border: 2px solid var(--bs-black);
	padding: 12px 24px;
	border-radius: var(--r-pill);
	font-weight: 600;
	cursor: pointer;
	font-family: var(--font-body);
}
.comment-form .submit:hover { transform: translateY(-1px); }

/* ---------- Page-links (multi-page posts) ---------- */
.page-links {
	margin-top: var(--s-6);
	padding: var(--s-4) 0;
	border-top: 1px solid var(--border-1);
	display: flex;
	align-items: center;
	gap: var(--s-3);
	font-size: var(--t-sm);
	color: var(--fg-2);
}
.page-links a, .page-links__num {
	display: inline-grid;
	place-items: center;
	min-width: 32px;
	height: 32px;
	padding: 0 10px;
	border: 1px solid var(--border-2);
	border-radius: var(--r-sm);
	text-decoration: none;
	color: var(--fg-1);
}
.page-links a:hover { background: var(--bs-black); color: var(--bs-green); border-color: var(--bs-black); }

/* ---------- Article column wrapper ---------- */
.article-column { min-width: 0; }
.article-body--page {
	max-width: 880px;
	margin: 0 auto;
}

/* ---------- Responsive spacing for hero card meta links ---------- */
.hero__eyebrow a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.hero__title a { color: inherit; text-decoration: none; }
.hero__title a:hover { color: var(--bs-green); }
