/* ============================================================
   Le Haras de Thémis — feuille de style
   Palette tirée du flyer : vert forêt, bordeaux, or, crème.
   ============================================================ */
:root {
  --accent: #7a2a1d;          /* bordeaux */
  --accent-soft: #f3e3dc;
  --accent-deep: #5a1d13;
  --vert: #24401f;
  --vert-clair: #5f8a52;
  --or: #c49a3a;
  --ink: #2d2a26;
  --muted: #6a6358;
  --bg: #f7f1e3;              /* crème */
  --bg-alt: #efe6d0;          /* sable */
  --card: #fffdf7;
  --border: #e3d8bf;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(60, 40, 20, 0.10);
  --shadow-hover: 0 16px 40px rgba(60, 40, 20, 0.18);
  --max: 1120px;
  --font: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ece6d6; --muted: #b9b09c; --bg: #1c1d18; --bg-alt: #25271f; --card: #2a2c23;
    --border: #3b3d31; --accent: #e0a58f; --accent-soft: #3a2a24; --vert: #a9cf9b;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.eyebrow { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; font-weight: 700; }
h2.titre, .section-head h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: .4rem 0 .6rem; color: var(--vert); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.ornement { display: block; width: 70px; height: 3px; background: var(--or); margin: .2rem 0 1.3rem; border: 0; }
.section-head .ornement { margin-left: auto; margin-right: auto; }

/* Boutons */
.btn { display: inline-block; font-weight: 700; font-size: .95rem; padding: .85rem 1.7rem; border-radius: 6px; cursor: pointer; border: 2px solid transparent; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--or); color: #1d1d1d; box-shadow: 0 6px 18px rgba(196, 154, 58, .35); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { color: #fff; border-color: #fff; background: transparent; }

/* Navigation */
.nav-wrap { position: sticky; top: 0; z-index: 100; background: rgba(36, 64, 31, .97); color: #fff; backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .55rem 1.4rem; max-width: var(--max); margin: 0 auto; gap: 1rem; position: relative; }
.nav-logo { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.nav-logo img { width: 46px; height: 46px; border-radius: 50%; background: #f7f1e3; object-fit: cover; }
.nav-links { display: flex; gap: 1.6rem; align-items: center; list-style: none; }
.nav-links a { font-size: .92rem; color: rgba(255,255,255,.85); letter-spacing: .02em; padding: .3rem 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--or); }
.menu-toggle, .menu-burger { display: none; }
@media (max-width: 760px) {
  .menu-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: .5rem; }
  .menu-burger span { width: 24px; height: 2px; background: #fff; display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #24401f; flex-direction: column; align-items: flex-start; gap: 0; padding: .6rem 1.4rem 1rem; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .menu-toggle:checked ~ .nav-links { display: flex; }
}

/* Bannière d'accueil */
.hero { position: relative; color: #fff; padding: clamp(5rem, 12vw, 8.5rem) 1.4rem clamp(6rem, 13vw, 9.5rem); background: #3b2a1d center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,35,18,.85) 0%, rgba(20,35,18,.5) 60%, rgba(20,35,18,.15) 100%); }
.hero-inner { position: relative; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 14ch; margin-bottom: 1rem; }
.hero .accroche { font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.2rem, 2.6vw, 1.7rem); max-width: 36ch; margin-bottom: 1.8rem; }
.hero .signature { font-family: var(--font-display); font-style: italic; color: var(--or); font-size: 1.4rem; margin-top: 1.4rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.badge { background: #24401f; border: 2px solid var(--or); padding: 1.3rem 1.2rem 1.6rem; text-align: center; width: 190px; border-radius: 4px 4px 50% 50% / 4px 4px 24px 24px; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.badge strong { display: block; font-family: var(--font-display); font-size: 2rem; letter-spacing: .06em; }
.badge span { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: #e9ddc0; line-height: 1.3; display: block; }
@media (max-width: 760px) { .hero-inner { grid-template-columns: 1fr; } .badge { max-width: 240px; width: 100%; } }

/* Bandeau de page intérieure */
.page-hero { position: relative; color: #fff; text-align: center; padding: clamp(3.5rem, 9vw, 6rem) 1.4rem; background: #24401f center / cover no-repeat; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(20, 35, 18, .62); }
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); max-width: 22ch; margin: .5rem auto .6rem; }
.page-hero p { max-width: 56ch; margin: 0 auto; color: #efe6d0; }
.page-hero .eyebrow { color: var(--or); }
.page-hero .back { display: inline-block; margin-bottom: 1rem; color: #efe6d0; font-size: .9rem; }

/* Piliers */
.piliers { position: relative; z-index: 2; margin-top: -4.2rem; }
.piliers-liste { background: var(--card); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); padding: 1rem .5rem; }
.pilier { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; border-right: 1px solid var(--border); }
.pilier:last-child { border-right: 0; }
.pastille { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; }
.pilier b { display: block; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.pilier small { font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) { .pilier { border-right: 0; border-bottom: 1px solid var(--border); } .piliers { margin-top: -2rem; } }

/* Deux colonnes texte / image */
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: center; }
.deux--inverse .deux-media { order: -1; }
.deux-media img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 760px) { .deux { grid-template-columns: 1fr; } .deux--inverse .deux-media { order: 0; } }
.deux p { margin-bottom: 1rem; }
.liste-chevaux, .coches { list-style: none; margin: 1rem 0 1.2rem; }
.liste-chevaux li, .coches li { position: relative; padding: .4rem 0 .4rem 2.1rem; }
.liste-chevaux li::before { content: "\2726"; position: absolute; left: .2rem; color: var(--accent); font-size: 1.1rem; }
.coches li::before { content: "\2713"; position: absolute; left: 0; top: .5rem; width: 22px; height: 22px; border-radius: 50%; background: var(--vert-clair); color: #fff; font-size: .8rem; line-height: 22px; text-align: center; }
.coches--bordeaux li::before { background: var(--accent); }
@media (prefers-color-scheme: dark) { .coches li::before { color: #14240f; background: #a9cf9b; } .coches--bordeaux li::before { background: #e0a58f; } }

/* Prestations */
.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.presta { background: var(--card); border-radius: var(--radius); padding: 1.7rem 1.4rem; text-align: center; box-shadow: var(--shadow); border-bottom: 4px solid var(--or); transition: transform .3s, box-shadow .3s; }
.presta:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.presta .pastille { margin: 0 auto .9rem; width: 58px; height: 58px; font-size: 1.5rem; background: var(--bg-alt); color: var(--accent); border: 2px solid var(--or); }
.presta h3 { font-size: 1.35rem; color: var(--vert); margin-bottom: .4rem; }
.presta p { font-size: .96rem; color: var(--muted); }

/* Bandeau devise */
.devise { position: relative; padding: clamp(5rem, 11vw, 8rem) 0; color: #fff; text-align: center; background: #2b3a22 center 40% / cover no-repeat; }
.devise::before { content: ""; position: absolute; inset: 0; background: rgba(22, 36, 20, .62); }
.devise .container { position: relative; }
.devise h2 { font-size: clamp(2.2rem, 6vw, 4rem); font-style: italic; font-weight: 500; margin-bottom: 1rem; }
.devise p { max-width: 58ch; margin: 0 auto 1.2rem; }
.devise .coches { display: inline-block; text-align: left; }
.devise .coches li::before { background: var(--or); color: #1d1d1d; }

/* Engagement */
.engagement { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.3rem; }
.eng { background: var(--card); border-left: 5px solid var(--vert-clair); border-radius: 8px; padding: 1.4rem; box-shadow: var(--shadow); }
.eng h3 { font-size: 1.35rem; color: var(--vert); margin-bottom: .3rem; }
.eng p { color: var(--muted); font-size: .96rem; }

/* Actualités */
.news-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.news-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.news-card img { width: 100%; height: 190px; object-fit: cover; }
.news-card .news-placeholder { height: 190px; background: linear-gradient(135deg, var(--vert), var(--vert-clair)); }
.news-card-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.news-card .tag { align-self: flex-start; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: .2rem .7rem; border-radius: 99px; font-weight: 700; }
.news-card h3 { font-size: 1.35rem; color: var(--vert); }
.news-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.news-card time { font-size: .82rem; color: var(--muted); }
.news-more { text-align: center; margin-top: 2rem; }
.article { max-width: 780px; }
.article-cover { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius); margin-bottom: 1.8rem; box-shadow: var(--shadow); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 3rem); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info h3 { font-size: 1.2rem; margin: 1.1rem 0 .1rem; color: var(--vert); }
.contact-info p { color: var(--muted); }
.contact-info a { color: var(--accent); font-weight: 700; }
.contact-cta { background: var(--vert); color: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; align-self: start; }
@media (prefers-color-scheme: dark) { .contact-cta { background: #14240f; } }
.contact-cta h3 { color: #fff; font-size: 1.7rem; }
.contact-cta p { color: rgba(255,255,255,.85); }
.contact-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.contact-cta .btn-ghost:hover { color: #fff; border-color: #fff; }
.contact-photo { margin-top: 1.6rem; }
.contact-photo img { width: 100%; max-height: 420px; object-fit: cover; object-position: center 65%; border-radius: var(--radius); }

/* Pied de page */
.footer { background: #14240f; color: #fff; padding: 2.5rem 0 1.5rem; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; }
.footer-tag { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: .3rem; }
.footer-links { display: flex; gap: 1.4rem; list-style: none; flex-wrap: wrap; align-items: flex-start; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; padding: 1.2rem 0 .4rem; font-size: .85rem; }
.footer-legal a { color: rgba(255,255,255,.55); }
.footer-legal a:hover { color: #fff; }
.footer-copy { text-align: center; color: rgba(255,255,255,.35); font-size: .8rem; margin-top: 1.2rem; }

/* Apparition au scroll */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Pages de contenu (mentions légales, confidentialité, articles) */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin: .4rem 0 1.4rem; color: var(--vert); }
.prose h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); color: var(--vert); }
.prose p { margin-bottom: .9rem; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose .legal-date { color: var(--muted); font-size: .9rem; margin-top: 2rem; }

/* Tarifs */
.tarif-prix { margin: .2rem 0 .6rem; font-size: 1.5rem; color: var(--accent); font-family: var(--font-display, inherit); }
.tarif-prix small { font-size: .9rem; color: inherit; opacity: .8; }
.tarif-note { text-align: center; margin-top: 1.5rem; font-style: italic; opacity: .85; }
.tarifs-duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: start; }
.tarif-liste { list-style: none; padding: 0; margin: 1rem 0 0; }
.tarif-liste li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(0,0,0,.12); }
.tarif-liste b { color: var(--accent); text-align: right; white-space: nowrap; }
.tarif-liste small { font-weight: 400; opacity: .8; }
@media (max-width: 800px) { .tarifs-duo { grid-template-columns: 1fr; } .tarif-liste li { flex-direction: column; gap: .1rem; } .tarif-liste b { text-align: left; white-space: normal; } }
