/* SimpleBot — feuille de style du site.
   Parti pris : un guichet d'état civil au bord de l'autoroute. Fond « papier »
   gris-bleu repris des cartes du bot, encre sombre, et le vert des panneaux
   directionnels américains pour tout ce qui oriente (enseigne, actions).
   Aucune dépendance externe : police embarquée, pas de CDN. */

@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Overpass";
  src: url("../fonts/overpass-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #E8ECEF;
  --sheet: #FFFFFF;
  --ink: #17232B;
  --muted: #566772;
  --line: #CBD3DA;
  --sign: #00693E;
  --sign-deep: #004D2E;
  --on-sign: #FFFFFF;
  --link: #00693E;
  --amber: #F2B300;
  --amber-ink: #3D2E00;
  --stop: #B42318;
  --stop-wash: #FBEAE8;
  --ok-wash: #E3F2EA;
  --steel: #8A98A3;
  --radius: 6px;
  --side: 264px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12181C;
    --sheet: #1B2329;
    --ink: #E6ECEF;
    --muted: #97A6B0;
    --line: #2F3B44;
    --link: #5FD09A;
    --stop: #FF8A7A;
    --stop-wash: #3A1E1B;
    --ok-wash: #15302A;
    --steel: #55626B;
  }
}

*, *::before, *::after { box-sizing: border-box; }
/* L'attribut hidden doit toujours masquer, même un élément dont la classe fixe un display (bouton, champ) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1 { font-size: 1.9rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.2rem; line-height: 1.25; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
a { color: var(--link); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Panneau directionnel : l'élément signature ---------- */
.sign {
  position: relative; background: var(--sign); color: var(--on-sign);
  border-radius: 12px; padding: 18px 20px 16px;
  box-shadow: inset 0 0 0 5px var(--sign), inset 0 0 0 8px var(--on-sign);
}
.sign-tab {                       /* cartouche façon « EXIT 12 » posé sur le panneau */
  position: absolute; right: 18px; top: -16px;
  background: var(--sign); color: var(--on-sign);
  font-size: .8rem; font-weight: 700; padding: 5px 12px 3px; border-radius: 8px 8px 0 0;
  box-shadow: inset 0 0 0 2px var(--sign), inset 0 3px 0 2px var(--on-sign), inset 3px 0 0 2px var(--on-sign), inset -3px 0 0 2px var(--on-sign);
}
.sign-name { font-size: 1.15rem; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }

/* ---------- Structure ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  background: var(--sheet); border-right: 1px solid var(--line);
  padding: 34px 16px 20px; display: flex; flex-direction: column; gap: 22px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.nav-group > p { font-size: .8rem; color: var(--muted); padding: 0 12px 4px; }
.nav a {
  display: block; padding: 8px 12px; border-radius: var(--radius); color: var(--ink);
  text-decoration: none; font-weight: 500; border-left: 4px solid transparent;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { border-left-color: var(--sign); background: var(--paper); font-weight: 700; }
.side-foot { margin-top: auto; font-size: .9rem; padding: 0 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 12px 32px;
  border-bottom: 1px solid var(--line); background: var(--sheet);
}
/* Menu du compte : pseudo et photo cliquables, qui ouvrent les actions du compte */
.topbar .who { margin-left: auto; position: relative; min-width: 0; }
.topbar .who > summary {
  display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer;
  list-style: none; padding: 5px 8px; border-radius: var(--radius); border: 1px solid transparent;
}
.topbar .who > summary::-webkit-details-marker { display: none; }
.topbar .who > summary:hover { background: var(--paper); }
.topbar .who > summary:focus-visible { outline: 2px solid var(--sign); outline-offset: 2px; }
.topbar .who[open] > summary { background: var(--paper); border-color: var(--line); }
.topbar .who img { width: 32px; height: 32px; border-radius: 50%; }
.topbar .who > summary > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .who .caret { flex: none; color: var(--muted); transition: transform .15s ease; }
.topbar .who[open] .caret { transform: rotate(180deg); }
.who-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 220px;
  background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(10, 16, 20, .16); padding: 6px; display: grid; gap: 2px;
}
.who-menu a, .who-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 6px;
  background: none; border: 0; font: inherit; color: var(--ink); text-decoration: none; cursor: pointer;
}
.who-menu a:hover, .who-menu button:hover { background: var(--paper); }
.who-menu a:focus-visible, .who-menu button:focus-visible { outline: 2px solid var(--sign); outline-offset: -2px; }
@media (prefers-reduced-motion: reduce) { .topbar .who .caret { transition: none; } }
.brand { font-weight: 800; color: var(--ink); text-decoration: none; }
.content { padding: 32px; max-width: 1120px; width: 100%; }
.content.narrow { max-width: 760px; }
.page-head { margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: end; justify-content: space-between; }
.page-head p { color: var(--muted); max-width: 62ch; margin-top: 6px; }
.page-head input[type="search"] { width: min(320px, 80vw); }
.stack > * + * { margin-top: 20px; }

.menu-btn { display: none; }
.scrim { display: none; }
#nav-toggle { display: none; }

@media (max-width: 860px) {
  .shell { display: block; }
  .side {
    position: fixed; inset: 0 auto 0 0; width: min(86vw, 300px); z-index: 20;
    transform: translateX(-102%); transition: transform .18s ease;
  }
  #nav-toggle:checked ~ .side { transform: none; }
  #nav-toggle:checked ~ .scrim { display: block; position: fixed; inset: 0; z-index: 15; background: rgba(10,16,20,.45); }
  .menu-btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700;
    border: 1px solid var(--line); border-radius: var(--radius); padding: 7px 12px; background: var(--sheet);
  }
  .menu-btn i { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px currentColor, 0 5px currentColor; }
  .topbar { padding: 10px 16px; position: sticky; top: 0; z-index: 10; }
  /* Sur mobile, seules la photo et la flèche restent : le pseudo prendrait toute la place */
  .topbar .who > summary > span:not(.sr) { display: none; }
  .content { padding: 20px 16px 40px; }
  h1 { font-size: 1.55rem; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }

/* ---------- Composants ---------- */
.panel { background: var(--sheet); border: 1px solid var(--line); border-radius: var(--radius); }
.panel > header { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel > header p { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none;
  padding: 10px 16px 8px; border-radius: var(--radius); border: 1px solid var(--sign);
  background: var(--sign); color: var(--on-sign);
}
.btn:hover { background: var(--sign-deep); border-color: var(--sign-deep); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { background: var(--paper); }
.btn.danger { background: var(--stop); border-color: var(--stop); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.danger { color: #2A0B07; } }
.btn.sm { padding: 6px 10px 4px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
form.inline { display: inline; }

.field { display: grid; gap: 6px; }
.field + .field { margin-top: 18px; }
.field label, .field .label { font-weight: 700; }
.field .hint { color: var(--muted); font-size: .9rem; max-width: 62ch; }
input[type="text"], input[type="number"], input[type="search"], input[type="datetime-local"], select {
  font: inherit; color: var(--ink); background: var(--sheet); width: 100%; max-width: 420px;
  border: 1px solid var(--steel); border-radius: var(--radius); padding: 9px 10px 7px;
}
input[type="number"] { max-width: 160px; }
textarea {
  font: inherit; color: var(--ink); background: var(--sheet); width: 100%; max-width: 640px; resize: vertical;
  border: 1px solid var(--steel); border-radius: var(--radius); padding: 9px 10px 7px; line-height: 1.45;
}
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 24px; align-items: end; }
.split .field + .field { margin-top: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--sign); flex: none; }
.form-foot { display: flex; justify-content: flex-end; margin-top: 20px; }

.flash { border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; font-weight: 500; border-left: 6px solid var(--sign); background: var(--ok-wash); }
.flash.error { border-left-color: var(--stop); background: var(--stop-wash); }
.note { border-left: 6px solid var(--amber); background: color-mix(in srgb, var(--amber) 16%, var(--sheet)); padding: 12px 16px; border-radius: var(--radius); }

.chip { display: inline-block; font-size: .8rem; font-weight: 700; padding: 3px 9px 1px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.chip.on { background: var(--sign); border-color: var(--sign); color: var(--on-sign); }
.chip.wait { background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
tr.row-link:hover { background: var(--paper); }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--line); }
.plus { color: var(--sign); } .minus { color: var(--stop); }
@media (prefers-color-scheme: dark) { .plus { color: var(--link); } }
@media (max-width: 700px) { .hide-sm { display: none; } th, td { padding: 10px 12px; } }

.ledger { display: grid; grid-template-columns: 1fr auto; }
.ledger > * { padding: 11px 20px; border-bottom: 1px solid var(--line); }
.ledger > dd { text-align: right; font-weight: 700; }
.ledger > :nth-last-child(-n+2) { border-bottom: 0; }

.back-link { margin-top: 20px; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 36px 24px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
code { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: .9em; background: var(--paper); padding: 1px 5px; border-radius: 4px; }

/* ---------- Documents ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.id-card { display: flex; flex-direction: column; }
.id-card .doc-frame { border-radius: var(--radius) var(--radius) 0 0; border-bottom: 0; }
.id-card .panel { border-radius: 0 0 var(--radius) var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.id-card h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doc-frame { background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-frame img { width: 100%; height: auto; aspect-ratio: 1011 / 639; object-fit: contain; }
.doc-frame.id img { aspect-ratio: 808 / 511; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button {
  font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 10px 14px 8px; border-bottom: 4px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sign); }
.doc-view { max-width: 720px; }
.doc-view figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.js .tabpanel[hidden] { display: none; }
.tabpanel + .tabpanel { margin-top: 28px; }
.js .tabpanel + .tabpanel { margin-top: 0; }
.tabpanel > h2 { margin-bottom: 12px; }
.js .tabpanel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px 20px; }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { font-weight: 700; overflow-wrap: anywhere; }
.profile { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.profile img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .two-col { grid-template-columns: 1fr; } }
details.danger-zone > summary { cursor: pointer; font-weight: 700; color: var(--stop); padding: 16px 20px; }
details.danger-zone > div { padding: 0 20px 20px; }

/* ---------- Liste des serveurs ---------- */
.servers { list-style: none; margin: 0; padding: 0; }
.servers li { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.servers li:last-child { border-bottom: 0; }
.servers .icon { width: 48px; height: 48px; border-radius: 12px; flex: none; background: var(--sign); color: var(--on-sign); display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; object-fit: cover; }
.servers .name { flex: 1; min-width: 0; }
.servers .name strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; }
.company .logo { width: 52px; height: 52px; border-radius: 10px; flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 800; color: #fff; }
.company .body { flex: 1; min-width: 0; }
.company .money { font-weight: 800; white-space: nowrap; }

/* ---------- Accueil : le portique ---------- */
.gantry-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.gantry { width: min(680px, 100%); }
.gantry-beam {
  height: 22px; border: 3px solid var(--steel); border-radius: 3px;
  background: repeating-linear-gradient(60deg, transparent 0 14px, var(--steel) 14px 17px),
              repeating-linear-gradient(-60deg, transparent 0 14px, var(--steel) 14px 17px);
}
.gantry-posts { display: flex; justify-content: space-between; padding: 0 22px; }
.gantry-posts i { width: 12px; height: 34px; background: var(--steel); }
.gantry .sign { padding: 30px 30px 26px; margin-top: -2px; }
.gantry .sign h1 { font-size: clamp(2.2rem, 8vw, 3.6rem); letter-spacing: -0.02em; }
.gantry .sign p { font-size: 1.15rem; margin-top: 8px; max-width: 40ch; font-weight: 500; }
.gantry-legs { display: flex; justify-content: space-between; padding: 0 22px; }
.gantry-legs i { width: 12px; height: 46px; background: var(--steel); }
.gantry-road { border-top: 4px solid var(--steel); padding-top: 26px; display: grid; gap: 14px; justify-items: start; }
.btn.big { font-size: 1.1rem; padding: 14px 22px 12px; }

/* ---------- Aperçu d'un message Discord ----------
   Reprend volontairement les couleurs de Discord (thème sombre), quel que soit le thème du site,
   pour montrer le message tel que les joueurs le verront. */
.dc-embed {
  background: #2B2D31; color: #DBDEE1; border-left: 4px solid #57F287; border-radius: 4px;
  padding: 12px 16px 14px; max-width: 520px; font-size: .92rem; line-height: 1.4;
  font-family: "gg sans", "Noto Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.dc-title { font-weight: 700; color: #F2F3F5; font-size: 1rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.dc-body { overflow-wrap: anywhere; }
.dc-body p { margin: 0; min-height: 1.4em; }
.dc-body h1, .dc-body h2, .dc-body h3 { color: #F2F3F5; font-weight: 700; line-height: 1.25; margin: 8px 0 4px; letter-spacing: 0; }
.dc-body h1 { font-size: 1.4rem; } .dc-body h2 { font-size: 1.2rem; } .dc-body h3 { font-size: 1.05rem; }
.dc-body ul { margin: 4px 0; padding-left: 22px; }
.dc-body blockquote { margin: 2px 0; padding-left: 12px; border-left: 4px solid #4E5058; }
.dc-body small { display: block; color: #949BA4; font-size: .8rem; }
.dc-body code, .dc-body pre { background: #1E1F22; color: #DBDEE1; border-radius: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; }
.dc-body code { padding: 1px 4px; }
.dc-body pre { padding: 8px 10px; margin: 4px 0; white-space: pre-wrap; border: 1px solid #1A1B1E; }
.dc-link { color: #00A8FC; }
.dc-mention { background: rgba(88, 101, 242, .3); color: #C9CDFB; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-spoiler { background: #1E1F22; color: transparent; border-radius: 3px; }
.dc-spoiler:hover { color: inherit; }

/* ---------- Rôle Discord affiché comme une mention ---------- */
.role-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.role-pill {
  display: inline-block; font-weight: 600; padding: 3px 8px 1px; border-radius: 4px; white-space: nowrap;
  /* La couleur du rôle est rapprochée de l'encre pour rester lisible sur fond clair comme sur fond sombre */
  color: color-mix(in srgb, var(--role, var(--muted)) 70%, var(--ink));
  background: color-mix(in srgb, var(--role, var(--muted)) 18%, transparent);
}
.role-pill.none { font-weight: 400; color: var(--muted); background: none; padding-left: 0; }
.role-cell select { max-width: 260px; }

/* ---------- Gestion d'entreprise ---------- */
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline-form select { max-width: 200px; }
details.confirm { display: inline-block; }
details.confirm > summary { list-style: none; cursor: pointer; }
details.confirm > summary::-webkit-details-marker { display: none; }
details.confirm[open] > summary { margin-bottom: 8px; }
.rank-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
fieldset > legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 24px; }
.perm-grid > legend { grid-column: 1 / -1; }
.perm-grid input:disabled + span { opacity: .6; }
.rank-actions { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.modes { display: grid; gap: 12px; margin-top: 0; }
.mode { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.mode:has(input:checked) { border-color: var(--sign); background: var(--ok-wash); }
.period { padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.period > legend { padding: 0 6px; margin-bottom: 0; }
.js .period[data-inactive] { opacity: .55; }
.run-lines { margin: 8px 0 0; padding-left: 18px; }
.attendance { list-style: none; margin: 0; padding: 0; }
.attendance li { padding: 12px 20px; border-bottom: 1px solid var(--line); }
.attendance li:last-child { border-bottom: 0; }
.company-side { display: grid; gap: 10px; justify-items: end; }

/* ---------- Interrupteur (case à cocher en forme de curseur) ---------- */
.switch { position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track {
  flex: none; position: relative; width: 44px; height: 24px; margin-top: 1px; border-radius: 999px;
  background: var(--line); border: 1px solid var(--steel); transition: background .15s ease;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sheet); box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s ease;
}
.switch input:checked + .switch-track { background: var(--sign); border-color: var(--sign); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--link); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track::after { transition: none; } }
.field label .hint, .field .check .hint { font-weight: 400; }

/* ---------- Guide d'utilisation ---------- */
.help-link {
  margin-left: auto; display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--radius); color: var(--ink); border: 1px solid transparent;
}
.help-link:hover, .help-link[aria-current="page"] { background: var(--paper); border-color: var(--line); }
.help-link:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.help-link + .who { margin-left: 10px; }
.wiki-head { align-items: end; }
.wiki-search input { width: min(380px, 100%); max-width: none; font-size: 1.05rem; padding: 11px 12px 9px; }
.wiki { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; }
.wiki-toc { position: sticky; top: 20px; }
.wiki-toc ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.wiki-toc a { display: block; padding: 6px 10px; border-radius: var(--radius); color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.wiki-toc a:hover { background: var(--paper); border-left-color: var(--sign); }
.wiki-toc li[hidden] { display: none; }
.wiki-count { margin-bottom: 12px; }
.wiki-section + .wiki-section { margin-top: 32px; }
.wiki-section > h2 { margin-bottom: 12px; }
.wiki-article + .wiki-article { margin-top: 14px; }
.wiki-article > header { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; }
.wiki-article h3 a { color: var(--ink); text-decoration: none; }
.wiki-article h3 a:hover { text-decoration: underline; }
.wiki-article:target { outline: 3px solid var(--sign); outline-offset: 2px; }
.wiki-text { max-width: 75ch; }
.wiki-text > * + * { margin-top: 10px; }
.wiki-text ul, .wiki-text ol { padding-left: 22px; margin-bottom: 0; }
.wiki-text li + li { margin-top: 4px; }
/* Conditions et confidentialité */
.legal .wiki-article > header h2 { font-size: 1.15rem; }
.legal .wiki-article { scroll-margin-top: 16px; }

.sep { margin: 0 8px; }
.site-foot { padding: 18px 24px 24px; text-align: center; }
.site-foot a { color: inherit; }
.wiki-text .tip { border-left: 4px solid var(--amber); padding-left: 12px; color: var(--muted); }
@media (max-width: 860px) {
  .wiki { grid-template-columns: 1fr; }
  .wiki-toc { position: static; }
  .wiki-toc ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .wiki-toc a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 2px; font-size: .9rem; }
}

/* ---------- Offres d'emploi, départ ---------- */
.offers { list-style: none; margin: 0; padding: 0; }
.offers li { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--line); }
.danger-panel { border-color: color-mix(in srgb, var(--stop) 45%, var(--line)); }
.danger-panel > header h2 { color: var(--stop); }
.offers li:first-child { border-top: 0; }
