/* Fiche publique d'un membre — harmonisée avec la présentation de l'association. */
.pc-association-member-page {
  --member-ink: #30253c;
  --member-muted: #685f72;
  --member-violet: #6652b8;
  --member-deep: #4d3a96;
  --member-lilac: #f2efff;
  --member-background: #f5f2fc;
  --member-line: rgba(91, 70, 153, 0.14);
  --member-display-font: var(--font-voice, Georgia, 'Times New Roman', serif);
  --member-text-font: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.pc-association-member-page main#contenu {
  min-height: 70vh;
  color: var(--member-ink);
  background: var(--member-background) !important;
  font-family: var(--member-text-font);
}

.pc-association-member-page .compact-band {
  min-height: 0 !important;
  padding: 34px 0 38px !important;
  background: #245b84 !important;
}

.pc-association-member-page .compact-band > .container {
  display: block !important;
  min-height: 0 !important;
}

.pc-association-member-page .compact-band .pc-site-breadcrumb {
  margin-bottom: 18px !important;
  color: rgba(255, 255, 255, 0.76) !important;
}

.pc-association-member-page .compact-band .pc-site-breadcrumb [aria-current='page'] {
  color: #fff !important;
}

.pc-association-member-page .compact-band h1 {
  margin: 0 !important;
  color: #fff !important;
  font-family: var(--member-display-font) !important;
  font-size: clamp(2.4rem, 4vw, 3.5rem) !important;
  line-height: 1.05 !important;
}

.pc-association-member-page .pc-detail-toolbar {
  margin: 0 !important;
  padding: 22px max(24px, calc((100% - 1440px) / 2)) 0 !important;
  border: 0 !important;
  background: var(--member-background) !important;
}

.pc-association-member-page .pc-detail-toolbar .btn {
  min-height: 42px;
  border-color: var(--member-line) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--member-ink) !important;
}

.pc-association-member-page main#contenu > section {
  padding: 28px 0 clamp(64px, 8vw, 100px) !important;
  background: var(--member-background) !important;
}

.pc-association-member-page main#contenu > section > .container {
  width: min(1280px, calc(100% - 48px)) !important;
  max-width: 1280px !important;
}

.pc-association-member-page #association-member-detail {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.pc-association-member-page #association-member-detail .association-member-profile {
  display: grid !important;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) minmax(220px, 260px) !important;
  grid-template-areas: 'photo content book' !important;
  align-items: start !important;
  gap: 24px !important;
  padding: 26px !important;
  border: 1px solid var(--member-line) !important;
  border-radius: 28px !important;
  background: #fff !important;
  box-shadow: 0 18px 48px rgba(55, 40, 82, 0.09) !important;
}

.pc-association-member-page #association-member-detail .association-member-profile:not(:has(.association-member-featured-book)) {
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr) !important;
  grid-template-areas: 'photo content' !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-photo,
.pc-association-member-page #association-member-detail .association-member-profile-content,
.pc-association-member-page #association-member-detail .association-member-featured-book {
  border: 1px solid var(--member-line) !important;
  border-radius: 22px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-photo {
  grid-area: photo !important;
  justify-content: flex-start !important;
  align-self: start !important;
  gap: 8px !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 14px !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-photo > img {
  width: 220px !important;
  height: 220px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  aspect-ratio: 1;
  object-fit: cover !important;
  object-position: center top;
  border-radius: 16px !important;
}

.pc-association-member-page #association-member-detail .association-member-tags-section {
  gap: 5px !important;
  margin: 6px 0 0 !important;
  padding: 10px 0 0 !important;
  border-top: 1px solid var(--member-line) !important;
}

.pc-association-member-page #association-member-detail .association-member-principal-tag,
.pc-association-member-page #association-member-detail .association-member-other-tags {
  margin: 0 !important;
}

.pc-association-member-page #association-member-detail .association-member-image-tags {
  justify-content: center !important;
}

.pc-association-member-page #association-member-detail .identity-image-tag {
  border-color: var(--member-line) !important;
  background: var(--member-lilac) !important;
}

.pc-association-member-page #association-member-detail .association-member-quick-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 !important;
  padding-top: 0;
}

.pc-association-member-page #association-member-detail .association-member-quick-facts > span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--member-line);
  border-radius: 999px;
  background: #fff;
  color: var(--member-ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.pc-association-member-page #association-member-detail .association-member-profile-content {
  grid-area: content !important;
  min-height: 100%;
  padding: 30px !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-content > .eyebrow {
  margin: 0 0 10px !important;
  color: var(--member-violet) !important;
  font-size: 0.75rem !important;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.pc-association-member-page #association-member-detail .association-member-profile-content > h1 {
  margin: 0 0 24px !important;
  font-family: var(--member-display-font) !important;
  font-size: clamp(2.2rem, 3.4vw, 3.2rem) !important;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.pc-association-member-page #association-member-detail .association-member-profile-content > p:not(.eyebrow) {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  margin: 0 !important;
  padding: 13px 0;
  border-bottom: 1px solid var(--member-line);
  color: var(--member-muted);
  font-size: 1rem !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-content > p strong {
  color: var(--member-ink);
}

.pc-association-member-page #association-member-detail .association-member-profile-content > section h2 {
  font-family: var(--member-display-font) !important;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem) !important;
}

.pc-association-member-page #association-member-detail .association-member-featured-book {
  grid-area: book !important;
  padding: 16px !important;
}

.pc-association-member-page #association-member-detail .association-member-featured-book > h2 {
  margin: 0 0 14px !important;
  color: var(--member-ink);
  font-family: var(--member-display-font) !important;
  font-size: 1.65rem !important;
  letter-spacing: -0.03em;
}

.pc-association-member-page #association-member-detail .association-member-current-book.book-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  border-color: var(--member-line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

.pc-association-member-page #association-member-detail .association-member-current-book .book-body h3 {
  font-size: 1rem !important;
}

@media (max-width: 980px) {
  .pc-association-member-page #association-member-detail .association-member-profile {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) !important;
    grid-template-areas: 'photo content' 'book content' !important;
  }
  .pc-association-member-page #association-member-detail .association-member-featured-book {
    width: 100% !important;
  }
}

@media (max-width: 700px) {
  .pc-association-member-page .pc-detail-toolbar {
    padding-inline: 16px !important;
  }
  .pc-association-member-page main#contenu > section > .container {
    width: calc(100% - 24px) !important;
  }
  .pc-association-member-page #association-member-detail .association-member-profile {
    grid-template-columns: 1fr !important;
    grid-template-areas: 'photo' 'content' 'book' !important;
    padding: 14px !important;
  }
  .pc-association-member-page #association-member-detail .association-member-profile-photo {
    width: min(100%, 320px) !important;
    margin-inline: auto !important;
  }
  .pc-association-member-page #association-member-detail .association-member-profile-content {
    min-height: 0;
    padding: 22px !important;
  }
  .pc-association-member-page #association-member-detail .association-member-featured-book {
    width: min(100%, 280px) !important;
    margin-inline: 0 !important;
  }
}

/* Bureau : profil à gauche, présentation au centre, livre à droite. */
.pc-association-member-page .pc-detail-toolbar {
  padding-bottom: 30px !important;
}

.pc-association-member-page main#contenu > section {
  padding-top: 0 !important;
}

.pc-association-member-page #association-member-detail .association-member-profile {
  grid-template-columns: minmax(220px, 270px) minmax(320px, 1fr) minmax(220px, 270px) !important;
  grid-template-rows: auto 1fr !important;
  grid-template-areas:
    'summary summary summary'
    'photo content book' !important;
}

.pc-association-member-page #association-member-detail .association-member-profile:not(:has(.association-member-featured-book)) {
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) !important;
  grid-template-areas: 'summary summary' 'photo content' !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-content {
  min-width: 0;
  min-height: 360px;
}

.pc-association-member-page #association-member-detail .association-member-featured-book {
  justify-self: stretch;
  width: 100% !important;
  max-width: 270px !important;
  margin: 0 !important;
}

@media (max-width: 1100px) {
  .pc-association-member-page #association-member-detail .association-member-profile {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr) !important;
    grid-template-areas: 'summary summary' 'photo content' 'photo book' !important;
  }
  .pc-association-member-page #association-member-detail .association-member-profile:not(:has(.association-member-featured-book)) {
    grid-template-columns: minmax(210px, 250px) minmax(0, 1fr) !important;
    grid-template-areas: 'summary summary' 'photo content' !important;
  }
  .pc-association-member-page #association-member-detail .association-member-featured-book {
    max-width: 280px !important;
  }
}

@media (max-width: 700px) {
  .pc-association-member-page .pc-detail-toolbar {
    padding-bottom: 22px !important;
  }
  .pc-association-member-page #association-member-detail .association-member-profile-content {
    min-height: 0;
  }
}

/* Règles finales : aucune surcharge placée après ne doit déplacer le livre. */
body.pc-association-member-page #association-member-detail .association-member-profile-photo > img {
  display: block !important;
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  object-position: center !important;
  box-shadow: 0 10px 28px rgba(55, 40, 82, 0.14) !important;
}

@media (min-width: 1101px) {
}

@media (min-width: 701px) and (max-width: 1100px) {
}

@media (max-width: 700px) {
}

/* Structure alignée sur les fiches Personnalités. */
.pc-association-member-page #association-member-detail .association-member-profile {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  grid-template-areas:
    'summary summary'
    'photo content'
    'photo book' !important;
  align-items: start !important;
  padding: 22px !important;
  background: #faf8ff !important;
}

.pc-association-member-page #association-member-detail .association-member-profile:not(:has(.association-member-featured-book)) {
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) !important;
  grid-template-areas: 'summary summary' 'photo content' !important;
}

.pc-association-member-page #association-member-detail .association-member-summary-nav {
  grid-area: summary;
  display: flex;
  align-items: center;
  gap: 8px 18px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid var(--member-line);
  border-radius: 16px;
  background: #fff;
  font-size: 0.875rem;
}

.pc-association-member-page #association-member-detail .association-member-summary-nav strong {
  padding: 7px 11px;
  border-radius: 10px;
  background: var(--member-lilac);
  color: var(--member-deep);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pc-association-member-page #association-member-detail .association-member-summary-nav a {
  font-weight: 750;
  text-decoration: none;
}

.pc-association-member-page #association-member-detail .association-member-summary-nav a:hover,
.pc-association-member-page #association-member-detail .association-member-summary-nav a:focus-visible {
  color: var(--member-violet);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pc-association-member-page #association-member-detail .association-member-profile-photo {
  align-items: center !important;
  padding: 0 12px !important;
  border: 0 !important;
  background: transparent !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-photo > img {
  width: 190px !important;
  height: 190px !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 10px 28px rgba(55, 40, 82, 0.14);
}

.pc-association-member-page #association-member-detail .association-member-side-name {
  margin: 8px 0 2px !important;
  font-family: var(--member-display-font) !important;
  font-size: clamp(1.9rem, 3vw, 2.5rem) !important;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-align: center;
}

.pc-association-member-page #association-member-detail .association-member-quick-facts {
  gap: 5px 8px;
}

.pc-association-member-page #association-member-detail .association-member-quick-facts > span {
  min-height: 0;
  padding: 3px 7px;
  border: 0;
  background: transparent;
  color: var(--member-muted);
  font-size: 0.875rem;
}

.pc-association-member-page #association-member-detail .association-member-quick-facts > span + span::before {
  content: '·';
  margin-right: 8px;
  color: var(--member-violet);
}

.pc-association-member-page #association-member-detail .association-member-tags-section {
  width: 100% !important;
  margin-top: 6px !important;
  padding-top: 8px !important;
  border-top: 0 !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-content {
  padding: 10px 18px 24px !important;
  border: 0 !important;
  background: transparent !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-content > section {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-content > section h2,
.pc-association-member-page #association-member-detail .association-member-featured-book > h2 {
  position: relative;
  padding-left: 16px !important;
}

.pc-association-member-page #association-member-detail .association-member-profile-content > section h2::before,
.pc-association-member-page #association-member-detail .association-member-featured-book > h2::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: #9b7be1;
}

.pc-association-member-page #association-member-detail .association-member-profile-content > section p {
  color: var(--member-ink);
  font-size: 1rem !important;
  line-height: 1.6;
}

.pc-association-member-page #association-member-detail .association-member-featured-book {
  justify-self: start;
  width: min(100%, 300px) !important;
  margin: 0 0 0 18px !important;
  padding: 0 0 22px !important;
  border: 0 !important;
  background: transparent !important;
}

@media (max-width: 700px) {
  .pc-association-member-page #association-member-detail .association-member-profile,
  .pc-association-member-page #association-member-detail .association-member-profile:not(:has(.association-member-featured-book)) {
    grid-template-columns: 1fr !important;
    grid-template-areas: 'summary' 'photo' 'content' 'book' !important;
  }
  .pc-association-member-page #association-member-detail .association-member-summary-nav {
    flex-wrap: wrap;
  }
  .pc-association-member-page #association-member-detail .association-member-profile-content {
    padding-inline: 4px !important;
  }
  .pc-association-member-page #association-member-detail .association-member-featured-book {
    margin-left: 4px !important;
  }
}

/* Cascade finale vérifiée : disposition de la fiche. */
@media (min-width: 1101px) {
  body.pc-association-member-page #association-member-detail .association-member-profile {
    grid-template-columns: 270px minmax(320px, 1fr) 270px !important;
    grid-template-rows: auto 1fr !important;
    grid-template-areas: 'summary summary summary' 'photo content book' !important;
  }

  body.pc-association-member-page #association-member-detail .association-member-profile:not(:has(.association-member-featured-book)) {
    grid-template-columns: 270px minmax(0, 1fr) !important;
    grid-template-areas: 'summary summary' 'photo content' !important;
  }

  body.pc-association-member-page #association-member-detail .association-member-featured-book {
    grid-area: book !important;
    align-self: start !important;
    justify-self: stretch !important;
    display: block !important;
    width: 270px !important;
    min-width: 270px !important;
    max-width: 270px !important;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid var(--member-line) !important;
    border-radius: 22px !important;
    background: #fff !important;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  body.pc-association-member-page #association-member-detail .association-member-profile {
    grid-template-columns: 250px minmax(0, 1fr) !important;
    grid-template-areas: 'summary summary' 'photo content' 'photo book' !important;
  }
}

@media (max-width: 700px) {
  body.pc-association-member-page #association-member-detail .association-member-profile,
  body.pc-association-member-page #association-member-detail .association-member-profile:not(:has(.association-member-featured-book)) {
    grid-template-columns: 1fr !important;
    grid-template-areas: 'summary' 'photo' 'content' 'book' !important;
  }
}
