/* =========================================
   LBDC Steps Accordion - Styles v2.0
   ========================================= */

.lbdc-steps-accordion-wrapper {
    font-family: inherit;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.lbdc-steps-header {
    text-align: left;
    margin-bottom: 40px;
}
.lbdc-steps-subtitle {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8B4B5E;
    margin-bottom: 12px;
}
.lbdc-steps-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0;
}

/* Layout principal */
.lbdc-steps-content-area {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

/* Liste des étapes */
.lbdc-steps-list {
    flex: 1;
    min-width: 0;
}

/* Image */
.lbdc-steps-image {
    flex: 0 0 45%;
    position: sticky;
    top: 100px;
}
/* Conteneur image à ratio fixe pour uniformiser portrait/paysage */
.lbdc-steps-image-container {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}
.lbdc-steps-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.lbdc-steps-image img.lbdc-fading {
    opacity: 0;
    transform: scale(0.98);
}

/* Étape individuelle */
.lbdc-step {
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 0;
    transition: all 0.3s ease;
}
.lbdc-step:first-child {
    border-top: 1px solid #e8e8e8;
}

/* Header de l'étape */
.lbdc-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 16px;
    cursor: pointer;
    user-select: none;
    border-left: 4px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.lbdc-step-header:hover {
    background: #fafafa;
}
.lbdc-step.active .lbdc-step-header {
    border-left-color: #8B4B5E;
}

/* Numéro */
.lbdc-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background-color: #8B4B5E;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

/* Titre */
.lbdc-step-title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: #2C2C2C;
    line-height: 1.3;
}

/* Icône chevron */
.lbdc-step-icon {
    color: #999;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}
.lbdc-step.active .lbdc-step-icon {
    transform: rotate(180deg);
    color: #8B4B5E;
}

/* Corps de l'étape - animation CSS pure via max-height */
.lbdc-step-body {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.lbdc-step-description {
    padding: 0 16px 20px 74px;
    color: #555;
    font-size: 15px;
    line-height: 1.7;
}
.lbdc-step-description p {
    margin: 0;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .lbdc-steps-content-area {
        flex-direction: column;
    }
    .lbdc-steps-image {
        order: -1;
        position: static;
        flex: none;
        width: 100%;
    }
    .lbdc-steps-image-container {
        height: 280px;
    }
    .lbdc-steps-main-title {
        font-size: 26px;
    }
    .lbdc-step-description {
        padding-left: 16px;
    }
}
