/*
|--------------------------------------------------------------------------
| Typographie AFRIMAZONE — source unique
|--------------------------------------------------------------------------
| Police principale : Plus Jakarta Sans (chargée par resources/views/partials/typography.blade.php).
| Ce fichier est inclus en DERNIER dans chaque layout (public, auth, compte, vendeur, admin)
| afin de remplacer les polices héritées des thèmes (Open Sans, Roboto, Inter, Muli, Courier New, Segoe UI).
| Pour changer de police : modifier --font-sans ici ET l'URL Google Fonts dans le partial.
| Les polices d'icônes (Font Awesome, Material Design Iconic Font, w-icon…) ne sont jamais touchées.
*/

:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;

  /* Corps de texte */
  --text-base: 1rem;
  /* 16 px : texte courant */
  --text-sm: 0.875rem;
  /* 14 px : libellés, informations secondaires */
  --text-xs: 0.75rem;
  /* 12 px : mentions, badges */
  --leading-body: 1.6;
  --leading-heading: 1.25;

  /* Graisses */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Éléments de formulaire : les navigateurs ne les font pas hériter de la police par défaut */
button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}

/* Titres : même famille et même rythme partout */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.inner h3,
.navbar-brand,
.card-title,
.modal-title {
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  line-height: var(--leading-heading);
}

/* Composants qui forçaient une police propre dans les thèmes (Electro, Wolmart, auth) */
.btn,
.btn.btn-primary,
.btn.btn-secondary,
.btn.btn-white,
.form-control,
.form-select,
.form-label,
.dropdown-menu,
.dropdown-item,
.nav-link,
.nav-bar .navbar .navbar-nav .nav-link,
.card,
.table,
.badge,
.alert,
.breadcrumb,
.pagination,
.modal-content,
.tooltip,
.popover,
.swal2-popup,
.swal2-container,
.swal2-title,
.swal2-html-container {
  font-family: var(--font-sans);
}

/* Libellés et informations secondaires */
label,
small,
.small,
.text-muted {
  font-family: var(--font-sans);
}

small,
.small {
  font-size: var(--text-sm);
}

/* Code : seule exception volontaire */
code,
kbd,
pre,
samp {
  font-family: var(--font-mono);
}
