/* =============================================
   Ressources — Landing Sylius
   ============================================= */

.flexible-ressources {
    background: #EBF4FF;
    padding: 48px 20px;
}

.flexible-ressources__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flexible-ressources__titre {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 700;
    font-size: 50px;
    line-height: 1;
    letter-spacing: 0;
    color: var(--color-navy);
    text-align: left;
    margin: 0 0 16px;
}

/* ── Card featured (1ère) ───────────────────── */

.flexible-ressources__featured {
    display: flex;
    align-items: stretch;
    gap: 70px;
    background: var(--color-white);
    border-radius: 20px;
    padding: 20px 20px 20px 30px;
    height: 273px;
    box-sizing: border-box;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.flexible-ressources__featured:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.flexible-ressources__featured-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.flexible-ressources__featured-img-wrap {
    width: 380px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
}

.flexible-ressources__featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Grille 3 colonnes ──────────────────────── */

.flexible-ressources__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ── Card secondaire ────────────────────────── */

.flexible-ressources__card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--color-white);
    border-radius: 20px;
    padding: 20px 20px 20px 30px;
    height: 317px;
    box-sizing: border-box;
    text-decoration: none;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.flexible-ressources__card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-3px);
}

.flexible-ressources__card-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    overflow: hidden;
}

/* ── Titre ──────────────────────────────────── */

.flexible-ressources__card-titre {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    color: var(--color-navy);
    text-transform: uppercase;
    margin: 0;
}

/* ── Excerpt ────────────────────────────────── */

.flexible-ressources__card-excerpt {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.35;
    letter-spacing: 0;
    color: var(--color-navy);
    margin: 0;
}

.flexible-ressources__featured .flexible-ressources__card-excerpt {
    height: 66px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.flexible-ressources__featured .flexible-ressources__card-excerpt::-webkit-scrollbar {
    display: none;
}

.flexible-ressources__card .flexible-ressources__card-excerpt {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.flexible-ressources__card .flexible-ressources__card-excerpt::-webkit-scrollbar {
    display: none;
}

/* ── Lire l'article ─────────────────────────── */

.flexible-ressources__card-lire {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-blue);
    flex-shrink: 0;
}

/* ── Tags ───────────────────────────────────── */

.flexible-ressources__card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 4px;
    min-height: 33px;
}

.flexible-ressources__tag {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--blue-text);
    background: #2D6DBB1A;
    border-radius: 4px;
    padding: 5px 10px;
    height: 33px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* ── Tablette ───────────────────────────────── */

@media (max-width: 1024px) {
    .flexible-ressources__featured-img-wrap {
        width: 280px;
    }

    .flexible-ressources__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Mobile ─────────────────────────────────── */

@media (max-width: 768px) {
    .flexible-ressources {
        padding: 48px 20px;
    }

    .flexible-ressources__titre {
        font-size: 22px;
    }

    .flexible-ressources__featured {
        flex-direction: column;
        padding: 20px;
        height: auto !important;
        gap: 20px;
    }

    .flexible-ressources__featured .flexible-ressources__card-excerpt {
        height: auto !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 3 !important;
        overflow: hidden !important;
    }

    .flexible-ressources__featured-img-wrap {
        width: 100%;
        height: 200px;
        order: -1;
    }

    .flexible-ressources__grid {
        grid-template-columns: 1fr;
    }

    .flexible-ressources__card {
        height: auto !important;
        justify-content: flex-start !important;
        gap: 16px !important;
    }

    .flexible-ressources__card-body {
        height: auto !important;
    }

    .flexible-ressources__card .flexible-ressources__card-excerpt {
        height: auto !important;
        display: -webkit-box !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 4 !important;
        overflow: hidden !important;
    }
}
