/* =====================================================
   JOBSTATION — FEATURED V2
   VERSION RESPONSIVE DESKTOP / TABLETTE / MOBILE
===================================================== */

.featured {
    width: 100%;
    min-width: 0;
    padding: 70px 0 !important;
    background: #ffffff;
    overflow: hidden;
}

.featured,
.featured * {
    box-sizing: border-box;
}

/* ---------- HEADER ---------- */

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 30px;
    min-width: 0;
}

.featured-header > div {
    min-width: 0;
    max-width: 100%;
}

.featured-header h2 {
    max-width: 100%;
    margin: 10px 0;
    color: #0b1930;
    font-size: clamp(25px, 2.5vw, 34px);
    line-height: 1.2;
    overflow-wrap: break-word;
}

.featured-header p {
    max-width: 600px;
    margin: 0;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.featured-header a {
    flex-shrink: 0;
}

/* ---------- FILTRES ---------- */

.featured-filters,
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
    margin: 25px 0 35px;
}

.featured-filters button,
.filters .filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 38px;
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    background: #eef3fa;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.featured-filters button:hover,
.filters .filter:hover {
    background: #e2e8f0;
}

.featured-filters button.active,
.filters .filter.active {
    background: #ff7a00;
    color: #ffffff;
}

/* ---------- GRILLE ---------- */

.featured-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 24px !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.featured-grid > * {
    min-width: 0;
    max-width: 100%;
}

/* ---------- TABLETTE ---------- */

@media (max-width: 1024px) {

    .featured {
        padding: 60px 0 !important;
    }

    .featured-header {
        gap: 20px;
    }

    .featured-grid {
        gap: 18px !important;
    }
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {

    .featured {
        padding: 42px 0 !important;
    }

    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .featured-header h2 {
        font-size: 25px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .featured-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .featured-header a {
        font-size: 14px;
    }

    .featured-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }

    .featured-grid > * {
        width: 100%;
    }
}

/* ---------- PETITS MOBILES ---------- */

@media (max-width: 600px) {

    .featured {
        padding: 35px 0 !important;
    }

    .featured .container {
        width: calc(100% - 28px);
        max-width: 100%;
        margin-inline: auto;
    }

    .featured-filters,
    .filters {
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        margin: 20px 0 25px;
        padding: 3px 2px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .featured-filters::-webkit-scrollbar,
    .filters::-webkit-scrollbar {
        display: none;
    }

    .featured-filters button,
    .filters .filter {
        min-height: 36px;
        padding: 9px 14px;
        font-size: 12px;
        scroll-snap-align: start;
    }

    .featured-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px !important;
    }
}

/* ---------- ACCESSIBILITÉ ---------- */

@media (prefers-reduced-motion: reduce) {

    .featured-filters button,
    .filters .filter {
        transition: none;
    }
}