/* Mouvement et rythme, inspirés de l'écriture visuelle de whoop.com : très grands titres légers, fond noir,
   produit en vedette, sections qui s'empilent, défilements lents. */
:root { --eg-ease: cubic-bezier(.2, .7, .2, 1); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Barre de progression */
.eg-progress { display: none; position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, #ED7B84, #5B67FF); transform: scaleX(0); transform-origin: 0 50%; z-index: 120; pointer-events: none; }

/* Titres : les mots montent un à un */
.eg-js .eg-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.eg-js .eg-words .w > span { display: inline-block; transform: translateY(112%); transition: transform 900ms var(--eg-ease); transition-delay: calc(var(--i) * 55ms); will-change: transform; }
.eg-js .eg-words.is-in .w > span { transform: none; }

/* Apparition au défilement */
.eg-js .eg-rv { opacity: 0; transform: translateY(34px); transition: opacity 800ms var(--eg-ease), transform 800ms var(--eg-ease), box-shadow 350ms var(--eg-ease); transition-delay: var(--d, 0ms); }
.eg-js .eg-rv.is-in { opacity: 1; transform: none; }
.eg-js .eg-rv.is-in:hover { transform: translateY(-6px); transition-delay: 0ms; }
@media (prefers-reduced-motion: reduce) { .eg-js .eg-rv, .eg-js .eg-words .w > span { opacity: 1 !important; transform: none !important; transition: none !important; } }

/* Boutons : la flèche glisse */
.cy-btn .cy-arrow, .nx-btn .cy-arrow { display: inline-block; transition: transform 260ms var(--eg-ease); }
.cy-btn:hover .cy-arrow, .nx-btn:hover .cy-arrow { transform: translateX(5px); }

/* Pastille de téléchargement flottante */
.eg-fab { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translate(-50%, 160%); transition: transform 500ms var(--eg-ease); box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.eg-fab.is-on { transform: translate(-50%, 0); }

/* En-tête de page : mêmes symboles que l'accueil */
.eg-pagehead::after { display: none; }
.eg-pagehead { min-height: clamp(300px, 42vh, 460px); display: flex; align-items: flex-end; }
.eg-pagehead > .cy-container { width: 100%; position: relative; z-index: 1; }
.eg-pagehead .nx-hero__art { position: absolute; inset: 0; z-index: -1; }
.eg-pagehead .nx-sym.a { right: 7%; top: -10%; height: 96%; background: #ED7B84; translate: 0 var(--py, 0); }
.eg-pagehead .nx-sym.b { right: 31%; bottom: -22%; height: 58%; background: #232ED1; translate: 0 var(--py2, 0); }
.eg-pagehead .nx-sym.c { right: -7%; bottom: -30%; height: 84%; background: rgba(240, 245, 249, .12); }
.eg-pagehead h1 { font-size: clamp(40px, 6.4vw, 104px); max-width: 16ch; line-height: 1; }
@media (max-width: 720px) { .eg-pagehead .nx-sym.a { right: -10%; height: 70%; } .eg-pagehead .nx-sym.b { right: 40%; } }

/* Accueil : héros plein écran avec le produit en vedette */
.eg-hero { min-height: min(100svh - 76px, 980px); align-items: center; }
.eg-hero > .cy-container { padding-block: clamp(40px, 6vw, 90px); position: relative; z-index: 1; }
.eg-hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.eg-hero h1 { font-size: clamp(46px, 7.4vw, 124px); max-width: 11ch; line-height: .98; }
.eg-hero .nx-hero__lead { max-width: 44ch; }
.eg-hero .nx-sym.a { right: 4%; top: 6%; height: 74%; translate: 0 var(--py, 0); }
.eg-hero .nx-sym.b { right: 38%; bottom: 4%; height: 44%; translate: 0 var(--py2, 0); }
.eg-hero .nx-sym.c { right: -6%; bottom: -16%; height: 84%; translate: 0 var(--py3, 0); }
@media (max-width: 960px) { .eg-hero__grid { grid-template-columns: 1fr; } .eg-mock { display: none; } }
.eg-scrollhint { position: absolute; left: 50%; bottom: 20px; width: 22px; height: 36px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px; translate: -50% 0; }
.eg-scrollhint::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: eg-wheel 1.8s ease-in-out infinite; }
@keyframes eg-wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 960px) { .eg-scrollhint { display: none; } }

/* Fenêtres produit (illustration en CSS) */
.eg-mock { position: relative; height: clamp(400px, 44vw, 580px); --mx: 0; --my: 0; }
.eg-m { position: absolute; background: rgba(18, 18, 22, .82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; padding: 18px 20px; color: #fff; box-shadow: 0 40px 90px rgba(0,0,0,.5); animation: eg-float 8s ease-in-out infinite; transform: translate3d(calc(var(--mx) * var(--k, 10px)), calc(var(--my) * var(--k, 10px)), 0); transition: transform 300ms ease-out; }
@keyframes eg-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.eg-m--a { left: 0; top: 4%; width: 80%; --k: 14px; }
.eg-m--b { right: 0; top: 46%; width: 58%; --k: -18px; animation-delay: -2.6s; }
.eg-m--c { left: 8%; bottom: 0; width: 50%; --k: 22px; animation-delay: -5s; }
.eg-m__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.65); }
.eg-m__bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); }
.eg-m__bar b { margin-left: auto; font-weight: 700; color: #ED7B84; letter-spacing: .14em; text-transform: uppercase; font-size: 10px; }
.eg-sev { display: grid; gap: 9px; margin-bottom: 16px; }
.eg-sev div { display: grid; grid-template-columns: 62px 1fr 22px; gap: 10px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.85); }
.eg-sev span.t { height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.eg-sev span.t i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--c); transition: width 1400ms var(--eg-ease) .5s; }
.eg-live .eg-sev span.t i { width: var(--w); }
.eg-sev em { font-style: normal; font-family: var(--font-mono); font-size: 12px; text-align: right; }
.eg-vl { display: grid; gap: 8px; }
.eg-vl div { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px; font-size: 13px; }
.eg-pill { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.eg-pill--crit { background: #ED7B84; color: #000; }
.eg-pill--high { background: #F6B26B; color: #000; }
.eg-pill--med { background: #F2E27A; color: #000; }
.eg-pill--st { background: rgba(255,255,255,.12); color: #fff; font-weight: 500; letter-spacing: .02em; }
.eg-doc { display: grid; gap: 7px; margin: 4px 0 14px; }
.eg-doc i { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.16); }
.eg-doc i:nth-child(1) { width: 56%; background: rgba(255,255,255,.5); height: 9px; }
.eg-doc i:nth-child(3) { width: 82%; } .eg-doc i:nth-child(4) { width: 64%; } .eg-doc i:nth-child(5) { width: 74%; }
.eg-fmts { display: flex; flex-wrap: wrap; gap: 6px; }
.eg-fmts span { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 9px; border-radius: 8px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.85); }
.eg-tl { display: grid; gap: 10px; margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; }
.eg-tl li { display: flex; gap: 10px; align-items: center; color: rgba(255,255,255,.85); }
.eg-tl li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); flex: none; }
.eg-tl li.ok::before { background: #5B67FF; border-color: #5B67FF; animation: eg-ping 2.6s ease-out infinite; }
@keyframes eg-ping { 0% { box-shadow: 0 0 0 0 rgba(91,103,255,.6); } 100% { box-shadow: 0 0 0 12px rgba(91,103,255,0); } }

/* Bande défilante */
.eg-marquee { background: #000; color: #fff; overflow: hidden; padding: 34px 0; border-top: 1px solid rgba(255,255,255,.12); }
.eg-marquee + .eg-marquee { padding-top: 0; border-top: 0; }
.eg-marquee__track { display: flex; width: max-content; animation: eg-marq 46s linear infinite; }
.eg-marquee--rev .eg-marquee__track { animation-direction: reverse; animation-duration: 58s; }
.eg-marquee:hover .eg-marquee__track { animation-play-state: paused; }
.eg-marquee span { font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 7.4vw, 118px); letter-spacing: -0.045em; line-height: 1.05; padding-right: .5em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.7); }
.eg-marquee span:nth-child(3n) { color: #fff; -webkit-text-stroke: 0; }
.eg-marquee span:nth-child(5n) { color: #ED7B84; -webkit-text-stroke: 0; }
@keyframes eg-marq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .eg-marquee__track { animation: none; } }

/* Cartes qui s'empilent au défilement */
.eg-stack { padding-block: clamp(70px, 9vw, 130px) clamp(40px, 6vw, 80px); }
.eg-stack__list { margin-top: 56px; }
.eg-sc { position: sticky; top: calc(84px + var(--i) * 26px); display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 56px); align-items: center; min-height: clamp(380px, 52vh, 520px); border-radius: 32px; padding: clamp(28px, 4vw, 56px); margin-bottom: 36px; box-shadow: 0 -18px 50px rgba(0,0,0,.18); overflow: hidden; }
.eg-sc:nth-child(1) { background: #fff; color: #2C2C2C; }
.eg-sc:nth-child(2) { background: #2C2C2C; color: #fff; }
.eg-sc:nth-child(3) { background: #232ED1; color: #fff; }
.eg-sc:nth-child(4) { background: #ED7B84; color: #000; }
.eg-sc__n { font-family: var(--font-display); font-weight: 400; font-size: clamp(80px, 12vw, 190px); line-height: .8; letter-spacing: -0.06em; opacity: .16; display: block; margin-bottom: 18px; }
.eg-sc .eg-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .75; }
.eg-sc h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(30px, 4vw, 58px); letter-spacing: -0.045em; line-height: 1.02; margin: 12px 0 16px; max-width: 14ch; }
.eg-sc p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; max-width: 44ch; opacity: .9; }
.eg-sc h3, .eg-sc p, .eg-sc .eg-tag, .eg-sc__n { color: inherit; }
.eg-sc__vis { position: relative; min-height: 240px; display: grid; place-items: center; align-content: center; }
@media (max-width: 860px) { .eg-sc { grid-template-columns: 1fr; position: relative; top: auto; } }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }
.eg-gauge { width: min(250px, 80%); aspect-ratio: 1; border-radius: 50%; background: conic-gradient(#ED7B84 0 var(--p), rgba(35,46,209,.12) 0); display: grid; place-items: center; position: relative; transition: --p 1.8s var(--eg-ease); }
.eg-gauge::before { content: ""; position: absolute; inset: 13%; border-radius: 50%; background: #fff; }
.eg-gauge b { position: relative; font-family: var(--font-display); font-weight: 400; font-size: clamp(44px, 6vw, 76px); letter-spacing: -0.05em; color: #2C2C2C; }
.eg-sc.is-in .eg-gauge { --p: 98%; }
.eg-vec { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; opacity: .65; word-break: break-all; text-align: center; max-width: 320px; }
.eg-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 380px; }
.eg-chips span { font-family: var(--font-mono); font-weight: 700; font-size: 13px; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); animation: eg-bob 5s ease-in-out infinite; animation-delay: calc(var(--k) * -.6s); }
@keyframes eg-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.eg-flow { display: grid; gap: 14px; width: min(320px, 90%); }
.eg-flow div { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 13px; padding: 14px 18px; border-radius: 14px; background: rgba(255,255,255,.12); opacity: .55; }
.eg-flow div::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .7; }
.eg-sc.is-in .eg-flow div { animation: eg-step 6s infinite; animation-delay: calc(var(--k) * 1.5s); }
@keyframes eg-step { 0%, 4% { opacity: .5; background: rgba(255,255,255,.12); color: inherit; transform: none; } 8%, 22% { opacity: 1; background: #fff; color: #232ED1; transform: translateX(10px); } 30%, 100% { opacity: .5; background: rgba(255,255,255,.12); color: inherit; transform: none; } }
.eg-term { width: min(340px, 94%); background: rgba(0,0,0,.84); color: #F0F5F9; border-radius: 18px; padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; }
.eg-term .p { color: #ED7B84; }
.eg-term .ok { color: #7CE0A3; }
.eg-term .cur { display: inline-block; width: 8px; height: 14px; background: #F0F5F9; vertical-align: -2px; animation: eg-blink 1s steps(2) infinite; }
@keyframes eg-blink { 50% { opacity: 0; } }

/* Chiffres */
.eg-figs { background: #000; color: #fff; padding-block: clamp(70px, 9vw, 130px); }
.eg-figs__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .eg-figs__grid { grid-template-columns: repeat(2, 1fr); } }
.eg-fig { border-top: 1px solid rgba(255,255,255,.28); padding-top: 18px; }
.eg-fig strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(64px, 10vw, 168px); letter-spacing: -0.06em; line-height: .9; }
.eg-fig span { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); }

/* Raisons : lignes larges */
.eg-why { border-top: 1px solid var(--ink); margin-top: 40px; }
.eg-why > div { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 5vw, 80px); padding: clamp(26px, 3.4vw, 46px) 0; border-bottom: 1px solid var(--rule); transition: background 300ms, padding 300ms; align-items: baseline; }
.eg-why > div:hover { background: #fff; padding-left: 18px; padding-right: 18px; }
.eg-why h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 46px); letter-spacing: -0.04em; line-height: 1.05; margin: 0; }
.eg-why p { margin: 0; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--ink-2); max-width: 52ch; }
@media (max-width: 760px) { .eg-why > div { grid-template-columns: 1fr; gap: 10px; } }

/* Cartes : relief au survol */
.eg-card, .eg-mod, .eg-plan { transition: transform 350ms var(--eg-ease), box-shadow 350ms var(--eg-ease), border-color 250ms; }
.eg-card:hover, .eg-mod:hover, .eg-plan:hover { box-shadow: 0 24px 50px rgba(35, 46, 209, .14); }
.eg-qlist a { transition: padding 250ms var(--eg-ease); }
.eg-qlist a:hover { padding-left: 14px; }
.eg-mod .n { font-family: var(--font-display); font-size: 56px; letter-spacing: -0.05em; font-weight: 400; color: transparent; -webkit-text-stroke: 1.2px #232ED1; line-height: 1; display: block; }

/* Fonctionnalités : sommaire collant */
.eg-feat { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .eg-feat { grid-template-columns: 1fr; } .eg-spy { display: none; } }
.eg-spy { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 4px; }
.eg-spy a { display: flex; justify-content: space-between; gap: 10px; padding: 11px 16px; border-radius: 14px; text-decoration: none; color: var(--ink-2); font-size: 15px; transition: background 200ms, color 200ms, transform 200ms; }
.eg-spy a span { font-family: var(--font-mono); font-size: 12px; opacity: .6; }
.eg-spy a:hover { background: #fff; color: var(--ink); }
.eg-spy a.is-active { background: #2C2C2C; color: #fff; transform: translateX(6px); }

/* Cartes de l'accueil : symbole de la marque à la place des numéros, étiquettes plus grandes */
.eg-sc__sym { display: block; width: clamp(64px, 8vw, 112px); aspect-ratio: 450 / 512; margin-bottom: 20px; background: currentColor; opacity: .2; -webkit-mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; mask: url("/assets/symbol-cybreach.svg") center / contain no-repeat; transition: transform 700ms var(--eg-ease), opacity 400ms; }
.eg-sc:hover .eg-sc__sym { transform: rotate(-8deg) scale(1.08); opacity: .32; }
.eg-sc .eg-tag { font-size: clamp(20px, 2vw, 28px); letter-spacing: .1em; opacity: .9; display: block; }

/* Mini chat */
.eg-chat { width: min(380px, 94%); display: grid; gap: 14px; }
.eg-chat__q { justify-self: end; max-width: 92%; background: #fff; color: #2C2C2C; padding: 14px 18px; border-radius: 20px 20px 4px 20px; font-size: 14.5px; line-height: 1.5; opacity: 0; transform: translateY(10px); }
.eg-chat__dots { justify-self: start; display: flex; gap: 5px; background: rgba(0,0,0,.18); padding: 14px 16px; border-radius: 20px 20px 20px 4px; opacity: 0; }
.eg-chat__dots i { width: 7px; height: 7px; border-radius: 50%; background: #000; opacity: .6; animation: eg-dot 1s ease-in-out infinite; }
.eg-chat__dots i:nth-child(2) { animation-delay: .15s; } .eg-chat__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes eg-dot { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.eg-chat__a { justify-self: start; max-width: 100%; background: #000; color: #F0F5F9; padding: 14px 18px; border-radius: 20px 20px 20px 4px; font-family: var(--font-mono); font-size: 13.5px; opacity: 0; transform: translateY(10px); position: absolute; }
.eg-chat { position: relative; }
.eg-chat__a code { font: inherit; color: #7CE0A3; word-break: break-all; }
.eg-sc.is-in .eg-chat__q { animation: eg-q 9s infinite; }
.eg-sc.is-in .eg-chat__dots { animation: eg-d 9s infinite; }
.eg-sc.is-in .eg-chat__a { animation: eg-a 9s infinite; position: static; }
@keyframes eg-q { 0% { opacity: 0; transform: translateY(10px); } 6%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes eg-d { 0%, 14% { opacity: 0; display: none; } 16%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes eg-a { 0%, 36% { opacity: 0; transform: translateY(10px); } 42%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .eg-chat__q, .eg-chat__a { opacity: 1; transform: none; animation: none !important; position: static; } }

/* Symbole en arrière-plan, derrière le texte de la carte */
.eg-sc__sym { position: absolute; left: -4%; top: 50%; width: clamp(280px, 36vw, 500px); margin: 0; opacity: .13; translate: 0 -50%; z-index: 0; pointer-events: none; }
.eg-sc:hover .eg-sc__sym { transform: rotate(-6deg) scale(1.05); opacity: .2; }
.eg-sc h3, .eg-sc p, .eg-sc .eg-tag, .eg-sc__vis { position: relative; z-index: 1; }
@media (max-width: 860px) { .eg-sc__sym { left: auto; right: -12%; width: 70vw; } }
