/* ==========================================================================
   AtypikHouse — feuille de style principale
   Sources : charte graphique + maquettes Figma (desktop / tablette / mobile)
   Espacements : multiples de 8 px
   ========================================================================== */

/* ---------- 1. Variables (charte graphique) ---------- */
:root {
	/* Couleurs — règle 60-30-10 */
	--ivoire: #f7f4ed;        /* 60 % — Ivoire détente */
	--vert: #116847;          /* 30 % — Vert forêt */
	--orange: #c55423;        /* 10 % — Orange épicé (accent) */
	--orange-vif: #ef6c2f;    /* haut du dégradé des boutons */
	--orange-fonce: #8f3a15;  /* texte orange sur fond clair */
	--texte-vert: #273f28;
	--texte-brun: #31200c;    /* Cabane perchée */
	--noir: #1c1712;          /* Noir mystique */
	--blanc: #ffffff;
	--alerte: #f06a2d;
	--warning: #e1ab58;
	--succes: #85c78b;
	--etoile: #ffc107;

	/* Polices */
	--font-titre: "Quicksand", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-texte: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Typographie desktop (taille / interligne) */
	--fs-h1: 48px;  --lh-h1: 56px;
	--fs-h2: 40px;  --lh-h2: 48px;
	--fs-h3: 32px;  --lh-h3: 40px;
	--fs-h4: 24px;  --lh-h4: 32px;
	--fs-h5: 20px;  --lh-h5: 28px;
	--fs-h6: 18px;  --lh-h6: 26px;
	--fs-body: 16px;  --lh-body: 26px;
	--fs-lead: 18px;  --lh-lead: 26px;   /* Body L */
	--fs-small: 14px; --lh-small: 22px;  /* Body S */
	--fs-xs: 12px;    --lh-xs: 29px;     /* Body XS */
	--fs-sub: 24px;   --lh-sub: 32px;    /* sous-titre du hero */
	--fs-btn: 18px;   --lh-btn: 26px;
	--fs-link: 18px;  --lh-link: 26px;

	/* Espacements (multiples de 8) */
	--gutter: 96px;
	--section-y: 72px;

	/* Formes */
	--radius-s: 8px;
	--radius-m: 16px;
	--shadow-card: 0 2px 4px rgba(49, 32, 12, 0.16), 0 4px 10px rgba(49, 32, 12, 0.14);
	--shadow-btn: 0 2px 4px rgba(49, 32, 12, 0.24);

	--header-h: 96px;
}

/* Tablette */
@media (max-width: 1023px) {
	:root {
		--fs-h1: 48px;  --lh-h1: 53px;
		--fs-h2: 36px;  --lh-h2: 43px;
		--fs-h3: 24px;  --lh-h3: 30px;
		--fs-h4: 20px;  --lh-h4: 28px;
		--fs-body: 18px;  --lh-body: 30px;   /* Body M */
		--fs-lead: 20px;  --lh-lead: 30px;   /* Body L */
		--fs-sub: 20px;   --lh-sub: 30px;
		--fs-btn: 16px;   --lh-btn: 32px;
		--fs-link: 16px;  --lh-link: 24px;
		--gutter: 48px;
		--section-y: 64px;
		--header-h: 80px;
	}
}

/* Mobile */
@media (max-width: 767px) {
	:root {
		--fs-h1: 40px;  --lh-h1: 48px;
		--fs-h2: 32px;  --lh-h2: 43px;
		--fs-h3: 24px;  --lh-h3: 36px;
		--fs-h4: 20px;  --lh-h4: 36px;
		--fs-body: 16px;  --lh-body: 30px;
		--fs-lead: 18px;  --lh-lead: 30px;
		--fs-sub: 18px;   --lh-sub: 30px;
		--fs-btn: 18px;   --lh-btn: 32px;
		--fs-link: 20px;  --lh-link: 30px;
		--gutter: 24px;
		--section-y: 48px;
		--header-h: 72px;
	}
}

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

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

body {
	margin: 0;
	background: var(--ivoire);
	color: var(--texte-brun);
	font-family: var(--font-texte);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	-webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-titre);
	font-weight: 600;
	color: var(--texte-vert);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-h5); }
h6 { font-size: var(--fs-h6); line-height: var(--lh-h6); }

p { margin: 0 0 16px; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

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

.container {
	width: min(100% - 2 * var(--gutter), 1248px);
	margin-inline: auto;
}

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	z-index: 100;
	padding: 8px 16px;
	background: var(--blanc);
	color: var(--texte-brun);
	border-radius: var(--radius-s);
}

/* ---------- 3. Boutons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 8px 24px;
	border: 0;
	border-radius: var(--radius-s);
	font-family: var(--font-titre);
	font-size: var(--fs-btn);
	line-height: var(--lh-btn);
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.btn--primary {
	background: linear-gradient(180deg, var(--orange-vif) 0%, var(--orange) 100%);
	color: var(--blanc);
	box-shadow: var(--shadow-btn);
}
.btn--primary:hover { filter: brightness(1.07); }
.btn--white {
	background: var(--blanc);
	color: var(--orange-fonce);
	padding-inline: 16px;
}
.btn--white:hover { background: var(--ivoire); }
.btn--light {
	min-width: 296px;
	background: linear-gradient(180deg, var(--blanc) 0%, var(--ivoire) 100%);
	color: var(--orange-fonce);
	box-shadow: var(--shadow-card);
}
.btn--light:hover { filter: brightness(0.98); }
.btn--block { width: 100%; }

/* ---------- 4. En-tête ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ivoire);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 48px;
	min-height: var(--header-h);
}
.site-header__logo img { width: 144px; height: auto; }

.site-header__panel {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.site-nav {
	display: flex;
	align-items: center;
	gap: 32px;
}
.site-nav__list {
	display: flex;
	align-items: center;
	gap: 32px;
}
.site-nav a,
.link-signup {
	font-family: var(--font-titre);
	font-size: var(--fs-link);
	line-height: var(--lh-link);
	font-weight: 500;
	color: var(--texte-brun);
	text-decoration: none;
}
.site-nav a:hover,
.link-signup:hover { color: var(--orange); }
.site-nav .current-menu-item > a,
.site-nav a[aria-current="page"] { color: var(--vert); font-weight: 700; }

.site-nav__search {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.site-header__actions {
	display: flex;
	align-items: center;
	gap: 32px;
}

.menu-toggle {
	display: none;
	margin-left: auto;
	padding: 8px;
	border: 0;
	background: transparent;
	color: var(--vert);
	cursor: pointer;
}
.menu-toggle__close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }

/* Navigation repliée (tablette + mobile) */
@media (max-width: 1023px) {
	.site-header__inner { gap: 16px; }
	.menu-toggle { display: inline-flex; }

	.site-header__panel {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex: none;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		max-height: calc(100vh - var(--header-h));
		overflow-y: auto;
		padding: 24px var(--gutter) 40px;
		background: var(--ivoire);
		border-top: 1px solid rgba(49, 32, 12, 0.12);
		box-shadow: 0 16px 24px rgba(49, 32, 12, 0.14);
	}
	.site-header__panel.is-open { display: flex; }

	.site-nav,
	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}
	.site-header__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
	}
	.link-signup { text-align: center; }
}
body.menu-open { overflow: hidden; }

/* ---------- 5. Hero ---------- */
.hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 500px;
	overflow: hidden;
	background: var(--vert);
	color: var(--blanc);
}
.hero__img {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 70% center;
}
.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(28, 23, 18, 0.45) 0%, rgba(28, 23, 18, 0) 65%);
}
.hero__title { color: var(--blanc); }
.hero__text {
	max-width: 480px;
	margin: 32px 0 48px;
	font-family: var(--font-titre);
	font-size: var(--fs-sub);
	line-height: var(--lh-sub);
	font-weight: 600;
}
@media (max-width: 1023px) { .hero { min-height: 480px; } }
@media (max-width: 767px) {
	.hero { min-height: 480px; align-items: flex-end; padding-block: 48px; }
	.hero__img { object-position: 78% center; }
	.hero::after { background: linear-gradient(0deg, rgba(28, 23, 18, 0.6) 0%, rgba(28, 23, 18, 0) 80%); }
	.hero__text { margin: 16px 0 32px; }
}

/* ---------- 6. Recherche ---------- */
.search {
	padding-block: var(--section-y);
	background: var(--vert);
	color: var(--blanc);
}
.search__title {
	margin-bottom: 32px;
	text-align: center;
	color: var(--blanc);
	font-size: var(--fs-h3);
	line-height: var(--lh-h3);
}
.search-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px;
	background: rgba(247, 244, 237, 0.2);
	border: 1px solid rgba(247, 244, 237, 0.4);
	border-radius: var(--radius-s);
}
.field {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	gap: 8px;
	min-width: 0;
	min-height: 56px;
	padding: 0 16px;
	background: var(--ivoire);
	color: var(--vert);
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-btn);
}
.field--wide { flex: 1.5 1 0; }
.field:focus-within { outline: 3px solid var(--orange); outline-offset: 2px; }
.field .icon { flex: none; }
.field input,
.field select {
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--texte-brun);
	font-family: var(--font-titre);
	font-size: var(--fs-body);
	font-weight: 500;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}
.field input::placeholder { color: var(--texte-brun); opacity: 1; }
.field select { cursor: pointer; }
.search-bar__filter {
	display: grid;
	flex: none;
	place-items: center;
	width: 56px;
	height: 56px;
	background: var(--ivoire);
	color: var(--orange);
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-btn);
}
.search-bar__submit { flex: none; min-height: 56px; }

@media (max-width: 1023px) {
	.search-bar { display: grid; grid-template-columns: 1fr 1fr; }
	.field--wide { grid-column: 1 / -1; }
	.search-bar__filter { width: 100%; }
}
@media (max-width: 767px) {
	.search-bar { grid-template-columns: 1fr; padding: 16px; }
}

/* ---------- 7. Sections ---------- */
.section { padding-block: var(--section-y); }
.section--ivoire { background: var(--ivoire); }
.section--blanc { background: var(--blanc); }
.section--vert { background: var(--vert); }

.section-head { margin-bottom: 48px; }
.section-head h2 { color: var(--texte-vert); }
.section-head p {
	margin: 16px 0 0;
	font-family: var(--font-titre);
	font-size: var(--fs-lead);
	line-height: var(--lh-lead);
	font-weight: 500;
}
.section-head--clair h2,
.section-head--clair p { color: var(--blanc); }
.section-cta { margin: 64px 0 0; text-align: center; }
@media (max-width: 767px) {
	.section-head { margin-bottom: 32px; }
	.section-cta { margin-top: 40px; }
	.btn--light { min-width: 0; width: 100%; }
}

.grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: 40px;
}
@media (max-width: 767px) { .grid { gap: 24px; } }

/* ---------- 8. Cartes ---------- */
.card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--blanc);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-card);
}
.card__media {
	position: relative;
	display: block;
	aspect-ratio: 1200 / 667;
	background: var(--ivoire);
}
.card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 16px;
	padding: 24px;
}
.card__title {
	margin: 0;
	color: var(--texte-brun);
	font-size: var(--fs-h5);
	line-height: var(--lh-h5);
}
.card__title a { text-decoration: none; }
.card__title--center { text-align: center; }
.card__place {
	margin: 0;
	font-size: var(--fs-small);
	line-height: var(--lh-small);
	font-weight: 700;
}
.card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.card__meta p { margin: 0; }
.rating {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}
.rating .icon { color: var(--etoile); }
.price {
	font-family: var(--font-titre);
	font-size: var(--fs-h5);
	line-height: var(--lh-h5);
	font-weight: 700;
	white-space: nowrap;
}
.card__text { color: var(--texte-vert); }
.card__text p {
	margin: 0 0 8px;
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}
.card .btn { margin-top: auto; }
.card__excerpt p { font-size: var(--fs-small); line-height: var(--lh-small); }

.fav {
	position: absolute;
	top: 8px;
	right: 8px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--blanc);
	cursor: pointer;
	filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
}
.fav[aria-pressed="true"] { color: var(--alerte); }
.fav[aria-pressed="true"] .icon { fill: currentColor; }

/* ---------- 9. Pourquoi choisir / Avis ---------- */
.why,
.review {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 40px 32px;
	background: var(--blanc);
	text-align: center;
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-card);
}
.why__title,
.review__name {
	margin: 0 0 16px;
	color: var(--orange);
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
	font-weight: 700;
}
.why p,
.review__text p {
	margin: 0;
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}
.review { align-items: flex-start; text-align: left; }
.review__stars { display: flex; gap: 8px; margin-bottom: 16px; color: var(--etoile); }
.review__text { margin: 0; }

/* ---------- 10. Pied de page ---------- */
.site-footer {
	padding-block: 96px;
	background: var(--texte-brun);
	color: var(--ivoire);
}
.site-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr 1.5fr;
	gap: 48px;
}
.site-footer p {
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}
.site-footer__brand p { max-width: 280px; margin: 24px 0 0; }
.site-footer__brand .site-footer__social-title {
	margin: 32px 0 16px;
	font-weight: 700;
}
.social { display: flex; gap: 24px; }
.social a { display: block; color: var(--ivoire); }
.social a:hover { color: var(--orange-vif); }

.site-footer__title {
	margin: 0 0 24px;
	color: var(--blanc);
	font-size: var(--fs-h6);
	line-height: var(--lh-h6);
	font-weight: 700;
}
.footer-list { display: flex; flex-direction: column; gap: 12px; }
.footer-list a {
	font-size: var(--fs-small);
	line-height: var(--lh-small);
	text-decoration: none;
}
.footer-list a:hover { text-decoration: underline; }

.newsletter { display: flex; }
.newsletter input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--radius-s) 0 0 var(--radius-s);
	background: var(--blanc);
	color: var(--texte-brun);
	font-family: var(--font-texte);
	font-size: var(--fs-small);
}
.newsletter .btn {
	flex: none;
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
	font-size: var(--fs-small);
	line-height: var(--lh-small);
}
.site-footer__legal {
	margin: 64px 0 0;
	padding-top: 24px;
	border-top: 1px solid rgba(247, 244, 237, 0.2);
}

@media (max-width: 1023px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023px) {
	.site-footer { padding-block: 64px; }
}
@media (max-width: 767px) {
	.site-footer { padding-block: 48px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 40px; }
	.site-footer__legal { margin-top: 40px; }
}

/* ---------- 11. Pages de contenu ---------- */
.page { padding-block: var(--section-y); }
.page__title { margin-bottom: 32px; }
.entry__image { margin-bottom: 32px; overflow: hidden; border-radius: var(--radius-m); }
.entry__content > * { max-width: 760px; }
.entry__content > .alignwide,
.entry__content > .atypik-pattern,
.entry__content > .wp-block-columns,
.entry__content > .wp-block-buttons,
.entry__content--wide > * { max-width: none; }
.entry__content a { color: var(--orange); }
.navigation.pagination { margin-top: 48px; }
.navigation.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
	padding: 8px 16px;
	background: var(--blanc);
	border-radius: var(--radius-s);
	text-decoration: none;
}
.page-numbers.current { background: var(--vert); color: var(--blanc); }

/* ---------- 12. Accessibilité ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ==========================================================================
   Ajouts v1.1 — dimensions desktop, liste/recherche, fiche, carrousels
   (hauteurs desktop en min-height : le contenu dynamique n'est jamais rogné)
   ========================================================================== */
@media (min-width: 1024px) {
	.site-header__inner { min-height: 96px; }
	.search { padding-block: 96px; min-height: 368px; }
	.section--populaires { min-height: 888px; }
	.section--categories { min-height: 1454px; }
	.section--pourquoi { min-height: 623px; }
}

.notice {
	padding: 16px 24px;
	background: var(--blanc);
	border: 1px dashed var(--orange);
	border-radius: var(--radius-s);
}
.btn--wide { min-width: 296px; }
@media (max-width: 767px) { .btn--wide { min-width: 0; width: 100%; } }
.subtitle {
	margin: 32px 0 16px;
	color: var(--orange);
	font-size: var(--fs-h4);
	line-height: var(--lh-h4);
}
.bullets { padding-left: 20px; list-style: disc; }
.bullets li { margin-bottom: 8px; font-size: var(--fs-small); line-height: var(--lh-small); }
.entry__content--wide { max-width: none; }

/* Bandeau des pages liste */
.page-hero {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	min-height: 300px;
	overflow: hidden;
	background: var(--vert);
	color: var(--blanc);
}
.page-hero .hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(28, 23, 18, 0.35); }
.page-hero .hero__title { color: var(--blanc); }
.page-hero .hero__text { margin: 24px 0 0; }

.section--intro h2 { color: var(--vert); }
.intro__text { max-width: 900px; margin: 16px 0 48px; }
.intro__text p { margin-bottom: 8px; font-size: var(--fs-small); line-height: var(--lh-small); }
.grid--categories { margin-top: 24px; }

/* Filtres + résultats */
.listing { display: grid; grid-template-columns: minmax(300px, 384px) 1fr; background: var(--blanc); }
.listing__filters { padding: var(--section-y) 24px var(--section-y) var(--gutter); background: var(--vert); color: var(--blanc); }
.listing__filters > h2 { margin-bottom: 24px; color: var(--blanc); font-size: var(--fs-h4); line-height: var(--lh-h4); }
.filters__box { display: grid; gap: 16px; padding: 24px; background: rgba(247, 244, 237, 0.12); border-radius: var(--radius-s); }
.filters__field > label,
.filters__label { display: block; margin-bottom: 8px; font-weight: 700; font-size: var(--fs-small); line-height: var(--lh-small); }
.filters__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .field { min-height: 48px; }
.filters__group { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(247, 244, 237, 0.3); }
.filters__group summary { cursor: pointer; font-weight: 700; font-size: var(--fs-small); }
.filters__group ul { display: grid; gap: 12px; margin-top: 16px; }
.filters__group label { display: flex; align-items: center; gap: 12px; font-size: var(--fs-small); cursor: pointer; }
.filters__group input { width: 20px; height: 20px; accent-color: var(--orange); }
.filters__actions { display: grid; gap: 16px; margin-top: 32px; }
.filters__actions .btn--light { min-width: 0; width: 100%; }
.filters__reset { color: var(--blanc); text-align: center; }

.listing__results { padding: var(--section-y) var(--gutter) var(--section-y) 48px; background: var(--ivoire); }
.listing__lead { margin: 16px 0 48px; }
.grid--results { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; }
.empty { padding: 48px 24px; text-align: center; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }

@media (max-width: 1023px) {
	.listing { grid-template-columns: 1fr; }
	.listing__filters { padding: var(--section-y) var(--gutter); }
	.listing__results { padding: var(--section-y) var(--gutter); }
}

/* Fiche hébergement */
.single-hero { padding-block: 32px 40px; background: var(--vert); color: var(--blanc); }
.single-hero h1,
.single-hero__place { color: var(--blanc); }
.single-hero__place { margin: 16px 0 0; font-family: var(--font-titre); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 700; }
.single-hero__country { margin: 0; }
.single-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 24px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-small); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { font-weight: 700; }

.section--flush { padding-top: 0; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; margin-top: 16px; }
.access { max-width: 900px; font-size: var(--fs-small); line-height: var(--lh-small); }
.map { margin-top: 32px; overflow: hidden; border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }

.gallery { position: relative; display: flex; align-items: center; gap: 16px; margin-top: 32px; padding: 32px; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.gallery__viewport { flex: 1; min-width: 0; }
.gallery__slide { margin: 0; }
.gallery__slide img { width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-s); }
.gallery__btn,
.carousel__btn { display: grid; flex: none; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--vert); cursor: pointer; }
.gallery__btn:hover,
.carousel__btn:hover { background: var(--ivoire); }

.carousel { display: flex; align-items: center; gap: 8px; padding: 32px 16px; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.carousel__track { display: grid; flex: 1; grid-auto-flow: column; grid-auto-columns: minmax(260px, calc((100% - 64px) / 3)); gap: 32px; min-width: 0; padding: 4px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.carousel__track > * { scroll-snap-align: start; }
@media (max-width: 767px) {
	.gallery { padding: 16px 8px; gap: 4px; }
	.gallery__btn, .carousel__btn { width: 40px; height: 40px; }
	.carousel { padding: 16px 4px; }
	.carousel__track { grid-auto-columns: 85%; gap: 16px; }
	.map iframe { height: 280px; }
}

/* Blocs de l'éditeur (modèles AtypikHouse) */
.wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 24px;
	border-radius: var(--radius-s); background: linear-gradient(180deg, var(--orange-vif) 0%, var(--orange) 100%);
	color: var(--blanc); font-family: var(--font-titre); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-btn);
}
.atypik-pattern--vert { padding: 48px var(--gutter); background: var(--vert); border-radius: var(--radius-m); }
.atypik-pattern--vert h2,
.atypik-pattern--vert p { color: var(--blanc); }
.atypik-pattern__card { padding: 32px; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.atypik-pattern__card h3 { color: var(--orange); }

/* ==========================================================================
   Pages institutionnelles : contenu, contact, FAQ, 404
   ========================================================================== */
.single-hero--page h1 { margin-top: 24px; }
.entry__content h2 { margin: 48px 0 16px; font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--vert); }
.entry__content h2:first-child { margin-top: 0; }
.entry__content h3 { margin: 32px 0 12px; font-size: var(--fs-h5); line-height: var(--lh-h5); color: var(--orange); }
.entry__content ul { margin: 0 0 16px; padding-left: 24px; list-style: disc; }
.entry__content li { margin-bottom: 8px; }
.entry__content .wp-block-columns { gap: 24px; margin: 24px 0 8px; }
.entry__content .wp-block-buttons { margin: 8px 0 8px; }

/* Formulaire */
.contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 64px; align-items: start; }
.contact-form { margin-top: 32px; padding: 40px; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.contact-form h2 { margin-bottom: 24px; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.form__row { margin-bottom: 24px; }
.form__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form label { display: block; margin-bottom: 8px; font-weight: 700; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--texte-vert); }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form select,
.form textarea {
	width: 100%; min-height: 48px; padding: 12px 16px;
	background: var(--ivoire); color: var(--texte-brun);
	border: 1px solid rgba(49, 32, 12, 0.3); border-radius: var(--radius-s);
	font-family: var(--font-texte); font-size: var(--fs-body); line-height: 1.5;
}
.form textarea { resize: vertical; }
.form [aria-invalid="true"] { border-color: #b3261e; }
.form__row--check label { display: flex; align-items: flex-start; gap: 12px; font-weight: 500; }
.form__row--check input { flex: none; width: 22px; height: 22px; margin-top: 2px; accent-color: var(--orange); }
.form__row--check a { color: var(--orange-fonce); }
.form__error { margin: 8px 0 0; color: #b3261e; font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 700; }
.form__legend { font-size: var(--fs-small); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { margin-bottom: 24px; padding: 16px 24px; border-radius: var(--radius-s); font-weight: 600; }
.alert--success { background: #e6f4ea; color: #14532d; border: 1px solid #85c78b; }
.alert--error { background: #fdecea; color: #7a1a14; border: 1px solid #b3261e; }

.contact__aside { padding: 32px; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.contact__aside h2 { margin-bottom: 24px; font-size: var(--fs-h4); line-height: var(--lh-h4); }
.contact__aside h3 { margin: 32px 0 8px; font-size: var(--fs-h5); line-height: var(--lh-h5); color: var(--orange); }
.contact__list { display: grid; gap: 16px; }
.contact__list li { display: grid; gap: 4px; }
.contact__list a { color: var(--orange-fonce); }
.contact__aside .btn--light { min-width: 0; width: 100%; }

/* FAQ */
.faq { margin-top: 48px; }
.faq > h2 { margin-bottom: 24px; font-size: var(--fs-h4); line-height: var(--lh-h4); color: var(--vert); }
.faq__item { margin-bottom: 16px; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: 20px 24px; cursor: pointer; list-style: none;
	font-family: var(--font-titre); font-weight: 700; font-size: var(--fs-h6); line-height: var(--lh-h6); color: var(--texte-brun);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; font-size: 28px; line-height: 1; color: var(--orange); }
.faq__item[open] summary::after { content: "−"; }
.faq__answer { padding: 0 24px 20px; font-size: var(--fs-small); line-height: var(--lh-small); }
.faq__answer p:last-child { margin-bottom: 0; }
.faq__cta { margin-top: 64px; padding: 40px 32px; text-align: center; background: var(--vert); color: var(--blanc); border-radius: var(--radius-m); }
.faq__cta h2,
.faq__cta p { color: var(--blanc); }
.faq__cta h2 { font-size: var(--fs-h4); line-height: var(--lh-h4); }

/* 404 */
.error-page { padding-block: calc(var(--section-y) + 24px); text-align: center; background: var(--vert); color: var(--blanc); }
.error-page__code { margin: 0; font-family: var(--font-titre); font-weight: 700; font-size: clamp(96px, 20vw, 192px); line-height: 1; color: var(--orange-vif); }
.error-page h1 { color: var(--blanc); margin-top: 8px; }
.error-page__text { max-width: 560px; margin: 24px auto 40px; font-family: var(--font-titre); font-size: var(--fs-lead); line-height: var(--lh-lead); font-weight: 600; }
.error-page__search { max-width: 640px; margin-inline: auto; }
.error-page__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 40px 0 0; }
.error-page__links .btn--light { min-width: 0; }

@media (max-width: 1023px) {
	.contact { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 767px) {
	.contact-form { padding: 24px 16px; }
	.form__row--half { grid-template-columns: 1fr; gap: 24px; }
	.faq__item summary { padding: 16px; }
	.faq__answer { padding: 0 16px 16px; }
	.error-page__links .btn { width: 100%; }
}

/* ==========================================================================
   Correctifs : menu centré (desktop) et cases à cocher orange
   ========================================================================== */
@media (min-width: 1024px) {
	.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; }
	.site-header__panel { display: contents; }
	.site-header__logo { justify-self: start; }
	.site-nav { justify-self: center; }
	.site-header__actions { justify-self: end; }
}

.filters__group input[type="checkbox"],
.form__row--check input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	flex: none;
	width: 20px;
	height: 20px;
	margin: 0;
	background: transparent;
	border: 2px solid var(--blanc);
	border-radius: 4px;
	cursor: pointer;
}
.form__row--check input[type="checkbox"] { width: 22px; height: 22px; border-color: var(--texte-brun); background: var(--blanc); margin-top: 2px; }
.filters__group input[type="checkbox"]:checked,
.form__row--check input[type="checkbox"]:checked {
	background-color: var(--orange);
	border-color: var(--orange);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 80%;
}
.filters__group input[type="checkbox"]:focus-visible,
.form__row--check input[type="checkbox"]:focus-visible { outline: 3px solid var(--blanc); outline-offset: 2px; }
.form__row--check input[type="checkbox"]:focus-visible { outline-color: var(--orange); }

/* Cookies */
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--orange-vif); }
.site-footer__legal .link-button { margin-left: 16px; }
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 100; padding: 24px 0; background: var(--blanc); color: var(--texte-brun); border-top: 4px solid var(--orange); box-shadow: 0 -8px 24px rgba(28, 23, 18, 0.18); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cookie-banner__text { flex: 1 1 480px; font-size: var(--fs-small); line-height: var(--lh-small); }
.cookie-banner__text h2 { margin-bottom: 8px; font-size: var(--fs-h6); line-height: var(--lh-h6); color: var(--vert); }
.cookie-banner__text a { color: var(--orange-fonce); }
.cookie-banner__panel { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; border: 0; }
.cookie-banner__panel label { display: flex; align-items: center; gap: 12px; }
.cookie-banner__panel input { width: 20px; height: 20px; accent-color: var(--orange); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-banner__actions .btn { min-width: 0; }
.cookie-banner__actions [hidden] { display: none; }
@media (max-width: 767px) { .cookie-banner { max-height: 90vh; overflow-y: auto; } .cookie-banner__actions .btn { width: 100%; } }
.map__placeholder { display: grid; justify-items: center; gap: 16px; padding: 48px 24px; text-align: center; background: var(--blanc); }
.map__placeholder p { max-width: 520px; margin: 0; }

.field--link { text-decoration: none; color: inherit; cursor: pointer; }
.booking-box { padding: 32px; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.booking-box .mphb-booking-form input[type="submit"],
.booking-box .mphb-book-button,
.booking-box .wpbs-form-submit-button,
.booking-box button[type="submit"] { padding: 12px 24px; border: 0; border-radius: var(--radius-s); background: var(--orange); color: var(--blanc); font-family: var(--font-titre); font-weight: 600; cursor: pointer; }
@media (max-width: 767px) { .booking-box { padding: 16px; } }

/* ==========================================================================
   v1.2 — verre, hero, en-tête 96 px, boutons, menu membre, maillage
   ========================================================================== */
:root { --hero-h: 640px; }
@media (max-width: 1023px) { :root { --hero-h: 560px; } }
@media (max-width: 767px) { :root { --hero-h: 520px; } }
.hero { min-height: var(--hero-h); }

/* En-tête : 96 px sur ordinateur */
@media (min-width: 1024px) {
	.site-header { height: 96px; }
	.site-header__inner { height: 96px; min-height: 0; }
}

/* Effet verre (identique à la barre de recherche de l'accueil) */
.glass,
.gallery,
.filters__box {
	background: rgba(247, 244, 237, 0.2);
	border: 1px solid rgba(247, 244, 237, 0.4);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	box-shadow: none;
}
.search-bar {
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}
.gallery { border-radius: var(--radius-s); }
.gallery__btn { color: var(--blanc); }
.gallery__btn:hover { background: rgba(247, 244, 237, 0.25); }
.gallery-band { padding-block: var(--section-y); }
.lead { font-family: var(--font-titre); font-weight: 600; font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--vert); }

/* Boutons ajoutés dans l'éditeur : texte blanc sur fond orange */
.entry__content .wp-block-button__link,
.entry__content .wp-block-button__link:visited,
.entry__content a.btn--primary,
.entry__content a.btn--primary:visited { color: var(--blanc); text-decoration: none; }
.entry__content .wp-block-button__link:hover,
.entry__content a.btn--primary:hover { color: var(--blanc); filter: brightness(1.07); }
.btn--outline { background: transparent; color: var(--vert); border: 2px solid var(--vert); box-shadow: none; }
.btn--outline:hover { background: var(--vert); color: var(--blanc); }

/* Menu « Espace membre » */
.member-menu { position: relative; }
.member-menu__toggle { display: inline-flex; align-items: center; gap: 8px; }
.member-menu__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.member-menu__panel {
	position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
	display: grid; gap: 4px; min-width: 240px; padding: 16px;
	background: var(--blanc); border-radius: var(--radius-s); box-shadow: var(--shadow-card);
}
.member-menu__panel[hidden] { display: none; }
.member-menu__panel a { padding: 10px 12px; color: var(--texte-brun); border-radius: var(--radius-s); text-decoration: none; font-family: var(--font-titre); font-weight: 500; }
.member-menu__panel a:hover { background: var(--ivoire); color: var(--orange); }
.member-menu__title { margin: 8px 12px 0; font-size: var(--fs-small); font-weight: 700; color: var(--vert); }
@media (max-width: 1023px) {
	.member-menu__panel { position: static; margin-top: 8px; box-shadow: none; background: var(--ivoire); }
	.member-menu__toggle { width: 100%; justify-content: center; }
}

/* Maillage interne, texte SEO, 404 */
.related { margin-top: 64px; }
.related h2,
.seo-text__links-title { margin-bottom: 16px; font-size: var(--fs-h5); line-height: var(--lh-h5); color: var(--vert); }
.chips { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 10px 20px; background: var(--blanc); color: var(--vert); border: 1px solid rgba(17, 104, 71, 0.35); border-radius: 999px; text-decoration: none; font-family: var(--font-titre); font-weight: 600; }
.chips a:hover { background: var(--vert); color: var(--blanc); }
.section--flush .related:first-child { margin-top: 0; }
.seo-text h2 { color: var(--vert); margin-bottom: 24px; }
.seo-text__body { max-width: 900px; }
.seo-text__body p { margin-bottom: 16px; }
.seo-text__body a { color: var(--orange-fonce); }
.seo-text__links-title { margin-top: 32px; }
.why--card { display: grid; align-content: start; gap: 16px; padding: 32px; background: var(--blanc); border-radius: var(--radius-m); box-shadow: var(--shadow-card); }
.why--card .why__title { color: var(--orange); }
.why--card .btn { justify-self: start; min-width: 0; }

/* ==========================================================================
   v1.3 — boutons 48 px, secondaires à contour orange, en-tête 96 px, verre blanc
   ========================================================================== */
.btn { padding: 6px 24px; border: 2px solid transparent; }
.btn--light,
.btn--white,
.btn--outline { border-color: var(--orange); }
.btn--outline { background: transparent; color: var(--orange-fonce); box-shadow: none; }
.btn--outline:hover { background: var(--orange); color: var(--blanc); }

.site-header .btn { box-sizing: border-box; height: 48px; min-height: 48px; padding-block: 0; line-height: 1; white-space: nowrap; }
.site-nav a,
.link-signup { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1439px) {
	.site-header { --gutter: 32px; }
	.site-header__inner { gap: 24px; }
	.site-nav,
	.site-nav__list { gap: 24px; }
	.site-header__actions { gap: 16px; }
	.site-header .btn { padding-inline: 20px; }
}
@media (min-width: 1024px) {
	.site-header { height: 96px; }
	.site-header__inner { height: 96px; min-height: 0; align-items: center; }
}

/* Galerie : cadre blanc effet verre */
.gallery {
	background: rgba(255, 255, 255, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.6);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}
