:root {
    /* Color Palette from Design System */
    --primary-blue: #3B82F6;
    --indigo-accent: #6366F1;
    --bg-gradient-start: #F0F9FF;
    --bg-gradient-end: #E0E7FF;
    --surface-white: rgba(255, 255, 255, 0.9);
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border-color: #BFDBFE;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 { color: var(--text-main); font-weight: 700; }
h1 { font-size: 2.5rem; letter-spacing: -0.02em; background: linear-gradient(to right, var(--primary-blue), var(--indigo-accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 1rem;}
h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
p { margin-bottom: 1rem; color: var(--text-main); }

/* Layout & Containers */
.container { max-width: 1000px; margin: 0 auto; padding: 2rem; }
.section { padding: 4rem 1rem; min-height: 80vh; display: flex; flex-direction: column; align-items: center; }

/* Navbar */
.navbar {
    position: sticky; top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    padding: 1rem 0;
}
.nav-container {
    max-width: 1000px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 1rem;
}
.logo { font-weight: 800; font-size: 1.2rem; }
.accent-text { color: var(--primary-blue); }
.nav-links button {
    background: none; border: none; cursor: pointer;
    font-size: 1rem; margin-left: 1.5rem; color: var(--text-muted);
    transition: color 0.3s;
}
.nav-links button:hover { color: var(--primary-blue); }
.nav-links .btn-highlight { color: var(--indigo-accent); font-weight: 600; }

/* Components: Cards */
.card {
    background: var(--surface-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 1.5rem;
    width: 100%;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(to right, var(--primary-blue), var(--indigo-accent));
    color: white;
}
.btn-secondary {
    background: white;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
}
.btn:hover { transform: scale(1.05); }

/* Quiz Specifics */
.quiz-options { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.option-label {
    display: flex; align-items: center;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255,255,255,0.5);
}
.option-label:hover { background: white; border-color: var(--primary-blue); }
.option-label input { margin-right: 1rem; }

/* Form */
.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; }
.form-control {
    width: 100%; padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}
textarea.form-control { resize: vertical; min-height: 100px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplified for code brevity - implies mobile menu needed */
    h1 { font-size: 2rem; }
}

/* --- Styles spécifiques Curriculum --- */

.curriculum-intro {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
}

.project-highlight {
    background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
    border-left: 5px solid var(--indigo-accent);
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-main);
    box-shadow: var(--shadow-soft);
}

.module-card {
    border-left: 5px solid transparent; /* Pour l'état hover */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Couleur de bordure par niveau (optionnel, pour le style) */
.module-card:nth-child(1) { border-left-color: #4ADE80; } /* Vert - Débutant */
.module-card:nth-child(2) { border-left-color: #60A5FA; } /* Bleu - Appliqué */
.module-card:nth-child(3) { border-left-color: #F59E0B; } /* Orange - Core */
.module-card:nth-child(4) { border-left-color: #EF4444; } /* Rouge - Avancé */
.module-card:nth-child(5) { border-left-color: #8B5CF6; } /* Violet - Expert */

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.module-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
}

.meta-tag {
    background: rgba(0,0,0,0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tool-badge {
    font-size: 0.75rem;
    background-color: #EFF6FF;
    color: var(--primary-blue);
    border: 1px solid var(--border-color);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.skills-list {
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.skills-list strong { color: var(--text-main); }

/* Accordéon Détails */
.module-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    display: none; /* Caché par défaut */
}
.module-details.active { display: block; animation: fadeIn 0.3s; }

.detail-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}
.detail-item:last-child { border-bottom: none; }

.btn-toggle-details {
    background: none;
    border: none;
    color: var(--indigo-accent);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-toggle-details:hover { text-decoration: underline; }

@keyframes fadeIn { from { opacity:0; transform:translateY(-5px);} to { opacity:1; transform:translateY(0);} }
