:root {
    --primary-color: #2c6eb5;
    --secondary-color: #50b848;
    --accent-color: #d9534f;
    --light-bg: #f8f9fa;
    --dark-text: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.navbar {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text);
    margin: 0 10px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.hero-section {
    background: linear-gradient(rgba(44, 110, 181, 0.8), rgba(44, 110, 181, 0.9)), url('https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.about-hero, .quiz-hero {
    background: linear-gradient(rgba(44, 110, 181, 0.8), rgba(44, 110, 181, 0.9)), url('https://images.unsplash.com/photo-1532938911079-1b06ac7ceec7?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
}

.quiz-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.quiz-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.badge-free {
    background-color: var(--secondary-color);
}

.badge-premium {
    background-color: gold;
    color: #333;
}

.footer {
    background-color: #2c3e50;
    color: white;
    padding: 40px 0;
}

.counter {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.quiz-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
}

.timer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    background: #ffeaea;
    padding: 10px 15px;
    border-radius: 50px;
    display: inline-block;
}

.question {
    font-weight: 600;
    margin-bottom: 20px;
}

.option {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.option.selected {
    background-color: #e3f2fd;
    border-color: var(--primary-color);
}

.results-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-top: 30px;
}

.correct {
    color: var(--secondary-color);
    font-weight: bold;
}

.incorrect {
    color: var(--accent-color);
}

.justification {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-style: italic;
}

.protection-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.protection-alert {
    background: #e74c3c;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.protection-alert h3 {
    margin-top: 0;
    font-size: 24px;
}

.protection-alert p {
    margin-bottom: 0;
    font-size: 18px;
}

.blur-effect {
    animation: blurAnimation 0.5s;
}

@keyframes blurAnimation {
    0% { filter: blur(0); }
    50% { filter: blur(5px); }
    100% { filter: blur(0); }
}

.sensitive-content {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Styles pour le visualiseur de QCM */
.qcm-viewer-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}

.qcm-viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
}

.qcm-viewer-header h2 {
    margin: 0;
    color: #2c3e50;
}

.qcm-viewer-close {
    background: #e74c3c;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.qcm-question {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.qcm-question-text {
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 18px;
}

.qcm-options {
    list-style: none;
    padding: 0;
}

.qcm-option {
    padding: 12px 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.qcm-correct {
    background: #d4edda;
    border-color: #c3e6cb;
}

.qcm-watermark {
    position: fixed;
    bottom: 20px;
    right: 20px;
    opacity: 0.1;
    font-size: 60px;
    font-weight: bold;
    color: #e74c3c;
    pointer-events: none;
    z-index: 1001;
    transform: rotate(-30deg);
    user-select: none;
}

/* Styles pour le menu déroulant */
.dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

/* Styles pour le menu déroulant */
.dropdown-menu {
    position: absolute;
    right: 0;
    left: auto;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.dropdown-menu.show {
    display: block;
}

/* Ajustements pour mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
    }
    
    #auth-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    #auth-buttons .btn {
        width: 100%;
        margin: 5px 0;
    }
}
/* Ajustements pour mobile */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        margin-top: 0.5rem;
    }
}

.password-strength {
            height: 5px;
            margin-top: 5px;
            border-radius: 5px;
            transition: all 0.3s;
        }
        
        .loader {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spin 1s ease-in-out infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .password-toggle {
            cursor: pointer;
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: #6c757d;
        }

/* Styles spécifiques pour mobile */
@media (max-width: 768px) {
    .qcm-viewer-container {
        padding: 15px;
    }
    
    .qcm-viewer-header {
        flex-direction: column;
        text-align: center;
    }
    
    .qcm-viewer-close {
        margin-top: 15px;
    }
    
    .protection-alert {
        padding: 20px;
    }
    
    .protection-alert h3 {
        font-size: 20px;
    }
    
    .protection-alert p {
        font-size: 16px;
    }
    
    .qcm-watermark {
        font-size: 40px;
        bottom: 10px;
        right: 10px;
    }
}
/* Styles pour le loader */
.quiz-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
}

.quiz-loader .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
}
.option {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 5px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
}

.option:hover {
    background-color: #f5f5f5;
}

.option input[type="checkbox"] {
    margin-right: 10px;
}
* {
            font-family: 'Poppins', sans-serif;
        }
/* Section Abonnement améliorée */
        .pricing-section {
            padding: 5rem 0;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            position: relative;
            overflow: hidden;
        }
        
        .pricing-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" opacity="0.05"><path d="M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z" fill="%231a4b8c"/></svg>');
        }
        
        .section-title {
            position: relative;
            margin-bottom: 1rem;
            font-weight: 700;
            color: var(--primary);
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--gradient-secondary);
            border-radius: 2px;
        }
        
        .section-subtitle {
            color: #6c757d;
            margin-bottom: 3rem;
        }
        
        /* Cartes de prix améliorées */
        .pricing-card {
            border: none;
            border-radius: 20px;
            overflow: hidden;
            transition: all 0.4s ease;
            height: 100%;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            position: relative;
            background: white;
        }
        
        .pricing-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }
        
        .pricing-card.popular {
            border: 3px solid var(--secondary);
            transform: scale(1.05);
        }
        
        .pricing-card.popular:hover {
            transform: scale(1.05) translateY(-10px);
        }
        
        .popular-badge {
            position: absolute;
            top: -10px;
            right: 20px;
            background: var(--gradient-secondary);
            color: white;
            padding: 8px 20px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 600;
            z-index: 2;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }
        
        .pricing-card-header {
            background: var(--gradient-primary);
            color: white;
            padding: 2rem 1.5rem;
            text-align: center;
            position: relative;
        }
        
        .pricing-card-header h3 {
            margin: 0;
            font-weight: 700;
            font-size: 1.5rem;
        }
        
        .pricing-card-body {
            padding: 2rem 1.5rem;
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .price {
            text-align: center;
            margin-bottom: 1.5rem;
        }
        
        .price-amount {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary);
            line-height: 1;
        }
        
        .price-currency {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--primary);
        }
        
        .price-period {
            color: #6c757d;
            font-size: 1rem;
        }
        
        .pricing-features {
            flex-grow: 1;
            margin-bottom: 2rem;
        }
        
        .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }
        
        .feature-icon {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #e8f4ff;
            color: var(--secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-size: 0.8rem;
        }
        
        .savings-badge {
            display: inline-block;
            background: #e8f5e9;
            color: var(--success);
            padding: 0.3rem 0.8rem;
            border-radius: 15px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-top: 0.5rem;
        }
        
        .subscribe-btn {
            background: var(--gradient-primary);
            border: none;
            color: white;
            padding: 1rem 2rem;
            border-radius: 50px;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            width: 100%;
            margin-top: auto;
        }
        
        .subscribe-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
            background: var(--gradient-secondary);
        }
        
        /* Animation d'apparition */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .animate-fadeInUp {
            animation: fadeInUp 0.6s ease forwards;
        }
        
        .delay-100 {
            animation-delay: 0.1s;
        }
        
        .delay-200 {
            animation-delay: 0.2s;
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .pricing-card.popular {
                transform: scale(1);
            }
            
            .pricing-card.popular:hover {
                transform: translateY(-10px);
            }
            
            .price-amount {
                font-size: 2.5rem;
            }
        }
        
        /* Garantie de satisfaction */
        .satisfaction-guarantee {
            text-align: center;
            margin-top: 3rem;
            padding: 2rem;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        }
        
        .guarantee-icon {
            font-size: 3rem;
            color: var(--success);
            margin-bottom: 1rem;
        }
