/*
Theme Name: Sud Sauvage
Description: Thème sur mesure de la Ferme Équestre du Sud Sauvage, Saint-Philippe, La Réunion. Balades à cheval, poney et calèche.
Author: MyVizion
Version: 1.0.0
Text Domain: sud-sauvage
*/

/* ============ Polices auto-hébergées (Fontshare, RGPD) ============ */
@font-face {
  font-family: 'Clash Display';
  src: url('fonts/ClashDisplay-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-Variable.woff2') format('woff2');
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('fonts/GeneralSans-VariableItalic.woff2') format('woff2');
  font-weight: 200 700;
  font-style: italic;
  font-display: swap;
}

/* ============ Tokens ============ */
:root {
  --paper: #f3f5f0;
  --surface: #fbfcfa;
  --ink: #1c2b24;
  --muted: #54635b;
  --line: #dde3dc;
  --green: #1e4737;
  --green-deep: #122e25;
  --on-green: #e9efe9;
  --on-green-muted: #b7c6bc;
  --accent: #b0512c;
  --accent-deep: #8f3f1f;
  --accent-tint: rgba(176, 81, 44, .1);
  --radius: 16px;
  --shadow-soft: 0 10px 34px rgba(28, 43, 36, .09);
  --font-display: 'Clash Display', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'General Sans', 'Segoe UI', system-ui, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 68px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 570;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); letter-spacing: -0.008em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--on-green); }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(66px, 9vw, 120px); }
.section-tight { padding-block: clamp(46px, 6vw, 80px); }

/* ============ Boutons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-body); font-weight: 560; font-size: 1rem;
  padding: .82em 1.7em; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  background: var(--accent); color: #fff;
  transition: background .2s var(--ease-out), transform .06s ease-out, box-shadow .2s var(--ease-out);
}
.btn:hover { background: var(--accent-deep); box-shadow: 0 8px 22px rgba(143, 63, 31, .3); }
.btn:active { transform: scale(.97); transition-duration: .06s; }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: var(--paper); color: var(--green-deep); box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.btn-ghost-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1.5px #fff; }

/* ============ Header capsule liquid glass ============ */
.site-header {
  position: fixed; top: 10px; left: 0; right: 0; z-index: 100000; /* au-dessus de la bannière CookieAdmin (99999) pour que le menu mobile reste utilisable avant consentement */
  pointer-events: none;
}
.header-capsule {
  pointer-events: auto;
  position: relative;
  max-width: 1200px; margin-inline: auto;
  margin-inline: max(12px, calc((100% - 1200px) / 2));
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding-inline: 20px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 8px 32px rgba(18, 46, 37, .12);
  isolation: isolate;
  transition: box-shadow .3s var(--ease-out);
}
/* backdrop-filter sur le pseudo-élément : ne piège pas les position:fixed descendants */
.header-capsule::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(120deg, rgba(255,255,255,.62), rgba(255,255,255,.28) 45%, rgba(255,255,255,.5)),
    rgba(243, 245, 240, .38);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.site-header.is-scrolled .header-capsule { box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 14px 44px rgba(18, 46, 37, .2); }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .header-capsule::before { background: rgba(248, 250, 246, .97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-capsule { border-color: var(--line); }
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name .b1 { font-family: var(--font-body); font-weight: 540; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.brand-name .b2 { font-family: var(--font-display); font-weight: 600; font-size: 1.14rem; letter-spacing: -0.01em; color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  text-decoration: none; font-weight: 520; font-size: .97rem; color: var(--ink);
  padding: .5em .85em; border-radius: 999px;
  transition: background .18s var(--ease-out);
}
.main-nav a:hover { background: rgba(28, 43, 36, .08); }
.main-nav a[aria-current="page"] { background: rgba(28, 43, 36, .1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: .62em 1.35em; font-size: .95rem; }
.lang-switch { font-size: .9rem; }
.lang-switch select { border: 0; background: transparent; font: inherit; color: var(--ink); }

/* Burger */
.burger {
  display: none; position: relative; z-index: 130;
  width: 46px; height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--green-deep);
  align-items: center; justify-content: center;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
  position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ============ Menu mobile plein écran ============ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 34px) 26px 26px;
  visibility: hidden; opacity: 0;
  transition: opacity .32s var(--ease-out), visibility 0s linear .32s;
  background: rgba(15, 36, 29, .86);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .mobile-menu { background: #10241d; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition-delay: 0s; }
.mobile-menu nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu nav a {
  color: var(--on-green); text-decoration: none;
  font-family: var(--font-display); font-weight: 560; font-size: 2rem; letter-spacing: -0.01em;
  padding: .32em 0;
  opacity: 0; transform: translateY(18px);
}
.mobile-menu.is-open nav a { opacity: 1; transform: none; transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.mobile-menu.is-open nav a:nth-child(1) { transition-delay: .06s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: .1s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: .14s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: .18s; }
.mobile-menu.is-open nav a:nth-child(5) { transition-delay: .22s; }
.mobile-menu.is-open nav a:nth-child(6) { transition-delay: .26s; }
.mobile-menu-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.mobile-menu-foot .btn { width: 100%; max-width: 420px; }
.mobile-menu-foot .tels { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.mobile-menu-foot .tels a { color: var(--on-green); text-decoration: none; font-weight: 560; font-size: 1.05rem; }
.mobile-menu-foot .lang-switch { color: var(--on-green-muted); }
.mobile-menu-foot .lang-switch select { color: var(--on-green); background: transparent; }

@media (max-width: 940px) {
  .main-nav, .header-actions .btn, .header-actions .lang-switch { display: none; }
  .burger { display: inline-flex; }
  .header-capsule { padding-inline: 16px 10px; }
}

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100dvh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 42%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 30, 24, .34), rgba(15, 30, 24, 0) 32%),
    linear-gradient(6deg, rgba(13, 28, 22, .78) 8%, rgba(13, 28, 22, .18) 52%, rgba(13, 28, 22, 0) 74%);
}
.hero-inner { width: 100%; padding-bottom: clamp(40px, 7vh, 84px); }
.hero h1 { max-width: 13ch; color: #fff; margin-bottom: .35em; }
.hero .lead { color: rgba(255, 255, 255, .92); max-width: 44ch; margin-bottom: 1.6em; font-size: 1.18rem; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Traces de fers à cheval ============ */
.hoof-trail {
  display: flex; justify-content: center; align-items: center; gap: clamp(26px, 5vw, 58px);
  padding-block: clamp(10px, 2vw, 26px);
  overflow: hidden;
}
.hoof-trail svg {
  width: clamp(20px, 2.6vw, 28px); height: auto;
  color: var(--green);
  opacity: 0; transform: translateY(10px) scale(.6) rotate(var(--r, 8deg));
}
.hoof-trail svg:nth-child(even) { --r: -9deg; margin-top: 16px; }
.hoof-trail.in svg {
  opacity: .5; transform: translateY(0) scale(1) rotate(var(--r, 8deg));
  transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
}
.hoof-trail.in svg:nth-child(1) { transition-delay: .05s; }
.hoof-trail.in svg:nth-child(2) { transition-delay: .22s; }
.hoof-trail.in svg:nth-child(3) { transition-delay: .39s; }
.hoof-trail.in svg:nth-child(4) { transition-delay: .56s; }
.hoof-trail.in svg:nth-child(5) { transition-delay: .73s; }
.hoof-trail-dark svg { color: var(--on-green); }

/* ============ Révélations au scroll ============ */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-d1.in { transition-delay: .08s; }
.reveal-d2.in { transition-delay: .16s; }
.reveal-d3.in { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hoof-trail svg { opacity: 1 !important; transform: none !important; transition: none !important; }
  .mobile-menu nav a { transition: none !important; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============ Split intro ============ */
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 6vw, 84px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 3.7; }
.facts { list-style: none; padding: 0; margin: 1.6em 0 0; display: grid; gap: .85em; }
.facts li { display: flex; gap: 12px; align-items: baseline; font-size: 1.02rem; }
.facts li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.facts strong { font-weight: 620; }

/* ============ Activités ============ */
.activities-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(26px, 4vw, 44px); flex-wrap: wrap; }
.activities-head h2 { margin: 0; max-width: 16ch; }
.activities {
  display: grid; gap: 18px;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-template-rows: auto auto;
}
.activity { position: relative; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; color: #fff; text-decoration: none; isolation: isolate; }
.activity:nth-child(1) { grid-row: 1 / 3; min-height: 560px; }
.activity img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.activity::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(8deg, rgba(13, 28, 22, .82) 4%, rgba(13, 28, 22, .18) 46%, rgba(13, 28, 22, 0) 66%); transition: background .3s; }
.activity:hover img { transform: scale(1.045); }
.activity-body { padding: clamp(18px, 2.6vw, 28px); }
.activity h3 { color: #fff; margin-bottom: .3em; }
.activity p { color: rgba(255, 255, 255, .88); font-size: .97rem; margin: 0; max-width: 40ch; }
.activity .tag {
  position: absolute; top: 16px; left: 16px;
  font-size: .82rem; font-weight: 580; letter-spacing: .02em;
  background: rgba(255, 255, 255, .92); color: var(--green-deep);
  padding: .34em .95em; border-radius: 999px;
}

/* ============ Bande immersive (bloc inversé) ============ */
.band {
  position: relative; color: var(--on-green); isolation: isolate;
  padding-block: clamp(80px, 12vw, 150px);
}
.band-media { position: absolute; inset: 0; z-index: -2; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(18, 46, 37, .93) 30%, rgba(18, 46, 37, .55) 70%, rgba(18, 46, 37, .35)); }
.band h2 { color: #fff; max-width: 17ch; }
.band .lead { color: var(--on-green-muted); }
.band-inner { max-width: 620px; }

/* ============ Teaser ferme (collage) ============ */
.farm-collage { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; align-items: center; }
.farm-collage .fc-text { grid-column: 1 / 5; }
.farm-collage .fc-img1 { grid-column: 5 / 10; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.farm-collage .fc-img2 { grid-column: 10 / 13; margin-top: 74px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.farm-collage img { width: 100%; height: 100%; object-fit: cover; }
.farm-collage .fc-img1 img { aspect-ratio: 5 / 3.6; }
.farm-collage .fc-img2 img { aspect-ratio: 3 / 4.1; }

/* ============ Galerie strip ============ */
.gallery-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 30vw, 380px);
  gap: 16px; overflow-x: auto; padding-block: 6px;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(18px, calc((100vw - 1200px) / 2 + 40px));
}

.gallery-strip figure { margin: 0; scroll-snap-align: center; border-radius: var(--radius); overflow: hidden; }
.gallery-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ============ Infos pratiques ============ */
.infos { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: clamp(26px, 4vw, 54px); }
.infos h2 { grid-column: 1 / -1; max-width: 18ch; }
.info-block h3 { margin-bottom: .5em; }
.info-block p { color: var(--muted); margin-bottom: .4em; }
.info-block a { color: var(--ink); font-weight: 560; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cta-panel {
  margin-top: clamp(40px, 6vw, 70px);
  background: var(--green); color: var(--on-green);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(30px, 5vw, 56px);
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-panel h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0; max-width: 22ch; }
.cta-panel .btn { flex: none; }

/* ============ Pages internes ============ */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 110px)); padding-bottom: clamp(20px, 4vw, 46px); }
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { max-width: 52ch; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.6em; }

/* Fiches lieux (la ferme) */
.place { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; }
.place + .place { margin-top: clamp(50px, 8vw, 100px); }
.place:nth-of-type(even) .place-media { order: 2; }
.place-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.place-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.place h2 { max-width: 15ch; }
.place p { color: var(--muted); max-width: 52ch; }

/* Équipe */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.team-card h3 { margin-bottom: .2em; }
.team-card .role { color: var(--accent); font-weight: 600; font-size: .95rem; margin-bottom: .8em; }
.team-card p { color: var(--muted); margin: 0; }

/* ============ Formules (nos-tarifs) ============ */
.formule-group { margin-top: clamp(40px, 6vw, 64px); }
.formule-group > h2 { display: flex; align-items: center; gap: 16px; }
.formule-group > h2 svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.formules { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 22px; }
.formule {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 30px);
  display: flex; flex-direction: column; gap: .5em;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.formule:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.formule .duree { font-family: var(--font-display); font-weight: 600; font-size: 1.6rem; color: var(--green); }
.formule h3 { margin: 0; font-size: 1.15rem; }
.formule p { color: var(--muted); font-size: .97rem; margin: 0; flex: 1; }
.formule .pour { font-size: .88rem; font-weight: 580; color: var(--accent); }
.tarif-note {
  margin-top: clamp(40px, 6vw, 60px);
  background: var(--accent-tint); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.tarif-note p { margin: 0; max-width: 52ch; font-weight: 520; }

/* ============ Galerie page ============ */
.masonry { columns: 3 300px; column-gap: 16px; }
.masonry figure { margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; break-inside: avoid; }
.masonry img { width: 100%; }
.masonry figcaption { font-size: .85rem; color: var(--muted); padding: 8px 4px 0; }

/* ============ Contact ============ */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 70px); align-items: start; }
.contact-aside .info-block + .info-block { margin-top: 26px; }
.contact-form-panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 42px); }

/* FormLayer harmonisation */
.formlayer-form-wrapper input[type="text"],
.formlayer-form-wrapper input[type="email"],
.formlayer-form-wrapper input[type="tel"],
.formlayer-form-wrapper input[type="number"],
.formlayer-form-wrapper select,
.formlayer-form-wrapper textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .8em 1em;
}
.formlayer-form-wrapper input:focus, .formlayer-form-wrapper select:focus, .formlayer-form-wrapper textarea:focus {
  outline: none; border-color: var(--green);
}
.formlayer-form-wrapper label { font-weight: 560; font-size: .95rem; }
.formlayer-form-wrapper .formlayer-submit-btn,
.formlayer-form-wrapper button[type="submit"] {
  font-family: var(--font-body); font-weight: 560; font-size: 1rem;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: .82em 1.9em; cursor: pointer;
  transition: background .2s var(--ease-out), transform .06s ease-out;
}
.formlayer-form-wrapper .formlayer-submit-btn:hover { background: var(--accent-deep); }
.formlayer-form-wrapper .formlayer-submit-btn:active { transform: scale(.97); }

/* ============ Footer ============ */
.site-footer { background: var(--green-deep); color: var(--on-green-muted); margin-top: clamp(60px, 9vw, 120px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(26px, 4vw, 50px); padding-block: clamp(50px, 7vw, 80px); }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: .9em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.site-footer a { color: var(--on-green-muted); text-decoration: none; transition: color .18s; }
.site-footer a:hover { color: #fff; }
.footer-brand svg { width: 38px; height: 38px; color: var(--on-green); margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(233, 239, 233, .14); padding-block: 20px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ============ Barre de conversion mobile ============ */
.convert-bar {
  position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 80;
  display: none;
  align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgba(18, 46, 37, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
  transform: translateY(120%);
  transition: transform .4s var(--ease-out);
}
.convert-bar.is-visible { transform: none; }
.convert-bar .cb-label { font-size: .86rem; line-height: 1.25; }
.convert-bar .cb-label strong { display: block; font-size: .97rem; }
.convert-bar .cb-actions { display: flex; gap: 8px; flex: none; }
.convert-bar .btn { padding: .7em 1.3em; font-size: .93rem; }
.convert-bar .cb-tel {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; text-decoration: none;
}
.convert-bar .cb-tel svg { width: 20px; height: 20px; }
@media (max-width: 820px) { .convert-bar { display: flex; } body { padding-bottom: 0; } }

/* ============ Responsive ============ */
@media (max-width: 940px) {
  .split, .place, .contact-grid, .team { grid-template-columns: 1fr; }
  .place:nth-of-type(even) .place-media { order: 0; }
  .split-media img { aspect-ratio: 4 / 3; }
  .infos { grid-template-columns: 1fr; gap: 26px; }
  .farm-collage .fc-text { grid-column: 1 / -1; margin-bottom: 8px; }
  .farm-collage .fc-img1 { grid-column: 1 / 8; }
  .farm-collage .fc-img2 { grid-column: 8 / 13; margin-top: 40px; }
}
@media (max-width: 820px) {
  .activities {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82vw;
    grid-template-columns: none; grid-template-rows: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * clamp(18px, 4vw, 40px));
    padding-inline: clamp(18px, 4vw, 40px);
  }
  .activities::-webkit-scrollbar { display: none; }
  .activity, .activity:nth-child(1) { grid-row: auto; min-height: 430px; scroll-snap-align: center; }
  .masonry { columns: 2 160px; }
  .hero-media img { object-position: 55% 45%; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .farm-collage .fc-img1 { grid-column: 1 / -1; }
  .farm-collage .fc-img2 { display: none; }
  .gallery-strip { padding-inline: 18px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero .lead { font-size: 1.05rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
/* ============ Indicateur de scroll : cheval au galop ============ */
.scroll-horse {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 68px; height: 68px; padding: 0;
  border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%;
  background: rgba(243, 245, 240, .72);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 10px 30px rgba(18, 46, 37, .22);
  display: grid; place-items: center; cursor: pointer;
  opacity: 0; transform: translateY(18px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.scroll-horse.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.scroll-horse:active { transform: scale(.94); transition-duration: .06s; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .scroll-horse { background: #f6f8f4; -webkit-backdrop-filter: none; backdrop-filter: none; border-color: var(--line); }
}
.sh-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sh-ring circle { fill: none; stroke-width: 3; }
.sh-track { stroke: rgba(28, 43, 36, .12); }
.sh-bar { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 157; stroke-dashoffset: 157; }
.sh-stage {
  display: block; width: 42px;
  transform: perspective(260px) rotateY(14deg) rotateX(7deg);
  transform-style: preserve-3d;
}
.sh-horse { display: block; width: 100%; height: auto; }
.sh-horse g, .sh-horse circle { color: var(--green); }
.sh-shadow { fill: rgba(18, 46, 37, .28); transform-origin: 17px 36.4px; }
.scroll-horse.is-galloping .sh-stage { animation: sh-ride .44s ease-in-out infinite; }
.scroll-horse.is-galloping .sh-shadow { animation: sh-shadow .44s ease-in-out infinite; }
@keyframes sh-ride {
  0%, 100% { transform: perspective(260px) rotateY(14deg) rotateX(7deg) translateY(0) rotateZ(0deg); }
  35% { transform: perspective(260px) rotateY(9deg) rotateX(4deg) translateY(-2.6px) rotateZ(3deg); }
  70% { transform: perspective(260px) rotateY(12deg) rotateX(6deg) translateY(-.6px) rotateZ(-1.5deg); }
}
@keyframes sh-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .6; } }
@media (max-width: 820px) { .scroll-horse { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .scroll-horse.is-galloping .sh-stage, .scroll-horse.is-galloping .sh-shadow { animation: none !important; }
}
/* ============ Polish v1.1.0 : audits DA desktop / mobile / craft ============ */

/* Typo : échelle éditoriale */
.lead { font-size: clamp(1.2rem, 1.3vw, 1.32rem); line-height: 1.55; }
.hero h1 { font-size: clamp(2.75rem, 5.4vw, 5.5rem); }
.hero .lead { font-size: clamp(1.18rem, 1.35vw, 1.35rem); }
p, .lead { text-wrap: pretty; }

/* Skip-link affichable au clavier */
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus {
  left: 50%; top: 14px; transform: translateX(-50%); z-index: 200;
  background: var(--green-deep); color: #fff;
  padding: .7em 1.4em; border-radius: 999px; text-decoration: none;
  box-shadow: 0 10px 30px rgba(18, 46, 37, .35);
}

/* Header : le verre se solidifie au scroll */
.header-capsule {
  background-color: rgba(243, 245, 240, 0);
  transition: box-shadow .3s var(--ease-out), background-color .3s var(--ease-out), border-color .3s var(--ease-out);
}
.site-header.is-scrolled .header-capsule {
  background-color: rgba(243, 245, 240, .5);
  border-color: rgba(255, 255, 255, .65);
}
.main-nav a[aria-current="page"] { background: rgba(28, 43, 36, .12); box-shadow: inset 0 0 0 1.5px rgba(28, 43, 36, .16); }

/* Burger : retour tactile */
.burger { -webkit-tap-highlight-color: transparent; transition: transform .15s var(--ease-out); }
.burger:active { transform: scale(.92); }
.burger span, .burger span::before, .burger span::after { width: 22px; }

/* Menu mobile : tappable, scrollable, animé dans les deux sens */
.mobile-menu {
  pointer-events: auto;
  overflow-y: auto; overscroll-behavior: contain;
  padding: calc(var(--header-h) + clamp(14px, 3svh, 34px)) 26px calc(22px + env(safe-area-inset-bottom, 0px));
  transform: scale(1.03);
  transition: opacity .32s var(--ease-out), transform .32s var(--ease-out), visibility 0s linear .32s;
}
.mobile-menu.is-open { transform: none; }
.mobile-menu nav a {
  font-size: clamp(1.55rem, 7.4vw, 2rem); line-height: 1.2; padding: .3em 0;
  transition: opacity .22s var(--ease-out), transform .22s var(--ease-out);
}
.mobile-menu nav a[aria-current="page"] { color: #fff; }
.mobile-menu nav a[aria-current="page"]::after {
  content: ""; display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent); margin-left: 14px; vertical-align: middle;
}
.mobile-menu-foot { opacity: 0; transform: translateY(14px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.mobile-menu.is-open .mobile-menu-foot { opacity: 1; transform: none; transition: opacity .5s var(--ease-out) .3s, transform .5s var(--ease-out) .3s; }
.mobile-menu-foot .tels a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: .4em 1.1em; border: 1px solid rgba(233, 239, 233, .22); border-radius: 999px;
}
.mobile-menu-foot .lang-switch select {
  min-height: 44px; padding: 8px 14px;
  border: 1px solid rgba(233, 239, 233, .25); border-radius: 999px;
}
html.menu-open .convert-bar { transform: translateY(140%); }

/* Cartes activités : scrim AA + réponse au survol */
.activity::after {
  background: linear-gradient(8deg, rgba(13, 28, 22, .92) 6%, rgba(13, 28, 22, .44) 40%, rgba(13, 28, 22, 0) 72%);
  opacity: .95;
  transition: opacity .8s var(--ease-out);
}
.activity:hover::after { opacity: 1; }
.activities, .gallery-strip { overscroll-behavior-x: contain; }

/* Bandeau galerie : affordance de défilement */
.gallery-strip { scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding-bottom: 12px; }

/* Collage ferme : respiration texte/image */
@media (min-width: 941px) {
  .farm-collage .fc-text { padding-right: clamp(16px, 3.5vw, 52px); }
}

/* Formules : hiérarchie interne + mise en avant de la journée (groupe de 5) */
.formule h3 { font-size: 1.28rem; }
.formule .pour { margin-top: .9em; padding-top: .9em; border-top: 1px solid var(--line); }
@media (min-width: 941px) {
  .formules .formule:nth-child(4):nth-last-child(2) {
    grid-column: span 2;
    background: var(--accent-tint);
    border-color: rgba(176, 81, 44, .25);
  }
}

/* Contact : les téléphones au rang de conversion principale */
.contact-aside a[href^="tel:"] {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  letter-spacing: -0.01em; text-decoration: none; color: var(--green-deep);
}
.contact-aside a[href^="tel:"]:hover { color: var(--accent); }

/* Formulaire : focus visible et transitions */
.formlayer-form-wrapper input[type="text"],
.formlayer-form-wrapper input[type="email"],
.formlayer-form-wrapper input[type="tel"],
.formlayer-form-wrapper input[type="number"],
.formlayer-form-wrapper select,
.formlayer-form-wrapper textarea {
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.formlayer-form-wrapper input:focus,
.formlayer-form-wrapper select:focus,
.formlayer-form-wrapper textarea:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(30, 71, 55, .16);
}
.formlayer-form-wrapper .formlayer-submit-btn { transition: background .2s var(--ease-out), transform .06s ease-out, box-shadow .2s var(--ease-out); }
.formlayer-form-wrapper .formlayer-submit-btn:hover { box-shadow: 0 8px 22px rgba(143, 63, 31, .3); }
@media (max-width: 600px) { .formlayer-form-wrapper .formlayer-submit-btn { width: 100%; } }

/* Boutons : hover ghost dans la gamme, ombres teintées */
.btn-ghost:hover { background: var(--green); color: var(--on-green); box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-light:hover { box-shadow: 0 8px 22px rgba(18, 46, 37, .35); }
.convert-bar { box-shadow: 0 12px 40px rgba(11, 26, 20, .45); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }

/* Footer : intitulés en labels, liens remontés d'un cran */
.site-footer h4 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-green-muted); margin-bottom: 1.1em;
}
.footer-brand h4 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 570;
  letter-spacing: -0.01em; text-transform: none; color: #fff;
}
.site-footer a { color: var(--on-green); }
@media (max-width: 820px) {
  .footer-bottom { padding-bottom: calc(20px + 78px + env(safe-area-inset-bottom, 0px)); }
}

/* Focus visible sur fonds sombres */
.band :focus-visible, .cta-panel :focus-visible,
.site-footer :focus-visible, .mobile-menu :focus-visible,
.hero :focus-visible { outline-color: var(--on-green); }

/* Préférences d'affichage */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .convert-bar { background: #122e25; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* Page cours */
.formule .duree small { font-size: .5em; font-weight: 520; color: var(--muted); letter-spacing: 0; }

/* ============ Événement ponctuel (inc/evenement.php) ============ */
.event-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 1.2em; padding: 5px 16px 5px 5px;
  border-radius: 999px; text-decoration: none;
  background: rgba(255, 255, 255, .92); color: var(--green-deep);
  font-weight: 560; font-size: .95rem; line-height: 1.25;
  box-shadow: 0 8px 24px rgba(13, 28, 22, .28);
  transition: background .2s var(--ease-out), transform .2s var(--ease-out);
}
.event-pill:hover { background: #fff; transform: translateY(-1px); }
.event-pill-tag {
  flex: none; background: var(--accent); color: #fff;
  font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  padding: .4em .95em; border-radius: 999px;
}

.event-section { padding-top: clamp(46px, 6vw, 80px); }
.event-card {
  display: grid; grid-template-columns: .85fr 1.15fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px); overflow: hidden;
  box-shadow: var(--shadow-soft);
  scroll-margin-top: calc(var(--header-h) + 30px);
}
.event-media { position: relative; min-height: 340px; }
.event-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(255, 255, 255, .92); color: var(--green-deep);
  font-size: .82rem; font-weight: 580; letter-spacing: .02em;
  padding: .34em .95em; border-radius: 999px;
}
.event-body { padding: clamp(24px, 4vw, 48px); }
.event-kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9em;
}
.event-body h2 { margin-bottom: .3em; }
.event-body .lead { margin-bottom: 1.1em; }
.event-steps { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: .6em; }
.event-steps li { display: flex; gap: 12px; align-items: baseline; }
.event-steps li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); transform: translateY(-1px); }
.event-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 1.6em; }
.event-dates-label { font-weight: 600; }
.event-dates ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.event-date {
  background: var(--accent-tint); color: var(--accent-deep);
  font-weight: 580; font-size: .95rem;
  padding: .36em .95em; border-radius: 999px;
}
.event-date.is-passee { background: transparent; color: var(--muted); text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--line); }
.event-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 24px; padding-top: 1.4em; border-top: 1px solid var(--line);
}
.event-price { margin: 0; color: var(--muted); line-height: 1.3; }
.event-price strong {
  display: block; font-family: var(--font-display); font-weight: 600;
  font-size: 2.1rem; letter-spacing: -0.01em; color: var(--green);
}
.event-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.event-legal { margin: 1.3em 0 0; font-size: .8rem; color: var(--muted); }
.page-event { margin-bottom: clamp(40px, 6vw, 64px); }

@media (max-width: 940px) {
  .event-card { grid-template-columns: 1fr; }
  .event-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 520px) {
  .event-pill { font-size: .88rem; }
  .event-ctas, .event-ctas .btn { width: 100%; }
}
/* ============ FAQ (questions fréquentes) ============ */
.faq-bloc { margin-top: clamp(40px, 6vw, 70px); max-width: 68ch; }
.faq-bloc h2 { margin-bottom: .5em; }
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1em 2.4em 1em 0;
  font-family: var(--font-display); font-weight: 560; font-size: 1.1rem; line-height: 1.3;
  transition: color .18s var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary::after {
  content: ""; position: absolute; right: .5em; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item > div { padding: 0 2.4em 1.3em 0; color: var(--muted); }
.faq-item > div p:last-child { margin-bottom: 0; }

/* Phrase de clôture de l'encadré final */
.cta-panel p { flex: 1 1 100%; order: 3; margin: 0; color: var(--on-green-muted); max-width: 62ch; }
