/* Fichier genere par build_css.py : ne pas editer a la main.
 * Source, dans l ordre (qui conditionne la cascade) : tokens.css, base.css, screens.css, design-review.css.
 * Pour changer une regle, editer le fichier source puis relancer build_css.py. */
/* ==== tokens.css ==== */
/* Paid2Call : les jetons.
 *
 * LA DIRECTION, en une phrase : le produit est un PANNEAU D AFFICHAGE
 * MECANIQUE. Des primes ouvertes, des places qui se remplissent, des minutes
 * qui tombent. Un panneau de gare Solari, en email, avec des volets.
 *
 * Pourquoi ce choix plutot qu un autre. Le site disait « registre imprime sur
 * papier os » : calme, editorial, immobile. C est le contraire exact de ce que
 * l outil fait. Ici des projets mettent de l argent sur la table et des gens
 * prennent une place avant que le temps tombe. Un objet qui claque dit ca. Une
 * page de papier ne le dira jamais.
 *
 * Pourquoi ce n est pas le tableau de bord sombre de la categorie : il n y a
 * aucune carte translucide, aucune lueur, aucune ombre portee flottante. Tout
 * est POSE, grave ou en relief. La tendance 2026 a un nom, tactile brutalism,
 * et elle refuse justement l illusion d elements qui flottent.
 *
 * Chaque couleur est calculee en OKLCH depuis quatre ancres. Les NOMS des
 * jetons ne changent pas : le theme bascule entierement ici, et les seize
 * pages ne l apprennent pas.
 */

/* ---- Les polices ---------------------------------------------------------
 * Trois familles, et chacune a un travail que les deux autres ne peuvent pas
 * faire. Archivo est parti : c etait un grotesque neutre, donc aucune
 * identite. */

/* Big Shoulders, SIL OFL 1.1, Patric King / Chicago Design System.
 * Un gothique americain CONDENSE dessine pour la signaletique : affiches,
 * enseignes, panneaux. C est litteralement la police d un panneau. Variable
 * sur la graisse ET la taille optique, donc une seule requete pour tout. */
@font-face {
  font-family: "Big Shoulders";
  src: url("../assets/fonts/big-shoulders-var.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

/* Bricolage Grotesque, SIL OFL 1.1, Mathieu Triay / Atelier Triay.
 * Le texte de lecture. Un grotesque a irregularites assumees, entre le
 * francais et le britannique : il a un accent, la ou Inter et Archivo n en ont
 * aucun. Trois axes, graisse, largeur et taille optique. */
@font-face {
  font-family: "Bricolage";
  src: url("../assets/fonts/bricolage-var.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}

/* Martian Mono, SIL OFL 1.1, Evil Martians. Les CHIFFRES, et rien d autre.
 * Un volet de panneau est une cellule de largeur fixe : le mono n est pas un
 * effet de style ici, c est la mecanique. Tabulaire par construction, donc
 * rien ne bouge de largeur sous un compte a rebours. */
@font-face {
  font-family: "Martian Mono";
  src: url("../assets/fonts/martian-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../assets/fonts/martian-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Martian Mono";
  src: url("../assets/fonts/martian-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  /* ---- L email : le corps du panneau ----------------------------------
   * Un vert-noir, pas un gris. Les vrais panneaux de gare sont en tole
   * emaillee vert sombre, et c est ce qui empeche l ecran de ressembler au
   * noir plat de tous les tableaux de bord de la categorie. La teinte 168
   * est tenue sur toute l echelle, la chroma monte legerement en montant :
   * une surface eclairee revele sa couleur. */
  --email-950: oklch(0.158 0.018 168);  /* le fond derriere le panneau  */
  --email-900: oklch(0.202 0.021 169);  /* la face du panneau           */
  --email-850: oklch(0.242 0.023 170);  /* un volet au repos            */
  --email-800: oklch(0.288 0.024 171);  /* un volet en relief           */
  --email-700: oklch(0.372 0.024 172);  /* les gravures, les filets     */

  /* ---- La craie : ce qui est ecrit sur le panneau ----------------------
   * Un blanc chaud, jamais du gris. Les niveaux sont des OPACITES choisies
   * sur la craie, pas des gris tires d une palette. */
  --craie: oklch(0.972 0.009 96);
  --craie-2: oklch(0.900 0.011 94);
  --craie-3: oklch(0.790 0.013 92);
  --craie-4: oklch(0.660 0.014 90);

  /* ---- La braise : l argent, et lui seul ------------------------------
   * Une lampe orange-rouge de signaletique. C est la SEULE couleur forte du
   * systeme, et elle ne remplit JAMAIS une forme : du texte, un filet, un
   * temoin de deux pixels. Une case pleine de cette couleur est exactement
   * ce que Louis refuse, et il a raison, ca transforme une couleur de
   * signal en decoration. */
  --braise-500: oklch(0.712 0.192 44);
  --braise-400: oklch(0.790 0.168 52);

  /* ---- Le temoin vert : la chaine a repondu ---------------------------
   * Froid contre la braise, pour qu un reglement et une somme ne se
   * confondent jamais d un coup d oeil. */
  --temoin-500: oklch(0.812 0.152 172);

  /* ---- Le refus -------------------------------------------------------- */
  --refus-500: oklch(0.668 0.204 22);

  /* ---- Alias de compatibilite -----------------------------------------
   * Les seize pages et 1880 lignes de screens.css parlent encore l ancien
   * vocabulaire. Plutot qu une reecriture de masse ou un oubli passe
   * inapercu, les anciens noms pointent sur les nouveaux. Une page non
   * encore reprise bascule donc de theme sans etre touchee. */
  --paper-50: var(--email-800);
  --paper-100: var(--email-900);
  --paper-200: var(--email-850);
  --paper-300: var(--email-800);
  --ink-950: var(--craie);
  --ink-900: var(--craie);
  --ink-700: var(--craie-3);
  /* ATTENTION, les alias d accent sont INVERSES, et c est voulu.
   *
   * Sur l ancien fond clair, `signal-700` etait la variante SOMBRE, donc la
   * seule lisible en texte. Sur l email, c est l inverse : la variante sombre
   * tombe a 4,1:1 et passe sous le seuil AA. Mesure sur sept pages le
   * 25/09/2026, le contraste ne se devine pas.
   *
   * Les faire pointer naivement sur leur homologue de numero aurait rendu
   * illisibles une trentaine de libelles sans qu aucun test de rendu ne
   * proteste. */
  --signal-500: var(--braise-500);
  --verified-600: var(--temoin-500);
  --rust-500: var(--refus-500);

  --text-loud: var(--craie);
  --text-plain: var(--craie-2);
  --text-quiet: var(--craie-3);
  --text-faint: var(--craie-4);

  /* ---- Les aretes : un panneau est visse, pas dessine ------------------
   * Une arete claire en haut, une arete sombre en bas : c est ca, du relief,
   * et ca coute deux filets. Pas une ombre portee. */
  --arete-haute: color-mix(in oklch, var(--craie) 14%, transparent);
  --arete-basse: color-mix(in oklch, var(--email-950) 82%, transparent);
  --edge-soft: color-mix(in oklch, var(--craie) 11%, transparent);
  --edge-firm: color-mix(in oklch, var(--craie) 22%, transparent);
  --edge-signal: color-mix(in oklch, var(--braise-500) 58%, transparent);

  /* ---- Rayons : le panneau a des angles de tole ------------------------
   * Genereux la ou une surface existe vraiment, parce qu un angle de quatre
   * pixels est un angle que personne n a choisi. Les volets, eux, n ont pas
   * de rayon du tout : ce ne sont pas des boites, ce sont des chiffres
   * traverses d une couture. */
  --radius-control: 16px;
  --radius-card: 20px;
  --radius-pill: 999px;

  /* ---- La typographie -------------------------------------------------
   * Le condense porte l identite, le mono porte les chiffres, le grotesque
   * porte la lecture. Et le plafond de 40 px est LEVE sur cette echelle :
   * il venait d un site de theatre. Ici les chiffres SONT le produit, les
   * ecrire petit est un contresens. */
  --font-display: "Big Shoulders", "Haettenschweiler", "Arial Narrow", sans-serif;
  --font-body: "Bricolage", "Big Shoulders", system-ui;
  --font-figure: "Martian Mono", ui-monospace, monospace;

  --size-display: clamp(2.1rem, 5.4vw, 3.9rem); /* les titres            */
  --size-title: 1.45rem;
  --size-lead: 1.08rem;
  --size-body: 0.97rem;
  --size-small: 0.84rem;
  --size-micro: 0.72rem;

  /* Le condense supporte un interlignage serre, mais pas 0,88 : a cette
   * valeur la virgule de « ON PROOF, » percute le M de « PROMISES » a la
   * ligne suivante, sur TOUS les titres de deux lignes du site. Vu en
   * capture le 25/09/2026, invisible en lisant la feuille. Une police en
   * capitales a quand meme des jambages sous la ligne de base : la virgule,
   * le point-virgule, la cedille. */
  --leading-tight: 0.98;
  --leading-body: 1.58;
  --tracking-display: 0.004em;
  --tracking-micro: 0.16em;

  /* ---- Le mouvement : un volet a une masse ----------------------------
   * `--ease-volet` depasse puis revient : c est le claquement. `--ease-tole`
   * freine sans rebondir, pour ce qui glisse. Rien n est lineaire. */
  --ease-volet: cubic-bezier(0.34, 1.52, 0.48, 1);
  --ease-tole: cubic-bezier(0.2, 0.72, 0.28, 1);
  --ease-settle: cubic-bezier(0.2, 0.72, 0.28, 1);
  --ease-spring: cubic-bezier(0.34, 1.52, 0.48, 1);
  --ease-exit: cubic-bezier(0.62, 0.02, 0.86, 0.14);
  --dur-tap: 110ms;
  --dur-move: 240ms;

  /* ---- Le relief : grave ou en relief, jamais flottant -----------------
   * Ce sont des ombres INTERNES : la lumiere vient du haut, la piece est
   * dans la tole et non posee dessus. C est la difference entre un panneau
   * et une carte qui flotte. */
  --creux:
    inset 0 1px 0 var(--arete-basse),
    inset 0 -1px 0 var(--arete-haute);
  --relief:
    inset 0 1px 0 var(--arete-haute),
    inset 0 -1px 0 var(--arete-basse);

  --space-2: 8px;
  --space-3: 14px;
  --space-4: 22px;
  --space-5: 34px;
  --space-6: 54px;

  --z-grain: 60;
  --z-topbar: 20;
  --z-panel: 2;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dur-tap: 1ms;
    --dur-move: 1ms;
  }
}

/* ==== base.css ==== */
/* Paid2Call : la fondation.
 *
 * Le site est UN PANNEAU D AFFICHAGE MECANIQUE. Tout ici sert ca, et rien
 * n est decoratif.
 *
 * Trois consequences, et ce sont elles qui rendent l ecran different :
 *
 * 1. Rien ne FLOTTE. Aucune ombre portee sous une carte, aucune lueur, aucun
 *    verre depoli. Les ombres sont INTERNES : la piece est gravee dans la tole
 *    ou en relief dessus. Une arete claire en haut, une arete sombre en bas,
 *    et le relief existe pour deux filets d un pixel.
 *
 * 2. Une liste est une LISTE, pas une grille de cartes. Trois cartes egales
 *    cote a cote est la mise en page que tout le monde a, et elle empeche de
 *    comparer : les chiffres ne sont pas alignes. Des rangs alignes sur les
 *    memes colonnes se comparent d un coup d oeil. C est le reproche fait a
 *    tous les concurrents, y compris a Immunefi qui ose le tableau mais sans
 *    hierarchie.
 *
 * 3. La braise ne remplit JAMAIS une forme. C est une lampe : du texte, un
 *    filet de deux pixels, un temoin. Monzo tient sa couleur comme une
 *    matiere et jamais comme un fond de bouton, c est la meme discipline.
 */

*, *::before, *::after { box-sizing: border-box; }

/* `hidden` doit CACHER, toujours. Sans cette regle, toute classe qui pose un
 * `display` l emporte sur l attribut : mesure le 26/09/2026, le bouton Back
 * s affichait a l etape 1 de la creation, le champ « prix du token » pour une
 * recompense en SOL, des lignes de bonus vides sans temps de detention, et
 * l historique de claims.html avant d etre charge. */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---- Le fond derriere le panneau ----------------------------------------
 * Un degrade tres sourd, jamais un aplat. La lumiere tombe du haut, comme sur
 * un panneau accroche dans un hall : c est ce qui fait qu un ecran sombre a
 * l air allume plutot qu eteint. */
body {
  background-color: var(--email-950);
  background-image:
    radial-gradient(120% 80% at 50% -10%,
      oklch(0.268 0.026 172 / 0.92), transparent 62%),
    linear-gradient(180deg, var(--email-950), oklch(0.132 0.016 calc(var(--teinte) + 4)));
  background-attachment: fixed;
  color: var(--craie-2);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-variation-settings: "wght" 400, "opsz" 14;
  line-height: var(--leading-body);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* Le grain. Un fond calcule sans grain reste une image de synthese : c est le
 * bruit qui donne une matiere a la tole. Fixe, et il ne recoit pas les clics. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.4;
  background-image: url("../assets/grain.svg");
  background-repeat: repeat;
  mix-blend-mode: soft-light;
}

main, header, footer { position: relative; z-index: var(--z-panel); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.6rem);
}

/* ---- La typographie du panneau ------------------------------------------
 * Le condense de signaletique, gros, serre, et les chiffres en mono. Le
 * plafond de 40 px qui tenait sur les autres projets est leve ici : sur un
 * panneau, ce qui est ecrit gros est ce qu on est venu lire. */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  color: var(--craie);
  margin: 0;
  text-wrap: balance;
  text-transform: uppercase;
}
h1 {
  font-size: var(--size-display);
  font-variation-settings: "wght" 800, "opsz" 72;
}
h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-variation-settings: "wght" 700, "opsz" 48;
}
h3 {
  font-size: var(--size-title);
  font-variation-settings: "wght" 600, "opsz" 24;
}

p { margin: 0 0 var(--space-3); max-width: 62ch; text-wrap: pretty; }

/* L oeil de boeuf : la petite ligne gravee au-dessus d un titre. Espacee,
 * en capitales, en braise quand elle annonce de l argent. */
.eyebrow {
  font-family: var(--font-figure);
  font-size: var(--size-micro);
  font-weight: 500;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--braise-500);
  margin: 0 0 var(--space-2);
}

/* Tout chiffre est en mono tabulaire. C est la mecanique du panneau : une
 * cellule de largeur fixe, donc rien ne bouge sous un compte a rebours. */
.figure {
  font-family: var(--font-figure);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  color: var(--craie);
  letter-spacing: -0.02em;
}

.quiet { color: var(--craie-3); }
.faint { color: var(--craie-4); font-size: var(--size-small); }

/* ---- La plaque : une surface posee sur le panneau -----------------------
 * Le mot `panel` reste, les seize pages l emploient. Ce que c est a change :
 * plus une carte a coins mous avec une ombre dessous, une PLAQUE en relief
 * dans la tole. */
.panel {
  position: relative;
  background-color: var(--email-900);
  background-image: linear-gradient(176deg,
    var(--email-850), var(--email-900) 46%, oklch(0.184 0.020 calc(var(--teinte) + 6)));
  border-radius: var(--radius-card);
  box-shadow: var(--relief);
  padding: var(--space-4);
}

/* ---- Les touches : une action est une touche enfoncee dans la tole ------
 * L action principale est une PLAQUE EMAILLEE CLAIRE, comme la plaque blanche
 * d une vraie enseigne : c est ce qui se voit de loin sur un panneau sombre.
 * Elle n est pas en braise, parce que la braise est une lampe et qu une lampe
 * ne se remplit pas. */
.action {
  --touche-enfoncee: 0px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.82rem 1.5rem;
  border: 0;
  border-radius: var(--radius-control);
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  font-variation-settings: "wght" 700, "opsz" 24;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background-color: var(--craie);
  background-image: linear-gradient(178deg, var(--craie), var(--craie-2));
  color: var(--email-950);
  box-shadow:
    inset 0 1px 0 oklch(1 0 0 / 0.7),
    inset 0 -2px 0 oklch(0.72 0.012 92 / 0.55),
    0 2px 0 oklch(0.48 0.012 92 / 0.4);
  translate: 0 var(--touche-enfoncee);
  transition:
    translate var(--dur-tap) var(--ease-volet),
    box-shadow var(--dur-tap) var(--ease-volet),
    background-image var(--dur-move) var(--ease-tole);
}
.action:hover {
  background-image: linear-gradient(178deg, oklch(0.995 0.006 96), var(--craie));
}
/* Enfoncee, la touche descend ET perd son epaisseur : c est la meme chose
 * qu une vraie touche, et c est ce qui manque a un `scale(0.98)`. */
.action:active {
  --touche-enfoncee: 2px;
  box-shadow:
    inset 0 2px 3px oklch(0.48 0.012 92 / 0.5),
    inset 0 -1px 0 oklch(1 0 0 / 0.4);
}
.action:focus-visible {
  outline: 2px solid var(--braise-500);
  outline-offset: 3px;
}
.action[disabled], .action[aria-disabled="true"] {
  /* La couleur de fond DOUBLE le degrade, et ce n est pas une ceinture avec
   * des bretelles. Sans elle, la craie de la touche active reste dessous :
   * le degrade la cache tant qu il peint, et le jour ou il ne peint pas le
   * libelle devient craie sur craie. Le harnais de contraste le voit, et il
   * a raison de le voir. */
  background-color: var(--email-850);
  background-image: linear-gradient(178deg, var(--email-800), var(--email-850));
  /* craie-4 tombait a 2,87:1 sur cette tole. Une touche eteinte reste une
   * touche qu on doit pouvoir lire pour comprendre pourquoi elle est eteinte. */
  color: var(--craie-3);
  box-shadow: var(--creux);
  cursor: not-allowed;
  translate: 0 0;
}

/* L action secondaire est gravee, pas posee : un creux dans la tole. */
.action--ghost {
  background-color: transparent;
  background-image: linear-gradient(178deg,
    oklch(0.228 0.020 calc(var(--teinte) + 7)), var(--email-900));
  color: var(--craie);
  box-shadow:
    inset 0 0 0 1px var(--edge-firm),
    inset 0 1px 0 var(--arete-haute);
}
.action--ghost:hover {
  background-image: linear-gradient(178deg,
    var(--email-800), var(--email-850));
}
.action--ghost:active {
  --touche-enfoncee: 2px;
  box-shadow:
    inset 0 0 0 1px var(--edge-firm),
    inset 0 2px 4px oklch(0.09 0.02 168 / 0.8);
}
.action--ghost:focus-visible {
  outline: 2px solid var(--braise-500);
  outline-offset: 3px;
}

/* ---- Les temoins : trois lampes, et elles ne remplissent rien -----------
 * Un point de lumiere plus un mot. Pas une pastille pleine : une pastille
 * pleine dans la couleur d accent est exactement ce qui est refuse ici. */
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-figure);
  font-size: var(--size-micro);
  font-weight: 500;
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--craie-3);
  background: none;
  padding: 0;
}
.mark::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background-color: currentColor;
  box-shadow: 0 0 7px currentColor;
}
.mark--verified { color: var(--temoin-500); }
.mark--refused { color: var(--refus-500); }

/* ---- Le bandeau du haut : la traverse vissee du panneau -----------------
 * Une traverse, pas une barre de navigation flottante avec du flou. */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  background-color: oklch(0.178 0.019 calc(var(--teinte) + 5));
  background-image: linear-gradient(180deg,
    var(--email-850), oklch(0.170 0.018 calc(var(--teinte) + 5)));
  box-shadow:
    inset 0 1px 0 var(--arete-haute),
    inset 0 -1px 0 var(--arete-basse),
    0 12px 22px -18px oklch(0.08 0.02 168 / 0.9);
  view-transition-name: traverse;
}

.site-footer {
  margin-top: var(--space-6);
  padding-block: var(--space-5);
  background-image: linear-gradient(180deg,
    transparent, oklch(0.132 0.016 calc(var(--teinte) + 4)));
  box-shadow: inset 0 1px 0 var(--arete-haute);
  color: var(--craie-4);
  view-transition-name: pied;
}

/* ---- Passer d une page a l autre ----------------------------------------
 * Le site est un panneau, donc changer de page ne doit pas rendre l ecran
 * blanc une image sur deux. La traverse et le pied restent en place, seul le
 * contenu glisse. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: sortie-page 180ms var(--ease-exit) both;
  }
  ::view-transition-new(root) {
    animation: entree-page 300ms var(--ease-tole) both;
  }
  @keyframes sortie-page {
    to { opacity: 0; transform: translateY(-6px); }
  }
  @keyframes entree-page {
    from { opacity: 0; transform: translateY(10px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---- Un lien dans du texte courant --------------------------------------
 * Sans cette regle, un `<a>` pose dans un paragraphe prend le bleu par defaut
 * du navigateur, #0000EE, soit 1,92:1 sur l email : invisible. Trouve sur
 * terms.html par la mesure, pas a la lecture. */
main a:not([class]) {
  color: var(--braise-400);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: var(--edge-signal);
  transition: text-decoration-color var(--dur-move) var(--ease-tole);
}
main a:not([class]):hover { text-decoration-color: var(--braise-400); }

/* ==== screens.css ==== */
/* Screens: layout, navigation, forms, review queue.
 * Every colour reuses a token from tokens.css; no value is introduced
 * outside of var(--…) and color-mix() on these tokens.
 */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-6);
}

.wrap--narrow { max-width: 720px; }

/* ---- Topbar ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  /* Trois colonnes plutot que deux : la marque a gauche, le menu au CENTRE,
   * et une colonne vide a droite de la meme largeur que la marque. Sans cette
   * troisieme colonne le menu serait centre sur l espace restant, donc decale
   * vers la droite de la moitie de la marque. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-5);
  background-color: color-mix(in oklch, var(--paper-100) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge-soft);
}

.topbar__brand {
  position: relative;
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-lead);
  letter-spacing: var(--tracking-display);
  color: var(--text-loud);
  text-decoration: none;
}

.topbar__nav {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.topbar__link {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--text-quiet);
  text-decoration: none;
  padding-bottom: 2px;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color var(--dur-move) var(--ease-settle),
    box-shadow var(--dur-move) var(--ease-settle);
}
.topbar__link:hover { color: var(--text-loud); }
.topbar__link--active {
  color: var(--text-loud);
  box-shadow: inset 0 -2px 0 var(--signal-500);
}

/* ---- Topbar: the phone row ----------------------------------------------- */

/* The trigger only exists below the breakpoint; above it the links are the
 * navigation and a button pointing at them would be a second way to say the
 * same thing. */
.topbar__toggle {
  position: relative;
  z-index: 3;
  grid-column: -2;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  border: 0;
  border-radius: var(--radius-control);
  background-color: color-mix(in oklch, var(--paper-200) 62%, transparent);
  box-shadow: inset 0 0 0 1px var(--edge-soft);
  color: var(--text-loud);
  cursor: pointer;
  transition: background-color var(--dur-tap) var(--ease-settle),
    box-shadow var(--dur-tap) var(--ease-settle);
}
.topbar__toggle:hover { box-shadow: inset 0 0 0 1px var(--edge-firm); }
.topbar__toggle:active {
  background-color: color-mix(in oklch, var(--paper-300) 70%, transparent);
}

.topbar__bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 18px;
}
.topbar__bars i {
  display: block;
  height: 2px;
  border-radius: var(--radius-pill);
  background-color: currentColor;
  /* Spring on the way in, not on the way out: opening is the gesture that
   * deserves the overshoot, closing should get out of the way. */
  transition: transform var(--dur-move) var(--ease-spring),
    opacity var(--dur-tap) var(--ease-exit);
}
.topbar__toggle[aria-expanded="true"] .topbar__bars i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topbar__toggle[aria-expanded="true"] .topbar__bars i:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.topbar__toggle[aria-expanded="true"] .topbar__bars i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: var(--space-3) var(--space-4);
  }
  .topbar__toggle { display: inline-flex; }

  /* Tapping anywhere outside closes the menu; the scrim is what says so
   * before the tap, rather than leaving the page looking live underneath. */
  .topbar::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    background-color: color-mix(in oklch, var(--paper-200) 34%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-move) var(--ease-settle);
  }
  .topbar:has(.topbar__nav[data-open="true"])::after { opacity: 1; }

  /* The panel hangs off the bar rather than pushing it: the bar is sticky, so
   * growing it would cost the same screen height the wrap cost. */
  .topbar__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
    padding: var(--space-2) var(--space-4) var(--space-4);
    /* Opaque, not translucent. The first attempt reused the bar's own
     * blurred 88% ink and the page read straight through it -- "Open missions"
     * sat inside the word "Create". A menu is a sheet, not a scrim. The
     * surface still is not a flat fill: a muted vertical gradient plus the
     * same grain every other surface in this product carries. */
    background-color: var(--paper-50);
    background-image: linear-gradient(180deg,
      color-mix(in oklch, var(--paper-200) 82%, transparent),
      color-mix(in oklch, var(--paper-100) 40%, transparent) 58%,
      transparent);
    border-bottom: 1px solid var(--edge-firm);
    border-radius: 0 0 var(--radius-card) var(--radius-card);
    box-shadow: 0 22px 44px -28px oklch(0 0 0 / 0.9);
    z-index: 2;
    transform-origin: top center;
    transform: translateY(-10px) scaleY(0.96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--dur-move) var(--ease-exit),
      opacity var(--dur-tap) var(--ease-exit),
      visibility 0s var(--dur-move);
  }
  .topbar__nav[data-open="true"] {
    transform: translateY(0) scaleY(1);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform var(--dur-move) var(--ease-spring),
      opacity var(--dur-tap) var(--ease-settle),
      visibility 0s;
  }

  .topbar__nav .topbar__link {
    padding: var(--space-3) 2px;
    font-size: var(--size-body);
    border-bottom: 1px solid var(--edge-soft);
    box-shadow: none;
    /* Each link arrives slightly after the one above it: the panel reads as one
     * object unfolding rather than six that appeared at once. */
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity var(--dur-move) var(--ease-settle) var(--stagger, 0ms),
      transform var(--dur-move) var(--ease-spring) var(--stagger, 0ms),
      color var(--dur-move) var(--ease-settle);
  }
  /* Grain as its own layer rather than a second background-image: a
   * background cannot carry an opacity of its own, and at full strength the
   * texture read as static rather than as a surface. */
  .topbar__nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-image: url("../assets/grain.svg");
    background-size: 220px 220px;
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
  }
  .topbar__nav > * { position: relative; }

  .topbar__nav .topbar__link:last-child { border-bottom: 0; }
  .topbar__nav[data-open="true"] .topbar__link {
    opacity: 1;
    transform: translateY(0);
  }
  .topbar__nav .topbar__link--active {
    color: var(--text-loud);
    box-shadow: inset 2px 0 0 var(--signal-500);
    padding-left: var(--space-3);
  }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill);
  background-color: color-mix(in oklch, var(--paper-200) 80%, transparent);
  box-shadow: inset 0 0 0 1px var(--edge-soft);
}
.chip__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-pill);
  background-color: var(--ink-900);
  background-image: linear-gradient(160deg, var(--ink-700), var(--ink-950));
  color: var(--paper-50);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-micro);
}
.chip__meta { display: flex; flex-direction: column; line-height: 1.2; }
.chip__pseudo { font-size: var(--size-small); font-weight: 600; color: var(--text-loud); }
.chip__sub { font-size: var(--size-micro); color: var(--text-faint); }

/* ---- Page headers -------------------------------------------------------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

/* ---- Wallet ----------------------------------------------------------------
 * Never silent about who is signing: a real connected wallet (verified)
 * or the local demo key (signal). See wallet.js::isDemoWallet(). */

.wallet-status {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-4);
  border-radius: var(--radius-control);
  background-color: color-mix(in oklch, var(--paper-300) 55%, transparent);
  box-shadow: inset 0 0 0 1px var(--edge-soft);
  font-size: var(--size-small);
  line-height: var(--leading-body);
  color: var(--text-plain);
}
.wallet-status:empty { display: none; }
.wallet-status svg { flex: none; margin-top: 2px; color: var(--verified-600); }
.wallet-status strong { color: var(--text-loud); font-weight: 600; }

/* ---- Bytes of the built instruction (create.html) -------------------------- */

.byte-dump {
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-control);
  background-color: color-mix(in oklch, var(--paper-200) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--edge-soft);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: var(--size-small);
  line-height: var(--leading-body);
  color: var(--text-plain);
  word-break: break-all;
  white-space: pre-wrap;
}
.byte-dump .byte-dump__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--size-micro);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: var(--space-2);
}
.byte-dump .byte-dump__label:first-child { margin-top: 0; }

/* ---- Buttons full-width helper ------------------------------------------- */

.action[disabled] { pointer-events: none; }

/* ---- Create form ----------------------------------------------------------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--text-plain);
}
.field__hint { font-size: var(--size-micro); color: var(--text-faint); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: var(--size-body);
  color: var(--text-loud);
  background-color: color-mix(in oklch, var(--paper-200) 78%, transparent);
  border: 1px solid var(--edge-soft);
  border-radius: var(--radius-control);
  padding: 11px var(--space-3);
  transition: border-color var(--dur-move) var(--ease-settle),
    box-shadow var(--dur-move) var(--ease-settle);
}
.field input::placeholder,
.field textarea::placeholder { color: var(--text-faint); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--edge-signal);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--menthe) 22%, transparent);
}
.field textarea { resize: vertical; min-height: 84px; line-height: var(--leading-body); }

.section-gap { margin-top: var(--space-6); }

/* ---- Site chrome: footer, on every page ---------------------------------- */

.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-5) var(--space-4) var(--space-4);
  border-top: 1px solid var(--edge-soft);
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.honesty-panel {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-card);
  background-color: color-mix(in oklch, var(--paper-200) 75%, transparent);
  box-shadow: inset 0 0 0 1px var(--edge-soft);
}
/* ---- terms.html ------------------------------------------------------------ */

/* ---- Reading pages: one subject each ------------------------------------- */

/* Narrower than the app screens. A page that is only prose reads badly at the
 * width of a mission wall, and the split into separate pages was the point. */
.wrap--reading { max-width: 860px; }

.crumb {
  font-size: var(--size-small);
  color: var(--text-faint);
  margin-bottom: var(--space-3);
}
.crumb a {
  color: var(--text-quiet);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--edge-soft);
  transition: color var(--dur-tap) var(--ease-settle),
    box-shadow var(--dur-tap) var(--ease-settle);
}
.crumb a:hover {
  color: var(--text-loud);
  box-shadow: inset 0 -1px 0 var(--craie);
}

.row-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---- A form in steps ------------------------------------------------------ */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: color-mix(in oklch, var(--paper-200) 52%, transparent);
  box-shadow: inset 0 0 0 1px var(--edge-soft);
  color: var(--text-quiet);
  font-family: var(--font-body);
  font-size: var(--size-small);
  cursor: pointer;
  transition: color var(--dur-move) var(--ease-settle),
    background-color var(--dur-move) var(--ease-settle),
    box-shadow var(--dur-move) var(--ease-settle);
}
.step-chip__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background-color: color-mix(in oklch, var(--paper-300) 80%, transparent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--size-micro);
  color: var(--text-quiet);
  transition: background-color var(--dur-move) var(--ease-settle),
    color var(--dur-move) var(--ease-settle);
}
.step-chip:hover { color: var(--text-loud); }
.step-chip[aria-current="step"] {
  color: var(--text-loud);
  background-color: color-mix(in oklch, var(--paper-300) 74%, transparent);
  box-shadow: inset 0 0 0 1px var(--edge-signal);
}
.step-chip[aria-current="step"] .step-chip__n {
  background-color: var(--ink-900);
  color: var(--paper-50);
}

.step-pane {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0; /* a fieldset refuses to shrink below its content without this */
}
.step-pane__title {
  padding: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--size-lead);
  color: var(--text-loud);
}
.step-pane__sub {
  margin: 4px 0 var(--space-4);
  font-size: var(--size-small);
  color: var(--text-quiet);
}

.step-nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--edge-soft);
}
.step-nav__count {
  margin-left: auto;
  font-size: var(--size-micro);
  letter-spacing: var(--tracking-micro);
  text-transform: uppercase;
  color: var(--text-faint);
}

@media (max-width: 560px) {
  .step-chip__label { display: none; }
  .step-chip { padding: 7px; }
  .step-nav { flex-wrap: wrap; }
  .step-nav__count { width: 100%; margin-left: 0; order: -1; }
}


/* A heading inside a panel is followed immediately by its paragraph on the
 * reading pages. Without this they sit on top of each other. */
.panel h2 + p,
.panel h2 + .quiet { margin-top: var(--space-3); }

/* ---- The landing: a statement, not a stack of cards ----------------------
 * Nothing on this page is in a box. Things are separated by a rule, by their
 * position on the grid, and by air. The one drawn object is the dial, and it
 * sits in the margin rather than in the middle. */

/* ---- The ledger --------------------------------------------------------- */

.ledger { margin: 0; }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: baseline;
  padding: var(--space-3) 0;
  /* One rule per row, drawn under it, and nothing above: a table with a
   * hairline on both sides of every row is the laziest layout there is. */
  border-bottom: 1px solid var(--edge-soft);
}
.ledger__row:first-child { border-top: 1px solid var(--edge-firm); }
.ledger__row dt {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--size-small);
  color: var(--text-quiet);
}
.ledger__row dt svg { flex: none; color: var(--text-faint); }
.ledger__row dd {
  margin: 0;
  font-size: var(--size-body);
  text-align: right;
}
.ledger--tight .ledger__row { padding: 10px 0; }

/* ---- The forward link --------------------------------------------------
 * The site's tertiary action. Not a third button: an underline that grows
 * from the left, so it reads as reading rather than as clicking. */
.link-next {
  display: inline-block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--size-small);
  font-weight: 500;
  color: var(--text-plain);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--dur-move) var(--ease-settle);
}
.link-next:hover { color: var(--menthe); background-size: 100% 1px; }
.link-next::after {
  content: "";
  display: inline-block;
  width: 0.44em;
  height: 0.44em;
  margin-left: 0.55em;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-0.06em);
  transition: transform var(--dur-move) var(--ease-spring);
}
.link-next:hover::after { transform: rotate(45deg) translate(0.2em, -0.26em); }

/* La connexion se propose, elle ne se prend pas : le bouton est dans le
 * bandeau, et l extension ne s ouvre que sur ce clic. */
.wallet-status__connect {
  min-height: 36px;
  margin-left: auto;
  padding: 0 var(--space-3);
  flex: none;
}

/* ---- Un ecart de section entre deux paragraphes -------------------------
 * `.section-gap` pose 54 px la ou l ecart normal entre paragraphes est de
 * 14 px : quatre fois plus, donc l oeil y lit un trou et pas une separation.
 * Un filet au-dessus le rend intentionnel, et c est le vocabulaire du
 * panneau : une gravure, pas du vide. */
.panel > p.section-gap,
.panel > .row-actions.section-gap {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  box-shadow: inset 0 1px 0 var(--edge-soft);
}

/* ---- Le panneau d urgence ------------------------------------------------
 * Un ecran d operateur, pas une vitrine : le temoin d etat est gros, et il
 * dit en un mot si la plateforme accepte encore des ecritures. */
.urgence__etat {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-2) 0 var(--space-3);
}
.urgence__etat .mark { font-size: var(--size-small); }
.urgence .ledger { margin-top: var(--space-4); }
.urgence dd.figure { word-break: break-all; }

.urgence__alerte {
  margin: 0 0 var(--space-3);
  padding-left: 0.7em;
  border-left: 2px solid var(--braise-500);
  color: var(--braise-400);
  font-size: var(--size-small);
}

/* ---- Une liste de faits -------------------------------------------------
 * Pour un public qui debute (26/09/2026) : un paragraphe long devient une
 * liste de faits courts, un par ligne. Le repere est un trait de craie, pas
 * une puce ronde de traitement de texte, et jamais une case pleine. */
.faits {
  list-style: none;
  margin: var(--space-2) 0 var(--space-3);
  padding: 0;
  display: grid;
  gap: 0.45em;
  max-width: 60ch;
}
.faits li {
  position: relative;
  padding-left: 1.05em;
  line-height: 1.45;
  color: var(--craie-2);
}
.faits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 0.5em;
  height: 2px;
  background-color: var(--craie-4);
}

/* ---- launchpad ------------------------------------------------------------ */
.choix-frais { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.choix {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--edge-soft); border-radius: var(--radius-control);
  cursor: pointer;
}
.choix:has(input:checked) { border-color: var(--edge-firm); box-shadow: inset 0 -2px 0 var(--craie); }
.choix b { font-family: var(--font-figure); color: var(--text-loud); }
.repartition { display: grid; gap: var(--space-2); margin-top: var(--space-3); max-width: 28rem; }
.repartition__ligne { display: flex; justify-content: space-between; border-bottom: 1px solid var(--edge-soft); padding-bottom: 6px; }
.repartition__ligne b { font-family: var(--font-figure); color: var(--text-loud); }
.niveaux { display: grid; gap: var(--space-3); margin: var(--space-3) 0; }
/* Les callouts publics sur la page du token : des rangs, pas des cartes. */
.callouts-token { display: grid; border-top: 1px solid var(--edge-soft); }
.callout-token { padding: var(--space-3) 0; border-bottom: 1px solid var(--edge-soft); }
.callout-token__tete { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: baseline; margin: 0; }
.callout-token__texte { margin: 6px 0 0; max-width: 68ch; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* Le premier achat du createur : une part de la supply, ou des SOL. */
.achat-part { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin: var(--space-2) 0; }
.achat-part__champ { display: inline-flex; align-items: center; gap: var(--space-2); }
.achat-part__champ input { width: 8.5rem; font-variant-numeric: tabular-nums; }
.achat-part__champ span { color: var(--text-loud); }
.achat-part__presets { display: flex; gap: var(--space-2); }
.choix-mini { font: inherit; font-variant-numeric: tabular-nums; padding: 6px 12px; border-radius: var(--radius-control);
  border: 1px solid var(--edge-soft); background: transparent; color: var(--text-loud); cursor: pointer;
  transition: border-color 180ms cubic-bezier(.2,.8,.2,1), transform 120ms cubic-bezier(.2,.8,.2,1); }
.choix-mini:hover { border-color: var(--edge-firm); }
.choix-mini:active { transform: translateY(1px); }
.choix-mini[aria-pressed="true"] { border-color: var(--edge-firm); box-shadow: inset 0 -2px 0 var(--craie); }
.achat-part__devis { min-height: 1.4em; }
/* Le calcul des callouts payes : un filet a gauche, pas une case. */
.estimation { display: grid; gap: var(--space-2); max-width: 36rem; padding-left: var(--space-4); border-left: 2px solid var(--edge-soft); }
.estimation__texte { margin: 0; }
.estimation__texte b { font-family: var(--font-figure); color: var(--text-loud); font-weight: 600; }
.choix:has(input:disabled) { opacity: 0.5; cursor: not-allowed; }
.niveau { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--space-3); align-items: end; }
@media (max-width: 720px) { .niveau { grid-template-columns: 1fr 1fr; } .niveau__retirer { grid-column: 1 / -1; } }

/* Les chiffres de la plateforme : un rang de quatre, filets entre les cases. */
/* La reserve $PAID2CALL : un rang entre deux filets, le chiffre en braise. */
.reserve {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-4); align-items: center;
  padding: var(--space-4) 0; border-top: 1px solid var(--edge-soft); border-bottom: 1px solid var(--edge-soft);
}
.reserve__texte p { margin: 0; max-width: 52ch; }
.reserve__texte .eyebrow { margin-bottom: 4px; }
.reserve__chiffre { margin: 0; }
@media (min-width: 600px) { .reserve__chiffre { white-space: nowrap; } }
.reserve__chiffre .figure { display: inline-block; font-size: var(--size-title); line-height: 1; color: var(--menthe); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .reserve { grid-template-columns: 1fr; } }
.liste-pools { display: grid; gap: 0; border-top: 1px solid var(--edge-soft); }
/* La suite de la liste (28/09/2026) : detachee du cadre, centree, a sa largeur. */
.liste-suite { display: flex; width: fit-content; min-width: 200px; justify-content: center; margin: 20px auto 4px; }
.pool {
  display: grid; grid-template-columns: 56px minmax(9rem, 1.2fr) minmax(8rem, 0.9fr) minmax(12rem, 1.4fr) minmax(10rem, 1fr);
  gap: var(--space-4); align-items: center; padding: var(--space-4) 0; border-bottom: 1px solid var(--edge-soft);
}
.pool--eteinte { opacity: 0.55; }
.pool__image { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; background: var(--email-800); }
.pool__nom { display: grid; gap: 4px; }
@media (max-width: 860px) {
  .pool { grid-template-columns: 56px 1fr; }
}
/* Les controles natifs gardaient le bleu du navigateur : craie, comme le
 * reste du formulaire. La braise reste reservee au trait du choix actif. */
.choix input[type="radio"], #share { accent-color: var(--craie-2); }
#share { width: 100%; }
input[type="file"] { color: var(--text-quiet); font-size: var(--size-small); }
input[type="file"]::file-selector-button {
  margin-right: var(--space-3);
  padding: 8px 16px;
  border: 1px solid var(--edge-firm);
  border-radius: 999px;
  background: transparent;
  color: var(--text-loud);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color var(--dur-move) var(--ease-settle), background-color var(--dur-move) var(--ease-settle);
}
input[type="file"]::file-selector-button:hover { border-color: var(--craie-3); background: oklch(1 0 0 / 0.04); }

/* ---- la page d un token ---------------------------------------------------- */
.coin-tete { display: grid; grid-template-columns: 72px 1fr auto; gap: var(--space-4); align-items: center; margin-top: var(--space-4); }
.coin-tete__image { width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--email-800); }
.coin-tete__nom { display: grid; gap: 6px; }
.coin-tete__nom h1 { margin: 0; }
.coin-tete__mint { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.coin-tete__actions { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) {
  .coin-tete { grid-template-columns: 56px 1fr; }
  .coin-tete__image { width: 56px; height: 56px; }
  .coin-tete__actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.coin-graph { margin-top: var(--space-3); }
.coin-graph__vide { padding: var(--space-6) 0; }
.coin-pool__somme { display: grid; gap: 2px; margin: var(--space-2) 0 var(--space-3); }
.coin-pool__somme .figure { font-size: var(--size-lead); color: var(--text-loud); }
.coin-niveaux { list-style: none; margin: 0 0 var(--space-3); padding: 0; border-top: 1px solid var(--edge-soft); }
.coin-niveaux li { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--edge-soft); font-size: var(--size-small); }
.coin-paiements { display: grid; border-top: 1px solid var(--edge-soft); }
.coin-paiement { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--edge-soft); font-size: var(--size-small); align-items: center; }
@media (max-width: 720px) { .coin-paiement { grid-template-columns: 1fr 1fr; } }
.pool__nom a { color: inherit; text-decoration: none; }
.pool__nom a:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ==== design-review.css ==== */
/* Paid2Call terminal: actual opportunities, compact rows, distinct work areas. */
:root {
  /* La teinte du site, en un seul endroit (task 3, 29/09/2026). Vert est
   * la valeur par defaut, identique a l ancien systeme fige : personne qui
   * ne touche pas au selecteur de couleur ne voit rien changer. Les cinq
   * choix vivent plus bas, dans :root[data-teinte="..."], et ne redefinissent
   * QUE ces trois variables, jamais email, menthe ou jeton directement,
   * pour garder un seul endroit qui sait ce qu une teinte veut dire. */
  --teinte: 162;
  --teinte-l: 0.86;
  --teinte-c: 0.165;
  /* Surfaces : l email retrouve sa teinte (audit du 28/09/2026, section 5.1).
   * Chaque volet garde SA propre clarte/chroma (la fabrication du panneau ne
   * bouge pas) ; seule la teinte suit --teinte, avec le meme ecart qu avant
   * (174/172/170/170/170, soit +12/+10/+8/+8/+8 sur le 162 par defaut). */
  --email-950: oklch(0.17 0.022 calc(var(--teinte) + 12));
  --email-900: oklch(0.222 0.024 calc(var(--teinte) + 10));
  --email-850: oklch(0.254 0.026 calc(var(--teinte) + 8));
  --email-800: oklch(0.30 0.028 calc(var(--teinte) + 8));
  --email-700: oklch(0.38 0.026 calc(var(--teinte) + 8));
  --fond-0: var(--email-950);
  --puits: oklch(0.185 0.022 calc(var(--teinte) + 12));
  --plaque: var(--email-900);
  --plaque-haute: var(--email-850);
  --surface-traverse: oklch(0.232 0.025 calc(var(--teinte) + 10));
  --surface-hover: oklch(0.29 0.03 calc(var(--teinte) + 6));
  --survol: var(--surface-hover);
  --text-plain: color-mix(in oklch,var(--craie) 88%,transparent);
  --text-quiet: color-mix(in oklch,var(--craie) 70%,transparent);
  --text-faint: color-mix(in oklch,var(--craie) 58%,transparent);
  --text-soft: var(--text-quiet);  /* employe par coin-buy.css, jamais defini avant */
  --frame-line: color-mix(in oklch,var(--craie) 13%,transparent);

  /* Roles : une couleur, un sens. Un chiffre, un trait ou un point, jamais une surface. */
  --menthe: oklch(var(--teinte-l) var(--teinte-c) var(--teinte));   /* l argent des callers, la marque -- suit --teinte */
  --achat: oklch(0.83 0.22 146);     /* achat, hausse, direct */
  --vente: oklch(0.70 0.185 24);      /* vente, baisse, refus */
  --sable: oklch(0.86 0.105 85);     /* attente, hold en cours, donnee perimee */
  --alerte: oklch(0.79 0.135 56);     /* fonds insuffisants, risque */
  --info: oklch(0.80 0.10 248);      /* reserve, verification en cours */
  --palier-1: oklch(0.83 0.13 205);
  --palier-2: var(--menthe);
  --palier-3: oklch(0.90 0.19 118);
  --jeton: oklch(0.78 0.15 calc(var(--teinte) + 1));     /* redeclaree la ou le JS pose --jeton-h */

  /* Anciens noms rebranches : graphe.js, les variations et la file suivent. */
  --terminal-accent: var(--menthe);
  --terminal-ink: oklch(0.21 0.02 calc(var(--teinte) + 8));
  --temoin-500: var(--achat);
  --refus-500: var(--vente);
  --signal-500: var(--alerte);

  /* Derives : traits, lueurs transitoires. */
  --trait-achat: color-mix(in oklch,var(--achat) 60%,transparent);
  --trait-vente: color-mix(in oklch,var(--vente) 60%,transparent);
  --lueur-achat: color-mix(in oklch,var(--achat) 14%,transparent);
  --lueur-vente: color-mix(in oklch,var(--vente) 14%,transparent);
  --anneau-jeton: color-mix(in oklch,var(--jeton) 70%,transparent);

  /* Rayons, tous au-dessus de 8 px. */
  --r-controle: 12px;
  --r-plaque: 16px;
  --radius-control: var(--r-controle);
  --radius-card: var(--r-plaque);

  /* Ressorts : repli pour les navigateurs sans linear(). */
  --ressort-vif: var(--ease-spring);
  --ressort-doux: var(--ease-tole);

  --size-body: 14px;
  --size-small: 13px;
  --size-micro: 12px;
  --space-4: 18px;
  --space-5: 26px;
  --space-6: 36px;
}
/* Les cinq teintes (task 3, 29/09/2026). Vert est la valeur par defaut
 * ci-dessus ; les quatre autres ne redefinissent que --teinte/-l/-c, jamais
 * les jetons de couleur eux-memes -- la cascade fait le reste.
 *
 * Bleu et Ardoise reprennent la recette de Vert (memes L/C que la marque,
 * teinte seule tournee) une fois la chroma redescendue pour rester dans le
 * gamut sRGB a cette clarte (au-dela, le navigateur ecrete et le bleu choisi
 * ressort desature, pas plus vif).
 *
 * Rouge et Ambre NE reprennent PAS cette recette : a L/C de Vert, leur teinte
 * tombe hors gamut ET se rapproche trop de --vente (rouge, erreur, h24) ou de
 * --alerte/--sable (ambre, h56/h85) -- verifie par calcul (conversion OKLCH ->
 * sRGB lineaire), pas a l oeil :
 *   - Rouge a L0.86/C0.165/H24 : hors gamut (canal rouge lineaire = 1.47),
 *     et une fois ecrete, a moins de 1,5:1 d ecart de luminance avec --vente.
 *   - Ambre a L0.86/C0.165/H56 : hors gamut, et a 1,1:1 de --alerte.
 * Rouge devient donc un rouge rose (H345, a 39 deg de --vente), Ambre un or
 * profond plus sombre que --alerte et --sable (L0.72 contre 0.79/0.86) plutot
 * qu une teinte plus proche encore sur la roue -- la place entre --alerte(56)
 * et --sable(85) est trop etroite pour separer par la seule teinte. */
:root[data-teinte="bleu"] { --teinte: 226; --teinte-l: 0.84; --teinte-c: 0.10; }
:root[data-teinte="rouge"] { --teinte: 345; --teinte-l: 0.84; --teinte-c: 0.095; }
:root[data-teinte="ambre"] { --teinte: 66; --teinte-l: 0.72; --teinte-c: 0.16; }
:root[data-teinte="ardoise"] { --teinte: 220; --teinte-l: 0.81; --teinte-c: 0.032; }
/* Oscillateurs amortis calcules, dernier point force a 1.
 * vif : 460 ms, depassement 6 %. doux : 500 ms, depassement 3 %. */
@supports (animation-timing-function: linear(0, 1)) {
  :root {
    --ressort-vif: linear(0, 0.058, 0.194, 0.364, 0.537, 0.693, 0.821, 0.919, 0.988, 1.032, 1.056, 1.064, 1.062, 1.055, 1.044, 1.033, 1.022, 1.014, 1.007, 1.002, 0.999, 0.997, 0.996, 0.996, 0.996, 0.997, 0.998, 0.998, 1);
    --ressort-doux: linear(0, 0.035, 0.12, 0.234, 0.358, 0.481, 0.596, 0.697, 0.784, 0.854, 0.91, 0.953, 0.983, 1.005, 1.019, 1.026, 1.03, 1.03, 1.028, 1.025, 1.022, 1.018, 1.014, 1.011, 1.008, 1.006, 1.004, 1.002, 1);
  }
}
/* La couleur propre d un token : le JS pose --jeton-h (et --jeton-c pour les
 * bleus hors gamut) ; la couleur se recalcule ici, pas a la racine. */
[style*="--jeton-h"] {
  --jeton: oklch(0.78 var(--jeton-c, 0.15) var(--jeton-h));
  --anneau-jeton: color-mix(in oklch,var(--jeton) 70%,transparent);
}
html { color-scheme: dark; scroll-padding-top: 84px; }
/* Un degrade sourd, une seule lumiere en haut a gauche, un grain qu on voit. */
body { display: flex; flex-direction: column; padding-left: 88px; background-color: var(--fond-0);
  background-image: url("../assets/grain-fond.svg"),
    radial-gradient(60% 42% at 26% 0%,oklch(0.62 0.13 calc(var(--teinte) + 1) / 0.30),transparent 72%),
    radial-gradient(48% 36% at 82% 0%,oklch(0.60 0.11 205 / 0.24),transparent 72%),
    radial-gradient(40% 30% at 8% 62%,oklch(0.66 0.13 125 / 0.10),transparent 72%),
    radial-gradient(42% 30% at 92% 96%,oklch(0.62 0.12 calc(var(--teinte) + 1) / 0.10),transparent 72%),
    radial-gradient(85% 60% at 14% -6%,oklch(0.30 0.035 calc(var(--teinte) + 6) / 0.5),transparent 62%),
    linear-gradient(180deg,oklch(0.205 0.017 calc(var(--teinte) + 8)),var(--fond-0) 70%);
  background-size: 220px 220px, auto, auto, auto, auto, auto, auto; }
/* Aucun calque fixe de decor : un calque fixe sous ou sur le texte oblige le
 * navigateur a composer tout le contenu a part, et sur un ecran courant le texte
 * perd son lissage ; le gras paraissait flou (Louis, 28/09/2026). Le grain et les
 * lumieres sont peints dans le fond du body, ci-dessus. */
body::before, body::after { content: none; display: none; }
body > main { flex: 1; }
.wrap { max-width: 1540px; padding: 24px 26px 30px; }
.wrap--narrow { max-width: 840px; }
.wrap--reading { max-width: 960px; }
h1,h2,h3 { font-family: var(--font-body); text-transform: none; letter-spacing: -0.012em; line-height: 1.22; text-wrap: pretty; }
h1 { font-size: 26px; font-variation-settings: "wght" 650,"opsz" 32; }
h2 { font-size: 17px; font-variation-settings: "wght" 650,"opsz" 20; }
h3 { font-size: 14px; font-variation-settings: "wght" 600,"opsz" 16; }
.eyebrow { color: var(--text-quiet); font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.page-head { align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--edge-soft); }
.page-head h1 { font-size: 26px; }
.page-intro { font-size: 14px; line-height: 1.5; color: var(--text-quiet); margin: 8px 0 0; max-width: 64ch; }
.section-gap { margin-top: 22px; }
.panel { background-image: linear-gradient(140deg,var(--email-850),var(--email-900)); border: 1px solid var(--edge-soft); box-shadow: none; padding: 20px; }
/* L action principale est une plaque de craie, jamais une case menthe pleine :
 * la couleur marque l argent, pas un bouton (regle « jamais une case doree »). */
/* overflow: clip et non hidden : hidden rend la largeur minimale nulle dans une
 * rangee flex, et le libelle se faisait couper (« Connect wa », capture du 28/09). */
.action { position: relative; isolation: isolate; overflow: hidden; overflow: clip; min-height: 36px; padding: 8px 14px; gap: 10px; border: 0; border-radius: var(--r-controle);
  font: 650 13px/1 var(--font-body); font-variation-settings: normal; text-transform: none; letter-spacing: 0; color: var(--terminal-ink);
  background-color: var(--craie); background-image: linear-gradient(178deg,var(--craie),var(--craie-2));
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.75),inset 0 -2px 0 oklch(0.72 0.012 92 / 0.55),0 1px 0 oklch(0.10 0.02 170 / 0.6);
  translate: none; transition: transform 460ms var(--ressort-vif),box-shadow 140ms var(--ease-tole),background-color 140ms var(--ease-tole); }
.action::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg,transparent 30%,oklch(1 0 0 / 0.55) 48%,transparent 66%); transform: translateX(-120%); }
.action:where(:not(:disabled):not([aria-disabled="true"])):hover { color: var(--terminal-ink); background-image: linear-gradient(178deg,oklch(0.995 0.006 96),var(--craie)); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .action:where(:not(:disabled):not([aria-disabled="true"])):hover { transform: translateY(-1px); }
  .action:where(:not(:disabled):not([aria-disabled="true"])):hover::after { transform: translateX(120%); transition: transform 900ms var(--ease-tole); }
}
.action:where(:not(:disabled):not([aria-disabled="true"])):active { transform: translateY(1px); transition-duration: 90ms;
  box-shadow: inset 0 2px 3px oklch(0.48 0.012 92 / 0.5),inset 0 -1px 0 oklch(1 0 0 / 0.4); }
.action--ghost { color: var(--text-loud); background-color: var(--plaque); background-image: linear-gradient(178deg,var(--plaque-haute),var(--plaque));
  box-shadow: inset 0 0 0 1px var(--edge-firm),inset 0 1px 0 var(--arete-haute); }
.action--ghost::after,.action:disabled::after,.action[aria-disabled="true"]::after { display: none; }
.action--ghost:where(:not(:disabled):not([aria-disabled="true"])):hover { color: var(--text-loud); background-image: linear-gradient(178deg,var(--survol),var(--plaque-haute)); }
.action--ghost:where(:not(:disabled):not([aria-disabled="true"])):active { box-shadow: inset 0 0 0 1px var(--edge-firm),inset 0 2px 3px oklch(0 0 0 / 0.35); }
/* Le secondaire qui mene a l argent : un anneau menthe, jamais un fond menthe. */
.action--argent { box-shadow: inset 0 0 0 1px color-mix(in oklch,var(--menthe) 55%,transparent),inset 0 1px 0 var(--arete-haute); }
.action--argent svg { color: var(--menthe); width: 16px; height: 16px; flex: none; }
.action:disabled,.action[aria-disabled="true"] { cursor: not-allowed; transform: none; }
.mark { font-size: 11px; letter-spacing: 0.025em; }
.mark::before { box-shadow: none; }
.link-next { font: 500 13px var(--font-body); text-transform: none; }
.quiet,.field__hint { line-height: 1.55; }
/* craie-4 tombait a 4,49:1 sur les plaques plus teintees : une opacite choisie, pas un gris. */
.faint { color: var(--text-faint); }
.field label { font-size: 13px; }
.field input,.field select,.field textarea { font-size: 14px; }
.wallet-status { padding: 10px 12px; font-size: 12px; border-radius: var(--radius-control); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:where(a,button,input,select,textarea,summary):focus-visible { outline: 2px solid var(--terminal-accent); outline-offset: 3px; }
.skip-link { position: fixed; left: 100px; top: 10px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; padding: 0; background: var(--craie); color: var(--email-950); border-radius: 12px; z-index: 5; }
.skip-link:focus { clip-path: none; width: auto; height: auto; padding: 12px 18px; }

/* Persistent application chrome. The rail owns navigation, the bar owns context. */
.topbar.app-bar { display: flex; justify-content: space-between; min-height: 64px; height: 64px; padding: 0 26px; gap: 20px; background: linear-gradient(110deg,var(--email-900),var(--surface-traverse)); backdrop-filter: none; border-bottom: 1px solid var(--frame-line); box-shadow: none; }
.app-bar__identity { display: flex; align-items: center; gap: 20px; min-width: 0; flex: 1; }
.topbar__brand { display: inline-flex; align-items: center; gap: 10px; font: 650 21px var(--font-body); color: var(--text-loud); letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.app-bar__title { border-left: 1px solid var(--edge-firm); padding-left: 20px; color: var(--text-quiet); font-size: 13px; }
.app-bar__launch { font-size: 12px; min-height: 34px; }
.topbar__nav.app-rail { position: fixed; inset: 0 auto 0 0; width: 88px; display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; flex-wrap: nowrap; gap: 0; padding: 0 8px; border-right: 1px solid var(--frame-line); background: linear-gradient(170deg,var(--email-850),var(--email-900)); }
.rail-brand { height: 64px; display: flex; align-items: center; justify-content: center; flex: none; color: var(--terminal-accent); text-decoration: none; }
.rail-brand__mark { font: 800 26px var(--font-display); letter-spacing: -0.045em; transform: skew(-7deg); }
.rail-links { display: flex; flex-direction: column; gap: 7px; padding-top: 16px; }
.topbar__nav .rail-link { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; padding: 11px 2px; min-height: 65px; border: 1px solid transparent; border-radius: var(--r-controle); box-shadow: none; color: var(--text-quiet); font-size: 11px; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-tap) var(--ease-settle),transform var(--dur-move) var(--ease-spring); }
.rail-icon { display: flex; }
.rail-icon svg { width: 22px; height: 22px; }
.topbar__nav .rail-link:hover { background: var(--email-800); color: var(--text-loud); transform: translateY(-1px); }
.topbar__nav .rail-link.topbar__link--active { color: var(--text-loud); background: var(--email-800); border-color: transparent; }
/* L element actif : un trait menthe a gauche, la marque, jamais une surface teintee. */
.topbar__nav .rail-link.topbar__link--active::before { content: ""; position: absolute; left: -8px; top: 16px; bottom: 16px; width: 2px; border-radius: 999px; background: var(--menthe); }
.topbar__nav .rail-link--launch { margin-top: 20px; }
.topbar__nav .rail-link--social { margin-top: auto; margin-bottom: 16px; min-height: 56px; }
/* Huit entrees dans le rail (29/09/2026, $PAID2CALL et Founders) : sur un
 * ecran bas il se resserre, et en dernier recours il defile plutot que de
 * cacher son pied (langue, couleurs, X) sous le bord de l ecran. */
@media (min-width: 961px) {
  .topbar__nav.app-rail { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .topbar__nav.app-rail::-webkit-scrollbar { display: none; }
}
@media (min-width: 961px) and (max-height: 880px) {
  .rail-links { gap: 3px; padding-top: 6px; }
  .topbar__nav .rail-link { min-height: 52px; padding: 6px 2px; gap: 4px; }
  .topbar__nav .rail-link--launch { margin-top: 8px; }
  .topbar__nav .rail-link--social { min-height: 46px; margin-bottom: 8px; }
}
@media (min-width: 961px) and (max-height: 700px) {
  .topbar__nav .rail-link { min-height: 44px; padding: 3px 2px; gap: 3px; }
  .topbar__nav .rail-link .rail-label { font-size: 10px; }
}
.site-footer.app-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; width: 100%; max-width: none; padding: 10px 26px; margin: 0; border-top: 1px solid var(--edge-soft); box-shadow: none; background: var(--email-900); }
.footer-brand { font-size: 12px; color: var(--text-quiet); text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--text-quiet); text-decoration: none; font-size: 12px; padding-block: 6px; }
.footer-links a:hover { color: var(--text-loud); }

/* Discover: three bounded feeds, each with its own source and next action. */
.discovery-page { height: 100dvh; min-height: 660px; overflow: hidden; }
.discovery-page > main { min-height: 0; }
.discovery { max-width: none; display: flex; flex-direction: column; padding: 0 18px 18px; }
.discovery-toolbar { display: flex; align-items: center; gap: 26px; min-height: 91px; padding: 18px 2px; }
.discovery-heading { flex: 1; }
.discovery-heading h1 { font-size: 25px; display: inline; margin-right: 16px; }
.discovery-heading > span { font-size: 13px; color: var(--text-quiet); }
.discovery-search { display: flex; align-items: center; gap: 10px; min-width: 310px; padding: 0 13px; height: 40px; background: var(--email-850); border: 1px solid var(--edge-firm); border-radius: 12px; }
.discovery-search svg { width: 18px; height: 18px; flex: none; color: var(--text-quiet); }
.discovery-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text-loud); font: 13px var(--font-body); }
.discovery-search:focus-within { outline: 2px solid var(--terminal-accent); outline-offset: 2px; }
.discovery-search input::placeholder { color: var(--text-faint); }
.discovery-help { color: var(--text-plain); text-decoration: none; font-size: 13px; white-space: nowrap; }
.discovery-help span { color: var(--text-quiet); margin-left: 10px; }
/* Trois colonnes depuis le retrait des missions (29/09/2026) : les tokens, ce
 * qui paie, les paiements reels, puis pump.fun, en retrait et plus etroit. */
.discovery-workspace { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(300px,0.8fr); gap: 14px; min-height: 0; flex: 1; }
.discovery-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--frame-line); border-radius: 14px; overflow: hidden; background: linear-gradient(160deg,var(--email-850),var(--email-900) 70%); }
.discovery-pane__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 19px 17px 17px; border-bottom: 1px solid var(--edge-soft); }
.discovery-pane__head h2 { font-size: 16px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.discovery-pane__head p { color: var(--text-quiet); font-size: 12px; margin: 6px 0 0; line-height: 1.35; }
.discovery-pane__head > a { display: grid; place-items: center; min-width: 32px; height: 32px; border: 1px solid var(--edge-soft); border-radius: 12px; text-decoration: none; color: var(--text-quiet); }
.discovery-pane__head > a:hover { color: var(--text-loud); background: var(--email-800); }
.discovery-count { font: 500 11px var(--font-body); min-width: 21px; min-height: 21px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--email-800); color: var(--text-quiet); padding: 1px 5px; }
.discovery-count:empty { display: none; }
.discovery-column-label { display: flex; justify-content: space-between; gap: 12px; padding: 10px 17px; background: color-mix(in oklch,var(--email-950) 42%,transparent); border-bottom: 1px solid var(--edge-soft); color: var(--text-faint); font-size: 11px; }
.discovery-list { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; scrollbar-width: thin; scrollbar-color: var(--email-700) transparent; }
.discovery-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: start; gap: 11px; min-height: 111px; padding: 17px 16px; border-bottom: 1px solid var(--edge-soft); color: var(--text-loud); text-decoration: none; transition: background-color var(--dur-tap) var(--ease-settle); }
.discovery-row:hover { background: var(--surface-hover); }
.discovery-avatar { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; border: 1px solid var(--edge-firm); background: var(--email-800); display: grid; place-items: center; font: 600 16px var(--font-body); color: var(--jeton); }
.discovery-identity { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.discovery-identity > b { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discovery-meta { color: var(--text-quiet); font-size: 12px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discovery-bottom { color: var(--text-quiet); font-size: 11px; line-height: 1.5; margin-top: 7px; }
.discovery-value { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; max-width: 120px; }
.discovery-value b { color: var(--terminal-accent); font: 500 12px var(--font-figure); line-height: 1.7; white-space: nowrap; }
.discovery-value > span { color: var(--text-faint); font-size: 11px; line-height: 1.4; }
.discovery-row--activity .discovery-value b { color: var(--text-loud); }
.discovery-caller { display: flex; align-items: center; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
.discovery-caller img { width: 18px; height: 18px; object-fit: cover; border-radius: 50%; }
.discovery-pane__foot { display: flex; justify-content: space-between; padding: 13px 17px; border-top: 1px solid var(--edge-soft); color: var(--text-plain); font-size: 12px; text-decoration: none; background: var(--email-850); }
.discovery-pane__foot:hover { color: var(--text-loud); background: var(--surface-hover); }
.discovery-provenance { padding: 10px 17px; margin: 0; max-width: none; border-top: 1px solid var(--edge-soft); color: var(--text-faint); font-size: 11px; line-height: 1.45; }
.discovery-loading { padding: 24px 17px; color: var(--text-quiet); font-size: 13px; }
.discovery-empty { padding: 32px 20px; color: var(--text-quiet); font-size: 13px; }
.discovery-empty h3 { margin-bottom: 9px; color: var(--text-loud); }
.discovery-empty p { margin-bottom: 20px; }
.discovery-mobile-tabs { display: none; }

/* The mission and token boards share restrained, aligned column labels. */
.board-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.board-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--edge-firm); }
.board-tab { border: 0; background: transparent; color: var(--text-quiet); min-height: 44px; padding: 10px 16px; font: 500 14px var(--font-body); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color var(--dur-tap) var(--ease-settle),box-shadow var(--dur-tap) var(--ease-settle); }
.board-tab[aria-pressed="true"] { color: var(--text-loud); box-shadow: inset 0 -2px 0 var(--craie); }
.board-tab span { margin-left: 8px; font-size: 12px; color: var(--text-quiet); }
.board-controls { display: flex; gap: 10px; }
.board-search input, .board-sort select { width: 100%; min-height: 42px; border: 1px solid var(--edge-firm); border-radius: 12px; background: var(--email-900); padding: 10px 13px; color: var(--text-loud); font: 13px var(--font-body); }
.board-search input { min-width: 215px; }
.board-search input::placeholder { color: var(--text-faint); opacity: 1; }
.board-result { margin-bottom: 16px; min-height: 18px; }
.board-footnote { margin-top: 22px; color: var(--text-quiet); font-size: 12px; line-height: 1.7; }
.board-footnote a { color: var(--text-quiet); text-underline-offset: 4px; }
.pool-head { color: var(--text-quiet); font: 500 11px var(--font-body); letter-spacing: 0; text-transform: none; padding-block: 14px; background: var(--email-900); }
.pool,.pool-head { grid-template-columns: 44px minmax(120px,1.1fr) minmax(115px,0.8fr) minmax(150px,1fr) minmax(140px,1fr); gap: 22px; }
.pool { padding-block: 14px; }
.pool-head { display: grid; align-items: center; border-bottom: 1px solid var(--edge-firm); }
.pool-head__token { grid-column: 1 / 3; }
.pool__mobile-label { display: none; }
.pool__image { width: 44px; height: 44px; border-radius: 12px; }
.pool__nom > a { font-size: 15px; text-decoration: none; color: var(--text-loud); }
.pool__nom .quiet { font-size: 12px; }
.pool-state { font-size: 12px; color: var(--text-quiet); }
.pool--eteinte { opacity: 1; }
.reserve { padding-block: 18px; }
.reserve__chiffre .figure { font-size: 20px; }
.board-empty { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 28px 16px; border-block: 1px solid var(--edge-soft); }
.board-empty h3 { font-size: 17px; }
.board-empty p { font-size: 13px; color: var(--text-quiet); margin: 8px 0 0; }

/* Short guides are documents, not another set of promotional cards. */
.guide-page { max-width: 920px; }
.guide-heading { margin-bottom: 28px; }
.guide-heading > p { margin-top: 12px; font-size: 15px; color: var(--text-quiet); }
.guide-links { display: grid; gap: 0; margin-block: 24px; border-top: 1px solid var(--edge-soft); }
.guide-links > a { display: block; padding: 20px 0; border-bottom: 1px solid var(--edge-soft); color: var(--text-loud); text-decoration: none; }
.guide-links h2 { font-size: 19px; }
.guide-links p { font-size: 14px; color: var(--text-quiet); margin: 8px 0 0; }
.guide-links a:hover h2 { color: var(--text-loud); text-decoration: underline; text-decoration-color: var(--menthe); text-underline-offset: 5px; }
.guide-links--compact { display: flex; flex-wrap: wrap; gap: 12px 24px; border: 0; }
.guide-links--compact > a { padding: 8px 0; border: 0; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.guide-section { margin-block: 24px; }
.guide-steps { list-style: none; padding: 0; margin: 22px 0; counter-reset: steps; }
.guide-steps > li { counter-increment: steps; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 6px 12px; padding: 17px 0; border-bottom: 1px solid var(--edge-soft); }
.guide-steps > li::before { content: counter(steps,decimal-leading-zero); font: 11px var(--font-figure); color: var(--text-faint); padding-top: 4px; }
.guide-steps > li > * { grid-column: 2; }
.guide-steps > li::before { grid-column: 1; grid-row: 1; }
.guide-steps h2,.guide-steps h3 { font-size: 16px; }
.guide-steps p { font-size: 14px; color: var(--text-quiet); margin: 6px 0 0; }
.guide-note { font-size: 13px; color: var(--text-quiet); margin-block: 20px; padding-left: 14px; border-left: 2px solid var(--edge-firm); border-radius: 0; }
.guide-related { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding-top: 18px; font-size: 13px; border-top: 1px solid var(--edge-soft); }
.guide-related a { color: var(--text-quiet); }
.guide-facts { margin: 24px 0; }
.guide-facts > div { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; padding-block: 14px; border-bottom: 1px solid var(--edge-soft); font-size: 14px; }
.guide-facts dt { color: var(--text-quiet); }
.guide-facts dd { margin: 0; color: var(--text-loud); }
.guide-details { border-bottom: 1px solid var(--edge-soft); padding-block: 18px; }
.guide-details > summary { cursor: pointer; font-weight: 550; color: var(--text-loud); }
.guide-details[open] > summary { margin-bottom: 18px; }
.guide-details .faits { font-size: 14px; }
.honesty-panel { background: none; box-shadow: none; border: 0; border-left: 2px solid var(--edge-firm); border-radius: 0; padding: 0 0 0 14px; }

/* Compare boards use larger labels and tighter rows than the legacy ledger. */
.liste-pools { border: 1px solid var(--frame-line); border-radius: 14px; overflow: hidden; background: var(--email-900); }
.pool,.pool-head { padding-inline: 18px; }
.pool { min-height: 100px; }
.pool__nom > a:not([class]) { color: var(--text-loud); }
/* Un seul style de lien : craie soulignee, le survol passe au menthe. */
main a:not([class]) { color: var(--text-plain); text-decoration-color: var(--edge-firm); }
main a:not([class]):hover { color: var(--menthe); text-decoration-color: currentColor; }
.discovery-pane__head > a:not([class]) { color: var(--text-quiet); }
.pool:hover { background: var(--surface-hover); }
.guide-page { max-width: 930px; }
.guide-heading { padding: 0 0 18px; margin-bottom: 18px; background: none; border: 0; border-bottom: 1px solid var(--edge-soft); border-radius: 0; }
.guide-heading h1 { font-size: 26px; }
.guide-heading > p { margin-top: 8px; font-size: 14px; }
.guide-links { margin-block: 18px; }
.guide-links > a { padding: 17px 8px; }
.guide-steps { margin-block: 18px; }
.guide-steps > li { padding: 14px 8px; }
@media (max-width: 1240px) {
  .discovery-heading > span { display: block; margin-top: 5px; }
  .discovery-help { display: none; }
  .discovery-row { grid-template-columns: 36px minmax(0,1fr) auto; gap: 9px; padding: 16px 12px; }
  .discovery-avatar { width: 36px; height: 36px; }
  .discovery-value b { font-size: 11px; }
  .discovery-pane__head { padding-inline: 13px; }
  .discovery-column-label { padding-inline: 13px; }
  .pool,.pool-head { gap: 14px; }
}
@media (max-width: 960px) {
  body { padding-left: 0; }
  .topbar.app-bar { padding: 0 18px; gap: 12px; }
  .topbar__brand { font-size: 20px; }
  .app-bar__identity { flex: 1; }
  .app-bar__title { display: none; }
  .app-bar__launch { min-height: 38px; padding: 8px 12px; font-size: 12px; }
  .topbar__toggle { display: inline-flex; width: 40px; height: 40px; }
  .topbar__nav.app-rail { position: absolute; inset: 64px 0 auto; width: 100%; padding: 14px 18px 18px; border-right: 0; border-bottom: 1px solid var(--edge-firm); border-radius: 0 0 16px 16px; z-index: 2; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: transform var(--dur-move) var(--ease-spring),opacity var(--dur-tap) var(--ease-settle),visibility var(--dur-tap) var(--ease-settle); }
  .topbar__nav.app-rail[data-open="true"] { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .topbar__nav.app-rail::before { display: none; }
  .rail-brand { display: none; }
  .rail-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 0; gap: 10px; }
  .topbar__nav .rail-link { padding: 12px 4px; min-height: 72px; font-size: 12px; animation: none; }
  .topbar__nav .rail-link.topbar__link--active::before { left: 30%; right: 30%; top: auto; bottom: 7px; width: auto; height: 2px; border-radius: 999px; }
  .topbar__nav .rail-link--launch { margin: 0; }
  .topbar__nav .rail-link--social { flex-direction: row; gap: 10px; margin: 14px 0 0; min-height: 44px; border-color: var(--edge-soft); }
  .skip-link { left: 18px; }
  .discovery-page { min-height: 620px; }
  .discovery { padding: 0 16px 16px; }
  .discovery-toolbar { padding-block: 17px; min-height: 110px; flex-wrap: wrap; gap: 14px; }
  .discovery-heading { display: flex; align-items: baseline; gap: 0; }
  .discovery-heading h1 { font-size: 23px; }
  .discovery-heading > span { display: inline; font-size: 12px; margin: 0; }
  .discovery-search { width: 100%; min-width: 0; height: 40px; }
  .discovery-mobile-tabs { display: flex; gap: 0; margin: 0 0 12px; border-bottom: 1px solid var(--edge-firm); }
  .discovery-mobile-tabs > button { flex: 1; }
  .discovery-workspace { grid-template-columns: minmax(0,1fr); }
  .discovery-pane { display: none; }
  [data-home-view="tokens"] [data-discover-panel="tokens"],[data-home-view="payouts"] [data-discover-panel="payouts"],[data-home-view="activity"] [data-discover-panel="activity"] { display: flex; }
  .discovery-row { grid-template-columns: 44px minmax(0,1fr) auto; gap: 12px; padding: 16px; }
  .discovery-avatar { width: 44px; height: 44px; }
  .discovery-value b { font-size: 12px; }
  .discovery-page .footer-brand { display: none; }
  .discovery-page .site-footer.app-footer { padding: 7px 16px; }
  .discovery-page .footer-links { gap: 4px 14px; }
  .discovery-page .footer-links a { font-size: 11px; }
  .pool { grid-template-columns: 44px minmax(0,1fr) minmax(0,1fr) 44px; }
  .pool-head { display: none; }
  .pool__nom { grid-column: 2 / -1; }
  .pool__mobile-label { display: block; color: var(--text-quiet); font-size: 12px; margin-bottom: 6px; }
}
@media (max-width: 700px) {
  .wrap:not(.discovery) { padding: 20px 16px 26px; }
  .page-head { gap: 14px; margin-bottom: 18px; padding-bottom: 16px; }
  .page-head h1 { font-size: 25px; }
  .page-head .action { font-size: 12px; }
  .action { min-height: 44px; }
  .panel { padding: 16px; }
  .board-toolbar { align-items: stretch; gap: 12px; }
  .board-controls { width: 100%; flex-wrap: wrap; }
  .board-search { flex: 1 1 170px; }
  .board-search input { min-width: 0; }
  .board-sort { flex: 1 1 150px; }
  .pool { gap: 14px 18px; padding: 16px; }
  .board-empty { grid-template-columns: 1fr; gap: 18px; padding-inline: 12px; }
  .board-empty .action { justify-self: start; }
  .site-footer.app-footer { align-items: start; gap: 10px; padding-inline: 16px; }
  .footer-links { gap: 4px 16px; }
  .footer-brand { padding-block: 6px; }
  .guide-facts > div { grid-template-columns: 1fr 1fr; gap: 16px; font-size: 13px; }
  .guide-heading { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* La barre du haut est ecrite par ui.js apres le chargement : sans sa hauteur
 * reservee, tout le contenu descendait de 64 px a son arrivee (0,076 de CLS
 * mesure sur chaque page le 27/09/2026). */
#topbar:empty { display: block; height: 64px; }

/* ---- Passe couleur et mouvement (28/09/2026) ----------------------------------
 * Le mouvement suit la donnee : une chose bouge parce qu elle vient de changer.
 * Seuls transform et opacity s animent ; chaque mouvement a son repli immobile. */

/* Un chiffre qui change monte ou descend de 3 px et prend le sens du marche,
 * puis revient au blanc. Sans mouvement, la couleur seule tient 1,2 s. */
#mcap-now, .coin-stats dd, #pool-sol, .accroche__chiffres dd { transition: color 900ms var(--ease-tole); }
.chiffre--bouge { display: inline-block; }
.coin-stats dd.chiffre--bouge, .accroche__chiffres dd.chiffre--bouge, #mcap-now.chiffre--bouge { display: block; }
.chiffre--bouge[data-sens="hausse"] { color: var(--achat); }
.chiffre--bouge[data-sens="baisse"] { color: var(--vente); }
@media (prefers-reduced-motion: no-preference) {
  .chiffre--bouge[data-sens="hausse"] { animation: tick-monte 320ms var(--ressort-vif); }
  .chiffre--bouge[data-sens="baisse"] { animation: tick-descend 320ms var(--ressort-vif); }
}
@keyframes tick-monte { from { transform: translateY(3px); } }
@keyframes tick-descend { from { transform: translateY(-3px); } }

/* Le point « live » dit precisement que la page ecoute : au-dela de 60 s sans
 * lecture, il passe au sable et son onde s arrete. */
.direct { position: relative; display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 999px; background: var(--achat); vertical-align: middle; }
.direct::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--achat); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .direct::after { animation: onde 1800ms var(--ease-tole) infinite; } }
@keyframes onde { from { opacity: 0.7; transform: scale(1); } to { opacity: 0; transform: scale(2.6); } }
.direct[data-etat="perime"] { background: var(--sable); }
.direct[data-etat="perime"]::after, html.cache .direct::after { animation: none; }
.direct-ligne { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--text-quiet); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.direct-ligne:has(.direct[data-etat="perime"]) { color: var(--sable); }

/* Les replis : un triangle de craie qui tourne sur ressort, plus de marqueur natif. */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 10px 0 2px; vertical-align: 0.12em;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform 460ms var(--ressort-vif); }
details[open] > summary::before { transform: rotate(45deg); }

@media (max-width: 480px) {
  .app-bar__launch { min-height: 36px; padding: 7px 11px; }
  .app-bar__launch-suite { display: none; }
}

/* Une colonne vide ne reserve pas un tiers de l ecran : elle se compacte, les
 * colonnes qui ont des donnees s elargissent. Meme nombre de colonnes. */
@media (min-width: 961px) {
  .discovery-workspace:has(> [data-discover-panel="tokens"] .discovery-empty:not(.discovery-error)) { grid-template-columns: minmax(0,0.7fr) minmax(0,1fr) minmax(300px,0.8fr); }
  .discovery-workspace:has(> [data-discover-panel="activity"] .discovery-empty:not(.discovery-error)) { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(0,0.6fr); }
}

/* Une rangee qu on clique s enfonce d un pixel, comme une touche. */
.discovery-row, .pool { transition: background-color 140ms var(--ease-tole), transform 90ms var(--ease-tole); }
.discovery-row:active, .pool:active { transform: translateY(1px); }

/* Le menu du telephone : les tuiles arrivent l une apres l autre, sur ressort. */
@media (max-width: 960px) and (prefers-reduced-motion: no-preference) {
  .topbar__nav.app-rail .rail-link { opacity: 0; transform: translateY(-6px); transition: opacity 220ms var(--ease-tole), transform 500ms var(--ressort-doux), background-color 140ms var(--ease-tole); }
  .topbar__nav.app-rail[data-open="true"] .rail-link { opacity: 1; transform: none; }
  .topbar__nav.app-rail[data-open="true"] .rail-link:nth-child(2) { transition-delay: 25ms; }
  .topbar__nav.app-rail[data-open="true"] .rail-link:nth-child(3) { transition-delay: 50ms; }
  .topbar__nav.app-rail[data-open="true"] .rail-link:nth-child(4) { transition-delay: 75ms; }
  .topbar__nav.app-rail[data-open="true"] .rail-link:nth-child(5) { transition-delay: 100ms; }
  .topbar__nav.app-rail[data-open="true"] .rail-link:nth-child(6) { transition-delay: 125ms; }
  .topbar__nav.app-rail[data-open="true"] .rail-link:nth-child(n+7) { transition-delay: 150ms; }
}

/* ---- Plus de vie (28/09/2026, « couleur trop fade encore ») -------------------
 * Le fond est calcule : une aurore aux couleurs de la marque (menthe, lagon,
 * citron), un seul calque fixe sous les panneaux. */
/* (l aurore en calque fixe a ete retiree le 28/09/2026, voir le fond du body) */
/* Pas d animation en boucle sur ce calque : mesure le 28/09/2026, elle
 * retardait chaque changement de page de 1,2 s (2,6 s contre 1,3 s pour poser
 * la page). La couleur reste ; le mouvement vit dans les donnees. */

/* Un filet aux trois couleurs de la marque sous la barre du haut. */
.topbar.app-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in oklch, var(--menthe) 38%, transparent) 18%, color-mix(in oklch, var(--palier-1) 32%, transparent) 55%, color-mix(in oklch, var(--palier-3) 26%, transparent) 85%, transparent); }

/* Pas d arete lumineuse sur les panneaux : un filet net suffit. */
.discovery-pane, .accroche, .liste-pools, .classement__bloc { box-shadow: none; }

/* Au survol, la rangee d un token prend un fond net ; plus de trait colore sur le bord. */
.discovery-row--token, .liste-marche.pool { box-shadow: none; }
.discovery-row--token:hover, .liste-marche.pool:hover { background-color: var(--survol); background-image: none; }

/* Le verbe qui compte dans l accroche : payer, donc menthe. */
.accroche__mot { color: var(--menthe); font-style: normal; }

/* Les colonnes de l accueil arrivent l une apres l autre, sur ressort. */
@media (prefers-reduced-motion: no-preference) {
  /* backwards, pas both : une fois arrivee, la colonne ne garde pas de calque a part. */
  .discovery-pane, .accroche { animation: monter 560ms var(--ressort-doux) backwards; }
  .discovery-pane:nth-child(2) { animation-delay: 70ms; }
  .discovery-pane:nth-child(3) { animation-delay: 140ms; }
}
@keyframes monter { from { opacity: 0; transform: translateY(14px); } }

/* Chaque colonne de l accueil a la lumiere de son role : les recompenses en
 * menthe, les paiements en bleu, l activite de pump.fun en vert du marche. */
[data-discover-panel="tokens"] { --role: var(--menthe); }
[data-discover-panel="payouts"] { --role: var(--info); }
[data-discover-panel="activity"] { --role: var(--achat); }
.discovery-pane__head { background-image: radial-gradient(110% 170% at 0% 0%, color-mix(in oklch, var(--role, var(--menthe)) 18%, transparent), transparent 68%); }
.pane-icone { flex: none; color: var(--role, var(--menthe)); }
.discovery-pane__head h2 { color: var(--text-loud); }

/* Changer de page : le rail reste cloue, seul le contenu passe. Le rail a son
 * propre nom de transition, la barre du haut garde le sien (« traverse »),
 * donc le fondu de la page ne les traverse plus. */
@media (min-width: 961px) {
  .topbar__nav.app-rail { view-transition-name: rail; }
}

/* ---- Le theme sombre (proposition du 28/09/2026, refait apres « pas foufou ») ----
 * Un noir de terminal, froid et net : fond presque noir, panneaux a peine
 * releves, filets fins et visibles, ni voile ni grain ; les roles gardent leur
 * couleur et claquent sur le noir. Applique avant l affichage par prefs.js. */
.theme-bascule { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; margin-left: -8px; padding: 0; border: 0; border-radius: var(--r-controle);
  color: var(--text-plain); background-color: transparent; box-shadow: inset 0 0 0 1px var(--edge-firm); cursor: pointer;
  transition: color 140ms var(--ease-tole), background-color 140ms var(--ease-tole), transform 460ms var(--ressort-vif); }
.theme-bascule:hover { color: var(--text-loud); background-color: var(--survol); }
.theme-bascule:active { transform: translateY(1px); }
.theme-bascule svg { width: 18px; height: 18px; transition: transform 460ms var(--ressort-vif); }
.theme-bascule[aria-pressed="true"] svg { transform: rotate(180deg); }
html[data-theme="nuit"] {
  --email-950: oklch(0.105 0.006 205);
  --email-900: oklch(0.135 0.007 205);
  --email-850: oklch(0.158 0.008 205);
  --email-800: oklch(0.20 0.01 205);
  --email-700: oklch(0.28 0.012 205);
  --puits: oklch(0.118 0.006 205);
  --surface-traverse: oklch(0.145 0.007 205);
  --surface-hover: oklch(0.19 0.012 200);
  --frame-line: color-mix(in oklch, var(--craie) 11%, transparent);
  --edge-soft: color-mix(in oklch, var(--craie) 9%, transparent);
  /* Pas de --menthe ici : le terminal nuit reste volontairement froid et
   * neutre (hue 205 fixe, ci-dessus) quelle que soit la teinte choisie --
   * seul l accent doit rester reconnaissable, donc --menthe garde la formule
   * de :root (var(--teinte-l) var(--teinte-c) var(--teinte)). Une valeur
   * fixee ici l aurait rendu vert de force en mode nuit, teinte ou pas. */
}
html[data-theme="nuit"] body { background-color: var(--email-950); background-image: url("../assets/grain-fond.svg"), linear-gradient(180deg, oklch(0.125 0.008 205), var(--email-950) 40%); background-size: 220px 220px, auto; }
html[data-theme="nuit"] body::before { display: none; }
html[data-theme="nuit"] .topbar.app-bar { background: var(--email-950); border-bottom-color: var(--frame-line); }
html[data-theme="nuit"] .topbar__nav.app-rail { background: var(--email-950); }
/* Des panneaux a plat, separes par leur filet, pas par un degrade. */
html[data-theme="nuit"] :is(.discovery-pane, .accroche, .liste-pools, .classement__bloc, .panneau__entete, .coin-page .coin-cote > .panel, .coin-page .coin-graphe, .coin-page .token-view > .panel, .token-tabs) {
  background-color: var(--email-900); border-color: var(--frame-line); }
html[data-theme="nuit"] :is(.discovery-pane, .accroche, .liste-pools, .classement__bloc, .coin-page .coin-graphe, .coin-page .token-view > .panel, .token-tabs) { background-image: none; }

/* ---- La langue, en bas du rail -------------------------------------------------- */
.topbar__nav .rail-link--langue { margin-top: auto; width: 100%; background: none; font: inherit; font-size: 11px; cursor: pointer; }
.topbar__nav .rail-link--langue + .teinte-rail { margin-top: 10px; }
.teinte-rail + .rail-link--social { margin-top: 4px; }
@media (max-width: 960px) {
  .topbar__nav .rail-link--langue { flex-direction: row; gap: 10px; margin: 14px 0 0; min-height: 44px; border-color: var(--edge-soft); }
  .topbar__nav .rail-link--langue + .teinte-rail { margin-top: 12px; }
  .teinte-rail + .rail-link--social { margin-top: 8px; }
}

/* ---- Les cinq teintes, en ronds a cote de la langue (task 3, 29/09/2026).
 * Cinq boutons ronds, un seul aria-pressed a la fois. Chaque rond peint sa
 * PROPRE couleur (recette figee ici) independamment de la teinte active, pour
 * qu on voie les cinq choix a la fois -- garder ces cinq valeurs alignees sur
 * les cinq :root[data-teinte="..."] plus haut si l une d elles change. */
.teinte-rail { display: flex; gap: 8px; justify-content: center; padding: 2px 0; }
.teinte-swatch {
  width: 18px; height: 18px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--edge-firm); box-shadow: var(--relief);
  transition: transform 140ms var(--ease-tole), border-color 140ms var(--ease-tole), box-shadow 140ms var(--ease-tole);
}
.teinte-swatch:hover { transform: scale(1.14); }
.teinte-swatch:active { transform: scale(0.94); }
.teinte-swatch:focus-visible { outline: none; box-shadow: var(--relief), 0 0 0 3px color-mix(in oklch, var(--menthe) 30%, transparent); }
.teinte-swatch[aria-pressed="true"] { border-color: var(--craie); box-shadow: var(--relief), 0 0 0 2px var(--fond-0), 0 0 0 3.5px var(--craie); }
.teinte-swatch[data-teinte-choix="vert"] { background: oklch(0.86 0.165 162); }
.teinte-swatch[data-teinte-choix="bleu"] { background: oklch(0.84 0.10 226); }
.teinte-swatch[data-teinte-choix="rouge"] { background: oklch(0.84 0.095 345); }
.teinte-swatch[data-teinte-choix="ambre"] { background: oklch(0.72 0.16 66); }
.teinte-swatch[data-teinte-choix="ardoise"] { background: oklch(0.81 0.032 220); }
@media (max-width: 960px) {
  .teinte-rail { justify-content: flex-start; gap: 12px; padding: 2px 2px; }
  .teinte-swatch { width: 26px; height: 26px; }
}

/* ---- Le chinois : les memes polices pour le latin, les meilleures polices
 * systeme pour les ideogrammes, et pas d interlettrage serre sur les titres. */
html[lang="zh-Hans"] { --font-body: "Bricolage", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", system-ui; }
html[lang="zh-Hans"] :is(h1, h2, h3) { letter-spacing: 0; }

/* Ce qui ne s affiche qu en chinois (la note des conditions). */
.seulement-zh { display: none; }
html[data-langue="zh"] .seulement-zh { display: block; }
/* Le bouton de fichier parle comme les autres boutons : casse normale, meme police. */
input[type="file"]::file-selector-button { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; text-transform: none; border-radius: var(--r-controle); }

/* Le hub des guides : un seul filet sous le titre, et des liens qui en ont l air. */
.guide-heading + .guide-links { border-top: 0; margin-top: 0; }
.guide-links > a > span { display: inline-block; margin-top: 10px; color: var(--text-plain); font-size: 13px; font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--edge-firm); text-underline-offset: 4px; }
.guide-links > a:hover > span { color: var(--menthe); text-decoration-color: currentColor; }
/* Les etapes de creation tiennent sur une ligne, meme « Hold & disclosure ». */
.creation-page .step-chip { white-space: nowrap; padding-inline: 8px; font-size: 11.5px; }

/* ---- Vif et net (28/09/2026) : la couleur revient, jamais en calque ni en flou.
 * Un filet de marque sous le titre de chaque page, l icone active du rail en
 * menthe, une accroche teintee, les rangs du classement dans la couleur de leur palier. */
.page-head { border-bottom: 0; background: linear-gradient(90deg, color-mix(in oklch, var(--menthe) 55%, transparent), color-mix(in oklch, var(--palier-1) 30%, transparent) 45%, transparent 80%) bottom left / 100% 1px no-repeat; }
.topbar__nav .rail-link.topbar__link--active .rail-icon { color: var(--menthe); }
.discovery-pane, .coin-page .coin-cote > .panel { transition: border-color 160ms var(--ease-tole); }
.discovery-pane:hover { border-color: color-mix(in oklch, var(--role, var(--menthe)) 30%, var(--frame-line)); }

/* La colonne des paiements (29/09/2026) : les derniers paiements reels en haut,
 * qui defilent ; sous eux, les trois premiers callers et les trois etapes, qui
 * restent visibles. Une rangee de paiement est plus basse qu une rangee de
 * token : elle dit qui, quoi, combien, sans marche. */
.discovery-list--payouts { flex: 0 1 auto; min-height: 64px; }
/* Peu de tokens : une invitation a la place du vide, et plus de doublon en pied. */
.discovery-invite { padding: 26px 17px 28px; border-top: 1px solid var(--edge-soft); background: radial-gradient(90% 120% at 0% 0%, color-mix(in oklch, var(--role, var(--menthe)) 9%, transparent), transparent 70%); }
.discovery-invite p { max-width: 42ch; margin: 0 0 14px; color: var(--text-quiet); font-size: 13px; line-height: 1.5; }
.discovery-invite p.discovery-invite__titre { margin-bottom: 6px; color: var(--text-loud); font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
[data-discover-panel="tokens"]:has(.discovery-invite) .discovery-pane__foot { display: none; }
.discovery-row--payout { grid-template-columns: 36px minmax(0,1fr) auto; min-height: 0; padding-block: 13px; align-items: center; }
.discovery-row--payout .discovery-avatar { width: 36px; height: 36px; border-radius: 10px; }
.discovery-row--payout .discovery-identity > b { font-size: 14px; }
.discovery-row--payout .discovery-value b { color: var(--terminal-accent); font-size: 13px; }
.payout-top, .payout-steps { flex: none; padding: 13px 17px 14px; border-top: 1px solid var(--edge-soft); }
.payout-top h3, .payout-steps h3 { margin: 0 0 9px; font: 600 12px var(--font-body); color: var(--text-quiet); }
.payout-top ol, .payout-steps ol { list-style: none; margin: 0; padding: 0; display: grid; }
.payout-top ol { gap: 7px; }
.payout-top li { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 8px; align-items: baseline; font-size: 13px; }
.payout-top__rang { color: var(--text-faint); font: 500 11px var(--font-figure); }
.payout-top__nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-loud); }
.payout-top__somme { color: var(--terminal-accent); font: 500 12px var(--font-figure); white-space: nowrap; }
.payout-top li.payout-top__vide { display: block; color: var(--text-quiet); font-size: 12px; }
.payout-steps ol { gap: 10px; counter-reset: etape; }
.payout-steps li { display: grid; grid-template-columns: 22px minmax(0,1fr); column-gap: 11px; counter-increment: etape; }
.payout-steps li::before { content: counter(etape); grid-row: 1 / span 2; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid color-mix(in oklch, var(--role) 45%, var(--edge-firm)); border-radius: 50%; color: var(--role); font: 500 11px var(--font-figure); }
.payout-steps li b { font-size: 13px; font-weight: 600; color: var(--text-loud); line-height: 1.35; }
.payout-steps li span { font-size: 12px; color: var(--text-quiet); line-height: 1.45; }
.payout-steps__guide { display: inline-flex; gap: 6px; margin-top: 11px; font-size: 12px; color: var(--text-plain); text-decoration: none; }
.payout-steps__guide:hover { color: var(--text-loud); }
@media (max-height: 760px) and (min-width: 961px) {
  /* Ecran bas : les etapes gardent leur titre, leur detail se replie. */
  .payout-steps li span { display: none; }
  .payout-steps li::before { grid-row: 1; }
}
