/* Petit Canard V6.67 — structure commune des fiches publiques. */

.pc-public-detail-page .pc-detail-band {
  padding-top: 18px;
  padding-bottom: 18px;
}
/* Fil d’Ariane : styles centralisés dans public-navigation.css. */
.pc-detail-band-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pc-detail-band-row .eyebrow {
  margin: 0 0 3px !important;
}
.pc-detail-band-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 850;
}
.pc-public-detail-page main > section {
  padding-top: 28px;
}
.pc-public-detail-root {
  position: relative;
  min-width: 0;
}
.pc-detail-local-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfafc;
  overflow: hidden;
}
.pc-detail-local-label {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 9px;
  background: #eee9f8;
  color: #59469a;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.pc-detail-local-links {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.pc-detail-local-links a {
  flex: 0 0 auto;
  padding: 6px 8px;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.pc-detail-local-links a:hover,
.pc-detail-local-links a:focus-visible {
  background: #f0ecfa;
  color: #59469a;
}
.pc-detail-section {
  scroll-margin-top: calc(var(--pc-fixed-header-height, 78px) + 82px);
}
.pc-detail-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pc-detail-section-title::before {
  content: '';
  width: 4px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #9c87d8;
}
.pc-detail-info-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.pc-detail-info-table .detail-row {
  margin: 0 !important;
  padding: 9px 11px !important;
  border-bottom: 1px solid #eeeaf1 !important;
}
.pc-detail-info-table .detail-row:last-child {
  border-bottom: 0 !important;
}
.pc-detail-info-table .detail-spacer {
  min-height: 8px !important;
  padding: 0 !important;
  background: #f8f7fa;
}
.pc-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-detail-related-section {
  border-radius: 16px;
}

.pc-detail-primary-context {
  display: flex;
  align-items: stretch;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

/* Livre : action sous la couverture et aperçu d'auteur stable. */
#book-detail .book-cover-loan-action,
#webtoon-detail .book-cover-loan-action { width: 100%; margin-top: 12px; }
#book-detail .book-cover-loan-action .btn,
#webtoon-detail .book-cover-loan-action .btn { width: 100%; min-height: 44px; }
#book-detail .book-structural-author-content,
#webtoon-detail .book-structural-author-content { max-height: none; overflow: visible; }
#book-detail .book-structural-author .author-card-under-cover,
#webtoon-detail .book-structural-author .author-card-under-cover { min-height: 0; }
#book-detail .book-structural-author .author-card-copy,
#webtoon-detail .book-structural-author .author-card-copy { display: flex; flex: 0 1 auto; flex-direction: column; width: 100%; min-height: 0; }
#book-detail .book-structural-author .author-bio-preview,
#webtoon-detail .book-structural-author .author-bio-preview { display: -webkit-box; min-height: 6.2em; max-height: 6.2em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
@media (max-width: 800px) {
  #book-detail .book-structural-author .author-card-under-cover,
  #webtoon-detail .book-structural-author .author-card-under-cover { min-height: 0; }
  #book-detail .book-structural-author .author-card-copy,
  #webtoon-detail .book-structural-author .author-card-copy { min-height: 0; }
}
.pc-detail-primary-context > span {
  display: grid;
  gap: 1px;
  min-width: 96px;
  padding: 7px 9px;
  border: 1px solid #ddd5ef;
  border-radius: 11px;
  background: #f8f5ff;
}
.pc-detail-primary-context small {
  color: #766b82;
  font-size: 0.61rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}
.pc-detail-primary-context strong {
  max-width: 200px;
  overflow: hidden;
  color: #4f3c91;
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Fiches simples : créer visuellement la même hiérarchie que les fiches riches. */
.pc-public-detail-ressource-pedagogique .pedagogical-detail > section,
.pc-public-detail-maison-edition .publisher-detail-complete > section,
.pc-public-detail-association-lgbtq .association-detail-main > section {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.pc-public-detail-ressource-pedagogique .pedagogical-detail > .detail-table {
  margin-top: 18px;
}
.pc-public-detail-maison-edition .publisher-detail-complete > header,
.pc-public-detail-ressource-pedagogique .pedagogical-detail > header,
.pc-public-detail-association-lgbtq .association-detail-hero {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff 0%, #faf8ff 100%);
}
.pc-public-detail-maison-edition .publisher-detail-complete > section > .book-grid {
  margin-top: 12px;
}

/* Les layouts riches conservent leur grille existante mais gagnent en séparation. */
.pc-public-detail-livre .book-structural-summary,
.pc-public-detail-webtoon .book-structural-summary,
.pc-public-detail-personnalite .personality-center-panel,
.pc-public-detail-ressource .resource-detail-main {
  min-width: 0;
}
.pc-public-detail-livre .book-structural-related,
.pc-public-detail-webtoon .book-structural-related,
.pc-public-detail-personnalite .personality-right-panel {
  min-width: 0;
}
.pc-public-detail-page .editorial-text,
.pc-public-detail-page .association-detail-text,
.pc-public-detail-page .back-cover p {
  line-height: 1.7;
}

@media (max-width: 820px) {
  .pc-detail-band-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .pc-detail-back {
    width: 100% !important;
    justify-content: center;
  }
  .pc-detail-local-nav {
    position: sticky;
    z-index: 18;
    top: calc(var(--pc-fixed-header-height, 78px) + 4px);
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 12px;
    background: rgba(251, 250, 252, 0.96);
    backdrop-filter: blur(9px);
  }
  .pc-detail-local-label {
    display: none;
  }
  .pc-detail-primary-context {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .pc-detail-primary-context > span {
    min-width: 0;
  }
}
@media (max-width: 460px) {
  .pc-detail-breadcrumb [aria-current='page'] {
    max-width: 190px;
  }
  .pc-detail-primary-context {
    grid-template-columns: 1fr;
  }
}

/* v6.69.56 — titre original et éditions */
.book-original-title {
  margin: 0.35rem 0 0.6rem;
  font-style: italic;
  color: var(--muted, #635f72);
}
.book-public-editions {
  margin-top: 24px;
}
.book-edition-public-list {
  display: grid;
  gap: 12px;
}
.book-edition-public-card {
  border: 1px solid var(--border, #ddd);
  border-radius: 12px;
  padding: 14px;
}
.book-edition-public-card h3 {
  margin: 0 0 8px;
}
.book-edition-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.book-edition-meta span {
  background: rgba(116, 101, 199, 0.1);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.9em;
}
.book-edition-public-card p {
  margin: 4px 0;
}

#book-detail .book-structural-cover > .content-reactions,
#webtoon-detail .book-structural-cover > .content-reactions,
#resource-detail .resource-poster-column > .content-reactions,
#ped-detail .pc-ped-hero-visual > .content-reactions,
#ped-detail .pc-ped-hero > .content-reactions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 9px;
}

#book-detail .book-structural-cover,
#webtoon-detail .book-structural-cover { align-self: start; margin-top: 0 !important; }
#book-detail .book-structural-cover .detail-cover,
#webtoon-detail .book-structural-cover .detail-cover { margin-top: 0 !important; }
#book-detail .book-structural-grid,
#webtoon-detail .book-structural-grid { row-gap: 8px; }
#book-detail .book-author-offset,
#webtoon-detail .book-author-offset { min-height: 28px; }
#book-detail .book-structural-author,
#webtoon-detail .book-structural-author { grid-template-rows: 28px auto auto; }
#book-detail .book-structural-cover .content-reactions-heading,
#webtoon-detail .book-structural-cover .content-reactions-heading,
#resource-detail .resource-poster-column .content-reactions-heading,
#ped-detail .pc-ped-hero .content-reactions-heading { flex: 0 0 auto; margin: 0; }
#book-detail .book-structural-cover .content-reactions-heading span,
#webtoon-detail .book-structural-cover .content-reactions-heading span,
#resource-detail .resource-poster-column .content-reactions-heading span,
#ped-detail .pc-ped-hero .content-reactions-heading span { display: none; }
#book-detail .book-structural-cover .content-reaction-buttons,
#webtoon-detail .book-structural-cover .content-reaction-buttons,
#resource-detail .resource-poster-column .content-reaction-buttons,
#ped-detail .pc-ped-hero .content-reaction-buttons {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

#book-detail .book-structural-cover .content-reaction,
#webtoon-detail .book-structural-cover .content-reaction,
#resource-detail .resource-poster-column .content-reaction,
#ped-detail .pc-ped-hero .content-reaction {
  display: inline-flex;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 34px;
  padding: 4px 5px;
}
#book-detail .book-structural-cover .content-reaction svg,
#webtoon-detail .book-structural-cover .content-reaction svg,
#resource-detail .resource-poster-column .content-reaction svg,
#ped-detail .pc-ped-hero .content-reaction svg { width: 20px; height: 20px; flex: 0 0 20px; }
#book-detail .book-structural-cover .content-reaction > span,
#webtoon-detail .book-structural-cover .content-reaction > span,
#resource-detail .resource-poster-column .content-reaction > span,
#ped-detail .pc-ped-hero .content-reaction > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#book-detail .book-structural-cover .content-reaction-status,
#webtoon-detail .book-structural-cover .content-reaction-status,
#resource-detail .resource-poster-column .content-reaction-status,
#ped-detail .pc-ped-hero .content-reaction-status { display: none; }

#ped-detail .pc-ped-hero-visual { display: flex; flex-direction: column; align-self: start; }

#resource-detail .resource-representations {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #faf9fc;
}
#resource-detail .resource-representations > h2 { margin: 0 0 12px; }

@media (max-width: 800px) {
  #book-detail .book-structural-grid,
  #webtoon-detail .book-structural-grid { row-gap: 14px; }
  #book-detail .book-author-offset,
  #webtoon-detail .book-author-offset { display: none; }
  #book-detail .book-structural-author,
  #webtoon-detail .book-structural-author { grid-template-rows: auto auto; }
}
