.ctn-config-bca {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.ctn-col.ctn-col-config {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ctn-config.ctn-config-search {
    width: 65%;
}

.ctn-config.ctn-config-typo {
    width: 45%;
}

p.p-bca {
    margin: 0;
    height: 100%;
    position: relative;
}

input.bca-input.input-config-search {
    width: 100%;
    height: 45px;
    border-radius: 10px;
    border: 1px solid #7E7E7E;
    padding-left: 45px;
    background-color: transparent;
    color: #fff;
    font-size: 14px;
}

.ctn-config.ctn-config-typo select.bca-select {
    height: 45px;
    border-radius: 10px;
    border: 1px solid #7E7F7E;
    padding-left: 45px;
    color: #6F6F6F;
    font-size: 14px;
	font-family: 'Lato' !important;
    -webkit-appearance: initial;
    -moz-appearance: initial;
    appearance: initial;
}

.bca-btn-carte {
    display: block;
    width: 93px;
    height: 36px;
    background-color: #fff;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.ctn-config.ctn-config-carte p.p-bca {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ctn-row.ctn-section-filters {
    background-color: #006A4E;
    padding: 20px;
    border-radius: 10px;
}

.p-bca .bca-txt.btn-config-carte {
    font-family: Gotham;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
}

.bca-btn-carte:after {
    position: absolute;
    content: '';
    top: 50%;
    transform: translateY(-50%);
    background-color: #9460A4;
    height: 32px;
    width: 32px;
    border-radius: 50px;
    left: 2px;
}

span.bca-icon-search {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 100%;
    width: 45px;
    background-image: url(/wp-content/uploads/2025/01/icon-search.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
}

span.bca-icon-typo {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 45px;
    height: 97%;
    background-image: url(/wp-content/uploads/2025/01/icon-typo.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
}

span.bca-btn-carte.list-active:after {
    right: 2px;
    left: unset;
}

.ctn-section-projects .ctn-col.ctn-display {
    display: none;
}

.ctn-section-projects .ctn-col.ctn-display.ctn-display-active {
    display: block;
}

div#bca-map {
    width: 100%;
    height: 800px;
    border-radius: 10px;
}

.ctn-ca-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

div#bca-map .leaflet-popup-content {
    width: max-content !important;
    margin: 0;
    padding: 0;
}

div#bca-map .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 10px !important;
    overflow: hidden;
}
#bca-map.leaflet-container a.leaflet-popup-close-button {
	background-color: #fff;
    border-radius: 50px;
    top: 2px;
    right: 2px;
}
.ctn.ctn-popup img.d-popup-thumbnail {
    width: 300px;
    height: 200px;
    object-fit: cover;
}

.ctn.ctn-popup .ctn.ctn-detail-popup.ctn-title {
    display: flex;
    gap: 0 10px;
    padding: 0 10px;
    align-items: center;
}

img.d-popup-logo {
    max-width: 100px !important;
    object-fit: contain;
    max-height: 40px !important;
}

p.popup-title a {
    font-family: 'Gotham';
    font-size: 16px;
    font-weight: 500;
    line-height: 25px;
    color: #616161;
}

.ctn-items-bca {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    list-style: none;
    padding-left: 0;
}

.ctn-items-bca .ctn-item {
    width: calc( 24.9% - 10px);
    aspect-ratio: 1;
    border-radius: 10px;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.ctn-item-logo {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffffab;
    transition: transform 0.5s ease;
}

.ctn-items-bca .ctn-item:hover .ctn-item-logo {
    transform: scale(1.1);
}

/*.ctn-item-popup,
div#ctn-pop-detail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff26;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    cursor: auto;
}*/

.ctn-item-popup, div#ctn-pop-detail {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #000000ad;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    cursor: auto;
}

.ctn-item-popup.popup-active,
div#ctn-pop-detail.ctn-pop-detail.popup-active {
    display: flex;
}

/*.item-popup-detail,
.item-popup-detail-carte {
    background-color: #fff;
    width: 50%;
    height: auto;
    min-height: 40%;
    border-radius: 10px;
    overflow: auto;
    display: flex;
    align-items: center;
    position: relative;
}*/

.item-popup-detail, .item-popup-detail-carte {
    background-color: #fff;
    width: 50%;
    height: 65%;
    min-height: 40%;
    border-radius: 10px;
    overflow: hidden;
    /*display: flex;*/
    position: relative;
    padding: 0px;
    gap: 30px;
}

.item-popup-col {
    width: 50%;
}

/*.item-popup-col.item-popup-thumbnail,
.item-popup-col-carte.item-popup-thumbnail-carte {
    height: 600px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}*/

.item-popup-col.item-popup-thumbnail, .item-popup-col-carte.item-popup-thumbnail-carte {
    height: 100%;
    position: relative;
}

/*.item-popup-col.item-popup-desc,
.item-popup-col-carte.item-popup-desc-carte {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 20px;
}*/

.item-popup-col.item-popup-desc, .item-popup-col-carte.item-popup-desc-carte {
    padding: 30px;
    height: 100%;
        overflow: auto;
}

img.item-popup-logo,
img.item-popup-logo-carte {
    width: 120px;
    height: auto;
    object-fit: cover;
}

/*.item-popup-detail-close,
.item-popup-detail-close-carte {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #006A4E;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6em;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    border: 1px solid #006A4E;
}*/

.item-popup-detail-close, .item-popup-detail-close-carte {
    position: absolute !important;
    top: 10px;
    right: 10px;
    width: 34px !important;
    height: 34px !important;
    background-color: #006A4E !important;
    border-radius: 10px !important;
    color: #fff !important;
    border: 1px solid #006A4E !important;
    z-index: 99999;
}

.item-popup-detail-close:hover, .item-popup-detail-close-carte:hover {
    background-color: #fff !important;
    color: #006A4E !important;
}

.item-popup-detail-close svg, .item-popup-detail-close-carte svg {
    stroke-width: 2px !important;
}

/*.ctn-item-popup-carte {
    width: 50%;
    height: auto;
}*/

.ctn-item-popup-carte {
    width: 50%;
    height: 65%;
}

.item-popup-detail-carte {
    width: 100%;
}

.item-popup-col-carte.item-popup-thumbnail-carte {
    width: 50%;
}

.item-popup-col-carte.item-popup-desc-carte {
    width: 50%;
}

div#ctn-pop-detail {
    background-color: #000000d4;
}

div#bca-map .ctn.ctn-popup {
    cursor: pointer;
    max-width: 300px;
}


.bca-row.ctn-filters-news {
    background-color: #491A66;
    padding: 10px;
    border-radius: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.bca-row.ctn-filters-news > .bca-col {
    width: 50%;
}

p.bca-p {
    margin: 0;
}

input.bca-input.input-serach-bca, select.bca-select.select-filter-bca {
    width: 250px;
    height: 52px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    padding-left: 50px;
    background-color: transparent;
}

input.bca-input.input-serach-bca {
    color: #fff;
}

select.bca-select.select-filter-bca {
    background-color: #fff;
}

span.bca-span.icon-search-bca {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 100%;
    width: 45px;
    background-image: url(/wp-content/uploads/2025/01/icn_search.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
}

span.bca-span.icon-filter-date-bca {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 205px;
    width: 45px;
    height: 97%;
    background-image: url(/wp-content/uploads/2025/01/settings-sliders-1.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
}

.bca-row.ctn-filters-news > .bca-col p.bca-p {
    position: relative;
}

.bca-col.ctn-select-filter p {
    text-align: -webkit-right;
}

.bca-row.ctn-lists-news .ctn-items-bca {
    gap: 50px;
    list-style: none;
    padding-left: 0;
}

.ctn-item-bca {
    width: calc(33.33% - 33.9px);
}

.ctn-img-bca img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 10px !important;
}

.ctn-desc-bca {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #595E5F;
    margin-bottom: 15px !important;
}
.ctn-item-bca .ctn-header {
	display: flex;
    flex-direction: column-reverse;
}
.ctn-item-bca h2.ctn-title-bca {
	font-size: inherit;
    font-family: inherit;
}

.ctn-title-bca a {
    font-size: 16px;
    font-weight: 800 !important;
    color: #491A66;
    text-transform: uppercase;
}

p.bca-p.ctn-date-bca {
    font-family: "Gotham";
    font-size: 16px;
    font-weight: 400;
    text-transform: capitalize;
    color: #9460A4;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 5px 0px;
}

span.bca-span.txt-read-btn {
    font-family: 'Gotham';
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    color: #491A66;
}

span.bca-span.icon-calendar-bca {
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
}

a.bca-btn.btn-read-bca {
    display: flex;
    align-items: center;
    gap: 15px;
}

span.bca-span.icon-read-bca {
    display: flex;
    align-items: center;
    width: 15px;
    aspect-ratio: 1/1;
}

p.bca-p.ctn-title-bca {
    margin-bottom: 15px;
}

body.overlay-active-bca {
    position: relative;
}

body.overlay-active-bca:after {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: '';
    background-color: #ffffffc7;
    z-index: 9999;
    background-image: url(/wp-includes/images/spinner.gif);
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto;
}

p.bca-p.ctn-desc-bca a {
    color: inherit;
}

p.item-popup-description-carte {
    font-size: 12px;
    padding: 15px;
    text-align: justify;
}

.ctn.ctn-img-logo-popup {
    text-align: center;
}

.item-popup-detail h3.item-popup-title {
    text-align: center;
    font-weight: 800;
    font-family: inherit;
    font-size: inherit;
}

.ctn.ctn-thumbnail-desc-popup {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    /*align-items: center;*/
    height:100%;
}

img.img.img-avant-project {
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    /* padding: 30px; */
    height: 100%;
    aspect-ratio: 1/1;
}

.item-popup-ctn-detail-img-carte {
    display: flex;
    align-items: center;
    height: calc(100%);
}

div#ctn-pop-detail .item-popup-detail-carte {
    height: 100%;
}

img.img.img-carte-popup {
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    aspect-ratio: 1 / 1;
    height: 100%;
}

.item-popup-ctn-logo-carte {
    text-align: center;
}

p.item-popup-title-carte {
    text-align: center;
    font-weight: 800;
}

.item-popup-description.item-popup-description-top {
    margin-bottom: 40px;
}

.item-popup-description-carte.item-popup-description-carte-top {
    margin-bottom: 50px;
}

.ctn-config.ctn-config-typo.ctn-config-typo-year span.bca-icon-typo {
    background-image: url(/wp-content/uploads/2025/01/calendrier.svg);
}

@media (min-width: 1167px) and (max-width: 1320px){
	main#content>.page-content>.elementor>.elementor-element.e-con-boxed>.e-con-inner {
        max-width: calc(100% - 100px);
    }
}

@media (max-width: 767px){
	.ctn.ctn-thumbnail-desc-popup {
        flex-direction: column;
        flex-wrap: nowrap;
	}
    .item-popup-col {
        width: 100%;
    }
    .item-popup-col.item-popup-desc, .item-popup-col-carte.item-popup-desc-carte {
        overflow: unset;
        padding-bottom: 20px !important;
        height: max-content;
    }
    img.img.img-avant-project {
        position: relative;
    }
    .item-popup-detail, .item-popup-detail-carte {
        overflow: auto;
    }
    .ctn-items-bca .ctn-item {
        width: 100%;
    }
    .item-popup-ctn-detail-img-carte {
        flex-direction: column;
    }
    img.img.img-carte-popup {
        position: relative;
        top: 0;
        transform: unset;
    }
    div#ctn-pop-detail .item-popup-col-carte.item-popup-thumbnail-carte {
        height: 100% !important;
    }
    .item-popup-ctn-detail-img-carte {
        margin-top: -60px;
    }
    .ctn.ctn-popup img.d-popup-thumbnail {
        width: 250px;
        height: 150px;
    }
    
    .ctn.ctn-popup .ctn.ctn-detail-popup.ctn-title {
        width: 250px !important;
    }
    
    div#ctn-pop-detail .ctn-item-popup-carte {
        width: 95% !important;
        height: 90% !important;
    }
    
    .item-popup-detail {
        width: 95%;
        height: 90%;
    }
    .item-popup-detail-carte {
        width: 100%;
    }
    .item-popup-description p * {
        word-wrap: break-word;
    }
    .ctn.ctn-popup .ctn.ctn-detail-popup.ctn-title img.d-popup-logo {
        width: 20% !important;
    }
    .ctn.ctn-popup .ctn.ctn-detail-popup.ctn-title p.popup-title {
        width: 80% !important;
    }
    .ctn.ctn-detail-popup.ctn-thumbnail {
        width: 250px;
    }
    .ts_esp_cnt .btn.btn-switch-user:after {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        content: '';
        background-image: url(/wp-content/uploads/2025/01/user-1.svg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 17px;
        -webkit-appearance: initial;
        -moz-appearance: initial;
        appearance: initial;
    }
    
    .ts_esp_cnt .btn.btn-switch-user {
        height: 36px !important;
        -webkit-appearance: initial;
        -moz-appearance: initial;
        appearance: initial;
    }
}

.ctn-number-project .elementor-widget-container {
    font-family: "Caveat", Sans-serif;
    font-weight: 700;
    color: #333333;
    font-size: 48px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: auto;
    gap: 15px;
    margin: auto;

}

.ctn-number-project {
    margin: auto;
}

/* Conteneur de la pagination */
.ctn-pagination.pagination-projects {
    display: flex;
    justify-content: center; /* centre horizontalement */
    margin: 30px 0; /* espace au-dessus et en dessous */
    font-family: Arial, sans-serif; /* tu peux adapter la police */
}

/* Liste de pagination */
.pagination-list {
    list-style: none;
    display: flex;
    gap: 8px; /* espace entre les boutons */
    padding: 0;
    margin: 0;
}

/* Tous les boutons de pagination */
.pagination-list .btn-paged {
    background: none;
    border: 2px solid #491A66;
    color: #491A66;
    padding: 8px 14px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

/* Bouton au survol */
.pagination-list .btn-paged:hover {
    background-color: #491A66;
    color: #ffffff; /* texte blanc sur hover */
}

/* Bouton actif (page courante) */
.pagination-list .btn-number.active {
    background-color: #491A66;
    color: #ffffff;
    font-weight: bold;
}

/* Boutons précédents / suivants */
.pagination-list .btn-prev,
.pagination-list .btn-next {
    font-weight: bold;
}

/* Optionnel : désactiver le bouton quand on est à la première ou dernière page */
.pagination-list .btn-paged.item-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

a.btn.btn-switch-user > svg {
    display: none;
    width: 20px;
    height: 20px;
}

/* agrandir le champ select projet pour que le mot projet ne soit pas coupé  */
@media (min-width: 768px){
    .ctn-config.ctn-config-typo select.bca-select.select-config-typo {
        width: 185px;
    }

}

@media (max-width: 767px){


    a.btn.btn-switch-user span.label-btn {
        display: none;
    }

    a.btn.btn-switch-user > svg {
        display: block;
    }

    a.btn.btn-switch-user {
        padding: 0 !important;
        display: flex;
        height: inherit;
        min-width: fit-content !important;
        background: unset !important;
        margin-top: -8px;
    }

}



