@font-face {
  font-family: Space;
  src: url("/pilot-assets/font.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
:root {
  --ink: #11183c;
  --muted: #596077;
  --teal: #14756e;
  --accent: #59c6bc;
  --line: #d8dce6;
  --paper: #f7f8fa;
  --night: #0c1230;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.65 system-ui,
    sans-serif;
}
h1,
h2,
h3,
nav,
.btn {
  font-family: Space, system-ui, sans-serif;
}
h1 {
  font-size: clamp(42px, 5.5vw, 74px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  max-width: 850px;
  font-weight: 600;
  margin: 0 0 28px;
}
h2 {
  font-size: clamp(27px, 3.5vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  font-weight: 600;
}
h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 0;
  font-weight: 600;
}
p {
  margin: 0 0 20px;
}
a {
  color: var(--teal);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
summary {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 5px;
}
header {
  background: var(--night);
  color: white;
  border-bottom: 1px solid #ffffff2b;
}
.wrap {
  max-width: 1160px;
  width: calc(100% - 80px);
  margin: auto;
}
.head {
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.logo {
  display: block;
  flex-shrink: 0;
}
.logo img {
  display: block;
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
nav a {
  color: #d8dce8;
  text-decoration: none;
  font-size: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
nav a[aria-current] {
  color: #83ded4;
}
nav a:last-child {
  font-size: 12px;
}
.head .main-nav {
  gap: clamp(12px, 2vw, 24px);
  max-width: 100%;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
  scrollbar-color: #59c6bc #15213b;
}
.main-nav a {
  white-space: nowrap;
}
.main-nav .nav-agent {
  padding: 0 13px;
  border: 1px solid #59c6bc;
  border-radius: 6px;
  color: #b0f1e8;
}
.skip {
  position: absolute;
  transform: translateY(-200%);
  background: white;
  padding: 12px;
  z-index: 5;
}
.skip:focus {
  transform: none;
}
.intro {
  padding: 77px 0 57px;
}
.scope {
  color: var(--teal);
  font-size: 13px;
  margin-bottom: 25px;
}
.lead {
  max-width: 740px;
  font-size: 20px;
  color: var(--muted);
  line-height: 1.65;
}
.instance {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 24px 0 27px;
}
.instance:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #949cb0;
  flex-shrink: 0;
}
.instance.online:before {
  background: var(--teal);
}
.actions {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.actions > a:not(.btn) {
  font-size: 14px;
}
.btn {
  background: var(--ink);
  border: 0;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  text-decoration: none;
  font-size: 14px;
}
.btn:hover {
  background: #27315b;
}
.journey {
  border-top: 1px solid var(--line);
  padding: 55px 0 65px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}
.section-heading > p {
  font-size: 15px;
  color: var(--muted);
  max-width: 470px;
}
.step {
  border-bottom: 1px solid var(--line);
}
.step > summary {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 85px;
  list-style: none;
  padding: 20px 0;
}
.step > summary::-webkit-details-marker {
  display: none;
}
.step-no {
  font-size: 14px;
  color: var(--teal);
}
.step h3 {
  font-size: 22px;
}
.expand {
  margin-left: auto;
  font-size: 25px;
}
.step[open] .expand {
  transform: rotate(45deg);
}
.step-body {
  padding: 0 20px 24px 42px;
  font-size: 14px;
  color: var(--muted);
  max-width: 640px;
}
.step-body code {
  font-size: 12px;
  color: var(--teal);
}
.limit {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.connect {
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.connect .section-heading {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
}
.download-links,
.references {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 25px 0;
  font-size: 14px;
}
.code-block {
  position: relative;
  background: var(--night);
  color: #d8e3e9;
}
.code-block pre {
  padding: 55px 28px 28px;
  background: transparent;
  color: inherit;
  max-width: 100%;
}
.copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: 1px solid #ffffff50;
  color: white;
  font-size: 12px;
  min-height: 36px;
  padding: 5px 12px;
}
pre {
  font:
    13px/1.9 ui-monospace,
    monospace;
  overflow: auto;
  white-space: pre;
  tab-size: 2;
  max-width: 100%;
  padding: 20px;
  background: #e9edf3;
  color: var(--ink);
}
code {
  overflow-wrap: anywhere;
}
.example {
  margin: 32px 0;
  border-block: 1px solid var(--line);
  padding-block: 17px;
}
.example summary {
  font-size: 19px;
  font-family: Space, system-ui;
}
.example p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.notes {
  padding: 50px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 70px;
  border-top: 1px solid var(--line);
}
.notes h2 {
  font-size: 26px;
}
.notes article:last-child {
  grid-column: 1/-1;
  max-width: 840px;
}
.notes p {
  font-size: 14px;
  color: var(--muted);
}
footer {
  padding: 30px 0 42px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
footer p {
  margin: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.catalog {
  border-top: 1px solid var(--line);
  padding: 30px 0 70px;
}
form {
  display: flex;
  gap: 12px;
  align-items: center;
}
input,
select {
  min-height: 50px;
  border: 1px solid #aeb5c6;
  padding: 10px 14px;
  background: white;
  color: var(--ink);
  border-radius: 0;
}
input {
  flex: 1;
  min-width: 0;
}
select {
  min-width: 120px;
}
.small {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 30px;
}
.metrics {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--muted);
}
.metrics strong {
  font-size: 22px;
  color: var(--ink);
  margin-right: 8px;
  font-family: Space, system-ui;
}
#catalog-status {
  padding: 25px 0;
  color: var(--muted);
  font-size: 14px;
}
.listing {
  padding: 30px 0;
  border-block-end: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 36px;
}
.listing .kind {
  font-size: 12px;
  color: var(--teal);
  margin-bottom: 10px;
}
.listing h2 {
  font-size: 25px;
  margin-bottom: 15px;
}
.listing p {
  font-size: 14px;
  color: var(--muted);
  max-width: 780px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.listing ul {
  font-size: 13px;
  padding-left: 18px;
  color: var(--muted);
}
.listing aside {
  border-left: 1px solid var(--line);
  padding-left: 30px;
}
.price {
  font-size: 22px;
  font-family: Space, system-ui;
  margin-bottom: 5px;
  color: var(--ink);
}
.listing aside small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.link-btn {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 5px;
  padding: 10px 0;
  color: var(--teal);
  font-size: 13px;
  min-height: 44px;
}
.catalog-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  font-size: 13px;
}
.profile {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
}
footer nav a {
  color: var(--teal);
}
.profile h2 {
  font-size: 30px;
}
.profile p {
  font-size: 14px;
  max-width: 700px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.empty {
  padding: 32px 0;
  max-width: 650px;
}
.empty h2 {
  font-size: 26px;
}
@media (max-width: 850px) {
  .wrap {
    width: calc(100% - 48px);
  }
  .head {
    align-items: flex-start;
    padding-block: 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
  nav {
    gap: 20px;
    flex-wrap: wrap;
  }
  .journey {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .connect .section-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .intro {
    padding-top: 50px;
  }
  .notes {
    gap: 30px;
  }
  .listing {
    grid-template-columns: 1fr 165px;
  }
  .listing aside {
    padding-left: 20px;
  }
}
@media (max-width: 540px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .head {
    gap: 12px;
  }
  .logo img {
    width: 130px;
    height: 40px;
  }
  nav {
    gap: 12px 20px;
    width: 100%;
  }
  nav a {
    font-size: 12px;
  }
  h1 {
    font-size: 45px;
  }
  .lead {
    font-size: 17px;
  }
  .intro {
    padding: 43px 0 36px;
  }
  .actions {
    gap: 18px;
  }
  .journey {
    padding: 32px 0;
  }
  .step h3 {
    font-size: 20px;
  }
  .step-body {
    padding-left: 34px;
    padding-right: 0;
  }
  .step > summary {
    gap: 14px;
  }
  .connect {
    padding: 36px 0;
  }
  .notes {
    grid-template-columns: 1fr;
    padding: 32px 0;
    gap: 22px;
  }
  .notes article:last-child {
    grid-column: auto;
  }
  .download-links,
  .references {
    gap: 12px 20px;
  }
  pre {
    font-size: 11px;
  }
  .code-block pre {
    padding-inline: 16px;
  }
  footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 25px;
    gap: 15px;
  }
  form {
    flex-wrap: wrap;
  }
  input {
    flex-basis: 100%;
  }
  select {
    flex: 1;
  }
  .listing {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-block: 25px;
  }
  .listing aside {
    padding: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px;
  }
  .price {
    font-size: 20px;
  }
  .listing aside .link-btn {
    flex-basis: 100%;
    text-align: left;
  }
  .metrics {
    gap: 16px;
    flex-wrap: wrap;
  }
  .catalog-bottom {
    flex-wrap: wrap;
  }
  .step h3,
  .notes h2 {
    overflow-wrap: anywhere;
  }
}
/* Corrections d'affichage du 11 octobre 2026 (Claude, à la demande de Rochdi) :
   1. une colonne de grille ne doit jamais s'élargir à la largeur d'un bloc de code
      (min-width:auto) : la page Agents débordait de 251 px sur mobile ;
   2. sur petit écran, le menu passe à la ligne au lieu de défiler à l'horizontale
      (« Pour les agents » était coupé sans indice de défilement). */
.notes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.notes > *,
.journey > *,
.connect > *,
.code-block {
  min-width: 0;
}
@media (max-width: 540px) {
  .notes {
    grid-template-columns: minmax(0, 1fr);
  }
  .head .main-nav {
    flex-wrap: wrap;
    overflow-x: visible;
    row-gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
