/* ==========================================================================
   KC Pages Catégorie — styles
   ========================================================================== */

.cat__section .cat__subsection > .elementor-container {
    gap: 50px;
}

.kc_cat_page__container {
    margin-bottom: 0px !important;
}
.kc_cat_page__container .kc-cat-page {
    /* font-family: "Fira Sans", Sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: #001f47; */
    /* opacity: 0.5; */
    font-family: "Fira Sans", Sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #001f47;
}
.kc_cat_img__container .kc-cat-img {
    border-radius: 20px;
}
.kc_cat_page__subtitle {
    font-family: "Fira Sans", Sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color: #001f47;
    opacity: 0.5;
    margin-bottom: 0px !important;
}
/* --------------------------------------------------------------------------
   Layout général : 2 colonnes
   -------------------------------------------------------------------------- */

.kc-list-product {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    font-family: 'Barlow Condensed', sans-serif;
}

.kc-lp-left {
    flex: 0 0 25%;
    min-width: 0;
}

.kc-lp-right {
    padding-top:24px;
    flex: 1;
    min-width: 0;
}

/* --------------------------------------------------------------------------
   Filtres (colonne gauche)
   -------------------------------------------------------------------------- */

.kc-lp-filters {
    /* background-color: #f7f9fc; */
    padding: 24px 20px;
}

.kc-lp-title {
    font-family: 'Fira Sans', sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 30px; /* 136.364% */
    letter-spacing: -0.55px;
    color: #04122b;
    margin-bottom: 16px;
}

/* Accordéon */
.kc-lp-accordion {
    border-bottom: 1px solid #dbebf6;
    margin-bottom: 0;
}

.kc-lp-accordion-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 12px 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #04122b;
    cursor: pointer;
    text-align: left;
}

.kc-lp-accordion-toggle:hover {
    color: #0069b4;
}

.kc-lp-accordion-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}

.kc-lp-accordion.is-open .kc-lp-accordion-icon {
    transform: rotate(-135deg);
}

.kc-lp-accordion-content {
    padding-bottom: 8px;
}

.kc-lp-filter-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #04122b;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #a6cbe3;
}

.kc-lp-filter-title + .kc-lp-filter-title,
.kc-lp-filter-list + .kc-lp-filter-title {
    margin-top: 24px;
}

.kc-lp-filter-list {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.kc-lp-filter-item {
    border-bottom: 1px solid #dbebf6;
}

.kc-lp-filter-item a {
    display: flex;
    align-items: center;
    padding: 8px 0;
    color: #04122b;
    font-size: 16px;
    text-decoration: none !important;
    transition: color 0.2s;
}
.kc-lp-filter-item a svg {
    width: 20px;
    height: 20px;
}

.kc-lp-filter-item a:hover {
    color: #0069b4;
}

.kc-lp-filter-item a:visited {
    color: #04122b !important;
}

.kc-lp-filter-item.active a {
    font-weight: 700;
    color: #04122b !important;
}

/* CTAs colonne gauche */
.kc-lp-cta-catalogue,
.kc-lp-cta-contact {
    margin-top: 12px;
}

.kc-lp-cta-catalogue {
    margin-top: 28px;
}

.kc-lp-cta-contact a {
    display: inline-block;
    border: 2px solid #a6cbe3;
    background-color: transparent;
    color: #a6cbe3;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.kc-lp-cta-contact a:hover {
    background-color: #a6cbe3;
    color: #fff;
}

.kc-lp-cta-catalogue a {
    display: inline-block;
    border: 2px solid #04122b;
    color: #04122b;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.kc-lp-cta-catalogue a:hover {
    background-color: #04122b;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Compteur de résultats
   -------------------------------------------------------------------------- */

.kc-lp-count {
    font-family: 'Fira Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 30px; /* 136.364% */
    letter-spacing: -0.55px;
    color: #04122b;
    margin-bottom: 16px;
}

/* --------------------------------------------------------------------------
   Grille de cards produits
   -------------------------------------------------------------------------- */

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

.kc-lp-card {
    border: 2px solid #a6cbe3;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.kc-lp-card:hover {
    border-color: #001f47;
    box-shadow: 0 4px 12px rgba(0, 31, 71, 0.12);
}

.kc-lp-card a {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image */
.kc-lp-card-img {
    overflow: hidden;
    background-color: #dbebf6;
    aspect-ratio: 4 / 3;
}

.kc-lp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.kc-lp-card:hover .kc-lp-card-img img {
    transform: scale(1.04);
}

.kc-lp-card-img-placeholder {
    width: 100%;
    height: 100%;
    background-color: #dbebf6;
}

/* Corps de la card */
.kc-lp-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 8px;
}

.kc-lp-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #04122b;
    line-height: 1.3;
    flex: 1;
}

.kc-lp-card-arrow {
    padding: 5px 15px;
    border: solid 1px #001f47;
    font-size: 20px;
    color: #001f47;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.kc-lp-card:hover .kc-lp-card-arrow {
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   État vide
   -------------------------------------------------------------------------- */

.kc-lp-empty {
    color: #666;
    font-size: 16px;
    padding: 24px 0;
}

/* --------------------------------------------------------------------------
   Pagination
   -------------------------------------------------------------------------- */

.kc-lp-pagination {
    margin-top: 36px;
}

/* Compatibilité wp-pagenavi */
.kc-lp-pagination .wp-pagenavi {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    align-items: center;
}

.kc-lp-pagination .wp-pagenavi a,
.kc-lp-pagination .wp-pagenavi span {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #a6cbe3;
    color: #04122b;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s, color 0.2s;
}

.kc-lp-pagination .wp-pagenavi a:hover {
    background-color: #001f47;
    border-color: #001f47;
    color: #ffffff;
}

.kc-lp-pagination .wp-pagenavi span.current {
    background-color: #001f47;
    border-color: #001f47;
    color: #ffffff;
    font-weight: 700;
}

/* Fallback paginate_links */
.kc-lp-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid #a6cbe3;
    color: #04122b;
    text-decoration: none;
    font-size: 14px;
    margin: 0 2px;
    transition: background-color 0.2s, color 0.2s;
}

.kc-lp-pagination .page-numbers.current {
    background-color: #001f47;
    border-color: #001f47;
    color: #ffffff;
    font-weight: 700;
}

.kc-lp-pagination .page-numbers:hover:not(.current) {
    background-color: #001f47;
    border-color: #001f47;
    color: #ffffff;
}

.kc-lp-pagination .wp-pagenavi span.pages {
    display: none;
}
/* --------------------------------------------------------------------------
   Shortcodes unitaires
   -------------------------------------------------------------------------- */

.kc-cat-page {
    display: inline;
}

.kc-cat-description {
    line-height: 1.6;
}

.kc-cat-img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   Texte de fin de page
   -------------------------------------------------------------------------- */

.kc-add-bottom-text-section {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 48px 40px;
    margin-top: 48px;
}

.kc-add-bottom-text {
    flex: 1;
    max-width: 700px;
}

.kc-add-bottom-text-image {
    flex: 0 0 420px;
    aspect-ratio: 4 / 3;
    border-radius: 20px;
    background-color: #a6cbe3;
}

.kc-add-bottom-text-title {
    display: block;
    font-family: 'Fira Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #001f47;
    margin-bottom: 20px;
}

.kc-add-bottom-text-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #04122b;
}

.kc-add-bottom-text-text p {
    margin: 0 0 16px;
}

.kc-add-bottom-text-text p:last-child {
    margin-bottom: 0;
}

.kc-add-bottom-text-text strong {
    color: #001f47;
}

/* --------------------------------------------------------------------------
   Responsive — tablette (768px–1024px)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) {
    .kc-lp-left {
        flex: 0 0 30%;
    }

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

/* --------------------------------------------------------------------------
   Responsive — mobile (< 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .kc-list-product {
        flex-direction: column;
        gap: 24px;
    }

    .kc-lp-left {
        flex: 0 0 auto;
        width: 100%;
    }

    .kc-lp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .kc-add-bottom-text-section {
        flex-direction: column;
        padding: 32px 24px;
        margin-top: 32px;
    }

    .kc-add-bottom-text-title {
        font-size: 24px;
    }

    .kc-add-bottom-text-image {
        flex-basis: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .kc-lp-grid {
        grid-template-columns: 1fr;
    }
}
