@font-face { font-family: "Fraunces"; src: url(fonts/fraunces.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(fonts/kab-gamma-serif.woff2) format("woff2"); font-weight: 100 900; unicode-range: U+0190, U+0194, U+025B, U+0263; }
@font-face { font-family: "Onest"; src: url(fonts/onest.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/jetbrains.woff2) format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/kab-gamma-Regular.woff2) format("woff2"); font-weight: 100 800; unicode-range: U+0190, U+0194, U+025B, U+0263; }

:root {
  --bg: #faf8fd;
  --bg-2: #f1edf8;
  --card: #ffffff;
  --ink: #1b1135;
  --ink-2: #453a6b;
  --muted: #776e93;
  --line: #e6e0f0;
  --line-2: #d4cae6;
  --violet: #6a35e8;
  --violet-soft: #ece4ff;
  --amber: #c98500;
  --amber-2: #f5b301;
  --teal: #1b9e8f;
  --node: #3a1a8c;
  --night: radial-gradient(1200px 700px at 72% 46%, #4c1fae 0%, #2a1068 46%, #120530 100%);
  --on-night: #f1ecff;
  --on-night-2: #bcaee8;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --tif: var(--serif);
  --rail: 260px;
  --notes: 230px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0e0820; --bg-2: #150c2e; --card: #1a1036; --ink: #f1ecff; --ink-2: #cfc4ef; --muted: #9a8fc0;
  --line: #2a1f4d; --line-2: #3a2d66; --violet: #a27bff; --violet-soft: #2a1a55; --amber: #ffc23d; --amber-2: #ffc23d;
  --teal: #5fd6c6; --node: #c3b0ff;
  --night: radial-gradient(1200px 700px at 72% 46%, #3a1890 0%, #1b0a46 50%, #0a0518 100%);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0820; --bg-2: #150c2e; --card: #1a1036; --ink: #f1ecff; --ink-2: #cfc4ef; --muted: #9a8fc0;
    --line: #2a1f4d; --line-2: #3a2d66; --violet: #a27bff; --violet-soft: #2a1a55; --amber: #ffc23d; --amber-2: #ffc23d;
    --teal: #5fd6c6; --node: #c3b0ff;
    --night: radial-gradient(1200px 700px at 72% 46%, #3a1890 0%, #1b0a46 50%, #0a0518 100%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
html:not([data-lang="en"]) [lang="en"]:not(html), html:not([data-lang="kab"]) [lang="kab"]:not(html),
html[data-lang="en"] [lang="fr"]:not(html), html[data-lang="kab"] [lang="fr"]:not(html) { display: none !important; }
html[data-lang="kab"] .toc a .t small { display: none; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--violet) 50%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
::selection { background: var(--violet); color: #fff; }
.kab { color: var(--violet); }
.tf { font-family: var(--tif); letter-spacing: .08em; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
p { margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; font-optical-sizing: auto; letter-spacing: -.01em; }
h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.06; margin: 6px 0 18px; }
h2 em, h1 em { font-style: italic; color: var(--violet); }
h3 { font-size: 24px; line-height: 1.25; }
.small-caps { font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

/* ---------------- rail des chapitres ---------------- */
.rail { position: fixed; left: 0; top: 0; bottom: 0; width: var(--rail); border-right: 1px solid var(--line); background: var(--bg); z-index: 50; display: flex; flex-direction: column; padding: 26px 22px 20px; }
.rail .who { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.rail .who svg { width: 34px; height: 34px; flex: none; }
.rail .who b { font-family: var(--serif); font-weight: 500; font-size: 18px; display: block; line-height: 1.15; }
.rail .who span { font: 400 11px var(--mono); color: var(--muted); letter-spacing: .06em; }
.toc { list-style: none; margin: 44px 0 0; padding: 0; position: relative; flex: 1; }
.toc::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.toc .fill { position: absolute; left: 11px; top: 6px; width: 1px; height: 0; background: var(--amber-2); transition: height .15s linear; }
.toc li { position: relative; }
.toc a { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: baseline; padding: 7px 0; text-decoration: none; color: var(--ink-2); }
.toc a .l { width: 23px; height: 23px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); display: grid; place-items: center; font: 400 12px var(--tif); color: var(--muted); position: relative; z-index: 1; transition: all .25s; transform: translateY(5px); }
.toc a .t { font-size: 15px; line-height: 1.3; }
.toc a .t small { display: block; font: 400 10.5px var(--mono); color: var(--muted); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }
.toc a:hover .t { color: var(--violet); }
.toc a.on .l { background: var(--amber-2); border-color: var(--amber-2); color: #1b1135; }
.toc a.on .t { color: var(--ink); font-weight: 500; }
.toc .sub { margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--line-2); }
.toc .sub a { grid-template-columns: 24px 1fr; }
.rail-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rbtn { height: 34px; min-width: 34px; border: 1px solid var(--line-2); background: none; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 11px; font: 500 12.5px var(--mono); color: var(--ink-2); }
.rbtn:hover { border-color: var(--violet); color: var(--violet); }
.rbtn svg { width: 15px; height: 15px; }
.topbar { display: none; }

main, footer.foot { margin-left: var(--rail); }
.wrap { max-width: calc(980px + var(--notes)); margin: 0 auto; padding: 0 56px; }
.with-notes { display: grid; grid-template-columns: minmax(0, 1fr) var(--notes); gap: 48px; }
.mn { font-size: 13.5px; line-height: 1.5; color: var(--muted); border-left: 2px solid var(--amber-2); padding: 2px 0 2px 14px; margin-bottom: 18px; }
.mn b { color: var(--ink-2); font-weight: 500; }
.mn .mono { font-size: 12px; }
sup.ref { font: 500 10px var(--mono); color: var(--amber); margin-left: 1px; }

/* ---------------- chapitres ---------------- */
section.ch { padding: 120px 0 110px; position: relative; }
section.ch + section.ch { border-top: 1px solid var(--line); }
.ch-head { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; margin-bottom: 44px; }
.ch-letter { font: 400 64px/1 var(--tif); color: var(--amber-2); margin-top: 8px; }
.ch-label { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ch-label .kw { font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ch-label .kw b { color: var(--violet); font-weight: 500; }
.lede { font-size: 19px; color: var(--ink-2); max-width: 680px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- ouverture ---------------- */
.ouv { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; padding: 70px 0 90px; }
#fond { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .95; }
.ouv .wrap { position: relative; width: 100%; }
.ouv-grid { display: grid; grid-template-columns: 1fr 230px; gap: 50px; align-items: center; }
.ouv .status { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.ouv .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber-2) 25%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.ouv h1 { font-size: clamp(50px, 7vw, 104px); line-height: .98; margin: 22px 0 26px; font-weight: 350; letter-spacing: -.025em; }
.ouv h1 .soft { font-style: italic; font-weight: 300; color: var(--muted); }
.ouv .these-titre { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.3; font-weight: 350; max-width: 780px; margin: 0 0 14px; }
.ouv .these-titre em { color: var(--violet); }
.ouv .meta { font: 400 13px var(--mono); color: var(--muted); letter-spacing: .04em; }
.ouv .cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font: 500 15px var(--sans); text-decoration: none; border: 1px solid var(--line-2); color: var(--ink); background: var(--card); cursor: pointer; transition: transform .2s, border-color .2s, background .2s, color .2s; }
.btn:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-1px); }
.btn.v { background: var(--violet); border-color: var(--violet); color: #fff; }
.btn.v:hover { color: #fff; filter: brightness(1.08); }
.btn svg { width: 15px; height: 15px; }
.portrait { position: relative; width: 230px; height: 230px; justify-self: center; }
.portrait img { position: absolute; inset: 34px; width: calc(100% - 68px); height: calc(100% - 68px); border-radius: 50%; object-fit: cover; filter: saturate(.9); box-shadow: 0 18px 40px rgba(42, 18, 99, .22); }
.portrait svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: tourne 90s linear infinite; overflow: visible; }
.portrait:hover svg { animation-play-state: paused; }
.portrait svg text { font: 400 13px var(--tif); fill: var(--muted); transition: fill .2s; cursor: default; }
.portrait svg text:hover { fill: var(--amber); }
.portrait svg circle { fill: none; stroke: var(--line-2); }
.portrait .tip { position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%); font: 400 11.5px var(--mono); white-space: nowrap; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 10px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.portrait .tip.show { opacity: 1; }
.portrait .tip b { font: 400 14px var(--tif); color: var(--amber); margin-right: 6px; }
@keyframes tourne { to { transform: rotate(360deg); } }
.descend { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font: 400 11px var(--mono); letter-spacing: .2em; color: var(--muted); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.descend i { width: 1px; height: 30px; background: linear-gradient(var(--muted), transparent); animation: goutte 2s infinite; transform-origin: top; }
@keyframes goutte { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* ---------------- la thèse : récit en défilement ---------------- */
.these { background: var(--night); color: var(--on-night); padding: 0; position: relative; }
.these .ch-head { padding-top: 120px; margin-bottom: 0; }
.these h2 { color: #fff; }
.these .lede { color: var(--on-night-2); }
.these .ch-label .kw { color: var(--on-night-2); }
.these .ch-label .kw b { color: var(--amber-2); }
.recit { position: relative; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; }
.scene { position: sticky; top: 0; height: 100vh; grid-column: 2; grid-row: 1; align-self: start; }
#cerveau { width: 100%; height: 100%; display: block; }
.scene .glyph-tip { position: absolute; pointer-events: none; font: 400 12px var(--mono); color: #fff; background: rgba(20, 8, 50, .85); border: 1px solid rgba(200, 180, 255, .3); border-radius: 999px; padding: 4px 10px; transform: translate(-50%, -150%); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.scene .glyph-tip.show { opacity: 1; }
.scene .glyph-tip b { font-size: 15px; margin-right: 6px; font-weight: 400; }
.scene .legend { position: absolute; right: 28px; bottom: 26px; display: grid; gap: 6px; font: 400 11.5px var(--mono); color: var(--on-night-2); letter-spacing: .04em; }
.scene .legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.scene .fallback { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 30px; color: var(--on-night-2); font-size: 15px; }
.etapes { grid-column: 1; grid-row: 1; position: relative; z-index: 2; padding-left: 56px; }
.etape { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .25; transition: opacity .5s; }
.etape.on { opacity: 1; }
.etape .n { font: 500 12px var(--mono); letter-spacing: .16em; color: var(--amber-2); }
.etape h3 { color: #fff; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; margin: 12px 0 14px; font-weight: 350; }
.etape h3 em { color: var(--amber-2); font-style: italic; }
.etape p { color: var(--on-night-2); font-size: 16.5px; }
.etape .fait { margin-top: 14px; border-left: 2px solid var(--amber-2); padding-left: 14px; font-size: 14px; color: var(--on-night-2); }
.etape .fait b { color: #fff; font-weight: 500; }
.these-fin { padding: 40px 0 110px; }
.these-fin .wrap { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.these-fin .small-caps { color: var(--on-night-2); }
.these .btn { background: transparent; color: #fff; border-color: rgba(200, 180, 255, .4); }
.these .btn:hover { color: var(--amber-2); border-color: var(--amber-2); }

/* ---------------- travaux antérieurs ---------------- */
.avant { display: grid; grid-template-columns: 1fr 420px; gap: 56px; align-items: center; }
.orb { position: relative; width: 100%; aspect-ratio: 1; }
.orb #lattice { position: absolute; inset: 7%; width: 86%; height: 86%; border-radius: 50%; clip-path: circle(50%); }
.orb .ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb .ring circle { fill: none; stroke: var(--line-2); }
.pair-read { margin-top: 12px; font: 400 12.5px/1.7 var(--mono); color: var(--muted); min-height: 44px; text-align: center; }
.pair-read b { font-weight: 500; color: var(--ink); font-size: 15px; }
.pair-read .to { color: var(--amber); }
.pair-read .to.tf { font: 400 16px var(--tif); letter-spacing: .1em; }
.projets { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 56px; }
.projet { position: relative; display: block; text-decoration: none; border: 1px solid var(--line); background: var(--card); border-radius: 20px; padding: 28px 28px 26px; transition: border-color .25s, transform .25s, box-shadow .25s; overflow: hidden; }
.projet:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 22px 50px rgba(42, 18, 99, .12); color: inherit; }
.projet .yr { font: 500 11.5px var(--mono); letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.projet h3 { font-size: 30px; margin: 10px 0 8px; }
.projet p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.chiffres { display: flex; gap: 26px; flex-wrap: wrap; }
.chiffres div b { display: block; font: 400 28px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.chiffres div span { font: 400 11px var(--mono); color: var(--muted); letter-spacing: .06em; }
.projet .go { position: absolute; right: 22px; top: 22px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all .25s; }
.projet:hover .go { background: var(--violet); border-color: var(--violet); color: #fff; transform: rotate(-45deg); }
.projet .go svg { width: 16px; height: 16px; }
.ressources { margin-top: 22px; border: 1px dashed var(--line-2); border-radius: 20px; padding: 20px 26px; display: flex; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.ressources .lst { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14.5px; color: var(--ink-2); }
.ressources .lst b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--ink); margin-right: 6px; }

/* ---------------- références ---------------- */
.refs { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.refs li { counter-increment: r; display: grid; grid-template-columns: 52px 1fr; gap: 6px; padding: 22px 0; border-top: 1px solid var(--line); }
.refs li:last-child { border-bottom: 1px solid var(--line); }
.refs li::before { content: "[" counter(r) "]"; font: 500 13px var(--mono); color: var(--amber); padding-top: 4px; }
.refs .ti { font-family: var(--serif); font-size: 20px; line-height: 1.3; }
.refs .au { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.refs .au b { font-weight: 600; color: var(--ink); }
.refs .ve { font-size: 14.5px; color: var(--muted); font-style: italic; }
.refs .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.tag { font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); }
.tag.ok { border-color: transparent; background: color-mix(in srgb, var(--teal) 16%, transparent); color: var(--teal); }
.tag.soon { border-color: transparent; background: color-mix(in srgb, var(--amber-2) 22%, transparent); color: var(--amber); }
.refs .acts a, .refs .acts button { font: 500 12px var(--mono); letter-spacing: .06em; background: none; border: 0; padding: 0; cursor: pointer; color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }
.bib { display: none; margin-top: 12px; }
.bib.open { display: block; }
.bib pre { margin: 0; background: var(--bg-2); padding: 14px 16px; font: 400 12px/1.55 var(--mono); overflow-x: auto; border-radius: 12px; color: var(--ink-2); }

/* ---------------- frise-réseau ---------------- */
.frise-wrap { overflow-x: auto; scrollbar-width: thin; margin: 0 -8px; padding: 0 8px; cursor: grab; }
.frise-wrap.drag { cursor: grabbing; }
#frise { width: 100%; min-width: 980px; height: auto; display: block; }
#frise .axe { stroke: var(--line-2); }
#frise .tick { font: 400 11px var(--mono); fill: var(--muted); letter-spacing: .06em; }
#frise .lane { font: 500 10.5px var(--mono); fill: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
#frise .lien { stroke: var(--line-2); stroke-width: 1.3; fill: none; }
#frise .lien.chaud { stroke: var(--violet); stroke-width: 2; }
#frise .nd { cursor: pointer; }
#frise .nd circle { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1.6; transition: all .2s; }
#frise .nd.f-formation circle { stroke: var(--teal); }
#frise .nd.f-recherche circle { stroke: var(--violet); }
#frise .nd.f-logiciel circle { stroke: var(--ink-2); }
#frise .nd.f-diffusion circle { stroke: var(--amber); }
#frise .nd:hover circle, #frise .nd.sel circle { fill: var(--violet); stroke: var(--violet); }
#frise .nd.futur circle { stroke-dasharray: 3 3; }
#frise .nd text { font: 500 12px var(--sans); fill: var(--ink-2); opacity: 0; transition: opacity .2s; pointer-events: none; }
#frise .nd:hover text, #frise .nd.sel text { opacity: 1; }
#frise .auj { stroke: var(--amber-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
#frise .auj-t { font: 500 11px var(--mono); fill: var(--amber); letter-spacing: .1em; }
#frise .these-band { fill: url(#gb); }
#frise .these-t { font: 400 15px var(--serif); font-style: italic; fill: var(--violet); }
.frise-card { margin-top: 18px; display: grid; grid-template-columns: 150px 1fr; gap: 24px; border-top: 1px solid var(--line); padding-top: 22px; min-height: 120px; }
.frise-card .d { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .08em; }
.frise-card .c { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-top: 6px; display: block; }
.frise-card h3 { font-size: 24px; margin-bottom: 6px; }
.frise-card p { color: var(--ink-2); margin: 0; }
.frise-legend { display: flex; gap: 20px; flex-wrap: wrap; font: 400 12px var(--mono); color: var(--muted); margin-bottom: 14px; }
.frise-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid; margin-right: 8px; vertical-align: -1px; }

/* ---------------- équipe & contact ---------------- */
.gens { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.gens div { padding: 16px 0; border-top: 1px solid var(--line); }
.gens b { font-family: var(--serif); font-weight: 400; font-size: 21px; display: block; }
.gens span { font-size: 14.5px; color: var(--muted); }
.contact { margin-top: 60px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); text-decoration: none; transition: border-color .2s, transform .2s; }
.contact a:hover { border-color: var(--violet); transform: translateY(-2px); }
.contact a small { display: block; font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact a span { font-size: 16px; }
.contact a svg { width: 16px; height: 16px; color: var(--violet); flex: none; }
footer.foot { border-top: 1px solid var(--line); }
footer.foot .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 30px; font: 400 12px var(--mono); color: var(--muted); letter-spacing: .04em; }
footer.foot .tf { color: var(--amber); margin-right: 8px; }

/* ---------------- pages de projet ---------------- */
.page-head { padding: 110px 0 60px; }
.page-head .retour { font: 500 12px var(--mono); letter-spacing: .1em; color: var(--muted); text-decoration: none; }
.page-head .retour:hover { color: var(--violet); }
.page-head h1 { font-size: clamp(44px, 5.6vw, 78px); line-height: 1; margin: 26px 0 18px; font-weight: 350; }
.page-head .meta { font: 400 13px var(--mono); color: var(--muted); }
.fiches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fiche { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 20px 22px; position: relative; }
.fiche .ix { position: absolute; right: 18px; top: 14px; font: 400 18px var(--tif); color: var(--amber-2); }
.fiche .k { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fiche b { display: block; font: 400 30px/1.15 var(--serif); margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.fiche span { font-size: 14px; color: var(--ink-2); }
.fiche b.s { font-size: 19px; line-height: 1.3; }

/* circuit */
.circuit-wrap { overflow-x: auto; scrollbar-width: none; }
.circuit-wrap::-webkit-scrollbar { display: none; }
#circuit { width: 100%; min-width: 860px; height: auto; display: block; overflow: visible; }
#circuit .wire { stroke: var(--line-2); stroke-width: 1.5; fill: none; }
#circuit .wire-on { stroke: var(--violet); stroke-width: 2; fill: none; transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
#circuit .nd { cursor: pointer; }
#circuit .nd circle.o { fill: var(--bg); stroke: var(--ink-2); stroke-width: 1.5; transition: all .3s; }
#circuit .nd .lt { font: 400 13px var(--tif); fill: var(--muted); }
#circuit .nd text.t { font: 500 14px var(--sans); fill: var(--ink); }
#circuit .nd.done circle.o { stroke: var(--violet); }
#circuit .nd.on circle.o { fill: var(--amber-2); stroke: var(--amber-2); }
#circuit .nd.on .lt { fill: #1b1135; }
#circuit .pulse { fill: var(--amber-2); }
.step-panel { margin-top: 28px; display: grid; grid-template-columns: 220px 1fr; gap: 36px; border-top: 1px solid var(--line); padding-top: 30px; min-height: 230px; }
.step-panel .big { font: 400 72px/1 var(--tif); color: var(--line-2); }
.step-panel h3 { font-size: 30px; margin-top: 10px; }
.step-nav { display: flex; gap: 8px; margin-top: 18px; }
.step-nav button { width: 40px; height: 40px; border: 1px solid var(--line-2); background: none; border-radius: 50%; cursor: pointer; }
.step-nav button:hover { border-color: var(--violet); color: var(--violet); }
.temps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; }
.temps .k { font: 500 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.temps .v { font-size: 15.5px; color: var(--ink-2); }
.temps .lega .v { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--violet); }
.viz { margin-top: 18px; font: 400 13px/1.9 var(--mono); color: var(--muted); }
.viz .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.viz b { color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: 16px; }
.viz .c { padding: 1px 8px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); }
.viz .c.r { border-color: var(--amber-2); color: var(--amber); }

/* mesures */
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; padding: 3px; }
.seg button { border: 0; background: none; padding: 6px 16px; cursor: pointer; font: 500 12.5px var(--mono); color: var(--muted); border-radius: 999px; }
.seg button.on { background: var(--violet); color: #fff; }
.metric { display: grid; grid-template-columns: 200px 1fr 70px; gap: 16px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.metric .track { height: 6px; background: var(--bg-2); border-radius: 999px; position: relative; }
.metric .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, var(--violet), color-mix(in srgb, var(--violet) 60%, var(--amber-2))); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.metric .ghost { position: absolute; top: -5px; width: 2px; height: 16px; background: var(--ink-2); opacity: .5; border-radius: 1px; transition: left 1s cubic-bezier(.2,.8,.2,1); }
.metric .v { font: 500 13.5px var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
.metric .v.up { color: var(--teal); }
.gap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0 18px; }
.gap > div { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--card); }
.gap .num { font: 300 56px/1 var(--serif); font-variant-numeric: tabular-nums; }
.gap .num.a { color: var(--amber); }
.gap .bar { height: 6px; background: var(--bg-2); border-radius: 999px; margin: 14px 0 10px; position: relative; overflow: hidden; }
.gap .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: currentColor; border-radius: 999px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.llm-row { display: grid; grid-template-columns: 1fr 240px; gap: 18px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.llm-row .l { font-size: 15px; }
.llm-row .l small { display: block; font: 400 11.5px var(--mono); color: var(--muted); }
.div-axis { position: relative; height: 18px; }
.div-axis::before { content: ""; position: absolute; left: 78%; top: -6px; bottom: -6px; width: 1px; background: var(--ink-2); }
.div-bar { position: absolute; right: 22%; top: 6px; height: 6px; border-radius: 999px 0 0 999px; background: var(--amber-2); width: 0; transition: width 1s cubic-bezier(.2,.8,.2,1); }
.div-val { position: absolute; left: calc(78% + 10px); top: -1px; font: 500 13px var(--mono); color: var(--amber); }
.funnel .fs { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 6px 0; }
.funnel b { font: 300 36px/1 var(--serif); text-align: right; }
.funnel .fb { position: relative; height: 34px; display: flex; align-items: center; font-size: 14px; color: var(--ink-2); }
.funnel .fb i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--violet-soft); border-radius: 999px; transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.funnel .fb.k i { background: color-mix(in srgb, var(--teal) 20%, transparent); }
.funnel .fb.r i { background: color-mix(in srgb, var(--amber-2) 25%, transparent); }
.funnel .fb span { position: relative; padding-left: 14px; white-space: nowrap; }
.deux { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* kab-board */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; margin-bottom: 26px; flex-wrap: wrap; }
.tab { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 500 14px var(--sans); color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.tab svg { width: 15px; height: 15px; }
.tab.on { background: var(--violet); color: #fff; }
.tab-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tab-panel li { padding-left: 24px; position: relative; color: var(--ink-2); }
.tab-panel li::before { content: "ⵣ"; font-family: var(--tif); position: absolute; left: 0; top: 0; color: var(--amber-2); font-size: 14px; }
.shot { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 18px; display: grid; place-items: center; min-height: 380px; }
.shot img { max-height: 420px; width: auto; border-radius: 10px; box-shadow: 0 18px 44px rgba(42, 18, 99, .18); transition: opacity .3s; }
.shot img.swap { opacity: 0; }
.kb { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }

/* ---------------- palette ---------------- */
.palette-bg { position: fixed; inset: 0; background: rgba(14, 8, 32, .45); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: flex-start; justify-content: center; padding-top: 14vh; }
.palette-bg.open { display: flex; }
.palette { width: min(600px, calc(100vw - 32px)); background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(14, 8, 32, .35); }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; font: 400 18px var(--sans); background: transparent; color: var(--ink); outline: none; }
.palette ul { list-style: none; margin: 0; padding: 6px; max-height: 50vh; overflow-y: auto; }
.palette li { padding: 10px 14px; border-radius: 12px; cursor: pointer; display: flex; gap: 12px; align-items: center; font-size: 15.5px; }
.palette li .l { font: 400 14px var(--tif); color: var(--amber); width: 18px; }
.palette li small { margin-left: auto; font: 500 10.5px var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.palette li.on { background: var(--bg-2); }
.palette .ph { padding: 10px 16px; border-top: 1px solid var(--line); font: 400 11px var(--mono); color: var(--muted); display: flex; gap: 16px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 999px; font: 400 13px var(--mono); opacity: 0; transition: all .3s; z-index: 120; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- responsive ---------------- */
@media (max-width: 1240px) {
  .with-notes { grid-template-columns: 1fr; gap: 10px; }
  .with-notes > aside { display: flex; flex-wrap: wrap; gap: 0 26px; }
  .with-notes > aside .mn { flex: 1 1 220px; }
  .avant { grid-template-columns: 1fr 340px; }
}
@media (max-width: 1080px) {
  :root { --rail: 0px; }
  .rail { transform: translateX(-100%); width: 280px; transition: transform .3s; box-shadow: 0 0 60px rgba(14, 8, 32, .2); }
  .rail.open { transform: none; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 45; height: 60px; align-items: center; justify-content: space-between; padding: 0 20px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
  .topbar a { text-decoration: none; font-family: var(--serif); font-size: 18px; display: flex; gap: 10px; align-items: center; }
  .topbar a svg { width: 28px; height: 28px; }
  .topbar .r { display: flex; gap: 6px; }
  .wrap { padding: 0 28px; }
  .ouv-grid { grid-template-columns: 1fr; }
  .portrait { justify-self: start; width: 190px; height: 190px; }
  .recit { grid-template-columns: 1fr; }
  .scene { grid-column: 1; height: 100vh; opacity: .9; }
  .etapes { padding: 0 28px; }
  .etape { min-height: 90vh; }
  .etape > div { background: rgba(18, 6, 48, .72); backdrop-filter: blur(6px); border: 1px solid rgba(200, 180, 255, .2); border-radius: 18px; padding: 22px; }
  .avant, .kb, .deux { grid-template-columns: 1fr; }
  .orb { max-width: 420px; margin: 0 auto; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  section.ch { padding: 80px 0; }
  .ch-head { grid-template-columns: 1fr; }
  .ch-letter { font-size: 44px; }
  .wrap { padding: 0 18px; }
  .projets, .gens, .contact, .fiches, .gap, .temps { grid-template-columns: 1fr; }
  .step-panel { grid-template-columns: 1fr; gap: 14px; }
  .metric { grid-template-columns: 1fr 64px; }
  .metric .track { grid-column: 1 / -1; grid-row: 2; }
  .llm-row { grid-template-columns: 1fr; }
  .frise-card { grid-template-columns: 1fr; gap: 6px; }
  .refs li { grid-template-columns: 38px 1fr; }
  .scene .legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.pilote { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.pilote .tf { color: var(--amber); letter-spacing: .1em; margin-left: 6px; text-transform: none; font-size: 13px; }
.etape .pilote { color: var(--on-night-2); }
.with-notes.large { grid-template-columns: 1fr; gap: 26px; }
.with-notes.large > aside { display: flex; flex-wrap: wrap; gap: 0 32px; }
.with-notes.large > aside .mn { flex: 1 1 260px; }
.gap .num { font-size: clamp(38px, 4vw, 52px); white-space: nowrap; }
.etape p.pilote { font-size: 11.5px; color: var(--amber-2); }
.logo-cnam { display: inline-flex; margin-bottom: 26px; padding: 8px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.logo-cnam img { height: 30px; width: auto; }
.etabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.etabs > div { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.etabs img { height: 34px; width: auto; align-self: flex-start; padding: 6px 10px; border-radius: 10px; background: #fff; box-sizing: content-box; }
.frise-card .logo { margin-top: 12px; height: 26px; width: auto; padding: 5px 9px; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-sizing: content-box; }
.gens { grid-template-columns: 240px 1fr; gap: 0 32px; }
.gens .role { border-top: 1px solid var(--line); padding-top: 22px; }
.gens .role:empty { border-top-color: transparent; }
.gens .role + div { padding-top: 16px; }
@media (max-width: 700px) {
  .etabs { grid-template-columns: 1fr; }
  .gens { grid-template-columns: 1fr; }
  .gens .role:empty { display: none; }
  .gens .role + div { border-top: 0; padding-top: 4px; }
}

/* ---------------- retouches du 16/10 ---------------- */
.portrait { width: 210px; height: auto; margin: 0; justify-self: center; position: relative; }
.portrait img { position: static; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; box-shadow: 0 22px 50px rgba(42, 18, 99, .22); border: 1px solid var(--line); filter: none; inset: auto; }
.portrait::after { content: ""; position: absolute; inset: -10px 10px 10px -10px; border: 1px solid var(--line-2); border-radius: 30px; z-index: -1; }
.ch-letter { font: italic 300 64px/1 var(--serif); color: var(--amber-2); }
.toc a .l { font: italic 400 11px var(--serif); }
.tab-panel li::before { content: ""; width: 10px; height: 2px; background: var(--amber-2); top: 12px; font-size: 0; }
.avant { grid-template-columns: 1fr 460px; }
.mot-lu { font: 400 34px/1.2 var(--serif); text-align: center; min-height: 92px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.mot-lu .x { color: #e5484d; text-decoration: underline wavy #e5484d; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.mot-lu .c { color: var(--amber); background: color-mix(in srgb, var(--amber-2) 18%, transparent); border-radius: 6px; padding: 0 2px; }
.mot-lu small { font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.orb-leg { display: flex; justify-content: center; gap: 22px; font: 400 12px var(--mono); color: var(--muted); margin-top: 6px; }
.orb-leg i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.orb-leg i.r { background: #e5484d; } .orb-leg i.a { background: var(--amber-2); }
.ressources { font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 1080px) { .portrait { justify-self: start; width: 170px; } .avant { grid-template-columns: 1fr; } }

/* ---------------- graphe animé du correcteur ---------------- */
#graphe { width: 100%; height: 100%; display: block; }
.g-ar { stroke: rgba(200, 185, 255, .45); stroke-width: 1.4; }
.g-ar.best { stroke: var(--amber-2); stroke-width: 3; }
.g-nd text { font: 400 21px var(--serif); fill: #f1ecff; }
.g-nd .pil { fill: rgba(30, 14, 74, .92); stroke: rgba(200, 185, 255, .45); stroke-width: 1.2; }
.g-nd .halo { fill: none; stroke: none; }
.g-nd.s-m text { fill: #fff; font-size: 24px; }
.g-nd.s-m .pil { fill: rgba(106, 53, 232, .35); stroke: #a27bff; }
.g-nd.s-f text { fill: rgba(241, 236, 255, .55); }
.g-nd.s-v .pil { stroke: #a27bff; stroke-width: 1.6; }
.g-nd.s-a .pil { fill: rgba(245, 179, 1, .16); stroke: var(--amber-2); stroke-width: 2; }
.g-nd.s-a text { fill: #ffd56a; }
.g-nd.s-a .halo { fill: rgba(245, 179, 1, .35); filter: url(#lueur); }
.g-nd tspan.x { fill: #ff7b80; text-decoration: underline; }
.g-note { font: 500 13px var(--mono); fill: var(--on-night-2); letter-spacing: .06em; }
.g-note.big { font: 400 30px var(--serif); fill: var(--amber-2); letter-spacing: .1em; }
.g-tap { fill: none; stroke: var(--amber-2); stroke-width: 2; }
#fond-graphe { position: absolute; inset: 0; width: 100%; height: 100%; }
#graphe { position: relative; }
.g-pt { fill: #d9ccff; }
.g-pt.best { fill: var(--amber-2); }

/* ---------------- l'encre ---------------- */
.avant { grid-template-columns: 1fr; }
.encre-scene { margin-top: 34px; border: 1px solid var(--line); border-radius: 26px; background: radial-gradient(900px 300px at 50% 55%, color-mix(in srgb, var(--violet) 7%, var(--card)), var(--card)); padding: 22px 22px 18px; }
#encre { display: block; width: 100%; height: clamp(200px, 30vw, 340px); cursor: crosshair; touch-action: pan-y; }
.encre-scene .mot-lu { min-height: 70px; font-size: 26px; }

/* ---------------- l'espace des mots ---------------- */
.espace-scene { margin-top: 34px; border-radius: 26px; background: var(--night); color: var(--on-night); padding: 22px 22px 20px; overflow: hidden; }
.espace-scene .mot-lu { min-height: 70px; font-size: 26px; color: #fff; }
.espace-scene .mot-lu small { color: var(--on-night-2); }
.espace-scene .mot-lu .c { color: #ffd56a; background: rgba(245, 179, 1, .18); }
.espace-scene .orb-leg { color: var(--on-night-2); }
.orb-leg i.v { background: #b9a2ff; }
.espace { position: relative; height: clamp(320px, 42vw, 480px); cursor: grab; }
#espace { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.espace-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.esp-lab { position: absolute; left: 0; top: 0; font: 400 14px var(--serif); white-space: nowrap; opacity: 0; will-change: transform, opacity; }
.esp-lab.amb { color: #cbbcf5; font-size: 12px; }
.esp-lab.vois { color: #e6dcff; font-size: 15px; }
.esp-lab.bon { color: #ffd56a; font-size: 19px; }
.esp-lab.faute { color: #ff8a8e; font-size: 19px; font-style: italic; }
.espace-note { font-size: 13px; color: var(--on-night-2); text-align: center; margin: 8px 0 0; }
#espace { -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
/* l'espace se fond dans la page */
.espace-scene { background: none; border: 0; border-radius: 0; padding: 0; color: inherit; overflow: visible; margin-top: 10px; }
.espace-scene .mot-lu { color: var(--ink); }
.espace-scene .mot-lu small { color: var(--muted); }
.espace-scene .mot-lu .c { color: var(--amber); background: color-mix(in srgb, var(--amber-2) 18%, transparent); }
.espace-scene .orb-leg { color: var(--muted); }
.espace { height: clamp(360px, 46vw, 540px); }
#espace { -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 45%, transparent 100%); }
.esp-lab.amb { color: var(--muted); }
.esp-lab.vois { color: var(--ink-2); }
.esp-lab.bon { color: var(--amber); font-weight: 500; }
.esp-lab.faute { color: #d6333b; }
.espace-note { color: var(--muted); }
.orb-leg i.v { background: var(--violet); }
h2.parcours-t { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.18; max-width: 900px; }
h2.parcours-t small { font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); vertical-align: middle; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 9px; margin: 0 2px 0 6px; white-space: nowrap; }

/* ---------------- téléphone ---------------- */
@media (max-width: 1080px) {
  .etape { justify-content: flex-end; padding-bottom: 7vh; }
}
#graphe.etroit .g-nd text { font-size: 31px; }
#graphe.etroit .g-nd.s-m text { font-size: 33px; }
#graphe.etroit .g-note { font-size: 20px; }
#graphe.etroit .g-note.big { font-size: 40px; }
@media (max-width: 700px) {
  .fiches { grid-template-columns: 1fr !important; }
}

/* mentions légales */
.legal > * { max-width: 760px; }
section.ch#mentions { padding-top: 10px; }
.legal h3 { font: 500 13px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--violet, currentColor); margin: 34px 0 10px; }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { line-height: 1.65; }
.legal .credits { padding-left: 18px; display: grid; gap: 10px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* éléments propres au téléphone (affichés par appli.css) */
.tabbar, .pas-barre, .pas-nav, .pas-astuce { display: none; }
.topbar .tb-t { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.topbar .tb-t b { font: 400 17px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .tb-t small { font: 400 9.5px var(--mono); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.tel-only, .ftel, .ftel-fiche { display: none; }

/* menu des langues */
.rbtn.lg svg { width: 15px; height: 15px; }
.langues { position: fixed; left: 18px; bottom: 70px; z-index: 110; width: 330px; display: flex; flex-direction: column; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 80px rgba(14, 8, 32, .3); padding: 14px; opacity: 0; transform: translateY(10px); transition: opacity .22s, transform .22s; }
.langues.open { opacity: 1; transform: none; }
.langues[hidden] { display: none; }
.lg-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lg-tete b { font: 400 20px var(--serif); }
.lg-tete .rbtn { width: 32px; min-width: 32px; height: 32px; padding: 0; font-size: 18px; }
.lg-trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lg-trois button { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border: 1px solid var(--line-2); border-radius: 14px; background: none; cursor: pointer; color: var(--ink); }
.lg-trois button b { font: 500 14.5px var(--sans); }
.lg-trois button small { font: 500 10px var(--mono); letter-spacing: .12em; color: var(--muted); }
.lg-trois button:hover { border-color: var(--violet); }
.lg-trois button[aria-checked="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.lg-trois button[aria-checked="true"] small { color: rgba(255, 255, 255, .75); }
.lg-autres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.lg-autres button { display: grid; gap: 1px; justify-items: center; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: none; cursor: pointer; color: var(--ink); }
.lg-autres button b { font: 400 13.5px var(--sans); }
.lg-autres button small { font: 500 9.5px var(--mono); letter-spacing: .1em; color: var(--muted); }
.lg-autres button:hover { border-color: var(--violet); }
.lg-autres button[aria-checked="true"] { background: var(--violet); border-color: var(--violet); color: #fff; }
.lg-autres button[aria-checked="true"] small { color: rgba(255, 255, 255, .75); }
[dir="rtl"] { text-align: right; }
@media (max-width: 1080px) { .langues { left: auto; right: 12px; top: 68px; bottom: auto; } }
