﻿.how-section {
    /* ton image en fond si tu en as une (sinon couleur) */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    margin: auto; /* centrer horizontalement */
    margin-top: 4em;
    margin-bottom: 4em;
    width: 100%;
    justify-content: center; /* centre horizontalement */
    padding: 1rem; /* un peu de marge intérieure */
}

.how-section__content {
    max-width: 100%; /* quasi full-width */
    text-align: center; /* titre et paragraphe centrés */
    position: relative; /* pour l’empilement si overlay */
    z-index: 1;
    color: var(--black); /* ou blanc si fond foncé */
}
    .how-section__content h2 {
        font-family: Poppins-Black;
        text-transform: uppercase;
    }

    .how-section__content > p{
        color : var(--grey-dark);
    }


.how-section__numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 2rem;
    padding: 0;
    list-style: none;
}

    .how-section__numbers > li {
        flex: 0 0 calc(25% - 1rem); /* 4 items, avec 1rem de gap */
        margin-bottom: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .how-section__numbers h3 {
        margin: 1rem 0;
    }

.how-section__numbers_index {
    width: var(--base-space-9);
    height: var(--base-space-9);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--destructive);
    color: var(--white);
}

/* === Responsive mobile (<768px) === */
@media (max-width: 767.98px) {
    .how-section {
        justify-content: center; /* on centre le contenu */
        text-align: left; /* paragraphes centrés */
        width: 100%;
        padding: 2em 2em;
    }

    .how-content {
        /*max-width: 100%; /* prend toute la largeur dispo */
    }
    .how-section__numbers {
        flex-direction: column !important;
        /* plus besoin de justify-content ici */
    }

        /* 2) Chaque <li> prend 100% de la largeur */
        .how-section__numbers > li {
            flex: 0 0 100% !important;
            max-width: 100% !important;
            margin-bottom: 1.5rem; /* espace entre les étapes */
        }
}

@media (min-width: 1400px) {
    .how-section {
        max-width: 1120px; /* optionnel : pour ne pas dépasser une taille raisonnable */
    }
}

@media (max-width: 992px) {
    .how-section {
    }
}
