/* Styles pour le Guide de Formation à l'Audit Documentaire */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

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

.version {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Content */
.content {
    padding: 2rem;
}

section {
    margin-bottom: 3rem;
}

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

h3 {
    color: #34495e;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

h4 {
    color: #555;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Table of Contents */
.table-of-contents {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
}

.toc-nav ul {
    list-style: none;
    padding-left: 0;
}

.toc-nav li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.toc-nav li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #2c3e50;
    font-weight: bold;
}

.toc-nav a {
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.toc-nav a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

/* Modules Grid */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.module-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #2c3e50;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.module-card h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Features List */
.features-list {
    list-style: none;
    padding-left: 0;
}

.features-list li {
    padding-left: 2rem;
    position: relative;
    margin-bottom: 0.8rem;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Numbered List */
.numbered-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.numbered-list li {
    counter-increment: step-counter;
    padding-left: 3rem;
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.numbered-list li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #2c3e50;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Steps */
.steps {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.steps li {
    counter-increment: step-counter;
    padding-left: 3rem;
    position: relative;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: #2c3e50;
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background-color: #2c3e50;
    color: white;
    font-weight: bold;
}

tr:hover {
    background-color: #f8f9fa;
}

/* Code/Technical */
.code-block {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Alerts/Notes */
.note {
    background-color: #e7f3ff;
    border-left: 4px solid #2196F3;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.success {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

.info {
    background-color: #d1ecf1;
    border-left: 4px solid #17a2b8;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 4px;
}

/* Navigation between pages */
.page-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.page-nav a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 2px solid #2c3e50;
    border-radius: 4px;
    transition: all 0.3s;
}

.page-nav a:hover {
    background-color: #2c3e50;
    color: white;
}

/* Screenshot placeholder */
.screenshot-placeholder {
    background-color: #e9ecef;
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    color: #6c757d;
    font-style: italic;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

.footer .note {
    background-color: transparent;
    border: none;
    color: #ccc;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Print styles */
@media print {
    .page-nav {
        display: none;
    }
    
    .container {
        box-shadow: none;
    }
    
    body {
        background-color: white;
    }
    
    .header {
        background: #2c3e50;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    table {
        font-size: 0.9rem;
    }
}

/* Special styles for training guide */
.checklist {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    margin: 1.5rem 0;
}

.checklist h4 {
    color: #27ae60;
    margin-top: 0;
}

.example-box {
    background-color: #fff9e6;
    border-left: 4px solid #f39c12;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.example-box h4 {
    color: #f39c12;
    margin-top: 0;
}

.tool-box {
    background-color: #e8f4f8;
    border-left: 4px solid #3498db;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.tool-box h4 {
    color: #3498db;
    margin-top: 0;
}

