/* ==========================================================================
   Site de démo Dacia : écran vidéo + écran tactile de la borne
   L'écran tactile est la maquette elle-même (borne/*.html, 2560 x 720),
   affichée dans une iframe mise à l'échelle par assets/js/borne-host.js.
   ========================================================================== */
:root {
  --bg: #171815;
  --line: #2c2d29;
  --color-active: #ffffff;
  --color-selected: #aad042;
  /* rapport hauteur / largeur de l'ensemble : vidéo 16:9 + écran tactile 2560x720 */
  --stack-ratio: 0.84375;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--color-active);
  font-family: system-ui, sans-serif;
}

/* Les deux écrans tiennent ensemble dans la fenêtre */
.stage {
  width: min(100% - 32px, (100dvh - 32px) / var(--stack-ratio), 1680px);
  margin: 0 auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
}
@supports not (height: 100dvh) {
  .stage { width: min(100% - 32px, (100vh - 32px) / var(--stack-ratio), 1680px); }
}

/* ---------- écran vidéo ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
.missing {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: #6b6c68;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.video-frame.is-missing .missing { display: grid; }
/* écran noir (croix en mode focus, maquette Striker) */
.video-frame.is-black video { visibility: hidden; }

.video-controls {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  background: rgba(23, 24, 21, .6);
}
.vbtn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--color-active);
  cursor: pointer;
}
.vbtn:hover { color: var(--color-selected); }
.vbtn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vbtn .ico-on { display: none; }
.video-frame.sound-on .vbtn .ico-on { display: block; }
.video-frame.sound-on .vbtn .ico-off { display: none; }

.video-frame:fullscreen { aspect-ratio: auto; }

/* ---------- écran tactile (maquette 2560 x 720) ---------- */
.touch {
  position: relative;
  aspect-ratio: 2560 / 720;
  overflow: hidden;
  background: var(--bg);
}
.touch iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 2560px;
  height: 720px;
  border: 0;
  transform-origin: 0 0;
}
