/* ============================================================
   Elevage du Bray Bocage — Chiots & Portées
   DA : vert sauge / orange terra cotta / fond crème
   ============================================================ */

:root {
  --bb-sage:      #6b7c5a;
  --bb-sage-dk:   #4e5e42;
  --bb-sage-lt:   #d4dece;
  --bb-orange:    #d4723a;
  --bb-orange-lt: #f5e8df;
  --bb-cream:     #faf8f4;
  --bb-gray:      #e8e5df;
  --bb-text:      #2c2a26;
  --bb-muted:     #8a8678;
  --bb-border:    #dbd8d0;
  --bb-radius:    8px;
  --bb-shadow:    0 4px 20px rgba(44,42,38,.08);
  --bb-font-body: 'Lato', sans-serif;
  --bb-font-deco: 'Playfair Display', serif;
}

.bb-archive-wrap,
.bb-single-wrap,
.bb-single-portee-wrap { font-family: var(--bb-font-body); color: var(--bb-text); }

/* ════════════════════════════════════════════════════
   HERO (archive)
   ════════════════════════════════════════════════════ */

.bb-archive-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px 80px; }

.bb-archive-hero { text-align: center; padding: 52px 20px 40px; }

.bb-hero-eyebrow {
  font-family: var(--bb-font-deco);
  font-size: 1rem;
  font-style: italic;
  color: var(--bb-sage);
  display: block;
  margin-bottom: 8px;
}

.bb-archive-title {
  font-family: var(--bb-font-deco);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 400;
  color: var(--bb-text);
  letter-spacing: .04em;
  margin: 0;
  line-height: 1.2;
}

.bb-archive-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bb-sage), var(--bb-orange));
  margin: 14px auto 0;
}

.bb-archive-subtitle {
  font-size: .95rem;
  color: var(--bb-muted);
  margin: 18px auto 0;
  max-width: 440px;
  line-height: 1.7;
  font-style: italic;
  font-family: var(--bb-font-deco);
}

/* ════════════════════════════════════════════════════
   FILTRES
   ════════════════════════════════════════════════════ */

.bb-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
  align-items: center;
}

.bb-filter-sep { color: var(--bb-border); font-size: 1.2rem; padding: 0 4px; }

.bb-filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--bb-sage-lt);
  background: transparent;
  color: var(--bb-sage-dk);
  font-family: var(--bb-font-body);
  font-size: .82rem;
  letter-spacing: .04em;
  text-decoration: none;
  transition: all .2s;
}
.bb-filter-btn:hover { background: var(--bb-sage-lt); }
.bb-filter-btn.active { background: var(--bb-sage); border-color: var(--bb-sage); color: white; }

.bb-filter-btn--statut-disponible        { background: #eaf3e6; border-color: #a8cfa0; color: #2e6020; }
.bb-filter-btn--statut-disponible.active { background: #a8cfa0; border-color: #7aad70; color: #1a4010; }
.bb-filter-btn--statut-reserve           { background: #fdf0e8; border-color: #e8b090; color: #9b3c10; }
.bb-filter-btn--statut-reserve.active    { background: #e8b090; border-color: #c07040; color: white; }
.bb-filter-btn--statut-parti             { background: #f0ede8; border-color: #c0b8a8; color: #5a5040; }
.bb-filter-btn--statut-parti.active      { background: #c0b8a8; border-color: #a09880; color: white; }

/* ════════════════════════════════════════════════════
   GRILLE PORTÉES (portrait)
   ════════════════════════════════════════════════════ */

.bb-portee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.bb-portee-card {
  background: white;
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-shadow);
  border: 1px solid var(--bb-border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bb-portee-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(44,42,38,.14);
}
.bb-portee-card-link { display: block; text-decoration: none; color: inherit; }

.bb-portee-card-img-wrap {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bb-cream);
}
.bb-portee-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}
.bb-portee-card:hover .bb-portee-card-img { transform: scale(1.03); }

.bb-portee-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; background: var(--bb-cream);
}

.bb-portee-statut {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  backdrop-filter: blur(4px);
}
.bb-portee-statut--blue   { background: rgba(107,124,90,.85);  color: white; }
.bb-portee-statut--orange { background: rgba(212,114,58,.85);  color: white; }
.bb-portee-statut--gray   { background: rgba(160,152,136,.85); color: white; }

.bb-portee-card-body { padding: 14px 16px 18px; }

.bb-portee-card-name {
  font-family: var(--bb-font-deco);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--bb-text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.bb-portee-card-meta { display: flex; flex-wrap: wrap; gap: 5px; }

.bb-portee-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bb-cream);
  border: 1px solid var(--bb-border);
  border-radius: 50px;
  font-size: .75rem;
  color: var(--bb-muted);
}
.bb-portee-tag--race { background: rgba(107,124,90,.1); border-color: rgba(107,124,90,.3); color: var(--bb-sage-dk); }


/* ════════════════════════════════════════════════════
   SINGLE PORTÉE
   ════════════════════════════════════════════════════ */

.bb-single-portee-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }

.bb-single-portee-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 860px) {
  .bb-single-portee-inner { grid-template-columns: 1fr; gap: 32px; }
}

.bb-portee-poster-col { position: sticky; top: 90px; }

.bb-portee-poster-wrap {
  position: relative;
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(44,42,38,.15);
  cursor: zoom-in;
  aspect-ratio: 2/3;
}
.bb-portee-poster-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .4s ease;
}
.bb-portee-poster-wrap:hover .bb-portee-poster-img { transform: scale(1.02); }

.bb-single-portee-name {
  font-family: var(--bb-font-deco);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--bb-text);
  line-height: 1.2;
  margin: 10px 0 6px;
}

.bb-single-portee-race {
  font-family: var(--bb-font-deco);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--bb-sage);
  margin: 0 0 20px;
}

.bb-parents-block { margin: 28px 0; }

.bb-block-title {
  font-family: var(--bb-font-deco);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--bb-text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bb-border);
}
.bb-block-title--center { text-align: center; }

.bb-parents-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 500px) {
  .bb-parents-cols { grid-template-columns: 1fr; }
}

.bb-parent-card {
  padding: 16px 18px;
  background: var(--bb-cream);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius);
}

.bb-parent-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--bb-sage);
  margin-bottom: 8px;
}

.bb-parent-name {
  font-family: var(--bb-font-deco);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--bb-text);
  margin: 0 0 2px;
  line-height: 1.3;
}

.bb-parent-affixe {
  font-size: .82rem;
  color: var(--bb-muted);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bb-parent-sante {
  font-size: .82rem;
  color: var(--bb-sage-dk);
  margin: 0;
  line-height: 1.6;
  padding-top: 8px;
  border-top: 1px solid var(--bb-border);
}

.bb-portee-chiots {
  max-width: 1100px;
  margin: 60px auto 0;
  padding: 0 24px;
}

.bb-chiots-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.bb-card-mini { border-radius: var(--bb-radius); overflow: hidden; box-shadow: var(--bb-shadow); border: 1px solid var(--bb-border); transition: transform .2s; }
.bb-card-mini:hover { transform: translateY(-3px); }
.bb-card-mini-link { display: block; text-decoration: none; color: inherit; }
.bb-card-mini-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bb-cream); }
.bb-card-mini-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-card-mini-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.bb-card-mini-body { padding: 10px 12px 14px; background: white; }
.bb-card-mini-name { font-family: var(--bb-font-deco); font-style: italic; font-size: 1rem; color: var(--bb-text); margin: 0 0 3px; }
.bb-card-mini-meta { font-size: .78rem; color: var(--bb-muted); margin: 0; }


/* ════════════════════════════════════════════════════
   GRILLE CHIOTS
   ════════════════════════════════════════════════════ */

.bb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
}

.bb-card {
  background: white;
  border-radius: var(--bb-radius);
  overflow: hidden;
  box-shadow: var(--bb-shadow);
  border: 1px solid var(--bb-border);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bb-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(44,42,38,.14); }
.bb-card-link { display: block; text-decoration: none; color: inherit; }

.bb-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bb-cream);
}
.bb-card-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.bb-card:hover .bb-card-img { transform: scale(1.04); }
.bb-card-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: var(--bb-cream); }

.bb-card-statut {
  position: absolute;
  top: 10px; right: 10px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  backdrop-filter: blur(4px);
}
.bb-card-statut--green  { background: rgba(168,207,160,.92); color: #1e4c14; }
.bb-card-statut--orange { background: rgba(232,176,144,.92); color: #7a2e08; }
.bb-card-statut--gray   { background: rgba(192,184,168,.92); color: #3c3428; }

.bb-card-body { padding: 16px 18px 20px; border-top: 2px solid var(--bb-gray); }

.bb-card-name {
  font-family: var(--bb-font-deco);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--bb-text);
  margin: 0 0 3px;
  line-height: 1.2;
}

.bb-card-portee { font-size: .78rem; color: var(--bb-muted); margin: 0 0 10px; font-style: italic; }

.bb-card-meta { display: flex; flex-wrap: wrap; gap: 5px; }

.bb-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--bb-cream);
  border: 1px solid var(--bb-border);
  border-radius: 50px;
  font-size: .75rem;
  color: var(--bb-muted);
}

/* ════════════════════════════════════════════════════
   SINGLE CHIOT
   ════════════════════════════════════════════════════ */

.bb-single-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }

.bb-single-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 768px) { .bb-single-inner { grid-template-columns: 1fr; gap: 28px; } }

.bb-single-gallery { position: sticky; top: 90px; }

.bb-main-photo {
  border-radius: var(--bb-radius);
  overflow: hidden;
  background: var(--bb-cream);
  aspect-ratio: 1;
  cursor: zoom-in;
  box-shadow: 0 8px 28px rgba(44,42,38,.12);
  position: relative;
}
.bb-main-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.bb-main-photo:hover .bb-main-img { transform: scale(1.02); }

.bb-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bb-thumb {
  width: 60px; height: 60px;
  border-radius: 6px;
  overflow: hidden;
  border: 2.5px solid transparent;
  cursor: pointer; padding: 0; background: none;
  transition: border-color .2s, transform .15s;
}
.bb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bb-thumb:hover { transform: translateY(-2px); border-color: var(--bb-sage-lt); }
.bb-thumb.active { border-color: var(--bb-sage); }

.bb-single-infos { padding-top: 6px; }

.bb-single-name {
  font-family: var(--bb-font-deco);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  font-style: italic;
  color: var(--bb-text);
  line-height: 1.1;
  margin: 10px 0 6px;
}

.bb-single-portee { font-size: .88rem; color: var(--bb-muted); font-style: italic; margin: 0 0 18px; }
.bb-single-portee a { color: var(--bb-sage-dk); text-decoration: none; }
.bb-single-portee a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════
   ÉLÉMENTS COMMUNS
   ════════════════════════════════════════════════════ */

.bb-breadcrumb {
  display: flex; align-items: center; gap: 7px;
  padding: 22px 0 32px; font-size: .83rem; color: var(--bb-muted);
}
.bb-breadcrumb a { color: var(--bb-sage-dk); text-decoration: none; }
.bb-breadcrumb a:hover { text-decoration: underline; }

.bb-statut-badge {
  display: inline-block; padding: 5px 14px; border-radius: 50px;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; margin-bottom: 12px;
}
.bb-statut-badge--green  { background: #eaf3e6; color: #2e6020; border: 1px solid #a8cfa0; }
.bb-statut-badge--orange { background: #fdf0e8; color: #9b3c10; border: 1px solid #e8b090; }
.bb-statut-badge--gray   { background: #f0ede8; color: #5a5040; border: 1px solid #c0b8a8; }
.bb-statut-badge--blue   { background: #edf2e8; color: var(--bb-sage-dk); border: 1px solid var(--bb-sage-lt); }

.bb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bb-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--bb-radius);
  font-size: .88rem; background: var(--bb-cream);
  border: 1px solid var(--bb-border); color: var(--bb-text);
}
.bb-chip-icon { font-size: .9rem; }

.bb-portee-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

.bb-description {
  background: var(--bb-cream);
  border-radius: var(--bb-radius);
  padding: 18px 22px;
  box-shadow: var(--bb-shadow);
  margin-bottom: 22px;
  border-left: 3px solid var(--bb-sage);
}
.bb-desc-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .14em; color: var(--bb-muted); margin: 0 0 10px;
}
.bb-description p { font-size: .97rem; line-height: 1.78; color: var(--bb-text); margin: 0; }

.bb-cta {
  background: linear-gradient(135deg, var(--bb-sage-lt), #c8d4c0);
  border-radius: var(--bb-radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.bb-cta-text { color: var(--bb-text); font-size: .97rem; margin: 0 0 14px; font-style: italic; font-family: var(--bb-font-deco); }

.bb-btn-contact {
  display: inline-block; padding: 11px 28px;
  background: var(--bb-sage); color: white;
  border-radius: 50px;
  font-family: var(--bb-font-body); font-weight: 700; font-size: .9rem;
  text-decoration: none; letter-spacing: .04em;
  transition: background .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(107,124,90,.3);
}
.bb-btn-contact:hover { background: var(--bb-sage-dk); transform: translateY(-2px); }
.bb-btn-contact--secondary {
  background: transparent; color: var(--bb-sage-dk);
  border: 2px solid var(--bb-sage);
  box-shadow: none;
}
.bb-btn-contact--secondary:hover { background: var(--bb-sage); color: white; }

.bb-back-link { display: inline-flex; align-items: center; gap: 5px; color: var(--bb-sage-dk); font-size: .88rem; text-decoration: none; }
.bb-back-link:hover { text-decoration: underline; }

.bb-zoom-btn {
  position: absolute; bottom: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.85); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--bb-sage-dk); box-shadow: 0 2px 8px rgba(44,42,38,.15);
  transition: background .2s;
}
.bb-zoom-btn:hover { background: white; }

.bb-empty { text-align: center; padding: 70px 20px; }
.bb-empty-icon { font-size: 3rem; margin-bottom: 12px; }
.bb-empty p { color: var(--bb-muted); font-size: 1rem; line-height: 1.7; }
.bb-empty a { color: var(--bb-sage-dk); font-weight: 700; }

/* ════════════════════════════════════════════════════
   LIGHTBOX
   ════════════════════════════════════════════════════ */

.bb-lightbox-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(28,26,22,.93); z-index: 9998; backdrop-filter: blur(8px);
}
.bb-lightbox-overlay.active { display: block; }

.bb-lightbox {
  display: none; position: fixed; inset: 0;
  z-index: 9999; align-items: center; justify-content: center; padding: 20px;
}
.bb-lightbox.active { display: flex; }
.bb-lightbox-img-wrap { max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.bb-lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 6px; object-fit: contain; display: block; }

.bb-lightbox-close {
  position: fixed; top: 16px; right: 20px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: white; font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; line-height: 1;
}
.bb-lightbox-close:hover { background: rgba(255,255,255,.22); }

.bb-lightbox-prev, .bb-lightbox-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: white; font-size: 1.7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; line-height: 1;
}
.bb-lightbox-prev { left: 12px; }
.bb-lightbox-next { right: 12px; }
.bb-lightbox-prev:hover, .bb-lightbox-next:hover { background: rgba(255,255,255,.22); }
.bb-lightbox-prev:disabled, .bb-lightbox-next:disabled { opacity: .2; cursor: default; }

.bb-lightbox-counter {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.5); font-size: .82rem;
}

/* ════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .bb-portee-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bb-grid        { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bb-card-name   { font-size: 1.15rem; }
  .bb-portee-card-name { font-size: 1rem; }
  .bb-chiots-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
