/* Articles pour développeurs (/developpeurs/*.html, /developers/*.html),
   habillés à la charte « On va où ? » (planche site-article-dev, 11/10/2026).
   Pages statiques, lisibles sans JavaScript : elles ne chargent pas les
   variables générées du site, les valeurs de charte/charte.json sont donc
   recopiées ici, sous les mêmes noms (à reporter à chaque changement de la
   charte). Vert de la navigation pour les boutons, encre pour le texte et les
   liens, plus de pétrole ni de pastille « API » ; titres en deux temps, encre
   maigre puis gras vert ; sommaire sur le côté pour la référence de l'API. */

@font-face {
  font-family: 'Acumin Variable Concept';
  src: url('/fonts/AcuminVariableConcept.otf') format('opentype');
  font-weight: 100 900;
  font-stretch: 50% 200%;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-vert: #54b796;
  --c-vertAppui: #76c5ab; /* the green pressed: the light one, never the dark green (charter A3) */
  --c-titre: #54b796; /* bold part of a title, green of GUIDER */
  --c-orange: #ef7d20;
  --c-orangeFonce: #ec6607;
  --c-encre: #12292e;
  --c-encre2: #334155;
  --c-encre2Doc: #4a5d61;
  --c-encre3: #5b6b80;
  --c-filet: #e2e8f0;
  --c-filetDoc: #d5dfdd;
  --c-groupe: #f1f5f9;
  --c-blanc: #ffffff;
  /* les quatre traits : motif de marque fixe, comme le paysage (charte A3) */
  --c-trait-1: #009bb4;
  --c-trait-2: #f9b000;
  --c-trait-3: #ef7d20;
  --c-trait-4: #54b796;
  --r-tile: 12px;
  --r-card: 16px;
  --r-pill: 999px;
  --f-texte: 'Acumin Variable Concept', 'Helvetica Neue', Arial, sans-serif;
  --f-systeme: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--c-blanc); color: var(--c-encre2Doc); font-family: var(--f-texte); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── menu blanc fixe (même cadre que le site) ───────────── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--c-blanc); border-bottom: 1px solid var(--c-filet); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav__logo img { display: block; height: 34px; width: auto; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { color: var(--c-encre); font-weight: 600; font-size: 16px; text-decoration: none; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
/* « API » entry with its two pages, as on the site (no JavaScript: a details element) */
.nav__links { align-items: center; }
.nav__dd { position: relative; }
.nav__dd summary { list-style: none; cursor: pointer; color: var(--c-encre); font-weight: 600; font-size: 16px; }
.nav__dd summary::-webkit-details-marker { display: none; }
.nav__dd summary::after { content: ' ▾'; font-size: 12px; }
.nav__dd[open] summary, .nav__dd summary:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__dd-panel { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%); width: 300px; padding: 8px; display: grid; background: var(--c-blanc); border: 1px solid var(--c-filet); border-radius: var(--r-card); box-shadow: 0 18px 40px -20px rgba(18, 41, 46, .35); }
.nav__links .nav__dd-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.nav__links .nav__dd-panel a:hover { background: var(--c-groupe); }
.nav__dd-panel b { font-size: 15px; color: var(--c-encre); }
.nav__dd-panel span { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--c-encre2Doc); }
@media (max-width: 900px) { .nav__links { display: none; } .nav .btn { margin-left: auto; } }

/* ── l'article ──────────────────────────────────────────── */
main { max-width: 860px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter) 72px; }
main > :first-child { margin-top: 0; }
/* reference of the API: contents on the side, sticky under the menu (board site-article-dev) */
.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-grid main { max-width: 860px; margin: 0; padding-left: 0; padding-right: 0; }
.side-toc { position: sticky; top: 96px; padding-top: clamp(56px, 8vw, 96px); max-height: calc(100vh - 110px); overflow: auto; font-size: 15px; }
.side-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.side-toc a { color: var(--c-encre2Doc); font-weight: 400; text-decoration: none; }
.side-toc a:hover { color: var(--c-encre); text-decoration: underline; }
@media (max-width: 900px) {
  .doc-grid { grid-template-columns: 1fr; gap: 0; }
  .side-toc { position: static; max-height: none; padding-bottom: 8px; border-bottom: 1px solid var(--c-filet); }
  .doc-grid main { padding-top: 32px; }
}
.eyebrow, .crumbs {
  margin: 0 0 16px; font-family: var(--f-texte); font-variation-settings: 'wdth' 85; font-weight: 700;
  font-size: 13px; line-height: 1.4; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-encre);
}
.crumbs a { color: var(--c-encre); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
h1 {
  margin: 0 0 18px; font-family: var(--f-texte); font-variation-settings: 'wdth' 62, 'wght' 300; font-weight: 300;
  font-size: clamp(34px, 4.6vw, 52px); line-height: 1.02; letter-spacing: 0; text-transform: uppercase; color: var(--c-encre);
}
h1 .alt { display: block; font-variation-settings: 'wdth' 62, 'wght' 800; font-weight: 800; color: var(--c-titre); }
h2 {
  margin: 48px 0 12px; font-family: var(--f-texte); font-variation-settings: 'wdth' 75; font-weight: 700;
  font-size: 26px; line-height: 1.2; color: var(--c-encre);
}
h3 { margin: 26px 0 8px; font-family: var(--f-texte); font-variation-settings: 'wdth' 75; font-weight: 700; font-size: 20px; line-height: 1.25; color: var(--c-encre); }
p, li { color: var(--c-encre2Doc); }
strong { color: var(--c-encre); }
a { color: var(--c-encre); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--c-encre2); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--c-encre); outline-offset: 3px; }
.lead { font-size: clamp(18px, 1.8vw, 20px); line-height: 1.55; color: var(--c-encre2Doc); }
.meta { margin: 0 0 16px; font-size: 15px; color: var(--c-encre3); }
ul li, ol li { margin: 6px 0; }

/* boutons : pilule verte, texte blanc ; secondaires au filet vert ; « Télécharger l'app » orange */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border-radius: var(--r-pill); background: var(--c-blanc); box-shadow: inset 0 0 0 2px var(--c-vert);
  color: var(--c-encre); font-family: var(--f-systeme); font-weight: 600; font-size: 16px; text-decoration: none;
}
.btn:hover { background: var(--c-groupe); color: var(--c-encre); }
.btn.primary { background: var(--c-vert); box-shadow: none; color: var(--c-blanc); }
.btn.primary:hover { background: var(--c-vertAppui); color: var(--c-blanc); }
.btn--orange { background: var(--c-orange); box-shadow: none; color: var(--c-blanc); }
.btn--orange:hover { background: var(--c-orangeFonce); color: var(--c-blanc); }

/* la liste « pourquoi cette API » : coche verte de la charte, le glyphe Check
   du jeu maison (/charte/icones/glyphe/Check.svg) recopié, sa couleur écrite */
ul.features { list-style: none; padding: 0; }
ul.features li {
  position: relative; padding-left: 32px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 12.5L9.4 17.3L19.4 6.7' fill='none' stroke='%2354b796' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 0 4px;
}

/* sommaire */
nav.toc { margin: 28px 0 10px; padding: 16px 20px; border: 1.5px solid var(--c-filetDoc); border-radius: var(--r-card); }
nav.toc h2 { margin: 0 0 6px; font-size: 13px; font-variation-settings: 'wdth' 85; letter-spacing: 0.18em; text-transform: uppercase; }
nav.toc ol { margin: 0; padding-left: 22px; }
nav.toc li { margin: 3px 0; }

/* code : bloc clair, comme la planche */
code { font-family: ui-monospace, Menlo, monospace; font-size: .9em; color: var(--c-encre); }
p code, li code, td code { padding: 1px 5px; border-radius: 6px; background: var(--c-groupe); }
p code, li code { overflow-wrap: anywhere; }
pre {
  margin: 12px 0 18px; padding: 16px 18px; border: 1px solid var(--c-filetDoc); border-radius: var(--r-card);
  background: var(--c-groupe); color: var(--c-encre); font-family: ui-monospace, Menlo, monospace;
  font-size: 14px; line-height: 1.6; overflow-x: auto;
}
pre code { padding: 0; background: none; }
pre.out { background: var(--c-blanc); }
.file { margin: 18px 0 -4px; font-family: ui-monospace, Menlo, monospace; font-weight: 600; font-size: 13px; line-height: 1.4; color: var(--c-encre3); }

/* encadrés : neutre ; avertissement au bord orange (charte A5) */
.note { padding: 14px 16px; border: 1.5px solid var(--c-filetDoc); border-radius: var(--r-card); background: var(--c-blanc); }
.note.warn { border-color: var(--c-orange); }
blockquote { margin: 14px 0; padding: 12px 18px; border-left: 3px solid var(--c-vert); border-radius: 0 var(--r-tile) var(--r-tile) 0; background: var(--c-groupe); color: var(--c-encre); }

/* tableaux */
.table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 10px 0 8px; }
.table table { min-width: 760px; margin: 0; }
.table.narrow table { min-width: 620px; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; line-height: 1.5; }
caption { text-align: left; padding: 10px 10px 4px; font-size: 13px; color: var(--c-encre3); }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--c-filetDoc); vertical-align: top; color: var(--c-encre2Doc); }
thead th {
  font-family: var(--f-texte); font-variation-settings: 'wdth' 85; font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-encre); background: var(--c-blanc);
}
tbody th { color: var(--c-encre); font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { position: sticky; left: 0; z-index: 1; background: var(--c-blanc); min-width: 128px; box-shadow: 1px 0 0 var(--c-filetDoc); }
tr.self th, tr.self td, .table tr.self th:first-child { background: var(--c-groupe); }
td.num { white-space: nowrap; }
sup a { text-decoration: none; }
.hint { display: none; margin: 4px 0 0; font-size: 13px; color: var(--c-encre3); }
.fn { margin: 6px 0; font-size: 14px; color: var(--c-encre3); }
.fn p { margin: 4px 0; color: var(--c-encre3); }
.sources li { overflow-wrap: anywhere; }
.sources a { font-weight: 500; }
@media (max-width: 800px) { .hint { display: block; } }
@media (max-width: 480px) { table { font-size: 14px; } th, td { padding: 9px 7px; } }
/* a table outside a .table frame scrolls sideways on a phone instead of widening the page */
@media (max-width: 700px) { main > table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* ── pied de page (même cadre que le site) ──────────────── */
.foot { border-top: 1px solid var(--c-filet); padding: 48px 0 32px; font-size: 15px; }
.foot__top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
.foot__logo { display: block; height: 39px; width: auto; }
.traits { display: inline-flex; gap: 8px; margin: 14px 0 18px; }
.traits i { display: block; width: 34px; height: 5px; border-radius: 3px; }
.traits i:nth-child(1) { background: var(--c-trait-1); }
.traits i:nth-child(2) { background: var(--c-trait-2); }
.traits i:nth-child(3) { background: var(--c-trait-3); }
.traits i:nth-child(4) { background: var(--c-trait-4); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores img { display: block; height: 48px; width: auto; }
.foot__cols { display: flex; flex-wrap: wrap; gap: 48px; }
.foot__cols h2 {
  margin: 0 0 12px; font-family: var(--f-texte); font-variation-settings: 'wdth' 85; font-weight: 600;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-encre);
}
.foot__cols a { display: block; padding: 3px 0; color: var(--c-encre2Doc); font-weight: 400; text-decoration: none; }
.foot__cols a:hover { color: var(--c-encre); text-decoration: underline; }
.foot__bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--c-filet); font-size: 13px; color: var(--c-encre3); }
.foot__bottom p { margin: 0; color: var(--c-encre3); }
.foot__sign { font-variation-settings: 'wdth' 85; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--c-encre) !important; }
