/* =========================================================================
   FERIA DE NÎMES — Feuille de style principale
   Design system : Anton (titres) + Archivo (texte), rose capote / jaune vif / crème.
   ========================================================================= */

/* ---------- Polices auto-hébergées (perf : pas de tiers Google) ---------- */
/* Archivo est variable : un seul fichier couvre 400→800. Sous-ensemble latin
   (couvre le français : accents, œ, €, « »). Préchargées dans header.php. */
@font-face {
	font-family: 'Archivo';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('../fonts/archivo-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: 'Anton';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/anton-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;
}

/* ---------- Tokens ------------------------------------------------------- */
:root {
	--cream: #fbf7f0;
	--ink: #1c1714;
	--pink: #e4187c;
	--pink-dark: #c0106a;
	--yellow: #ffd21e;
	--yellow-dark: #e0b400;

	--muted: #5a514a;
	--muted-2: #a4988a;
	--muted-3: #8a7d70;

	--border: #ece3d6;
	--border-2: #e6ddd0;
	--border-3: #d6cdbf;

	--dark: #1c1714;
	--dark-2: #262019;
	--dark-line: #3a332e;
	--on-dark: #c9bdb0;
	--on-dark-2: #a4988a;
	--on-dark-3: #7d736a;

	--pink-tint: #fff0f7;
	--hero-pink-1: #ffd2e6;
	--hero-pink-2: #ffe1ef;

	--title-font: 'Anton', sans-serif;
	--body-font: 'Archivo', system-ui, sans-serif;

	--container: 1240px;
	--gutter: 32px;
	--radius: 16px;
}

/* ---------- Base --------------------------------------------------------- */
* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--body-font);
	color: var(--ink);
	background: var(--cream);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3, h4 { margin: 0; }

.title { font-family: var(--title-font); font-weight: 400; text-transform: uppercase; }

.container {
	max-width: var(--container);
	margin: 0 auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.visually-hidden {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Boutons ------------------------------------------------------ */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	cursor: pointer;
	font-family: var(--body-font);
	font-weight: 700;
	letter-spacing: .02em;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn--pink {
	background: var(--pink);
	color: #fff;
	border-radius: 24px;
	height: 42px;
	padding: 0 20px;
	font-size: 13.5px;
	text-transform: uppercase;
}
.btn--pink:hover { background: var(--pink-dark); }
.btn--dark {
	background: var(--ink);
	color: #fff;
	border-radius: 24px;
	height: 46px;
	padding: 0 26px;
	font-size: 14px;
}
.btn--dark:hover { background: #000; }
.btn--outline {
	display: inline-flex; align-items: center;
	height: 46px; padding: 0 22px;
	border: 1.5px solid var(--ink); border-radius: 24px;
	font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .02em;
	color: var(--ink); background: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--outline:hover { background: var(--ink); color: #fff; }

/* =========================================================================
   Barre d'annonce
   ========================================================================= */
.topbar {
	background: var(--dark);
	color: #f3e7d8;
	font-size: 12.5px;
	letter-spacing: .02em;
}
.topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 9px;
	padding-bottom: 9px;
	gap: 16px;
}
.topbar__tag { display: flex; align-items: center; gap: 8px; }
.topbar__dot {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--yellow); display: inline-block; flex: none;
}
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__lang { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.topbar__lang a { color: var(--on-dark-3); }
.topbar__lang a.is-active { color: #fff; }
.topbar__sep { width: 1px; height: 14px; background: var(--dark-line); }
.topbar__news { color: var(--on-dark); font-weight: 600; }
.topbar__news:hover { color: #fff; }

/* =========================================================================
   Header sticky
   ========================================================================= */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: #fff;
	border-bottom: 1px solid var(--border);
}
.site-header__inner {
	height: 74px;
	display: flex;
	align-items: center;
	gap: 30px;
}
.brand { display: inline-flex; align-items: baseline; gap: 2px; flex: none; }
.brand__word {
	font-family: var(--title-font);
	font-size: 30px;
	letter-spacing: .01em;
	color: var(--pink);
	line-height: 1;
}
.brand__dot {
	width: 9px; height: 9px; border-radius: 50%;
	background: var(--yellow); align-self: flex-end; margin-bottom: 4px;
}

.nav-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 26px;
}
.nav-menu a {
	display: block;
	padding: 26px 0;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--muted);
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu .current-menu-item > a,
.nav-menu .is-active > a,
.nav-menu a.is-active {
	color: var(--ink);
	border-bottom-color: var(--pink);
}

/* --- Sous-menus déroulants (rubriques « infos pratiques ») --- */
.nav-menu > li { position: relative; }
.nav-menu .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	opacity: .55;
}
.nav-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: -14px;
	min-width: 224px;
	list-style: none;
	margin: 0;
	padding: 8px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: 0 16px 36px rgba(28, 23, 20, .13);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .14s ease, transform .14s ease, visibility .14s;
	z-index: 60;
}
.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav-menu .sub-menu a {
	padding: 9px 14px;
	border-bottom: none;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ink);
	white-space: nowrap;
}
.nav-menu .sub-menu a:hover { background: var(--pink-tint); color: var(--pink); }

.header-actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 14px;
	flex: none;
}
.icon-btn {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid var(--border-2);
	background: #fff;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	color: var(--muted);
	font-size: 16px;
	transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

.nav-toggle { display: none; }

/* =========================================================================
   Hero (page annuaire / archives)
   ========================================================================= */
.page-hero {
	background: var(--pink);
	color: #fff;
}
.page-hero__inner { padding: 48px 0 54px; }
.breadcrumb { font-size: 12.5px; color: var(--hero-pink-1); letter-spacing: .04em; margin-bottom: 10px; }
.breadcrumb a { color: var(--hero-pink-1); }
.breadcrumb a:hover { color: #fff; }
.page-hero__title {
	font-family: var(--title-font);
	font-weight: 400;
	font-size: clamp(40px, 6vw, 60px);
	line-height: .96;
	margin: 0 0 14px;
	text-transform: uppercase;
}
.page-hero__lead {
	font-size: 17px;
	line-height: 1.5;
	color: var(--hero-pink-2);
	max-width: 560px;
	margin: 0 0 26px;
}

/* Barre de recherche */
.searchbar {
	display: flex;
	background: #fff;
	border-radius: 30px;
	padding: 7px 7px 7px 20px;
	max-width: 560px;
	box-shadow: 0 8px 30px rgba(28, 23, 20, .18);
}
.searchbar__input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--body-font);
	font-size: 15px;
	color: var(--ink);
}
.searchbar__input::placeholder { color: var(--muted-2); }

/* =========================================================================
   Layout annuaire (sidebar + contenu)
   ========================================================================= */
.annuaire {
	padding: 40px 0 80px;
	display: grid;
	grid-template-columns: 252px 1fr;
	gap: 36px;
	align-items: start;
}

.annuaire__sidebar {
	position: sticky;
	top: 96px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* --- Carte filtres --- */
.filters {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px;
}
.filters__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.filters__title { font-family: var(--title-font); font-size: 19px; text-transform: uppercase; }
.filters__reset { font-size: 12px; font-weight: 700; color: var(--pink); }
.filters__reset:hover { color: var(--pink-dark); }

.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted-2);
	margin-bottom: 12px;
}
.filter-list { display: flex; flex-direction: column; gap: 11px; }

.check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	cursor: pointer;
}
.check__box {
	width: 18px; height: 18px;
	border-radius: 5px;
	border: 1.5px solid var(--border-3);
	flex: none;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px;
	transition: background-color .12s ease, border-color .12s ease;
}
.check__box--on {
	background: var(--pink);
	border-color: var(--pink);
	color: #fff;
}
.check__label { flex: 1; }
.check__count { font-size: 12px; color: var(--muted-2); }

.filter-more { font-size: 12.5px; font-weight: 700; color: var(--pink); margin-top: 2px; display: inline-block; }
.filter-more:hover { color: var(--pink-dark); }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
	height: 30px;
	padding: 0 12px;
	border-radius: 16px;
	border: 1.5px solid var(--border-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	background: none;
	font-family: var(--body-font);
	transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.chip--on {
	background: var(--pink);
	border-color: var(--pink);
	color: #fff;
	font-weight: 700;
}

/* --- Encart « Bon plan » --- */
.promo {
	background: var(--dark);
	border-radius: var(--radius);
	padding: 20px;
	color: #fff;
}
.promo__kicker {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--yellow);
	margin-bottom: 8px;
}
.promo__title { font-weight: 700; font-size: 15px; line-height: 1.3; margin-bottom: 6px; }
.promo__text { font-size: 12.5px; color: var(--on-dark-2); line-height: 1.5; margin: 0 0 14px; }
.promo__cta {
	display: flex; align-items: center; justify-content: center;
	height: 40px;
	background: var(--pink);
	color: #fff;
	border-radius: 20px;
	font-weight: 700;
	font-size: 13px;
	transition: background-color .15s ease;
}
.promo__cta:hover { background: var(--pink-dark); }

/* --- Barre d'outils du contenu --- */
.annuaire__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
	flex-wrap: wrap;
	gap: 12px;
}
.result-count { font-size: 14px; color: var(--muted); }
.result-count strong { color: var(--ink); }
.result-count .accent { color: var(--pink); font-weight: 600; }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sort__label { color: var(--muted-2); }
.sort__select {
	display: inline-flex; align-items: center; gap: 8px;
	height: 38px; padding: 0 14px;
	border: 1.5px solid var(--border-2);
	border-radius: 20px;
	font-weight: 600;
	cursor: pointer;
}

/* --- Grille de cartes ferias --- */
.feria-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.feria-card {
	display: block;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.feria-card:hover {
	border-color: var(--pink);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(28, 23, 20, .08);
}
.feria-card__media {
	position: relative;
	height: 150px;
	background: linear-gradient(135deg, #f0e6d8 0%, #e9dcc9 100%);
}
.feria-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feria-card__placeholder {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: var(--muted-2);
	font-family: var(--title-font);
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.badge {
	position: absolute;
	border-radius: 20px;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	line-height: 1;
}
.badge--country { top: 10px; left: 10px; background: #fff; color: var(--ink); }
.badge--month { top: 10px; right: 10px; background: var(--pink); color: #fff; font-size: 11px; }
.feria-card__body { padding: 15px 15px 17px; }
.feria-card__title { font-family: var(--title-font); font-size: 20px; line-height: 1; margin-bottom: 6px; }
.feria-card__place { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.feria-card__meta { font-size: 11.5px; font-weight: 700; color: var(--pink); letter-spacing: .03em; }

/* --- Bandeau affilié --- */
.affiliate {
	margin: 20px 0;
	border: 1px dashed var(--border-3);
	border-radius: 14px;
	background: #fff;
	padding: 18px 22px;
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.affiliate__main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 240px; }
.affiliate__icon {
	width: 48px; height: 48px;
	border-radius: 10px;
	background: var(--pink-tint);
	display: flex; align-items: center; justify-content: center;
	font-size: 22px;
	flex: none;
}
.affiliate__title { font-weight: 700; font-size: 15px; }
.affiliate__sub { font-size: 12.5px; color: var(--muted-3); }
.affiliate__cta {
	display: inline-flex; align-items: center;
	height: 44px; padding: 0 22px;
	background: var(--pink);
	color: #fff;
	border-radius: 22px;
	font-weight: 700;
	font-size: 13.5px;
	transition: background-color .15s ease;
}
.affiliate__cta:hover { background: var(--pink-dark); }
.affiliate__note { font-size: 11px; color: var(--muted-2); width: 100%; }

/* --- Pagination --- */
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}
.pagination__item,
.pagination a,
.pagination .current {
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1.5px solid var(--border-2);
	display: flex; align-items: center; justify-content: center;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.pagination a:hover { border-color: var(--ink); }
.pagination .current,
.pagination__item--active {
	background: var(--pink);
	border-color: var(--pink);
	color: #fff;
	font-weight: 700;
}
.pagination__item--muted { border-color: var(--border-2); color: var(--muted-2); cursor: default; }
.pagination__gap { color: var(--muted-2); padding: 0 6px; border: none; width: auto; height: auto; }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
	background: var(--dark);
	color: var(--on-dark);
	padding: 64px 0 0;
	margin-top: 40px;
}
.footer-top {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid var(--dark-line);
}
.footer-brand__logo { display: inline-flex; align-items: baseline; gap: 2px; margin-bottom: 16px; }
.footer-brand__logo .brand__word { font-size: 28px; }
.footer-brand__logo .brand__dot { width: 8px; height: 8px; }
.footer-brand__text { font-size: 13.5px; line-height: 1.6; color: var(--on-dark-2); max-width: 300px; margin: 0 0 16px; }
.socials { display: flex; gap: 10px; }
.socials a {
	width: 38px; height: 38px;
	border-radius: 50%;
	border: 1px solid var(--dark-line);
	display: flex; align-items: center; justify-content: center;
	font-size: 13px;
	color: var(--on-dark);
	transition: border-color .15s ease, color .15s ease;
}
.socials a:hover { border-color: var(--on-dark); color: #fff; }

.footer-col__title {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 11px; font-size: 13.5px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--on-dark); }
.footer-links a:hover { color: #fff; }

.footer-news__text { font-size: 13.5px; line-height: 1.55; color: var(--on-dark-2); margin: 0 0 14px; }
.footer-news__form {
	display: flex;
	background: var(--dark-2);
	border: 1px solid var(--dark-line);
	border-radius: 24px;
	padding: 5px 5px 5px 16px;
}
.footer-news__input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-family: var(--body-font);
	font-size: 13px;
	color: #fff;
}
.footer-news__input::placeholder { color: var(--on-dark-3); }
.footer-news__btn {
	background: var(--pink);
	color: #fff;
	border: none;
	height: 38px;
	padding: 0 18px;
	border-radius: 20px;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	font-family: var(--body-font);
	transition: background-color .15s ease;
}
.footer-news__btn:hover { background: var(--pink-dark); }

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 24px 0 32px;
	flex-wrap: wrap;
}
.footer-bottom__legal { font-size: 12px; color: var(--on-dark-3); }
.footer-bottom__legal a { color: var(--on-dark-2); }
.footer-bottom__legal a:hover { color: #fff; }
.footer-bottom__aff { font-size: 11.5px; color: #6a615a; max-width: 440px; text-align: right; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
	.annuaire { grid-template-columns: 1fr; }
	.annuaire__sidebar { position: static; }
	.footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.site-header__inner { gap: 16px; }
	.nav-menu {
		display: none;
		position: absolute;
		top: 74px;
		left: 0;
		right: 0;
		background: #fff;
		border-bottom: 1px solid var(--border);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px 0;
	}
	.nav-menu.is-open { display: flex; }
	.nav-menu a { padding: 14px var(--gutter); border-bottom: none; }
	/* Sous-menus : dépliés en accordéon statique sur mobile. */
	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0;
		min-width: 0;
		background: transparent;
	}
	.nav-menu .sub-menu a { padding: 12px var(--gutter) 12px calc(var(--gutter) + 16px); color: var(--muted); }
	.nav-menu .menu-item-has-children > a::after { display: none; }
	.nav-toggle {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 40px; height: 40px;
		border: 1px solid var(--border-2);
		border-radius: 50%;
		background: #fff;
		cursor: pointer;
		color: var(--ink);
	}
	.header-actions .btn--pink { display: none; }
	.feria-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
	:root { --gutter: 18px; }
	.topbar__tag span:last-child { display: none; }
	.feria-grid { grid-template-columns: 1fr; }
	.footer-top { grid-template-columns: 1fr; gap: 32px; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
	.footer-bottom__aff { text-align: left; }
}

/* =========================================================================
   Cartes blog (partagées : home, archives, articles liés)
   ========================================================================= */
.post-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
	transition: border-color .15s ease;
}
.post-card:hover { border-color: var(--pink); }
.post-card__media { position: relative; height: 180px; }
.post-card--feature .post-card__media { height: 260px; }
.post-card__body { padding: 20px; }
.post-card--feature .post-card__body { padding: 22px; }
.post-cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.post-card__title { font-family: var(--title-font); font-weight: 400; font-size: 22px; line-height: 1.08; margin: 9px 0 8px; text-transform: uppercase; }
.post-card--feature .post-card__title { font-size: 26px; line-height: 1.05; margin: 10px 0 8px; }
.post-card__excerpt { font-size: 13.5px; line-height: 1.55; color: var(--muted); margin: 0 0 12px; }
.post-card--feature .post-card__excerpt { font-size: 14px; }
.post-meta { font-size: 12.5px; color: var(--muted-2); }

/* Grille de listing (page blog, archives, recherche) */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-grid .post-card__media { height: 180px; }
.no-results { font-size: 16px; color: var(--muted); padding: 10px 0 60px; }
@media (max-width: 1024px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .post-grid { grid-template-columns: 1fr; } }

.ph-media { background: linear-gradient(135deg, #f0e6d8 0%, #e9dcc9 100%); }
.ph-media img { width: 100%; height: 100%; object-fit: cover; }
.ph-label {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	color: var(--muted-2); font-family: var(--title-font);
	font-size: 16px; text-transform: uppercase; letter-spacing: .04em;
	text-align: center; padding: 10px;
}

/* =========================================================================
   Layout contenu + sidebar (article single, archives blog)
   ========================================================================= */
.content-layout {
	padding: 40px 0 80px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
}

.sidebar { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; }

.widget-news { background: var(--ink); border-radius: 16px; padding: 24px; color: #fff; }
.widget-news__title { font-family: var(--title-font); font-size: 22px; text-transform: uppercase; line-height: 1; margin-bottom: 8px; }
.widget-news__text { font-size: 13px; color: var(--on-dark-2); line-height: 1.5; margin: 0 0 16px; }
.widget-news__form { display: flex; flex-direction: column; gap: 10px; }
.widget-news__input {
	background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 22px;
	height: 44px; padding: 0 16px; font-size: 13px; color: #fff; outline: none; font-family: var(--body-font);
}
.widget-news__input::placeholder { color: var(--on-dark-3); }
.widget-news__btn {
	background: var(--pink); color: #fff; border: none; height: 44px; border-radius: 22px;
	font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: var(--body-font);
	transition: background-color .15s ease;
}
.widget-news__btn:hover { background: var(--pink-dark); }

.widget { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 22px; }
.widget__title { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.popular { display: flex; flex-direction: column; gap: 16px; }
.popular__item { display: flex; gap: 14px; align-items: flex-start; }
.popular__num { font-family: var(--title-font); font-size: 26px; color: var(--pink); line-height: .9; flex: none; }
.popular__title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.popular__item:hover .popular__title { color: var(--pink); }

.widget-ad { background: var(--pink-tint); border-radius: 16px; padding: 22px; }
.widget-ad__kicker { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pink); margin-bottom: 10px; }
.widget-ad__media { width: 100%; height: 120px; border-radius: 10px; overflow: hidden; margin-bottom: 14px; position: relative; }
.widget-ad__title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.widget-ad__text { font-size: 12.5px; color: var(--muted-3); line-height: 1.5; margin: 0 0 14px; }
.widget-ad__cta {
	display: flex; align-items: center; justify-content: center; height: 42px;
	background: var(--pink); color: #fff; border-radius: 21px; font-weight: 700; font-size: 13px;
	transition: background-color .15s ease;
}
.widget-ad__cta:hover { background: var(--pink-dark); }
.widget-ad__note { font-size: 10.5px; color: #bda9b4; margin-top: 10px; text-align: center; }

/* =========================================================================
   Article (single)
   ========================================================================= */
.article__cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); }
.article__title {
	font-family: var(--title-font); font-weight: 400;
	font-size: clamp(34px, 4.6vw, 50px); line-height: 1.02;
	margin: 12px 0 16px; text-transform: uppercase;
}
.article__meta { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted-3); margin-bottom: 26px; }
.article__meta strong { color: var(--ink); }
.article__avatar {
	width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex: none;
	background: var(--pink); display: inline-flex; align-items: center; justify-content: center;
	color: #fff; font-weight: 700; font-size: 13px;
}
.article__avatar img { width: 100%; height: 100%; object-fit: cover; }
.article__media { position: relative; border-radius: 18px; overflow: hidden; margin-bottom: 32px; min-height: 320px; }
.article__media img { width: 100%; height: auto; display: block; }

/* Typographie du contenu WordPress */
.entry-content { font-size: 17px; line-height: 1.75; color: #2a231e; }
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 { font-family: var(--title-font); font-weight: 400; font-size: 30px; line-height: 1.1; text-transform: uppercase; margin-top: 1.8em; }
.entry-content h3 { font-size: 22px; font-weight: 700; margin-top: 1.6em; }
.entry-content h4 { font-size: 18px; font-weight: 700; margin-top: 1.4em; }
.entry-content a { color: var(--pink); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--pink-dark); }
.entry-content img { border-radius: 12px; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 13px; color: var(--muted-2); margin-top: 8px; text-align: center; }
.entry-content blockquote {
	border-left: 4px solid var(--pink); margin: 1.6em 0; padding: 2px 0 2px 22px;
	font-size: 20px; line-height: 1.5; color: var(--ink); font-style: italic;
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .5em; }
.entry-content code { background: #f1e8dd; padding: 2px 6px; border-radius: 5px; font-size: .9em; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 2.2em 0; }

.article__foot {
	margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--border);
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.share { display: flex; gap: 10px; align-items: center; }
.share__label { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.share a {
	width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-2);
	display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--muted);
	transition: border-color .15s ease, color .15s ease;
}
.share a:hover { border-color: var(--ink); color: var(--ink); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag-pill {
	height: 30px; padding: 0 12px; border-radius: 16px; background: #fff; border: 1px solid var(--border-2);
	font-size: 12px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center;
}
.tag-pill:hover { border-color: var(--ink); color: var(--ink); }

/* Articles liés */
.related { background: #fff; border-top: 1px solid var(--border); padding: 64px 0; }
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }

/* =========================================================================
   Page (contenu éditorial simple)
   ========================================================================= */
.page-content {
	max-width: 820px; margin: 0 auto; padding: 48px 0 80px;
}
.page-content .entry-content { font-size: 18px; }

/* =========================================================================
   Responsive (article / sidebar / page)
   ========================================================================= */
@media (max-width: 1024px) {
	.content-layout { grid-template-columns: 1fr; }
	.sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
	.sidebar > * { flex: 1; min-width: 240px; }
	.related__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
	.sidebar { flex-direction: column; }
	.related__grid { grid-template-columns: 1fr; }
	.article__foot { flex-direction: column; align-items: flex-start; }
}
