/*!
 * Canal9 Horizon — feuille de styles principale
 * ------------------------------------------------------------------
 * Reprise du lab (lab.canal9.ch, assets/css/main.css). Deux écarts seulement :
 *   - la couche « wp » est ajoutée à l'ordre des couches (compléments WordPress, wp.css) ;
 *   - la section 4 « Ruban du lab » est retirée (elle signalait le prototype).
 * Pour reporter une évolution du lab, comparer ce fichier avec celui du lab.
 *
 * Mobile-first. Paliers : 560 · 768 · 1024 · 1280 px.
 * Préfixe des composants : c9- (repris du design system Canal9 WEB3.0).
 * Sommaire
 *   1. Reset           5. En-tête et navigation   9. Cartes et rails
 *   2. Base            6. Boutons, tags, badges  10. Programme et lecteurs
 *   3. Mise en page    7. Titres et onglets      11. Dialogues, popovers, toast
 *   (4. retirée)       8. Carrousel et Live      12. Pied de page
 *                                                13. Pages
 *                                                14. Utilitaires et mouvement
 */
@layer reset, base, layout, components, pages, wp, utilities;

/* =================================================================
   1. Reset
   ================================================================= */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  img, svg, video, iframe { display: block; max-width: 100%; }
  img { height: auto; }
  input, button, textarea, select { font: inherit; color: inherit; }
  button { cursor: pointer; background: none; border: 0; padding: 0; }
  fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
  dialog { padding: 0; border: 0; }
  [hidden] { display: none !important; }
}

/* =================================================================
   2. Base
   ================================================================= */
@layer base {
  html { scroll-padding-top: calc(var(--header-top) + 16px); }
  @media (min-width: 1024px) { html { scroll-padding-top: calc(var(--header-total) + 16px); } }
  @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

  body {
    min-height: 100vh;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-text);
    font-size: var(--fs-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  .theme-dark { background: var(--surface); color: var(--text); }

  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.2; }
  a { color: inherit; text-decoration: none; }
  a:hover { text-decoration: none; }
  p a, .prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

  :focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
  ::selection { background: var(--jaune); color: var(--on-accent); }

  .icon {
    width: 1.25em; height: 1.25em; flex: none;
    fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  }
  .icon--fill { fill: currentColor; }
  .icon--sm { width: 1em; height: 1em; }
  .icon--lg { width: 1.6em; height: 1.6em; }

  .skip-link {
    position: absolute; left: 12px; top: -100px; z-index: 1000;
    padding: 10px 18px; border-radius: var(--radius-pill);
    background: var(--jaune); color: var(--on-accent);
    font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  }
  .skip-link:focus { top: 12px; }

  noscript p {
    padding: 16px var(--gutter); background: var(--jaune); color: var(--on-accent);
    font-family: var(--font-display); font-weight: 500; text-align: center;
  }
}

/* =================================================================
   3. Mise en page
   ================================================================= */
@layer layout {
  .container { width: 100%; max-width: var(--container-max); margin-inline: auto; padding-inline: var(--gutter); }

  .section { padding-block: 40px; }
  .section--alt { background: var(--surface-alt); }
  .section--tight { padding-block: 24px; }
  @media (min-width: 1024px) { .section { padding-block: var(--space-64); } .section--tight { padding-block: 32px; } }

  .section-head {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
    margin-bottom: var(--space-24);
  }
  .section-head > :first-child { margin-right: auto; }
  .section-head--sub { margin-top: 48px; }
  .section-head__meta { color: var(--text-muted); font-size: var(--fs-body-sm); }
  .section-intro { max-width: 70ch; margin: -12px 0 var(--space-20); color: var(--text-muted); }

  .stack > * + * { margin-top: var(--space-16); }
}

/* =================================================================
   5. En-tête et navigation
   ================================================================= */
@layer components {
  .c9-header { position: sticky; top: 0; z-index: 50; font-family: var(--font-display); }

  /* Bande haute anthracite */
  .c9-header__top {
    display: flex; align-items: stretch; gap: var(--space-16);
    height: var(--header-top); padding-left: var(--gutter);
    background: var(--anthracite); color: #ffffff;
  }
  .c9-header__logo { display: flex; align-items: center; flex: none; }
  .c9-header__logo img { width: auto; height: 36px; }
  .c9-header__live { display: flex; align-items: center; gap: var(--space-12); min-width: 0; }
  .c9-header__now {
    display: none; color: #e0e0e0; font-family: var(--font-text); font-size: var(--fs-body-sm);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .c9-header__live:hover .c9-header__now { color: #ffffff; }
  @media (min-width: 1280px) { .c9-header__now { display: block; } }

  .c9-header__tools { display: flex; align-items: stretch; margin-left: auto; }
  .c9-tool {
    position: relative; display: flex; align-items: center; gap: var(--space-10);
    padding-inline: var(--space-15); border-left: 1px solid var(--gris-filet);
    color: var(--jaune); font-size: 18px; white-space: nowrap;
  }
  .c9-tool--btn:hover, .c9-tool--btn[aria-expanded="true"] { background: #333333; }
  .c9-tool--btn:focus-visible { outline: 2px solid var(--jaune); outline-offset: -4px; }
  .c9-tool__label { display: none; color: #ffffff; font-size: var(--fs-body); }
  @media (min-width: 1280px) { .c9-tool__label { display: inline; } }

  .c9-tool--meteo { display: none; color: #ffffff; font-size: var(--fs-body-sm); font-family: var(--font-text); gap: 8px; }
  .c9-tool--meteo .icon { color: var(--jaune); }
  .c9-meteo__temp { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-body); }
  .c9-meteo__date { color: #bdbdbd; }
  @media (min-width: 1280px) { .c9-tool--meteo { display: flex; } }

  .c9-search { display: none; padding-right: var(--space-10); }
  .c9-search__input {
    width: 170px; padding: 6px 0; border: 0; background: transparent; color: #ffffff;
    font-family: var(--font-text); font-size: 17px;
  }
  .c9-search__input::placeholder { color: #9e9e9e; }
  .c9-search__input:focus { outline: none; }
  .c9-search:focus-within { box-shadow: inset 0 -3px 0 var(--jaune); }
  .c9-search__btn { display: grid; place-items: center; width: 40px; height: 40px; color: var(--jaune); border-radius: var(--radius-round); }
  .c9-search__btn:focus-visible { outline-color: var(--jaune); }
  @media (min-width: 1024px) { .c9-search { display: flex; } .c9-tool--search-toggle { display: none; } }

  .c9-notif-count {
    position: absolute; top: 9px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: var(--radius-pill); background: var(--jaune); color: var(--on-accent);
    font: 500 11px/18px var(--font-display); text-align: center;
  }

  .c9-lang { display: none; gap: 2px; font-size: var(--fs-body); text-transform: uppercase; }
  .c9-lang a { padding: 6px 7px; color: #bdbdbd; border-radius: var(--radius-sm); }
  .c9-lang a[aria-current="true"] { color: var(--jaune); }
  .c9-lang a:hover { color: #ffffff; }
  .c9-lang a:focus-visible { outline-color: var(--jaune); }
  @media (min-width: 768px) { .c9-lang { display: flex; } }

  .c9-tool--burger { padding-inline: var(--gutter); }
  @media (min-width: 1024px) { .c9-tool--burger { display: none; } }
  @media (max-width: 1023px) { .c9-tool--account { border-left: 1px solid var(--gris-filet); } }
  @media (max-width: 420px) {
    .c9-tool { padding-inline: 11px; }
    .c9-header__top { gap: 10px; }
  }

  /* Bande de navigation blanche (desktop) */
  .c9-header__nav { display: none; }
  @media (min-width: 1024px) {
    .c9-header__nav {
      display: flex; justify-content: flex-end; align-items: stretch;
      height: var(--header-nav); padding-right: var(--space-20);
      background: #ffffff; border-bottom: 1px solid #e0e0e0;
    }
  }
  .c9-nav { display: flex; align-items: stretch; margin: 0; padding: 0; list-style: none; }
  .c9-nav li { display: flex; }
  .c9-nav__link {
    position: relative; display: flex; align-items: center; gap: 6px;
    padding: var(--space-12) var(--space-15);
    color: #000000; font-family: var(--font-display); font-weight: 500;
    font-size: clamp(16px, 1.2vw, var(--fs-nav-item)); line-height: 1.5; letter-spacing: .07px; text-transform: uppercase;
  }
  .c9-nav__link::after {
    content: ""; position: absolute; left: var(--space-15); right: var(--space-15); bottom: 0; height: 4px;
    background: var(--jaune); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease);
  }
  .c9-nav__link:hover::after, .c9-nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .c9-nav__link:focus-visible { outline-offset: -4px; }
  .c9-nav__more .icon { width: 16px; height: 16px; }

  /* Barre de recherche mobile */
  .c9-searchbar {
    display: flex; gap: 10px; padding: 12px var(--gutter);
    background: #333333; border-top: 1px solid var(--gris-filet);
  }
  .c9-searchbar input {
    flex: 1; min-width: 0; height: 44px; padding: 0 18px;
    border: 1px solid var(--gris-filet); border-radius: var(--radius-input);
    background: #292929; color: #ffffff; font-family: var(--font-text);
  }
  .c9-searchbar input::placeholder { color: #9e9e9e; }
  .c9-searchbar input:focus-visible { outline: 2px solid var(--jaune); outline-offset: 1px; }
  @media (min-width: 1024px) { .c9-searchbar { display: none !important; } }

  /* Tiroir de navigation (mobile) */
  .c9-drawer {
    margin: 0 0 0 auto; width: min(380px, 88vw); height: 100dvh; max-height: none;
    background: var(--anthracite); color: #ffffff; overflow-y: auto;
  }
  .c9-drawer::backdrop { background: rgba(0, 0, 0, .6); }
  .c9-drawer__head {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-top); padding: 0 8px 0 var(--gutter); border-bottom: 1px solid var(--gris-filet);
  }
  .c9-drawer__head img { height: 36px; width: auto; }
  .c9-drawer__nav { list-style: none; margin: 0; padding: 12px 0; }
  .c9-drawer__nav a {
    display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter);
    font-family: var(--font-display); font-weight: 500; font-size: 22px; text-transform: uppercase; color: #ffffff;
  }
  .c9-drawer__nav a[aria-current="page"] { color: var(--jaune); }
  .c9-drawer__nav a:focus-visible, .c9-drawer__sub a:focus-visible { outline-color: var(--jaune); outline-offset: -4px; }
  .c9-drawer__label {
    padding: 16px var(--gutter) 6px; border-top: 1px solid var(--gris-filet);
    color: #bdbdbd; font: 500 13px/1.3 var(--font-display); text-transform: uppercase; letter-spacing: .06em;
  }
  .c9-drawer__sub { list-style: none; margin: 0; padding: 0 0 12px; }
  .c9-drawer__sub a { display: block; padding: 10px var(--gutter); color: #e0e0e0; }
  .c9-drawer__foot {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px var(--gutter) 24px; border-top: 1px solid var(--gris-filet); color: #e0e0e0; font-size: 14px;
  }
  .c9-drawer__foot .c9-lang { display: flex; }
}

/* =================================================================
   6. Boutons, tags, badges
   ================================================================= */
@layer components {
  /* Bouton pilule : dégradé orange → jaune (unique bouton d'action du site) */
  .c9-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
    min-height: 44px; padding: var(--space-12) var(--space-30);
    border: 0; border-radius: var(--radius-pill); cursor: pointer;
    background-color: var(--orange);
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--jaune));
    color: var(--on-accent);
    font-family: var(--font-display); font-size: var(--fs-block-title); line-height: 1.5; font-weight: 500;
    text-transform: uppercase; white-space: nowrap; text-decoration: none;
    transition: filter .3s ease, transform .15s ease;
  }
  .c9-btn:hover { filter: brightness(1.05); }
  .c9-btn:active { transform: translateY(1px); }
  .c9-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
  .c9-btn--sm { min-height: 40px; padding: var(--space-8) var(--space-20); font-size: var(--fs-body); }
  .c9-btn--block { display: flex; width: 100%; }
  /* LAB — bouton secondaire : contour, pour ne pas multiplier les dégradés dans un bloc */
  .c9-btn--ghost {
    background: transparent; color: var(--ink);
    box-shadow: inset 0 0 0 1.5px var(--border-strong);
  }
  .c9-btn--ghost:hover { filter: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
  .c9-btn--ghost[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--jaune); }
  .theme-dark .c9-btn--ghost[aria-pressed="true"] .icon { color: var(--jaune); }

  /* Bouton icône rond */
  .c9-iconbtn {
    display: inline-grid; place-items: center; flex: none;
    width: 44px; height: 44px; border-radius: var(--radius-round);
    color: var(--ink); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .c9-iconbtn:hover { background: var(--surface-alt); }
  .c9-iconbtn:disabled { opacity: .35; cursor: default; }
  .c9-iconbtn:disabled:hover { background: transparent; }
  .c9-iconbtn--outline { box-shadow: inset 0 0 0 1px var(--border-strong); }
  .theme-dark .c9-iconbtn:hover { background: rgba(255, 255, 255, .08); }

  /* Lien « Voir toutes les… » */
  .c9-more {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--text-strong); font-family: var(--font-display); font-weight: 500;
    font-size: var(--fs-body); text-transform: uppercase; letter-spacing: .07px;
  }
  .c9-more .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
  .c9-more:hover .icon { transform: translateX(3px); }
  @media (min-width: 1024px) { .c9-more { font-size: 17px; } }

  .c9-linklike { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

  /* Tags de catégorie */
  .c9-tags { display: flex; flex-wrap: wrap; gap: var(--space-5); }
  .c9-tag {
    display: inline-block; padding: 4px var(--space-10);
    border: 1px solid var(--border-strong); border-radius: var(--radius-tag);
    color: var(--ink); background: transparent;
    font-family: var(--font-display); font-size: 13px; line-height: 1.2; font-weight: 500;
    text-transform: uppercase; letter-spacing: .02em; white-space: nowrap;
  }
  @media (min-width: 1024px) { .c9-tag { font-size: 14px; } }
  .c9-tag--une { border-color: var(--jaune); box-shadow: inset 0 0 0 1px var(--jaune); }
  .c9-tag--sponsor { background: var(--surface-sunken); border-color: var(--surface-sunken); }
  .c9-tag--on-image { color: #ffffff; border-color: #bdbdbd; }
  .c9-tag--live { border-color: var(--rouge); background: var(--rouge); color: #ffffff; }

  /* Indicateur EN DIRECT */
  .c9-live {
    display: inline-flex; align-items: center; gap: var(--space-10);
    color: var(--jaune); font-family: var(--font-display); font-weight: 500;
    font-size: var(--fs-label); line-height: 1.2; letter-spacing: .07px; text-transform: uppercase; white-space: nowrap;
  }
  .c9-live::before {
    content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: currentColor;
    animation: c9-pulse 2s ease-in-out infinite;
  }
  .c9-live--white { color: #ffffff; font-size: var(--fs-block-title); }
  .c9-live--white::before { background: var(--jaune); }
  @keyframes c9-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

  /* Badge de périodicité (cartes émissions) */
  .c9-period {
    display: inline-flex; border-radius: var(--radius-pill); overflow: hidden;
    font-family: var(--font-display); font-weight: 500; font-size: 12px; line-height: 1.2;
    text-transform: uppercase; text-align: center;
  }
  .c9-period > * { display: flex; align-items: center; padding: 6px 12px; }
  .c9-period__label { background: #000000; color: #ffffff; }
  .c9-period__value { background-image: linear-gradient(90deg, var(--orange) 0%, var(--jaune) 100%); color: #000000; }
  @media (min-width: 1024px) { .c9-period { font-size: 13px; } .c9-period > * { padding: 7px 14px; } }

  /* Badges de vignette */
  .c9-badge {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 4px;
    font: 500 12px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
  }
  .c9-badge--duree { background: rgba(0, 0, 0, .78); color: #ffffff; text-transform: none; letter-spacing: 0; }
  .c9-badge--fr { background: #ffffff; color: var(--on-accent); }
  .c9-badge--de { background: var(--jaune); color: var(--on-accent); }
  .c9-badge--live { background: var(--rouge); color: #ffffff; }

  /* Barre de progression (reprise de lecture, émission en cours) */
  .c9-progress { position: relative; height: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
  .c9-progress > span { position: absolute; inset: 0 auto 0 0; background: var(--jaune); }
  .c9-progress--light { background: var(--surface-sunken); }
  .c9-progress--light > span { background: var(--anthracite); }

  /* Contrôle segmenté (filtres de langue, périodes) */
  .c9-seg {
    display: inline-flex; padding: 3px; gap: 2px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  }
  .c9-seg label { position: relative; cursor: pointer; }
  .c9-seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
  .c9-seg span {
    display: block; min-width: 44px; padding: 7px 14px; border-radius: var(--radius-pill);
    color: var(--text); text-align: center;
    font: 500 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .c9-seg label:hover span { color: var(--ink); }
  .c9-seg input:checked + span { background: var(--jaune); color: var(--on-accent); }
  .c9-seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

  /* Puces de filtre (rubriques) */
  .c9-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .c9-chips::-webkit-scrollbar { display: none; }
  .c9-chip {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    min-height: 36px; padding: 6px 14px; border-radius: var(--radius-tag);
    border: 1px solid var(--border-strong); color: var(--ink);
    font: 500 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  }
  .c9-chip:hover { border-color: var(--ink); }
  .c9-chip[aria-pressed="true"] { background: var(--jaune); border-color: var(--jaune); color: var(--on-accent); }

  .c9-count {
    display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px;
    border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--ink);
    font: 500 13px/1 var(--font-display);
  }
}

/* =================================================================
   7. Titres de section et onglets
   ================================================================= */
@layer components {
  /* Titre de section : barre jaune + Medium + Light */
  .c9-section-title {
    position: relative; padding-left: 21px;
    color: var(--ink); font-family: var(--font-display); font-weight: 500;
    font-size: 26px; line-height: 1.1; text-transform: uppercase; text-wrap: balance;
  }
  .c9-section-title::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0;
    width: var(--section-bar); background: var(--jaune);
  }
  .c9-section-title span { font-family: var(--font-light); font-weight: 300; }
  .c9-section-title--sm { font-size: 22px; }
  .c9-section-title .c9-count { margin-left: 8px; font: 500 14px/1 var(--font-display); vertical-align: 3px; }
  @media (min-width: 768px) {
    .c9-section-title { font-size: var(--fs-section-title); line-height: 1.2; }
    .c9-section-title--sm { font-size: 24px; }
  }

  /* Onglets */
  .c9-tabs {
    display: flex; gap: 0; margin-bottom: var(--space-24);
    border-bottom: 1px solid var(--border-strong);
    overflow-x: auto; scrollbar-width: none;
  }
  .c9-tabs::-webkit-scrollbar { display: none; }
  .c9-tabs [role="tab"] {
    flex: none; margin-bottom: -1px; padding: 14px var(--space-15);
    border-bottom: 3px solid transparent;
    color: var(--text); font-family: var(--font-light); font-weight: 300;
    font-size: 14px; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  }
  .c9-tabs [role="tab"]:hover { color: var(--ink); }
  .c9-tabs [role="tab"][aria-selected="true"] {
    color: var(--ink); font-family: var(--font-display); font-weight: 500; border-bottom-color: var(--jaune);
  }
  .c9-tabs [role="tab"]:focus-visible { outline-offset: -3px; }
  @media (min-width: 768px) { .c9-tabs [role="tab"] { font-size: 15px; padding-inline: 18px; } }
  .c9-tabpanel:focus-visible { outline-offset: 8px; }
}

/* =================================================================
   8. Carrousel « À la une » et colonne Live
   ================================================================= */
@layer components {
  .home-top { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--anthracite); }
  @media (min-width: 1200px) { .home-top { grid-template-columns: minmax(0, 1fr) var(--livebox-w); } }

  .c9-hero { position: relative; height: 480px; overflow: hidden; background: #292929; color: #ffffff; }
  @media (min-width: 768px) { .c9-hero { height: clamp(460px, 46vw, 600px); } }
  .c9-hero__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 100%; height: 100%;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .c9-hero__track::-webkit-scrollbar { display: none; }
  .c9-slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
  .c9-slide__media { position: absolute; inset: 0; }
  .c9-slide__media img { width: 100%; height: 100%; object-fit: cover; }
  .c9-slide__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .2) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, .82) 100%);
  }
  .c9-slide__content {
    position: absolute; inset: auto 0 0 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-12);
    padding: 0 var(--gutter) 76px;
  }
  @media (min-width: 768px) { .c9-slide__content { padding: 0 96px 84px 88px; } }
  .c9-slide__kicker {
    font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
    font-size: clamp(18px, 2.2vw, var(--fs-hero-kicker)); line-height: 1.2;
  }
  .c9-slide__title {
    max-width: 22ch; color: #ffffff; text-wrap: balance;
    font-size: clamp(28px, 3.8vw, var(--fs-hero-title)); line-height: 1.15;
  }
  .c9-slide__title a::after { content: ""; position: absolute; inset: 0; }
  .c9-slide .c9-btn { position: relative; z-index: 1; margin-top: var(--space-8); }

  .c9-hero__arrow {
    position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
    display: none; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-round);
    color: rgba(255, 255, 255, .8);
  }
  .c9-hero__arrow .icon { width: 40px; height: 40px; }
  .c9-hero__arrow:hover { color: #ffffff; background: rgba(0, 0, 0, .3); }
  .c9-hero__arrow:focus-visible { outline-color: var(--jaune); }
  .c9-hero__arrow--prev { left: 16px; }
  .c9-hero__arrow--next { right: 16px; }
  @media (min-width: 768px) { .c9-hero__arrow { display: grid; } }

  .c9-hero__controls {
    position: absolute; left: var(--gutter); bottom: var(--space-20); z-index: 2;
    display: flex; align-items: center; gap: var(--space-12);
  }
  @media (min-width: 768px) { .c9-hero__controls { left: 88px; } }
  .c9-dots { display: flex; gap: 4px; align-items: center; }
  .c9-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
  .c9-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ffffff; transition: all var(--dur) var(--ease); }
  .c9-dot[aria-current="true"]::before { width: 12px; height: 12px; background: var(--jaune); box-shadow: 0 0 0 4px #292929, 0 0 0 6px var(--jaune); }
  .c9-dot:focus-visible { outline-color: var(--jaune); outline-offset: 0; }
  .c9-hero__pause {
    display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
    color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6);
  }
  .c9-hero__pause .icon { width: 14px; height: 14px; }
  .c9-hero__pause:focus-visible { outline-color: var(--jaune); }

  /* Colonne Live */
  .c9-livebox {
    display: flex; flex-direction: column; gap: var(--space-16);
    padding: var(--space-24) var(--gutter) var(--space-30);
    background: var(--anthracite); color: #ffffff;
  }
  @media (min-width: 768px) and (max-width: 1199px) {
    .c9-livebox { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: var(--space-30); align-items: start; }
    .c9-livebox__head { grid-column: 1 / -1; }
    .c9-livebox .c9-player { grid-row: span 3; }
  }
  @media (min-width: 1200px) { .c9-livebox { padding: var(--space-30); border-left: 1px solid var(--gris-filet); } }
  .c9-livebox__head { display: flex; justify-content: space-between; align-items: center; }
  .c9-livebox__link {
    display: inline-flex; align-items: center; gap: 4px; color: #ffffff;
    font-family: var(--font-display); font-weight: 500; font-size: var(--fs-block-title);
  }
  .c9-livebox__link:hover { color: var(--jaune); }
  .c9-livebox__link:focus-visible { outline-color: var(--jaune); }
  .c9-livebox .c9-btn:focus-visible { outline-color: var(--jaune); }

  .c9-onair { display: grid; gap: var(--space-16); }
  .c9-onair__label {
    margin-bottom: 6px; color: #bdbdbd;
    font: 500 var(--fs-label)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .07px;
  }
  .c9-onair__title { color: #ffffff; font: 500 var(--fs-block-title)/1.3 var(--font-display); }
  .c9-onair__title button { text-align: left; }
  .c9-onair__title button:hover { color: var(--jaune); }
  .c9-onair__title button:focus-visible { outline-color: var(--jaune); }
  .c9-onair__time { margin: 2px 0 8px; color: #e0e0e0; font-size: var(--fs-body-sm); }
  .c9-onair__next { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
  .c9-onair__next li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; font-size: var(--fs-body-sm); line-height: 1.35; color: #e0e0e0; }
  .c9-onair__next time { color: var(--jaune); font-family: var(--font-display); font-weight: 500; }
}

/* =================================================================
   9. Cartes et rails
   ================================================================= */
@layer components {
  /* Grille d'actualités */
  .c9-grid { display: grid; gap: var(--space-20); grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; }
  @media (min-width: 560px) { .c9-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 900px) { .c9-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 1280px) { .c9-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (min-width: 900px) {
    .c9-grid--une > :first-child { grid-column: span 2; grid-row: span 2; }
  }

  /* Carte actualité (NewsCard) */
  .c9-card {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: #ffffff; color: #303030; box-shadow: var(--shadow-card); min-width: 0;
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  }
  .c9-card:hover { transform: translateY(-2px); box-shadow: 0 10px 34px rgba(0, 0, 0, .14); }
  .c9-card__media { position: relative; aspect-ratio: 236 / 220; background: #e0e0e0; overflow: hidden; }
  .c9-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
  .c9-card:hover .c9-card__media img { transform: scale(1.04); }
  .c9-card__media .c9-badge { position: absolute; left: 10px; bottom: 10px; }
  .c9-card__body {
    position: relative; flex: 1; display: flex; flex-direction: column; gap: var(--space-10);
    padding: var(--space-20) var(--space-20) 60px; border: 1px solid transparent; border-top: 0;
  }
  .c9-card__title {
    color: #292929; font-family: var(--font-display); font-weight: 500;
    font-size: 19px; line-height: 1.25; text-wrap: pretty;
  }
  @media (min-width: 1024px) { .c9-card__title { font-size: var(--fs-card-title); line-height: 24px; } }
  .c9-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
  .c9-card__title a:focus-visible { outline: none; }
  .c9-card:has(.c9-card__title a:focus-visible) { outline: 2px solid #292929; outline-offset: 3px; }
  .c9-card__chapo { color: #303030; font-size: var(--fs-body); }
  .c9-card__foot {
    position: absolute; left: var(--space-20); right: var(--space-12); bottom: var(--space-10);
    display: flex; justify-content: space-between; align-items: center; gap: 8px;
  }
  .c9-card__date { color: #666666; font-size: 15px; }
  .c9-card__actions { position: relative; z-index: 1; display: flex; gap: 2px; }
  .c9-card__actions .c9-iconbtn { width: 40px; height: 40px; color: #292929; }
  .c9-card__actions .c9-iconbtn:hover { background: #f4f4f4; }
  .c9-card__actions .c9-iconbtn[aria-pressed="true"] { background: var(--jaune); color: var(--on-accent); }
  .c9-card__actions .c9-iconbtn:focus-visible { outline-color: #292929; }
  .c9-card .c9-tag { color: #292929; border-color: #bdbdbd; }
  .c9-card .c9-tag--une { border-color: var(--jaune); }
  .c9-card .c9-tag--sponsor { background: #e0e0e0; border-color: #e0e0e0; }

  .c9-card--une .c9-card__body { border-color: var(--jaune); }
  @media (max-width: 559px) {
    .c9-grid { gap: 12px; }
    .c9-card:not(.c9-card--lead) { flex-direction: row; min-height: 136px; }
    .c9-card:not(.c9-card--lead) .c9-card__media { flex: 0 0 38%; aspect-ratio: auto; }
    .c9-card:not(.c9-card--lead) .c9-card__media .c9-badge { left: 6px; bottom: 6px; }
    .c9-card:not(.c9-card--lead) .c9-card__body { padding: 12px 12px 44px; gap: 6px; }
    .c9-card:not(.c9-card--lead) .c9-card__title { font-size: 16px; line-height: 1.25; }
    .c9-card:not(.c9-card--lead) .c9-tag + .c9-tag, .c9-card:not(.c9-card--lead) .c9-card__chapo { display: none; }
    .c9-card:not(.c9-card--lead) .c9-card__foot { left: 12px; right: 4px; bottom: 2px; }
    .c9-card:not(.c9-card--lead) .c9-card__date { font-size: 13px; }
    .c9-card:not(.c9-card--lead) .c9-card__actions .c9-iconbtn { width: 36px; height: 36px; }
  }
  @media (min-width: 900px) {
    .c9-card--lead .c9-card__media { aspect-ratio: auto; flex: 1; min-height: 300px; }
    .c9-card--lead .c9-card__body { flex: none; }
    .c9-card--lead .c9-card__title { font-size: clamp(24px, 2vw, 30px); line-height: 1.2; }
  }
  .c9-card--sponsor .c9-card__title a::after { z-index: 0; }

  /* Rails horizontaux */
  .c9-rail { position: relative; }
  .c9-rail__track {
    display: grid; grid-auto-flow: column; gap: var(--space-20);
    grid-auto-columns: min(78vw, 300px);
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); scrollbar-width: thin; scrollbar-color: #4f4f4f transparent;
    list-style: none;
  }
  .c9-rail__track > li { scroll-snap-align: start; min-width: 0; }
  @media (min-width: 768px) { .c9-rail__track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 2 * var(--space-20)) / 3); } }
  @media (min-width: 1024px) { .c9-rail__track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 3 * var(--space-20)) / 4); } }
  @media (min-width: 1440px) { .c9-rail__track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 4 * var(--space-20)) / 5); } }
  .c9-rail-nav { display: none; gap: 6px; }
  @media (min-width: 768px) { .c9-rail-nav { display: flex; } }

  .c9-empty {
    display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
    padding: var(--space-24); border: 1px dashed var(--border-strong); border-radius: var(--radius-md);
    color: var(--text);
  }
  .c9-empty__icon {
    display: grid; place-items: center; width: 52px; height: 52px; flex: none;
    border-radius: 50%; background: var(--surface-alt); color: var(--jaune);
  }
  .c9-empty__text { flex: 1 1 260px; }
  .c9-empty__text strong { display: block; margin-bottom: 4px; color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 18px; }

  /* Carte vidéo (rails Play) */
  .c9-vcard { position: relative; display: flex; flex-direction: column; gap: var(--space-10); height: 100%; }
  .c9-vcard__media { position: relative; aspect-ratio: 16 / 9; background: var(--surface-sunken); overflow: hidden; }
  .c9-vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity var(--dur); }
  .c9-vcard:hover .c9-vcard__media img { transform: scale(1.05); }
  .c9-vcard__media .c9-badge--duree { position: absolute; right: 8px; bottom: 10px; }
  .c9-vcard__media .c9-vcard__lang { position: absolute; left: 8px; top: 8px; }
  .c9-vcard__media .c9-progress { position: absolute; left: 0; right: 0; bottom: 0; }
  .c9-vcard__play {
    position: absolute; inset: 0; display: grid; place-items: center;
    opacity: 0; transition: opacity var(--dur) var(--ease);
  }
  .c9-vcard__play span {
    display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
    background: var(--jaune); color: var(--on-accent);
  }
  .c9-vcard:hover .c9-vcard__play, .c9-vcard:focus-within .c9-vcard__play { opacity: 1; }
  .c9-vcard__kicker {
    color: var(--text-muted); font: 500 12px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .c9-vcard__title {
    color: var(--ink); font-size: 17px; line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .c9-vcard__title a::after { content: ""; position: absolute; inset: 0; }
  .c9-vcard__title a:focus-visible { outline: none; }
  .c9-vcard:has(.c9-vcard__title a:focus-visible) .c9-vcard__media { outline: 2px solid var(--focus); outline-offset: 2px; }
  .c9-vcard__meta { margin-top: -4px; color: var(--text-muted); font-size: var(--fs-body-sm); }
  .c9-vcard__add {
    position: absolute; top: 8px; right: 8px; z-index: 1;
    width: 40px; height: 40px; background: rgba(41, 41, 41, .82); color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  }
  .c9-vcard__add:hover { background: #292929; }
  .c9-vcard__add[aria-pressed="true"] { background: var(--jaune); color: var(--on-accent); box-shadow: none; }
  .c9-vcard__add:focus-visible { outline-color: var(--jaune); }

  /* Carte émission (avec badge de périodicité) */
  .c9-ecard { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface-sunken); }
  .section--alt .c9-ecard { background: #ffffff; box-shadow: var(--shadow-card); }
  .c9-ecard__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
  .c9-ecard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
  .c9-ecard:hover .c9-ecard__media img { transform: scale(1.04); }
  .c9-ecard .c9-period { position: absolute; left: 12px; top: 12px; }
  .c9-ecard__lang { position: absolute; right: 10px; top: 12px; }
  .c9-ecard__chaine { color: var(--text-muted); font: 500 12px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .05em; }
  .c9-ecard__body { display: grid; gap: 6px; padding: var(--space-16) var(--space-16) var(--space-20); }
  .c9-ecard__title { font-size: 20px; line-height: 1.2; color: var(--ink); }
  .c9-ecard__title a::after { content: ""; position: absolute; inset: 0; }
  .c9-ecard__title a:focus-visible { outline: none; }
  .c9-ecard:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
  .c9-ecard__desc {
    color: var(--text-muted); font-size: var(--fs-body-sm); line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .c9-ecard__when { color: var(--text); font-size: 13px; }

  /* Grille de résultats (Play) */
  .c9-results { display: grid; gap: 28px var(--space-20); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); list-style: none; margin: 0; padding: 0; }
}

/* =================================================================
   10. Programme, lecteurs
   ================================================================= */
@layer components {
  /* Frise du programme (inspirée de la timeline Zattoo de l'ébauche) */
  .c9-timeline { --tl-scale: 4px; position: relative; }
  @media (min-width: 1024px) { .c9-timeline { --tl-scale: 5px; } }
  .c9-timeline__controls { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
  .c9-timeline__viewport {
    position: relative; overflow-x: auto; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: thin; scrollbar-color: #4f4f4f transparent;
  }
  .c9-timeline__canvas { position: relative; height: 270px; width: calc(2880 * var(--tl-scale)); }
  .c9-timeline__ruler { position: absolute; inset: 0 0 auto 0; height: 30px; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border-strong); }
  .c9-timeline__ruler li {
    position: absolute; top: 0; height: 30px; padding-left: 6px; border-left: 1px solid var(--border-strong);
    color: var(--text-muted); font: 500 12px/30px var(--font-display);
  }
  .c9-timeline__ruler li.is-half { height: 10px; top: 20px; padding: 0; }
  .c9-timeline__row { position: absolute; left: 0; right: 0; height: 108px; list-style: none; margin: 0; padding: 0; }
  .c9-slot {
    position: absolute; top: 0; height: 108px;
    display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 8px;
    background: #3a3a3a; border-top: 3px solid transparent; border-right: 2px solid #292929;
    color: #ffffff; text-align: left; overflow: hidden;
    transition: background-color var(--dur) var(--ease);
  }
  .c9-slot:hover { background: #454545; }
  .c9-slot:focus-visible { outline: 2px solid var(--jaune); outline-offset: -2px; }
  .c9-slot.is-past { background: #2f2f2f; color: #bdbdbd; }
  .c9-slot.is-live { background: #484848; border-top-color: var(--jaune); }
  .c9-slot.is-premiere { border-top-color: var(--orange); }
  .c9-slot.is-live.is-premiere { border-top-color: var(--jaune); }
  .c9-slot__time { color: #bdbdbd; font: 500 12px/1.2 var(--font-display); }
  .c9-slot.is-live .c9-slot__time { color: var(--jaune); }
  .c9-slot__title {
    font: 500 15px/1.25 var(--font-display);
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .c9-slot__sub { color: #bdbdbd; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .c9-slot.is-short { padding: 10px 7px 8px; }
  .c9-slot.is-short .c9-slot__title { font-size: 13px; line-height: 1.2; hyphens: manual; }
  .c9-slot.is-short .c9-slot__sub { display: none; }
  @media (max-width: 1023px) {
    .c9-slot.is-compact { padding-inline: 8px; }
    .c9-slot.is-compact .c9-slot__title { font-size: 13px; line-height: 1.2; }
  }
  .c9-slot.is-narrow { padding-inline: 6px; }
  .c9-slot.is-narrow .c9-slot__title, .c9-slot.is-narrow .c9-slot__sub { display: none; }
  .c9-slot.is-narrow .c9-slot__time { writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; }
  .c9-timeline__now {
    position: absolute; top: 24px; bottom: 0; width: 2px; z-index: 2; background: var(--jaune); pointer-events: none;
  }
  .c9-timeline__now::before {
    content: attr(data-label); position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
    padding: 2px 8px; border-radius: var(--radius-pill); background: var(--jaune); color: var(--on-accent);
    font: 500 11px/1.4 var(--font-display); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
  }
  .c9-timeline__day {
    position: absolute; top: 0; bottom: 0; z-index: 1; border-left: 2px dashed var(--border-strong); pointer-events: none;
  }
  .c9-timeline__day span {
    position: absolute; top: 4px; left: 8px; padding: 1px 8px; border-radius: var(--radius-pill);
    background: var(--border-strong); color: var(--ink); font: 500 12px/1.6 var(--font-display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
  }
  /* Grille à deux chaînes : colonne des chaînes + frise commune (un seul défilement) */
  .c9-epg { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 8px; }
  @media (min-width: 768px) { .c9-epg { grid-template-columns: 148px minmax(0, 1fr); gap: 0 10px; } }
  .c9-epg .c9-timeline__viewport { margin: 0; padding: 0; }
  .c9-epg__labels { display: flex; flex-direction: column; }
  .c9-epg__spacer { flex: none; height: 40px; }
  .c9-epg__channel {
    flex: none; height: 108px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 8px 10px; background: #3a3a3a; border-top: 3px solid transparent; color: #ffffff; text-align: left;
    transition: background-color var(--dur) var(--ease);
  }
  .c9-epg__channel + .c9-epg__channel { margin-top: 10px; }
  .c9-epg__channel:hover { background: #454545; }
  .c9-epg__channel[aria-pressed="true"] { background: #484848; border-top-color: var(--jaune); }
  .c9-epg__channel:focus-visible { outline: 2px solid var(--jaune); outline-offset: -2px; }
  .c9-epg__brand { display: flex; align-items: center; gap: 8px; }
  .c9-epg__brand img { display: none; width: 14px; height: 20px; }
  .c9-epg__name { font: 500 15px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
  .c9-epg__lang { color: #bdbdbd; font-size: 12px; line-height: 1.2; }
  .c9-epg__play {
    display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1); color: #ffffff; font: 500 11px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
  }
  .c9-epg__channel:hover .c9-epg__play, .c9-epg__channel[aria-pressed="true"] .c9-epg__play { background: var(--jaune); color: var(--on-accent); }
  @media (min-width: 768px) {
    .c9-epg__channel { padding: 10px 14px; }
    .c9-epg__brand img { display: block; }
    .c9-epg__name { font-size: 18px; }
  }

  /* Boutons de jour (grille sur 7 jours) */
  .c9-timeline__days { position: relative; display: flex; gap: 8px; margin-bottom: 14px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
  .c9-timeline__days::-webkit-scrollbar { display: none; }

  .c9-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; color: var(--text-muted); font-size: 13px; }
  .c9-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 6px; vertical-align: middle; background: var(--jaune); }
  .c9-legend .is-premiere::before { background: var(--orange); }
  .c9-legend .u-plain::before { display: none; }

  .c9-reminder[aria-pressed="true"] { background: var(--jaune); color: var(--on-accent); }

  /* Lecteur du direct (chargé au clic) */
  .c9-player { position: relative; aspect-ratio: 16 / 9; background: #000000; overflow: hidden; }
  .c9-player__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
  .c9-player__start {
    position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px;
    color: #ffffff; font: 500 var(--fs-label)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
    background: linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .55));
  }
  .c9-player__start .c9-player__icon {
    display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
    background: var(--jaune); color: var(--on-accent); transition: transform var(--dur) var(--ease);
  }
  .c9-player__start:hover .c9-player__icon { transform: scale(1.08); }
  .c9-player__start:focus-visible { outline: 3px solid var(--jaune); outline-offset: -3px; }
  .c9-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
  .c9-player__note { color: #e0e0e0; font: 400 12px/1.3 var(--font-text); text-transform: none; letter-spacing: 0; }

  /* Lecteur de vidéo à la demande (simulé) */
  .c9-vod { position: relative; aspect-ratio: 16 / 9; background: #000000; overflow: hidden; color: #ffffff; }
  .c9-vod__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
  .c9-vod.is-playing .c9-vod__poster { opacity: .45; }
  .c9-vod__big {
    position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .35));
  }
  .c9-vod__big span {
    display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
    background: var(--jaune); color: var(--on-accent); transition: transform var(--dur) var(--ease);
  }
  .c9-vod__big:hover span { transform: scale(1.08); }
  .c9-vod__big:focus-visible { outline: 3px solid var(--jaune); outline-offset: -3px; }
  .c9-vod.is-started .c9-vod__big { display: none; }
  .c9-vod__resume {
    padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, .7); color: #ffffff;
    font: 500 13px/1.2 var(--font-display); font-style: normal; text-transform: uppercase; letter-spacing: .05em;
  }
  .c9-vod__sim {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: none; align-items: center; gap: 10px; padding: 10px 18px; border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, .65); font: 500 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  }
  .c9-vod.is-started .c9-vod__sim { display: inline-flex; }
  .c9-vod__eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; }
  .c9-vod__eq i { width: 4px; height: 100%; background: var(--jaune); transform-origin: bottom; animation: c9-eq 1s ease-in-out infinite; }
  .c9-vod__eq i:nth-child(2) { animation-delay: -.3s; }
  .c9-vod__eq i:nth-child(3) { animation-delay: -.6s; }
  .c9-vod:not(.is-playing) .c9-vod__eq i { animation-play-state: paused; }
  @keyframes c9-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
  .c9-vod__bar {
    position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; background: linear-gradient(0deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0));
  }
  .c9-vod__bar .c9-iconbtn { width: 40px; height: 40px; color: #ffffff; }
  .c9-vod__bar .c9-iconbtn:hover { background: rgba(255, 255, 255, .12); }
  .c9-vod__bar .c9-iconbtn:focus-visible { outline-color: var(--jaune); }
  .c9-vod__track { position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; }
  .c9-vod__track::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
  .c9-vod__fill { position: absolute; left: 0; top: 10px; height: 4px; border-radius: 2px; background: var(--jaune); }
  .c9-vod__thumb { position: absolute; top: 5px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--jaune); }
  .c9-vod__track:focus-visible { outline: 2px solid var(--jaune); outline-offset: 2px; border-radius: 4px; }
  .c9-vod__time { font: 500 13px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
  .c9-vod__end {
    position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
    padding: 20px; background: rgba(0, 0, 0, .78); text-align: center;
  }
  .c9-vod.is-ended .c9-vod__end { display: flex; }
  .c9-vod__end p { color: #bdbdbd; font: 500 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
  .c9-vod__end strong { max-width: 36ch; font: 500 20px/1.3 var(--font-display); }
}

/* =================================================================
   11. Dialogues, popovers, toast
   ================================================================= */
@layer components {
  .c9-dialog {
    width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
    border-radius: var(--radius-md); background: #ffffff; color: #303030;
    box-shadow: var(--shadow-xl); overflow: auto;
  }
  .c9-dialog::backdrop { background: rgba(0, 0, 0, .6); }
  .c9-dialog--media { width: min(760px, calc(100vw - 24px)); }
  .c9-dialog__media { position: relative; aspect-ratio: 16 / 9; background: #292929; }
  .c9-dialog__media img { width: 100%; height: 100%; object-fit: cover; }
  .c9-dialog__media .c9-period { position: absolute; left: 20px; bottom: 16px; }
  .c9-dialog__body { position: relative; display: grid; gap: var(--space-16); padding: var(--space-30) var(--space-24) var(--space-24); }
  @media (min-width: 768px) { .c9-dialog__body { padding: var(--space-30); } }
  .c9-dialog__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(255, 255, 255, .92); color: #292929; }
  .c9-dialog__close:hover { background: #ffffff; }
  .c9-dialog__kicker { color: #666666; font: 500 var(--fs-label)/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
  .c9-dialog__title { color: #292929; font-size: clamp(24px, 3vw, 31px); line-height: 1.15; padding-right: 40px; }
  .c9-dialog__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: #666666; font-size: 15px; }
  .c9-dialog__meta span { display: inline-flex; align-items: center; gap: 6px; }
  .c9-dialog__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
  .c9-dialog .c9-btn--ghost { color: #292929; box-shadow: inset 0 0 0 1.5px #bdbdbd; }
  .c9-dialog .c9-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #292929; }
  .c9-dialog .c9-btn--ghost[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px #292929; background: #fff8cc; }
  /* Variante sombre (créneau de la grille, depuis la zone vidéo) */
  .c9-dialog--dark { background: #222222; color: #e0e0e0; }
  .c9-dialog--dark .c9-dialog__media { background: #141414; }
  .c9-dialog--dark .c9-dialog__kicker, .c9-dialog--dark .c9-dialog__meta { color: #bdbdbd; }
  .c9-dialog--dark .c9-dialog__meta .icon { color: var(--jaune); }
  .c9-dialog--dark .c9-dialog__title { color: #ffffff; }
  .c9-dialog--dark .c9-dialog__close, .show__close { background: rgba(20, 20, 20, .72); color: #ffffff; }
  .c9-dialog--dark .c9-dialog__close:hover, .show__close:hover { background: #141414; }
  .c9-dialog.theme-dark .c9-btn--ghost { color: #ffffff; box-shadow: inset 0 0 0 1.5px #5c5c5c; }
  .c9-dialog.theme-dark .c9-btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #ffffff; }
  .c9-dialog.theme-dark .c9-btn--ghost[aria-pressed="true"] { background: transparent; box-shadow: inset 0 0 0 1.5px var(--jaune); }
  .c9-dialog.theme-dark :focus-visible { outline-color: var(--jaune); }

  /* Fiche émission avec ses replays (inspirée de la fiche « Le Journal » de l'ébauche) */
  .c9-dialog--show { width: min(980px, calc(100vw - 24px)); background: #1c1c1c; color: #e0e0e0; }
  .show__hero { position: relative; aspect-ratio: 4 / 3; max-height: 62vh; overflow: hidden; background: #141414; }
  @media (min-width: 560px) { .show__hero { aspect-ratio: 16 / 9; } }
  @media (min-width: 768px) { .show__hero { aspect-ratio: 16 / 7.5; min-height: 380px; } }
  .show__hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .show__hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, #1c1c1c 0%, rgba(28, 28, 28, .9) 22%, rgba(28, 28, 28, .25) 62%, rgba(28, 28, 28, .45) 100%),
                linear-gradient(90deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 60%);
  }
  .show__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
  .show__close:focus-visible { outline-color: var(--jaune); }
  .show__hero-content {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    display: grid; gap: 10px; justify-items: start; padding: 0 20px 18px;
  }
  @media (min-width: 768px) { .show__hero-content { gap: 12px; padding: 0 36px 26px; } }
  .show__kicker { color: #e0e0e0; font: 500 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
  .show__title { color: #ffffff; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.04; text-wrap: balance; }
  .show__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 4px; }
  .show__actions .c9-iconbtn--outline { color: #ffffff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
  .show__actions .c9-iconbtn--outline:hover { background: rgba(255, 255, 255, .12); }
  .show__actions .c9-iconbtn[aria-pressed="true"] { background: var(--jaune); color: var(--on-accent); box-shadow: none; }
  .show__date { color: #bdbdbd; font-size: 14px; }
  @media (max-width: 559px) {
    /* Mobile : l'image en tête, le titre et les actions en dessous */
    .show__hero { aspect-ratio: auto; max-height: none; padding-top: 36vw; }
    .show__hero > img { bottom: auto; height: auto; aspect-ratio: 16 / 9; }
    .show__hero::after { background: linear-gradient(180deg, rgba(28, 28, 28, .15) 0, rgba(28, 28, 28, .15) 18vw, #1c1c1c 56.25vw); }
    .show__hero-content { position: relative; }
    .show__hero .c9-period { display: none; }
    .show__date { flex-basis: 100%; }
  }
  .show__body { display: grid; gap: 20px; padding: 10px 20px 28px; }
  @media (min-width: 768px) { .show__body { gap: 24px; padding: 14px 36px 36px; } }
  .show__about { display: grid; gap: 16px 40px; }
  @media (min-width: 768px) { .show__about { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); } }
  .show__lead { margin-bottom: 6px; color: #ffffff; font: 500 18px/1.35 var(--font-display); }
  .show__desc { color: #e0e0e0; font-size: 16px; line-height: 1.55; max-width: 62ch; }
  .show__facts { display: grid; gap: 10px; align-content: start; margin: 0; padding: 0; list-style: none; color: #e0e0e0; font-size: 14px; line-height: 1.4; }
  .show__facts li { display: flex; align-items: flex-start; gap: 10px; }
  .show__facts .icon { color: var(--jaune); }
  .show__section {
    padding-top: 18px; border-top: 1px solid #383838;
    color: #ffffff; font: 500 18px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  }
  .show__eps { display: grid; gap: 2px; margin: -6px -10px 0; }
  .show__ep {
    position: relative; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 10px; border-radius: 6px; transition: background-color var(--dur) var(--ease);
  }
  @media (min-width: 768px) { .show__ep { grid-template-columns: 196px minmax(0, 1fr) auto; gap: 20px; } }
  .show__ep:hover { background: #272727; }
  .show__thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #141414; }
  .show__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
  .show__ep:hover .show__thumb img { transform: scale(1.05); }
  .show__thumb .c9-badge { position: absolute; right: 6px; bottom: 6px; }
  .show__thumb-play {
    position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 44px; height: 44px; margin: -22px 0 0 -22px;
    border-radius: 50%; background: var(--jaune); color: var(--on-accent); opacity: 0; transition: opacity var(--dur) var(--ease);
  }
  .show__ep:hover .show__thumb-play, .show__ep:focus-within .show__thumb-play { opacity: 1; }
  .show__ep-date { color: #bdbdbd; font-size: 13px; }
  .show__ep-title { margin-top: 2px; color: #ffffff; font: 500 17px/1.3 var(--font-display); }
  .show__ep-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .show__ep-chapo {
    margin-top: 4px; color: #bdbdbd; font-size: 14px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .show__ep .c9-iconbtn { color: #ffffff; box-shadow: inset 0 0 0 1px #5c5c5c; }
  .show__ep .c9-iconbtn[aria-pressed="true"] { background: var(--jaune); color: var(--on-accent); box-shadow: none; }
  @media (max-width: 559px) {
    .show__ep { grid-template-columns: 104px minmax(0, 1fr) auto; gap: 10px; padding: 8px 10px; }
    .show__ep-chapo { display: none; }
    .show__ep-title { font-size: 15px; }
  }
  .show__more .c9-more { color: #ffffff; }

  .c9-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
  .c9-checklist li { position: relative; padding-left: 28px; }
  .c9-checklist li::before {
    content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--jaune) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23292929' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
  }

  @media (prefers-reduced-motion: no-preference) {
    .c9-dialog[open] { animation: c9-pop-in .22s var(--ease); }
    .c9-drawer[open] { animation: c9-slide-in .26s var(--ease); }
    .c9-pop:popover-open { animation: c9-pop-in .16s var(--ease); }
  }
  @keyframes c9-pop-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes c9-slide-in { from { transform: translateX(100%); } to { transform: none; } }

  /* Popovers (notifications, compte, menu Canal9) */
  .c9-pop {
    position: fixed; inset: auto; margin: 0;
    width: min(380px, calc(100vw - 16px)); max-height: min(70vh, 560px); overflow: auto;
    padding: 0; border: 0; border-radius: var(--radius-md);
    background: #ffffff; color: #303030; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .06);
    font-family: var(--font-text);
  }
  .c9-pop--menu { width: 260px; }
  .c9-pop__head {
    position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 8px 10px 20px; background: #ffffff; border-bottom: 1px solid #e0e0e0;
  }
  .c9-pop__title { color: #292929; font: 500 16px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
  .c9-pop__body { display: grid; gap: 14px; padding: 18px 20px 20px; font-size: 15px; }
  .c9-pop__stats { display: flex; gap: 8px; flex-wrap: wrap; }
  .c9-pop__stats span { padding: 4px 10px; border-radius: var(--radius-pill); background: #f4f4f4; font: 500 13px/1.3 var(--font-display); color: #292929; }
  .c9-pop .c9-iconbtn { color: #292929; }
  .c9-pop .c9-iconbtn:hover { background: #f4f4f4; }

  .c9-notifs { list-style: none; margin: 0; padding: 6px 0; }
  .c9-notifs li + li { border-top: 1px solid #f0f0f0; }
  .c9-notif { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 12px 20px; color: #303030; }
  .c9-notif:hover { background: #f8f8f8; }
  .c9-notif:focus-visible { outline-offset: -3px; }
  .c9-notif__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f4f4f4; color: #292929; }
  .c9-notif.is-unread .c9-notif__icon { background: var(--jaune); }
  .c9-notif__text strong { display: block; color: #292929; font: 500 15px/1.3 var(--font-display); }
  .c9-notif__text span { display: block; font-size: 14px; line-height: 1.4; }
  .c9-notif__text time { display: block; margin-top: 2px; color: #666666; font-size: 13px; }
  .c9-notifs__empty { padding: 20px; color: #666666; }

  .c9-menu { list-style: none; margin: 0; padding: 8px 0; }
  .c9-menu a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 11px 20px; color: #292929; font: 500 15px/1.3 var(--font-display); text-transform: uppercase; }
  .c9-menu a:hover { background: #f4f4f4; }
  .c9-menu a:focus-visible { outline-offset: -3px; }
  .c9-menu small { color: #666666; font: 400 12px/1 var(--font-text); text-transform: none; }

  /* Toast */
  .c9-toast {
    position: fixed; inset: auto auto 24px 50%; margin: 0; border: 0; overflow: visible;
    z-index: 200; transform: translate(-50%, 20px);
    display: flex; align-items: center; gap: 10px; max-width: min(520px, calc(100vw - 24px));
    padding: 12px 20px; border-radius: var(--radius-pill);
    background: #292929; color: #ffffff; box-shadow: var(--shadow-xl);
    font-size: 15px; line-height: 1.35; opacity: 0; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  .c9-toast:not([popover]) { display: flex; }
  .c9-toast .icon { color: var(--jaune); }
  .c9-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
}

/* =================================================================
   12. Pied de page
   ================================================================= */
@layer components {
  .c9-footer { padding-top: var(--space-40); background: #ffffff; color: #303030; border-top: 1px solid #e0e0e0; }
  .c9-footer__cols { display: grid; gap: var(--space-30) var(--space-20); grid-template-columns: minmax(0, 1fr); }
  @media (min-width: 560px) { .c9-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1024px) {
    .c9-footer__cols { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)) 1.6fr; }
    .c9-footer__col + .c9-footer__col { border-left: 1px solid #e0e0e0; padding-left: var(--space-20); }
  }
  .c9-footer__brand { color: #292929; font: 500 22px/1.2 var(--font-display); }
  .c9-footer__slogan { margin: 2px 0 12px; color: #666666; font: 500 14px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .08em; }
  .c9-footer address { font-style: normal; }
  .c9-footer__head { margin: 0 0 var(--space-10); color: #303030; font: 500 16px/24px var(--font-display); text-transform: uppercase; letter-spacing: .03em; }
  .c9-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .c9-footer li, .c9-footer p, .c9-footer address { font-size: var(--fs-body); line-height: 1.6; }
  .c9-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .c9-footer__note { margin-top: 8px; color: #666666; font-size: 13px !important; }
  .c9-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: var(--space-30); padding-block: var(--space-15) var(--space-24); border-top: 1px solid #e0e0e0;
    color: #666666; font-size: var(--fs-body-sm);
  }
  .c9-newsletter { display: flex; margin-top: var(--space-10); }
  .c9-newsletter input {
    flex: 1; min-width: 0; height: 46px; padding: 0 var(--space-20);
    border: 1px solid #bdbdbd; border-right: 0; border-radius: 32px 0 0 32px;
    font: 16px/24px var(--font-text); color: #000000; background: #ffffff;
  }
  .c9-newsletter input:focus-visible { outline: 2px solid #292929; outline-offset: 2px; }
  .c9-newsletter button {
    height: 46px; padding: 0 var(--space-20); border-radius: 0 32px 32px 0;
    background: var(--jaune); color: #000000; font: 500 14px/16.8px var(--font-display); text-transform: uppercase;
  }
  .c9-newsletter button:focus-visible { outline: 2px solid #292929; outline-offset: 2px; }
}

/* =================================================================
   13. Pages
   ================================================================= */
@layer pages {
  /* Zone Play de l'accueil */
  .play-zone { position: relative; }
  .play-zone__brand {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-24);
    color: #bdbdbd; font: 500 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .12em;
  }
  .play-zone__brand b { color: var(--anthracite); background: var(--jaune); padding: 6px 10px; border-radius: 4px; letter-spacing: .08em; }

  /* ---- Accueil : en-tête qui s'efface quand le player est accroché ---- */
  [data-page="home"] .c9-header { transition: transform .3s var(--ease); }
  .c9-header.is-hidden { transform: translateY(-100%); }

  /* ---- Le player « salon » ----
   * Accueil : accroché en haut de l'écran pendant qu'on parcourt la grille et le catalogue ;
   * tout ce qu'on choisit dessous s'y joue. Sur ordinateur, l'écran occupe la moitié de la
   * largeur du contenu (sans dépasser la moitié de la hauteur), les informations l'autre moitié. */
  .salon { --salon-h: 48vh; position: relative; }
  @media (min-width: 1024px) { .salon { --salon-h: 50vh; } }
  .salon__stage {
    position: sticky; top: var(--salon-top, 0px); z-index: 30;
    background: #161616; border-bottom: 1px solid #000000;
    transition: top .3s var(--ease), box-shadow .3s var(--ease);
  }
  .salon__stage.is-stuck { box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
  @media (max-height: 480px) { .salon__stage { position: relative; } }
  .salon__grid { display: grid; padding-inline: 0; }
  .salon__screen { width: 100%; }
  .salon__screen .c9-player__start .c9-player__icon { width: 72px; height: 72px; }

  /* Ce qui est à l'écran : panneau de l'accueil et panneau « À l'antenne » de la page Direct */
  .salon__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .salon__replay {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-pill);
    background: var(--jaune); color: var(--on-accent); font: 500 12px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
  }
  .salon__chs { display: inline-flex; flex: none; padding: 3px; gap: 2px; border: 1px solid #4f4f4f; border-radius: var(--radius-pill); }
  .salon__ch {
    display: inline-flex; align-items: baseline; gap: 6px; min-height: 32px; padding: 6px 12px; border-radius: var(--radius-pill);
    color: #e0e0e0; font: 500 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .03em;
  }
  .salon__ch small { color: #bdbdbd; font-size: 11px; }
  .salon__ch:hover { color: #ffffff; background: rgba(255, 255, 255, .08); }
  .salon__ch[aria-pressed="true"] { background: var(--jaune); color: var(--on-accent); }
  .salon__ch[aria-pressed="true"] small { color: var(--on-accent); }
  .salon__ch:focus-visible { outline: 2px solid var(--jaune); outline-offset: 2px; }
  .salon__kicker {
    color: #bdbdbd; font: 500 13px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .05em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .salon__title { color: #ffffff; font-size: 16px; line-height: 1.25; }
  .salon__meta { color: #e0e0e0; font-size: var(--fs-body-sm); }
  .salon__desc {
    color: #e0e0e0; font-size: 15px; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
  .salon__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .salon__page { color: #e0e0e0; font-size: var(--fs-body-sm); text-decoration: underline; text-underline-offset: 3px; }
  .salon__page:hover { color: #ffffff; }
  .salon__upnext { display: grid; gap: 8px; }
  .salon__upnext a { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 12px; color: #e0e0e0; font-size: 14px; line-height: 1.3; }
  .salon__upnext img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; }
  .salon__upnext span { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .salon__upnext a:hover span { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
  .salon__info :focus-visible, .direct__panel :focus-visible { outline-color: var(--jaune); }
  @media (max-width: 420px) {
    .salon__ch { padding-inline: 9px; }
    .salon__ch small { display: none; }
  }

  /* Accueil, sous 1024 px : une ligne compacte sous l'écran (badge, titre, chaînes) */
  @media (max-width: 1023px) {
    .salon__info {
      display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px;
      padding: 8px var(--gutter);
    }
    .salon__info .salon__head, .salon__info .salon__body { display: contents; }
    .salon__info .salon__head > .c9-live, .salon__info .salon__head > .salon__replay { grid-column: 1; grid-row: 1; }
    .salon__info .c9-live { font-size: 13px; gap: 6px; }
    .salon__info .c9-live::before { width: 8px; height: 8px; }
    .salon__info .salon__chs { grid-column: 3; grid-row: 1; }
    .salon__info .salon__title { grid-column: 2; grid-row: 1; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .salon__info :is(.salon__kicker, .salon__meta, .c9-progress, .salon__desc, .salon__actions, .salon__next) { display: none; }
  }
  @media (min-width: 768px) and (max-width: 1023px) {
    .salon__grid { justify-items: center; padding: 14px var(--gutter) 6px; }
    .salon__grid > .salon__screen, .salon__grid > .salon__info { width: min(100%, calc(var(--salon-h) * 16 / 9)); }
    .salon__info { padding-inline: 0; }
  }
  @media (min-width: 1024px) {
    .salon__grid {
      grid-template-columns: minmax(0, min(50%, calc(var(--salon-h) * 16 / 9))) minmax(340px, 1fr);
      gap: 28px; padding: 20px var(--gutter);
    }
    /* Le panneau prend la hauteur de l'écran ; ses blocs s'effacent si la place manque */
    .salon__info { container-type: size; display: flex; flex-direction: column; gap: 16px; min-width: 0; max-width: 680px; overflow: hidden; }
    .salon__info .salon__body { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
    .salon__info .salon__title {
      font-size: clamp(22px, 1.7vw, 28px); line-height: 1.15; text-wrap: balance;
      display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .salon__info .salon__body > .c9-progress { margin-block: 2px; }
    .salon__info .salon__next { margin-top: 6px; padding-top: 14px; border-top: 1px solid #333333; }
  }
  @container (max-height: 470px) { .salon__upnext li + li { display: none; } }
  @container (max-height: 420px) { .salon__next { display: none; } }
  @container (max-height: 340px) { .salon__desc { -webkit-line-clamp: 2; line-clamp: 2; } }

  .salon__content { padding-block: 40px 56px; }
  .salon__block + .salon__block { margin-top: 56px; }
  @media (min-width: 1024px) {
    .salon__content { padding-block: 56px 72px; }
    .salon__block + .salon__block { margin-top: 72px; }
  }

  /* ---- Page Direct : le player sur la largeur du site, panneau « À l'antenne » dépliable ---- */
  .direct { padding-block: 20px 40px; }
  @media (min-width: 1024px) { .direct { padding-block: 28px 56px; } }
  .direct__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; }
  .direct__player { position: relative; background: #000000; }
  @media (max-width: 767px) { .direct__player { margin-inline: calc(var(--gutter) * -1); } }
  @media (min-width: 1024px) { .direct__player .c9-player__start .c9-player__icon { width: 88px; height: 88px; } }
  .direct__toggle {
    position: absolute; top: 12px; right: 12px; z-index: 4;
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px 8px 12px;
    border-radius: var(--radius-pill); background: rgba(18, 18, 18, .8); color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    font: 500 14px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .04em;
    transition: background-color var(--dur) var(--ease);
  }
  .direct__toggle .icon { color: var(--jaune); }
  .direct__toggle:hover { background: rgba(18, 18, 18, .95); }
  .direct__toggle[aria-expanded="true"] { background: var(--jaune); color: var(--on-accent); box-shadow: none; }
  .direct__toggle[aria-expanded="true"] .icon { color: var(--on-accent); }
  .direct__toggle:focus-visible { outline: 2px solid var(--jaune); outline-offset: 2px; }
  .direct__panel { display: flex; flex-direction: column; gap: 14px; padding: 18px var(--gutter) 24px; background: #1f1f1f; color: #e0e0e0; }
  .direct__panel .salon__body { display: flex; flex-direction: column; gap: 10px; }
  .direct__panel .salon__title { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; text-wrap: balance; }
  .direct__panel .salon__next { margin-top: 6px; padding-top: 14px; border-top: 1px solid #383838; }
  .direct__panel .c9-linklike { text-align: left; }
  .direct__panel .c9-linklike:hover { color: #ffffff; }
  .direct__panel > .salon__body > .c9-btn { margin-top: 6px; }
  @media (min-width: 1024px) {
    /* Le panneau se déploie sur le player, à droite, sans couvrir le bouton ni les commandes du lecteur */
    .direct__panel {
      position: absolute; top: 64px; right: 12px; bottom: 64px; z-index: 3; width: min(400px, calc(100% - 24px));
      padding: 20px 22px 22px; border-radius: var(--radius-md); overflow-y: auto; overscroll-behavior: contain;
      scrollbar-width: thin; scrollbar-color: #4f4f4f transparent;
      background: rgba(18, 18, 18, .94); box-shadow: 0 18px 40px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .08);
    }
  }
  @media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
    .direct__panel:not([hidden]) { animation: c9-panel-in .28s var(--ease); }
  }
  @keyframes c9-panel-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }

  /* Fil d'Ariane */
  .c9-breadcrumb { padding-block: 14px; font-size: var(--fs-body-sm); color: var(--text-muted); }
  .c9-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
  .c9-breadcrumb li + li::before { content: "›"; margin-right: 6px; color: var(--text-muted); }
  .c9-breadcrumb a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
  .c9-breadcrumb [aria-current] { color: var(--text-muted); }

  /* ---- Page Play ---- */
  .play-hero { position: relative; overflow: hidden; background: #1d1d1d; }
  .play-hero__media { position: absolute; inset: 0; }
  .play-hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .play-hero__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .1) 100%),
                linear-gradient(0deg, #292929 0%, rgba(41, 41, 41, 0) 35%);
  }
  .play-hero__content {
    position: relative; display: grid; gap: var(--space-16); align-content: end;
    min-height: 460px; padding-block: 48px 40px;
  }
  @media (min-width: 1024px) { .play-hero__content { min-height: 540px; padding-block: 64px 56px; } }
  .play-hero__brand { display: inline-flex; align-items: center; gap: 10px; color: #e0e0e0; font: 500 14px/1 var(--font-display); text-transform: uppercase; letter-spacing: .14em; }
  .play-hero__brand b { color: var(--anthracite); background: var(--jaune); padding: 6px 10px; border-radius: 4px; }
  .play-hero__title { max-width: 18ch; color: #ffffff; font-size: clamp(30px, 4.2vw, 56px); line-height: 1.08; text-wrap: balance; }
  .play-hero__chapo { max-width: 56ch; color: #e0e0e0; font-size: var(--fs-body-lg); line-height: 1.5; }
  .play-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

  .play-toolbar { position: relative; z-index: 20; background: rgba(41, 41, 41, .96); border-bottom: 1px solid var(--gris-filet); backdrop-filter: blur(8px); }
  @media (min-width: 768px) { .play-toolbar { position: sticky; top: var(--header-top); } }
  @media (min-width: 1024px) { .play-toolbar { top: var(--header-total); } }
  .play-toolbar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-block: 14px; }
  .c9-field { position: relative; flex: 1 1 260px; max-width: 460px; }
  .c9-field input {
    width: 100%; height: 44px; padding: 0 18px 0 46px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-input);
    background: var(--surface-sunken); color: var(--ink); font-family: var(--font-text);
  }
  .c9-field input::placeholder { color: #9e9e9e; }
  .c9-field input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
  .c9-field .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--jaune); pointer-events: none; }
  .play-toolbar .c9-chips { flex: 1 1 100%; }
  @media (min-width: 1280px) { .play-toolbar .c9-chips { flex: 1 1 auto; } }
  .play-results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-block: 32px 24px; }
  .play-results-head h2 { margin-right: auto; }
  .play-results-empty { padding: 40px 0; color: var(--text); }

  /* ---- Page Émission ---- */
  .em-hero { position: relative; overflow: hidden; background: #1d1d1d; }
  .em-hero__grid { position: relative; display: grid; gap: var(--space-24); padding-block: 32px 40px; }
  @media (min-width: 1024px) { .em-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 48px; padding-block: 56px; } }
  .em-hero__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; order: -1; }
  @media (min-width: 1024px) { .em-hero__media { order: 0; } }
  .em-hero__media img { width: 100%; height: 100%; object-fit: cover; }
  .em-hero__text { display: grid; gap: var(--space-16); justify-items: start; }
  .em-hero__title { color: #ffffff; font-size: clamp(34px, 4.4vw, var(--fs-hero-title)); line-height: 1.05; }
  .em-hero__desc { max-width: 52ch; color: #e0e0e0; font-size: var(--fs-body-lg); }
  .em-hero__facts { display: grid; gap: 6px; color: #e0e0e0; font-size: 15px; }
  .em-hero__facts span { display: inline-flex; gap: 8px; align-items: center; }
  .em-hero__facts .icon { color: var(--jaune); }
  .em-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

  /* ---- Page Sujet ---- */
  .sujet-layout { display: grid; gap: var(--space-40); padding-block: 8px 56px; }
  @media (min-width: 1100px) { .sujet-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; } }
  .sujet-head { display: grid; gap: var(--space-16); margin-top: var(--space-24); }
  .sujet-head h1 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.15; text-wrap: balance; }
  .sujet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--text-muted); font-size: 15px; }
  .sujet-meta span { display: inline-flex; align-items: center; gap: 6px; }
  .sujet-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .sujet-chapo { color: var(--ink); font: 500 clamp(19px, 1.6vw, 22px)/1.45 var(--font-display); max-width: 62ch; }
  .prose { display: grid; gap: var(--space-16); max-width: 68ch; font-size: var(--fs-body-lg); line-height: 1.65; }
  .sujet-from { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--surface-alt); max-width: 68ch; }
  .sujet-from img { width: 112px; aspect-ratio: 16 / 9; object-fit: cover; flex: none; }
  .sujet-from p { font-size: 14px; color: var(--text-muted); }
  .sujet-from a { color: var(--ink); font: 500 17px/1.3 var(--font-display); text-decoration: none; }
  .sujet-from a:hover { text-decoration: underline; }
  .sujet-proto { display: flex; align-items: center; gap: 10px; max-width: 68ch; padding: 12px 16px; border: 1px dashed var(--border-strong); color: var(--text-muted); font-size: 14px; }
  .sujet-aside { display: grid; gap: var(--space-20); align-content: start; }
  .sujet-aside__title { font-size: 18px; text-transform: uppercase; letter-spacing: .03em; }
  .c9-mini { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; position: relative; align-items: start; }
  .c9-mini__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-sunken); }
  .c9-mini__media img { width: 100%; height: 100%; object-fit: cover; }
  .c9-mini__media .c9-badge { position: absolute; right: 4px; bottom: 4px; font-size: 11px; padding: 2px 5px; }
  .c9-mini__kicker { color: var(--text-muted); font: 500 11px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
  .c9-mini__title { font: 500 15px/1.3 var(--font-display); color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .c9-mini__title a::after { content: ""; position: absolute; inset: 0; }
  .c9-mini:hover .c9-mini__title { text-decoration: underline; text-underline-offset: 3px; }
  .c9-mini-list { display: grid; gap: var(--space-16); list-style: none; margin: 0; padding: 0; }
  .c9-mini.is-current { opacity: .55; }

}

/* =================================================================
   14. Utilitaires et mouvement
   ================================================================= */
@layer utilities {
  .sr-only {
    position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important;
    overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
  }
  .u-mt-0 { margin-top: 0 !important; }
  .u-hide-mobile { display: none; }
  @media (min-width: 768px) { .u-hide-mobile { display: revert; } }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  }
}
