
        :root {
            --navy: #1e3c72;
            --navy-light: #2a5298;
            --navy-dark: #152d5a;
            --accent: #0ea5e9;
            --green: #22c55e;
            --green-light: #dcfce7;
            --green-dark: #16a34a;
            --orange: #f59e0b;
            --orange-light: #fef3c7;
            --red: #ef4444;
            --teal: #0d9488;
            --teal-light: #ccfbf1;
            --body-text: #334155;
            --subtle: #64748b;
            --muted: #94a3b8;
            --border: #e2e8f0;
            --bg: #f1f5f9;
            --bg-warm: #f8fafc;
            --card: #ffffff;
            --card-shadow: 0 4px 24px rgba(30,60,114,0.08);
            --font: 'DM Sans', -apple-system, sans-serif;
            --font-display: 'DM Serif Display', Georgia, serif;
            --radius: 16px;
            --radius-sm: 10px;
            --radius-xs: 6px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        body {
            font-family: var(--font);
            background: var(--bg);
            min-height: 100vh;
            color: var(--body-text);
        }

        /* ============================== HEADER ============================== */
        .header {
            background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
            color: white;
            padding: 14px 0;
            box-shadow: 0 4px 20px rgba(30,60,114,0.15);
            position: sticky;
            top: 0;
            z-index: 100;
        }
        .header-content {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .logo { display: flex; align-items: center; gap: 14px; }
        .logo-icon {
            width: 42px; height: 42px;
            background: rgba(255,255,255,0.15);
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 12px;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px;
        }
        .logo h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
        .logo p { font-size: 12px; opacity: 0.8; font-weight: 400; margin-top: 1px; }
        .header-right { display: flex; gap: 12px; align-items: center; }
        .btn-header {
            padding: 8px 20px;
            background: rgba(255,255,255,0.12);
            color: white;
            border: 1.5px solid rgba(255,255,255,0.4);
            border-radius: var(--radius-xs);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            font-family: var(--font);
            letter-spacing: 0.3px;
            text-decoration: none;
        }
        .btn-header:hover { background: white; color: var(--navy); }

        /* ============================== MAIN CONTAINER ============================== */
        .main-container { padding: 24px 30px; max-width: 1400px; margin: 0 auto; }

        /* ============================== PHASE 1 - SIMULATEUR ============================== */
        .simulator { display: block; }

        /* Welcome / Accroche */
        .welcome-screen {
            text-align: center;
            padding: 60px 30px;
            max-width: 800px;
            margin: 0 auto;
        }
        .welcome-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--teal-light);
            color: var(--teal);
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 28px;
        }
        .welcome-screen h2 {
            font-family: var(--font-display);
            font-size: 42px;
            color: var(--navy);
            line-height: 1.2;
            margin-bottom: 10px;
            font-weight: 400;
        }
        .welcome-screen h2 span {
            background: linear-gradient(135deg, var(--teal), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .welcome-screen .subtitle {
            font-size: 18px;
            color: var(--subtle);
            line-height: 1.6;
            margin-bottom: 40px;
            max-width: 600px;
            margin-left: auto; margin-right: auto;
        }
        .welcome-features {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin-bottom: 40px;
        }
        .welcome-feature {
            background: var(--card);
            padding: 24px 18px;
            border-radius: var(--radius);
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border);
            transition: all 0.3s;
        }
        .welcome-feature:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(30,60,114,0.12); }
        .welcome-feature .feat-icon {
            width: 64px; height: 64px;
            border-radius: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: 800;
            margin-bottom: 14px;
            color: white;
        }
        .welcome-feature .feat-icon.icon-questions { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
        .welcome-feature .feat-icon.icon-estimate { background: linear-gradient(135deg, var(--teal), #0d9488); }
        .welcome-feature .feat-icon.icon-accomp { background: linear-gradient(135deg, var(--accent), #0284c7); }
        .welcome-feature h4 { font-size: 15px; color: var(--navy); margin-bottom: 6px; font-weight: 700; }
        .welcome-feature p { font-size: 13px; color: var(--subtle); line-height: 1.5; }

        .btn-start {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 18px 48px;
            background: linear-gradient(135deg, var(--green-dark) 0%, var(--teal) 100%);
            color: white;
            border: none;
            border-radius: 60px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 6px 30px rgba(22,163,74,0.25);
            font-family: var(--font);
            letter-spacing: 0.3px;
        }
        .btn-start:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 40px rgba(22,163,74,0.35);
        }

        /* Question Container */
        .question-container {
            display: none;
            max-width: 700px;
            margin: 0 auto;
            padding: 30px 0;
        }

        /* Progress Bar (simulator) */
        .sim-progress {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-bottom: 40px;
            padding: 0 20px;
        }
        .sim-progress-step {
            flex: 1;
            height: 5px;
            border-radius: 10px;
            background: var(--border);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
        }
        .sim-progress-step.completed { background: var(--green); }
        .sim-progress-step.active {
            background: linear-gradient(90deg, var(--green), var(--accent));
            animation: progressPulse 2s ease infinite;
        }
        @keyframes progressPulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }
        .sim-progress-label {
            font-size: 12px;
            color: var(--muted);
            font-weight: 600;
            white-space: nowrap;
        }

        /* Question Card */
        .question-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 48px 40px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border);
            animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            min-height: 520px;
            transition: min-height 0.3s ease;
            display: flex;
            flex-direction: column;
        }
        .question-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 4px;
            background: linear-gradient(90deg, var(--navy), var(--accent));
        }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .question-number {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 36px; height: 36px;
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            border-radius: 50%;
            font-size: 15px;
            font-weight: 700;
            margin-bottom: 20px;
        }
        .question-card h3 {
            font-family: var(--font-display);
            font-size: 26px;
            color: var(--navy);
            margin-bottom: 8px;
            line-height: 1.3;
            font-weight: 400;
        }
        .question-hint {
            font-size: 16px;
            color: var(--body-text);
            margin-bottom: 32px;
            line-height: 1.6;
        }

        /* Input Styles */
        .input-group { margin-bottom: 20px; }
        .input-number {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 20px;
            font-weight: 600;
            color: var(--navy);
            font-family: var(--font);
            transition: all 0.3s;
            background: var(--bg-warm);
        }
        .input-number:focus {
            outline: none;
            border-color: var(--navy);
            box-shadow: 0 0 0 4px rgba(30,60,114,0.1);
            background: white;
        }
        .input-number::placeholder { color: var(--muted); font-weight: 400; font-size: 16px; }

        .input-text {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 16px;
            color: var(--navy);
            font-family: var(--font);
            transition: all 0.3s;
            background: var(--bg-warm);
        }
        .input-text:focus {
            outline: none;
            border-color: var(--navy);
            box-shadow: 0 0 0 4px rgba(30,60,114,0.1);
            background: white;
        }

        .input-select {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            font-size: 16px;
            color: var(--navy);
            font-family: var(--font);
            transition: all 0.3s;
            background: var(--bg-warm);
            cursor: pointer;
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%2364748b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 16px center;
        }
        .input-select:focus {
            outline: none;
            border-color: var(--navy);
            box-shadow: 0 0 0 4px rgba(30,60,114,0.1);
        }

        /* Yes/No Toggle Buttons */
        .toggle-group {
            display: flex;
            gap: 16px;
        }
        .toggle-btn {
            flex: 1;
            padding: 20px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--bg-warm);
            cursor: pointer;
            text-align: center;
            font-size: 17px;
            font-weight: 600;
            color: var(--subtle);
            transition: all 0.3s;
            font-family: var(--font);
        }
        .toggle-btn:hover {
            border-color: var(--navy-light);
            background: white;
            color: var(--navy);
        }
        .toggle-btn.selected {
            border-color: var(--navy);
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            box-shadow: 0 4px 15px rgba(30,60,114,0.2);
        }
        .toggle-btn .toggle-icon { font-size: 28px; margin-bottom: 8px; display: block; }

        /* AI match hint */
        .ai-match {
            display: none;
            background: var(--green-light);
            border: 1px solid var(--green);
            border-radius: var(--radius-xs);
            padding: 12px 16px;
            margin-top: 12px;
            font-size: 14px;
            color: #166534;
            animation: slideUp 0.3s ease;
        }
        .ai-match.show { display: flex; align-items: center; gap: 10px; }

        /* Navigation buttons */
        .question-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
            padding-top: 30px;
        }
        .btn-nav {
            padding: 14px 32px;
            border: none;
            border-radius: 60px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: var(--font);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-next {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            box-shadow: 0 4px 15px rgba(30,60,114,0.2);
        }
        .btn-next:hover { transform: translateY(-2px); box-shadow: 0 6px 25px rgba(30,60,114,0.3); }
        .btn-next:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
        .btn-prev {
            background: transparent;
            color: var(--subtle);
            border: 2px solid var(--border);
        }
        .btn-prev:hover { border-color: var(--navy-light); color: var(--navy); }

        /* Feedback message after answer */
        .feedback-msg {
            display: none;
            padding: 12px 18px;
            border-radius: var(--radius-xs);
            font-size: 14px;
            font-weight: 500;
            margin-top: 16px;
            animation: slideUp 0.3s ease;
        }
        .feedback-msg.positive {
            background: var(--green-light);
            color: #166534;
            border-left: 4px solid var(--green);
        }
        .feedback-msg.neutral {
            background: #f0f9ff;
            color: #0c4a6e;
            border-left: 4px solid var(--accent);
        }
        .feedback-msg.show { display: block; }

        /* ============================== RESULTS SCREEN ============================== */
        .results-screen {
            display: none;
            text-align: center;
            max-width: 700px;
            margin: 0 auto;
            padding: 30px 0;
        }
        .results-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 50px 40px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border);
            animation: slideUp 0.6s ease;
            position: relative;
            overflow: hidden;
        }
        .results-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 5px;
        }
        .results-card.high::before { background: linear-gradient(90deg, var(--green), var(--teal)); }
        .results-card.low::before { background: linear-gradient(90deg, var(--orange), #ef4444); }

        .results-icon {
            width: 64px; height: 64px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 28px;
            font-weight: 800;
            margin: 0 auto 20px;
            color: white;
        }
        .results-card.high .results-icon { background: linear-gradient(135deg, var(--green), var(--teal)); }
        .results-card.low .results-icon { background: linear-gradient(135deg, var(--navy), var(--navy-light)); }
        .results-title {
            font-family: var(--font-display);
            font-size: 28px;
            color: var(--navy);
            margin-bottom: 24px;
        }

        /* Gauge */
        .gauge-container { margin: 30px auto; width: 220px; height: 120px; position: relative; overflow: hidden; }
        .gauge-bg, .gauge-fill {
            width: 220px; height: 110px;
            border-radius: 110px 110px 0 0;
            position: absolute;
            top: 0; left: 0;
            overflow: hidden;
        }
        .gauge-bg { background: var(--border); }
        .gauge-fill {
            background: conic-gradient(from 0.75turn, var(--green), var(--teal));
            transform-origin: bottom center;
            transform: rotate(0deg);
            transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .gauge-mask {
            width: 170px; height: 85px;
            background: var(--card);
            border-radius: 85px 85px 0 0;
            position: absolute;
            top: 25px; left: 25px;
        }
        .gauge-value {
            position: absolute;
            bottom: 0; left: 50%;
            transform: translateX(-50%);
            font-size: 42px;
            font-weight: 800;
            color: var(--navy);
        }
        .gauge-label {
            font-size: 14px;
            color: var(--subtle);
            margin-top: 16px;
            position: relative;
            z-index: 5;
        }

        /* Akinator chat bubbles */
        .akinator-bubble-ia {
            align-self: flex-start;
            background: #f0f4ff;
            border: 1px solid #c7d7fe;
            border-radius: 4px 16px 16px 16px;
            padding: 12px 16px;
            max-width: 85%;
            font-size: 14px;
            color: var(--body-text);
            line-height: 1.6;
        }
        .akinator-bubble-user {
            align-self: flex-end;
            background: var(--navy);
            border-radius: 16px 4px 16px 16px;
            padding: 12px 16px;
            max-width: 80%;
            font-size: 14px;
            color: white;
            line-height: 1.6;
        }
        .akinator-bubble-system {
            align-self: center;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 13px;
            color: #065f46;
            font-weight: 600;
            text-align: center;
        }
        .akinator-typing {
            align-self: flex-start;
            background: #f0f4ff;
            border: 1px solid #c7d7fe;
            border-radius: 4px 16px 16px 16px;
            padding: 12px 16px;
            font-size: 13px;
            color: var(--muted);
            font-style: italic;
        }
        .akinator-title {
            display: block;
            font-family: 'DM Serif Display', Georgia, serif;
            font-size: 22px;
            color: var(--navy);
            font-weight: 700;
            margin-bottom: 4px;
        }
        .akinator-subtitle {
            display: block;
            font-size: 14px;
            color: var(--body-text);
        }
        .akinator-progress-bar {
            background: #e2e6ed;
            border-radius: 4px;
            height: 4px;
            margin-bottom: 16px;
            overflow: hidden;
        }
        .akinator-progress-fill {
            background: var(--teal);
            border-radius: 4px;
            height: 4px;
            width: 0%;
            transition: width 0.5s ease;
        }
        .akinator-chat {
            background: white;
            border: 1px solid #e2e6ed;
            border-radius: 16px;
            padding: 20px;
            min-height: 280px;
            max-height: 420px;
            overflow-y: auto;
            margin-bottom: 14px;
            display: flex;
            flex-direction: column;
            gap: 14px;
        }
        .akinator-input-area {
            display: flex;
            gap: 8px;
            align-items: flex-end;
        }
        .akinator-input {
            flex: 1;
            border: 1.5px solid #e2e6ed;
            border-radius: 12px;
            padding: 12px 14px;
            font-family: var(--font-body);
            font-size: 14px;
            resize: none;
            min-height: 48px;
            max-height: 120px;
            outline: none;
            transition: border-color 0.2s;
            line-height: 1.5;
        }
        .akinator-input:focus {
            border-color: var(--navy);
        }
        .akinator-send-btn {
            background: var(--navy);
            color: white;
            border: none;
            border-radius: 12px;
            padding: 0 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            min-height: 48px;
            white-space: nowrap;
            transition: opacity 0.2s;
        }
        .akinator-send-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        /* CTA résultats */
        .cta-results-primary {
            display: block; width: 100%; padding: 16px 24px;
            background: linear-gradient(135deg, var(--teal), #0e9f8e);
            color: white; border: none; border-radius: 12px;
            font-size: 17px; font-weight: 700; cursor: pointer;
            font-family: var(--font-body); text-align: center;
            transition: transform 0.15s, box-shadow 0.15s;
            box-shadow: 0 4px 16px rgba(13,148,136,0.25);
            margin-bottom: 12px;
        }
        .cta-results-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,148,136,0.35); }
        .cta-results-secondary {
            display: block; width: 100%; padding: 14px 24px;
            background: white; color: var(--navy);
            border: 2px solid var(--navy); border-radius: 12px;
            font-size: 15px; font-weight: 600; cursor: pointer;
            font-family: var(--font-body); text-align: center;
            transition: background 0.15s;
            margin-bottom: 8px;
        }
        .cta-results-secondary:hover { background: #f8f9fb; }
        /* Feux inline */
        .feux-row { display: flex; gap: 10px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
        .feu-badge {
            display: flex; align-items: center; gap: 6px;
            padding: 7px 14px; border-radius: 20px;
            font-size: 13px; font-weight: 600;
        }
        .feu-badge-vert { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
        .feu-badge-orange { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
        .feu-badge-rouge { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }


        .amount-display {
            margin: 30px 0;
            padding: 24px;
            background: linear-gradient(135deg, #f0fdfa, #ecfeff);
            border-radius: var(--radius-sm);
            border: 1px solid #99f6e4;
        }
        .amount-label { font-size: 14px; color: var(--teal); font-weight: 600; margin-bottom: 6px; }
        .amount-value {
            font-size: 48px;
            font-weight: 800;
            color: var(--navy);
            letter-spacing: -1px;
        }
        .amount-detail { font-size: 13px; color: var(--subtle); margin-top: 6px; }

        .btn-cta {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 18px 48px;
            border: none;
            border-radius: 60px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s;
            font-family: var(--font);
            margin-top: 20px;
        }
        .btn-cta-primary {
            background: linear-gradient(135deg, var(--green-dark), var(--teal));
            color: white;
            box-shadow: 0 6px 30px rgba(22,163,74,0.25);
        }
        .btn-cta-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(22,163,74,0.35); }
        .btn-cta-secondary {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            box-shadow: 0 6px 30px rgba(30,60,114,0.25);
        }
        .btn-cta-secondary:hover { transform: translateY(-3px); box-shadow: 0 10px 40px rgba(30,60,114,0.35); }

        .btn-restart {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 24px;
            background: transparent;
            color: var(--subtle);
            border: 1.5px solid var(--border);
            border-radius: 60px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            margin-top: 16px;
            font-family: var(--font);
        }
        .btn-restart:hover { border-color: var(--navy-light); color: var(--navy); }

        /* Callback form */
        .callback-form {
            display: none;
            text-align: left;
            margin-top: 30px;
            padding: 24px;
            background: var(--bg-warm);
            border-radius: var(--radius-sm);
            border: 1px solid var(--border);
            animation: slideUp 0.3s ease;
        }
        .callback-form h4 { font-size: 16px; color: var(--navy); margin-bottom: 16px; font-weight: 700; }
        .callback-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
        .callback-form label { font-size: 13px; font-weight: 600; color: var(--body-text); margin-bottom: 4px; display: block; }
        .callback-form input, .callback-form select {
            width: 100%; padding: 10px 14px;
            border: 1.5px solid var(--border); border-radius: var(--radius-xs);
            font-size: 14px; font-family: var(--font);
            transition: all 0.3s;
        }
        .callback-form input:focus, .callback-form select:focus {
            outline: none; border-color: var(--navy);
            box-shadow: 0 0 0 3px rgba(30,60,114,0.1);
        }
        .btn-submit-callback {
            padding: 12px 30px;
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white; border: none; border-radius: 60px;
            font-size: 14px; font-weight: 700; cursor: pointer;
            font-family: var(--font); transition: all 0.3s; margin-top: 8px;
        }
        .btn-submit-callback:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(30,60,114,0.2); }

        /* ============================== PHASE 2 - WORKFLOW ============================== */
        .workflow-container { display: none; }

        .workflow-header-bar {
            background: var(--card);
            padding: 16px 24px;
            border-radius: var(--radius);
            margin-bottom: 16px;
            box-shadow: 0 2px 12px rgba(0,0,0,0.04);
            border: 1px solid var(--border);
            display: flex;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        .workflow-title-text {
            font-size: 16px;
            font-weight: 700;
            color: var(--navy);
            white-space: nowrap;
        }
        .stepper {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }
        .stepper-step {
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .stepper-circle {
            width: 32px; height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            border: 2px solid var(--border);
            background: white;
            color: var(--muted);
            transition: all 0.4s;
            flex-shrink: 0;
        }
        .stepper-step.active .stepper-circle {
            border-color: var(--orange);
            background: linear-gradient(135deg, var(--orange), #f97316);
            color: white;
            box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
            animation: pulse 2s infinite;
        }
        .stepper-step.completed .stepper-circle {
            border-color: var(--green);
            background: linear-gradient(135deg, var(--green), var(--green-dark));
            color: white;
        }
        .stepper-label {
            font-size: 11px;
            color: var(--muted);
            font-weight: 500;
            white-space: nowrap;
        }
        .stepper-step.active .stepper-label { color: var(--navy); font-weight: 700; }
        .stepper-step.completed .stepper-label { color: var(--green-dark); }
        .stepper-line {
            width: 24px; height: 2px;
            background: var(--border);
            flex-shrink: 0;
        }
        .stepper-step.completed + .stepper-line { background: var(--green); }

        @keyframes pulse {
            0%, 100% { box-shadow: 0 0 0 4px rgba(245,158,11,0.2); }
            50% { box-shadow: 0 0 0 8px rgba(245,158,11,0.08); }
        }

        /* Estimated credit banner */
        .credit-banner {
            background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
            border: 1px solid #bbf7d0;
            border-radius: var(--radius-sm);
            padding: 14px 20px;
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
        }
        .credit-banner-icon { font-size: 22px; }
        .credit-banner-text { font-size: 14px; color: #166534; }
        .credit-banner-text strong { font-size: 18px; }

        /* Workflow Content Card */
        .workflow-content-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 30px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border);
            min-height: 450px;
        }
        .step-header {
            margin-bottom: 24px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }
        .step-header h3 {
            font-family: var(--font-display);
            font-size: 24px;
            color: var(--navy);
            margin-bottom: 6px;
        }
        .step-header p { font-size: 14px; color: var(--subtle); }

        .step-content { display: none; }
        .step-content.active { display: block; animation: fadeIn 0.4s ease; }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Section blocks */
        .section-block {
            background: var(--bg-warm);
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 20px;
            margin-bottom: 16px;
        }
        .section-block-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 14px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* Document Table */
        .doc-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border-radius: var(--radius-sm);
            overflow: hidden;
            box-shadow: 0 1px 6px rgba(0,0,0,0.04);
        }
        .doc-table th {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            padding: 12px 16px;
            text-align: left;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .doc-table td {
            padding: 12px 16px;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
            background: white;
            vertical-align: middle;
        }
        .doc-table tr:last-child td { border-bottom: none; }
        .doc-table tr:hover td { background: #f8fafc; }

        .btn-upload {
            padding: 6px 18px;
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            border: none;
            border-radius: var(--radius-xs);
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: var(--font);
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-upload:hover { box-shadow: 0 3px 10px rgba(30,60,114,0.2); transform: translateY(-1px); }
        .btn-upload.uploaded {
            background: var(--green-light);
            color: #166534;
            border: 1px solid #bbf7d0;
        }
        .upload-status { font-size: 12px; color: var(--muted); }
        .upload-status.done { color: var(--green-dark); font-weight: 600; }

        /* Expenses Table */
        .expense-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            border-radius: var(--radius-sm);
            overflow: hidden;
            box-shadow: 0 1px 6px rgba(0,0,0,0.04);
        }
        .expense-table th {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            padding: 10px 12px;
            text-align: left;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
        }
        .expense-table td {
            padding: 10px 12px;
            border-bottom: 1px solid var(--border);
            font-size: 13px;
            background: white;
        }
        .expense-table input, .expense-table select {
            width: 100%; padding: 8px 10px;
            border: 1.5px solid var(--border); border-radius: var(--radius-xs);
            font-size: 13px; font-family: var(--font); transition: all 0.3s;
        }
        .expense-table input:focus, .expense-table select:focus {
            outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,60,114,0.08);
        }
        .expense-total-row td {
            background: #f0fdf4 !important;
            font-weight: 700;
            color: var(--navy);
        }

        .btn-add-row {
            padding: 10px 20px;
            background: var(--navy);
            color: white;
            border: none;
            border-radius: var(--radius-xs);
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: var(--font);
            margin-top: 12px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
        .btn-add-row:hover { background: var(--navy-light); }

        .credit-estimate {
            background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
            border: 1px solid #bbf7d0;
            border-radius: var(--radius-sm);
            padding: 16px 20px;
            margin-top: 16px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        .credit-estimate-icon { font-size: 24px; }
        .credit-estimate-label { font-size: 14px; color: #166534; font-weight: 600; }
        .credit-estimate-value { font-size: 22px; font-weight: 800; color: var(--navy); }
        .credit-estimate-detail { font-size: 12px; color: var(--subtle); }

        /* Checkboxes styled */
        .check-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: var(--radius-xs);
            margin-bottom: 6px;
            transition: all 0.3s;
        }
        .check-item:hover { background: #f8fafc; }
        .check-item input[type="checkbox"] {
            width: 20px; height: 20px;
            accent-color: var(--green);
            cursor: pointer;
            flex-shrink: 0;
        }
        .check-item label { font-size: 14px; color: var(--body-text); cursor: pointer; }

        .check-section-title {
            font-size: 15px;
            font-weight: 700;
            padding: 14px 16px;
            border-radius: var(--radius-xs);
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        .check-section-title.success {
            background: var(--green-light);
            color: #166534;
        }
        .check-section-title.warning {
            background: #fef2f2;
            color: #991b1b;
        }

        /* CERFA section */
        .cerfa-block {
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 20px;
            margin-bottom: 16px;
        }
        .cerfa-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--navy);
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .cerfa-row {
            display: grid;
            grid-template-columns: 2fr 1fr;
            gap: 12px;
            padding: 8px 0;
            border-bottom: 1px solid #f1f5f9;
            align-items: center;
        }
        .cerfa-row:last-child { border-bottom: none; }
        .cerfa-label { font-size: 13px; color: var(--body-text); }
        .cerfa-value {
            text-align: right;
            font-size: 14px;
            font-weight: 700;
            color: var(--navy);
        }

        /* Dashboard summary */
        .dashboard-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 16px;
        }
        .dashboard-card {
            background: white;
            border: 1px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 20px;
            text-align: center;
        }
        .dashboard-card-label { font-size: 12px; color: var(--subtle); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
        .dashboard-card-value { font-size: 28px; font-weight: 800; }
        .dashboard-card-value.navy { color: var(--navy); }
        .dashboard-card-value.green { color: var(--green-dark); }
        .dashboard-card-value.teal { color: var(--teal); }

        /* Workflow Navigation */
        .workflow-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--border);
        }
        .btn-wf {
            padding: 12px 28px;
            border: none;
            border-radius: 60px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            font-family: var(--font);
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .btn-wf-next {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            box-shadow: 0 4px 12px rgba(30,60,114,0.2);
        }
        .btn-wf-next:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,60,114,0.3); }
        .btn-wf-prev {
            background: transparent;
            color: var(--subtle);
            border: 2px solid var(--border);
        }
        .btn-wf-prev:hover { border-color: var(--navy-light); color: var(--navy); }
        .btn-wf-home {
            background: transparent;
            color: var(--subtle);
            border: 2px solid var(--border);
        }
        .btn-wf-home:hover { border-color: var(--navy-light); color: var(--navy); }

        /* Dossiers page */
        .dossiers-page { display: none; }
        .dossiers-grid {
            display: grid;
            gap: 16px;
            margin-top: 20px;
        }
        .dossier-card {
            background: var(--card);
            border-radius: var(--radius);
            padding: 24px;
            box-shadow: var(--card-shadow);
            border: 1px solid var(--border);
            cursor: pointer;
            transition: all 0.3s;
        }
        .dossier-card:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(30,60,114,0.12); }
        .dossier-card-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 14px;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--border);
        }
        .dossier-badge {
            padding: 4px 12px;
            background: var(--navy);
            color: white;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 700;
        }
        .dossier-name { font-size: 18px; font-weight: 700; color: var(--navy); }
        .dossier-date { font-size: 13px; color: var(--subtle); }
        .dossier-mini-progress {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-top: 10px;
        }
        .dossier-mini-step {
            width: 28px; height: 28px;
            border-radius: 50%;
            display: flex; align-items: center; justify-content: center;
            font-size: 11px; font-weight: 700;
            border: 2px solid var(--border);
            background: white; color: var(--muted);
            transition: all 0.3s;
        }
        .dossier-mini-step.done {
            background: var(--green); border-color: var(--green); color: white;
        }
        .dossier-mini-step.current {
            background: var(--orange); border-color: var(--orange); color: white;
            animation: pulse 2s infinite;
        }
        .dossier-step-info { font-size: 12px; color: var(--subtle); margin-left: 8px; }

        /* Textarea */
        .textarea-field {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-xs);
            font-size: 14px;
            font-family: var(--font);
            resize: vertical;
            min-height: 80px;
            transition: all 0.3s;
        }
        .textarea-field:focus {
            outline: none; border-color: var(--navy);
            box-shadow: 0 0 0 3px rgba(30,60,114,0.08);
        }

        /* Subventions section */
        .subvention-row {
            display: grid;
            grid-template-columns: 2fr 1fr 2fr 1fr auto;
            gap: 10px;
            margin-bottom: 8px;
            align-items: end;
        }
        .subvention-row label { font-size: 12px; font-weight: 600; color: var(--body-text); margin-bottom: 2px; display: block; }
        .subvention-row input {
            padding: 8px 10px;
            border: 1.5px solid var(--border); border-radius: var(--radius-xs);
            font-size: 13px; font-family: var(--font);
        }
        .subvention-row input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,60,114,0.08); }
        .btn-remove {
            width: 32px; height: 32px;
            border-radius: 50%; border: none;
            background: #fee2e2; color: #ef4444;
            font-size: 16px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: all 0.3s;
        }
        .btn-remove:hover { background: #fecaca; }

        /* Responsive */
        @media (max-width: 768px) {
            .welcome-features { grid-template-columns: 1fr; }
            .welcome-screen h2 { font-size: 28px; }
            .header-content { padding: 0 16px; }
            .main-container { padding: 16px; }
            .question-card { padding: 30px 24px; }
            .workflow-header-bar { flex-direction: column; align-items: flex-start; }
            .stepper { overflow-x: auto; }
            .callback-form .form-row { grid-template-columns: 1fr; }
            .dashboard-grid { grid-template-columns: 1fr; }
            .subvention-row { grid-template-columns: 1fr 1fr; }
            .two-col { grid-template-columns: 1fr !important; }
        }
        .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
        

        /* Admin Page */
        .admin-layout {
            display: grid;
            grid-template-columns: 260px 1fr;
            gap: 0;
            background: white;
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: 0 2px 20px rgba(30,60,114,0.06);
            min-height: 600px;
        }
        .admin-sidebar {
            background: var(--navy);
            color: white;
            padding: 28px 0;
        }
        .admin-sidebar-title {
            font-family: var(--font-display);
            font-size: 20px;
            padding: 0 24px 20px;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            margin-bottom: 12px;
        }
        .admin-nav-item {
            padding: 12px 24px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            color: white;
            text-decoration: none;
        }
        .admin-nav-item:hover { background: rgba(255,255,255,0.08); }
        .admin-nav-item.active { background: rgba(255,255,255,0.15); font-weight: 700; }
        .doc-link { font-size:11px; padding:2px 7px; border-radius:10px; text-decoration:none; margin-right:4px; }
        .doc-in  { background:#ebfbee; color:#0ca678; }
        .doc-out { background:#e8f4fd; color:#3b5bdb; }
        .admin-nav-group-header { display:flex; align-items:center; gap:10px; padding:10px 16px; font-size:13px; cursor:pointer; color:rgba(255,255,255,0.75); font-weight:600; transition:background 0.12s; }
        .admin-nav-group-header:hover { background:rgba(255,255,255,0.08); }
        .admin-nav-group-header.open { color:white; }
        .admin-nav-sub { padding-left:32px !important; font-size:12px !important; }
        .admin-nav-icon { font-size: 10px; }
        .admin-content { padding: 32px; overflow-y: auto; max-height: calc(100vh - 120px); }
        .admin-section { }
        .admin-domain {
            margin-bottom: 12px;
            border: 1px solid #e2e6ed;
            border-radius: 8px;
            overflow: hidden;
        }
        .admin-domain-header {
            background: #f4f6f9;
            padding: 14px 20px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: space-between;
            font-weight: 700;
            color: var(--navy);
            font-size: 15px;
            transition: background 0.2s;
            letter-spacing: 0.2px;
            user-select: none;
        }
        .admin-domain-header:hover { background: #e8edf4; }
        .admin-domain-header .domain-count {
            background: var(--navy);
            color: white;
            font-size: 12px;
            padding: 3px 12px;
            border-radius: 20px;
            font-weight: 600;
            min-width: 28px;
            text-align: center;
        }
        .admin-domain-list {
            display: none;
            padding: 0;
        }
        .admin-domain-list.open { display: block; }
        .admin-domain-list table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }
        .admin-domain-list table thead th {
            text-transform: uppercase;
            font-size: 11px;
            font-weight: 700;
            color: #3d4252;
            letter-spacing: 0.5px;
            padding: 10px 20px;
            text-align: left;
            background: #fafbfc;
            border-bottom: 2px solid #e2e6ed;
        }
        .admin-domain-list table thead th:first-child { width: 200px; }
        .admin-domain-list table thead th:last-child {
            width: 90px;
            text-align: center;
        }
        .admin-domain-list table tbody tr {
            border-bottom: 1px solid #f1f3f7;
            transition: background 0.15s;
        }
        .admin-domain-list table tbody tr:hover { background: #f8f9fb; }
        .admin-domain-list table tbody tr:last-child { border-bottom: none; }
        .admin-domain-list table td {
            padding: 12px 20px;
            vertical-align: top;
            line-height: 1.5;
        }
        .admin-domain-list table td:last-child {
            text-align: center;
            vertical-align: middle;
        }
        .admin-metier-nom {
            font-weight: 600;
            color: #1a1d23;
            font-size: 14px;
            margin-bottom: 3px;
        }
        .admin-metier-desc {
            font-size: 13px;
            color: #5a6175;
            line-height: 1.5;
        }
        .spec-badge {
            font-size: 11px;
            color: var(--teal);
            background: #ecfdf5;
            padding: 3px 8px;
            border-radius: 4px;
            font-weight: 600;
            white-space: nowrap;
        }
        .admin-total-bar {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            padding: 16px 24px;
            border-radius: 8px;
            margin-bottom: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            font-weight: 600;
        }
        @media (max-width: 768px) {
            .admin-layout { grid-template-columns: 1fr; }
            .admin-sidebar { padding: 16px 0; }
            .admin-domain-list table td { padding: 10px 12px; }
        }

        /* Radio Card (3 choices) */
        /* Identify button */
        .btn-identify {
            padding: 14px 24px;
            background: linear-gradient(135deg, var(--teal), #0d9488);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            font-family: var(--font);
            transition: all 0.3s;
            white-space: nowrap;
        }
        .btn-identify:hover:not(:disabled) {
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(13,148,136,0.3);
        }
        .btn-identify:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }
        .btn-identify.loading {
            pointer-events: none;
            opacity: 0.8;
        }

        /* Analysis steps */
        .analysis-step {
            padding: 10px 0;
            font-size: 14px;
            color: var(--muted);
            display: flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s;
        }
        .analysis-step.active { color: var(--navy); font-weight: 600; }
        .analysis-step.done { color: var(--teal); }
        .analysis-step.done .step-icon { color: var(--teal); }
        .analysis-step.active .step-icon {
            animation: spinDot 1s linear infinite;
        }
        @keyframes spinDot {
            0% { opacity: 0.3; }
            50% { opacity: 1; }
            100% { opacity: 0.3; }
        }

        /* Scanning animation during analysis */
        .scan-card {
            background: white;
            border: 1px solid #e2e6ed;
            border-radius: 12px;
            padding: 24px;
            margin-top: 16px;
            position: relative;
            overflow: hidden;
            width: 100%;
            box-sizing: border-box;
        }
        .scan-card::after {
            display: none;
        }

        /* Radar animation */
        .scan-radar {
            width: 80px;
            height: 80px;
            margin: 16px auto 8px;
            position: relative;
        }
        .scan-radar-ring {
            position: absolute;
            top: 50%; left: 50%;
            border: 1.5px solid var(--teal);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
        }
        .scan-radar-ring:nth-child(1) { width: 20px; height: 20px; animation: radarPing 2.4s ease-out 0s infinite; }
        .scan-radar-ring:nth-child(2) { width: 40px; height: 40px; animation: radarPing 2.4s ease-out 0.4s infinite; }
        .scan-radar-ring:nth-child(3) { width: 60px; height: 60px; animation: radarPing 2.4s ease-out 0.8s infinite; }
        .scan-radar-ring:nth-child(4) { width: 80px; height: 80px; animation: radarPing 2.4s ease-out 1.2s infinite; }
        @keyframes radarPing {
            0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.6); }
            100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
        }
        .scan-radar-dot {
            position: absolute;
            top: 50%; left: 50%;
            width: 10px; height: 10px;
            margin: -5px 0 0 -5px;
            background: var(--teal);
            border-radius: 50%;
            box-shadow: 0 0 12px rgba(13,148,136,0.5);
            animation: scanPulse 1s ease infinite;
        }
        .scan-url {
            font-size: 12px;
            color: var(--muted);
            margin-top: 14px;
            padding-top: 10px;
            border-top: 1px solid #f1f3f7;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .scan-url .scan-dot {
            width: 8px; height: 8px;
            border-radius: 50%;
            background: var(--teal);
            animation: scanPulse 1s ease infinite;
        }
        @keyframes scanPulse {
            0%, 100% { opacity: 0.3; transform: scale(0.8); }
            50% { opacity: 1; transform: scale(1.2); }
        }
        .scan-found {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            font-size: 14px;
            color: var(--navy);
            font-weight: 600;
            animation: arSlideIn 0.3s ease both;
        }
        .scan-num {
            width: 24px; height: 24px;
            border-radius: 50%;
            background: var(--navy);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 800;
            flex-shrink: 0;
        }
        .scan-text { flex: 1; }
        .scan-ok {
            width: 22px; height: 22px;
            border-radius: 50%;
            background: var(--teal);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 800;
            flex-shrink: 0;
            animation: scanCheckPop 0.3s ease both;
        }
        @keyframes scanCheckPop {
            0% { transform: scale(0); opacity: 0; }
            60% { transform: scale(1.2); }
            100% { transform: scale(1); opacity: 1; }
        }
        .scan-sub {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 6px 0 6px 36px;
            font-size: 13px;
            color: var(--navy);
            font-weight: 500;
            animation: arSlideIn 0.3s ease both;
        }
        .scan-sub .scan-arrow {
            color: var(--teal);
            font-size: 12px;
            font-weight: 800;
            flex-shrink: 0;
        }
        .scan-sub .scan-sub-text { flex: 1; }
        .scan-sub .scan-ok-sub {
            width: 18px; height: 18px;
            border-radius: 50%;
            background: #d1fae5;
            color: #065f46;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            font-weight: 800;
            flex-shrink: 0;
            animation: scanCheckPop 0.3s ease both;
        }
        .scan-deep {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 5px 0 5px 60px;
            animation: arSlideIn 0.3s ease both;
            min-width: 0;
            width: 100%;
            box-sizing: border-box;
        }
        .scan-deep .scan-tri {
            color: var(--teal);
            font-size: 10px;
            opacity: 0.6;
            flex-shrink: 0;
        }
        .scan-deep .scan-icon {
            font-size: 15px;
            flex-shrink: 0;
            width: 20px;
            text-align: center;
        }
        .scan-deep .scan-deep-text {
            flex: 1;
            min-width: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-size: 13px;
            color: var(--body-text);
            font-weight: 400;
        }
        .scan-deep .scan-ok-deep {
            flex-shrink: 0;
            width: 18px; height: 18px;
            border-radius: 50%;
            background: #ecfdf5;
            color: #0d9488;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 9px;
            font-weight: 800;
            animation: scanCheckPop 0.3s ease both;
        }
        .scan-progress {
            margin: 12px 0 4px 30px;
            animation: arSlideIn 0.3s ease both;
        }
        .scan-progress-label {
            font-size: 12px;
            color: var(--muted);
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
        }
        .scan-progress-bar {
            height: 6px;
            background: #e8edf4;
            border-radius: 3px;
            overflow: hidden;
        }
        .scan-progress-fill {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--teal), var(--green));
            border-radius: 3px;
            transition: width 0.3s ease;
        }

        /* Analysis result - spectacular layout */
        .analysis-result-card {
            border: 1px solid #e2e6ed;
            border-radius: 12px;
            overflow: hidden;
            background: white;
        }

        /* Hero header */
        .ar-hero {
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            padding: 28px 28px 24px;
            text-align: center;
            animation: arSlideIn 0.4s ease both;
        }
        .ar-hero-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1.5px;
            opacity: 0.6;
            margin-bottom: 8px;
        }
        .ar-hero-name {
            font-family: var(--font-display);
            font-size: 26px;
            font-weight: 400;
            margin-bottom: 4px;
        }
        .ar-hero-url {
            font-size: 13px;
            opacity: 0.5;
        }

        /* Sections */
        .ar-section {
            padding: 20px 24px;
            border: 1px solid #e2e6ed;
            border-radius: 10px;
            margin-top: 12px;
            background: white;
            animation: arSlideIn 0.5s ease both;
        }
        .ar-section-header {
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 700;
            color: #3d4252;
            margin-bottom: 14px;
        }
        @keyframes arSlideIn {
            from { opacity: 0; transform: translateY(16px); }
            to { opacity: 1; transform: translateY(0); }
        }

        /* Detected elements */
        .ar-detected-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }
        .ar-detected-tag {
            padding: 8px 16px;
            background: #f0f4fa;
            border-radius: 8px;
            font-size: 13px;
            color: var(--navy);
            font-weight: 500;
            line-height: 1.4;
            border: 1px solid #e2e6ed;
        }

        /* Big reveal card */
        .ar-reveal {
            margin-top: 16px;
            padding: 32px 28px;
            background: linear-gradient(135deg, #ecfdf5, #f0fdfa, #ecfdf5);
            border: 2px solid var(--teal);
            border-radius: 12px;
            text-align: center;
            animation: arReveal 0.6s ease both;
            position: relative;
            overflow: hidden;
        }
        .ar-reveal::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle at center, rgba(13,148,136,0.06) 0%, transparent 60%);
            pointer-events: none;
        }
        @keyframes arReveal {
            from { opacity: 0; transform: scale(0.95) translateY(20px); }
            to { opacity: 1; transform: scale(1) translateY(0); }
        }
        .ar-reveal-metier {
            font-family: var(--font-display);
            font-size: 32px;
            color: var(--navy);
            margin-bottom: 6px;
            position: relative;
        }
        .ar-reveal-domain {
            font-size: 16px;
            color: var(--teal);
            font-weight: 600;
            margin-bottom: 16px;
        }
        .ar-eligibility {
            display: inline-block;
            padding: 8px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            margin-top: 12px;
        }
        .ar-eligibility.eligible { background: #d1fae5; color: #065f46; }
        .ar-eligibility.maybe { background: #fef3c7; color: #92400e; }
        .ar-eligibility.unclear { background: #f1f3f7; color: #3d4252; }

        /* Company data bar (compact) */
        .ar-data-bar {
            margin-top: 12px;
            padding: 14px 24px;
            background: #f8f9fb;
            border: 1px solid #e2e6ed;
            border-radius: 10px;
            display: flex;
            align-items: center;
            gap: 16px;
            animation: arSlideIn 0.5s ease both;
        }
        .ar-data-item { display: flex; flex-direction: column; gap: 1px; flex: 1; }
        .ar-data-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); font-weight: 600; }
        .ar-data-value { font-size: 13px; font-weight: 600; color: #1a1d23; }
        .ar-data-sep { width: 1px; height: 28px; background: #e2e6ed; flex-shrink: 0; }

        /* Confirmation */
        .ar-confirm {
            margin-top: 16px;
        }
        .ar-details {
            margin-top: 12px;
            border: 1px solid #e2e6ed;
            border-radius: 10px;
            overflow: hidden;
        }
        .ar-details-summary {
            padding: 12px 20px;
            font-size: 13px;
            font-weight: 600;
            color: var(--muted);
            cursor: pointer;
            background: #fafbfc;
            list-style: none;
        }
        .ar-details-summary::-webkit-details-marker { display: none; }
        .ar-details-summary::before { content: '▸ '; }
        .ar-details[open] .ar-details-summary::before { content: '▾ '; }
        .ar-details .ar-data-bar { border-radius: 0; border: none; margin: 0; }

        .ar-edit-fields {
            padding: 16px 20px;
        }
        .ar-edit-row {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 10px;
        }
        .ar-edit-row label {
            font-size: 12px;
            font-weight: 600;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            width: 60px;
            flex-shrink: 0;
        }
        .ar-edit-row .input-text {
            flex: 1;
            padding: 8px 12px;
            font-size: 14px;
        }
        .ar-edit-metier {
            margin-top: 12px;
            padding: 18px 22px;
            border: 2px dashed var(--teal);
            border-radius: 10px;
            background: #fafffe;
            animation: arSlideIn 0.3s ease both;
        }

        @media (max-width: 768px) {
            .ar-data-bar { flex-direction: column; gap: 10px; }
            .ar-data-sep { display: none; }
            .ar-reveal-metier { font-size: 24px; }
        }
        /* Prefill banner */
        .prefill-banner {
            display: none;
            padding: 10px 16px;
            background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
            border: 1px solid var(--teal);
            border-radius: 8px;
            font-size: 13px;
            color: #065f46;
            font-weight: 500;
            margin-bottom: 14px;
            animation: arSlideIn 0.4s ease both;
        }
        .prefill-banner .prefill-icon {
            display: inline-block;
            width: 18px;
            height: 18px;
            background: var(--teal);
            color: white;
            border-radius: 50%;
            text-align: center;
            line-height: 18px;
            font-size: 11px;
            font-weight: 800;
            margin-right: 8px;
            vertical-align: middle;
        }

        /* Reveal button (education → revelation) */
        .btn-reveal {
            display: inline-block;
            padding: 12px 24px;
            margin: 8px 0;
            background: transparent;
            border: 1.5px solid var(--teal);
            border-radius: 8px;
            color: var(--teal);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }
        .btn-reveal:hover {
            background: var(--teal);
            color: white;
        }
        .answer-reveal {
            animation: answerSlide 0.4s ease both;
        }
        @keyframes answerSlide {
            from { opacity: 0; transform: translateY(12px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .radio-cards { display: flex; flex-direction: column; gap: 10px; }
        .radio-card {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 18px 22px;
            border: 2px solid var(--border);
            border-radius: var(--radius-sm);
            background: var(--bg-warm);
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            color: var(--body-text);
            transition: all 0.3s;
            font-family: var(--font);
            text-align: left;
        }
        .radio-card:hover { border-color: var(--navy-light); background: white; }
        .radio-card.selected {
            border-color: var(--navy);
            background: linear-gradient(135deg, var(--navy), var(--navy-light));
            color: white;
            box-shadow: 0 4px 15px rgba(30,60,114,0.2);
        }
        .radio-dot {
            width: 20px; height: 20px;
            border-radius: 50%;
            border: 2px solid var(--muted);
            flex-shrink: 0;
            transition: all 0.3s;
            position: relative;
        }
        .radio-card.selected .radio-dot {
            border-color: white;
            background: white;
        }
        .radio-card.selected .radio-dot::after {
            content: '';
            position: absolute;
            top: 4px; left: 4px;
            width: 8px; height: 8px;
            border-radius: 50%;
            background: var(--navy);
        }

        /* Hidden class */
        .hidden { display: none !important; }
    