/* Page du direct : charte Figma « Play · Live » (fond #0e1b45, Inter, rouge #e30613).
   Polices auto-hébergées : la CSP de la page du lecteur est default-src 'self'. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-600.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-700.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 800; font-display: swap; src: url("/assets/fonts/inter-800.woff2") format("woff2"); }

:root {
  --navy: #0e1b45;
  --navy-deep: #0a1434;
  --red: #e30613;
  --red-light: #f42137;
  --ink-light: #f4f4f5;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--navy); color: #fff; font-family: var(--font); -webkit-font-smoothing: antialiased; }
body.ca-live { display: flex; flex-direction: column; min-height: 100vh; }
img { display: block; }

/* En-tête site (desktop) : liens inertes pendant le match, Play actif */
.ca-header { display: flex; align-items: center; justify-content: space-between; height: 50px; padding: 0 40px; background: var(--navy); }
.ca-header-logo img { width: 25px; height: 36px; object-fit: contain; }
.ca-header-nav { display: flex; gap: 40px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.3); }
.ca-header-nav .is-active { color: var(--red); font-weight: 800; }
.ca-header-right { display: flex; align-items: center; gap: 8px; }
.ca-header-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: var(--red-light); opacity: .2; }
.ca-logout { margin-left: 8px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; cursor: pointer; }
.ca-logout:hover { background: rgba(255,255,255,.1); }
.ca-logout:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Barre blanche (mobile) : icône immersion + titre */
.ca-topbar { display: none; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px 9px; background: #fff; border-bottom: 1px solid rgba(10,6,8,.1); color: #0f0709; }
.ca-topbar-icon { display: grid; place-items: center; width: 39px; height: 29px; }
.ca-topbar-icon img { filter: invert(1) brightness(.2); }
.ca-topbar-title { flex: 1; margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: .32px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ca-logout.is-mobile { margin: 0; color: #0f0709; border-color: rgba(10,6,8,.25); }

/* Bandeau noir */
.ca-immersion { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 10px; background: #000; font-size: 17px; font-weight: 700; letter-spacing: .17px; }

/* Contenu : lecteur à droite, avant-match + sponsors à gauche */
.ca-content { flex: 1; display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 75px; align-items: start; padding: 32px 120px 41px; }
.ca-direct { grid-column: 2; grid-row: 1; }
.ca-side { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 224px; }
.ca-player { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 17.8px; overflow: hidden; background: #000; }
.ca-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.ca-eyebrow { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 1.92px; text-transform: uppercase; color: var(--red); }
.ca-h2 { margin: 3px 0 0; font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink-light); text-transform: capitalize; }
.ca-avant { padding: 0 15px; }
.ca-teams { display: flex; align-items: center; justify-content: space-between; width: 328px; max-width: 100%; margin-top: 16px; }
.ca-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ca-team b { font-size: 12px; font-weight: 800; white-space: nowrap; }
.ca-team small { font-size: 8px; font-weight: 700; color: rgba(255,255,255,.5); }
.ca-crest { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 42px; }
.ca-crest img { width: 36px; height: 45px; object-fit: contain; }
.ca-vs { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ca-vs-text { font-size: 38px; line-height: 1; font-weight: 800; color: rgba(255,255,255,.92); }
.ca-live-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px 3px 5px; border-radius: 999px; background: var(--red); font-size: 6px; font-weight: 800; letter-spacing: .6px; }

.ca-sponsors { padding: 0 14px; }
.ca-sponsor-strip { position: relative; width: 332px; max-width: 100%; margin-top: 9px; border-radius: 12px; overflow: hidden; }
.ca-sponsor-strip::before, .ca-sponsor-strip::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; pointer-events: none; z-index: 1; }
.ca-sponsor-strip::before { left: 0; background: linear-gradient(90deg, var(--navy), rgba(14,27,69,0)); }
.ca-sponsor-strip::after { right: 0; background: linear-gradient(270deg, var(--navy), rgba(14,27,69,0)); }
.ca-sponsor-track { display: flex; align-items: center; gap: 7px; padding: 14px 0; margin-left: -26px; width: max-content; }
.ca-sponsor-track img { height: 24.5px; width: auto; }

/* Mobile : barre blanche + bandeau + lecteur 16:9 + avant-match + sponsors (maquette « Play · Live mobile ») */
@media (max-width: 900px) {
  .ca-header { display: none; }
  .ca-topbar { display: flex; }
  .ca-immersion { font-size: 12.9px; padding: 7.5px; gap: 6px; }
  .ca-immersion img { width: 13.5px; height: 13.5px; }
  .ca-content { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0 0 24px; }
  .ca-direct, .ca-side { width: 100%; }
  .ca-player { border-radius: 0; }
  .ca-side { gap: 78px; padding-top: 24px; }
  .ca-avant, .ca-sponsors { padding: 0 15px; }
  .ca-teams { width: auto; }
  .ca-sponsor-strip { width: auto; }
}
