* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Page d'accueil - Split screen */
.split-screen {
    display: flex;
    min-height: 100vh;
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-panel {
    flex: 1;
    background: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.logo h2 {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.presentation h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.info-cards {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.card {
    background: rgba(255,255,255,0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    flex: 1;
}

.card .icon {
    font-size: 32px;
    display: block;
    margin-bottom: 10px;
}

.module-info ul {
    list-style: none;
    margin-top: 15px;
}

.module-info li {
    margin: 10px 0;
}

/* Formulaires */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: #f0f0f0;
    cursor: pointer;
    font-size: 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #3498db;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.btn, .btn-primary {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-outline {
    background: transparent;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-small {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #0a0;
    border: 1px solid #cfc;
}

.demo-info {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    font-size: 12px;
}

/* Dashboard */
.navbar {
    background: #2c3e50;
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-logout {
    background: #e74c3c;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 15px;
}

.dashboard-container {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 250px;
    background: #ecf0f1;
    padding: 20px;
}

.nav-link {
    display: block;
    padding: 12px;
    margin: 5px 0;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover, .nav-link.active {
    background: #3498db;
    color: white;
}

.main-content {
    flex: 1;
    padding: 30px;
    background: #f5f6fa;
}

.stats-grid, .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card, .resource-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: #27ae60;
    color: white;
    text-align: center;
    font-size: 12px;
    padding: 5px;
    border-radius: 10px;
}

.score {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Évaluation */
.evaluation-container {
    max-width: 800px;
    margin: 40px auto;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.progress-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.progress-mini-bar {
    height: 5px;
    background: #ecf0f1;
    border-radius: 5px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-mini-fill {
    height: 100%;
    background: #27ae60;
    transition: width 0.3s;
}

.question-card {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
}

.question-type {
    font-size: 12px;
    color: #3498db;
    margin-bottom: 10px;
}

.question-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.option:hover {
    background: #e3f2fd;
    border-color: #3498db;
}

.option input {
    margin: 0;
}

.open-question textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.action-buttons {
    text-align: right;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }
    .left-panel, .right-panel {
        padding: 30px;
    }
    .dashboard-container {
        flex-direction: column;
    }
    .sidebar {
        width: 100%;
    }
}