:root{--porcelain:#F1F3F2;--paper:#fff;--ink:#0C1A22;--ink-2:#33505D;--mute:#6D8794;
  --hair:rgba(12,26,34,.13);--hair-2:rgba(12,26,34,.07);--teal:#0B6E70;--brass:#A8834B;
  --shell:min(760px,100% - 3rem);--e:cubic-bezier(.22,.61,.36,1)}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--porcelain);color:var(--ink);font-family:"Manrope",system-ui,sans-serif;
  font-size:1rem;line-height:1.72;-webkit-font-smoothing:antialiased}
a{color:var(--teal)}
::selection{background:var(--ink);color:var(--porcelain)}
:focus-visible{outline:2px solid var(--teal);outline-offset:3px}
.shell{width:var(--shell);margin-inline:auto}
h1,h2,h3{font-family:"Newsreader",Georgia,serif;font-weight:300;line-height:1.1;letter-spacing:-.015em;margin:0}
h1{font-size:clamp(2.3rem,5vw,3.4rem)}
h2{font-size:1.7rem;margin:3.5rem 0 1rem;padding-top:2rem;border-top:1px solid var(--hair)}
h3{font-size:1.18rem;margin:2rem 0 .6rem}
p,li{color:var(--ink-2)}
p{margin:0 0 1rem}
ul{padding-left:1.1rem;margin:0 0 1rem}
li{margin-bottom:.4rem}
strong{color:var(--ink);font-weight:600}
.kicker{font-family:"Newsreader",serif;font-style:italic;color:var(--brass);display:block;margin-bottom:.8rem}
header.nav{position:sticky;top:0;z-index:10;background:rgba(241,243,242,.9);backdrop-filter:blur(12px);border-bottom:1px solid var(--hair)}
.nav-in{width:min(1220px,100% - 3rem);margin-inline:auto;display:flex;align-items:center;height:72px;gap:1rem}
.brand{display:flex;align-items:center;gap:.6rem;text-decoration:none;color:var(--ink)}
.brand svg{width:23px}
.brand b{font-size:.95rem;letter-spacing:.13em}
.back{margin-left:auto;text-decoration:none;color:var(--ink-2);font-size:.9rem;font-weight:500}
.back:hover{color:var(--ink)}
main{padding:4rem 0 5rem}
.updated{font-size:.85rem;color:var(--mute);margin-top:1.2rem}
.card{background:var(--paper);border:1px solid var(--hair);border-radius:3px;padding:1.4rem 1.5rem;margin:1.4rem 0}
.card p:last-child{margin-bottom:0}
.toc{display:flex;flex-wrap:wrap;gap:.4rem;margin:2.5rem 0 0}
.toc a{text-decoration:none;border:1px solid var(--hair);border-radius:2px;padding:.35rem .75rem;font-size:.85rem;color:var(--ink-2);transition:all .25s}
.toc a:hover{border-color:var(--teal);color:var(--teal)}
.fill{background:#FFF8E9;border:1px solid rgba(168,131,75,.4);border-radius:2px;padding:.1rem .35rem;color:#8A6A3A;font-size:.92em;font-weight:600}
table{width:100%;border-collapse:collapse;margin:1rem 0;font-size:.92rem}
td{padding:.6rem .4rem;border-bottom:1px solid var(--hair-2);vertical-align:top;color:var(--ink-2)}
td:first-child{width:38%;color:var(--ink);font-weight:500}
footer{background:var(--ink);color:#A9BEC5;padding:2.5rem 0;font-size:.85rem}
footer a{color:#A9BEC5;text-decoration:none}
footer a:hover{color:#CBAA6E}
.f-in{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;width:min(1220px,100% - 3rem);margin-inline:auto}
@media (max-width:560px){:root{--shell:min(760px,100% - 2rem)}td{display:block;width:100%}td:first-child{padding-bottom:.1rem;border:0}}

/* ── affichage clair / sombre / système (pages de texte) ── */
:root{color-scheme:light}
.theme-choix{display:inline-flex;align-items:center;gap:2px;padding:2px;border:1px solid var(--hair);border-radius:99px;flex:none}
.theme-choix button{display:grid;place-items:center;width:28px;height:28px;padding:0;border:0;border-radius:50%;background:none;color:var(--mute);cursor:pointer;transition:color .2s,background .2s}
.theme-choix button:hover{color:var(--ink)}
.theme-choix button[aria-pressed=true]{background:var(--ink);color:var(--porcelain)}
.theme-choix svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-in .back{margin-left:auto}

html[data-theme=dark]{color-scheme:dark;--porcelain:#0B161C;--paper:#111F27;--ink:#E6EDEB;--ink-2:#B3C4CA;--mute:#8EA4AE;
  --hair:rgba(231,237,235,.15);--hair-2:rgba(231,237,235,.08);--teal:#3DB6B3;--brass:#C9A56B}
html[data-theme=dark] ::selection{background:#0E7C7E;color:#fff}
html[data-theme=dark] header.nav{background:rgba(11,22,28,.9)}
html[data-theme=dark] footer{background:#060F14;border-top:1px solid var(--hair-2)}
html[data-theme=dark] .fill{background:rgba(201,165,107,.12);border-color:rgba(201,165,107,.4);color:#D9BC84}
html[data-theme=dark] .theme-choix button[aria-pressed=true]{background:#E6EDEB;color:#0B161C}
