/* Simulateur "Voir chez moi" — fiche produit (Task 10).
   Scopé body.cl-refonte-preview en défense en profondeur, en plus de
   l'enqueue conditionnel côté PHP. */

body.cl-refonte-preview .cl-sim {
  margin: clamp(24px, 3vw, 40px) 0 0;
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 24px;
  background: var(--bg2, #E6E8D7);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.cl-refonte-preview .cl-sim__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.cl-refonte-preview .cl-sim__title {
  margin: 0;
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  color: var(--ink, #1B241D);
}

body.cl-refonte-preview .cl-sim-badge {
  font: 600 12px 'Hanken Grotesk', sans-serif;
  letter-spacing: .02em;
  color: var(--deep-ink, #F4F0E6);
  background: var(--accent, #C98B3B);
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

body.cl-refonte-preview .cl-sim-badge[hidden] {
  display: none;
}

body.cl-refonte-preview .cl-sim__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.cl-refonte-preview .cl-sim__modes,
body.cl-refonte-preview .cl-sim__orientation {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--bg, #F4F0E6);
}

body.cl-refonte-preview .cl-sim__mode-btn,
body.cl-refonte-preview .cl-sim__orient-btn {
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink, #1B241D);
  font: 600 13px 'Hanken Grotesk', sans-serif;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color .3s, color .3s;
}

body.cl-refonte-preview .cl-sim__mode-btn.is-active,
body.cl-refonte-preview .cl-sim__orient-btn.is-active {
  background: var(--green, #517046);
  color: var(--deep-ink, #F4F0E6);
}

body.cl-refonte-preview .cl-sim__walls {
  display: flex;
  gap: 8px;
}

body.cl-refonte-preview .cl-sim__walls[hidden] {
  display: none;
}

body.cl-refonte-preview .cl-sim__wall {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
}

body.cl-refonte-preview .cl-sim__wall.is-active {
  border-color: var(--green, #517046);
}

body.cl-refonte-preview .cl-sim__upload {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font: 600 13px 'Hanken Grotesk', sans-serif;
  color: var(--ink, #1B241D);
  background: var(--bg, #F4F0E6);
  padding: 8px 14px;
  border-radius: 999px;
}

body.cl-refonte-preview .cl-sim__upload[hidden] {
  display: none;
}

body.cl-refonte-preview .cl-sim__upload input[type="file"] {
  max-width: 1px;
  max-height: 1px;
  overflow: hidden;
  opacity: 0;
  position: absolute;
}

body.cl-refonte-preview .cl-sim__canvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--bg, #F4F0E6);
  display: block;
}

body.cl-refonte-preview .cl-sim__hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted, #5C6358);
}
