/* Documentation de l'API Tandem (module ApiDoc). Feuille ecrite a la main, sans compilation. */

:root {
  --navy-50: #f3f6f9; --navy-100: #e4eaf0; --navy-200: #cbd6e1; --navy-300: #a5b6c8; --navy-400: #73879c;
  --navy-500: #5a718a; --navy-600: #445b74; --navy-700: #364a5f; --navy-800: #2a3f54; --navy-900: #1f3042; --navy-950: #152230;
  --vert-50: #f1faec; --vert-100: #dff4d4; --vert-300: #97d97a; --vert-400: #72c64e; --vert-500: #56b030;
  --vert-600: #428d23; --vert-700: #3b7f1f; --vert-800: #2c561e;
  --bleu: #2f6fbd; --ambre: #a66a12; --rouge: #c2413b;
  --barre: 60px; --menu: 276px; --colonne-code: 548px;
  --mono: "Roboto Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--barre) + 16px); }
body { font-family: Roboto, system-ui, sans-serif; font-size: 15px; line-height: 1.55; color: var(--navy-900); background: #fff; -webkit-font-smoothing: antialiased; }
code, pre, kbd { font-family: var(--mono); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--vert-400); outline-offset: 2px; }

/* ---------- barre du haut ---------- */
.barre { position: sticky; top: 0; z-index: 40; height: var(--barre); background: var(--navy-900); color: #fff; display: flex; align-items: center; gap: 20px; padding: 0 20px 0 8px; }
.ouvre-menu { display: none; flex: none; width: 40px; height: 40px; border: 0; border-radius: 8px; background: transparent; color: #fff; place-items: center; cursor: pointer; }
.barre .logo { flex: none; height: 60px; width: 150px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.barre .logo img { height: 120px; }
.barre .titre { font-size: 14px; font-weight: 500; letter-spacing: .01em; color: var(--navy-200); padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .14); white-space: nowrap; }

.recherche { position: relative; margin-left: 28px; flex: 0 1 420px; min-width: 0; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--navy-300); }
.recherche:focus-within { border-color: var(--vert-400); background: rgba(255, 255, 255, .12); }
.recherche svg { flex: none; }
.recherche input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: #fff; font-size: 14px; }
.recherche input::placeholder { color: var(--navy-300); opacity: 1; }
.recherche input::-webkit-search-cancel-button { display: none; }
.recherche kbd { flex: none; font-weight: 500; font-size: 11px; padding: 2px 6px; border-radius: 4px; background: rgba(255, 255, 255, .1); color: var(--navy-200); }
.resultats { position: absolute; top: 44px; left: 0; right: 0; min-width: 300px; background: #fff; color: var(--navy-900); border: 1px solid var(--navy-100); border-radius: 10px; box-shadow: 0 18px 40px -18px rgba(21, 34, 48, .45); padding: 6px; max-height: 62vh; overflow-y: auto; }
.resultat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 14px; }
.resultat:hover, .resultat.choisi { background: var(--navy-50); }
.resultat .m { flex: none; width: 46px; font-weight: 500; font-size: 10px; font-family: var(--mono); }
.resultat b { font-weight: 500; }
.resultat code { font-size: 12px; color: var(--navy-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resultat small { margin-left: auto; flex: none; font-size: 12px; color: var(--navy-400); white-space: nowrap; }
.resultats .rien { padding: 10px; font-size: 14px; color: var(--navy-500); }

.droite { margin-left: auto; flex: none; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.pastille { height: 26px; padding: 0 10px; border: 0; border-radius: 13px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; background: rgba(255, 255, 255, .08); color: var(--navy-100); white-space: nowrap; }
.pastille i { width: 7px; height: 7px; border-radius: 50%; background: var(--vert-400); }
.pastille i.eteint { background: var(--navy-400); }
.pastille.bouton { background: transparent; border: 1px solid rgba(255, 255, 255, .2); cursor: pointer; }
.pastille.bouton:hover { background: rgba(255, 255, 255, .1); }
.compte { display: flex; align-items: center; gap: 10px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .14); }
.compte b { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--vert-700); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.compte > span { color: var(--navy-100); line-height: 1.25; }
.compte small { display: block; font-size: 11.5px; color: var(--navy-300); }
.compte button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--navy-200); cursor: pointer; display: grid; place-items: center; }
.compte button:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- menu ---------- */
.page { display: grid; grid-template-columns: var(--menu) minmax(0, 1fr); }
.nav { position: sticky; top: var(--barre); align-self: start; height: calc(100vh - var(--barre)); overflow-y: auto; border-right: 1px solid var(--navy-100); padding: 22px 14px 40px; background: #fff; }
.nav h6 { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--navy-400); padding: 0 10px; margin: 22px 0 6px; }
.nav h6:first-child { margin-top: 0; }
.nav h6 a:hover, .nav h6 a.actif { color: var(--vert-600); }
.nav > a { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 5px 10px; border-radius: 7px; font-size: 14px; line-height: 1.3; color: var(--navy-700); }
.nav > a:hover { background: var(--navy-50); }
.nav > a.actif { background: var(--vert-50); color: var(--vert-800); font-weight: 500; }
.nav .m { margin-left: auto; flex: none; font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .03em; }
.m.get { color: var(--vert-600); } .m.post { color: var(--bleu); } .m.put, .m.patch { color: var(--ambre); } .m.delete { color: var(--rouge); }

/* ---------- page : rangees texte + code ---------- */
.corps { position: relative; min-width: 0; min-height: calc(100vh - var(--barre)); }
.corps::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: var(--colonne-code); background: var(--navy-950); }
.corps.sans-code::before { display: none; }
.rang { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--colonne-code); }
.rang > .texte { min-width: 0; padding: 0 44px 0 48px; }
.rang > .texte > * { max-width: 700px; }
.rang > .code { min-width: 0; padding: 0 28px; color: #d7e0ea; }
.rang:first-child > .texte, .rang:first-child > .code { padding-top: 34px; }
.rang:last-child > .texte, .rang:last-child > .code { padding-bottom: 64px; }
.rang + .rang { margin-top: 34px; }
.rang + .rang > .texte > h2:first-child { margin-top: 0; }
.rang + .rang > .code { padding-top: 22px; }
.colle { position: sticky; top: calc(var(--barre) + 16px); display: grid; gap: 18px; }

.fil { font-size: 13px; color: var(--navy-400); display: flex; gap: 8px; margin-bottom: 14px; }
.fil b { font-weight: 500; color: var(--navy-600); }
.fil a:hover { color: var(--vert-600); }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; text-wrap: balance; }
h2 { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 34px 0 4px; padding-top: 22px; border-top: 1px solid var(--navy-100); }
h3 { font-size: 15.5px; font-weight: 700; line-height: 1.35; margin: 26px 0 6px; }
.chapo { margin-top: 18px; font-size: 16px; color: var(--navy-700); max-width: 640px; }
.para { margin-top: 14px; color: var(--navy-700); }
.sous { font-size: 13.5px; color: var(--navy-500); margin-bottom: 6px; }

.texte p a, .texte li a, .texte td a, .texte dd a, .seule p a:not(.bouton-lien) { color: var(--vert-800); text-decoration: underline; text-decoration-color: var(--vert-400); text-underline-offset: 3px; }
.texte p a:hover, .texte li a:hover, .texte td a:hover, .texte dd a:hover { text-decoration-color: currentColor; }
.texte p code, .texte li code, .texte td code, .texte th code, .texte dd code, .note code, .champ.erreur code, .seule p code { font-size: .86em; padding: 1px 5px; border-radius: 4px; background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-900); }
.note code { background: #fff; border-color: var(--vert-100); }

.route { margin-top: 14px; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 8px 6px 6px; border: 1px solid var(--navy-100); border-radius: 10px; background: var(--navy-50); }
.route code { font-size: 14.5px; color: var(--navy-900); overflow-wrap: anywhere; }
.badge { flex: none; height: 30px; min-width: 52px; padding: 0 10px; border-radius: 7px; display: inline-grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .04em; color: #fff; background: var(--vert-700); }
.badge.post { background: var(--bleu); } .badge.put, .badge.patch { background: var(--ambre); } .badge.delete { background: var(--rouge); }
.route .copier { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; font-size: 12.5px; color: var(--navy-500); cursor: pointer; }
.route .copier:hover { background: var(--navy-100); color: var(--navy-800); }
.route .copier.fait { color: var(--vert-800); }

.acces { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.acces span { height: 24px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.acces .role { border: 1px solid var(--navy-200); color: var(--navy-700); background: #fff; }
.acces .cadenas { color: var(--vert-800); background: var(--vert-50); border: 1px solid var(--vert-100); }
.acces .libre { color: var(--navy-700); background: var(--navy-50); border: 1px solid var(--navy-100); }

.champ { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 6px 20px; padding: 13px 0; border-top: 1px solid var(--navy-100); }
.sous + .champ, h2 + .champ { border-top: 0; }
.champ .nom { font-family: var(--mono); font-weight: 500; font-size: 13.5px; color: var(--navy-900); overflow-wrap: anywhere; }
.champ .type { font-size: 12.5px; color: var(--navy-400); margin-top: 3px; }
.champ .type em { font-style: normal; font-weight: 500; color: var(--rouge); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; margin-left: 6px; }
.champ p { font-size: 14.5px; color: var(--navy-700); }
.champ p small { display: block; margin-top: 3px; font-size: 13px; color: var(--navy-500); }
.champ.erreur > div { display: flex; flex-wrap: wrap; align-items: center; align-content: start; gap: 8px; }
.statut { display: inline-grid; place-items: center; height: 22px; min-width: 38px; padding: 0 7px; border-radius: 6px; font-family: var(--mono); font-weight: 500; font-size: 12px; background: #fbeceb; color: #a8322d; }
.statut.ok { background: var(--vert-50); color: var(--vert-800); }

.note { margin-top: 10px; padding: 13px 16px; border-radius: 10px; background: var(--vert-50); border: 1px solid var(--vert-100); color: var(--vert-800); font-size: 14px; }
.note a { text-decoration: underline; text-underline-offset: 3px; }

.voisines { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--navy-100); display: flex; justify-content: space-between; gap: 16px; }
.voisines a { display: grid; gap: 2px; min-width: 180px; padding: 10px 14px; border: 1px solid var(--navy-100); border-radius: 10px; }
.voisines a:hover { border-color: var(--vert-400); }
.voisines small { font-size: 12px; color: var(--navy-400); }
.voisines span { font-weight: 500; color: var(--navy-800); }
.voisines .suivante { margin-left: auto; text-align: right; }

/* ---------- pages de guide ---------- */
.prose p { margin-top: 12px; color: var(--navy-700); }
.prose .chapo { margin-top: 18px; }
.prose ul, .prose ol { margin-top: 12px; padding-left: 22px; color: var(--navy-700); }
.prose li { margin-top: 6px; }
.prose li b, .prose p b { font-weight: 500; color: var(--navy-900); }
.prose ol.etapes { list-style: none; padding-left: 0; counter-reset: etape; }
.prose ol.etapes li { position: relative; padding-left: 40px; margin-top: 14px; counter-increment: etape; }
.prose ol.etapes li::before { content: counter(etape); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 500; font-size: 12.5px; }
dl.bref { margin-top: 26px; border-top: 1px solid var(--navy-100); }
dl.bref > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--navy-100); }
dl.bref dt { font-size: 13.5px; font-weight: 500; color: var(--navy-900); }
dl.bref dd { font-size: 14.5px; color: var(--navy-700); overflow-wrap: anywhere; }
table.tableau { margin-top: 14px; width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.tableau th { width: 190px; text-align: left; vertical-align: top; font-weight: 500; color: var(--navy-900); padding: 11px 20px 11px 0; border-top: 1px solid var(--navy-100); }
table.tableau td { padding: 11px 0; border-top: 1px solid var(--navy-100); color: var(--navy-700); }
table.tableau tr:last-child th, table.tableau tr:last-child td { border-bottom: 1px solid var(--navy-100); }
table.tableau th small { display: block; margin-top: 3px; font-weight: 400; }
table.tableau.codes th { width: 84px; }
.a-venir { font-size: 14px; color: var(--navy-500) !important; margin-top: 16px !important; }

/* ---------- listes d'adresses et de domaines ---------- */
.liste { margin-top: 14px; border: 1px solid var(--navy-100); border-radius: 12px; overflow: hidden; }
.ligne { display: grid; grid-template-columns: 64px minmax(0, 250px) minmax(0, 1fr); gap: 16px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--navy-100); }
.ligne:first-child { border-top: 0; }
.ligne:hover { background: var(--navy-50); }
.ligne .badge { height: 26px; min-width: 0; font-size: 11px; }
.ligne .quoi { display: grid; gap: 2px; min-width: 0; }
.ligne .quoi b { font-weight: 500; color: var(--navy-900); }
.ligne .quoi code { font-size: 12.5px; color: var(--navy-500); overflow-wrap: anywhere; }
.ligne .quoi small { font-size: 12.5px; color: var(--navy-400); }
.ligne .resume { font-size: 14px; color: var(--navy-600); }
.ligne.domaine { grid-template-columns: minmax(0, 190px) minmax(0, 1fr); }

/* ---------- pages sur une colonne ---------- */
.seule { max-width: 900px; padding: 34px 48px 64px; }
.seule.vide { padding-top: 90px; }
.seule .grand { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .08em; color: var(--vert-600); }
.seule.vide h1 { margin-top: 8px; }
.bouton-lien { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; margin-top: 22px; border-radius: 9px; background: var(--vert-700); color: #fff; font-weight: 500; }
.bouton-lien:hover { background: var(--vert-800); }
body.nu .seule { margin: 0 auto; }

/* ---------- inventaire et rubrique technique (administrateur) ---------- */
.seule.large { max-width: none; }
.reperes { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.reperes a { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--navy-100); border-radius: 12px; }
.reperes a:hover { border-color: var(--vert-400); }
.reperes b { font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--navy-900); font-variant-numeric: tabular-nums; }
.reperes span { font-size: 13px; color: var(--navy-500); }
.filtre { margin-top: 22px; display: flex; align-items: center; gap: 12px; max-width: 560px; font-size: 13px; font-weight: 500; color: var(--navy-700); }
.filtre input { flex: 1; min-width: 0; height: 40px; border-radius: 9px; border: 1px solid var(--navy-200); padding: 0 12px; font-size: 14.5px; color: var(--navy-900); }
.filtre input:focus { outline: 0; border-color: var(--vert-500); box-shadow: 0 0 0 3px var(--vert-100); }
.defile { margin-top: 12px; overflow-x: auto; border: 1px solid var(--navy-100); border-radius: 12px; }
table.inventaire { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.inventaire th, table.inventaire td { text-align: left; vertical-align: top; padding: 9px 14px; border-top: 1px solid var(--navy-100); }
table.inventaire thead th { border-top: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-400); white-space: nowrap; }
table.inventaire .rubrique th { background: var(--navy-50); font-weight: 700; color: var(--navy-800); }
table.inventaire code { font-size: 12.5px; color: var(--navy-900); overflow-wrap: anywhere; }
table.inventaire td > .m { display: inline-block; width: 52px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; }
table.inventaire a:not(.service) { color: var(--vert-800); text-decoration: underline; text-decoration-color: var(--vert-400); text-underline-offset: 3px; }
table.inventaire details summary { cursor: pointer; color: var(--navy-600); }
table.inventaire details ul, .appelants { list-style: none; display: grid; gap: 5px; margin-top: 6px; }
table.inventaire details[open] summary { margin-bottom: 2px; }
.appelants { margin-top: 0; }
.appelants li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.appelants small { font-size: 12px; color: var(--navy-400); }
.zone { flex: none; width: 86px; font-size: 11.5px; font-weight: 500; color: var(--navy-500); }
.a-decrire { color: var(--ambre); font-weight: 500; }
.service { display: inline-block; margin: 0 6px 4px 0; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--navy-200); background: #fff; font-family: var(--mono); font-size: 11.5px; color: var(--navy-800); white-space: nowrap; }
.service:hover { border-color: var(--vert-500); }
.service.indirect { border-style: dashed; color: var(--navy-500); }
table.inventaire li .service { margin: 0 0 0 8px; }
.note.interne { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-800); }
.note.interne code { border-color: var(--navy-100); }

/* ---------- colonne de code ---------- */
.bloc { min-width: 0; border: 1px solid rgba(255, 255, 255, .08); border-radius: 12px; overflow: hidden; background: #111c28; }
.bloc header { min-height: 42px; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 14px; background: rgba(255, 255, 255, .04); border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 12.5px; color: var(--navy-300); }
.bloc header strong { font-weight: 500; color: #fff; margin-right: 8px; white-space: nowrap; }
.bloc header .precision { margin-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bloc header .onglet { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--navy-300); font-size: 12.5px; cursor: pointer; }
.bloc header .onglet:hover { color: #fff; }
.bloc header .onglet.actif { background: rgba(255, 255, 255, .1); color: #fff; }
.bloc header .etat { margin-left: auto; flex: none; display: flex; align-items: center; gap: 7px; padding-right: 4px; font-family: var(--mono); font-weight: 500; font-size: 12px; color: var(--vert-300); }
.bloc header .etat i { width: 7px; height: 7px; border-radius: 50%; background: var(--vert-400); }
.bloc header .etat b { font-weight: 500; }
.bloc header .etat.rouge { color: #f1a39f; }
.bloc header .etat.rouge i { background: #e2625b; }
.bloc header .copier { margin-left: auto; flex: none; width: 30px; height: 30px; border: 0; border-radius: 6px; background: transparent; color: var(--navy-300); cursor: pointer; display: grid; place-items: center; }
.bloc header .etat + .copier { margin-left: 2px; }
.bloc header .copier:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.bloc header .copier.fait { color: var(--vert-300); }
.bloc pre { padding: 16px; font-size: 12.5px; line-height: 1.7; white-space: pre; color: #d7e0ea; overflow: auto; max-height: 540px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.k { color: #9fd3ff; } .s { color: #b6e3a0; } .n { color: #f3c98b; } .c { color: #6b8198; } .o { color: #8ea3b9; } .v { color: #ffd580; }

/* ---------- console Essayer ---------- */
.essai form { display: grid; gap: 10px; padding: 14px 16px 16px; }
.essai label { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 10px; font-family: var(--mono); font-weight: 500; font-size: 12.5px; color: var(--navy-200); }
.essai label span { overflow-wrap: anywhere; }
.essai input { min-width: 0; height: 34px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; padding: 0 10px; font-family: var(--mono); font-size: 13px; }
.essai input:focus { outline: 0; border-color: var(--vert-400); }
.essai-pied { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.essai-jeton { min-width: 0; font-size: 12.5px; color: var(--navy-300); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.essai-pied button { margin-left: auto; flex: none; height: 34px; padding: 0 16px; border: 0; border-radius: 7px; background: var(--vert-500); color: #0f1f08; font-weight: 500; font-size: 13.5px; cursor: pointer; }
.essai-pied button:hover { background: var(--vert-400); }
.essai-pied button[disabled] { opacity: .6; cursor: progress; }
.essai-reponse { border-top: 1px solid rgba(255, 255, 255, .07); }

/* ---------- fenetre du jeton ---------- */
.dialogue { margin: auto; border: 0; border-radius: 16px; padding: 26px 28px 24px; width: min(440px, calc(100vw - 32px)); color: var(--navy-900); box-shadow: 0 30px 80px -30px rgba(21, 34, 48, .6); }
.dialogue::backdrop { background: rgba(21, 34, 48, .55); }
.dialogue-tete { display: flex; align-items: center; justify-content: space-between; }
.dialogue h3 { margin: 0; font-size: 20px; }
.dialogue .ferme { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; font-size: 22px; line-height: 1; color: var(--navy-500); cursor: pointer; }
.dialogue .ferme:hover { background: var(--navy-50); }
.dialogue-texte { margin-top: 8px; font-size: 14px; color: var(--navy-500); }
.jeton-actuel { margin-top: 14px; padding: 10px 12px; border-radius: 9px; background: var(--vert-50); border: 1px solid var(--vert-100); color: var(--vert-800); font-size: 13.5px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.onglets { margin-top: 18px; display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: var(--navy-50); }
.onglets .onglet { flex: 1; height: 34px; border: 0; border-radius: 7px; background: transparent; font-weight: 500; font-size: 13.5px; color: var(--navy-600); cursor: pointer; }
.onglets .onglet.actif { background: #fff; color: var(--navy-900); box-shadow: 0 1px 2px rgba(21, 34, 48, .14); }
.volet-jeton { display: grid; gap: 14px; margin-top: 18px; }
.volet-jeton label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--navy-700); }
.volet-jeton input, .volet-jeton textarea { width: 100%; height: 42px; border-radius: 9px; border: 1px solid var(--navy-200); padding: 0 12px; font-size: 15px; color: var(--navy-900); }
.volet-jeton textarea { height: auto; padding: 10px 12px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; resize: vertical; word-break: break-all; }
.volet-jeton input:focus, .volet-jeton textarea:focus { outline: 0; border-color: var(--vert-500); box-shadow: 0 0 0 3px var(--vert-100); }
.etape-code { display: grid; gap: 10px; }
.aide { font-size: 13.5px; color: var(--navy-600); }
.message { font-size: 13.5px; color: #a8322d; }
.principal { height: 44px; border: 0; border-radius: 9px; background: var(--vert-700); color: #fff; font-weight: 500; font-size: 15px; cursor: pointer; }
.principal:hover { background: var(--vert-800); }
.principal[disabled] { opacity: .6; cursor: progress; }
.lien { justify-self: start; flex: none; border: 0; background: none; padding: 0; font-weight: 500; font-size: 13.5px; color: var(--vert-800); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- connexion ---------- */
body.nu { min-height: 100vh; background: var(--navy-50); }
.connexion { min-height: 100vh; display: grid; grid-template-columns: 46% minmax(0, 1fr); }
.volet { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 56px 64px; background: var(--navy-900); color: #fff; }
.volet .logo { width: 220px; height: 70px; overflow: hidden; display: flex; align-items: center; margin-left: -14px; }
.volet .logo img { height: 176px; }
.volet h1 { margin: auto 0 0; padding-top: 40px; font-size: 40px; font-weight: 300; line-height: 1.15; letter-spacing: -.015em; }
.volet h1 b { font-weight: 700; }
.volet p { margin-top: 18px; max-width: 430px; font-size: 16px; color: var(--navy-200); }
.faits { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; grid-template-columns: repeat(3, auto); gap: 36px; justify-content: start; }
.faits b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; color: var(--vert-400); }
.faits span { font-size: 13px; color: var(--navy-300); }
.volet::after { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 56px solid rgba(86, 176, 48, .13); }
.formulaire { display: grid; place-items: center; padding: 32px 16px; }
.carte { width: min(400px, 100%); background: #fff; border: 1px solid var(--navy-100); border-radius: 16px; padding: 36px 36px 30px; box-shadow: 0 18px 40px -24px rgba(21, 34, 48, .35); }
.carte h2 { margin: 0; padding: 0; border: 0; font-size: 22px; }
.carte > p { margin-top: 6px; font-size: 14.5px; color: var(--navy-500); }
.carte label { display: block; margin-top: 20px; font-size: 13px; font-weight: 500; color: var(--navy-700); }
.carte input[type="text"], .carte input[type="password"] { display: block; width: 100%; height: 44px; margin-top: 7px; border-radius: 9px; border: 1px solid var(--navy-200); padding: 0 13px; font-size: 15px; color: var(--navy-900); }
.carte input:focus { outline: 0; border-color: var(--vert-500); box-shadow: 0 0 0 3px var(--vert-100); }
.carte button[type="submit"] { width: 100%; height: 46px; margin-top: 26px; border: 0; border-radius: 9px; background: var(--vert-700); color: #fff; font-weight: 500; font-size: 15px; cursor: pointer; }
.carte button[type="submit"]:hover { background: var(--vert-800); }
.carte button[type="submit"][disabled] { opacity: .6; cursor: progress; }
.carte .aide { margin-top: 20px; }
.carte .case { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; font-weight: 400; font-size: 13.5px; }
.carte .case input { flex: none; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--vert-600); }
.carte .liens { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.alerte { margin-top: 18px; padding: 11px 14px; border-radius: 9px; background: #fbeceb; border: 1px solid #f3cfcc; color: #8f2a25; font-size: 14px; }
.carte .pied { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--navy-100); display: flex; gap: 10px; font-size: 13px; color: var(--navy-500); }
.carte .pied svg { flex: none; margin-top: 2px; }

/* ---------- ecrans plus etroits ---------- */
@media (max-width: 1400px) {
  :root { --colonne-code: 460px; }
  .rang > .texte { padding: 0 32px 0 36px; }
}
@media (max-width: 1120px) {
  .corps::before { display: none; }
  .rang { grid-template-columns: minmax(0, 1fr); }
  .rang > .code, .rang + .rang > .code, .rang:first-child > .code, .rang:last-child > .code { margin-top: 22px; padding: 22px 20px; background: var(--navy-950); }
  .rang > .code:empty { display: none; }
  .colle { position: static; }
  .droite .pastille:not(.bouton) { display: none; }
}
@media (max-width: 860px) {
  .ouvre-menu { display: grid; }
  .barre { gap: 10px; padding-right: 10px; }
  .barre .titre, .recherche kbd, .compte > span { display: none; }
  .barre .logo { width: 104px; }
  .barre .logo img { height: 92px; }
  .recherche { margin-left: 0; flex: 1 1 auto; }
  .page { grid-template-columns: minmax(0, 1fr); }
  .nav { position: fixed; top: var(--barre); left: 0; bottom: 0; z-index: 35; align-self: stretch; width: min(300px, 86vw); height: auto; transform: translateX(-102%); transition: transform .18s ease; }
  body.menu-ouvert .nav { transform: none; }
  body.menu-ouvert .corps::after { content: ""; position: fixed; top: var(--barre); right: 0; bottom: 0; left: 0; z-index: 30; background: rgba(21, 34, 48, .5); }
  .rang > .texte, .rang:first-child > .texte { padding-left: 16px; padding-right: 16px; }
  .seule { padding: 24px 16px 48px; }
  .champ, dl.bref > div { grid-template-columns: minmax(0, 1fr); }
  table.tableau th { width: 38%; }
  .ligne, .ligne.domaine { grid-template-columns: 56px minmax(0, 1fr); }
  .ligne.domaine { grid-template-columns: minmax(0, 1fr); }
  .ligne .resume { grid-column: 1 / -1; }
  .voisines a { min-width: 0; }
  .connexion { grid-template-columns: minmax(0, 1fr); }
  .volet { padding: 28px 24px 32px; }
  .volet h1 { padding-top: 24px; font-size: 30px; }
  .faits { margin-top: 28px; gap: 24px; }
}
@media (max-width: 560px) {
  .pastille.bouton span, .compte b { display: none; }
  .pastille.bouton { padding: 0 9px; }
  .compte { padding-left: 6px; }
  .route { flex-wrap: wrap; }
  .essai label { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
