/* ====================================
   TEST RIASEC - ULTRA PREMIUM DESIGN
   Animations fluides & expérience immersive
   ==================================== */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --r-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --i-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --a-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --s-gradient: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --e-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --c-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

/* Animations */
@keyframes float-advanced {
    0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
    25% { transform: translateY(-15px) rotate(2deg) scale(1.05); }
    75% { transform: translateY(8px) rotate(-2deg) scale(0.98); }
}

@keyframes pulse-glow-strong {
    0%, 100% { box-shadow: 0 0 30px rgba(102, 126, 234, 0.4), 0 10px 40px rgba(102, 126, 234, 0.2); }
    50% { box-shadow: 0 0 60px rgba(102, 126, 234, 0.8), 0 15px 50px rgba(102, 126, 234, 0.4); }
}

@keyframes slide-in-right {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-left {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scale-bounce {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes progress-fill {
    from { width: 0%; }
    to { width: var(--progress-width); }
}

@keyframes shimmer-advanced {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

@keyframes radar-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.95); }
    50% { opacity: 1; transform: scale(1.05); }
}

/* Particules canvas */
.particles-canvas {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0 !important;
    opacity: 0.25;
}

/* Container principal */
.riasec-container {
    position: relative;
    z-index: 1;
}

.riasec-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(250, 112, 154, 0.08) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: gradient-shift 20s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Header ultra sophistiqué */
.riasec-icon {
    animation: float-advanced 6s ease-in-out infinite, pulse-glow-strong 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.riasec-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer-advanced 3s infinite;
}

/* Welcome screen avec glassmorphism */
.riasec-welcome {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 0 100px rgba(102, 126, 234, 0.1);
    animation: scale-bounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.welcome-content h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-advanced 3s infinite;
    background-size: 200% auto;
}

/* Type cards premium */
.riasec-types-grid {
    gap: 25px;
}

.type-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.type-card:hover::before {
    left: 100%;
}

.type-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: rgba(102, 126, 234, 0.5);
}

.type-icon {
    animation: float-advanced 5s ease-in-out infinite;
    position: relative;
}

.type-icon::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    filter: blur(15px);
    z-index: -1;
    animation: pulse-glow-strong 2s ease-in-out infinite;
}

/* Bouton start ultra premium */
.btn-start-test {
    background: var(--primary-gradient);
    background-size: 200% auto;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-start-test::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-start-test:active::before {
    width: 400px;
    height: 400px;
}

.btn-start-test:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
    background-position: right center;
}

/* Progress bar sophistiquée */
.progress-bar-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
    background: var(--primary-gradient);
    background-size: 200% 100%;
    animation: shimmer-advanced 2s linear infinite;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer-advanced 1.5s linear infinite;
}

.progress-text {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 700;
}

/* Question card premium */
.question-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: slide-in-right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.question-text {
    font-size: 22px;
    background: linear-gradient(135deg, #2d3748 0%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Options de réponse ultra premium */
.answer-options {
    gap: 20px;
}

.answer-btn {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    padding: 20px 30px;
    border-radius: 15px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.answer-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.answer-btn:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(255, 255, 255, 0.95);
}

.answer-btn:active::before {
    width: 300px;
    height: 300px;
}

.answer-btn.selected {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Navigation buttons */
.question-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.btn-nav {
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.btn-prev {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
}

.btn-prev:hover {
    transform: translateX(-5px);
    background: rgba(102, 126, 234, 0.1);
}

.btn-next {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-next:hover {
    transform: translateX(5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
}

/* Results avec radar chart amélioré */
.results-container {
    animation: scale-bounce 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.radar-chart-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    position: relative;
}

.radar-chart-container::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.radar-chart-container:hover::before {
    opacity: 0.5;
    animation: pulse-glow-strong 2s ease-in-out infinite;
}

#radarChart {
    animation: radar-pulse 3s ease-in-out infinite;
}

/* Profile cards premium */
.profile-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.profile-card:hover::before {
    left: 100%;
}

.profile-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.profile-header {
    position: relative;
    overflow: hidden;
}

.profile-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    animation: progress-fill 1s ease-out;
    --progress-width: 100%;
}

.profile-icon {
    animation: float-advanced 4s ease-in-out infinite;
}

/* Traits tags */
.trait-tag {
    background: rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.trait-tag:hover {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Métiers list */
.metiers-list li {
    transition: all 0.3s ease;
    padding-left: 30px;
    position: relative;
}

.metiers-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    transition: all 0.3s ease;
}

.metiers-list li:hover {
    transform: translateX(10px);
    color: #667eea;
}

.metiers-list li:hover::before {
    transform: scale(1.3) rotate(360deg);
    color: #667eea;
}

/* Buttons avec micro-interactions */
.btn-restart,
.btn-save-results {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.btn-restart::before,
.btn-save-results::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-restart:active::before,
.btn-save-results:active::before {
    width: 400px;
    height: 400px;
}

.btn-restart:hover,
.btn-save-results:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Toast notifications */
.toast {
    animation: slide-in-right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Responsive amélioré */
@media (max-width: 768px) {
    .riasec-types-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .type-card {
        padding: 20px;
    }
    
    .question-text {
        font-size: 18px;
    }
    
    .answer-btn {
        padding: 15px 20px;
    }
}

/* Confetti particles */
.confetti-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* Loading spinner premium */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   NOUVEAUX STYLES POUR LA PAGE COMPLÈTE
   ========================================== */

/* Particules de fond */
.riasec-background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Container global */
.riasec-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    min-height: calc(100vh - 200px);
}

/* Header */
.riasec-header {
    text-align: center;
    margin-bottom: 60px;
    animation: slide-in-left 0.8s ease-out;
}

.riasec-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.4);
}

.riasec-header h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.riasec-subtitle {
    font-size: 20px;
    color: #64748b;
    margin-bottom: 30px;
}

/* Badges */
.test-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.badge-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.badge-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.badge-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.badge-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

/* Écrans (welcome, quiz, results) */
.riasec-welcome,
.riasec-quiz,
.riasec-results {
    display: none;
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.riasec-welcome.active,
.riasec-quiz.active,
.riasec-results.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Welcome screen */
.riasec-welcome {
    background: white;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

.welcome-content h2 {
    font-size: 36px;
    margin-bottom: 25px;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-intro {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    text-align: center;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid types RIASEC */
.riasec-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .riasec-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .riasec-types-grid {
        grid-template-columns: 1fr;
    }
}

.type-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: default;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.type-card:hover {
    border-color: #667eea;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.type-icon {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
}

.type-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1e293b;
}

.type-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Info boxes */
.test-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    min-height: 120px;
}

.info-box:hover {
    border-color: #667eea;
    background: #f1f5f9;
}

.info-box i {
    font-size: 32px;
    color: #667eea;
}

.info-box strong {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
    color: #1e293b;
}

.info-box p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

/* Welcome actions */
.welcome-actions {
    text-align: center;
}

.btn-start {
    padding: 25px 70px;
    font-size: 22px;
    font-weight: 800;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 200% auto;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.5);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
    animation: pulse-glow-strong 3s ease-in-out infinite;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-start:hover::before {
    left: 100%;
}

.btn-start:hover {
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.6);
    background-position: right center;
}

.btn-start:active {
    transform: translateY(-2px) scale(1.05);
}

.btn-start:active {
    transform: translateY(-1px) scale(1.02);
}

.login-suggestion {
    margin-top: 25px;
    font-size: 14px;
    color: #64748b;
}

.login-suggestion a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.login-suggestion a:hover {
    text-decoration: underline;
}

/* Quiz screen */
.riasec-quiz {
    max-width: 900px;
    margin: 0 auto;
}

.quiz-progress {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
}

.progress-text {
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #475569;
}

.quiz-content {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.question-number {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-text {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 50px;
    line-height: 1.4;
}

.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.answer-btn {
    padding: 20px 30px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #475569;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.answer-btn i {
    font-size: 24px;
    transition: all 0.3s ease;
}

.answer-btn:hover {
    border-color: #667eea;
    transform: translateX(10px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.answer-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: white;
    transform: scale(1.02);
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.btn-nav {
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-prev {
    background: white;
    border: 2px solid #e2e8f0;
    color: #475569;
}

.btn-prev:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    transform: translateX(-5px);
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-skip {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.btn-skip:hover {
    border-color: #94a3b8;
    color: #475569;
}

/* Results screen */
.riasec-results {
    max-width: 1100px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 60px;
}

.results-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    box-shadow: 0 15px 50px rgba(245, 158, 11, 0.4);
    animation: pulse-glow-strong 2s ease-in-out infinite;
}

.results-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
    color: #1e293b;
}

.results-subtitle {
    font-size: 20px;
    color: #64748b;
}

.results-content {
    display: grid;
    gap: 40px;
}

/* Profil dominant */
.dominant-profile {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.profile-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.dominant-profile h3 {
    font-size: 18px;
    color: #64748b;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-type {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-description {
    font-size: 18px;
    line-height: 1.8;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
}

/* Chart */
.results-chart {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.results-chart h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #1e293b;
}

.results-chart canvas {
    max-width: 500px;
    max-height: 500px;
    margin: 0 auto;
    display: block;
}

/* Scores detailed */
.scores-detailed {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.scores-detailed h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1e293b;
}

.score-bar-item {
    margin-bottom: 25px;
}

.score-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.score-icon {
    font-size: 24px;
}

.score-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    flex: 1;
}

.score-value {
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.score-bar-container {
    width: 100%;
    height: 12px;
    background: #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.score-bar-fill.type-r { background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%); }
.score-bar-fill.type-i { background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%); }
.score-bar-fill.type-a { background: linear-gradient(90deg, #fa709a 0%, #fee140 100%); }
.score-bar-fill.type-s { background: linear-gradient(90deg, #30cfd0 0%, #330867 100%); }
.score-bar-fill.type-e { background: linear-gradient(90deg, #a8edea 0%, #fed6e3 100%); }
.score-bar-fill.type-c { background: linear-gradient(90deg, #ffecd2 0%, #fcb69f 100%); }

/* Top types / Holland code */
.top-types {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.top-types h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1e293b;
}

.holland-code {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 8px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.holland-explanation {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Recommended jobs */
.recommended-jobs {
    background: white;
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.recommended-jobs h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 15px;
}

.jobs-intro {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 40px;
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.job-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.job-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.job-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.job-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}

.job-demand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.job-demand.demand-very-high {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.job-demand.demand-high {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.job-demand.demand-medium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.job-search-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.job-search-link:hover {
    gap: 12px;
    color: #764ba2;
}

/* Strengths section */
.strengths-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.strength-card {
    background: white;
    border-radius: 25px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.strength-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.strength-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.strength-card li {
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 16px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 12px;
}

.strength-card li:last-child {
    border-bottom: none;
}

.strength-card li i {
    color: #667eea;
    font-size: 18px;
}

/* Results actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 50px 0;
}

.results-actions button {
    padding: 18px 40px;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: none;
}

.btn-save {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

.btn-download {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
}

.btn-share {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
}

.btn-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

.btn-retake {
    background: white;
    color: #667eea;
    border: 2px solid #667eea !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-retake:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* ==========================================
   RESPONSIVE DESIGN AMÉLIORÉ
   ========================================== */

/* Tablettes paysage et petits écrans */
@media (max-width: 1024px) {
    .riasec-types-grid,
    .riasec-types-modern {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .jobs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .riasec-container {
        margin: 20px auto;
        padding: 15px;
    }
    
    .riasec-welcome,
    .dominant-profile,
    .results-chart,
    .scores-detailed,
    .top-types,
    .recommended-jobs,
    .strength-card {
        padding: 40px 30px;
    }
    
    .riasec-header h1 {
        font-size: 38px;
    }
    
    .holland-code {
        font-size: 54px;
        letter-spacing: 6px;
    }
}

/* Tablettes portrait */
@media (max-width: 900px) {
    .test-info,
    .test-info-modern {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-box,
    .info-modern {
        min-height: auto;
        padding: 20px;
    }
    
    .strengths-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Mobile grand écran */
@media (max-width: 768px) {
    .riasec-container {
        padding: 10px;
        margin: 10px auto;
    }
    
    .riasec-welcome {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .riasec-header {
        margin-bottom: 30px;
    }
    
    .riasec-header h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .riasec-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .riasec-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    /* Badges responsive */
    .test-badges {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .badge {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Types RIASEC en grille mobile */
    .riasec-types-grid,
    .riasec-types-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .type-card,
    .type-modern {
        padding: 20px 15px;
        min-height: 160px;
        border-radius: 15px;
    }
    
    .type-icon,
    .type-modern-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }
    
    .type-card h3,
    .type-modern h3 {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .type-card p,
    .type-modern p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    /* Welcome intro */
    .welcome-intro {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .welcome-content h2 {
        font-size: 26px;
    }
    
    /* Bouton commencer */
    .btn-start {
        padding: 18px 40px;
        font-size: 18px;
        width: 100%;
        max-width: 320px;
        justify-content: center;
        border-radius: 15px;
    }
    
    /* Quiz section */
    .quiz-progress {
        padding: 20px;
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .progress-text {
        font-size: 14px;
    }
    
    .quiz-content {
        padding: 25px 18px;
        border-radius: 20px;
    }
    
    .question-number {
        font-size: 12px;
        margin-bottom: 10px;
    }
    
    .question-text {
        font-size: 20px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .answer-options {
        gap: 12px;
        margin-bottom: 30px;
    }
    
    .answer-btn {
        font-size: 15px;
        padding: 16px 18px;
        border-radius: 12px;
        gap: 12px;
    }
    
    .answer-btn i {
        font-size: 20px;
    }
    
    .answer-btn span {
        flex: 1;
        text-align: left;
    }
    
    /* Navigation quiz */
    .quiz-navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
        padding: 14px 25px;
        font-size: 15px;
    }
    
    /* Results section */
    .riasec-results {
        padding: 0 5px;
    }
    
    .results-header {
        margin-bottom: 30px;
    }
    
    .results-header h2 {
        font-size: 28px;
    }
    
    .results-subtitle {
        font-size: 16px;
    }
    
    .results-icon {
        width: 80px;
        height: 80px;
        font-size: 36px;
        margin-bottom: 20px;
    }
    
    .results-content {
        gap: 25px;
    }
    
    /* Profil dominant */
    .dominant-profile {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .profile-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }
    
    .dominant-profile h3 {
        font-size: 14px;
    }
    
    .profile-type {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .profile-description {
        font-size: 15px;
        line-height: 1.7;
    }
    
    /* Chart section */
    .results-chart {
        padding: 25px 15px;
        border-radius: 20px;
    }
    
    .results-chart h3 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .results-chart canvas {
        max-width: 100%;
        max-height: 300px;
    }
    
    /* Scores detailed */
    .scores-detailed {
        padding: 25px 18px;
        border-radius: 20px;
    }
    
    .scores-detailed h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }
    
    .score-bar-item {
        margin-bottom: 20px;
    }
    
    .score-icon {
        font-size: 20px;
    }
    
    .score-name {
        font-size: 15px;
    }
    
    .score-value {
        font-size: 14px;
    }
    
    .score-bar-container {
        height: 10px;
    }
    
    /* Holland code */
    .top-types {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .top-types h3 {
        font-size: 20px;
    }
    
    .holland-code {
        font-size: 42px;
        letter-spacing: 5px;
    }
    
    .holland-explanation {
        font-size: 14px;
    }
    
    /* Jobs section */
    .recommended-jobs {
        padding: 30px 18px;
        border-radius: 20px;
    }
    
    .recommended-jobs h3 {
        font-size: 22px;
        flex-wrap: wrap;
    }
    
    .jobs-intro {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .jobs-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .job-card {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .job-icon {
        font-size: 35px;
        margin-bottom: 12px;
    }
    
    .job-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    /* Strengths section */
    .strength-card {
        padding: 25px 20px;
        border-radius: 20px;
    }
    
    .strength-card h4 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .strength-card li {
        padding: 12px 0;
        font-size: 14px;
        gap: 10px;
    }
    
    .strength-card li i {
        font-size: 16px;
    }
    
    /* Results actions */
    .results-actions {
        flex-direction: column;
        padding: 30px 10px;
        gap: 12px;
    }
    
    .results-actions button {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    /* Share URL box */
    .share-url-box {
        padding: 20px !important;
        border-radius: 15px;
    }
    
    .share-url-box > div:last-child {
        flex-direction: column;
    }
    
    .share-url-box input {
        font-size: 12px !important;
        padding: 10px 12px !important;
    }
}

/* Mobile petit écran */
@media (max-width: 480px) {
    .riasec-container {
        padding: 8px;
        margin: 5px auto;
    }
    
    .riasec-header h1 {
        font-size: 24px;
    }
    
    .riasec-subtitle {
        font-size: 14px;
    }
    
    .riasec-icon {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }
    
    .riasec-welcome {
        padding: 25px 15px;
        border-radius: 18px;
    }
    
    .welcome-content h2 {
        font-size: 22px;
    }
    
    .welcome-intro {
        font-size: 14px;
    }
    
    /* Types en colonne sur très petit écran */
    .riasec-types-grid,
    .riasec-types-modern {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .type-card,
    .type-modern {
        padding: 15px 10px;
        min-height: 140px;
    }
    
    .type-icon,
    .type-modern-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }
    
    .type-card h3,
    .type-modern h3 {
        font-size: 14px;
    }
    
    .type-card p,
    .type-modern p {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .btn-start {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .quiz-content {
        padding: 20px 15px;
    }
    
    .question-text {
        font-size: 18px;
        margin-bottom: 25px;
    }
    
    .answer-btn {
        padding: 14px 15px;
        font-size: 14px;
    }
    
    .answer-btn i {
        font-size: 18px;
    }
    
    .results-header h2 {
        font-size: 24px;
    }
    
    .profile-type {
        font-size: 28px;
    }
    
    .holland-code {
        font-size: 36px;
        letter-spacing: 4px;
    }
    
    .job-card {
        padding: 20px 15px;
    }
    
    .results-actions button {
        padding: 14px 25px;
        font-size: 14px;
    }
}

/* Très petits écrans (320px) */
@media (max-width: 360px) {
    .riasec-header h1 {
        font-size: 22px;
    }
    
    .riasec-types-grid,
    .riasec-types-modern {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .type-card,
    .type-modern {
        padding: 12px 8px;
        min-height: 120px;
    }
    
    .type-icon,
    .type-modern-icon {
        font-size: 28px;
    }
    
    .type-card h3,
    .type-modern h3 {
        font-size: 13px;
    }
    
    .type-card p,
    .type-modern p {
        font-size: 10px;
    }
    
    .badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .answer-btn {
        font-size: 13px;
        padding: 12px;
    }
    
    .holland-code {
        font-size: 32px;
        letter-spacing: 3px;
    }
}

/* Styles breadcrumb responsive */
.riasec-breadcrumb {
    padding: 0.75rem 15px;
}

@media (max-width: 480px) {
    .riasec-breadcrumb {
        padding: 0.5rem 12px;
    }
    
    .riasec-breadcrumb ol {
        font-size: 0.8rem !important;
    }
}
