html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: #f5f6fa;
  color: #2a2c38;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.dark body {
  background-color: #0c0f17;
  color: #f3f4f8;
}


/* Ombres et élévations discrètes et soignées */
.shadow-ydc {
  box-shadow: 0 10px 30px rgba(26, 29, 46, 0.05);
}

.hover\:shadow-ydc-hover:hover {
  box-shadow: 0 20px 45px rgba(21, 51, 199, 0.12);
}

html.dark .shadow-ydc {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38);
}

html.dark .hover\:shadow-ydc-hover:hover {
  box-shadow: 0 22px 50px rgba(76, 105, 255, 0.18);
}

/* Orbes d'ambiance */
#ydc-orb1, #ydc-orb2 {
  transition: opacity 0.5s ease;
}

html.dark #ydc-orb1,
html.dark #ydc-orb2 {
  opacity: 0.12;
}

/* Canvas 3D interactif */
#ydc-3d-canvas {
  width: 100% !important;
  height: 100% !important;
  outline: none;
  cursor: grab;
}
#ydc-3d-canvas:active {
  cursor: grabbing;
}

/* Animation douce de présence en ligne */
.ydc-pulse {
  animation: pulseLive 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}
