/* ============================================
   PARCOURS PAGE — Wizard + Timeline
   ============================================ */

/* ---- HERO ---- */
.parcours-hero {
    position: relative;
    padding: 100px 0 60px;
    overflow: hidden;
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 35%, #7c3aed 65%, #a78bfa 100%);
    color: white;
}

.parcours-hero .hero-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 1.4s ease;
    z-index: 0;
}

.parcours-hero .hero-canvas.is-loaded {
    opacity: 1;
}

/* Dark overlay for readability */
.parcours-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 1;
    pointer-events: none;
}

.parcours-hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32px;
    transition: color 0.2s;
}

.breadcrumb:hover { color: white; }
.breadcrumb svg { width: 16px; height: 16px; }

.parcours-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.parcours-emoji-large { font-size: 40px; }

.parcours-category-label {
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-mono);
}

.parcours-hero-title {
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.parcours-hero-desc {
    font-size: clamp(15px, 1.8vw, 18px);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 32px;
}

.parcours-hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.phs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.phs-item svg { width: 16px; height: 16px; color: var(--accent-2); }

.phs-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   WIZARD — Step by step flow
   ============================================ */
.wizard-section {
    padding: var(--section-pad) 0;
    background: var(--bg-2);
    min-height: 60vh;
}

.wizard-header {
    text-align: center;
    margin-bottom: 48px;
}

.wizard-header h2 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}

.wizard-header p {
    font-size: 15px;
    color: var(--text-2);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Progress bar */
.wizard-progress {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.progress-step {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--border);
    transition: background 0.4s var(--ease-out);
}

.progress-step.done { background: var(--accent); }
.progress-step.active { background: var(--accent-2); }

.progress-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-3);
    margin-top: 12px;
    font-family: var(--font-mono);
}

/* Wizard step container */
.wizard-step {
    max-width: 700px;
    margin: 0 auto;
    animation: wizardFadeIn 0.4s ease;
}

@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Address step */
.address-card {
    padding: 40px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
    text-align: center;
}

.address-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.address-card p {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 28px;
}

.wizard-address-wrap {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.wizard-address-input {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--bg-2);
    border: 2px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.wizard-address-input:focus-within {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(99, 91, 255, 0.08);
}

.wizard-address-input svg { width: 20px; height: 20px; color: var(--text-3); flex-shrink: 0; }

.wizard-address-input input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
}

.wizard-address-input input::placeholder { color: var(--text-3); }

.wizard-address-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    z-index: 10;
    overflow: hidden;
    display: none;
}

.wizard-address-suggestions.active { display: block; }

.wizard-address-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
    font-size: 14px;
    color: var(--text);
}

.wizard-address-suggestions .suggestion-item:hover { background: var(--bg-2); }
.wizard-address-suggestions .suggestion-item svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }

.wizard-geolocate-btn {
    margin-top: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 10px;
    background: white;
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-geolocate-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.wizard-geolocate-btn svg { width: 14px; height: 14px; }

.wizard-start-btn {
    display: block;
    width: 100%;
    max-width: 500px;
    margin: 24px auto 0;
    padding: 16px;
    border-radius: 14px;
    background: #4338ca;
    color: white;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 4px 16px rgba(67, 56, 202, 0.3);
}

.wizard-start-btn:hover { background: #3730a3; transform: scale(1.02); box-shadow: 0 6px 20px rgba(67, 56, 202, 0.4); }
.wizard-start-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.wizard-start-btn svg { width: 18px; height: 18px; }

/* Specialty step */
.specialty-step-card {
    padding: 32px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.step-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 100px;
    background: var(--accent-glow);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: 20px;
}

.specialty-step-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.specialty-name {
    display: inline-block;
    font-size: 15px;
    color: white;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 6px 16px;
    border-radius: 8px;
    background: var(--accent);
    letter-spacing: 0.02em;
}

.specialty-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 24px;
}

.practitioners-loading {
    text-align: center;
    padding: 32px;
    color: var(--text-3);
    font-size: 14px;
}

.practitioners-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.prat-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
}

.prat-option:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.prat-option.selected {
    border-color: var(--accent);
    background: rgba(99, 91, 255, 0.03);
    box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.08);
}

.prat-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.prat-option.selected .prat-radio {
    border-color: var(--accent);
    background: var(--accent);
}

.prat-radio-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    opacity: 0;
    transition: opacity 0.2s;
}

.prat-option.selected .prat-radio-dot { opacity: 1; }

.prat-option-info { flex: 1; min-width: 0; }
.prat-option-name { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.prat-option-spec { font-size: 13px; color: var(--accent); font-weight: 500; margin-bottom: 2px; }
.prat-option-addr { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prat-option-phone { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); margin-top: 2px; }

.prat-option-dist {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    font-family: var(--font-mono);
    flex-shrink: 0;
    text-align: right;
}

.prat-option-dist small {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-3);
}

.no-practitioners {
    text-align: center;
    padding: 24px;
    color: var(--text-3);
    font-size: 14px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
}

.step-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn-skip {
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-skip:hover { background: var(--bg-3); color: var(--text); }

.btn-next {
    padding: 12px 28px;
    border-radius: 12px;
    background: #4338ca;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s var(--ease-out);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(67, 56, 202, 0.3);
}

.btn-next:hover { background: #3730a3; transform: scale(1.02); }
.btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-next svg { width: 16px; height: 16px; }

/* ============================================
   RECAP
   ============================================ */
.recap-card {
    padding: 32px;
    border-radius: 20px;
    background: white;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.04);
}

.recap-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.recap-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.recap-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.recap-item:last-child { border-bottom: none; }

.recap-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

.recap-step-num.skipped {
    background: var(--bg-3);
    color: var(--text-3);
}

.recap-item-info { flex: 1; min-width: 0; }
.recap-item-label { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 2px; }
.recap-item-name { font-size: 15px; font-weight: 600; color: var(--text); }
.recap-item-addr { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.recap-item-skipped { font-size: 14px; color: var(--text-3); font-style: italic; }

.recap-item-dist {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.recap-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    background: var(--accent-glow);
    margin-bottom: 24px;
}

.recap-total-label { font-size: 14px; font-weight: 600; color: var(--text); }
.recap-total-value { font-size: 20px; font-weight: 800; color: var(--accent); font-family: var(--font-mono); }

/* Recap map */
.recap-map-container {
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.recap-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.recap-share-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-share-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-share-icon:hover { background: var(--accent); color: white; border-color: var(--accent); }
.btn-share-icon:hover svg { stroke: white; fill: white; }
.btn-share-icon svg { flex-shrink: 0; }

.btn-pdf { background: #dc2626; color: white; border-color: #dc2626; }
.btn-pdf:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-pdf svg { stroke: white; }

.btn-restart {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-restart:hover { border-color: var(--border-hover); color: var(--text); }
.btn-restart svg { width: 16px; height: 16px; }

.btn-print {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--accent);
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-print:hover { background: var(--accent-3); }
.btn-print svg { width: 16px; height: 16px; }

/* ============================================
   RELATED PARCOURS
   ============================================ */
.related-section {
    padding: var(--section-pad) 0;
    background: var(--bg);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* ============================================
   CTA
   ============================================ */
.cta-section-compact {
    padding: 60px 0;
    background: var(--bg-2);
}

.cta-compact-content {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-compact-content h2 {
    font-size: clamp(24px, 4vw, 32px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.cta-compact-content p {
    font-size: 15px;
    color: var(--text-2);
    margin-bottom: 24px;
    line-height: 1.6;
}

.cta-compact-content .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--accent);
    color: white;
    font-weight: 600;
    transition: all 0.3s;
}

.cta-compact-content .cta-button:hover { background: var(--accent-3); transform: scale(1.03); }

/* tc-btn for backward compat */
.tc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
}

.tc-btn svg { width: 14px; height: 14px; }

.tc-btn-primary {
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
}

.tc-btn-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.tc-btn-secondary {
    background: white;
    border: 1px solid var(--border);
    color: var(--text-2);
}

.tc-btn-secondary:hover {
    background: var(--bg-2);
    color: var(--text);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .parcours-hero { padding: 80px 0 36px; }
    .parcours-hero-title { font-size: clamp(24px, 7vw, 36px); }
    .parcours-hero-desc { font-size: 14px; margin-bottom: 20px; }
    .parcours-emoji-large { font-size: 32px; }
    .parcours-category-label { font-size: 11px; padding: 4px 10px; }
    .breadcrumb { margin-bottom: 20px; font-size: 13px; }
    .parcours-hero-stats { gap: 12px; }
    .phs-item { font-size: 12px; }

    .wizard-section { padding: 32px 0; }
    .wizard-progress { margin-bottom: 20px; padding: 0; }
    .address-card { padding: 20px; }
    .address-card h3 { font-size: 18px; }
    .address-card p { font-size: 14px; margin-bottom: 20px; }
    .wizard-address-input { padding: 12px 16px; }
    .wizard-address-input input { font-size: 14px; }
    .wizard-start-btn { font-size: 15px; padding: 14px; }

    .specialty-step-card { padding: 20px; }
    .specialty-step-card h3 { font-size: 18px; }

    /* Skip button at top on mobile */
    .step-actions {
        flex-direction: column-reverse;
    }
    .btn-skip, .btn-next { width: 100%; justify-content: center; text-align: center; }

    .prat-option { padding: 12px; gap: 10px; }
    .prat-radio { width: 20px; height: 20px; }
    .prat-option-name { font-size: 14px; }
    .prat-option-addr { font-size: 12px; white-space: normal; }
    .prat-option-dist { font-size: 13px; }

    .recap-card { padding: 20px; }
    .recap-card h3 { font-size: 18px; }
    .recap-map-container { height: 250px; }
    .recap-item { gap: 10px; }
    .recap-item-addr { font-size: 12px; }
    .recap-total { padding: 12px 16px; flex-direction: column; gap: 4px; text-align: center; }
    .recap-total-value { font-size: 18px; }
    .recap-actions { gap: 8px; }
    .btn-restart, .btn-print { padding: 10px 20px; font-size: 13px; flex: 1; justify-content: center; }

    .related-section { padding: 48px 0; }
    .related-grid { grid-template-columns: 1fr; }
}

@media print {
    .nav, .mobile-menu, .cursor-glow, .grain-overlay,
    .wizard-progress, .step-actions, .recap-actions,
    .related-section, .cta-section-compact,
    .legal-disclaimer, .footer, .cookie-banner { display: none !important; }

    .parcours-hero { padding: 40px 0; min-height: auto; }
    .wizard-section { padding: 20px 0; }
    .recap-card { box-shadow: none; border: 1px solid #ddd; }
    .recap-map-container { height: 300px; break-inside: avoid; }
}
