:root {
  --snow-color: #0b66c3; /* bleu foncé visible sur fond blanc */
}

/* bouton top-right */
.snow-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1050;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.snow-toggle .snow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  transition: background 200ms, transform 150ms;
  color: var(--snow-color);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.snow-toggle .snow-btn:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,1);
}

.snow-toggle .label {
  color: #ffffff; /* texte en blanc */
  font-size: 13px;
  text-align: right;
  line-height: 1;
}

.snow-toggle .label .title {
  font-weight: 600;
  display: block;
}

.snow-toggle .label .subtitle {
  font-size: 11px;
  opacity: 0.9;
}

/* conteneur des flocons */
#snow-container {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 1040;
  overflow: hidden;
}

.flake {
  position: absolute;
  top: -10px;
  color: var(--snow-color);
  font-size: 12px;
  opacity: 0.95;
  will-change: transform, opacity;
  animation-name: kf_fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

@keyframes kf_fall {
  0% {
    transform: translateY(-10vh) rotate(0deg);
    opacity: 0.95;
  }
  100% {
    transform: translateY(110vh) rotate(360deg);
    opacity: 0.6;
  }
}

@media (max-width: 480px) {
  .snow-toggle { right: 10px; top: 10px; }
  .snow-toggle .label { display: none; }
}