body {
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.container-fluid {
    padding: 0;
}

.row {
    margin: 0;
}

.col-12 {
    padding: 0;
}

.book {
    margin: 0;
    background-color: #f8f9fa;
}

.page {
    background-color: white;
    border: 1px solid #ddd;
}

.page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.page canvas {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Styles pour mobile */
@media (max-width: 768px) {
    .book {
        margin: 0;
    }

    html, body {
        overflow-y: auto !important;
        position: static !important;
        height: auto !important;
    }

    .swipe-indicator {
        position: sticky;
        top: 20px;
        z-index: 1000;
    }

    .swipe-text {
        display: inline-block;
        padding: 8px 16px;
        background-color: rgba(0, 0, 0, 0.7);
        color: white;
        border-radius: 20px;
        font-size: 14px;
        animation: fadeInOut 2s infinite;
    }

    @keyframes fadeInOut {
        0% { opacity: 0; }
        50% { opacity: 1; }
        100% { opacity: 0; }
    }
}

.cover {
    background: linear-gradient(45deg, #f3f3f3, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.cover h1 {
    font-size: 2.5em;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.error-message {
    color: red;
    text-align: center;
    padding: 20px;
    font-size: 1.2em;
}

/* Styles pour la page de bienvenue */
.welcome-page {
    background-color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    color: #ffffff !important;
}

.welcome-content {
    max-width: 80%;
    z-index: 2;
}

.welcome-content h1 {
    font-size: 2.5em;
    color: #ffffff !important;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.welcome-content p {
    font-size: 1.5em;
    color: #ffffff !important;
    margin-bottom: 15px;
}

.instruction {
    font-size: 1.2em !important;
    color: #cccccc !important;
    font-style: italic;
    margin-top: 30px;
}

/* Styles pour l'animation de tournage */
.turning {
    transition: transform 0.4s ease-out;
}

/* Indicateur de swipe pour mobile */
.swipe-indicator {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 1000;
    pointer-events: none;
}

.swipe-text {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
} 