/* ===============================================
   HERO SECTION - Split layout + Network Canvas
   =============================================== */

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  isolation: isolate;
  margin-top: 0;
}

/* Bloquer le fond sombre du body qui transparaît */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse at 95% -15%, rgba(227,6,19,0.04) 0%, transparent 65%),
    radial-gradient(ellipse at 25% 105%, rgba(227,6,19,0.02) 0%, transparent 70%),
    #FFFFFF;
}

/* Layout grid */
.hero-grid {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
}

.hero-left {
  position: relative;
  z-index: 10;
  width: 56%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(40px, 8vw, 144px);
  padding-right: 3vw;
  padding-top: 90px;
  padding-bottom: 80px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

/* Title */
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(32px, 3.8vw, 62px);
  line-height: 1.08;
  color: #111;
  letter-spacing: -0.025em;
  max-width: 92%;
  margin-bottom: 1.4rem;
  text-shadow: none;
}

.hero-accent {
  background: linear-gradient(125deg, #E30613 0%, #FF5A6D 52%, #C8000E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.typewriter-slot {
  display: inline-block;
  width: 29ch;
  white-space: nowrap;
  vertical-align: baseline;
}

.typewriter-text {
  display: inline-block;
  white-space: nowrap;
  border-right: 2px solid var(--accent-red);
  animation: typewriterCaret 0.8s steps(1, end) infinite;
}

@media (max-width: 768px) {
  .typewriter-slot {
    width: 100%;
  }
}

@keyframes typewriterCaret {
  0%, 45% { border-color: var(--accent-red); }
  46%, 100% { border-color: transparent; }
}

/* Subtitle */
.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1vw, 17px);
  line-height: 1.80;
  color: rgba(17,17,17,0.50);
  max-width: 500px;
  margin: 0 0 2.4rem;
  font-weight: 400;
  letter-spacing: normal;
  text-shadow: none;
  text-align: left;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0;
  animation: fadeIn 1s ease-out 1s both;
}

.hero-cta-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: 16px;
  border: none;
  color: #ffffff;
  background: #E30613;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.2);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 6, 19, 0.3);
  background: #B80510;
  color: #ffffff;
}

.hero-cta-btn.secondary {
  color: #111111;
  background: #ffffff;
  border: 2px solid #E30613;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.hero-cta-btn.secondary:hover {
  background: #f0f0f0;
  border-color: #E30613;
  color: #111111;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 0.75px solid rgba(17,17,17,0.07);
}

.hero-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #111;
  line-height: 1;
  margin-bottom: 5px;
}

.hero-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(17,17,17,0.40);
}

/* Right side: canvas + orbiting cards */
.hero-right {
  position: relative;
  z-index: 10;
  width: 48%;
  flex-shrink: 0;
  
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#digital-core-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.service-orbit-item {
  position: absolute;
  transform: translate(-50%, -50%);
  will-change: left, top;
}


.orbit-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 160px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    will-change: transform;
    position: relative;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.orbit-card:hover .orbit-icon svg {
    stroke: #ff3333;
}

.orbit-card > div:last-child {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/*.service-orbit-item:nth-child(3) .orbit-card { animation-duration: 3.82s; animation-delay: -0.65s; }
.service-orbit-item:nth-child(4) .orbit-card { animation-duration: 4.04s; animation-delay: -1.3s; }
.service-orbit-item:nth-child(5) .orbit-card { animation-duration: 4.26s; animation-delay: -1.95s; }
.service-orbit-item:nth-child(6) .orbit-card { animation-duration: 4.48s; animation-delay: -2.6s; }
.service-orbit-item:nth-child(7) .orbit-card { animation-duration: 4.70s; animation-delay: -3.25s; }
*/
.orbit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit-title {
 font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.25;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(192, 5, 5, 0.3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.orbit-desc {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: rgba(17,17,17,0.42);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*@keyframes cardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}*/

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  animation: arrowFloat 1.8s ease-in-out infinite;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@keyframes arrowFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(7px); }
}

.scroll-indicator svg {
  width: 36px;
  height: 36px;
  stroke: rgba(17,17,17,0.35);
  stroke-width: 2.1;
  fill: none;
  filter: none;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-grid { flex-direction: column; }
  .hero-left, .hero-right { width: 100%; }
  .hero-left { padding-top: 118px; text-align: center; align-items: center; }
  .hero-title { max-width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; flex-wrap: wrap; }
  .hero-right { min-height: 420px; }
}

@media (max-width: 576px) {
  .hero-left { padding: 112px 20px 40px; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta-btn { width: 100%; text-align: center; }
  .hero-stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-left, .hero-cta, .scroll-indicator, .orbit-card {
    animation: none !important;
  }
}
