/* doc.tchin.tech (23 nov. 2026) : le style de tchin.tech et de statut.tchin.tech (Inter, crème et noir, orange), clair et sombre.
   Sur téléphone la racine suit la largeur (16 px à 375 px) : le même dessin sur tous les téléphones. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --fond: #FFF8EF; --carte: #FFFFFF; --texte: #3A1C0A; --doux: #6E5846; --pale: #A08A76;
  --bord: rgba(58, 28, 10, .1); --pilule: #EFE2D0; --pilule-forte: #E5D3BC; --accent: #E67A1E; --accent-texte: #A84A08;
  --code-fond: #171310; --code-tete: #221B16; --code-texte: #F3E9DC; --code-doux: rgba(255, 248, 239, .5);
  --info: #2563EB; --info-fond: rgba(37, 99, 235, .07); --attention: #C2410C; --attention-fond: rgba(234, 88, 12, .08); --astuce: #15803D; --astuce-fond: rgba(21, 128, 61, .08);
  --get: #15803D; --get-fond: rgba(21, 128, 61, .1); --post: #B45309; --post-fond: rgba(230, 122, 30, .14);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --mouvement: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #171310; --carte: #221B16; --texte: #FFF8EF; --doux: #C2AE9A; --pale: #8A7462;
    --bord: rgba(255, 248, 239, .09); --pilule: #2C241D; --pilule-forte: #3A2F26; --accent: #E67A1E; --accent-texte: #F0954A;
    --code-fond: #0F0C0A; --code-tete: #1A1511;
    --info: #60A5FA; --info-fond: rgba(96, 165, 250, .09); --attention: #FB923C; --attention-fond: rgba(251, 146, 60, .1); --astuce: #4ADE80; --astuce-fond: rgba(74, 222, 128, .08);
    --get: #4ADE80; --get-fond: rgba(74, 222, 128, .12); --post: #F0954A; --post-fond: rgba(240, 149, 74, .14);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; min-height: 100vh; background: var(--fond); color: var(--texte); font: 400 1rem/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { display: block; }
.evitement { position: absolute; left: -999rem; }
.evitement:focus { left: 1rem; top: 1rem; z-index: 50; padding: .5rem 1rem; border-radius: 999rem; background: var(--code-fond); color: var(--code-texte); }

/* ---------- En-tête (comme statut.tchin.tech) ---------- */
.en { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 92%; max-width: 84rem; margin: 0 auto; padding: 1.5rem 0 0; }
.en__gauche, .en__droite { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.en__logo img { height: 2rem; width: auto; }
.en__logo .sombre { display: none; }
@media (prefers-color-scheme: dark) { .en__logo .clair { display: none; } .en__logo .sombre { display: block; } }
.en__badge { display: inline-flex; align-items: center; height: 1.75rem; padding: 0 .75rem; border-radius: 999rem; background: var(--pilule); font-size: .8125rem; font-weight: 600; }
.en__langue { display: grid; place-items: center; flex: none; width: 2.625rem; height: 2.625rem; border: .0625rem solid var(--bord); border-radius: 50%; background: var(--carte); color: inherit; font-size: .8125rem; font-weight: 650; text-decoration: none; transition: background-color .2s, color .2s; }
.en__langue:hover { background: var(--texte); color: var(--fond); }
.en__creer { display: inline-flex; align-items: center; gap: .45rem; height: 2.625rem; padding: 0 1.1rem 0 .95rem; border: .14rem solid var(--accent); border-radius: 999rem; color: inherit; font-size: .9375rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s; }
.en__creer svg { width: 1.1rem; height: 1.1rem; fill: var(--accent); transition: fill .2s; }
.en__creer:hover { background: var(--accent); color: #FFFFFF; }
.en__creer:hover svg { fill: #FFFFFF; }

/* ---------- Cadre : menu, page, sommaire ---------- */
.cadre { display: grid; grid-template-columns: 15rem minmax(0, 1fr) 13rem; gap: 3rem; width: 92%; max-width: 84rem; margin: 0 auto; padding: 2.5rem 0 4rem; }
.mn, .tc { position: sticky; top: 1.25rem; align-self: start; max-height: calc(100vh - 2.5rem); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--pilule-forte) transparent; }
.mn__groupe + .mn__groupe { margin-top: 1rem; }
.mn__titre { margin: 0 0 .25rem; padding-left: .8rem; color: var(--pale); font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.mn ul, .tc ul, .fm ul { margin: 0; padding: 0; list-style: none; }
.mn a { display: block; padding: .3rem .8rem; border-radius: .7rem; color: var(--doux); font-size: .875rem; font-weight: 500; line-height: 1.35; text-decoration: none; transition: background-color .15s, color .15s; }
.mn a:hover { color: var(--texte); background: var(--pilule); }
.mn a.actif { color: var(--texte); background: var(--carte); box-shadow: inset 0 0 0 .0625rem var(--bord); font-weight: 650; }
.tc__titre { margin: 0 0 .6rem; color: var(--pale); font-size: .75rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.tc li a { display: block; padding: .3rem 0 .3rem .85rem; border-left: .125rem solid var(--bord); color: var(--doux); font-size: .8125rem; line-height: 1.4; text-decoration: none; transition: color .15s, border-color .15s; }
.tc li a:hover { color: var(--texte); }
.tc li a.actif { border-left-color: var(--accent); color: var(--texte); font-weight: 600; }
.mn-bouton { display: none; }

/* ---------- La page ---------- */
.pg { min-width: 0; max-width: 48rem; }
.pg__groupe { margin: 0 0 .6rem; color: var(--accent-texte); font-size: .8125rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.pg h1 { margin: 0; font-size: 2.6rem; line-height: 1.1; font-weight: 750; letter-spacing: -.03em; }
.pg__chapeau { margin: 1rem 0 0; color: var(--doux); font-size: 1.15rem; line-height: 1.6; }
.pg__corps { margin-top: 2.25rem; }
.pg__corps > :first-child { margin-top: 0; }
.pg h2 { margin: 3rem 0 .9rem; padding-top: .25rem; font-size: 1.55rem; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.pg h3 { margin: 2rem 0 .6rem; font-size: 1.15rem; line-height: 1.35; font-weight: 650; }
.pg p, .pg li { font-size: 1rem; line-height: 1.7; }
.pg p { margin: 0 0 1rem; }
.pg ul, .pg ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.pg li + li { margin-top: .35rem; }
.pg li::marker { color: var(--pale); }
.pg a { color: var(--accent-texte); text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .18em; }
.pg a:hover { color: var(--texte); }
.pg strong { font-weight: 650; }
.pg :not(pre) > code { padding: .1rem .38rem; border-radius: .4rem; background: var(--pilule); font: 500 .875em/1.4 var(--mono); overflow-wrap: anywhere; }

/* Étapes numérotées */
.et { counter-reset: et; margin: 0 0 1.25rem !important; padding: 0 !important; list-style: none; }
.et > li { position: relative; padding-left: 2.6rem; counter-increment: et; }
.et > li + li { margin-top: .85rem !important; }
.et > li::before { content: counter(et); position: absolute; left: 0; top: .1rem; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--accent); color: #FFFFFF; font-size: .8125rem; font-weight: 700; line-height: 1; }

/* Notes */
.nt { display: flex; gap: .85rem; margin: 1.25rem 0; padding: 1rem 1.15rem; border-radius: 1.1rem; }
.nt svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .15rem; }
.nt strong { display: block; margin-bottom: .15rem; font-size: .9375rem; }
.nt div div { font-size: .9375rem; line-height: 1.65; }
.nt--info { background: var(--info-fond); } .nt--info svg { fill: var(--info); }
.nt--attention { background: var(--attention-fond); } .nt--attention svg { fill: var(--attention); }
.nt--astuce { background: var(--astuce-fond); } .nt--astuce svg { fill: var(--astuce); }

/* Points d'entrée */
.pe { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .75rem; margin: 1rem 0; padding: .7rem .9rem; border: .0625rem solid var(--bord); border-radius: 1rem; background: var(--carte); }
.pe__m { display: inline-grid; place-items: center; min-width: 3.4rem; height: 1.6rem; padding: 0 .55rem; border-radius: 999rem; font: 700 .75rem/1 var(--mono); letter-spacing: .02em; }
.pe__m--get { background: var(--get-fond); color: var(--get); }
.pe__m--post, .pe__m--delete { background: var(--post-fond); color: var(--post); }
.pe code { font: 600 .9375rem/1.4 var(--mono); overflow-wrap: anywhere; }
.pe__d { flex-basis: 100%; color: var(--doux); font-size: .875rem; line-height: 1.5; }

/* Tableaux */
.tb { margin: 1.25rem 0; overflow-x: auto; border: .0625rem solid var(--bord); border-radius: 1.1rem; background: var(--carte); }
.tb table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.tb th { padding: .7rem 1rem; border-bottom: .0625rem solid var(--bord); color: var(--pale); font-size: .75rem; font-weight: 650; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.tb td { padding: .75rem 1rem; vertical-align: top; line-height: 1.55; }
.tb tr + tr td { border-top: .0625rem solid var(--bord); }
.tb td:first-child { white-space: nowrap; }
.tb td:first-child code { padding: 0; background: none; font-weight: 600; color: var(--texte); }

/* Code */
.cd { margin: 1.25rem 0; overflow: hidden; border-radius: 1.1rem; background: var(--code-fond); color: var(--code-texte); }
.cd__tete { display: flex; align-items: center; gap: .75rem; min-height: 2.75rem; padding: .4rem .5rem .4rem 1rem; background: var(--code-tete); }
.cd__titre { flex: none; color: var(--code-doux); font-size: .8125rem; font-weight: 600; }
.cd__onglets { display: flex; gap: .2rem; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.cd__onglets::-webkit-scrollbar { display: none; }
.cd__onglet { flex: none; height: 1.9rem; padding: 0 .75rem; border: 0; border-radius: 999rem; background: none; color: var(--code-doux); font: 600 .8125rem/1 "Inter", system-ui, sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
.cd__onglet:hover { color: var(--code-texte); }
.cd__onglet.actif { background: rgba(255, 248, 239, .1); color: var(--code-texte); }
.cd__onglets:has(.cd__onglet:only-child) .cd__onglet { pointer-events: none; }
.cd__copier { display: inline-flex; align-items: center; gap: .35rem; flex: none; height: 1.9rem; margin-left: auto; padding: 0 .7rem; border: 0; border-radius: 999rem; background: rgba(255, 248, 239, .08); color: var(--code-texte); font: 600 .75rem/1 "Inter", system-ui, sans-serif; cursor: pointer; transition: background-color .15s; }
.cd__copier svg { width: .9rem; height: .9rem; fill: currentColor; }
.cd__copier:hover { background: rgba(255, 248, 239, .16); }
.cd__copier.copie { background: var(--accent); color: #FFFFFF; }
.cd__bloc { display: none; margin: 0; padding: 1rem 1.15rem 1.15rem; overflow-x: auto; font: 400 .8125rem/1.7 var(--mono); tab-size: 4; }
.cd__bloc.actif { display: block; }
.cd__bloc code { font: inherit; white-space: pre; }
.cd .com { color: rgba(255, 248, 239, .42); }
.cd .chn { color: #F7B267; }

/* Cartes de liens */
.ca { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.ca__carte { display: grid; gap: .3rem; padding: 1.1rem 1.2rem; border: .0625rem solid var(--bord); border-radius: 1.25rem; background: var(--carte); color: inherit !important; text-decoration: none !important; transition: border-color .2s, transform .2s var(--mouvement); }
.ca__carte:hover { border-color: var(--accent); transform: translateY(-.125rem); }
.ca__carte strong { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: 1rem; }
.ca__carte strong svg { flex: none; width: 1rem; height: 1rem; fill: var(--accent); transition: transform .2s var(--mouvement); }
.ca__carte:hover strong svg { transform: translateX(.2rem); }
.ca__carte span { color: var(--doux); font-size: .875rem; line-height: 1.55; }

/* Kits */
.kt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 1.25rem 0; }
.kt a { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border: .0625rem solid var(--bord); border-radius: 1.1rem; background: var(--carte); color: inherit !important; text-decoration: none !important; transition: border-color .2s; }
.kt a:hover { border-color: var(--accent); }
.kt b { display: grid; place-items: center; flex: none; width: 2.4rem; height: 2.4rem; border-radius: .8rem; background: var(--pilule); font: 700 .75rem/1 var(--mono); }
.kt span { display: grid; min-width: 0; font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.kt small { color: var(--doux); font-size: .75rem; font-weight: 500; }
.kt a.tout b { background: var(--accent); color: #FFFFFF; }

/* Pages voisines */
.sv { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 3.5rem; }
.sv__lien { display: grid; gap: .15rem; padding: 1rem 1.2rem; border: .0625rem solid var(--bord); border-radius: 1.25rem; background: var(--carte); color: inherit; text-decoration: none; transition: border-color .2s; }
.sv__lien:hover { border-color: var(--accent); }
.sv__lien small { color: var(--pale); font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sv__lien span { font-weight: 650; }
.sv__lien--suivant { grid-column: 2; text-align: right; }

/* La feuille du menu (téléphone) : décollée des bords, « × Fermer » en haut à droite */
.fm { position: fixed; inset: 0; z-index: 40; }
.fm[hidden] { display: none; }
.fm__fond { position: absolute; inset: 0; background: rgba(23, 19, 16, .45); animation: fm-fond .25s ease both; }
.fm__feuille { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; max-height: 90vh; padding: 1rem 1.1rem 1.25rem; border-radius: 1.5rem; background: var(--carte); box-shadow: 0 1.5rem 3rem -1rem rgba(0, 0, 0, .4); animation: fm-monte .32s var(--mouvement) both; }
.fm__tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.fm__tete p { margin: 0; font-size: 1rem; font-weight: 700; }
.fm__fermer { display: inline-flex; align-items: center; gap: .3rem; height: 2.1rem; padding: 0 .8rem 0 .6rem; border: 0; border-radius: 999rem; background: var(--pilule); color: var(--texte); font: 600 .8125rem/1 "Inter", system-ui, sans-serif; cursor: pointer; }
.fm__fermer svg { width: 1rem; height: 1rem; fill: currentColor; }
.fm .mn__groupe + .mn__groupe { margin-top: .7rem; }
.fm .mn__titre { margin: 0 0 .3rem; padding: 0; font-size: .6875rem; }
.fm ul { display: flex; flex-wrap: wrap; gap: .3rem; }
.fm li a { display: inline-flex; align-items: center; height: 1.85rem; padding: 0 .7rem; border-radius: 999rem; background: var(--pilule); color: var(--texte); font-size: .8125rem; font-weight: 550; text-decoration: none; }
.fm li a.actif { background: var(--accent); color: #FFFFFF; }
@keyframes fm-fond { from { opacity: 0; } }
@keyframes fm-monte { from { transform: translateY(2rem); opacity: 0; } }

/* ---------- Tablette ---------- */
@media (max-width: 1180px) {
  .cadre { grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; }
  .tc { display: none; }
}
@media (max-width: 860px) {
  .cadre { grid-template-columns: minmax(0, 1fr); padding-top: 1rem; }
  .mn { display: none; }
  .mn-bouton { display: flex; align-items: center; gap: .55rem; width: 92%; max-width: 84rem; margin: 1.1rem auto 0; padding: .7rem .9rem; border: .0625rem solid var(--bord); border-radius: 1.1rem; background: var(--carte); color: var(--texte); font: inherit; text-align: left; cursor: pointer; }
  .mn-bouton svg { flex: none; width: 1.15rem; height: 1.15rem; fill: var(--doux); }
  .mn-bouton__groupe { flex: none; color: var(--pale); font-size: .8125rem; font-weight: 600; }
  .mn-bouton__page { flex: 1 1 auto; min-width: 0; overflow: hidden; font-size: .9375rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
  .mn-bouton__chevron { margin-left: auto; }
  .kt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Téléphone ---------- */
@media (max-width: 760px) {
  html { font-size: 4.2667vw; }
  .en { padding-top: 1.1rem; gap: .5rem; }
  .en__gauche, .en__droite { gap: .45rem; }
  .en__logo img { height: 1.6rem; }
  .en__badge { height: 1.5rem; padding: 0 .55rem; font-size: .75rem; }
  .en__langue { width: 2.25rem; height: 2.25rem; font-size: .75rem; }
  .en__creer { height: 2.25rem; padding: 0 .8rem 0 .65rem; gap: .3rem; font-size: .8125rem; border-width: .125rem; }
  .en__creer svg { width: .95rem; height: .95rem; }
  .pg h1 { font-size: 1.9rem; }
  .pg__chapeau { font-size: 1rem; }
  .pg__corps { margin-top: 1.75rem; }
  .pg h2 { margin-top: 2.4rem; font-size: 1.3rem; }
  .pg h3 { font-size: 1.05rem; }
  .pg p, .pg li { font-size: .9375rem; }
  .tb table { font-size: .8125rem; }
  .tb th, .tb td { padding: .6rem .75rem; }
  .tb td:first-child { white-space: normal; }
  .cd { border-radius: 1rem; }
  .cd__bloc { font-size: .75rem; padding: .85rem .95rem 1rem; }
  .ca { grid-template-columns: 1fr; }
  .kt { grid-template-columns: 1fr 1fr; gap: .45rem; }
  .kt a { padding: .65rem .7rem; gap: .55rem; }
  .kt b { width: 2rem; height: 2rem; font-size: .6875rem; }
  .kt span { font-size: .8125rem; }
  .sv { grid-template-columns: 1fr; }
  .sv__lien--suivant { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.pg .pe code { padding: 0; background: none; }
.tb td code { white-space: nowrap; }
.fm li a:focus:not(:focus-visible) { outline: none; }
