/* Story v2 : grands aplats et parcours horizontal activé par GSAP, jamais masqué sans JavaScript. */
.ma-steps { background: var(--ma-papier); }
.ma-steps__eyebrow {
    margin-bottom: var(--ma-space-4);
    color: var(--ma-violet-texte);
    font-family: var(--ma-font-display);
    font-size: var(--ma-text-lg);
    font-weight: 800;
    text-transform: uppercase;
}
.ma-steps__section-title {
    margin-bottom: var(--ma-space-4);
    font-size: var(--ma-titre-xl);
    font-stretch: 87.5%;
    font-style: italic;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}
.ma-steps__intro {
    margin: 0 0 var(--ma-space-6);
    font-size: var(--ma-text-lg);
}
.ma-steps__list {
    display: grid;
    gap: var(--ma-space-4);
    margin: 0;
    padding: 0;
    list-style: none;
}
.ma-steps__item {
    position: relative;
    isolation: isolate;
    display: flex;
    min-width: 0;
    min-height: 22rem;
    aspect-ratio: 1;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--ma-space-5);
    padding: var(--ma-space-5);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ma-space-5)), calc(100% - var(--ma-space-5)) 100%, 0 100%);
    color: var(--ma-encre);
}
.ma-steps__item::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 0;
    width: 52%;
    height: 58%;
    background: repeating-linear-gradient(115deg, transparent 0, transparent var(--ma-space-5), var(--ma-papier) var(--ma-space-5), var(--ma-papier) var(--ma-space-6));
    clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%);
    opacity: 0.38;
    pointer-events: none;
}
.ma-steps__number,
.ma-steps__content { position: relative; z-index: 1; }
.ma-steps__item--signup { background: var(--ma-jaune); }
.ma-steps__item--share { background: var(--ma-rose); }
.ma-steps__item--earn { background: var(--ma-menthe); }
.ma-steps__number {
    display: block;
    font-family: var(--ma-font-display);
    font-size: clamp(8rem, 12vw, 12rem);
    font-stretch: 75%;
    font-style: italic;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    font-variant-numeric: lining-nums tabular-nums;
}
.ma-steps__title {
    margin-bottom: var(--ma-space-3);
    font-size: var(--ma-titre-l);
    font-stretch: 87.5%;
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
}
.ma-steps__content p {
    max-width: 34ch;
    margin: 0;
    font-size: var(--ma-text-md);
}
@media (min-width: 1100px) {
    .ma-steps { padding-block: var(--ma-space-7); }
    .ma-steps__heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 22rem);
        column-gap: var(--ma-space-6);
        align-items: end;
        margin-bottom: var(--ma-space-6);
    }
    .ma-steps__eyebrow { grid-column: 1 / -1; margin-bottom: var(--ma-space-2); }
    .ma-steps__section-title,
    .ma-steps__intro { margin-bottom: 0; }
    .ma-steps__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ma-space-6); }
    .ma-steps__item { padding: var(--ma-space-6); }
    .ma-steps__content p { font-size: var(--ma-text-lg); }

    /* Le mode épinglé existe seulement quand son contrôleur et la hauteur d'écran le permettent. */
    .ma-steps[data-etapes-pinned] .ma-steps__viewport { overflow: hidden; }
    .ma-steps[data-etapes-pinned] .ma-steps__list { display: flex; }
    .ma-steps[data-etapes-pinned] .ma-steps__item {
        flex: 0 0 min(42vw, calc(100svh - var(--ma-landing-header-height, 4.75rem) - 17rem));
    }
}
