@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* Animation keyframes */
@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Base styles */
html {
    scroll-behavior: smooth;
}

body {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
}

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

/* Floating animations */
.animate-float1 {
    animation: float1 8s ease-in-out infinite;
}

.animate-float2 {
    animation: float2 10s ease-in-out infinite;
}

.animate-float3 {
    animation: float3 12s ease-in-out infinite;
}

/* Glassmorphism effect */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Section animations */
section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.show {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation hover effects */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #B84040;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Background elements */
.tech-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(184, 64, 64, 0.5);
    /* Opacité + léger flottement vertical */
    animation: pulse 4s ease-in-out infinite, float1 14s ease-in-out infinite;
}

.tech-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, rgba(184, 64, 64, 0.1), rgba(184, 64, 64, 0.5), rgba(184, 64, 64, 0.1));
    /* déplacement horizontal très lent */
    animation: wave 18s linear infinite;
}

.tech-hexagon {
    position: absolute;
    width: 60px;
    height: 34.64px;
    background-color: rgba(255, 255, 255, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    /* dérive lente pour éviter un fond complètement figé */
    animation: float2 20s ease-in-out infinite;
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .text-7xl {
        font-size: 3.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
  #languageToggleContainer {
    top: 3.5rem;     /* on le descend un peu sous la nav */
    right: 1rem;   /* on le rapproche du bord pour petits écrans */
  }
}

section {
  scroll-margin-top: 40px; /* hauteur approx de la nav */
}

@media (max-width: 768px) {
  section {
    scroll-margin-top: 36px;
  }
}



/* --- BACKGROUND PREMIUM WAERSOFT --- */
body {
  background: #fafafa;
  position: relative;
  overflow-x: hidden;
}

/* Motif géométrique ultra léger */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;

  background-image:
    radial-gradient(circle at 20% 30%, rgba(184,64,64,0.08) 2px, transparent 3px),
    radial-gradient(circle at 80% 70%, rgba(184,64,64,0.06) 2px, transparent 3px),
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);

  background-size:
    300px 300px,     /* points rouges subtils */
    400px 400px,     /* points rouges subtils */
    50px 50px,       /* grille horizontale */
    50px 50px;       /* grille verticale */

  z-index: -1;
  opacity: 0.55; /* ajuste si nécessaire */
}

/* Légère lumière premium dans le coin */
body::after {
  content: "";
  position: fixed;
  top: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: radial-gradient(
    circle,
    rgba(184, 64, 64, 0.10),
    transparent 70%
  );
  pointer-events: none;
  z-index: -2;
}

/* Canvas technique : déjà en fond blanc, on le laisse transparent */
#techCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: transparent;
  overflow: hidden;
}

/* Points lumineux (nodes) */
.tech-node {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(184, 64, 64, 0.55);
  box-shadow: 0 0 10px rgba(184, 64, 64, 0.45);
  opacity: 0.35;
  animation: node-pulse 6s ease-in-out infinite;
}

/* Petites lignes lumineuses */
/* Lignes diagonales plus élégantes */
.tech-line {
  position: absolute;
  height: 1.4px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 64, 64, 0.35),
    transparent
  );
  opacity: 0.35;
  filter: blur(0.5px);

  /* On force la ligne à être diagonale */
  transform: rotate(45deg);

  animation: line-diagonal-move 8s linear infinite;
}




/* Hexagones flottants */
.tech-hexagon {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(184, 64, 64, 0.25);
  box-shadow: 0 0 14px rgba(184, 64, 64, 0.25);
  clip-path: polygon(
    25% 3%,
    75% 3%,
    100% 50%,
    75% 97%,
    25% 97%,
    0 50%
  );
  opacity: 0.16;
  animation: hex-float 18s ease-in-out infinite;
}

/* ANIMATIONS */

@keyframes node-pulse {
  0% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.2;
  }
  40% {
    transform: translate3d(var(--tx, 8px), var(--ty, -6px), 0) scale(1.4);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(0.9);
    opacity: 0.2;
  }
}

/* Animation diagonale plus futuriste */
@keyframes line-diagonal-move {
  0% {
    transform: translate(-50px, -50px) rotate(45deg);
  }
  100% {
    transform: translate(50px, 50px) rotate(45deg);
  }
}

@keyframes hex-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    opacity: 0.1;
  }
  50% {
    transform: translate3d(0, -30px, 0) scale(1.05) rotate(5deg);
    opacity: 0.22;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    opacity: 0.1;
  }
}


.solution-logo {
  width: 220px;        /* ou 140–180 selon ton design */
  height: auto;        /* IMPORTANT */
  max-width: 100%;
  object-fit: contain; /* évite toute déformation */
  display: block;
  margin-bottom: 16px;
}

