/* Lecteur 360 Bob VR Experience : même charte que le site (rouge piste, nuit, Barlow) */

/* Barlow rangée avec le lecteur (licence OFL) : même rendu que le site, avec ou sans internet */
@font-face { font-family: 'Barlow'; font-weight: 400; src: url('../polices/Barlow-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 600; src: url('../polices/Barlow-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 700; src: url('../polices/Barlow-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Barlow'; font-weight: 800; src: url('../polices/Barlow-ExtraBold.ttf') format('truetype'); }
:root {
  --rouge: #EE1D25;
  --nuit: #05070D;
  --gris: #9A9A9A;
  --police: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body { background: var(--nuit); color: #fff; font-family: var(--police); font-size: 17px; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- Accueil ---------- */
.accueil {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 24px; text-align: center;
}
.accueil.survol { outline: 3px dashed var(--rouge); outline-offset: -18px; }
.logo { height: 54px; }
h1 { font-size: 40px; font-weight: 800; }
.bouton {
  display: inline-block; padding: 14px 30px; border-radius: 999px; background: var(--rouge);
  font-weight: 700; cursor: pointer;
}
.reglages { margin-top: 18px; display: grid; gap: 14px; width: min(440px, 100%); text-align: left; }
.reglages label { display: grid; grid-template-columns: 1fr auto; gap: 6px; color: #ddd; }
.reglages input { grid-column: 1 / -1; accent-color: var(--rouge); }
.aide { color: var(--gris); font-size: 14px; }

/* ---------- Lecture ---------- */
.lecture { position: fixed; inset: 0; }
#vue, #plat { position: absolute; inset: 0; width: 100%; height: 100%; }
#vue { cursor: grab; touch-action: none; }
#vue.saisi { cursor: grabbing; }
#plat { object-fit: contain; background: #000; }
.message {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: 80%;
  padding: 14px 22px; border-radius: 10px; background: rgba(0, 0, 0, .7); text-align: center;
}

/* Les vidéos du client, à gauche */
.liste {
  position: absolute; top: 16px; left: 16px; list-style: none; padding: 0; display: grid; gap: 6px;
  max-height: calc(100% - 140px); overflow: auto;
}
.liste button {
  padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, .55); font-weight: 600; font-size: 15px;
}
.liste button[aria-current="true"] { background: var(--rouge); }

.commandes {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); transition: opacity .3s;
}
.lecture.calme .commandes, .lecture.calme .liste { opacity: 0; }
.lecture.calme { cursor: none; }
#position { width: 100%; accent-color: var(--rouge); }
.rangee { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.rangee button { font-size: 22px; width: 40px; height: 40px; border-radius: 50%; }
.rangee button:hover { background: rgba(255, 255, 255, .15); }
.temps { font-variant-numeric: tabular-nums; }
.nom { flex: 1; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zoom { display: flex; align-items: center; gap: 8px; color: var(--gris); font-size: 15px; }
.zoom input { width: 120px; accent-color: var(--rouge); }
