.qtx-flow {
    max-width: 680px;
}

/* ── Étape ── */
.qtx-step {
    display: flex !important;
    gap: 18px;
    align-items: flex-start;
}

/* ── Colonne gauche ── */
.qtx-step-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    /* Étire la colonne à la hauteur complète de step-right */
    align-self: stretch !important;
}

/*
 * Bulle numérotée
 * z-index 2 + fond opaque : recouvre l'extension du trait de l'étape précédente
 */
.qtx-step-num {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
    background: #EAF2FB;
    border: 1.5px solid #185FA5;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px;
    font-weight: 600;
    color: #0C447C;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    /* Le fond opaque recouvre le trait qui remonte depuis l'étape précédente */
    box-sizing: border-box;
}

/*
 * Trait connecteur
 * flex:1 remplit la hauteur restante de step-left.
 * margin-bottom:-40px étend le trait 40px sous l'étape,
 * couvrant tout écart résiduel dû au thème.
 * La bulle suivante (z-index 2, fond opaque) cache cet excédent.
 */
.qtx-step-line {
    flex: 1 1 auto;
    width: 1px;
    min-height: 20px;
    background: #d0dce8;
    position: relative;
    z-index: 1;
    margin-bottom: -40px;
}

/* ── Colonne droite ── */
.qtx-step-right {
    padding-bottom: 28px;
    flex: 1;
    min-width: 0;
}

.qtx-step-right--last {
    padding-bottom: 0 !important;
}

/* ── Titre H3 ──
 * Reset complet des styles H3 du thème
 */
.qtx-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    /* Zéro les marges/paddings du thème pour aligner avec la bulle */
    margin: 0 0 5px 0 !important;
    padding: 0 !important;
    line-height: 1.3;
    border: none !important;
    background: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.qtx-step-link {
    text-decoration: none;
}

.qtx-step-link:hover .qtx-step-title {
    text-decoration: underline;
}

/* ── Description ──
 * margin-bottom:0 pour éviter l'espace excessif avant le badge
 */
.qtx-step-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Badge ── */
.qtx-step-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 4px;
    margin-top: 8px;
    border: 1px solid transparent;
    line-height: 1;
}

.qtx-step-tag i,
.qtx-step-tag svg {
    width: 13px;
    height: 13px;
    font-size: 13px;
    flex-shrink: 0;
}

.qtx-tag-blue {
    background: #EAF2FB;
    color: #185FA5;
    border-color: #b8d3ef;
}

.qtx-tag-gray {
    background: #f4f4f4;
    color: #555;
    border-color: #ddd;
}

/* ── Note de bas de bloc ── */
.qtx-flow-note {
    margin-top: 28px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-left: 3px solid #185FA5;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.qtx-flow-note p {
    margin: 0 0 0.5em 0 !important;
}

.qtx-flow-note p:last-child {
    margin-bottom: 0 !important;
}

.qtx-flow-note a {
    color: inherit;
    text-decoration: underline;
}
