/* =====================================================================
   Formation Slider Block — frontend.css (Swiper)
   ===================================================================== */

/* ── Wrapper ── */
.fsb-wrapper {
    --fsb-card-h: 500px;
    --fsb-radius: 30px;
    position: relative;
    padding-block: 24px;
}

/* ── Filtres ── */
.fsb-filters {
        display: flex;
    gap: 10px;
    flex-wrap: wrap;
  
}

.fsb-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 9px 9px;
    border: 1.5px solid rgba(7, 21, 84, 1);
    border-radius: 999px;
    background: transparent;
    color: rgba(7, 21, 84, 1);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
button.fsb-filter-btn svg {
    width: 15px;
    height: 15px;
}
button.fsb-filter-btn svg path{
    stroke: rgba(7, 21, 84, 1);
}
.fsb-filter-btn[aria-pressed="true"] svg path{
    stroke: #fff;
}
.fsb-filter-btn:hover {
    background: rgba(26, 39, 68, 0.08);
}

.fsb-filter-btn[aria-pressed="true"] {
    background: rgba(7, 21, 84, 1);
    color: #fff;
}

.fsb-filter-icon {
    display: flex;
    align-items: center;
}

/* ── Swiper overrides ── */
.fsb-wrapper .swiper {
    padding-bottom: 8px;
}

/* ── Carte ── */
.fsb-card {
    height: var(--fsb-card-h) !important;
    border-radius: var(--fsb-radius);
    overflow: hidden;
    background-color: rgba(7, 21, 84, 1);
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    position: relative;
}

.fsb-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 48.54%, #000000 87.08%);
    pointer-events: none;
}

.fsb-card-inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

/* ── Badges ── */
.fsb-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fsb-badge {
       display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #ffff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 1);
}

.fsb-badge-icon {
    display: flex;
    align-items: center;
}

/* ── Footer carte ── */
.fsb-card-footer {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fsb-niveau {
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.fsb-card-title {
        margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.25;
    max-width: 260px;
}

.fsb-card-title a {
    color: inherit;
    text-decoration: none;
}

.fsb-card-title a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fsb-certification {
       display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    line-height: 1.4;
    color: #fff;
    font-weight: 500;
    font-size: 14px;
}

.fsb-certification svg {
    flex-shrink: 0;
    margin-top: -2px;
}

/* ── Navigation ── */
.fsb-nav-btns {
        display: flex;
    justify-content: flex-end;
    gap: 8px;
   
}
.flex-top-formations {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-right: var(--wp--preset--spacing--large);
}
.fsb-nav-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    background: rgba(7, 21, 84, 1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.fsb-nav-btn:hover {
    background: #2c3e6e;
    transform: scale(1.06);
}

.fsb-nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
    transform: none;
}
/* Lien couvrant toute la carte */
.fsb-card-link {
    position: absolute;
    inset: 0;
    z-index: 3;
}
.fsb-wrapper.wp-block-ircom-formation-slider {
    position: relative;
}
/* ── Responsive hauteur carte ── */
button.fsb-next-fsb-10.fsb-nav-btn svg {
    margin-left: 2px;
}

button.fsb-prev-fsb-10.fsb-nav-btn svg {
    margin-right: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .fsb-wrapper .swiper { transition: none; }
}
