/* ====================================================================
   EDD.CSS - Style épuré, moderne et institutionnel (Pragmatique)
   Version optimisée pour le confort de lecture et les interfaces NSI
   =================================================================== */

:root {
    --bg-color: #f7f6ef;
    --card-bg: #fffefa;
    --text-main: #183b3d;
    --text-muted: #5f6f6e;
    --primary: #175c60;
    --primary-light: #e9eee7;
    --accent: #cf633f;
    --border-color: #dce3db;
    --radius: 12px;
    --max-width: 800px;
}

body {
    font-family: Inter, 'Aptos', 'Segoe UI', system-ui, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;          /* Interligne aéré */
    margin: 0;
    padding: 3rem 1.5rem;      /* Marges extérieures importantes pour isoler le contenu */
}

/* Conteneur principal façon "document de travail" */
main, .container, body > header {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

body > header {
    background-color: var(--card-bg);
    padding: 2.5rem 3rem 1.5rem 3rem;
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    border-bottom: 2px solid var(--border-color);
}

main {
    background-color: var(--card-bg);
    padding: 0.5rem 3rem 3rem 3rem;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03);
    margin-bottom: 3rem;
}

h1 {
    font-size: 2.1rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0;
}

h2 {
    font-size: 1.35rem;
    color: var(--primary);
    margin-top: 2.5rem;
    border-left: 4px solid var(--accent);
    padding-left: 0.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.15rem;
    color: var(--text-main);
    margin-top: 1.5rem;
}

p, li {
    font-size: 1rem;
    margin-bottom: 0.85rem;
}

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

li {
    margin-bottom: 0.5rem;
}

blockquote {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #134e4a;
    font-weight: 500;
}

/* Cartes de sections et blocs interactifs */
section {
    margin-bottom: 2rem;
}

.context-card, .lab-card, .exercises-card, .correction-card {
    background-color: #fafbfc;
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
}

.lab-card {
    background-color: #f0fdf4; /* Teinte subtilement verdoyante pour la partie éco-conception/benchmark */
    border-color: #bbf7d0;
}

/* Contrôles du benchmark interactif */
.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}

.controls input[type="range"] {
    flex: 1;
    min-width: 150px;
    accent-color: var(--primary);
}

.controls button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.controls button:hover {
    background-color: var(--accent);
}

/* Grille des résultats du benchmark */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.result-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 6px;
    text-align: center;
}

.result-box h3 {
    margin-top: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.result-box p {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0;
}

@media (max-width: 768px) {
    body {
        padding: 1rem 0.5rem;
    }
    body > header, main {
        padding: 1.5rem;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
}

footer {
    max-width: var(--max-width);
    margin: 2rem auto;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}
/* V2 : titres et retour au site */
h1, h2 { font-family: Georgia, 'Times New Roman', serif; font-weight: normal; }
blockquote { color: #103c40; }
.v2-back { max-width: var(--max-width); margin: 0 auto 1rem; font-size: .95rem; }
.v2-back a { color: #175c60; }
