/* Style global */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

/* Container : 3 colonnes sur PC */
.container {
    display: flex;
    flex-direction: row;
    height: 100vh;
    flex-wrap: nowrap;
}

/* Chaque section */
.bio, .lecture, .oeuvres {
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
    position: relative;
    min-width: 0; /* évite que les colonnes forcent la largeur */
}

/* Couleurs de fond */
.bio {
    background-color: #f9f9ff;
}
.lecture {
    background-color: #fff9f0;
}
.oeuvres {
    background-color: #f0fff0;
}

/* Titres fixes */
h2 {
    margin: 0;
    padding: 8px;
    background-color: #ffe0d0;
    border-bottom: 1px solid #ccc;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Iframes : remplissent l’espace restant sur PC */
.bio iframe, .lecture iframe, .oeuvres iframe {
    width: 100%;
    flex-grow: 1;
    border: none;
}

/* Lecture : hauteur mini pour image haut-parleur */
.lecture iframe {
    min-height: 250px;
}

/* Téléphone : blocs superposés */
@media screen and (max-width: 768px) {
    .container {
        flex-direction: column !important; /* forcer vertical */
        height: auto;
    }

    .bio, .lecture, .oeuvres {
        width: 100% !important;
        height: auto;
    }

    .bio iframe, .lecture iframe, .oeuvres iframe {
        width: 100% !important;
        height: auto;
        flex-grow: 0;
        min-height: 220px;
    }

    .lecture iframe {
        min-height: 225px;
    }
}
