:root {
    --summit: #0d1f2d;
    --trail: #2c5282;
    --milestone: #1e5631;
    --highlight: #c9934f;
    --neutral: #f9f7f4;
    --text-dark: #1a1a1a;
    --text-gray: #3d3d3d;
    --text-light: #555555;
    --accent-gold: #c9934f;
    --accent-green: #1e5631;
    --border-light: #ddd6d0;
    --border-medium: #c9bdb3;
    --border-color: #ddd6d0;
    --bg-white: #ffffff;
    --bg-light: #f9f7f4;
    /* Compatibility aliases */
    --primary: #2c5282;
    --primary-light: #4a7ba7;
    --primary-dark: #0d1f2d;
    --secondary: #1e5631;
    --success: #1e5631;
    --danger: #8b3a1f;
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(13, 31, 45, 0.12);
    --shadow-md: 0 8px 16px rgba(13, 31, 45, 0.16);
    --shadow-lg: 0 16px 32px rgba(13, 31, 45, 0.2);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

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

html, body {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--neutral);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: 0.3px;
}

.screen {
    min-height: 100vh;
    display: none !important;
    animation: fadeIn 0.4s ease-in;
}

.screen.active {
    display: block !important;
}

#welcome-screen {
    padding: 40px 20px;
}

#onboarding-screen {
    padding: 40px 20px;
}

#results-screen {
    padding: 40px 20px;
}

/* PARCOURS */
#journey-screen.active {
    display: grid !important;
    grid-template-columns: 300px 1fr 280px !important;
    grid-template-rows: auto 1fr auto !important;
    gap: 20px !important;
    padding: 20px !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
}

.sidebar-modules {
    grid-column: 1;
    grid-row: 1 / 3;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.main-content {
    grid-column: 2;
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-profile {
    grid-column: 3;
    grid-row: 1;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.progress-footer {
    grid-column: 1 / 4;
    grid-row: 3;
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

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

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

/* ÉCRAN BIENVENUE - ALPINE AESTHETIC */
#welcome-screen {
    background: linear-gradient(180deg, var(--neutral) 0%, #efe9e2 100%);
    position: relative;
    overflow: hidden;
}

#welcome-screen::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--trail) 0%, var(--summit) 100%);
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s ease-in-out infinite;
}

.welcome-container {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.logo-welcome {
    margin-bottom: 40px;
}

.mountain-illustration,
.footsteps-illustration {
    width: 280px;
    height: 180px;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 12px 30px rgba(26, 54, 93, 0.2));
    display: inline-block;
}

.thinking-illustration {
    width: 100px;
    height: 100px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 8px 20px rgba(26, 54, 93, 0.15));
    display: inline-block;
    margin-right: 20px;
    vertical-align: middle;
}

.sidebar-illustration {
    width: 50px;
    height: 50px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(13, 31, 45, 0.1));
    display: inline-block;
    margin-right: 12px;
    vertical-align: middle;
}

.achievement-illustration {
    width: 200px;
    height: 200px;
    animation: bounce 1s ease-in-out infinite;
    filter: drop-shadow(0 16px 40px rgba(26, 54, 93, 0.2));
    display: inline-block;
    margin-bottom: 30px;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.avatar-welcome {
    font-size: 120px;
    animation: float 4s ease-in-out infinite;
    display: inline-block;
    filter: drop-shadow(0 12px 24px rgba(26, 54, 93, 0.15));
}

#welcome-screen h1 {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--summit), var(--trail));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    animation: slideInUp 0.8s ease-out;
    letter-spacing: -0.8px;
}

.tagline {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 50px;
    animation: slideInUp 0.8s ease-out 0.2s backwards;
    font-weight: 500;
    letter-spacing: 0.2px;
    opacity: 0.9;
}

.welcome-content {
    text-align: left;
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out 0.4s backwards;
}

.welcome-content h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    color: var(--text-dark);
}

.welcome-content {
    animation: slideInUp 0.8s ease-out 0.4s backwards;
}

.welcome-content h2 {
    font-size: 28px;
    margin: 30px 0 20px;
    color: var(--text-dark);
    font-weight: 700;
}

.features-list {
    list-style: none;
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: slideInUp 0.8s ease-out 0.6s backwards;
}

.features-list li {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.features-list li:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '';
    display: inline-block;
}

.info-text {
    font-size: 14px;
    color: var(--text-dark);
    margin-top: 25px;
    font-style: italic;
    animation: slideInUp 0.8s ease-out 0.8s backwards;
    opacity: 0.85;
    font-weight: 500;
}

.info-text {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 25px;
    font-style: italic;
}

/* BOUTONS */
.btn {
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin: 15px 10px;
    box-shadow: var(--shadow-sm);
    animation: slideInUp 0.8s ease-out 1s backwards;
}

.btn-primary {
    background: linear-gradient(135deg, var(--summit), var(--trail));
    color: white;
    box-shadow: 0 6px 20px rgba(13, 31, 45, 0.25);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(13, 31, 45, 0.35);
    background: linear-gradient(135deg, #051425, var(--summit));
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #2c5282, #1e3a54);
    color: white;
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.25);
    border: none;
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.35);
    background: linear-gradient(135deg, #1a3a60, #142d48);
}

.btn-secondary:active {
    transform: translateY(-2px);
}

.btn-outline {
    background: white;
    color: var(--summit);
    border: 2px solid var(--summit);
    font-weight: 600;
}

.btn-outline:hover {
    background: var(--summit);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(13, 31, 45, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-gray);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.btn-block {
    display: block;
    width: 100%;
    margin: 10px 0;
}

/* ONBOARDING */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.progress-header {
    margin-bottom: 40px;
}

.progress-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.05), rgba(30, 86, 49, 0.05));
    border-radius: var(--radius-lg);
}

.progress-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.progress-header p {
    color: var(--text-gray);
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: var(--border-color);
    border-radius: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.4s ease;
    box-shadow: var(--shadow-md);
}

.onboarding-form {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    min-height: 300px;
    animation: slideInUp 0.6s ease-out;
    border-top: 4px solid var(--primary);
}

.form-group {
    margin-bottom: 30px;
    animation: slideInUp 0.6s ease-out backwards;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--primary-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    transform: scale(1.01);
}

.options-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.option-btn {
    padding: 18px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: var(--bg-white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    font-size: 15px;
}

.option-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.option-btn.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
}

/* PARCOURS */
.sidebar-profile {
    background: var(--bg-white);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    font-size: 18px;
    margin-bottom: 0;
    color: var(--primary);
    font-weight: 700;
}

.sidebar-profile .profile-summary {
    background: white;
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.sidebar-profile .profile-summary p {
    margin: 6px 0;
    color: var(--text-dark);
    font-weight: 500;
}

.sidebar-profile .profile-summary p strong {
    color: var(--trail);
    display: block;
    font-size: 15px;
    margin-bottom: 8px;
}

.stats-card {
    background: linear-gradient(135deg, var(--summit), var(--trail));
    color: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-footer .stats-card {
    margin-bottom: 0;
    margin: 0;
}

.stats-card h4 {
    margin-bottom: 12px;
    font-size: 13px;
    opacity: 0.95;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.big-number {
    font-size: 48px;
    font-weight: 800;
    margin: 12px 0;
    background: linear-gradient(180deg, #ffffff, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.stat-line {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 500;
}

.modules-list {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid var(--border-light);
    
    
    
    
    
    
    
    
    
}

.modules-list h4 {
    font-size: 13px;
    margin: 0 0 16px 0;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modules-list h4::before {
    content: '🎯';
    font-size: 16px;
}

.module-item {
    padding: 12px 14px;
    margin-bottom: 10px;
    
    
    border-radius: var(--radius-lg);
    background: var(--neutral);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 4px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    
    
}

.module-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.module-name {
    flex: 1;
    color: var(--text-gray);
    font-weight: 500;
}

.module-checkmark {
    color: var(--milestone);
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

#modules-nav {
    
    display: flex;
    flex-direction: column;
    gap: 10px;
    
    
    
}

.module-item:hover {
    background: white;
    border-left-color: var(--trail);
    box-shadow: var(--shadow-sm);
    transform: translateX(4px);
}

.module-item.module-active {
    background: linear-gradient(135deg, rgba(76, 82, 130, 0.1), rgba(44, 82, 130, 0.08));
    border-left: 4px solid var(--trail);
    border-radius: var(--radius-lg);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.15);
}

.module-item.module-active .module-name {
    color: var(--text-dark);
    font-weight: 700;
}

.module-item.module-completed {
    background: linear-gradient(135deg, rgba(30, 86, 49, 0.1), rgba(30, 86, 49, 0.08));
    border-left: 4px solid var(--milestone);
}

.module-item.module-completed .module-name {
    color: var(--milestone);
    font-weight: 600;
    text-decoration: line-through;
    opacity: 0.9;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.6s ease-out;
    border-top: 4px solid var(--primary);
    position: relative;
    overflow: hidden;
}

.step-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: 50%;
    transform: translate(50%, -50%);
    pointer-events: none;
}

.step-header-section {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.05), rgba(30, 86, 49, 0.05));
    border-radius: var(--radius-lg);
}

.step-header-section h2 {
    margin: 0;
    flex: 1;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
}

.module-illustration {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(13, 31, 45, 0.1));
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.step-number {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.step-module {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.step-content {
    flex: 1;
    margin: 30px 0;
    font-size: 16px;
    line-height: 1.8;
}

.step-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.step-content p {
    margin-bottom: 15px;
    color: var(--text-gray);
}

.step-content .question {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    margin: 20px 0;
}

.step-content input[type="text"],
.step-content textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    margin-top: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step-content input[type="text"]:focus,
.step-content textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.daily-challenge {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    color: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.8s ease-out 0.2s backwards;
    position: relative;
    overflow: hidden;
}

.daily-challenge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: float 3s ease-in-out infinite;
}

.challenge-badge {
    font-size: 48px;
    margin-bottom: 15px;
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.daily-challenge h3 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.daily-challenge p {
    font-size: 14px;
    opacity: 0.95;
}

/* RÉSULTATS */
#results-screen {
    background: var(--bg-light);
}

.celebration {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.celebration svg {
    max-width: 100%;
    height: auto;
}

.celebration h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 800;
}

.celebration p {
    font-size: 18px;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.results-grid {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
}

.tab-btn {
    padding: 15px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

/* ANALYSE COMPLÈTE TAB */
.analysis-container {
    padding: 20px 0;
}

.analysis-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--primary);
}

.analysis-header h2 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.analysis-header p {
    color: var(--text-gray);
    font-size: 16px;
}

.analysis-section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.analysis-section h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary);
}

/* Compétences - Radar Chart */
.skills-chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.skills-radar {
    max-width: 500px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

/* Valeurs */
.values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.value-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: #000000;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

/* Styles d'apprentissage */
.learning-styles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.learning-style-box {
    padding: 20px;
    background: white;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid var(--bg-light);
    transition: all 0.3s ease;
}

.learning-style-box:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.learning-style-icon {
    font-size: 32px;
    margin-bottom: 10px;
}

.learning-style-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.learning-style-desc {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Personnalité */
.personality-summary {
    padding: 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary);
}

.personality-summary p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.6;
}

.personality-traits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trait {
    display: inline-block;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--primary);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.profile-item {
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
}

.profile-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-item-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.recommendations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.recommendation-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.recommendation-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.recommendation-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-weight: 700;
    margin-bottom: 15px;
}

.recommendation-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.compatibility-score {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.score-bar {
    height: 8px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.recommendation-card p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.action-plan {
    display: grid;
    gap: 20px;
}

/* RÉSULTATS ENRICHIS */
.profile-summary {
    margin-bottom: 40px;
    text-align: center;
    animation: slideInUp 0.8s ease-out;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.profile-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-intro {
    font-size: 16px;
    opacity: 0.95;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.profile-item {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out backwards;
}

.profile-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.profile-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
}

.profile-item h4 {
    font-size: 14px;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 600;
}

.profile-item-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.badge-highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.profile-item-desc {
    font-size: 12px;
    color: var(--text-gray);
}

.modules-completed {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    animation: slideInUp 0.7s ease-out 0.2s backwards;
}

.modules-completed h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--text-dark);
}

.modules-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge-module {
    background: linear-gradient(135deg, var(--success), #06b6d4);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    animation: slideInUp 0.5s ease-out backwards;
    box-shadow: var(--shadow-sm);
}

/* RECOMMANDATIONS */
.recommendations-intro {
    margin-bottom: 30px;
    animation: slideInUp 0.8s ease-out;
}

.recommendations-intro h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.recommendations-intro p {
    font-size: 16px;
    color: var(--text-gray);
}

.recommendation-card {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--primary);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out backwards;
    position: relative;
    overflow: hidden;
}

.recommendation-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.recommendation-card.recommendation-rank-1 {
    border-top-color: #fbbf24;
}

.recommendation-card.recommendation-rank-2 {
    border-top-color: #a1a5b8;
}

.recommendation-card.recommendation-rank-3 {
    border-top-color: #d97706;
}

.recommendation-medal {
    font-size: 36px;
    margin-bottom: 12px;
    animation: float 3s ease-in-out infinite;
}

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

.recommendation-desc {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.compatibility-section {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.compatibility-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.compatibility-percent {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.score-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.6s ease;
    border-radius: 4px;
}

.recommendation-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.meta-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

/* PLAN D'ACTION */
.action-intro {
    margin-bottom: 40px;
    animation: slideInUp 0.8s ease-out;
}

.action-intro h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.action-intro p {
    font-size: 16px;
    color: var(--text-gray);
}

.action-timeline {
    position: relative;
    padding: 20px 0;
}

.action-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.action-step {
    background: var(--bg-white);
    padding: 20px 20px 20px 60px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent);
    animation: slideInUp 0.6s ease-out backwards;
    position: relative;
    transition: all 0.3s ease;
}

.action-step:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.action-step-number {
    position: absolute;
    left: 8px;
    top: 20px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-md);
}

.action-step-content h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 16px;
}

.action-timeframe {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
}

.action-step-bullet {
    position: absolute;
    left: 10px;
    bottom: -10px;
    width: 20px;
    height: 20px;
    background: var(--bg-white);
    border: 3px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--bg-light);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    animation: slideInUp 0.3s ease-out;
}

/* JOB MATCHING CARDS */
.job-matching-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.job-card {
    background: var(--neutral);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    animation: slideInUp 0.6s ease-out backwards;
    border-left: 5px solid var(--trail);
}

.job-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.job-card-header {
    padding: 32px;
    background: linear-gradient(135deg, var(--trail), var(--summit));
    color: white;
}

.job-card-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.job-card-icon {
    font-size: 40px;
}

.job-card-title h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.job-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.job-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.job-meta-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.job-meta-value {
    font-size: 16px;
    font-weight: 600;
}

.job-card-body {
    padding: 32px;
}

.job-description {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 24px;
    line-height: 1.7;
    font-weight: 500;
}

.job-why-match {
    background: rgba(45, 134, 89, 0.08);
    border-left: 4px solid var(--milestone);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.job-why-match-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--milestone);
    font-weight: 700;
    margin-bottom: 8px;
}

.job-why-match-text {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.job-skills-section {
    margin-bottom: 28px;
}

.job-skills-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skills-required {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name-level {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.skill-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.skill-level {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

.skill-match-indicator {
    display: flex;
    gap: 4px;
}

.skill-match-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-light);
}

.skill-match-dot.matched {
    background: var(--highlight);
    box-shadow: 0 0 6px var(--highlight);
}

.skill-importance {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 700;
    color: var(--text-dark);
}

.job-challenges {
    background: rgba(212, 165, 116, 0.08);
    border-left: 4px solid var(--highlight);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.job-challenges-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--summit);
    font-weight: 700;
    margin-bottom: 8px;
}

.job-challenges-text {
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

.job-action-plan {
    background: linear-gradient(135deg, var(--trail) 0%, var(--summit) 100%);
    color: white;
    padding: 20px;
    border-radius: var(--radius);
}

.job-action-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
    font-weight: 700;
    margin-bottom: 12px;
}

.job-action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-action-item {
    display: flex;
    gap: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.job-action-item::before {
    content: '→';
    flex-shrink: 0;
    font-weight: bold;
    opacity: 0.8;
}

/* RESPONSIVE - TABLET (768px and down) */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    /* Journey screen tablet layout */
    #journey-screen.active {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto 1fr auto !important;
        gap: 15px !important;
        padding: 15px !important;
    }

    .sidebar-modules {
        grid-column: 1;
        grid-row: 1;
        position: static;
        height: auto;
        margin-bottom: 10px;
    }

    .sidebar-profile {
        grid-column: 1;
        grid-row: 2;
        position: static;
        height: auto;
        margin-bottom: 10px;
    }

    .main-content {
        grid-column: 1;
        grid-row: 3;
        gap: 20px;
    }

    .progress-footer {
        grid-column: 1;
        grid-row: 4;
    }

    .modules-list h4 {
        font-size: 14px;
        margin-bottom: 10px;
    }

    #modules-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .module-btn {
        flex: 1;
        min-width: 100px;
        font-size: 12px !important;
        padding: 8px 10px !important;
    }

    #welcome-screen {
        padding: 30px 15px;
    }

    #welcome-screen h1 {
        font-size: 28px;
        margin-bottom: 15px;
    }

    #welcome-screen h2 {
        font-size: 18px;
    }

    .tagline {
        font-size: 14px;
    }

    .welcome-container {
        max-width: 100%;
        padding: 30px 15px;
    }

    .logo-welcome {
        margin-bottom: 20px;
        max-width: 150px;
        margin-left: auto;
        margin-right: auto;
    }

    .features-list {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
        padding: 12px 16px;
        font-size: 14px;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tab-btn {
        flex: 1;
        min-width: 120px;
        font-size: 13px;
        padding: 10px 8px;
    }

    .recommendations-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .recommendations-list .card {
        padding: 15px;
    }

    .options-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .option-box {
        padding: 12px;
        font-size: 13px;
        border-radius: 6px;
        cursor: pointer;
        border: 2px solid var(--border-light);
        transition: all 0.2s ease;
    }

    .option-box:active {
        transform: scale(0.98);
    }

    .option-box.selected {
        border-color: var(--trail);
        background: rgba(44, 82, 130, 0.08);
    }

    .slider-container {
        margin: 15px 0;
    }

    .slider-container input[type="range"] {
        width: 100%;
        height: 6px;
        cursor: pointer;
    }

    .slider-labels {
        display: flex;
        justify-content: space-between;
        font-size: 11px;
        color: var(--text-gray);
        margin-top: 8px;
    }

    .checklist-item {
        display: flex;
        gap: 10px;
        padding: 12px;
        border-radius: 6px;
        cursor: pointer;
        border: 2px solid var(--border-light);
        margin-bottom: 8px;
        align-items: center;
        transition: all 0.2s ease;
    }

    .checklist-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
        flex-shrink: 0;
    }

    .checklist-item:active {
        transform: scale(0.98);
    }

    .checklist-item.selected {
        border-color: var(--trail);
        background: rgba(44, 82, 130, 0.08);
    }

    .ranking-item {
        display: flex;
        gap: 10px;
        padding: 12px;
        border-radius: 6px;
        border: 2px solid var(--border-light);
        margin-bottom: 8px;
        align-items: center;
        cursor: grab;
    }

    .ranking-item:active {
        cursor: grabbing;
        opacity: 0.8;
    }

    .ranking-handle {
        color: var(--trail);
        font-weight: bold;
        flex-shrink: 0;
        font-size: 16px;
    }

    .ranking-text {
        flex: 1;
        font-size: 13px;
    }

    .progress-header {
        flex-direction: column;
        gap: 15px;
    }

    .onboarding-form {
        gap: 15px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px;
    }

    .step-container {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .step-header {
        margin-bottom: 10px;
        padding: 0;
    }

    .step-number {
        font-size: 12px;
        font-weight: 600;
        color: var(--trail);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .step-module {
        font-size: 11px;
        color: var(--text-gray);
        margin-top: 2px;
    }

    .step-content {
        font-size: 14px;
        line-height: 1.6;
    }

    .step-content h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 12px 0;
        color: var(--text-dark);
    }

    .quiz-option {
        padding: 12px;
        font-size: 14px;
        margin-bottom: 8px;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 2px solid var(--border-light);
    }

    .quiz-option:active {
        transform: scale(0.98);
    }

    .quiz-option.selected {
        border-color: var(--trail);
        background: rgba(44, 82, 130, 0.08);
    }

    .reflection-textarea {
        font-size: 14px;
        min-height: 120px;
        padding: 12px;
        border-radius: 6px;
        border: 2px solid var(--border-light);
        font-family: inherit;
    }

    .step-actions {
        display: flex;
        gap: 10px;
        margin-top: 15px;
    }

    .step-actions .btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 13px;
    }

    .profile-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .profile-grid .card {
        padding: 15px;
    }

    .tab-pane {
        padding: 15px 10px;
    }

    .result-card {
        padding: 15px;
        margin-bottom: 10px;
    }

    .sidebar-header {
        flex-direction: column;
        gap: 10px;
    }

    .sidebar-illustration {
        max-width: 60px;
        height: auto;
    }

    .sidebar-header h3 {
        font-size: 14px;
    }

    .profile-summary {
        font-size: 13px;
    }

    .big-number {
        font-size: 32px;
    }

    .stats-card h4 {
        font-size: 13px;
    }

    .skill-item {
        margin-bottom: 12px;
    }

    .skill-fill {
        height: 6px;
    }

    .thinking-illustration {
        max-width: 80px;
    }
}

/* RESPONSIVE - MOBILE (480px and down) */
@media (max-width: 480px) {
    html, body {
        font-size: 13px;
    }

    body {
        padding: 0;
        margin: 0;
    }

    .screen {
        min-height: 100vh;
        padding: 15px 12px;
    }

    /* Hide sidebars on mobile, make main content full-width */
    #journey-screen.active {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto 1fr auto !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .sidebar-modules {
        display: none !important;
    }

    .sidebar-profile {
        display: none !important;
    }

    .main-content {
        grid-column: 1 !important;
        grid-row: 2 !important;
        gap: 15px;
        padding: 0;
    }

    .progress-footer {
        grid-column: 1 !important;
        grid-row: 3 !important;
        padding: 10px;
        margin: 0;
    }

    .progress-footer .stats-card {
        padding: 12px;
        border-radius: 8px;
        background: linear-gradient(135deg, var(--trail) 0%, var(--milestone) 100%);
        color: white;
    }

    .progress-footer .stats-card h4 {
        color: rgba(255, 255, 255, 0.9);
        font-size: 12px;
        margin: 0 0 5px 0;
    }

    .progress-footer .big-number {
        color: white;
        font-size: 28px;
        font-weight: 700;
    }

    .progress-footer .stat-line {
        color: rgba(255, 255, 255, 0.85);
        font-size: 12px;
    }

    #welcome-screen {
        padding: 20px 12px;
        background: linear-gradient(180deg, var(--neutral) 0%, #efe9e2 100%);
    }

    #welcome-screen::before {
        width: 400px;
        height: 400px;
        top: -20%;
        right: -15%;
    }

    #welcome-screen h1 {
        font-size: 22px;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    #welcome-screen h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .tagline {
        font-size: 12px;
        margin-bottom: 20px;
    }

    .welcome-container {
        max-width: 100%;
        padding: 20px 0;
        margin: 0 auto;
    }

    .logo-welcome {
        margin-bottom: 20px;
        max-width: 120px;
    }

    .welcome-content {
        text-align: left;
        padding: 0;
    }

    .welcome-content h2 {
        font-size: 14px;
        font-weight: 600;
    }

    .features-list {
        font-size: 12px;
        text-align: left;
        margin-left: 15px;
        margin-bottom: 15px;
    }

    .features-list li {
        margin-bottom: 6px;
    }

    .info-text {
        font-size: 11px;
        text-align: center;
    }

    .button-group {
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    .btn {
        width: 100%;
        padding: 11px 14px;
        font-size: 12px;
        border-radius: 8px;
    }

    .btn-primary, .btn-secondary, .btn-outline {
        width: 100%;
    }

    /* Journey screen mobile layout */
    #journey-screen.active {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto 1fr auto !important;
        gap: 12px !important;
        padding: 12px !important;
        min-height: auto !important;
    }

    .sidebar-modules,
    .sidebar-profile,
    .main-content,
    .progress-footer {
        position: relative !important;
        top: 0 !important;
        height: auto !important;
        grid-column: 1 !important;
    }

    .sidebar-modules {
        grid-row: 1;
        padding: 12px;
    }

    .sidebar-profile {
        grid-row: 2;
        padding: 12px;
    }

    .main-content {
        grid-row: 3;
        gap: 15px;
    }

    .progress-footer {
        grid-row: 4;
        padding: 12px;
    }

    .modules-list h4 {
        font-size: 13px;
        margin-bottom: 8px;
    }

    #modules-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .module-btn {
        font-size: 11px !important;
        padding: 6px 8px !important;
        border-radius: 6px;
    }

    .sidebar-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .sidebar-illustration {
        max-width: 50px;
        min-width: 50px;
    }

    .sidebar-header h3 {
        font-size: 13px;
        margin: 0;
    }

    .profile-summary {
        font-size: 12px;
    }

    .profile-summary p {
        margin-bottom: 6px;
        line-height: 1.4;
    }

    .btn-block {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
        margin-top: 8px;
    }

    .step-container {
        padding: 15px 12px;
    }

    .step-header {
        margin-bottom: 15px;
    }

    .step-number {
        font-size: 14px;
        font-weight: 600;
    }

    .step-module {
        font-size: 12px;
    }

    .step-content {
        font-size: 13px;
        line-height: 1.5;
    }

    .step-content h3 {
        font-size: 15px;
        margin-bottom: 10px;
        font-weight: 600;
    }

    .step-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top: 15px;
    }

    .step-actions .btn {
        font-size: 12px;
        padding: 10px 12px;
    }

    .quiz-option {
        padding: 10px;
        font-size: 12px;
        margin-bottom: 6px;
        border-radius: 6px;
    }

    .reflection-textarea {
        font-size: 13px;
        min-height: 80px;
        padding: 8px;
        border-radius: 6px;
    }

    .checklist-item {
        padding: 8px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .slider-container {
        margin: 12px 0;
    }

    .slider-container input[type="range"] {
        width: 100%;
    }

    .slider-labels {
        font-size: 11px;
        gap: 8px;
    }

    /* Onboarding screen mobile */
    #onboarding-screen {
        padding: 20px 12px;
    }

    .progress-header {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        text-align: center;
    }

    .progress-info h2 {
        font-size: 16px;
    }

    .progress-info p {
        font-size: 12px;
    }

    .progress-bar-container {
        width: 100%;
    }

    .onboarding-form {
        gap: 12px;
        margin-bottom: 15px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group label {
        font-size: 12px;
        display-block;
        margin-bottom: 4px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        width: 100%;
        font-size: 13px;
        padding: 9px;
        border-radius: 6px;
    }

    /* Results screen mobile */
    #results-screen {
        padding: 15px 12px;
    }

    .results-grid {
        padding: 15px;
        box-shadow: none;
        border: 2px solid var(--border-light);
        border-radius: 8px;
    }

    .celebration {
        text-align: center;
        margin-bottom: 20px;
    }

    .celebration h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .celebration p {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .achievement-illustration {
        max-width: 120px;
        margin: 0 auto 15px;
    }

    .tabs {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        margin-bottom: 15px;
        border-bottom: none !important;
        overflow: visible !important;
        width: 100%;
        flex-wrap: nowrap !important;
    }

    .tab-btn {
        padding: 10px 8px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 6px;
        border: 2px solid var(--border-light);
        background: white;
        color: var(--text-dark);
        cursor: pointer;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        text-align: center;
        transition: all 0.2s ease;
        min-height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: center;
        line-height: 1.3;
        flex: none !important;
        min-width: unset !important;
    }

    .tab-btn:active {
        transform: scale(0.98);
    }

    .tab-btn.active {
        background: linear-gradient(135deg, var(--trail) 0%, var(--milestone) 100%);
        color: white;
        border-color: var(--trail);
    }

    .tab-content {
        padding: 0;
    }

    .tab-pane {
        padding: 15px 0;
    }

    .profile-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .profile-grid .card {
        padding: 15px;
        border-radius: 8px;
        border: 2px solid var(--border-light);
        background: white;
    }

    .profile-grid h3 {
        font-size: 13px;
    }

    .profile-grid p {
        font-size: 12px;
    }

    .recommendations-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .recommendations-list .card {
        padding: 15px;
        border-radius: 8px;
        border: 2px solid var(--border-light);
        background: white;
    }

    .recommendations-list h3 {
        font-size: 15px;
        font-weight: 600;
        margin: 0 0 8px 0;
        color: var(--text-dark);
    }

    .recommendations-list p {
        font-size: 13px;
        line-height: 1.5;
        margin: 8px 0;
        color: var(--text-gray);
    }

    .recommendations-list .badge {
        font-size: 12px;
        padding: 6px 10px;
        border-radius: 4px;
        display: inline-block;
        margin-right: 6px;
        margin-bottom: 8px;
    }

    .action-plan {
        font-size: 12px;
    }

    .action-plan h3 {
        font-size: 13px;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .action-plan ol,
    .action-plan ul {
        margin-left: 15px;
    }

    .action-plan li {
        margin-bottom: 6px;
    }

    .stats-card {
        padding: 12px;
    }

    .big-number {
        font-size: 28px;
        margin: 8px 0;
    }

    .stat-line {
        font-size: 12px;
    }

    /* Modal mobile */
    .modal-content {
        padding: 20px 12px;
        border-radius: 12px;
        width: 90vw;
        max-width: 100%;
    }

    .modal-content h3 {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .modal-content p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    /* Scroll behavior for mobile */
    html {
        scroll-behavior: smooth;
    }

    /* Ensure full width on mobile */
    .container {
        max-width: 100%;
        padding: 0 12px;
    }

    /* Mobile-friendly forms */
    input[type="text"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Improve touch targets */
    .btn,
    .module-btn,
    .tab-btn,
    .quiz-option,
    .checklist-item {
        min-height: 44px; /* Apple's recommended touch size */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
