/* Quiz Styles - Design moderne et minimaliste */

/* Forcer le scroll sur la page du quiz */
body.game-body {
    overflow-y: auto !important;
    height: auto !important;
    background: #0a0a0a;
}

.quiz-main {
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh;
    background: #0a0a0a;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    min-height: auto;
    background: transparent;
    overflow-y: visible;
}

/* Progress Bar - Design minimaliste */
.quiz-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 1rem 0;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 1.5rem;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
    overflow: hidden;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0%); }
}

.progress-text {
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
}

/* Score - Design épuré */
.quiz-score {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.score-item {
    text-align: center;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.score-item:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

.score-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.25rem;
}

.score-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    font-family: 'Space Grotesk', sans-serif;
}

/* Question - Design minimaliste */
.quiz-question {
    text-align: center;
    margin-bottom: 3rem;
}

.question-image {
    width: 300px;
    height: 300px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

.question-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-text {
    font-size: 1.5rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

/* Réponses - Design moderne */
.quiz-answers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
}

.answer-option {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

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

.answer-option:hover {
    border-color: rgba(255,107,107,0.5);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(255,107,107,0.2);
    background: rgba(255,107,107,0.1);
}

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

.answer-option.correct {
    border-color: #4ade80;
    background: rgba(74,222,128,0.2);
    color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(74,222,128,0.3);
}

.answer-option.incorrect {
    border-color: #f87171;
    background: rgba(248,113,113,0.2);
    color: #ffffff;
    transform: scale(0.98);
    box-shadow: 0 20px 40px rgba(248,113,113,0.3);
}

.answer-option.disabled {
    pointer-events: none;
    opacity: 0.6;
}

.answer-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 1;
}

/* Révélation - Design moderne */
.quiz-reveal {
    text-align: center;
    margin: 3rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.quiz-reveal.show {
    opacity: 1;
    transform: translateY(0);
}

.reveal-image {
    width: 400px;
    height: 400px;
    margin: 0 auto 2rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-image:hover {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.reveal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.reveal-context {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
    font-style: italic;
    font-family: 'Space Grotesk', sans-serif;
}

/* Actions - Design épuré */
.quiz-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    box-shadow: 0 8px 25px rgba(255,107,107,0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,107,107,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.1);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,255,255,0.1);
}

/* Résultats - Design moderne */
.quiz-results {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    color: white;
    margin: 3rem 0;
    box-shadow: 0 25px 50px rgba(102,126,234,0.3);
    position: relative;
    overflow: hidden;
}

.quiz-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

.results-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 1;
}

.results-score {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #ffd700;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 1;
}

.results-message {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 1;
}

/* Loading - Design minimaliste */
.quiz-loading {
    text-align: center;
    padding: 4rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #ff6b6b;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 1rem;
        min-height: auto;
    }
    
    .question-image {
        width: 250px;
        height: 250px;
    }
    
    .reveal-image {
        width: 300px;
        height: 300px;
    }
    
    .quiz-answers {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .quiz-score {
        flex-direction: column;
        gap: 1rem;
    }
    
    .quiz-progress {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .progress-bar {
        margin: 0;
        width: 100%;
    }
    
    .answer-option {
        min-height: 80px;
        padding: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .results-title {
        font-size: 2rem;
    }
    
    .results-score {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 0.75rem;
    }
    
    .question-image {
        width: 200px;
        height: 200px;
    }
    
    .reveal-image {
        width: 250px;
        height: 250px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .answer-text {
        font-size: 0.9rem;
    }
}

/* Animations avancées */
.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.slide-in {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from { 
        transform: translateX(-100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

.bounce-in {
    animation: bounceIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes bounceIn {
    0% { 
        transform: scale(0.3); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1.05); 
    }
    70% { 
        transform: scale(0.95); 
    }
    100% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.scale-in {
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

/* Effets de particules pour les réponses correctes */
@keyframes sparkle {
    0%, 100% { 
        transform: scale(0) rotate(0deg); 
        opacity: 0; 
    }
    50% { 
        transform: scale(1) rotate(180deg); 
        opacity: 1; 
    }
}

.answer-option.correct::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    animation: sparkle 0.6s ease-in-out;
}
