/* ============================================================
   MASQUER LE LOOP GRID ELEMENTOR
   Le système AJAX prend le relais intégralement
   ============================================================ */

   .elementor-widget-loop-grid {
    display: none !important;
}


/* ============================================================
   FILTER BAR
   ============================================================ */

.is-filter-bar {
    width: 100%;
    margin-bottom: 6rem;
}

.is-filter-bar__row {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ─── Select wrapper ─── */
.is-filter-bar__select-wrap {
    position: relative;
    flex: 1;
    max-width: 100%;
}

/* ─── Select ─── */
.is-filter-bar__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    border-radius: 999px;
    padding: 14px 48px 14px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #202F44;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    height: auto;
    box-shadow: none;
    line-height: 1.4;
}

.is-filter-bar__select.is-placeholder {
    color: #575859;
}

.is-filter-bar__select:hover {
    border-color: #575859;
}

.is-filter-bar__select:focus {
    outline: none;
    border-color: #575859;
    box-shadow: 0 0 0 3px rgba(80, 140, 216, 0.1);
}

.is-filter-bar__select option {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #202F44;
}

.is-filter-bar__select option[value=""] {
    color: #575859;
}

/* ─── Chevron ─── */
.is-filter-bar__chevron {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #575859;
    pointer-events: none;
    transition: transform 0.25s ease, color 0.25s ease;
}

.is-filter-bar__select:focus ~ .is-filter-bar__chevron {
    transform: translateY(-50%) rotate(180deg);
}

/* ─── Compteur ─── */
.is-filter-bar__count {
    margin-top: 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6B7280;
}

.is-filter-bar__count strong {
    color: #202F44;
    font-weight: 600;
}


/* ============================================================
   CARDS GRID
   ============================================================ */

#is-filter-results {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    min-height: 200px;
}

.is-card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 496px;
}

/* ─── Image ─── */
.is-card__img-wrap {
    overflow: hidden;
    height: 230px;
    flex-shrink: 0;
}

.is-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── Body ─── */
.is-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1rem;
    background: #F8F6F7;
    flex-grow: 1;
    border-radius: 0 0 80px 0;
}

/* ─── Badges ─── */
.is-card__badges {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.is-card__badge {
    background: rgba(183, 223, 255, 0.48);
    padding: 4px 12px;
    border-radius: 8px;
    color: #202F44;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    border: 1px solid transparent;
}

/* ─── Titre : typo Elementor + clamp 3 lignes ─── */
.is-card__title {
    font-family: var(--e-global-typography-14dffb6-font-family), Sans-serif;
    font-size: var(--e-global-typography-14dffb6-font-size);
    font-weight: var(--e-global-typography-14dffb6-font-weight);
    line-height: var(--e-global-typography-14dffb6-line-height);
    color: #202F44;
    margin: 1rem 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
}


/* ============================================================
   PAGINATION — 1 | 2 | 3 | ... | max  >
   ============================================================ */
 
   .is-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 2em;
    padding-bottom: 1em;
    grid-column: 1 / -1;
}
 
.is-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    border: solid 1px transparent;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400!important;
    color: #575859;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    line-height: 1;
}

 
.is-pagination__btn:hover {
    color: #508CD8;
    background-color: transparent;
    border: solid 1px transparent;
}
 
.is-pagination__btn--active {
    color: #508CD8 !important;
    font-weight: 600!important;
    pointer-events: none;
}
 
/* Séparateur | */
.is-pagination__sep {
    color: #575859;
    font-size: 15px;
    font-weight: 300;
    user-select: none;
    padding: 0 2px;
}
 
/* Points de suspension ... */
.is-pagination__dots {
    color: #575859;
    font-size: 15px;
    font-weight: 400;
    user-select: none;
    padding: 12px 24px;
}
 
/* Flèche suivant > */
.is-pagination__next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: solid 1px transparent;
    background: transparent;
    color: #508CD8!important;
    cursor: pointer;
    padding: 0;
    box-shadow: none;
    margin-left: 4px;
}
 
.is-pagination__next:hover {
    background-color: transparent;
    border: solid 1px transparent;
}

.is-pagination__next--active {
    background-color: transparent;
    border: solid 1px transparent;

}

.is-pagination__btn:active,
.is-pagination__btn:focus,
.is-pagination__btn:focus-visible {
    background: transparent;
    border: solid 1px transparent;
    box-shadow: none;
    outline: none;
}

.is-pagination__next:active,
.is-pagination__next:focus,
.is-pagination__next:focus-visible {
    background: transparent;
    border: solid 1px transparent;
    box-shadow: none;
    outline: none;
}

/* ============================================================
   LOADING
   ============================================================ */

.is-filter-loading {
    position: relative;
    min-height: 300px;
}

.is-filter-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #E5E7EB;
    border-top-color: #508CD8;
    border-radius: 50%;
    animation: is-spin 0.7s linear infinite;
}

@keyframes is-spin {
    to { transform: rotate(360deg); }
}

.is-filter-loading .is-card,
.is-filter-loading .is-pagination,
.is-filter-loading .is-filter-empty {
    opacity: 0.3;
    pointer-events: none;
}


/* ============================================================
   EMPTY
   ============================================================ */

.is-filter-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #6B7280;
    font-weight: 500;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
    #is-filter-results {
        grid-template-columns: repeat(2, 1fr);
    }

    .is-card__img-wrap {
        height: 200px;
    }

    .is-card {
        min-height: 439px;
    }
    .is-filter-bar {
        width: 100%;
        margin-bottom: 3rem;
    }
}

@media (max-width: 767px) {

    .is-filter-bar {
        min-width: 100%;
        width: 100%;
        margin-bottom: 3rem;
    }

    /* ─── Select wrapper ─── */
.is-filter-bar__select-wrap {
    position: relative;
    flex: 1;
    min-width: 100%;
}

    .is-filter-bar__row {
        flex-direction: column;
        gap: 12px;
    }

    .is-filter-bar__select {
        padding: 12px 44px 12px 20px;
        font-size: 14px;
    }

    #is-filter-results {
        grid-template-columns: 1fr;
    }

    .is-card {
        min-height: auto;
    }
    .is-card__title {
        max-width: 90%;
    }
}