/* Page de questions */
#question-page {
    background: #EEFBFF;
}

.question-header {
    background: #686EC2;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-stats {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.score-container, .lives-container {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 3px solid rgba(41, 26, 74, 0.3);
}

.score-container {
    background: #E3E37B;
}

.lives-container {
    background: #DA7E7E;
}

.star-icon, .heart-icon {
    font-size: 18px;
}

.score-container span, .lives-container span {
    color: white;
    font-weight: bold;
    font-size: 18px;
}

.add-life-btn {
    background: #4CAF50;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

/* Timer */
.timer-container {
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    width: 100px;
}

.timer-bar {
    width: 100px;
    height: 45px;
    background: #F4F6F8;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.timer-progress {
    height: 100%;
    background: linear-gradient(90deg, #87CEEB, #4169E1);
    transition: width 1s linear;
}

#timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 16px;
    z-index: 10;
}

.timer-icon {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
}

/* Contenu principal */
.question-main {
    flex: 1;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.question-content {
    max-width: 800px;
    width: 100%;
}

.question-image {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.question-text {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.option-btn {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e0e0e0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.option-btn:hover {
    background: #f5f5f5;
    transform: translateX(5px);
}

.option-btn.selected {
    background: #E3F2FD;
    border-color: #2196F3;
}

.option-btn.correct {
    background: #C8E6C9;
    border-color: #4CAF50;
}

.option-btn.wrong {
    background: #FFCDD2;
    border-color: #f44336;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Loading */
.loading {
    text-align: center;
    padding: 50px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #686EC2;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .header-stats {
        gap: 10px;
    }
    
    .timer-container {
        width: 80px;
    }
    
    .timer-bar {
        width: 80px;
    }
    
    .question-image {
        height: 200px;
    }
    
    .question-text {
        font-size: 16px;
        padding: 15px;
    }
    
    .option-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
}
