.kb-chat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.kb-chat-grid.kb-chat-count-1 { grid-template-columns: minmax(280px, 620px); }
.kb-chat-card { overflow: hidden; color: #17271f; background: #fff; border: 1px solid rgba(199, 164, 92, .72); box-shadow: 0 8px 30px rgba(7, 25, 18, .13); }
.kb-chat-card__image { display: block; height: 320px; overflow: hidden; background: #e9e3d8; }
.kb-chat-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.kb-chat-card:hover .kb-chat-card__image img { transform: scale(1.025); }
.kb-chat-card__body { padding: 24px 25px 26px; }
.kb-chat-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kb-chat-card__heading h3 { margin: 0; color: #102e24; font: 400 31px/1.1 Georgia, serif; }
.kb-chat-sex { color: #9b7638; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.kb-chat-card__robe { margin: 6px 0 18px; color: #746d62; font-size: 13px; }
.kb-chat-card__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding: 17px 0; border-top: 1px solid #e4ddd1; border-bottom: 1px solid #e4ddd1; color: #526158; font-size: 13px; line-height: 1.4; }
.kb-chat-card__facts strong { display: block; margin-bottom: 2px; color: #17291f; font-weight: 700; }
.kb-chat-card__link { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: #133326; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.kb-chat-empty { grid-column: 1 / -1; margin: 0; padding: 30px; color: #536158; background: rgba(255,255,255,.72); border: 1px solid #ded6c9; font-size: 15px; text-align: center; }

/* Fin liseré doré autour des deux grandes sections Mâles et Femelles. */
#kb-cats-page .kb-cats-section {
  position: relative;
  border: 1px solid rgba(199, 164, 92, .82);
}

body.single-kb_chat .hero-section { display: none !important; }
body.single-kb_chat .site-main,
body.single-kb_chat .ct-container-full { padding: 0 !important; margin: 0 !important; }
body.single-kb_chat article > .entry-header,
body.single-kb_chat article > .entry-meta { display: none !important; }

#kb-auto-profile { --green: #102e24; --gold: #c7a45c; --ivory: #f5f1ea; width: 100%; max-width: 1280px; margin: 0 auto; color: #17271f; background: var(--ivory); font-family: Arial, Helvetica, sans-serif; }
#kb-auto-profile * { box-sizing: border-box; }
.kb-auto-profile__hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); min-height: 560px; background: var(--green); }
.kb-auto-profile__photo { min-height: 560px; background-position: center; background-size: cover; }
.kb-auto-profile__copy { display: flex; flex-direction: column; justify-content: center; padding: 58px clamp(34px, 5vw, 72px); color: #fff; }
.kb-auto-profile__kicker { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.kb-auto-profile__copy h1 { margin: 14px 0 12px; color: #fff; font: 400 clamp(42px, 5vw, 68px)/1.03 Georgia, serif; }
.kb-auto-profile__robe { margin: 0 0 24px; color: #e6ece8; font-size: 16px; line-height: 1.6; }
.kb-auto-profile__ornament { display: flex; align-items: center; gap: 10px; width: 175px; margin: 6px 0 26px; color: var(--gold); }
.kb-auto-profile__ornament:before,
.kb-auto-profile__ornament:after { height: 1px; content: ""; flex: 1; background: var(--gold); }
.kb-auto-profile__intro,
.kb-auto-profile__intro p { margin: 0; color: #dce4df; font-size: 15px; line-height: 1.75; }
.kb-auto-profile__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: #fff; }
.kb-auto-profile__fact { padding: 28px 30px; border-right: 1px solid #e5ded2; border-bottom: 1px solid #e5ded2; }
.kb-auto-profile__fact:nth-child(2n) { border-right: 0; }
.kb-auto-profile__fact span { display: block; margin-bottom: 7px; color: #9a7536; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kb-auto-profile__fact strong { color: var(--green); font-size: 17px; font-weight: 400; line-height: 1.45; }
.kb-auto-profile__health { grid-column: 1 / -1; border-right: 0; }
.kb-auto-profile__health-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.kb-auto-profile__health-list strong { display: flex; align-items: center; gap: 10px; }
.kb-auto-profile__health-list i { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; color: #fff; background: var(--gold); border-radius: 50%; font: normal 700 14px/1 Arial, sans-serif; }
.kb-auto-profile__lineage { padding: 52px clamp(28px, 6vw, 78px) 60px; background: var(--ivory); }
.kb-auto-profile__lineage h2 { margin: 0 0 24px; color: var(--green); font: 400 clamp(30px, 3vw, 42px)/1.15 Georgia, serif; }
.kb-auto-profile__parents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.kb-auto-profile__parent { padding: 25px 28px; background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 10px 28px rgba(15,45,34,.08); }
.kb-auto-profile__parent span { display: block; margin-bottom: 8px; color: #9a7536; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.kb-auto-profile__parent strong { color: var(--green); font: 400 22px/1.35 Georgia, serif; }
.kb-auto-profile__parent strong a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--gold); }
.kb-auto-profile__pedigree { display: inline-block; margin-top: 25px; color: #806027; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid var(--gold); }
.kb-auto-profile__pedigree-text { margin: 25px 0 0; color: #536158; }
.kb-auto-profile__gallery { padding: 52px clamp(28px, 6vw, 78px) 64px; background: #fff; }
.kb-auto-profile__gallery-kicker { color: #9a7536; font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.kb-auto-profile__gallery h2 { margin: 7px 0 25px; color: var(--green); font: 400 clamp(30px, 3vw, 42px)/1.15 Georgia, serif; }
.kb-auto-profile__gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kb-auto-profile__gallery-item { position: relative; min-height: 190px; padding: 0; overflow: hidden; background: #ece6dc; border: 1px solid rgba(199, 164, 92, .72); cursor: zoom-in; }
.kb-auto-profile__gallery-item img { display: block; width: 100%; height: 100%; min-height: 190px; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.kb-auto-profile__gallery-item:hover img { transform: scale(1.025); }
.kb-auto-profile__gallery-item span { position: absolute; right: 9px; bottom: 9px; padding: 5px 8px; color: #fff; background: rgba(11, 36, 27, .82); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.kb-gallery-dialog { width: min(94vw, 1180px); max-width: none; padding: 0; overflow: visible; background: transparent; border: 0; }
.kb-gallery-dialog::backdrop { background: rgba(4, 15, 11, .88); }
.kb-gallery-dialog img { display: block; width: auto; max-width: 94vw; height: auto; max-height: 88vh; margin: auto; object-fit: contain; box-shadow: 0 18px 70px rgba(0, 0, 0, .45); }
.kb-gallery-dialog__close { position: absolute; z-index: 2; top: -18px; right: -4px; display: grid; width: 42px; height: 42px; place-items: center; padding: 0; color: #fff; background: var(--green); border: 1px solid var(--gold); border-radius: 50%; font-size: 27px; line-height: 1; cursor: pointer; }
.kb-auto-profile__cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; padding: 44px clamp(28px, 6vw, 78px); color: #fff; background: var(--green); border-top: 1px solid rgba(199,164,92,.65); }
.kb-auto-profile__cta-kicker { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.kb-auto-profile__cta h2 { margin: 7px 0 9px; color: #fff; font: 400 clamp(29px, 3vw, 42px)/1.15 Georgia, serif; }
.kb-auto-profile__cta p { max-width: 700px; margin: 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.65; }
.kb-auto-profile__cta-actions { display: flex; gap: 11px; flex-wrap: wrap; justify-content: flex-end; }
.kb-auto-profile__cta a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 11px 20px; font-weight: 700; text-decoration: none; border: 1px solid var(--gold); transition: background .2s ease, color .2s ease, transform .2s ease; }
.kb-auto-profile__cta a:hover { transform: translateY(-1px); }
.kb-auto-profile__cta-primary { color: var(--green); background: var(--gold); }
.kb-auto-profile__cta-primary:hover { color: var(--green); background: #dbc184; }
.kb-auto-profile__cta-secondary { color: #fff; background: transparent; }
.kb-auto-profile__cta-secondary:hover { color: var(--green); background: #fff; }

@media (max-width: 760px) {
  .kb-chat-grid { grid-template-columns: 1fr; gap: 18px; }
  .kb-chat-card__image { height: 260px; }
  .kb-chat-card__body { padding: 20px; }
  .kb-chat-card__facts { grid-template-columns: 1fr; }
  .kb-auto-profile__hero { grid-template-columns: 1fr; min-height: 0; }
  .kb-auto-profile__photo { min-height: 410px; }
  .kb-auto-profile__copy { padding: 38px 24px 44px; }
  .kb-auto-profile__copy h1 { font-size: 43px; }
  .kb-auto-profile__facts,
  .kb-auto-profile__parents { grid-template-columns: 1fr; }
  .kb-auto-profile__fact { border-right: 0; }
  .kb-auto-profile__health-list { grid-template-columns: 1fr; }
  .kb-auto-profile__lineage { padding: 38px 20px 45px; }
  .kb-auto-profile__gallery { padding: 38px 16px 45px; }
  .kb-auto-profile__cta { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px 40px; }
  .kb-auto-profile__cta-actions { display: grid; grid-template-columns: 1fr; justify-content: stretch; }
  .kb-auto-profile__cta a { width: 100%; }
  .kb-auto-profile__gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kb-auto-profile__gallery-item,
  .kb-auto-profile__gallery-item img { min-height: 145px; }
}
