/**
 * POLICE AFACAD LOCALE - CONFIGURATION PRODUCTION
 * Fichier de police principal du site StreamVerse
 * La police est chargée localement depuis /fonts/ pour garantir la disponibilité
 */

@font-face {
  font-family: 'Afacad';
  src: url('/fonts/Afacad-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  /* font-display: swap évite le FOIT (Flash Of Invisible Text) */
}

/* Application globale de la police Afacad avec fallbacks système */
:root {
  --font-family: 'Afacad', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  font-family: var(--font-family) !important;
}

/* Exception pour Video.js - Ne PAS forcer Afacad sur les icônes du lecteur */
.video-js,
.video-js *,
.vjs-icon-placeholder:before,
.video-js .vjs-big-play-button .vjs-icon-placeholder:before,
.vjs-button > .vjs-icon-placeholder:before,
.video-js .vjs-modal-dialog,
.vjs-button > .vjs-icon-placeholder:before,
.video-js .vjs-progress-control,
.video-js .vjs-slider,
.video-js .vjs-load-progress,
.video-js .vjs-play-progress,
.video-js .vjs-time-tooltip,
.vjs-slider-handle:before {
  font-family: VideoJS !important;
}

html {
  font-family: var(--font-family) !important;
}

body {
  font-family: var(--font-family) !important;
}

/* Cibles spécifiques pour garantir l'application */
h1, h2, h3, h4, h5, h6,
p, span, div, a, button, input, textarea, select, label,
ul, ol, li, table, th, td, pre, code {
  font-family: var(--font-family) !important;
}
