/*!
 * Canal9 Horizon — jetons de design
 * ------------------------------------------------------------------
 * Repris tels quels du lab (lab.canal9.ch, assets/css/tokens.css), lui-même issu du
 * design system « Canal9 WEB3.0 ». Les ajouts propres au lab restent marqués LAB.
 */

/* ---------- Polices ----------
 * Les piles de polices nomment Typold en premier, puis Outfit (OFL), comme dans le lab.
 * Typold est déclarée à part, dans typold.css, chargé selon le réglage
 * Réglages → Horizon → Police. Sans ce fichier, l'affichage passe sur Outfit,
 * exactement comme sur lab.canal9.ch.
 */
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Couleurs de marque ---------- */
  --jaune: #ffdd00;         /* LA couleur Canal9 — jamais en texte sur fond clair */
  --orange: #f9b000;        /* début du dégradé des boutons et badges */
  --rouge: #dc1e32;         /* signaux uniquement */
  --on-accent: #292929;     /* texte sur jaune / orange */
  --anthracite: #292929;
  --anthracite-2: #333333;
  --gris-filet: #4f4f4f;

  /* ---------- Thème clair (zones blanches) ---------- */
  --surface: #ffffff;
  --surface-alt: #f4f4f4;
  --surface-sunken: #e0e0e0;
  --ink: #292929;
  --text: #303030;
  --text-strong: #000000;
  --text-meta: #afafaf;     /* valeur du site, 2.2:1 sur blanc : ne pas utiliser en clair */
  --text-subtle: #828282;   /* 3.8:1 sur blanc : uniquement ≥ 19px gras / 24px */
  --text-muted: #666666;    /* LAB — métadonnées lisibles (5.7:1 sur blanc, 5.3:1 sur #f4f4f4) */
  --border: #e0e0e0;
  --border-strong: #bdbdbd;
  --overlay: rgba(0, 0, 0, 0.5);
  --success: #2e9935;
  --focus: #292929;         /* LAB — anneau de focus en clair */

  /* ---------- Typographie ---------- */
  --font-display: "TypoldMedium", "Outfit", system-ui, sans-serif;
  --font-text: "TypoldRegular", "Outfit", system-ui, sans-serif;
  --font-light: "TypoldLight", "Outfit", system-ui, sans-serif;
  --font-bold: "TypoldBold", "Outfit", system-ui, sans-serif;

  /* Échelle (desktop) — les tailles fluides sont calculées dans main.css */
  --fs-hero-title: 53px;
  --fs-hero-kicker: 31px;
  --fs-section-title: 31px;
  --fs-card-title: 20px;
  --fs-nav-item: 19px;
  --fs-block-title: 18px;
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-tag: 16px;
  --fs-label: 14px;
  --fs-body-sm: 14px;

  /* ---------- Espacements ---------- */
  --space-5: 5px;
  --space-8: 8px;
  --space-10: 10px;
  --space-12: 12px;
  --space-15: 15px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-64: 64px;         /* LAB — respiration verticale des sections en desktop */

  /* ---------- Rayons ---------- */
  --radius-pill: 45px;
  --radius-input: 32px;
  --radius-tag: 20px;
  --radius-md: 8px;
  --radius-sm: 5px;
  --radius-round: 50%;

  /* ---------- Ombres ---------- */
  --shadow-card: 0 4px 28px 0 rgba(0, 0, 0, 0.11);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* ---------- Dimensions ---------- */
  --header-top: 58px;
  --header-nav: 58px;
  --header-total: 116px;
  --container-max: 1650px;
  --section-bar: 6px;
  --gutter: 16px;           /* LAB — 16px en mobile, 20px dès 768px (valeur du site) */
  --livebox-w: 300px;       /* LAB — colonne Live (≈ 288px + filet) */

  /* ---------- Mouvement (LAB) ---------- */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.25s;
}

@media (min-width: 768px) {
  :root { --gutter: 20px; }
}

/* ---------- Thème sombre : les bandeaux anthracite du site ----------
 * Ce n'est pas un « mode sombre » : on l'applique aux sections vidéo,
 * au header et à la colonne Live, comme sur canal9.ch. */
.theme-dark {
  --surface: #292929;
  --surface-alt: #333333;
  --surface-sunken: #242424;
  --ink: #ffffff;
  --text: #e0e0e0;
  --text-strong: #ffffff;
  --text-subtle: #bdbdbd;
  --text-muted: #bdbdbd;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: #4f4f4f;
  --focus: #ffdd00;
  color-scheme: dark;
}
/* Variante du bandeau sombre en #333 (sections replay / programme) */
.theme-dark.theme-dark--alt {
  --surface: #333333;
  --surface-alt: #292929;
  --surface-sunken: #2a2a2a;
}
