/* ============================================
   Prêt en 3 étapes simples – Fond clair, charte graphique
   ============================================ */

.how-it-works-steps {
    --hiw-bg: #f8fafc;
    --hiw-card-bg: #ffffff;
    --hiw-text: #1e293b;
    --hiw-muted: #64748b;
    --hiw-border: #e2e8f0;

    padding-top: 5rem;
    padding-bottom: 5rem;
    background: var(--hiw-bg);
}

.how-it-works-header {
    margin-bottom: 3.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.75rem;
    color: var(--color-brand-1, #024430);
}

.how-it-works-subtitle {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--hiw-muted);
    margin: 0 0 0.5rem;
}

.how-it-works-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--hiw-muted);
    margin: 0;
    opacity: 0.9;
}

/* Flux horizontal 1 → 2 → 3 */
.how-it-works-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

.step-item {
    flex: 1 1 260px;
    min-width: 240px;
    max-width: 320px;
}

.step-item-inner {
    height: 100%;
    background: var(--hiw-card-bg);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--hiw-border);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.step-item-inner:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Numéro d’étape */
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-brand-1, #024430);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1.25rem;
}

/* Icône */
.step-icon-wrap {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.25rem;
    border-radius: 16px;
    background: #eef4fc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-ico {
    font-size: 1.75rem;
    color: var(--color-brand-1, #024430);
}

.step-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.step-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--hiw-text);
    margin: 0 0 0.75rem;
    line-height: 1.3;
}

.step-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--hiw-muted);
    margin: 0;
}

/* Flèche entre les étapes */
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.5rem;
    color: var(--color-brand-1, #024430);
    opacity: 0.5;
    flex-shrink: 0;
}

.step-arrow-svg {
    width: 28px;
    height: 20px;
}

/* Mobile : empiler verticalement, flèches vers le bas */
@media (max-width: 991px) {
    .how-it-works-steps {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .how-it-works-header {
        margin-bottom: 2.5rem;
    }

    .how-it-works-title {
        font-size: 1.75rem;
    }

    .how-it-works-subtitle {
        font-size: 1.125rem;
    }

    .how-it-works-flow {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .step-item {
        flex: none;
        width: 100%;
        max-width: 340px;
        margin-bottom: 0;
    }

    .step-arrow {
        padding: 0.75rem 0;
        transform: rotate(90deg);
    }

    .step-arrow-svg {
        width: 24px;
        height: 18px;
    }
}

@media (max-width: 575px) {
    .how-it-works-steps {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .step-item-inner {
        padding: 1.5rem 1.25rem;
    }

    .step-heading {
        font-size: 1.125rem;
    }

    .step-desc {
        font-size: 0.875rem;
    }
}
