/* Styles personnalisés pour le quiz front-end */

/* Styles de base */
.qcm-quiz-container {
    font-family: 'Poppins', sans-serif;
}

/* Styles pour les options de réponse */
.qcm-option-button {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
}

.qcm-option-button:hover:not(:disabled) {
    border-color: #0f4c81;
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(15, 76, 129, 0.1);
}

.qcm-option-selected {
    border-color: #0f4c81 !important;
    background-color: #f0f9ff !important;
    border-left-width: 6px !important;
    border-left-color: #0f4c81 !important;
}

/* Barre de progression */
.qcm-progress-bar-fill {
    background: linear-gradient(90deg, #0f4c81 0%, #3b82f6 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbar personnalisée */
.qcm-custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.qcm-custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.qcm-custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Désactiver la sélection */
.qcm-no-select {
    user-select: none;
    -webkit-user-select: none;
}

/* Effet Glassmorphism */
.qcm-glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qcm-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
    opacity: 0;
}

/* Styles pour le timer */
.qcm-timer-container {
    background-color: #1e293b;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.qcm-timer-container.warning {
    background-color: #dc2626;
}

.qcm-timer-pulse {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #ef4444;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Styles pour les écrans */
.qcm-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 600px;
}

.qcm-screen.hidden {
    display: none;
}

/* Styles pour les modales */
.qcm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.qcm-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s;
}

.qcm-modal-content {
    position: relative;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 28rem;
    width: 100%;
    padding: 1.5rem;
    transform: scale(1);
    transition: all 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .qcm-screen {
        padding: 1rem;
        min-height: 400px;
    }
    
    .qcm-modal-content {
        margin: 1rem;
    }
}
