.gentologie-flipbook-stage {
    position: relative;
    height: 100vh;
    width: 100vw;
    padding: 20px 20px 80px 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background-color: var(--color-gentologie-green, #1c3829);
}

/* Logo de marque persistant, en haut a gauche de la scene */
.gentologie-flipbook-brand {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    max-width: 140px;
}

.gentologie-flipbook-brand a {
    display: block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.gentologie-flipbook-brand img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.gentologie-flipbook-fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gentologie-flipbook-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gentologie-flipbook-cover,
.gentologie-flipbook-interior {
    position: relative;
    cursor: pointer;
}

.gentologie-flipbook-book-inner {
    width: 100%;
    height: 100%;
}

.gentologie-flipbook-page-item {
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.gentologie-flipbook-page-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    pointer-events: none;
}

.gentologie-flipbook-cover:hover .gentologie-flipbook-page-item {
    filter: brightness(1.03);
}

.gentologie-flipbook-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.gentologie-flipbook-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Barre d'indicateur de page + progression + plein ecran + miniatures */
.gentologie-flipbook-toolbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.gentologie-flipbook-page-indicator {
    color: #fff;
    font-size: 13px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.gentologie-flipbook-progress {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.gentologie-flipbook-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.gentologie-flipbook-progress::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.gentologie-flipbook-thumbs-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: #fff;
    background: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gentologie-flipbook-thumbs-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* Bande de miniatures horizontale deroulante */
.gentologie-flipbook-thumbs-strip {
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1001;
    scroll-behavior: smooth;
}

.gentologie-flipbook-thumb-item {
    flex-shrink: 0;
    width: 70px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.gentologie-flipbook-thumb-item.is-current {
    border-color: #fff;
}

.gentologie-flipbook-thumb-item img {
    width: 100%;
    display: block;
    aspect-ratio: 500 / 667;
    object-fit: cover;
}

/* Bannieres publicitaires gauche/droite, cachees sous un certain seuil
   d'ecran pour ne jamais empieter sur le lecteur */
.gentologie-flipbook-ad {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: none;
}

.gentologie-flipbook-ad-left {
    left: 20px;
}

.gentologie-flipbook-ad-right {
    right: 20px;
}

@media (min-width: 1600px) {
    .gentologie-flipbook-ad {
        display: block;
    }
}