/* L'atelier de repoussé (src/repousseUI.js) : la plaque de cuivre au milieu de l'écran. */
#repousse { position: fixed; inset: 0; z-index: 36; display: flex; align-items: center; justify-content: center; background: rgba(10, 7, 4, 0.72); padding: 12px; overflow: auto; }
#repousse[hidden] { display: none; }
#repousse .rp-carte { width: min(760px, 100%); max-height: 100%; overflow: auto; background: rgba(23, 18, 13, 0.97); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 16px; color: var(--ink); }
#repousse header { display: flex; align-items: center; justify-content: space-between; }
#repousse h2 { margin: 0; font: 600 1.5rem var(--serif); }
#repousse .rp-intro { margin: 4px 0 10px; font-size: 0.82rem; color: var(--ink-soft); }
#repousse button, #repousse select { font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 12px; font-size: 0.82rem; }
#repousse select { background: rgba(255, 255, 255, 0.06); padding: 5px 10px; }
#repousse button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #1a120a; }
#repousse .rp-fermer { width: 34px; height: 34px; padding: 0; }
#repousse .rp-plaque { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 6px #3a2a1a, 0 8px 24px rgba(0, 0, 0, 0.5); background: #5a2e16; max-height: 54vh; margin: 0 auto; }
#repousse .rp-toile, #repousse .rp-guide { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; }
#repousse .rp-guide { pointer-events: none; }
#repousse .verso { transform: scaleX(-1); }
#repousse .rp-face { position: absolute; left: 10px; top: 8px; font-size: 0.74rem; color: #fff; background: rgba(0, 0, 0, 0.5); border-radius: 999px; padding: 2px 10px; pointer-events: none; }
#repousse .rp-bas { display: flex; gap: 14px; align-items: center; margin: 8px 0 2px; flex-wrap: wrap; }
#repousse .rp-jauge { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--ink-soft); }
#repousse .rp-jauge i { display: block; width: 120px; height: 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
#repousse .rp-jauge b { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #c47a3f, #e0603a); transition: width 0.15s; }
#repousse .rp-jauge.ecrouie span { color: #f08a5d; }
#repousse .rp-aide { margin: 0; font-size: 0.78rem; color: var(--accent); flex: 1 1 240px; }
#repousse .rp-commandes { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }
#repousse .rp-groupe { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#repousse .rp-motifs label { font-size: 0.8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; }
#repousse .rp-recuire { border-color: #e0603a; }
@media (max-width: 760px) {
  #repousse { padding: 6px; align-items: flex-start; }
  #repousse .rp-carte { padding: 10px 12px; }
  #repousse h2 { font-size: 1.15rem; }
  #repousse .rp-intro { display: none; }
  #repousse .rp-plaque { max-height: 38vh; }
}
#repousse .rp-metaux i { display: inline-block; width: 13px; height: 13px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
#repousse .rp-plaque { background: #3a3a3a; }
