/* ===== PUBLICATION-DETAIL.CSS - Publication detail page styles ===== */

/* ===== FONDATION STAT ===== */
.fondation-stat {
  display: flex;
  gap: 3rem;
  margin: 2.5rem 0;
  padding: 2rem 2.5rem;
  background: var(--bg-dark);
  border-left: 4px solid var(--abenex-orange);
}

.fondation-stat__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.fondation-stat__number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
}

.fondation-stat__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* ===== FONDATION PARTNERS ===== */
.fondation-partners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 2.5rem 0;
  background: rgba(10, 22, 40, 0.1);
}

.fondation-partner {
  display: flex;
  flex-direction: column;
  background: var(--bg-cream);
  padding: 2rem;
  transition: background 0.3s ease;
}

.fondation-partner:hover {
  background: var(--bg-warm);
}

.fondation-partner__logo {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.fondation-partner__logo img {
  max-height: 60px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
}

.fondation-partner__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.fondation-partner__desc {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--text-muted-dark);
  flex: 1;
}

.fondation-partner__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.fondation-partner__link:hover {
  color: var(--text-dark);
}

.fondation-partner__link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

.fondation-partner__link:hover svg {
  transform: translateX(3px);
}

.fondation-partner--full {
  grid-column: 1 / -1;
}

/* ===== FONDATION CONTACT ===== */
.fondation-contact {
  margin: 3rem 0 0;
  padding: 2rem 2.5rem;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.fondation-contact__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-light);
}

.fondation-contact__email {
  font-size: 0.85rem;
  color: var(--abenex-orange);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.fondation-contact__email:hover {
  color: var(--text-light);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .fondation-stat {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .fondation-partners {
    grid-template-columns: 1fr;
  }

  .fondation-contact {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .fondation-stat { padding: 1rem; gap: 1rem; }
  .fondation-stat__number { font-size: 1.5rem; }
  .fondation-partners { grid-template-columns: 1fr; }
}

/* ===== ACF Publication — éléments 2 colonnes (logo / texte) ===== */
.acf-pub-intro {
  margin-bottom: 2.5rem;
}

.acf-pub-element {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: center;
  margin: 1.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-border, #e5e7eb);
}
.acf-pub-element:first-of-type { border-top: none; padding-top: 0; }

.acf-pub-element > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
  display: block;
  padding: 0.5rem;
}

.acf-pub-element-text p { margin: 0; }

@media (max-width: 768px) {
  .acf-pub-element {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }
  .acf-pub-element > img {
    max-width: 200px;
    margin: 0 auto;
  }
}
