@charset "UTF-8";

.mdr-formation-grid {
    padding: var(--mdr--padding-vertical) var(--mdr--padding-horizontal);
    
    color: var(--legible-color, var(--mdr--dark-grey));
}
.mdr-formation-grid__grid {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 323px), 1fr));
    margin: 0px auto;
    max-width: 1115px;
    color: var(--mdr--dark-grey);
}


.mdr-formation-grid__title {
    text-align:center;
    margin-bottom:90px;
}

.mdr-formation-grid__grid__item {
    display: grid;
    grid-template-areas: "item";
    border-radius: 5px;
    overflow: hidden;
}

.mdr-formation-grid__item__content {
    grid-area: item;
    
    padding: 30px;
    
    display:flex;
    flex-flow: column nowrap;
    justify-content: space-between;
    
    background-color:var(--mdr--light-beige--40);
}
.mdr-formation-grid:not([style="background-color: var(--mdr--pure-white);"]) .mdr-formation-grid__item__content {
    background-color: var(--mdr--pure-white--40);
}


.mdr-formation-grid__item-hover {
    grid-area: item;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    row-gap: 40px;
    padding: 30px;
    background-color: var(--mdr--light-beige);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out 0s;
}
.mdr-formation-grid:not([style="background-color: var(--mdr--pure-white);"]) .mdr-formation-grid__item-hover {
    background-color: var(--mdr--pure-white);
}

.mdr-formation-grid__grid__item.active .mdr-formation-grid__item-hover {
    opacity:1;
    pointer-events: all;
}


.mdr-formation-grid__grid__item__title {
    font-family: "Black Mango";
    font-weight: 400;
    font-size: 20px;
    line-height: 1.1em;
    margin-bottom:20px;
    
    overflow-wrap: anywhere;
}

.mdr-formation-grid__item__cta {
    text-align: center;
    margin-top: 40px;
}

.mdr-formation-grid__plus {
    margin-top: 100px;
    padding: 10px 15px;
    color: var(--mdr--pure-white);
    background-color: #101010;
    border-radius: 5px;
    width:fit-content;
}

.mdr-formation-grid__grid__item__excerpt {
    display: block;
    font-size:0.8rem;
    text-transform: uppercase;
    font-weight:600;
}


@media screen and (min-width: 768px) { 
    .mdr-formation-grid__grid__item__title {
        font-size: 30px;
        line-height: 1em;
    }
    .mdr-formation-grid__grid {
        grid-gap: 20px 27px;
    }
    /*.mdr-formation-grid__grid__item {*/
    /*    min-height: 480px;*/
    /*}*/
}