/* Page Formations — filtres + cartes */

.lfds-formations {
    --lfds-orange: #eb6021;
    --lfds-orange-soft: #fdebe3;
    --lfds-ink: #1f2937;
    --lfds-muted: #6b7280;
    --lfds-line: #e5e7eb;
    --lfds-radius: 16px;
}

.lfds-formations-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 48px;
    padding: 0;
    list-style: none;
}

@media (min-width: 768px) {
    .lfds-formations-filters {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 64px;
    }
}

.lfds-formations-filters button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--lfds-line);
    border-radius: 999px;
    background: #fff;
    color: var(--lfds-muted);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.lfds-formations-filters button:hover {
    border-color: var(--lfds-orange);
    color: var(--lfds-orange);
}

.lfds-formations-filters button.is-active {
    background: var(--lfds-orange);
    border-color: var(--lfds-orange);
    color: #fff;
    box-shadow: 0 8px 20px rgba(235, 96, 33, 0.22);
}

.lfds-formations-panel {
    display: none;
}

.lfds-formations-panel.is-active {
    display: block;
}

.lfds-formations-heading {
    margin: 0 0 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--lfds-orange);
    color: var(--lfds-orange);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lfds-formations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

@media (min-width: 768px) {
    .lfds-formations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }
}

.lfds-formation-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--lfds-line);
    border-radius: var(--lfds-radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.lfds-formation-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.1);
}

.lfds-formation-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f3f4f6;
}

.lfds-formation-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lfds-formation-card__duration {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--lfds-orange);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.lfds-formation-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 22px 24px;
}

.lfds-formation-card__title {
    margin: 0 0 12px;
    color: var(--lfds-ink);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.lfds-formation-card__text {
    margin: 0 0 22px;
    color: var(--lfds-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.lfds-formation-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.lfds-formation-card__actions .btn {
    margin: 0;
}
