/* ============================================================
   RIULZ — l'affiche du stand (1.62)
   Chargée par l'espace revendeur et par le panel : les deux
   regardent la même affiche, dessinée par js/stand.js.
   Ses couleurs sont les siennes, pour ne dépendre d'aucune des deux
   feuilles : noir, bleu RIULZ, et l'orange qui ne sert qu'à désigner.
   ============================================================ */
.stand-affiche {
  --st-noir: #05070d;
  --st-carte: #0b1020;
  --st-trait: rgba(120, 150, 210, 0.18);
  --st-texte: #eaf2ff;
  --st-doux: #8d9bb8;
  --st-bleu: #2e7cff;
  --st-orange: #ff7a29;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(46, 124, 255, 0.16), transparent 60%),
    linear-gradient(180deg, #0a1022 0%, var(--st-noir) 100%);
  border: 1px solid var(--st-trait);
  color: var(--st-texte);
  margin: 0 0 22px;
}
.stand-tete {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 20px; border-bottom: 1px solid var(--st-trait);
  background: rgba(0, 0, 0, 0.35);
}
.stand-riulz { height: 34px; width: auto; display: block; }
.stand-x { color: var(--st-bleu); font: 600 22px/1 Unbounded, Arial, sans-serif; }
.stand-enseigne {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 38px; padding: 4px 12px; border-radius: 10px; background: #fff;
}
.stand-enseigne img { max-height: 30px; max-width: 150px; display: block; }
.stand-enseigne span { color: var(--st-noir); font: 600 14px/1.1 Unbounded, Arial, sans-serif; }

.stand-corps { display: grid; gap: 22px; padding: 22px 20px 24px; }
.stand-corps-duo { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 820px) { .stand-corps-duo { grid-template-columns: 1fr; } }
/* L'affiche se règle sur sa propre largeur : dans la fiche du panel,
   plus étroite que l'écran, les clients passent sous l'étagère plutôt
   que de la réduire à une pièce par rangée. */
.stand-affiche { container-type: inline-size; }
@container (max-width: 760px) { .stand-affiche .stand-corps-duo { grid-template-columns: 1fr; } }
@container (max-width: 420px) {
  .stand-affiche .stand-etagere { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
  .stand-affiche .stand-corps { padding: 18px 14px 20px; }
  .stand-affiche .stand-piece { padding: 10px 8px 12px; }
  .stand-affiche .stand-nom { font-size: 0.84rem; }
}
.stand-eyebrow { margin: 0 0 12px; font-size: 0.74rem; color: var(--st-doux); letter-spacing: 0.02em; }

.stand-etagere {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.stand-planche {
  height: 10px; margin-top: 10px; border-radius: 3px;
  background: linear-gradient(180deg, #1c2847, #0d1428);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.stand-piece {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 10px 14px; border-radius: 14px; text-align: center;
  background: var(--st-carte); border: 1px solid var(--st-trait); color: var(--st-texte);
  font: inherit;
}
.stand-piece-active { cursor: pointer; transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s; }
.stand-piece-active:hover, .stand-piece-active:focus-visible {
  border-color: var(--st-orange); transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45); outline: none;
}
.stand-vue {
  display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; max-width: 170px; margin-bottom: 4px;
}
.stand-vue svg, .stand-vue img { width: 100%; height: 100%; object-fit: contain; display: block; }
.stand-vue-petite { width: 64px; max-width: 64px; flex: none; margin: 0; }
.stand-nom { font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.stand-detail { font-size: 0.72rem; color: var(--st-doux); line-height: 1.35; overflow-wrap: anywhere; }
.stand-prix { font-size: 0.78rem; color: var(--st-texte); }
.stand-action {
  margin-top: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  color: var(--st-orange); border: 1px solid rgba(255, 122, 41, 0.5);
}
.stand-piece-active:hover .stand-action { background: var(--st-orange); color: #140800; }
.stand-libre { border-style: dashed; background: transparent; color: var(--st-doux); }
.stand-libre-signe {
  display: flex; align-items: center; justify-content: center; width: 54%; aspect-ratio: 1 / 1;
  border-radius: 50%; border: 1px dashed var(--st-trait); font: 300 2rem/1 Outfit, Arial, sans-serif;
}

.stand-clients { display: grid; gap: 10px; }
.stand-client {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px; background: var(--st-carte); border: 1px solid var(--st-trait);
}
.stand-client-pret { border-color: rgba(255, 122, 41, 0.55); }
.stand-client-texte { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.stand-client-texte strong { font-size: 0.9rem; }
.stand-tel { color: var(--st-bleu); text-decoration: none; font-size: 0.85rem; }
.stand-etat { font-size: 0.72rem; color: var(--st-doux); }
.stand-client-pret .stand-etat { color: var(--st-orange); }
.stand-remise {
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--st-orange); background: transparent;
  color: var(--st-orange); font: 600 0.78rem/1 Outfit, Arial, sans-serif; cursor: pointer;
}
.stand-remise:hover { background: var(--st-orange); color: #140800; }

/* ---- ce qu'il doit, en grand ---- */
.stand-du {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 16px; margin: 0 0 18px;
  background: rgba(46, 124, 255, 0.08); border: 1px solid rgba(46, 124, 255, 0.35); color: #eaf2ff;
}
.stand-du-somme { font: 700 1.6rem/1 Unbounded, Arial, sans-serif; }
.stand-du-mot { font-size: 0.86rem; color: #8d9bb8; }
.stand-du.zero { background: transparent; border-color: rgba(120, 150, 210, 0.18); }
.stand-du.zero .stand-du-somme { color: #8d9bb8; }

/* ---- combien il en a vendu (1.64) ---- */
.stand-indic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: -6px 0 18px; }
/* 1.68 : sous l'affiche, les trois chiffres sur une seule rangée. */
.stand-chiffres { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0 0 22px; }
.stand-chiffres .stand-du { margin: 0; flex-direction: column; align-items: flex-start; justify-content: center; }
.stand-chiffres .stand-indic { display: contents; }
.stand-chiffres .stand-indic-case { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 720px) {
  .stand-chiffres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stand-chiffres .stand-du { grid-column: 1 / -1; }
}
/* L'affiche, mise en avant : un halo bleu, et le bouton du comptoir
   juste dessous, en grand. */
#standAffiche .stand-affiche { box-shadow: 0 0 0 1px rgba(46, 124, 255, 0.35), 0 24px 60px rgba(46, 124, 255, 0.16); }
.stand-boutons { margin: 16px 0 6px; }
.stand-boutons .btn { padding: 12px 22px; font-size: 0.95rem; }
.stand-indic-case {
  padding: 14px 18px; border-radius: 16px;
  background: #0b1020; border: 1px solid rgba(120, 150, 210, 0.18); color: #eaf2ff;
}
.stand-indic-chiffre { margin: 0 0 4px; font: 700 1.6rem/1 Unbounded, Arial, sans-serif; }
.stand-indic .stand-du-mot { margin: 0; }

/* ---- l'historique ---- */
.stand-journal { display: grid; gap: 0; }
.stand-ligne {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between;
  padding: 10px 2px; border-bottom: 1px solid rgba(120, 150, 210, 0.12); font-size: 0.88rem;
}
.stand-ligne:last-child { border-bottom: 0; }
.stand-ligne-quand { font-size: 0.74rem; color: #8d9bb8; margin-right: 8px; }
.stand-ligne-montant { font-size: 0.8rem; white-space: nowrap; }
.stand-ligne-neuf { box-shadow: inset 3px 0 0 #ff7a29; padding-left: 10px; }
.stand-ligne button {
  padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(120, 150, 210, 0.35);
  background: transparent; color: inherit; font: 500 0.76rem/1 Outfit, Arial, sans-serif; cursor: pointer;
}
.stand-ligne button:hover { border-color: #ff7a29; color: #ff7a29; }

/* ---- les fenêtres : « vendue ? » et l'atelier du comptoir ---- */
.stand-dialogue {
  border: 1px solid rgba(120, 150, 210, 0.25); border-radius: 18px; padding: 0; margin: auto;
  background: #0b1020; color: #eaf2ff; width: min(440px, calc(100vw - 32px));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.stand-dialogue::backdrop { background: rgba(2, 4, 10, 0.72); }
.stand-dialogue-corps { padding: 22px; display: grid; gap: 12px; }
.stand-dialogue h3 { margin: 0; font: 600 1.05rem/1.3 Unbounded, Arial, sans-serif; }
.stand-dialogue .stand-vue { max-width: 180px; margin: 0 auto; }
.stand-dialogue input {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(120, 150, 210, 0.3); background: #05070d; color: #eaf2ff; font: inherit;
}
.stand-dialogue-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.stand-studio {
  width: min(1180px, calc(100vw - 24px)); height: min(92vh, 980px);
}
.stand-studio .stand-dialogue-corps { padding: 0; height: 100%; grid-template-rows: auto 1fr; gap: 0; }
.stand-studio-barre {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid rgba(120, 150, 210, 0.2);
}
.stand-studio iframe { width: 100%; height: 100%; border: 0; display: block; background: #05070d; }

@media (prefers-reduced-motion: reduce) {
  .stand-piece-active { transition: none; }
  .stand-piece-active:hover { transform: none; }
}
