/* Klystron — feuille de style unique, organisée par section.
   Règle visuelle : ce qui tourne dans SAP est bleu nuit (.dark-box),
   ce qui vit chez le visiteur reste clair. Aucun style inline (CSP). */

/* ---------- 1. Jetons et base ---------- */
:root { color-scheme: dark; --bg: #0b1420; --surface: #111f30; --surface-2: #182b40; --text: #f3f7fc; --muted: #a8bbcf; --line: #30455c; --accent: #64beff; --ink: #07182a; --card-shadow: 0 16px 44px #0003, 0 1px 0 #ffffff0c inset; --hero-glow: #137fcb2b; --chip-bg: #182b40; }
[data-theme=light] { color-scheme: light; --bg: #f7faff; --surface: #ffffff; --surface-2: #edf4fc; --text: #122b44; --muted: #476079; --line: #d4e1ef; --accent: #0070c9; --ink: #ffffff; --card-shadow: 0 18px 45px #13396514, 0 2px 5px #13396504; --hero-glow: #8fc8ff99; --chip-bg: #ffffff; }
.dark-box { --bg: #0c223a; --surface: #102e4e; --surface-2: #153c60; --text: #f3f8ff; --muted: #b4c9de; --line: #2d4965; --accent: #73caff; --ink: #072849; --chip-bg: #0c223a; background: linear-gradient(140deg, #153c60, #0c223a 45%, #091a2d); color: var(--text); border: 1px solid #315a7f; border-radius: 14px; box-shadow: 0 24px 60px #092c4e33; overflow: hidden; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 40px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; background-image: radial-gradient(ellipse 900px 700px at 78% 300px, var(--hero-glow), transparent 72%); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--ink); }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.025em; }
svg { display: block; }
img { max-width: 100%; }
code { font-family: Consolas, 'Courier New', monospace; font-size: .95em; }
a[href^='#'] { scroll-margin-top: 20px; }
.section-shell { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.section-spacing { padding-block: 110px; }
.eyebrow { font-family: var(--font-label); font-size: 10px; font-weight: 400; line-height: 1.5; letter-spacing: .04em; color: var(--muted); }
.accent-text { color: var(--accent); }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.skip-link { position: fixed; left: 15px; top: -80px; z-index: 99; background: var(--accent); color: var(--ink); padding: 12px 20px; }
.skip-link:focus { top: 15px; }
.card-kicker { display: block; font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips > span { font-size: 11px; line-height: 1.4; padding: 5px 10px; border: 1px solid var(--line); background: var(--chip-bg); color: var(--text); border-radius: 4px; }
.chips > .chip-active { border-color: var(--accent); color: var(--accent); background: #0070c912; }
.dark-box .chips > span { background: var(--chip-bg); border-color: #2f5374; }

/* Titres de section */
.section-heading { margin-bottom: 44px; }
.section-heading .eyebrow { color: var(--accent); margin-bottom: 22px; }
h2 { font-size: clamp(34px, 4.1vw, 56px); }
.section-heading > p:last-child:not(.eyebrow) { color: var(--muted); margin-top: 24px; font-size: 15px; line-height: 1.85; max-width: 560px; }
.two-column { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: end; }
.two-column > p:last-child { margin-top: 0 !important; max-width: 420px; }

/* Boutons et liens */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 51px; border: 1px solid var(--accent); background: var(--accent); color: var(--ink); padding: 14px 24px; font-size: 13px; font-weight: 600; line-height: 1.5; border-radius: 9px; box-shadow: 0 6px 18px #0070c924; transition: transform .2s, box-shadow .2s; }
.button > span { font-size: 20px; font-weight: 400; line-height: 1; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 25px #0070c936; }
.button-small { min-height: 41px; padding: 10px 16px; gap: 14px; font-size: 11px; }
.button-light { background: #fff; border-color: #fff; color: #0757a0; box-shadow: 0 10px 30px #06377530; white-space: nowrap; }
.button-light:hover { box-shadow: 0 15px 35px #06377550; }
.text-link { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; border-bottom: 1px solid var(--line); padding-bottom: 5px; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link span { font-size: 18px; }
.icon-button { border: 0; background: none; width: 34px; height: 34px; display: grid; place-items: center; padding: 7px; border-radius: 8px; }

/* ---------- 2. En-tête et navigation ---------- */
.site-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; width: min(1280px, calc(100% - 112px)); margin: auto; position: relative; z-index: 10; gap: 25px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.025em; line-height: 1; }
.brand svg { width: 31px; height: 31px; stroke: var(--accent); stroke-width: 2.4; fill: none; }
.brand-period { color: var(--accent); }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; margin-right: 10px; }
.desktop-nav a { font-size: 12px; color: var(--muted); white-space: nowrap; transition: color .2s; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.language-switch { display: flex; align-items: center; gap: 2px; flex-shrink: 0; font-family: var(--font-label); font-size: 10px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.language-switch a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; min-width: 30px; padding: 5px 7px; color: var(--muted); border-radius: 5px; }
.language-switch a:hover { color: var(--text); }
.language-switch a[aria-current=page] { color: var(--accent); background: #0070c912; box-shadow: 0 0 0 1px #0070c940 inset; }
.language-flag { display: block; flex-shrink: 0; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px #0002; }
.theme-toggle svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 1.4; fill: none; }
.theme-toggle:hover svg { stroke: var(--accent); }
.menu-toggle, .mobile-nav { display: none; }

/* ---------- 3. Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr 1.03fr; gap: 4%; align-items: center; padding-top: 45px; padding-bottom: 70px; min-height: 690px; }
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #0070c929; border-radius: 20px; color: var(--accent); background: #0070c907; font-size: 9px; margin-bottom: 26px; }
.tiny-cross { font-size: 18px; line-height: 10px; }
h1 { font-size: clamp(58px, 6.4vw, 92px); line-height: 1.02; }
h1 > span { color: var(--accent); }
.hero-description { max-width: 455px; font-size: 16px; line-height: 1.8; margin-top: 28px; color: var(--muted); }
.hero-description em { font-style: normal; color: var(--text); }
.hero-buttons { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.hero-principles { list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 12px; }
.hero-principles li { display: flex; gap: 8px; align-items: center; }
.hero-principles b { font-weight: 400; font-size: 10px; color: var(--accent); }

/* Schéma du hero : agent → SAP → règles */
.hero-diagram { display: flex; flex-direction: column; min-width: 0; }
.diagram-card { padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--card-shadow); }
.diagram-card.dark-box { padding: 0; }
.diagram-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--font-label); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.diagram-kicker b { font-weight: 600; color: var(--accent); }
.diagram-kicker > span { margin-left: auto; font-size: 8px; text-align: right; }
.diagram-prompt { margin-block: 12px; font-size: 16px; line-height: 1.45; letter-spacing: -.01em; font-weight: 600; }
.diagram-link { display: flex; justify-content: space-between; gap: 12px; padding: 10px 22px; font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.diagram-link span { display: flex; align-items: center; gap: 10px; }
.diagram-link i { font-style: normal; font-size: 20px; line-height: 1; color: var(--accent); }
.diagram-sap .diagram-kicker { padding: 14px 22px; border-bottom: 1px solid var(--line); }
.rules-kicker { border-top: 1px solid var(--line); background: var(--surface-2); }
.server-row { padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.server-name { display: flex; gap: 14px; align-items: center; min-width: 0; }
.server-name strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.server-name strong span { color: var(--accent); }
.server-name small { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.mini-mark { height: 38px; width: 38px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); font-size: 23px; font-weight: 600; font-family: var(--font-display); }
.server-detail { font-family: var(--font-label); font-size: 10px; line-height: 1.7; color: var(--muted); text-align: right; flex-shrink: 0; }
.control-nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.control-nodes > div { padding: 14px 22px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.control-nodes > div + div { border-left: 1px solid var(--line); }
.control-nodes span { font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--accent); }
.control-nodes strong { font-family: var(--font-display); font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.control-nodes small { font-size: 10px; color: var(--muted); line-height: 1.5; }
.diagram-sap .control-nodes { border-top: 1px solid var(--line); }

/* ---------- 4. 01 La plateforme ---------- */
.platform-section { background: var(--surface); border-block: 1px solid var(--line); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pillar { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 12px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--card-shadow); }
.pillar-number { display: flex; align-items: baseline; gap: 10px; }
.pillar-number span { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.pillar-number small { font-family: var(--font-label); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.pillar h3 { font-size: 26px; }
.pillar p { font-size: 13px; line-height: 1.8; color: var(--muted); flex-grow: 1; }
.pillar .text-link { align-self: flex-start; color: var(--accent); font-size: 12px; }

/* ---------- 5. 02 Les usages ---------- */
.scenario-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 64px; align-items: start; }
.scenario-tabs { display: flex; flex-direction: column; }
.scenario-tabs button { text-align: left; display: flex; align-items: flex-start; gap: 20px; background: none; border: 1px solid transparent; border-radius: 10px; padding: 25px 16px; margin-bottom: 8px; color: var(--muted); position: relative; transition: background .2s, box-shadow .2s; }
.scenario-tabs button[aria-selected=true] { color: var(--text); background: var(--surface); box-shadow: var(--card-shadow); border-color: var(--line); }
.scenario-tabs button[aria-selected=true]::before { content: ''; position: absolute; left: 0; top: 30%; height: 40%; width: 3px; border-radius: 2px; background: var(--accent); }
.scenario-tabs button:hover { color: var(--text); background: var(--surface); }
.tab-number { font-family: var(--font-label); font-size: 10px; padding-top: 3px; }
.scenario-tabs strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.scenario-tabs small { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }
.tab-arrow { margin-left: auto; font-size: 26px; line-height: 1.4; opacity: 0; }
.scenario-tabs button[aria-selected=true] .tab-arrow { opacity: 1; color: var(--accent); }
.scenario-panel { min-width: 0; min-height: 470px; border-radius: 18px; }
.terminal-header { display: flex; align-items: center; gap: 17px; padding: 20px 25px; border-bottom: 1px solid var(--line); background: #ffffff04; font-family: var(--font-label); font-size: 9px; letter-spacing: .04em; color: var(--muted); }
.terminal-header > span:first-child { display: flex; gap: 5px; }
.terminal-header i { width: 6px; height: 6px; border: 1px solid var(--muted); border-radius: 50%; }
.terminal-tag { margin-left: auto; font-size: 8px; }
.terminal-body { padding: 30px; }
.prompt-marker { font-family: var(--font-label); font-size: 9px; letter-spacing: .04em; color: var(--accent); display: flex; justify-content: space-between; }
.prompt-marker > span { font-size: 20px; line-height: 15px; }
.scenario-prompt { font-family: var(--font-display); font-size: 23px; line-height: 1.45; margin-top: 13px; min-height: 91px; letter-spacing: -.025em; }
.scenario-steps { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 12px; }
.scenario-steps li { font-family: var(--font-label); font-size: 12px; color: var(--muted); display: flex; gap: 16px; }
.scenario-steps li > span { color: var(--accent); font-size: 9px; }
.scenario-outcome { border-top: 1px solid var(--line); padding-top: 18px; display: flex; gap: 13px; align-items: start; font-size: 13px; line-height: 1.6; }
.scenario-outcome > span:first-child { color: var(--accent); font-size: 20px; line-height: 18px; }
.terminal-footer { padding: 17px 25px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.terminal-footer .status-dot { width: 4px; height: 4px; }

/* Lecteur de replay de session (premier onglet) */
.replay-status { display: flex; align-items: center; gap: 6px; color: var(--accent); opacity: 1; }
.replay-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.replay-meta > div { padding: 10px 22px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.replay-meta > div + div { border-left: 1px solid var(--line); }
.replay-meta dt { font-family: var(--font-label); font-size: 8px; letter-spacing: .06em; color: var(--muted); }
.replay-meta dd { margin: 0; font-size: 14px; font-weight: 600; }
.replay-transcript { padding: 6px 30px 14px; display: flex; flex-direction: column; }
.replay-turn { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid #1f3a57; }
.replay-turn:first-child { border-top: 0; }
.replay-who { font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--muted); padding-top: 2px; line-height: 1.5; }
.replay-turn:first-child .replay-who { color: var(--accent); }
.replay-turn p { font-size: 12px; line-height: 1.65; color: #e6eef8; }
.replay-tools { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.replay-tools code { font-size: 10.5px; padding: 2px 7px; border: 1px solid #315a7f; border-radius: 4px; background: var(--bg); color: var(--accent); }
.replay-phases { list-style: none; margin: 0; padding: 12px 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); background: var(--bg); }
.replay-phases li { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.replay-phases span { color: var(--accent); }
.replay-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--line); }
.replay-action { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 16px; border: 1px solid #315a7f; border-radius: 6px; font-size: 12px; }
.replay-action-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); font-weight: 600; }
.replay-actions small { margin-left: auto; font-size: 10px; color: var(--muted); max-width: 320px; line-height: 1.5; }

/* ---------- 6. 03 Comment ça marche ---------- */
.how-section { background: var(--surface); border-block: 1px solid var(--line); padding-bottom: 0; }
.how-block { display: flex; flex-direction: column; gap: 24px; margin-top: 56px; }
.how-title { display: flex; align-items: baseline; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.how-title .eyebrow { color: var(--accent); flex-shrink: 0; }
.how-title h3 { font-size: 28px; }
.how-title h4 { font-size: 20px; }
.how-title p { margin-left: auto; font-size: 12px; color: var(--muted); text-align: right; max-width: 460px; }
.how-subtitle { margin-top: 16px; }
.how-note { font-size: 12px; line-height: 1.8; color: var(--muted); max-width: 900px; }
.how-note strong { color: var(--text); font-weight: 600; }

/* 3.1 Le serveur dans SAP */
.server-map { display: grid; grid-template-columns: 1fr 210px 1.25fr; align-items: stretch; }
.env-column { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.env-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.env-card:last-child { flex-grow: 1; }
.env-card > strong { display: flex; justify-content: space-between; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.env-card > strong span { color: var(--accent); }
.env-card > small { font-size: 10px; line-height: 1.6; color: var(--muted); }
.env-link { display: flex; align-items: center; gap: 10px; padding: 0 4px; font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.env-link i { font-style: normal; font-size: 16px; line-height: 1; color: var(--accent); }
.file-tree { display: flex; flex-direction: column; margin-block: 4px; }
.file-tree > div { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0 2px 16px; }
.file-tree > .file-dir { padding-left: 0; }
.file-tree code { font-size: 11px; }
.file-dir code { font-weight: 600; }
.file-tree small { font-size: 9px; color: var(--muted); white-space: nowrap; }
.file-custom code { color: var(--accent); }
.map-connector { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 20px 14px; text-align: center; }
.connector-title { font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.map-connector > div { display: flex; flex-direction: column; gap: 4px; }
.map-connector i { font-style: normal; font-size: 22px; line-height: 1; color: var(--accent); }
.map-connector b { font-family: var(--font-label); font-size: 9px; font-weight: 400; letter-spacing: .06em; color: var(--accent); }
.map-connector strong { font-size: 10px; font-weight: 600; line-height: 1.5; }
.map-connector span { font-size: 10px; line-height: 1.5; color: var(--muted); }
.sap-boundary { display: flex; flex-direction: column; border-radius: 12px; }
.boundary-title { display: flex; align-items: center; gap: 9px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; }
.boundary-title > span:last-child { margin-left: auto; font-size: 8px; color: var(--muted); }
.repository { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.repository-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.repository-title span { font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--accent); }
.repository-title small { font-size: 9px; color: var(--muted); }
.repository p { font-size: 11px; line-height: 1.7; color: var(--muted); }
.repository p strong { font-weight: 600; color: var(--text); }
.sap-boundary .control-nodes { border-top: 1px solid var(--line); background: var(--surface-2); }
.sap-boundary .control-nodes > div { padding: 12px 22px; }
.sap-boundary .control-nodes span { text-transform: none; letter-spacing: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.feature-grid > article { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.feature-grid h4 { font-size: 17px; }
.feature-grid p { font-size: 12px; line-height: 1.8; color: var(--muted); }

/* 3.2 Le plugin agentique */
.stack { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: stretch; }
.stack-rail { display: flex; flex-direction: column; gap: 8px; }
.stack-rail span { display: flex; align-items: center; padding-left: 10px; font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; writing-mode: vertical-rl; transform: rotate(180deg); }
.rail-plugin { flex-grow: 2; border-right: 2px solid var(--accent); color: var(--accent); }
.rail-server { flex-grow: 1; border-right: 2px solid var(--muted); color: var(--muted); }
.stack-rows { display: flex; flex-direction: column; gap: 10px; }
.stack-row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; padding: 20px 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.stack-row.dark-box { border-radius: 10px; }
.stack-label { display: flex; flex-direction: column; gap: 4px; }
.stack-label strong { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.stack-label small { font-size: 11px; line-height: 1.6; color: var(--muted); }
.stack-link { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 0 24px; }
.stack-link::before { content: ''; }
.stack-link i { font-style: normal; font-size: 18px; line-height: 1; color: var(--accent); margin-right: 10px; }
.stack-link { font-family: var(--font-label); font-size: 10px; letter-spacing: .06em; color: var(--muted); }
.agent-workflow { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; }
.agent-workflow > li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); box-shadow: var(--card-shadow); min-width: 0; }
.agent-step-top { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.agent-step-top > span:last-child { color: var(--accent); font-size: 14px; }
.agent-role { font-size: 11px; color: var(--muted); }
.agent-workflow h5 { font-size: 24px; }
.agent-workflow h5 + p { font-size: 12px; line-height: 1.75; color: var(--muted); flex-grow: 1; }
.agent-proof { border-top: 1px solid var(--line); padding-top: 10px; font-size: 11px; line-height: 1.6; }
.agent-proof > span { display: block; font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--accent); }

/* 3.3 Le Central Hub */
.hub-band { --bg: #0a223c; --surface: #102e4e; --surface-2: #1b4166; --text: #f4f8ff; --muted: #b7cce1; --line: #2f5374; --accent: #73caff; --ink: #082139; --chip-bg: #102e4e; color: var(--text); margin-top: 56px; padding: 48px 0 72px; background: radial-gradient(ellipse at 50% 45%, #134779 0, #0a2340 50%, #071b31 100%); }
.hub-band .how-title { border-color: var(--line); }
.hub-loop { position: relative; width: 100%; aspect-ratio: 1280 / 540; margin-top: 28px; }
.hub-arrows { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-ring { fill: none; stroke: var(--line); stroke-dasharray: 3 9; }
.hub-in { fill: none; stroke: var(--accent); stroke-width: 2; }
.hub-out { fill: none; stroke: #f4f8ff; stroke-width: 2; stroke-dasharray: 7 6; }
#hub-arrow-in path { fill: var(--accent); }
#hub-arrow-out path { fill: #f4f8ff; }
.hub-core { fill: var(--surface-2); stroke: var(--accent); stroke-width: 1.5; }
.hub-client { position: absolute; width: 19.5%; min-height: 17.8%; padding: 1.2% 1.4%; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; transform: translate(-50%, -50%); }
.hub-client strong { font-family: var(--font-display); font-size: clamp(11px, 1.15vw, 15px); font-weight: 600; }
.hub-client small { font-size: clamp(8px, .85vw, 11px); line-height: 1.5; color: var(--muted); }
.hub-client .card-kicker { font-size: clamp(7px, .7vw, 9px); color: var(--muted); }
.hub-client-a { left: 14.85%; top: 20.4%; }
.hub-client-b { left: 85.15%; top: 20.4%; }
.hub-client-c { left: 14.85%; top: 79.6%; }
.hub-client-d { left: 85.15%; top: 79.6%; }
.hub-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 16%; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.hub-center .card-kicker { font-size: clamp(7px, .7vw, 9px); }
.hub-center strong { font-family: var(--font-display); font-size: clamp(16px, 1.9vw, 24px); font-weight: 600; }
.hub-center small { font-size: clamp(9px, .95vw, 12px); line-height: 1.5; color: var(--muted); }
.hub-common { font-family: var(--font-label); font-size: clamp(7px, .7vw, 9px); letter-spacing: .06em; color: var(--muted); margin-top: 1.5em; }
.hub-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 48px; font-size: 11px; }
.hub-legend span { display: flex; align-items: center; gap: 10px; }
.hub-legend i { display: block; width: 34px; height: 0; border-top: 2px solid var(--accent); }
.hub-legend .legend-out { border-top: 2px dashed #f4f8ff; }
.hub-steps { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hub-steps li { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.hub-steps strong { font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.hub-steps p { font-size: 12px; line-height: 1.75; color: var(--muted); }
.hub-note { margin-top: 28px; font-size: 12px; color: var(--muted); }

/* ---------- 7. 04 Pourquoi maintenant ---------- */
.market-section { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.market-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.market-layout .section-heading { margin-bottom: 0; }
.market-layout .section-heading > p:last-child { font-size: 13px; }
.market-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.market-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--card-shadow); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.market-card::before { content: ''; position: absolute; width: 200px; height: 200px; right: -80px; top: -80px; border-radius: 50%; background: radial-gradient(circle, #0070c913, transparent 70%); }
.card-overline { font-family: var(--font-label); font-size: 9px; letter-spacing: .06em; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; }
.card-overline > span { font-size: 15px; color: var(--accent); }
.year { font-family: var(--font-display); font-size: 64px; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; color: var(--accent); }
.year > span { font-size: 22px; color: var(--muted); margin-left: 14px; white-space: nowrap; }
.market-card h3 { font-size: 22px; line-height: 1.2; }
.market-card > p { font-size: 12px; line-height: 1.75; color: var(--muted); flex-grow: 1; }
.source-link { font-size: 10px; color: var(--muted); padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.source-link:hover { color: var(--accent); }
.ecosystem-glyph { display: flex; align-items: center; justify-content: center; height: 76px; }
.ecosystem-glyph > span { display: grid; place-items: center; font-family: var(--font-label); font-size: 16px; border: 1px solid var(--line); width: 64px; height: 64px; border-radius: 50%; flex-shrink: 1; background: var(--bg); }
.ecosystem-glyph > span:nth-of-type(2) { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 6px #0070c908; }
.ecosystem-glyph i { display: block; height: 1px; background: var(--line); width: 36px; flex-shrink: 1; }

/* ---------- 8. 05 FAQ ---------- */
.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: start; }
.faq-section .eyebrow { color: var(--accent); margin-bottom: 22px; }
.faq-section h2 { font-size: 44px; }
.faq-intro { color: var(--muted); font-size: 13px; margin-top: 22px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details[open] { background: var(--surface); border-radius: 10px; padding-inline: 15px; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 23px; padding-block: 20px; cursor: pointer; font-size: 15px; line-height: 1.6; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary > span { color: var(--accent); font-family: var(--font-label); font-size: 23px; transition: transform .2s; }
.faq-list details[open] summary > span { transform: rotate(45deg); }
.faq-list details > p { color: var(--muted); font-size: 14px; line-height: 1.85; padding-bottom: 22px; max-width: 560px; }

/* ---------- 9. 06 Pilote ---------- */
.pilot-section { background: radial-gradient(ellipse at 85% 20%, #2394e4, transparent 55%), linear-gradient(115deg, #06478f, #0070c9 70%, #0a3e75); color: #fff; padding-block: 80px; }
.pilot-section .eyebrow { color: #d4eaff; }
.pilot-heading { display: flex; align-items: center; justify-content: space-between; gap: 35px; margin-top: 30px; }
.pilot-heading h2 { font-size: clamp(30px, 3.7vw, 51px); line-height: 1.15; }
.pilot-heading h2 > span { color: #cceaff; }
.pilot-section p:last-child { font-size: 13px; margin-top: 24px; color: #e1f1ff; }
.pilot-section noscript a { text-decoration: underline; }

/* ---------- 10. Pied de page ---------- */
.footer-main { display: flex; align-items: center; gap: 32px; padding-block: 50px; }
.footer-main .brand { font-size: 25px; }
.footer-main .brand svg { width: 25px; height: 25px; }
.footer-main p { font-size: 12px; color: var(--muted); margin-right: auto; }
.footer-main > a:not(.brand) { font-size: 12px; color: var(--muted); }
.footer-main > a:hover { color: var(--accent); }
.footer-bottom { display: flex; gap: 25px; justify-content: space-between; align-items: start; border-top: 1px solid var(--line); padding-block: 24px; font-size: 10px; color: var(--muted); line-height: 1.8; }
.footer-bottom a { white-space: nowrap; }
.footer-bottom a:hover { color: var(--text); }

/* ---------- 11. Dialogue et formulaire ---------- */
dialog { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 32px; max-width: 520px; width: calc(100% - 32px); max-height: calc(100dvh - 40px); overflow-y: auto; box-shadow: 0 30px 100px #0005; }
dialog::backdrop { background: #020c19c9; backdrop-filter: blur(7px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dialog-heading .eyebrow { color: var(--accent); }
.dialog-close { font-size: 28px; line-height: 1; }
.dialog-close:hover { color: var(--accent); }
dialog h2 { font-size: 34px; }
.dialog-description { font-size: 13px; color: var(--muted); margin-block: 15px 25px; }
form { display: grid; gap: 17px; }
form label { display: grid; gap: 6px; font-size: 13px; }
form select, form textarea { border: 1px solid var(--line); background: var(--bg); color: var(--text); border-radius: 8px; padding: 10px; font-size: 14px; width: 100%; }
form textarea { resize: vertical; min-height: 95px; }
form .button { margin-top: 5px; }
form small { font-size: 11px; color: var(--muted); }
#form-status:empty { display: none; }
#form-status { font-size: 11px; color: var(--accent); }
body.dialog-open { overflow: hidden; }
body:not(.js-ready) .theme-toggle, body:not(.js-ready) .menu-toggle, body:not(.js-ready) #open-pilot { display: none; }

/* ---------- 12. Adaptations ---------- */
html[lang=de] h1 { font-size: clamp(54px, 5.8vw, 84px); }
html[lang=de] .hero-buttons { flex-wrap: wrap; gap: 20px; }

@media (max-width: 1250px) { .desktop-nav { display: none; } }
@media (max-width: 1150px) {
  .section-shell, .site-header { width: calc(100% - 64px); }
  .section-spacing { padding-block: 85px; }
  .hero { gap: 4%; padding-top: 35px; min-height: 590px; }
  h1 { font-size: 72px; }
  .hero-description { font-size: 14px; }
  .hero-buttons { gap: 19px; }
  .hero .button { padding: 12px 18px; font-size: 11px; gap: 17px; }
  .two-column { gap: 35px; }
  .scenario-layout { gap: 35px; }
  .server-map { grid-template-columns: 1fr 170px 1.2fr; }
  .stack-row, .stack-link { grid-template-columns: 180px 1fr; }
  .agent-workflow { gap: 16px; }
  .agent-workflow > li { padding: 20px; }
  .agent-workflow h5 { font-size: 21px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-client { width: 21%; }
  .pilot-heading { gap: 25px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: 0; }
  .hero-diagram { max-width: 640px; }
  h1 { font-size: 64px; }
  .hero-buttons { flex-wrap: wrap; gap: 18px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar p { flex-grow: 0; }
  .scenario-layout { grid-template-columns: 1fr; gap: 25px; }
  .scenario-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .scenario-tabs button { gap: 10px; padding: 17px 12px; margin: 0; }
  .scenario-tabs strong { font-size: 16px; line-height: 1.25; }
  .scenario-tabs small { font-size: 9px; }
  .tab-arrow { display: none; }
  .tab-number { font-size: 8px; }
  .scenario-panel { min-height: 0; }
  .scenario-prompt { min-height: 0; max-width: 580px; }
  .two-column { grid-template-columns: 1fr; }
  .two-column > p:last-child { max-width: 580px; font-size: 13px; }
  .how-title { flex-wrap: wrap; }
  .how-title p { margin-left: 0; text-align: left; width: 100%; max-width: none; }
  .server-map { grid-template-columns: 1fr; gap: 16px; }
  .map-connector { flex-direction: row; flex-wrap: wrap; gap: 16px; padding: 0 4px; text-align: left; }
  .connector-title { width: 100%; }
  .map-connector > div { flex: 1 1 40%; }
  .map-connector i { transform: rotate(90deg); width: 22px; }
  .stack { grid-template-columns: 1fr; }
  .stack-rail { display: none; }
  .stack-row, .stack-link { grid-template-columns: 1fr; gap: 14px; }
  .stack-link::before { display: none; }
  .agent-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hub-loop { aspect-ratio: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hub-arrows { display: none; }
  .hub-client, .hub-center, .hub-legend { position: static; transform: none; width: auto; }
  .hub-client { padding: 16px; }
  .hub-center { grid-column: 1 / -1; padding: 22px; border: 1px solid var(--accent); border-radius: 10px; background: var(--surface-2); order: -1; }
  .hub-legend { grid-column: 1 / -1; flex-direction: column; gap: 8px; margin-top: 8px; }
  .hub-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-layout { grid-template-columns: 1fr; gap: 35px; }
  .faq-section { gap: 35px; grid-template-columns: .65fr 1fr; }
  .faq-section h2 { font-size: 33px; }
  .pilot-heading { flex-direction: column; align-items: start; }
  .footer-main { flex-wrap: wrap; gap: 23px; }
  .footer-main p { width: calc(100% - 195px); }
  .footer-bottom { flex-wrap: wrap; gap: 10px 25px; }
}
@media (max-width: 650px) {
  html { scroll-padding-top: 20px; }
  .section-shell, .site-header { width: calc(100% - 40px); }
  .section-spacing { padding-block: 65px; }
  .site-header { min-height: 85px; gap: 10px; }
  .brand { font-size: 25px; gap: 8px; }
  .brand svg { width: 25px; height: 25px; }
  .header-actions { gap: 4px; }
  .header-cta { display: none; }
  .language-switch { padding: 2px; font-size: 9px; }
  .language-switch a { flex-direction: column; gap: 4px; min-height: 40px; min-width: 27px; padding: 4px 3px; font-size: 8px; line-height: 1; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
  .menu-toggle > span { display: block; width: 20px; height: 1px; background: var(--text); transition: transform .2s; }
  .menu-toggle[aria-expanded=true] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav:not([hidden]) { display: flex; position: absolute; top: 75px; left: -20px; right: -20px; padding: 15px 25px 23px; background: var(--surface); border-bottom: 1px solid var(--line); flex-direction: column; box-shadow: 0 15px 20px #0003; }
  .mobile-nav > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  body { background-image: radial-gradient(ellipse 480px 780px at 100% 300px, var(--hero-glow), transparent 75%); }
  .hero { padding-top: 22px; padding-bottom: 35px; gap: 30px; }
  .hero .eyebrow { font-size: 8px; padding: 7px 10px; margin-bottom: 22px; }
  h1 { font-size: clamp(52px, 13vw, 78px); }
  html[lang=de] h1 { font-size: clamp(46px, 12vw, 74px); }
  .hero-description { font-size: 13px; max-width: 390px; margin-top: 24px; line-height: 1.85; }
  .hero-buttons { gap: 18px; margin-top: 26px; }
  .hero .button { font-size: 11px; min-height: 48px; padding: 12px 16px; gap: 18px; border-radius: 8px; }
  .hero .text-link { font-size: 11px; white-space: nowrap; }
  .hero-principles { gap: 8px 16px; font-size: 11px; }
  .diagram-card { padding: 16px; }
  .diagram-kicker { flex-wrap: wrap; }
  .diagram-kicker > span { margin-left: 0; text-align: left; width: 100%; }
  .diagram-prompt { font-size: 14px; }
  .diagram-link { flex-direction: column; gap: 6px; padding: 10px 4px; }
  .diagram-sap .diagram-kicker { padding: 12px 16px; }
  .server-row { flex-direction: column; align-items: start; padding: 16px; gap: 10px; }
  .server-detail { text-align: left; }
  .control-nodes { grid-template-columns: 1fr; }
  .control-nodes > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .control-nodes > div { padding: 12px 16px; }
  .eyebrow { font-size: 8px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading .eyebrow { margin-bottom: 18px; }
  h2 { font-size: 36px; }
  .section-heading > p:last-child:not(.eyebrow) { font-size: 12px; margin-top: 19px; }
  .pillar { padding: 24px 20px; }
  .pillar h3 { font-size: 23px; }
  .scenario-tabs { grid-template-columns: repeat(2, 1fr); }
  .scenario-tabs button { padding: 14px 10px; }
  .scenario-tabs strong { font-size: 15px; }
  .terminal-header { padding: 15px; font-size: 7px; gap: 10px; flex-wrap: wrap; }
  .terminal-tag { font-size: 6px; letter-spacing: 0; }
  .terminal-body { padding: 22px 18px; }
  .scenario-prompt { font-size: 20px; margin-top: 15px; }
  .scenario-steps { gap: 14px; margin-block: 23px; }
  .scenario-steps li { font-size: 10px; line-height: 1.6; gap: 12px; }
  .scenario-outcome { font-size: 11px; }
  .terminal-footer { font-size: 9px; padding: 12px 15px; align-items: start; }
  .terminal-footer .status-dot { margin-top: 5px; }
  .replay-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .replay-meta > div { padding: 8px 14px; }
  .replay-meta > div:nth-child(3) { border-left: 0; }
  .replay-meta > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .replay-transcript { padding: 4px 16px 10px; }
  .replay-turn { grid-template-columns: 1fr; gap: 4px; }
  .replay-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px 14px; }
  .replay-actions { padding: 12px 14px; }
  .replay-actions small { margin-left: 0; max-width: none; }
  .how-block { margin-top: 40px; gap: 18px; }
  .how-title h3 { font-size: 24px; }
  .env-column { padding: 16px; }
  .file-tree small { display: none; }
  .env-column, .env-card, .map-connector, .map-connector > div, .sap-boundary, .repository { min-width: 0; }
  .file-tree code, .env-card > strong, .map-connector strong, .map-connector span { overflow-wrap: anywhere; }
  .file-tree > div { padding-left: 10px; }
  .chips > span { overflow-wrap: anywhere; }
  .map-connector > div { flex-basis: 100%; }
  .boundary-title { padding: 12px 16px; }
  .boundary-title > span:last-child { display: none; }
  .repository { padding: 14px 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 20px; }
  .stack-row { padding: 16px; }
  .agent-workflow { grid-template-columns: 1fr; }
  .hub-band { padding: 36px 0 56px; }
  .hub-loop { grid-template-columns: 1fr; }
  .hub-steps { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; gap: 16px; }
  .market-card { padding: 24px; }
  .year { font-size: 56px; }
  .year > span { display: block; margin: 6px 0 0; font-size: 20px; }
  .faq-section { grid-template-columns: 1fr; gap: 25px; }
  .faq-section h2 { font-size: 36px; }
  .faq-intro { display: none; }
  .faq-list summary { font-size: 13px; padding-block: 18px; }
  .faq-list details > p { font-size: 12px; }
  .pilot-section { padding-block: 50px; }
  .pilot-heading { margin-top: 25px; gap: 25px; }
  .pilot-heading h2 { font-size: 34px; }
  .pilot-section p:last-child { font-size: 11px; margin-top: 18px; }
  .footer-main { padding-block: 36px; gap: 23px; }
  .footer-main .brand { width: 100%; }
  .footer-main p { font-size: 10px; width: 100%; order: 2; }
  .footer-main > a:not(.brand) { font-size: 10px; }
  .footer-bottom { padding-block: 22px; flex-direction: column; gap: 11px; font-size: 9px; }
  dialog { padding: 24px; }
  dialog h2 { font-size: 29px; }
  .dialog-heading { margin-bottom: 16px; }
}
@media (max-width: 370px) {
  .site-header { width: calc(100% - 28px); }
  .brand { font-size: 22px; gap: 5px; }
  .brand svg { width: 22px; height: 22px; }
  .header-actions { gap: 0; }
  .language-switch a { min-width: 25px; }
  .icon-button { width: 31px; }
  h1 { font-size: 50px; }
  .hero .button { font-size: 10px; padding: 12px 14px; gap: 14px; }
  .pilot-heading h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
