/* ===== RÉINITIALISATION COMPLÈTE ===== */
html, body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden; 
    background-color: #000000; 
}
/* ===== STYLE DE BASE (ORDINATEUR) ===== */
html, body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: #000000;
}

/* Correction Safari pour les images */
.scroll-page img:not(.first-image) {
    width: 100vw;
    height: 100vh;
    height: -webkit-fill-available; /* ← correction Safari */
    object-fit: contain; /* ← contain au lieu de cover pour ne plus couper */
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    /* Style des boutons sur mobile */
    .buttonClass {
        font-size: 10px !important;
        width: 80px !important;
        height: 35px !important;
        line-height: 35px !important;
    }

    /* Page 3 : Boutons "Exemple" et "Son" */
    .bouton-exemple {
        position: absolute !important;
        top: 15% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .bouton-son {
        position: absolute !important;
        top: 30% !important;
        left: 110% !important;
        transform: translateX(-50%) !important;
    }

    .bouton-soignants20 { top: 80% !important; left: 80% !important; transform: translateX(-50%) !important;}

    /* Page 25 */
.bouton-elio25 { top: 75% !important; left: 110% !important; transform: translateX(-50%) !important;}
    } 
    /* Ajuste la taille des boutons audio pour les mobiles */
    .audio-controls {
        flex-direction: row !important; /* Les boutons sont en ligne */
        gap: 5px !important;
        bottom: 10px !important;
        right: 10px !important;
        width: auto !important;
    }

    .buttonClass {
        font-size: 12px !important; /* Réduis la taille de la police */
        width: 100px !important; /* Réduis la largeur des boutons */
        height: 35px !important;
        line-height: 35px !important;
    }

    /* Ajuste la bande de défilement pour les mobiles */
    .bande-defilement {
        height: 100vh !important;
        overflow-y: auto !important;
    }
    /* Page 20 */
.bouton-soignants20 { top: 55% !important; left: 60% !important; }
/* ===== STYLE DU DÉFILEMENT HORIZONTAL ===== */
.bande-defilement {
    display: flex;
    overflow-x: auto; 
    overflow-y: hidden; 
    scroll-behavior: smooth;
    height: 100vh;
    width: 100vw;
}

/* ===== STYLE DES PAGES ===== */
.scroll-page {
    display: flex;
    align-items: center; /* Centre verticalement */
    justify-content: center; /* Centre horizontalement */
    min-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    background-color: #000000; /* Fond noir uni */
}

/* ===== STYLE DES PAGES (REMPLIT TOUT) ===== */
.scroll-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-color: #000000;
}

/* ===== STYLE DE LA PREMIÈRE IMAGE (DÉCALAGE VERS LA DROITE) ===== */
.first-image {
    margin-left: 5vw; /* Décale l'image de 5% vers la droite */
    width: 90vw; /* Ajuste la largeur */
    height: 85vh; /* Ajuste la hauteur */
    object-fit: cover;
}

/* ===== STYLE DES AUTRES IMAGES (CENTRAGE) ===== */
.scroll-page img:not(.first-image) {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border-radius: 0;
    touch-action: manipulation;
}
/* ===== STYLE PERSONNALISÉ DE TES BOUTONS (GRIS/NOIR) ===== */
.buttonClass {
    font-size: 15px;
    font-family: 'Courier New', monospace;
    width: 140px;
    height: 50px;
    border-width: 1px;
    color: #fff;
    border-color: rgba(0, 0, 0, 1);
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0px 0px 0px 2px rgba(228, 215, 215, 1);
    text-shadow: 0px 1px 0px rgba(155, 155, 155, 1);
    background: linear-gradient(rgba(155, 155, 155, 1), rgba(0, 0, 0, 1));
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 50px; /* Centre le texte verticalement */
    transition: all 0.3s ease;
}

/* Effet au survol */
.buttonClass:hover {
    background: linear-gradient(rgba(0, 0, 0, 1), rgba(155, 155, 155, 1));
    transform: translateY(-2px);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Effet au clic */
.buttonClass:active {
    transform: translateY(0);
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Style pour le bouton d'ambiance */
.audio-ambiance-button {
    background: linear-gradient(rgba(52, 73, 94, 1), rgba(0, 0, 0, 1)) !important;
}