/* ==========================================================================
   LM80 Widget Process — Timeline Layout
   Aligné sur le design Bolt (glassmorphism, dot markers, step cards)
   ========================================================================== */

/* ── Section ───────────────────────────────────────────────────────── */

.lm80-process {
    background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
    position: relative;
    overflow: hidden;
}

.lm80-process::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(162, 78, 174, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* ── Timeline wrapper ──────────────────────────────────────────────── */

.lm80-process-timeline-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 80px auto 0;
    padding: 0 40px;
}

/* ── Ligne verticale centrale ──────────────────────────────────────── */

.lm80-process .lm80-timeline-track {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(162, 78, 174, 0.15);
    transform: translateX(-50%);
    z-index: 1;
}

.lm80-process .lm80-timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, #a24eae 0%, #7c3aed 100%);
    transition: height 0.1s linear;
    box-shadow: 0 0 20px rgba(162, 78, 174, 0.5);
}

/* ── Timeline container ───────────────────────────────────────────── */

.lm80-process-timeline {
    position: relative;
    z-index: 2;
}

/* ── Step ──────────────────────────────────────────────────────────── */

.lm80-process-step {
    position: relative;
    margin-bottom: 200px;
    opacity: 0.4;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.lm80-process-step.lm80-step-active {
    opacity: 1;
    transform: translateY(0);
}

.lm80-process-step:last-child {
    margin-bottom: 0;
}

/* ── Marqueur (dot) ───────────────────────────────────────────────── */

.lm80-step-marker {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: #a24eae;
    border: 4px solid #ffffff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 8px rgba(162, 78, 174, 0.2);
    transition: all 0.3s ease;
}

.lm80-process-step.lm80-step-active .lm80-step-marker {
    background: #a24eae;
    box-shadow: 0 0 0 12px rgba(162, 78, 174, 0.3), 0 0 30px rgba(162, 78, 174, 0.5);
    animation: lm80-pulse-marker 2s ease-in-out infinite;
}

@keyframes lm80-pulse-marker {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
    }
}

/* ── Step card ─────────────────────────────────────────────────────── */

.lm80-step-card {
    position: relative;
    width: 45%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(162, 78, 174, 0.2);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.lm80-process-step.lm80-step-active .lm80-step-card {
    border-color: rgba(162, 78, 174, 0.4);
    box-shadow: 0 12px 48px rgba(162, 78, 174, 0.2);
}

/* Alternance gauche / droite */
.lm80-step-left {
    margin-right: auto;
    margin-left: 0;
}

.lm80-step-right {
    margin-left: auto;
    margin-right: 0;
}

/* ── Step badge ────────────────────────────────────────────────────── */

.lm80-step-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(162, 78, 174, 0.15);
    border: 1px solid rgba(162, 78, 174, 0.3);
    border-radius: 100px;
    color: #a24eae;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

/* ── Step title ────────────────────────────────────────────────────── */

.lm80-step-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* ── Step description ──────────────────────────────────────────────── */

.lm80-step-description {
    font-size: 15px;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 24px;
}

/* ── Step items (cards violettes) ──────────────────────────────────── */

.lm80-step-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.lm80-step-item {
    padding: 16px 20px;
    background: rgba(162, 78, 174, 0.05);
    border: 1px solid rgba(162, 78, 174, 0.15);
    border-radius: 12px;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.lm80-process-step.lm80-step-active .lm80-step-item {
    background: rgba(162, 78, 174, 0.12);
    border-color: rgba(162, 78, 174, 0.25);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1023px) {
    .lm80-process-timeline-wrapper {
        padding: 0 20px;
    }

    .lm80-process .lm80-timeline-track {
        left: 20px;
        transform: none;
    }

    .lm80-step-marker {
        left: 2px;
        transform: translate(-50%, -50%);
    }

    .lm80-step-card {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
        padding: 32px 24px;
    }

    .lm80-process-step {
        margin-bottom: 120px;
    }

    .lm80-step-title {
        font-size: 24px;
    }
}
