/* Fiche eleveur — structure Orniland, couleurs club OC43 */
:root {
  --brand: #527bb2;
  --brand-dark: #3d6aa2;
  --brand-soft: #f3f6fb;
  --text-main: #333;
  --radius: 10px;
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

body.page-membre .site-main-inner {
  padding: 0;
}

.membre-page {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 16px 24px;
  box-sizing: border-box;
  float: none;
  clear: both;
  text-align: left;
}

.membre-page-title {
  text-align: center;
  font-size: 0.95rem;
  color: var(--brand);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

.membre-page .section-block {
  max-width: none;
  margin: 0 0 25px;
}

.membre-page .section-block:last-child {
  margin-bottom: 0;
}

.section-header--name {
  justify-content: center;
}

.section-header--name h2 {
  font-size: 1.25rem;
  text-align: center;
}

.section-content--gallery {
  padding: 0;
}

.breeder-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.breeder-info,
.club-info {
  flex: 1 1 48%;
  background-color: #fff;
  padding: 15px;
  border-radius: var(--radius);
  font-size: 0.85em;
  position: relative;
  box-sizing: border-box;
  border: 1px solid #e8edf4;
}

.breeder-card--single .breeder-info {
  flex: 1 1 100%;
}

.breeder-info-header i,
.club-info-header i {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--brand);
  font-size: 1.25em;
}

.info-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.info-row i {
  margin-right: 8px;
  color: var(--brand);
  font-size: 1.1em;
  min-width: 1.1em;
}

.contact-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-breeder-outside {
  text-align: center;
  margin-top: 20px;
}

.contact-breeder-outside .contact-link {
  font-size: 0.9em;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.contact-breeder-outside .contact-link:hover {
  background-color: var(--brand);
  color: #fff;
  text-decoration: none;
}

.contact-breeder-outside .contact-link i {
  margin-right: 8px;
}

.section-block {
  margin: 0 0 25px;
  max-width: 900px;
  background: #f8f8f8;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--brand);
  color: #fff;
  padding: 12px 18px;
  font-weight: bold;
  border-bottom: 3px solid var(--brand-dark);
}

.section-header i {
  font-size: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.section-content {
  padding: 16px;
  background: #f9f9f9;
  color: var(--text-main);
  line-height: 1.55;
  font-size: 0.92rem;
}

.section-content a {
  color: var(--brand);
}

.category-box {
  margin: 14px 0 6px;
}

.category-title {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 8px;
  padding: 9px 10px;
  background: var(--brand-soft);
  border: 1px solid #dde6f3;
  border-radius: 10px;
}

.bird-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px 14px;
  margin: 8px 0 16px;
}

.species-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 32px;
  padding: 6px 10px;
  background: #f7faff;
  border: 1px solid #cdd9ec;
  color: #243b5c;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 999px;
}

.species-meta {
  text-align: center;
  margin-bottom: 12px;
}

.meta-chip {
  display: inline-block;
  background: #fff;
  border: 1px solid #dde6f3;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.88em;
}

.empty-note {
  text-align: center;
  color: #555;
  background: #f0f0f0;
  padding: 20px;
  margin: 0;
  border-radius: 8px;
  font-style: italic;
}

.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  padding: 20px;
  background-color: #e9e9e9;
  border-radius: 0 0 var(--radius) var(--radius);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: #f4f4f4;
  border-radius: 8px;
  display: block;
}

.gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 6px 4px;
}

.gallery-item .lightbox-link {
  display: block;
  cursor: zoom-in;
}

.glightbox-container {
  background-color: rgba(0, 0, 0, 0.95) !important;
  z-index: 99999 !important;
}

.glightbox-container .gslide-image img {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) !important;
  max-width: 100vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 10;
}

.gslide-media {
  background-color: #000 !important;
}

.glightbox-open,
.gslide,
.gslide-content,
.gslide-image {
  transform: none !important;
  transition: none !important;
}

@media (max-width: 768px) {
  .breeder-info,
  .club-info {
    flex: 1 1 100%;
  }
}
