/* Base styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --font-main: 'Georgia', serif;
    --font-headings: 'Helvetica Neue', Arial, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--primary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Header */
header {
    background-color: var(--dark-bg);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    color: white;
    margin-bottom: 0.5rem;
}

header h2 {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    font-weight: normal;
    margin-bottom: 1.5rem;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

nav li {
    margin-right: 1.5rem;
    margin-bottom: 0.5rem;
}

nav a {
    color: rgba(255,255,255,0.8);
    font-family: var(--font-headings);
    font-weight: bold;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover, nav a.active {
    color: white;
    border-bottom-color: var(--accent-color);
}

/* Hero section */
.hero {
    background-color: var(--light-bg);
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: #666;
}

/* Buttons */
.btn, .btn-small {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: var(--font-headings);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn:hover, .btn-small:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Overview section */
.overview {
    padding: 4rem 0;
}

.book-structure {
    margin-top: 3rem;
}

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

.structure-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.structure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.structure-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
}

.structure-item p {
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

/* Examples section */
.examples {
    background-color: var(--light-bg);
    padding: 4rem 0;
}

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

.example-item {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.example-item:hover {
    transform: translateY(-5px);
}

.example-item h3 {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.example-item p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Content pages */
.content-page {
    padding: 3rem 0;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
}

.sidebar {
    position: sticky;
    top: 2rem;
    align-self: start;
}

.sidebar-nav {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
}

.sidebar-nav h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--secondary-color);
}

.chapter-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.chapter-content h3 {
    margin-top: 1.5rem;
    color: var(--secondary-color);
}

.chapter-content p {
    margin-bottom: 1rem;
}

.chapter-content ul, .chapter-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.chapter-content li {
    margin-bottom: 0.5rem;
}

.chapter-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--secondary-color);
    background-color: var(--light-bg);
    font-style: italic;
}

.chapter-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

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

footer p {
    margin-bottom: 0;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav li {
        margin-right: 0;
        margin-bottom: 0.75rem;
    }
}

/* Print styles */
@media print {
    header, footer, .sidebar, .chapter-navigation {
        display: none;
    }
    
    .content-wrapper {
        display: block;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a {
        color: black;
        text-decoration: none;
    }
    
    h1, h2, h3, h4 {
        page-break-after: avoid;
    }
    
    p, blockquote {
        orphans: 3;
        widows: 3;
    }
}

/* Lier le fichier d'accessibilité à toutes les pages */
@import url('accessibility.css');
