/* Design tokens JANNEAUTV — palette, espacements, rayons, ombres, typographie.
   Chargé avant style.css. Les valeurs ici sont recopiées à la main dans
   templates/publication_page.html (qui doit rester 100% autonome, sans lien externe). */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Marque */
  --jtv-teal: #0d8b9c;
  --jtv-teal-dark: #095f6b;
  --jtv-teal-tint: #e0f2f1;
  --ink: #1b1f22;
  --ink-soft: #2a3338;

  /* Neutres */
  --muted: #667077;
  --muted-soft: #8a949a;
  --border: #e2e6e8;
  --border-soft: #eef1f2;
  --bg: #f6f8f9;
  --card-bg: #ffffff;

  /* Statuts réels (A valider / Validé / Publié) */
  --status-pending-bg: #faf1de;
  --status-pending-fg: #b9862f;
  --status-validated-bg: #e0f2f1;
  --status-validated-fg: #095f6b;
  --status-published-bg: #dff0e2;
  --status-published-fg: #1f8a4c;

  /* Confiance de détection d'émission */
  --confidence-high-bg: #e5f3e9;
  --confidence-high-fg: #1f8a4c;
  --confidence-medium-bg: #faf1de;
  --confidence-medium-fg: #b9862f;
  --confidence-low-bg: #fbe9e7;
  --confidence-low-fg: #b23c3c;
  --confidence-unknown-bg: #eeeeee;
  --confidence-unknown-fg: #667077;

  /* Résultat de génération (job-poll.js) */
  --outcome-running-bg: #f2f7f8;
  --outcome-success-bg: #eaf7ee;
  --outcome-success-border: #bfe4c9;
  --outcome-warning-bg: #fdf3e2;
  --outcome-warning-border: #f0dba8;
  --outcome-error-bg: #fbeceb;
  --outcome-error-border: #f0bdb9;

  /* Alias historiques, conservés pour compatibilité */
  --gold: #b9862f;
  --green: #1f8a4c;
  --amber: #b9862f;
  --red: #b23c3c;

  /* Espacements */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;

  /* Rayons */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Ombres douces */
  --shadow-xs: 0 1px 2px rgba(20, 24, 26, 0.04);
  --shadow-sm: 0 2px 8px rgba(20, 24, 26, 0.06);
  --shadow-md: 0 6px 18px rgba(20, 24, 26, 0.08);
  --shadow-lg: 0 18px 50px rgba(20, 24, 26, 0.16);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 250ms ease;

  /* Typographie */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.92rem;
  --text-md: 1rem;
  --text-lg: 1.2rem;
  --text-xl: 1.6rem;

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ===========================================================================
     Refonte système JANNEAUTV 2026 — jetons ajoutés
     (header premium, largeurs de contenu, tailles de boutons, réseaux, z-index).
     Purement additif : aucune valeur historique ci-dessus n'est modifiée.
     =========================================================================== */

  /* Header sombre premium (teinté très légèrement turquoise, plus profond que --ink) */
  --header-bg: #0e1518;
  --header-bg-2: #0a1013;
  --header-border: rgba(255, 255, 255, 0.09);
  --header-fg: #eaf3f5;
  --header-fg-muted: rgba(202, 227, 232, 0.72);
  --header-fg-soft: rgba(202, 227, 232, 0.55);
  --header-surface: rgba(255, 255, 255, 0.055);
  --header-surface-hover: rgba(255, 255, 255, 0.13);

  /* Accent turquoise sur fond sombre (plus lumineux que --jtv-teal pour le contraste) */
  --teal-on-dark: #2bb6c8;
  --teal-on-dark-soft: rgba(43, 182, 200, 0.16);

  /* Largeurs de contenu maîtrisées */
  --content-width: 1200px;
  --content-width-narrow: 1040px;
  --content-width-wide: 1340px;

  /* Couleurs de marque des réseaux (déjà utilisées, centralisées ici) */
  --net-youtube: #d13c3c;
  --net-tiktok: #1b1f22;
  --net-meta: #b23a8f;
  --net-linkedin: #0a66c2;

  /* Tailles de contrôles cohérentes */
  --control-h-sm: 32px;
  --control-h-md: 40px;
  --control-h-lg: 48px;

  /* Anneau de focus clavier unifié */
  --focus-ring: 0 0 0 3px rgba(13, 139, 156, 0.28);
  --focus-ring-dark: 0 0 0 3px rgba(43, 182, 200, 0.4);

  /* Élévations complémentaires */
  --shadow-header: 0 6px 24px rgba(0, 0, 0, 0.28);
  --shadow-card-hover: 0 10px 30px rgba(20, 24, 26, 0.11);

  /* Empilement (z-index) utile */
  --z-header: 20;
  --z-dropdown: 40;
  --z-overlay: 90;
  --z-modal: 100;
}
