/* =========================================================
    ELITESTREAM — COMMENT ÇA MARCHE ?
   ========================================================= */


/* =========================================================
    SECTION
   ========================================================= */

.how-section {
    padding-block: var(--es-section-padding-y);
    background: var(--es-bg);
}


/* =========================================================
    EN-TÊTE
   ========================================================= */

.how-header {
    max-width: 720px;
    margin: 0 auto var(--es-space-8);
    text-align: center;
}

.how-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--es-space-2);
    margin-bottom: var(--es-space-4);
    padding: var(--es-space-1) var(--es-space-3);
    color: var(--es-secondary);
    background: var(--es-surface);
    border: var(--es-border-thin) solid var(--es-border-primary);
    border-radius: var(--es-radius-pill);
    font-size: var(--es-fs-xs);
    font-weight: var(--es-fw-semibold);
    text-transform: uppercase;
    letter-spacing: var(--es-tracking-wide);
}

.how-header h2 {
    margin-bottom: var(--es-space-4);
    color: var(--es-text);
    font-family: var(--es-font-heading);
    font-size: var(--es-fs-2xl);
    font-weight: var(--es-fw-bold);
    line-height: var(--es-lh-tight);
    letter-spacing: var(--es-tracking-tight);
}

.how-header p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--es-text-secondary);
    font-size: var(--es-fs-sm);
    line-height: var(--es-lh-body);
}


/* =========================================================
    GRILLE DES ÉTAPES
   ========================================================= */

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--es-space-7);
}


/* =========================================================
    CARDS
   ========================================================= */

.how-card {
    min-height: 235px;
    padding: var(--es-space-7);
    background: var(--es-surface);
    border: var(--es-border-thin) solid var(--es-border-subtle);
    border-radius: var(--es-radius-lg);
    transition:
        transform var(--es-transition-base),
        border-color var(--es-transition-base),
        background-color var(--es-transition-base),
        box-shadow var(--es-transition-base);
}

/* Interaction légère : on garde la section très sobre. */
.how-card:hover {
    transform: translateY(-3px);
    background: var(--es-surface-hover);
    border-color: var(--es-border);
    box-shadow: var(--es-shadow-card);
}


/* =========================================================
    NUMÉROS
   ========================================================= */

.how-card__number {
    display: block;
    margin-bottom: var(--es-space-4);
    font-family: var(--es-font-heading);
    font-size: 2rem;
    font-weight: var(--es-fw-extrabold);
    line-height: 1;
}

/* Chaque étape reprend une nuance différente de la maquette. */
.how-card__number--one {
    color: rgba(24, 191, 242, 0.45);
}

.how-card__number--two {
    color: rgba(99, 91, 255, 0.60);
}

.how-card__number--three {
    color: rgba(24, 191, 242, 0.40);
}


/* =========================================================
    CONTENU DES CARDS
   ========================================================= */

.how-card h3 {
    margin-bottom: var(--es-space-3);
    color: var(--es-text);
    font-family: var(--es-font-heading);
    font-size: var(--es-fs-base);
    font-weight: var(--es-fw-bold);
    line-height: var(--es-lh-heading);
}

.how-card p {
    margin: 0;
    color: var(--es-text-secondary);
    font-size: var(--es-fs-sm);
    line-height: var(--es-lh-body);
}

/* =========================================================
    TABLETTE
   ========================================================= */

@media (max-width: 991.98px) {
    .how-grid {
        gap: var(--es-space-5);
    }

    .how-card {
        padding: var(--es-space-6);
    }
}

/* =========================================================
    MOBILE
   ========================================================= */

@media (max-width: 767.98px) {
    .how-section {
        padding-block: var(--es-space-10);
        padding-bottom: var(--es-space-9);
    }

    .how-header {
        margin-bottom: var(--es-space-6);
    }

    .how-header h2 {
        font-size: var(--es-fs-xl);
    }

    .how-header p {
        padding-inline: var(--es-space-2);
        font-size: var(--es-fs-xs);
    }

    /* Les étapes deviennent une seule colonne. */
    .how-grid {
        grid-template-columns: 1fr;
        gap: var(--es-space-3);
    }

    /*
     * Sur mobile, la card utilise une grille interne :
     *
     * 01 | titre
     *    | description
     */
    .how-card {
        min-height: auto;
        padding: var(--es-space-4);
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: var(--es-space-4);
        row-gap: var(--es-space-2);
        align-items: start;
    }

    .how-card__number {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0;
        font-size: 1.75rem;
    }

    .how-card h3 {
        grid-column: 2;
        margin: 0;
        font-size: var(--es-fs-sm);
    }

    .how-card p {
        grid-column: 2;
        margin: 0;
        font-size: var(--es-fs-xs);
    }
}