/* =========================================
   FNB vs CONSEILLER — Interactive Timeline
   ========================================= */

.tl-section {
    position: relative;
    padding: 50px 0 40px;
    background: transparent;
    overflow: hidden;
}

.tl-header {
    text-align: center;
    margin-bottom: 30px;
}

.tl-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0a2540;
    line-height: 1.15;
    margin-bottom: 10px;
}

.tl-header p {
    font-size: 0.9rem;
    color: #5a7d95;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ── Timeline Navigation ── */
.tl-nav {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 720px;
    margin: 0 auto 28px;
    padding: 0 16px;
    position: relative;
}

.tl-line {
    position: absolute;
    top: 20px;
    left: 55px;
    right: 55px;
    height: 3px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 0;
}

.tl-line-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.tl-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    padding: 0;
    outline: none;
}

.tl-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.tl-dot i, .tl-dot svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
    transition: color 0.35s ease;
}

.tl-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
    transition: color 0.35s ease;
    white-space: nowrap;
}

.tl-node--active .tl-dot {
    border-color: #0077b6;
    background: #0077b6;
    box-shadow: 0 0 0 5px rgba(0, 119, 182, 0.1), 0 3px 10px rgba(0, 119, 182, 0.18);
    transform: scale(1.08);
}

.tl-node--active .tl-dot i,
.tl-node--active .tl-dot svg { color: #fff; }

.tl-node--active .tl-label {
    color: #0077b6;
    font-weight: 700;
}

.tl-node--past .tl-dot {
    border-color: #0077b6;
    background: #e8f4f8;
}

.tl-node--past .tl-dot i,
.tl-node--past .tl-dot svg { color: #0077b6; }
.tl-node--past .tl-label { color: #0077b6; }

.tl-node:hover .tl-dot {
    border-color: #0077b6;
    transform: scale(1.06);
}
.tl-node:hover .tl-label { color: #0077b6; }

/* ── Step Title ── */
.tl-step-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.tl-step-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.tl-step-icon i, .tl-step-icon svg {
    width: 18px;
    height: 18px;
}

.tl-step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    color: #0077b6;
    opacity: 0.4;
    letter-spacing: 0.05em;
}

.tl-step-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a2540;
}

/* ── Comparison Grid ── */
.tl-compare {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0;
    max-width: 880px;
    margin: 0 auto;
    padding: 0 16px;
}

.tl-side {
    padding: 24px 22px;
    border-radius: 14px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.tl-side--fnb {
    background: #f8f9fa;
    border: 1.5px solid #e5e7eb;
    opacity: 0.78;
}

.tl-side--adv {
    background: linear-gradient(145deg, rgba(0, 119, 182, 0.03), rgba(0, 180, 216, 0.05));
    border: 1.5px solid rgba(0, 119, 182, 0.2);
    box-shadow: 0 6px 28px rgba(0, 119, 182, 0.06);
}

.tl-compare.tl-switching .tl-side {
    opacity: 0;
    transform: translateY(6px);
}

/* ── Side Label (FNB indiciel / Avec conseiller) ── */
.tl-side-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.tl-side-label i, .tl-side-label svg {
    width: 13px;
    height: 13px;
}

.tl-side-label--fnb {
    background: #f1f5f9;
    color: #64748b;
}

.tl-side-label--adv {
    background: #0077b6;
    color: #fff;
}

/* ── Verdict ── */
.tl-verdict {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.tl-verdict--adv {
    border-bottom-color: rgba(0, 119, 182, 0.1);
}

.tl-verdict-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tl-verdict-icon i, .tl-verdict-icon svg {
    width: 20px;
    height: 20px;
}

.tl-verdict-icon--fnb {
    background: #fef2f2;
    color: #ef4444;
    border: 1.5px solid #fecaca;
}

.tl-verdict-icon--adv {
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    box-shadow: 0 3px 12px rgba(0, 119, 182, 0.2);
}

.tl-verdict-keyword {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.tl-verdict-keyword--fnb { color: #64748b; }
.tl-verdict-keyword--adv { color: #0a2540; }

/* ── Checklist ── */
.tl-checklist {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tl-check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    line-height: 1.5;
}

.tl-check-item i, .tl-check-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tl-check-item--bad { color: #64748b; }
.tl-check-item--bad i, .tl-check-item--bad svg { color: #ef4444; }
.tl-check-item--bad strong { color: #475569; font-weight: 700; }

.tl-check-item--good {
    color: #334155;
    font-weight: 500;
}
.tl-check-item--good i, .tl-check-item--good svg { color: #16a34a; }
.tl-check-item--good strong { color: #0077b6; font-weight: 700; }

/* ── Panel Result ── */
.tl-panel-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.tl-panel-result i, .tl-panel-result svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.tl-panel-result--fnb {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tl-panel-result--adv {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

/* ── VS Divider ── */
.tl-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    color: #94a3b8;
    position: relative;
    letter-spacing: 0.05em;
}

.tl-vs::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 50%;
    width: 1px;
    background: #e2e8f0;
    transform: translateX(-50%);
}

/* ── CTA ── */
.tl-cta-wrap {
    text-align: center;
    margin-top: 32px;
}

.adv-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 60px;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 119, 182, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.adv-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 119, 182, 0.35);
}

.adv-cta i, .adv-cta svg {
    width: 18px;
    height: 18px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .tl-header h2 { font-size: 1.4rem; }

    .tl-nav {
        gap: 0;
        padding: 0 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tl-nav::-webkit-scrollbar { display: none; }

    .tl-dot { width: 36px; height: 36px; }
    .tl-dot i, .tl-dot svg { width: 14px; height: 14px; }
    .tl-label { font-size: 0.6rem; }
    .tl-line { top: 18px; left: 38px; right: 38px; }

    .tl-compare {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .tl-side { padding: 22px 20px; border-radius: 12px; }
    .tl-side--fnb { border-radius: 12px 12px 0 0; }
    .tl-side--adv { border-radius: 0 0 12px 12px; }

    .tl-vs { width: 100%; height: 0; overflow: visible; }
    .tl-vs::before { display: none; }

    .tl-verdict-keyword { font-size: 0.9rem; }
}

@media (max-width: 480px) {
    .tl-section { padding: 40px 0 30px; }
    .tl-side { padding: 18px 14px; }
    .tl-check-item { font-size: 0.78rem; }
    .tl-panel-result { font-size: 0.75rem; padding: 10px 12px; }
    .tl-verdict-keyword { font-size: 0.85rem; }
}
