/* Cacher les deux divs par défaut */
#histoire-pc, #histoire-smart {
    display: none;
}

/* Afficher #histoire-pc pour les écrans larges (PC) */
@media screen and (min-width: 1000px) {
    #histoire-pc {
        display: block;
		margin: auto;
    }

    #pdfViewer {
        border-radius: 20px;
        margin: auto;
        width: 100%;
        height: auto;
        /*border: 1px solid #ccc;*/
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #pdfViewer canvas {
        max-width: 90%; /* Plus petit sur PC */
        height: auto;
        border-radius: 10px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        padding: 10px;
        background: #f9f9f9;
    }
}

/* Afficher #histoire-smart pour les écrans plus petits (smartphones) */
@media screen and (max-width: 1000px) {
    #histoire-smart {
        display: block;
        width: 95%; /* S'assurer que le conteneur prend toute la largeur */
        margin: auto; /* Annule les marges par défaut */
        padding: 0; /* Annule le padding par défaut */
    }

    #pdfViewer {
        border-radius: 20px;
        margin: auto;
        width: 100%;
        height: auto;
        /*border: 1px solid #ccc;*/
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #pdfViewer canvas {
        max-width: 90%; /* Ajuste la taille pour mobile */
        height: auto;
        border-radius: 10px;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        padding: 10px;
        background: #f9f9f9;
    }
}
