/*-----------------------------------*\
  #HÉROS VIOLET — copie de home.css aux couleurs du site principal, utilisée par le héros de l'accueil (Views/Home/_HeroNew.cshtml)
  site.css fixe html{font-size:10px} et span{display:block} :
  ce fichier utilise des px et précise les display.
\*-----------------------------------*/

.hx {
    --hx-ink: #07080C;
    --hx-ink-2: #3D424D;
    --hx-dim: #5B616E;
    --hx-line: #ECEEF1;
    --hx-soft: #F5F6F8;
    --hx-accent: #2F5BEA;
    --hx-accent-dark: #1E40AF;
    font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif;
    color: var(--hx-ink);
    background: #FFFFFF;
    font-size: 16px;
    line-height: 1.6;
    overflow: hidden;
}

    .hx p { color: inherit; margin: 0; }
    .hx a { text-decoration: none; color: inherit; }
    .hx a:hover { color: inherit; }
    .hx .h { font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; letter-spacing: -0.04em; margin: 0; font-weight: 700; }
    .hx .dim { color: var(--hx-dim) !important; }
    .hx .accent { color: var(--hx-accent); }
    .hx .outline { color: transparent; -webkit-text-stroke: 1.5px var(--hx-ink); }

.hx-wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }

/* Buttons */
.hx-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 16px; box-sizing: border-box; border: 0; cursor: pointer; font-family: inherit; }
.hx-btn svg { flex: none; }
.hx-btn-accent { background: var(--hx-accent); color: #FFFFFF !important; box-shadow: 0 14px 40px -10px var(--hx-accent); }
.hx-btn-glass { background: rgba(255,255,255,.72); border: 1px solid rgba(7,8,12,.08); backdrop-filter: blur(14px); color: var(--hx-ink) !important; }
.hx-btn-white { background: #FFFFFF; color: var(--hx-ink) !important; min-height: 60px; padding: 0 32px; font-size: 17px; }
.hx-btn-glass-d { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #FFFFFF !important; min-height: 60px; padding: 0 32px; font-size: 17px; }
.hx-shimmer { position: relative; overflow: hidden; }
.hx-shimmer::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%); transform: translateX(-120%); animation: hx-shim 3.2s 2s infinite; }
@keyframes hx-shim { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }

/* Entrance + reveal */
.hx-up { opacity: 0; animation: hx-up .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hx-d1 { animation-delay: .05s; } .hx-d2 { animation-delay: .2s; } .hx-d3 { animation-delay: .35s; } .hx-d4 { animation-delay: .5s; }
@keyframes hx-up { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.hx-reveal { opacity: 0; translate: 0 48px; transition: opacity .9s cubic-bezier(.2,.7,.2,1), translate .9s cubic-bezier(.2,.7,.2,1); }
.hx-reveal.is-in { opacity: 1; translate: 0 0; }
.hx-pop { opacity: 0; scale: .92; transition: opacity .7s cubic-bezier(.2,.7,.2,1), scale .7s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s, background .25s, color .25s, translate .25s; }
.hx-pop.is-in { opacity: 1; scale: 1; }

/* Shine text */
.hx-shine { background: linear-gradient(90deg,#1E40AF 0%,#2F5BEA 25%,#1E40AF 50%,#2F5BEA 75%,#1E40AF 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hx-shine 5s linear infinite; }
@keyframes hx-shine { to { background-position: -200% center; } }

/*=========== HERO ===========*/
.hx-hero { position: relative; padding: 24px 0 0; overflow: hidden; background: linear-gradient(160deg, #FCFDFF 0%, #FFFFFF 45%, #FCFDFF 100%); }
.hx-bg { position: absolute; inset: 0; pointer-events: none; }
.hx-blob { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .10; }
.hx-b1 { width: 520px; height: 520px; background: #2F5BEA; right: 6%; top: 120px; animation: hx-b1 14s ease-in-out infinite; }
.hx-b2 { width: 420px; height: 420px; background: #38BDF8; right: 30%; top: 320px; animation: hx-b2 17s ease-in-out infinite; }
.hx-b3 { width: 460px; height: 460px; background: #5C8FFF; right: -4%; top: 380px; animation: hx-b3 19s ease-in-out infinite; }
.hx-b4 { width: 480px; height: 480px; background: #C8D7FF; left: -6%; top: 40px; opacity: .12; animation: hx-b2 22s ease-in-out infinite reverse; }
@keyframes hx-b1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-120px,80px) scale(1.15); } }
@keyframes hx-b2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(140px,-90px) scale(.85); } }
@keyframes hx-b3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-90px,-130px) scale(1.2); } }
.hx-glow { position: absolute; left: 66%; top: 58%; width: 900px; height: 700px; margin: -350px 0 0 -450px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 64, 175,.035), rgba(30, 64, 175,0)); }
.hx-ripple { position: absolute; display: block; left: 66%; top: 58%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; border: 1px solid rgba(30, 64, 175,.09); opacity: 0; animation: hx-ripple 4.2s cubic-bezier(.2,.6,.3,1) infinite; }
@keyframes hx-ripple { 0% { transform: scale(.35); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.hx-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hx-net-line { fill: none; stroke: rgba(7,8,12,.06); stroke-width: 1; stroke-dasharray: 3 6; vector-effect: non-scaling-stroke; opacity: 0; animation: hx-fadein 1.2s ease forwards; }
.hx-net-pkt { fill: none; stroke: rgba(30, 64, 175,.45); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 1499; stroke-dashoffset: 1411; vector-effect: non-scaling-stroke; opacity: 0; animation: hx-pkthead 6s cubic-bezier(.45,0,.25,1) infinite; }
.hx-net-trail { fill: none; stroke: rgba(30, 64, 175,.12); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 90 1410; stroke-dashoffset: 1500; vector-effect: non-scaling-stroke; opacity: 0; animation: hx-pkttrail 6s cubic-bezier(.45,0,.25,1) infinite; }
@keyframes hx-pkthead { 0% { stroke-dashoffset: 1411; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: -89; opacity: 0; } }
@keyframes hx-pkttrail { 0% { stroke-dashoffset: 1500; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes hx-fadein { to { opacity: 1; } }
.hx-net-dot { position: absolute; display: block; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #E3E5E9; animation: hx-netdot 6s ease-out infinite; }
@keyframes hx-netdot { 0% { background: rgba(30, 64, 175,.5); box-shadow: 0 0 0 0 rgba(30, 64, 175,.25); } 15% { box-shadow: 0 0 0 8px rgba(30, 64, 175,0); } 30%, 100% { background: #E3E5E9; box-shadow: 0 0 0 0 rgba(30, 64, 175,0); } }
.hx .rf-text { color: #5B616E; }

.hx-hero-row { position: relative; padding-top: 150px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hx-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; position: relative; z-index: 2; }
.hx-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; font-size: 14px; color: var(--hx-ink-2) !important; background: rgba(255,255,255,.72); border: 1px solid rgba(7,8,12,.08); backdrop-filter: blur(14px); }
.hx-badge-cta { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--hx-accent); color: #FFFFFF; font-weight: 600; animation: hx-pulse 2s infinite; }
@keyframes hx-pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 64, 175,.55); } 100% { box-shadow: 0 0 0 12px rgba(30, 64, 175,0); } }
.hx-title { font-size: clamp(38px, 4.4vw, 62px); line-height: 1.02; max-width: 560px; }
.hx-rot { display: inline-block; height: 1.1em; overflow: hidden; vertical-align: bottom; }
.hx-rot-in { display: flex; flex-direction: column; animation: hx-rot 9s cubic-bezier(.7,0,.3,1) 1.5s infinite; }
.hx-rot-in span { display: block; height: 1.1em; line-height: 1.1em; white-space: nowrap; }
@keyframes hx-rot { 0%,28% { transform: translateY(0); } 33%,61% { transform: translateY(-1.1em); } 66%,94% { transform: translateY(-2.2em); } 100% { transform: translateY(-3.3em); } }
.hx-lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; max-width: 640px; }
.hx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hx-hero-visual { flex: 1.15 1 520px; min-width: 0; position: relative; }
.hx-par { transition: transform .25s ease-out; transform-style: preserve-3d; }
.hx-tilt { position: relative; border-radius: 22px; background: #FFFFFF; overflow: hidden; box-shadow: 0 70px 140px -40px rgba(7,8,12,.45), 0 0 0 1px rgba(7,8,12,.08); transform: perspective(1400px) rotateY(-12deg) rotateX(4deg); animation: hx-tiltin 1.6s .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hx-tiltin { from { opacity: 0; transform: perspective(1400px) rotateY(-30deg) rotateX(10deg) translateX(100px) scale(.9); } to { opacity: 1; transform: perspective(1400px) rotateY(-12deg) rotateX(4deg); } }
.hx-chrome { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: #F3F4F6; border-bottom: 1px solid #E3E5E9; }
.hx-chrome-dots { display: flex; gap: 7px; }
.hx-chrome-dots i { display: block; width: 11px; height: 11px; border-radius: 50%; }
.hx-url { flex: 1; display: flex; justify-content: center; }
.hx-url span { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 16px; border-radius: 8px; background: #FFFFFF; border: 1px solid #E3E5E9; font-size: 13px; color: var(--hx-dim); max-width: 420px; width: 100%; }
.hx-sweep { position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.55), rgba(255,255,255,0)); animation: hx-sweep 5s 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes hx-sweep { 0% { left: -40%; } 35%, 100% { left: 120%; } }

/* Drawn ERP screen */
.hx-shot { position: relative; overflow: hidden; background: #F4F6FA; color: #1F2937; zoom: .7; text-align: left; direction: ltr; }
.hx-shot span { display: inline-block; }
.hx-shot-top { display: flex; align-items: center; gap: 18px; padding: 0 16px; height: 36px; background: #1E40AF; color: #FFFFFF; font-size: 12px; white-space: nowrap; overflow: hidden; }
.hx-shot-top b { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.hx-shot-body { display: flex; }
.hx-side { width: 190px; flex: none; background: #FFFFFF; border-right: 1px solid #E3E7EE; padding: 10px; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.hx-side-search { border: 1px solid #E3E7EE; border-radius: 8px; padding: 7px 10px; color: #6B7280; margin-bottom: 8px; font-size: 12px; }
.hx-side-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 8px; font-weight: 600; }
.hx-side-item.is-on { border: 1.5px solid #2F5BEA; background: #EEF2FF; }
.hx-side-item i { display: block; width: 22px; height: 22px; border-radius: 6px; flex: none; }
.hx-side-item em { flex: 1; font-style: normal; }
.hx-side-item small { color: #9CA3AF; font-size: 12.5px; }
.hx-side-foot { margin-top: 14px; padding: 10px; border-radius: 10px; background: #EEF2FF; display: flex; align-items: center; gap: 8px; }
.hx-side-foot i { display: block; width: 26px; height: 26px; border-radius: 8px; background: #2F5BEA; }
.hx-side-foot small { display: block; font-size: 9.5px; color: #6B7280; font-weight: 600; letter-spacing: .06em; }
.hx-side-foot strong { display: block; font-size: 12.5px; }
.hx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hx-ribbon { display: flex; gap: 2px; padding: 8px 10px; background: #E9EEF8; border-bottom: 1px solid #D5DCEA; overflow: hidden; white-space: nowrap; }
.hx-rb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 8px; font-size: 11px; min-width: 52px; }
.hx-rb.is-on { background: #FDE68A; animation: hx-autoglow 2.4s ease-in-out infinite; }
@keyframes hx-autoglow { 0%,100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); } 50% { box-shadow: 0 0 0 6px rgba(251,191,36,.35); } }
.hx-rb i { display: flex; width: 30px; height: 30px; border-radius: 9px; align-items: center; justify-content: center; color: #FFFFFF; }
.hx-strip { display: flex; align-items: center; gap: 12px; padding: 0 12px; height: 26px; background: #374151; color: #FFFFFF; font-size: 11.5px; }
.hx-strip i { display: block; width: 12px; height: 12px; border-radius: 50%; }
.hx-strip strong { margin-left: auto; font-weight: 600; }
.hx-tabs { display: flex; gap: 4px; padding: 6px 12px 0; background: #FFFFFF; border-bottom: 1px solid #E3E7EE; font-size: 12px; }
.hx-tabs span { padding: 6px 14px; color: #6B7280; }
.hx-tabs span.is-on { background: #FEF3C7; border: 1px solid #FCD34D; border-bottom: 0; border-radius: 6px 6px 0 0; color: #B91C1C; font-weight: 600; }
.hx-grid { background: #FFFFFF; }
.hx-gr { display: grid; grid-template-columns: 1.5fr .8fr 1fr 1fr 1fr 1fr 1fr .8fr; font-size: 12px; border-bottom: 1px solid #EEF1F5; font-variant-numeric: tabular-nums; }
.hx-gr > div { padding: 7px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-gr.is-head { font-weight: 600; background: #F9FAFB; border-bottom-color: #E3E7EE; }
.hx-gr.is-head > div { padding: 9px 10px; }
.hx-gr .r { text-align: right; }
.hx-gr .c-etat { background: #E7EBFB; padding: 5px 10px; }
.hx-gr .c-net { background: #DCEFFC; }
.hx-gr .c-pay { background: #DAF6E1; }
.hx-gr .c-rest { background: #FCE3E7; }
.hx-gr .c-ref { color: #4338CA; }
.hx-gr.is-head .c-etat, .hx-gr.is-head .c-net, .hx-gr.is-head .c-pay, .hx-gr.is-head .c-rest { background: transparent; }
.hx-row { opacity: 0; animation: hx-rowin .5s cubic-bezier(.2,.7,.2,1) forwards; }
.hx-row:hover { outline: 2px solid #3B82F6; outline-offset: -2px; }
@keyframes hx-rowin { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.hx-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.hx-status { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: #F3F4F6; border-top: 1px solid #E3E7EE; font-size: 11.5px; flex-wrap: wrap; }
.hx-status span { padding: 4px 10px; border: 1px solid #D1D5DB; border-radius: 6px; background: #FFFFFF; }
.hx-status span.is-end { margin-left: auto; padding: 4px 12px; }

.hx-float { position: absolute; display: flex; gap: 12px; align-items: center; width: 280px; border-radius: 18px; padding: 16px; background: rgba(255,255,255,.92); border: 1px solid rgba(7,8,12,.08); backdrop-filter: blur(14px); box-shadow: 0 24px 50px -16px rgba(7,8,12,.35); z-index: 3; }
.hx-float-1 { left: -8px; top: 160px; animation: hx-fl 6s ease-in-out infinite; }
.hx-float-2 { right: -8px; top: 380px; animation: hx-fl 7s ease-in-out infinite reverse; }
@keyframes hx-fl { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hx-float-ic { display: flex !important; width: 40px; height: 40px; border-radius: 12px; align-items: center; justify-content: center; flex: none; }
.hx-float strong { display: block; font-size: 14px; font-weight: 600; }
.hx-float small { display: block; font-size: 13px; color: var(--hx-dim); }

/*=========== MARQUEE ===========*/
.hx-marquee { padding: 56px 0; border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); overflow: hidden; }
.hx-marq { display: flex; align-items: center; gap: 72px; white-space: nowrap; width: max-content; animation: hx-mq 40s linear infinite; font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: #1F2330; }
.hx-marq span { display: inline-block; }
.hx-marq-rev { animation-direction: reverse; margin-top: 22px; color: transparent; -webkit-text-stroke: 1.5px var(--hx-ink); }
@keyframes hx-mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/*=========== SECTION HEAD ===========*/
.hx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.hx-head h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.02; max-width: 640px; }
.hx-head p { font-size: 18px; line-height: 1.6; max-width: 400px; }

/*=========== STATS ===========*/
.hx-stats { padding: 120px 0; position: relative; }
.hx-stats .hx-wrap, .hx-bento .hx-wrap { display: flex; flex-direction: column; gap: 48px; }
.hx-row-cards { display: flex; flex-wrap: wrap; gap: 18px; }
.hx-scard { border-radius: 28px; background: #FFFFFF; border: 1px solid var(--hx-line); padding: 30px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(7,8,12,.04), 0 20px 40px -30px rgba(7,8,12,.25); transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, opacity .9s cubic-bezier(.2,.7,.2,1), translate .9s cubic-bezier(.2,.7,.2,1); }
.hx-scard:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--hx-accent), 0 40px 70px -30px rgba(30, 64, 175,.35); }
.hx-scard-dark { flex: 1 1 340px; min-height: 460px; background: var(--hx-ink); border-color: var(--hx-ink); color: #FFFFFF; justify-content: space-between; }
.hx-scard-dark > * { position: relative; }
.hx-scard-dark .hx-breathe-glow { position: absolute; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(closest-side, rgba(47, 91, 234,.5), rgba(7,8,12,0)); pointer-events: none; animation: hx-breathe 6s ease-in-out infinite; }
@keyframes hx-breathe { 0%,100% { scale: 1; opacity: 1; } 50% { scale: 1.25; opacity: .65; } }
.hx-orbit-s { position: absolute !important; right: -90px; top: -90px; width: 360px; height: 360px; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); animation: hx-spin 30s linear infinite; pointer-events: none; }
.hx-orbit-s::after { content: ''; position: absolute; bottom: 40px; left: 30px; width: 10px; height: 10px; border-radius: 50%; background: #2F5BEA; box-shadow: 0 0 16px #2F5BEA; }
@keyframes hx-spin { to { transform: rotate(360deg); } }
.hx-since { display: block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #94B1FF; }
.hx-25 { font-size: clamp(96px, 11vw, 160px); line-height: .85; letter-spacing: -0.06em; }
.hx-office { display: inline-flex !important; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; font-weight: 600; }
.hx-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; animation: hx-live 2s infinite; }
@keyframes hx-live { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 100% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } }
.hx-grid2 { flex: 2 1 600px; display: flex; flex-wrap: wrap; gap: 18px; min-width: 0; }
.hx-grid2 .hx-scard { flex: 1 1 280px; }
.hx-top { display: flex; justify-content: space-between; align-items: flex-start; }
.hx-sico { display: flex !important; width: 44px; height: 44px; border-radius: 14px; background: #EEF3FF; color: var(--hx-accent-dark); align-items: center; justify-content: center; }
.hx-snum { font-size: clamp(40px, 4vw, 58px); line-height: 1; margin-top: auto; font-variant-numeric: tabular-nums; }
.hx-av { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; border: 3px solid #FFFFFF; margin-left: -10px; align-items: center; justify-content: center; transform: scale(0); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.is-in .hx-av { transform: scale(1); }
.hx-av:nth-child(2) { transition-delay: .1s; } .hx-av:nth-child(3) { transition-delay: .2s; } .hx-av:nth-child(4) { transition-delay: .3s; } .hx-av:nth-child(5) { transition-delay: .4s; }
.hx-ring { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.2s cubic-bezier(.2,.7,.2,1); }
.hx-ring2 { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 2.6s .3s cubic-bezier(.2,.7,.2,1); }
.is-in .hx-ring { stroke-dashoffset: 22; }
.is-in .hx-ring2 { stroke-dashoffset: 40; }
.hx-sbars { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.hx-sbar { display: block; width: 9px; border-radius: 4px 4px 2px 2px; background: #E3E5E9; transform: scaleY(0); transform-origin: bottom; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.is-in .hx-sbar { transform: scaleY(1); }
.hx-sbar:nth-child(2) { transition-delay: .06s; } .hx-sbar:nth-child(3) { transition-delay: .12s; } .hx-sbar:nth-child(4) { transition-delay: .18s; } .hx-sbar:nth-child(5) { transition-delay: .24s; } .hx-sbar:nth-child(6) { transition-delay: .3s; } .hx-sbar:nth-child(7) { transition-delay: .36s; } .hx-sbar:nth-child(8) { transition-delay: .42s; } .hx-sbar:nth-child(9) { transition-delay: .48s; }
.hx-spin-y { transform-origin: 28px 28px; animation: hx-spiny 4s ease-in-out infinite; }
@keyframes hx-spiny { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(-1); } }
.hx-cpills { display: flex; flex-wrap: wrap; gap: 6px; }
.hx-cpill { display: inline-flex !important; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--hx-soft); font-size: 13px; font-weight: 600; }

/*=========== BENTO ===========*/
.hx-bento { padding: 0 0 140px; }
.hx-tile { border-radius: 28px; background: var(--hx-soft); border: 1px solid var(--hx-line); padding: 32px; box-sizing: border-box; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.hx-tile:hover { transform: translateY(-8px) rotate(-0.4deg); border-color: var(--hx-accent); box-shadow: 0 0 0 1px var(--hx-accent), 0 40px 80px -30px rgba(30, 64, 175,.45); }
.hx-tile > .h:first-child { display: inline-block; transform-origin: left bottom; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hx-tile:hover > .h:first-child { transform: scale(1.15) rotate(-5deg); }
.hx-tile h3 { font-size: 26px; letter-spacing: -0.03em; margin-top: auto; }
.hx-tile p { line-height: 1.55; }
.hx-tile-erp { flex: 2 1 560px; min-height: 420px; justify-content: space-between; padding: 44px; background: var(--hx-ink); border-color: var(--hx-ink); color: #FFFFFF; }
.hx-tile-erp::before { content: ''; position: absolute; right: -120px; bottom: -160px; width: 560px; height: 560px; background: radial-gradient(closest-side, rgba(47, 91, 234,.45), rgba(7,8,12,0)); pointer-events: none; }
.hx-tile-erp > * { position: relative; }
.hx-tile-erp h3 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1; color: #FFFFFF; margin: 0; }
.hx-tile-erp p { font-size: 18px; line-height: 1.6; color: #B4B9C4 !important; max-width: 480px; }
.hx-flag { align-self: flex-start; display: inline-block; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--hx-accent); color: #FFFFFF; }
.hx-go { display: inline-flex !important; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: #FFFFFF; }
.hx-tile-andro { flex: 1 1 340px; min-height: 420px; padding: 36px 36px 0; }
.hx-tile-andro h3 { font-size: 30px; margin-top: 0; }
.hx-phone-wrap { flex: 1; display: flex; justify-content: center; align-items: flex-end; margin-top: 12px; }
.hx-phone { width: 200px; height: 270px; border-radius: 32px 32px 0 0; background: var(--hx-ink); padding: 10px 10px 0; box-sizing: border-box; }
.hx-phone > div { height: 100%; border-radius: 24px 24px 0 0; background: #FFFFFF; overflow: hidden; }
.hx-dash { animation: hx-dash 2.5s linear infinite; }
@keyframes hx-dash { to { stroke-dashoffset: -48; } }
.hx-tile-sm { flex: 1 1 280px; min-height: 260px; }
.hx-sig { font-size: 46px; line-height: 1; }
.hx-tile-rx { background: var(--hx-accent); border-color: var(--hx-accent); color: #FFFFFF; }
.hx-tile-rx h3, .hx-tile-rx p { color: #FFFFFF !important; }
.hx-tile-wide { flex: 1 1 420px; min-height: 200px; flex-direction: row; align-items: center; gap: 28px; }
.hx-tile-wide .hx-sig { font-size: 50px; flex: none; }
.hx-tile-wide h3 { font-size: 24px; margin: 0; }
.hx-tile-wide p { margin-top: 6px; }

/*=========== METIERS ===========*/
.hx-jobs { padding: 120px 0; background: var(--hx-soft); border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); }
.hx-jobs .hx-wrap { display: flex; flex-direction: column; gap: 48px; align-items: center; text-align: center; }
.hx-jobs h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1; }
.hx-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 1040px; }
.hx-chip { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid #DADDE2; background: #FFFFFF; font-size: 17px; color: var(--hx-ink) !important; box-sizing: border-box; }
.hx-chip:hover { background: var(--hx-ink); color: #FFFFFF !important; border-color: var(--hx-ink); translate: 0 -4px; }
.hx-chip-accent { background: var(--hx-accent); border-color: var(--hx-accent); color: #FFFFFF !important; }

/*=========== CTA ===========*/
.hx-cta { position: relative; padding: 120px 0; text-align: center; background: var(--hx-ink); color: #FFFFFF; overflow: hidden; }
.hx-cta-glow { position: absolute; left: 50%; top: 50%; width: 900px; height: 600px; margin: -300px 0 0 -450px; background: radial-gradient(closest-side, rgba(47, 91, 234,.4), rgba(7,8,12,0)); animation: hx-breathe 6s ease-in-out infinite; pointer-events: none; }
.hx-orbit { position: absolute; left: 50%; top: 50%; border-radius: 50%; border: 1px dashed rgba(255,255,255,.16); pointer-events: none; }
.hx-o1 { width: 640px; height: 640px; margin: -320px 0 0 -320px; animation: hx-spin 40s linear infinite; }
.hx-o2 { width: 940px; height: 940px; margin: -470px 0 0 -470px; animation: hx-spin 60s linear infinite reverse; }
.hx-orbit::after { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #2F5BEA; box-shadow: 0 0 20px #2F5BEA; }
.hx-cta .hx-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.hx-cta h2 { font-size: clamp(48px, 7vw, 104px); line-height: .92; color: #FFFFFF; }
.hx-cta h2 span { display: inline; color: #2F5BEA; }
.hx-cta p { font-size: 20px; color: #B4B9C4 !important; max-width: 520px; }
.hx-cta .hx-actions { justify-content: center; }

/*=========== CONTACT ===========*/
.hx-contact { padding: 120px 0; }
.hx-contact .hx-wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.hx-contact-left { flex: 1 1 360px; display: flex; flex-direction: column; gap: 28px; }
.hx-contact-left h2 { font-size: clamp(32px, 3.4vw, 50px); line-height: 1.02; }
.hx-offices { display: flex; flex-direction: column; border-top: 1px solid #E3E5E9; }
.hx-office-row { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid #E3E5E9; flex-wrap: wrap; }
.hx-office-row strong { display: block; font-weight: 600; font-size: 18px; }
.hx-office-row small { display: block; font-size: 14px; margin-top: 4px; color: var(--hx-dim); }
.hx-office-row a { font-weight: 600; direction: ltr; }
.hx-office-row a:hover { color: var(--hx-accent-dark) !important; }
.hx-form { flex: 1.3 1 480px; border-radius: 28px; padding: 40px; background: var(--hx-soft); border: 1px solid var(--hx-line); display: flex; flex-direction: column; gap: 18px; box-sizing: border-box; }
.hx-form-row { display: flex; flex-wrap: wrap; gap: 16px; }
.hx-field { display: flex !important; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: var(--hx-ink); flex: 1 1 220px; }
.hx-field input, .hx-field select, .hx-field textarea { display: block; width: 100%; font: inherit; font-weight: 400; font-size: 15px; border: 1px solid #DADDE2; border-radius: 14px; padding: 14px 16px; background: #FFFFFF; color: var(--hx-ink); box-sizing: border-box; transition: border-color .2s, box-shadow .2s; }
.hx-field input:focus, .hx-field select:focus, .hx-field textarea:focus { outline: none; border-color: var(--hx-accent); box-shadow: 0 0 0 4px rgba(30, 64, 175,.15); }
.hx-form button[type=submit] { align-self: stretch; justify-content: center; background: var(--hx-accent); color: #FFFFFF; }
.hx-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/*=========== FOOTER (accueil) ===========*/
.hx-footer { padding: 64px 0 0; border-top: 1px solid var(--hx-line); background: #FFFFFF; font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; overflow: hidden; }
.hx-footer .hx-wrap { display: flex; flex-direction: column; gap: 40px; }
.hx-footer-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; font-size: 15px; }
.hx-footer-links div { display: flex; flex-wrap: wrap; gap: 28px; }
.hx-footer-links a { color: #5B616E !important; text-decoration: none; }
.hx-footer-links a:hover { color: var(--hx-accent-dark, #0030B2) !important; }
.hx-wm { font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; font-size: clamp(72px, 15vw, 220px); font-weight: 700; line-height: .9; letter-spacing: -0.06em; text-align: center; margin-bottom: -0.12em; background: linear-gradient(90deg,#EEF0F3 0%,#EEF0F3 35%,#FFC2D4 50%,#EEF0F3 65%,#EEF0F3 100%); background-size: 250% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hx-shine 7s linear infinite; }

/*=========== RESPONSIVE ===========*/
@media (max-width: 760px) {
    .hx-wrap { padding: 0 16px; }
    .hx-hide-sm { display: none !important; }
    .hx-tilt { transform: none; animation: none; }
    .hx-hero-row { padding-top: 120px; }
    .hx-marq { font-size: 26px; gap: 48px; }
    .hx-tile-wide { flex-direction: column; align-items: flex-start; }
    .hx-form { padding: 24px; }
}

/* RTL */
[dir="rtl"] .hx-bg { transform: scaleX(-1); }
[dir="rtl"] .hx-hero-text { align-items: flex-start; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hx *, .hx *::before, .hx *::after, .hx-wm { animation: none !important; transition: none !important; }
    .hx-up, .hx-row, .hx-net-line, .hx-reveal, .hx-pop { opacity: 1 !important; translate: none !important; scale: none !important; transform: none; }
    .hx-net-pkt, .hx-net-trail, .hx-ripple { display: none !important; }
    .hx-ring { stroke-dashoffset: 22; } .hx-ring2 { stroke-dashoffset: 40; }
    .hx-sbar, .hx-av { transform: none !important; }
    .hx-shine, .hx-wm { color: var(--hx-accent, #1E40AF); -webkit-text-fill-color: currentColor; background: none; }
    .hx-wm { color: #EEF0F3; }
}

/*=========== BANDE COLORÉE (entre Métiers et CTA) ===========*/
.hx-jobs { padding: 96px 0 120px; }
.hx-band { position: relative; z-index: 2; margin: -34px -60px; padding: 20px 0; overflow: hidden; background: linear-gradient(90deg, #1E40AF, #2F5BEA 50%, #1E40AF); transform: rotate(-2deg); box-shadow: 0 24px 50px -24px rgba(30, 64, 175,.7); direction: ltr; }
.hx-band-track { display: flex; align-items: center; gap: 36px; width: max-content; white-space: nowrap; animation: hx-mq 28s linear infinite; font-family: 'Inter', 'Inter Fallback', system-ui, sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: #FFFFFF; }
.hx-band-track span { display: inline-block; }
.hx-band-track i { display: block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.7); }
.hx-cta { padding-top: 150px; }
@media (max-width: 760px) {
    .hx-band { margin: -24px -30px; padding: 14px 0; }
    .hx-band-track { font-size: 22px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { .hx-band-track { animation: none !important; } }

/* Bande colorée : logos des références en couleur */
.hx-band { padding: 16px 0; }
.hx-band-track { gap: 18px; animation-duration: 60s; }
.hx-band:hover .hx-band-track { animation-play-state: paused; }
.hx-band-logo { display: flex !important; align-items: center; justify-content: center; flex: none; height: 64px; padding: 0 18px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 8px 18px -10px rgba(7,8,12,.35); }
.hx-band-logo img { display: block; width: auto; height: auto; max-height: 44px; max-width: 130px; }
@media (max-width: 760px) {
    .hx-band-logo { height: 52px; padding: 0 12px; }
    .hx-band-logo img { max-height: 34px; max-width: 100px; }
}


/*=========== BANDE RÉFÉRENCES : fond blanc, logos plus grands ===========*/
.hx-band { background: #FFFFFF; padding: 22px 0; border-top: 1px solid var(--hx-line); border-bottom: 1px solid var(--hx-line); box-shadow: 0 30px 60px -30px rgba(7,8,12,.35); }
.hx-band-track { gap: 56px; }
.hx-band-logo { height: 84px; padding: 0; background: transparent; box-shadow: none; border-radius: 0; }
.hx-band-logo img { max-height: 84px; max-width: none; }
@media (max-width: 760px) {
    .hx-band-logo { height: 60px; }
    .hx-band-logo img { max-height: 60px; }
}

/*=========== CONTACT : coordonnées complètes + formulaire ===========*/
.hx-contact { background: var(--hx-soft); border-top: 1px solid var(--hx-line); }
.hx-contact .hx-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.hx-contact-left { gap: 22px; }
.hx-contact-intro { font-size: 17px; line-height: 1.6; }
.hx-mail { display: inline-flex !important; align-items: center; gap: 12px; align-self: flex-start; padding: 8px 18px 8px 8px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--hx-line); font-weight: 600; transition: border-color .2s; }
.hx-mail:hover { border-color: var(--hx-accent); }
.hx-ci { display: flex !important; width: 36px; height: 36px; border-radius: 50%; align-items: center; justify-content: center; background: #EEF3FF; color: var(--hx-accent-dark); }
.hx-offices { display: flex; flex-direction: column; gap: 12px; border: 0; }
.hx-office-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--hx-line); }
.hx-office-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hx-office-top strong { display: block; font-size: 17px; font-weight: 700; }
.hx-office-top small { display: block; font-size: 13px; color: var(--hx-dim); }
.hx-addr { display: flex !important; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--hx-dim) !important; }
.hx-addr svg { flex: none; margin-top: 2px; color: var(--hx-accent); }
.hx-addr:hover { color: var(--hx-ink) !important; }
.hx-phones { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-phones a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--hx-soft); font-size: 14px; font-weight: 600; direction: ltr; transition: background .2s, color .2s; }
.hx-phones a:hover { background: var(--hx-ink); color: #FFFFFF !important; }
.hx-phones em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--hx-dim); }
.hx-phones a:hover em { color: #C9CDD4; }

.hx-form { background: #FFFFFF; box-shadow: 0 1px 2px rgba(7,8,12,.04), 0 30px 60px -40px rgba(7,8,12,.35); }
.hx-field b { color: var(--hx-accent); font-weight: 600; }
.hx-field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235B616E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
[dir="rtl"] .hx-field select { background-position: left 16px center; padding-right: 16px; padding-left: 40px; }
.hx-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.hx-form-foot button[type=submit] { align-self: auto; min-width: 200px; justify-content: center; background: var(--hx-accent); color: #FFFFFF; }
.hx-form-foot button[type=submit]:hover { background: var(--hx-accent-dark); }
@media (max-width: 960px) {
    .hx-contact .hx-wrap { grid-template-columns: minmax(0, 1fr); }
    .hx-form-foot button[type=submit] { width: 100%; }
}
