/* ---------- Disposition générale ---------- */
.Tab_expansion {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    max-width: 90%;
    margin-top: 1rem;
    padding: 20px;
    background-color: #FFFFFF;
    border-radius: var(--rayon);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .55);
}

/* ---------- Menu latéral (boutons) ---------- */
.menu-col {
    flex: 0 0 250px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 20px 0 0;             /* remplace margin-left:50px */
}

.menu-col .button1 {
    width: 100%;
    min-height: 56px;
    font-family: Arial, sans-serif;
    line-height: 1.3;
}

.menu-col .button1:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* ---------- Zone de contenu ---------- */
.content-col {
    flex: 1 1 0;
    min-width: 0;                 /* évite le débordement horizontal des PDF */
    margin: 20px 0 0;
    background: #fff;             /* retirer si vous préférez voir le fond */
    border: 2px solid #000;
    box-sizing: border-box;
     border-radius: var(--rayon);
}

/* Texte d'accueil */
div#tete {
    height: auto;                 /* d101style impose 400px */
    padding: 1.5rem 1rem;
}
div#tete p {
    margin: 0;
    line-height: 1.6;
}

/* Blocs affichés par le JS (display:block inline) */
.bloc_menuid {
    position: relative;
    padding: 15px;
    box-sizing: border-box;
}

/* ---------- Synthèse : vidéo + questions ---------- */
.divsec_expansion {
    display: flex;
    flex-direction: column;
    margin: 0 0 1rem;
    text-align: left;
}

.Expansion_video {
    margin: 0 0 1rem;             /* remplace margin-left:150px */
    text-align: center;
}
.Expansion_video img {
    max-width: 100%;
    height: auto;                 /* neutralise width/height de la balise img */
}

/* ---------- Questions + réponses intégrées ---------- */
.questions {
    list-style: none;
    margin: 0;
    padding: 0;
}
.questions > li {
    margin: 0 0 .8rem;
    line-height: 1.4;
}
.questions > li > a {
    display: inline-block;
    padding: .35rem 0;            /* zone de clic plus confortable au doigt */
    font-weight: bold;
    font-size: clamp(1rem, 2.4vw, 1.15rem);
}

/* Réponse affichée sous sa question */
.bloc_divid {
    margin: .5rem 0 0;
    padding: .8rem 1rem;
    text-align: left;
    font-size: 20px;
    line-height: 1.55;
    background: #f5f5f5;
    border-left: 4px solid #000;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

/* ---------- Visionneuse PDF ---------- */
#pdf-container,
.pdf-container {
    width: 100%;
    height: 75vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

canvas {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}

/* Icône de téléchargement */
.download-icon {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
    line-height: 1;
    color: #000;
    text-decoration: none;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, .25);
    transition: background .2s, transform .15s;
}
.download-icon:hover,
.download-icon:focus-visible {
    background: #eee;
    transform: scale(1.08);
    outline: none;
}
.download-icon:focus-visible { box-shadow: 0 0 0 3px var(--bleu); }

/* =====================================================================
   TABLETTE / SMARTPHONE  (même seuil que le burger de menu.css)
   ===================================================================== */
@media (max-width: 900px) {

    div#conteneur1 {
        width: 100%;
        padding: 0 12px 1rem;
        box-sizing: border-box;
    }
    #conteneur1 h1 {
        width: 100%;
        max-width: none;
        margin-top: .8rem;
    }

    .Tab_expansion {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 0 12px;
        margin-top: .6rem;
    }

    /* Boutons : grille 2 colonnes */
    .menu-col {
        flex: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 0;
    }
    .menu-col .button1 {
        font-size: 14px;
        padding: 10px 6px;
    }

    .content-col {
        margin: 0;
    }

    .bloc_menuid {
        padding: 10px;
    }

    #menuid2, #menuid3, #menuid4 {
        padding-top: 58px;
    }

    #pdf-container,
    .pdf-container {
        height: 70vh !important;
        height: 70dvh !important; /* navigateurs récents : tient compte de la barre d'adresse */
    }

    .bloc_divid {
        padding: .8rem;
        font-size: 1rem;
    }
}

/* Petits téléphones : boutons en 1 colonne */
@media (max-width: 480px) {
    .menu-col {
        grid-template-columns: 1fr;
    }
}

/* Écrans larges : un peu plus d'air */
@media (min-width: 1500px) {
    .Tab_expansion {
        max-width: 1600px;
    }
}
