/*
Theme Name: Le Ranch du Khym’s
Theme URI: https://leranchdukhyms.fr
Author: Le Ranch du Khym’s
Description: Thème premium pour une écurie privée, avec catalogue de chevaux, galeries et prestations.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: ranch-khyms
*/
:root{--green:#183d34;--deep:#102b25;--gold:#c9a66a;--cream:#f4f0e7;--ink:#242824;--muted:#68716b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:Arial,Helvetica,sans-serif;background:#fff}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{max-width:1200px;margin:auto;padding:0 26px}.site-header{background:#fff;position:sticky;top:0;z-index:30;box-shadow:0 1px 10px #0000000a}.header-inner{min-height:94px;display:flex;align-items:center;justify-content:space-between;gap:22px}.brand{display:flex;align-items:center;gap:14px;font-family:Georgia,serif;font-size:22px;color:var(--green)}.brand-logo{width:68px;height:68px;object-fit:contain}.menu{display:flex;gap:27px;align-items:center;font-size:13px;text-transform:uppercase;letter-spacing:.07em}.menu a:hover,.text-link:hover{color:#a78042}.hero{min-height:590px;display:flex;align-items:center;color:#fff;background:linear-gradient(90deg,rgba(11,37,31,.95),rgba(11,37,31,.62),rgba(11,37,31,.2)),url('assets/ranch-accueil.jpg') center 42%/cover}.hero-inner{width:100%;padding-top:85px;padding-bottom:85px}.eyebrow{font-size:12px;letter-spacing:.19em;font-weight:700;text-transform:uppercase;color:#aa874b;margin-bottom:18px}.hero .eyebrow,.dark .eyebrow{color:#d8b87d}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.12}h1{font-size:clamp(38px,5.2vw,66px);margin:0 0 22px}h2{font-size:clamp(30px,3.4vw,46px);margin:0 0 22px}h3{font-size:27px;margin:12px 0}.hero h1 em{color:#dfc391;font-weight:400}.hero p{max-width:590px;font-size:18px;line-height:1.8;color:#f2eee5}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}.btn{display:inline-flex;align-items:center;justify-content:center;padding:15px 24px;background:var(--gold);color:#1d261f;border:1px solid var(--gold);border-radius:3px;font-size:13px;font-weight:700;letter-spacing:.03em;cursor:pointer}.btn:hover{background:#e1bf83}.btn-outline{background:transparent;color:#fff;border-color:#fff}.btn-outline:hover{color:var(--deep)}.section{padding:88px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}.section-heading h2{margin:0}.text-link{font-size:14px;font-weight:700}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px}.card{background:#fff;box-shadow:0 6px 30px #00000012;border:1px solid #ecebe5;overflow:hidden}.card-image{height:265px;background:#e8e5dc;overflow:hidden}.card-image img{width:100%;height:100%;object-fit:cover;transition:transform .3s}.card:hover img{transform:scale(1.035)}.card-body{padding:23px}.card-body h3{font-size:24px}.muted,.small-muted{color:var(--muted);line-height:1.7}.small-muted{font-size:13px}.price{font-size:25px;font-family:Georgia,serif;color:var(--green);font-weight:700;margin:22px 0}.pill{display:inline-block;background:#e3eee5;color:#2a603c;border-radius:20px;padding:6px 11px;font-size:11px;font-weight:700}.pill.sold{background:#f0e6df;color:#955c46}.cream{background:var(--cream)}.split{display:grid;grid-template-columns:1fr 1fr;gap:90px;align-items:center}.split p{line-height:1.85}.service-card{background:#fff;padding:48px;box-shadow:0 12px 50px #0000000c}.service-card span{font-size:18px;font-family:Georgia,serif}.service-card strong{display:block;font-size:66px;font-family:Georgia,serif;color:var(--green);margin:20px 0}.dark{background:var(--deep);color:#fff}.contact-section{text-align:center;max-width:850px}.contact-section p{line-height:1.8;color:#e3e9e4}.notice{padding:15px;background:#f7edda;color:#614b28}.dark .notice{color:#fff;background:#365148}.footer{background:#10241f;color:#eee;padding:52px 0 24px}.footer-grid{display:flex;justify-content:space-between;gap:30px}.footer strong{font-family:Georgia,serif;font-size:22px}.footer p,.footer-bottom{color:#bfc9c1;font-size:13px}.footer-bottom{border-top:1px solid #3b5048;margin-top:35px;padding-top:22px}.filters{display:flex;gap:12px;flex-wrap:wrap;margin:30px 0}.filters input,.filters select{padding:15px;border:1px solid #d8ddd7;min-width:220px;background:#fff;font-size:14px}.single-layout{display:grid;grid-template-columns:1.12fr 1fr;gap:65px}.horse-gallery-main{background:#ecece6;aspect-ratio:4/3}.horse-gallery-main img{width:100%;height:100%;object-fit:cover}.gallery-thumbs{display:flex;gap:10px;margin-top:12px}.gallery-thumbs button{width:105px;height:82px;border:3px solid transparent;background:none;padding:0;cursor:pointer}.gallery-thumbs button[aria-pressed=true]{border-color:var(--gold)}.gallery-thumbs img{width:100%;height:100%;object-fit:cover}.horse-details h1{font-size:46px}.detail-list{padding:0;margin:30px 0;list-style:none;border-top:1px solid #e3e5e1}.detail-list li{display:flex;justify-content:space-between;gap:16px;padding:13px 0;border-bottom:1px solid #e3e5e1}.detail-list span{color:var(--muted)}.horse-description{line-height:1.8;margin-bottom:30px}.back-link{margin-top:0;margin-bottom:30px;font-size:14px}.content-box{max-width:850px;line-height:1.8}.empty{padding:45px;background:#f4f0e7;grid-column:1/-1}.pagination{margin-top:30px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:900px){.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.split,.single-layout{grid-template-columns:1fr;gap:35px}.menu{gap:12px;font-size:11px}.brand{font-size:18px}.brand-logo{width:52px;height:52px}}@media(max-width:620px){.wrap{padding:0 18px}.header-inner{align-items:flex-start;flex-direction:column;padding-top:10px;padding-bottom:14px;gap:10px}.menu{width:100%;overflow-x:auto;white-space:nowrap;padding-bottom:5px}.hero{min-height:530px}.section{padding:58px 0}.cards{grid-template-columns:1fr}.section-heading{align-items:start;flex-direction:column}.footer-grid{flex-direction:column}.service-card{padding:30px}.filters label,.filters input,.filters select,.filters button{width:100%}.horse-details h1{font-size:36px}}
/* Version 4: contact distinct et couverture du ranch */
.hero{background-position:center center}.contact-links{display:flex;gap:14px;flex-wrap:wrap;margin:25px 0}.contact-panel{background:#f4f0e7;padding:36px;margin-top:28px}.contact-panel a{color:#183d34;text-decoration:underline}.contact-panel p{font-size:18px}

/* v5: portrait ranch photo visible in full, with a balanced premium layout */
.hero{min-height:650px;background-image:linear-gradient(90deg,rgba(12,34,28,.93),rgba(12,34,28,.78) 55%,rgba(12,34,28,.35)),url('assets/ranch-accueil.jpg');background-size:cover,auto 100%;background-repeat:no-repeat;background-position:center,right center;background-color:#183d34}
.hero-inner{max-width:1200px}.hero h1{max-width:620px}
.card-image{height:290px;display:flex;align-items:center;justify-content:center;background:#eeeae1}
.card-image img{object-fit:contain;transition:none}.card:hover img{transform:none}
.horse-gallery-main{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center}
.horse-gallery-main img{object-fit:contain;max-height:100%;width:100%;height:100%}
.gallery-thumbs{flex-wrap:wrap}.gallery-thumbs button{width:112px;height:90px;background:#eeeae1}
.gallery-thumbs img{object-fit:contain}
.contact-panel{border:1px solid #e7dfd0;border-radius:8px;box-shadow:0 10px 35px #0000000a}
@media(max-width:700px){.hero{background-size:cover,auto 100%;background-position:center,75% center;min-height:620px}.hero-inner{padding-top:65px;padding-bottom:65px}.hero h1{font-size:42px}.card-image{height:300px}}
