.horloge-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.period-badge {
  font-size: 1.2rem;
  font-weight: 800;
  background: var(--card-bg);
  padding: 10px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.clock-wrap {
  width: min(90vw, 380px);
}

.clock-svg {
  width: 100%;
  height: auto;
  display: block;
  background: #fffdf6;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.clock-rim {
  fill: #fffdf6;
  stroke: #e8b84b;
  stroke-width: 6;
}

.clock-tick {
  stroke: #2b2d42;
  stroke-width: 2;
}

.clock-tick-major {
  stroke-width: 4;
}

.minute-label {
  font-size: 14px;
  fill: #5b6178;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
}

.hour-label {
  font-size: 24px;
  fill: #2b2d42;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}

.hour24-label {
  font-size: 15px;
  fill: #3b6ee0;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: middle;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.clock-svg.show-24h .hour24-label {
  opacity: 1;
}

.hand {
  stroke-linecap: round;
}

/* Couleur de l'aiguille des heures liee a la periode : noir le matin, bleu
   (plus clair que les chiffres 13h-23h) l'apres-midi/soir. */
.hand-hour {
  stroke-width: 9;
}

.hand-hour.period-morning {
  stroke: #2b2d42;
}

.hand-hour.period-afternoon {
  stroke: #6f97e8;
}

.hand-minute {
  stroke: #ff6b6b;
  stroke-width: 5;
}

.hand-pivot {
  fill: #2b2d42;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.toggle-24h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  text-align: center;
}

.toggle-24h input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.answer-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 70px;
}

.answer-text {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent);
  padding: 10px 28px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.check-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  width: min(90vw, 380px);
}

.check-title {
  margin: 0;
  font-size: 1.1rem;
  text-align: center;
}

.check-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.time-inputs {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.time-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 700;
}

.time-field input {
  width: 72px;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  padding: 8px 4px;
  border-radius: 12px;
  border: 2px solid #d8dbe6;
}

.time-field input:focus-visible {
  outline: none;
  border-color: var(--secondary);
}

.time-sep {
  font-size: 1.6rem;
  font-weight: 800;
  padding-bottom: 8px;
}

.check-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#voice-btn.listening {
  animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  }
  50% {
    box-shadow: 0 4px 18px rgba(255, 107, 107, 0.7);
  }
}

.check-feedback {
  min-height: 1.4em;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.check-feedback.is-success {
  color: var(--secondary-dark);
}

.check-feedback.is-error {
  color: var(--primary-dark);
}
