/* ============================================================
   HERO VIDÉO — Apparition logo + loop (style Synergyz.fr)
   ============================================================
   ⚠️ FICHIER À MAINTENIR À LA MAIN pour .hero-video__* : style/hero.scss
   ne contient pas ces règles (pulse-ring, beam, orbit, halo, inversion
   multiply→screen des reflets du logo). Ne PAS recompiler ce fichier
   depuis hero.scss (sass hero.scss hero.css / npm run build) sans avoir
   d'abord reporté ce contenu dans le .scss, sous peine de le perdre à
   nouveau. (Restauré depuis git le 2026-09-22.)
   ============================================================ */
.hero-video {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: #050a14;
  isolation: isolate;
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  /* Apparition douce de la vidéo */
  opacity: 0;
  animation: heroVideoFadeIn 1.6s ease-out 0.1s forwards;
}

.hero-video__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(5, 10, 20, 0.25), rgba(5, 10, 20, 0.7) 75%, rgba(5, 10, 20, 0.92)),
    linear-gradient(180deg, rgba(5, 10, 20, 0.55) 0%, rgba(5, 10, 20, 0.25) 35%, rgba(5, 10, 20, 0.45) 65%, rgba(5, 10, 20, 0.85) 100%);
  pointer-events: none;
}

.hero-video__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(39, 175, 230, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(106, 196, 209, 0.08), transparent 60%);
  mix-blend-mode: screen;
}

.hero-video__center {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0 2rem;
  text-align: center;
}

.hero-video__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.hero-video__logo {
  position: relative;
  z-index: 1;
  width: min(720px, 84vw);
  display: block;
  filter: drop-shadow(0 18px 45px rgba(39, 175, 230, 0.32));
  transform-style: preserve-3d;
}

.hero-video__logo svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Halo derrière le logo : pulse continu */
.hero-video__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  max-width: 110vw;
  height: 360px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(39, 175, 230, 0.42), rgba(106, 196, 209, 0.18) 40%, transparent 70%);
  filter: blur(60px);
  opacity: 0;
  animation:
    heroGlowReveal 1.6s ease-out 0.4s forwards,
    heroGlowPulse  6s ease-in-out 2.0s infinite;
}

/* Onde concentrique pour le "data pulse" périodique (animée par GSAP) */
.hero-video__pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border: 1px solid rgba(39, 175, 230, 0.5);
  border-radius: 50%;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
}

/* Beam de lumière qui balaie le logo périodiquement (animé par GSAP) */
.hero-video__beam {
  position: absolute;
  top: -15%;
  left: -10%;
  width: 3px;
  height: 130%;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(106, 196, 209, 0.7) 20%,
    rgba(168, 232, 240, 1) 50%,
    rgba(39, 175, 230, 0.8) 80%,
    transparent 100%);
  filter: blur(1px);
  box-shadow:
    0 0 24px rgba(106, 196, 209, 0.85),
    0 0 60px rgba(39, 175, 230, 0.6);
  transform: skewX(-12deg);
}

/* Particules d'orbite autour du logo (animées par GSAP) */
.hero-video__orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(168, 232, 240, 0.95);
  box-shadow: 0 0 12px rgba(106, 196, 209, 0.9), 0 0 24px rgba(39, 175, 230, 0.6);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}

/* Highlights des coins du Z ET du A de "IA" : on inverse le blend-mode
   (multiply → screen) pour que le gradient ÉCLAIRCISSE au lieu d'assombrir.
   Le bout sombre du gradient devient transparent en screen,
   le bout teal éclaire les coins comme un vrai reflet. */
.hero-video__logo .cls-16,
.hero-video__logo .cls-17,
.hero-video__logo .cls-18,
.hero-video__logo .cls-19 {
  mix-blend-mode: screen;
  opacity: 0.75;
}

/* États initiaux du SVG inline : GSAP les révèle ensuite */
.hero-video__logo .cls-11,
.hero-video__logo .cls-2,
.hero-video__logo .cls-12,
.hero-video__logo .cls-4,
.hero-video__logo .cls-13,
.hero-video__logo .cls-16,
.hero-video__logo .cls-17,
.hero-video__logo .cls-1,
.hero-video__logo .cls-3 {
  opacity: 0;
}

/* Fallback si JS désactivé : tout visible */
.no-js .hero-video__logo .cls-11,
.no-js .hero-video__logo .cls-2,
.no-js .hero-video__logo .cls-12,
.no-js .hero-video__logo .cls-4,
.no-js .hero-video__logo .cls-13,
.no-js .hero-video__logo .cls-16,
.no-js .hero-video__logo .cls-17,
.no-js .hero-video__logo .cls-1,
.no-js .hero-video__logo .cls-3 {
  opacity: 1 !important;
}

.hero-video__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(240, 246, 255, 0.7);
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: heroTaglineReveal 1.2s ease-out 4.4s forwards;
  transition: color 0.3s ease;
}

.hero-video__scroll:hover { color: #fff; }

.hero-video__scroll-arrow {
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, rgba(39, 175, 230, 0.9), transparent);
  position: relative;
  overflow: hidden;
}

.hero-video__scroll-arrow::after {
  content: '';
  position: absolute;
  top: -38px;
  left: 0;
  width: 1px;
  height: 38px;
  background: linear-gradient(180deg, transparent, #6ac4d1, transparent);
  animation: heroScrollPulse 2.4s ease-in-out infinite;
}

/* ── Keyframes ──────────────────────────────────────────────── */
@keyframes heroVideoFadeIn {
  to { opacity: 1; }
}

@keyframes heroGlowReveal {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
}

@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes heroTaglineReveal {
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes heroScrollPulse {
  0%   { transform: translateY(0); }
  100% { transform: translateY(76px); }
}

@media (max-width: 720px) {
  .hero-video { min-height: 560px; }
  .hero-video__logo { width: 92vw; }
  .hero-video__glow { width: 110vw; height: 280px; }
  .hero-video__scroll { bottom: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video__bg,
  .hero-video__glow,
  .hero-video__scroll,
  .hero-video__scroll-arrow::after {
    animation: none !important;
    opacity: 1 !important;
  }
  .hero-video__logo .cls-11,
  .hero-video__logo .cls-2,
  .hero-video__logo .cls-12,
  .hero-video__logo .cls-4,
  .hero-video__logo .cls-13,
  .hero-video__logo .cls-16,
  .hero-video__logo .cls-17,
  .hero-video__logo .cls-1,
  .hero-video__logo .cls-3 {
    opacity: 1 !important;
  }
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  background: radial-gradient(ellipse 55% 70% at 20% 50%, rgba(39, 175, 230, 0.08), transparent), radial-gradient(ellipse 45% 60% at 80% 30%, rgba(106, 196, 209, 0.05), transparent);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 6rem;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

.hero-orbit-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(39, 175, 230, 0.15);
}

.hero-ring--1 {
  width: 55%;
  aspect-ratio: 1;
  transform: rotateX(72deg);
  animation: orbit1 8s linear infinite;
  border-color: rgba(39, 175, 230, 0.18);
}

.hero-ring--2 {
  width: 78%;
  aspect-ratio: 1;
  transform: rotateX(72deg) rotateZ(55deg);
  animation: orbit2 14s linear infinite;
  border-color: rgba(106, 196, 209, 0.12);
}

.hero-ring--3 {
  width: 96%;
  aspect-ratio: 1;
  transform: rotateX(72deg) rotateZ(115deg);
  animation: orbit3 22s linear infinite;
  border-color: rgba(39, 175, 230, 0.07);
}

.hero-ring-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-blue-primary);
  box-shadow: 0 0 10px 2px rgba(39, 175, 230, 0.8);
}
.hero-ring--2 .hero-ring-dot {
  width: 6px;
  height: 6px;
  background: var(--color-teal);
  box-shadow: 0 0 10px 2px rgba(106, 196, 209, 0.7);
}
.hero-ring--3 .hero-ring-dot {
  width: 5px;
  height: 5px;
  top: -3px;
  box-shadow: 0 0 8px 2px rgba(39, 175, 230, 0.5);
}

.hero-glow {
  position: absolute;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 175, 230, 0.14) 0%, transparent 70%);
  animation: glowPulse 7s ease-in-out infinite;
  will-change: opacity;
  pointer-events: none;
  z-index: 1;
}

.hero-svg-wrap {
  position: relative;
  z-index: 2;
  width: 75%;
  max-width: 380px;
}

#hero-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  animation: svgFloat 6s ease-in-out infinite;
}
#hero-svg #svg-z {
  opacity: 0;
  filter: url(#svg-glow);
}
#hero-svg #svg-z-glow {
  opacity: 0;
  filter: url(#svg-glow-soft);
}
#hero-svg #svg-z-stroke {
  opacity: 0;
}
#hero-svg.svg-ready #svg-z-glow {
  will-change: opacity;
  animation: svgGlowPulse 4s ease-in-out infinite;
}

.hero-svg-scan {
  display: none;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 7px;
  border-radius: 99px;
  border: 1px solid rgba(39, 175, 230, 0.22);
  background: rgba(39, 175, 230, 0.06);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-smooth) 0.5s forwards;
}

.hero-badge-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue-primary), var(--color-teal));
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-badge-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: blink 2s ease-in-out infinite;
}

.hero-badge-text {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue-primary);
}

.hero-headline {
  font-family: "Nunito", sans-serif;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  font-weight: normal;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.hero-line-inner {
  display: block;
  color: var(--color-text-primary);
  transform: translateY(110%);
  animation: slideUp 0.85s var(--ease-smooth) forwards;
}

.hero-line:nth-child(1) .hero-line-inner {
  animation-delay: 0.65s;
}

.hero-line:nth-child(2) .hero-line-inner {
  animation-delay: 0.8s;
}

.hero-line:nth-child(3) .hero-line-inner {
  animation-delay: 0.95s;
}

.hero-gradient-text {
  background: linear-gradient(120deg, var(--color-blue-primary), var(--color-teal) 55%, #a8e6f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-services {
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-blue-primary);
  margin-bottom: 1.2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-smooth) 1s forwards;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--color-text-secondary);
  max-width: 460px;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-smooth) 1.2s forwards;
}

.hero-kpi {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-smooth) 1.35s forwards;
}

.hero-kpi-number {
  font-family: "Roboto", sans-serif;
  font-size: 4rem;
  line-height: 1;
  background: linear-gradient(135deg, #a8e8f0 0%, var(--color-teal) 40%, var(--color-blue-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(39, 175, 230, 0.45));
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.hero-kpi-divider {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(39, 175, 230, 0.4), transparent);
  flex-shrink: 0;
}

.hero-kpi-label {
  font-size: 0.82rem;
  font-weight: 300;
  color: var(--color-text-secondary);
  line-height: 1.5;
  max-width: 180px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-smooth) 1.4s forwards;
}

.hero-btn-primary {
  padding: 14px 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--color-blue-primary), var(--color-teal));
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(39, 175, 230, 0.35);
  transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s ease;
}
.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(39, 175, 230, 0.5);
}

.hero-btn-ghost {
  padding: 14px 28px;
  border-radius: 14px;
  border: 1px solid rgba(39, 175, 230, 0.2);
  color: var(--color-text-secondary);
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.hero-btn-ghost:hover {
  border-color: rgba(39, 175, 230, 0.5);
  color: var(--color-text-primary);
  background: rgba(39, 175, 230, 0.06);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.7s var(--ease-smooth) 2s forwards;
}

.hero-scroll-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-scroll-bar {
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--color-blue-primary), transparent);
  transform-origin: top center;
  animation: scrollBar 2s ease-in-out 2.2s infinite;
}

@keyframes orbit1 {
  from {
    transform: rotateX(72deg) rotateZ(0deg);
  }
  to {
    transform: rotateX(72deg) rotateZ(360deg);
  }
}
@keyframes orbit2 {
  from {
    transform: rotateX(72deg) rotateZ(55deg);
  }
  to {
    transform: rotateX(72deg) rotateZ(-305deg);
  }
}
@keyframes orbit3 {
  from {
    transform: rotateX(72deg) rotateZ(115deg);
  }
  to {
    transform: rotateX(72deg) rotateZ(475deg);
  }
}
@keyframes svgZIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes svgGlowPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.85;
  }
}
@keyframes svgDotPop {
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes svgIaIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes svgFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes scanLine {
  to {
    transform: translateX(120%);
  }
}
@keyframes glowPulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}
@keyframes slideUp {
  to {
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}
@keyframes scrollBar {
  0% {
    transform: scaleY(0);
    opacity: 0;
    transform-origin: top;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: top;
  }
  55% {
    transform: scaleY(1);
    opacity: 1;
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    opacity: 0;
    transform-origin: bottom;
  }
}
@media (max-width: 900px) {
  .hero {
    padding-top: 0;
    height: auto;
    min-height: 100svh;
    overflow-x: clip;
    justify-content: flex-start;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
    padding: 150px 1.5rem 4rem;
  }
  .hero-visual {
    max-width: 200px;
    margin: 0 auto;
  }
  .hero-orbit-bg {
    display: none;
  }
  .hero-text {
    align-items: center;
  }
  .hero-headline {
    text-align: center;
  }
  .hero-sub {
    text-align: center;
    max-width: 480px;
  }
  .hero-kpi {
    justify-content: center;
  }
  .hero-ctas {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .hero-btn-primary,
  .hero-btn-ghost {
    text-align: center;
    font-size: 13px;
    padding: 12px 18px;
  }
}
