.itf-shortcode-formations {
    margin: 2rem auto;
    max-width: 1180px;
    padding: 0 1rem;
}

.itf-shortcode-formations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.itf-shortcode-formation-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background: rgba(10,16,28,.78);
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
    color: #eef3ff;
    padding: 1rem;
}

.itf-shortcode-formation-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: .8rem;
}

.itf-shortcode-formation-card h3 {
    margin: .2rem 0 .5rem;
    font-size: 1.08rem;
}

.itf-shortcode-formation-card p {
    min-height: 48px;
    margin: 0 0 .9rem;
    color: #cbd6ea;
}

.itf-shortcode-btn,
.itf-shortcode-btn-special {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .55rem .9rem;
    background: #5f78ff;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.itf-shortcode-duo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.itf-shortcode-special-vignette {
    overflow: hidden;
    min-height: 260px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.14);
    background: #101827;
    box-shadow: 0 20px 50px rgba(0,0,0,.3);
}

.itf-shortcode-special-header {
    min-height: 260px;
    background-size: cover;
    background-position: center;
}

.itf-shortcode-special-overlay {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.4rem;
    background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.82));
    color: #fff;
}

.itf-shortcode-special-overlay h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    line-height: 1.05;
}

.itf-shortcode-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

@media (max-width: 680px) {
    .itf-shortcode-formation-card img,
    .itf-shortcode-special-header,
    .itf-shortcode-special-overlay {
        min-height: 210px;
    }
}
