h1 {
    text-align: center;
    font-size: 40px;
}

.comite-container {
    cursor:pointer;
    height:200px;
    display:flex;
    flex-direction: row;
    box-sizing: border-box;
    margin:50px 20%;
    border-radius:15px;
    background:white;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    transition:opacity 0.15s ease-in-out;
}

.comite-container:hover {
    opacity:0.75;
}

.comite-picture-container {
    display:grid;
    align-content: center;
    width:400px;
    height:100%;
}

.comite-picture{
    height:200px;
    width: 400px;
    margin-left: auto;
    margin-right: auto;
    object-fit: cover;
    border-radius:15px 0 0 15px;

}

.comite-text-container {
    margin-left: 30px;
}

.comite-text-container {
    overflow-wrap: break-word;     /* coupe les mots trop longs */
    word-wrap: break-word;
    hyphens: auto;                 /* césure automatique */

    overflow: hidden;              /* cache ce qui dépasse la height */
    white-space: normal;           /* <-- permet les retours à la ligne */
    margin:15px;
}

@media only screen and (max-width: 1200px) {
    .comite-container {
        display:flex;
        flex-direction: column;
        height:auto;
        width:80%;
        margin:50px 10%;

    }
    .comite-picture-container {
        width:100%;
    }
    .comite-picture {
        border-radius:15px 15px 0 0;
        width:100%;

    }
    .comite-text-container {
        width:85%;

    }
}

@media only screen and (max-width: 850px) {
    h1 {
        text-align: center;
        font-size: 30px;
    }
    .comite-container {
        width:90%;
        margin:30px 5%;
    }
}

