/* Petit Canard V6.69.11 — finition visuelle globale */

/* ---------------------------------------------------------
   Cadre public commun
   --------------------------------------------------------- */
:root {
  --pc-page-max: 1500px;
  --pc-page-gutter: 16px;
  --pc-layout-gap: 12px;
  --pc-surface: #fff;
  --pc-surface-soft: #faf9fc;
  --pc-line-soft: #e7e1eb;
  --pc-violet-soft: #f3effb;
  --pc-violet-ink: #5b469f;
  --pc-radius-sm: 11px;
  --pc-radius-md: 15px;
  --pc-shadow-soft: 0 6px 20px rgba(45, 34, 66, 0.045);
}
body:not(.admin-page) .container {
  width: min(var(--pc-page-max), calc(100% - (var(--pc-page-gutter) * 2)));
  max-width: var(--pc-page-max);
}

/* V6.69.102 — largeur publique et confort mobile des livres. */
@media (max-width: 620px) {
  body.pc-section-home #home-publication-carousels .carousel-wrap {
    display:grid !important;
    grid-template-columns:36px minmax(0,1fr) 36px !important;
    gap:6px !important;
    padding-inline:0 !important;
  }
  body.pc-section-home #home-publication-carousels :is(#new-carousel,#release-carousel,#upcoming-carousel) {
    grid-auto-columns:100% !important;
    width:100% !important;
    scroll-snap-type:x mandatory;
  }
  body.pc-section-home #home-publication-carousels :is(#new-carousel,#release-carousel,#upcoming-carousel) > * {
    width:100% !important;
    min-width:0 !important;
    scroll-snap-align:start;
  }
  body.pc-section-home #home-publication-carousels .carousel-control {
    position:relative !important;
    z-index:5 !important;
    display:inline-grid !important;
    place-items:center !important;
    min-width:36px !important;
    min-height:44px !important;
    pointer-events:auto !important;
  }
  body.pc-section-books #books.book-grid-list .book-card { grid-template-columns:92px minmax(0,1fr) !important; min-height:138px !important; }
  body.pc-section-books #books.book-grid-list .book-cover { width:92px !important; min-width:92px !important; max-width:92px !important; height:138px !important; min-height:138px !important; }
  body.pc-section-books #books.book-grid-list .book-cover img,
  body.pc-section-books #books.book-grid-list .book-cover .cover-placeholder { width:100% !important; height:100% !important; min-height:138px !important; object-fit:contain !important; background:#f7f4fb !important; }
}

@media (min-width: 821px) {
  #book-detail .book-structural-cover .book-cover,
  #webtoon-detail .book-structural-cover .book-cover { max-height:430px; }
  #book-detail .book-structural-cover .book-cover img,
  #webtoon-detail .book-structural-cover .book-cover img { width:100%; max-height:430px; object-fit:contain; }
  #book-detail .book-structural-grid,
  #webtoon-detail .book-structural-grid { gap:14px 18px !important; padding:20px !important; }
}
body:not(.admin-page) .page-band {
  padding: 40px 0 34px !important;
  border-bottom: 1px solid var(--pc-line-soft) !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(225, 213, 247, 0.34), transparent 31%),
    linear-gradient(135deg, #fff 0%, #faf8ff 100%) !important;
}
body:not(.admin-page) .page-band .container {
  text-align: left !important;
}
body:not(.admin-page) .page-band h1 {
  max-width: 1050px !important;
  margin: 0 0 10px !important;
  font-size: clamp(2.25rem, 4.2vw, 3.9rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.038em !important;
}
body:not(.admin-page) .page-band p:not(.eyebrow):not(.pc-site-breadcrumb) {
  max-width: 920px !important;
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: 1rem !important;
  line-height: 1.62 !important;
}
body:not(.admin-page) .eyebrow {
  margin: 0 0 6px !important;
  color: #66529f !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.075em !important;
  text-transform: uppercase !important;
}
body:not(.admin-page) .page-band + section {
  padding-top: 28px;
}
body:not(.admin-page) .section-head {
  gap: 18px;
}
body:not(.admin-page) .section-head h2 {
  margin-top: 0;
  letter-spacing: -0.025em;
}
body:not(.admin-page) .section-head p {
  line-height: 1.55;
}
body:not(.admin-page) .footer {
  border-top: 1px solid var(--pc-line-soft);
  background: #faf9fc;
}
body:not(.admin-page) .footer-grid > div > strong {
  display: block;
  margin-bottom: 8px;
  color: #392f52;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------
   En-tête : les quatre rubriques montrent clairement
   qu'elles contiennent plusieurs pages.
   --------------------------------------------------------- */
.site-header {
  border-bottom: 1px solid #e8e2ec !important;
  background: rgba(255, 255, 255, 0.985) !important;
  box-shadow: 0 4px 18px rgba(44, 34, 63, 0.075) !important;
}
.site-header .nav-dropdown-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.pc-nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eee9f8;
  color: #604c98;
  font-size: 0.61rem;
  font-weight: 900;
  line-height: 1;
}
.pc-nav-chevron {
  display: inline-block;
  margin-left: 1px;
  color: #766b82;
  font-size: 0.78rem;
  transition: transform 0.16s ease;
}
.nav-dropdown.open > .nav-dropdown-toggle .pc-nav-chevron {
  transform: rotate(180deg);
}
.nav-dropdown.active > .nav-dropdown-toggle {
  box-shadow: inset 0 0 0 1px rgba(92, 70, 159, 0.15);
}

@media (min-width: 1221px) {
  .site-header .nav {
    min-height: 96px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
  }
  .site-header .brand-duck {
    width: 64px !important;
    height: 64px !important;
    object-fit: contain !important;
  }
  .site-header .brand-name {
    width: auto !important;
    max-width: 170px !important;
    max-height: 54px !important;
    object-fit: contain !important;
  }
  .site-header .nav-links {
    gap: 3px !important;
  }
  .site-header .nav-links > a,
  .site-header .nav-dropdown-toggle {
    min-height: 40px !important;
    padding: 9px 10px !important;
    border-radius: 11px !important;
    font-size: 0.86rem !important;
  }
  .site-header .nav-links > a:hover,
  .site-header .nav-links > a[aria-current='page'],
  .site-header .nav-dropdown-toggle:hover,
  .site-header .nav-dropdown.active > .nav-dropdown-toggle,
  .site-header .nav-dropdown.open > .nav-dropdown-toggle {
    background: #f4f0fb !important;
    color: #584493 !important;
  }

  .site-header .nav-dropdown-menu.pc-nav-mega {
    display: none;
    top: calc(100% + 10px) !important;
    left: 50% !important;
    width: min(460px, calc(100vw - 32px)) !important;
    min-width: 460px !important;
    padding: 0 !important;
    overflow: hidden;
    transform: translateX(-50%) !important;
    border: 1px solid #ddd6e5 !important;
    border-radius: 17px !important;
    background: #fff !important;
    box-shadow: 0 18px 48px rgba(40, 30, 62, 0.16) !important;
  }
  .site-header .nav-dropdown:last-of-type .nav-dropdown-menu.pc-nav-mega {
    right: 0 !important;
    left: auto !important;
    transform: none !important;
  }
  .site-header .nav-dropdown.open > .pc-nav-mega,
  .site-header .nav-dropdown:hover > .pc-nav-mega {
    display: block !important;
  }
  .pc-nav-mega-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 15px 12px;
    border-bottom: 1px solid #ebe6ef;
    background: #faf9fc;
  }
  .pc-nav-mega-head > div {
    min-width: 0;
  }
  .pc-nav-mega-head strong {
    display: block;
    margin: 0 0 2px;
    color: #342a4a;
    font-size: 0.84rem;
  }
  .pc-nav-mega-head p {
    margin: 0;
    color: var(--muted);
    font-size: 0.66rem;
    line-height: 1.4;
  }
  .pc-nav-mega-head > span {
    flex: 0 0 auto;
    padding: 4px 7px;
    border-radius: 999px;
    background: #eee9f8;
    color: #604c98;
    font-size: 0.6rem;
    font-weight: 900;
  }
  .pc-nav-mega-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 8px;
  }
  .site-header .pc-nav-mega-link {
    display: grid !important;
    grid-template-columns: 30px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 8px !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: var(--text) !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .site-header .pc-nav-mega-link:hover,
  .site-header .pc-nav-mega-link:focus-visible {
    background: #f7f4fc !important;
    color: #4f3d87 !important;
  }
  .site-header .pc-nav-mega-link[aria-current='page'] {
    background: #eee9f8 !important;
    color: #503d89 !important;
    box-shadow: inset 3px 0 0 #745fc0;
  }
  .pc-nav-item-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #f1edf7;
    font-size: 0.9rem;
  }
  .pc-nav-item-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
  }
  .pc-nav-item-copy strong {
    overflow: hidden;
    font-size: 0.72rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pc-nav-item-copy small {
    color: var(--muted);
    font-size: 0.6rem;
    line-height: 1.25;
  }
}

/* ---------------------------------------------------------
   Mobile/tablette : vrai accordéon de rubriques.
   --------------------------------------------------------- */
@media (max-width: 1220px) {
  .site-header .nav {
    min-height: 78px !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
  }
  .site-header .brand-duck {
    width: 54px !important;
    height: 54px !important;
  }
  .site-header .brand-name {
    max-width: 142px !important;
    max-height: 44px !important;
  }
  .site-header .nav-links.open {
    top: var(--pc-fixed-header-height, 78px) !important;
    padding: 10px !important;
    border: 1px solid #e3dce8 !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    background: #fff !important;
    box-shadow: 0 18px 34px rgba(39, 30, 59, 0.15) !important;
  }
  .site-header .nav-links > a {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    text-align: left !important;
  }
  .site-header .nav-dropdown {
    padding: 0 !important;
    border-top: 1px solid #f0ecf3;
  }
  .site-header .nav-dropdown:first-of-type {
    border-top: 0;
  }
  .site-header .nav-dropdown-toggle {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    text-align: left !important;
  }
  .site-header .nav-dropdown-toggle > span:first-child {
    justify-self: start;
    font-weight: 850;
  }
  .site-header .pc-nav-count {
    justify-self: end;
  }
  .site-header .nav-dropdown-menu.pc-nav-mega {
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    transform: none !important;
    border: 1px solid #e7e1eb !important;
    border-radius: 12px !important;
    background: #faf9fc !important;
    box-shadow: none !important;
  }
  .site-header .nav-dropdown:not(.open) > .pc-nav-mega {
    display: none !important;
  }
  .site-header .nav-dropdown.open > .pc-nav-mega {
    display: block !important;
  }
  .pc-nav-mega-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 11px 9px;
    border-bottom: 1px solid #ebe6ef;
  }
  .pc-nav-mega-head strong {
    display: block;
    font-size: 0.78rem;
  }
  .pc-nav-mega-head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.64rem;
    line-height: 1.35;
  }
  .pc-nav-mega-head > span {
    flex: 0 0 auto;
    padding: 3px 6px;
    border-radius: 999px;
    background: #eee9f8;
    color: #604c98;
    font-size: 0.58rem;
    font-weight: 900;
  }
  .pc-nav-mega-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 6px !important;
  }
  .site-header .pc-nav-mega-link {
    display: grid !important;
    grid-template-columns: 29px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 7px !important;
    min-height: 52px !important;
    padding: 7px 8px !important;
    border-radius: 9px !important;
    text-align: left !important;
    white-space: normal !important;
  }
  .site-header .pc-nav-mega-link:hover,
  .site-header .pc-nav-mega-link:focus-visible,
  .site-header .pc-nav-mega-link[aria-current='page'] {
    background: #f0ebf8 !important;
    color: #503d89 !important;
  }
  .pc-nav-item-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    background: #eee9f6;
    font-size: 0.86rem;
  }
  .pc-nav-item-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
  }
  .pc-nav-item-copy strong {
    font-size: 0.69rem;
    line-height: 1.2;
  }
  .pc-nav-item-copy small {
    color: var(--muted);
    font-size: 0.58rem;
    line-height: 1.2;
  }
}
@media (max-width: 560px) {
  :root {
    --pc-page-gutter: 10px;
    --pc-layout-gap: 10px;
  }
  body:not(.admin-page) .page-band {
    padding: 30px 0 26px !important;
  }
  body:not(.admin-page) .page-band h1 {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
  }
  body:not(.admin-page) .page-band p:not(.eyebrow):not(.pc-site-breadcrumb) {
    font-size: 0.92rem !important;
  }
  body:not(.admin-page) .section-head {
    align-items: flex-start !important;
    flex-direction: column !important;
  }
  .pc-nav-mega-grid {
    grid-template-columns: 1fr !important;
  }
  .pc-nav-mega-head p {
    display: none;
  }
}

/* ---------------------------------------------------------
   Médiathèque : retour à la navigation catégories sobre
   de V6.69.10a. Le bandeau reste visuellement neutre.
   --------------------------------------------------------- */
.pc-media-return-row,
.pc-media-family-nav-shell {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.pc-media-family-nav-shell > .container {
  padding-top: 5px !important;
  padding-bottom: 8px !important;
}
.pc-media-family-nav-title,
.pc-media-nav-copy,
.pc-media-nav-arrow {
  display: none !important;
}
.pc-media-family-nav {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  overflow-x: auto !important;
  padding: 0 !important;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.pc-media-family-nav::-webkit-scrollbar {
  display: none;
}
.pc-media-family-nav a {
  display: inline-flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex: 0 0 auto !important;
  min-width: 0 !important;
  min-height: 38px !important;
  padding: 7px 10px !important;
  border: 1px solid #ded7e6 !important;
  border-radius: 11px !important;
  background: #fff !important;
  color: var(--text) !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  text-decoration: none !important;
  text-align: center !important;
  white-space: nowrap !important;
  scroll-snap-align: start;
  transform: none !important;
}
.pc-media-family-nav a:hover,
.pc-media-family-nav a:focus-visible {
  border-color: #aa98d4 !important;
  background: #faf8ff !important;
  box-shadow: none !important;
  transform: none !important;
}
.pc-media-family-nav a[aria-current='page'] {
  border-color: #8c77c8 !important;
  background: #f0ebfa !important;
  color: #57438e !important;
  box-shadow: none !important;
}
.pc-media-family-nav a > span:first-child {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: 0.92rem !important;
}
.pc-media-family-nav a strong {
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
}

/* Les corrections 10b utiles sont conservées : Grille/Liste à droite. */
.pc-media-public-page .media-result-toolbar .media-view-controls {
  justify-self: end !important;
  margin-left: auto !important;
}

/* ---------------------------------------------------------
   Petites finitions de cohérence
   --------------------------------------------------------- */
body:not(.admin-page) .catalog-filters-panel,
body:not(.admin-page) .explorer-search-shell,
body:not(.admin-page) .explorer-section,
body:not(.admin-page) .my-selection-card,
body:not(.admin-page) .association-directory-card {
  border-color: #e3dde8 !important;
  box-shadow: var(--pc-shadow-soft);
}
body:not(.admin-page) .catalog-pagination {
  margin-top: 18px;
}
body:not(.admin-page) .catalog-page-btn {
  min-width: 38px;
  min-height: 38px;
}
body:not(.admin-page) .notice,
body:not(.admin-page) .empty {
  border-radius: var(--pc-radius-md);
}

/* V6.69.12 — finition demandée */

/* Menus multi-pages : une seule colonne, compacts, sans compteur ni sous-texte. */
.pc-nav-count,
.pc-nav-mega-head,
.pc-nav-item-copy small {
  display: none !important;
}
@media (min-width: 1221px) {
  .site-header .nav-dropdown-menu.pc-nav-mega {
    width: 290px !important;
    min-width: 290px !important;
    max-width: calc(100vw - 28px) !important;
  }
  .pc-nav-mega-grid {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    padding: 6px !important;
  }
  .site-header .pc-nav-mega-link {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    min-height: 40px !important;
    gap: 7px !important;
    padding: 5px 7px !important;
    border-radius: 8px !important;
  }
  .pc-nav-item-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    font-size: 0.82rem !important;
  }
  .pc-nav-item-copy strong {
    font-size: 0.7rem !important;
    line-height: 1.18 !important;
  }
}
@media (max-width: 1220px) {
  .site-header .nav-dropdown-toggle {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .pc-nav-mega-grid {
    grid-template-columns: 1fr !important;
    gap: 2px !important;
    padding: 5px !important;
  }
  .site-header .pc-nav-mega-link {
    grid-template-columns: 28px minmax(0, 1fr) !important;
    min-height: 40px !important;
    gap: 7px !important;
    padding: 5px 7px !important;
  }
  .pc-nav-item-icon {
    width: 28px !important;
    height: 28px !important;
  }
}
.pc-explorer-main-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}
.pc-explorer-main-link > span {
  font-size: 0.83rem;
}

/* Pages Association : bandeau plus affirmé et contraste renforcé. */
body.pc-association-section .page-band {
  border-bottom: 0 !important;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 255, 255, 0.12), transparent 31%),
    linear-gradient(135deg, #6b578e 0%, #52436f 100%) !important;
}
body.pc-association-section .page-band h1,
body.pc-association-section .page-band .pc-detail-band-title,
body.pc-association-section .page-band p:not(.eyebrow):not(.pc-site-breadcrumb),
body.pc-association-section .page-band .pc-site-breadcrumb,
body.pc-association-section .page-band .pc-detail-breadcrumb {
  color: #fff !important;
}
body.pc-association-section .page-band .eyebrow {
  color: #eee6ff !important;
}
body.pc-association-section .page-band .pc-site-breadcrumb a,
body.pc-association-section .page-band .pc-detail-breadcrumb a {
  color: #f4efff !important;
}
body.pc-association-section .page-band .pc-site-breadcrumb span[aria-current='page'],
body.pc-association-section .page-band .pc-detail-breadcrumb span[aria-current='page'] {
  color: #fff !important;
}

/* Explorer et Fresque : même cadre visuel que les autres pages publiques. */
.explorer-page,
.fresque-page {
  background: linear-gradient(180deg, #fff 0%, #f8f6fa 62%, #fff 100%) !important;
}
.explorer-page .explorer-band,
.fresque-page .fresque-page-band {
  margin: 0 !important;
  border-bottom: 1px solid var(--pc-line-soft) !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(225, 213, 247, 0.34), transparent 31%),
    linear-gradient(135deg, #fff 0%, #faf8ff 100%) !important;
}
.explorer-page .explorer-content,
.fresque-page .fresque-content {
  padding-top: 28px !important;
}
.explorer-page .explorer-search-shell,
.explorer-page .explorer-section,
.fresque-page .toolbar,
.fresque-page .timeline-shell,
.fresque-page .fresque-summary .stat {
  border-color: #e3dde8 !important;
  border-radius: 16px !important;
  box-shadow: var(--pc-shadow-soft) !important;
}

/* =========================================================
   V6.69.13 — palette arc-en-ciel par rubrique
   Une couleur stable par menu + fonds harmonisés.
   ========================================================= */
:root {
  --pc-rainbow-association: #d95f76;
  --pc-rainbow-association-soft: #fff4f6;
  --pc-rainbow-books: #e99a3f;
  --pc-rainbow-books-soft: #fff8ee;
  --pc-rainbow-media: #d1ad24;
  --pc-rainbow-media-soft: #fffbed;
  --pc-rainbow-community: #4f9d75;
  --pc-rainbow-community-soft: #f1faf5;
  --pc-rainbow-explorer: #587fc4;
  --pc-rainbow-explorer-soft: #f2f6fd;
}

/* Le bandeau inférieur est foncé partout, avec contraste constant. */
body:not(.admin-page) .footer {
  border-top: 0 !important;
  background: #24202d !important;
  color: #fff !important;
}
body:not(.admin-page) .footer,
body:not(.admin-page) .footer p,
body:not(.admin-page) .footer li,
body:not(.admin-page) .footer .copyright {
  color: #d9d4df !important;
}
body:not(.admin-page) .footer-grid > div > strong {
  color: #fff !important;
}
body:not(.admin-page) .footer a {
  color: #f1edf5 !important;
}
body:not(.admin-page) .footer .socials a {
  border-color: #5a5264 !important;
  background: #302a39 !important;
}
body:not(.admin-page) .footer .copyright {
  border-top-color: #4b4454 !important;
}

/* Bandeaux : même structure, une couleur de l'arc-en-ciel par menu. */
body.pc-section-association .page-band,
body.pc-association-section .page-band {
  border-bottom-color: #efc7cf !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.62), transparent 30%),
    linear-gradient(135deg, #f9dce2 0%, #f4c8d1 100%) !important;
}
body.pc-section-books .page-band {
  border-bottom-color: #f2d3aa !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.64), transparent 30%),
    linear-gradient(135deg, #ffead0 0%, #f9dcb8 100%) !important;
}
body.pc-section-media .page-band,
body.pc-section-media.pc-media-public-page .page-band {
  border-bottom-color: #eadb9c !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.68), transparent 30%),
    linear-gradient(135deg, #fff1b9 0%, #f5e49c 100%) !important;
}
body.pc-section-community .page-band {
  border-bottom-color: #b9dec9 !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.64), transparent 30%),
    linear-gradient(135deg, #d8f0e2 0%, #c4e6d2 100%) !important;
}
body.pc-section-explorer .page-band,
body.pc-section-explorer .explorer-band {
  border-bottom-color: #bfd0ed !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.66), transparent 30%),
    linear-gradient(135deg, #dce8fa 0%, #cbdcf5 100%) !important;
}

/* Liseré de rubrique : cohérent avec le bandeau. */
body.pc-section-association .page-band,
body.pc-association-section .page-band {
  border-top: 4px solid var(--pc-rainbow-association) !important;
}
body.pc-section-books .page-band {
  border-top: 4px solid var(--pc-rainbow-books) !important;
}
body.pc-section-media .page-band {
  border-top: 4px solid var(--pc-rainbow-media) !important;
}
body.pc-section-community .page-band {
  border-top: 4px solid var(--pc-rainbow-community) !important;
}
body.pc-section-explorer .page-band,
body.pc-section-explorer .explorer-band {
  border-top: 4px solid var(--pc-rainbow-explorer) !important;
}

/* Texte des bandeaux : sombre sur les pastels, lisible et uniforme. */
body.pc-section-association .page-band h1,
body.pc-association-section .page-band h1,
body.pc-association-section .page-band .pc-detail-band-title,
body.pc-section-books .page-band h1,
body.pc-section-media .page-band h1,
body.pc-section-community .page-band h1,
body.pc-section-explorer .page-band h1,
body.pc-section-explorer .explorer-band h1 {
  color: #2d2735 !important;
}
body.pc-section-association .page-band p:not(.eyebrow):not(.pc-site-breadcrumb),
body.pc-association-section .page-band p:not(.eyebrow):not(.pc-site-breadcrumb),
body.pc-section-books .page-band p:not(.eyebrow):not(.pc-site-breadcrumb),
body.pc-section-media .page-band p:not(.eyebrow):not(.pc-site-breadcrumb),
body.pc-section-community .page-band p:not(.eyebrow):not(.pc-site-breadcrumb),
body.pc-section-explorer .page-band p:not(.eyebrow):not(.pc-site-breadcrumb) {
  color: #51495a !important;
}
body.pc-section-association .page-band .eyebrow,
body.pc-association-section .page-band .eyebrow {
  color: #9f3e53 !important;
}
body.pc-section-books .page-band .eyebrow {
  color: #9a5b16 !important;
}
body.pc-section-media .page-band .eyebrow {
  color: #79620b !important;
}
body.pc-section-community .page-band .eyebrow {
  color: #2f7553 !important;
}
body.pc-section-explorer .page-band .eyebrow,
body.pc-section-explorer .explorer-band .eyebrow {
  color: #365f9e !important;
}

/* Fonds de page légèrement teintés selon la rubrique. */
body.pc-section-association:not(.admin-page),
body.pc-association-section:not(.admin-page) {
  background: linear-gradient(180deg, #fff 0%, var(--pc-rainbow-association-soft) 54%, #fff 100%) !important;
}
body.pc-section-books:not(.admin-page) {
  background: linear-gradient(180deg, #fff 0%, var(--pc-rainbow-books-soft) 54%, #fff 100%) !important;
}
body.pc-section-media:not(.admin-page) {
  background: linear-gradient(180deg, #fff 0%, var(--pc-rainbow-media-soft) 54%, #fff 100%) !important;
}
body.pc-section-community:not(.admin-page) {
  background: linear-gradient(180deg, #fff 0%, var(--pc-rainbow-community-soft) 54%, #fff 100%) !important;
}
body.pc-section-explorer:not(.admin-page) {
  background: linear-gradient(180deg, #fff 0%, var(--pc-rainbow-explorer-soft) 54%, #fff 100%) !important;
}

/* Explorer et Fresque suivent désormais exactement le cadre de leur rubrique. */
.explorer-page,
.fresque-page {
  background: transparent !important;
}
.explorer-page .explorer-band,
.fresque-page .fresque-page-band {
  margin: 0 !important;
  box-shadow: none !important;
}
body.pc-section-community.fresque-page .fresque-page-band {
  border-top: 4px solid var(--pc-rainbow-community) !important;
  border-bottom: 1px solid #b9dec9 !important;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.64), transparent 30%),
    linear-gradient(135deg, #d8f0e2 0%, #c4e6d2 100%) !important;
}

/* Tous les médias : icône de catégorie identique à celle de la fiche,
   placée au-dessus du visuel sans réintroduire le tag texte ni l'âge. */
#media-grid .media-card-category-iconbar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 58px !important;
  padding: 8px 10px !important;
  border-radius: 15px 15px 0 0 !important;
}
#media-grid .media-card-category-iconbar .media-card-category-icon {
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center !important;
}
#media-grid .media-card-category-iconbar svg {
  width: 31px !important;
  height: 31px !important;
  fill: currentColor !important;
}
#media-grid .media-card-category-iconbar.pastel-film {
  background: #fde4e4 !important;
  color: #8d3030 !important;
}
#media-grid .media-card-category-iconbar.pastel-short {
  background: #ffe9cf !important;
  color: #8b561e !important;
}
#media-grid .media-card-category-iconbar.pastel-series {
  background: #e6e1ff !important;
  color: #55419b !important;
}
#media-grid .media-card-category-iconbar.pastel-report {
  background: #dff1ea !important;
  color: #2f6f5d !important;
}
#media-grid .media-card-category-iconbar.pastel-podcast {
  background: #e1edff !important;
  color: #315f9a !important;
}
#media-grid .media-card-category-iconbar.pastel-music {
  background: #f7e1f1 !important;
  color: #883f75 !important;
}
#media-grid .media-card-category-iconbar.pastel-live {
  background: #ffe7d6 !important;
  color: #9a4d18 !important;
}
#media-grid .media-card-category-iconbar.pastel-file {
  background: #ececf2 !important;
  color: #555568 !important;
}
#media-grid .media-card-category-iconbar.pastel-default {
  background: #ececf1 !important;
  color: #555 !important;
}

#media-grid:not(.media-list-view) .media-card-category-iconbar + .media-poster-link {
  border-radius: 0 !important;
}
#media-grid.media-list-view .media-list-visual {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}
#media-grid.media-list-view .media-card-category-iconbar {
  min-height: 42px !important;
  padding: 4px !important;
  border-radius: 12px 12px 0 0 !important;
}
#media-grid.media-list-view .media-card-category-iconbar .media-card-category-icon {
  width: 30px !important;
  height: 30px !important;
}
#media-grid.media-list-view .media-card-category-iconbar svg {
  width: 24px !important;
  height: 24px !important;
}

@media (max-width: 560px) {
  #media-grid .media-card-category-iconbar {
    min-height: 50px !important;
  }
  #media-grid .media-card-category-iconbar .media-card-category-icon {
    width: 32px !important;
    height: 32px !important;
  }
  #media-grid .media-card-category-iconbar svg {
    width: 27px !important;
    height: 27px !important;
  }
}

/* Contraste du fil d'Ariane dans les nouveaux bandeaux pastel. */
body.pc-section-association .page-band .pc-site-breadcrumb,
body.pc-section-association .page-band .pc-detail-breadcrumb,
body.pc-association-section .page-band .pc-site-breadcrumb,
body.pc-association-section .page-band .pc-detail-breadcrumb,
body.pc-section-books .page-band .pc-site-breadcrumb,
body.pc-section-books .page-band .pc-detail-breadcrumb,
body.pc-section-media .page-band .pc-site-breadcrumb,
body.pc-section-media .page-band .pc-detail-breadcrumb,
body.pc-section-community .page-band .pc-site-breadcrumb,
body.pc-section-community .page-band .pc-detail-breadcrumb,
body.pc-section-explorer .page-band .pc-site-breadcrumb,
body.pc-section-explorer .page-band .pc-detail-breadcrumb {
  color: #62596b !important;
}
body.pc-section-association .page-band .pc-site-breadcrumb a,
body.pc-section-association .page-band .pc-detail-breadcrumb a,
body.pc-association-section .page-band .pc-site-breadcrumb a,
body.pc-association-section .page-band .pc-detail-breadcrumb a,
body.pc-section-books .page-band .pc-site-breadcrumb a,
body.pc-section-books .page-band .pc-detail-breadcrumb a,
body.pc-section-media .page-band .pc-site-breadcrumb a,
body.pc-section-media .page-band .pc-detail-breadcrumb a,
body.pc-section-community .page-band .pc-site-breadcrumb a,
body.pc-section-community .page-band .pc-detail-breadcrumb a,
body.pc-section-explorer .page-band .pc-site-breadcrumb a,
body.pc-section-explorer .page-band .pc-detail-breadcrumb a {
  color: #4e4558 !important;
}
body.pc-section-association .page-band [aria-current='page'],
body.pc-association-section .page-band [aria-current='page'],
body.pc-section-books .page-band [aria-current='page'],
body.pc-section-media .page-band [aria-current='page'],
body.pc-section-community .page-band [aria-current='page'],
body.pc-section-explorer .page-band [aria-current='page'] {
  color: #2d2735 !important;
}

/* V6.69.14 — navigation plus lisible */
@media (min-width: 1221px) {
  .site-header .nav-links > a,
  .site-header .nav-dropdown-toggle {
    font-size: 1rem !important;
    font-weight: 800 !important;
    padding: 10px 12px !important;
  }
  .site-header .pc-nav-mega-link {
    min-height: 44px !important;
    grid-template-columns: 31px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 7px 9px !important;
  }
  .pc-nav-item-icon {
    width: 31px !important;
    height: 31px !important;
    font-size: 0.94rem !important;
  }
  .pc-nav-item-copy strong {
    font-size: 0.86rem !important;
    line-height: 1.22 !important;
    font-weight: 820 !important;
  }
  .site-header .nav-dropdown-menu.pc-nav-mega {
    width: 320px !important;
    min-width: 320px !important;
  }
}
@media (max-width: 1220px) {
  .site-header .nav-links > a,
  .site-header .nav-dropdown-toggle {
    font-size: 0.96rem !important;
  }
  .site-header .pc-nav-mega-link {
    min-height: 44px !important;
    grid-template-columns: 31px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 7px 9px !important;
  }
  .pc-nav-item-copy strong {
    font-size: 0.84rem !important;
    line-height: 1.22 !important;
    font-weight: 820 !important;
  }
  .pc-nav-item-icon {
    width: 31px !important;
    height: 31px !important;
    font-size: 0.92rem !important;
  }
}
@media (max-width: 560px) {
  .site-header .nav-links > a,
  .site-header .nav-dropdown-toggle {
    font-size: 0.93rem !important;
  }
  .pc-nav-item-copy strong {
    font-size: 0.82rem !important;
  }
}

/* Proposer une ressource : consignes à gauche, formulaire davantage à droite. */
.contact-section-proposal .contact-grid-proposal {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.68fr) minmax(0, 1.42fr) !important;
  gap: 42px !important;
  align-items: start !important;
}
.contact-section-proposal .contact-section-intro {
  max-width: 390px;
  padding-top: 4px;
}
.contact-section-proposal .submit-resource-form {
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
}
.contact-guidance {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid #edc69f;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  color: #6f4b2d;
  line-height: 1.5;
}
.contact-guidance strong {
  display: block;
  margin-bottom: 7px;
  color: #714216;
}
.contact-guidance ul {
  margin: 0;
  padding-left: 19px;
}
.contact-guidance li + li {
  margin-top: 5px;
}
@media (max-width: 900px) {
  .contact-section-proposal .contact-grid-proposal {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }
  .contact-section-proposal .contact-section-intro {
    max-width: none;
  }
}

/* =========================================================
   V6.69.15 — identité couleur simple par grande rubrique
   Aucun dégradé : bandeau soutenu + fond de page pâle.
   ========================================================= */
:root {
  --pc-home-band: #6550a5;
  --pc-home-soft: #f1edf9;
  --pc-association-band: #3976a8;
  --pc-association-soft: #eef6fb;
  --pc-books-band: #a67b22;
  --pc-books-soft: #fbf5e5;
  --pc-media-band: #c66b2d;
  --pc-media-soft: #fff1e7;
  --pc-community-band: #b84f58;
  --pc-community-soft: #fbedef;
  --pc-lilac: #e9e0f4;
  --pc-lilac-strong: #765a9f;
}

/* On neutralise les anciens fonds décoratifs / dégradés des pages publiques. */
body:not(.admin-page),
body:not(.admin-page) main,
body:not(.admin-page) .explorer-page,
body:not(.admin-page) .fresque-page {
  background-image: none !important;
}

/* Fonds pâles uniformes : aucune variation ou dégradé dans une même rubrique. */
body.pc-section-home:not(.admin-page),
body.pc-section-home:not(.admin-page) main {
  background: var(--pc-home-soft) !important;
}
body.pc-section-association:not(.admin-page),
body.pc-section-association:not(.admin-page) main,
body.pc-association-section:not(.admin-page),
body.pc-association-section:not(.admin-page) main {
  background: var(--pc-association-soft) !important;
}
body.pc-section-books:not(.admin-page),
body.pc-section-books:not(.admin-page) main {
  background: var(--pc-books-soft) !important;
}
body.pc-section-media:not(.admin-page),
body.pc-section-media:not(.admin-page) main {
  background: var(--pc-media-soft) !important;
}
body.pc-section-community:not(.admin-page),
body.pc-section-community:not(.admin-page) main {
  background: var(--pc-community-soft) !important;
}

/* Explorer et Contact : fond lilas uni demandé. */
body.pc-section-explorer:not(.admin-page),
body.pc-section-explorer:not(.admin-page) main,
body.pc-section-contact:not(.admin-page),
body.pc-section-contact:not(.admin-page) main {
  background: var(--pc-lilac) !important;
}

/* Tous les bandeaux utilisent maintenant une couleur pleine et soutenue. */
body.pc-section-home .home-sky-band,
body.pc-section-home .page-band {
  background: var(--pc-home-band) !important;
  background-image: none !important;
  border-color: var(--pc-home-band) !important;
}
body.pc-section-association .page-band,
body.pc-association-section .page-band {
  background: var(--pc-association-band) !important;
  background-image: none !important;
  border-color: var(--pc-association-band) !important;
}
body.pc-section-books .page-band {
  background: var(--pc-books-band) !important;
  background-image: none !important;
  border-color: var(--pc-books-band) !important;
}
body.pc-section-media .page-band,
body.pc-section-media.pc-media-public-page .page-band {
  background: var(--pc-media-band) !important;
  background-image: none !important;
  border-color: var(--pc-media-band) !important;
}
body.pc-section-community .page-band,
body.pc-section-community.fresque-page .fresque-page-band {
  background: var(--pc-community-band) !important;
  background-image: none !important;
  border-color: var(--pc-community-band) !important;
}
body.pc-section-explorer .page-band,
body.pc-section-explorer .explorer-band,
body.pc-section-contact .page-band {
  background: var(--pc-lilac-strong) !important;
  background-image: none !important;
  border-color: var(--pc-lilac-strong) !important;
}

/* Lisibilité commune des bandeaux foncés. */
body.pc-section-home .home-sky-band h1,
body.pc-section-home .home-sky-band h2,
body.pc-section-home .home-sky-band p,
body.pc-section-association .page-band h1,
body.pc-section-association .page-band h2,
body.pc-section-association .page-band p,
body.pc-association-section .page-band h1,
body.pc-association-section .page-band h2,
body.pc-association-section .page-band p,
body.pc-section-books .page-band h1,
body.pc-section-books .page-band h2,
body.pc-section-books .page-band p,
body.pc-section-media .page-band h1,
body.pc-section-media .page-band h2,
body.pc-section-media .page-band p,
body.pc-section-community .page-band h1,
body.pc-section-community .page-band h2,
body.pc-section-community .page-band p,
body.pc-section-explorer .page-band h1,
body.pc-section-explorer .page-band h2,
body.pc-section-explorer .page-band p,
body.pc-section-contact .page-band h1,
body.pc-section-contact .page-band h2,
body.pc-section-contact .page-band p {
  color: #fff !important;
}
body.pc-section-association .page-band a,
body.pc-association-section .page-band a,
body.pc-section-books .page-band a,
body.pc-section-media .page-band a,
body.pc-section-community .page-band a,
body.pc-section-explorer .page-band a,
body.pc-section-contact .page-band a {
  color: #fff !important;
}

/* Les sections de contenu n'introduisent plus leurs propres grands fonds colorés. */
body.pc-section-home main > section,
body.pc-section-association main > section,
body.pc-association-section main > section,
body.pc-section-books main > section,
body.pc-section-media main > section,
body.pc-section-community main > section,
body.pc-section-explorer main > section,
body.pc-section-contact main > section {
  background-image: none !important;
}
body.pc-section-contact .contact-hub,
body.pc-section-contact .contact-section,
body.pc-section-contact .contact-section-contact,
body.pc-section-contact .contact-section-loan,
body.pc-section-contact .contact-section-proposal,
body.pc-section-explorer .explorer-content {
  background: transparent !important;
}

/* Les blocs restent blancs/pastel à l'intérieur pour conserver une bonne lecture. */
body.pc-section-contact .contact-section > .container {
  background: #f8f5fb !important;
}
body.pc-section-contact .contact-form-card {
  background: #fff !important;
}
body.pc-section-explorer .explorer-search-shell,
body.pc-section-explorer .explorer-summary article,
body.pc-section-explorer .explorer-section {
  background: #f8f5fb !important;
}

/* V6.69.16 — bandeaux foncés cohérents pour Médiathèque et Communautés */
body.pc-section-media .page-band,
body.pc-section-media.pc-media-public-page .page-band {
  background: #a94f1f !important;
  background-image: none !important;
  border-color: #a94f1f !important;
  color: #fff !important;
}
body.pc-section-community .page-band,
body.pc-section-community.fresque-page .fresque-page-band {
  background: #963f49 !important;
  background-image: none !important;
  border-color: #963f49 !important;
  color: #fff !important;
}
body.pc-section-media .page-band h1,
body.pc-section-media .page-band h2,
body.pc-section-media .page-band p,
body.pc-section-media .page-band a,
body.pc-section-media .page-band .eyebrow,
body.pc-section-media .page-band .pc-site-breadcrumb,
body.pc-section-media .page-band .pc-detail-breadcrumb,
body.pc-section-media .page-band [aria-current='page'],
body.pc-section-community .page-band h1,
body.pc-section-community .page-band h2,
body.pc-section-community .page-band p,
body.pc-section-community .page-band a,
body.pc-section-community .page-band .eyebrow,
body.pc-section-community .page-band .pc-site-breadcrumb,
body.pc-section-community .page-band .pc-detail-breadcrumb,
body.pc-section-community .page-band [aria-current='page'],
body.pc-section-community.fresque-page .fresque-page-band h1,
body.pc-section-community.fresque-page .fresque-page-band p,
body.pc-section-community.fresque-page .fresque-page-band a {
  color: #fff !important;
}

/* V6.69.17 — bandeau foncé sur toutes les rubriques publiques */
body.pc-section-home .home-sky-band,
body.pc-section-home .page-band {
  background: #57438f !important;
  background-image: none !important;
  border-color: #57438f !important;
}
body.pc-section-association .page-band,
body.pc-association-section .page-band {
  background: #2f648f !important;
  background-image: none !important;
  border-color: #2f648f !important;
}
body.pc-section-books .page-band {
  background: #80601e !important;
  background-image: none !important;
  border-color: #80601e !important;
}
body.pc-section-media .page-band,
body.pc-section-media.pc-media-public-page .page-band {
  background: #a94f1f !important;
  background-image: none !important;
  border-color: #a94f1f !important;
}
body.pc-section-community .page-band,
body.pc-section-community.fresque-page .fresque-page-band {
  background: #963f49 !important;
  background-image: none !important;
  border-color: #963f49 !important;
}
body.pc-section-explorer .page-band,
body.pc-section-explorer .explorer-band,
body.pc-section-contact .page-band {
  background: #624880 !important;
  background-image: none !important;
  border-color: #624880 !important;
}

/* Texte, liens, fil d'Ariane et surtitres toujours clairs sur tous les bandeaux. */
body.pc-section-home .home-sky-band,
body.pc-section-home .home-sky-band *,
body.pc-section-home .page-band,
body.pc-section-home .page-band *,
body.pc-section-association .page-band,
body.pc-section-association .page-band *,
body.pc-association-section .page-band,
body.pc-association-section .page-band *,
body.pc-section-books .page-band,
body.pc-section-books .page-band *,
body.pc-section-media .page-band,
body.pc-section-media .page-band *,
body.pc-section-community .page-band,
body.pc-section-community .page-band *,
body.pc-section-community.fresque-page .fresque-page-band,
body.pc-section-community.fresque-page .fresque-page-band *,
body.pc-section-explorer .page-band,
body.pc-section-explorer .page-band *,
body.pc-section-explorer .explorer-band,
body.pc-section-explorer .explorer-band *,
body.pc-section-contact .page-band,
body.pc-section-contact .page-band * {
  color: #fff !important;
}

/* Pages publiques hors grandes rubriques : même principe de bandeau foncé. */
body:not(.admin-page):not(.pc-section-home):not(.pc-section-association):not(.pc-association-section):not(
    .pc-section-books
  ):not(.pc-section-media):not(.pc-section-community):not(.pc-section-explorer):not(.pc-section-contact)
  .page-band {
  background: #51495a !important;
  background-image: none !important;
  border-color: #51495a !important;
  color: #fff !important;
}
body:not(.admin-page):not(.pc-section-home):not(.pc-section-association):not(.pc-association-section):not(
    .pc-section-books
  ):not(.pc-section-media):not(.pc-section-community):not(.pc-section-explorer):not(.pc-section-contact)
  .page-band
  * {
  color: #fff !important;
}

/* =========================================================
   V6.69.18 — bandeaux foncés + fonds de rubrique coordonnés
   ========================================================= */
:root {
  --pc-home-band-18: #57438f;
  --pc-home-soft-18: #f2eef9;

  --pc-association-band-18: #1f527d;
  --pc-association-soft-18: #eaf3fa;
  --pc-association-panel-18: #f4f8fc;

  --pc-books-band-18: #79601f;
  --pc-books-soft-18: #f8f1dc;
  --pc-books-panel-18: #fcf8ec;

  --pc-media-band-18: #9f491c;
  --pc-media-soft-18: #fcebdd;
  --pc-media-panel-18: #fff5ed;

  --pc-community-band-18: #8f3540;
  --pc-community-soft-18: #f8e7e9;
  --pc-community-panel-18: #fdf2f3;

  --pc-lilac-band-18: #5d447d;
  --pc-lilac-soft-18: #ebe2f3;
  --pc-lilac-panel-18: #f6f1fa;
}

/* Structure commune des bandeaux : même présence visuelle que l'accueil. */
body:not(.admin-page) .page-band,
body:not(.admin-page) .explorer-band,
body:not(.admin-page) .fresque-page-band {
  min-height: 190px !important;
  display: flex !important;
  align-items: center !important;
  padding: 38px 0 !important;
  background-image: none !important;
  box-shadow: none !important;
}
body:not(.admin-page) .page-band > .container,
body:not(.admin-page) .explorer-band > .container,
body:not(.admin-page) .fresque-page-band > .container {
  width: min(var(--pc-page-max, 1440px), calc(100% - (var(--pc-page-gutter, 22px) * 2))) !important;
  max-width: var(--pc-page-max, 1440px) !important;
}

/* Tous les éléments textuels des bandeaux sont blancs, sans exception. */
body:not(.admin-page) .page-band,
body:not(.admin-page) .page-band *,
body:not(.admin-page) .explorer-band,
body:not(.admin-page) .explorer-band *,
body:not(.admin-page) .fresque-page-band,
body:not(.admin-page) .fresque-page-band * {
  color: #fff !important;
}
body:not(.admin-page) .page-band a:hover,
body:not(.admin-page) .page-band a:focus-visible,
body:not(.admin-page) .explorer-band a:hover,
body:not(.admin-page) .explorer-band a:focus-visible,
body:not(.admin-page) .fresque-page-band a:hover,
body:not(.admin-page) .fresque-page-band a:focus-visible {
  color: #fff !important;
}
body:not(.admin-page) .page-band .eyebrow,
body:not(.admin-page) .explorer-band .eyebrow,
body:not(.admin-page) .fresque-page-band .eyebrow {
  color: rgba(255, 255, 255, 0.86) !important;
}

/* ACCUEIL — violet */
body.pc-section-home .home-sky-band,
body.pc-section-home .page-band {
  background: var(--pc-home-band-18) !important;
  border-color: var(--pc-home-band-18) !important;
}
body.pc-section-home,
body.pc-section-home main {
  background: var(--pc-home-soft-18) !important;
  background-image: none !important;
}

/* ASSOCIATION — bleu plus foncé + nuances de bleu dans le contenu */
body.pc-section-association .page-band,
body.pc-association-section .page-band {
  background: var(--pc-association-band-18) !important;
  border-color: var(--pc-association-band-18) !important;
}
body.pc-section-association,
body.pc-section-association main,
body.pc-association-section,
body.pc-association-section main {
  background: var(--pc-association-soft-18) !important;
  background-image: none !important;
}
body.pc-section-association main > section,
body.pc-association-section main > section {
  background: transparent !important;
  background-image: none !important;
}
body.pc-section-association main .card,
body.pc-section-association main .association-card,
body.pc-section-association main .contact-form-card,
body.pc-association-section main .card,
body.pc-association-section main .association-card,
body.pc-association-section main .contact-form-card {
  background: var(--pc-association-panel-18) !important;
  border-color: #c9ddeb !important;
}

/* LIVRES — bandeau ocre/jaune foncé, fond clair assorti */
body.pc-section-books .page-band {
  background: var(--pc-books-band-18) !important;
  border-color: var(--pc-books-band-18) !important;
}
body.pc-section-books,
body.pc-section-books main {
  background: var(--pc-books-soft-18) !important;
  background-image: none !important;
}
body.pc-section-books main > section {
  background: transparent !important;
  background-image: none !important;
}
body.pc-section-books main .card,
body.pc-section-books main .catalog-filters-panel,
body.pc-section-books main .book-card,
body.pc-section-books main .selection-card,
body.pc-section-books main .publisher-card {
  background: var(--pc-books-panel-18) !important;
  border-color: #e6d7aa !important;
}

/* MÉDIATHÈQUE — orange foncé, reste de page orange pâle */
body.pc-section-media .page-band,
body.pc-section-media.pc-media-public-page .page-band {
  background: var(--pc-media-band-18) !important;
  border-color: var(--pc-media-band-18) !important;
}
body.pc-section-media,
body.pc-section-media main {
  background: var(--pc-media-soft-18) !important;
  background-image: none !important;
}
body.pc-section-media main > section {
  background: transparent !important;
  background-image: none !important;
}
body.pc-section-media main .card,
body.pc-section-media main .catalog-filters-panel,
body.pc-section-media main .media-card,
body.pc-section-media main .media-list-card {
  background: var(--pc-media-panel-18) !important;
  border-color: #ebc5ac !important;
}

/* COMMUNAUTÉS — rouge foncé, reste de page rouge pâle */
body.pc-section-community .page-band,
body.pc-section-community.fresque-page .fresque-page-band {
  background: var(--pc-community-band-18) !important;
  border-color: var(--pc-community-band-18) !important;
}
body.pc-section-community,
body.pc-section-community main {
  background: var(--pc-community-soft-18) !important;
  background-image: none !important;
}
body.pc-section-community main > section {
  background: transparent !important;
  background-image: none !important;
}
body.pc-section-community main .card,
body.pc-section-community main .association-directory-card,
body.pc-section-community main .personality-card,
body.pc-section-community main .timeline-shell,
body.pc-section-community main .toolbar {
  background: var(--pc-community-panel-18) !important;
  border-color: #e4c0c5 !important;
}

/* EXPLORER + CONTACT — bandeau lilas foncé, fond lilas clair */
body.pc-section-explorer .page-band,
body.pc-section-explorer .explorer-band,
body.pc-section-contact .page-band {
  background: var(--pc-lilac-band-18) !important;
  border-color: var(--pc-lilac-band-18) !important;
}
body.pc-section-explorer,
body.pc-section-explorer main,
body.pc-section-contact,
body.pc-section-contact main {
  background: var(--pc-lilac-soft-18) !important;
  background-image: none !important;
}
body.pc-section-explorer main > section,
body.pc-section-contact main > section {
  background: transparent !important;
  background-image: none !important;
}
body.pc-section-explorer .explorer-search-shell,
body.pc-section-explorer .explorer-summary article,
body.pc-section-explorer .explorer-section,
body.pc-section-contact .contact-section > .container,
body.pc-section-contact .contact-form-card {
  background: var(--pc-lilac-panel-18) !important;
  border-color: #d8c8e6 !important;
}

/* Les anciens bandeaux spéciaux n'imposent plus une autre teinte. */
body.pc-section-association .association-sky-band,
body.pc-association-section .association-sky-band,
body.pc-section-community .community-associations-hero,
body.pc-section-media .pc-media-public-page .page-band {
  background-image: none !important;
}

/* Bandeau inférieur commun inchangé. */
body:not(.admin-page) .footer {
  background: #24202d !important;
  background-image: none !important;
  color: #fff !important;
}

@media (max-width: 700px) {
  body:not(.admin-page) .page-band,
  body:not(.admin-page) .explorer-band,
  body:not(.admin-page) .fresque-page-band {
    min-height: 150px !important;
    padding: 28px 0 !important;
  }
}

/* V6.69.19 — accueil : bandeau à la même hauteur que les autres pages */
body.pc-section-home .hero.home-sky-band {
  min-height: 190px !important;
  display: flex !important;
  align-items: center !important;
  padding: 38px 0 !important;
  background: var(--pc-home-band-18, #57438f) !important;
  background-image: none !important;
}
body.pc-section-home .hero.home-sky-band::before,
body.pc-section-home .hero.home-sky-band::after {
  display: none !important;
}
body.pc-section-home .hero.home-sky-band .hero-grid {
  width: min(var(--pc-page-max, 1440px), calc(100% - (var(--pc-page-gutter, 22px) * 2))) !important;
  max-width: var(--pc-page-max, 1440px) !important;
  margin: 0 auto !important;
}
body.pc-section-home .hero.home-sky-band h1,
body.pc-section-home .hero.home-sky-band p {
  color: #fff !important;
}
@media (max-width: 700px) {
  body.pc-section-home .hero.home-sky-band {
    min-height: 150px !important;
    padding: 28px 0 !important;
  }
}

/* =========================================================
   V6.69.20 — stabilité des bandeaux + Contact harmonisé
   Les classes de rubrique sont maintenant présentes dans le HTML :
   ces règles s'appliquent dès le premier rendu, sans flash de couleur.
   ========================================================= */

/* Tous les contenus des bandeaux restent blancs dès le premier affichage. */
body:not(.admin-page) .page-band,
body:not(.admin-page) .page-band *,
body:not(.admin-page) .hero.home-sky-band,
body:not(.admin-page) .hero.home-sky-band *,
body:not(.admin-page) .explorer-band,
body:not(.admin-page) .explorer-band *,
body:not(.admin-page) .fresque-page-band,
body:not(.admin-page) .fresque-page-band * {
  color: #fff !important;
}
body:not(.admin-page) .page-band a,
body:not(.admin-page) .page-band a:visited,
body:not(.admin-page) .page-band .pc-site-breadcrumb,
body:not(.admin-page) .page-band .pc-site-breadcrumb *,
body:not(.admin-page) .page-band .pc-detail-breadcrumb,
body:not(.admin-page) .page-band .pc-detail-breadcrumb *,
body:not(.admin-page) .page-band [aria-current='page'],
body:not(.admin-page) .explorer-band a,
body:not(.admin-page) .fresque-page-band a {
  color: #fff !important;
}
body:not(.admin-page) .page-band .pc-site-breadcrumb svg,
body:not(.admin-page) .page-band .pc-detail-breadcrumb svg {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Accueil : deux lignes réellement stables, y compris sur grand écran. */
body.pc-section-home .home-hero-title span,
body.pc-section-home .home-hero-intro span {
  display: block !important;
}
body.pc-section-home .home-hero-title {
  max-width: 1050px !important;
  margin: 0 0 14px !important;
}
body.pc-section-home .home-hero-intro {
  max-width: 1050px !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}
body.pc-section-home .hero.home-sky-band {
  min-height: 190px !important;
  padding: 38px 0 !important;
}

/* Contact : une seule famille lilas pour navigation, formulaires et actions. */
body.pc-section-contact {
  --pc-contact-deep: #5d447d;
  --pc-contact-mid: #765c96;
  --pc-contact-soft: #ebe2f3;
  --pc-contact-panel: #f6f1fa;
  --pc-contact-line: #d4c4e2;
}
body.pc-section-contact .contact-hub,
body.pc-section-contact .contact-form-section,
body.pc-section-contact .contact-section-contact,
body.pc-section-contact .contact-section-loan,
body.pc-section-contact .contact-section-proposal,
body.pc-section-contact .contact-section-submit {
  background: transparent !important;
  background-image: none !important;
}
body.pc-section-contact .contact-choice {
  gap: 12px !important;
}
body.pc-section-contact .contact-choice-btn,
body.pc-section-contact .contact-choice-contact,
body.pc-section-contact .contact-choice-loan,
body.pc-section-contact .contact-choice-proposal,
body.pc-section-contact .contact-choice-submit {
  background: var(--pc-contact-panel) !important;
  border-color: var(--pc-contact-line) !important;
  color: var(--pc-contact-deep) !important;
  box-shadow: 0 7px 20px rgba(72, 49, 99, 0.07) !important;
}
body.pc-section-contact .contact-choice-btn svg {
  fill: currentColor !important;
}
body.pc-section-contact .contact-choice-btn:hover,
body.pc-section-contact .contact-choice-btn:focus-visible,
body.pc-section-contact .contact-choice-btn[aria-current='true'] {
  background: #e1d4ec !important;
  border-color: #b9a1cf !important;
  color: #493363 !important;
  box-shadow: 0 10px 26px rgba(72, 49, 99, 0.13) !important;
}
body.pc-section-contact .contact-section > .container,
body.pc-section-contact .contact-section-contact > .container,
body.pc-section-contact .contact-section-loan > .container,
body.pc-section-contact .contact-section-proposal > .container {
  background: var(--pc-contact-panel) !important;
  border: 1px solid var(--pc-contact-line) !important;
}
body.pc-section-contact .contact-section-heading h2,
body.pc-section-contact .contact-section-contact h2,
body.pc-section-contact .contact-section-loan h2,
body.pc-section-contact .contact-section-proposal h2,
body.pc-section-contact .loan-selection-heading h3,
body.pc-section-contact .contact-guidance strong {
  color: var(--pc-contact-deep) !important;
}
body.pc-section-contact .contact-section-icon {
  background: #e5d9ef !important;
  color: var(--pc-contact-deep) !important;
}
body.pc-section-contact .contact-section-icon svg {
  fill: currentColor !important;
}
body.pc-section-contact .contact-form-card {
  background: #fff !important;
  border-color: var(--pc-contact-line) !important;
  box-shadow: 0 12px 34px rgba(72, 49, 99, 0.08) !important;
}
body.pc-section-contact .contact-guidance,
body.pc-section-contact .loan-transfer-note,
body.pc-section-contact .loan-selection-summary {
  background: #eee6f5 !important;
  border-color: #d5c6e2 !important;
  color: #534360 !important;
}
body.pc-section-contact .contact-form-card input:focus,
body.pc-section-contact .contact-form-card select:focus,
body.pc-section-contact .contact-form-card textarea:focus {
  border-color: #8a70a8 !important;
  box-shadow: 0 0 0 3px rgba(93, 68, 125, 0.13) !important;
}
body.pc-section-contact .contact-form-card button[type='submit'],
body.pc-section-contact .contact-form-card .btn-purple,
body.pc-section-contact .contact-form-card .btn-proposal {
  background: var(--pc-contact-deep) !important;
  border-color: var(--pc-contact-deep) !important;
  color: #fff !important;
  font-weight: 900 !important;
}
body.pc-section-contact .contact-form-card button[type='submit']:hover,
body.pc-section-contact .contact-form-card button[type='submit']:focus-visible,
body.pc-section-contact .contact-form-card .btn-purple:hover,
body.pc-section-contact .contact-form-card .btn-proposal:hover {
  background: #493363 !important;
  border-color: #493363 !important;
  color: #fff !important;
}
body.pc-section-contact .contact-section:target > .container {
  box-shadow:
    0 0 0 4px rgba(93, 68, 125, 0.12),
    0 18px 45px rgba(72, 49, 99, 0.11) !important;
}

/* Les couleurs des bandeaux ne dépendent plus d'une classe ajoutée tardivement. */
body.pc-section-home .home-sky-band {
  background: #57438f !important;
  background-image: none !important;
}
body.pc-section-association .page-band,
body.pc-association-section .page-band {
  background: #1f527d !important;
  background-image: none !important;
}
body.pc-section-books .page-band {
  background: #79601f !important;
  background-image: none !important;
}
body.pc-section-media .page-band {
  background: #9f491c !important;
  background-image: none !important;
}
body.pc-section-community .page-band,
body.pc-section-community .fresque-page-band {
  background: #8f3540 !important;
  background-image: none !important;
}
body.pc-section-explorer .page-band,
body.pc-section-explorer .explorer-band,
body.pc-section-contact .page-band {
  background: #5d447d !important;
  background-image: none !important;
}

@media (max-width: 700px) {
  body.pc-section-home .home-hero-title span,
  body.pc-section-home .home-hero-intro span {
    display: block !important;
  }
}
/* Rubriques publiques — les titres restent seuls, sans sous-titre descriptif. */
body:not(.admin-page):not(.admin-body) .section-head h2 + p,
body:not(.admin-page):not(.admin-body) .supporters-head h2 + p {
  display: none !important;
}

/* Bandeaux publics — suppression du petit intitulé autour du titre principal. */
body:not(.admin-page):not(.admin-body) .page-band .eyebrow,
body:not(.admin-page):not(.admin-body) .hero .eyebrow,
body:not(.admin-page):not(.admin-body) .page-header .eyebrow,
body:not(.admin-page):not(.admin-body) .title-band .eyebrow {
  display: none !important;
}

/* ============================================================
   Typographie publique commune — référence : page d'accueil
   ============================================================ */
body:not(.admin-page):not(.admin-body) {
  --pc-public-display-font: var(--font-voice, Georgia, 'Times New Roman', serif);
  --pc-public-text-font: Nunito, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --pc-public-page-title: clamp(2.8rem, 3.85vw, 4rem);
  --pc-public-section-title: clamp(1.5rem, 2vw, 2rem);
  --pc-public-panel-title: clamp(1.3rem, 1.7vw, 1.55rem);
  --pc-public-card-title: 1.125rem;
  --pc-public-body: 1rem;
  --pc-public-small: 0.875rem;
  font-family: var(--pc-public-text-font) !important;
  font-size: var(--pc-public-body);
  line-height: 1.6;
}

body:not(.admin-page):not(.admin-body) button,
body:not(.admin-page):not(.admin-body) input,
body:not(.admin-page):not(.admin-body) select,
body:not(.admin-page):not(.admin-body) textarea {
  font-family: var(--pc-public-text-font) !important;
}

body:not(.admin-page):not(.admin-body) .page-band h1,
body:not(.admin-page):not(.admin-body) .hero h1,
body:not(.admin-page):not(.admin-body) .page-header h1,
body:not(.admin-page):not(.admin-body) .title-band h1,
body:not(.admin-page):not(.admin-body) main > header h1 {
  font-family: var(--pc-public-display-font) !important;
  font-size: var(--pc-public-page-title) !important;
  font-weight: 700 !important;
  letter-spacing: -0.045em !important;
  line-height: 1.02 !important;
}

body:not(.admin-page):not(.admin-body) .section-head h2,
body:not(.admin-page):not(.admin-body) .supporters-head h2,
body:not(.admin-page):not(.admin-body) .section-title,
body:not(.admin-page):not(.admin-body) .contact-section-title {
  font-family: var(--pc-public-display-font) !important;
  font-size: var(--pc-public-section-title) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}

body:not(.admin-page):not(.admin-body) main h2:not(.section-title) {
  font-family: var(--pc-public-text-font);
  font-size: var(--pc-public-panel-title);
  line-height: 1.25;
}

body:not(.admin-page):not(.admin-body) main .section-head h2,
body:not(.admin-page):not(.admin-body) main .supporters-head h2 {
  font-family: var(--pc-public-display-font) !important;
  font-size: var(--pc-public-section-title) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
}

body:not(.admin-page):not(.admin-body) main h3,
body:not(.admin-page):not(.admin-body) .card-title {
  font-family: var(--pc-public-text-font) !important;
  font-size: var(--pc-public-card-title) !important;
  line-height: 1.3 !important;
}

body:not(.admin-page):not(.admin-body) main p,
body:not(.admin-page):not(.admin-body) main li,
body:not(.admin-page):not(.admin-body) main dd {
  font-family: var(--pc-public-text-font);
}

body:not(.admin-page):not(.admin-body) main small,
body:not(.admin-page):not(.admin-body) main .meta,
body:not(.admin-page):not(.admin-body) main .eyebrow,
body:not(.admin-page):not(.admin-body) main .tag,
body:not(.admin-page):not(.admin-body) main .badge {
  font-family: var(--pc-public-text-font) !important;
  font-size: var(--pc-public-small);
}

body:not(.admin-page):not(.admin-body) .btn {
  font-family: var(--pc-public-text-font) !important;
  font-size: 0.95rem !important;
  line-height: 1.2 !important;
}

@media (max-width: 640px) {
  body:not(.admin-page):not(.admin-body) {
    --pc-public-page-title: clamp(2.35rem, 11vw, 3.2rem);
    --pc-public-section-title: clamp(1.5rem, 6vw, 2rem);
    --pc-public-panel-title: 1.3rem;
    --pc-public-card-title: 1.0625rem;
  }
}

.lexicon-content-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.lexicon-filter-tag {
  border: 1px solid #d8d0ee;
  background: #f3efff;
  color: #51439b;
  cursor: pointer;
  font: inherit;
}
.lexicon-filter-tag:hover,
.lexicon-filter-tag:focus-visible {
  border-color: #6652b8;
  background: #6652b8;
  color: #fff;
}
.detail-lexicon-tags { margin-top: 14px; }
.detail-lexicon-tags > h3 { margin: 0 0 9px; font-size: .9rem; }
.detail-lexicon-tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-lexicon-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 4px 11px 4px 5px; border: 1px solid #d8d0e5; border-radius: 999px; background: #fff; color: #443466; font-size: .78rem; font-weight: 800; text-decoration: none; transition: border-color .16s, background .16s, transform .16s; }
.detail-lexicon-tag:hover { border-color: #7058be; background: #f3efff; transform: translateY(-1px); }
.detail-lexicon-flag { display: grid; place-items: center; width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: #eee9f7; }
.detail-lexicon-flag img { width: 100%; height: 100%; object-fit: cover; }
.detail-lexicon-flag.is-placeholder::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #8a75ca; }
@media (prefers-reduced-motion: reduce) { .detail-lexicon-tag { transition: none; } .detail-lexicon-tag:hover { transform: none; } }

.personality-name-pronouns {
  color: #71677d;
  font-family: Nunito, system-ui, sans-serif;
  font-size: .58em;
  font-weight: 650;
  letter-spacing: 0;
  white-space: normal;
}

.pc-share-dialog,
.pc-qr-dialog { width: min(92vw, 520px); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 24px 80px rgba(31, 23, 48, .28); }
.pc-share-dialog::backdrop,
.pc-qr-dialog::backdrop { background: rgba(29, 22, 42, .55); }
.pc-share-inner,
.pc-qr-inner { padding: 22px; }
.pc-share-close,
.pc-qr-close { float: right; }
.pc-share-inner h2,
.pc-qr-inner h2 { margin: 3px 70px 8px 0; }
.pc-share-inner > label { display: block; margin: 18px 0 6px; font-size: .78rem; font-weight: 800; }
.pc-share-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.pc-share-copy-row input { min-width: 0; padding: 10px 11px; border: 1px solid #d9d2e3; border-radius: 11px; font: inherit; }
.pc-share-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pc-share-options a { text-decoration: none; }
.pc-share-status,
.pc-qr-status { min-height: 1.4em; margin: 10px 0 0; color: #6652b8; font-size: .78rem; font-weight: 750; }
.pc-qr-image-wrap { display: grid; place-items: center; min-height: 276px; margin: 14px 0 8px; border: 1px solid #e4deea; border-radius: 14px; background: #faf9fc; color: #716979; }
.pc-qr-image-wrap img { max-width: 260px; margin: 0; }
.pc-qr-help { margin: 8px 0 12px; text-align: center; }

.content-reactions { width: 100%; margin-top: 18px; padding: 15px; border: 1px solid #e1dbe9; border-radius: 17px; background: #faf9fc; }
.content-reactions-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.content-reactions-heading strong { color: #352b43; font-size: .92rem; }
.content-reactions-heading span { color: #7a7182; font-size: .68rem; }
.content-reaction-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.content-reaction { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-height: 46px; padding: 7px 9px; border: 1px solid #dcd6e2; border-radius: 13px; background: #fff; color: #746c7c; font: inherit; cursor: pointer; transition: border-color .16s, background .16s, color .16s, transform .16s; }
.content-reaction[data-tooltip] { position: relative; overflow: visible; }
.content-reaction[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 40; left: 50%; bottom: calc(100% + 8px); padding: 6px 9px; border-radius: 8px; background: #30263d; color: #fff; font-size: .68rem; font-weight: 750; line-height: 1; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .14s, transform .14s; }
.content-reaction[data-tooltip]::before { content: ''; position: absolute; z-index: 39; left: 50%; bottom: calc(100% + 3px); border: 5px solid transparent; border-top-color: #30263d; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .14s; }
.content-reaction[data-tooltip]:hover::after, .content-reaction[data-tooltip]:focus-visible::after, .content-reaction[data-tooltip]:hover::before, .content-reaction[data-tooltip]:focus-visible::before { opacity: 1; }
.content-reaction[data-tooltip]:hover::after, .content-reaction[data-tooltip]:focus-visible::after { transform: translate(-50%, 0); }
.content-reaction:hover { transform: translateY(-1px); border-color: #b9add0; }
.content-reaction svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.content-reaction > span { min-width: 0; font-size: .72rem; font-weight: 800; text-align: left; }
.content-reaction > b { display: grid; place-items: center; min-width: 24px; min-height: 24px; padding: 2px 5px; border-radius: 999px; background: #f0edf3; color: #655d6c; font-size: .68rem; }
.content-reaction-consumed.is-active { border-color: #82c9bc; background: #eaf8f4; color: #237d6d; }
.content-reaction-wishlist.is-active { border-color: #a999e3; background: #f0edff; color: #5944b4; }
.content-reaction-liked.is-active { border-color: #efa0b9; background: #fff0f5; color: #c13d69; }
.content-reaction.is-active svg { fill: currentColor; stroke: currentColor; }
.content-reaction-consumed.is-active svg path { stroke: #fff; fill: none; stroke-width: 2.2; }
.content-reaction.is-active > b { background: rgba(255,255,255,.78); color: inherit; }
.content-reaction:focus-visible { outline: 3px solid rgba(102,82,184,.24); outline-offset: 2px; }
.content-reaction:disabled { opacity: .58; cursor: wait; transform: none; }
.content-reaction-status { min-height: 1.25em; margin: 8px 0 0; color: #716979; font-size: .7rem; }
@media (max-width: 620px) {
  .content-reaction-buttons { grid-template-columns: 1fr; }
  .content-reaction { grid-template-columns: 30px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) { .content-reaction { transition: none; } .content-reaction:hover { transform: none; } }

.book-card-reaction-leader { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 54px; min-height: 30px; padding: 3px 6px !important; border-radius: 999px !important; line-height: 1; }
.book-card-reaction-leader:empty { display: none; }
.book-card-reaction-leader b { display: grid; place-items: center; min-width: 20px; min-height: 20px; padding: 2px 5px; border-radius: 999px; background: rgba(240,237,243,.92); color: inherit; font-size: .68rem; }
.book-card-reaction-leader svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.book-card-reaction-leader.is-liked svg { fill: currentColor; }
.book-card-reaction-leader.is-consumed { border-color: #a8dacf !important; background: #eaf8f4 !important; color: #237d6d !important; }
.book-card-reaction-leader.is-wishlist { border-color: #c8bdec !important; background: #f0edff !important; color: #5944b4 !important; }
.book-card-reaction-leader.is-liked { border-color: #f1b5c8 !important; background: #fff0f5 !important; color: #c13d69 !important; }
.book-card-reaction-leader.is-consumed b { background: #cfece5 !important; color: #1d6f61 !important; }
.book-card-reaction-leader.is-wishlist b { background: #ded7f6 !important; color: #503ca2 !important; }
.book-card-reaction-leader.is-liked b { background: #f8d7e2 !important; color: #a93259 !important; }
