
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Inter', sans-serif; background: #F8FAFC; color: #1F2937; overflow-x: hidden; }

    @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
    @keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes rotateCompass { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
    @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
    @keyframes fillRadar { from { opacity: 0; } to { opacity: 0.3; } }

    .screen { display: none; min-height: 100vh; animation: fadeIn 0.4s ease-out; }
    .screen.active { display: flex; }

    /* WELCOME */
    .welcome { flex-direction: column; justify-content: center; align-items: center; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; padding: 40px 20px; text-align: center; }
    .compass { font-size: 120px; margin-bottom: 40px; animation: rotateCompass 8s linear infinite; display: inline-block; }
    .welcome h1 { font-size: 56px; font-weight: 800; margin-bottom: 16px; letter-spacing: -1px; }
    .welcome .tagline { font-size: 22px; font-weight: 300; margin-bottom: 32px; opacity: 0.95; }
    .welcome .description { font-size: 18px; max-width: 500px; margin-bottom: 48px; line-height: 1.6; opacity: 0.9; }
    .welcome .stats { font-size: 16px; margin-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; opacity: 0.95; }
    .stat-item { display: flex; align-items: center; gap: 8px; }
    .btn-primary { background: white; color: #6366F1; border: none; padding: 16px 40px; border-radius: 12px; font-size: 18px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 10px 40px rgba(0,0,0,0.15); }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 50px rgba(0,0,0,0.2); }
    .btn-primary:active { transform: translateY(0); }
    .welcome .footer { font-size: 13px; opacity: 0.7; margin-top: 16px; }

    /* AUTH SCREEN */
    .auth-screen { flex-direction: column; justify-content: center; align-items: center; padding: 40px 20px; background: #F8FAFC; }
    .auth-card { background: white; border-radius: 20px; padding: 48px 40px; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.05); animation: slideInUp 0.4s ease-out; text-align: center; }
    .auth-logo { font-size: 48px; margin-bottom: 16px; }
    .auth-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
    .auth-subtitle { font-size: 14px; color: #6B7280; margin-bottom: 32px; }
    .auth-btn { width: 100%; padding: 14px 20px; border: 2px solid #E5E7EB; border-radius: 12px; background: white; font-size: 16px; font-weight: 500; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 12px; font-family: inherit; }
    .auth-btn:hover { border-color: #6366F1; background: rgba(99, 102, 241, 0.03); }
    .auth-btn img, .auth-btn svg { width: 24px; height: 24px; }
    .auth-btn.google { }
    .auth-btn.apple { }
    .auth-divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; color: #9CA3AF; font-size: 13px; }
    .auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #E5E7EB; }
    .auth-input { width: 100%; padding: 12px 16px; border: 2px solid #E5E7EB; border-radius: 8px; font-size: 16px; transition: all 0.3s ease; font-family: inherit; margin-bottom: 12px; }
    .auth-input:focus { outline: none; border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
    .auth-submit { width: 100%; padding: 14px; border: none; border-radius: 12px; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: inherit; }
    .auth-submit:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
    .auth-footer { margin-top: 24px; font-size: 13px; color: #9CA3AF; }
    .auth-footer a { color: #6366F1; text-decoration: none; font-weight: 500; cursor: pointer; }
    .auth-skip { margin-top: 16px; font-size: 14px; color: #6B7280; cursor: pointer; transition: color 0.3s; }
    .auth-skip:hover { color: #6366F1; }
    .auth-tabs { display: flex; margin-bottom: 32px; border-bottom: 2px solid #E5E7EB; }
    .auth-tab { flex: 1; padding: 12px; font-size: 15px; font-weight: 600; color: #9CA3AF; cursor: pointer; transition: all 0.3s; border-bottom: 2px solid transparent; margin-bottom: -2px; background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; }
    .auth-tab.active { color: #6366F1; border-bottom-color: #6366F1; }

    /* ONBOARDING */
    .onboarding { flex-direction: column; justify-content: center; align-items: center; padding: 40px 20px; background: #F8FAFC; }
    .onboarding-card { background: white; border-radius: 20px; padding: 48px 40px; max-width: 500px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.05); animation: slideInUp 0.4s ease-out; }
    .progress-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; }
    .dot { width: 8px; height: 8px; border-radius: 50%; background: #D1D5DB; cursor: pointer; transition: all 0.3s ease; }
    .dot.active { background: #6366F1; width: 24px; border-radius: 4px; }
    .onboarding-title { font-size: 28px; font-weight: 700; margin-bottom: 24px; text-align: center; }
    .form-group { margin-bottom: 24px; }
    .form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 12px; color: #6B7280; }
    .form-group input[type="text"] { width: 100%; padding: 12px 16px; border: 2px solid #E5E7EB; border-radius: 8px; font-size: 16px; transition: all 0.3s ease; font-family: inherit; }
    .form-group input[type="text"]:focus { outline: none; border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); }
    .chip-group { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
    .chip { padding: 10px 16px; border: 2px solid #E5E7EB; border-radius: 20px; background: white; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.3s ease; user-select: none; }
    .chip:hover { border-color: #6366F1; background: rgba(99, 102, 241, 0.05); }
    .chip.selected { background: #6366F1; color: white; border-color: #6366F1; }
    .onboarding-buttons { display: flex; gap: 12px; justify-content: space-between; margin-top: 40px; }
    .btn-secondary { background: #F3F4F6; color: #1F2937; border: none; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
    .btn-secondary:hover { background: #E5E7EB; }
    .btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

    /* DECK INTRO */
    .deck-intro { flex-direction: column; justify-content: center; align-items: center; padding: 40px 20px; background: #F8FAFC; text-align: center; }
    .deck-intro-card { background: white; border-radius: 20px; padding: 48px 40px; max-width: 500px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.05); animation: slideInUp 0.4s ease-out; }
    .deck-intro-emoji { font-size: 80px; margin-bottom: 24px; }
    .deck-intro h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; }
    .deck-intro .subtitle { font-size: 16px; color: #6B7280; margin-bottom: 32px; line-height: 1.6; }
    .deck-progress { display: flex; gap: 8px; justify-content: center; margin-bottom: 40px; }
    .deck-pip { width: 40px; height: 6px; border-radius: 3px; background: #E5E7EB; transition: all 0.3s; }
    .deck-pip.done { background: #10B981; }
    .deck-pip.current { background: #6366F1; }

    /* CARD GAME */
    .card-game { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 20px; background: #F8FAFC; min-height: 100vh; width: 100%; }
    .game-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
    .deck-title { font-size: 18px; font-weight: 700; flex: 1; }
    .progress-bar { width: 100%; height: 4px; background: #E5E7EB; border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
    .progress-fill { height: 100%; background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%); transition: width 0.3s ease; }
    .progress-text { font-size: 13px; color: #6B7280; text-align: right; }
    .game-center { display: flex; flex: 1; justify-content: center; align-items: center; margin: 24px 0; width: 100%; }
    .card { width: 100%; max-width: 340px; height: 460px; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); perspective: 1000px; cursor: pointer; position: relative; transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); transform-style: preserve-3d; user-select: none; touch-action: pan-y; }
    .card.swiping { transition: none !important; }
    .card.swipe-exit-left { transition: transform 0.4s ease-out, opacity 0.4s ease-out !important; transform: translateX(-150%) rotate(-20deg) !important; opacity: 0 !important; }
    .card.swipe-exit-right { transition: transform 0.4s ease-out, opacity 0.4s ease-out !important; transform: translateX(150%) rotate(20deg) !important; opacity: 0 !important; }
    .card.swipe-exit-up { transition: transform 0.4s ease-out, opacity 0.4s ease-out !important; transform: translateY(-120%) scale(0.8) !important; opacity: 0 !important; }
    .swipe-indicator { position: absolute; top: 50%; transform: translateY(-50%); font-size: 48px; font-weight: 800; padding: 8px 16px; border-radius: 12px; z-index: 10; opacity: 0; transition: opacity 0.15s; pointer-events: none; }
    .swipe-indicator.left { left: 16px; color: #DC2626; border: 4px solid #DC2626; }
    .swipe-indicator.right { right: 16px; color: #047857; border: 4px solid #047857; }
    .swipe-indicator.up { left: 50%; top: 16px; transform: translateX(-50%); color: #D97706; border: 4px solid #D97706; font-size: 28px; }
    .card.flipped { transform: rotateY(180deg); }
    .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; border-radius: 20px; padding: 24px; overflow: hidden; }
    .card-front { background: white; align-items: center; justify-content: center; text-align: center; }
    .card-back { background: white; transform: rotateY(180deg); align-items: flex-start; justify-content: flex-start; }
    .card-color-bar { position: absolute; top: 0; left: 0; right: 0; height: 8px; }
    .card-emoji { font-size: 80px; margin-bottom: 24px; }
    .card-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; line-height: 1.3; }
    .card-hint { font-size: 12px; color: #9CA3AF; margin-top: 20px; }
    .card-back-content { width: 100%; padding-top: 40px; }
    .card-detail { font-size: 14px; line-height: 1.6; color: #374151; margin-bottom: 16px; }
    .card-detail::before { content: "\2022 "; color: #6366F1; font-weight: 600; margin-right: 8px; }
    .card-metiers-label { font-size: 12px; font-weight: 600; color: #6B7280; margin-top: 20px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
    .card-metiers { display: flex; flex-wrap: wrap; gap: 6px; }
    .metier-chip { background: #EEF2FF; color: #4F46E5; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
    .game-counter { text-align: center; font-size: 14px; color: #6B7280; margin-bottom: 24px; }
    .counter-value { font-weight: 600; color: #1F2937; }
    .game-buttons { display: flex; gap: 12px; justify-content: center; }
    .btn-action { padding: 12px 24px; border: none; border-radius: 12px; font-size: 20px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
    .btn-discard { background: #FEE2E2; color: #DC2626; flex: 1; font-size: 28px; }
    .btn-discard:hover { background: #FECACA; transform: translateY(-2px); }
    .btn-maybe { background: #FEF3C7; color: #D97706; padding: 10px 20px; font-size: 16px; }
    .btn-maybe:hover { background: #FDE68A; transform: translateY(-2px); }
    .btn-keep { background: #D1FAE5; color: #047857; flex: 1; font-size: 28px; }
    .btn-keep:hover { background: #A7F3D0; transform: translateY(-2px); }
    .stability-bar { max-width: 340px; margin: 0 auto 16px; }
    .stability-label { font-size: 11px; color: #9CA3AF; margin-bottom: 4px; text-align: center; }
    .stability-track { height: 3px; background: #E5E7EB; border-radius: 2px; overflow: hidden; }
    .stability-fill { height: 100%; background: linear-gradient(90deg, #F59E0B, #10B981); transition: width 0.5s ease; }

    /* SYNTHESIS */
    .synthesis { flex-direction: column; padding: 40px 20px; background: #F8FAFC; min-height: 100vh; }
    .synthesis-header { background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; padding: 40px 20px; border-radius: 20px; text-align: center; margin: -40px -20px 40px -20px; }
    .synthesis-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
    .radar-container { max-width: 600px; margin: 0 auto 40px; background: white; padding: 40px 20px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); text-align: center; }
    .radar-svg { width: 100%; max-width: 280px; height: 280px; margin: 0 auto 24px; }
    .riasec-bars { max-width: 600px; margin: 0 auto 40px; background: white; padding: 24px; border-radius: 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
    .riasec-bar { margin-bottom: 24px; }
    .riasec-bar-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
    .riasec-description { font-size: 12px; color: #6B7280; margin-bottom: 8px; }
    .riasec-bar-bg { height: 8px; background: #E5E7EB; border-radius: 4px; overflow: hidden; }
    .riasec-bar-fill { height: 100%; background: #6366F1; transition: width 0.5s ease 0.2s; }
    .coherence-card { max-width: 600px; margin: 0 auto 40px; padding: 20px; border-radius: 16px; border-left: 4px solid; }
    .coherence-card.good { background: #D1FAE5; border-left-color: #10B981; }
    .coherence-card.warning { background: #FEF3C7; border-left-color: #F59E0B; }
    .coherence-card.caution { background: #FEE2E2; border-left-color: #EF4444; }
    .coherence-score { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
    .coherence-message { font-size: 14px; line-height: 1.5; }
    .synthesis-buttons { max-width: 600px; margin: 40px auto 0; display: flex; gap: 12px; }
    .synthesis-buttons .btn-primary { flex: 1; padding: 14px 24px; font-size: 16px; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; }

    /* RESULTS */
    .results { flex-direction: column; padding: 40px 20px; background: #F8FAFC; min-height: 100vh; }
    .results-header { background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; padding: 40px 20px; border-radius: 20px; text-align: center; margin: -40px -20px 40px -20px; }
    .results-header h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
    .results-header .emoji-badge { font-size: 48px; margin-top: 16px; }
    .careers-container { max-width: 600px; margin: 0 auto; }
    .career-card { background: white; border-radius: 16px; border-left: 4px solid; overflow: hidden; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s ease; }
    .career-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
    .career-card-high { border-left-color: #10B981; }
    .career-card-medium { border-left-color: #6366F1; }
    .career-card-low { border-left-color: #F59E0B; }
    .career-header { padding: 20px; display: flex; justify-content: space-between; align-items: start; }
    .career-info { flex: 1; }
    .career-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
    .career-domain { font-size: 12px; background: #F3F4F6; color: #6B7280; padding: 2px 8px; border-radius: 12px; display: inline-block; margin-bottom: 8px; font-weight: 500; }
    .career-match { font-size: 24px; font-weight: 800; text-align: center; min-width: 60px; }
    .match-high { color: #10B981; }
    .match-medium { color: #6366F1; }
    .match-low { color: #F59E0B; }
    .career-expand { padding: 12px 20px; border-top: 1px solid #E5E7EB; background: #F9FAFB; font-size: 13px; font-weight: 600; color: #6366F1; cursor: pointer; user-select: none; }
    .career-expand:hover { background: #F3F4F6; }
    .career-details { display: none; padding: 20px; border-top: 1px solid #E5E7EB; background: #F9FAFB; font-size: 14px; line-height: 1.6; }
    .career-details.open { display: block; animation: slideInUp 0.3s ease-out; }
    .detail-section { margin-bottom: 20px; }
    .detail-section-title { font-weight: 600; color: #1F2937; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; }
    .detail-section ul { margin-left: 0; list-style: none; }
    .detail-section li { margin-bottom: 6px; padding-left: 20px; position: relative; }
    .detail-section li::before { content: "\25AA"; position: absolute; left: 0; color: #6366F1; }

    /* SPONSOR ZONE in career details */
    .sponsor-zone { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); border-radius: 12px; padding: 16px; margin-top: 16px; border: 1px solid #F59E0B30; }
    .sponsor-badge { display: inline-flex; align-items: center; gap: 4px; background: #F59E0B; color: white; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
    .sponsor-title { font-size: 14px; font-weight: 600; color: #92400E; margin-bottom: 6px; }
    .sponsor-desc { font-size: 13px; color: #78350F; line-height: 1.5; margin-bottom: 10px; }
    .sponsor-cta { display: inline-flex; align-items: center; gap: 6px; background: #F59E0B; color: white; border: none; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s; font-family: inherit; }
    .sponsor-cta:hover { background: #D97706; transform: translateY(-1px); }
    .sponsor-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: white; padding: 4px; float: right; margin-left: 12px; }

    .restart-button { max-width: 600px; margin: 40px auto 0; }
    .restart-button .btn-primary { width: 100%; padding: 14px 24px; font-size: 16px; background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; }
    .results-footer { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid #E5E7EB; color: #9CA3AF; font-size: 12px; }

    /* AUTH LOADING / ERROR STATES */
    .auth-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 14px; color: #6366F1; }
    .auth-loading .spinner { width: 18px; height: 18px; border: 2px solid #E5E7EB; border-top-color: #6366F1; border-radius: 50%; animation: rotateCompass 0.8s linear infinite; }
    .auth-error { background: #FEE2E2; color: #DC2626; padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; display: none; }
    .auth-error.visible { display: block; animation: slideInUp 0.3s ease-out; }
    .auth-success { background: #D1FAE5; color: #047857; padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }
    .user-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 20px; font-size: 13px; margin-top: 12px; backdrop-filter: blur(4px); }
    .user-badge img { width: 24px; height: 24px; border-radius: 50%; }
    .btn-logout { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 6px 12px; border-radius: 8px; font-size: 12px; cursor: pointer; transition: all 0.3s; font-family: inherit; margin-left: 8px; }
    .btn-logout:hover { background: rgba(255,255,255,0.25); }

    /* RESUME MODAL & HISTORY */
    .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; animation: fadeIn 0.3s ease-out; }
    .modal-content { background: white; border-radius: 20px; padding: 40px; max-width: 400px; width: 90%; box-shadow: 0 20px 60px rgba(0,0,0,0.3); animation: slideInUp 0.3s ease-out; }
    .modal-title { font-size: 24px; font-weight: 700; margin-bottom: 16px; text-align: center; }
    .modal-subtitle { font-size: 14px; color: #6B7280; margin-bottom: 32px; text-align: center; }
    .modal-buttons { display: flex; gap: 12px; }
    .modal-buttons .btn-primary { flex: 1; }
    .modal-buttons .btn-secondary { flex: 1; }

    .welcome-menu { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-direction: column; align-items: center; }
    .welcome-menu .btn-small { background: #F3F4F6; color: #1F2937; border: none; padding: 12px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
    .welcome-menu .btn-small:hover { background: #E5E7EB; }

    .history-screen { flex-direction: column; padding: 40px 20px; background: #F8FAFC; min-height: 100vh; }
    .history-header { background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; padding: 40px 20px; border-radius: 20px; text-align: center; margin: -40px -20px 40px -20px; }
    .history-header h1 { font-size: 32px; font-weight: 700; }
    .history-list { max-width: 600px; margin: 0 auto; }
    .history-item { background: white; border-radius: 16px; padding: 20px; margin-bottom: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s ease; }
    .history-item:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
    .history-date { font-size: 14px; font-weight: 600; color: #6366F1; margin-bottom: 8px; }
    .history-name { font-size: 16px; font-weight: 700; color: #1F2937; margin-bottom: 12px; }
    .history-careers { display: flex; flex-wrap: wrap; gap: 8px; }
    .history-career-tag { background: #EEF2FF; color: #4F46E5; padding: 6px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
    .history-button-group { max-width: 600px; margin: 40px auto 0; display: flex; gap: 12px; }
    .history-button-group .btn-primary { flex: 1; }

    /* FAVORITES SYSTEM */
    .btn-fav { background: none; border: none; font-size: 24px; cursor: pointer; transition: all 0.3s ease; padding: 4px 8px; display: flex; align-items: center; justify-content: center; }
    .btn-fav:hover { transform: scale(1.2); }
    .btn-fav.favorited { color: #EF4444; }
    .btn-fav.not-favorited { color: #9CA3AF; }

    .favorites-toggle { max-width: 600px; margin: 0 auto 24px; display: flex; gap: 12px; }
    .favorites-button { background: white; border: 2px solid #6366F1; color: #6366F1; padding: 12px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
    .favorites-button:hover { background: #6366F1; color: white; }
    .view-all-button { background: #6366F1; color: white; padding: 12px 24px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; transition: all 0.3s ease; }
    .view-all-button:hover { background: #4F46E5; }

    /* FORMATION SECTION */
    .formation-section { margin-top: 20px; }
    .formation-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .formation-link { background: #6366F1; color: white; padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s ease; border: none; font-family: inherit; }
    .formation-link:hover { background: #4F46E5; transform: translateY(-2px); }
    .etudes-highlight { background: #EEF2FF; border-left: 4px solid #6366F1; padding: 12px; border-radius: 8px; font-size: 14px; margin: 12px 0; font-weight: 500; color: #374151; }

    /* PROFILE BUTTON */
    #profileBtn { position: fixed; top: 16px; right: 16px; z-index: 1000; width: 40px; height: 40px; border-radius: 50%; background: white; box-shadow: 0 2px 12px rgba(0,0,0,0.15); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 20px; border: none; transition: all 0.3s ease; }
    #profileBtn:hover { transform: scale(1.05); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
    #profileBtn.hidden { display: none; }

    /* PROFILE SCREEN */
    .profile-screen { flex-direction: column; padding: 0; background: #F8FAFC; min-height: 100vh; }
    .profile-header { background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%); color: white; padding: 24px 20px; display: flex; align-items: center; gap: 16px; position: sticky; top: 0; z-index: 10; }
    .profile-back-btn { background: rgba(255,255,255,0.2); border: none; color: white; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
    .profile-back-btn:hover { background: rgba(255,255,255,0.3); }
    .profile-title { font-size: 24px; font-weight: 700; flex: 1; }
    .profile-tabs { display: flex; overflow-x: auto; background: white; border-bottom: 2px solid #E5E7EB; position: sticky; top: 72px; z-index: 9; }
    .profile-tab { flex: 0 0 auto; padding: 16px 20px; border-bottom: 3px solid transparent; color: #6B7280; font-weight: 600; cursor: pointer; transition: all 0.3s; white-space: nowrap; background: none; border: none; font-family: inherit; font-size: 14px; }
    .profile-tab.active { color: #6366F1; border-bottom-color: #6366F1; }
    .profile-tab:hover { color: #6366F1; }
    .profile-content { flex: 1; padding: 20px; max-width: 600px; margin: 0 auto; width: 100%; }
    .profile-section { display: none; }
    .profile-section.active { display: block; animation: fadeIn 0.3s ease-out; }
    .profile-empty { text-align: center; padding: 40px 20px; color: #6B7280; }
    .profile-empty-emoji { font-size: 48px; margin-bottom: 16px; }
    .profile-empty-text { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
    .profile-empty-hint { font-size: 14px; color: #9CA3AF; }

    /* RIASEC RADAR IN PROFILE */
    .profile-radar-container { background: white; padding: 24px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; text-align: center; }
    .profile-radar-svg { width: 100%; max-width: 200px; height: 200px; margin: 0 auto 20px; }
    .profile-riasec-bars { background: white; padding: 20px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; }

    /* FAVORITES LIST */
    .favorites-list { display: flex; flex-direction: column; gap: 12px; }
    .favorite-item { background: white; padding: 16px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s ease; }
    .favorite-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .favorite-item-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
    .favorite-item-info { flex: 1; }
    .favorite-item-emoji { font-size: 24px; }
    .favorite-item-title { font-size: 16px; font-weight: 700; color: #1F2937; margin-bottom: 4px; }
    .favorite-item-domain { font-size: 12px; background: #F3F4F6; color: #6B7280; padding: 2px 8px; border-radius: 8px; display: inline-block; margin-bottom: 8px; }
    .favorite-item-match { font-size: 20px; font-weight: 800; color: #10B981; min-width: 50px; }
    .favorite-remove-btn { background: #FEE2E2; border: none; color: #DC2626; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; }
    .favorite-remove-btn:hover { background: #FECACA; }
    .favorite-item-details { display: none; padding-top: 16px; border-top: 1px solid #E5E7EB; font-size: 14px; line-height: 1.6; color: #374151; }
    .favorite-item-details.open { display: block; }
    .detail-block { margin-bottom: 12px; }
    .detail-block-title { font-weight: 600; color: #1F2937; margin-bottom: 6px; }
    .detail-block-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
    .detail-link { background: #6366F1; color: white; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; transition: all 0.3s ease; border: none; font-family: inherit; }
    .detail-link:hover { background: #4F46E5; }

    /* HISTORY LIST */
    .history-list-profile { display: flex; flex-direction: column; gap: 12px; }
    .history-item-profile { background: white; padding: 16px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); cursor: pointer; transition: all 0.3s ease; }
    .history-item-profile:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
    .history-item-date { font-size: 13px; color: #6366F1; font-weight: 600; margin-bottom: 8px; }
    .history-item-careers { display: flex; flex-wrap: wrap; gap: 6px; }
    .history-career-badge { background: #EEF2FF; color: #4F46E5; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 500; }

    /* ACCOUNT SECTION */
    .account-info { background: white; padding: 20px; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); margin-bottom: 20px; }
    .account-user-badge { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid #E5E7EB; margin-bottom: 16px; }
    .account-user-photo { width: 60px; height: 60px; border-radius: 50%; background: #E5E7EB; display: flex; align-items: center; justify-content: center; font-size: 28px; }
    .account-user-photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
    .account-user-details { flex: 1; }
    .account-user-name { font-size: 16px; font-weight: 700; color: #1F2937; }
    .account-user-email { font-size: 13px; color: #6B7280; margin-top: 2px; }
    .account-buttons { display: flex; flex-direction: column; gap: 12px; }
    .account-btn { background: #FEE2E2; border: none; color: #DC2626; padding: 12px 16px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: inherit; font-size: 14px; }
    .account-btn:hover { background: #FECACA; }
    .account-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; margin-bottom: 20px; padding: 16px 0; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
    .account-stat { text-align: center; }
    .account-stat-value { font-size: 20px; font-weight: 700; color: #6366F1; }
    .account-stat-label { font-size: 12px; color: #6B7280; margin-top: 4px; }
    .account-btn-logout { background: #F3F4F6; color: #374151; }
    .account-btn-logout:hover { background: #E5E7EB; }
    .account-btn-danger { background: #FEE2E2; color: #DC2626; }
    .account-btn-danger:hover { background: #FECACA; }
    .account-login-prompt { text-align: center; padding: 20px; background: white; border-radius: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .account-login-prompt p { font-size: 14px; color: #6B7280; margin-bottom: 16px; line-height: 1.6; }
    .account-login-btn { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; font-family: inherit; font-size: 14px; width: 100%; }
    .account-login-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }

    /* TOAST NOTIFICATIONS */
    .toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); background: #1F2937; color: white; padding: 12px 24px; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 2000; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
    .toast.visible { opacity: 1; }

    @media (max-width: 640px) {
      .welcome { padding: 40px 20px 32px; justify-content: center; }
      .welcome h1 { font-size: 42px; }
      .welcome .tagline { font-size: 18px; }
      .welcome .description { font-size: 16px; margin-bottom: 32px; }
      .welcome .stats { gap: 16px; font-size: 14px; margin-bottom: 32px; }
      .compass { font-size: 80px; margin-bottom: 24px; }
      .btn-primary { padding: 14px 32px; font-size: 16px; }
      .onboarding-card, .auth-card { padding: 32px 24px; }
      /* Card game mobile: tout compact, pas de scroll */
      .card-game { padding: 12px 16px; gap: 0; justify-content: flex-start; }
      .game-header { margin-bottom: 8px; }
      .progress-bar { margin-bottom: 4px; }
      .stability-bar { margin-bottom: 0; }
      .game-center { margin: 8px 0; flex: 0; }
      .card { max-width: 100%; height: 52vh; }
      .card-face { padding: 20px; }
      .card-front { padding: 24px 20px; }
      .card-emoji { font-size: 56px; margin-bottom: 12px; }
      .card-title { font-size: 20px; margin-bottom: 12px; }
      .card-hint { margin-top: 12px; }
      .game-counter { margin-bottom: 10px; font-size: 13px; }
      .game-buttons { gap: 10px; }
      .btn-action { padding: 10px 16px; }
      .btn-maybe { padding: 8px 16px; font-size: 14px; }
      .synthesis-buttons { flex-direction: column; }
      .synthesis-buttons .btn-primary { width: 100%; }
      .profile-header { padding: 16px 12px; }
      .profile-title { font-size: 20px; }
      .profile-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
      .profile-tab { padding: 12px 16px; font-size: 12px; }
      .profile-content { padding: 16px; }
      .favorite-item { padding: 12px; }
      .profile-empty-emoji { font-size: 40px; }
      .account-user-badge { gap: 12px; padding-bottom: 12px; }
      .account-user-photo { width: 48px; height: 48px; }
    }

    /* PERSISTENCE & HISTORY */
    #resumeModal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); align-items: center; justify-content: center; z-index: 1000; }
    #resumeModal.visible { display: flex; }
    .resume-card { background: white; border-radius: 20px; padding: 40px; max-width: 400px; width: 90%; text-align: center; animation: slideInUp 0.3s ease-out; }
    .resume-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
    .resume-card p { font-size: 16px; color: #6B7280; margin-bottom: 32px; }
    .resume-card .resume-buttons { display: flex; gap: 12px; flex-direction: column; }
    .resume-card .resume-buttons button { padding: 12px 24px; border: none; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; }
    #resumeBtn { background: linear-gradient(135deg, #6366F1, #8B5CF6); color: white; }
    #resumeBtn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
    #newGameBtn { background: #F3F4F6; color: #1F2937; }
    #newGameBtn:hover { background: #E5E7EB; }

    /* HISTORY SCREEN */
    #screenHistory { padding: 20px; background: #F8FAFC; min-height: 100vh; }
    .history-container { max-width: 800px; margin: 0 auto; }
    .history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
    .history-header h2 { font-size: 28px; font-weight: 700; }
    .history-list { display: flex; flex-direction: column; gap: 16px; }
    .history-item { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
    .history-date { font-size: 14px; color: #6B7280; font-weight: 500; margin-bottom: 8px; }
    .history-careers { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
    .history-careers span { color: #6366F1; margin-right: 8px; }
    .history-item .btn-secondary { padding: 8px 16px; font-size: 14px; }

    /* FAVORITES */
    .career-favorite-btn { background: none; border: none; font-size: 20px; cursor: pointer; padding: 8px; transition: all 0.3s; }
    .career-favorite-btn:hover { transform: scale(1.2); }
    .career-favorite-btn.favorited { color: #FBBF24; }
    .career-card.favorited { border-left: 4px solid #FBBF24; }
    .career-card.favorited .career-favorite-btn { color: #FBBF24; }
    .career-favorites-header { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
    .career-favorites-header .btn-secondary { font-size: 15px; padding: 8px 16px; }
    .welcome .history-link { margin-top: 16px; }
    .welcome .history-link a { color: white; text-decoration: none; font-size: 16px; opacity: 0.9; transition: opacity 0.3s; }
    .welcome .history-link a:hover { opacity: 1; }

    /* FORMATION DETAILS */
    .detail-formation { margin-top: 16px; padding: 16px; background: #F8FAFC; border-radius: 8px; }
    .formation-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
    .formation-btn { padding: 8px 16px; border: 2px solid #6366F1; border-radius: 6px; background: white; color: #6366F1; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.3s; text-decoration: none; }
    .formation-btn:hover { background: #6366F1; color: white; }
  
    .welcome .legal-links { margin-top: 28px; font-size: 13px; display: flex; gap: 10px; justify-content: center; opacity: 0.8; }
    .welcome .legal-links a { color: white; text-decoration: underline; text-underline-offset: 3px; }
    .welcome .legal-links a:hover { opacity: 1; }
    .history-banner { background: #f1edff; color: #4c3fb0; border: 1px solid #ddd5ff; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 14px; }
