/* Insightstotal – améliorations accueil : dégradé animé, appareils en boucle, section « Pourquoi Insightstotal » */
@property --cp-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root { --cp-grad: linear-gradient(90deg, #21bbee, #149bef 33%, #2769da 71%, #3d3df2); }

/* ---------- 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: #149bef !important;
  background-image: linear-gradient(120deg, #21bbee 0%, #149bef 25%, #2769da 50%, #3d3df2 75%, #21bbee 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(39,105,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(39,105,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 Insightstotal » (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: #07071a; color: #fff; padding: clamp(16px, 3vw, 36px); box-shadow: 0 40px 80px -40px rgba(20,155,239, .55); }
.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(50px) saturate(1.25) brightness(.5); background: conic-gradient(from var(--cp-spin) at 45% 50%, #0b3455, #149bef 12%, #21bbee 20%, #0b3455 34%, #103166 50%, #2769da 62%, #3d3df2 74%, #0b3455 90%); animation: cp-spin 22s linear infinite; }
@keyframes cp-spin { to { --cp-spin: 360deg; } }
.cx-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(255, 255, 255, .14) 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: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .16); stroke-width: 1.2; transition: fill .4s, stroke .4s; }
.cx-tile { fill: rgba(255, 255, 255, .08); transition: fill .4s; }
.cx-ico { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cx-t { fill: #fff; font: 600 17px var(--fonts--body, system-ui, sans-serif); }
.cx-narrow .cx-t { font-size: 14px; }
.cx-s { fill: rgba(255, 255, 255, .62); font: 500 13px var(--fonts--body, system-ui, sans-serif); }
.cx-live { fill: #34d399; }
.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: .55; animation: cxFlow 1.2s linear infinite; transition: opacity .4s, stroke-width .4s; }
@keyframes cxFlow { to { stroke-dashoffset: -30; } }
.cx-pk { fill: #fff; filter: drop-shadow(0 0 6px #21bbee) drop-shadow(0 0 10px #3d3df2); }
.cx-hub-core { fill: #0b0b24; stroke: rgba(255, 255, 255, .22); stroke-width: 1.5; }
.cx-hub-halo { fill: none; stroke: #21bbee; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: cxHalo 2.6s ease-out infinite; }
.cx-hub-halo.h2 { stroke: #3d3df2; 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,187,238, .12); stroke: rgba(33,187,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; }
}
