/* Benefits Section Refonte */
.refonte-benefits-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 64px 64px;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* Header */
.benefits-header {
    text-align: center;
    max-width: 900px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.benefits-title {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.1;
    color: #003329;
    /* Dark Green */
    margin: 0;
}

.benefits-title .highlight {
    color: #EC674E;
    /* Orange */
}

/* Based on image, "bilan carbone" is orange. I didn't add span in Pug. 
   I will update Pug later if requested, or just rely on text for now. */

.benefits-subtitle {
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.5;
    color: #181D27;
    margin: 0;
    opacity: 0.8;
    text-align: center;
}

/* Timeline Container */
.benefits-timeline {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Gaps handled by padding inside blocks or margins */
}

/* Vertical Line */
.timeline-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #FCEBE8;
    /* Light Orange/Pink from image */
    transform: translateX(-50%);
    z-index: 0;
}

/* Blocks */
.benefit-block {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    align-self: stretch;
    margin-bottom: 64px;
    /* Space between blocks */
    position: relative;
    z-index: 1;
}

.benefit-block:last-child {
    margin-bottom: 0;
}

.benefit-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    align-self: stretch;
}

/* Image Wrapper */
.benefit-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.benefit-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 24px;
    box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.06);
    /* Subtle shadow */
    display: block;
}

/* Text Wrapper */
.benefit-text-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

/* Dot */
.timeline-dot {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    /* Position absolutely to center exactly on line if flex gap varies? 
       With flex: 1 on sides and fixed gap, it should be centered. */
}

.timeline-dot img {
    width: 100%;
    height: 100%;
}

/* Tag */
.benefit-tag {
    display: inline-block;
    background: #FEF4F2;
    /* Light orange background */
    color: #EC674E;
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 500;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    padding: 8px var(--Spacing-spacing-12, 12px);
    align-items: center;
}

/* Title */
.benefit-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 500;
    color: #181D27;
    margin: 0;
    line-height: 1.2;
}

/* List */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-list li {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: #181D27;
    position: relative;
    padding-left: 16px;
}

.benefit-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #181D27;
    font-weight: bold;
}

.benefit-list strong {
    font-weight: 500;
    color: #181D27;
}

/* Layout Variations */
.left-image .benefit-content {
    flex-direction: row;
}

.right-image .benefit-content {
    flex-direction: row-reverse;
}

/* CTA */
.benefits-cta {
    margin-top: 80px;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    .refonte-benefits-section {
        padding: 64px 24px;
    }

    .timeline-line {
        display: none;
    }

    .timeline-dot {
        display: none;
    }

    .benefit-content {
        flex-direction: column !important;
        gap: 32px;
    }

    .benefit-image-wrapper,
    .benefit-text-wrapper {
        flex: none;
        width: 100%;
    }

    .benefit-image-wrapper img {
        max-width: 100%;
    }

    .benefits-header {
        margin-bottom: 48px;
    }

    .benefits-title {
        font-size: 36px;
    }
}

@media (max-width: 480px) {
    .refonte-benefits-section {
        padding: 48px 12px;
    }

    .benefits-title {
        font-size: 28px;
    }

    .benefits-subtitle {
        font-size: 15px;
    }

    .benefit-block {
        margin-bottom: 40px;
        gap: 24px;
    }

    .benefit-content {
        gap: 24px;
        width: 100%;
        box-sizing: border-box;
    }

    .benefit-title {
        font-size: 22px;
    }

    .benefit-list li {
        font-size: 14px;
    }

    .benefits-cta .secondaryButton {
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
}