/* ==========================================================================
   Haras de Promelles — Guillaume Cuvelier, dressage
   Direction : « Tour de piste ». Les lettres de la carrière (A, K, E, H, C,
   M, B, X) servent de repères au fil de l'accueil, comme les panneaux
   blancs d'une piste de dressage.
   Couleurs (tons doux) : lin, sable de piste, vert sauge profond,
   bleu brume et brun cognac (le cuir de la selle).
   Typo : Bodoni Moda (titres) · Hanken Grotesk (texte).
   ========================================================================== */

/* Polices hébergées dans le thème (aucun appel à Google : conforme RGPD) */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
	--tapis: #F5F2EB;
	--tapis-2: #FBF9F4;
	--sable: #E7DECF;
	--sable-2: #D7C9B3;
	--frac: #2E4237;
	--frac-2: #3C5446;
	--ardoise: #5C665E;
	--rosette: #8C5A3A;
	--rosette-dark: #744A2F;
	--brume: #E1E9EA;
	--brume-2: #CBDADD;
	--sauge: #DCE4D5;
	--line: rgba(46, 66, 55, 0.16);
	--line-light: rgba(245, 242, 235, 0.22);

	--f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--f-text: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(20px, 4.5vw, 56px);
	--header-h: 84px;
	--section: clamp(72px, 9vw, 136px);
	--radius: 6px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--tapis);
	color: var(--frac);
	font-family: var(--f-text);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--rosette); color: var(--tapis); }

h1, h2, h3 {
	font-family: var(--f-display);
	font-weight: 400;
	line-height: 1.08;
	letter-spacing: -0.01em;
	font-optical-sizing: auto;
}
h2 { font-size: clamp(32px, 3.8vw, 54px); }
h3 { font-size: clamp(21px, 1.8vw, 26px); line-height: 1.2; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
	position: absolute; left: 16px; top: -60px; z-index: 200;
	background: var(--frac); color: var(--tapis); padding: 10px 16px; border-radius: var(--radius);
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--rosette); outline-offset: 3px; }

.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ardoise); max-width: 46ch; }
.note { margin-top: 28px; font-size: 15px; color: var(--ardoise); max-width: 70ch; }
.section--frac .lede, .section--frac .note { color: rgba(245, 242, 235, 0.78); }

.link {
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--rosette);
	text-decoration-thickness: 1px;
	text-underline-offset: 6px;
	transition: text-decoration-thickness 0.2s;
}
.link:hover { text-decoration-thickness: 2px; }
.section--frac .link, .site-footer .link { text-decoration-color: var(--sable); }

.times { font-family: var(--f-text); font-size: 0.8em; font-weight: 400; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Panneau-lettre (signature) ---------- */
.board {
	display: inline-grid;
	place-items: center;
	width: 52px;
	height: 52px;
	background: var(--tapis-2);
	color: var(--frac);
	border: 1.5px solid var(--frac);
	font-family: var(--f-display);
	font-size: 28px;
	line-height: 1;
	font-weight: 500;
	box-shadow: 0 1px 0 rgba(46, 66, 55, 0.08);
	user-select: none;
}
.section-board { margin-bottom: 28px; }
.section--frac .board, .board--dark { border-color: var(--tapis-2); box-shadow: 0 0 0 4px rgba(245, 242, 235, 0.08); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 50px;
	padding: 12px 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 15.5px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--rosette { background: var(--rosette); color: var(--tapis-2); }
.btn--rosette:hover { background: var(--rosette-dark); }
.btn--frac { background: var(--frac); color: var(--tapis-2); }
.btn--frac:hover { background: var(--frac-2); }
.btn--light { background: var(--tapis-2); color: var(--frac); }
.btn--light:hover { background: var(--sable); }
.btn--line { border-color: var(--frac); color: var(--frac); }
.btn--line:hover { background: var(--frac); color: var(--tapis-2); }
.btn--line-light { border-color: rgba(245, 242, 235, 0.7); color: var(--tapis-2); }
.btn--line-light:hover { background: rgba(245, 242, 235, 0.12); border-color: var(--tapis-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Bandeau supérieur ---------- */
.topbar { background: var(--frac); color: rgba(245, 242, 235, 0.82); font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-links { display: flex; align-items: center; gap: 24px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.topbar-links a:hover { color: var(--tapis-2); }
.topbar .icon { width: 15px; height: 15px; }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	height: var(--header-h);
	background: rgba(245, 242, 235, 0.94);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(1.2) blur(10px);
	-webkit-backdrop-filter: saturate(1.2) blur(10px);
	transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.has-hero .site-header:not(.is-scrolled) {
	background: transparent;
	border-bottom-color: rgba(245, 242, 235, 0.18);
	color: var(--tapis-2);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.1; }
.brand-words { display: flex; flex-direction: column; }
.brand-mark {
	width: 52px; height: 46px; flex-shrink: 0; background: currentColor;
	-webkit-mask: url("../img/mark-gc.png") center / contain no-repeat;
	mask: url("../img/mark-gc.png") center / contain no-repeat;
}
.footer-logo, .haras-logo {
	display: block; background: currentColor;
	-webkit-mask: url("../img/logo-haras.png") left center / contain no-repeat;
	mask: url("../img/logo-haras.png") left center / contain no-repeat;
}
.footer-logo { width: 150px; height: 137px; color: var(--tapis-2); }
.haras-logo { width: 156px; height: 142px; color: var(--frac); margin-bottom: 28px; }
.brand-name { font-family: var(--f-display); font-size: 23px; font-weight: 500; letter-spacing: -0.01em; }
.brand-sub { font-size: 13px; opacity: 0.75; margin-top: 3px; }
.brand-logo { max-height: 56px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-list a {
	font-size: 15.5px;
	font-weight: 500;
	text-decoration: none;
	padding: 6px 0;
	background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
	transition: background-size 0.3s var(--ease);
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current_page_item > a { background-size: 100% 1px; }
.has-hero .site-header:not(.is-scrolled) .nav-cta { background: var(--tapis-2); color: var(--frac); }
.has-hero .site-header:not(.is-scrolled) .nav-cta:hover { background: var(--sable); }
.nav-mobile-extra { display: none; }

.menu-toggle {
	display: none;
	align-items: center;
	gap: 12px;
	background: none;
	border: 0;
	padding: 10px 0;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
}
.menu-toggle-bars { display: grid; gap: 6px; width: 24px; }
.menu-toggle-bars span { height: 1.5px; background: currentColor; transition: transform 0.3s var(--ease); }
.menu-open .menu-toggle-bars span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .menu-toggle-bars span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- Visuels d'attente ---------- */
.ph {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 180px;
	overflow: hidden;
	background: linear-gradient(155deg, var(--sable) 0%, var(--sable-2) 100%);
}
.ph-arena { position: absolute; inset: 12%; width: 76%; height: 76%; }
.ph--hero .ph-arena { inset: 0; width: 100%; height: 100%; }
.ph-arena rect, .ph-arena line, .ph-arena path { fill: none; stroke: var(--frac); stroke-width: 1; opacity: 0.16; vector-effect: non-scaling-stroke; }
.ph-arena line { stroke-dasharray: 4 6; }
.ph-arena path { stroke: var(--rosette); opacity: 0.35; stroke-dasharray: 1 7; stroke-linecap: round; stroke-width: 1.5; }
.ph-hint {
	position: absolute; left: 16px; bottom: 16px; right: 16px;
	font-size: 13px; line-height: 1.4; color: var(--frac);
	background: rgba(251, 249, 244, 0.85); padding: 8px 12px; border-radius: var(--radius); width: fit-content;
}
.ph-hint small { color: var(--ardoise); }
.ph--hero { background: radial-gradient(120% 90% at 80% 10%, #4E6758 0%, var(--frac) 60%); }
.ph--hero .ph-arena rect, .ph--hero .ph-arena line { stroke: var(--sable); opacity: 0.22; }
.ph--hero .ph-arena path { stroke: var(--sable); opacity: 0.4; }
.ph--hero .ph-hint { top: calc(var(--header-h) + 20px); bottom: auto; left: auto; right: var(--gutter); }

/* ---------- Héros ---------- */
.hero {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	margin-top: calc(var(--header-h) * -1);
	color: var(--tapis-2);
	background: var(--frac);
	overflow: hidden;
	isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media > img, .hero-media > .ph { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
	content: "";
	position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(46, 66, 55, 0.55) 0%, rgba(46, 66, 55, 0) 28%),
		linear-gradient(0deg, rgba(30, 44, 36, 0.8) 0%, rgba(30, 44, 36, 0.32) 48%, rgba(30, 44, 36, 0.05) 75%);
}
.hero-content { padding-top: calc(var(--header-h) + 72px); padding-bottom: clamp(48px, 6vw, 80px); }
.hero-title { max-width: 17ch; font-size: clamp(46px, 7vw, 104px); line-height: 1.0; letter-spacing: -0.025em; }
.hero-text { max-width: 44ch; margin: 28px 0 36px; font-size: clamp(17px, 1.45vw, 20px); color: rgba(251, 249, 244, 0.86); }
.hero-board { margin-bottom: 32px; }

.hero--home {
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
	grid-template-rows: 1fr auto;
	min-height: max(660px, calc(100svh - 40px));
	background: linear-gradient(170deg, var(--frac-2) 0%, var(--frac) 70%);
}
.hero--home .hero-media { position: relative; inset: auto; z-index: 0; grid-column: 2; grid-row: 1; overflow: hidden; }
.hero--home .hero-media::after {
	background:
		linear-gradient(180deg, rgba(30, 44, 36, 0.55) 0%, rgba(30, 44, 36, 0) 22%),
		linear-gradient(90deg, rgba(46, 66, 55, 0.35) 0%, rgba(46, 66, 55, 0) 18%);
}
.hero--home .hero-content {
	grid-column: 1;
	grid-row: 1;
	align-self: end;
	max-width: none;
	margin: 0;
	padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
	padding-right: clamp(32px, 4vw, 72px);
}
.hero--home .hero-title { font-size: clamp(40px, 4.7vw, 76px); max-width: 12ch; line-height: 1.04; }
.hero--home .hero-text { max-width: 40ch; }
.hero--home .hero-facts { grid-column: 1 / -1; grid-row: 2; position: relative; z-index: 1; background: rgba(30, 44, 36, 0.55); }
.hero-facts { border-top: 1px solid var(--line-light); background: rgba(30, 44, 36, 0.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts > div { padding: 20px 0; }
.facts > div + div { padding-left: 28px; border-left: 1px solid var(--line-light); }
.facts dt { font-size: 13.5px; color: rgba(251, 249, 244, 0.66); }
.facts dd { font-family: var(--f-display); font-size: clamp(19px, 1.7vw, 24px); margin-top: 2px; }

.hero--page { min-height: clamp(440px, 64vh, 640px); }
.hero--page .hero-media::after {
	background:
		linear-gradient(180deg, rgba(30, 44, 36, 0.55) 0%, rgba(30, 44, 36, 0) 28%),
		linear-gradient(90deg, rgba(30, 44, 36, 0.62) 0%, rgba(30, 44, 36, 0.25) 45%, rgba(30, 44, 36, 0) 70%),
		linear-gradient(0deg, rgba(30, 44, 36, 0.55) 0%, rgba(30, 44, 36, 0) 50%);
}
.hero--page .hero-title { font-size: clamp(42px, 5.4vw, 80px); max-width: 11ch; }
.hero--page .hero-text { margin-bottom: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; margin-bottom: 22px; color: rgba(251, 249, 244, 0.75); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.crumbs--dark { color: var(--ardoise); margin-bottom: 0; }

/* Ouverture orchestrée de l'accueil (un seul moment) */
.js .hero--home .hero-content > * { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .hero--home .hero-board { transform: translateY(-14px); }
.js .hero--home .hero-media > * { transform: scale(1.06); transition: transform 2.6s var(--ease); }
.is-loaded .hero--home .hero-content > * { opacity: 1; transform: none; }
.is-loaded .hero--home .hero-media > * { transform: none; }
.hero--home .hero-content > :nth-child(2) { transition-delay: 0.15s; }
.hero--home .hero-content > :nth-child(3) { transition-delay: 0.35s; }
.hero--home .hero-content > :nth-child(4) { transition-delay: 0.5s; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tapis { background: var(--tapis); }
.section--sable { background: var(--sable); }
.section--brume { background: var(--brume); }
.section--frac { background: var(--frac); color: var(--tapis-2); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.intro + .offers { padding-top: 0; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head h2 + .section-sub { margin-top: 18px; }
.section-sub { color: var(--ardoise); max-width: 56ch; font-size: 18px; }
.section--frac .section-sub { color: rgba(245, 242, 235, 0.75); }
.section-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.section-head--row .link { flex-shrink: 0; margin-bottom: 8px; }

/* ---------- K : présentation ---------- */
.intro-grid { display: grid; grid-template-columns: 1.55fr 1fr; column-gap: clamp(40px, 6vw, 96px); align-items: end; }
.intro-grid .section-board { grid-column: 1 / -1; justify-self: start; }
.statement { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.12; letter-spacing: -0.015em; }
.intro-text p { color: var(--ardoise); margin-bottom: 20px; }

/* ---------- E : vignettes ---------- */
.tiles { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
.tile { display: flex; flex-direction: column; text-decoration: none; }
.tile--lead { grid-row: span 2; }
.tile:last-child { grid-column: span 2; }
.tile-media { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3; background: var(--sable); }
.tile--lead .tile-media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.tile:last-child .tile-media { aspect-ratio: 8 / 3; }
.tile-media > img, .tile-media > .ph { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.tile h3 { margin-top: 18px; }
.tile p { margin-top: 6px; color: var(--ardoise); font-size: 15.5px; max-width: 42ch; }
.tile:hover .tile-media > * { transform: scale(1.035); }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--rosette); }

/* ---------- Bloc texte + photo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 104px); align-items: center; }
.split--top { align-items: start; }
.split-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sable-2); }
.split-media > img, .split-media > .ph { width: 100%; height: 100%; object-fit: cover; }
.split-text h2 { margin-bottom: 24px; }
.split-text .lede { margin-bottom: 24px; }
.split-text > p { max-width: 54ch; }
.split-text > p + p { margin-top: 16px; }
.split-text .btn { margin-top: 36px; }
.split--top .split-media { position: sticky; top: calc(var(--header-h) + 24px); }

.checklist { display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 26px; }
.checklist li::before {
	content: ""; position: absolute; left: 2px; top: 0.7em;
	width: 7px; height: 7px; background: var(--rosette); transform: rotate(45deg);
}

/* ---------- C : résultats ---------- */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.score {
	font-family: var(--f-display);
	font-style: italic;
	font-weight: 400;
	font-size: clamp(92px, 15vw, 216px);
	line-height: 0.9;
	letter-spacing: -0.045em;
	white-space: nowrap;
}
.results-text h2 { margin-bottom: 20px; }
.results-text .btn { margin-top: 32px; }
.results-list { margin-top: 36px; border-top: 1px solid var(--line-light); }
.results-list li { padding: 18px 0; border-bottom: 1px solid var(--line-light); color: rgba(245, 242, 235, 0.75); font-size: 15.5px; }
.results-list strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 21px; color: var(--tapis-2); margin-bottom: 2px; }

/* ---------- M : chevaux ---------- */
.horse-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 40px) clamp(20px, 2.4vw, 32px); }
.horse-card { display: flex; flex-direction: column; }
.horse-card-media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sable); }
.horse-card-media > img, .horse-card-media > .ph { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: transform 0.8s var(--ease); }
.horse-card:hover .horse-card-media > img, .horse-card:hover .horse-card-media > .ph { transform: scale(1.035); }
.horse-card-body { padding-top: 18px; }
.horse-card-name { font-size: clamp(24px, 2vw, 30px); }
.horse-card-name a { text-decoration: none; }
.horse-card-name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--rosette); }
.horse-card-specs { margin-top: 6px; color: var(--ardoise); font-size: 15.5px; }
.horse-card-price { margin-top: 12px; font-family: var(--f-display); font-size: 22px; }
.horse-card--vendu .horse-card-media > * { filter: grayscale(0.6); opacity: 0.85; }

.tag {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	background: var(--tapis-2);
	color: var(--frac);
}
.horse-card-media .tag { position: absolute; top: 14px; left: 14px; }
.tag--reserve { color: var(--rosette); }
.tag--vendu { background: var(--frac); color: var(--tapis-2); }
.tag--disponible { background: var(--sauge); color: var(--frac); }
.tag--inline { margin-bottom: 18px; }

.search-card { display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; padding: clamp(28px, 3vw, 44px); background: var(--sable); border-radius: var(--radius); }
.search-card h3 { font-size: clamp(26px, 2.4vw, 34px); max-width: 18ch; }
.search-card p { color: var(--ardoise); max-width: 46ch; }
.search-card .btn { align-self: flex-start; margin-top: 8px; }
.search-card--span-2 { grid-column: span 2; }
.empty { max-width: 640px; padding: 40px; background: var(--tapis-2); border: 1px solid var(--line); border-radius: var(--radius); }
.empty h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px; }
.empty p { color: var(--ardoise); margin-bottom: 24px; }

/* ---------- B : citation ---------- */
.quote-section { padding-block: var(--section); background: var(--brume); }
.quote { max-width: 1000px; }
.quote blockquote p {
	font-family: var(--f-display);
	font-style: italic;
	font-size: clamp(28px, 3.3vw, 46px);
	line-height: 1.28;
	letter-spacing: -0.01em;
	text-wrap: balance;
}
.quote figcaption { margin-top: 24px; font-size: 15.5px; color: var(--ardoise); }
.quote figcaption::before { content: ""; display: inline-block; width: 32px; height: 1px; background: var(--rosette); vertical-align: middle; margin-right: 14px; }

/* ---------- Bandeau visite ---------- */
.visit { position: relative; background: var(--tapis); }
.visit-media { height: clamp(440px, 52vw, 700px); }
.visit-media > img, .visit-media > .ph { width: 100%; height: 100%; object-fit: cover; }
.visit .wrap { position: absolute; left: 0; right: 0; bottom: clamp(32px, 5vw, 64px); }
.visit-panel { max-width: 540px; background: var(--tapis-2); padding: clamp(28px, 3.5vw, 48px); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(30, 44, 36, 0.45); }
.visit-panel h2 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 14px; }
.visit-panel p { color: var(--ardoise); margin-bottom: 26px; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.gallery-item { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sable); }
.gallery-item:nth-child(2) { margin-top: clamp(24px, 5vw, 72px); }
.gallery-item > img, .gallery-item > .ph { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Le Haras ---------- */
.duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(16px, 2vw, 28px); margin-bottom: clamp(48px, 6vw, 80px); }
.duo > img, .duo > .ph { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.feature { border-top: 1px solid rgba(46, 66, 55, 0.25); padding-top: 20px; }
.feature dt { font-family: var(--f-display); font-size: 22px; line-height: 1.2; margin-bottom: 10px; }
.feature dd { font-size: 15.5px; color: var(--ardoise); }

.formulas { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.formula { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 40px); background: var(--tapis-2); border: 1px solid var(--line); border-radius: var(--radius); }
.formula h3 { font-size: clamp(24px, 2.2vw, 30px); }
.formula-for { min-height: 3.3em; margin-top: 8px; color: var(--ardoise); font-size: 15.5px; }
.formula-price { margin: 28px 0; font-family: var(--f-display); font-size: clamp(44px, 4vw, 60px); line-height: 1; letter-spacing: -0.02em; }
.formula-price span { display: block; margin-top: 8px; font-family: var(--f-text); font-size: 14px; letter-spacing: 0; color: var(--ardoise); }
.formula .checklist { flex: 1; margin-bottom: 32px; font-size: 15.5px; }
.formula .btn { align-self: flex-start; }
.formula--main { background: var(--frac); color: var(--tapis-2); border-color: var(--frac); }
.formula--main .formula-for, .formula--main .formula-price span { color: rgba(245, 242, 235, 0.72); }
.formula--main .checklist li::before { background: var(--sable); }

/* ---------- Cours & tarifs ---------- */
.price-list { margin-top: 36px; border-top: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--line); }
.price-row h3 { font-size: 23px; }
.price-row p { margin-top: 6px; color: var(--ardoise); font-size: 15.5px; max-width: 48ch; }
.price-row .price-row-price { margin: 0; font-family: var(--f-display); font-size: 28px; color: var(--frac); text-align: right; white-space: nowrap; }
.price-row-price span { display: block; font-family: var(--f-text); font-size: 13.5px; color: var(--ardoise); }

.packs { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.pack { padding: 32px 28px; background: var(--tapis-2); border-radius: var(--radius); }
.pack h3 { font-size: 22px; }
.pack-price { margin: 22px 0 10px; font-family: var(--f-display); font-size: 46px; line-height: 1; }
.pack p:last-child { color: var(--ardoise); font-size: 15px; }
.pack--main { background: var(--frac); color: var(--tapis-2); }
.pack--main p:last-child { color: rgba(245, 242, 235, 0.72); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); counter-reset: step; margin-bottom: 48px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line-light); padding-top: 24px; }
.steps li::before { content: counter(step); display: block; font-family: var(--f-display); font-style: italic; font-size: 56px; line-height: 1; color: var(--sable); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: rgba(245, 242, 235, 0.75); font-size: 15.5px; }

/* ---------- À propos ---------- */
.signature { margin-top: 28px !important; font-family: var(--f-display); font-style: italic; font-size: 28px; }
.timeline { margin-top: 12px; border-left: 1px solid rgba(46, 66, 55, 0.3); }
.timeline li { position: relative; padding: 0 0 36px 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 9px; width: 9px; height: 9px; background: var(--rosette); transform: rotate(45deg); }
.timeline-when { font-size: 14px; font-weight: 600; color: var(--rosette); }
.timeline h3 { margin: 4px 0 8px; }
.timeline p { color: var(--ardoise); font-size: 15.5px; max-width: 52ch; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.value { border-top: 1px solid var(--frac); padding-top: 22px; }
.value dt { font-family: var(--f-display); font-size: 30px; margin-bottom: 10px; }
.value dd { color: var(--ardoise); font-size: 15.5px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info h2 { font-size: clamp(28px, 2.6vw, 36px); }
.contact-phone { margin: 14px 0 22px; font-family: var(--f-display); font-weight: 500; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.1; }
.contact-phone a { text-decoration: none; }
.contact-phone a:hover { color: var(--rosette); }
.contact-list { margin: 40px 0 28px; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 600; align-self: start; }
.contact-list dd a { text-decoration-color: var(--rosette); text-underline-offset: 4px; }
.form-card { padding: clamp(28px, 4vw, 52px); background: var(--tapis-2); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 28px; }

.form .field { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: block; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; }
.form .opt { font-weight: 400; color: var(--ardoise); }
.form input, .form select, .form textarea {
	width: 100%;
	padding: 14px 16px;
	background: var(--tapis);
	border: 1px solid rgba(46, 66, 55, 0.22);
	border-radius: var(--radius);
	font-size: 16px;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--frac); background: #fff; box-shadow: 0 0 0 3px rgba(140, 90, 58, 0.2); }
.form .has-error input, .form .has-error textarea { border-color: var(--rosette); }
.field-error { display: block; margin-top: 6px; font-size: 14px; color: var(--rosette); }
.form .btn { width: 100%; margin-top: 6px; }
.form-legal { margin-top: 16px; font-size: 13.5px; color: var(--ardoise); }
.form-horse { margin-bottom: 20px; padding: 14px 16px; background: var(--tapis); border-left: 3px solid var(--rosette); font-size: 15.5px; }
.hp { position: absolute !important; left: -9999px; }
.notice { margin-bottom: 24px; padding: 16px 18px; border-radius: var(--radius); font-size: 15.5px; }
.notice strong { display: block; }
.notice--ok { background: var(--sauge); color: var(--frac); }
.notice--error { background: #F3E6DB; color: var(--rosette-dark); }

.map { position: relative; background: var(--sable); }
.map iframe { width: 100%; height: clamp(380px, 42vw, 520px); border: 0; filter: grayscale(0.85) contrast(1.05); }
.map-overlay { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); pointer-events: none; }
.map-card { pointer-events: auto; max-width: 380px; padding: 32px; background: var(--tapis-2); border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(30, 44, 36, 0.45); }
.map-card h2 { font-size: 30px; margin-bottom: 10px; }
.map-card p { color: var(--ardoise); font-size: 15.5px; margin-bottom: 16px; }

/* ---------- Fiche cheval ---------- */
.horse-head { padding: 28px 0 24px; }
.horse-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.horse-main-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; background: var(--sable); }
.horse-main-photo > img, .horse-main-photo > .ph { width: 100%; height: 100%; object-fit: cover; }
.horse-main-photo.is-portrait { aspect-ratio: 4 / 5; max-height: 78vh; }
.horse-main-photo.is-portrait > img { object-position: 50% 30%; }
.horse-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.horse-thumbs a { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.horse-thumbs img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.horse-thumbs a:hover img { opacity: 0.85; }
.horse-summary { position: sticky; top: calc(var(--header-h) + 24px); }
.horse-name { font-size: clamp(42px, 5vw, 72px); letter-spacing: -0.02em; }
.horse-excerpt { margin-top: 18px; color: var(--ardoise); font-size: 18px; }
.horse-price { margin-top: 28px; font-family: var(--f-display); font-size: 40px; line-height: 1; }
.horse-price span { display: block; margin-top: 8px; font-family: var(--f-text); font-size: 14px; color: var(--ardoise); }
.spec-list { margin-top: 32px; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.spec-list dt { color: var(--ardoise); }
.spec-list dd { font-weight: 500; }
.horse-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.horse-content { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 5vw, 80px); padding-block: clamp(56px, 7vw, 96px); }
.horse-content > :only-child { grid-column: 1; }
.horse-content h2 { font-size: clamp(28px, 2.6vw, 36px); margin-bottom: 20px; }
.horse-video { grid-column: 1; }
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--frac); }
.video-frame iframe { width: 100%; height: 100%; }
.search-band { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.search-band h2 { font-size: clamp(28px, 2.8vw, 40px); margin-bottom: 10px; }
.search-band p { color: var(--ardoise); max-width: 56ch; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 5vw; background: rgba(30, 44, 36, 0.94); }
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 20px; right: 20px; padding: 10px 18px; border: 1px solid rgba(245, 242, 235, 0.5); border-radius: 999px; background: none; color: var(--tapis-2); cursor: pointer; }

/* ---------- Pages simples ---------- */
.plain-head { padding: clamp(56px, 8vw, 104px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); margin-bottom: clamp(40px, 5vw, 64px); }
.plain-head h1 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.02em; }
.page-plain { padding-bottom: var(--section); }
.plain-thumb { border-radius: var(--radius); margin-bottom: 40px; }
.prose { font-size: 17.5px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(26px, 2.4vw, 34px); margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { max-width: 68ch; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.2em; }
.prose a { text-decoration-color: var(--rosette); text-underline-offset: 4px; }
.prose img { border-radius: var(--radius); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.post-card-media { display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.post-card-date { font-size: 14px; color: var(--ardoise); margin-bottom: 6px; }
.post-card h2 { font-size: 26px; margin-bottom: 8px; }
.post-card h2 a { text-decoration: none; }
.post-card p { color: var(--ardoise); font-size: 15.5px; }
.error-404 h1 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 20px; }
.error-404 .lede { margin-bottom: 32px; }
.nav-links { display: flex; gap: 8px; margin-top: 48px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.page-numbers.current { background: var(--frac); color: var(--tapis-2); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--frac); color: rgba(245, 242, 235, 0.78); font-size: 15.5px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--tapis-2); }
.site-footer .link { text-decoration: underline; text-decoration-color: var(--sable); text-underline-offset: 6px; }
.footer-salute { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center; padding: clamp(56px, 7vw, 96px) 0; border-bottom: 1px solid var(--line-light); }
.footer-salute-text { font-family: var(--f-display); font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; color: var(--tapis-2); max-width: 26ch; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0; }
.footer-brand p { margin-top: 18px; max-width: 32ch; }
.footer-title { font-family: var(--f-text); font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--sable); margin-bottom: 14px; }
.footer-col p + p { margin-top: 12px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid currentColor; border-radius: 999px; opacity: 0.85; transition: opacity 0.2s, background-color 0.2s; }
.socials a:hover { opacity: 1; }
.socials--small { margin-top: 0; gap: 4px; }
.socials--small a { width: 30px; height: 30px; border: 0; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 24px 0 32px; border-top: 1px solid var(--line-light); font-size: 14px; color: rgba(245, 242, 235, 0.6); }
.legal-list { display: flex; gap: 24px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	:root { --header-h: 72px; }
	.menu-toggle { display: inline-flex; }
	.site-nav {
		position: fixed;
		inset: 0;
		z-index: -1;
		flex-direction: column;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 32px;
		padding: calc(var(--header-h) + 80px) var(--gutter) 40px;
		background: var(--frac);
		color: var(--tapis-2);
		overflow-y: auto;
		visibility: hidden;
		opacity: 0;
		transition: opacity 0.3s, visibility 0.3s;
	}
	.menu-open .site-nav { visibility: visible; opacity: 1; }
	.menu-open .site-header, .menu-open.has-hero .site-header:not(.is-scrolled) { background: var(--frac); color: var(--tapis-2); border-bottom-color: var(--line-light); }
	.menu-open { overflow: hidden; }
	.menu-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
	.nav-list { flex-direction: column; align-items: flex-start; gap: 6px; }
	.nav-list a { font-family: var(--f-display); font-size: clamp(32px, 7vw, 44px); font-weight: 400; line-height: 1.3; }
	.site-nav .nav-cta { background: var(--tapis-2); color: var(--frac); }
	.nav-mobile-extra { display: grid; gap: 8px; margin-top: auto; font-size: 16px; color: rgba(245, 242, 235, 0.8); }
	.nav-mobile-extra a { text-decoration: none; }

	.tiles { grid-template-columns: 1fr 1fr; }
	.tile--lead { grid-row: auto; grid-column: span 2; }
	.tile--lead .tile-media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
	.features, .values { grid-template-columns: repeat(2, 1fr); }
	.packs { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-salute { grid-template-columns: auto 1fr; }
	.footer-salute .btn-row { grid-column: 1 / -1; }
	.horse-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
	body { font-size: 16.5px; }
	.topbar-place { display: none; }
	.topbar-inner { justify-content: center; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.facts > div:nth-child(n + 3) { border-top: 1px solid var(--line-light); }
	.hero--home { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; }
	.hero--home .hero-media { grid-column: 1; grid-row: 1; height: 62svh; min-height: 380px; }
	.hero--home .hero-content { grid-column: 1; grid-row: 2; padding: 40px var(--gutter) 44px; }
	.hero--home .hero-facts { grid-row: 3; }
	.hero--home .hero-media::after { background: linear-gradient(180deg, rgba(30, 44, 36, 0.55) 0%, rgba(30, 44, 36, 0) 30%); }
	.intro-grid, .split, .results-grid, .contact-grid, .horse-layout, .horse-content { grid-template-columns: 1fr; }
	.intro-text { margin-top: 28px; }
	.split--text-first .split-media { order: 2; }
	.split-media { aspect-ratio: 4 / 3; }
	.split--top .split-media, .horse-summary { position: static; }
	.split-media--portrait { aspect-ratio: 4 / 5; max-width: 480px; }
	.formulas { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.duo { grid-template-columns: 1fr; }
	.visit .wrap { position: relative; bottom: auto; margin-top: -96px; }
	.visit { padding-bottom: 8px; }
	.map-overlay { position: static; transform: none; padding-block: 24px; }
	.map-card { box-shadow: none; max-width: none; }
	.section-head--row { flex-direction: column; align-items: flex-start; }
	.price-row { grid-template-columns: 1fr; gap: 8px; }
	.price-row .price-row-price { text-align: left; }
}

@media (max-width: 600px) {
	.tiles, .horse-grid, .post-grid, .gallery, .features, .values, .packs, .footer-grid { grid-template-columns: 1fr; }
	.tile--lead, .tile:last-child, .search-card--span-2 { grid-column: auto; }
	.tile:last-child .tile-media, .tile--lead .tile-media { aspect-ratio: 4 / 3; }
	.gallery-item:nth-child(2) { margin-top: 0; }
	.gallery-item { aspect-ratio: 4 / 3; }
	.form-row { grid-template-columns: 1fr; gap: 0; }
	.contact-list > div, .spec-list > div { grid-template-columns: 1fr; gap: 4px; }
	.btn-row .btn { flex: 1 1 100%; }
	.hero-board { width: 44px; height: 44px; font-size: 24px; margin-bottom: 24px; }
	.topbar-links { gap: 16px; }
	.topbar-social { display: none; }
	.footer-salute { grid-template-columns: 1fr; }
	.brand-name { font-size: 20px; }
	.brand-mark { width: 42px; height: 37px; }
	.brand-sub { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; transition-delay: 0s !important; }
}
