/* ==========================================================================
   RCK - Radio Catholique Kisantu
   Styles personnalisés (complète TailwindCSS)
   ========================================================================== */

/* --- Variables ----------------------------------------------------------- */
:root {
  --rck-red: #BD1515;
  --rck-navy: #002956;
  --rck-white: #FFFFFF;

  color-scheme: light;
  box-sizing: border-box;
  /* Zones sûres (encoche, barres système) sur mobile */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

/* --- Base ---------------------------------------------------------------- */
body {
  background: var(--rck-white);
  font-family: 'Montserrat', system-ui, sans-serif;
}

/* --- Indicateur live ----------------------------------------------------- */
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(189, 21, 21, .6); }
  50%      { box-shadow: 0 0 0 8px rgba(189, 21, 21, 0); }
}

.live-dot {
  animation: pulse-live 1.6s infinite;
}

/* --- Bouton de chargement ------------------------------------------------ */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spin {
  animation: spin 1s linear infinite;
}

/* --- Curseur de volume --------------------------------------------------- */
input[type="range"] {
  accent-color: var(--rck-red);
}

/* --- Accessibilité ------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--rck-red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .live-dot, .spin { animation: none; }
}
