/* Flipbook auto-hébergé — styles */

.cd-flipbook {
    display: flex;
    flex-direction: column;
    height: var(--cdfb-hauteur, 75vh);
    background: #1b2430;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.cd-flipbook:fullscreen {
    height: 100vh;
    border-radius: 0;
}

.cdfb-stage {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    min-height: 0;
}

.cdfb-book {
    width: 100%;
    height: 100%;
}

/* Image de page rendue par StPageFlip */
.cdfb-book .stf__item img {
    box-shadow: 0 4px 18px rgba(0, 0, 0, .35);
}

/* Loader */
.cdfb-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #cfd8dc;
    font-size: 14px;
    background: inherit;
    text-align: center;
    padding: 20px;
}

.cdfb-loader a {
    color: #4fc3f7;
}

.cdfb-bar {
    width: min(260px, 70%);
    height: 5px;
    background: rgba(255, 255, 255, .15);
    border-radius: 99px;
    overflow: hidden;
}

.cdfb-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: #4fc3f7;
    border-radius: 99px;
    transition: width .3s;
}

/* Barre d'outils */
.cdfb-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, .25);
}

.cdfb-count {
    color: #eceff1;
    font-size: 14px;
    min-width: 70px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cdfb-btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.cdfb-btn:hover {
    background: rgba(255, 255, 255, .28);
}

@media (max-width: 600px) {
    .cdfb-stage {
        padding: 8px;
    }
}
