/* ============================================================================
 * CLOCK
 * ============================================================================
 * Extrait de home.css lors du nettoyage pré-Bloc 3.
 * Toutes les couleurs/valeurs en dur ont été migrées vers tokens.css.
 * ============================================================================ */

/* ═══════════════════════════════════════════════════════════════
 * CLOCK CARD (avec météo SVG premium)
 * Correction #7 : halo limité à l'intérieur de la card
 * ═══════════════════════════════════════════════════════════════ */
.clock-card {
  padding: 18px 22px 22px 24px;
  border-radius: var(--radius-card);
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.35), inset 0 1px 0 var(--white-soft-04);
  position: relative;
  /* Correction #7 : le halo s'arrête à l'intérieur de la card */
  overflow: hidden;
}
.clock-date {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}
.clock-time {
  font-size: 3.2rem;
  font-weight: 200;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1;
  text-align: center;
  color: #fff;
}
.clock-weather {
  position: absolute;
  right: 14px;
  top: 22px;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
}
.clock-weather svg { width: 100%; height: 100%; position: relative; z-index: 1; }

/* Halo doré chaud — restreint à l'intérieur de la card */
.clock-weather::before {
  content: "";
  position: absolute;
  inset: -32px;
  background:
    radial-gradient(circle at 40% 40%, var(--weather-sun), transparent 50%),
    radial-gradient(circle, var(--weather-warm), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  animation: weather-halo-pulse 5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes weather-halo-pulse {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.10); }
}

/* Animations météo */
@keyframes sun-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes sun-rays-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes cloud-drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-2px); }
}

.weather-sun-body { animation: sun-breathe 4s ease-in-out infinite; transform-origin: center; }
.weather-sun-rays { animation: sun-rays-rotate 30s linear infinite; transform-origin: center; }
.weather-cloud { animation: cloud-drift 6s ease-in-out infinite; }

