 body {
     font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
     line-height: 1.6;
     color: var(--text-dark);
     background: var(--gradient-hero);
     min-height: 100vh;
     overflow-x: hidden;
     position: relative;
 }

 /* Background Animation */
 .background-animation {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     z-index: -1;
     overflow: hidden;
 }

 .floating-shape {
     position: absolute;
     background: rgba(255, 255, 255, 0.08);
     border-radius: 50%;
     animation: float 12s ease-in-out infinite;
 }

 .floating-shape:nth-child(1) {
     width: 100px;
     height: 100px;
     top: 20%;
     left: 10%;
     animation-delay: 0s;
 }

 .floating-shape:nth-child(2) {
     width: 150px;
     height: 150px;
     top: 60%;
     right: 15%;
     animation-delay: 4s;
 }

 .floating-shape:nth-child(3) {
     width: 80px;
     height: 80px;
     bottom: 20%;
     left: 20%;
     animation-delay: 8s;
 }

 .floating-shape:nth-child(4) {
     width: 120px;
     height: 120px;
     top: 40%;
     right: 25%;
     animation-delay: 2s;
 }

 @keyframes float {

     0%,
     100% {
         transform: translateY(0px) rotate(0deg);
         opacity: 0.6;
     }

     50% {
         transform: translateY(-30px) rotate(180deg);
         opacity: 1;
     }
 }

 /* Header */
 .header {
     padding: 1.5rem 0 1rem;
     text-align: center;
     position: relative;
     z-index: 10;
 }

 .logo-container {
     display: flex;
     align-items: center;
     justify-content: center;
     margin-bottom: 1.5rem;
     animation: slideInDown 1s ease-out;
 }

 .logo {
     background: var(--accent-red);
     width: 45px;
     height: 45px;
     border-radius: 10px;
     display: flex;
     align-items: center;
     justify-content: center;
     margin-right: 1rem;
     box-shadow: var(--shadow-lg);
     transition: transform 0.3s ease;
 }

 .logo:hover {
     transform: scale(1.1) rotate(5deg);
 }

 .logo i {
     color: white;
     font-size: 1.3rem;
 }

 .brand-name {
     font-size: 1.8rem;
     font-weight: 800;
     color: white;
     letter-spacing: 2px;
 }

 .page-title {
     font-size: 2.2rem;
     font-weight: 800;
     color: white;
     margin-bottom: 0.5rem;
     animation: slideInUp 1s ease-out 0.2s both;
     text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
 }

 .page-subtitle {
     font-size: 1.1rem;
     color: rgba(255, 255, 255, 0.9);
     margin-bottom: 1.5rem;
     animation: slideInUp 1s ease-out 0.4s both;
 }

 /* Main Container */
 .main-container {
     max-width: 900px;
     margin: 0 auto;
     padding: 0 1.5rem;
     position: relative;
     z-index: 10;
 }

 /* Welcome Screen */
 .welcome-screen {
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(20px);
     border-radius: 20px;
     padding: 2.5rem;
     box-shadow: var(--shadow-xl);
     border: 1px solid rgba(255, 255, 255, 0.3);
     text-align: center;
     margin-bottom: 2rem;
     animation: slideInUp 1s ease-out 0.6s both;
 }

 .welcome-icon {
     font-size: 3rem;
     color: var(--secondary-color);
     margin-bottom: 1.5rem;
 }

 .welcome-title {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--text-dark);
     margin-bottom: 1rem;
 }

 .welcome-description {
     color: var(--text-light);
     margin-bottom: 1.5rem;
     line-height: 1.8;
 }

 .test-info {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
     gap: 1.5rem;
     margin: 2rem 0;
 }

 .info-card {
     background: rgba(59, 130, 246, 0.1);
     padding: 1.5rem;
     border-radius: 15px;
     border: 1px solid rgba(59, 130, 246, 0.2);
     text-align: center;
 }

 .info-icon {
     font-size: 1.8rem;
     color: var(--secondary-color);
     margin-bottom: 0.5rem;
 }

 .info-title {
     font-weight: 600;
     color: var(--text-dark);
     margin-bottom: 0.5rem;
 }

 .info-text {
     font-size: 0.9rem;
     color: var(--text-light);
 }

 .start-button {
     background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
     color: white;
     border: none;
     padding: 1.2rem 3rem;
     border-radius: 50px;
     font-size: 1.2rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: var(--shadow-lg);
     text-transform: uppercase;
     letter-spacing: 1px;
     margin-top: 1rem;
 }

 .start-button:hover {
     transform: translateY(-3px);
     box-shadow: var(--shadow-xl);
 }

 /* Test Container */
 .test-container {
     display: none;
     animation: slideInUp 0.5s ease-out;
 }

 .test-container.active {
     display: block;
 }

 /* Progress Bar */
 .progress-container {
     background: rgba(255, 255, 255, 0.1);
     backdrop-filter: blur(10px);
     border-radius: 15px;
     padding: 1.5rem;
     margin-bottom: 2rem;
     border: 1px solid rgba(255, 255, 255, 0.2);
 }

 .progress-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 1rem;
 }

 .progress-text {
     color: white;
     font-weight: 600;
 }

 .progress-timer {
     color: #fbbf24;
     font-weight: 700;
     font-size: 1.1rem;
 }

 .progress-bar {
     width: 100%;
     height: 8px;
     background: rgba(255, 255, 255, 0.2);
     border-radius: 4px;
     overflow: hidden;
 }

 .progress-fill {
     height: 100%;
     background: linear-gradient(90deg, var(--success-green), #fbbf24, var(--accent-red));
     border-radius: 4px;
     transition: width 0.5s ease;
     width: 0%;
 }

 /* Question Card */
 .question-card {
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(20px);
     border-radius: 20px;
     padding: 2.5rem;
     box-shadow: var(--shadow-xl);
     border: 1px solid rgba(255, 255, 255, 0.3);
     margin-bottom: 2rem;
     min-height: 400px;
     display: flex;
     flex-direction: column;
 }

 .question-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     margin-bottom: 2rem;
 }

 .question-number {
     background: var(--secondary-color);
     color: white;
     width: 40px;
     height: 40px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 700;
     margin-right: 1rem;
 }

 .question-level {
     background: rgba(251, 191, 36, 0.2);
     color: #d97706;
     padding: 0.5rem 1rem;
     border-radius: 20px;
     font-size: 0.8rem;
     font-weight: 600;
     text-transform: uppercase;
     margin-left: auto;
 }

 .question-text {
     font-size: 1.3rem;
     font-weight: 600;
     color: var(--text-dark);
     margin-bottom: 2rem;
     line-height: 1.6;
     flex-grow: 1;
 }

 .question-audio {
     display: flex;
     align-items: center;
     justify-content: center;
     margin: 1rem 0;
 }

 .audio-button {
     background: var(--secondary-color);
     color: white;
     border: none;
     width: 60px;
     height: 60px;
     border-radius: 50%;
     cursor: pointer;
     font-size: 1.5rem;
     transition: all 0.3s ease;
     box-shadow: var(--shadow-md);
 }

 .audio-button:hover {
     transform: scale(1.1);
     box-shadow: var(--shadow-lg);
 }

 .audio-button.playing {
     background: var(--accent-red);
     animation: pulse 1s infinite;
 }

 @keyframes pulse {

     0%,
     100% {
         transform: scale(1);
     }

     50% {
         transform: scale(1.05);
     }
 }

 /* Answer Options */
 .answer-options {
     display: grid;
     gap: 1rem;
 }

 .answer-option {
     background: white;
     border: 2px solid #e5e7eb;
     border-radius: 15px;
     padding: 1.25rem;
     cursor: pointer;
     transition: all 0.3s ease;
     display: flex;
     align-items: center;
     position: relative;
     overflow: hidden;
 }

 .answer-option::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
     transition: left 0.5s ease;
 }

 .answer-option:hover::before {
     left: 100%;
 }

 .answer-option:hover {
     border-color: var(--secondary-color);
     transform: translateX(5px);
     box-shadow: var(--shadow-md);
 }

 .answer-option.selected {
     border-color: var(--secondary-color);
     background: rgba(59, 130, 246, 0.05);
     transform: translateX(5px);
 }

 .answer-option.correct {
     border-color: var(--success-green);
     background: rgba(16, 185, 129, 0.1);
 }

 .answer-option.incorrect {
     border-color: var(--accent-red);
     background: rgba(239, 68, 68, 0.1);
 }

 .option-letter {
     background: var(--secondary-color);
     color: white;
     width: 35px;
     height: 35px;
     border-radius: 50%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-weight: 600;
     margin-right: 1rem;
     flex-shrink: 0;
 }

 .answer-option.selected .option-letter {
     background: var(--primary-color);
 }

 .answer-option.correct .option-letter {
     background: var(--success-green);
 }

 .answer-option.incorrect .option-letter {
     background: var(--accent-red);
 }

 .option-text {
     flex: 1;
     font-weight: 500;
     color: var(--text-dark);
 }

 .option-icon {
     opacity: 0;
     transition: opacity 0.3s ease;
     margin-left: 1rem;
 }

 .answer-option.correct .option-icon.correct,
 .answer-option.incorrect .option-icon.incorrect {
     opacity: 1;
 }

 /* Navigation Buttons */
 .navigation-buttons {
     display: flex;
     justify-content: space-between;
     gap: 1rem;
     margin-top: 2rem;
 }

 .nav-button {
     padding: 1rem 2rem;
     border: none;
     border-radius: 12px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     font-size: 1rem;
 }

 .nav-button.secondary {
     background: rgba(107, 114, 128, 0.1);
     color: var(--text-light);
     border: 2px solid #e5e7eb;
 }

 .nav-button.secondary:hover {
     background: rgba(107, 114, 128, 0.2);
     border-color: var(--text-light);
 }

 .nav-button.primary {
     background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
     color: white;
     box-shadow: var(--shadow-md);
 }

 .nav-button.primary:hover {
     transform: translateY(-2px);
     box-shadow: var(--shadow-lg);
 }

 .nav-button:disabled {
     opacity: 0.5;
     cursor: not-allowed;
     transform: none !important;
 }

 /* Lead Form Screen */
 .lead-form-screen {
     display: none;
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(20px);
     border-radius: 20px;
     padding: 2.5rem;
     box-shadow: var(--shadow-xl);
     border: 1px solid rgba(255, 255, 255, 0.3);
     animation: slideInUp 0.5s ease-out;
     margin-bottom: 2rem;
 }

 .lead-form-screen.active {
     display: block;
 }

 .form-header {
     text-align: center;
     margin-bottom: 2rem;
 }

 .form-icon {
     font-size: 2.5rem;
     color: var(--secondary-color);
     margin-bottom: 1rem;
 }

 .form-title {
     font-size: 1.8rem;
     font-weight: 700;
     color: var(--text-dark);
     margin-bottom: 0.5rem;
 }

 .form-subtitle {
     color: var(--text-light);
     font-size: 1rem;
     line-height: 1.6;
 }

 .lead-form {
     display: grid;
     gap: 1.5rem;
 }

 .form-row {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1rem;
 }

 .form-group {
     position: relative;
 }

 .form-label {
     display: block;
     font-size: 0.9rem;
     font-weight: 600;
     color: var(--text-dark);
     margin-bottom: 0.5rem;
 }

 .form-input {
     width: 100%;
     padding: 1rem 1.25rem;
     font-size: 0.95rem;
     border: 2px solid #e5e7eb;
     border-radius: 12px;
     background: white;
     color: var(--text-dark);
     transition: all 0.3s ease;
     font-family: inherit;
 }

 .form-input:focus {
     outline: none;
     border-color: var(--secondary-color);
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
     transform: translateY(-2px);
 }

 .form-input:valid {
     border-color: var(--success-green);
 }

 .form-input::placeholder {
     color: var(--text-light);
     font-style: italic;
 }

 .form-input.invalid {
     border-color: var(--accent-red);
     animation: shake 0.5s ease-in-out;
 }

 .input-icon {
     position: absolute;
     right: 1.5rem;
     top: 50%;
     transform: translateY(-50%);
     color: var(--text-light);
     pointer-events: none;
     transition: all 0.3s ease;
 }

 .form-input:focus+.input-icon {
     color: var(--secondary-color);
     transform: translateY(-50%) scale(1.1);
 }

 .validation-icon {
     position: absolute;
     right: 3rem;
     top: 50%;
     transform: translateY(-50%);
     font-size: 1rem;
     opacity: 0;
     transition: all 0.3s ease;
 }

 .validation-icon.valid {
     color: var(--success-green);
     opacity: 1;
 }

 .validation-icon.invalid {
     color: var(--accent-red);
     opacity: 1;
 }

 .error-message {
     color: var(--accent-red);
     font-size: 0.875rem;
     margin-top: 0.5rem;
     opacity: 0;
     transform: translateY(-10px);
     transition: all 0.3s ease;
 }

 .error-message.show {
     opacity: 1;
     transform: translateY(0);
 }

 .privacy-notice {
     background: rgba(16, 185, 129, 0.1);
     border: 1px solid rgba(16, 185, 129, 0.2);
     border-radius: 10px;
     padding: 1rem;
     margin: 1.5rem 0;
     display: flex;
     align-items: center;
     gap: 0.75rem;
 }

 .privacy-notice i {
     color: var(--success-green);
     font-size: 1.2rem;
 }

 .privacy-text {
     color: var(--success-green);
     font-size: 0.9rem;
     font-weight: 500;
 }

 .submit-form-button {
     width: 100%;
     background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
     color: white;
     border: none;
     padding: 1.2rem 2rem;
     border-radius: 12px;
     font-size: 1.1rem;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: var(--shadow-lg);
     text-transform: uppercase;
     letter-spacing: 1px;
     position: relative;
     overflow: hidden;
     margin-top: 1rem;
 }

 .submit-form-button::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
     transition: left 0.3s ease;
     z-index: -1;
 }

 .submit-form-button:hover::before {
     left: 0;
 }

 .submit-form-button:hover {
     transform: translateY(-3px);
     box-shadow: var(--shadow-xl);
 }

 .submit-form-button:disabled {
     opacity: 0.7;
     cursor: not-allowed;
     transform: none !important;
 }

 .submit-form-button.loading {
     pointer-events: none;
 }

 .submit-form-button.loading::after {
     content: '';
     position: absolute;
     top: 50%;
     right: 15px;
     width: 20px;
     height: 20px;
     margin: -10px 0 0 -10px;
     border: 2px solid transparent;
     border-top-color: white;
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }

 .motivation-message {
     background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
     border-radius: 15px;
     padding: 1.5rem;
     margin-bottom: 2rem;
     text-align: center;
     border: 1px solid rgba(59, 130, 246, 0.2);
 }

 .motivation-icon {
     font-size: 2rem;
     margin-bottom: 0.5rem;
 }

 .motivation-text {
     color: var(--text-dark);
     font-weight: 600;
     line-height: 1.6;
 }

 /* Results Screen */
 .results-screen {
     display: none;
     background: rgba(255, 255, 255, 0.95);
     backdrop-filter: blur(20px);
     border-radius: 20px;
     padding: 2.5rem;
     box-shadow: var(--shadow-xl);
     border: 1px solid rgba(255, 255, 255, 0.3);
     text-align: center;
     animation: slideInUp 0.5s ease-out;
     margin-bottom: 2rem;
 }

 .results-screen.active {
     display: block;
 }

 .results-icon {
     font-size: 4rem;
     margin-bottom: 1.5rem;
 }

 .results-title {
     font-size: 2rem;
     font-weight: 800;
     margin-bottom: 1rem;
 }

 .results-level {
     font-size: 3rem;
     font-weight: 900;
     margin-bottom: 0.5rem;
 }

 .results-description {
     font-size: 1.1rem;
     color: var(--text-light);
     margin-bottom: 2rem;
     line-height: 1.6;
 }

 .results-stats {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
     gap: 1.5rem;
     margin: 2rem 0;
 }

 .stat-card {
     background: rgba(59, 130, 246, 0.1);
     padding: 1.5rem;
     border-radius: 15px;
     border: 1px solid rgba(59, 130, 246, 0.2);
 }

 .stat-value {
     font-size: 2rem;
     font-weight: 800;
     color: var(--secondary-color);
     display: block;
 }

 .stat-label {
     font-size: 0.9rem;
     color: var(--text-light);
     margin-top: 0.5rem;
 }

 .action-buttons {
     display: flex;
     gap: 1rem;
     justify-content: center;
     flex-wrap: wrap;
 }

 .action-button {
     padding: 1rem 2rem;
     border: none;
     border-radius: 12px;
     font-weight: 600;
     cursor: pointer;
     transition: all 0.3s ease;
     font-size: 1rem;
     text-decoration: none;
     display: inline-block;
 }

 .action-button.primary {
     background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
     color: white;
     box-shadow: var(--shadow-md);
 }

 .action-button.secondary {
     background: rgba(59, 130, 246, 0.1);
     color: var(--secondary-color);
     border: 2px solid var(--secondary-color);
 }

 .action-button:hover {
     transform: translateY(-2px);
     box-shadow: var(--shadow-lg);
 }

 /* Responsive Design */
 @media (max-width: 768px) {
     .page-title {
         font-size: 1.8rem;
     }

     .main-container {
         padding: 0 1rem;
     }

     .welcome-screen,
     .question-card,
     .lead-form-screen,
     .results-screen {
         padding: 2rem;
     }

     .test-info {
         grid-template-columns: 1fr;
         gap: 1rem;
     }

     .question-text {
         font-size: 1.1rem;
     }

     .answer-option {
         padding: 1rem;
     }

     .navigation-buttons {
         flex-direction: column;
     }

     .nav-button {
         width: 100%;
     }

     .action-buttons {
         flex-direction: column;
     }

     .action-button {
         width: 100%;
     }

     .form-row {
         grid-template-columns: 1fr;
     }
 }

 @media (max-width: 480px) {
     .brand-name {
         font-size: 1.4rem;
     }

     .page-title {
         font-size: 1.6rem;
     }

     .welcome-screen,
     .question-card,
     .lead-form-screen,
     .results-screen {
         padding: 1.5rem;
     }

     .question-card {
         min-height: 350px;
     }

     .results-stats {
         grid-template-columns: 1fr;
         gap: 1rem;
     }
 }

 /* Animations */
 @keyframes slideInDown {
     from {
         opacity: 0;
         transform: translateY(-30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

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

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 @keyframes shake {

     0%,
     100% {
         transform: translateX(0);
     }

     25% {
         transform: translateX(-5px);
     }

     75% {
         transform: translateX(5px);
     }
 }

 @keyframes spin {
     to {
         transform: rotate(360deg);
     }
 }

 /* Loading States */
 .loading {
     opacity: 0.6;
     pointer-events: none;
 }

 .loading::after {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     width: 30px;
     height: 30px;
     margin: -15px 0 0 -15px;
     border: 3px solid transparent;
     border-top-color: var(--secondary-color);
     border-radius: 50%;
     animation: spin 1s linear infinite;
 }



 /* erreur test niveau */

 /* États de chargement et d'erreur pour le test */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-state p {
    color: #6b7280;
    margin: 0;
    font-size: 0.9rem;
}

.error-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

.error-state i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-state p {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.retry-button {
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.retry-button:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

/* Animation de secousse pour les erreurs */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

/* Message d'erreur pour le formulaire */
.form-error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.9rem;
    text-align: center;
    animation: slideInDown 0.3s ease-out;
}

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

/* États de chargement pour les boutons */
.submit-form-button.loading {
    position: relative;
    pointer-events: none;
}

.submit-form-button.loading::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.submit-form-button.loading #buttonText {
    opacity: 0.7;
}

/* Améliorations pour les options de réponse */
.answer-option {
    transition: all 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
}

.answer-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.answer-option.selected {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.answer-option.selected .option-letter {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Animations d'entrée pour les questions */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Barre de progression améliorée */
.progress-fill {
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .loading-state,
    .error-state {
        padding: 1.5rem 1rem;
    }
    
    .loading-spinner {
        width: 32px;
        height: 32px;
    }
    
    .error-state i {
        font-size: 2rem;
    }
    
    .retry-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Mode sombre (optionnel) */
@media (prefers-color-scheme: dark) {
    .loading-state p {
        color: #9ca3af;
    }
    
    .error-state {
        background: #1f2937;
        border-color: #374151;
    }
    
    .error-state p {
        color: #f87171;
    }
    
    .form-error-message {
        background: #1f2937;
        border-color: #374151;
        color: #f87171;
    }
}