@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');:root{--green:#1c322d;--deep:#10251f;--cream:#f8f3ee;--gold:#ebb552;--rose:#f1cdbe;--muted:#a8bbae;--line:#405a50}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--cream);color:var(--green);font-family:'DM Sans',Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.skip{position:absolute;left:-9999px}.skip:focus{left:1rem;top:1rem;z-index:30;background:white;padding:1rem}.site-header{height:88px;background:var(--green);color:var(--cream);border-bottom:1px solid #526b5d;display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,5vw,90px)}.brand{display:flex;align-items:center;gap:14px;font-size:18px;letter-spacing:.13em;font-weight:700}.brand-mark{font-size:35px;color:var(--gold)}.brand small{display:block;font-size:9px;letter-spacing:.21em;font-weight:500;margin-top:6px;color:#a8bbae}.site-header nav{display:flex;gap:32px;font-size:13px}.site-header nav a:hover{text-decoration:underline}.header-tag,.eyebrow,.inspector-kicker,.related-heading,.live-dot,.library-note{font-size:10px;font-weight:700;letter-spacing:.18em}.header-tag{border:1px solid #72867a;padding:10px 14px;color:#cddbd0}.hero{text-align:center;background:var(--green);color:var(--cream);padding:93px 20px 68px;background-image:radial-gradient(ellipse at 15% 70%,#294b3a 0,transparent 43%),radial-gradient(ellipse at 86% 12%,#314a3d 0,transparent 36%)}.eyebrow{color:#a07930}.hero .eyebrow{color:var(--gold)}h1,h2,h3{font-family:'Libre Baskerville',Georgia,serif}h1{font-size:clamp(45px,6.3vw,89px);line-height:1.16;font-weight:400;letter-spacing:-.045em;margin:23px 0}h1 em,.method-section h2 em{color:var(--gold);font-weight:400}.hero p{max-width:550px;font-size:16px;line-height:1.85;color:#c1d0c4;margin:0 auto}.hero-actions{display:flex;justify-content:center;gap:12px;margin:32px 0 61px}.button{display:inline-flex;align-items:center;justify-content:center;gap:24px;padding:15px 22px;font-size:13px;font-weight:700;border-radius:3px;border:1px solid transparent}.button.gold{background:var(--gold);color:var(--green)}.button.outline{border-color:#748579;color:var(--cream)}.button:hover{filter:brightness(1.08)}.hero-metrics{display:flex;justify-content:center;gap:48px;border-top:1px solid #4a6659;max-width:540px;margin:auto;padding-top:24px;color:#adbfb1;font-size:12px}.hero-metrics strong{font-family:Georgia,serif;color:var(--cream);font-size:20px;margin-right:7px}.atlas-section,.method-section,.library-section{padding:85px clamp(20px,6vw,100px);max-width:1600px;margin:auto}.section-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:28px}.section-head h2,.method-section h2,.library-section h2{font-size:clamp(27px,3vw,42px);font-weight:400;letter-spacing:-.035em;margin:12px 0}.section-head p{color:#5a7265;font-size:13px}.mode-switch{display:flex;gap:4px;padding:5px;background:#e9e5dc;border:1px solid #ddd8cf;border-radius:5px}.mode-switch button{border:0;background:transparent;padding:12px 15px;color:#65776b;font-size:12px}.mode-switch button.active{color:var(--cream);background:var(--green);border-radius:3px}.atlas-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:510px;border:1px solid #cad3c9;box-shadow:0 18px 50px #203b2d0c}.graph-shell{background:var(--deep);color:var(--cream);min-width:0;display:flex;flex-direction:column}.graph-topline,.graph-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 22px}.search-label{display:flex;align-items:center;gap:10px;background:#233b32;border:1px solid #456455;padding:9px 13px;min-width:240px}.search-label input{outline:0;border:0;background:transparent;color:var(--cream);width:100%;font-size:12px}.search-label input::placeholder{color:#9cb4a6}.live-dot{color:#b5c9bc;white-space:nowrap}.live-dot:before{content:'●';color:#a3d1a9;margin-right:7px}.graph-shell canvas{display:block;width:100%;height:410px;touch-action:none;cursor:grab}.graph-shell canvas:active{cursor:grabbing}.graph-footer{border-top:1px solid #314d3f;color:#91aa98;font-size:11px}.text-button{background:transparent;color:var(--gold);border:0;font-size:11px}.inspector{background:#fdfbf7;padding:29px 25px;display:flex;flex-direction:column}.inspector-kicker{color:#789082;display:flex;justify-content:space-between}.asterisk{font-size:25px;color:#af8240}.concept-title{font-family:Georgia,serif;font-size:29px;font-weight:400;line-height:1.2;margin:22px 0 12px}.pill{font-size:10px;background:#e5efe7;color:#3e6c50;padding:7px 10px;display:inline-block;letter-spacing:.08em}.concept-summary{font-size:13px;line-height:1.7;color:#65766a}.concept-relations{font-size:12px;color:#566b5f;line-height:1.7;border-top:1px solid #e3e6dc;padding-top:16px}.concept-link{display:block;text-align:center;margin:15px 0 25px;background:var(--green);color:white;padding:12px;font-size:12px;font-weight:700}.concept-link.disabled{background:#eceee8;color:#89978c;cursor:default}.related-heading{margin-top:auto;color:#718477;margin-bottom:12px}.concept-list{display:grid;gap:5px;max-height:220px;overflow:auto}.concept-list button{display:flex;align-items:center;justify-content:space-between;background:transparent;border:1px solid #e1e6dc;text-align:left;padding:9px 12px;color:var(--green);font-size:12px}.concept-list button.selected{border-color:#b99656;background:#fff6e2}.concept-list button:focus-visible,.mode-switch button:focus-visible,.graph-footer button:focus-visible{outline:3px solid var(--gold)}.guide-note{padding:19px 24px;margin-top:12px;background:#e7eee6;border-left:4px solid #c4994a;display:flex;gap:20px;font-size:13px;line-height:1.6}.guide-note[hidden]{display:none}.guide-note strong{white-space:nowrap}.method-section{background:var(--green);color:var(--cream);max-width:none}.method-section>.eyebrow,.method-section>h2,.method-section>.steps{max-width:1400px;margin-left:auto;margin-right:auto}.method-section h2{font-size:clamp(35px,4vw,58px);line-height:1.3;margin-top:20px;margin-bottom:50px}.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:25px}.steps article{border-top:1px solid #819584;padding-top:20px}.steps span{color:var(--gold);font:25px Georgia,serif}.steps h3{font-size:22px;font-weight:400;margin:25px 0 12px}.steps p{color:#b8c8bc;font-size:13px;line-height:1.8}.library-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.library-card{background:white;border:1px solid #dcded5;padding:28px;min-height:230px;display:flex;flex-direction:column}.library-card .pill{align-self:start}.library-card h3{font-size:24px;font-weight:400;margin:24px 0 10px}.library-card p{font-size:13px;color:#62786b;line-height:1.65;margin:0}.library-card a,.library-card .soon{margin-top:auto;padding-top:25px;font-size:12px;font-weight:700;color:#8e6d31}.library-card .soon{color:#87948a}footer{background:#152920;color:#a5b7a8;padding:25px clamp(20px,6vw,100px);display:flex;justify-content:space-between;font-size:12px}footer span:first-child{color:var(--gold);font-weight:700;letter-spacing:.12em}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.article-body{background:var(--cream)}.article-nav{background:var(--green);color:white;padding:20px clamp(20px,8vw,120px);display:flex;align-items:center;justify-content:space-between}.article-nav a{font-size:13px}.article-main{max-width:950px;margin:auto;padding:65px 24px 110px}.article-main .eyebrow{color:#a17b3f}.article-main h1{color:var(--green);font-size:clamp(40px,5vw,66px);margin:20px 0}.article-intro{font-size:20px;color:#576f61;line-height:1.8}.lesson-card{border:1px solid #d8dfd4;background:white;padding:clamp(22px,4vw,44px);margin:40px 0}.lesson-card h2{font-size:30px;font-weight:400}.lesson-card p,.lesson-card li{line-height:1.8;color:#4b6455}.lesson-card code{background:#eaf0e8;padding:3px 6px}.sim-stage{padding:22px 8px;background:#eef3ec;border:1px solid #d6e3d5;margin:20px 0}.sim-stage svg{width:100%;height:auto}.sim-controls{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.sim-controls button,.quiz button{border:0;padding:11px 18px;background:var(--green);color:white}.sim-status{font-size:13px;color:#536a5d}.quiz fieldset{border:0;padding:0}.quiz legend{font-weight:700;line-height:1.6;margin-bottom:15px}.quiz label{display:block;border:1px solid #d8e1d6;padding:13px;margin:8px 0;cursor:pointer}.quiz label:has(input:checked){background:#fff3dc;border-color:#d3ae64}.quiz-result{margin-top:15px;padding:15px;background:#e6efe5;border-left:4px solid #6b9875;line-height:1.7}.quiz-result[hidden]{display:none}.note{background:#e9efdf;border-left:4px solid #bf9148;padding:18px 23px;line-height:1.8}
@media(max-width:980px){.header-tag{display:none}.atlas-layout{grid-template-columns:1fr}.inspector{min-height:340px}.steps{grid-template-columns:repeat(2,1fr)}.library-grid{grid-template-columns:repeat(2,1fr)}.section-head{align-items:start;flex-direction:column}.site-header nav{gap:14px}}@media(max-width:600px){.site-header{height:75px}.site-header nav{display:none}.brand{font-size:14px}.hero{padding:75px 20px 45px}.hero-actions,.hero-metrics{gap:10px;flex-wrap:wrap}.hero-metrics{justify-content:space-between}.atlas-section,.method-section,.library-section{padding:55px 18px}.search-label{min-width:0}.live-dot{display:none}.graph-shell canvas{height:340px}.graph-footer{align-items:start;font-size:10px}.steps,.library-grid{grid-template-columns:1fr}.guide-note{flex-direction:column;gap:4px}footer{gap:10px;flex-direction:column}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}}

/* Encyclopédia v0.2 — états partagés des QCM et simulateurs */
[data-stepper] [data-step-panel][hidden]{display:none}
.sim-controls button:disabled{opacity:.45;cursor:not-allowed}
.quiz fieldset{margin:0 0 25px;padding-bottom:18px;border-bottom:1px solid #e2e8df}
.quiz fieldset:last-of-type{border-bottom:0}
.quiz fieldset[data-result="correct"]{border-left:4px solid #649a77;padding-left:12px}
.quiz fieldset[data-result="incorrect"]{border-left:4px solid #c47a61;padding-left:12px}
.quiz input[type="radio"]{accent-color:#1c322d;margin-right:9px}
.quiz-result ol{margin:12px 0 0;padding-left:22px}
.quiz-result li{margin:8px 0;color:#334d3c}
.quiz-result:focus{outline:2px solid #ebb552;outline-offset:3px}
.lesson-card a:not(.button){text-decoration:underline;text-underline-offset:3px}


/* v0.3 — Les relations sont des explications accessibles, pas seulement des arêtes. */
.relation-list{list-style:none;margin:9px 0 20px;padding:0;display:grid;gap:8px}
.relation-list button,.relation-directory button{width:100%;border:1px solid #dce5db;background:#f6faf4;color:var(--green);padding:12px;text-align:left;border-radius:3px;cursor:pointer}
.relation-list button:hover,.relation-list button:focus-visible,.relation-list button.active,.relation-directory button:hover,.relation-directory button:focus-visible{background:#fff2db;border-color:#ba9047;outline-offset:2px}
.relation-list strong,.relation-list span{display:block;font-size:12px;line-height:1.5}
.relation-list strong{margin-bottom:4px;text-transform:uppercase;letter-spacing:.05em}
.relation-list span{color:#536e5f}
.relation-directory{border-top:1px solid #dce5db;margin-top:20px;padding-top:16px;font-size:12px}
.relation-directory summary{cursor:pointer;font-weight:700;color:var(--green)}
.relation-directory ul{list-style:none;padding:0;display:grid;gap:6px;max-height:240px;overflow:auto}
.relation-directory button{font-size:12px;line-height:1.5}
