.hero:not(.formations-hero) > .hero-lead {
  max-width: none;
  margin-top: clamp(14px, 2vw, 20px);
  font-size: clamp(15px, 3.9vw, 24px);
  line-height: 1.35;
  letter-spacing: -.02em;
}
.kit-training .chapter-list p {
  margin: 8px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.kit-training .text-link { margin-top: 12px; }
@media (max-width: 360px) {
  .hero:not(.formations-hero) { padding-inline: 16px; }
}

:where(.hero:not(.formations-hero)) .hero-mcp, #methode {
  --kit-surface: #1c1d1f;
  --kit-raised: #27282b;
  --kit-edge: #3a3b3e;
  --kit-secondary: #b9b9ba;
}
:where(.hero:not(.formations-hero)) .hero-mcp { background: var(--kit-surface); border-color: var(--kit-edge); }
:where(.hero:not(.formations-hero)) .hero-mcp .hero-mcp-address, :where(.hero:not(.formations-hero)) .hero-mcp-header > p { color: var(--white); }
:where(.hero:not(.formations-hero)) .hero-mcp-header > p > span, :where(.hero:not(.formations-hero)) .hero-mcp .hero-mcp-apps, :where(.hero:not(.formations-hero)) .hero-mcp-feedback:not(.sr-only) {
  color: var(--kit-secondary);
}
:where(.hero:not(.formations-hero)) .hero-mcp .hero-mcp-apps { border-color: var(--kit-edge); }
:where(.hero:not(.formations-hero)) .hero-mcp-copy { background: var(--kit-raised); border-color: var(--kit-edge); }
:where(.hero:not(.formations-hero)) .hero-mcp-copy:hover { background: #35363a; }
#methode #apercu-chat {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 0;
  min-height: 0;
  color: var(--white);
}
#methode .agent-paper {
  width: 100%;
  max-width: none;
  padding: clamp(14px, 2.5vw, 24px);
  background: var(--kit-surface);
  color: var(--white);
  border: 1px solid var(--kit-edge);
  border-radius: clamp(16px, 2vw, 22px);
  box-shadow: none;
}
#methode .agent-paper-header { flex-wrap: wrap; gap: 8px 20px; padding-bottom: 18px; border-color: var(--kit-edge); }
#methode .chat-app-label, .kit-session-name, .kit-who {
  color: var(--kit-secondary);
  font: 500 11px/1.5 ui-monospace, monospace;
}
#methode .chat-app-context > strong { align-items: center; gap: 8px; color: var(--white); font-size: clamp(17px, 1.6vw, 21px); }
#methode .chat-app-context > strong > span { display: inline-flex; align-items: center; gap: 6px; }
#methode .chat-app-context img { width: 24px; height: 24px; }
#methode .chat-app-context small { color: var(--kit-secondary); font-size: 12px; }
.kit-session-name { display: flex; align-items: center; gap: 8px; }
.kit-session-name::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.kit-tools, .kit-tools > div, .kit-rail-head, .kit-arrows { display: flex; align-items: center; }
.kit-tools { justify-content: space-between; gap: 6px; margin: 12px 0; }
.kit-tools > div { flex-wrap: wrap; gap: 3px; }
.kit-tools button, .kit-arrows button {
  border: 0; border-radius: 7px; background: transparent; color: var(--kit-secondary);
  padding: 8px 12px; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.3;
}
.kit-tools [aria-pressed="true"], .kit-tools button:hover, .kit-arrows button:hover:enabled { background: #35363a; color: var(--white); }
.kit-tools .kit-toggle, .kit-arrows button {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0;
  border: 1px solid var(--kit-edge); border-radius: 50%; color: var(--white);
}
.kit-toggle span { font: 15px/1 Arial, sans-serif; }
.kit-chat :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kit-thread {
  position: relative; height: clamp(360px, 64svh, 550px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #55575c transparent;
  border-top: 1px solid var(--kit-edge); overflow-anchor: none;
}
.kit-exchange {
  min-height: 100%; display: flex; flex-direction: column; justify-content: flex-start;
  gap: 13px; padding: 16px 10px 18px 2px; border-bottom: 1px solid var(--kit-edge);
}
.kit-exchange:last-child { border-bottom: 0; }
.kit-message { width: fit-content; max-width: 89%; padding: 8px 13px; font-size: clamp(14px, 1.25vw, 16px); line-height: 1.4; }
.kit-user { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #303135; color: var(--white); }
.kit-who { display: block; margin-bottom: 1px; }
.kit-message code, .kit-card small { color: #ffb082; font: 600 .94em/1.4 ui-monospace, monospace; }
.kit-followup p { position: relative; }
.kit-typed { display: none; }
.kit-writing .kit-transcript { opacity: 0; }
.kit-writing .kit-typed { display: block; position: absolute; inset: 0; }
.kit-writing .kit-typed::after { content: "▏"; color: var(--accent-hover); }
.kit-answer { display: flex; gap: 10px; align-items: flex-start; font-size: clamp(14px, 1.25vw, 16px); }
.kit-avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; }
.kit-answer > div { max-width: 59ch; }
.kit-answer p { line-height: 1.42; }
.kit-attachments { margin-left: 36px; min-width: 0; }
.kit-rail-head { gap: 7px; margin: 0 0 6px; font-size: 12px; color: var(--kit-secondary); }
.kit-studio { width: 70px; height: auto; }
.kit-arrows { gap: 4px; margin-left: auto; }
.kit-arrows button { width: 29px; height: 29px; font-size: 20px; }
.kit-arrows button:disabled { opacity: .33; }
.kit-rail { display: flex; gap: 10px; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #55575c transparent; padding: 2px 2px 7px; }
.kit-card { flex: 0 0 40%; min-width: 0; display: block; margin: 0; color: var(--white); scroll-snap-align: start; text-align: left; }
.kit-card img, .kit-cover video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.kit-card small { display: block; margin: 5px 0 2px; font-size: 11px; }
.kit-card strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.32; }
.kit-cover { display: block; position: relative; }
.kit-cover i { position: absolute; right: 7px; bottom: 7px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #121315d9; color: white; font: 11px/1 sans-serif; }
.kit-cover video { position: absolute; inset: 0; }
.kit-film:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.kit-stat > strong { margin: 6px 0 2px; }
.kit-stat > div { display: flex; align-items: baseline; justify-content: space-between; gap: 4px; }
.kit-stat b { color: var(--kit-secondary); font-size: 13px; font-weight: 500; }
.kit-stat span { color: #85d4e9; font-size: 13px; }
.kit-stat > i { display: block; height: 4px; width: var(--bar); margin-top: 5px; border-radius: 3px; background: #72bfee; }
.kit-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 15px; margin: 12px 4px 0; font-size: 13px; color: var(--kit-secondary); }
.kit-caption a { color: var(--white); }
.kit-caption a:hover { text-decoration: underline; }
.kit-player-status:not(:empty) { margin-top: 8px; }
.kit-chat:not(.kit-ready) .kit-arrows { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .kit-running .kit-current :is(.kit-answer, .kit-attachments, .kit-followup) { animation: kit-message-in .17s ease-out both; }
  .kit-running .kit-current .kit-attachments { animation-delay: .13s; }
  .kit-running .kit-current .kit-followup { animation-delay: .32s; }
}
@keyframes kit-message-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 850px) {
  #methode #apercu-chat { width: calc(100% + 12px); margin-inline: -6px; }
}
@media (max-width: 560px) {
  .kit-attachments { margin-left: 0; }
  .kit-exchange { padding-right: 3px; gap: 10px; }
  .kit-card { flex-basis: 75%; }
  .kit-tools button { font-size: 12px; padding: 7px; }
  .kit-tools .kit-toggle { padding: 0; }
  .kit-rail-head { flex-wrap: wrap; }
  .kit-stat img { max-height: 112px; }
}
