/* =============================================================================
   42meter.com — visual enhancement layer v5
   Adapté au template v1 : BrowserRouter, GSAP, hero light, palette hex brute.
   Palette : cyan #19C3E6 | ink #0B1B2B | bg #F7F9FB | grey #5A6B7C
   ============================================================================= */

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ── Scrollbar cyan ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #eef2f6; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #19c3e6 0%, #0ea5c5 100%);
  border-radius: 8px;
}

/* ── Focus ring ──────────────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #19c3e6;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Page load bar ───────────────────────────────────────────────────────── */
#e42-loader {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0;
  background: linear-gradient(90deg, #19c3e6, #0ea5c5, #19c3e6);
  background-size: 200% 100%;
  z-index: 99999;
  animation: e42-loader-shimmer 1.5s linear infinite;
  transition: width 0.3s ease, opacity 0.4s ease 0.15s;
}
@keyframes e42-loader-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── AI Logo in navbar ───────────────────────────────────────────────────── */
.e42-logo {
  height: 32px !important;
  width: auto !important;
  display: block !important;
  flex-shrink: 0;
  max-width: 180px;
}

/* Nav transparente sur hero light → logo reste sombre */
/* Nav blanche sur scroll → logo aussi sombre. Pas d'inversion nécessaire. */

/* ── Buttons CTA — micro-animation hover ─────────────────────────────────── */
a[href="/demo"],
button[type="submit"] {
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
a[href="/demo"]:hover,
button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 24px rgba(25, 195, 230, 0.35) !important;
}

/* ── Cards hover — section features ─────────────────────────────────────── */
.rounded-2xl:not(img):not([class*="shadow-"]):hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease !important;
}

/* ── Footer dark section grid glow ─────────────────────────────────────── */
.bg-\[\#0B1B2B\] {
  background: linear-gradient(140deg, #0b1b2b 0%, #0d2338 55%, #091623 100%) !important;
  position: relative;
  overflow: hidden;
}
.bg-\[\#0B1B2B\]::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(25,195,230,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25,195,230,0.032) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}
.bg-\[\#0B1B2B\] > * { position: relative; z-index: 1; }

/* ── Inputs focus glow ───────────────────────────────────────────────────── */
input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px rgba(25, 195, 230, 0.18) !important;
}
