/* =========================================================
   MODAL PRODUIT
   Aperçu / ajout depuis les listes catalogue
   ========================================================= */

.fclb_modal_product {
    width: calc(100% - 2rem);
    max-width: 1200px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.fclb_modal_product .modal-content {
    position: relative;
    max-height: calc(100vh - 2rem);
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--couleur-fond-bloc);
    color: var(--couleur-texte);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
}

.fclb_modal_product .modal-body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.5rem;
}

.fclb_modal_product_close {
    position: absolute;
    top: .8rem;
    right: .8rem;
    z-index: 20;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .9);
    background-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .10);
    opacity: .75;
}

.fclb_modal_product_close:hover,
.fclb_modal_product_close:focus {
    opacity: 1;
}

.fclb_modal_product #contenupopupProduit {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fclb_modal_product #contenupopupProduit > .row {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.fclb_modal_product .product-gallery,
.fclb_modal_product .product-details {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.fclb_modal_product img {
    max-width: 100%;
    height: auto;
}

/* couverture de page catégorie */
.fclb_catalog_header_cover {
    min-height: 420px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* =========================================================
   TABLETTE / MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .fclb_modal_product {
        width: calc(100% - 1.5rem);
        max-width: none;
        margin: .75rem auto;
    }

    .fclb_modal_product .modal-content {
        max-height: calc(100vh - 1.5rem);
    }

    .fclb_modal_product .modal-body {
        padding: 1.25rem;
    }
}


@media (max-width: 767.98px) {

    .fclb_modal_product {
        width: calc(100% - 1rem);
        margin: .5rem auto;
    }

    .fclb_modal_product .modal-content {
        max-height: calc(100vh - 1rem);
        border-radius: 14px;
    }

    .fclb_modal_product .modal-body {
        padding: 1rem;
    }

    .fclb_modal_product_close {
        top: .5rem;
        right: .5rem;
        width: 38px;
        height: 38px;
    }
}

/* =========================================================
   FILTRES CATALOGUE
   ========================================================= */

.fclb-filter {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.fclb-filter:last-child {
    border-bottom: 0;
}

.fclb-filter-title {
    margin-bottom: .65rem;
    color: var(--couleur-texte, #102f35);
    font-size: .95rem;
    font-weight: 600;
}


/* =========================================================
   LISTE / CHECKBOX
   ========================================================= */

.fclb-filter-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    max-height: 12rem;
    overflow-y: auto;
    padding-right: .3rem;
}

.fclb-filter-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 1.8rem;
}

.fclb-filter-item label {
    margin: 0;
    color: var(--couleur-texte, #102f35);
    font-size: .9rem;
    line-height: 1.3;
    cursor: pointer;
}

.fclb-filter-checkbox {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--couleur-principale, #4f7f3d);
    cursor: pointer;
}


/* =========================================================
   LISTE DÉROULANTE
   ========================================================= */

.fclb-filter-select {
    display: block;
    width: 100%;
    min-height: 2.5rem;
    padding: .45rem 2.2rem .45rem .75rem;
    color: var(--couleur-texte, #102f35);
    background-color: #fff;
    border: 1px solid rgba(16,47,53,.18);
    border-radius: .55rem;
    font: inherit;
    font-size: .9rem;
    cursor: pointer;
}

.fclb-filter-select:focus {
    border-color: var(--couleur-principale, #4f7f3d);
    outline: 0;
    box-shadow: 0 0 0 .18rem rgba(79,127,61,.12);
}


/* =========================================================
   PASTILLES
   ========================================================= */

.fclb-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.fclb-filter-pill-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.fclb-filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.15rem;
    padding: .35rem .8rem;
    margin: 0;
    color: var(--couleur-texte, #102f35);
    background: #fff;
    border: 1px solid rgba(16,47,53,.18);
    border-radius: 999px;
    font-size: .85rem;
    line-height: 1.15;
    cursor: pointer;
    user-select: none;
    transition:
            border-color .15s ease,
            background-color .15s ease,
            color .15s ease,
            box-shadow .15s ease;
}

.fclb-filter-pill:hover {
    border-color: var(--couleur-principale, #4f7f3d);
}

.fclb-filter-pill-input:checked + .fclb-filter-pill {
    color: var(--couleur-texte-principale, #fff);
    background: var(--couleur-principale, #4f7f3d);
    border-color: var(--couleur-principale, #4f7f3d);
}

.fclb-filter-pill-input:focus-visible + .fclb-filter-pill {
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(79,127,61,.18);
}


/* =========================================================
   FOURCHETTE / SLIDER
   ========================================================= */

.fclb-filter-range {
    padding: .35rem .65rem .15rem;
}

.fclb-filter-range-title {
    margin: .5rem 0 .35rem;
    color: var(--couleur-texte-secondaire, #5f6f7a);
    font-size: .8rem;
    font-weight: 600;
}

.fclb-filter-range .range-slider-ui {
    margin: .75rem .45rem 1rem;
}

.fclb-filter-range-inputs {
    display: flex;
    gap: .65rem;
    margin-top: .8rem;
}

.fclb-filter-range-field {
    display: flex;
    align-items: center;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(16,47,53,.18);
    border-radius: .5rem;
}

.fclb-filter-range-field span {
    flex: 0 0 auto;
    padding-left: .55rem;
    color: var(--couleur-texte-secondaire, #5f6f7a);
    font-size: .8rem;
}

.fclb-filter-range-field input {
    width: 100%;
    min-width: 0;
    padding: .4rem .5rem;
    color: var(--couleur-texte, #102f35);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: .85rem;
}


/* =========================================================
   NOUISLIDER - géométrie autonome des filtres
   ========================================================= */

.fclb-filter .range-slider-ui.noUi-target {
    position: relative;
    height: 5px !important;
    margin: 1.8rem .45rem 1rem;
    padding: 0 !important;
    background: rgba(16,47,53,.12) !important;
    border: 0 !important;
    border-radius: 999px;
    box-shadow: none !important;
}

.fclb-filter .range-slider-ui .noUi-base,
.fclb-filter .range-slider-ui .noUi-connects {
    width: 100%;
    height: 5px !important;
}

.fclb-filter .range-slider-ui .noUi-connects {
    position: absolute;
    top: 0 !important;
    left: 0;
    overflow: hidden;
    border-radius: 999px;
}

.fclb-filter .range-slider-ui .noUi-connect {
    height: 5px !important;
    background: var(--couleur-principale, #4f7f3d) !important;
}

.fclb-filter .range-slider-ui.noUi-horizontal .noUi-origin {
    top: 50% !important;
    height: 0 !important;
}

.fclb-filter .range-slider-ui.noUi-horizontal .noUi-handle {
    top: 10px !important;
    right: -10px !important;
    width: 21px !important;
    height: 21px !important;
    transform: translateY(-50%) !important;
    background: #fff !important;
    border: 2px solid var(--couleur-principale, #4f7f3d) !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.15) !important;
    cursor: grab;
}

.fclb-filter .range-slider-ui .noUi-handle::before,
.fclb-filter .range-slider-ui .noUi-handle::after {
    display: none !important;
}

.fclb-filter .range-slider-ui .noUi-tooltip {
    bottom: 145%;
    padding: .2rem .4rem;
    color: var(--couleur-texte, #102f35);
    background: #fff;
    border: 1px solid rgba(16,47,53,.15);
    border-radius: .35rem;
    font-size: .72rem;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.fclb-filter .range-slider-ui .noUi-pips {
    display: none;
}

/* Le JS actuel génère encore des graduations.
   On les masque sans avoir besoin de modifier le JS immédiatement. */
.fclb-filter .noUi-pips {
    display: none;
}


/* =========================================================
   FUTUR SWITCH
   ========================================================= */

.fclb-filter-switch {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.fclb-filter-switch input {
    width: 2.4rem;
    height: 1.3rem;
    accent-color: var(--couleur-principale, #4f7f3d);
}


/* =========================================================
   FUTURES VIGNETTES COULEUR
   ========================================================= */

.fclb-filter-colors {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.fclb-filter-color-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.fclb-filter-color {
    position: relative;
    display: block;
    width: 2rem;
    height: 2rem;
    margin: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(16,47,53,.22);
    cursor: pointer;
    transition: box-shadow .15s ease, transform .15s ease;
}

.fclb-filter-color:hover {
    transform: scale(1.06);
}

.fclb-filter-color-input:checked + .fclb-filter-color {
    box-shadow:
            0 0 0 2px #fff,
            0 0 0 4px var(--couleur-principale, #4f7f3d);
}

.fclb-filter-color-input:focus-visible + .fclb-filter-color {
    box-shadow:
            0 0 0 2px #fff,
            0 0 0 4px var(--couleur-principale, #4f7f3d);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .fclb-filter {
        padding: 1rem 0;
    }

    .fclb-filter-title {
        margin-bottom: .75rem;
        font-size: 1rem;
    }

    .fclb-filter-list {
        max-height: none;
    }

    .fclb-filter-pill {
        min-height: 2.35rem;
        padding-right: .9rem;
        padding-left: .9rem;
    }

    .fclb-filter-range {
        padding-right: .4rem;
        padding-left: .4rem;
    }
}