/* Collection : trois rayons éditoriaux, six couvertures, une langue à la fois. */
body.site-vitrine #collection { padding-block:44px; background:color-mix(in srgb,var(--card) 40%,var(--background)); }
body.site-vitrine #collection > .sv-wrap { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; column-gap:32px; }
body.site-vitrine #collection #collection-titre { font-size:clamp(28px,3vw,40px); line-height:1.12; letter-spacing:-.03em; max-width:26ch; margin:0 0 10px; text-wrap:balance; }
body.site-vitrine #collection > .sv-wrap > p { grid-column:1; margin:0; color:var(--muted-foreground); font-size:15px; }
body.site-vitrine #collection .collection-selecteur-langue { grid-column:2; grid-row:1 / span 2; align-self:center; margin:0; background:var(--soft); border:0; border-radius:12px; padding:5px; }
body.site-vitrine #collection .collection-selecteur-langue a { min-height:44px; padding:10px 19px; font-size:13px; border-radius:8px; }
body.site-vitrine #collection .collection-selecteur-langue a[aria-current] { background:var(--accent-citron); color:#171717; }
body.site-vitrine #collection .collection-rayons { grid-column:1 / -1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; margin-top:30px; }
body.site-vitrine #collection .collection-rayon { margin:0; padding:22px; border:1px solid var(--border); border-radius:16px; background:var(--card); min-width:0; }
body.site-vitrine #collection .collection-entete { display:flex; flex-direction:column; align-items:start; gap:9px; min-height:110px; padding-bottom:22px; }
body.site-vitrine #collection .collection-entete h3 { font-size:20px; line-height:1.2; margin:0; letter-spacing:-.02em; text-wrap:balance; }
body.site-vitrine #collection .collection-entete .lien { display:inline-flex; align-items:center; gap:8px; min-height:36px; font-size:12px; font-weight:600; text-decoration:none; color:var(--muted-foreground); margin:0; }
body.site-vitrine #collection .collection-entete .lien:hover { color:var(--foreground); text-decoration:underline; text-underline-offset:4px; }
body.site-vitrine #collection .collection-apercu { max-width:none; gap:16px; padding:0; }
body.site-vitrine #collection .collection-annonce img, body.page-bibliotheque .grille-livres .collection-annonce img { border-radius:6px; box-shadow:0 7px 14px #0002; }
body.site-vitrine #collection .collection-annonce h4 { font-size:14px; font-weight:650; line-height:1.35; margin:15px 0 5px; min-height:38px; }
body.site-vitrine #collection .collection-annonce p { font-size:11px; line-height:1.5; margin:0; }
body.site-vitrine #collection .collection-disponibilite, body.page-bibliotheque .grille-livres .collection-disponibilite { font-size:11px; font-weight:700; padding:5px 9px; border:1px solid color-mix(in srgb,var(--foreground) 24%,transparent); background:var(--soft); color:var(--foreground); border-radius:6px; margin-top:12px; letter-spacing:.01em; }
body.site-vitrine #collection .collection-couverture { transition:transform 180ms ease-out; }
@media(hover:hover) { body.site-vitrine #collection .collection-couverture:hover { transform:translateY(-4px); } }
/* Catalogue complet : un en-tête de bibliothèque et une grille régulière. */
body.page-bibliotheque .biblio-bienvenue { padding:28px 32px; margin-bottom:28px; border-radius:16px; background:var(--soft); }
body.page-bibliotheque .biblio-bienvenue h1 { font-size:clamp(30px,3.6vw,48px); letter-spacing:-.03em; line-height:1.1; }
body.page-bibliotheque .biblio-bienvenue__texte > p:last-child { font-size:15px; max-width:44ch; }
body.page-bibliotheque .biblio-couvertures { background:none; min-height:200px; padding:15px 25px; }
body.page-bibliotheque .biblio-couverture img { display:block; width:100%; height:auto; aspect-ratio:2/3; object-fit:contain; border-radius:5px; box-shadow:0 12px 20px #0003; }
body.page-bibliotheque .collection-selecteur-langue { border:0; background:var(--soft); margin-bottom:22px; }
body.page-bibliotheque .collection-selecteur-langue a[aria-current] { background:var(--accent-citron); color:#171717; }
body.page-bibliotheque .recherche { gap:14px; margin-bottom:18px; }
body.page-bibliotheque .champ-recherche { background:var(--soft); border:0; border-radius:12px; }
body.page-bibliotheque .filtres a { font-size:13px; }
body.page-bibliotheque .grille-livres { gap:32px 24px; }
body.page-bibliotheque .grille-livres .collection-annonce { min-width:0; }
body.page-bibliotheque .grille-livres .collection-annonce h4 { margin:13px 0 5px; font-size:15px; line-height:1.35; }
body.page-bibliotheque .grille-livres .collection-annonce p { font-size:12px; margin:0; }
body.page-bibliotheque .grille-livres .collection-badge-langue { border:0; background:transparent; color:var(--muted-foreground); padding:0; font-size:11px; margin-top:12px; }
@media(max-width:1000px) {
 body.site-vitrine #collection .collection-rayons { gap:14px; }
 body.site-vitrine #collection .collection-rayon { padding:16px; }
 body.site-vitrine #collection .collection-apercu { gap:12px; }
}
@media(max-width:760px) {
 body.site-vitrine #collection { padding-block:30px; }
 body.site-vitrine #collection > .sv-wrap { display:block; }
 body.site-vitrine #collection #collection-titre { font-size:29px; max-width:22ch; }
 body.site-vitrine #collection .collection-selecteur-langue { display:flex; width:100%; margin-top:22px; }
 body.site-vitrine #collection .collection-selecteur-langue a { flex:1; }
 body.site-vitrine #collection .collection-rayons { grid-template-columns:1fr; margin-top:22px; gap:16px; }
 body.site-vitrine #collection .collection-rayon { padding:20px; }
 body.site-vitrine #collection .collection-entete { min-height:0; padding-bottom:18px; gap:4px; }
 body.site-vitrine #collection .collection-entete h3 { font-size:21px; max-width:25ch; }
 body.site-vitrine #collection .collection-apercu { gap:18px; }
 body.site-vitrine #collection .collection-annonce h4 { font-size:14px; }
 body.page-bibliotheque .biblio-bienvenue { padding:22px; gap:8px; margin-bottom:22px; }
 body.page-bibliotheque .biblio-couvertures { min-height:155px; max-height:180px; padding:12px 35px; }
 body.page-bibliotheque .biblio-bienvenue h1 { font-size:32px; }
 body.page-bibliotheque .grille-livres { gap:28px 18px; }
}
@media(prefers-reduced-motion:reduce) { body.site-vitrine #collection .collection-couverture { transition:none; } }
body.page-bibliotheque .recherche .filtres { display:flex; flex-wrap:wrap; overflow:visible; gap:8px; width:100%; }
body.page-bibliotheque .recherche .filtres a { min-height:40px; white-space:normal; }
body.site-vitrine #collection .collection-entete { justify-content:flex-start; }
body.site-vitrine #collection .collection-entete .lien { min-height:40px; }
@media(max-width:760px) { body.site-vitrine #collection .collection-entete { padding-bottom:12px; } }
/* Disponibilité : pastille discrète, avec le fond vert demandé. */
body.site-vitrine .collection-annonce .collection-disponibilite,
body.site-vitrine #collection .collection-annonce .collection-disponibilite { background:var(--bientot-fond,#e7f2d6); color:var(--bientot-texte,#37521f); border:0; border-radius:999px; padding:6px 12px; font-size:12px; line-height:1.4; font-weight:500; letter-spacing:0; }
html[data-theme=dark] body.site-vitrine .collection-annonce .collection-disponibilite { --bientot-fond:#293b22; --bientot-texte:#d8edbf; }
@media(prefers-color-scheme:dark) { html:not([data-theme=light]):not([data-theme=sepia]) body.site-vitrine .collection-annonce .collection-disponibilite { --bientot-fond:#293b22; --bientot-texte:#d8edbf; } }
/* Placement des cartes de collection : même trame pour un livre disponible et une annonce « Bientôt ». */
body.site-vitrine #collection .collection-apercu > li { display:flex; flex-direction:column; align-items:stretch; min-width:0; }
body.site-vitrine #collection .collection-annonce img { aspect-ratio:2/3; object-fit:cover; border-radius:5px; }
body.site-vitrine #collection .livre-legende { display:flex; flex-direction:column; flex:1; padding:0; }
body.site-vitrine #collection .livre-legende h3,
body.site-vitrine #collection .collection-annonce h4 { margin:14px 0 6px; font-size:15px; line-height:1.3; font-weight:650; letter-spacing:-.02em; min-height:2.6em; text-wrap:balance; }
body.site-vitrine #collection .livre-autrice,
body.site-vitrine #collection .collection-annonce p { margin:0 0 10px; font-size:13px; line-height:1.4; color:var(--muted-foreground); }
body.site-vitrine #collection .livre-details { align-items:flex-start; gap:8px; margin:0 0 14px; font-size:12px; line-height:1.45; text-wrap:balance; }
body.site-vitrine #collection .livre-details svg { flex:none; margin-top:2px; }
body.site-vitrine #collection .livre-extrait { margin-top:auto; align-self:flex-start; }
body.site-vitrine #collection .collection-annonce .collection-disponibilite { margin-top:auto; margin-bottom:7px; align-self:flex-start; }
body.site-vitrine #collection .collection-apercu > li > .livre-visuel,
body.site-vitrine #collection .collection-apercu > li > .collection-couverture { flex:none; }
