/* ═══════════════════════════════════════════════════════════════════════
   HERO — « Une nuit sous protection »
   Une histoire en 4 actes sur une villa dakaroise dessinée au trait :
   01 Installation · 02 Connexion · 03 Détection · 04 Réaction
   Règles : transform/opacity en priorité, pause hors écran, mouvement réduit
   respecté, aucune librairie. Toutes les règles sont préfixées (.hx / .hx3).
═══════════════════════════════════════════════════════════════════════ */

@property --shield {
  syntax: '<color>';
  inherits: true;
  initial-value: #9cc3ff;
}

.hx {
  --hx-ink:    #060f33;
  --hx-red:    #CC2229;
  --hx-red-hi: #ff4d55;                 /* rouge éclairci : contraste AA sur navy */
  --hx-ok:     #34d399;
  --hx-warn:   #f59e0b;
  --hx-ice:    #9cc3ff;
  --hx-text:   #ffffff;
  --hx-muted:  rgba(226, 232, 255, .74);
  --hx-line:   rgba(255, 255, 255, .08);
  --hx-glass:  rgba(255, 255, 255, .055);
  --hx-mono:   ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --hx-ease:   cubic-bezier(.2, .8, .2, 1);
  --hx-spring: cubic-bezier(.34, 1.4, .64, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  color: var(--hx-text);
  background: radial-gradient(120% 90% at 74% 42%, #142c78 0%, #0a1850 40%, var(--hx-ink) 78%);
  font-family: 'Poppins', system-ui, sans-serif;
}
.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Fond ─────────────────────────────────────────────────────────────── */
.hx-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hx-gridwrap {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 66% 46%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 75% 70% at 66% 46%, #000 25%, transparent 75%);
}
.hx-grid {
  position: absolute; inset: -64px;
  background-image:
    linear-gradient(var(--hx-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hx-line) 1px, transparent 1px);
  background-size: 64px 64px;
  animation: hxGrid 26s linear infinite;
}
@keyframes hxGrid { to { transform: translate3d(64px, 64px, 0); } }
.hx-orb { position: absolute; border-radius: 50%; }
.hx-orb--red {
  width: 46vw; height: 46vw; left: -14vw; top: 22%;
  background: radial-gradient(circle, rgba(204, 34, 41, .20), transparent 62%);
  animation: hxDrift 18s var(--hx-ease) infinite alternate;
}
.hx-orb--blue {
  width: 52vw; height: 52vw; right: -16vw; top: -18%;
  background: radial-gradient(circle, rgba(96, 165, 250, .17), transparent 62%);
  animation: hxDrift 22s var(--hx-ease) infinite alternate-reverse;
}
@keyframes hxDrift { to { transform: translate3d(4vw, -3vw, 0) scale(1.08); } }
.hx-grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Mise en page ─────────────────────────────────────────────────────── */
.hx-inner {
  position: relative; flex: 1;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: 36px;
}
.hx-copy { will-change: transform; }

/* ── Colonne texte ────────────────────────────────────────────────────── */
.hx-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  background: var(--hx-glass);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 .76rem/1 var(--hx-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--hx-muted);
}
.hx-pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--hx-ok); }
.hx-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--hx-ok); animation: hxPing 2s var(--hx-ease) infinite; }
@keyframes hxPing { to { transform: scale(3.2); opacity: 0; } }

.hx-title {
  margin-top: 20px;
  font-weight: 800;
  font-size: clamp(2.4rem, 4.6vw, 4.05rem);
  line-height: 1.03; letter-spacing: -.035em;
  text-wrap: balance;
}
.hx-row { display: block; }
.hx-row--accent { position: relative; display: inline-block; margin-top: .06em; }
.hx-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hx-w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0) rotate(4deg); transform-origin: 0 100%;
  transition: transform 1.05s var(--hx-ease) var(--d, 0ms);
}
.hx.is-in .hx-w > span { transform: none; }
.hx-row--accent .hx-w > span {
  background: linear-gradient(100deg, #ff8a8f 0%, var(--hx-red-hi) 45%, #ff2e38 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-row--accent::after {
  content: ''; position: absolute; left: 0; right: .2em; bottom: -.06em; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--hx-red-hi), rgba(255, 77, 85, 0));
  box-shadow: 0 0 18px rgba(255, 77, 85, .55);
  transform: scaleX(0); transform-origin: left;
  transition: transform 1.1s var(--hx-ease) var(--d-line, 900ms);
}
.hx.is-in .hx-row--accent::after { transform: scaleX(1); }

.hx-sub { max-width: 34rem; margin-top: 20px; font-size: clamp(1rem, 1.25vw, 1.15rem); line-height: 1.65; color: var(--hx-muted); }

.hx-js .hx [data-reveal] {
  opacity: 0; transform: translate3d(0, 18px, 0);
  transition: opacity .9s var(--hx-ease) var(--d, 0ms), transform .9s var(--hx-ease) var(--d, 0ms);
}
.hx-js .hx.is-in [data-reveal] { opacity: 1; transform: none; }
/* Le sous-titre est le plus grand texte visible au chargement : on l'affiche tout de suite
   (seul un léger glissement est animé) pour ne pas retarder l'affichage perçu. */
.hx-js .hx .hx-sub[data-reveal] { opacity: 1; }

/* Boutons */
.hx-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hx-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 14px;
  font: 600 1rem/1 'Poppins', system-ui, sans-serif; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: translate .45s var(--hx-ease), scale .2s var(--hx-ease), background-color .25s, border-color .25s, box-shadow .35s var(--hx-ease);
}
.hx-btn svg { width: 18px; height: 18px; transition: transform .35s var(--hx-ease); }
.hx-btn:hover svg { transform: translateX(4px); }
.hx-btn:active { scale: .97; }
.hx-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.hx-btn--primary {
  overflow: hidden; color: #fff;
  background: linear-gradient(135deg, #e5363d, #b51d23);
  box-shadow: 0 12px 32px -12px rgba(204, 34, 41, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.hx-btn--primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--hx-ease);
}
.hx-btn--primary:hover::before { transform: translateX(120%); }
.hx-btn--primary:hover { box-shadow: 0 20px 44px -14px rgba(204, 34, 41, 1), inset 0 1px 0 rgba(255, 255, 255, .25); }
.hx-btn--primary > * { position: relative; }
.hx-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .22); background: var(--hx-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hx-btn--ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .09); }

/* Chiffres + confiance */
.hx-stats { display: flex; gap: clamp(22px, 3.2vw, 44px); margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--hx-line); }
.hx-stats > div { display: flex; flex-direction: column-reverse; gap: 6px; }
.hx-stats dd { font-weight: 800; font-size: clamp(1.6rem, 2.3vw, 2.05rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hx-stats dd em { font-style: normal; color: var(--hx-red-hi); }
.hx-stats dt { font-size: .82rem; color: var(--hx-muted); }
.hx-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: .84rem; color: var(--hx-muted); }
.hx-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hx-trust svg { width: 16px; height: 16px; flex: none; color: var(--hx-ok); }

/* ═══ SCÈNE ══════════════════════════════════════════════════════════════ */
.hx3 {
  --shield: #9cc3ff;
  position: relative;
  width: min(100%, 620px);
  justify-self: end;
  perspective: 1400px;
  transition: --shield .7s ease;
}
.hx3.is-breach { --shield: #ff4d55; }
.hx3.is-safe   { --shield: #34d399; }

.hx3-panel {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, .11);
  background: linear-gradient(180deg, #17318a 0%, #0e2163 55%, #0a1748 100%);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .10);
  transform-origin: 50% 50%;
  will-change: transform;
}
.hx3-art { position: relative; }
.hx3-night { position: absolute; inset: 0; background: linear-gradient(180deg, #02061b 0%, #050d30 60%, #081443 100%); opacity: 0; transition: opacity 1.2s var(--hx-ease); }
.hx3.s3 .hx3-night { opacity: .93; }
.hx3-svg { position: relative; display: block; width: 100%; height: auto; }
.hx3-wash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(55% 50% at 78% 38%, rgba(255, 45, 55, .55), transparent 70%);
  mix-blend-mode: screen;
}
.hx3.is-siren .hx3-wash { animation: hx3Wash .7s ease-in-out infinite; }
@keyframes hx3Wash { 0%, 100% { opacity: 0; } 50% { opacity: .6; } }
.hx3-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(380px circle at var(--gx, 72%) var(--gy, 18%), rgba(255, 255, 255, .07), transparent 60%); }

/* Traits (tracé progressif grâce à pathLength="1") */
.hx3-l { fill: none; stroke: rgba(255, 255, 255, .88); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hx3-l--soft { stroke: rgba(255, 255, 255, .42); }
.hx3-draw {
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.7s var(--hx-ease) var(--dd, 0ms), fill-opacity .9s var(--hx-ease) calc(var(--dd, 0ms) + 900ms);
}
.hx3.is-drawn .hx3-draw { stroke-dashoffset: 0; }
.hx3-vol { fill: url(#hx3Vol); fill-opacity: 0; }
.hx3-vol--front { fill: url(#hx3Wall); }
.hx3.is-drawn .hx3-vol { fill-opacity: 1; }

/* Nuit : ombre sur la maison, étoiles, lune, fenêtres qui s'allument */
.hx3-shade { fill: #020617; opacity: 0; transition: opacity 1.2s var(--hx-ease); }
.hx3.s3 .hx3-shade { opacity: .36; }
.hx3-stars { opacity: 0; transition: opacity 1.4s ease .3s; }
.hx3.s3 .hx3-stars { opacity: 1; }
.hx3-stars circle { fill: #fff; }
.hx3-stars circle:nth-child(odd) { animation: hx3Twinkle 2.4s ease-in-out infinite alternate; }
@keyframes hx3Twinkle { to { opacity: .2; } }
.hx3-moon { fill: #e8eeff; opacity: .22; transition: opacity 1.2s ease; }
.hx3.s3 .hx3-moon { opacity: .95; }
.hx3-win { fill: #ffcf7a; fill-opacity: 0; transition: fill-opacity .7s ease var(--wd, 0ms); }
.hx3.s3 .hx3-win { fill-opacity: .6; }

/* Dôme de protection */
.hx3-shield-stop { stop-color: var(--shield); }
.hx3-dome {
  fill: url(#hx3Dome); fill-opacity: 0;
  stroke: var(--shield); stroke-width: 1.4;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.9s var(--hx-ease) .5s, fill-opacity 1s ease 1.5s;
}
.hx3.s2 .hx3-dome { stroke-dashoffset: 0; fill-opacity: 1; }
.hx3.is-breach .hx3-dome { animation: hx3Flash .45s ease 3; }
@keyframes hx3Flash { 50% { stroke-width: 3.2; } }
.hx3-dome-run { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: .05 .95; stroke-dashoffset: 1; opacity: 0; }
.hx3.s2 .hx3-dome-run { opacity: .85; transition: opacity .5s ease 2.1s; animation: hx3Run 3.4s linear infinite 2.1s; }
.hx3.is-breach .hx3-dome-run { opacity: 0; }
@keyframes hx3Run { to { stroke-dashoffset: 0; } }

/* Champ de vision de la caméra */
.hx3-cone { opacity: 0; transform-box: view-box; transform-origin: 252px 238px; transition: opacity .7s ease .9s; }
.hx3.s1 .hx3-cone { opacity: 1; animation: hx3Sweep 5.5s ease-in-out infinite alternate; }
.hx3.is-tracked .hx3-cone { animation-play-state: paused; }
@keyframes hx3Sweep { from { transform: rotate(-8deg); } to { transform: rotate(5deg); } }
.hx3-cone-red { opacity: 0; transition: opacity .35s ease; }
.hx3.is-tracked .hx3-cone-red { opacity: 1; }

/* Réseau : liaisons vers la centrale + paquets de données */
.hx3-link { fill: none; stroke: rgba(156, 195, 255, .5); stroke-width: 1; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s var(--hx-ease) calc(var(--i) * 130ms), stroke .6s ease; }
.hx3.s2 .hx3-link { stroke-dashoffset: 0; }
.hx3.is-safe .hx3-link { stroke: rgba(52, 211, 153, .55); }
.hx3-packet { fill: none; stroke: #e3edff; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: .045 .955; stroke-dashoffset: 1; opacity: 0; }
.hx3.s2 .hx3-packet { opacity: 1; transition: opacity .3s ease 1s; animation: hx3Run 1.7s linear infinite calc(var(--i) * 280ms + 1s); }

/* Équipements */
.hx3-dev {
  opacity: 0; transform: scale(.2);
  transform-box: fill-box; transform-origin: center;
  transition: transform .75s var(--hx-spring) calc(var(--i) * 190ms), opacity .4s ease calc(var(--i) * 190ms);
}
.hx3.s1 .hx3-dev { opacity: 1; transform: none; }
.hx3-dev-ring { fill: rgba(156, 195, 255, .16); stroke: rgba(156, 195, 255, .85); stroke-width: 1.2; transition: stroke .6s ease, fill .6s ease; }
.hx3-dev-core { fill: #fff; transition: fill .3s ease; }
.hx3.is-safe .hx3-dev-ring { stroke: var(--hx-ok); fill: rgba(52, 211, 153, .16); }
.hx3-dev-pulse { fill: none; stroke: rgba(156, 195, 255, .8); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hx3.s2 .hx3-dev-pulse { animation: hx3Pulse 2.6s var(--hx-ease) infinite calc(var(--i) * 320ms); }
@keyframes hx3Pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(2.8); } }
.hx3.is-siren .hx3-dev--siren .hx3-dev-core { fill: var(--hx-red-hi); }
.hx3.is-siren .hx3-dev--siren .hx3-dev-pulse { stroke: var(--hx-red-hi); animation: hx3Pulse .7s ease-out infinite; }
.hx3.is-tracked .hx3-dev--cam .hx3-dev-core { fill: var(--hx-red-hi); }
.hx3-dev-lbl {
  font-family: var(--hx-mono); font-size: 8.5px; font-weight: 600; letter-spacing: .12em;
  fill: rgba(255, 255, 255, .9);
  paint-order: stroke; stroke: rgba(8, 18, 60, .9); stroke-width: 3px; stroke-linejoin: round;
  opacity: 0;
  transition: opacity .45s ease calc(var(--i) * 190ms + 250ms);
}
.hx3.is-install .hx3-dev-lbl { opacity: 1; }
.hx3-wifi path { fill: none; stroke: rgba(156, 195, 255, .8); stroke-width: 1.2; stroke-linecap: round; opacity: 0; }
.hx3.s2 .hx3-wifi path { animation: hx3Wifi 2s ease-in-out infinite; }
.hx3.s2 .hx3-wifi path:nth-child(2) { animation-delay: .25s; }
.hx3.s2 .hx3-wifi path:nth-child(3) { animation-delay: .5s; }
@keyframes hx3Wifi { 0%, 100% { opacity: 0; } 40% { opacity: .9; } }

/* L'intrus */
.hx3-intruder { opacity: 0; transform: translateX(-80px); }
.hx3.is-detect .hx3-intruder {
  opacity: 1; transform: translateX(160px);
  transition: transform 2.2s cubic-bezier(.35, .1, .25, 1) .3s, opacity .5s ease .3s;
}
.hx3.is-detect.is-flee .hx3-intruder {
  opacity: 0; transform: translateX(-100px);
  transition: transform 1.5s cubic-bezier(.55, 0, .75, .35), opacity .8s ease .7s;
}
.hx3.is-instant .hx3-intruder { transition: none !important; }
.hx3-fig { fill: #040a22; stroke: rgba(255, 255, 255, .6); stroke-width: 1; }
.hx3.is-walking .hx3-bob { animation: hx3Bob .4s ease-in-out infinite alternate; }
@keyframes hx3Bob { to { transform: translateY(-2.5px); } }
.hx3-bracket { opacity: 0; transition: opacity .3s ease; }
.hx3-bracket path { fill: none; stroke: var(--hx-red-hi); stroke-width: 1.6; stroke-linecap: round; }
.hx3-bracket text { font-family: var(--hx-mono); font-size: 8px; font-weight: 700; letter-spacing: .1em; fill: var(--hx-red-hi); }
.hx3.is-tracked .hx3-bracket { opacity: 1; }

/* Notification (façon téléphone) */
.hx3-notif {
  --tone: var(--hx-ice);
  position: absolute; z-index: 3; top: 14px; left: 14px;
  max-width: min(70%, 290px);
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px 9px 9px; border-radius: 14px;
  background: rgba(7, 15, 50, .74);
  border: 1px solid rgba(255, 255, 255, .13);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .75);
  opacity: 0; transform: translateY(-8px) scale(.98);
  transition: opacity .5s ease, transform .6s var(--hx-spring);
}
.hx3-notif.is-on { opacity: 1; transform: none; }
/* Vibration façon téléphone à l'alerte d'intrusion */
.hx3-notif[data-tone="alert"] { animation: hx3Buzz .5s ease-in-out .5s 2; }
@keyframes hx3Buzz { 0%, 100% { translate: 0 0; } 20% { translate: -3px 0; } 40% { translate: 3px 0; } 60% { translate: -2px 0; } 80% { translate: 2px 0; } }
.hx3-notif[data-tone="ok"]    { --tone: var(--hx-ok); }
.hx3-notif[data-tone="warn"]  { --tone: var(--hx-warn); }
.hx3-notif[data-tone="alert"] { --tone: var(--hx-red-hi); }
.hx3-notif-ico {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 18%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 32%, transparent);
}
.hx3-notif-ico svg { width: 17px; height: 17px; }
.hx3-notif-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hx3-notif-txt strong { font-size: .84rem; font-weight: 600; line-height: 1.2; }
.hx3-notif-txt small { font-size: .72rem; line-height: 1.3; color: rgba(226, 232, 255, .68); }
.hx3-notif time { align-self: flex-start; margin-left: auto; padding-left: 8px; font: 500 9.5px/1.4 var(--hx-mono); color: rgba(226, 232, 255, .55); }

/* Barre des 4 étapes (cliquable) */
.hx3-steps {
  position: relative; z-index: 4;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(5, 12, 42, .6);
}
.hx3-step {
  appearance: none; background: none; border: 0; color: inherit; font: inherit; text-align: left;
  display: flex; flex-direction: column; gap: 7px;
  min-height: 44px; padding: 7px 6px 4px; border-radius: 10px;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .25s ease;
}
.hx3-step:hover { background: rgba(255, 255, 255, .05); }
.hx3-step:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.hx3-step-head { display: flex; align-items: baseline; gap: 8px; }
.hx3-step-num { font: 600 9.5px/1 var(--hx-mono); letter-spacing: .1em; color: rgba(226, 232, 255, .45); transition: color .3s; }
.hx3-step-lbl { font-size: .8rem; font-weight: 600; color: rgba(226, 232, 255, .55); transition: color .3s; white-space: nowrap; }
.hx3-step[aria-current="step"] .hx3-step-num { color: var(--hx-red-hi); }
.hx3-step[aria-current="step"] .hx3-step-lbl,
.hx3-step.is-done .hx3-step-lbl { color: #fff; }
.hx3-step i { display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hx3-step i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--hx-ice), #fff); transform: scaleX(0); transform-origin: left; }
.hx3-step.is-done i b { transform: scaleX(1); opacity: .45; }

/* ── Bandeau défilant ─────────────────────────────────────────────────── */
.hx-marquee {
  position: relative; border-top: 1px solid var(--hx-line); background: rgba(6, 15, 51, .55); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.hx-track { display: flex; width: max-content; animation: hxMarquee 46s linear infinite; }
.hx-marquee:hover .hx-track { animation-play-state: paused; }
.hx-track span {
  display: inline-flex; align-items: center; gap: 22px; padding: 18px 22px;
  font: 500 .76rem/1 var(--hx-mono); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(226, 232, 255, .58); white-space: nowrap;
}
.hx-track i { width: 6px; height: 6px; background: var(--hx-red-hi); transform: rotate(45deg); }
@keyframes hxMarquee { to { transform: translate3d(-50%, 0, 0); } }

/* ── Header lisible au-dessus du hero sombre  ──────── */
.header:not(.scrolled) .nav-logo img {
  box-sizing: content-box; height: 34px; padding: 6px 12px; border-radius: 12px;
  background: #fff; box-shadow: 0 8px 24px -10px rgba(0, 0, 0, .5);
}

/* ── Pause hors écran ─────────────────────────────────────────────────── */
.hx.is-paused *, .hx.is-paused *::before, .hx.is-paused *::after { animation-play-state: paused !important; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hx { padding-top: 96px; }
  .hx-inner { grid-template-columns: 1fr; gap: 28px; padding-bottom: 32px; }
  .hx3 { justify-self: center; width: min(100%, 560px); }
}
@media (max-width: 600px) {
  .hx-inner { width: calc(100% - 32px); }
  .hx-title { font-size: clamp(2.3rem, 10.5vw, 3rem); }
  .hx-btn { flex: 1 1 100%; }
  .hx-stats { justify-content: space-between; gap: 12px; }
  .hx3-panel { border-radius: 22px; }
  .hx3-notif { top: 10px; left: 10px; max-width: 78%; padding: 7px 10px 7px 7px; }
  .hx3-notif time { display: none; }
  .hx3-steps { padding: 8px 8px 10px; gap: 2px; }
  .hx3-step { padding: 6px 4px 4px; }
  .hx3-step-head { flex-direction: column; gap: 4px; }
  .hx3-step-lbl { font-size: .68rem; }
  .hx3-dev-lbl { display: none; }
}

/* ── Accessibilité : mouvement réduit ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hx *, .hx *::before, .hx *::after { animation: none !important; transition: none !important; }
  .hx-w > span, .hx-js .hx [data-reveal] { transform: none !important; opacity: 1 !important; }
  .hx-row--accent::after { transform: scaleX(1); }
}

