/* QSignalFX app. Layout and colours follow the mock-up of 11 Oct 2026 (maquette/20261011/): one phone
   column (430 px at most), night blue, one accent blue for what to do, green and red reserved for gain
   and loss. Single dark look, on purpose. */
:root {
  color-scheme: dark;
  --fond: #0b1120;
  --surface: #131c33;
  --surface-2: #1a2440;
  --filet: #22304f;
  --bord: #2a3a5e;
  --texte: #eef2fa;
  --texte-2: #a3aec9;
  --texte-3: #7f8bab;
  --accent: #8fb4ff;
  --gain: #5fd38d;
  --perte: #ff8080;
  /* Courbe du Track record selon le résultat de la période (couleurs de la maquette) ; contraste sur la carte
     #131c33 : hausse 9.0:1, baisse 7.0:1, neutre 5.0:1. */
  --courbe-hausse: var(--gain);
  --courbe-baisse: var(--perte);
  --courbe-neutre: var(--texte-3);
  --alerte: #f2a65a;
  --or: #bfa56c;                 /* ambre très atténué : contour fin et texte, jamais en fond plein (retour du 23/10) */
  --sur-clair: #0b1120;
  --rayon: 20px;
  --barre: 84px;
  --marge: 20px;
  --police: -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--fond); }
body {
  margin: 0; background: var(--fond); color: var(--texte);
  font: 16px/1.4 var(--police); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--barre) + 16px + env(safe-area-inset-bottom, 0px));
}
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.gain { color: var(--gain); }
.perte { color: var(--perte); }
.alerte { color: var(--alerte); }
.fort { font-weight: 600; }
.page { max-width: 430px; margin: 0 auto; padding-inline: var(--marge); }
main.page { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.hors-ecran { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
main:focus { outline: none; }

/* Header: brand, date of the last published scan, and a grey line when it is getting old */
.barre-haut { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 24px; }
.marque { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; }
.marque .logo { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

h1 { font-size: 34px; line-height: 1.1; margin: 12px 0 0; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--texte-2); margin: 8px 2px 0; }
h3 { font-size: 17px; font-weight: 700; margin: 0; }
p { margin: 0; }
.chapo { color: var(--texte-2); font-size: 14px; margin-top: -8px; }
.aide { color: var(--texte-2); font-size: 14px; }
.petit { color: var(--texte-3); font-size: 13px; line-height: 1.4; }
.bloc-petit { display: block; color: var(--texte-2); }
.espace { margin-top: 14px; }
.carte { background: var(--surface); border-radius: var(--rayon); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }

/* Portfolio */
.bandeau { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 16px; border: 0; border-radius: 14px; background: var(--accent); color: var(--sur-clair); font-size: 15px; font-weight: 700; cursor: pointer; text-align: left; }
.bandeau svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.valeur { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.heros { font-size: clamp(32px, 10vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1; overflow-wrap: anywhere; }
.heros .decimales { font-size: 0.55em; color: var(--texte-2); }
.variation { font-size: 15px; font-weight: 600; }
.rappel { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border-radius: 14px; padding: 14px 16px; font-size: 14px; }
.rappel a { font-weight: 700; white-space: nowrap; text-underline-offset: 3px; }

.courbe { padding: 14px 16px 12px; gap: 8px; }
.courbe svg { display: block; width: 100%; height: 150px; touch-action: pan-y; }
.trace .base { stroke: var(--bord); stroke-width: 1; stroke-dasharray: 4 4; }
.trace .trait { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trace .trait.trou { stroke-dasharray: 2 7; stroke-width: 2; }
.trace .aire { fill: var(--accent); fill-opacity: 0.12; stroke: none; }
/* Courbe du modèle : trait, aire (dégradé léger) et pointillés de la même couleur, celle du résultat de la période. */
/* Courbe du portefeuille de l'abonné : même règle et mêmes jetons que celle du modèle. */
.trace.portefeuille.hausse { color: var(--courbe-hausse); }
.trace.portefeuille.baisse { color: var(--courbe-baisse); }
.trace.portefeuille.neutre { color: var(--courbe-neutre); }
.trace.portefeuille .trait { stroke: currentColor; }
.trace.portefeuille .aire { fill: url(#degrade-portefeuille); fill-opacity: 1; }
.trace.portefeuille .degrade-haut { stop-color: currentColor; stop-opacity: 0.22; }
.trace.portefeuille .degrade-bas { stop-color: currentColor; stop-opacity: 0.02; }
.variation.neutre { color: var(--texte-2); }
.trace.modele.hausse { color: var(--courbe-hausse); }
.trace.modele.baisse { color: var(--courbe-baisse); }
.trace.modele.neutre { color: var(--courbe-neutre); }
/* A29 : trait et aire du modèle par signe (attributs stroke et fill du dessin, coupe nette à 0 %). */
.trace.modele .trait { stroke: url(#zero-courbe); }
.trace.modele .aire { fill: url(#zero-aire); fill-opacity: 1; }
.trace.modele #zero-courbe .dessus { stop-color: var(--gain); }
.trace.modele #zero-courbe .dessous { stop-color: var(--perte); }
.trace.modele #zero-aire .dessus { stop-color: var(--gain); stop-opacity: 0.16; }
.trace.modele #zero-aire .dessous { stop-color: var(--perte); stop-opacity: 0.16; }
.grand.neutre { color: var(--texte); }
.trace .repere, .trace .filet { stroke: var(--texte); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.trace .point { fill: var(--texte); }
.axe { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--texte-3); }
.axe .vous, .axe .lecture { color: var(--texte); font-weight: 600; }
.periodes { display: flex; gap: 8px; }
.periode { flex: 1 1 0; height: 40px; border-radius: 20px; border: 1px solid var(--filet); background: var(--surface); font-size: 14px; font-weight: 600; cursor: pointer; }
.periode[aria-pressed="true"] { border-color: transparent; background: var(--accent); color: var(--sur-clair); }

/* To do: one line per order; the circle marks it as done, the chevron opens what is needed to place it */
.a-faire { display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 12px; }
.liste { background: var(--surface); border-radius: var(--rayon); padding: 2px 18px; display: flex; flex-direction: column; }
.tache { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: start; border-bottom: 1px solid var(--filet); }
.tache:last-child { border-bottom: 0; }
.coche { width: 32px; height: 32px; margin: 18px 0 0; padding: 0; border-radius: 50%; border: 2px solid var(--accent); background: transparent; cursor: pointer; display: grid; place-items: center; }
.coche svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.35; }
.coche:hover svg, .coche:active svg { opacity: 1; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.tache summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 68px; padding: 12px 0; }
.quoi { font-size: 17px; font-weight: 700; min-width: 0; flex: 1 1 auto; }
.combien { font-size: 17px; font-weight: 700; white-space: nowrap; }
.combien.estime { font-size: 14px; font-weight: 500; color: var(--texte-3); }
.chevron { width: 18px; height: 18px; fill: none; stroke: var(--texte-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
details[open] > summary .chevron { transform: rotate(180deg); }
.detail { padding: 0 0 16px; display: flex; flex-direction: column; gap: 12px; }
.rang-copie { display: flex; flex-wrap: wrap; gap: 10px; }
.copie { display: inline-flex; align-items: center; gap: 10px; background: var(--surface-2); border: 0; border-radius: 12px; padding: 9px 12px; cursor: pointer; text-align: left; min-height: 44px; }
.copie .lib { color: var(--texte-3); font-size: 12px; display: block; }
.copie .val { font-weight: 600; }
.copie svg, .copie-ligne svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; flex: none; }
.copie[data-etat="ok"] svg, .copie-ligne[data-etat="ok"] svg { stroke: var(--gain); }
.copie .etat, .copie-ligne .etat { color: var(--gain); font-size: 12px; }
.copie-ligne { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; min-height: 32px; font-weight: 600; cursor: pointer; }
.zone-copie { position: absolute; left: -9999px; top: 0; }
.base-calcul { color: var(--texte-2); font-size: 13px; line-height: 1.45; }
.suite { display: flex; align-items: center; justify-content: center; min-height: 44px; width: 100%; background: none; border: 0; color: var(--texte-2); font-size: 14px; font-weight: 600; cursor: pointer; }

/* History: the subscriber's own portfolio */
.resume { padding: 16px; }
.resume .ligne { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--texte-2); }
.resume .grand { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; text-align: center; }
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 4px; text-align: center; }
.trio dt { font-size: 12px; color: var(--texte-3); }
.trio dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; }
.barre-liste { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.selecteur { position: relative; display: inline-flex; align-items: center; }
.selecteur select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 44px 0 18px; border-radius: 22px; border: 1px solid var(--bord); background: var(--surface); font-size: 16px; font-weight: 600; cursor: pointer; }
.selecteur svg { position: absolute; right: 16px; width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.export { display: flex; align-items: center; gap: 10px; }
.export .etat { color: var(--gain); font-size: 13px; }
.rond { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--bord); background: var(--surface); color: var(--accent); cursor: pointer; }
.rond svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.positions { display: flex; flex-direction: column; }
.colonnes { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 2px 10px; border-bottom: 1px solid var(--filet); font-size: 15px; font-weight: 700; color: var(--accent); }
.colonnes button { display: flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; min-height: 32px; font-weight: 700; color: var(--texte); cursor: pointer; }
.colonnes button svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.total-jour { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--filet); font-size: 14px; color: var(--texte-2); font-weight: 600; }
.positions > details { border-bottom: 1px solid var(--filet); }
.positions summary, .cash { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 12px 0; }
.nom { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 auto; }
.nom .titre { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.sous { font-size: 14px; color: var(--texte-2); font-weight: 400; }
.droite { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 0 0 auto; text-align: right; }
.droite .fort { font-size: 17px; font-weight: 700; }
.droite .sous.gain, .droite .sous.perte { font-weight: 600; }
.droite .sous.gain { color: var(--gain); }
.droite .sous.perte { color: var(--perte); }
.positions .chevron { display: none; }
.attente .titre { color: var(--texte-2); }
.cash { border-bottom: 1px solid var(--filet); }
.vide { padding: 22px 2px; }
.fiche { margin: 0; background: var(--surface-2); border-radius: 14px; padding: 6px 14px; display: flex; flex-direction: column; }
.rang { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 15px; }
.rang dt { color: var(--texte-2); }
.rang dd { margin: 0; font-weight: 600; text-align: right; }
.rang.gain dd { color: var(--gain); }
.rang.perte dd { color: var(--perte); }
.rang.tete { font-size: 13px; }
.rang.tete dt, .rang.tete dd { color: var(--texte-3); font-weight: 400; }
.rang.sous-rang { padding: 4px 0 4px 16px; font-size: 14px; }
.rang.sous-rang dt { color: var(--texte-3); }
.rang.sous-rang dd { font-weight: 400; }
.rang.pile { align-items: flex-start; }
.stops { list-style: none; margin: 0; padding: 0; font-size: 14px; font-weight: 400; color: var(--texte-2); display: flex; flex-direction: column; gap: 3px; }
.depuis { font-size: 12px; color: var(--texte-3); font-weight: 400; }
.depuis.gain { color: var(--gain); }
.lien { align-self: flex-start; background: none; border: 0; padding: 0; min-height: 36px; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.edition { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-radius: 14px; padding: 14px; }
.corrections { border-left: 3px solid #e8b34b; }
.correction-modele { display: flex; flex-direction: column; gap: 4px; }
.correction-modele + .correction-modele { border-top: 1px solid var(--filet); padding-top: 10px; }
.pied { font-size: 13px; line-height: 1.5; color: var(--texte-3); }

/* Forms and Profile */
.lib-champ { display: block; color: var(--texte-2); font-size: 13px; margin-bottom: 6px; }
.champ { width: 100%; height: 48px; background: var(--surface-2); border: 1px solid transparent; border-radius: 12px; padding: 0 12px; }
.champ:focus { border-color: var(--accent); outline: none; }
.grille { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grille > div { min-width: 0; }
.bouton { border: 0; border-radius: 12px; padding: 0 16px; min-height: 44px; font-weight: 700; cursor: pointer; background: var(--accent); color: var(--sur-clair); }
.bouton.second { background: var(--surface-2); color: var(--texte); min-height: 40px; }
.bouton.discret { background: transparent; color: var(--texte-2); padding-inline: 8px; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.bouton.plein { flex: 1 1 auto; }
.bouton[disabled] { opacity: 0.55; cursor: default; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.erreur { color: var(--perte); font-size: 14px; }
.tete-carte { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tete-carte .petit { color: var(--texte-2); }
.formulaire { display: flex; flex-direction: column; gap: 12px; }
.rang-devise { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15px; }
.choix { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 3px; flex: none; }
.choix button { border: 0; background: transparent; border-radius: 10px; padding: 0 16px; height: 38px; font-size: 14px; font-weight: 600; color: var(--texte-2); cursor: pointer; white-space: nowrap; }
.choix button[aria-pressed="true"] { background: var(--accent); color: var(--sur-clair); }
.interrupteur { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 15px; }
.interrupteur + .interrupteur { border-top: 1px solid var(--filet); padding-top: 12px; }
.interrupteur input { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 16px; background: var(--bord); position: relative; cursor: pointer; flex: none; margin: 0; }
.interrupteur input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--texte); transition: transform 0.15s; }
.interrupteur input:checked { background: var(--accent); }
.interrupteur input:checked::after { transform: translateX(20px); }
.lignes { list-style: none; margin: 0; padding: 0; }
.lignes li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--filet); font-size: 15px; }
.lignes .quoi { font-size: 15px; font-weight: 600; }
.lignes .quoi small { display: block; color: var(--texte-3); font-size: 13px; font-weight: 400; }
.lignes .fait { display: flex; gap: 6px; flex: none; }
.mini { border: 0; border-radius: 10px; padding: 0 12px; min-height: 36px; font-size: 14px; font-weight: 600; cursor: pointer; background: var(--surface-2); color: var(--texte); }
.mini.oui { background: var(--accent); color: var(--sur-clair); }
.lien-ligne { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; background: none; border: 0; padding: 0; color: var(--texte); font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; text-align: left; }
.lien-ligne svg { width: 18px; height: 18px; fill: none; stroke: var(--texte-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Clé d'accès montrée une fois (lien du courriel) : longue, sans espace, elle passe à la ligne n'importe où. */
.cle-montree { font-size: 15px; word-break: break-all; user-select: all; margin: 8px 0 12px; }
.lien-ligne.perte { color: var(--perte); }
.liens { gap: 0; padding: 6px 18px; }
.liens > * + * { border-top: 1px solid var(--filet); }
.confirmation { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; }
.bilan { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; font-size: 15px; margin: 0; }
.bilan dt { color: var(--texte-2); }
.bilan dd { margin: 0; text-align: right; font-weight: 600; white-space: nowrap; }
.bilan .total { border-top: 1px solid var(--filet); padding-top: 12px; color: var(--texte); font-weight: 600; }
.bilan dd.total { font-size: 17px; font-weight: 700; }

/* Public screens: track record, premium */
.titre-ecran { display: flex; flex-direction: column; gap: 6px; }
.titre-ecran .chapo { margin-top: 0; }
h1.moyen { font-size: 30px; margin-top: 4px; }
.ligne-perf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.grand { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.tuiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; }
.tuiles .paire { white-space: nowrap; font-size: 0.78em; }   /* A19 : « +5.7% / −5.3% » tient dans la case à 390 px */
.tuiles .entre { color: var(--texte-3); font-weight: 400; }
.tete-icone { display: flex; align-items: center; gap: 10px; }
.tete-icone svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.titre-carte { font-size: 17px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--texte); margin: 0; }
.bouton.clair { background: var(--texte); color: var(--sur-clair); border-radius: 22px; flex: 1 1 auto; }
.bouton.contour { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--texte); border: 1px solid var(--bord); border-radius: 22px; }
.bouton.contour svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.colonnes .clair { color: var(--texte); }
.appel { background: var(--surface-2); }
.appel .bouton { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 24px; font-size: 16px; text-decoration: none; }
.prix { display: flex; align-items: baseline; gap: 6px; font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.prix .par { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--texte-2); }
.pastille { align-self: flex-start; padding: 3px 11px; border-radius: 14px; background: transparent; border: 1px solid var(--or); color: var(--or); font-size: 13px; font-weight: 600; }
.question + .question { border-top: 1px solid var(--filet); padding-top: 12px; }
.question h3 { font-size: 15px; margin-bottom: 4px; }
.rang-cle { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.champ[disabled] { opacity: 0.55; }

/* Verify the journal: one block per entry; corrections and gaps never look like a normal entry */
.retour { font-size: 14px; font-weight: 600; text-decoration: none; }
a.bouton { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
code { display: block; margin-top: 4px; padding: 8px 10px; border-radius: 10px; background: var(--fond); color: var(--texte); font: 13px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.partie { display: flex; flex-direction: column; gap: 10px; }
.entree { background: var(--surface); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border-left: 3px solid transparent; }
.partie.archive .entree { background: transparent; border: 1px dashed var(--bord); border-left: 3px solid var(--bord); }
.entree.correction { border-left-color: #e8b34b; background: #2a2414; }
.entree.gap { border-left-color: var(--texte-3); background: var(--surface-2); }
.tete-entree { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--texte-2); }
.tete-entree .fort { color: var(--texte); }
.etat-entree { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.etat-entree.verified { background: #16301f; color: var(--gain); }
.etat-entree.pending { background: var(--surface-2); color: var(--texte-2); }
.etat-entree.imported { background: transparent; color: var(--texte-3); border: 1px solid var(--bord); }
.evenements { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.evenements .en-attente { color: var(--texte-3); }
.copie-ligne.hash { font: 12px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--texte-3); font-weight: 400; }

/* Help */

.mentions { color: var(--texte-3); font-size: 12px; line-height: 1.5; margin-top: 8px; }

/* Four fixed tabs */
.onglets { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 107px); justify-content: center; height: calc(var(--barre) + env(safe-area-inset-bottom, 0px)); padding: 10px 8px calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--fond); border-top: 1px solid #1b2745; }
.onglets a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--texte-2); text-decoration: none; font-size: 13px; }
.onglets a[aria-current="page"] { color: var(--texte); font-weight: 700; }
.onglets svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Maquette du 13/10/2026 : page Premium, clé d'accès, carte Promo, Help en accordéon */
.groupe { display: flex; flex-direction: column; gap: 10px; }
.sur-titre { margin: 0; padding: 0 2px; }
.prix-carte { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.prix-carte .bouton { min-height: 52px; border-radius: 26px; font-size: 17px; }
.encadre-code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; border: 1px solid var(--or); }
.titre-code { font-size: 13px; color: var(--or); }
.code-promo { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--or); background: transparent; color: var(--or); font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; }
.code-promo.plein { flex: none; min-height: 36px; }
.code-promo svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.code-promo .etat { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.code-promo .etat:empty { display: none; }
.paiement { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--texte-3); }
.paiement svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.atouts, .etapes { list-style: none; margin: 0; padding: 4px 18px; display: flex; flex-direction: column; }
.atouts li, .etapes li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--filet); }
.atouts li:last-child, .etapes li:last-child { border-bottom: 0; }
.atouts svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--gain); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.atouts .fort { font-size: 15px; font-weight: 600; }
.atouts .petit { line-height: 1.45; color: var(--texte-2); }
.etapes li { align-items: center; padding: 12px 0; font-size: 14px; line-height: 1.45; }
.rond { flex: none; width: 28px; height: 28px; border-radius: 14px; background: #1f2a44; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
/* Calée sur le bord droit de la colonne de l'appli (430 px, centrée), à 12 px à l'intérieur ; sur téléphone, sur celui de l'écran. */
/* Bandeau de l'offre sous la courbe de Track record (retour du 23/10) : dans la page, refermable, ambre atténué, sans fond plein. */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 14px; background: transparent; border: 1px solid var(--or); }
.tete-promo { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.tete-promo > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conditions-promo { font-size: 13px; font-weight: 400; color: var(--texte-2); }
.tete-promo svg { width: 18px; height: 18px; fill: none; stroke: var(--or); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fermer { flex: none; width: 44px; height: 44px; margin: -6px -8px -6px 0; border: 0; background: none; color: var(--texte-2); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fermer svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.promo .code-promo { margin-left: auto; }
.questions { padding: 0 18px; display: flex; flex-direction: column; }
details.qa { border-bottom: 1px solid var(--filet); }
details.qa:last-child { border-bottom: 0; }
details.qa > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; font-size: 15px; font-weight: 600; }
details.qa > .detail { padding: 0 0 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--texte-2); }
details.qa > .detail p, details.qa > .detail ul { margin: 0; }
details.qa > .detail ul { padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
details.qa > .detail b { color: var(--texte); }
/* Une carte est une colonne (.carte) : celles qui tiennent sur une ligne le disent. */
.lien-carte { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 0 18px; color: var(--texte); text-decoration: none; }
.lien-carte .tete-icone { gap: 12px; min-width: 0; text-align: left; }
.lien-carte .tete-icone .fort { display: block; font-size: 16px; font-weight: 600; }
.lien-carte .tete-icone svg { stroke: var(--gain); }
.lien-carte > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--texte-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.contact > div { min-width: 0; text-align: left; }
.contact .fort { display: block; font-size: 15px; font-weight: 700; }
.contact .petit { overflow-wrap: anywhere; }
.contact .bouton { flex: none; min-height: 40px; border-radius: 20px; font-size: 14px; white-space: nowrap; }

/* Maquette du 13/10/2026 : Verify the journal */
.sous-titre-verify { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--texte-2); }
.sous-titre-verify > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--gain); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.info { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border-radius: 14px; border: 1px solid var(--bord); background: none; color: var(--texte-2); cursor: help; }
.info svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.etat-chaine { padding: 6px 18px; display: flex; flex-direction: column; }
.rang-etat { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; border-bottom: 1px solid var(--filet); font-size: 15px; color: var(--texte-2); }
.rang-etat:last-child { border-bottom: 0; }
.rang-etat .fort { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--texte); }
.rang-etat .fort.gain { color: var(--gain); }
.rang-etat svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.deux { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.telecharger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 6px 4px; border-radius: 16px; border: 1px solid var(--bord); color: var(--texte); text-decoration: none; text-align: center; }
.telecharger .fort { font-size: 14px; font-weight: 600; }
.telecharger .legende { font-size: 11px; color: var(--texte-3); }
.telecharger.absent { opacity: 0.55; }
.soi-meme { display: flex; flex-direction: column; gap: 10px; }
.soi-meme code { display: block; padding: 10px 12px; border-radius: 10px; background: var(--fond, #0b1120); color: var(--texte); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pied-entree { display: flex; align-items: center; gap: 8px; color: var(--texte-3); }

/* Maquette du 13/10/2026 : Profile */
.capital { display: flex; flex-direction: column; gap: 6px; }
.capital .grand { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.capital .bilan { margin-top: 8px; }
.droite-ligne { display: flex; align-items: center; gap: 8px; color: var(--texte-2); font-weight: 400; }
.effacer .lien-ligne { color: var(--perte); }
ul.atouts, ol.etapes, .questions, .etat-chaine { gap: 0; }

/* Track record : courbe sur une période, graduations, curseur */
.graphe { position: relative; }
.trace { touch-action: pan-y; }
.trace:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.trace .grille { stroke: var(--filet); stroke-width: 1; vector-effect: non-scaling-stroke; }
.graduations { position: absolute; inset: 0; pointer-events: none; }
.graduation { position: absolute; right: 0; top: var(--y, 0); transform: translateY(-50%); font-size: 11px; color: var(--texte-3); background: var(--surface); padding: 0 2px; }
#track-periodes { margin-top: 2px; }

/* Thème clair : l'appli n'en a pas encore (la maquette est sombre). Jetons prêts pour lui, contraste sur #ffffff :
   hausse 5.4:1, baisse 6.6:1, neutre 6.0:1. Rien ne pose data-theme="light" aujourd'hui. */
:root[data-theme="light"] {
  --courbe-hausse: #1a7a43;
  --courbe-baisse: #b42318;
  --courbe-neutre: #5b6474;
}

/* Juridique : case CGV avant le paiement, pages légales, pied de page */
.case-cgv { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--texte-2); cursor: pointer; }
.case-cgv input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.texte-legal { gap: 10px; font-size: 14px; line-height: 1.55; color: var(--texte-2); }
.texte-legal p { margin: 0; }
.texte-legal b { color: var(--texte); }
.texte-legal .sous-titre-legal { margin: 8px 0 0; font-size: 15px; font-weight: 700; color: var(--texte); }
.texte-legal ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.texte-legal a { color: var(--accent); overflow-wrap: anywhere; }
.tableau-legal { overflow-x: auto; }
.tableau-legal table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 13px; }
.tableau-legal th, .tableau-legal td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--filet); }
.tableau-legal th { color: var(--texte); font-weight: 600; }
footer.pied { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 4px 2px 0; font-size: 12px; }
footer.pied .droits { margin: 0; color: var(--texte-3); }
.liens-pied { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; }
.liens-pied a { color: var(--texte-3); text-underline-offset: 3px; }
.liens-pied .sep { color: var(--texte-3); }
.choix.langue { align-self: flex-end; }
#page-foi { font-weight: 600; color: var(--texte-2); }

/* « Verify the journal » : accent vert, comme le cadenas (décision de Romain du 21/10) */
#aide-verifier .tete-icone svg { stroke: var(--gain); }
.mentions { text-align: center; }
/* Carte « Every trade is on record » (retour du 23/10, aperçu n° 4) : bouclier vert en tête, deux lignes cliquables. */
.carte-journal { gap: 0; padding-bottom: 4px; }
.carte-journal > .tete-icone { align-items: flex-start; padding-bottom: 12px; }
.carte-journal > .tete-icone svg { stroke: var(--gain); width: 20px; height: 20px; margin-top: 2px; }
.ligne-lien { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; border-top: 1px solid var(--filet); color: var(--texte); text-decoration: none; font-size: 15px; }
.ligne-lien .tete-icone { gap: 12px; }
.ligne-lien .tete-icone svg { width: 20px; height: 20px; fill: none; stroke: var(--texte-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#verifier-journal .tete-icone svg { stroke: var(--gain); }
.ligne-lien > svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--texte-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Fils de messages (bloc 277) : le texte de Telegram garde ses retours à la ligne ; pertes en rouge (.perte). */
.message { margin-bottom: 12px; }
.message .entete-message { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.tg { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.tg pre, .tg code { white-space: pre-wrap; font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.tg blockquote { margin: 6px 0; padding-left: 10px; border-left: 3px solid currentColor; opacity: .85; }
.tg .tg-spoiler { filter: blur(4px); }
.tg .tg-spoiler:active, .tg .tg-spoiler:focus { filter: none; }

/* Track record et Profile v3 (maquette v3 validée par Romain, A1 du 25/11). Les largeurs des barres viennent du script
   (variable --l posée par CSSOM) : aucun attribut style. */
.logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.bloc-chiffre { display: flex; flex-direction: column; gap: 4px; }
.tete-rubrique { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; }
.tete-rubrique h2 { margin: 0 2px; }
.lien-rubrique { font-size: 13px; font-weight: 600; text-decoration: none; }
.trades { display: flex; flex-direction: column; gap: 12px; }
.carte-trade { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 14px 16px; background: var(--surface); border-radius: var(--rayon); color: var(--texte); text-decoration: none; }
.carte-trade > svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--texte-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carte-trade > .fort { font-size: 16px; font-weight: 700; white-space: nowrap; }
.pastille-titre { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.corps-trade { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nom-trade { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.carte-trade.meilleur { border: 1px solid #1f4d36; }
.carte-trade.meilleur .pastille-titre { background: #163a2a; color: var(--gain); }
.sur-trade { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gain); }
.tuile { background: var(--surface); border-radius: var(--rayon); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-height: 44px; color: var(--texte); text-decoration: none; }
.tete-tuile { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tete-tuile svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--texte-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lib-tuile { font-size: 12px; color: var(--texte-2); }
.val-tuile { font-size: 22px; font-weight: 800; }
.tuile .legende { font-size: 11px; color: var(--texte-3); }
.barres { display: flex; flex-direction: column; gap: 3px; }
.barre { display: block; height: 6px; border-radius: 3px; width: var(--l, 0%); }
.barre.gain { background: var(--gain); }
.barre.perte { background: var(--perte); }
.barre.seule { height: 5px; }
.partage { display: flex; gap: 2px; }
.partage .barre { width: auto; flex: 0 0 var(--l, 0%); }
.rail { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); }
.mois-grille { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mois { border-radius: 12px; padding: 10px 4px; text-align: center; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.mois.gain { background: #163a2a; }
.mois.perte { background: #2a1a24; }
.mois.perte.forte { background: #4a1f28; }
.nom-mois { font-size: 11px; color: var(--texte-2); }
.val-mois { font-size: 13px; font-weight: 700; }
.mois.neutre .val-mois { color: var(--texte-2); }
.mois.perte.forte .val-mois { color: #fca5a5; }
.ouvertes { gap: 0; }
.tete-ouvertes { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; }
.tete-ouvertes .fort { font-size: 16px; font-weight: 700; }
.tete-ouvertes svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ligne-floue { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--filet); }
.ligne-floue .pave { flex: none; width: 32px; height: 32px; border-radius: 10px; background: var(--surface-2); }
.ligne-floue .traits { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.trait-flou { display: block; border-radius: 5px; background: var(--bord); height: 10px; }
.trait-flou.long { width: 65%; }
.trait-flou.court { width: 40%; height: 8px; background: var(--surface-2); }
.trait-flou.valeur { flex: none; width: 44px; height: 12px; }
.ouvertes .bouton { margin-top: 12px; min-height: 48px; border-radius: 24px; font-size: 15px; }
.carte-journal { border: 1px solid #1f4d36; padding: 18px; }
.pastille-sceau { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #163a2a; display: flex; align-items: center; justify-content: center; }
.carte-journal > .tete-icone { align-items: center; }
.boutons-journal { display: flex; gap: 8px; }
.carte-track { gap: 10px; border: 1px solid var(--bord); color: var(--texte); text-decoration: none; }
.ligne-track { display: flex; align-items: flex-end; gap: 14px; }
.ligne-track .grand { font-size: 32px; }
.mini-courbe { display: block; width: 170px; max-width: 50%; height: 44px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; }
.rang-abonnement { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 14px 0; }
.rang-abonnement .fort { font-size: 16px; font-weight: 700; display: block; }
.rang-abonnement .bouton { flex: none; border-radius: 22px; }
.rang-capital { padding: 14px 0; }
.rang-capital .num { flex: none; font-size: 15px; }
.liens-bas { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; margin: 0; font-size: 12px; }
.liens-bas a { color: var(--texte-3); text-underline-offset: 3px; }
.liens-bas .sep { color: var(--texte-3); }
.lien-texte { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* A4 : trade de l'archive Telegram, hors chaîne : une mention discrète sous ses lignes. */
/* A6 : sélecteur Premium / Live, en tête de Portfolio, History et Profile, seulement pour qui reçoit le fichier Live. */
/* A12 : mini-courbe du Profile verte au-dessus de 0 %, rouge en dessous ; bandeau du Live ; source des chiffres. */
.mini-courbe .haut { stop-color: var(--gain); }
.mini-courbe .bas { stop-color: var(--perte); }
.bandeau-live { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 10px 14px; border: 1px solid var(--alerte); border-radius: 14px; }
.bandeau-live .fort { color: var(--alerte); }
.source { color: var(--texte-3); }
.trades-plus { width: 100%; margin-top: 12px; }

/* ── A19 : design unifié (revue de Romain, 26/11) ─────────────────────────────────────────────────
   Grille de 8 px ; mêmes marges (16 px), même rayon de carte (16 px) et même rembourrage (16 px) partout.
   Bleu = actions ; vert et rouge = gains et pertes seulement ; boutons secondaires en texte blanc ; tous les
   boutons sur une ligne, 44 px de haut au moins, icône 18 px. */
:root { --rayon: 16px; --marge: 16px; }
.carte { padding: 16px; gap: 8px; }
/* 1. En-tête : logo vectoriel 32 px et nom ; à droite une seule pastille, même style sur toutes les pages. */
.barre-haut { align-items: center; min-height: 56px; padding-top: 16px; }
.marque { gap: 8px; font-size: 17px; font-weight: 700; }
.logo-img { width: 32px; height: 32px; border-radius: 0; object-fit: contain; }
.pastille { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border: 1px solid var(--bord);
  border-radius: 16px; background: transparent; color: var(--texte-2); font-size: 13px; font-weight: 600;
  white-space: nowrap; text-decoration: none; }
a.pastille { color: var(--accent); border-color: var(--accent); }
/* 2. Même grand titre, à la même place, sur chaque page. */
h1, h1.moyen { font-size: 32px; line-height: 40px; margin: 16px 0 16px; }
/* 3. Carte du chiffre principal : libellé, grand chiffre, « As of » à droite, retard en badge. */
.quand-carte { text-align: right; color: var(--texte-3); white-space: nowrap; }
.badge-retard { align-self: flex-start; margin: 0; padding: 4px 8px; border-radius: 8px; background: #3a2a17;
  color: var(--alerte); font-size: 13px; font-weight: 600; }
.carte.avis { border: 1px solid var(--alerte); }
.carte.avis ul { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 8px; }
/* 4 et 5. Boutons : bleu pour l'action principale ; secondaires en texte blanc ; une ligne ; 44 px au moins. */
.bouton, .bouton.second, .bouton.contour, .periode, .suite, .contact .bouton,
  .code-promo, .mini { min-height: 44px; height: auto; }
.bouton.second { background: var(--surface-2); color: var(--texte); border: 1px solid var(--bord); }
.avec-icone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px;
  white-space: nowrap; text-decoration: none; }
.avec-icone svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.boutons-journal { display: flex; gap: 8px; margin-top: 8px; }
.boutons-journal > * { flex: 1 1 0; }
/* Le vert ne dit que des gains : le bloc des trades et son bouclier sont neutres. */
.carte-journal > .tete-icone svg { stroke: var(--texte-2); }
.pastille-sceau { background: var(--surface-2); }
.carte-journal { padding-bottom: 16px; }
#hist-modele { margin: 24px 0 8px; }
#hist-modele-tous { display: flex; align-items: center; justify-content: center; margin-top: 8px; text-decoration: none; }
/* Carte du chiffre principal : le chiffre tient sur une ligne, aligné à gauche, comme au Track record. */
.ligne-perf { align-items: flex-start; }
.bloc-chiffre { min-width: 0; }
.ligne-perf .heros { white-space: nowrap; font-size: 36px; }
.resume .ligne-perf .grand { text-align: left; margin: 0; }
.boutons-journal > * { min-width: 0; padding: 0 12px; }

/* A24 (retours de Romain, 27/11) : un seul style partout. En-tête : le nom seul (« FX » en accent), sans logo.
   Portfolio écrit comme les autres pages : rappel « To do » en bouton secondaire, lignes d'ordres au poids des cartes
   de trades, variation au poids des sous-lignes. History : liste des positions dans une carte, comme To do.
   Statut d'abonnement en vert (la règle .bloc-petit, grise, l'emportait sur .gain). */
.marque { gap: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.marque-fx { color: var(--accent); }
.bandeau { background: var(--surface); color: var(--accent); border: 1px solid var(--filet); font-weight: 600; }
.quoi, .combien { font-size: 16px; font-weight: 600; }
.variation { font-size: 14px; font-weight: 600; }
.positions { background: var(--surface); border-radius: var(--rayon); padding: 4px 16px 8px; }
.positions .trades > * { background: var(--surface-2); }
.bloc-petit.gain { color: var(--gain); }
.lien-ligne .bloc-petit { font-weight: 400; }
/* A29 (Romain, 27/11) : en-tête au logo seul, à la place du nom. */
.marque-logo { display: block; width: 36px; height: 36px; }

.prix-montant { font-size: 1.5rem; font-weight: 700; margin: 0.5rem 0; }
/* 29/11 (Romain, captures iPhone) : les boutons du bloc des trades passent en colonne sur téléphone, le texte revient à la
   ligne au lieu de déborder ; badge de chaque trade ; cash disponible sous la valeur du compte. */
.boutons-journal > * { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }
@media (max-width: 480px) {
  .boutons-journal { flex-direction: column; }
  .boutons-journal > * { flex: none; width: 100%; }
}
.bloc-petit.badge-chaine { display: block; width: fit-content; align-self: flex-start; margin-top: 2px; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.badge-chaine.on { color: var(--gain); border: 1px solid var(--gain); }
.badge-chaine.tg { color: var(--texte-2); border: 1px solid var(--bord); }
.cash-dispo { margin: 4px 0 0; color: var(--texte-2); font-size: 15px; }
/* 29/11 (Romain) : Espace Live, compte réel en lecture seule : ordres du jour. */
.ordre-compte { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--filet); }
.ordre-compte .nom { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.etat-ordre { flex: none; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; border: 1px solid var(--bord); color: var(--texte-2); }
.etat-ordre.filled { color: var(--gain); border-color: var(--gain); }
.etat-ordre.cancelled, .etat-ordre.expired { color: var(--texte-3); }
/* 30/11 (Romain, modèle du courtier) : Positions : société en gras et code ; cash en dernière ligne, séparé des titres. */
.positions .titre .societe, .positions summary .titre .societe { font-weight: 700; }
.titre .code { font-weight: 400; color: var(--texte-2); font-size: 14px; }
.cash.cash-final { margin-top: 14px; border-top: 2px solid var(--bord); border-bottom: 0; padding-top: 14px; }
.titre .code { display: block; }
