:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.chatbot-animation {
    animation: slideInFromBottom 0.3s ease-out forwards;
}

/* Hover effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-icon {
    transition: transform 0.6s ease;
}

/* Form messages */
.form-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

/* Quiz specific */
.quiz-answer.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Chatbot messages */
.chatbot-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease-out;
}

.message-bubble.user {
    background-color: #e2e8f0; /* Tailwind gray-200 */
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.message-bubble.chatbot {
    background-color: #bfdbfe; /* Tailwind blue-200 */
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Custom Scrollbar - WebKit only for compatibility */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9; /* Tailwind gray-100 */
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #94a3b8; /* Tailwind gray-400 */
    border-radius: 10px;
    border: 2px solid #f1f5f9;
}

/* Games & Tests Section */
#games-tests-section .bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

#games-tests-section .bg-opacity-10:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Badge notifications */
.badge-notification {
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}
/* Styles pour la navigation admin */
.admin-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.admin-badge:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* Animation pour le menu mobile */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Style pour les liens actifs */
.active {
    color: #2563eb;
    font-weight: 600;
}

/* Responsive design amélioré */
@media (max-width: 768px) {
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
    }
}
