/* =========================================================
   AFFICHAGE PARTAGÉ — DOCUMENTS PAR CATÉGORIE
   (utilisé par la Bibliothèque, la Taverne, et toute future salle
   listant des Documents/Chapitres)
   ========================================================= */

.doc-categories {
    margin-top: 1.5rem;
    text-align: left;
}

.categorie {
    margin-bottom: 2rem;
}

.categorie-titre {
    font-family: "Uncial Antiqua", serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #f2e6cf;
    text-align: center;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #6e4b2a;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.document {
    border: 1px solid #6e4b2a;
    background: rgba(0,0,0,0.25);
    padding: 0.2rem 1rem;
    overflow-anchor: none;
}

.document > summary {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    padding: 0.8rem 0;
    font-family: "Uncial Antiqua", serif;
    font-size: 1.05rem;
}

.document-illustration {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #6e4b2a;
    flex-shrink: 0;
}

.document-corps {
    padding: 0.3rem 0 1rem;
}

.document-banniere {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border: 1px solid #6e4b2a;
    margin-bottom: 1rem;
}

.partie-titre {
    margin: 1.5rem 0 0.6rem;
    font-family: "Uncial Antiqua", serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #d8b98a;
    border-bottom: 1px solid rgba(110, 75, 42, 0.5);
    padding-bottom: 0.3rem;
}

.chapitre {
    margin: 0.4rem 0;
    border-left: 2px solid rgba(110, 75, 42, 0.5);
    padding-left: 0.8rem;
    overflow-anchor: none;
}

.chapitre > summary {
    cursor: pointer;
    padding: 0.4rem 0;
    font-family: "Uncial Antiqua", serif;
    font-size: 0.9rem;
}

.chapitre-texte {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
    padding: 0.4rem 0.2rem 1rem;
}

.chapitre-texte p {
    margin: 0 0 0.9rem;
}
