/* Présentation verticale ; visuels adaptés du hero et du schéma b0 du site vitrine. */
.docs-overview {
  padding: 1.8rem 0;
  border-top: 1px solid var(--gb-border);
}
.md-typeset .docs-overview > h3 { margin-top: 1.8rem; font-size: 1rem; }
.md-typeset .docs-overview > p,
.md-typeset .docs-overview > ul { max-width: 88ch; }
.md-typeset .docs-overview > ul > li { margin-bottom: .75rem; }
.md-typeset .docs-product-preview,
.md-typeset .docs-macro { display: block; width: 100%; max-width: none; margin: 1.8rem 0 2.2rem; text-align: left; }
.md-typeset .docs-product-preview { max-width: 42rem; }
.md-typeset .docs-product-preview figcaption,
.md-typeset .docs-macro figcaption { max-width: none; margin: .8rem 0 0; color: var(--color-text-subtle); font-size: .66rem; font-style: normal; line-height: 1.6; }
.docs-chat { border: 1px solid var(--gb-border); border-radius: 16px; overflow: hidden; background: var(--color-page-background); box-shadow: 0 14px 42px -28px rgba(var(--gb-brand-rgb), .3); }
.docs-chat__header { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; padding: .7rem 1rem; border-bottom: 1px solid var(--gb-border); background: var(--color-surface); font-size: .7rem; }
.docs-chat__header > span { margin-left: auto; color: var(--color-text-subtle); }
.docs-chat__body { padding: 1rem 1.2rem; }
.md-typeset .docs-chat p { font-size: .73rem; line-height: 1.75; margin: 0 0 .8rem; }
.md-typeset .docs-chat .docs-chat__question { width: fit-content; max-width: 85%; margin: 0 0 1.3rem auto; padding: .65rem .85rem; border-radius: 13px 13px 3px 13px; background: rgba(var(--gb-brand-rgb), .09); }
.docs-chat__answer { display: flex; align-items: flex-start; gap: .65rem; }
.docs-chat__answer > div { min-width: 0; }
.md-typeset .docs-chat img { flex: none; margin: 0; }
.md-typeset .docs-chat .docs-chat__steps { color: var(--color-text-subtle); font-size: .62rem; }
.docs-chat sup { color: var(--color-action-primary); }
.docs-chat__sources { display: flex; flex-wrap: wrap; gap: .4rem .8rem; color: var(--color-text-subtle); font-size: .6rem; }
.docs-chat__sources span { padding: .2rem .45rem; border: 1px solid var(--gb-border); border-radius: 5px; }
.docs-chat__composer { display: flex; align-items: center; gap: .7rem; margin: .3rem 1.2rem 1rem; padding: .6rem .8rem; border: 1px solid var(--gb-border); border-radius: 10px; font-size: .65rem; color: var(--color-text-muted); }
.docs-chat__composer > span:last-child { margin-left: auto; }
.docs-macro { container-type: inline-size; }
.docs-macro .arch-icon { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--color-action-primary); }
.docs-macro__map { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 2fr) 70px minmax(130px, 1fr); align-items: center; column-gap: 24px; padding: 1rem 0; }
.docs-macro__actors { display: grid; grid-template-rows: repeat(3, 118px); align-self: start; }
.docs-macro__actors > div { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.docs-macro__actors > div::after { content: ""; position: absolute; left: 100%; top: 50%; width: 24px; border-top: 2px dotted var(--color-action-primary); }
.docs-macro__actors .arch-orbit { width: 38px; height: 38px; margin-bottom: 6px; }
.docs-macro__actors strong,
.docs-macro__providers strong { font-size: .72rem; font-weight: 650; }
.docs-macro__actors small,
.docs-macro__providers small { display: block; margin-top: 3px; font-size: .62rem; line-height: 1.5; color: var(--color-text-subtle); }
.docs-macro__platform { border: 1px solid var(--gb-border); border-radius: 16px; background: var(--color-surface); }
.docs-macro__platform .arch-function-band { min-height: 118px; }
.docs-macro__platform .arch-signature { min-height: 65px; }
.docs-macro__bridge { display: flex; flex-direction: column; align-items: center; color: var(--color-action-primary); font-size: .6rem; font-weight: 600; }
.docs-macro__bridge > span:last-child { font-size: 1.8rem; font-weight: 400; line-height: 1.3; }
.docs-macro__providers { display: flex; flex-direction: column; gap: 1rem; }
.docs-macro__providers > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 4px 10px; padding: 1rem .7rem; border: 1px solid var(--gb-border); border-radius: 12px; text-align: left; }
.docs-macro__providers .arch-icon { grid-column: 1; grid-row: 1 / 3; width: 30px; height: 30px; margin: 0; }
.docs-macro__providers strong,
.docs-macro__providers small { grid-column: 2; }
@container (max-width: 760px) {
  .docs-macro__map { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0; }
  .docs-macro__actors { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: 8px; padding-bottom: 26px; }
  .docs-macro__actors > div { justify-content: flex-start; }
  .docs-macro__actors > div::after { left: 50%; top: calc(100% + 5px); width: 0; height: 21px; border-top: 0; border-left: 2px dotted var(--color-action-primary); }
  .docs-macro__actors small { font-size: .56rem; }
  .docs-macro__platform .arch-function-band { min-height: 0; padding: 16px; }
  .docs-macro__bridge { padding: 12px 0; }
  .docs-macro__bridge > span:last-child { transform: rotate(90deg); }
  .docs-macro__providers { flex-direction: row; gap: 12px; }
  .docs-macro__providers > div { flex: 1; min-width: 0; padding: 14px 10px; }
}
@media (max-width: 600px) {
  .docs-chat__body { padding: 1rem .7rem; }
  .docs-chat__answer { gap: .4rem; }
  .docs-chat__answer > img { width: 22px; height: 22px; }
  .md-typeset .docs-chat .docs-chat__question { max-width: 95%; }
  .docs-chat__composer { margin-inline: .7rem; }
}
