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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-top: 20px;
    margin-bottom: 20px;
}

header {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

nav {
    background: #34495e;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    padding: 0 1rem;
}

.nav-item {
    background: rgba(255,255,255,0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-item:hover, .nav-item.active {
    background: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.nav-item a {
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    display: block;
    font-weight: 500;
}

.content {
    padding: 2rem;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.section.active {
    display: block;
}

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

.card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid #3498db;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 0.5rem;
}

.card h3 {
    color: #34495e;
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.oeuvre {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #e74c3c;
}

.auteur {
    font-weight: bold;
    color: #e74c3c;
    font-size: 1.1rem;
}

.resume {
    margin-top: 1rem;
    font-style: italic;
    color: #555;
}

.exercice {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border: 2px solid #f39c12;
}

.question {
    font-weight: bold;
    margin-bottom: 1rem;
    color: #d68910;
}

.reponse {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #ddd;
    display: none;
}

.btn {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.methodologie {
    background: linear-gradient(45deg, #d1ecf1, #bee5eb);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0;
    border-left: 4px solid #17a2b8;
}

.etapes {
    list-style: none;
    padding-left: 0;
}

.etapes li {
    background: white;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #17a2b8;
    position: relative;
    padding-left: 3rem;
}

.etapes li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: #17a2b8;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.etapes {
    counter-reset: step-counter;
}

.citation {
    background: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    font-style: italic;
    position: relative;
}

.citation::before {
    content: '"';
    font-size: 3rem;
    color: #6c757d;
    position: absolute;
    top: -10px;
    left: 10px;
}

.quiz-container {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.quiz-question {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.quiz-options {
    list-style: none;
}

.quiz-options li {
    background: #f8f9fa;
    margin: 0.5rem 0;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quiz-options li:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.quiz-options li.correct {
    background: #d4edda;
    border-color: #28a745;
}

.quiz-options li.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.progress-bar {
    background: #ecf0f1;
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
    margin: 2rem 0;
}

.progress-fill {
    background: linear-gradient(45deg, #3498db, #2ecc71);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    h1 {
        font-size: 2rem;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
    }

    .content {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }
}

.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #3498db;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    width: calc(50% - 20px);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: calc(50% + 20px);
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 15px;
    height: 15px;
    background: #3498db;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
}

.timeline-item:nth-child(odd)::before {
    right: -27px;
}

.timeline-item:nth-child(even)::before {
    left: -27px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: calc(100% - 40px);
        left: 40px !important;
    }

    .timeline-item::before {
        left: -27px !important;
    }
}
