/* Section "How it works" — trois bulles au-dessus de "Level up your stream" */

.home-steps {
    padding: clamp(48px, 8vw, 80px) clamp(24px, 5vw, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: var(--color-black);
}

.home-steps__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
    max-width: 1100px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* État initial : bulles floues, en bas, légèrement réduites */
.home-steps__list:not(.home-steps__list--visible) .home-steps__bubble {
    opacity: 0;
    transform: translateY(50px) scale(0.88);
    filter: blur(14px);
}

/* Animation au scroll — blur + montée + pop élastique */
@keyframes stepsBubbleReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.88);
        filter: blur(14px);
    }
    60% {
        opacity: 1;
        filter: blur(4px);
    }
    85% {
        transform: translateY(-6px) scale(1.04);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.home-steps__list.home-steps__list--visible .home-steps__bubble {
    animation: stepsBubbleReveal 0.75s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}
.home-steps__list.home-steps__list--visible .home-steps__bubble:nth-child(1) {
    animation-delay: 0.08s;
}
.home-steps__list.home-steps__list--visible .home-steps__bubble:nth-child(2) {
    animation-delay: 0.2s;
}
.home-steps__list.home-steps__list--visible .home-steps__bubble:nth-child(3) {
    animation-delay: 0.32s;
}

/* Couleurs des bulles : fond 15 % opacité, textes et boutons 100 % */
.home-steps__bubble {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: clamp(28px, 4vw, 36px);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Bulle 1 — Twitch : #BB68FF */
.home-steps__bubble--twitch {
    background: rgba(187, 104, 255, 0.15);
}
.home-steps__bubble--twitch .home-steps__title,
.home-steps__bubble--twitch .home-steps__subtitle {
    color: #BB68FF;
}
.home-steps__bubble--twitch .home-steps__cta {
    background: transparent;
    border: 2px solid #BB68FF;
    color: #BB68FF;
}
.home-steps__bubble--twitch .home-steps__cta:hover {
    box-shadow: 0 12px 24px rgba(187, 104, 255, 0.4);
}

/* Bulle 2 — Software : #B5BBE3 */
.home-steps__bubble--software {
    background: rgba(181, 187, 227, 0.15);
}
.home-steps__bubble--software .home-steps__title,
.home-steps__bubble--software .home-steps__subtitle {
    color: #B5BBE3;
}
.home-steps__bubble--software .home-steps__cta {
    background: transparent;
    border: 2px solid #B5BBE3;
    color: #B5BBE3;
}
.home-steps__bubble--software .home-steps__cta:hover {
    box-shadow: 0 12px 24px rgba(181, 187, 227, 0.4);
}

/* Bulle 3 — Demo : #68FFA0 */
.home-steps__bubble--demo {
    background: rgba(104, 255, 160, 0.15);
}
.home-steps__bubble--demo .home-steps__title,
.home-steps__bubble--demo .home-steps__subtitle {
    color: #68FFA0;
}
.home-steps__bubble--demo .home-steps__cta {
    background: transparent;
    border: 2px solid #68FFA0;
    color: #68FFA0;
}
.home-steps__bubble--demo .home-steps__cta:hover {
    box-shadow: 0 12px 24px rgba(104, 255, 160, 0.4);
}

.home-steps__bubble:hover {
    transform: translateY(-4px) scale(1);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.home-steps__title {
    margin: 0 0 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.25;
}

.home-steps__subtitle {
    margin: 0 0 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.5;
    flex-grow: 1;
}

.home-steps__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-steps__cta:hover {
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .home-steps__list {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .home-steps {
        padding: 40px clamp(20px, 5vw, 40px);
        gap: 28px;
    }

    .home-steps__bubble {
        padding: 24px;
    }
}
