/* wailo.ai/doc/api : « Wailo + votre CRM », parcours en 3 étapes (18/11/2026, v2 après les retours de Vincent).
   S'appuie sur site.css (jetons, menu, .btn, .kicker, liaisons .wl) et fonts.css (Poppins) du site V3.
   Repris du site : halos des scènes, téléphones schématiques et carte « serveur Wailo » de la scène « Une seule source »
   (parts/s06.html, kit.css .sv), pointillés qui avancent (site.css .wl-g.dash), apparition en fondu .in-load du hero. */

/* Heebo, la police de texte du site (mêmes fichiers que le kit) */
@font-face { font-family: 'Heebo App'; src: url('../kit/fonts/Heebo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Heebo App'; src: url('../kit/fonts/Heebo-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

.docapi { background: #fff; }
.docapi .nav { position: sticky; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.da { padding-bottom: clamp(72px, 8vw, 120px); }
.da-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* ---------- En-tête de la page ---------- */
.da-hero { position: relative; overflow: hidden; background: var(--bg); padding: clamp(48px, 6vw, 88px) 0 clamp(40px, 5vw, 64px); }
.da-halo { position: absolute; border-radius: 50%; pointer-events: none; }
.da-halo.h1 { width: 46vw; height: 46vw; right: -8vw; top: -18vw; background: radial-gradient(closest-side, rgba(76,137,227,.20), rgba(76,137,227,.08) 45%, transparent); }
.da-halo.h2 { width: 30vw; height: 30vw; left: -10vw; bottom: -16vw; background: radial-gradient(closest-side, rgba(240,116,43,.14), rgba(240,116,43,.05) 45%, transparent); }
.da-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px 48px; align-items: center; }
.da-h1 { margin: 0 0 20px; font-family: var(--ff-title); font-weight: 800; font-size: clamp(36px, 4.4vw, 62px); line-height: 1.08; letter-spacing: -.025em; color: var(--navy); text-wrap: balance; }
.da-plus { display: inline-block; margin: 0 .12em; color: var(--blue); }
.da-lead { margin: 0 0 26px; max-width: 32em; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.55; color: var(--text); text-wrap: pretty; }
.da-note { display: flex; gap: 14px; align-items: flex-start; max-width: 44em; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid rgba(90,123,165,.18); box-shadow: 0 6px 18px rgba(44,62,80,.05); }
.da-note svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--slate); }
.da-note p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--navy); }
.da-note a { color: var(--slate-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(90,123,165,.4); }
.da-note a:hover { color: var(--blue); text-decoration-color: currentColor; }
.da-note--key { margin-top: 36px; background: var(--soft); border-color: transparent; box-shadow: none; }
/* apparition au chargement, comme le hero du site */
.in-load { opacity: 0; transform: translateY(14px); animation: da-in .9s var(--ease) forwards; animation-delay: var(--d, .1s); }
@keyframes da-in { to { opacity: 1; transform: none; } }

/* Le schéma : dessiné en 640 × 400, réduit à la largeur disponible (--hs posé par api.js) */
.da-schema { --k: 1; --hs: 1; width: 100%; min-width: 0; height: calc(404px * var(--hs)); overflow: hidden; }
.da-schema__box { position: relative; width: 640px; height: 404px; transform: scale(var(--hs)); transform-origin: 0 0; }
.da-schema .sch { position: absolute; left: 60px; top: var(--y); width: 66px; height: 124px; transform: translate(-50%, -50%); border-radius: 20px; background: #fff;
  box-shadow: inset 0 0 0 3px #2C3E50, 0 14px 30px rgba(44,62,80,.12); animation: da-pop .7s var(--ease) both; animation-delay: var(--dl); }
.da-schema .sch::before { content: ''; position: absolute; left: 35%; right: 35%; top: 7%; height: 4%; border-radius: 9px; background: #2C3E50; }
.da-schema .sch .mc { position: absolute; left: 9%; right: 9%; top: 19%; padding: 6px; border-radius: 9px; background: #fff; box-shadow: 0 3px 10px rgba(44,62,80,.14), inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); display: flex; align-items: center; gap: 5px; }
.da-schema .sch .mc b { width: 15px; height: 15px; border-radius: 50%; flex: none; background: var(--c); }
.da-schema .sch .mc span { flex: 1; display: grid; gap: 3px; }
.da-schema .sch .mc span::before, .da-schema .sch .mc span::after { content: ''; height: 3.5px; border-radius: 2px; background: #2C3E50; opacity: .8; }
.da-schema .sch .mc span::after { width: 65%; background: var(--c); opacity: .55; }
.da-schema .sch .gl { position: absolute; left: 14%; right: 26%; top: 52%; height: 4px; border-radius: 3px; background: #E3E8EF; box-shadow: 0 12px 0 #E3E8EF, 0 24px 0 #EEF1F5; }
.da-schema .p1 { --y: 76px; --c: #F0742B; --dl: .2s; } .da-schema .p2 { --y: 200px; --c: #E5487A; --dl: .45s; } .da-schema .p3 { --y: 318px; --c: #E9B020; --dl: .7s; }
@keyframes da-pop { from { opacity: 0; transform: translate(-50%, -50%) translateX(-24px); } to { opacity: 1; transform: translate(-50%, -50%); } }
/* carte « serveur Wailo » : les règles .sv du kit (kit.css), inchangées, réduites à 47 % */
.da-schema .srv { position: absolute; left: 320px; top: 200px; transform: translate(-50%, -50%) scale(.467); animation: da-srv .9s var(--ease) .5s both; }
@keyframes da-srv { from { opacity: 0; transform: translate(-50%, -50%) scale(.42); } to { opacity: 1; transform: translate(-50%, -50%) scale(.467); } }
.sv { position: relative; width: 360px; padding: 44px 22px 18px; border-radius: 26px; background: #fff; box-shadow: 0 30px 70px rgba(44,62,80,.16), 0 6px 16px rgba(44,62,80,.06); font-family: var(--ff-text); }
.sv-pill { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 10px 22px; border-radius: 999px; background: #fff; box-shadow: 0 8px 22px rgba(44,62,80,.14); }
.sv-pill img { height: 34px; display: block; }
.sv-rows { display: flex; flex-direction: column; gap: 4px; }
.sv-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; }
.sv-av { width: 40px; height: 40px; border-radius: 50%; background: #E8F2FC; color: #4C89E3; font-size: 14px; font-weight: 700; display: grid; place-items: center; flex: none; }
.sv-tx { min-width: 0; } .sv-tx b { display: block; font-size: 16px; color: #2C3E50; white-space: nowrap; } .sv-tx small { display: block; font-size: 12.5px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-foot { margin-top: 12px; text-align: center; font-size: 14px; font-weight: 700; color: #8A94A6; }
/* la tuile du CRM : le logo du CRM choisi s'y affiche */
.da-schema .crm { position: absolute; left: 566px; top: 200px; width: 136px; transform: translate(-50%, -50%); text-align: center; animation: da-fade .9s var(--ease) 1.1s both; }
.da-schema .crm__tile { width: 94px; height: 94px; margin: 0 auto; border-radius: 24px; background: #fff; display: grid; place-items: center; padding: 14px; box-shadow: 0 14px 30px rgba(44,62,80,.14), inset 0 0 0 1.5px rgba(90,123,165,.16); transition: box-shadow .4s; }
.da-schema .crm__tile img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.da-schema .crm__txt { font-family: var(--ff-title); font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--slate); }
.da-schema .crm b { display: block; margin-top: 10px; font-family: var(--ff-title); font-weight: 600; font-size: 13px; line-height: 1.35; color: var(--navy); }
.da-schema .crm.on .crm__tile { box-shadow: 0 0 0 6px rgba(76,137,227,.16), 0 14px 30px rgba(44,62,80,.16); }
.da-schema__lbl { position: absolute; top: 388px; transform: translateX(-50%); font-family: var(--ff-text); font-size: 13px; font-weight: 700; letter-spacing: .04em; color: #8A94A6; white-space: nowrap; animation: da-fade .9s var(--ease) 1.3s both; }
@keyframes da-fade { from { opacity: 0; } }
.da-schema__lbl.l1 { left: 96px; } .da-schema__lbl.l2 { left: 320px; } .da-schema__lbl.l3 { left: 566px; }
/* liaisons : les classes de site.css ; la liaison « retour » est tracée du CRM vers le serveur, ses pointillés avancent donc dans l'autre sens */
.da-links { z-index: 1; }
.da-links .wl-ln { stroke-width: 3px; }
.da-links .wl-plug { stroke-width: 2.5px; }

/* ---------- Étapes ---------- */
.da-steps { padding-top: clamp(40px, 5vw, 72px); }
.da-step { padding: clamp(28px, 3.5vw, 48px) 0; border-top: 1px solid var(--line); }
.da-step:first-child { border-top: 0; padding-top: 0; }
.da-step.in { animation: da-step .55s var(--ease) both; }
@keyframes da-step { from { opacity: 0; transform: translateY(16px); } }
.da-step__head { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
.da-num { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-title); font-size: 16px; font-weight: 700; background: var(--slate); color: #fff; box-shadow: 0 6px 14px rgba(90,123,165,.3); }
.da-h2 { margin: 0; font-family: var(--ff-title); font-weight: 700; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; letter-spacing: -.015em; color: var(--navy); outline: none; }
.da-step__sub { margin: 0 0 26px 54px; max-width: 40em; font-size: 16.5px; line-height: 1.55; color: var(--text); text-wrap: pretty; }
.da-step__sub b { color: var(--navy); }
.da-step__hint { margin: 18px 0 0 54px; max-width: 40em; font-size: 15px; line-height: 1.55; color: var(--text); }
.da-step__hint:empty { display: none; }
.da-step__hint b { color: var(--navy); }
.da-step__other { margin: 22px 0 0 54px; max-width: 40em; font-size: 15px; line-height: 1.6; color: var(--text); }
.da-link { padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--slate-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(90,123,165,.4); cursor: pointer; }
.da-link:hover { color: var(--blue); text-decoration-color: currentColor; }

/* ---------- Cartes de choix ---------- */
.da-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-left: 54px; }
.da-cards--os { grid-template-columns: repeat(4, 1fr); }
.da-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 150px; padding: 22px 22px 20px; border-radius: 22px; border: 1.5px solid rgba(90,123,165,.14); color: var(--navy); font-family: var(--ff-text); text-align: left; cursor: pointer;
  background: linear-gradient(180deg, #fff 0%, #F8FAFD 100%); box-shadow: 0 1px 2px rgba(44,62,80,.04), 0 10px 24px rgba(44,62,80,.05); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s;
  animation: da-card .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes da-card { from { opacity: 0; transform: translateY(18px); } }
.da-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(44,62,80,.12); border-color: rgba(90,123,165,.32); }
.da-card:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.da-card[aria-checked="true"] { border-color: var(--slate); background: #fff; box-shadow: 0 0 0 3px rgba(90,123,165,.16), 0 18px 38px rgba(44,62,80,.12); }
.da-card[aria-checked="true"]::after { content: ''; position: absolute; top: 16px; right: 16px; width: 24px; height: 24px; border-radius: 50%; background: var(--slate) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.da-card__logo { display: flex; align-items: center; height: 44px; margin-bottom: 10px; }
.da-card__logo img { display: block; max-height: 36px; max-width: 170px; width: auto; height: auto; object-fit: contain; }
.da-card__logo--own { width: 44px; justify-content: center; border-radius: 13px; background: var(--soft); color: var(--slate-dark); font-family: var(--ff-title); font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.da-card__t { font-family: var(--ff-title); font-size: 18px; font-weight: 600; line-height: 1.2; }
.da-card__d { font-size: 14px; line-height: 1.45; color: var(--text); }
.da-card__tag { position: absolute; top: 16px; right: 16px; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--slate-dark); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.da-card[aria-checked="true"] .da-card__tag { right: 48px; }
.da-card__ico { width: 48px; height: 48px; margin-bottom: 10px; display: grid; place-items: center; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px rgba(90,123,165,.14); }
.da-card__ico img { width: 28px; height: 28px; display: block; }
.da-card__ico img.wide { width: 40px; height: auto; }

/* ---------- Les trois portes ---------- */
.da-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-left: 54px; }
.da-door { display: flex; flex-direction: column; gap: 12px; padding: 26px 26px 24px; border-radius: 22px; background: #fff; border: 1.5px solid rgba(90,123,165,.14); box-shadow: 0 1px 2px rgba(44,62,80,.04), 0 10px 24px rgba(44,62,80,.05);
  animation: da-card .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
.da-door--ia { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.15fr; grid-template-areas: 'head copy' 'text copy' 'meta copy'; column-gap: 36px; row-gap: 12px; align-content: start;
  background: linear-gradient(160deg, #F7FAFE 0%, #EDF4FD 100%); border-color: rgba(76,137,227,.22); }
.da-door--ia .da-door__head { grid-area: head; } .da-door--ia > p:not(.da-door__meta) { grid-area: text; } .da-door--ia .da-copy { grid-area: copy; } .da-door--ia .da-door__meta { grid-area: meta; }
.da-door__head { display: flex; align-items: center; gap: 12px; }
.da-door__ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--slate-dark); }
.da-door--ia .da-door__ico { background: #fff; box-shadow: 0 4px 12px rgba(76,137,227,.18); color: var(--blue); }
.da-door__ico svg { width: 22px; height: 22px; }
.da-door h3 { margin: 0; font-family: var(--ff-title); font-size: 19px; font-weight: 700; line-height: 1.2; color: var(--navy); }
.da-door p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text); }
.da-door__meta { font-size: 15px; font-weight: 700; color: var(--slate-dark); }
.da-door__meta:empty { display: none; }
.da-links { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
ul.da-links a { display: block; padding: 12px 14px; border-radius: 14px; background: var(--bg); color: var(--navy); font-weight: 700; font-size: 15px; line-height: 1.3; text-decoration: none; transition: background .2s, transform .2s var(--ease); }
ul.da-links a small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--text); overflow-wrap: anywhere; }
ul.da-links a:hover { background: var(--soft); transform: translateX(2px); }
ul.da-links a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
/* Mon propre CRM : la doc développeur d'abord */
.da-doors.own #door-dev { order: -1; }
.da-doors.own .da-door--ia { grid-column: auto; display: flex; }
/* le kit : bouton pilule clair */
.btn--light { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px rgba(90,123,165,.35), 0 6px 16px rgba(90,123,165,.12); }
.btn--light:hover { background: var(--soft); color: var(--navy); }
.da-kit__btn { align-self: flex-start; height: 46px; padding: 0 22px 0 18px; font-size: 15px; gap: 8px; margin-top: 4px; }
.da-kit__btn svg { width: 18px; height: 18px; }
.da-kit__file { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }

/* Bloc à copier */
.da-copy { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.da-copy__txt { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--night); color: #E6EEF9; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.da-copy__txt:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.da-copy__btn { align-self: flex-start; height: 46px; padding: 0 26px; font-size: 15px; }
.da-copy__btn.ok { background: var(--ok); }
.da-copy__btn.ok:hover { background: var(--ok); }

/* ---------- Pied de page (celui du site, parts/footer.html) ---------- */
#pied { background: #2C3E50; color: #fff; font-family: var(--ff-text); padding: clamp(56px, 6vw, 80px) 0 40px; }
#pied .foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 52px; }
#pied .foot__logo { display: inline-block; height: 44px; padding: 0; border-radius: 999px; background: #fff; margin-bottom: 18px; }
#pied .foot__logo img { height: 100%; width: auto; display: block; }
#pied .foot__txt { margin: 0 0 18px; max-width: 26em; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); }
#pied .foot__stores { display: flex; align-items: center; gap: 12px; }
#pied .foot__stores a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
#pied .foot__stores img { height: 34px; width: auto; display: block; }
#pied h3 { margin: 0 0 16px; font-family: var(--ff-text); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.9); }
#pied ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
#pied li a { font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
#pied li a:hover { color: #fff; }
#pied .foot__partners { border-top: 1px solid rgba(255,255,255,.10); padding-top: 32px; margin-bottom: 32px; text-align: center; }
#pied .foot__partners p { margin: 0 0 16px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
#pied .foot__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; }
#pied .foot__logos img { width: 60px; height: 60px; display: block; border-radius: 12px; }
#pied .foot__copy { border-top: 1px solid rgba(255,255,255,.10); padding-top: 28px; text-align: center; }
#pied .foot__copy p { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.6); }
#pied .foot__copy p + p { margin-top: 4px; }
@media (max-width: 1023px) { #pied .foot__grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; } }
@media (max-width: 599px) { #pied .foot__grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; } #pied .foot__logos { gap: 16px; } }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1023px) {
  .da-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .da-hero__text { max-width: 44em; }
  .da-door--ia { grid-template-columns: 1fr; grid-template-areas: 'head' 'text' 'copy' 'meta'; }
  .da-cards--os { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .da-wrap { padding: 0 16px; }
  .da-cards, .da-cards--os, .da-doors { grid-template-columns: 1fr; margin-left: 0; }
  .da-step__sub, .da-step__hint, .da-step__other { margin-left: 0; }
  .da-step__head { gap: 12px; margin-bottom: 8px; }
  .da-num { width: 32px; height: 32px; font-size: 14px; }
  .da-card { min-height: 0; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 16px 18px; }
  .da-card__logo { height: 40px; margin-bottom: 0; width: 120px; flex: none; }
  .da-card__logo img { max-height: 30px; max-width: 120px; }
  .da-card__logo--own { width: 40px; }
  .da-card__ico { width: 40px; height: 40px; margin-bottom: 0; }
  .da-card__t { flex: 1; min-width: 0; }
  .da-card__d { width: 100%; }
  .da-card[aria-checked="true"]::after { top: 50%; margin-top: -12px; }
  .da-card__tag { top: 50%; transform: translateY(-50%); }
  .da-card[aria-checked="true"] .da-card__tag { right: 48px; }
  .da-door { padding: 22px 18px; }
  .da-copy__txt { font-size: 13.5px; padding: 16px; }
  .da-copy__btn, .da-kit__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .in-load, .da-step.in, .da-card, .da-door, .da-schema .sch, .da-schema .srv, .da-schema .crm, .da-schema__lbl { animation: none; opacity: 1; }
  .da-card, ul.da-links a { transition: none; }
}
