.search-filter-component-combobox-base{
    border-radius: 50px!important;
}

.search-filter-component-combobox__listbox-toggle:before{
    width: 0!important;
    height: 0!important;
}

.search-filter-component-combobox__selection{
        padding: 1rem 2rem!important;
}

#CPTPositionner { 
    position: fixed; 
    bottom: -100%; 
    left: 0; 
    width: 100%; 
    transition: 0.3s; 
    z-index: 999; 
}
#CPTPositionner.active { 
    bottom: 0; 
}
#CPTComparateurWrapper { 
    gap: 2rem;
    display: flex; 
    justify-content: center;
    align-items: center;
    background: var(--e-global-color-secondary); 
    color: #fff; 
    padding: 1.5rem 2rem; 
}
#compare-modal-overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.8); 
    z-index: 10000; 
    padding: 40px; 
}
.modal-content {
    background: #fff; 
    border-radius: 8px; 
    height: 100%; 
    overflow: auto; 
    padding: 20px; 
    position: relative; 
}
.compare-flex-container { 
    display: flex; 
    width: 100%; 
    gap: 1.25rem;
}
.compare-column { 
    flex: 1; 
    min-width: 150px; 
    display: flex; 
    flex-direction: column; 
}
.data-column{
    box-shadow: -20px 20px 0px 0px var(--drop-shadow-color);   
}
.data-column .header{
    padding: 2rem;  
}
.labels-column { 
    font-weight: bold; 
    background: transparent; 
    position: sticky; 
    left: 0; 
}
.compare-cell { 
    padding: 1rem; 
    min-height: 60px; 
    display: flex; 
    flex-direction: column;
    gap: 1rem;
    align-items: top; 
}
.compare-cell:nth-child(2n+2){
    background-color: rgba(0,0,0,0.05);
}
.compare-cell.header img{ 
    max-height: 60px; 
    margin: auto;
}
.compare-cell ul{
    padding: 0;
    list-style-type: none;
}
.header { 
    min-height: 80px; 
    background: #fff; 
    justify-content: top; 
}
.labels-column .header{
    background: transparent;
    color: transparent; 
}

.labels-column .footer{
    background-color: transparent!important;
}

.compare-cell.footer{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.compare-cell.footer .btn.details-link .text{
    margin-right: 16px;
}

.compare-cell.footer .btn.details-link {
    color : var(--e-global-color-secondary);
    padding: 0;
}

.compare-cell.footer .btn.apply-link {
    font-weight: 700;
    background-color: var(--e-global-color-fdb4ea9)!important;
}

.compare-cell.footer .btn.apply-link:before {
    background-color: var(--e-global-color-accent)!important;
}

.compare-cell.footer .btn.apply-link .text{
    color: var(--e-global-color-secondary);
}

.compare-cell.footer .btn.apply-link svg path{
    stroke: var(--e-global-color-secondary);
}


.elementor-loop-container .e-loop-item{
    position: relative;
    overflow: hidden;
}
.elementor-loop-container .e-loop-item .comparateur-element{
    position: absolute;
    bottom: -100%;
    width: 100%;
    transition: bottom .3s ease;
}
.elementor-loop-container .e-loop-item:hover .comparateur-element,
.elementor-loop-container .e-loop-item:focus .comparateur-element{
    bottom: 0;
}
.elementor-loop-container .e-loop-item .disappearing-block{
    transition: all .3s ease;
}

.elementor-loop-container .e-loop-item:hover .disappearing-block,
.elementor-loop-container .e-loop-item:focus .disappearing-block{
    transform: translateY(2rem);
    opacity: 0;
}

.elementor-loop-container .e-loop-item .comparateur-element label{
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    color: #fff;
    background-color: var(--e-global-color-secondary);
}

#CPTPositionner .main-content #CPTComparateurWrapper #CPTComparateurHolder {
    display: grid;
    max-width: 80%;
} 

#CPTPositionner .main-content #CPTComparateurWrapper #CPTComparateurHolder .item{
    padding: 1rem 2rem;
    background-color: #fff;
    color: var(--e-global-color-secondary);
    font-family: "Lexend", Sans-serif;
    font-weight: 500;
    text-transform: uppercase;
} 

#CPTPositionner .main-content #CPTComparateurWrapper #CPTComparateurButton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

#CPTPositionner .main-content #CPTComparateurWrapper #CPTComparateurButton #comparateurSelectionSum{
    text-align: center;
    font-weight: 700;
}
#CPTComparateurWrapper .btn {
    background-color: var(--e-global-color-accent);
}

#CPTComparateurWrapper .btn:before {
    background-color: #fff!important;
}

#CPTComparateurWrapper .btn .text{
    color: var(--e-global-color-secondary);
}

#CPTComparateurWrapper .btn svg path{
    stroke: var(--e-global-color-secondary);
}

@media (min-width: 768px) {
    #CPTPositionner .main-content #CPTComparateurWrapper #CPTComparateurHolder {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-column-gap: 25px;
        width: calc(75% - 6.5px);
        height: 100%;
        width: 100%;
    }
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
    visibility: hidden;
}

.checkbox-wrapper .cbx {
    margin: auto;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}
.checkbox-wrapper .cbx span {
    display: inline-block;
    vertical-align: middle;
    transform: translate3d(0, 0, 0);
}
.checkbox-wrapper .cbx span:last-child {
    position: relative;
    width: 18px;
    height: 18px;
    transform: scale(1);
    vertical-align: middle;
    background-color: #fff;
    transition: all 0.2s ease;
}
.checkbox-wrapper .cbx span:last-child svg {
    position: absolute;
    top: 3px;
    left: 2px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: all 0.3s ease;
    transition-delay: 0.1s;
    transform: translate3d(0, 0, 0);
}
.checkbox-wrapper .cbx span:last-child:before {
    content: "";
    width: 100%;
    height: 100%; 
    background: var(--e-global-color-accent);
    display: block;
    transform: scale(0);
    opacity: 1;
}
.checkbox-wrapper .cbx span:last-child {
    padding-left: 8px;
}
.checkbox-wrapper .cbx:hover span:first-child {
    border-color: var(--e-global-color-accent);
}
.checkbox-wrapper .inp-cbx:checked + .cbx span:last-child {
    background: var(--e-global-color-accent);
    border-color: var(--e-global-color-accent);
    animation: wave 0.4s ease;
}
.checkbox-wrapper .inp-cbx:checked + .cbx span:last-child svg {
    stroke-dashoffset: 0;
}
.checkbox-wrapper .inp-cbx:checked + .cbx span:last-child:before {
    transform: scale(3.5);
    opacity: 0;
    transition: all 0.6s ease;
}

#compare-ajax-results{
    width: 100%;
}

/* Container de la vue comparaison */
#compare-view-container {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease, padding-bottom 0.4s ease, height 0s 0.4s; /* Délai pour la hauteur */
    padding: 0rem;
}
#compare-view-container .compare-header-actions{
    align-self: start;
}
#compare-view-container .compare-header-actions #close-compare{
    border-radius: 50px;
    background-color: #fff;
    color: var(--e-global-color-secondary);
}
#compare-view-container .compare-header-actions #close-compare:hover,
#compare-view-container .compare-header-actions #close-compare:focus
{
    background-color: var(--e-global-color-primary);
    color: #fff;
}

/* État actif de la vue comparaison */
#compare-view-container.active {
    height: auto!important;
    opacity: 1!important;
    visibility: visible;
    transition: all 0.6s ease;
    padding-bottom: 4rem;
}

/* Masquage de la liste Elementor */
#liste-formation .e-con-inner:not(#compare-view-container).comparing-active {
    height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
}

.btn-back {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-weight: bold;
}

.btn-back:hover {
    background: #e67e22;
}

@keyframes wave {
    50% {
        transform: scale(0.9);
    }
}

@-webkit-keyframes wave {
    50% {
        transform: scale(0.9);
    }
}

@-moz-keyframes wave {
    50% {
        transform: scale(0.9);
    }
}
