/* ===== MES DEMARCHES PRO — Design System v2 ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #1a56db;
    --primary-dark: #1e3a5f;
    --primary-light: #e8f0fe;
    --accent: #0d9488;
    --accent-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fffbeb;
    --danger: #dc2626;
    --text: #1a1a2e;
    --text-light: #5a6170;
    --text-muted: #9ca3af;
    --bg: #f4f6f9;
    --card-bg: #ffffff;
    --border: #e2e7ee;
    --border-light: #f0f2f5;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== LAYOUT ===== */
.container {
    max-width: 700px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ===== NAV BAR ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #162d50 100%);
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(30, 58, 95, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}
.navbar .brand {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
}
.navbar .brand span {
    color: #5eead4;
    font-weight: 800;
}

/* ===== HERO ===== */
.hero {
    text-align: center;
    padding: 44px 0 28px;
}
.hero h1 {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}
.hero p {
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== PARCOURS GRID ===== */
.parcours-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
}
.parcours-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: block;
    position: relative;
    overflow: hidden;
}
.parcours-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background var(--transition);
    border-radius: var(--radius) 0 0 var(--radius);
}
.parcours-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.parcours-card:hover::before {
    background: var(--primary);
}
.parcours-card:active { transform: translateY(-1px); }
.parcours-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}
.parcours-card .card-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform var(--transition);
}
.parcours-card:hover .card-icon-wrap {
    transform: scale(1.08);
}
.parcours-card .card-icon-wrap.blue { background: var(--primary-light); }
.parcours-card .card-icon-wrap.green { background: var(--accent-light); }
.parcours-card .card-icon-wrap.amber { background: var(--warning-light); }
.parcours-card .icon-svg { width: 24px; height: 24px; }
.parcours-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}
.parcours-card .card-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
}
.parcours-card .badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-top: 12px;
}
.badge-new { background: var(--accent); color: white; }
.badge-soon { background: var(--border); color: var(--text-light); }

/* ===== SCREENS (parcours interactifs) ===== */
.screen { display: none; animation: fadeSlideIn 0.35s ease; }
.screen.active { display: block; }
@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== PROGRESS ===== */
.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 6px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
    margin-bottom: 16px;
    min-height: 1em;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* ===== CARDS ===== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    color: var(--primary-dark);
    letter-spacing: -0.01em;
}
.card p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ===== QUESTION TAG ===== */
.question-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* ===== HELP TEXT ===== */
.help-text {
    background: linear-gradient(135deg, #f1f4f9 0%, #eef1f7 100%);
    border-left: 3px solid var(--primary);
    padding: 14px 18px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.88rem;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* ===== BUTTONS ===== */
.btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    line-height: 1.4;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1648b8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(26,86,219,0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #1648b8 0%, #123d9e 100%);
    box-shadow: 0 4px 14px rgba(26,86,219,0.4);
    transform: translateY(-1px);
}
.btn-answer {
    background: white;
    color: var(--text);
    border: 1.5px solid var(--border);
    margin-bottom: 10px;
    position: relative;
}
.btn-answer:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}
.btn-secondary {
    background: var(--primary-light);
    color: var(--primary);
    margin-top: 20px;
    border: 1px solid transparent;
}
.btn-secondary:hover {
    background: #d4e2f7;
    border-color: var(--primary);
}
.btn-group { display: flex; flex-direction: column; }

/* ===== RESULT CARDS ===== */
.result-card {
    border-top: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
}
.result-icon {
    text-align: center;
    margin-bottom: 16px;
    padding-top: 8px;
}
.result-icon .icon-svg { width: 56px; height: 56px; }
.result-explanation { margin-top: 20px; }
.result-explanation h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-top: 22px;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
    letter-spacing: -0.01em;
}
.result-explanation p { color: var(--text); font-size: 0.93rem; margin-bottom: 10px; }
.result-explanation ol, .result-explanation ul { padding-left: 20px; margin-bottom: 12px; }
.result-explanation li { font-size: 0.9rem; color: var(--text); padding: 4px 0; }

/* ===== INFO / WARNING / SUCCESS BOXES ===== */
.info-box, .warning-box, .success-box {
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin: 16px 0;
    font-size: 0.88rem;
    line-height: 1.6;
    position: relative;
}
.info-box {
    background: linear-gradient(135deg, var(--primary-light) 0%, #dce8fa 100%);
    border: 1px solid #bbd0f5;
    color: var(--primary-dark);
}
.warning-box {
    background: linear-gradient(135deg, var(--warning-light) 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    color: #92400e;
}
.success-box {
    background: linear-gradient(135deg, var(--accent-light) 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    color: #065f46;
}

/* ===== CHECKLIST ===== */
.checklist { list-style: none; padding: 0; margin: 14px 0; }
.checklist li {
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: border-color var(--transition);
}
.checklist li:hover { border-color: var(--primary); }
.checklist li .check-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 4px;
    margin-top: 1px;
}

/* ===== STEP INDICATOR ===== */
.step-list { list-style: none; padding: 0; margin: 16px 0; counter-reset: step; }
.step-list li {
    counter-increment: step;
    padding: 16px 18px 16px 56px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    font-size: 0.9rem;
    position: relative;
    line-height: 1.55;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.step-list li:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.step-list li::before {
    content: counter(step);
    position: absolute;
    left: 16px;
    top: 14px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, #1648b8 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(26,86,219,0.25);
}
.step-list li ul, .step-list li ol {
    counter-reset: none;
    list-style: disc;
    margin: 8px 0 0 0;
    padding-left: 18px;
}
.step-list li ul li, .step-list li ol li {
    counter-increment: none;
    padding: 2px 0;
    margin: 0;
    border: none;
    background: none;
    position: static;
    padding-left: 0;
    font-size: 0.86rem;
}
.step-list li ul li::before, .step-list li ol li::before {
    display: none;
}
.step-list li ul li:hover, .step-list li ol li:hover {
    border-color: transparent;
    box-shadow: none;
}
.step-list li strong { color: var(--primary-dark); }

/* ===== CHECKLIST ITEMS ===== */
.checklist-item {
    padding: 14px 18px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.55;
    transition: border-color var(--transition);
}
.checklist-item:hover { border-color: var(--primary); }

/* ===== TABLES ===== */
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}
table td, table th {
    padding: 10px 12px;
    border: 1px solid var(--border);
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 36px 0 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    margin-top: 32px;
}
.footer p { margin-bottom: 4px; }
.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.footer a:hover { text-decoration: underline; }

/* ===== SVG ICONS ===== */
.icon-svg { display: inline-block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .hero h1 { font-size: 1.5rem; }
    .hero { padding: 32px 0 20px; }
    .card { padding: 24px 20px; }
    .btn { padding: 13px 16px; font-size: 0.93rem; }
    .navbar { padding: 14px 16px; }
    .container { padding: 20px 14px; }
}
@media (min-width: 768px) {
    .container { padding: 32px 24px; }
    .hero h1 { font-size: 2.1rem; }
    .hero { padding: 52px 0 32px; }
    .parcours-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
    .card { padding: 36px 32px; }
}
@media (min-width: 1024px) {
    .parcours-grid { grid-template-columns: 1fr 1fr 1fr; }
}
