:root {
    --primary: #2c3e50; /* Bleu nuit (Conservateur) */
    --accent: #e74c3c; /* Rouge (Révolution) */
    --light: #ecf0f1;
    --dark: #34495e;
    --gold: #f1c40f;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

header {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    font-family: 'Merriweather', serif;
    margin: 0;
    font-size: 2rem;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: center;
    background: #fff;
    padding: 10px;
    flex-wrap: wrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--accent);
}

.tab-btn.active {
    border-bottom: 3px solid var(--accent);
    color: var(--accent);
}

/* CONTENU PRINCIPAL */
main {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    min-height: 400px;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

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

h2 {
    color: var(--primary);
    border-left: 5px solid var(--accent);
    padding-left: 10px;
}

h3 {
    color: var(--dark);
    margin-top: 1.5rem;
}

/* CHRONOLOGIE */
.timeline {
    border-left: 3px solid var(--primary);
    padding-left: 20px;
    margin-left: 10px;
}
.event {
    margin-bottom: 20px;
    position: relative;
}
.event::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    position: absolute;
    left: -27.5px;
    top: 5px;
}
.date {
    font-weight: bold;
    color: var(--accent);
}

/* CARTES PERSONNAGES */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: var(--light);
    padding: 15px;
    border-radius: 5px;
    border-left: 4px solid var(--gold);
}
.card h3 {
    margin-top: 0;
}

/* LEXIQUE */
dt {
    font-weight: bold;
    color: var(--primary);
    margin-top: 10px;
    font-size: 1.1rem;
}
dd {
    margin-left: 20px;
    margin-bottom: 10px;
    font-style: italic;
}

/* METHODOLOGIE */
.methode-box {
    background: #fff8e1; /* Effet papier jaune */
    padding: 15px;
    border: 1px solid #eecda3;
    margin-bottom: 15px;
    border-radius: 5px;
}

/* QUIZ */
.question-block {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.btn-action {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 5px;
}
.btn-action:hover {
    background: #c0392b;
}
#result {
    margin-top: 20px;
    font-weight: bold;
    font-size: 1.2rem;
}