/**
 * TSSR Révisions - Styles personnalisés
 * Template Bootstrap pour révisions TSSR
 */

/* Variables CSS personnalisées */
:root {
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.3s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Classes utilitaires */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.hover-lift {
    transition: transform var(--transition-speed);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Amélioration des cartes de cours */
.course-card {
    position: relative;
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.course-card:hover::before {
    opacity: 1;
}

/* Badge de progression */
.progress-badge {
    position: relative;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Boutons avec gradient */
.btn-gradient {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border: none;
    color: white;
    transition: all var(--transition-speed);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: white;
}

/* Style pour les codes inline */
code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e83e8c;
}

/* Style pour les alertes */
.alert-custom {
    border-left: 4px solid;
    border-radius: 8px;
    padding: 15px 20px;
}

/* Style pour les breadcrumbs */
.breadcrumb {
    background: white;
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

/* Quiz styles */
.quiz-option {
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-bottom: 10px;
}

.quiz-option:hover {
    border-color: var(--gradient-start);
    background: rgba(102, 126, 234, 0.05);
}

.quiz-option.selected {
    border-color: var(--gradient-start);
    background: rgba(102, 126, 234, 0.1);
}

.quiz-option.correct {
    border-color: #198754;
    background: rgba(25, 135, 84, 0.1);
}

.quiz-option.incorrect {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }

    .content-card {
        padding: 20px;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Amélioration du footer */
footer {
    backdrop-filter: blur(10px);
}

/* Loading spinner */
.spinner-custom {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: var(--gradient-start);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-end);
}
