html{background:#f5efe3;color-scheme:light}body{margin:0}img{max-width:100%}

/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font-6815df031ceb.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font-f0230cab68ec.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font-6815df031ceb.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font-f0230cab68ec.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font-e5c05bcb3ca3.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font-55246a591977.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font-ca1969afa905.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/font-1e4cea71d75e.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font-ca1969afa905.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/font-1e4cea71d75e.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font-ca1969afa905.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font-1e4cea71d75e.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font-e6c4327bae92.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/font-7dc7dc90fb6e.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* ==========================================================
   Tamarins.ai — landing. Design system Tamarins (tokens.css, bundle.css) :
   fond crème de marque, encre et ombres dures, vert jungle, menthe, arrondi unique 4px.
   ========================================================== */
:root{
  color-scheme:light;
  --cream:#f5efe3; --card:#ffffff; --ink:#141714; --encre:#01140a;
  --fg:#131714; --fg-2:#505752; --fg-3:#636b66; --rule:#d9d1c1; --border:#e2e8e4;
  --highlight:#c1ebca; --primary:#07502c; --primary-hover:#083a20;
  --jungle-50:#ecfcf0; --jungle-200:#b5ecc7; --jungle-300:#88d9a5; --jungle-400:#52c180;
  --jungle-600:#048149; --jungle-800:#07502c;
  --success:#048149; --warning:#b45309; --amber-50:#fff8eb; --amber-100:#feefc7;
  --destructive:#dc2626; --red-50:#fef2f2;
  --teinte-sales:oklch(0.82 0.1 205); --teinte-marketing:oklch(0.82 0.1 330);
  --teinte-rh:oklch(0.82 0.1 40); --teinte-data:oklch(0.82 0.1 120);
  --teinte-dev:oklch(0.82 0.1 160); --teinte-produit:oklch(0.82 0.1 262);
  --shadow-hard-sm:2px 2px 0 var(--ink); --shadow-hard-md:3px 3px 0 var(--ink); --shadow-hard-lg:6px 6px 0 var(--ink);
  --radius:4px;
  --font-sans:'Atkinson Hyperlegible Next',system-ui,-apple-system,'Segoe UI',sans-serif;
  --font-serif:'Libre Caslon Text',Georgia,'Times New Roman',serif;
  --font-mono:'Atkinson Hyperlegible Mono',ui-monospace,'SF Mono',Menlo,monospace;
  --wrap:1280px;
  --ease:cubic-bezier(.16,1,.3,1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--cream)}
body{margin:0;background:var(--cream);color:var(--fg);font-family:var(--font-sans);font-size:15.5px;line-height:1.55;-webkit-font-smoothing:antialiased}
img{max-width:100%}
svg{max-width:100%}
p{margin:0}
a{color:inherit}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 32px}
h1,h2{font-family:var(--font-serif);font-weight:700;margin:0;text-wrap:balance;letter-spacing:-.01em;color:var(--fg)}
h1{font-size:clamp(36px,4.3vw,60px);line-height:1.04}
h2{font-size:clamp(25px,2.5vw,33px);line-height:1.15}
h3{font-family:var(--font-sans);font-size:15px;font-weight:700;margin:0}
/* le mot mis en avant : le surlignage menthe des titres de page */
em.hl{font-style:normal;background:linear-gradient(transparent 62%,var(--highlight) 62%,var(--highlight) 96%,transparent 96%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.mono{font-family:var(--font-sans);font-size:13px;font-weight:600;color:var(--fg-3)}
.sub{color:var(--fg-2);font-size:16.5px;max-width:54ch}

/* ---------- nav ---------- */
.nav{position:sticky;top:0;z-index:60;background:var(--cream);border-bottom:2px solid var(--ink)}
.nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;height:62px}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:13px;color:var(--fg-3)}
.brand img{height:24px;width:auto;display:block}
.nav nav{display:flex;gap:26px}
.nav nav a{font-size:14.5px;font-weight:600;color:var(--fg-2);text-decoration:none;transition:color .12s}
.nav nav a:hover{color:var(--primary)}

/* --- boutons : composant Button du design system (encre, ombre dure, touche qui s'enfonce) --- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;text-decoration:none;cursor:pointer;
  border:2px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow-hard-sm);
  font-family:var(--font-sans);font-weight:600;line-height:1;
  transition:transform .12s,box-shadow .12s,background-color .12s}
.btn:hover{transform:translate(-1px,-1px);box-shadow:var(--shadow-hard-md)}
.btn:active{transform:translate(2px,2px);box-shadow:none}
.btn-cta{background:var(--primary);color:#fff;height:40px;padding:0 16px;font-size:14px}
.btn-cta:hover{background:var(--primary-hover)}
.btn-pill{background:var(--card);color:var(--fg);height:40px;padding:0 16px;font-size:14px}
.btn-lg.btn-cta,.btn-lg.btn-pill{height:48px;padding:0 20px;font-size:16px}
.btn-sm.btn-cta,.btn-sm.btn-pill,.btn-sm.btn-acces{height:32px;padding:0 12px;font-size:13px}
/* accès client : menthe cernée d'encre, clair là où le CTA des prospects est vert foncé */
.btn-acces{background:var(--highlight);color:var(--ink);height:40px;padding:0 16px;font-size:14px}
.btn .ico{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nav-actions{display:flex;align-items:center;gap:14px}
.nav-sep{width:2px;height:24px;background:var(--border)}
a:focus-visible,button:focus-visible{outline:2px solid var(--jungle-600);outline-offset:3px}

/* =========================================================
   HEADER
   ========================================================= */
.head{position:relative;border-bottom:2px solid var(--ink);min-height:min(calc(100vh - 62px),900px);display:flex}
.head>.wrap{width:100%;margin-top:auto;margin-bottom:auto}
.head .wrap{position:relative;z-index:1}
.head-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);gap:48px;align-items:center;padding:clamp(22px,3.6vh,44px) 0 clamp(22px,3.6vh,44px)}
.head-copy{display:flex;flex-direction:column;gap:22px}
.head h1 .rk{color:var(--jungle-600)}
.head-cta{display:flex;gap:12px;flex-wrap:wrap}

/* ---------- marques LLM + survol ---------- */
.llms{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding-top:14px;border-top:1px solid var(--rule);margin-top:4px}
.llm-row{display:flex;gap:12px}
.llm{position:relative}
/* plaque blanche : les logos sont posés tels que fournis, sans retouche */
.llm-b{width:48px;height:48px;border-radius:var(--radius);cursor:default;background:#fff;border:2px solid var(--ink);
  display:grid;place-items:center;padding:9px;box-shadow:var(--shadow-hard-sm);transition:transform .12s,box-shadow .12s}
.llm-b img{display:block;width:100%;height:100%;object-fit:contain}
.llm-b:hover,.llm:focus-within .llm-b{transform:translate(-1px,-1px);box-shadow:var(--shadow-hard-md)}
.pop{position:absolute;bottom:calc(100% + 14px);left:-6px;z-index:50;width:280px;
  background:var(--card);border:2px solid var(--ink);border-radius:var(--radius);padding:14px 16px 13px;box-shadow:var(--shadow-hard-md);
  opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .12s,transform .12s,visibility .12s;pointer-events:none}
.llm:hover .pop,.llm:focus-within .pop{opacity:1;visibility:visible;transform:none}
.pop-h{display:flex;align-items:baseline;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--border)}
.pop-h b{font-family:var(--font-serif);font-size:17px;font-weight:700}
.pop-h i{font-size:12px;font-style:normal;color:var(--fg-3)}
.pop ul{list-style:none;margin:0;padding:8px 0 0;display:flex;flex-direction:column}
.pop li{padding:6px 0;font-size:14px;color:var(--fg)}

/* ---------- scène : un panneau hachuré, cerné d'encre, comme le PageHero ---------- */
.stage{position:relative;min-width:0;background-color:var(--card);
  background-image:repeating-linear-gradient(142deg,transparent 0,transparent 11px,#eef1ef 11px,#eef1ef 12px);
  border:3px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow-hard-lg);
  padding:16px 18px 0;margin:0 6px 6px 0}
.stage-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:6px}
.stage-bar .mono{display:inline-flex;align-items:center;border:2px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow-hard-sm);
  background:var(--highlight);padding:2px 10px;font-size:13px;font-weight:600;color:var(--ink)}
/* état courant : l'étiquette « Outil IA », et le cadre Tamarins qui se referme autour d'elle,
   piloté en continu par --f (0 = modèle seul, 1 = machine complète) */
.state{display:inline-flex;align-items:center}
.st-outer{display:inline-flex;align-items:center;gap:calc(var(--f,0) * 7px);
  border:2px solid rgba(20,23,20,var(--f,0));background:rgba(193,235,202,var(--f,0));border-radius:var(--radius);
  padding:calc(var(--f,0) * 2px) calc(var(--f,0) * 4px) calc(var(--f,0) * 2px) calc(var(--f,0) * 9px)}
.st-lab{font-size:12.5px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;max-width:calc(var(--f,0) * 70px);opacity:var(--f,0)}
.st-inner{font-family:var(--font-mono);font-size:12px;font-weight:600;padding:2px 8px;border-radius:var(--radius);border:1.5px solid var(--ink);
  white-space:nowrap;background:var(--encre);color:#fff}
#soc{display:block;width:100%;height:auto;overflow:visible;max-height:calc(100vh - 330px)}
.stage-view{position:relative}
.stage-3d{position:relative}

/* ---------- curseur de conduite ---------- */
.ctrl{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.ctrl-top{display:flex;align-items:baseline;justify-content:space-between;gap:14px}
.ctrl-end{font-size:13px;font-weight:600;color:var(--fg-3);white-space:nowrap}
.ctrl-end.on{color:var(--primary)}
.slider{--knob-w:44px;--knob-h:28px;position:relative;height:34px;margin-bottom:22px;display:flex;align-items:center;touch-action:pan-y}
.track{position:absolute;left:0;right:0;top:50%;height:14px;margin-top:-7px;border:2px solid var(--ink);border-radius:var(--radius);overflow:hidden;background:var(--card)}
.fill{position:absolute;top:0;bottom:0;left:0;width:calc(var(--knob-w)/2 + var(--p,0) * (100% - var(--knob-w)));background:var(--jungle-400)}
.ghostfill{display:none}
.notches{position:absolute;left:0;right:0;top:50%;height:0;pointer-events:none}
.notch{position:absolute;top:10px;width:2px;height:5px;margin-left:-1px;background:var(--fg-3);opacity:.5}
.notch.lit{background:var(--jungle-600);opacity:1;height:7px}
.slidelabel{position:absolute;left:0;right:0;top:100%;margin-top:4px;text-align:left;pointer-events:none;font-size:13px;color:var(--fg-3);white-space:nowrap}
.slidelabel.go{color:var(--primary);font-weight:600}
.grabhint{position:absolute;top:50%;width:var(--knob-w);height:var(--knob-h);pointer-events:none;margin-top:calc(var(--knob-h) / -2);
  left:calc(var(--knob-w)/2 + var(--p,0) * (100% - var(--knob-w)));transform:translateX(-50%);border-radius:var(--radius);border:2px solid var(--jungle-600);opacity:0}
.grabhint.show{animation:grab 1.6s ease-out 2}
@keyframes grab{0%{opacity:.9;transform:translateX(-50%) scale(1)}100%{opacity:0;transform:translateX(-50%) scale(1.45)}}
.slider input{-webkit-appearance:none;appearance:none;position:relative;z-index:2;width:100%;height:34px;margin:0;background:transparent;cursor:grab}
.slider input:active{cursor:grabbing}
.slider input::-webkit-slider-runnable-track{height:34px;background:transparent;border:0}
.slider input::-moz-range-track{height:34px;background:transparent;border:0}
/* le bouton : une touche menthe cernée d'encre, avec son chevron */
.slider input::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:var(--knob-w);height:var(--knob-h);margin-top:3px;
  border:2px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow-hard-sm);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141714' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center/11px no-repeat,var(--highlight)}
#sliderBox.rev input::-webkit-slider-thumb{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141714' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/11px no-repeat,var(--highlight)}
.slider input:active::-webkit-slider-thumb{box-shadow:none;transform:translate(2px,2px)}
.slider input:focus-visible{outline:none}
.slider input:focus-visible::-webkit-slider-thumb{outline:2px solid var(--jungle-600);outline-offset:3px}
.slider input::-moz-range-thumb{width:var(--knob-w);height:var(--knob-h);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow-hard-sm);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141714' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center/11px no-repeat,var(--highlight)}
#sliderBox.rev input::-moz-range-thumb{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141714' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E") center/11px no-repeat,var(--highlight)}
.slider input:focus-visible::-moz-range-thumb{outline:2px solid var(--jungle-600);outline-offset:3px}

.readout{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:2px solid var(--ink);margin:12px -18px 0;background:var(--card)}
.readout>div{padding:12px 14px;display:flex;align-items:center;gap:10px;min-width:0}
.readout>div+div{border-left:1px solid var(--border)}
.readout>div>div{display:flex;flex-direction:column;gap:2px;min-width:0}
.ri{width:19px;height:19px;flex:none;fill:none;stroke:var(--fg-3);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.readout>div.lit .ri{stroke:var(--jungle-600)}
.readout .k{font-size:12.5px;color:var(--fg-3)}
.readout .v{font-family:var(--font-mono);font-size:15px;font-weight:600;font-variant-numeric:tabular-nums;color:var(--fg);white-space:nowrap}
.readout .v.bad{color:var(--warning)}
.readout .v.good{color:var(--success)}
.legend{display:none;flex-wrap:wrap;gap:7px;padding:14px 0 0}
.legend span{font-size:12.5px;font-weight:600;color:var(--ink);background:var(--highlight);border:1.5px solid var(--ink);border-radius:var(--radius);padding:2px 9px}

/* ---------- la scène SVG ---------- */
.ink-s{stroke:var(--ink);fill:none;stroke-linecap:round;stroke-linejoin:round}
.ink-f{fill:var(--ink)}
.encre-f{fill:var(--encre)}
.card-f{fill:var(--card)}
.mod-t{font:700 14px var(--font-sans);fill:var(--fg)}
.mod-s{font:400 11.5px var(--font-sans);fill:var(--fg-3)}
.llm-t{font:600 17px var(--font-mono);fill:#fff;letter-spacing:.04em}
.warn-t{font:600 12px var(--font-sans);fill:var(--warning)}
.ghost-r{fill:var(--card);stroke:var(--warning);stroke-width:1.5;stroke-dasharray:4 3}
.ghost-t{font:600 11px var(--font-sans);fill:var(--warning)}
.ghost-d{fill:var(--warning);stroke:var(--ink);stroke-width:1}
.badge-r{fill:var(--highlight);stroke:var(--ink);stroke-width:1.5}
.badge-t{font:700 10.5px var(--font-sans);fill:var(--ink)}
.pline{stroke:var(--warning);stroke-width:1.3;stroke-dasharray:3 4;opacity:.7}
.xh{stroke:var(--warning);stroke-width:1.6}
.xhc{fill:var(--card);stroke:var(--warning);stroke-width:1.5}
.ptxt{font:600 11px var(--font-sans);fill:var(--warning)}

/* =========================================================
   BLOCS
   ========================================================= */
.sec{padding:76px 0;border-bottom:1px solid var(--rule)}
.sec--alt{background:var(--cream)}
.hd{display:flex;flex-direction:column;gap:12px;margin-bottom:34px;max-width:70ch}
.hd .mono,.hd-row-t .mono{color:var(--primary)}

.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.steps>div{background:var(--card);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:4px 4px 0 var(--ink);padding:20px 20px 22px;display:flex;flex-direction:column;gap:8px}
.steps .w{font-family:var(--font-mono);font-size:12.5px;font-weight:600;color:var(--jungle-600)}
.steps p{font-size:14px;color:var(--fg-2)}

.close{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:40px;align-items:end}
.close .fine{font-size:14px;color:var(--fg-2);max-width:52ch}
.close.rv{margin-top:52px}
.close-copy{display:flex;flex-direction:column;gap:14px}

.foot{padding:36px 0 44px}
.foot .wrap{display:flex;justify-content:space-between;gap:24px;flex-wrap:wrap;align-items:center}
.foot .mono{color:var(--fg-3)}
.foot .st{display:flex;gap:32px;flex-wrap:wrap}
.foot .st div{display:flex;flex-direction:column;gap:2px}
.foot .st b{font-family:var(--font-mono);font-size:22px;font-weight:600;color:var(--fg)}
.foot .st span{font-size:12.5px;color:var(--fg-3)}
/* pied : la signature, puis l'éditeur et les mentions légales */
.foot-fin{display:flex;flex-direction:column;gap:8px}
.foot-entite{margin:0;font-size:12.5px;color:var(--fg-3);max-width:64ch}
.foot-liens{display:flex;gap:18px;flex-wrap:wrap}
.foot-liens a{font-size:12.5px;font-weight:600;color:var(--fg-3);text-decoration:underline;text-underline-offset:3px}
.foot-liens a:hover{color:var(--primary)}

.rv{opacity:0;transform:translateY(12px);transition:opacity .5s var(--ease),transform .5s var(--ease)}
.rv.in{opacity:1;transform:none}

/* ==================== la séance, en deux écrans ==================== */
#seance{padding:0;border-bottom:1px solid var(--rule)}
.split-wrap{min-height:100vh;display:flex;flex-direction:column;justify-content:center;gap:22px;padding-top:76px;padding-bottom:40px}
.duo{display:grid;grid-template-columns:1fr 1fr;gap:24px}
.duo-p{padding:16px 16px 14px;display:flex;flex-direction:column;gap:10px;min-width:0;background:var(--card);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:4px 4px 0 var(--ink)}
.duo-h{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
.duo-h .mono{display:inline-flex;align-items:center;gap:6px;font-size:12.5px}
.duo-h .mono::before{content:"";width:8px;height:8px;border-radius:50%;border:1.5px solid var(--ink)}
.duo-a .duo-h .mono{color:var(--warning)} .duo-a .duo-h .mono::before{background:var(--warning)}
.duo-b .duo-h .mono{color:var(--success)} .duo-b .duo-h .mono::before{background:var(--success)}
.duo-t{font-family:var(--font-serif);font-weight:700;font-size:19px}
.duo-f{font-size:13.5px;color:var(--fg-3);margin:0}
.duo-f b{color:var(--fg);font-weight:700}
.fil{display:block;width:100%;height:auto;overflow:visible}
.wp{fill:var(--card);stroke-width:2}
.wp.bout{stroke-width:2.5;fill:var(--highlight)}
.duo-a .wp.bout{fill:var(--amber-100)}
.duo-b .wp.bout{fill:var(--highlight)}
.wp-b{font:600 11px var(--font-sans);fill:var(--fg-3)}
.duo-a .wp{stroke:var(--warning)}
.duo-b .wp{stroke:var(--ink)}
.wp.bad{stroke:var(--destructive)}
.wp.stop{stroke:var(--ink);fill:var(--red-50)}
.wp-n{font:600 13px var(--font-sans);fill:var(--fg)}
.wp-s{font:600 11px var(--font-sans)}
.duo-a .wp-s{fill:var(--destructive)}
.duo-b .wp-s{fill:var(--jungle-600)}
.wp-s.stop{fill:var(--ink)}
.dv{fill:var(--jungle-600);stroke:var(--ink);stroke-width:1}
.wp.pass{fill:var(--highlight)}
.dv.off{fill:var(--card)}
.fil.m .wp-n{font-size:17px} .fil.m .wp-s{font-size:14px} .fil.m .wp-b{font-size:14px}

/* bouton rond « section suivante » : un bouton secondaire carré, le DS n'a pas de pilule */
.compat-line{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;width:100%;gap:16px}
.compat-line>.compat-row{grid-column:2}
.compat-line>.nextdot{grid-column:3;justify-self:end}
.nextdot{width:48px;height:48px;padding:0;flex:none;display:inline-flex;align-items:center;justify-content:center;
  border:2px solid var(--ink);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow-hard-sm);
  color:var(--ink);text-decoration:none;cursor:pointer;transition:transform .12s,box-shadow .12s}
.nextdot svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nextdot:hover{transform:translate(-1px,-1px);box-shadow:var(--shadow-hard-md)}
.nextdot:active{transform:translate(2px,2px);box-shadow:none}
.compat{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.compat-row{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap}
.compat-i{display:flex;align-items:center;gap:12px;padding:9px 16px 9px 10px;border:2px solid var(--ink);border-radius:var(--radius);background:var(--card);box-shadow:var(--shadow-hard-sm)}
.compat-i img{width:27px;height:27px;display:block;border-radius:var(--radius);background:#fff}
.compat-i span{font-size:14px;font-weight:600;color:var(--fg);white-space:nowrap}
.compat-n{font-size:14px;color:var(--fg-2)}

/* ==================== l'instantané : pièces, bande, catalogue, frontière ==================== */
.pieces{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.pieces>div{background:var(--card);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:4px 4px 0 var(--ink);padding:22px 22px 24px;display:flex;flex-direction:column;gap:9px}
.pieces .ix{font-size:12.5px;font-weight:600;color:var(--jungle-600)}
.pieces h3{font-family:var(--font-serif);font-size:19px;font-weight:700;line-height:1.2}
.pieces p{font-size:14px;color:var(--fg-2)}
.pieces>div.core{background:var(--encre);color:#fff}
.pieces>div.core h3{color:#fff}
.pieces>div.core .ix{color:var(--jungle-300)}
.pieces>div.core p{color:#d6e4da}
.band{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:44px;align-items:center}
.band-3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.band-3>div{display:flex;flex-direction:column;gap:7px;padding-left:16px;border-left:3px solid var(--jungle-400)}
.band-3 p{font-size:14px;color:var(--fg-2)}
.cat{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.ag{background:var(--card);border:2px solid var(--ink);border-radius:var(--radius);box-shadow:var(--shadow-hard-sm);padding:22px 22px 24px;display:flex;flex-direction:column;gap:14px;transition:transform .12s,box-shadow .12s}
.ag:hover{transform:translate(-1px,-1px);box-shadow:var(--shadow-hard-md)}
.ag .mono{color:var(--primary)}
.ag h3{font-family:var(--font-serif);font-size:20px;font-weight:700}
.ag ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ag li{display:flex;gap:10px;align-items:baseline;font-size:14px;color:var(--fg-2)}
.ag li::before{content:"";width:7px;height:7px;border-radius:50%;border:1.5px solid var(--ink);background:var(--jungle-400);flex:none;transform:translateY(-1px)}
.ag .n{margin-top:auto;font-size:12.5px;color:var(--fg-3)}
.bnd{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.bnd>div{border-radius:var(--radius);padding:24px;display:flex;flex-direction:column;gap:14px;border:2px solid var(--ink);box-shadow:4px 4px 0 var(--ink)}
.bnd .ok{background:var(--jungle-50)}
.bnd .no{background:var(--red-50)}
.bnd .ok .mono{color:var(--success)} .bnd .no .mono{color:var(--destructive)}
.bnd ul{list-style:none;margin:0;padding:0}
.bnd li{padding:11px 0;border-top:1px solid rgba(20,23,20,.12);font-size:14px;color:var(--fg-2)}
.bnd li:first-child{border-top:0;padding-top:0}
.bnd li b{color:var(--fg);font-weight:700}

@media (max-width:900px){
  .compat-line{grid-template-columns:1fr;justify-items:center;gap:20px}
  .compat-line>.compat-row,.compat-line>.nextdot{grid-column:1;justify-self:center}
  .duo{grid-template-columns:1fr}
  .split-wrap{min-height:0;padding-top:56px}
}
@media (max-width:1140px){ .steps{grid-template-columns:1fr 1fr} .pieces{grid-template-columns:1fr 1fr} }
@media (max-width:960px){
  .head-grid{grid-template-columns:1fr;gap:30px;padding-top:32px}
  .nav nav{display:none}
  .close,.band,.cat,.bnd{grid-template-columns:1fr}
  .legend{display:flex}
  #soc .mod-s{display:none}
}

/* ==================== le réseau de l'organisation ==================== */
#autour:has(.orgwrap){min-height:calc(100vh - 62px);display:flex;align-items:stretch;padding:38px 0 32px;box-sizing:border-box}
#autour:has(.orgwrap)>.wrap{display:flex;flex-direction:column;justify-content:center;width:100%;min-height:0}
#autour:has(.orgwrap) .hd-row{margin-bottom:14px}
.hd-row{display:flex;align-items:flex-end;justify-content:space-between;gap:28px}
.hd-row-t{display:flex;flex-direction:column;gap:10px;max-width:66ch}
.hd-row-t .sub{max-width:84ch}
section[id]{scroll-margin-top:70px}
.pilfoot{display:flex;align-items:flex-end;justify-content:space-between;gap:32px;margin-top:12px}
.pilfoot .btn{flex:none}
.orgwrap{position:relative;background:transparent;--bleed:clamp(0px,calc((100vw - var(--wrap)) / 2 + 14px),120px);
  margin:2px calc(-1 * var(--bleed)) 0;width:calc(100% + 2 * var(--bleed));flex:1 1 0;min-height:190px;max-height:660px;display:flex}
.orgnet{display:block;flex:1 1 auto;min-width:0;width:100%;height:100%;overflow:visible}
.orgnet text{-webkit-user-select:none;user-select:none}
/* les lianes (sections 3 et 4) : valeurs posées par la boucle, AUCUNE transition dessus */
.vn{fill:none;stroke:var(--jungle-800);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.vn-f{fill:none;stroke:var(--jungle-300);stroke-width:2.6;stroke-linecap:round}
.vn-b{fill:none;stroke:var(--ink);stroke-width:1.3;opacity:.55;stroke-linecap:round}
.vn-fb{fill:none;stroke:var(--ink);stroke-width:2.2;stroke-linecap:round}
.vn-g{fill:none;stroke:#9ca49e;stroke-width:1.7;stroke-dasharray:2 6;stroke-linecap:round}
.vn-x{fill:none;stroke:var(--warning);stroke-width:2;stroke-linecap:round}
.vn-xf{fill:none;stroke:var(--warning);stroke-width:1.4;stroke-linecap:round}
.duo-a .vn{stroke:var(--ink);stroke-width:2.2;opacity:.82}
.duo-a .vn-xf{stroke:var(--ink)}
.vn-r{fill:none;stroke:var(--destructive);stroke-width:1.5;opacity:.6;stroke-dasharray:3 4;stroke-linecap:round}
.vn-rf{fill:none;stroke:var(--destructive);stroke-width:1.3;opacity:.7;stroke-linecap:round}
.lf{stroke:var(--ink);stroke-width:1.3;stroke-linejoin:round}
.lf-a{fill:var(--jungle-400)} .lf-b{fill:var(--jungle-200)} .lf-d{fill:var(--amber-100)}
.bud{fill:var(--jungle-600);stroke:var(--ink);stroke-width:1.2}
.doc{fill:var(--card);stroke:var(--ink);stroke-width:1.3}
.orgnet.m .on-nom{font-size:14px} .orgnet.m .on-nom.dorm{font-size:12px}
.orgnet.m .on-ag{font-size:12px} .orgnet.m .on-sub{font-size:11px} .orgnet.m .on-sub.dorm{font-size:10.5px}
.orgnet.m .on-soon{font-size:11px} .orgnet.m .on-hubn{font-size:12.5px} .orgnet.m .on-hubs{font-size:11.5px}
.on-ring{fill:none;stroke:rgba(20,23,20,.18);stroke-width:1.2}
.on-hub{fill:var(--highlight);stroke:var(--ink);stroke-width:2}
.on-dept{fill:var(--card);stroke:var(--ink);stroke-width:2}
.on-dept.dorm{fill:var(--cream);stroke:#9ca49e;stroke-dasharray:3 3}
.on-out-node{fill:var(--amber-100);stroke:var(--warning);stroke-width:1.6}
.on-hubn{font:700 12px var(--font-sans);fill:var(--fg)}
.on-hubs{font:400 12px var(--font-sans);fill:var(--jungle-600)}
.on-nom{font:700 17px var(--font-serif);fill:var(--fg)}
.on-nom.dorm{fill:#9ca49e}
.on-ag{font:700 11.5px var(--font-sans);fill:var(--jungle-600)}
.on-sub{font:400 11.5px var(--font-sans);fill:var(--fg-3)}
.on-sub.dorm{fill:#9ca49e}
.on-soon{font:600 10.5px var(--font-sans);fill:#9ca49e}
.on-g{transition:opacity .2s}
.orgwrap.sel .on-g{opacity:.13}
.orgwrap.sel .on-g.hit{opacity:1}
.orgwrap.sel .on-g.hit .vn{stroke-width:3.6}
.orgwrap.sel .on-g.hit .vn-b{opacity:.9;stroke-width:1.8}
/* les piliers : le contrôle segmenté du système */
.pil{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.pil button{font:600 13.5px var(--font-sans);color:var(--fg);background:var(--card);border:2px solid var(--ink);border-radius:var(--radius);
  box-shadow:var(--shadow-hard-sm);padding:6px 12px;cursor:pointer;transition:transform .12s,box-shadow .12s,background-color .12s}
.pil button:hover{transform:translate(-1px,-1px);box-shadow:var(--shadow-hard-md)}
.pil button[aria-pressed="true"]{background:var(--highlight);color:var(--ink)}
.pilx{margin:0;min-height:2.9em;max-width:84ch;display:flex;gap:14px;align-items:baseline}
.pilx b{font-size:13.5px;font-weight:700;color:var(--primary);white-space:nowrap;flex:none}
.pilx span{font-size:15px;color:var(--fg-2)}
.pilx.idle b{color:var(--fg-3)}

@media (max-width:900px){
  .hd-row{flex-direction:column;align-items:flex-start;gap:16px}
  .pilfoot{flex-direction:column;align-items:stretch;gap:18px}
  .pilfoot .btn{align-self:flex-start}
  #autour:has(.orgwrap){min-height:0;display:block}
  #autour:has(.orgwrap)>.wrap{display:block}
  .orgwrap{flex:none}
  .orgnet{height:clamp(290px,74vw,540px)}
}
@media (max-width:620px){
  .pilx{flex-direction:column;gap:6px}
  .orgnet{height:auto}
  .nav .brand span{display:none}
  .nav-actions .btn-cta,.nav-sep{display:none}
  .wrap{padding:0 20px}
  .sec{padding:56px 0}
  .steps,.pieces,.band-3{grid-template-columns:1fr}
  .readout{grid-template-columns:1fr 1fr}
  .readout>div:nth-child(3){border-left:0}
  .readout>div:nth-child(n+3){border-top:1px solid var(--border)}
  .llm-row{position:relative}
  .llm{position:static}
  .pop{left:0;right:auto;width:auto;max-width:min(300px,calc(100vw - 40px))}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
  .rv{opacity:1;transform:none}
}
