.grille-profils {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.grille-profils.entreprises-formatrices
{

}
.grille-profils.entreprises-formatrices h4
{
    position: absolute;
    top: -20px;
    left: 0;
    z-index: 9;
    font-size: var(--e-global-typography-3db8c94-font-size);
    color: var(--e-global-color-secondary);
}
.grille-profils.entreprises-formatrices .profil-item
{
    overflow: visible;
    padding-top: 30px;
}

@media screen and (max-width: 800px)
{
    .grille-profils.entreprises-formatrices h4
    {
        font-size: 1rem;
        top: 0;
    }
}

.profil-item {
    flex: 0 1 calc(25% - 37.5px);
    background: white;
    border-radius: 0; 
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.profil-image {
    clip-path: polygon(50px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 50px);
    overflow: hidden;
}

.profil-image img 
{
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
}

.profil-content {
    background: var(--e-global-color-primary);
    color: white;
    padding: 20px;
    flex-grow: 1;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), calc(100% - 50px) 100%, 0 100%);
    display: flex;
    flex-direction: column;
}

.profil-content h3 {
    margin: 0 0 10px;
    font-size: var(--e-global-typography-3db8c94-font-size);
}

.profil-poste {
    font-size: var(--e-global-typography-fca9fd1-font-size);
    margin-bottom: 10px;
}

.profil-email
{
    font-size: var(--e-global-typography-fca9fd1-font-size);
    margin-top: auto;
}

.profil-content a {
    color: #fff;
    text-decoration: underline;
    font-size: 0.85rem;
    word-break: break-word;
}

.profil-linkedin {
    position: absolute;
    bottom: 0;
    right: 0;
}

.profil-linkedin img {
    width: 20px;
    height: 20px;
}

@media screen and (max-width: 1024px )
{
    .grille-profils
    {
        gap: 30px;
    }
    .profil-item
    {
        flex: 0 1 calc(33.3% - 20px);
    }
}

@media screen and (max-width: 800px )
{
    .grille-profils
    {
        gap: 15px;
    }
    .profil-item
    {
        flex: 0 1 calc(50% - 7.5px); 
    }
    .profil-content
    {
        padding: 15px;
    }
}



.grille-profils.mode-sans-image
{
    gap: 30px;
}
.grille-profils.mode-sans-image .profil-item
{
    flex: 0 1 calc(33.33% - 20px);
}
.grille-profils.mode-sans-image .profil-item.profil-item-president
{
    flex: 1 1 100%; 
}
.grille-profils.mode-sans-image .profil-item .profil-content
{
    padding: 15px;
}

.profil-content-simplifie
{
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 20px;
}
.profil-content-simplifie img
{
    max-width: 20px;
}

.profil-content-simplifie .profil-container
{
    display: flex;
    flex-direction: column;
}
.profil-content-simplifie .profil-nom
{
    color: var(--e-global-color-primary);
    font-size: var(--e-global-typography-5a8d07b-font-size);
}
.profil-content-simplifie .profil-president
{
    font-style: italic;
    font-size: var(--e-global-typography-fca9fd1-font-size);
    color: var(--e-global-color-secondary);
    line-height: 1.3rem;
}

@media screen and (max-width: 800px)
{
    .grille-profils.mode-sans-image
    {
        gap: 20px;
    }
    .grille-profils.mode-sans-image .profil-item
    {
        flex: 0 1 calc(50% - 10px);
    }
    .profil-content-simplifie
    {
        gap: 15px;
    }
    .profil-content-simplifie img
    {
        max-width: 18px; 
    }
}



