/* Bibliothèque advarP : filtres compacts, isolés des styles éditoriaux globaux.
   Les cartes et la composition générale restent gérées par site.css. */
.bibliotheque-full-color .bookshop-controls,
.bibliotheque-full-color .bookshop-controls *{box-sizing:border-box}
.bibliotheque-full-color .bookshop-controls{width:100%;min-width:0;margin:.5rem 0 1.15rem;font-family:Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-search{margin:0 0 .65rem}
.bibliotheque-full-color .bookshop-search>label{display:block;margin:0 0 .4rem;color:var(--ink);font:700 .82rem/1.4 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-search-row{display:flex;gap:.45rem;align-items:stretch;min-width:0}
.bibliotheque-full-color .bookshop-search-row input[type="search"]{flex:1;min-width:0;width:100%;height:46px;min-height:46px;margin:0;padding:.65rem .8rem;border:1px solid var(--line);border-radius:5px;background:var(--sheet);color:var(--ink);font:400 .9rem/1.35 Arial,Helvetica,sans-serif;box-shadow:none}
.bibliotheque-full-color .bookshop-search-row button{flex:none;min-width:46px;min-height:46px;margin:0;padding:.5rem .75rem;border:0;border-radius:5px;background:var(--ink);color:#fff;font:700 .78rem/1.3 Arial,Helvetica,sans-serif;cursor:pointer}
.bibliotheque-full-color .bookshop-search-row button{display:grid;place-items:center;width:46px;padding:0}
.bibliotheque-full-color .bookshop-search-row button svg{display:block;width:20px;height:20px}
.bibliotheque-full-color .bookshop-search-row button:hover{background:var(--red)}
.bibliotheque-full-color .bookshop-filter-panel{min-width:0;margin:0;padding:0;background:var(--sheet);border:1px solid var(--line);border-radius:6px;box-shadow:0 1px 2px #00000009;color:var(--ink);font:400 .82rem/1.45 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-filter-panel>summary{display:flex;align-items:center;gap:.5rem;min-height:48px;margin:0;padding:.74rem .9rem;list-style:none;cursor:pointer;font:700 .88rem/1.35 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-filter-panel>summary::-webkit-details-marker,
.bibliotheque-full-color .bookshop-filter-more>summary::-webkit-details-marker{display:none}
.bibliotheque-full-color .bookshop-filter-panel>summary::marker,
.bibliotheque-full-color .bookshop-filter-more>summary::marker{content:"";font-size:0}
.bibliotheque-full-color .bookshop-filter-panel>summary:hover{background:rgba(148,54,41,.035)}
.bibliotheque-full-color .bookshop-filter-summary-title{display:inline-flex;align-items:center;gap:.35rem;font:800 .88rem/1.3 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-filter-summary-title:before{content:"";display:block;width:.95rem;height:.75rem;flex:none;background:linear-gradient(var(--red),var(--red)) left 0 top 0/100% 2px no-repeat,linear-gradient(var(--red),var(--red)) left 0 top 50%/73% 2px no-repeat,linear-gradient(var(--red),var(--red)) left 0 bottom 0/45% 2px no-repeat}
.bibliotheque-full-color .bookshop-filter-summary-detail{margin-left:auto;min-width:0;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;color:var(--muted);font:600 .72rem/1.3 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-filter-chevron{flex:none;display:inline-block;color:var(--red);font:700 1rem/1 Arial,Helvetica,sans-serif;transition:transform .2s ease}
.bibliotheque-full-color .bookshop-filter-panel[open]>.bookshop-filter-body{display:block}
.bibliotheque-full-color .bookshop-filter-panel[open] .bookshop-filter-chevron{transform:rotate(180deg)}
.bibliotheque-full-color .bookshop-filter-body{min-width:0;padding:.85rem .95rem .7rem;border-top:1px solid var(--line)}
.bibliotheque-full-color .bookshop-filter-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.15rem;align-items:start;min-width:0}
.bibliotheque-full-color .bookshop-filter-group{display:block;min-width:0;margin:0;padding:0;border:0;font:400 .8rem/1.35 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-filter-head{display:flex;align-items:center;flex-wrap:wrap;gap:.5rem .6rem;margin:0 0 .6rem}
.bibliotheque-full-color .bookshop-filter-head h3{flex:1 1 auto;min-width:0;margin:0;padding:0;color:var(--ink);font:800 .85rem/1.35 Arial,Helvetica,sans-serif;letter-spacing:0}
.bibliotheque-full-color .bookshop-filter-bulk{display:flex;flex-wrap:wrap;align-items:center;gap:.2rem;margin:0;padding:0}
.bibliotheque-full-color .bookshop-filter-bulk-btn{appearance:none;display:inline-flex;align-items:center;justify-content:center;min-height:36px;max-width:100%;margin:0;padding:.25rem .42rem;border:0;border-radius:4px;background:transparent;color:var(--red);text-align:center;text-decoration:underline;text-underline-offset:2px;font:700 .69rem/1.2 Arial,Helvetica,sans-serif;cursor:pointer}
.bibliotheque-full-color .bookshop-filter-bulk-btn:hover:not(:disabled){background:rgba(156,37,34,.065)}
.bibliotheque-full-color .bookshop-filter-bulk-btn:disabled{opacity:.38;filter:grayscale(1);text-decoration:none;cursor:not-allowed;color:var(--muted)}
.bibliotheque-full-color .bookshop-filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;min-width:0}
.bibliotheque-full-color .bookshop-filter-choice{display:flex;align-items:center;gap:.46rem;min-width:0;min-height:45px;margin:0;padding:.48rem .54rem;border:1px solid var(--line);border-radius:5px;background:transparent;color:var(--ink);font:600 .75rem/1.3 Arial,Helvetica,sans-serif;cursor:pointer;overflow:hidden}
.bibliotheque-full-color .bookshop-filter-choice:hover{border-color:var(--red)}
.bibliotheque-full-color .bookshop-filter-choice:has(input:checked){background:rgba(156,37,34,.07);border-color:var(--red)}
.bibliotheque-full-color .bookshop-filter-choice input[type="checkbox"]{appearance:auto;display:block;flex:0 0 17px;width:17px;height:17px;min-width:17px;min-height:17px;margin:0;padding:0;accent-color:var(--red);cursor:pointer}
.bibliotheque-full-color .bookshop-filter-choice span{display:block;flex:1 1 auto;min-width:0;margin:0;font:inherit;overflow-wrap:anywhere}
.bibliotheque-full-color .bookshop-filter-choice small{display:block;flex:none;min-width:1rem;margin:0;color:var(--muted);font:700 .69rem/1.2 Arial,Helvetica,sans-serif;text-align:right;font-variant-numeric:tabular-nums}
.bibliotheque-full-color .bookshop-filter-more{margin:.8rem 0 0;padding:.05rem 0 0;border:0;border-top:1px solid var(--line)}
.bibliotheque-full-color .bookshop-filter-more>summary{display:flex;align-items:center;gap:.35rem;min-height:44px;margin:0;padding:.35rem 0;list-style:none;color:var(--ink);font:700 .8rem/1.3 Arial,Helvetica,sans-serif;cursor:pointer}
.bibliotheque-full-color .bookshop-filter-more>summary:before{content:"+";flex:none;display:grid;place-items:center;width:21px;height:21px;border:1px solid var(--line);border-radius:50%;color:var(--red);font:700 1rem/1 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-filter-more[open]>summary:before{content:"−"}
.bibliotheque-full-color .bookshop-filter-more-hint{margin-left:auto;color:var(--muted);font:400 .7rem/1.2 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-filter-topics{padding:.2rem 0 .35rem}
.bibliotheque-full-color .bookshop-filter-options-topics{grid-template-columns:repeat(4,minmax(0,1fr))}
.bibliotheque-full-color .bookshop-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:.4rem .75rem;flex-wrap:wrap;margin:.75rem 0 0;padding:.7rem 0 0;border-top:1px solid var(--line)}
.bibliotheque-full-color .bookshop-filter-actions a{margin:0;padding:.3rem 0;min-height:35px;display:inline-flex;align-items:center;color:var(--red);font:700 .75rem/1.3 Arial,Helvetica,sans-serif;text-decoration:underline;text-underline-offset:3px}
.bibliotheque-full-color .bookshop-filter-actions p{margin:0;color:var(--muted);font:400 .7rem/1.3 Arial,Helvetica,sans-serif}
.bibliotheque-full-color .bookshop-filter-panel :focus-visible,
.bibliotheque-full-color .bookshop-search :focus-visible{outline:2px solid var(--red);outline-offset:2px}
@media(max-width:760px){
  .bibliotheque-full-color .bookshop-filter-columns{grid-template-columns:minmax(0,1fr);gap:1rem}
  .bibliotheque-full-color .bookshop-filter-body{padding:.65rem .72rem .6rem}
  .bibliotheque-full-color .bookshop-filter-summary-detail{max-width:56%}
  .bibliotheque-full-color .bookshop-filter-options-topics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .bibliotheque-full-color .bookshop-filter-head h3{font-size:.82rem}
  .bibliotheque-full-color .bookshop-filter-choice{font-size:.76rem}
}
@media(max-width:340px){
  .bibliotheque-full-color .bookshop-filter-options{grid-template-columns:minmax(0,1fr)}
  .bibliotheque-full-color .bookshop-filter-head{display:block}
  .bibliotheque-full-color .bookshop-filter-head h3{margin-bottom:.35rem}
}

/* 2026-11-08 — parcours de découverte : uniquement les couvertures au premier niveau.
   Le CSS est ajouté après site.css pour neutraliser les anciens styles de cartes. */
body.bibliotheque-full-color .bookshop-intro{padding-bottom:1rem}
body.bibliotheque-full-color details.bookshop-affiliate{
  display:block;min-width:0;margin:.8rem 0 1.3rem;padding:0;border:1px solid var(--line);
  border-left:3px solid var(--red);border-radius:5px;background:var(--sheet)
}
body.bibliotheque-full-color .bookshop-affiliate-summary{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;cursor:pointer;
  min-height:46px;padding:.7rem .9rem;list-style:none;color:var(--ink);
  font:600 .78rem/1.4 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-affiliate-summary::-webkit-details-marker{display:none}
body.bibliotheque-full-color .bookshop-affiliate-summary::marker{content:'';font-size:0}
body.bibliotheque-full-color .bookshop-affiliate-summary strong{font-weight:800}
body.bibliotheque-full-color .bookshop-affiliate-summary span{font-size:.71rem;color:var(--red);text-align:right}
body.bibliotheque-full-color .bookshop-affiliate-details{padding:1rem;border-top:1px solid var(--line)}
body.bibliotheque-full-color .bookshop-affiliate-details h2{font-size:1.05rem}
body.bibliotheque-full-color .bookshop-affiliate-details p{margin:.5rem 0;font-size:.81rem}
body.bibliotheque-full-color .bookshop-section .bookshop-view-controls[hidden]{display:none!important}
body.bibliotheque-full-color .bookshop-section .bookshop-view-controls{
  display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:.35rem;
  margin:-.3rem 0 .85rem;color:var(--muted);font:700 .76rem/1.3 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-view-controls>span{margin-right:.4rem}
body.bibliotheque-full-color .bookshop-view-controls button{
  border:1px solid var(--line);border-radius:4px;padding:.46rem .7rem;min-height:43px;
  background:transparent;color:var(--ink);cursor:pointer;font:700 .74rem/1.25 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-view-controls button[aria-pressed="true"]{
  background:var(--ink);border-color:var(--ink);color:var(--sheet)
}
body.bibliotheque-full-color .bookshop-view-controls button:not([aria-pressed="true"]):hover{
  border-color:var(--red);color:var(--red)
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-grid{min-width:0;gap:1rem}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-author-group[hidden]{display:none!important}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-author-heading{
  margin:0;color:var(--ink);font:800 .96rem/1.35 Arial,Helvetica,sans-serif;
  overflow-wrap:anywhere
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-author-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(122px,145px));gap:1rem;
  align-items:start;min-width:0
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card{
  position:relative;display:block;min-width:0;width:100%;height:auto;align-self:start;
  margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card[hidden]{display:none!important}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card-media{
  display:flex;flex-direction:column;align-items:stretch;gap:.3rem;min-width:0;
  margin:0;padding:0;background:transparent
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card-open{
  display:block;position:relative;min-width:0;min-height:80px;text-decoration:none;
  border:2px solid transparent;border-radius:4px;cursor:pointer
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card-open:hover{
  border-color:var(--red);transform:translateY(-2px)
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card-open:focus-visible{
  outline:3px solid var(--red);outline-offset:3px
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-cover{
  display:grid;place-items:center;width:100%;height:auto;aspect-ratio:2/3;margin:0;
  overflow:hidden;border-radius:2px;background:#e6daca;box-shadow:0 3px 12px #24181024
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-cover img{
  display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;
  filter:none
}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card-open img[hidden]{display:none!important}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card-topic{display:none}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-card>.bookshop-card-body{display:none!important}
body.bibliotheque-full-color .bookshop-enhanced .bookshop-cover-caption{
  display:block;padding:.1rem .15rem 0;color:var(--ink);font:700 .72rem/1.3 Arial,Helvetica,sans-serif;
  overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-grid{display:block}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-group{
  display:grid;grid-template-columns:minmax(150px,24%) minmax(0,1fr);align-items:start;
  gap:1rem;padding:.9rem 0;border-bottom:1px solid var(--line)
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-heading{
  position:sticky;top:1rem;padding:.2rem 0
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-grid{
  grid-template-columns:repeat(auto-fill,minmax(115px,145px));gap:.9rem
}
/* Une seule grille, enfants directs : évite les colonnes vides des details imbriqués. */
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  grid-auto-flow:row;
  align-items:start;
  align-content:start;
  gap:.7rem .6rem;
}
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-grid > .bookshop-card{
  display:block;
  min-width:0;
  width:100%;
  height:auto;
  grid-column:auto;
  grid-row:auto;
  align-self:start;
}

body.bibliotheque-full-color .bookshop-view-gallery .bookshop-cover-caption{font-size:.7rem}

/* Fiche modale : unique, lisible et fermable au clavier ou au toucher. */
body.bibliotheque-full-color .bookshop-detail-dialog{
  box-sizing:border-box;position:fixed;width:min(760px,calc(100vw - 24px));max-width:760px;
  max-height:calc(100dvh - 24px);margin:auto;padding:0;border:1px solid var(--line);
  border-radius:8px;background:var(--sheet);color:var(--ink);
  box-shadow:0 20px 90px #0007;overflow:hidden;font-family:Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-detail-dialog::backdrop{background:rgba(16,14,12,.74)}
body.bibliotheque-full-color .bookshop-detail-dialog:not([open]){display:none}
body.bibliotheque-full-color .bookshop-detail-shell{
  display:flex;flex-direction:column;max-height:calc(100dvh - 24px);min-height:0
}
body.bibliotheque-full-color .bookshop-detail-bar{
  display:flex;flex:none;align-items:center;justify-content:space-between;gap:.8rem;
  padding:.55rem .85rem;border-bottom:1px solid var(--line);
  font:800 .76rem/1.3 Arial,Helvetica,sans-serif;color:var(--muted)
}
body.bibliotheque-full-color .bookshop-detail-bar button{
  display:inline-flex;align-items:center;gap:.6rem;min-height:44px;padding:.45rem .65rem;
  border:1px solid var(--line);border-radius:5px;color:var(--ink);background:transparent;
  font:700 .8rem/1.2 Arial,Helvetica,sans-serif;cursor:pointer
}
body.bibliotheque-full-color .bookshop-detail-bar button span{font-size:1.5rem;line-height:.7}
body.bibliotheque-full-color .bookshop-detail-bar button:hover{border-color:var(--red);color:var(--red)}
body.bibliotheque-full-color .bookshop-detail-content{overflow-y:auto;min-height:0;overscroll-behavior:contain;padding:1.3rem}
body.bibliotheque-full-color .bookshop-detail-layout{
  display:grid;grid-template-columns:minmax(0,170px) minmax(0,1fr);gap:1.4rem;align-items:start
}
body.bibliotheque-full-color .bookshop-detail-cover .bookshop-cover{
  width:100%;aspect-ratio:2/3;display:grid;place-items:center;background:#e7dbca;overflow:hidden;
  box-shadow:0 5px 18px #24181020
}
body.bibliotheque-full-color .bookshop-detail-cover .bookshop-cover img{
  width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain
}
body.bibliotheque-full-color .bookshop-detail-topic{
  display:block;margin:.6rem 0 0;color:var(--red);
  font:700 .68rem/1.3 Arial,Helvetica,sans-serif;overflow-wrap:anywhere
}
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-body{
  display:flex;flex-direction:column;min-width:0;min-height:0;margin:0;padding:0;gap:.35rem
}
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-body h3{
  margin:0;font:700 clamp(1.45rem,3vw,2.1rem)/1.1 Georgia,serif;overflow-wrap:anywhere
}
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-author{font-size:.88rem}
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-description{
  font:400 .93rem/1.6 Arial,Helvetica,sans-serif;margin:.6rem 0
}
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-bottom{
  margin:0;padding-top:.8rem;border-top:1px solid var(--line)
}
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-edition,
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-ean,
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-note{
  margin:.24rem 0;font:.78rem/1.45 Arial,Helvetica,sans-serif;color:var(--muted)
}
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-action{
  display:flex;min-height:46px;align-items:center;padding:.8rem 1rem;margin:.9rem 0 0;
  background:var(--ink);color:#fff;font:700 .82rem/1.3 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-action:hover{background:var(--red)}
body.bibliotheque-full-color .bookshop-detail-dialog :focus-visible{
  outline:3px solid var(--red);outline-offset:2px
}
@media(max-width:600px){
  body.bibliotheque-full-color .bookshop-intro{padding:.9rem 0 .7rem}
  body.bibliotheque-full-color .bookshop-intro h1{font-size:clamp(1.95rem,8.3vw,2.8rem);max-width:none}
  body.bibliotheque-full-color .bookshop-intro p:not(.bookshop-eyebrow){font-size:.88rem;line-height:1.45;margin:.5rem 0 .6rem}
  body.bibliotheque-full-color details.bookshop-affiliate{margin:.65rem 0 1rem}
  body.bibliotheque-full-color .bookshop-affiliate-summary{padding:.5rem .65rem;gap:.5rem;font-size:.72rem}
  body.bibliotheque-full-color .bookshop-affiliate-summary span{font-size:.66rem}
  body.bibliotheque-full-color .bookshop-section-head h2{font-size:1.65rem}
  body.bibliotheque-full-color .bookshop-section-head{padding-top:.55rem}
  body.bibliotheque-full-color .bookshop-enhanced .bookshop-view-controls{justify-content:space-between}
  body.bibliotheque-full-color .bookshop-view-gallery .bookshop-grid{grid-template-columns:repeat(auto-fill,minmax(102px,1fr));gap:.7rem .55rem}
  body.bibliotheque-full-color .bookshop-view-gallery .bookshop-cover-caption{display:none}
  body.bibliotheque-full-color .bookshop-view-gallery .bookshop-card{display:block}
  body.bibliotheque-full-color .bookshop-view-author .bookshop-author-group{display:block;padding:.8rem 0}
  body.bibliotheque-full-color .bookshop-view-author .bookshop-author-heading{position:static;margin:0 0 .55rem;font-size:.86rem}
  body.bibliotheque-full-color .bookshop-view-author .bookshop-author-grid{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:.7rem}
  body.bibliotheque-full-color .bookshop-view-author .bookshop-cover-caption{font-size:.7rem}
  body.bibliotheque-full-color .bookshop-detail-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}
  body.bibliotheque-full-color .bookshop-detail-shell{max-height:calc(100dvh - 12px)}
  body.bibliotheque-full-color .bookshop-detail-content{padding:1rem .9rem}
  body.bibliotheque-full-color .bookshop-detail-layout{grid-template-columns:minmax(0,1fr);gap:.8rem}
  body.bibliotheque-full-color .bookshop-detail-cover{display:flex;align-items:center;gap:1rem;min-height:0}
  body.bibliotheque-full-color .bookshop-detail-cover .bookshop-cover{width:92px;flex:none;max-height:140px}
  body.bibliotheque-full-color .bookshop-detail-topic{margin:0;font-size:.72rem;flex:1}
  body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-body h3{font-size:1.5rem}
  body.bibliotheque-full-color .bookshop-detail-dialog .bookshop-card-description{font-size:.85rem;line-height:1.55}
}
@media(max-width:330px){
  body.bibliotheque-full-color .bookshop-view-gallery .bookshop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  body.bibliotheque-full-color .bookshop-enhanced .bookshop-card-open{transform:none!important;transition:none!important}
}


/* Accordéons indépendants des auteurs et formulaire de proposition — novembre 2026. */
body.bibliotheque-full-color .bookshop-view-author .bookshop-grid{
  display:block;min-width:0;margin-top:.4rem
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-group{
  display:block;min-width:0;margin:0 0 .55rem;padding:0;gap:0;
  border:1px solid var(--line);border-radius:7px;background:var(--sheet);
  overflow:hidden
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-group[hidden]{
  display:none!important
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-summary{
  display:flex;align-items:center;gap:.85rem;min-height:54px;padding:.75rem 1rem;
  cursor:pointer;list-style:none;color:var(--ink)
}
body.bibliotheque-full-color .bookshop-author-summary::-webkit-details-marker{display:none}
body.bibliotheque-full-color .bookshop-author-summary::marker{content:''}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-summary:hover{
  background:rgba(156,37,34,.055)
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-summary:focus-visible{
  outline:3px solid var(--red);outline-offset:-3px
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-heading{
  flex:1;position:static;min-width:0;margin:0;padding:0;
  font:800 .92rem/1.35 Arial,Helvetica,sans-serif;
  overflow-wrap:break-word
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-count{
  flex:none;color:var(--muted);font:700 .76rem/1.3 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-summary::after{
  content:'+';display:grid;place-items:center;flex:none;width:23px;height:23px;
  border:1px solid var(--line);border-radius:50%;color:var(--red);
  font:800 1.1rem/1 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-group[open]>.bookshop-author-summary::after{content:'−'}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-group[open]>.bookshop-author-summary{
  border-bottom:1px solid var(--line)
}
body.bibliotheque-full-color .bookshop-view-author .bookshop-author-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,145px));
  gap:1rem;min-width:0;padding:1rem;align-items:start
}

body.bibliotheque-full-color .bookshop-enhanced .bookshop-grid .bookshop-author-group[hidden]{display:none!important}

/* Proposer un livre : seulement les deux champs utiles. */
body.bibliotheque-full-color .bookshop-proposal{
  box-sizing:border-box;width:min(1120px,calc(100% - 36px));
  margin:1.7rem auto 3rem;padding:1.35rem;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,1.05fr);gap:1rem 2rem;
  border:1px solid var(--line);border-left:4px solid var(--red);
  border-radius:8px;background:var(--sheet);color:var(--ink)
}
body.bibliotheque-full-color .bookshop-proposal h2{margin:.2rem 0 .65rem;font-size:clamp(1.25rem,2.7vw,1.75rem);color:var(--ink)}
body.bibliotheque-full-color .bookshop-proposal-intro p:last-child{margin:.4rem 0;font-size:.87rem;line-height:1.55}
body.bibliotheque-full-color .bookshop-proposal-form{display:grid;gap:.45rem;align-content:start;min-width:0}
body.bibliotheque-full-color .bookshop-proposal-form label:not(.bookshop-proposal-trap){
  display:block;font:700 .84rem/1.3 Arial,Helvetica,sans-serif;margin:.35rem 0 0
}
body.bibliotheque-full-color .bookshop-proposal-form input:not([type="hidden"]){
  box-sizing:border-box;width:100%;min-width:0;min-height:44px;
  margin:0;padding:.7rem .8rem;border:1px solid var(--line);border-radius:5px;
  background:#fff;color:var(--ink);font:400 .9rem Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-proposal-form input:focus-visible,
body.bibliotheque-full-color .bookshop-proposal-form button:focus-visible{
  outline:3px solid var(--red);outline-offset:2px
}
body.bibliotheque-full-color .bookshop-proposal-form button{
  min-height:44px;margin:.55rem 0 0;padding:.65rem 1rem;justify-self:start;
  border:0;border-radius:5px;background:var(--ink);color:#fff;
  cursor:pointer;font:800 .84rem Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-proposal-form button:hover{background:var(--red)}
body.bibliotheque-full-color .bookshop-proposal .bookshop-proposal-note{
  margin:.35rem 0 0;font:400 .74rem/1.5 Arial,Helvetica,sans-serif;color:var(--muted)
}
body.bibliotheque-full-color .bookshop-proposal-status{
  margin:0 0 .4rem;padding:.75rem;border:1px solid var(--line);
  font:700 .84rem/1.5 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-proposal-status.success{border-color:#47774d}
body.bibliotheque-full-color .bookshop-proposal-status.error{border-color:var(--red)}
body.bibliotheque-full-color .bookshop-proposal-trap{
  position:absolute!important;left:-9999px!important;width:1px;height:1px;
  overflow:hidden;white-space:nowrap
}
@media(max-width:740px){
  body.bibliotheque-full-color .bookshop-proposal{
    grid-template-columns:minmax(0,1fr);gap:.75rem;width:calc(100% - 24px);
    margin:1.3rem auto 2rem;padding:1rem
  }
  body.bibliotheque-full-color .bookshop-proposal-form button{width:100%}
}
@media(max-width:480px){
  body.bibliotheque-full-color .bookshop-view-author .bookshop-author-summary{padding:.72rem .8rem}
  body.bibliotheque-full-color .bookshop-view-author .bookshop-author-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;padding:.8rem
  }
  body.bibliotheque-full-color .bookshop-view-author .bookshop-author-count{font-size:.72rem}
}

/* Bibliothèque : un accordéon par grand thème, livres triés côte à côte par auteur.
   Aucune coupure de grille ni sous-titre d'auteur. */
body.bibliotheque-full-color .bookshop-view-theme .bookshop-grid{
  display:block;min-width:0;margin-top:.35rem
}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-group{
  display:block;min-width:0;margin:0 0 .65rem;padding:0;
  border:1px solid var(--line);border-radius:7px;background:var(--sheet);overflow:hidden
}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-group[hidden]{display:none!important}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-summary{
  display:flex;align-items:center;gap:.75rem;min-height:56px;padding:.8rem 1rem;
  cursor:pointer;list-style:none;color:var(--ink);
  font:800 .94rem/1.35 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-theme-summary::-webkit-details-marker{display:none}
body.bibliotheque-full-color .bookshop-theme-summary::marker{content:'';font-size:0}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-summary:hover{background:rgba(156,37,34,.055)}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-summary:focus-visible{outline:3px solid var(--red);outline-offset:-3px}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-heading{
  flex:1;min-width:0;font:inherit;overflow-wrap:break-word
}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-count{
  flex:none;color:var(--muted);font:700 .75rem/1.3 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-summary::after{
  content:'+';flex:none;display:grid;place-items:center;width:25px;height:25px;
  border:1px solid var(--line);border-radius:50%;color:var(--red);
  font:800 1.1rem/1 Arial,Helvetica,sans-serif
}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-group[open]>.bookshop-theme-summary::after{content:'−'}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-group[open]>.bookshop-theme-summary{border-bottom:1px solid var(--line)}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,145px));
  grid-auto-flow:row;align-items:start;align-content:start;gap:.9rem;min-width:0
}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-grid{padding:.85rem}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-cover-caption{
  font-size:.72rem
}
body.bibliotheque-full-color .bookshop-view-theme .bookshop-cover-author{
  display:block;padding:0 .15rem;color:var(--muted);
  font:500 .67rem/1.25 Arial,Helvetica,sans-serif;
  overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2
}
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-cover-author{display:none}
@media(max-width:600px){
  body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-summary{min-height:51px;padding:.72rem .85rem;font-size:.86rem}
  body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-grid{
    grid-template-columns:repeat(auto-fill,minmax(105px,1fr));gap:.7rem
  }
  body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-grid{padding:.7rem}
}
@media(max-width:340px){
  body.bibliotheque-full-color .bookshop-view-theme .bookshop-theme-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}

/* « Tous les livres » : deux rayons explicites, bandes dessinées d'abord.
   Chaque rayon possède sa propre grille de couvertures, sans conteneur intermédiaire. */
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-grid{
  display:block;min-width:0;margin-top:.4rem
}
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-section{
  display:block;min-width:0;margin:0 0 1.45rem
}
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-section[hidden]{
  display:none!important
}
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-heading{
  display:flex;align-items:baseline;gap:.65rem;
  margin:0 0 .8rem;padding:.4rem 0 .55rem;border-bottom:1px solid var(--line);
  font:800 1rem/1.35 Arial,Helvetica,sans-serif;color:var(--ink)
}
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-count{
  margin-left:auto;flex:none;font:700 .74rem/1.35 Arial,Helvetica,sans-serif;color:var(--muted)
}
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-grid{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));
  grid-auto-flow:row;align-items:start;align-content:start;
  gap:.8rem .7rem;min-width:0
}
body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-grid>.bookshop-card{
  display:block;grid-column:auto;grid-row:auto;width:100%;min-width:0;align-self:start
}
@media(max-width:600px){
  body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-heading{
    margin-bottom:.7rem;font-size:.88rem
  }
  body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-grid{
    grid-template-columns:repeat(auto-fill,minmax(102px,1fr));gap:.7rem .55rem
  }
}
@media(max-width:330px){
  body.bibliotheque-full-color .bookshop-view-gallery .bookshop-gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
}
