/* ============================================================================
   Vitrine publique d'un ÉLEVAGE (inc/elevage_showcase.php).
   Habillage volontairement distinct des écuries : prairie (sauge), parchemin,
   or, titres Fraunces, collines animées dans le héros.
   ========================================================================= */
.ev { --sage: #4F6B4A; --sage-d: #2F4530; --parch: #F7F1E4; --gold: #C8973F; --ink: #1F2A1E; --line: #E6DCC6;
      background: #FBF8F1; color: var(--ink); }
.ev-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---- Héros ---- */
.ev-hero { position: relative; overflow: hidden; min-height: 380px; display: flex; align-items: flex-end;
           background: radial-gradient(120% 90% at 80% 0%, #DCE6C8 0%, #A9BE8E 40%, #5E7A55 100%); color: #fff; }
.ev-hero-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ev-hero.has-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,18,.1) 0%, rgba(20,30,18,.72) 100%); }
.ev-hero-hills { position: absolute; inset: auto 0 0 0; height: 160px; pointer-events: none; }
.ev-hero.has-ph .ev-hero-hills { display: none; }
.ev-hero-hills i { position: absolute; bottom: -60px; width: 70%; height: 180px; border-radius: 50%; background: #3E5A3A; opacity: .55; animation: evHill 14s ease-in-out infinite alternate; }
.ev-hero-hills i:nth-child(1) { left: -15%; }
.ev-hero-hills i:nth-child(2) { left: 35%; bottom: -80px; background: #2F4530; opacity: .7; animation-duration: 18s; }
.ev-hero-hills i:nth-child(3) { left: 10%; bottom: -110px; width: 90%; background: #24361F; opacity: .85; animation-duration: 22s; }
@keyframes evHill { to { transform: translateX(4%); } }
.ev-hero-in { position: relative; z-index: 1; padding-top: 70px; padding-bottom: 60px; }
.ev-eyebrow { display: inline-block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.16);
              border: 1px solid rgba(255,255,255,.3); padding: 5px 12px; border-radius: 999px; backdrop-filter: blur(4px); }
.ev-hero h1 { color: #fff; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.05; margin: 14px 0 10px;
              text-shadow: 0 2px 18px rgba(0,0,0,.25); animation: evRise .6s ease both; }
.ev-lead { max-width: 620px; font-size: 1.05rem; line-height: 1.55; opacity: .95; margin: 0 0 20px; animation: evRise .6s .08s ease both; }
.ev-cta { display: flex; flex-wrap: wrap; gap: 10px; animation: evRise .6s .16s ease both; }
@keyframes evRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.ev-btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none;
          background: #fff; color: var(--sage-d); border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.ev-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.ev-btn.gold { background: linear-gradient(135deg, #E2B45C, var(--gold)); color: #1F1A0E; }
.ev-btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }

/* ---- Chiffres ---- */
.ev-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: -28px 0 10px; position: relative; z-index: 2; }
.ev-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center;
           box-shadow: 0 10px 26px rgba(47,69,48,.08); animation: evRise .5s ease both; animation-delay: calc(.2s + var(--k) * 60ms); }
.ev-stat span { grid-row: span 2; font-size: 1.5rem; }
.ev-stat b { font-family: Fraunces, Georgia, serif; font-size: 1.5rem; line-height: 1; color: var(--sage-d); }
.ev-stat small { color: #6b6f63; font-size: .8rem; }

/* ---- Sections ---- */
.ev-sec { padding: 54px 0; }
.ev-sec-cream { background: var(--parch); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ev-h { font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 24px; color: var(--sage-d); }
.ev-h span { display: block; font-family: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.ev-origin { color: #5b6355; font-size: .86rem; }
.ev-origin b { color: var(--ink); }
.ev-meta { margin: 2px 0 6px; color: #6b6f63; font-size: .86rem; }

/* Étalons */
.ev-stallions { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.ev-stallion { display: grid; grid-template-columns: 130px 1fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
               animation: evRise .5s ease both; animation-delay: calc(var(--k) * 70ms); transition: box-shadow .25s, transform .25s; }
.ev-stallion:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(47,69,48,.12); }
.ev-stallion-ph { background: linear-gradient(160deg, #E8EEDB, #C9D6B3); display: grid; place-items: center; font-size: 2.6rem; min-height: 150px; }
.ev-stallion-ph img { width: 100%; height: 100%; object-fit: cover; }
.ev-stallion-b { padding: 14px 16px; min-width: 0; }
.ev-stallion h3 { font-family: Fraunces, Georgia, serif; font-size: 1.25rem; margin: 0; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.ev-chips span { font-size: .72rem; font-weight: 600; background: #EEF3E6; color: var(--sage-d); padding: 3px 9px; border-radius: 999px; }
.ev-fee { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }
.ev-fee b { color: #9C6F2A; }
.ev-fee small { display: block; color: #6b6f63; font-size: .78rem; margin-top: 2px; }

/* À vendre */
.ev-sales { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }
.ev-sale { display: flex; flex-direction: column; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: inherit;
           text-decoration: none; padding-bottom: 14px; animation: evRise .5s ease both; animation-delay: calc(var(--k) * 60ms); transition: transform .25s, box-shadow .25s; }
.ev-sale:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(47,69,48,.12); }
.ev-sale-ph { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #F1E7D2, #E3D3B2); display: grid; place-items: center; font-size: 2.8rem; margin-bottom: 8px; }
.ev-sale-ph img { width: 100%; height: 100%; object-fit: cover; }
.ev-sale-ph em { position: absolute; top: 10px; left: 10px; font-style: normal; font-size: .74rem; font-weight: 700; background: #FBF1DD; color: #9C6F2A; padding: 3px 10px; border-radius: 999px; }
.ev-sale b, .ev-sale span, .ev-sale i { padding: 0 14px; }
.ev-sale b { font-family: Fraunces, Georgia, serif; font-size: 1.05rem; }
.ev-sale span { color: #9C6F2A; font-weight: 700; }
.ev-sale i { font-style: normal; font-size: .82rem; color: var(--sage); margin-top: 4px; }

/* Lignées */
.ev-two { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.ev-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ev-lines li { position: relative; padding: 11px 14px 11px 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
               display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; animation: evRise .45s ease both; animation-delay: calc(var(--k) * 40ms); }
.ev-lines li::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--gold), var(--sage)); }
.ev-lines b { font-family: Fraunces, Georgia, serif; font-size: 1.02rem; }
.ev-lines small { color: #6b6f63; }
.ev-lines .ev-origin { flex-basis: 100%; }

/* Services */
.ev-services { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.ev-svc { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
          animation: evRise .45s ease both; animation-delay: calc(var(--k) * 40ms); }
.ev-svc span { grid-row: span 2; font-size: 1.4rem; }
.ev-svc small { color: #6b6f63; }
.ev-note { margin: 16px 0 0; font-size: .9rem; color: #5b6355; }

/* Contact */
.ev-contact { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); align-items: start;
              background: linear-gradient(135deg, var(--sage-d), #3F5A3B); color: #fff; border-radius: 24px; padding: 30px; }
.ev-contact .ev-h { color: #fff; }
.ev-contact-links { display: flex; flex-direction: column; gap: 8px; }
.ev-contact-links a, .ev-contact-links span { color: #fff; text-decoration: none; opacity: .92; overflow-wrap: anywhere; }
.ev-form { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.ev-form p { margin: 0; }
.ev-form label { font-weight: 600; font-size: .9rem; }
.ev-form textarea { min-height: 110px; border-radius: 12px; border: 0; padding: 12px; font: inherit; resize: vertical; width: 100%; box-sizing: border-box; }
.ev-form select { border-radius: 12px; border: 0; padding: 11px 12px; font: inherit; width: 100%; box-sizing: border-box; }
.ev-form .ev-btn { align-self: flex-start; }

@media (max-width: 560px) {
  .ev-hero { min-height: 330px; }
  .ev-hero-in { padding-top: 50px; padding-bottom: 40px; }
  .ev-stallion { grid-template-columns: 96px 1fr; }
  .ev-sec { padding: 40px 0; }
  .ev-contact { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .ev *, .ev *::before { animation: none !important; transition: none !important; }
}

/* ---- Devenir client / Commander ---- */
.ev-btn.is-wait { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); cursor: default; }
.ev-btn.is-wait:hover { transform: none; box-shadow: none; }
.ev-join { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: center; }
.ev-join p { color: #4b5345; line-height: 1.55; margin: 0; }
.ev-join-form { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 26px rgba(47,69,48,.08); }
.ev-join-form label { font-weight: 600; font-size: .9rem; }
.ev-join-form small { font-weight: 400; color: #6b6f63; }
.ev-join-form textarea { min-height: 80px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; resize: vertical; width: 100%; box-sizing: border-box; }
.ev-join-form .ev-btn { align-self: flex-start; }
.ev-fab { position: fixed; z-index: 50; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 6px;
          padding: 13px 20px; border-radius: 999px; background: linear-gradient(135deg, #E2B45C, #C8973F); color: #1F1A0E; font-weight: 800; text-decoration: none;
          box-shadow: 0 12px 28px rgba(31,26,14,.28); animation: evFab .5s .4s cubic-bezier(.2,.9,.3,1.3) both; }
@keyframes evFab { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@media (min-width: 900px) { .ev-fab { display: none; } }

/* Production et poulinières : vignette du cheval (sa photo, sinon silhouette ♀/♂) */
.ev-lines li.ev-line-ph { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 13px; row-gap: 1px; align-items: center; padding-left: 16px; }
.ev-line-ph img { grid-row: 1 / span 3; width: 58px; height: 58px; border-radius: 12px; object-fit: cover; background: #F1EDE4; }
.ev-line-ph b, .ev-line-ph small, .ev-line-ph .ev-origin { grid-column: 2; }
.ev-ped { display: inline-block; margin-top: 8px; font-size: .82rem; font-weight: 600; color: var(--gold, #9C6F2A); text-decoration: none; }
.ev-ped:hover { text-decoration: underline; }
.ev-line-ph .ev-ped { grid-column: 2; margin-top: 2px; font-size: .78rem; }
.ev-vis-hint { margin: 18px 0 0; padding: 11px 15px; border-radius: 12px; background: #FBF3E2; border: 1px solid #EBDDBE; font-size: .88rem; color: #5b5a4e; }
.ev-vis-hint a { color: var(--gold, #9C6F2A); font-weight: 600; }

/* Cours & balades d'un élevage qui donne des cours (inc/structure_modules.php) */
.ev-cours-prices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); margin-bottom: 18px; }
.ev-cprice { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.ev-cprice small { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sage); }
.ev-cprice b { font-family: Fraunces, Georgia, serif; font-size: 1.45rem; color: var(--ink); }
.ev-cprice i { font-style: normal; font-size: .82rem; color: #9C6F2A; }
.ev-cours-rows { display: flex; flex-direction: column; gap: 8px; }
.ev-crow { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; }
.ev-cdate { flex: none; width: 54px; display: flex; flex-direction: column; align-items: center; line-height: 1.1; border-right: 1px solid var(--line); padding-right: 12px; }
.ev-cdate i { font-style: normal; font-size: .7rem; text-transform: uppercase; color: var(--sage); font-weight: 700; }
.ev-cdate b { font-family: Fraunces, Georgia, serif; font-size: 1.35rem; }
.ev-cbody { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ev-cbody small { color: #6b6f63; font-size: .84rem; }
.ev-cprix { text-align: right; display: flex; flex-direction: column; }
.ev-cprix b { color: #9C6F2A; }
.ev-cprix small { font-size: .78rem; color: #6b6f63; }
.ev-cchip { font-size: .78rem; font-weight: 700; color: var(--sage); background: var(--parch); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.ev-cours-join { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.ev-cours-join form { margin: 0; }
.ev-cours-join p { margin: 0; color: #6b6f63; font-size: .88rem; }
.ev-sec:not(.ev-sec-cream) .ev-cours-join .ev-btn:not(.gold) { color: var(--ink); border-color: var(--line); background: #fff; }
@media (max-width: 560px) { .ev-crow { flex-wrap: wrap; } .ev-cprix { text-align: left; } }
