/* =========================================================
   GENICOTIK : Visuels professionnels (remplace illustrations cartoon)
   ========================================================= */

/* ---- Bloc visuel carte / étape ---- */
.fx-pro-visual {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(42, 168, 255, 0.2);
  background: var(--fx-bg, linear-gradient(135deg, #0a1020 0%, #121a30 50%, #0d1528 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.fx-pro-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(42, 168, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 168, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  pointer-events: none;
}

.fx-pro-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(10, 15, 25, 0.85) 0%, transparent 55%);
  pointer-events: none;
}

.fx-pro-visual .fx-pro-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--fx-glow, rgba(42, 168, 255, 0.25)) 0%, transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: fxProPulse 5s ease-in-out infinite;
}

.fx-pro-visual .fx-pro-icon {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  color: var(--fx-accent, #4dc3ff);
  filter: drop-shadow(0 0 12px var(--fx-accent, rgba(77, 195, 255, 0.6)));
  transition: transform 0.4s ease, filter 0.4s ease;
}

.fx-pro-visual .fx-pro-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fx-pro-visual .fx-pro-step {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 3;
  font-family: monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(77, 195, 255, 0.7);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(42, 168, 255, 0.25);
  background: rgba(10, 15, 25, 0.6);
  backdrop-filter: blur(6px);
}

.fx-pro-visual .fx-pro-label {
  position: absolute;
  bottom: 12px;
  left: 14px;
  right: 14px;
  z-index: 3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(201, 215, 255, 0.5);
}

.fx-pro-visual .fx-pro-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(77, 195, 255, 0.06), transparent);
  animation: fxProShimmer 4s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.card:hover .fx-pro-visual .fx-pro-icon,
.fx-pro-visual:hover .fx-pro-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 0 20px var(--fx-accent, rgba(77, 195, 255, 0.8)));
}

.card:hover .fx-pro-visual,
.fx-pro-visual:hover {
  border-color: rgba(42, 168, 255, 0.45);
}

/* Variantes couleur */
.fx-pro-visual--cyan  { --fx-accent: #4dc3ff; --fx-glow: rgba(42, 168, 255, 0.3); }
.fx-pro-visual--green { --fx-accent: #31d0aa; --fx-glow: rgba(49, 208, 170, 0.25); --fx-bg: linear-gradient(135deg, #0a1218 0%, #0f1f28 50%, #0a1518 100%); }
.fx-pro-visual--amber { --fx-accent: #ffb84d; --fx-glow: rgba(255, 184, 77, 0.2); --fx-bg: linear-gradient(135deg, #12100a 0%, #1a1810 50%, #12100a 100%); }
.fx-pro-visual--violet{ --fx-accent: #a78bfa; --fx-glow: rgba(167, 139, 250, 0.2); --fx-bg: linear-gradient(135deg, #100a18 0%, #181028 50%, #100a18 100%); }

/* Image générée en fond (plus sobre) */
.fx-pro-visual.has-bg-img {
  background-size: cover;
  background-position: center;
}

.fx-pro-visual.has-bg-img::after {
  background: linear-gradient(0deg, rgba(10, 15, 25, 0.92) 0%, rgba(10, 15, 25, 0.4) 50%, rgba(10, 15, 25, 0.6) 100%);
}

.fx-pro-visual.has-bg-img .fx-pro-icon {
  opacity: 0.9;
}

/* ---- Hero process (comment-ca-marche) ---- */
.process-hero-visual {
  max-width: 900px;
  margin: 0 auto 36px;
  padding: 32px 28px;
  border-radius: 20px;
  border: 1px solid rgba(42, 168, 255, 0.25);
  background: linear-gradient(145deg, rgba(12, 18, 32, 0.95), rgba(8, 12, 22, 0.9));
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.process-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 200px at 20% 0%, rgba(42, 168, 255, 0.1), transparent),
    radial-gradient(ellipse 300px 200px at 80% 100%, rgba(77, 195, 255, 0.06), transparent);
  pointer-events: none;
}

.process-timeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(42, 168, 255, 0.4), rgba(77, 195, 255, 0.6), rgba(42, 168, 255, 0.4), transparent);
  z-index: 0;
}

.process-tl-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 0;
}

.process-tl-dot {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 14px;
  border: 1px solid rgba(42, 168, 255, 0.35);
  background: linear-gradient(145deg, rgba(20, 30, 50, 0.9), rgba(12, 18, 30, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4dc3ff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(42, 168, 255, 0.05);
  transition: all 0.3s ease;
}

.process-tl-dot svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process-tl-step:hover .process-tl-dot {
  border-color: rgba(77, 195, 255, 0.7);
  box-shadow: 0 0 25px rgba(42, 168, 255, 0.25);
  transform: translateY(-3px);
}

.process-tl-num {
  display: block;
  font-family: monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(77, 195, 255, 0.6);
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.process-tl-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #c9d7ff;
  line-height: 1.3;
}

/* Header image sobre (generated) */
.fx-header-pro {
  max-width: 800px;
  margin: 0 auto 30px;
}

.fx-header-pro.fx-img img {
  filter: saturate(0.85) contrast(1.1) brightness(0.9);
  mix-blend-mode: normal;
}

.fx-header-pro.fx-img:hover img {
  filter: saturate(1) contrast(1.15) brightness(1);
}

@keyframes fxProPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

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

@media (max-width: 768px) {
  .fx-pro-visual { height: 140px; }
  .fx-pro-visual .fx-pro-icon { width: 48px; height: 48px; }
  .process-timeline { flex-wrap: wrap; gap: 20px; }
  .process-timeline::before { display: none; }
  .process-tl-step { flex: 0 0 calc(50% - 10px); }
  .process-hero-visual { padding: 24px 16px; margin-bottom: 24px; }
}