/* LEM V20 : style strictement limité au catalogue génétique. */
body.lem-bulls-archive, body.lem-bulls-single {
  --lem-bull-brown: #502d20;
  --lem-bull-pink: #bd286c;
  --lem-bull-bg: #f5f2ef;
  --lem-bull-border: #e4dcd7;
}
body.lem-bulls-archive main.lem-bulls-main {
  display: block; box-sizing: border-box; width: calc(100% - 48px); max-width: 1540px;
  margin: 0 auto; padding: 48px 0 76px; color: var(--lem-bull-brown); min-width: 0;
}
.lem-bulls-main *, .lem-bulls-main *::before, .lem-bulls-main *::after { box-sizing: border-box; }
.lem-bulls-intro { margin: 0 0 30px; }
.lem-bulls-intro h1 { margin: 0 0 15px; color: var(--lem-bull-brown); font-size: clamp(32px, 4vw, 58px); font-weight: 750; line-height: 1.13; letter-spacing: -.025em; }
.lem-bulls-intro h1 span { color: var(--lem-bull-pink); }
.lem-bulls-intro h1::after { content: ''; display: block; width: 84px; height: 6px; border-radius: 3px; margin-top: 15px; background: var(--lem-bull-pink); }
.lem-bulls-intro p { margin: 0; color: var(--lem-bull-brown); font-size: clamp(16px, 1.5vw, 21px); line-height: 1.6; }
.lem-bulls-description { margin-top: 12px; }
.lem-bulls-main .lem-bulls-filters {
  display: grid; grid-template-columns: minmax(185px, 1.35fr) minmax(170px, 1fr) minmax(185px, 1fr) auto auto;
  align-items: end; gap: 18px; margin: 0 0 24px; padding: 22px 24px; border-radius: 12px; background: var(--lem-bull-bg);
}
.lem-bulls-field { min-width: 0; }
.lem-bulls-field label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--lem-bull-brown); line-height: 1.35; }
.lem-bulls-main .lem-bulls-field input, .lem-bulls-main .lem-bulls-field select {
  display: block; width: 100%; max-width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 12px;
  border: 1px solid #cfc5bf; border-radius: 7px; color: var(--lem-bull-brown); background: #fff; font: inherit; font-size: 15px; line-height: normal; box-shadow: none;
}
.lem-bulls-main .lem-bulls-field select { appearance: auto; }
.lem-bulls-main .lem-bulls-submit, .lem-bulls-main .lem-bulls-reset {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px; margin: 0; border-radius: 8px; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.25; text-decoration: none; white-space: nowrap; text-transform: none; letter-spacing: normal;
}
.lem-bulls-main .lem-bulls-submit { border: 1px solid var(--lem-bull-brown); background: var(--lem-bull-brown); color: #fff; cursor: pointer; }
.lem-bulls-main .lem-bulls-submit:hover { background: #352018; }
.lem-bulls-main .lem-bulls-reset { padding-inline: 8px; color: var(--lem-bull-pink); background: transparent; }
.lem-bulls-main .lem-bulls-reset:hover { text-decoration: underline; }
.lem-bulls-main .lem-bulls-count { font-size: 23px; font-weight: 700; line-height: 1.4; margin: 0 0 14px; color: var(--lem-bull-brown); }
.lem-bulls-table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--lem-bull-border); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.lem-bulls-main .lem-bulls-table { width: 100%; min-width: 1150px; border: 0; border-spacing: 0; border-collapse: separate; margin: 0; color: var(--lem-bull-brown); background: white; font-size: 15px; line-height: 1.35; }
.lem-bulls-main .lem-bulls-table th, .lem-bulls-main .lem-bulls-table td { border: 0; padding: 12px 10px; text-align: left; vertical-align: middle; }
.lem-bulls-main .lem-bulls-table thead th { background: var(--lem-bull-brown); color: #fff; font-size: 14px; font-weight: 700; padding-block: 15px; }
.lem-bulls-main .lem-bulls-table tbody tr:nth-child(even) > * { background: var(--lem-bull-bg); }
.lem-bulls-main .lem-bulls-table tbody tr:hover > * { background: #f9eaf1; }
.lem-bulls-main .lem-bulls-photo { width: 126px; min-width: 126px; }
.lem-bulls-main .lem-bulls-photo a { display: block; }
.lem-bulls-main .lem-bulls-photo img { width: 112px; height: 70px; max-width: none; object-fit: cover; object-position: center; display: block; border-radius: 7px; margin: 0; }
.lem-bulls-main .lem-bulls-name { min-width: 135px; }
.lem-bulls-main .lem-bulls-name a { color: var(--lem-bull-brown); font-size: 17px; font-weight: 750; text-decoration: none; }
.lem-bulls-main .lem-bulls-name a:hover { color: var(--lem-bull-pink); text-decoration: underline; }
.lem-bulls-main .lem-bulls-table .lem-bulls-index { text-align: center; font-variant-numeric: tabular-nums; }
.lem-bulls-main .lem-bulls-key-index { font-weight: 750; }
.lem-bulls-gammes { min-width: 125px; }
.lem-bulls-main .lem-bulls-badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 9px; border-radius: 7px; margin: 2px 0; text-decoration: none; background: #eee8e3; color: #502d20; }
.lem-bulls-main .lem-bulls-badge:hover { text-decoration: underline; }
.lem-bulls-main .lem-bulls-badge--equilibre { color: #a71f5d; background: #f7dce9; }
.lem-bulls-main .lem-bulls-badge--variabilite { color: #155945; background: #dceee5; }
.lem-bulls-main .lem-bulls-badge--bouchere { color: #93420b; background: #fbe4d2; }
.lem-bulls-main .lem-bulls-price { min-width: 104px; white-space: nowrap; }
.lem-bulls-main .lem-bulls-document { min-width: 141px; }
.lem-bulls-main a.lem-bulls-pdf, body.lem-bulls-single a.lem-bulls-pdf {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 10px 13px; border: 1px solid var(--lem-bull-pink); border-radius: 8px; background: var(--lem-bull-pink); color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; line-height: 1.3;
}
.lem-bulls-main a.lem-bulls-pdf:hover, body.lem-bulls-single a.lem-bulls-pdf:hover { background: #9c1e56; border-color: #9c1e56; color: #fff; }
.lem-bulls-pdf svg { flex: 0 0 19px; }
.lem-bulls-main .lem-bulls-missing { color: #756760; font-size: 13px; }
.lem-bulls-note, .lem-bulls-scroll-hint { color: #756760; font-size: 13px; margin: 14px 0 0; }
.lem-bulls-scroll-hint { display: none; margin: 0 0 10px; }
.lem-bulls-empty { padding: 24px; border: 1px solid var(--lem-bull-border); border-radius: 10px; background: var(--lem-bull-bg); }
.lem-bulls-empty a { color: var(--lem-bull-pink); text-decoration: underline; }
.lem-bulls-main :focus-visible, .lem-bulls-single a.lem-bulls-pdf:focus-visible { outline: 2px solid #a71f5d; outline-offset: 3px; }
body.lem-bulls-single .lem-bulls-single-doc { margin: 20px 0; }
@media (max-width: 1250px) {
  .lem-bulls-scroll-hint { display: block; }
  .lem-bulls-main .lem-bulls-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lem-bulls-main .lem-bulls-submit { grid-column: 1; }
  .lem-bulls-main .lem-bulls-reset { justify-self: start; }
}
@media (max-width: 680px) {
  body.lem-bulls-archive main.lem-bulls-main { width: calc(100% - 28px); padding: 30px 0 50px; }
  .lem-bulls-main .lem-bulls-filters { grid-template-columns: minmax(0,1fr); gap: 12px; padding: 16px; }
  .lem-bulls-main .lem-bulls-reset { justify-self: center; }
  .lem-bulls-main .lem-bulls-count { font-size: 20px; }
  .lem-bulls-main .lem-bulls-table { min-width: 1150px; }
}

/* V21 : fourchette de prix et tri direct accessible dans les en-têtes. */
.lem-bulls-main .lem-bulls-filters {
  grid-template-columns: minmax(150px,1.15fr) minmax(145px,1fr) minmax(155px,1fr) minmax(205px,1.35fr) auto auto;
  gap: 14px;
}
.lem-bulls-main .lem-bulls-price-range { border: 0; padding: 0; margin: 0; min-width: 0; }
.lem-bulls-main .lem-bulls-price-range legend { padding: 0; margin: 0 0 6px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--lem-bull-brown); }
.lem-bulls-price-inputs { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: 8px; }
.lem-bulls-price-inputs > span { align-self: end; height: 48px; display: flex; align-items: center; }
.lem-bulls-main .lem-bulls-price-inputs label { font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.lem-bulls-main .lem-bulls-price-inputs input { padding-inline: 8px; }
.lem-bulls-price-notice { font-size: 14px; color: #756760; margin: 0 0 12px; }
.lem-bulls-main .lem-bulls-table { min-width: 1230px; }
.lem-bulls-main .lem-bulls-sort-heading { display: inline-flex; align-items: center; gap: 5px; }
.lem-bulls-main .lem-bulls-sort-arrows { display: inline-flex; flex-direction: column; flex: 0 0 19px; }
.lem-bulls-main .lem-bulls-sort-arrow { display: flex; align-items: center; justify-content: center; width: 19px; height: 18px; color: #fff; opacity: .60; text-decoration: none; border-radius: 3px; }
.lem-bulls-main .lem-bulls-sort-arrow:hover, .lem-bulls-main .lem-bulls-sort-arrow:focus-visible { opacity: 1; background: rgba(255,255,255,.16); color: #fff; }
.lem-bulls-main .lem-bulls-sort-arrow.is-active { color: #f9a4cf; opacity: 1; }
.lem-bulls-main .lem-bulls-sort-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
@media (max-width: 1250px) {
  .lem-bulls-main .lem-bulls-filters { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .lem-bulls-main .lem-bulls-submit { grid-column: auto; }
  .lem-bulls-main .lem-bulls-reset { justify-self: start; }
}
@media (max-width: 680px) {
  .lem-bulls-main .lem-bulls-filters { grid-template-columns: minmax(0,1fr); }
  .lem-bulls-main .lem-bulls-reset { justify-self: center; }
}
