/* ==========================================================================
   ademain – Le Blog · Styles principaux
   Identité reprise de ademain.fr
   ========================================================================== */

:root {
	/* Couleurs relevées sur ademain.fr */
	--c-green: #093234;      /* vert profond : texte, fonds sombres */
	--c-beige: #ede7e2;      /* beige : fond de page */
	--c-mint: #b2fac3;       /* menthe : accents, survols */
	--c-coral: #ff4f58;      /* corail : CTA, logo pied de page */
	--c-white: #ffffff;
	--c-green-25: rgba(9, 50, 52, .25);
	--c-green-60: rgba(9, 50, 52, .6);

	/* Typographies */
	--f-sans: "neue", "Neue Haas Unica", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--f-serif: "garamond-premier-pro", "EB Garamond", Garamond, Georgia, serif;

	/* Échelle */
	--fs-display: clamp(40px, 4.25vw, 78px);
	--fs-h2-content: clamp(30px, 3vw, 46px);

	/* Mise en page */
	--pad: 4rem;
	--maxw: 1240px;
	--content: 780px;
	--radius-card: 30px;
	--radius-block: 16px;
	--radius-pill: 50px;
	--ease: cubic-bezier(.65, 0, .35, 1);
}

@media (max-width: 960px) { :root { --pad: 2rem; } }
@media (max-width: 640px) { :root { --pad: 1.25rem; --radius-card: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--f-sans);
	font-size: 16px;
	line-height: 1.4444;
	color: var(--c-green);
	background: var(--c-beige);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--c-green); }

h1, h2, h3, h4, h5, h6 { margin: 0; color: inherit; }

h1, .h1 {
	font-size: var(--fs-display);
	line-height: 1.05;
	font-weight: 900;
	hyphens: manual;
}

h3, .h3 {
	font-family: var(--f-serif);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 600;
}

h4, .h4 { font-size: 24px; line-height: 1.25; font-weight: 700; }

p { margin: 0 0 1em; }

::selection { background: var(--c-mint); color: var(--c-green); }

:focus-visible { outline: 2px solid var(--c-coral); outline-offset: 3px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	z-index: 10000; top: 1rem; left: 1rem; padding: .75rem 1.25rem;
	background: var(--c-mint); color: var(--c-green); border-radius: var(--radius-pill);
}

.container {
	width: 100%;
	max-width: calc(var(--maxw) + var(--pad) * 2);
	margin: 0 auto;
	padding: 0 var(--pad);
}

/* ---------- Boutons (pilule + remplissage menthe au survol) ---------- */
.btn,
.wp-block-button__link,
.wp-element-button,
input[type="submit"] {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5em;
	width: max-content;
	max-width: 100%;
	padding: 15px 34px;
	border: 2px solid transparent;
	border-radius: var(--radius-pill);
	overflow: hidden;
	font-family: var(--f-sans);
	font-size: 18px;
	line-height: 1.2;
	font-weight: 400;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: color .3s ease-in-out, border-color .3s ease-in-out, background-color .3s;
}
.btn::before,
.wp-block-button__link::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 100%;
	right: 100%;
	width: 1em;
	height: 1em;
	border-radius: 50%;
	background: var(--c-mint);
	transform: translate3d(50%, -50%, 0) scale3d(0, 0, 1);
	transition: transform .45s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before,
a:hover > .btn::before,
.wp-block-button__link:hover::before {
	transform: translate3d(50%, -50%, 0) scale3d(40, 40, 1);
}
.btn:hover, .btn:focus-visible, a:hover > .btn,
.wp-block-button__link:hover { color: var(--c-green); }

.btn--red,
.wp-block-button.is-style-ademain-red .wp-block-button__link,
input[type="submit"] { background: var(--c-coral); color: var(--c-white); }
.btn--red:hover { border-color: var(--c-mint); }

.btn--outline,
.wp-block-button.is-style-ademain-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--c-green);
	border-color: var(--c-green);
}

.btn--outline-light {
	background: var(--c-green);
	color: var(--c-beige);
	border-color: var(--c-beige);
}
.btn--outline-light:hover, a:hover > .btn--outline-light { border-color: var(--c-mint); }

/* Bouton par défaut de l'éditeur */
.wp-block-button__link { background: var(--c-green); color: var(--c-beige); }

/* Lien souligné (le soulignement se rétracte au survol) */
.link-underline,
.header-links a {
	position: relative;
	text-decoration: none;
	color: var(--c-green);
	white-space: nowrap;
}
.link-underline::after,
.header-links a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px;
	background: currentColor;
	transform: scaleX(1);
	transform-origin: bottom left;
	transition: transform .3s ease-in-out;
}
.link-underline:hover::after,
.header-links a:hover::after { transform: scaleX(0); transform-origin: bottom right; }

/* Pilules (catégories, tags) */
.pill {
	display: inline-block;
	padding: 8px 18px;
	border: 2px solid var(--c-green);
	border-radius: var(--radius-pill);
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	color: var(--c-green);
	transition: background .25s, color .25s, border-color .25s;
}
.pill:hover { background: var(--c-mint); border-color: var(--c-mint); }
.pill.is-active { background: var(--c-green); color: var(--c-beige); }

.tag {
	display: inline-block;
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .02em;
	text-decoration: none;
	margin-bottom: 1.25rem;
}
.tag--mint { background: var(--c-mint); color: var(--c-green); }

/* ---------- Bandeau supérieur ---------- */
.topbar {
	background: var(--c-green);
	color: var(--c-mint);
	text-align: center;
}
.topbar__text {
	margin: 0;
	padding: 1rem var(--pad);
	font-size: 18px;
	line-height: 1.2;
	font-weight: 200;
}
.topbar__icon { display: inline-block; width: 1em; height: 1em; vertical-align: -2px; margin-right: .25em; }
.topbar__icon svg { width: 100%; height: 100%; }
.topbar a { color: var(--c-mint); }
@media (max-width: 640px) { .topbar__text { font-size: 14px; padding-top: .75rem; padding-bottom: .75rem; } }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--c-beige);
	transition: box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px var(--c-green-25); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 104px;
	transition: min-height .3s;
}
.site-header.is-scrolled .site-header__inner { min-height: 80px; }

.site-logo { display: inline-block; color: var(--c-green); line-height: 0; }
.site-logo svg { width: clamp(120px, 11vw, 170px); height: auto; }
.custom-logo-link img { width: auto; max-height: 64px; }

.site-header__tools { display: flex; align-items: center; gap: 2rem; }
.header-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }
.header-cta { padding: 13px 30px; }

.burger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 5px;
	padding: 12px 12px;
	border: 0;
	border-radius: 12px;
	background: var(--c-beige);
	cursor: pointer;
	transition: background .3s;
}
.burger span:not(.screen-reader-text) {
	display: block;
	height: 2px;
	border-radius: 50px;
	background: var(--c-green);
	transition: transform .3s ease, opacity .1s ease, width .3s ease, background .3s;
}
.burger span:nth-child(1) { width: 26px; }
.burger span:nth-child(2) { width: 13px; }
.burger span:nth-child(3) { width: 20px; }
.burger:hover span:nth-child(2) { width: 26px; }

.nav-open .burger { background: var(--c-beige); }
.nav-open .burger span:nth-child(1) { width: 24px; transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { width: 24px; transform: translateY(-7px) rotate(-45deg); }
.nav-open .site-header { background: transparent; box-shadow: none; }
.nav-open .site-logo { color: var(--c-beige); }
.nav-open .header-cta, .nav-open .header-link, .nav-open .header-links { visibility: hidden; }

@media (max-width: 960px) {
	.header-link, .header-links { display: none; }
	.site-header__tools { gap: 1rem; }
}
@media (max-width: 640px) {
	.site-header__inner { min-height: 80px; }
	.header-cta { padding: 10px 18px; font-size: 15px; }
}
@media (max-width: 400px) { .header-cta { display: none; } }

/* ---------- Menu plein écran ---------- */
.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 800;
	background: var(--c-green);
	color: var(--c-beige);
	overflow-y: auto;
	opacity: 0;
	transition: opacity .35s var(--ease);
}
.menu-overlay.is-open { opacity: 1; }
.menu-overlay[hidden] { display: none; }

.menu-overlay__inner {
	display: grid;
	grid-template-columns: 1fr minmax(300px, 404px);
	min-height: 100%;
}
.menu-overlay__nav {
	padding: 160px var(--pad) 4rem calc(var(--pad) + 1rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.menu-overlay__list { list-style: none; margin: 0; padding: 0; }
.menu-overlay__list > li { margin: 0 0 1.4rem; }
.menu-overlay__list a {
	position: relative;
	display: inline-block;
	padding-bottom: 8px;
	font-size: clamp(1.6rem, 2.4vw, 2.5rem);
	line-height: 1.15;
	color: var(--c-beige);
	text-decoration: none;
	letter-spacing: 0;
	transform: translateY(20px);
	opacity: 0;
	transition: letter-spacing .15s ease-in-out, color .2s, transform .5s var(--ease), opacity .5s;
}
.menu-overlay__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: var(--c-mint);
}
.menu-overlay.is-open .menu-overlay__list a { transform: none; opacity: 1; }
.menu-overlay__list li:nth-child(2) a { transition-delay: 0s, 0s, .05s, .05s; }
.menu-overlay__list li:nth-child(3) a { transition-delay: 0s, 0s, .1s, .1s; }
.menu-overlay__list li:nth-child(4) a { transition-delay: 0s, 0s, .15s, .15s; }
.menu-overlay__list li:nth-child(5) a { transition-delay: 0s, 0s, .2s, .2s; }
.menu-overlay__list li:nth-child(6) a { transition-delay: 0s, 0s, .25s, .25s; }
.menu-overlay__list li:nth-child(7) a { transition-delay: 0s, 0s, .3s, .3s; }
.menu-overlay__list li:nth-child(n+8) a { transition-delay: 0s, 0s, .35s, .35s; }
.menu-overlay__list a:hover { letter-spacing: 1px; }
.menu-overlay__list .current-menu-item > a,
.menu-overlay__list .current_page_parent > a { color: var(--c-mint); }
.menu-overlay__list .sub-menu { list-style: none; margin: .75rem 0 0 1rem; padding: 0; }
.menu-overlay__list .sub-menu li { margin: 0 0 .5rem; }
.menu-overlay__list .sub-menu a { font-size: 1.1rem; padding-bottom: 2px; opacity: .85; }
.menu-overlay__list .sub-menu a::after { display: none; }

.menu-overlay__search { margin-top: 2rem; max-width: 420px; }
.menu-overlay__search .search-form { border-color: var(--c-beige); }
.menu-overlay__search .search-form__input { color: var(--c-beige); }
.menu-overlay__search .search-form__input::placeholder { color: rgba(237, 231, 226, .7); }
.menu-overlay__search .search-form__btn { color: var(--c-beige); }

.menu-overlay__push {
	background: var(--c-mint);
	color: var(--c-green);
	border-radius: 20px 0 0 20px;
	padding: 112px 64px 3rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	transform: translateX(40px);
	transition: transform .5s var(--ease);
}
.menu-overlay.is-open .menu-overlay__push { transform: none; }
.menu-overlay__flower { display: block; width: 44px; color: var(--c-green); margin-bottom: 1.5rem; }
.menu-overlay__img { width: 100%; max-width: 200px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; margin-bottom: 1.5rem; }
.menu-overlay__title { font-size: 24px; line-height: 1.15; font-weight: 500; margin: 0 0 1.5rem; }

@media (max-width: 960px) {
	.menu-overlay__inner { grid-template-columns: 1fr; }
	.menu-overlay__nav { padding-top: 130px; }
	.menu-overlay__push { border-radius: 20px 20px 0 0; padding: 2.5rem var(--pad); transform: translateY(40px); }
	.menu-overlay__img { display: none; }
}

/* ---------- Recherche ---------- */
.search-form {
	display: flex;
	align-items: center;
	border: 2px solid var(--c-green);
	border-radius: var(--radius-pill);
	padding: 4px 6px 4px 22px;
	max-width: 520px;
}
.search-form__input {
	flex: 1;
	min-width: 0;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	color: var(--c-green);
	padding: 10px 0;
	outline: 0;
}
.search-form__input::placeholder { color: var(--c-green-60); }
.search-form__btn {
	width: 44px; height: 44px;
	border: 0; border-radius: 50%;
	background: transparent;
	color: var(--c-green);
	cursor: pointer;
	display: grid; place-items: center;
	transition: background .2s;
}
.search-form__btn svg { width: 20px; height: 20px; }
.search-form__btn:hover { background: var(--c-mint); color: var(--c-green); }

/* ---------- En-tête de page ---------- */
.page-head { padding: 2.5rem 0 3rem; text-align: center; }
.page-head--single { padding-bottom: 1.5rem; }
.page-head__title { display: block; text-align: center; margin-top: 1rem; }
.page-head__intro { max-width: 640px; margin: 1.25rem auto 0; font-size: 18px; }
.page-head__intro p:last-child { margin: 0; }

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: .25rem .5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: var(--c-green-60);
}
.breadcrumb li { display: flex; align-items: center; gap: .5rem; max-width: 100%; }
.breadcrumb li + li::before {
	content: "";
	width: 0; height: 0;
	border-left: 5px solid currentColor;
	border-top: 4px solid transparent;
	border-bottom: 4px solid transparent;
}
.breadcrumb a { color: var(--c-green-60); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-green); text-decoration: underline; }
.breadcrumb [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 40ch; }
@media (max-width: 640px) { .breadcrumb ol { justify-content: center; } }

/* Filtres catégories */
.cat-filters { margin: -1rem 0 3rem; }
.cat-filters ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; list-style: none; margin: 0; padding: 0; }

/* ---------- Article à la une / hero d'article (bandeau vert) ---------- */
.feature,
.post-hero {
	display: grid;
	grid-template-columns: 1.15fr .85fr;
	gap: 3rem;
	align-items: center;
	background: var(--c-green);
	color: var(--c-beige);
	border-radius: var(--radius-block);
	padding: 32px 40px;
	margin-bottom: 3rem;
}
.post-hero--noimg { grid-template-columns: 1fr; }
.feature__text, .post-hero__text { padding: 2rem 0 2rem 1.5rem; }
.feature__title, .post-hero__title {
	font-size: clamp(32px, 3.6vw, 60px);
	line-height: 1.05;
	font-weight: 900;
	color: var(--c-beige);
	text-align: left;
}
.feature__title a { color: inherit; text-decoration: none; }
.feature__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: var(--c-mint); }
.feature__date, .post-hero__date {
	font-family: var(--f-serif);
	font-size: 24px;
	line-height: 1.25;
	font-weight: 600;
	margin: .5rem 0 1.25rem;
}
.post-hero__meta { font-size: 14px; opacity: .8; margin: -.75rem 0 1.25rem; }
.feature__excerpt, .post-hero__excerpt { font-size: 16px; line-height: 1.4444; max-width: 56ch; }
.post-hero__excerpt p:last-child { margin: 0; }
.feature .btn { margin-top: 1rem; }
.feature__img, .post-hero__img { margin: 0; border-radius: var(--radius-block); overflow: hidden; align-self: stretch; }
.feature__img img, .post-hero__img img { width: 100%; height: 100%; min-height: 320px; max-height: 460px; object-fit: cover; transition: transform .8s var(--ease); }
.feature__img:hover img { transform: scale(1.04); }

@media (max-width: 960px) {
	.feature, .post-hero { grid-template-columns: 1fr; gap: 1.5rem; padding: 24px; }
	.feature__text, .post-hero__text { padding: .5rem 0; }
	.feature__img, .post-hero__img { order: -1; }
	.feature__img img, .post-hero__img img { min-height: 220px; max-height: 320px; }
}

/* ---------- Cartes (grille « Actualités ») ---------- */
.cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem;
	margin-bottom: 3rem;
}
@media (max-width: 1150px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

.card {
	position: relative;
	background: var(--c-green);
	border-radius: var(--radius-card);
	overflow: hidden;
	transition: transform .4s var(--ease), box-shadow .4s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px var(--c-green); }
.card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--c-beige); }
.card__img { position: relative; height: 200px; overflow: hidden; background: #0f4245; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.06); }
.card__img-placeholder { display: grid; place-items: center; height: 100%; color: var(--c-mint); }
.card__img-placeholder svg { width: 80px; opacity: .9; }
.card__cat {
	position: absolute; left: 16px; top: 16px;
	padding: 5px 12px;
	border-radius: var(--radius-pill);
	background: var(--c-mint);
	color: var(--c-green);
	font-size: 12px;
	font-weight: 500;
}
.card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 28px; }
.card__title { font-size: 24px; line-height: 1.1; font-weight: 900; color: var(--c-beige); margin: 0; }
.card__meta { font-size: 14px; margin: 8px 0 12px; opacity: .85; }
.card__excerpt {
	font-size: 14px; line-height: 1.45; margin: 0 0 8px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
	opacity: .9;
}
.card__btn { margin-top: auto; padding: 12px 26px; font-size: 16px; }
.card__body .card__btn { margin-top: auto; }
.card__excerpt + .card__btn { margin-top: 16px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; margin: 1rem 0 5rem; }
.pagination ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.pagination a, .pagination span {
	display: grid; place-items: center;
	min-width: 48px; height: 48px; padding: 0 12px;
	border: 2px solid var(--c-green);
	border-radius: var(--radius-pill);
	text-decoration: none;
	color: var(--c-green);
	transition: background .2s, border-color .2s;
}
.pagination a:hover { background: var(--c-mint); border-color: var(--c-mint); }
.pagination .current { background: var(--c-green); color: var(--c-beige); }
.pagination .dots { border-color: transparent; }
.pagination svg { width: 20px; height: 20px; }

/* ---------- Invitation au scroll (fleur menthe) ---------- */
.scroll-invite { display: block; width: 100px; margin: 0 auto 3rem; transition: transform .4s var(--ease); }
.scroll-invite:hover { transform: translateY(6px) rotate(8deg); }
@media (prefers-reduced-motion: no-preference) {
	.scroll-invite img { animation: ademain-float 3s ease-in-out infinite; }
}
@keyframes ademain-float { 50% { transform: translateY(8px); } }

/* ---------- Contenu d'article ---------- */
.post-content { max-width: var(--content); margin: 0 auto; font-size: 17px; line-height: 1.6; }
.post-content > * { margin-top: 0; margin-bottom: 1.25em; }
.post-content > .alignwide { max-width: min(1100px, calc(100vw - var(--pad) * 2)); margin-left: 50%; transform: translateX(-50%); width: min(1100px, calc(100vw - var(--pad) * 2)); }
.post-content > .alignfull { width: 100vw; max-width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.post-content h2 {
	font-size: var(--fs-h2-content);
	line-height: 1.05;
	font-weight: 900;
	text-align: left;
	margin: 2.2em 0 .6em;
}
.post-content h3 { font-size: 26px; margin: 1.8em 0 .5em; }
.post-content h4 { font-size: 20px; margin: 1.6em 0 .5em; }
.post-content h2:first-child, .post-content h3:first-child { margin-top: 0; }

.post-content a:not(.wp-block-button__link):not(.btn) {
	color: var(--c-green);
	text-decoration: underline;
	text-decoration-thickness: 2px;
	text-decoration-color: var(--c-coral);
	text-underline-offset: 3px;
	transition: background .2s;
}
.post-content a:not(.wp-block-button__link):not(.btn):hover { background: var(--c-mint); text-decoration-color: var(--c-green); }

.post-content strong { font-weight: 700; }

.post-content ul, .post-content ol { padding-left: 1.5em; }
.post-content li { margin-bottom: .4em; }
.post-content ul { list-style: none; padding-left: 1.6em; }
.post-content ul > li { position: relative; }
.post-content ul > li::before {
	content: "";
	position: absolute;
	left: -1.5em; top: .35em;
	width: .8em; height: .8em;
	background: var(--c-coral);
	-webkit-mask: url("../images/flower.svg") center / contain no-repeat;
	mask: url("../images/flower.svg") center / contain no-repeat;
}
.post-content ol > li::marker { font-weight: 700; color: var(--c-coral); }

.post-content blockquote,
.wp-block-quote {
	margin: 2em 0;
	padding: 1.5em 1.75em;
	border-left: 0;
	border-radius: var(--radius-block);
	background: var(--c-mint);
	font-family: var(--f-serif);
	font-size: 24px;
	line-height: 1.3;
	font-weight: 600;
}
.post-content blockquote p:last-of-type { margin-bottom: 0; }
.post-content blockquote cite, .wp-block-quote cite {
	display: block; margin-top: .75em;
	font-family: var(--f-sans); font-size: 14px; font-style: normal; font-weight: 400;
}
.wp-block-quote.is-style-ademain-fat,
.wp-block-pullquote {
	background: transparent;
	padding: 1em 0;
	text-align: center;
	font-family: var(--f-sans);
	font-size: clamp(26px, 2.8vw, 40px);
	font-weight: 900;
	line-height: 1.1;
	border-top: 2px solid var(--c-green);
	border-bottom: 2px solid var(--c-green);
	border-radius: 0;
}

.post-content figure { margin-left: 0; margin-right: 0; }
.post-content img { border-radius: var(--radius-block); }
.post-content figcaption, .wp-element-caption { font-size: 14px; color: var(--c-green-60); margin-top: .6em; text-align: center; }
.wp-block-image.is-style-ademain-rounded img { border-radius: var(--radius-card); }

.post-content hr, .wp-block-separator {
	border: 0; height: 1px; background: var(--c-green); margin: 3em auto; opacity: 1;
}

.post-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.post-content th, .post-content td { padding: .75em 1em; border-bottom: 1px solid var(--c-green-25); text-align: left; }
.post-content thead th { background: var(--c-green); color: var(--c-beige); font-weight: 500; }
.post-content thead th:first-child { border-top-left-radius: 12px; }
.post-content thead th:last-child { border-top-right-radius: 12px; }

.post-content code { background: rgba(9, 50, 52, .08); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.post-content pre { background: var(--c-green); color: var(--c-beige); padding: 1.25em; border-radius: var(--radius-block); overflow: auto; }

.wp-block-group.is-style-ademain-card,
.wp-block-group.has-background { border-radius: var(--radius-card); padding: 2.25rem 2.5rem; }
.wp-block-group.is-style-ademain-card h2 { margin-top: 0; }
.wp-block-group.is-style-ademain-card > :last-child { margin-bottom: 0; }

.wp-block-buttons { gap: 1rem; }
.wp-block-button { margin: 0; }

.wp-block-embed iframe { border-radius: var(--radius-block); }
.wp-block-details { border-bottom: 1px solid var(--c-green-25); padding: 1em 0; }
.wp-block-details summary { font-weight: 700; cursor: pointer; }

.page-cover { max-width: 1100px; margin: 0 auto 3rem; border-radius: var(--radius-block); overflow: hidden; }
.page-cover img { width: 100%; }

/* Alignements classiques */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Pied d'article ---------- */
.post-footer {
	max-width: var(--content);
	margin: 3rem auto 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--c-green);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1.25rem;
}
.post-tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.post-tags .pill { padding: 6px 14px; font-size: 14px; }

.share { display: flex; align-items: center; gap: .75rem; }
.share__label { font-size: 14px; }
.share ul { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.share a {
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--c-green);
	color: var(--c-beige);
	transition: background .2s, color .2s;
}
.share a:hover { background: var(--c-mint); color: var(--c-green); }
.share svg { width: 18px; height: 18px; }

.after-post { max-width: var(--content); margin: 3rem auto 0; }

.post-nav {
	max-width: var(--content);
	margin: 3rem auto 5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
}
.post-nav__item {
	display: flex; flex-direction: column; gap: .5rem;
	padding: 1.25rem 1.5rem;
	border: 2px solid var(--c-green);
	border-radius: 20px;
	text-decoration: none;
	transition: background .25s, border-color .25s;
}
.post-nav__item:hover { background: var(--c-mint); border-color: var(--c-mint); }
.post-nav__item--next { grid-column: 2; text-align: right; align-items: flex-end; }
.post-nav__label { display: inline-flex; align-items: center; gap: .4rem; font-size: 14px; }
.post-nav__label svg { width: 18px; height: 18px; }
.post-nav__title { font-weight: 700; line-height: 1.2; }
@media (max-width: 640px) {
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__item--next { grid-column: 1; }
}

/* À lire aussi */
.related { padding: 4rem 0 2rem; border-top: 1px solid var(--c-green-25); }
.related__title { font-size: var(--fs-display); line-height: 1.05; font-weight: 900; text-align: center; margin-bottom: 3rem; }

/* ---------- Commentaires ---------- */
.comments { max-width: var(--content); margin: 0 auto 5rem; }
.comments__title, .comment-reply-title { font-size: 32px; font-weight: 900; margin-bottom: 1.5rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 3rem; }
.comment-list .children { list-style: none; padding-left: 2rem; }
.comment-body { background: rgba(255, 255, 255, .45); border-radius: 20px; padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.comment-author { display: flex; align-items: center; gap: .75rem; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; margin: .25rem 0 .75rem; }
.comment-metadata a { color: var(--c-green-60); }
.reply a { font-size: 14px; }
.comment-form label { display: block; font-size: 14px; margin-bottom: .35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	padding: 14px 18px;
	border: 2px solid var(--c-green);
	border-radius: 16px;
	background: transparent;
	font: inherit;
	color: var(--c-green);
}
.comment-form textarea { min-height: 160px; }
.comment-form input:focus, .comment-form textarea:focus { outline: 0; border-color: var(--c-coral); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }

/* ---------- Vide / 404 ---------- */
.empty, .notfound { text-align: center; max-width: 620px; margin: 0 auto 6rem; }
.empty .search-form, .notfound .search-form { margin: 2rem auto; }
.empty__flower { display: block; width: 90px; margin: 0 auto 1.5rem; color: var(--c-mint); }
.empty h2 { font-size: 32px; font-weight: 900; margin-bottom: 1rem; }
.notfound__flower { position: relative; display: block; width: 200px; margin: 0 auto 2rem; color: var(--c-mint); }
.notfound__flower b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 48px; font-weight: 900; color: var(--c-green); }
.notfound p { font-size: 18px; margin-top: 1.5rem; }

/* ---------- Pied de page ---------- */
.site-footer {
	margin-top: 4rem;
	background: var(--c-green);
	color: var(--c-beige);
	padding: 72px 0 32px;
}
.site-footer__top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 4.5rem; }
.site-footer .site-logo { color: var(--c-coral); }
.site-footer .site-logo svg { width: clamp(150px, 14vw, 210px); }
.site-footer .logo-tagline { display: none; }
.socials { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.socials a { display: block; width: 32px; height: 32px; transition: transform .25s var(--ease); }
.socials a:hover { transform: translateY(-3px); }
.socials svg { width: 100%; height: 100%; }
.site-footer__links { display: grid; gap: .75rem; }
.footer-links { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.6; }
.footer-links li + li::before { content: " - "; white-space: pre; }
.footer-links a { color: var(--c-beige); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: var(--c-mint); }
@media (max-width: 640px) {
	.site-footer { padding-top: 48px; }
	.site-footer__top { margin-bottom: 2.5rem; }
}

/* ---------- Animations d'apparition (inspirées des effets GSAP du site) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
	.js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Impression ---------- */
@media print {
	.topbar, .site-header, .menu-overlay, .site-footer, .scroll-invite, .share, .post-nav, .related, .comments { display: none !important; }
	body { background: #fff; }
	.post-hero { background: none; color: #000; padding: 0; }
	.post-hero__title { color: #000; }
}
