.indigo-history-tabs {
    display: flex;
    gap: 0;
    width: 100%;
    min-height: 0;
}

.indigo-history-tabs__mobile-header {
    display: none;
}

.indigo-history-tabs__mobile-title {
    font-size: 16px;
    margin: 0;
}

.indigo-history-tabs__mobile-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.indigo-history-tabs__mobile-toggle-lines {
    position: relative;
    width: 18px;
    height: 2px;
    background-color: #000;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.indigo-history-tabs__mobile-toggle-lines::before,
.indigo-history-tabs__mobile-toggle-lines::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background-color: #000;
    transform-origin: 50% 50%;
    transition: transform 0.25s ease, top 0.25s ease, background-color 0.25s ease, opacity 0.2s ease;
}

.indigo-history-tabs__mobile-toggle-lines::before {
    top: -6px;
}

.indigo-history-tabs__mobile-toggle-lines::after {
    top: 6px;
}

/* Open state: transform hamburger into close (X) */
.indigo-history-tabs--mobile-open .indigo-history-tabs__mobile-toggle-lines {
    background-color: transparent;
}

.indigo-history-tabs--mobile-open .indigo-history-tabs__mobile-toggle-lines::before {
    top: 0;
    transform: rotate(45deg);
}

.indigo-history-tabs--mobile-open .indigo-history-tabs__mobile-toggle-lines::after {
    top: 0;
    transform: rotate(-45deg);
}

.indigo-history-tabs__sidebar {
    flex: 0 0 33%;
    width: 33%;
    background-color: #f5f5f5;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
}

.indigo-history-tabs__section-title {
    font-size: 16px;
    margin: 0 0 30px 0;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.indigo-history-tabs__tabs {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 300px);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.indigo-history-tabs__tabs::-webkit-scrollbar {
    width: 6px;
}

.indigo-history-tabs__tabs::-webkit-scrollbar-track {
    background: transparent;
}

.indigo-history-tabs__tabs::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.indigo-history-tabs__tabs::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.indigo-history-tabs__tab {
    min-height: 46px;
    padding: 0;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.indigo-history-tabs__tab--hidden {
    display: none;
}

.indigo-history-tabs.tabs-expanded .indigo-history-tabs__tab--hidden {
    display: flex;
}

.indigo-history-tabs__tabs .indigo-history-tabs__tab:first-child {
    border-top: 1px solid #DFDFDF !important;
}

.indigo-history-tabs__tab:hover {
    color: #000;
    padding-left: 8px;
}

.indigo-history-tabs__tab.active {
    color: #000;
    padding-left: 8px;
}

.indigo-history-tabs__arrow {
    width: 15px;
    height: 14px;
    opacity: 0;
    transform: translateX(-10px);
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.indigo-history-tabs__arrow path {
    -webkit-transition: all 0.2s ease;
    -moz-transition: all 0.2s ease;
    -ms-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

.indigo-history-tabs__tab:hover .indigo-history-tabs__arrow,
.indigo-history-tabs__tab.active .indigo-history-tabs__arrow {
    opacity: 1;
    transform: translateX(0);
}



.indigo-history-tabs__more-tab {
    color: #999;
    text-transform: uppercase;
    margin-top: 10px;
}

.indigo-history-tabs__more-tab:hover {
    color: #000;
}

.indigo-history-tabs.tabs-expanded .indigo-history-tabs__more-tab {
    display: none;
}

.indigo-history-tabs__plus-icon {
    width: 12px;
    height: 12px;
    color: #ccc;
    transition: all 0.3s ease;
}

.indigo-history-tabs__more-tab:hover .indigo-history-tabs__plus-icon {
    color: #000;
}

.indigo-history-tabs__content {
    flex: 1;
    background-color: #fff;
    padding: 60px 80px;
    position: relative;
    overflow: visible;
}

.indigo-history-tabs__panel {
    display: none;
}

.indigo-history-tabs__panel.active {
    display: block;
    animation: indigoHistoryTabsFadeIn 0.2s ease forwards;
}

@keyframes indigoHistoryTabsFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}



.indigo-history-tabs__content-title {
    font-size: 32px;
    margin: 0 0 30px 0;
    color: #000;
    line-height: 1.3;
}

.indigo-history-tabs__content-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.equipe .indigo-history-tabs__content-text p {
    margin: 0 0 20px 0;
}

/*
.indigo-history-tabs__content-text p:last-child {
    margin-bottom: 0;
}*/

/* Responsive Design */
@media (max-width: 1024px) {
    .indigo-history-tabs__sidebar {
        flex: 0 0 250px;
        padding: 30px 20px;
    }

    .indigo-history-tabs__content {
        padding: 40px 50px;
    }

    .indigo-history-tabs__content-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .indigo-history-tabs {
        flex-direction: column;
    }


    .indigo-history-tabs__mobile-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 30px 0px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        background-color: #ffffff;
    }

    body.equipe .indigo-history-tabs__mobile-header {
        padding: 30px 0px !important;
    }

    .indigo-history-tabs__section-title {
        display: none;
    }

    .indigo-history-tabs__mobile-title {
        font-size: 19px;
    }

    .indigo-history-tabs__sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 30px 20px;
        display: none;
    }

    .indigo-history-tabs--mobile-open .indigo-history-tabs__sidebar {
        display: block;
    }

    .indigo-history-tabs__tabs {
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
    }

    .indigo-history-tabs__tab {
        border-bottom: none;
        border-right: none;
        white-space: nowrap;
        padding: 10px 0;
        min-width: auto;
    }

    .indigo-history-tabs__tab:first-child {
        border-top: none;
    }

    .indigo-history-tabs__tab.active {
        padding-left: 0;
        border-bottom: 2px solid #000;
    }

    .indigo-history-tabs__tab:hover {
        padding-left: 0;
    }

    .indigo-history-tabs__arrow {
        width: 11px;
        height: 11.786px;
    }

    .indigo-history-tabs__content {
        padding: 30px 20px;
        transition: none;
    }

    .indigo-history-tabs__content-title {
        font-size: 24px;
    }

    .indigo-history-tabs__content-text {
        font-size: 15px;
    }

    /* Mobile: simplify panels to avoid whitespace/glitch */
    .indigo-history-tabs {
        min-height: 0;
    }

    .indigo-history-tabs__panel {
        position: static;
        inset: auto;
        opacity: 1;
        transform: none;
        transition: none;
        pointer-events: auto;
        display: none;
    }

    .indigo-history-tabs__panel.active {
        display: block;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .indigo-history-tabs__panel {
    display: block;
    opacity: 0.3;
    margin-bottom: 20px;
    border: 1px dashed #ccc;
    padding: 20px;
}

.elementor-editor-active .indigo-history-tabs__panel.active {
    opacity: 1;
    border-color: #000;
}