/* ClairPlay – améliorations accueil : dégradé animé, appareils en boucle, section « Pourquoi ClairPlay » */
@property --cp-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --cp-grad: linear-gradient(90deg, #21ccee, #1470ef 33%, #6927da 71%, #f23d94); }

/* ---------- Dégradé animé aux couleurs du logo ---------- */
@keyframes cp-grad-move { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes cp-sheen { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0% 0; } }
.cp-anim-grad,
.pr-card.best,
.highlight_marquee {
  background-color: #1470ef !important;
  background-image: linear-gradient(120deg, #21ccee 0%, #1470ef 25%, #6927da 50%, #f23d94 75%, #21ccee 100%) !important;
  background-size: 300% 300% !important;
  animation: cp-grad-move 14s ease-in-out infinite;
}
/* Carte 12 mois : voile léger pour garder le texte blanc lisible + reflet qui passe */
.pr-card.best { box-shadow: 0 26px 60px -28px rgba(105, 39, 218, .75); }
.pr-card.best::before { background: linear-gradient(180deg, rgba(7, 7, 20, .42), rgba(7, 7, 20, .18) 50%, rgba(7, 7, 20, .5)) !important; }
.pr-card.best::after { content: ""; position: absolute; inset: 0; border-radius: 16px; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%) 0 0 / 300% 100% no-repeat; animation: cp-sheen 6s ease-in-out infinite; }
/* Bande de messages */
.highlight_marquee { box-shadow: 0 24px 50px -30px rgba(105, 39, 218, .7); }
.highlight_marquee-item { background: rgba(255, 255, 255, .94) !important; border-color: rgba(255, 255, 255, .6) !important; color: #0a0a12; }
.highlight_marquee:hover .highlight_marquee-group { animation-play-state: running !important; }
html[data-theme="dark"] .highlight_marquee-item { background: rgba(10, 10, 15, .78) !important; border-color: rgba(255, 255, 255, .18) !important; color: #f2f2f5; }
html[data-theme="dark"] .highlight_marquee-item svg { color: #f2f2f5 !important; }
html[data-theme="dark"] .highlight_marquee-item span[style] { color: #f2f2f5 !important; }

/* ---------- Appareils compatibles : les cartes défilent toutes seules ---------- */
@keyframes cp-mq-left { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-100%, 0, 0); } }
@keyframes cp-mq-right { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
.home1_integrations_box .integrations_marquee { justify-content: flex-start; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.home1_integrations_box .integrations_marquee-group { animation: cp-mq-left 36s linear infinite; will-change: transform; }
.home1_integrations_box .integrations_marquee.is-2nd .integrations_marquee-group { animation-name: cp-mq-right; animation-duration: 40s; }
.home1_integrations_box .integrations-list { display: flex !important; flex-wrap: nowrap !important; }

/* ---------- Section « Pourquoi ClairPlay » (remplace « Prêt à commencer ? ») ---------- */
.cpw { padding: 96px 0 104px; background: #fff; }
.cpw-in { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.cpw-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.cpw-head h2 { margin: 12px 0 10px; }
.cpw-head h2 span { background: var(--cp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.cx { position: relative; isolation: isolate; overflow: hidden; margin: 0 0 28px; border-radius: 24px; background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%); border: 1px solid rgba(255, 85, 0, 0.18); color: #0f172a; padding: clamp(16px, 3vw, 36px); box-shadow: 0 20px 50px -20px rgba(255, 85, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.05); }
.cx-lq { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; pointer-events: none; }
.cx-lq i { position: absolute; inset: -40%; filter: blur(60px); background: radial-gradient(circle at 50% 50%, rgba(255, 85, 0, 0.08) 0%, rgba(0, 180, 216, 0.05) 50%, transparent 70%); opacity: 0.8; }
@keyframes cp-spin { to { --cp-spin: 360deg; } }
.cx-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .4; background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1.2px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 40%, transparent 100%); mask-image: radial-gradient(80% 80% at 50% 50%, #000 40%, transparent 100%); }
.cx-svg { display: block; width: 100%; height: auto; overflow: visible; }
.cx-narrow { display: none; max-width: 420px; margin-inline: auto; }
@media (max-width: 700px) { .cx-wide { display: none; } .cx-narrow { display: block; } .cpw { padding: 64px 0 72px; } }
.cx-node rect:first-child { fill: #ffffff; stroke: #e2e8f0; stroke-width: 1.5; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.04)); transition: fill .4s, stroke .4s; }
.cx-tile { fill: #f8fafc; transition: fill .4s; }
.cx-ico { fill: none; stroke: #ff5500; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cx-t { fill: #0f172a; font: 700 16px var(--fonts--body, system-ui, sans-serif); }
.cx-narrow .cx-t { font-size: 14px; }
.cx-s { fill: #64748b; font: 500 13px var(--fonts--body, system-ui, sans-serif); }
.cx-live { fill: #10b981; }
.cx-d { animation: cxPing 4s ease-in-out infinite; animation-delay: calc(var(--k) * .45s + 1.1s); }
@keyframes cxPing { 0%, 88%, 100% { opacity: 1; } 92% { opacity: .65; } }
.cx-path { fill: none; stroke: url(#cx-line); stroke-width: 2.4; stroke-dasharray: 6 9; stroke-linecap: round; opacity: .7; animation: cxFlow 1.2s linear infinite; transition: opacity .4s, stroke-width .4s; }
@keyframes cxFlow { to { stroke-dashoffset: -30; } }
.cx-pk { fill: #ff5500; filter: drop-shadow(0 0 6px #ff7700) drop-shadow(0 0 10px #ff5500); }
.cx-hub-core { fill: #ffffff; stroke: #ff5500; stroke-width: 2.5; filter: drop-shadow(0 4px 14px rgba(255,85,0,0.25)); }
.cx-hub-halo { fill: none; stroke: #21ccee; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: cxHalo 2.6s ease-out infinite; }
.cx-hub-halo.h2 { stroke: #f23d94; animation-delay: 1.3s; }
@keyframes cxHalo { 0% { opacity: .7; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.35); } }
.cx[data-active] .cx-path:not(.out) { opacity: .14; }
.cx[data-active="m3u"] .cx-path[data-m="m3u"], .cx[data-active="xtream"] .cx-path[data-m="xtream"], .cx[data-active="mag"] .cx-path[data-m="mag"] { opacity: 1; stroke-width: 3.4; }
.cx[data-active] .cx-m { opacity: .5; transition: opacity .4s; }
.cx[data-active="m3u"] .cx-m[data-m="m3u"], .cx[data-active="xtream"] .cx-m[data-m="xtream"], .cx[data-active="mag"] .cx-m[data-m="mag"] { opacity: 1; }
.cx[data-active="m3u"] .cx-m[data-m="m3u"] rect:first-child, .cx[data-active="xtream"] .cx-m[data-m="xtream"] rect:first-child, .cx[data-active="mag"] .cx-m[data-m="mag"] rect:first-child { fill: rgba(33, 204, 238, .12); stroke: rgba(33, 204, 238, .7); }
.cx[data-active="m3u"] .cx-wide .cx-m[data-m="m3u"] .cx-tile, .cx[data-active="xtream"] .cx-wide .cx-m[data-m="xtream"] .cx-tile, .cx[data-active="mag"] .cx-wide .cx-m[data-m="mag"] .cx-tile { fill: url(#cx-g); }
.cx[data-active="m3u"] .cx-narrow .cx-m[data-m="m3u"] .cx-tile, .cx[data-active="xtream"] .cx-narrow .cx-m[data-m="xtream"] .cx-tile, .cx[data-active="mag"] .cx-narrow .cx-m[data-m="mag"] .cx-tile { fill: url(#cx-g-n); }
.cpw-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 16px; text-align: center; }
.cpw-cta .button.is-secondary { height: auto; }
.cpw-note { width: 100%; margin: 4px 0 0; font: 400 12px var(--fonts--badge, monospace); color: #8a8a96; }
html[data-theme="dark"] .cpw { background: #0a0a0f; }
html[data-theme="dark"] .cpw-note { color: #a1a1aa; }

@media (prefers-reduced-motion: reduce) {
  .cp-anim-grad, .pr-card.best, .highlight_marquee, .cx-lq i { animation: none; }
  .pr-card.best::after { display: none; }
  .home1_integrations_box .integrations_marquee-group { animation: none; }
  .cx-path, .cx-hub-halo, .cx-d { animation: none; }
  .cx-pk { display: none; }
}


/* ========================================================================== */
/* KIJKIPTV HIGH CONTRAST & HEADER SINGLE LINE STANDARDS                      */
/* ========================================================================== */
header.site-header {
  position: sticky !important;
  top: 10px !important;
  z-index: 100 !important;
  margin: 10px auto 0 !important;
  max-width: 1440px !important;
  width: calc(100% - 24px) !important;
  padding: 0 12px !important;
}

.nav-glass {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  padding: 8px 20px !important;
  gap: 14px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 18px !important;
  position: relative !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10), 0 1px 3px rgba(0,0,0,0.06) !important;
}

.brand-logo {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  gap: 10px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.nav-links li {
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.nav-links a {
  color: #0f172a !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  padding: 6px 9px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  transition: all 0.2s ease !important;
}

.nav-links a:hover {
  color: #ff5500 !important;
  background: rgba(255, 85, 0, 0.08) !important;
}

/* Logos Marquee Broadcast Deck - High Contrast Stadium Dark */
.logos_marquee-section {
  margin-top: 52px !important;
  padding: 26px 0 34px !important;
  background: linear-gradient(180deg, #060913 0%, #0b1120 50%, #060913 100%) !important;
  border-top: 1px solid rgba(255, 85, 0, 0.25) !important;
  border-bottom: 1px solid rgba(255, 85, 0, 0.25) !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 3 !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.telemetry-title {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
}

.telemetry-chip {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  background: rgba(255, 85, 0, 0.16) !important;
  color: #ffaa00 !important;
  border: 1px solid rgba(255, 85, 0, 0.35) !important;
}

.marquee-logo-card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 22px !important;
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 14px !important;
  min-width: 135px !important;
  height: 56px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.25s ease !important;
}

.marquee-logo-card:hover {
  border-color: #ff5500 !important;
  background: #17243c !important;
  box-shadow: 0 8px 24px rgba(255, 85, 0, 0.35) !important;
  transform: translateY(-2px) !important;
}

.marquee-logo-card img {
  max-height: 38px !important;
  max-width: 110px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45)) !important;
}

/* Spec Bento Grid & High Contrast */
.spec-card {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  padding: 22px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12) !important;
}

.spec-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255, 85, 0, 0.5) !important;
  box-shadow: 0 12px 28px -6px rgba(255, 85, 0, 0.25) !important;
  background: #17243c !important;
}

.spec-card.highlight {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.18), #0f172a) !important;
  border: 1.5px solid rgba(34, 197, 94, 0.6) !important;
  box-shadow: 0 6px 24px rgba(34, 197, 94, 0.15) !important;
}

.spec-dt {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 8px 0 !important;
  font-family: 'Space Grotesk', system-ui, sans-serif !important;
}

.spec-dd {
  font-size: 0.94rem !important;
  color: #cbd5e1 !important;
  line-height: 1.65 !important;
  margin: 0 !important;
}

.spec-tag {
  color: #ffaa00 !important;
  font-weight: 800 !important;
}

.spec-badge {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.spec-badge.live {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(34, 197, 94, 0.5) !important;
}


/* ========================================================================== */
/* RESPONSIVE MOBILE NAVIGATION & HORIZONTAL OVERFLOW PREVENTION              */
/* ========================================================================== */
html, body {
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
}

*, *::before, *::after {
  box-sizing: inherit;
}

main, section, article, footer, header {
  max-width: 100vw !important;
  box-sizing: border-box !important;
}

/* Desktop Header (> 960px) */
@media (min-width: 961px) {
  header.site-header {
    position: sticky !important;
    top: 10px !important;
    z-index: 100 !important;
    margin: 10px auto 0 !important;
    max-width: 1440px !important;
    width: calc(100% - 24px) !important;
    padding: 0 12px !important;
  }
  .nav-glass {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    padding: 8px 20px !important;
    gap: 14px !important;
  }
  .nav-links {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    gap: 10px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobile-quick-nav {
    display: none !important;
  }
}

/* Mobile Header (<= 960px) */
@media (max-width: 960px) {
  header.site-header {
    position: sticky !important;
    top: 6px !important;
    z-index: 100 !important;
    margin: 6px auto 0 !important;
    width: calc(100% - 16px) !important;
    padding: 0 !important;
    max-width: 100% !important;
  }
  .nav-glass {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 8px 14px !important;
    gap: 10px !important;
  }
  .nav-links {
    display: none !important;
  }
  .brand-logo {
    transform: scale(0.92);
    transform-origin: left center;
  }
  .btn-oranje {
    padding: 8px 14px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
  }
  /* Horizontal swipe quick nav for mobile */
  .mobile-quick-nav {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 8px 4px 4px !important;
    margin: 4px 0 0 !important;
    max-width: 100% !important;
  }
  .mobile-quick-nav::-webkit-scrollbar {
    display: none !important;
  }
  .mqn-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    background: rgba(15, 23, 42, 0.88) !important;
    color: #f1f5f9 !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    flex-shrink: 0 !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
  }
  .mqn-pill:hover,
  .mqn-pill.mqn-highlight {
    background: #b93800 !important;
    color: #ffffff !important;
    border-color: #d64000 !important;
    box-shadow: 0 2px 10px rgba(185, 56, 0, 0.35) !important;
  }
}

/* Responsive Mobile Typography & Layout */
@media (max-width: 768px) {
  .top-announcement {
    font-size: 0.78rem !important;
    padding: 8px 12px !important;
    line-height: 1.4 !important;
  }
  .hero-stadium {
    padding-top: 18px !important;
  }
  .hero-heading {
    font-size: clamp(1.85rem, 7.5vw, 2.4rem) !important;
    line-height: 1.18 !important;
  }
  .hero-sub {
    font-size: 0.94rem !important;
    line-height: 1.6 !important;
  }
  .hero-sport-pill {
    padding: 8px 12px !important;
    gap: 10px !important;
  }
  .hsp-thumb {
    width: 54px !important;
    height: 34px !important;
  }
  .hsp-text strong {
    font-size: 0.85rem !important;
  }
  .hero-cta-bar {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .hero-cta-bar a {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 12px 18px !important;
    font-size: 0.92rem !important;
  }
  .hero-stats-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    margin-top: 24px !important;
  }
  .hero-stats-item {
    padding: 10px 4px !important;
    text-align: center !important;
  }
  .hero-stats-item strong {
    font-size: 1.15rem !important;
  }
  .hero-stats-item span {
    font-size: 0.72rem !important;
  }
  .marquee-telemetry-bar {
    gap: 6px !important;
    margin-bottom: 12px !important;
  }
  .telemetry-title {
    font-size: 0.74rem !important;
    width: 100% !important;
    text-align: center !important;
  }
}

@media (max-width: 640px) {
  .hero-stadium {
    padding: 14px 0 34px !important;
  }
  .spec-bento-hero {
    padding: 20px 14px !important;
    border-radius: 16px !important;
  }
  .spec-bento-hero > div:first-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  .bento-card {
    padding: 18px 14px !important;
    border-radius: 14px !important;
  }
  .pr-card {
    padding: 24px 16px !important;
    border-radius: 16px !important;
  }
  .section-pad {
    padding: 44px 0 !important;
  }
  .citable-facts-section {
    padding: 24px 14px !important;
    margin: 20px 0 !important;
  }
  .citable-fact-card {
    padding: 16px 14px !important;
  }
  .spec-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .pr-grid, .pr-grid:not([hidden]) {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .cities-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .footer-bento-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .fmb-word-kijk, .fmb-word-iptv {
    font-size: 2.1rem !important;
  }
  .fmb-play-badge svg {
    width: 46px !important;
    height: 34px !important;
  }
  .fmb-brand-title {
    font-size: 1.0rem !important;
  }
  .fmb-tagline {
    font-size: 0.85rem !important;
    padding: 0 8px !important;
  }
  .footer-mega-brand {
    padding: 32px 14px 24px !important;
    margin-top: 32px !important;
    border-radius: 18px !important;
  }
}

/* ── Mobile Touch & Scroll Ergonomics ── */
@media (max-width: 960px) {
  .mobile-quick-nav {
    scroll-snap-type: x proximity !important;
    overscroll-behavior-x: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .mqn-pill {
    scroll-snap-align: start !important;
    touch-action: pan-x !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .mqn-pill:active {
    transform: scale(0.96) !important;
  }
  .btn-oranje:active, .swa-btn:active, .btn-primary:active {
    transform: scale(0.97) !important;
  }
}
