/* Accordéon "Avantages" — section_2 > avantages */
.avantages-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.avantage-item {
    position: relative;
    background: #0B3C36;
    border: 1px solid #0B3C36;
    border-radius: 8px;
    transition: border-color .3s ease;
}

.avantage-item.is-open {
    border-color: #BBFEF1;
}


/* Header cliquable */
.avantage-header {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    cursor: pointer;
    color: #BBFEF1;
    text-align: left;
    font-family: inherit;
}
.avantage-header:focus-visible {
    outline: #34B4A3 solid 2px;
    outline-offset: 2px;
}

.avantage-header-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.avantage-titre {
    color: #BBFEF1;
    font-weight: 700;
    line-height: 1.2;
}

.avantage-sous-titre {
    color: #BBFEF1;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.85;
}

/* Bouton +/− animé en CSS pur */
.avantage-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #BBFEF1;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease, transform .3s ease;
}
.avantage-toggle-bar {
    position: absolute;
    background: #04221D;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease;
}
.avantage-toggle-bar-h {
    width: 16px;
    height: 2px;
}
.avantage-toggle-bar-v {
    width: 2px;
    height: 16px;
}
/* Item ouvert : on cache la barre verticale → "+" devient "−" */
.avantage-item.is-open .avantage-toggle-bar-v {
    transform: scaleY(0);
    opacity: 0;
}

/* Panneau pliable */
.avantage-panel[hidden] {
    display: none;
}
.avantage-panel-inner {
    padding: 0 28px 28px;
}

.avantage-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.avantage-list-item {
    padding: 16px 0;
    border-bottom: 1px solid #BBFEF1;
}
.avantage-list-item:last-child {
    border-bottom: 0;
}
.avantage-list-titre {
    color: #BBFEF1;
    font-weight: 700;
    margin: 0 0 4px;
}
.avantage-list-texte {
    color: #BBFEF1;
    line-height: 1.5;
    margin: 0;
}

/* Bouton CTA en bas du panneau (reprend les styles Divi default si présents) */
.avantage-btn.et_pb_button {
    display: inline-block;
    margin-top: 8px;
}

@media screen and (max-width: 600px) {
    .avantage-header {
        padding: 18px 20px;
        gap: 16px;
    }
    .avantage-panel-inner {
        padding: 0 20px 20px;
    }
    .avantage-toggle {
        width: 38px;
        height: 38px;
    }
}
