/* =========================================================
   GENICOTIK : Effets futuristes pour images
   ========================================================= */

/* Conteneur image avec effets */
.fx-img {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(42, 168, 255, 0.25);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(42, 168, 255, 0.08);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.fx-img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    135deg,
    rgba(42, 168, 255, 0.15) 0%,
    transparent 40%,
    transparent 60%,
    rgba(77, 195, 255, 0.1) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.fx-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(42, 168, 255, 0.03) 2px,
    rgba(42, 168, 255, 0.03) 4px
  );
  pointer-events: none;
  animation: scanlines 8s linear infinite;
}

.fx-img:hover {
  border-color: rgba(42, 168, 255, 0.6);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(42, 168, 255, 0.25);
  transform: translateY(-2px);
}

.fx-img:hover::before {
  opacity: 1;
}

.fx-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease, opacity 0.4s ease;
}

.fx-img:hover img {
  transform: scale(1.04);
  filter: brightness(1.1) saturate(1.15);
}

/* Halo néon animé */
.fx-img .fx-glow {
  position: absolute;
  inset: -2px;
  z-index: 1;
  border-radius: inherit;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(42, 168, 255, 0.4),
    transparent,
    rgba(77, 195, 255, 0.3),
    transparent
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: rotateGlow 4s linear infinite;
  pointer-events: none;
}

.fx-img:hover .fx-glow {
  opacity: 1;
}

/* Coins HUD futuristes */
.fx-img .fx-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  z-index: 4;
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.fx-img:hover .fx-corner {
  opacity: 1;
}

.fx-corner--tl { top: 8px; left: 8px; border-top: 2px solid #4dc3ff; border-left: 2px solid #4dc3ff; }
.fx-corner--tr { top: 8px; right: 8px; border-top: 2px solid #4dc3ff; border-right: 2px solid #4dc3ff; }
.fx-corner--bl { bottom: 8px; left: 8px; border-bottom: 2px solid #4dc3ff; border-left: 2px solid #4dc3ff; }
.fx-corner--br { bottom: 8px; right: 8px; border-bottom: 2px solid #4dc3ff; border-right: 2px solid #4dc3ff; }

/* Carte image (services, expertise) */
.fx-card-img {
  position: relative;
  overflow: hidden;
}

.fx-card-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 20, 30, 0.9) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

.fx-card-img .fx-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(77, 195, 255, 0.15), transparent);
  z-index: 2;
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

/* Header image (pages internes) */
.header-image.fx-img {
  max-width: 800px;
  margin: 0 auto 30px;
}

/* Particules flottantes (décoratif) */
.fx-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.fx-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #4dc3ff;
  border-radius: 50%;
  box-shadow: 0 0 6px #2aa8ff;
  animation: floatParticle 6s ease-in-out infinite;
  opacity: 0;
}

.fx-img:hover .fx-particles span {
  opacity: 0.8;
}

.fx-particles span:nth-child(1) { top: 20%; left: 15%; animation-delay: 0s; }
.fx-particles span:nth-child(2) { top: 60%; left: 80%; animation-delay: 1s; }
.fx-particles span:nth-child(3) { top: 40%; left: 50%; animation-delay: 2s; }
.fx-particles span:nth-child(4) { top: 75%; left: 30%; animation-delay: 0.5s; }
.fx-particles span:nth-child(5) { top: 30%; left: 70%; animation-delay: 1.5s; }

/* Pulse néon sur le hero logo */
.fx-hero-logo {
  animation: logoPulse 4s ease-in-out infinite;
}

@keyframes scanlines {
  0% { transform: translateY(0); }
  100% { transform: translateY(4px); }
}

@keyframes rotateGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-12px) scale(1.3); opacity: 1; }
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 40px rgba(42, 168, 255, 0.6)); }
  50% { filter: drop-shadow(0 0 60px rgba(77, 195, 255, 0.9)); }
}

@media (max-width: 768px) {
  .header-image.fx-img { margin-bottom: 20px; }
}