/* Le Registre du Cluster — maquette de quotidien.
   Bodoni pour les titres (autorite de une), IBM Plex Sans pour le texte courant,
   IBM Plex Mono pour toute donnee chiffree. Bleu-acier de New Eden, or reserve
   aux montants en ISK. */

:root {
  --ground: #0a0f17;
  --panel: #111a26;
  --raise: #16212f;
  --line: #22334a;
  --line-soft: #1a2636;
  --ink: #dde6f1;
  --muted: #7d90a8;
  --gold: #d9a441;
  --signal: #4c9fd4;
  --alert: #c4574e;
  --grow: #63b98a;

  --display: "Bodoni Moda", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --ground: #f1f3f6; --panel: #ffffff; --raise: #e8edf3;
    --line: #c7d1de; --line-soft: #dde3ec;
    --ink: #101822; --muted: #57687d;
    --gold: #8f6410; --signal: #1a6791; --alert: #a32f27; --grow: #226b47;
  }
}
:root[data-theme="light"] {
  --ground: #f1f3f6; --panel: #ffffff; --raise: #e8edf3;
  --line: #c7d1de; --line-soft: #dde3ec;
  --ink: #101822; --muted: #57687d;
  --gold: #8f6410; --signal: #1a6791; --alert: #a32f27; --grow: #226b47;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.shell { width: min(1120px, 100%); margin-inline: auto; padding-inline: 20px; }

a { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* ---------- bandeau-titre ---------- */

.masthead { border-bottom: 2px solid var(--ink); }
.masthead .shell { padding-block: 30px 12px; }
.masthead h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(34px, 8vw, 78px);
  line-height: .95;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
.rule {
  display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between; align-items: center;
  margin-top: 14px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

.dateline { border-bottom: 1px solid var(--line); }
.dateline .shell {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  padding-block: 9px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  color: var(--muted);
}
.dateline b { color: var(--ink); font-weight: 600; }
.dateline .live { color: var(--signal); }

/* ---------- navigation ---------- */

.sections-bar { border-bottom: 1px solid var(--line); background: var(--panel); }
.sections { display: flex; flex-wrap: wrap; gap: 2px; }
.sections a {
  font-size: 12.5px; text-decoration: none; color: var(--muted);
  padding: 11px 13px; border-bottom: 2px solid transparent;
  font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase;
  transition: color .15s, border-color .15s;
}
.sections a:hover { color: var(--ink); border-bottom-color: var(--line); }
.sections a.active {
  color: var(--accent-onglet, var(--ink));
  border-bottom-color: var(--accent-onglet, var(--gold));
}

/* ---------- boutons ---------- */

.btn, button.action {
  font: inherit; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: var(--raise); color: var(--ink);
  padding: 7px 13px; border-radius: 2px; text-decoration: none;
  display: inline-block;
}
.btn:hover, button.action:hover { border-color: var(--gold); }
.btn-primary {
  background: var(--gold); color: #14100a; border-color: var(--gold); font-weight: 600;
}
.btn-primary:hover { filter: brightness(1.08); }

.account { display: inline-flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; }
.account img { width: 30px; height: 30px; border-radius: 2px; border: 1px solid var(--line); }

/* ---------- une ---------- */

.feed { display: grid; gap: 0; padding-block: 26px 44px; }
@media (min-width: 880px) {
  .feed { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; }
  .card.lead { grid-column: 1 / -1; }
}

.card {
  min-width: 0;
  border-top: 1px solid var(--line-soft);
  padding-block: 18px;
  display: flex; flex-direction: column; gap: 9px;
}
.card.lead {
  border-top: none;
  padding-top: 4px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 8px;
}

.kicker {
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--signal);
  display: flex; align-items: center; gap: 9px;
}
.kicker .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .55; }
.kicker time { color: var(--muted); }

.card h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 2.1vw, 23px); line-height: 1.18;
  margin: 0; text-wrap: balance;
}
.card.lead h2 {
  font-weight: 900; letter-spacing: -.01em;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.04;
  max-width: 18ch;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card.lead p.standfirst {
  color: var(--ink); font-size: 18px; max-width: 58ch; line-height: 1.5;
}
.card footer {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: auto; padding-top: 6px;
}
.stamp {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.lock { color: var(--gold); font-size: 11px; font-family: var(--mono); }

/* ---------- lecture d'un article ---------- */

.reader {
  border: 1px solid var(--line); background: var(--panel); color: var(--ink);
  border-radius: 3px; width: min(760px, 94vw); max-height: 88vh;
  overflow: auto; padding: 32px clamp(20px, 4vw, 44px) 40px;
}
.reader::backdrop { background: rgba(4, 7, 12, .8); }
.reader .close {
  position: sticky; top: -8px; float: right;
  border: none; background: none; color: var(--muted);
  font-size: 28px; line-height: 1; padding: 0 4px; cursor: pointer;
}
.reader .close:hover { color: var(--ink); }
.reader h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(25px, 4vw, 38px); line-height: 1.1;
  margin: 8px 0 14px; text-wrap: balance;
}
.reader .standfirst {
  font-size: 17.5px; line-height: 1.5; color: var(--ink);
  margin: 0 0 22px; max-width: 60ch;
  border-left: 2px solid var(--gold); padding-left: 16px;
}
.reader .prose p {
  margin: 0 0 15px; max-width: 65ch; font-size: 15.5px;
}
.reader .prose p:first-of-type::first-letter {
  font-family: var(--display); font-weight: 900;
  font-size: 3.1em; float: left; line-height: .82;
  padding: 3px 10px 0 0; color: var(--gold);
}
.reader .source {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  letter-spacing: .06em; border-top: 1px solid var(--line-soft);
  padding-top: 12px; margin-top: 24px;
}

/* ---------- tableaux ---------- */

.table-wrap { overflow-x: auto; margin: 22px 0; }
table {
  width: 100%; border-collapse: collapse;
  font-family: var(--mono); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
caption {
  caption-side: top; text-align: left; color: var(--muted);
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  padding-bottom: 7px;
}
th, td { padding: 5px 10px; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th {
  color: var(--muted); font-weight: 500; font-size: 9.5px;
  letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
td { border-bottom: 1px solid var(--line-soft); }
td.name, td:first-child { font-family: var(--sans); font-size: 13px; }
.up { color: var(--grow); }
.down { color: var(--alert); }
.gold { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- le fil ---------- */

.wire-filters { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 20px 14px; }
.wire-filters button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer;
  background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 2px; padding: 5px 10px;
}
.wire-filters button:hover { color: var(--ink); }
.wire-filters button.active { color: var(--gold); border-color: var(--gold); }

.wire-list { display: grid; gap: 1px; padding-bottom: 44px; }
.wire-item {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 16px;
  align-items: baseline;
  background: var(--panel); border-left: 2px solid var(--line);
  padding: 9px 14px;
}
.wire-item.imp2 { border-left-color: var(--signal); }
.wire-item.imp3 { border-left-color: var(--gold); }
.wire-item.imp4, .wire-item.imp5 { border-left-color: var(--alert); }
.wire-kind {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.wire-head { margin: 0; font-size: 14px; }
@media (max-width: 660px) {
  .wire-item { grid-template-columns: 1fr auto; }
  .wire-kind { grid-column: 1 / -1; }
}

/* ---------- paywall (dormant) ---------- */

.paywall {
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
  background: var(--panel); padding: 20px 22px; margin-top: 24px;
}
.paywall h2 { font-family: var(--display); margin: 0 0 6px; font-size: 21px; }
.paywall ol { margin: 12px 0; padding-left: 20px; color: var(--muted); }
.price { font-family: var(--mono); font-size: 25px; color: var(--gold); }
.pay-grid { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }
.note.rejected { color: var(--alert); }
.code {
  font-family: var(--mono); font-size: 19px; letter-spacing: .12em;
  background: var(--ground); border: 1px dashed var(--gold); color: var(--gold);
  padding: 9px 15px; user-select: all;
}
.code-inline {
  font-family: var(--mono); color: var(--gold);
  background: var(--ground); padding: 1px 6px;
}
.proof-form {
  border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px;
  display: grid; gap: 12px; max-width: 520px;
}
.proof-form label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.proof-form input {
  font: inherit; padding: 8px 10px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--ground); color: var(--ink);
}
.proof-form button { justify-self: start; }
.error { color: var(--alert); font-size: 13px; margin: 0; }

/* ---------- pied ---------- */

footer { border-top: 1px solid var(--line); }
footer .shell { padding-block: 20px 44px; }
footer p { color: var(--muted); font-size: 12px; margin: 0 0 6px; max-width: 72ch; }
footer .fine { font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; }

.loading {
  color: var(--muted); font-family: var(--mono); font-size: 13px;
  grid-column: 1 / -1; padding-block: 30px;
}

/* ---------- back-office ---------- */
.rows { display: grid; gap: 10px; padding-block: 18px 44px; }
.row {
  display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 3px solid var(--line);
  background: var(--panel); padding: 14px 16px;
}
.row-flag { border-left-color: var(--alert); }
.row-off { opacity: .55; border-left-color: var(--muted); }
.row .portrait { width: 44px; height: 44px; border: 1px solid var(--line); }
.row-main { flex: 1 1 320px; min-width: 0; }
.row-main h3 {
  margin: 0 0 4px; font-family: var(--display); font-weight: 700; font-size: 17px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
.row-main p { margin: 0 0 4px; }
.dim { color: var(--muted); font-size: 13.5px; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.tag {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; border: 1px solid var(--line);
  padding: 2px 7px; color: var(--muted); font-weight: 400;
}
.tag-gold { color: var(--gold); border-color: var(--gold); }
.tag-red { color: var(--alert); border-color: var(--alert); }

.perms {
  border: 1px solid var(--line); padding: 12px 14px; margin: 0;
  display: grid; gap: 7px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.perms legend { padding: 0 6px; }
/* Doit battre `.proof-form label` qui empile en grid. */
.proof-form label.perm, label.perm {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--ink); cursor: pointer;
}
.perm input { width: auto; flex: none; margin: 0; accent-color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

textarea {
  font: inherit; font-size: 14px; line-height: 1.55;
  padding: 10px 12px; border-radius: 2px; resize: vertical;
  border: 1px solid var(--line); background: var(--ground); color: var(--ink);
  width: 100%;
}
textarea:focus { outline: none; border-color: var(--gold); }

.badge {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--line);
}
.badge.on { color: var(--gold); border-color: var(--gold); }
.badge.off { color: var(--muted); }

.proof-img { width: 100%; border: 1px solid var(--line); margin-top: 12px; }
code {
  font-family: var(--mono); font-size: 12.5px;
  background: var(--panel); padding: 1px 5px;
}

/* ---------- indicateur de direct ---------- */
.pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--grow); margin-right: 7px; vertical-align: middle;
  animation: battement 2.4s ease-in-out infinite;
}
@keyframes battement {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--grow) 55%, transparent); }
  50% { opacity: .55; box-shadow: 0 0 0 5px transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
}
.refreshed { margin-left: auto; opacity: .75; }

/* ---------- choix d'edition par le lecteur ---------- */
.edition-bar { border-bottom: 1px solid var(--line-soft); }
.familles {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding-block: 8px;
}
.edition-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); margin-right: 6px;
}
.familles button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer;
  background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 2px; padding: 4px 10px;
}
.familles button:hover { color: var(--ink); }
.familles button.active {
  color: var(--gold); border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
}
.wire-item.wire-mine { background: color-mix(in srgb, var(--gold) 6%, var(--panel)); }

/* ---------- provenance des donnees ---------- */
.provenance {
  border-top: 1px solid var(--line-soft);
  margin-top: 26px; padding-top: 14px;
}
.releve {
  margin: 0 0 8px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .06em; color: var(--muted);
}
.releve .age { opacity: .7; }
ul.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
ul.sources li {
  font-family: var(--mono); font-size: 10.5px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
}
ul.sources code {
  background: var(--ground); padding: 1px 6px; color: var(--ink); font-size: 10.5px;
}
ul.sources .cadence { opacity: .75; font-style: italic; }

/* ---------- carte de New Eden ---------- */
.carte-vue { display: grid; gap: 14px; padding-block: 20px 44px; }
.carte-entete {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  align-items: baseline; justify-content: space-between;
}
.legende { display: flex; flex-wrap: wrap; gap: 15px; }
.cle {
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: 7px;
}
.cle i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cle i.halo-cle {
  width: 14px; height: 14px;
  background: radial-gradient(circle, #ff6b5c 0%, rgba(196,87,78,.25) 60%, transparent 100%);
}
.cle i.point-cle { width: 5px; height: 5px; background: var(--muted); }

.carte-cadre {
  border: 1px solid var(--line);
  background: #070b11;
  overflow: hidden;
}
:root[data-theme="light"] .carte-cadre { background: #0a0f17; }
svg.carte { display: block; width: 100%; height: auto; }
svg.carte text.nom {
  font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  fill: #8ea3bd; pointer-events: none;
}
svg.carte text.nom.fort { fill: #e6edf6; font-size: 11.5px; }
svg.carte .constellations { transition: opacity .18s; }
svg.carte .constellations.active { opacity: 1 !important; }
svg.carte .zone { cursor: pointer; }
svg.carte .zone:focus { outline: none; }

.carte-detail {
  border: 1px solid var(--line-soft); background: var(--panel);
  padding: 14px 18px; min-height: 96px;
}
.carte-detail h3 {
  font-family: var(--display); font-weight: 700; font-size: 21px; margin: 0 0 4px;
}
.carte-detail p { margin: 0 0 4px; font-size: 14px; }

/* ---------- outils de marche ---------- */
.marche-vue { display: grid; gap: 22px; padding-block: 20px 44px; }
.bloc-marche { border-top: 1px solid var(--line-soft); padding-top: 16px; }
.bloc-marche h3 {
  font-family: var(--display); font-weight: 700; font-size: 21px; margin: 0 0 4px;
}
.bloc-marche h4 {
  font-family: var(--display); font-weight: 700; font-size: 18px; margin: 16px 0 2px;
}
.bloc-marche .dim { margin: 0 0 12px; max-width: 74ch; }
.recherche { border-top: none; padding-top: 0; }
#q-objet {
  font: inherit; font-size: 15px; width: min(420px, 100%);
  padding: 9px 12px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--ground); color: var(--ink);
}
#q-objet:focus { outline: none; border-color: var(--gold); }
ul.suggestions {
  list-style: none; margin: 10px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
ul.suggestions button {
  font: inherit; font-size: 13px; cursor: pointer;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px; padding: 5px 11px;
}
ul.suggestions button:hover { border-color: var(--gold); color: var(--gold); }
.note-seuils {
  font-size: 12.5px; color: var(--muted); max-width: 80ch;
  border-top: 1px solid var(--line-soft); padding-top: 12px; margin: 0;
}


/* ---------- icones officielles et couleur par rubrique ---------- */
img.icone {
  width: 20px; height: 20px; vertical-align: -5px;
  margin-right: 8px; border-radius: 2px;
}
img.icone.grande { width: 34px; height: 34px; vertical-align: -9px; }
ul.suggestions button { display: inline-flex; align-items: center; }
ul.suggestions img.icone { width: 18px; height: 18px; margin-right: 6px; vertical-align: 0; }

/* La rubrique donne sa couleur a sa carte. */
.card .kicker { color: var(--accent-section, var(--signal)); }
.card { border-top-color: var(--accent-section, var(--line-soft)); }
.card.lead { border-bottom-color: var(--accent-section, var(--line)); }
.card.lead .standfirst {
  border-left: 3px solid var(--accent-section, var(--gold));
  padding-left: 15px;
}


/* ---------- vraies sections ---------- */
.vue { min-height: 60vh; }
.vue.transition { opacity: .35; }
.vue { transition: opacity .16s ease-out; }

.section-tete {
  border-bottom: 2px solid var(--accent-section, var(--line));
  padding-block: 26px 14px; margin-bottom: 4px;
}
.section-tete h2 {
  font-family: var(--display); font-weight: 900; margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.05;
  color: var(--accent-section, var(--ink));
}
.section-tete p { margin: 0; color: var(--muted); font-size: 15px; max-width: 74ch; }

.bloc { border-top: 1px solid var(--line-soft); padding-top: 18px; margin-top: 24px; }
.bloc:first-of-type { border-top: none; padding-top: 6px; margin-top: 12px; }
.bloc h3 {
  font-family: var(--display); font-weight: 700; font-size: 21px; margin: 22px 0 4px;
}
.bloc .dim { margin: 0 0 12px; max-width: 76ch; }
.card h3 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 2.1vw, 23px); line-height: 1.18; margin: 0;
  text-wrap: balance;
}
.card.lead h3 {
  font-weight: 900; letter-spacing: -.01em;
  font-size: clamp(30px, 5vw, 52px); line-height: 1.04; max-width: 18ch;
}

/* ---------- barres de filtres ---------- */
.barre-filtres {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  padding-block: 14px;
}
.barre-filtres button {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em;
  text-transform: uppercase; cursor: pointer; background: none; color: var(--muted);
  border: 1px solid var(--line); border-radius: 2px; padding: 5px 10px;
  transition: color .15s, border-color .15s;
}
.barre-filtres button:hover { color: var(--ink); }
.barre-filtres button.active { color: var(--gold); border-color: var(--gold); }
.filtres-marche label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.filtres-marche select {
  font: inherit; font-size: 13px; text-transform: none; letter-spacing: 0;
  padding: 5px 9px; border-radius: 2px;
  border: 1px solid var(--line); background: var(--ground); color: var(--ink);
}
.filtres-marche select:focus { outline: none; border-color: var(--gold); }

/* ---------- infobulles ---------- */
.info {
  border-bottom: 1px dotted var(--muted); cursor: help;
}
.info:focus { outline: 2px solid var(--signal); outline-offset: 2px; }
.infobulle {
  position: absolute; z-index: 60; pointer-events: none;
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--gold); border-radius: 3px;
  padding: 10px 13px; font-size: 13px; line-height: 1.5;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(4px);
  transition: opacity .14s, transform .14s;
}
.infobulle.visible { opacity: 1; transform: translateY(0); }

/* ---------- controles de la carte ---------- */
.carte-barre {
  display: flex; flex-wrap: wrap; gap: 12px 22px;
  align-items: center; justify-content: space-between; padding-block: 14px 10px;
}
.carte-controles { display: flex; align-items: center; gap: 6px; }
.carte-controles button {
  font-family: var(--mono); font-size: 13px; cursor: pointer;
  background: var(--raise); color: var(--ink);
  border: 1px solid var(--line); border-radius: 2px;
  min-width: 32px; padding: 5px 10px; transition: border-color .15s;
}
.carte-controles button:hover { border-color: var(--gold); color: var(--gold); }
#niveau-zoom {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  min-width: 52px; text-align: center; font-variant-numeric: tabular-nums;
}
.carte-cadre { position: relative; cursor: grab; touch-action: none; }
.carte-cadre.glisse { cursor: grabbing; }
.carte-aide {
  position: absolute; right: 12px; bottom: 10px; margin: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  color: var(--muted); opacity: .8; pointer-events: none;
}

/* ---------- animations ---------- */
.apparait { opacity: 0; transform: translateY(10px); }
.apparait.vu {
  animation: surgir .42s cubic-bezier(.22, .68, .36, 1) both;
}
@keyframes surgir {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.pulse { animation: battement 2.4s ease-in-out infinite; }
.card { transition: transform .18s ease-out, border-color .18s; }
.card:not(.lead):hover { transform: translateY(-3px); }
.wire-item { transition: background .18s, border-color .18s; }
.wire-item:hover { background: var(--raise); }
tbody tr { transition: background .12s; }
tbody tr:hover { background: color-mix(in srgb, var(--gold) 5%, transparent); }

@media (prefers-reduced-motion: reduce) {
  .apparait, .apparait.vu { opacity: 1; transform: none; animation: none; }
  .vue, .card, .wire-item, tbody tr, .infobulle { transition: none; }
  .pulse { animation: none; }
}
