/* Style professionnel simple pour les pages de procédures techniques */

/* Variables CSS pour le thème clair (par défaut) */
:root, html[data-theme="light"] {
    --couleur-principale: #0066cc;
    --couleur-principale-hover: #0052a3;
    --bg-body: #f5f5f5;
    --bg-container: white;
    --bg-header: #0066cc;
    --bg-nav: #f8f9fa;
    --bg-code: #f8f9fa;
    --card-bg: #f8f9fa;
    --section-bg: white;
    --couleur-texte: #333;
    --couleur-texte-light: #555;
    --couleur-border: #e0e0e0;
    --heading-color: #333;
}

/* Variables CSS pour le thème sombre */
html[data-theme="dark"] {
    --couleur-principale: #60a5fa;
    --couleur-principale-hover: #3b82f6;
    --bg-body: #0f172a;
    --bg-container: #1e293b;
    --bg-header: #1e3a8a;
    --bg-nav: #334155;
    --bg-code: #1e293b;
    --card-bg: #1e293b;
    --section-bg: #0f172a;
    --couleur-texte: #f1f5f9;
    --couleur-texte-light: #e2e8f0;
    --couleur-border: #475569;
    --heading-color: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-body);
    line-height: 1.6;
    color: var(--couleur-texte);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-container);
    transition: background-color 0.3s ease;
}

.header {
    background: var(--bg-header);
    color: white;
    padding: 40px 40px 30px 40px;
    border-bottom: 3px solid var(--couleur-principale-hover);
    transition: background-color 0.3s ease;
}

.header h1 {
    font-size: 2.2em;
    font-weight: 600;
    margin-bottom: 8px;
}

.header p {
    font-size: 1rem;
    opacity: 0.95;
}

.nav {
    background: var(--bg-nav);
    padding: 15px 40px;
    border-bottom: 1px solid var(--couleur-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav a {
    color: var(--couleur-principale);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav a:hover {
    background: rgba(59, 130, 246, 0.15);
    color: var(--couleur-principale-hover);
}

.content {
    padding: 40px;
}

.section {
    margin-bottom: 35px;
}

.section h2 {
    color: var(--heading-color);
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--couleur-border);
}

.section h3 {
    color: var(--couleur-texte-light);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 25px;
    margin-bottom: 12px;
}

.section h4 {
    color: var(--couleur-texte-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 10px;
}

.section p {
    margin-bottom: 12px;
    line-height: 1.7;
    color: var(--couleur-texte-light);
}

.code-block {
    background: var(--bg-code);
    border: 1px solid var(--couleur-border);
    border-left: 4px solid var(--couleur-principale);
    padding: 15px 20px;
    border-radius: 4px;
    margin: 15px 0;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.code-block pre {
    margin: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    max-width: 100%;
    color: var(--couleur-texte);
}

.command {
    color: var(--couleur-principale);
    font-weight: 500;
}

.warning {
    background: rgba(255, 152, 0, 0.15);
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-left: 4px solid #ffa726;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    color: var(--couleur-texte);
}

.warning strong {
    color: #ffa726;
    font-weight: 600;
}

.success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-left: 4px solid #4caf50;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    color: var(--couleur-texte);
}

.success strong {
    color: #4caf50;
    font-weight: 600;
}

.info {
    background: rgba(33, 150, 243, 0.15);
    border: 1px solid rgba(33, 150, 243, 0.3);
    border-left: 4px solid #2196f3;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    color: var(--couleur-texte);
}

.info strong {
    color: #2196f3;
    font-weight: 600;
}

.danger {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-left: 4px solid #f44336;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
    color: var(--couleur-texte);
}

.danger strong {
    color: #f44336;
    font-weight: 600;
}

ul, ol {
    margin-left: 25px;
    margin-top: 10px;
    margin-bottom: 15px;
}

li {
    margin: 8px 0;
    line-height: 1.6;
    color: var(--couleur-texte-light);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid var(--couleur-border);
}

table th, table td {
    border: 1px solid var(--couleur-border);
    padding: 12px 15px;
    text-align: left;
    color: var(--couleur-texte);
}

table th {
    background: var(--bg-nav);
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.95rem;
}

table tr:nth-child(even) {
    background: rgba(128, 128, 128, 0.05);
}

table tr:hover {
    background: rgba(99, 129, 168, 0.12);
}

html[data-theme="dark"] table tr:hover {
    background: rgba(148, 163, 184, 0.15);
}

html[data-theme="dark"] table th {
    background: #1e3a5f;
    color: #e2e8f0;
}

html[data-theme="dark"] table td {
    color: #e2e8f0;
}

html[data-theme="dark"] table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.04);
}

strong {
    font-weight: 600;
    color: var(--heading-color);
}

code {
    background: var(--bg-code);
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #ec4899;
    border: 1px solid var(--couleur-border);
}

html[data-theme="dark"] code {
    color: #f472b6;
    background: #1e293b;
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 30px 20px 20px 20px;
    }
    
    .header h1 {
        font-size: 1.8em;
    }
    
    .nav {
        padding: 12px 20px;
        flex-wrap: wrap;
    }
    
    .content {
        padding: 25px 20px;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .section h3 {
        font-size: 1.2rem;
    }
    
    table {
        font-size: 0.9rem;
    }
    
    table th, table td {
        padding: 8px 10px;
    }
}

.theme-toggle {
    background: var(--couleur-principale);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

.theme-toggle i {
    transition: transform 0.3s ease;
}
