/* ── Nuancier — l'outil « Remplir en ligne » (/remplir/), mise en page de l'écran « remplir » de la maquette ───────────
   Dessin de référence : docs/refonte/maquettes/nuancier/v3.js (méthode remplir) et v3.css (bloc « remplir »).
   Cette feuille s'ajoute APRÈS remplir.css et interface.css de l'outil (src/remplir/). Elle ne retire rien : elle
   remplace la salle sombre par la maison du Nuancier — barre dans l'encre du domaine, barre de contrôle aux neuf encres,
   fond pâle du domaine, feuille blanche au trait, guide posé sur le papier, Jost, angles droits (2 px).
   Elle se suffit : jetons et police recopiés de refonte/src/rx-nuancier.css (l'outil ne charge pas les feuilles du site).
   Ce qu'elle ne touche pas :
     - le document (remplir.css, .rp-page) : police SDN Sans, mesures, coupes de lignes, PDF — rien n'y change, hormis
       le liseré du champ où l'on écrit, qui passe du rouge au bleu des champs (ombre, sans effet sur la mise en page) ;
     - la largeur utile de la scène : son retrait horizontal reste de 8 px (coquille.js en déduit l'échelle de la feuille) ;
     - le seuil de 860 px (coquille.js et mouvement.js le lisent) ; la grille du classeur (.rx-*) ;
     - aucun champ, bouton, prix ni mention n'est masqué ; aucun texte n'est ajouté.
   Trois zones, trois jeux de jetons : le papier (.rb), l'encre (.rb-barre), le message (.rb-toast). */

@font-face {
  font-family: "Jost"; font-style: normal; font-weight: 100 900; font-display: swap;
  /* adresse sans guillemets, exprès : la construction du site réécrit les adresses entre guillemets (piège relevé le 20.11) */
  src: url(/assets/rx/928f4210aa48.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* repli le temps que Jost arrive : une police du système ramenée à sa largeur (mêmes rapports que sur le site) */
@font-face { font-family: "Jost repli"; font-weight: 100 449; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Roboto"); size-adjust: 95.7%; }
@font-face { font-family: "Jost repli"; font-weight: 450 549; src: local("Arial"), local("Helvetica"), local("Liberation Sans"), local("Roboto"); size-adjust: 99.6%; }
@font-face { font-family: "Jost repli"; font-weight: 550 900; src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold"), local("Roboto Bold"), local("Roboto-Bold"); size-adjust: 95.1%; }

/* avant que l'outil soit monté (et derrière les passages de page) : le papier, plus le noir */
:root:has(> body > #outil), :root:has(> body > #outil) > body { background: #f1f0ed; }

/* ── le papier : jetons de la maison ── */
.rb.rb {
  --nu-papier: #fafaf8; --nu-papier-2: #f1f0ed; --nu-texte: #13161b; --nu-texte-2: #575b62; --nu-trait: #d5d7db; --nu-bord: #868b93; --nu-bleu: #1f4fa3;
  --nu-filet: rgba(19, 22, 27, 0.2);
  --nu-police: "Jost", "Jost repli", "Century Gothic", "Avenir Next", Futura, sans-serif;
  /* hors domaine : l'encre d'écriture */
  --nu-encre: #1e2228; --nu-ligne: #31363d; --nu-pale: #f1f0ed; --nu-vif: #8d949e;
  --nu-g: clamp(16px, 2.8vw, 40px);
  /* boutons de la zone : plein (fond, texte, survol) et au trait (texte, survol) */
  --nu-fort: var(--nu-encre); --nu-fort-t: #ffffff; --nu-fort-s: var(--nu-ligne); --nu-bt: var(--nu-encre); --nu-bt-s: #ffffff;
  /* jetons de l'outil, ramenés au papier */
  --page: var(--nu-pale); --tile: var(--nu-pale); --tile2: #ffffff; --label: var(--nu-texte); --label2: var(--nu-texte-2); --label3: var(--nu-texte-2);
  --fill: rgba(19, 22, 27, 0.06); --fill2: rgba(19, 22, 27, 0.1); --hair: var(--nu-filet); --hair2: var(--nu-bord); --focus: var(--nu-bleu);
  --green: var(--nu-encre); --amber: var(--nu-texte); --law: var(--nu-bleu); --encre: var(--nu-encre);
  --fs-1: 14px; --fs-2: 15px; --fs-3: 16px; --fs-4: 17px; --fs-5: 19px; --fs-6: 26px; --r-1: 2px; --r-2: 2px; --r-3: 2px; --r-4: 2px;
  background: var(--nu-pale); color: var(--nu-texte); color-scheme: light;
  font-family: var(--nu-police); font-size: var(--fs-4); line-height: 1.5; letter-spacing: 0; font-variant-numeric: tabular-nums lining-nums;
}
/* l'encre du domaine : première lettre du code du document (data-c, posé par coquille.js) */
.rb.rb[data-c="L"] { --nu-encre: #255a33; --nu-ligne: #397247; --nu-pale: #e8f4ea; --nu-vif: #4a9a5e; }
.rb.rb[data-c="T"] { --nu-encre: #6a440b; --nu-ligne: #845922; --nu-pale: #f8eee4; --nu-vif: #b47825; }
.rb.rb[data-c="E"] { --nu-encre: #0a5475; --nu-ligne: #236b8f; --nu-pale: #e5f2fb; --nu-vif: #2591c4; }
.rb.rb[data-c="B"] { --nu-encre: #3d497b; --nu-ligne: #515f97; --nu-pale: #ecf0fd; --nu-vif: #6d80ce; }
.rb.rb[data-c="P"] { --nu-encre: #005b5b; --nu-ligne: #007373; --nu-pale: #e3f4f4; --nu-vif: #009c9c; }
.rb.rb[data-c="F"] { --nu-encre: #6f3854; --nu-ligne: #894d6a; --nu-pale: #faebf2; --nu-vif: #bb6690; }
.rb.rb[data-c="S"] { --nu-encre: #743a2f; --nu-ligne: #8f4f42; --nu-pale: #fcece9; --nu-vif: #c46857; }
.rb.rb[data-c="D"] { --nu-encre: #50510d; --nu-ligne: #666723; --nu-pale: #f0f1e4; --nu-vif: #8b8c27; }
.rb.rb[data-c="A"] { --nu-encre: #5b3f70; --nu-ligne: #73548a; --nu-pale: #f4edf9; --nu-vif: #9c70bc; }
/* guide élargi quand la scène garde au moins 880 px : la feuille n'est jamais plus réduite qu'aujourd'hui */
@media (min-width: 861px) { .rb.rb:not(.rb-integre) { grid-template-columns: minmax(0, 1fr) clamp(360px, calc(100vw - 880px), 600px); } }
.rb.rb.rb-integre { border-radius: 0; }

/* ── l'encre : la barre ── */
.rb .rb-barre {
  --label: #ffffff; --label2: rgba(255, 255, 255, 0.86); --label3: rgba(255, 255, 255, 0.86); --fill: rgba(255, 255, 255, 0.14); --fill2: rgba(255, 255, 255, 0.22);
  --hair: rgba(255, 255, 255, 0.3); --hair2: rgba(255, 255, 255, 0.5); --focus: #ffffff; --green: #ffffff; --amber: #ffffff;
  --nu-fort: #ffffff; --nu-fort-t: var(--nu-encre); --nu-fort-s: var(--nu-pale); --nu-bt: #ffffff; --nu-bt-s: rgba(255, 255, 255, 0.12);
  flex-wrap: wrap; gap: 10px 24px; min-height: 76px; padding: 12px var(--nu-g) 12px;
  background: var(--nu-encre); color: #ffffff; -webkit-backdrop-filter: none; backdrop-filter: none;
  /* barre de contrôle : les neuf encres côte à côte, en aplats nets, dans l'ordre du catalogue */
  border-bottom: 8px solid; border-image: linear-gradient(90deg, #255a33 0 11.111%, #6a440b 0 22.222%, #0a5475 0 33.333%, #3d497b 0 44.444%, #005b5b 0 55.556%, #6f3854 0 66.667%, #743a2f 0 77.778%, #50510d 0 88.889%, #5b3f70 0) 1;
}
/* la marque : l'emblème sur un disque blanc (dessiné, pas un angle arrondi), à toutes les largeurs */
.rb a.rb-marque { display: block; flex: none; width: 44px; height: 44px; padding: 2px; border-radius: 0; background: radial-gradient(circle closest-side, #ffffff 0 20px, rgba(255, 255, 255, 0) 20.5px); }
.rb a.rb-marque .rb-embleme { display: block; }
.rb .rb-logo { display: none; }
.rb .rb-titre { flex: 1 1 220px; }
@media (min-width: 861px) { .rb .rb-actions { margin-left: auto; } }
.rb .rb-fonction { font-size: 14px; font-weight: 400; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.rb .rb-retour { min-height: 24px; display: inline-flex; align-items: center; text-underline-offset: 3px; }
.rb .rb-nom { font-size: 19px; font-weight: 500; }
.rb .rb-avance, .rb .rb-pages { font-size: 16px; color: #ffffff; }
.rb .rb-pages { color: var(--label2); }
.rb .rb-pages.rb-alerte { color: #ffffff; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rb .rb-jauge { width: 120px; height: 3px; border-radius: 0; background: var(--hair); }
.rb .rb-langues { gap: 0; border-radius: 2px; background: none; box-shadow: inset 0 0 0 1px var(--hair2); }
.rb .rb-langue { border-radius: 2px; font-size: 15px; font-weight: 500; }
.rb .rb-langue[aria-pressed="true"] { background: #ffffff; color: var(--nu-encre); }
.rb .rb-panier { border-radius: 2px; background: none; box-shadow: inset 0 0 0 1px currentColor; color: #ffffff; }
.rb .rb-panier-n { top: -6px; right: -6px; border-radius: 2px; background: #ffffff; color: var(--nu-encre); font-size: 12px; font-weight: 500; }
.rb .rb-documents { border-radius: 2px; color-scheme: dark; }

/* ── boutons : ceux du Nuancier (au trait ; plein pour l'action principale de la zone) ── */
.rb .rb-b { padding: 0 16px; border-radius: 2px; background: none; box-shadow: inset 0 0 0 1px currentColor; color: var(--nu-bt); font-size: 16px; font-weight: 500; }
.rb .rb-b:active, .rb .rb-puce:active { transform: translateY(1px); }
.rb .rb-b.rb-discret { color: var(--nu-bt); }
.rb .rb-b.rb-fort, .rb .rb-b.rb-coche,
.rb.rb-est-pret:not(.rb-essai) .rb-actions .rb-b:not(.rb-discret):not(.rb-coche),
.rb.rb-est-pret .rb-actions .rb-b.rb-coche { background: var(--nu-fort); box-shadow: none; color: var(--nu-fort-t); font-weight: 500; }
@media (hover: hover) {
  .rb .rb-b:hover { background: var(--nu-bt-s); color: var(--nu-bt); }
  .rb .rb-b.rb-fort:hover, .rb.rb-est-pret:not(.rb-essai) .rb-actions .rb-b:not(.rb-discret):not(.rb-coche):hover { background: var(--nu-fort-s); color: var(--nu-fort-t); }
  .rb .rb-panier:hover, .rb .rb-barre .rb-langue:not([aria-pressed="true"]):hover { background: var(--nu-bt-s); }
  .rb .rb-puce:hover { background: var(--nu-papier-2); }
  .rb .rb-retour:hover, .rb .rb-lien:hover, .rb .rb-fin-pack:hover { color: var(--label); }
}

/* ── scène et feuille : le papier teinté du domaine, la feuille blanche au trait ── */
.rb .rb-scene { scrollbar-width: thin; }
@media (min-width: 861px) { .rb .rb-scene { padding-top: 44px; padding-bottom: 64px; } }
.rb .rb-feuille { box-shadow: 0 0 0 1px var(--nu-filet); }
.rb .rb-feuille[data-filigrane]::after { font-family: var(--nu-police); font-weight: 500; }
.rb .rb-anneau { border-color: var(--nu-bleu); border-radius: 2px; box-shadow: 0 0 0 4px rgba(31, 79, 163, 0.16); }
.rb .rp-edition .rp-z:focus { box-shadow: 0 0 0 2px var(--nu-bleu); }
.rb .rb-note { font-size: 15px; }
.rb-vol { border-radius: 2px; background: #1f4fa3; color: #ffffff; font: 500 15px/1.3 "Jost", "Jost repli", "Century Gothic", "Avenir Next", Futura, sans-serif; }
.rb-copie { border-radius: 0; background: #ffffff; box-shadow: 0 0 0 1px rgba(19, 22, 27, 0.2); }
.rb .rb-onglet { border-radius: 2px; }
.rb .rb-onglet[aria-selected="true"] { font-weight: 500; box-shadow: inset 0 0 0 1px var(--nu-encre); background: #ffffff; color: var(--nu-encre); }

/* ── guide : posé sur le papier, sans panneau ── */
.rb .rb-guide { background: var(--nu-pale); -webkit-backdrop-filter: none; backdrop-filter: none; border-left: 0; gap: 16px; scrollbar-width: thin; }
@media (min-width: 861px) { .rb .rb-guide { padding: 44px var(--nu-g) 20px 24px; gap: 20px; } }
/* étapes : comme dans la barre de la maquette — l'étape en cours soulignée */
.rb .rb-etapes { flex-wrap: wrap; gap: 4px 22px; font-size: 16px; font-weight: 400; color: var(--nu-texte-2); }
.rb .rb-etapes li { flex: none; max-width: 100%; padding-top: 0; border-top: 0; overflow: visible; }
.rb .rb-etapes li.rb-ici { color: var(--nu-texte); font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.rb .rb-etapes li.rb-fait { color: var(--nu-encre); }
/* surtitres : capitales espacées */
.rb .rb-g-tete, .rb .rb-r-titre, .rb .rb-r-sur, .rb .rb-fin h3, .rb .rb-fin legend { font-size: 13px; font-weight: 500; line-height: 1.4; letter-spacing: 0.08em; }
.rb .rb-g-champ { gap: 14px; }
.rb .rb-g-lib { font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.rb .rb-g-ctx { border-left-color: var(--nu-bord); }
.rb .rb-g-saisie { min-height: 60px; padding: 15px 16px; border-color: var(--nu-bord); border-radius: 2px; background: #ffffff; color: var(--nu-bleu); font-size: 21px; line-height: 1.35; }
.rb .rb-g-saisie::placeholder { color: var(--nu-texte-2); opacity: 1; }
.rb .rb-g-erreur { padding-left: 10px; border-left: 2px solid var(--nu-texte); font-weight: 500; }
.rb .rb-puce { border-radius: 2px; background: #ffffff; box-shadow: inset 0 0 0 1px var(--nu-bord); color: var(--nu-texte); font-size: 16px; }
.rb .rb-puce-fort { box-shadow: inset 0 0 0 1px var(--nu-bleu); color: var(--nu-bleu); font-weight: 500; }
.rb .rb-puce-deja { background: none; }
.rb .rb-g-nav { gap: 12px; }
.rb .rb-g-nav .rb-b, .rb .rb-terminer { min-height: 52px; font-size: 17px; }
.rb .rb-g-pret { border-radius: 2px; background: #ffffff; box-shadow: inset 3px 0 0 var(--nu-encre); color: var(--nu-encre); font-weight: 500; }
.rb .rb-g-liste .rb-l-lib::before { border-radius: 0; }
.rb .rb-g-liste li.rb-ici button { background: #ffffff; font-weight: 500; }
.rb .rb-g-pied { font-size: 15px; }
.rb .rb-g-profil input, .rb .rb-fin-langues input { accent-color: var(--nu-encre); }
.rb .rb-prive { font-size: 16px; color: var(--nu-texte); }
.rb .rb-lien { font-size: 15px; }
/* repères juridiques : un filet, puis de vraies feuilles blanches */
.rb .rb-reperes { padding-top: 14px; }
.rb .rb-r-compte { border-radius: 2px; font-weight: 500; }
.rb .rb-r-carte, .rb .rb-r-cites, .rb .rb-r-article, .rb .rb-r-guide { border-radius: 0; font-size: 16px; }
.rb .rb-r-cites, .rb .rb-r-guide { box-shadow: inset 0 0 0 1px var(--nu-filet); }
.rb .rb-r-carte h3, .rb .rb-r-guide summary, .rb .rb-r-guide h4, .rb .rb-r-article strong { font-weight: 500; }
.rb .rb-r-cites h3 { font-size: 15px; font-weight: 500; }
.rb .rb-r-carte li::before { border-radius: 0; background: var(--nu-encre); }
.rb .rb-r-guide summary { font-size: 17px; }
.rb .rb-r-alinea { font-weight: 500; }
.rb .rb-cite { border-radius: 2px; background: rgba(31, 79, 163, 0.08); }
.rb .rb-r-cites .rb-cite { border-radius: 2px; }
.rb .rb-cite[aria-expanded="true"] { background: var(--nu-bleu); color: #ffffff; }
/* fiche de fin : même hiérarchie que le champ */
.rb .rb-fin h2 { font-size: clamp(22px, 2.4vw, 34px); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
.rb .rb-fin .rb-b { font-size: 17px; }
.rb .rb-fin-langues label { border-radius: 2px; box-shadow: inset 0 0 0 1px var(--nu-filet); font-size: 16px; }
.rb .rb-fin-total { font-size: 17px; font-weight: 500; }
.rb .rb-fin-panier { font-weight: 500; }
.rb .rb-fin-liste { font-size: 16px; }

/* ── messages : une étiquette d'encre d'écriture, au-dessus du papier comme de la feuille ── */
.rb .rb-toast {
  --label: #ffffff; --label2: rgba(255, 255, 255, 0.86); --fill: rgba(255, 255, 255, 0.14); --focus: #ffffff;
  border-radius: 2px; background: var(--nu-texte); color: #ffffff; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; font-size: 16px;
}
.rb .rb-toast-b { border-radius: 2px; background: none; box-shadow: inset 0 0 0 1px currentColor; color: #ffffff; font-size: 16px; font-weight: 500; }
.rb .rb-toast-b:first-of-type { background: #ffffff; box-shadow: none; color: var(--nu-texte); }
@media (hover: hover) { .rb .rb-toast-b:hover { background: rgba(255, 255, 255, 0.12); color: #ffffff; } .rb .rb-toast-b:first-of-type:hover { background: var(--nu-papier-2); color: var(--nu-texte); } }
.rb .rb-depot.rb-survol { background: #ffffff; }
.rb .rb-depot strong { font-weight: 400; }
.rb .rb-depot .rb-marque, .rb .rb-panne .rb-embleme { border-radius: 0; }

/* ── téléphone : même ordre que l'outil (barre, feuille, guide en bas), habillé comme la maquette ; retraits serrés
   pour que la feuille garde la hauteur qu'elle a aujourd'hui ── */
@media (max-width: 860px) {
  .rb .rb-barre { gap: 6px 12px; padding: 6px 16px; min-height: 0; }
  .rb .rb-titre { flex-basis: calc(100% - 56px); }
  .rb .rb-retour { min-height: 24px; }
  .rb .rb-nom { font-size: 18px; }
  .rb .rb-avance, .rb .rb-pages { font-size: 15px; line-height: 1.3; }
  .rb .rb-jauge { width: 72px; }
  .rb .rb-actions { gap: 6px 8px; }
  .rb .rb-b { padding: 0 12px; }
  .rb .rb-guide { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); gap: 8px; border-top: 1px solid var(--nu-filet); box-shadow: none; }
  .rb .rb-g-champ { gap: 10px; }
  .rb .rb-g-lib { font-size: 20px; }
  .rb .rb-g-saisie { min-height: 48px; padding: 10px 14px; font-size: 19px; }
  .rb .rb-g-nav { gap: 10px; }
  .rb .rb-g-nav .rb-b, .rb .rb-terminer { min-height: 44px; font-size: 16px; }
  .rb .rb-reperes { padding-top: 0; }
  .rb .rb-fin h2 { font-size: 22px; }
}
