
/* ===== TYPOGRAPHY - COMFORTAA ===== */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&display=swap');

:root {
    --font-primary: 'Comfortaa', cursive;
    --font-secondary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}
/* Reset et variables */
:root {
    --primary-color: #2563eb;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --dark-color: #1f2937;
    --light-color: #f8fafc;
    --gray-color: #6b7280;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), #1e40af);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.brand {
    color: var(--secondary-color);
}

.tagline {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background: #d97706;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Paths Grid */
.paths-section {
    padding: 80px 0;
}

.paths-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.path-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.path-card:hover {
    transform: translateY(-5px);
}

.path-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.path-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.path-card ul {
    list-style: none;
    text-align: left;
    margin: 1.5rem 0;
}

.path-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.path-card li:before {
    content: "âœ“ ";
    color: var(--success-color);
    font-weight: bold;
}

/* Features */
.features-section {
    padding: 80px 0;
    background: #f1f5f9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .nav-links {
        display: none;
    }
}
/* Menu utilisateur */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-menu span {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 500;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
    min-width: 150px;
    z-index: 1000;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
}

.dropdown a:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.dropdown a:last-child {
    border-bottom: none;
}

.user-menu:hover .dropdown {
    display: block;
}
/* Styles pour le contenu des leÃ§ons */
.lesson-content {
    line-height: 1.7;
    color: #374151;
    font-size: 1.1rem;
}

.lesson-content h1,
.lesson-content h2,
.lesson-content h3,
.lesson-content h4 {
    color: var(--primary-color);
    margin: 2rem 0 1rem 0;
    line-height: 1.3;
}

.lesson-content h1 {
    font-size: 2.2rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.lesson-content h2 {
    font-size: 1.8rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
}

.lesson-content h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.lesson-content h4 {
    font-size: 1.3rem;
    color: var(--gray-color);
}

.lesson-content p {
    margin-bottom: 1.5rem;
    text-align: justify;
}

.lesson-content ul,
.lesson-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.lesson-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.lesson-content strong {
    color: var(--dark-color);
    font-weight: 600;
}

.lesson-content em {
    color: var(--gray-color);
    font-style: italic;
}

/* Code blocks */
.lesson-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid var(--secondary-color);
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lesson-content code {
    background: #f3f4f6;
    color: #dc2626;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.lesson-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

/* Tables */
.lesson-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.lesson-content th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.lesson-content td {
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.lesson-content tr:last-child td {
    border-bottom: none;
}

.lesson-content tr:nth-child(even) {
    background: #f8fafc;
}

/* Blocks spÃ©ciaux */
.lesson-content .tip,
.lesson-content .warning,
.lesson-content .exercise {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid;
}

.lesson-content .tip {
    background: #f0f9ff;
    border-color: var(--primary-color);
}

.lesson-content .tip::before {
    content: "ðŸ’¡ Astuce :";
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.lesson-content .warning {
    background: #fef3c7;
    border-color: #d97706;
}

.lesson-content .warning::before {
    content: "âš ï¸ Attention :";
    font-weight: bold;
    color: #92400e;
    display: block;
    margin-bottom: 0.5rem;
}

.lesson-content .exercise {
    background: #d1fae5;
    border-color: var(--success-color);
}

.lesson-content .exercise::before {
    content: "ðŸŽ¯ Exercice :";
    font-weight: bold;
    color: #065f46;
    display: block;
    margin-bottom: 0.5rem;
}

/* Images */
.lesson-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Citations */
.lesson-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: var(--gray-color);
    font-style: italic;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

/* Liens */
.lesson-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.lesson-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .lesson-content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .lesson-content h1 {
        font-size: 1.8rem;
    }
    
    .lesson-content h2 {
        font-size: 1.5rem;
    }
    
    .lesson-content h3 {
        font-size: 1.3rem;
    }
    
    .lesson-content pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .lesson-content table {
        font-size: 0.9rem;
    }
    
    .lesson-content th,
    .lesson-content td {
        padding: 0.75rem;
    }
}
/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .paths-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Navigation Mobile */
    .navbar {
        flex-wrap: wrap;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: white;
        position: absolute;
        top: 100%;
        left: 0;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0;
    }
    
    .nav-links a {
        padding: 1rem 2rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .nav-links a.btn {
        margin: 1rem 2rem;
        text-align: center;
    }
    
    /* Menu Hamburger */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        cursor: pointer;
    }
    
    .menu-toggle span {
        height: 3px;
        width: 100%;
        background: var(--dark-color);
        border-radius: 3px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero Section */
    .hero-section {
        padding: 120px 0 60px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Paths Grid */
    .paths-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .path-card {
        padding: 1.5rem;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Admin */
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    /* Quiz */
    .quiz-container {
        padding: 0 15px;
    }
    
    .question-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .question-number {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 100px 0 40px;
    }
    
    .path-card, .course-card {
        padding: 1rem;
    }
    
    .auth-container {
        margin: 50px auto;
        padding: 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
}

/* Menu toggle visible seulement sur mobile */
.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
}
/* Menu utilisateur */
.user-menu {
    position: relative;
    cursor: pointer;
}

.user-menu span {
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-weight: 500;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 6px;
    min-width: 150px;
    z-index: 1000;
}

.dropdown a {
    display: block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--dark-color);
    border-bottom: 1px solid #eee;
}

.dropdown a:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.dropdown a:last-child {
    border-bottom: none;
}

.user-menu:hover .dropdown {
    display: block;
}

/* Version mobile pour le dropdown */
@media (max-width: 768px) {
    .user-menu .dropdown {
        position: static;
        box-shadow: none;
        background: #f8fafc;
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    
    .user-menu:hover .dropdown {
        display: none;
    }
    
    .user-menu.active .dropdown {
        display: block;
    }
}
/* Headers avec Comfortaa */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Navigation */
.navbar {
    font-family: var(--font-primary);
    font-weight: 500;
}

.logo {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Boutons */
.btn {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* Cartes de cours */
.course-title {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* Forms */
input, select, textarea, button {
    font-family: var(--font-primary);
}

/* Tableaux */
.table {
    font-family: var(--font-primary);
}

/* Alertes */
.alert {
    font-family: var(--font-primary);
    font-weight: 500;
}

/* Hero sections */
.hero-section h1 {
    font-family: var(--font-primary);
    font-weight: 700;
}

/* Certificats */
.certificate-title {
    font-family: var(--font-primary);
    font-weight: 600;
}

/* Quiz et examens */
.question-text {
    font-family: var(--font-primary);
    font-weight: 500;
}

/* Admin */
.admin-content {
    font-family: var(--font-primary);
}