:root {
  --navy: #0f3b5c;
  --navy-deep: #061320;
  --surface: rgba(8, 22, 37, 0.88);
  --surface-solid: #0b1f33;
  --border: rgba(0, 229, 255, 0.32);
  --cyan: #00e5ff;
  --emerald: #00e676;
  --amber: #ffb020;
  --danger: #ff5252;
  --text: #f0f7fc;
  --text-muted: #9eb8cc;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);
}

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

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: transparent;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

input,
textarea {
  user-select: text;
  -webkit-user-select: text;
}

/* Flux vidéo MindAR bien visible derrière le viseur pendant la phase de scan */
video {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  z-index: 0 !important;
}

a-scene,
a-scene canvas.a-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  background: transparent !important;
}

body.ar-stabilized {
  background: var(--navy-deep);
}

body.ar-stabilized video,
body.ar-stabilized a-scene {
  opacity: 0.22;
  filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.45s ease, filter 0.45s ease;
}

/* Mode Vue Caméra AR (au clic sur le CV en arrière-plan) : flux caméra net à 100 % derrière le personnage 3D */
body.ar-stabilized.ar-camera-passthrough {
  background: transparent;
}

body.ar-stabilized.ar-camera-passthrough video {
  opacity: 1 !important;
  filter: none !important;
}

body.ar-stabilized.ar-camera-passthrough a-scene {
  opacity: 1 !important;
  filter: none !important;
  pointer-events: none;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
