/* MILTRADERS · Dashboard live
   Charte reprise du brief : fond noir, cartes graphite, or réservé aux actions,
   chiffres en chasse fixe. Aucun style en ligne dans les gabarits (CSP stricte). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../polices/inter-latin.8e433c0592f7.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("../polices/inter-latin-ext.ad4eb06671be.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;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../polices/jetbrains-mono-latin.b058178d7f30.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --fond: #0d0d0e;
  --surface: #161618;
  --surface-2: #1d1d20;
  --surface-3: #25252a;
  --bord: #2a2a2f;
  --bord-fort: #3a3a41;
  --texte: #ededee;
  --texte-2: #a6a6ad;
  --texte-3: #75757d;
  --or: #f5c542;
  --or-vif: #ffd25c;
  --or-sombre: #3a2f10;
  --ok: #4ade80;
  --ok-fond: #0f2a19;
  --attention: #f5a524;
  --attention-fond: #33230a;
  --critique: #f87171;
  --critique-fond: #3a1414;
  --info: #7cb4ff;
  --info-fond: #11233d;
  --serie-solde: #3987e5;
  --serie-plancher: #d03b3b;
  --serie-seuil: #c98500;
  --grille-graphique: #26262a;
  --axe-graphique: #3a3a40;
  --encre-muette: #898781;
  --rayon: 12px;
  --rayon-petit: 8px;
  --police: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --chiffres: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ombre: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 8px 24px rgb(0 0 0 / 35%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--fond);
  color: var(--texte);
  font-family: var(--police);
  font-size: 14.5px;
  line-height: 1.5;
  font-feature-settings: "cv11", "ss01";
}
a {
  color: var(--or);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 26px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
p {
  margin: 0 0 10px;
}
.muet {
  color: var(--texte-2);
}
.discret {
  color: var(--texte-3);
  font-size: 13px;
}
.chiffre,
.num,
td.num,
th.num {
  font-family: var(--chiffres);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
td.num,
th.num {
  text-align: right;
  white-space: nowrap;
}
.pos {
  color: var(--ok);
}
.neg {
  color: var(--critique);
}
.or {
  color: var(--or);
}
.etiquette {
  font-family: var(--chiffres);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--or);
}
.surtitre {
  font-family: var(--chiffres);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--texte-3);
}
code,
pre {
  font-family: var(--chiffres);
}
.icone {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ------------------------------------------------------------ structure */

.bo {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.colonne {
  background: #0a0a0b;
  border-right: 1px solid var(--bord);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.marque {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px 4px;
}
.marque img {
  display: block;
  flex: none;
  width: 26px;
  height: auto;
}
.marque-texte {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.marque strong {
  font-size: 15px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.marque-libelle {
  font-family: var(--chiffres);
  font-size: 11px;
  color: var(--or);
  letter-spacing: 0.12em;
}
.marque-grande {
  flex-direction: column;
  gap: 12px;
}
.marque-grande img {
  width: 150px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-titre {
  margin: 10px 10px 4px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--rayon-petit);
  color: var(--texte-2);
  font-weight: 500;
}
.nav a:hover {
  background: var(--surface-2);
  color: var(--texte);
  text-decoration: none;
}
.nav a.actif {
  background: var(--surface-3);
  color: var(--texte);
}
.nav a .compteur {
  margin-left: auto;
}
.compteur {
  font-family: var(--chiffres);
  font-size: 11.5px;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  text-align: center;
  background: var(--surface-3);
  color: var(--texte);
}
.compteur.or {
  background: var(--or);
  color: #111;
}
.compteur.rouge {
  background: var(--critique);
  color: #1a0505;
}
.pied-colonne {
  margin-top: auto;
  border-top: 1px solid var(--bord);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.identite {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  min-width: 0;
}
.identite div {
  min-width: 0;
}
.identite div > strong,
.identite div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.identite div > span {
  color: var(--texte-3);
  font-size: 12.5px;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
  flex: none;
}
main.principal {
  /* `main` : la classe « principal » sert aussi aux boutons (« bouton principal »). */
  min-width: 0;
  padding: 28px 32px 60px;
}
.entete-page {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.entete-page .sous-titre {
  margin-top: 6px;
  color: var(--texte-2);
}
.actions-entete {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bandeau-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--texte-2);
  padding: 8px 12px;
  border: 1px dashed var(--bord-fort);
  border-radius: var(--rayon-petit);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------- cartes */

.carte {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 18px 20px;
  box-shadow: var(--ombre);
}
.carte + .carte,
.pile > * + * {
  margin-top: 16px;
}
.carte-tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.carte-tete h2,
.carte-tete h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.grille {
  display: grid;
  gap: 16px;
}
.grille > * {
  min-width: 0;
}
.grille-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grille-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grille-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grille-auto {
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
}
.section {
  margin-top: 28px;
}
.section > h2 {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.kpi .valeur {
  font-family: var(--chiffres);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.kpi .valeur.grand {
  font-size: 26px;
}
.kpi .detail {
  font-size: 12.5px;
  color: var(--texte-2);
}
a.kpi:hover {
  border-color: var(--bord-fort);
  text-decoration: none;
}
a.kpi {
  color: inherit;
}
.kpi.accent {
  border-color: #5a4714;
  background: linear-gradient(180deg, #1c180c, var(--surface));
}
.kpi.alerte {
  border-color: #5c2424;
  background: linear-gradient(180deg, #221010, var(--surface));
}

/* -------------------------------------------------------------- pastilles */

.pastille {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.pastille::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pastille-ok,
.pastille-actif,
.pastille-paye,
.pastille-valide,
.pastille-envoye,
.pastille-suffisant {
  color: var(--ok);
  background: var(--ok-fond);
}
.pastille-attention,
.pastille-inactif,
.pastille-demande,
.pastille-a_verifier,
.pastille-prepare,
.pastille-limite,
.pastille-onboarding {
  color: var(--attention);
  background: var(--attention-fond);
}
.pastille-critique,
.pastille-breach,
.pastille-refuse,
.pastille-echec,
.pastille-incertain,
.pastille-insuffisant,
.pastille-suspendu {
  color: var(--critique);
  background: var(--critique-fond);
}
.pastille-info,
.pastille-deduction_demandee,
.pastille-en_cours,
.pastille-valide_lot {
  color: var(--info);
  background: var(--info-fond);
}
.pastille-or,
.pastille-pret_a_payer {
  color: var(--or);
  background: var(--or-sombre);
}
.pastille-neutre,
.pastille-ferme,
.pastille-annule,
.pastille-sorti,
.pastille-inconnu {
  color: var(--texte-2);
  background: var(--surface-3);
}

/* --------------------------------------------------------------- tableaux */

.table-conteneur {
  overflow-x: auto;
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--bord);
  vertical-align: middle;
}
th {
  font-family: var(--chiffres);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-3);
  background: var(--surface-2);
  white-space: nowrap;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: rgb(255 255 255 / 2%);
}
.sous {
  display: block;
  color: var(--texte-3);
  font-size: 12.5px;
}
.vide {
  padding: 28px 16px;
  text-align: center;
  color: var(--texte-2);
}
.ligne-lien {
  color: var(--texte);
  font-weight: 600;
}
table.compact th,
table.compact td {
  padding: 7px 12px;
}

/* --------------------------------------------------------------- boutons */

.bouton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: var(--rayon-petit);
  border: 1px solid var(--bord-fort);
  background: var(--surface-2);
  color: var(--texte);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.bouton:hover {
  background: var(--surface-3);
  text-decoration: none;
}
.bouton:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--or);
  outline-offset: 2px;
}
.bouton.principal {
  background: var(--or);
  border-color: var(--or);
  color: #111;
}
.bouton.principal:hover {
  background: var(--or-vif);
}
.bouton.danger {
  border-color: #6b2a2a;
  color: #ffb4b4;
  background: #2a1212;
}
.bouton.danger:hover {
  background: #3a1616;
}
.bouton.leger {
  background: transparent;
}
.bouton.petit {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 13px;
}
.bouton.large {
  width: 100%;
}
.bouton[disabled],
.bouton.inactif {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.bouton-desactive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--rayon-petit);
  border: 1px dashed var(--bord-fort);
  color: var(--texte-3);
  font-weight: 600;
  cursor: not-allowed;
  user-select: none;
}
.barre-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
form.en-ligne {
  display: inline;
}

/* ------------------------------------------------------------ formulaires */

.champ {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.champ label,
.libelle {
  font-weight: 600;
  font-size: 13px;
}
.champ .aide {
  font-size: 12.5px;
  color: var(--texte-3);
}
.champ .erreur,
.erreurs-formulaire {
  color: var(--critique);
  font-size: 13px;
}
.champ.case {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.champ.case label {
  font-weight: 500;
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: var(--rayon-petit);
  border: 1px solid var(--bord-fort);
  background: #0f0f11;
  color: var(--texte);
  font: inherit;
}
input[type="checkbox"],
input[type="radio"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--or);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
input.chiffre {
  font-family: var(--chiffres);
}
.formulaire-grille {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0 16px;
}
.formulaire-grille .large {
  grid-column: 1 / -1;
}
.champ-secret {
  position: relative;
  display: flex;
}
.champ-secret input {
  padding-right: 92px;
}
.champ-secret .voir {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 28px;
  padding: 2px 10px;
  font-size: 12.5px;
}
fieldset {
  border: 1px solid var(--bord);
  border-radius: var(--rayon);
  padding: 16px 18px 4px;
  margin: 0 0 16px;
}
legend {
  padding: 0 6px;
  font-weight: 700;
}

/* ------------------------------------------------------------- messages */

.messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.message {
  padding: 11px 14px;
  border-radius: var(--rayon-petit);
  border: 1px solid var(--bord);
  background: var(--surface-2);
}
.message.success {
  border-color: #1f5a37;
  background: var(--ok-fond);
}
.message.error {
  border-color: #6b2a2a;
  background: var(--critique-fond);
}
.message.warning {
  border-color: #6b4a14;
  background: var(--attention-fond);
}
.encadre {
  border-left: 3px solid var(--or);
  background: rgb(245 197 66 / 6%);
  padding: 12px 16px;
  border-radius: 0 var(--rayon-petit) var(--rayon-petit) 0;
  margin: 12px 0;
}
.encadre.rouge {
  border-color: var(--critique);
  background: rgb(248 113 113 / 7%);
}
.encadre.vert {
  border-color: var(--ok);
  background: rgb(74 222 128 / 6%);
}
.encadre.bleu {
  border-color: var(--info);
  background: rgb(124 180 255 / 6%);
}
.encadre p:last-child {
  margin-bottom: 0;
}

/* ------------------------------------------------------- éléments divers */

.onglets {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--bord);
  margin-bottom: 16px;
  overflow-x: auto;
}
.onglets a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--texte-2);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  font-weight: 500;
}
.onglets a.actif {
  color: var(--texte);
  border-color: var(--or);
}
.onglets a:hover {
  text-decoration: none;
  color: var(--texte);
}
.filtres {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  margin-bottom: 14px;
}
.filtres .champ {
  margin: 0;
  min-width: 160px;
}
.liste-def {
  display: grid;
  grid-template-columns: minmax(140px, max-content) 1fr;
  gap: 8px 18px;
  margin: 0;
}
.liste-def dt {
  color: var(--texte-3);
}
.liste-def dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
.message-lot {
  white-space: pre-wrap;
  background: #0b0b0c;
  border: 1px solid var(--bord);
  border-radius: var(--rayon-petit);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
  max-height: 420px;
  overflow: auto;
  margin: 0 0 12px;
}
.jauge {
  width: 100%;
  height: 8px;
  display: block;
}
.jauge rect.fond {
  fill: var(--surface-3);
}
.jauge rect.plein {
  fill: var(--or);
}
.jauge rect.plein.ok {
  fill: var(--ok);
}
.jauge rect.plein.attention {
  fill: var(--attention);
}
.jauge rect.plein.critique {
  fill: var(--critique);
}
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.etapes li {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--bord);
}
.etapes li:last-child {
  border-bottom: 0;
}
.etapes .numero {
  font-family: var(--chiffres);
  color: var(--texte-3);
  font-size: 13px;
  padding-top: 2px;
}
.etapes li.faite .numero {
  color: var(--ok);
}
.etapes li.courante .numero {
  color: var(--or);
}
.chronologie {
  list-style: none;
  margin: 0;
  padding: 0;
}
.chronologie li {
  display: grid;
  grid-template-columns: 36px 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bord);
  align-items: baseline;
}
.chronologie li:last-child {
  border-bottom: 0;
}
.chronologie .numero {
  font-family: var(--chiffres);
  color: var(--texte-3);
}
.chronologie .qui {
  font-family: var(--chiffres);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--texte-3);
}
.chronologie li.faite .numero {
  color: var(--ok);
}
.chronologie li.courante .numero,
.chronologie li.courante .qui {
  color: var(--or);
}
.chronologie li.a-venir {
  opacity: 0.5;
}
/* Graphique : couleurs validées (daltonisme, contraste) sur la surface #161618. */
.graphique-boite {
  position: relative;
  min-height: 230px;
  border-radius: var(--rayon-petit);
}
.graphique {
  display: block;
  max-width: 100%;
  height: auto;
  touch-action: pan-y;
}
.graphique .axe {
  stroke: var(--axe-graphique);
  stroke-width: 1;
}
.graphique .grille-h {
  stroke: var(--grille-graphique);
  stroke-width: 1;
}
.graphique .courbe {
  stroke: var(--serie-solde);
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.graphique .plancher {
  stroke: var(--serie-plancher);
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
}
.graphique .seuil {
  stroke: var(--serie-seuil);
  fill: none;
  stroke-width: 1.5;
  stroke-dasharray: 6 5;
}
.graphique .point {
  fill: var(--serie-solde);
  stroke: var(--surface);
  stroke-width: 2;
}
.graphique .point-plancher {
  fill: var(--serie-plancher);
  stroke: var(--surface);
  stroke-width: 2;
}
.graphique .reticule {
  stroke: var(--texte-3);
  stroke-width: 1;
}
.graphique text {
  fill: var(--encre-muette);
  font-family: var(--chiffres);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.graphique text.etiquette-solde {
  fill: var(--texte);
  font-weight: 600;
}
.graphique text.etiquette-plancher,
.graphique text.etiquette-seuil {
  fill: var(--texte-2);
}
.graphique-bulle {
  position: absolute;
  display: none;
  pointer-events: none;
  min-width: 190px;
  padding: 9px 11px;
  border-radius: var(--rayon-petit);
  border: 1px solid var(--bord-fort);
  background: var(--surface-3);
  box-shadow: 0 10px 30px rgb(0 0 0 / 45%);
  font-size: 12.5px;
  z-index: 2;
}
.graphique-bulle.visible {
  display: block;
}
.graphique-bulle .titre {
  font-family: var(--chiffres);
  color: var(--texte-3);
  margin-bottom: 4px;
}
.graphique-bulle .ligne {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 0;
}
.graphique-bulle strong {
  font-family: var(--chiffres);
  font-variant-numeric: tabular-nums;
}
.graphique-bulle .nom {
  color: var(--texte-2);
}
.cle {
  display: inline-block;
  width: 14px;
  height: 0;
  border-top: 2px solid var(--serie-solde);
  flex: none;
}
.cle.plancher {
  border-top-color: var(--serie-plancher);
}
.cle.seuil {
  border-top: 2px dashed var(--serie-seuil);
}
.legende {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--texte-2);
  margin-top: 8px;
}
.legende span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legende i {
  width: 18px;
  height: 0;
  display: inline-block;
  border-top: 2px solid var(--serie-solde);
}
.legende i.plancher {
  border-top: 2px solid var(--serie-plancher);
}
.legende i.seuil {
  border-top: 2px dashed var(--serie-seuil);
}
details > summary {
  cursor: pointer;
  color: var(--texte-2);
}
details.repli > summary {
  list-style: none;
  display: inline-flex;
  color: var(--texte);
}
details.repli > summary::-webkit-details-marker {
  display: none;
}
details.repli[open] > summary {
  margin-bottom: 6px;
}
summary h2.en-ligne {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.champ > div > div > label,
.champ ul label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin: 4px 0;
}
.champ ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}
.lien-copie {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lien-copie input {
  font-family: var(--chiffres);
  font-size: 12.5px;
}
.question {
  border: 1px solid #5a4714;
  border-radius: var(--rayon);
  padding: 14px 16px;
  background: #15120a;
  margin-bottom: 12px;
}
.question h3 {
  margin-bottom: 8px;
}
.cache {
  display: none !important;
}

/* --------------------------------------------------------- espace trader */

.esp-entete {
  border-bottom: 1px solid var(--bord);
  background: #0a0a0b;
  position: sticky;
  top: 0;
  z-index: 5;
}
.esp-entete .interieur {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.esp-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.esp-nav a {
  padding: 7px 12px;
  border-radius: var(--rayon-petit);
  color: var(--texte-2);
  font-weight: 500;
}
.esp-nav a.actif,
.esp-nav a:hover {
  background: var(--surface-2);
  color: var(--texte);
  text-decoration: none;
}
.esp-droite {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.esp-principal {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 70px;
}
.esp-pied {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  color: var(--texte-3);
  font-size: 12.5px;
  border-top: 1px solid var(--bord);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.esp-pied p {
  margin: 0;
}
.carte-compte {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--ombre);
}
.carte-compte .tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.carte-compte .chiffres {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.carte-compte .chiffres div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.carte-compte .chiffres strong {
  font-family: var(--chiffres);
  font-size: 18px;
  font-weight: 600;
}
.retirable {
  border-top: 1px solid var(--bord);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.retirable .montant {
  font-family: var(--chiffres);
  font-size: 28px;
  font-weight: 700;
  color: var(--or);
}
.raisons {
  margin: 0;
  padding-left: 18px;
  color: var(--texte-2);
  font-size: 13px;
}
.liste-payouts {
  list-style: none;
  margin: 0;
  padding: 0;
}
.liste-payouts li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bord);
}
.liste-payouts li:last-child {
  border-bottom: 0;
}
.liste-payouts .montant-liste {
  margin-left: auto;
  text-align: right;
}
.connexion {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.connexion .boite {
  width: 100%;
  max-width: 400px;
}
.connexion .marque {
  justify-content: center;
  margin-bottom: 18px;
}
.langues {
  display: flex;
  gap: 4px;
}
.langues button {
  min-height: 30px;
  padding: 2px 9px;
  font-size: 12.5px;
}
.langues button.actif {
  border-color: var(--or);
  color: var(--or);
}

/* ------------------------------------------------------ mentions Rithmic */

.rithmic {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rithmic-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.rithmic-logos img {
  display: block;
  height: 22px;
  width: auto;
}
.rithmic-mentions {
  margin: 0;
  color: var(--texte-3);
  font-size: 11.5px;
  line-height: 1.7;
}
.rithmic-mentions img {
  height: 16px;
  width: auto;
  vertical-align: -3px;
}
.bandeau-rithmic {
  flex-wrap: wrap;
}
.rithmic-bandeau {
  margin-left: auto;
}
.rithmic-bandeau .rithmic-logos img {
  height: 18px;
}
.rithmic-boite {
  margin-top: 22px;
}
.pied-page {
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--bord);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pied-page p {
  margin: 0;
}

/* -------------------------------------------------------------- mobile */

@media (max-width: 1100px) {
  .grille-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .bo {
    grid-template-columns: 1fr;
  }
  .colonne {
    position: static;
    height: auto;
    padding: 12px;
    gap: 8px;
  }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .nav-titre {
    display: none;
  }
  .nav a {
    padding: 6px 10px;
  }
  .pied-colonne {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  main.principal {
    padding: 20px 16px 50px;
  }
  .grille-2,
  .grille-3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .grille-4 {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 22px;
  }
  .liste-def {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .liste-def dd {
    margin-bottom: 8px;
  }
  .chronologie li {
    grid-template-columns: 30px 1fr;
  }
  .chronologie .qui {
    grid-column: 2;
  }
  .chronologie li > :last-child {
    grid-column: 2;
  }
  .esp-principal {
    padding: 20px 16px 60px;
  }
  .carte-compte .chiffres {
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
