.quiz-lb-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.quiz-lb-intro h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 15px;
    text-align: center;
}

.quiz-lb-intro p {
    color: #7f8c8d;
    font-size: 16px;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.6;
}

/* Texte d'introduction */
.quiz-lb-intro-text {
    padding: 20px 0;
    margin-bottom: 25px;
    font-size: 15px;
    line-height: 1.8;
    color: #495057;
}

.quiz-lb-intro-text p {
    text-align: left;
    margin-bottom: 12px;
    color: inherit;
}

.quiz-lb-intro-text p:last-child {
    margin-bottom: 0;
}

.quiz-lb-intro-text ul,
.quiz-lb-intro-text ol {
    margin: 15px 0;
    padding-left: 25px;
    text-align: left;
}

.quiz-lb-intro-text li {
    margin-bottom: 8px;
}

.quiz-lb-intro-text b,
.quiz-lb-intro-text strong {
    color: #2c3e50;
    font-weight: 700;
}

.quiz-lb-intro-text i,
.quiz-lb-intro-text em {
    font-style: italic;
}

.quiz-lb-intro-text u {
    text-decoration: underline;
}

.quiz-lb-intro-text s,
.quiz-lb-intro-text strike {
    text-decoration: line-through;
}

.quiz-lb-intro-text h1,
.quiz-lb-intro-text h2,
.quiz-lb-intro-text h3,
.quiz-lb-intro-text h4,
.quiz-lb-intro-text h5,
.quiz-lb-intro-text h6 {
    color: #2c3e50;
    margin: 20px 0 15px 0;
    line-height: 1.3;
    text-align: left;
}

.quiz-lb-intro-text h1 { font-size: 28px; }
.quiz-lb-intro-text h2 { font-size: 24px; }
.quiz-lb-intro-text h3 { font-size: 20px; }
.quiz-lb-intro-text h4 { font-size: 18px; }
.quiz-lb-intro-text h5 { font-size: 16px; }
.quiz-lb-intro-text h6 { font-size: 14px; }

.quiz-lb-intro-text a {
    color: #667eea;
    text-decoration: underline;
    transition: color 0.3s;
}

.quiz-lb-intro-text a:hover {
    color: #764ba2;
}

.quiz-lb-intro-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
    display: block;
}

.quiz-lb-intro-text blockquote {
    border-left: 3px solid #667eea;
    margin: 15px 0;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    font-style: italic;
    color: #555;
}

.quiz-lb-intro-text pre,
.quiz-lb-intro-text code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 14px;
}

.quiz-lb-intro-text pre {
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.quiz-lb-intro-text hr {
    border: none;
    border-top: 2px solid #dee2e6;
    margin: 20px 0;
}

.quiz-lb-intro-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.quiz-lb-intro-text th,
.quiz-lb-intro-text td {
    border: 1px solid #dee2e6;
    padding: 10px;
    text-align: left;
}

.quiz-lb-intro-text th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Box de démarrage */
.quiz-lb-start-box {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.quiz-lb-start-box h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.quiz-lb-description {
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 25px;
}

.quiz-lb-start-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.quiz-lb-start-form input {
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.quiz-lb-start-form input:focus {
    outline: none;
    border-color: #3498db;
}

.quiz-lb-resume-info {
    margin-top: 10px !important;
    font-size: 13px !important;
    color: #6c757d !important;
    background: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px;
}

.quiz-lb-btn {
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quiz-lb-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.4);
}

.quiz-lb-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quiz-lb-question {
    margin-bottom: 30px;
}

.quiz-lb-question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.quiz-lb-question-number {
    font-size: 14px;
    color: #95a5a6;
    font-weight: 600;
}

.quiz-lb-score {
    font-size: 16px;
    color: #27ae60;
    font-weight: 700;
}

.quiz-lb-question-text {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.5;
}

.quiz-lb-answers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-lb-answer {
    padding: 18px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    color: #495057;
    display: flex;
    align-items: center;
}

.quiz-lb-answer.multiple-choice {
    padding-left: 50px;
    position: relative;
}

.quiz-lb-checkbox {
    position: absolute;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.quiz-lb-instruction {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    border-left: 4px solid #667eea;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 15px;
    color: #495057;
    font-weight: 500;
}

.quiz-lb-validate-container {
    text-align: center;
}

.quiz-lb-validate-btn {
    min-width: 200px;
}

.quiz-lb-answer:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(5px);
}

.quiz-lb-answer.selected {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.quiz-lb-answer.correct {
    background: #27ae60;
    color: white;
    border-color: #27ae60;
}

.quiz-lb-answer.incorrect {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.quiz-lb-answer.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.quiz-lb-feedback {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.quiz-lb-feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.quiz-lb-feedback.incorrect {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.quiz-lb-navigation {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.quiz-lb-ranking {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.quiz-lb-ranking h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.quiz-lb-ranking-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.quiz-lb-ranking-stat {
    flex: 1;
    min-width: 150px;
}

.quiz-lb-ranking-stat-value {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
}

.quiz-lb-ranking-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

.quiz-lb-leaderboard {
    margin-top: 40px;
}

.quiz-lb-leaderboard h3 {
    font-size: 26px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.quiz-lb-final-score {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
}

.quiz-lb-final-score h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.quiz-lb-final-score-value {
    font-size: 48px;
    font-weight: 700;
    margin: 20px 0;
}

.quiz-lb-leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quiz-lb-leaderboard-table thead {
    background: #f8f9fa;
    color: #333;
}

.quiz-lb-leaderboard-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
}

.quiz-lb-leaderboard-table td {
    padding: 15px;
    border-bottom: 1px solid #ecf0f1;
}

.quiz-lb-leaderboard-table tr:last-child td {
    border-bottom: none;
}

.quiz-lb-leaderboard-table tr:hover {
    background: #f8f9fa;
}

.quiz-lb-rank {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
}

.quiz-lb-rank.top-1 {
    color: #f39c12;
}

.quiz-lb-rank.top-2 {
    color: #95a5a6;
}

.quiz-lb-rank.top-3 {
    color: #cd7f32;
}

/* Styles pour les tentatives */
.quiz-lb-attempts {
    cursor: help;
}

.quiz-lb-attempts-badge {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.quiz-lb-attempts-single {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.quiz-lb-progress {
    background: #ecf0f1;
    height: 8px;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.quiz-lb-progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .quiz-lb-container {
        padding: 20px;
        margin: 15px;
    }
    
    .quiz-lb-question-text {
        font-size: 18px;
    }
    
    .quiz-lb-answer {
        padding: 15px;
        font-size: 15px;
    }
    
    .quiz-lb-ranking-stats {
        flex-direction: column;
    }
    
    .quiz-lb-leaderboard-table {
        font-size: 14px;
    }
    
    .quiz-lb-leaderboard-table th,
    .quiz-lb-leaderboard-table td {
        padding: 10px;
    }
}

/* Styles pour le timer */
.quiz-lb-timer {
    margin-bottom: 20px;
}

.quiz-lb-timer-bar {
    height: 10px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.quiz-lb-timer-fill {
    height: 100%;
    background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%);
    transition: width 1s linear;
    border-radius: 10px;
}

.quiz-lb-timer-fill.quiz-lb-timer-warning {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.quiz-lb-timer-text {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.quiz-lb-timer-icon {
    font-size: 20px;
}

.quiz-lb-answer.timeout {
    opacity: 0.5;
}

/* Styles pour le récapitulatif */
.quiz-lb-review {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.quiz-lb-review h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.quiz-lb-review-item {
    background: #f8f9fa;
    border-left: 4px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.quiz-lb-review-item.correct {
    border-left-color: #27ae60;
    background: #d4edda;
}

.quiz-lb-review-item.incorrect {
    border-left-color: #e74c3c;
    background: #f8d7da;
}

.quiz-lb-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.quiz-lb-review-number {
    font-weight: 600;
    color: #7f8c8d;
    font-size: 14px;
}

.quiz-lb-review-status {
    font-size: 24px;
    font-weight: 700;
}

.quiz-lb-review-item.correct .quiz-lb-review-status {
    color: #27ae60;
}

.quiz-lb-review-item.incorrect .quiz-lb-review-status {
    color: #e74c3c;
}

.quiz-lb-review-question {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.quiz-lb-review-answer {
    font-size: 16px;
    color: #495057;
    margin-bottom: 5px;
}

.quiz-lb-review-correct {
    font-size: 15px;
    color: #27ae60;
    font-weight: 600;
    margin-top: 8px;
}

/* Styles pour le bouton de partage LinkedIn */
.quiz-lb-share {
    text-align: center;
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

.quiz-lb-share h3 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 20px;
}

.quiz-lb-share-linkedin {
    background: #0077b5;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    transition: background 0.3s, transform 0.2s;
}

.quiz-lb-share-linkedin:hover {
    background: #005885;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.quiz-lb-share-linkedin svg {
    margin-right: 8px;
}

/* Styles pour les pages leaderboard */
.quiz-lb-leaderboard-page {
    max-width: 1000px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.quiz-lb-leaderboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.quiz-lb-leaderboard-header h2 {
    font-size: 32px;
    color: #2c3e50;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.quiz-lb-leaderboard-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin: 0;
}

.quiz-lb-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #95a5a6;
}

.quiz-lb-no-results p {
    font-size: 18px;
    margin: 10px 0;
}

.quiz-lb-no-results p:first-child {
    font-size: 24px;
    font-weight: 600;
    color: #7f8c8d;
}
/* Explanation style */
.quiz-lb-explanation {
    margin-top: 12px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #e8f4fc 0%, #d4edfc 100%);
    border-left: 4px solid #3498db;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    color: #2c3e50;
    line-height: 1.5;
}

/* Resume Popup Styles */
.quiz-lb-resume-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: quiz-lb-fadeIn 0.3s ease;
}

@keyframes quiz-lb-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quiz-lb-resume-popup {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 35px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: quiz-lb-slideUp 0.3s ease;
}

@keyframes quiz-lb-slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.quiz-lb-resume-icon {
    font-size: 50px;
    margin-bottom: 15px;
}

.quiz-lb-resume-popup h3 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.quiz-lb-resume-subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin: 0 0 25px 0;
}

.quiz-lb-resume-stats {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 20px;
}

.quiz-lb-resume-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quiz-lb-resume-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
}

.quiz-lb-resume-stat-label {
    font-size: 12px;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quiz-lb-resume-progress-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.quiz-lb-resume-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.quiz-lb-resume-expiry {
    font-size: 13px;
    color: #e67e22;
    margin: 0 0 25px 0;
}

.quiz-lb-resume-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.quiz-lb-resume-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-lb-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quiz-lb-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.quiz-lb-btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.quiz-lb-btn-secondary:hover {
    background: #bdc3c7;
}

/* Responsive pour la popup */
@media (max-width: 480px) {
    .quiz-lb-resume-popup {
        padding: 25px 20px;
    }
    
    .quiz-lb-resume-stats {
        gap: 15px;
    }
    
    .quiz-lb-resume-stat-value {
        font-size: 20px;
    }
    
    .quiz-lb-resume-buttons {
        flex-direction: column;
    }
    
    .quiz-lb-resume-btn {
        width: 100%;
    }
}
