/* =========================================================
   COMIXIO 9.3.9.142 - album et planches
   Couverture/liseuse a gauche, planches a droite, impression apres.
========================================================= */

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] {
    --cx142-ink: #141c2c;
    --cx142-muted: #667085;
    --cx142-line: #dce2e9;
    --cx142-soft: #f7f9fc;
    --cx142-pink: #ff2d6f;
    --cx142-pink-dark: #df1d5b;
    --cx142-cyan: #15a9c7;
    overflow: visible !important;
}

/* L'histoire active devient une vraie vue album. */
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured.storybd-library-story-box {
    display: grid !important;
    grid-template-columns: minmax(250px, 292px) minmax(0, 1fr) !important;
    grid-template-areas:
        "album boards"
        "notice notice"
        "offer offer" !important;
    column-gap: 34px !important;
    row-gap: 22px !important;
    margin-top: 44px !important;
    padding: 28px !important;
    overflow: visible !important;
    border: 1px solid rgba(20, 28, 44, .12) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 22px 52px rgba(20, 28, 44, .12) !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-perfect-hero {
    grid-area: album !important;
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    min-width: 0 !important;
    margin: -58px 0 0 !important;
    padding: 0 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-perfect-hero .storybd-library-featured-summary {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 292px !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 6px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-cover-read-link {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    overflow: hidden !important;
    border: 1px solid rgba(20, 28, 44, .18) !important;
    border-radius: 6px !important;
    background: var(--cx142-soft) !important;
    box-shadow: -8px 13px 0 rgba(20, 28, 44, .08), 0 22px 44px rgba(20, 28, 44, .18) !important;
    transform: rotate(-.35deg) !important;
    transform-origin: center bottom !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-cover-read-link:hover {
    transform: translateY(-3px) rotate(0deg) !important;
    box-shadow: -6px 14px 0 rgba(20, 28, 44, .07), 0 26px 48px rgba(20, 28, 44, .22) !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover > img,
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-cover-read-link > img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: cover !important;
    object-position: center !important;
    border: 0 !important;
    border-radius: 6px !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover > img {
    border: 1px solid rgba(20, 28, 44, .18) !important;
    box-shadow: -8px 13px 0 rgba(20, 28, 44, .08), 0 22px 44px rgba(20, 28, 44, .18) !important;
    transform: rotate(-.35deg) !important;
    transform-origin: center bottom !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-image-badge,
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-cover-read-badge,
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover > small,
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-status-badge,
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-story-progress,
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-continue,
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-toggle {
    display: none !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover .storybd-book-status-chip {
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 27px !important;
    margin: 12px 0 0 !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-cover-edit-open {
    min-height: 42px !important;
    margin-top: 8px !important;
    padding: 9px 11px !important;
    border: 1px solid rgba(20, 28, 44, .14) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 2px !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-active-kicker {
    color: var(--cx142-pink) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-title-row {
    display: block !important;
    width: 100% !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-title-row h2 {
    width: 100% !important;
    margin: 0 !important;
    color: var(--cx142-ink) !important;
    font-size: 28px !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-album-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--cx142-muted) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-album-meta > span::before {
    content: "" !important;
    display: inline-block !important;
    width: 7px !important;
    height: 7px !important;
    margin-right: 7px !important;
    border-radius: 50% !important;
    background: var(--cx142-cyan) !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-primary {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 11px !important;
    width: 100% !important;
    min-height: 66px !important;
    margin-top: 3px !important;
    padding: 10px 13px !important;
    border: 1px solid var(--cx142-ink) !important;
    border-radius: 8px !important;
    background: var(--cx142-ink) !important;
    color: #fff !important;
    box-shadow: 0 12px 24px rgba(20, 28, 44, .20) !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] a.storybd-library-reader-primary:hover {
    background: #202b40 !important;
    color: #fff !important;
    box-shadow: 0 16px 30px rgba(20, 28, 44, .26) !important;
    transform: translateY(-2px) !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-primary.is-disabled {
    border-color: var(--cx142-line) !important;
    background: #eef1f5 !important;
    color: #667085 !important;
    box-shadow: none !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-icon {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: var(--cx142-pink) !important;
    color: #fff !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-primary.is-disabled .storybd-library-reader-icon {
    background: #d6dce5 !important;
    color: #667085 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-icon svg {
    width: 21px !important;
    height: 21px !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-copy {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    min-width: 0 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-copy strong {
    color: inherit !important;
    font-size: 15px !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-copy small {
    color: inherit !important;
    font-size: 10px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    opacity: .74 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-primary > b {
    font-size: 20px !important;
    line-height: 1 !important;
}

/* Les planches occupent la partie droite. */
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured > .storybd-library-story-panel {
    grid-area: boards !important;
    display: block !important;
    min-width: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planches-head {
    align-items: flex-end !important;
    margin: 0 !important;
    padding: 0 2px 15px !important;
    border-bottom: 1px solid var(--cx142-line) !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planches-kicker {
    display: none !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planches-head h3 {
    color: var(--cx142-ink) !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    line-height: 1.1 !important;
    letter-spacing: 0 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planche-row {
    width: 100% !important;
    margin: 0 !important;
    padding: 18px 3px 22px !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planche-row > .storybd-library-card.storybd-planche-card,
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planche-row > .storybd-library-future-card {
    flex: 0 0 220px !important;
    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;
    border-radius: 8px !important;
}

/* Les messages et l'impression passent sous toute la zone album/planches. */
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured > .storybd-library-low-credit-row {
    grid-area: notice !important;
    margin: 0 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured > .storybd-library-print-offer {
    grid-area: offer !important;
    margin: 0 !important;
    border-top: 1px solid var(--cx142-line) !important;
}

/* Dans une ancienne histoire ouverte, l'offre vient aussi apres les planches. */
.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-other-card > .storybd-library-story-panel {
    display: flex !important;
    flex-direction: column !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-other-card > .storybd-library-story-panel[hidden] {
    display: none !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-other-card .storybd-library-planches-head {
    order: 10 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-other-card .storybd-library-planche-row {
    order: 20 !important;
}

.storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-other-card .storybd-library-print-offer {
    order: 30 !important;
    margin-top: 18px !important;
}

@media (max-width: 980px) {
    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured.storybd-library-story-box {
        grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) !important;
        column-gap: 24px !important;
        padding: 22px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover {
        max-width: 250px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planche-row > .storybd-library-card.storybd-planche-card,
    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planche-row > .storybd-library-future-card {
        flex-basis: 208px !important;
        width: 208px !important;
        min-width: 208px !important;
        max-width: 208px !important;
    }
}

@media (max-width: 760px) {
    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured.storybd-library-story-box {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        margin-top: 0 !important;
        padding: 14px !important;
        overflow: visible !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-perfect-hero {
        order: 10 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 6px 0 20px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-perfect-hero .storybd-library-featured-summary {
        align-items: center !important;
        gap: 16px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover {
        width: min(62vw, 220px) !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-cover-read-link {
        box-shadow: -6px 10px 0 rgba(20, 28, 44, .07), 0 18px 34px rgba(20, 28, 44, .18) !important;
        transform: none !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover > img {
        box-shadow: -6px 10px 0 rgba(20, 28, 44, .07), 0 18px 34px rgba(20, 28, 44, .18) !important;
        transform: none !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-copy {
        align-items: center !important;
        width: 100% !important;
        max-width: 430px !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-title-row h2 {
        font-size: 28px !important;
        text-align: center !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-album-meta {
        justify-content: center !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-primary {
        width: min(100%, 340px) !important;
        min-height: 64px !important;
        text-align: left !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured > .storybd-library-story-panel {
        order: 20 !important;
        overflow: visible !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured > .storybd-library-low-credit-row {
        order: 30 !important;
        margin-top: 14px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured > .storybd-library-print-offer {
        order: 40 !important;
        margin-top: 18px !important;
        padding-top: 18px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planches-head {
        align-items: flex-end !important;
        padding: 17px 0 12px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planches-head h3 {
        font-size: 20px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planche-row {
        padding: 15px 2px 20px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planche-row > .storybd-library-card.storybd-planche-card,
    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured .storybd-library-planche-row > .storybd-library-future-card {
        flex: 0 0 min(72vw, 244px) !important;
        width: min(72vw, 244px) !important;
        min-width: min(72vw, 244px) !important;
        max-width: min(72vw, 244px) !important;
    }
}

@media (max-width: 380px) {
    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-cover {
        width: 190px !important;
        max-width: 190px !important;
    }

    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-featured-title-row h2 {
        font-size: 24px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-cover-read-link,
    .storybd-v7.storybd-library[data-storybd-library-layout="9.3.9.142"] .storybd-library-reader-primary {
        transition: none !important;
    }
}
