body {
    background-color:#f3efe7;
       color: #242424;
    font-family: Arial, sans-serif;

    }
    .add-book {
    background-color: #242424;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
}
.book-form {
    display: none;
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    border-radius: 12px;
    max-width: 500px;
}
.book-form label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: bold;
}

.book-form input,
.book-form textarea {
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.book-form textarea {
    min-height: 80px;
    resize: vertical;
}

.save-book {
    margin-top: 15px;
    padding: 10px 16px;
    cursor: pointer;
}

.library {
    margin-top: 40px;
}

.book {
    background-color: white;
    padding: 20px;
    margin-bottom: 16px;
    border-radius: 12px;
    max-width: 500px;
}

.book h3 {
    margin-top: 0;
    margin-bottom: 5px;
}

.book p {
    margin-top: 0;
    color: #666;
}

.book blockquote {
    margin: 15px 0 0 0;
    padding-left: 15px;
    border-left: 3px solid #242424;
    font-style: italic;
}
.book-tags {
    display: inline-block;
    background-color: #512b3b;
    color: #e9b7c9;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    margin-right: 6px;
    margin-bottom: 6px;
}
/* Espace de la constellation */
.constellation {
    margin-top: 40px;
    padding: 20px;
    background-color: #241b24;
    border-radius: 20px;
}

.constellation h2 {
    color: #e9b7c9;
}

#book-map {
    display: block;
    width: 100%;
    height: 600px;
}
/* Animation douce des étoiles au survol */
#book-map circle {
    transition: r 0.25s ease, fill 0.25s ease;
}
/* Animation douce des connexions */
#book-map .book-link {
    opacity: 0.15;
    transition: stroke 0.25s ease, opacity 0.25s ease;
}
#book-tooltip {
    display: none;
    background: #382833;
    color: #f5d4e0;
    border: 1px solid #a56b83;
    border-radius: 10px;
    padding: 12px 16px;
    max-width: 280px;
    font-size: 14px;
    position: absolute;
    pointer-events: none;
    white-space: pre-line;
}
#book-count {
    color: #f4b6cc;
    font-size: 14px;
    margin-top: 6px;
}
#book-detail {
    display: none;
    position: fixed;
    top: 12px;
    right: 0;
    left: auto;
    transform: none;
    width: 420px;
    max-width: 90vw;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 25px;
    background: #2b202d;
    color: #f5d4e0;
    border: 1px solid #a56b83;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}
#close-book-detail {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    color: #e9b7c9;
    font-size: 22px;
    cursor: pointer;
    padding: 5px 10px;
}

#close-book-detail:hover {
    color: #ffffff;
}
#book-detail h2 {
    color: #f5d4e0;
    font-size: 23px;
    line-height: 1.3;
    margin: 8px 25px 10px 0;
}

#detail-author {
    color: #c99aae;
    font-size: 15px;
    margin: 0 0 18px 0;
}
.book-form {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: auto;
    transform: none;

    width: 380px;
    max-width: 90vw;
    height: 100vh;
    box-sizing: border-box;
    overflow-y: auto;

    padding: 35px 25px;
    background: #2b202d;
    border-left: 1px solid #a56b83;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}
.close-book-form {
    position: absolute;
    top: 18px;
    right: 18px;

    background: transparent;
    border: none;
    color: #e9b7c9;
    font-size: 22px;
    cursor: pointer;

    transition: color 0.2s, transform 0.2s;
}

.close-book-form:hover {
    color: #ffffff;
    transform: rotate(90deg);
}
.book-form h2 {
    color: #f5d4e0;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    padding-right: 30px;
}
#edit-book-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin: 15px 0;
    padding: 10px 18px;

    background: #503748;
    color: #f5d4e0;
    border: 1px solid #a56b83;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 500;
    cursor: pointer;

    transition: background 0.2s, transform 0.2s;
}

#edit-book-detail:hover {
    background: #765065;
    transform: translateY(-2px);
}
#close-book-detail {
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

#close-book-detail:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.detail-tags {
    display: block;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
    margin-bottom: 12px;
    position: relative;
    min-height: 100px;
}

.detail-tags .book-tags {
    display: inline-block;
    margin: 0;
}
.related-book {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.related-book:hover {
    background: #503748;
    color: #ffffff;
}

.related-tags {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #b98fa5;
    line-height: 1.5;
}

.related-book:hover .related-tags {
    color: #e9b7c9;
}
.show-more-books {
    display: block;
    width: 100%;
    margin-top: 16px;
    padding: 12px;

    background: transparent;
    color: #dba5bc;
    border: 1px dashed #765065;
    border-radius: 10px;

    font-size: 13px;
    font-family: inherit;
    cursor: pointer;

    transition: background 0.2s, color 0.2s,
                border-color 0.2s, transform 0.2s;
}

.show-more-books:hover {
    background: #503748;
    color: #ffffff;
    border-color: #dba5bc;
    transform: translateY(3px);
}
/* Formulaire de lecture : labels lisibles */
.book-form label {
    display: block;
    color: #e9b7c9;
    margin: 16px 0 7px;
    font-size: 14px;
}

/* Champs de saisie */
.book-form input,
.book-form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 12px;
    background: #382a3c;
    color: #f5d4e0;
    border: 1px solid #765065;
    border-radius: 8px;
    font-family: inherit;
}

.book-form input:focus,
.book-form textarea:focus {
    outline: none;
    border-color: #e9b7c9;
}

/* Bouton d'enregistrement */
.book-form .save-book {
    margin-top: 16px;
    padding: 11px 18px;
    background: #503748;
    color: #f5d4e0;
    border: 1px solid #a56b83;
    border-radius: 9px;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.book-form .save-book:hover {
    background: #765065;
    transform: translateY(-2px);
}
.book-cover {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 260px;
    object-fit: contain;

    margin: 20px auto;
    border-radius: 6px;
    border: 1px solid #765065;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
.related-book-cover {
    width: 38px;
    height: 54px;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 4px;
    border: 1px solid #765065;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}
.related-book {
    display: flex;
    align-items: center;
    gap: 10px;
}

.related-book-cover {
    flex-shrink: 0;
    width: 42px;
    height: 60px;
    object-fit: cover;
    margin: 0;
}

.related-book .related-tags {
    display: block;
    margin-top: 4px;
}
.related-book-placeholder {
    flex-shrink: 0;
    display: block;
    position: relative;
    box-sizing: border-box;

    width: 42px;
    height: 60px;

    background: #382a3c;
    border: 1px solid #765065;
    border-radius: 3px 5px 5px 3px;

    box-shadow: inset 4px 0 #765065;
}

.related-book-placeholder::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 12px;
    width: 19px;
    height: 1px;
    background: #a56b83;
    box-shadow: 0 5px #a56b83, 0 10px #a56b83;
}

/* === BOOKMAP : liste des lectures === */

.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.book-list .book {
    position: relative;
    padding: 20px;
    background: #302536;
    border: 1px solid #604458;
    border-radius: 14px;
    transition: border-color 0.2s, transform 0.2s;
}

.book-list .book:hover {
    border-color: #dba5bc;
    transform: translateY(-3px);
}

.book-list .book h3 {
    color: #f0c5d6;
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 8px;
}

.book-list .book p {
    color: #c5a8bd;
    font-size: 13px;
    margin: 0 0 12px;
}

.book-list .book blockquote {
    color: #e2d2df;
    font-size: 13px;
    line-height: 1.6;
    border-left: 2px solid #a56b83;
    padding-left: 12px;
    margin: 14px 0;
}

.book-list .book .book-tags {
    display: inline-block;
    margin: 4px 4px 4px 0;
    padding: 4px 9px;
    border-radius: 20px;
    background: #493447;
    color: #e9b7c9;
    font-size: 11px;
}

.book-list .book .delete-book {
    margin-top: 14px;
    padding: 6px 11px;
    background: transparent;
    color: #b99aaf;
    border: 1px solid #604458;
    border-radius: 7px;
    font-size: 12px;
    cursor: pointer;
}

.book-list .book .delete-book:hover {
    color: #ffffff;
    background: #704354;
    border-color: #dba5bc;
}

/* === BOOKMAP : liste verticale des lectures === */

.book-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}

.book-list .book {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;

    padding: 14px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #604458;
    border-radius: 0;
    box-shadow: none;

    transition: background 0.2s;
}

.book-list .book:hover {
    background: #302536;
    border-color: #765065;
    transform: none;
}

.book-list .book h3 {
    flex: 0 1 220px;
    margin: 0;
    color: #f0c5d6;
    font-size: 15px;
    line-height: 1.4;
}

.book-list .book p {
    flex: 0 1 150px;
    margin: 0;
    color: #c5a8bd;
    font-size: 13px;
}

.book-list .book blockquote {
    flex-basis: 100%;
    margin: 8px 0;
    padding-left: 12px;
    border-left: 2px solid #a56b83;
    color: #e2d2df;
    font-size: 13px;
}

.book-list .book .book-tags {
    display: inline-block;
    margin: 0;
    padding: 4px 9px;
    border-radius: 20px;
    background: #493447;
    color: #e9b7c9;
    font-size: 11px;
}

.book-list .book .delete-book {
    margin: 0 0 0 auto;
    padding: 5px 10px;
    background: transparent;
    color: #b99aaf;
    border: 1px solid #604458;
    border-radius: 7px;
    font-size: 11px;
    cursor: pointer;
}

.book-list .book .delete-book:hover {
    background: #704354;
    color: #ffffff;
    border-color: #dba5bc;
}

@media (max-width: 600px) {
    .book-list .book h3 {
        flex-basis: 100%;
    }

    .book-list .book p {
        flex-basis: auto;
    }
}

/* === BookMap : liste compacte des lectures === */

.book-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 12px;
    width: 100%;
}

.book-list .book {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px 10px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #d8c4d0;
    border-radius: 0;
    box-shadow: none;
    transition: background 0.2s;
}

.book-list .book:hover {
    background: rgba(165, 107, 131, 0.07);
    transform: none;
}

.book-list .book h3 {
    flex: 0 1 210px;
    margin: 0;
    color: #75485f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.book-list .book p {
    flex: 0 1 150px;
    margin: 0;
    color: #92758b;
    font-size: 12px;
}

.book-list .book blockquote {
    flex-basis: 100%;
    margin: 4px 0;
    padding-left: 10px;
    border-left: 2px solid #c28da7;
    color: #604458;
    font-size: 12px;
    line-height: 1.5;
}

.book-list .book .book-tags {
    display: inline-block;
    margin: 0;
    padding: 4px 8px;
    border-radius: 20px;
    background: #e8d8e1;
    color: #70465e;
    font-size: 10px;
    line-height: 1.3;
}

.book-list .book .delete-book {
    margin: 0 0 0 auto;
    padding: 4px 9px;
    background: transparent;
    color: #98768b;
    border: 1px solid #d8c4d0;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
}

.book-list .book .delete-book:hover {
    background: #70465e;
    color: #ffffff;
    border-color: #70465e;
}

@media (max-width: 600px) {
    .book-list .book {
        gap: 7px 9px;
        padding: 12px 6px;
    }

    .book-list .book h3 {
        flex-basis: 100%;
    }

    .book-list .book p {
        flex-basis: auto;
    }
}

/* BookMap — redonner de l'espace à la liste */

.book-list {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.book-list .book {
    box-sizing: border-box;
    width: 100%;
    font-size: 14px;
}

.book-list .book h3 {
    font-size: 15px;
}

.book-list .book p {
    font-size: 13px;
}

.book-list .book .book-tags {
    font-size: 11px;
}

.book-list .book .delete-book {
    font-size: 12px;
    padding: 5px 10px;
}

/* BookMap — liste littéraire, version propre */

.library {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.book-list {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    gap: 0;
    margin-top: 16px;
}

.book-list .book {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    row-gap: 8px;

    width: 100%;
    max-width: none;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 16px 18px;

    background: transparent;
    border: none;
    border-bottom: 1px solid #e0d0da;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: background 180ms ease;
}

.book-list .book:hover {
    background: #eee3e9;
    border-color: #d5b7c8;
    transform: none;
}

.book-list .book h3 {
    grid-column: 1;
    margin: 0;
    color: #493044;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.book-list .book p {
    grid-column: 1;
    margin: -4px 0 0;
    color: #92758b;
    font-size: 13px;
}

.book-list .book .book-tags {
    display: inline-block;
    margin: 0 5px 4px 0;
    padding: 5px 9px;
    border-radius: 20px;
    background: #eadbe5;
    color: #68455d;
    font-size: 11px;
}

.book-list .book .delete-book {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: end;
    align-self: center;

    margin: 0;
    padding: 6px 10px;
    background: transparent;
    color: #98768b;
    border: 1px solid #d8c4d0;
    border-radius: 7px;
    font-size: 11px;
    cursor: pointer;
}

.book-list .book .delete-book:hover {
    background: #70465e;
    color: #fff;
    border-color: #70465e;
}

.book-list .book blockquote {
    grid-column: 1 / -1;
    margin: 6px 0;
    padding-left: 12px;
    border-left: 2px solid #c28da7;
    color: #75596d;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .book-list .book {
        padding: 14px 8px;
        column-gap: 8px;
    }

    .book-list .book h3 {
        font-size: 14px;
    }
}

/* BOOKMAP — retour aux cartes */

.book-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
    width: 100%;
    max-width: none;
    margin-top: 16px;
    box-sizing: border-box;
}

.book-list .book {
    display: block;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 16px;
    box-sizing: border-box;

    background: #302536;
    color: #f5d4e0;
    border: 1px solid #604458;
    border-radius: 12px;
    box-shadow: none;

    transition: border-color 0.2s, transform 0.2s;
}

.book-list .book:hover {
    background: #302536;
    border-color: #dba5bc;
    transform: translateY(-2px);
}

.book-list .book h3 {
    margin: 0 0 8px;
    color: #f0c5d6;
    font-size: 15px;
    line-height: 1.4;
}

.book-list .book p {
    margin: 0 0 12px;
    color: #c5a8bd;
    font-size: 12px;
}

.book-list .book .book-tags {
    display: inline-block;
    width: auto;
    margin: 3px 3px 3px 0;
    padding: 5px 8px;
    border-radius: 20px;
    background: #493447;
    color: #e9b7c9;
    font-size: 11px;
    line-height: 1.3;
}

.book-list .book .delete-book {
    display: inline-block;
    width: auto;
    margin: 10px 0 0;
    padding: 6px 10px;
    background: transparent;
    color: #c5a8bd;
    border: 1px solid #604458;
    border-radius: 7px;
    font-size: 11px;
    cursor: pointer;
}

.book-list .book .delete-book:hover {
    background: #704354;
    color: #fff;
    border-color: #dba5bc;
}

.book-list .book blockquote {
    margin: 12px 0;
    padding-left: 10px;
    border-left: 2px solid #a56b83;
    color: #e2d2df;
    font-size: 12px;
    line-height: 1.5;
}

/* Couvertures dans les cartes de lectures */
.book-list .list-book-cover {
    display: block;
    width: auto;
    height: 150px;
    max-width: 110px;
    object-fit: contain;
    margin: 0 auto 14px 0;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid #604458;
}

/* BookMap — cartes compactes */

.book-list {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

.book-list .book {
    display: flow-root;
    min-height: 0;
    height: auto;
    padding: 16px;
}

.book-list .list-book-cover {
    float: left;
    width: 75px;
    height: 110px;
    max-width: none;
    margin: 0 15px 8px 0;
    object-fit: contain;
}

.book-list .book h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.book-list .book p {
    margin: 0 0 10px;
    font-size: 12px;
}

.book-list .book .book-tags {
    margin: 3px 3px 3px 0;
}

/* Silhouettes dans les cartes de lecture */
.book-list .list-book-cover-placeholder {
    float: left;
    width: 75px;
    height: 110px;
    margin: 0 15px 8px 0;
}
/* BookMap V2 — espace réservé à la fiche latérale */
body:has(#book-detail[style*="display: block"]) {
    padding-right: 500px;
}
.book-list .book {
    cursor: pointer;
}
/* BookMap V2 — couvertures au survol des étoiles */
.tooltip-cover {
    display: block;
    width: 90px;
    height: 135px;
    object-fit: contain;
    margin: 0 auto 8px;
    border-radius: 5px;
}
/* BookMap V2 — texte des infobulles */
#book-tooltip {
    text-align: center;
    line-height: 1.5;
    white-space: pre-line;
}
/* BookMap V2 — identité visuelle */

.brand {
    margin: 24px 0 30px 30px;
}

.brand h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.1;
    margin: 0;
    color: #f7e9ed;
}

.brand-star {
    color: #e998b5;
    font-size: 25px;
    vertical-align: top;
}

.brand p {
    margin-top: 8px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: #e8b4c7;
}
/* BookMap V2 — fond de l'en-tête */

body {
    background: #241b25;
}

.brand {
    margin: 0;
    padding: 24px 30px 30px;
}
/* BookMap V2 — section Mes lectures */

.reading-section {
    background: #f3eee6;
    padding: 25px 30px 35px;
}

.reading-section h2 {
    color: #2b202d;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    margin: 0 0 20px;
}
/* BookMap V2 — navigation */

.main-nav {
    position: absolute;
    top: 38px;
    right: 50px;
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav a {
    color: #c99bad;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 15px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: #f5d4e0;
}
/* BookMap V2 — onglet actif */

.main-nav a:first-child {
    color: #f5d4e0;
    border-bottom: 1px solid #e998b5;
    padding-bottom: 8px;
}
/* BookMap V2 — bouton Ajouter une lecture */

.add-book {
    background: #382939;
    color: #f5d4e0;
    border: 1px solid #a56b83;
    border-radius: 24px;
    padding: 11px 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.add-book:hover {
    background: #51374d;
}
/* BookMap V2 — barre de recherche */

#book-search {
    width: 240px;
    padding: 13px 16px;
    background: #302331;
    color: #f5d4e0;
    border: 1px solid #8e617b;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
}

#book-search::placeholder {
    color: #bd93a8;
}

#book-search:focus {
    border-color: #e998b5;
}
/* BookMap V2 — disposition recherche + galaxie */

.library {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    column-gap: 25px;
}

.sidebar {
    grid-column: 1;
    grid-row: 1;
    padding: 25px 10px 25px 25px;
}

.constellation {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.reading-section {
    grid-column: 1 / -1;
    grid-row: 2;
}
/* BookMap V2 — titre de la colonne de filtres */

.sidebar h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 400;
    color: #f5d4e0;
    margin: 0 0 22px;
}
.genre-filters {
    margin-top: 30px;
}

.genre-filters h3 {
    color: #f5d4e0;
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: normal;
    margin-bottom: 18px;
}

#genre-options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#genre-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d9b9ca;
    font-size: 14px;
    cursor: pointer;
}

#genre-options input[type="checkbox"] {
    accent-color: #e998b5;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.detail-genre {
    display: inline-block;
    padding: 7px 14px;
    margin: 12px 0;
    background: #51374d;
    color: #f5d4e0;
    border: 1px solid #a56b83;
    border-radius: 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.brand {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 28px;
}

.brand #book-count {
    color: #e998b5;
    font-size: 14px;
    margin: 0;
}

.brand > p:not(#book-count) {
    flex-basis: 100%;
}
.add-book {
    margin-left: 25px;
}
/* BOOKMAP — Note de lecture */

/* BOOKMAP — Étoiles de notation */

.detail-rating {
    display: flex;
    gap: 5px;
    margin: 18px 0;
}

.rating-star {
    font-family: Georgia, serif;
    font-size: 28px;
    line-height: 1;
    color: #665363;
}

.rating-star.full {
    color: #e998b5;
}

.rating-star.half {
    background: linear-gradient(
        to right,
        #e998b5 50%,
        #665363 50%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* BOOKMAP — Filtres par genre */

#genre-options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;

    width: 15px;
    height: 15px;
    border: 1.5px solid #b77b98;
    border-radius: 50%;

    background: transparent;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 9px;

    transition: all 0.2s ease;
}

#genre-options input[type="checkbox"]:checked {
    background: #e998b5;
    border-color: #e998b5;
    box-shadow: 0 0 9px rgba(233, 152, 181, 0.5);
}

#genre-options input[type="checkbox"]:hover {
    border-color: #f5d4e0;
}
/* BOOKMAP — Menu de sélection du genre */

#genre {
    appearance: none;
    -webkit-appearance: none;

    width: 100%;
    padding: 12px 38px 12px 15px;

    background-color: #392a3b;
    color: #f5d4e0;

    border: 1px solid #a56b83;
    border-radius: 10px;

    font-family: inherit;
    font-size: 14px;

    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23e998b5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
}

#genre:focus {
    outline: none;
    border-color: #e998b5;
    box-shadow: 0 0 8px rgba(233, 152, 181, 0.25);
}

#genre option {
    background: #392a3b;
    color: #f5d4e0;
}
/* BOOKMAP — Saisie de la note en étoiles */

.rating-input {
    display: flex;
    gap: 5px;
    margin: 10px 0;
    min-height: 32px;
}

.rating-input .rating-star {
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s ease;
}

.rating-input .rating-star:hover {
    transform: scale(1.15);
}
/* BOOKMAP — Masquer le menu de notation */

#rating {
    display: none;
}
/* BOOKMAP — Bouton effacer la note */

.clear-rating {
    display: inline-block;
    width: auto;
    padding: 4px 0;
    margin: 0 0 12px;

    background: transparent;
    border: none;

    color: #b98da5;
    font-family: inherit;
    font-size: 12px;

    cursor: pointer;
    transition: color 0.2s ease;
}

.clear-rating:hover {
    color: #f5d4e0;
    text-decoration: underline;
}
/* BOOKMAP — Date de lecture */

.detail-date {
    color: #c9a6b9;
    font-family: Georgia, serif;
    font-size: 14px;
    letter-spacing: 0.3px;
    margin: 8px 0 20px;
}
/* BOOKMAP — Chronique de lecture */

.detail-review {
    margin: 24px 0;
    padding: 18px 20px;

    background: #392a3b;
    border-left: 2px solid #e998b5;
    border-radius: 0 10px 10px 0;
}

.detail-review h3 {
    margin: 0 0 14px;

    color: #f5d4e0;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: normal;
}

.detail-review p {
    margin: 0;

    color: #e5cad7;
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
}
/* BOOKMAP — Citation marquante */

.detail-quote {
    margin: 24px 0;
    padding: 18px 20px;
    background: #302333;
    border: 1px solid #69465d;
    border-radius: 12px;
}

.detail-quote h3 {
    margin: 0 0 16px;
    color: #f5d4e0;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: normal;
}

.detail-quote blockquote {
    position: relative;
    margin: 0;
    padding: 12px 0 0 22px;

    color: #e5cad7;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.8;
    font-style: normal;
    white-space: pre-wrap;
}

.detail-quote blockquote::before {
    content: "“";
    position: absolute;
    top: -18px;
    left: 0;

    color: #e998b5;
    font-size: 52px;
    line-height: 1;
}
/* BOOKMAP — Harmoniser chronique et citation */

.detail-review,
.detail-quote {
    margin: 24px 0;
    padding: 18px 20px;
    background: #392a3b;
    border: none;
    border-left: 2px solid #e998b5;
    border-radius: 0 10px 10px 0;
}

.detail-review h3,
.detail-quote h3 {
    margin: 0 0 14px;
    color: #f5d4e0;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: normal;
}

.detail-quote blockquote {
    padding: 12px 0 0 22px;
}
/* BOOKMAP — Étiquettes de la galaxie */

#galaxy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px 25px;
    justify-content: center;
}

.galaxy-tag {
    display: inline-block;
    padding: 7px 13px;

    background: #493247;
    color: #f5d4e0;

    border: 1px solid #a56b83;
    border-radius: 20px;

    font-size: 12px;
    letter-spacing: 0.3px;
    white-space: nowrap;

    box-shadow: 0 0 10px rgba(233, 152, 181, 0.08);
    transition: all 0.2s ease;
}

.galaxy-tag:hover {
    background: #63445c;
    border-color: #e998b5;
    box-shadow: 0 0 12px rgba(233, 152, 181, 0.25);
}
/* BOOKMAP — Tags flottants */

#galaxy-tags {
    position: relative;
    height: 0;
    min-height: 0;
    padding: 0;
    z-index: 2;
}

.galaxy-tag {
    position: absolute;
}
#galaxy-tags { display: none; }