/* ============================================================
 * Alanzo Bibliotheque -- assets/css/bibliotheque.css
 * Migre depuis Additional CSS (refactoring CSS, juillet 2026).
 * Contenu copie a l'identique -- seul l'emplacement change, et le
 * chargement est desormais conditionnel (uniquement sur la page qui
 * utilise le shortcode [alanzo_bibliotheque], voir alanzo-bibliotheque.php).
 * ============================================================ */

/* ============================================ */
/* BIBLIOTHÈQUE — étagère                       */
/* ============================================ */
.alz-bibliotheque {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.alz-bib-section-titre {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 2.5rem 0 0.75rem;
    padding-left: 6px;
    border-left: 3px solid #8B6343;
}

.alz-bib-tablette {
    position: relative;
    padding: 18px 20px 0;
    background-color: #6B4A2E;
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 40px,
            rgba(0,0,0,0.03) 40px,
            rgba(0,0,0,0.03) 41px
        ),
        repeating-linear-gradient(
            180deg,
            rgba(255,255,255,0.04) 0px,
            rgba(255,255,255,0.04) 2px,
            transparent 2px,
            transparent 8px,
            rgba(0,0,0,0.04) 8px,
            rgba(0,0,0,0.04) 10px,
            transparent 10px,
            transparent 18px
        );
    border-radius: 4px 4px 0 0;
}

.alz-bib-planche {
    height: 18px;
    background-color: #4A3020;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 60px,
        rgba(0,0,0,0.06) 60px,
        rgba(0,0,0,0.06) 62px
    );
    border-radius: 0 0 4px 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    margin-bottom: 2rem;
}

.alz-bib-livres {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.alz-bib-livre {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.alz-bib-livre a {
    display: block;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.alz-bib-livre a:hover {
    transform: translateY(-8px);
}

.alz-bib-img {
    width: 160px;
    height: 220px;
    object-fit: cover;
    border-radius: 2px 4px 4px 2px;
    box-shadow: -3px 3px 8px rgba(0,0,0,0.45);
    display: block;
}

.alz-bib-cover-text {
    width: 160px;
    height: 220px;
    border-radius: 2px 4px 4px 2px;
    box-shadow: -3px 3px 8px rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
}

.alz-bib-cover-text span {
    color: rgba(255,255,255,0.92);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    max-height: 200px;
    overflow: hidden;
}

.alz-bib-titre {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.75);
    text-align: center;
    max-width: 160px;
    margin: 6px 0 0;
    line-height: 1.3;
}

@media (max-width: 600px) {
    .alz-bib-img,
    .alz-bib-cover-text {
        width: 85px;
        height: 118px;
    }
    .alz-bib-titre {
        max-width: 85px;
        font-size: 0.68rem;
    }
}
/* ============================================ */
/* BIBLIOTHÈQUE — pas de sidebar                */
/* Masquage generique (#secondary/#primary : display, width, flex,
   bordure) entierement centralise dans Alanzo Core
   (includes/pages-sans-sidebar.php, filtre alz_core_pages_sans_sidebar,
   RATIONALISATION) -- CORRECTIF : le flex/bordure etait reste ici par
   erreur lors du premier passage (classe a tort comme "specifique a
   cette page"), ce qui laissait un trait separateur visible sur les
   pages qui n'avaient pas ce meme rafistolage local (Alanzo Terrain,
   signale par Alanzo). Plus rien de generique ici desormais -- seul le
   max-width ci-dessous est vraiment propre a cette page. */
/* ============================================ */

.ast-blog-single-element.ast-blog-meta-container .tags-links {
    display: none;
}
/* ============================================ */
/* BIBLIOTHÈQUE — élargir le conteneur pour 7 livres/rangée */
/* NOTE : le sélecteur ".page-id-937 .ast-container" a été   */
/* retiré — il bridait AUSSI le header (.ast-container vit    */
/* dans .site-header). On ne cible plus que le contenu.      */
/* ============================================ */
.page-id-937 #primary,
.page-id-937 .site-content > .ast-container {
    max-width: 1365px !important;
}
