/* ==========================================================================
   Le Jardin des Chevaux — feuille de style principale
   Direction : naturel & chaleureux
   ========================================================================== */

/* --- 1. Variables ------------------------------------------------------- */
:root {
  /* Couleurs */
  --forest:      #2f4033;   /* vert forêt profond — titres, footer */
  --forest-soft: #3f5745;
  --pasture:     #6d8f5e;   /* vert pâturage — accents */
  --pasture-dk:  #55744a;
  --earth:       #8b6f47;   /* terre / bois */
  --ochre:       #c08f4a;   /* accent chaud */
  --sand:        #e7dfd0;   /* sable */
  --cream:       #f8f4ec;   /* fond principal */
  --cream-dk:    #f0e9dc;
  --ink:         #2b2a26;   /* texte */
  --ink-soft:    #5c5a52;
  --white:       #fffdf9;

  /* Typo */
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Mesures */
  --wrap: 1180px;
  --wrap-narrow: 720px;
  --radius: 4px;
  --shadow: 0 18px 40px -22px rgba(47, 64, 51, .45);
  --transition: .45s cubic-bezier(.2, .7, .3, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

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

a { color: var(--pasture-dk); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--forest);
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 1.35rem + 2.1vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.55rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

section { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }

/* Utilitaires typographiques */
.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--earth);
  margin: 0 0 1rem;
  display: block;
}
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.6; color: var(--ink-soft); }
.center { text-align: center; }
.center .eyebrow { margin-inline: auto; }

/* Filet décoratif */
.rule {
  width: 64px; height: 2px; border: 0; margin: 0 0 1.75rem;
  background: linear-gradient(90deg, var(--ochre), var(--pasture));
}
.center .rule { margin-inline: auto; }

/* --- 3. Boutons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: .93rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: .95rem 1.85rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: var(--transition);
}
.btn--primary { background: var(--forest); color: var(--cream); }
.btn--primary:hover { background: var(--pasture-dk); color: var(--white); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--forest); background: transparent; }
.btn--ghost:hover { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.btn--light { border-color: rgba(255,253,249,.75); color: var(--white); background: rgba(255,253,249,.08); backdrop-filter: blur(4px); }
.btn--light:hover { background: var(--white); color: var(--forest); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

/* --- 4. En-tête --------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 1.1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,30,22,.72) 0%, rgba(20,30,22,.34) 55%, rgba(20,30,22,0) 100%);
  transition: opacity var(--transition);
}
.site-header.is-solid { background: var(--cream); box-shadow: 0 1px 0 rgba(47,64,51,.12); padding: .7rem 0; }
.site-header.is-solid::after { opacity: 0; }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand__mark { width: auto; height: 56px; flex: none; }
.brand__name {
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.1; font-weight: 500;
  color: var(--white); letter-spacing: .01em; transition: color var(--transition);
}
.brand__tag {
  display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .2em;
  text-transform: uppercase; color: rgba(255,253,249,.88); margin-top: .18rem;
  transition: color var(--transition);
}
.site-header:not(.is-solid) .brand__name,
.site-header:not(.is-solid) .brand__tag { text-shadow: 0 1px 10px rgba(14,22,16,.8), 0 1px 2px rgba(14,22,16,.55); }
.site-header:not(.is-solid) .brand__mark { filter: drop-shadow(0 2px 7px rgba(14,22,16,.6)); }
.is-solid .brand__name { color: var(--forest); }
.is-solid .brand__tag { color: var(--earth); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-size: .9rem; font-weight: 600; letter-spacing: .05em; text-decoration: none;
  color: rgba(255,253,249,.9); position: relative; padding: .25rem 0;
  transition: color var(--transition);
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0;
  background: var(--ochre); transition: width var(--transition);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.is-solid .nav a { color: var(--forest-soft); }
.nav .btn { padding: .7rem 1.4rem; font-size: .8rem; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  width: 46px; height: 46px;
}
.nav-toggle span {
  display: block; height: 2px; width: 26px; background: var(--white); margin: 5px 0;
  transition: var(--transition);
}
.is-solid .nav-toggle span { background: var(--forest); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .brand { gap: .55rem; }
  .brand__mark { height: 46px; }
  .brand__name { font-size: 1.04rem; }
  .brand__tag { font-size: .58rem; letter-spacing: .13em; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 1.6rem; padding: 2rem 2.25rem;
    transform: translateX(100%); transition: transform var(--transition);
    box-shadow: -20px 0 50px -30px rgba(0,0,0,.5);
  }
  .nav.is-open { transform: translateX(0); }
  .nav a { color: var(--forest); font-size: 1.15rem; font-family: var(--serif); font-weight: 500; }
}

/* --- 5. Hero ------------------------------------------------------------ */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding: 8rem 0 clamp(3rem, 6vw, 6rem); color: var(--white); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24,34,26,.42) 0%, rgba(24,34,26,.15) 35%, rgba(24,34,26,.78) 100%);
}
.hero h1 { color: var(--white); max-width: 17ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .lead { color: rgba(255,253,249,.92); max-width: 46ch; }
.hero .eyebrow { color: var(--sand); }

/* Hero secondaire (pages internes) */
.hero--page { min-height: 62vh; }
.hero--page h1 { max-width: 20ch; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  color: rgba(255,253,249,.7); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-decoration: none;
}
.scroll-cue::after {
  content: ""; width: 1px; height: 34px; background: currentColor;
  animation: cue 2.4s ease-in-out infinite;
}
@keyframes cue { 0%,100% { transform: scaleY(.35); transform-origin: top; opacity: .4 } 50% { transform: scaleY(1); opacity: 1 } }

/* --- 6. Blocs de contenu ------------------------------------------------ */
.section--sand { background: var(--sand); }
.section--cream-dk { background: var(--cream-dk); }
.section--forest { background: var(--forest); color: rgba(255,253,249,.85); }
.section--forest h2, .section--forest h3 { color: var(--white); }
.section--forest .eyebrow { color: var(--sand); }
.section--forest .lead { color: rgba(255,253,249,.8); }

/* Duo texte + image */
.duo {
  display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr 1fr;
}
.duo--reverse .duo__media { order: -1; }
.duo__media { position: relative; }
.duo__media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.duo__media--wide img { aspect-ratio: 5 / 4; }
.duo__media figcaption {
  font-size: .82rem; color: var(--ink-soft); margin-top: .7rem; font-style: italic;
}
@media (max-width: 820px) {
  .duo { grid-template-columns: 1fr; }
  .duo--reverse .duo__media { order: 0; }
}

/* Grille de cartes */
.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.85rem;
  border: 1px solid rgba(47,64,51,.1); height: 100%;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
.card__icon { width: 38px; height: 38px; margin-bottom: 1.1rem; color: var(--pasture); }
.card__icon svg { width: 100%; height: 100%; }
.section--forest .card {
  background: rgba(255,253,249,.06); border-color: rgba(255,253,249,.16);
}
.section--forest .card p { color: rgba(255,253,249,.78); }
.section--forest .card__icon { color: var(--sand); }

/* Liste à puces feuille */
.list-leaf { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.list-leaf li {
  position: relative; padding-left: 1.9rem; margin-bottom: .85rem; color: var(--ink-soft);
}
.list-leaf li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px;
  border-radius: 0 60% 0 60%; background: var(--pasture); transform: rotate(-10deg);
}
.section--forest .list-leaf li { color: rgba(255,253,249,.82); }
.section--forest .list-leaf li::before { background: var(--ochre); }

/* Chiffres / repères */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; text-align: center; }
.stat__value { font-family: var(--serif); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: var(--forest); line-height: 1; }
.stat__label { font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; color: var(--earth); margin-top: .6rem; }
.section--forest .stat__value { color: var(--white); }
.section--forest .stat__label { color: var(--sand); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery img {
  width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.3,1);
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.6rem 1rem .8rem;
  background: linear-gradient(0deg, rgba(24,34,26,.82), transparent);
  color: var(--white); font-size: .88rem; letter-spacing: .04em;
}
.gallery--tall figure:nth-child(3n+1) img { aspect-ratio: 3/4; }

/* Étapes / process */
.steps { counter-reset: step; display: grid; gap: 2.2rem; }
.step { position: relative; padding-left: 4.2rem; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: -.15rem;
  font-family: var(--serif); font-size: 1.9rem; color: var(--ochre); line-height: 1;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-soft); margin: 0; }

/* Citation */
.quote { max-width: 44ch; margin-inline: auto; text-align: center; }
.quote blockquote {
  margin: 0; font-family: var(--serif); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 2rem);
  line-height: 1.35; color: var(--forest);
}
.section--forest .quote blockquote { color: var(--white); }
.quote cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--earth); }
.section--forest .quote cite { color: var(--sand); }

/* Bandeau appel à l'action */
.cta-band { position: relative; padding: clamp(4rem, 2rem + 7vw, 7.5rem) 0; color: var(--white); text-align: center; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: -2; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(26,38,28,.68); }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,253,249,.88); max-width: 52ch; margin-inline: auto; }

/* Encadré tarif */
.price-card {
  background: var(--white); border: 1px solid rgba(47,64,51,.12); border-radius: var(--radius);
  padding: clamp(2rem, 1.4rem + 2vw, 3rem); box-shadow: var(--shadow); text-align: center;
  max-width: 520px; margin-inline: auto;
}
.price-card__amount { font-family: var(--serif); font-size: clamp(2.6rem, 2rem + 3vw, 4rem); color: var(--forest); line-height: 1; }
.price-card__amount span { font-family: var(--sans); font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; color: var(--earth); display: block; margin-top: .7rem; }

/* --- 7. Formulaire ------------------------------------------------------ */
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--forest); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; border: 1px solid rgba(47,64,51,.22); border-radius: var(--radius);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--pasture); box-shadow: 0 0 0 3px rgba(109,143,94,.18);
}
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 620px) { .field--row { grid-template-columns: 1fr; } }
.field--hp { position: absolute; left: -9999px; }
.form__note { font-size: .82rem; color: var(--ink-soft); }
.form__status { padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .95rem; display: none; }
.form__status.is-ok { display: block; background: rgba(109,143,94,.14); border: 1px solid var(--pasture); color: var(--forest); }
.form__status.is-error { display: block; background: rgba(192,143,74,.14); border: 1px solid var(--ochre); color: #8a5a1e; }

/* Coordonnées */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--pasture); margin-top: .25rem; }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--earth); font-weight: 700; margin-bottom: .15rem; }
.contact-list a { color: var(--forest); text-decoration: none; font-size: 1.05rem; }
.contact-list a:hover { text-decoration: underline; }

.map-frame { border: 0; width: 100%; height: 420px; border-radius: var(--radius); filter: saturate(.85); }

/* --- 8. Pied de page ---------------------------------------------------- */
.site-footer { background: var(--forest); color: rgba(255,253,249,.72); padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--sand); font-family: var(--sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,253,249,.8); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand .brand__name { color: var(--white); }
.footer-brand .brand__mark { height: 50px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,253,249,.14);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,253,249,.55);
}
.social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,253,249,.25);
  display: grid; place-items: center; transition: var(--transition);
}
.social a:hover { background: var(--sand); border-color: var(--sand); color: var(--forest); }
.social svg { width: 18px; height: 18px; }

/* --- 9. Animations ------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* --- 10. Divers --------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--forest); color: var(--cream); padding: .8rem 1.2rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.legal { padding-top: 9rem; }
.legal h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.legal p, .legal li { color: var(--ink-soft); }

/* ---------- CARTE DE SITUATION ---------- */
.map {
  margin-top: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  background: var(--sand);
}
.map iframe { display: block; width: 100%; height: 260px; border: 0; filter: saturate(.85); }

/* ---------- RACCOURCIS DE SECTION ---------- */
.hero__jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; }
.hero__jump a {
  display: inline-block; padding: .5rem 1.05rem; border-radius: 999px;
  border: 1px solid rgba(255,253,249,.35); color: rgba(255,253,249,.92);
  font-size: .76rem; letter-spacing: .09em; text-transform: uppercase;
  text-decoration: none; background: rgba(255,253,249,.07); backdrop-filter: blur(4px);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.hero__jump a:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }

.subnav { display: none; }
@media (min-width: 900px) {
  .subnav {
    display: block; position: fixed; left: 0; right: 0; top: 79px; z-index: 60;
    background: rgba(255,253,249,.985); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-10px); pointer-events: none;
    transition: opacity .3s ease, transform .3s ease;
  }
  .subnav.is-shown { opacity: 1; transform: none; pointer-events: auto; }
  .subnav__inner { display: flex; gap: 2rem; padding: 1rem 0 .9rem; overflow-x: auto; }
  .subnav a {
    white-space: nowrap; font-size: .78rem; letter-spacing: .09em;
    text-transform: uppercase; text-decoration: none; color: var(--ink-soft);
    padding-bottom: .2rem; border-bottom: 2px solid transparent;
    transition: color .25s ease, border-color .25s ease;
  }
  .subnav a:hover { color: var(--forest); }
  .subnav a.is-active { color: var(--forest); border-bottom-color: var(--pasture); }
}
section[id] { scroll-margin-top: 130px; }

@media (max-width: 400px) {
  .brand__mark { height: 42px; }
  .brand__name { font-size: .98rem; }
  .brand__tag { letter-spacing: .1em; }
}
