.marsas-trombinoscope {
    max-width: 1200px;
    margin: auto;
    font-family: Arial, sans-serif;
}

.row-trombinoscope {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.encadrant {
    width: 23%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgb(255 105 0 / 0.5);
    padding: 15px;
    box-sizing: border-box;
    text-align: center;
}

.encadrant .photo img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.nom-prenom {
    display: flex;
    flex-direction: column; /* prénom au-dessus du nom */
    align-items: center;    /* centre horizontalement les deux */
    justify-content: center;
    color: #ff6600;          /* orange */
    font-weight: 700;
    font-size: 1.1em;
    margin: 10px 0 8px 0;
}

.prenom {
    white-space: nowrap;
    text-transform: capitalize;
}

.nom {
    white-space: nowrap;
    text-transform: uppercase;
}

.diplomes span.diplome,
.fonctions span.fonction {
    display: inline-block;
    margin: 2px 5px 2px 0;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
}

.diplomes {
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .row-trombinoscope {
        flex-wrap: wrap;
    }
    .encadrant {
        width: 48%;
        margin-bottom: 15px;
    }
}
