:root {
    --book-bg: #eff2f7;
    --book-ink: #171d29;
    --book-muted: #4a5875;
    --book-panel: #ffffff;
    --book-border: rgba(5, 37, 87, 0.16);
}

.book-page-container,
.book-list-page {
    margin-top: 110px;
}

.book-left-column {
    max-width: 560px;
    margin-inline: auto;
}

.book-list-page {
    position: relative;
}

.book-list-hero {
    position: relative;
    padding: clamp(1.6rem, 3vw, 3rem);
    margin-bottom: 2rem;
    border-radius: 30px;
    border: 1px solid var(--book-border);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.97) 0%, rgba(244, 248, 255, 0.98) 100%);
    box-shadow: 0 22px 50px rgba(8, 26, 65, 0.08);
    overflow: hidden;
}

.book-list-hero::before {
    content: "";
    position: absolute;
    inset: auto -6% -20% auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 37, 87, 0.14) 0%, rgba(5, 37, 87, 0) 72%);
    pointer-events: none;
}

.book-list-kicker {
    margin-bottom: 0.85rem;
    color: #0a3d8f;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.book-list-title {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: #152033;
}

.book-list-text,
.book-list-panel-text {
    margin-top: 1.2rem;
    font-size: 1.04rem;
    line-height: 1.8;
    color: #4b5c79;
}

.book-list-panel {
    padding: 1.4rem;
    border-radius: 22px;
    background: rgba(5, 37, 87, 0.04);
    border: 1px solid rgba(5, 37, 87, 0.08);
}

.book-list-panel-label {
    margin-bottom: 0.7rem;
    color: #203f72;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.book-card-shell {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f5f8fd 100%);
    border: 1px solid rgba(5, 37, 87, 0.1);
    box-shadow: 0 18px 35px rgba(8, 26, 65, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.book-card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 1.75rem 1rem;
}

.book-card-content {
    padding: 1.6rem;
}

.book-author-line {
    color: #22406f;
    font-weight: 600;
}

.book-summary-pill {
    padding: 1rem 1.15rem;
    border-radius: 18px;
    background: rgba(5, 37, 87, 0.05);
    border: 1px solid rgba(5, 37, 87, 0.08);
    color: #2e4569;
    font-weight: 600;
    line-height: 1.7;
}

.book-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.book-meta-under-image {
    margin-inline: auto;
}

.book-meta-grid div {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    background: rgba(5, 37, 87, 0.04);
    border: 1px solid rgba(5, 37, 87, 0.08);
}

.book-meta-grid .book-meta-full {
    grid-column: 1 / -1;
}

.book-meta-grid .book-meta-full span {
    font-weight: unset !important;
}

.book-meta-grid strong {
    color: #1b3e79;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.book-meta-grid span {
    color: #334767;
    font-weight: 600;
}

.book-card-meta {
    color: #56719d;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.book-card-title {
    margin-bottom: 0.85rem;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.05;
    color: #152033;
}

.book-card-subtitle {
    margin-bottom: 1rem;
    color: #274673;
    font-size: 1rem;
    line-height: 1.45;
}

.book-card-excerpt {
    margin-bottom: 0.85rem;
    color: #4b5c79;
    line-height: 1.7;
}

.book-card-authors {
    color: #203f72;
    font-weight: 600;
}

.book-card-cta {
    display: inline-flex;
    align-items: center;
    color: #052557;
    font-weight: 700;
}

.book-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.7rem;
    color: #052557;
    font-weight: 700;
    text-decoration: none;
}

.book-back-link:hover {
    color: #1f4e98;
}

.book-page-container {
    position: relative;
    isolation: isolate;
}


.book-cover-frame {
    position: relative;
    padding: 0;
    background: transparent;
    display: inline-flex;
    width: 100%;
}

.book-cover-frame::after {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 2%;
    height: 14%;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(7, 17, 42, 0.32) 0%, rgba(7, 17, 42, 0) 70%);
    z-index: 0;
}

.book-cover-image {
    max-width: 100%;
    border-radius: 0;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 24px 22px rgba(8, 22, 52, 0.28));
}

.book-hero-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 248, 255, 0.98) 100%);
    padding: clamp(1.15rem, 2.2vw, 2rem);
    border-radius: 26px;
    border: 1px solid var(--book-border);
    box-shadow: 0 18px 40px rgba(8, 26, 65, 0.09);
    backdrop-filter: blur(6px);
}

.book-hero-meta .eyebrow {
    letter-spacing: 0.28em;
    font-size: 0.75rem;
    font-weight: 800;
    color: #0a3d8f;
}

.book-hero-meta p {
    color: #3f567d;
    font-weight: 500;
}

.book-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 0.98;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--book-ink);
}

.book-subtitle {
    font-size: clamp(1rem, 1.7vw, 1.2rem);
    color: #243b62;
    line-height: 1.25;
    font-weight: 500;
}

.book-overview {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--book-muted);
}

.book-cta-intro {
    color: #234171;
    font-weight: 600;
}

.book-buttons {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.book-bookshops-note {
    color: #2e466f;
    font-size: 0.94rem;
    line-height: 1.55;
}

.book-bookshops-note span {
    font-weight: 600;
    color: #1a3564;
}

.book-action-button {
    text-decoration: none;
    border-radius: 18px;
    min-height: 78px;
    padding: 0.85rem 1.05rem;
    color: #12315f;
    border: 1px solid rgba(5, 37, 87, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.book-provider-mark {
    min-width: 112px;
    min-height: 44px;
    text-align: center;
    font-weight: 800;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    border-radius: 12px;
    padding: 0.45rem 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.book-provider-logo {
    max-width: 92px;
    max-height: 28px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.book-provider-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    flex: 1;
}

.book-provider-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: inherit;
}

.book-provider-text small {
    font-size: 0.82rem;
    opacity: 0.92;
    color: #5a6f93;
}

.book-provider-arrow {
    font-size: 1.35rem;
    opacity: 0.95;
}

.book-action-amazon {
    background: linear-gradient(135deg, #fff7e8 0%, #fff1d7 100%);
    color: #332510;
    border-color: rgba(229, 157, 31, 0.28);
    box-shadow: 0 10px 24px rgba(195, 132, 18, 0.12);
}

.book-provider-amazon {
    background: #ffffff;
    color: #fff;
    border: 1px solid rgba(229, 157, 31, 0.24);
}

.book-action-amazon .book-provider-text small {
    color: #7d6130;
}

.book-action-kobo {
    background: linear-gradient(140deg, #eef4ff 0%, #e6efff 100%);
    color: #133d79;
    border-color: rgba(34, 85, 169, 0.24);
    box-shadow: 0 10px 24px rgba(28, 63, 132, 0.10);
}

.book-provider-kobo {
    background: #ffffff;
    color: #fff;
    border: 1px solid rgba(34, 85, 169, 0.18);
}

.book-action-fnac {
    background: linear-gradient(135deg, #f5f7fb 0%, #edf1f7 100%);
    color: #172235;
    border-color: rgba(12, 22, 44, 0.14);
    box-shadow: 0 10px 24px rgba(15, 17, 23, 0.08);
}

.book-provider-fnac {
    background: #ffffff;
    color: #0c0d10;
    border: 1px solid rgba(240, 193, 0, 0.28);
}

.book-action-button:hover {
    color: inherit;
    transform: translateY(-2px);
    filter: saturate(1.06);
}

.book-action-button:focus-visible {
    outline: 3px solid #0a3d8f;
    outline-offset: 2px;
}

.book-detail-section {
    margin-top: 4rem;
}

.book-detail-card,
.book-spec-card,
.book-card,
.book-card-link {
    background: #fff;
    border-radius: 24px;
}

.book-editorial-section {
    padding-top: 1rem;
}

.book-editorial-card {
    padding: 1.6rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(5, 37, 87, 0.1);
    box-shadow: 0 18px 35px rgba(8, 26, 65, 0.06);
}

.book-editorial-text {
    color: #475977;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.book-editorial-strong {
    font-weight: 700;
    color: #1f2c42;
}

.book-editorial-text:last-child {
    margin-bottom: 0;
}

.book-read-more-block {
    margin-top: 0.25rem;
}

.book-read-more-content {
    width: 100%;
}

.book-read-more-block[open] {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 0.6rem;
}

.book-read-more-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(8, 35, 85, 0.18);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    background: rgba(8, 35, 85, 0.04);
    color: #173a73;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.book-read-more-toggle::-webkit-details-marker {
    display: none;
}

.book-read-more-toggle::after {
    content: "+";
    font-weight: 800;
    line-height: 1;
}

.book-read-more-block[open] .book-read-more-toggle::after {
    content: "-";
}

.book-read-more-toggle:hover {
    background: rgba(8, 35, 85, 0.09);
}

.book-audience-list {
    margin: 0;
    padding-left: 1.15rem;
    color: #425470;
}

.book-audience-list li {
    margin-bottom: 0.95rem;
    line-height: 1.7;
}

.book-audience-list li:last-child {
    margin-bottom: 0;
}

.book-detail-card {
    box-shadow: 0 30px 60px rgba(5,37,87,0.08);
}

.book-spec-card {
    border: 1px solid rgba(5,37,87,0.08);
    box-shadow: 0 24px 50px rgba(5,37,87,0.05);
}

.book-spec-list li {
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(5,37,87,0.08);
}

.book-spec-list li:last-child {
    border-bottom: none;
}

.book-card {
    background: transparent;
}

.book-card-link:hover .book-card-shell,
.book-card-link:focus-visible .book-card-shell {
    transform: translateY(-6px);
    box-shadow: 0 28px 60px rgba(2,16,52,0.12);
    border-color: rgba(5, 37, 87, 0.2);
}

.book-card-image {
    border-radius: 18px;
    width: 100%;
    object-fit: cover;
}

.book-list-page .book-card {
    padding: 24px;
}

.book-list-page .book-card h2,
.book-list-page .book-card p {
    margin-bottom: 0.75rem;
}

.related-books-title {
    color: #172235;
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
}

.book-card-visual-small {
    min-height: 260px;
}

@media (max-width: 991px) {
    .book-page-container,
    .book-list-page {
        margin-top: 90px;
    }

    .book-list-hero {
        border-radius: 22px;
    }

    .book-cover-frame {
        max-width: 78%;
    }

    .book-meta-under-image {
        max-width: 78%;
    }
}

@media (max-width: 767px) {
    .book-list-title {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .book-card-content {
        padding: 1.2rem;
    }

    .book-editorial-card {
        padding: 1.2rem;
    }

    .book-meta-grid {
        grid-template-columns: 1fr;
    }

    .book-cover-frame {
        max-width: 88%;
    }

    .book-meta-under-image {
        max-width: 100%;
    }

    .book-hero-card {
        padding: 1.15rem;
        border-radius: 18px;
    }

    .book-provider-mark {
        min-width: 84px;
        font-size: 0.78rem;
    }

    .book-provider-logo {
        max-width: 76px;
    }

    .book-provider-text strong {
        font-size: 0.92rem;
    }

    .book-provider-text small {
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .book-action-button,
    .book-card-shell {
        transition: none;
    }
}

/* Badge de prix */
.book-price-tag span {
    display: inline-block;
    padding: 0.35rem 1.25rem;
    background: rgba(5, 37, 87, 0.05);
    border: 1px solid rgba(5, 37, 87, 0.1);
    border-radius: 50px;
    color: #152033;
}

/* Link téléchargement d'extrait */
.book-sample-download-link {
    color: #0a3d8f;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.2s ease;
}

.book-sample-download-link:hover {
    color: #052557;
    text-decoration: underline;
    transform: translateX(3px);
}



/* Badge Maison d'Édition */
.book-publisher-badge {
    padding: 0.4rem 0.9rem;
    background: linear-gradient(135deg, rgba(5, 37, 87, 0.08) 0%, rgba(10, 61, 143, 0.04) 100%);
    border: 1px solid rgba(5, 37, 87, 0.15);
    border-radius: 50px;
    color: #0a3d8f;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(5, 37, 87, 0.04);
}

.book-publisher-badge .publisher-icon {
    width: 22px;
    height: 22px;
    background: #0a3d8f;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.7rem;
}

.book-publisher-badge .publisher-text {
    font-weight: 500;
    color: #172235;
}

.book-publisher-badge .publisher-text strong {
    color: #0a3d8f;
    font-weight: 800;
}