/* ============================================================
   VIGILIO — Vidéosurveillance & Sécurité
   Supplementary theme — loaded AFTER voltcasa.css for shop_id == 3
   Aesthetic: cinematic dark, deep purple + cyan, viewfinder vibes
   2026-05-13
   ============================================================ */

/* ---------- Shop tokens ----------------------------------------- */
:root {
  --vg-purple:        #7C3AED;
  --vg-purple-deep:   #5B21B6;
  --vg-cyan:          #06B6D4;
  --vg-cyan-bright:   #22D3EE;
  --vg-sky:           #0EA5E9;
  --vg-lavender:      #A78BFA;
  --vg-ink:           #0D0D1A;
  --vg-ink-soft:      #1A1035;
  --vg-ink-surface:   #15132A;
  --vg-line-dark:     rgba(167,139,250,.16);
  --vg-line-bright:   rgba(6,182,212,.35);
  --vg-text-on-dark:  #E5E7FF;
  --vg-muted-on-dark: #9CA3CF;
  --vg-glow-purple:   0 0 32px rgba(124,58,237,.45);
  --vg-glow-cyan:     0 0 28px rgba(6,182,212,.45);
  --vg-shadow-card:   0 18px 48px rgba(13,13,26,.55), 0 0 0 1px rgba(167,139,250,.08) inset;
}

/* ---------- Selection + focus ---------------------------------- */
::selection { background: rgba(6,182,212,.35); color: #fff; }
:focus-visible {
  outline: 2px solid var(--vg-cyan-bright) !important;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Display headings glow on dark sections ------------- */
.vg-dark h1, .vg-dark h2, .vg-dark h3,
section.vg-dark .h1, section.vg-dark .h2 {
  color: #fff !important;
  text-shadow: 0 0 24px rgba(124,58,237,.35), 0 0 64px rgba(6,182,212,.18);
}

/* ============================================================
   HERO — cinematic dark surveillance command-deck
   ============================================================ */
.vg-hero {
  position: relative;
  margin: 1rem auto 0;
  max-width: 1320px;
  padding: 0 1.5rem;
  isolation: isolate;
}

.vg-hero-stage {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--vg-ink);
  min-height: 560px;
  max-height: 78vh;
  border: 1px solid var(--vg-line-dark);
  box-shadow: var(--vg-shadow-card);
}

/* Animated mesh — purple + cyan glow on near-black */
.vg-hero-stage::before {
  content: '';
  position: absolute;
  inset: -8%;
  background:
    radial-gradient(circle 620px at 18% 28%, rgba(124,58,237,.55), transparent 70%),
    radial-gradient(circle 720px at 78% 70%, rgba(6,182,212,.5), transparent 70%),
    radial-gradient(circle 520px at 50% 100%, rgba(14,165,233,.35), transparent 70%),
    radial-gradient(circle 420px at 92% 8%, rgba(167,139,250,.4), transparent 70%);
  filter: blur(50px);
  animation: vgMeshFloat 24s ease-in-out infinite alternate;
  z-index: 0;
  pointer-events: none;
}
@keyframes vgMeshFloat {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(-22px,18px) rotate(6deg); }
  100% { transform: translate(18px,-22px) rotate(-4deg); }
}

/* Grid overlay — subtle CRT/viewfinder feel */
.vg-hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(167,139,250,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167,139,250,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 40%, transparent 90%);
}

/* Horizontal scan line */
.vg-scanline {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(6,182,212,.85), transparent);
  box-shadow: 0 0 18px rgba(6,182,212,.7);
  z-index: 2;
  pointer-events: none;
  animation: vgScan 7s linear infinite;
}
@keyframes vgScan {
  0%   { top: 8%; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: 96%; opacity: 0; }
}

/* Hero content layer */
.vg-hero-body {
  position: relative;
  z-index: 5;
  padding: 4rem 4rem 3.5rem;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.vg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--vg-cyan-bright);
  padding: .45rem .85rem;
  border-radius: 999px;
  background: rgba(6,182,212,.08);
  border: 1px solid var(--vg-line-bright);
  width: max-content;
}
.vg-eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vg-cyan-bright);
  box-shadow: 0 0 10px var(--vg-cyan-bright);
}

.vg-hero h1, .vg-headline {
  font-family: 'Space Grotesk', 'Inter', sans-serif !important;
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.04em;
  margin: 0;
  color: #fff;
  background: linear-gradient(180deg, #fff 0%, #C7D2FE 75%, #A78BFA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vg-headline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--vg-cyan-bright), var(--vg-lavender));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vg-subhead {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--vg-text-on-dark);
  max-width: 560px;
  line-height: 1.55;
  margin: 0;
  opacity: .9;
}
.vg-subhead strong {
  font-family: 'JetBrains Mono', monospace;
  color: var(--vg-cyan-bright);
  font-weight: 500;
  font-size: .92em;
}

/* CTAs */
.vg-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: .5rem;
}
.vg-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none !important;
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s, background .25s;
  border: 1px solid transparent;
  cursor: pointer;
}
.vg-btn-primary {
  background: linear-gradient(135deg, var(--vg-purple) 0%, var(--vg-cyan) 100%);
  color: #fff !important;
  box-shadow: 0 12px 36px rgba(124,58,237,.4), inset 0 1px 0 rgba(255,255,255,.18);
}
.vg-btn-primary::after { content: '\2192'; transition: transform .25s; }
.vg-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 48px rgba(6,182,212,.45);
}
.vg-btn-primary:hover::after { transform: translateX(4px); }
.vg-btn-ghost {
  background: rgba(255,255,255,.04);
  color: #fff !important;
  border-color: rgba(167,139,250,.45);
  backdrop-filter: blur(8px);
}
.vg-btn-ghost:hover {
  background: rgba(167,139,250,.12);
  border-color: var(--vg-lavender);
  transform: translateY(-2px);
}

/* USP mono chips */
.vg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.1rem;
}
.vg-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--vg-text-on-dark);
  background: rgba(13,13,26,.55);
  border: 1px solid var(--vg-line-dark);
  padding: .35rem .75rem;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.vg-chip::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--vg-cyan-bright);
  box-shadow: 0 0 6px var(--vg-cyan-bright);
}

/* REC badge — top-right corner of hero */
.vg-rec {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: #FCA5A5;
  background: rgba(13,13,26,.7);
  border: 1px solid rgba(248,113,113,.4);
  padding: .35rem .65rem .35rem .55rem;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}
.vg-rec::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 10px #EF4444;
  animation: vgPulse 1.4s ease-in-out infinite;
}
@keyframes vgPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}

/* Corner viewfinder ticks */
.vg-tick {
  position: absolute;
  width: 22px; height: 22px;
  border-color: var(--vg-cyan-bright);
  z-index: 4;
  opacity: .8;
}
.vg-tick-tl { top: 1.2rem; left: 1.2rem; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 4px; }
.vg-tick-br { bottom: 1.2rem; right: 1.2rem; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 4px; }

/* ============================================================
   SHOP-WIDE OVERRIDES — extend voltcasa.css for dark identity
   ============================================================ */

/* Header: tint search focus ring purple */
#search_widget input:focus {
  border-color: var(--vg-purple) !important;
  box-shadow: 0 0 0 4px rgba(124,58,237,.18) !important;
}

/* Primary button — purple→cyan gradient (shop-wide) */
.btn-primary, .btn.btn-primary,
#product .add-to-cart {
  background: linear-gradient(135deg, var(--vg-purple) 0%, var(--vg-cyan) 100%) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(124,58,237,.28) !important;
}
.btn-primary:hover, .btn.btn-primary:hover,
#product .add-to-cart:hover {
  background: linear-gradient(135deg, var(--vg-cyan) 0%, var(--vg-purple) 100%) !important;
  box-shadow: 0 16px 40px rgba(6,182,212,.4) !important;
}

/* Product price — purple tint */
#product .product-prices .current-price,
#product .current-price-value {
  background: linear-gradient(90deg, var(--vg-purple), var(--vg-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Product card glow border on hover (preserves voltcasa layout) */
.products article, .product-miniature, .js-product-miniature {
  transition: transform .35s cubic-bezier(.22,.61,.36,1), box-shadow .35s, border-color .35s;
}
.products article:hover, .product-miniature:hover, .js-product-miniature:hover {
  box-shadow: 0 18px 44px rgba(124,58,237,.18), 0 0 0 1px rgba(6,182,212,.35) !important;
}

/* Mono tech spec chips inside product cards */
.product-miniature .product-flags li.product-flag,
.product-flag.new, .product-flag.online-only {
  font-family: 'JetBrains Mono', monospace !important;
  letter-spacing: .04em;
  font-size: .7rem !important;
  background: rgba(124,58,237,.12) !important;
  color: var(--vg-purple) !important;
  border: 1px solid rgba(124,58,237,.3);
}

/* Section badge underline — purple→cyan */
.featured-products h2::before,
.products-section-title::before {
  background: linear-gradient(90deg, var(--vg-purple), var(--vg-cyan)) !important;
}

/* Footer dark with purple/cyan mesh (force-override theme.css) */
body #footer,
body .page-footer,
body .footer-container,
body .footer-container .container,
body .block_newsletter {
  background-color: #0D0D1A !important;
  background-image: radial-gradient(ellipse 600px at 20% 0%, rgba(124,58,237,.28), transparent), radial-gradient(ellipse 700px at 80% 100%, rgba(6,182,212,.22), transparent) !important;
  color: rgba(255, 255, 255, .82) !important;
}
body #footer .links ul,
body .footer-container .links ul,
body #footer .links a span.link-item,
body .footer-container .links a span.link-item,
body #footer .wrapper,
body .footer-container .wrapper {
  background-color: transparent !important;
  background-image: none !important;
}
body #footer h3, body .footer-container h3,
body #footer h4, body .footer-container h4,
body #footer .h3, body .footer-container .h3,
body #footer .h4, body .footer-container .h4 { color: #fff !important; }
body #footer a, body .footer-container a,
body #footer p, body .footer-container p,
body #footer li, body .footer-container li,
body #footer span, body .footer-container span,
body #footer div, body .footer-container div { color: rgba(255, 255, 255, .72) !important; }
body #footer a:hover, body .footer-container a:hover { color: var(--vg-cyan-bright, #67E8F9) !important; }
body #footer input[type="email"], body .footer-container input[type="email"] {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(124, 58, 237, .35) !important;
  color: #fff !important;
}
body #footer input[type="email"]::placeholder, body .footer-container input[type="email"]::placeholder { color: rgba(255, 255, 255, .45) !important; }
body .copyright, body #footer .copyright { background: #050813 !important; color: rgba(255, 255, 255, .45) !important; }

/* ============================================================
   RESPONSIVE — mobile-first breakpoints
   ============================================================ */
@media (max-width: 1024px) {
  .vg-hero-body { padding: 3rem 2.5rem 2.5rem; max-width: 100%; }
  .vg-hero-stage { min-height: 480px; }
}
@media (max-width: 768px) {
  .vg-hero { padding: 0 1rem; }
  .vg-hero-stage { min-height: 440px; border-radius: 20px; }
  .vg-hero-body { padding: 2.5rem 1.75rem 2rem; gap: 1.1rem; }
  .vg-rec { top: 1rem; right: 1rem; font-size: .62rem; }
  .vg-tick-tl { top: .8rem; left: .8rem; }
  .vg-tick-br { bottom: .8rem; right: .8rem; }
}
@media (max-width: 414px) {
  .vg-hero-stage { min-height: 400px; }
  .vg-hero-body { padding: 2rem 1.25rem 1.75rem; }
  .vg-cta-row { gap: .6rem; }
  .vg-btn { padding: .85rem 1.3rem; font-size: .9rem; }
  .vg-chip { font-size: .68rem; padding: .3rem .6rem; }
}
@media (max-width: 375px) {
  .vg-hero-stage { min-height: 380px; }
  .vg-eyebrow { font-size: .66rem; padding: .35rem .7rem; }
  .vg-btn { padding: .8rem 1.15rem; }
  .vg-cta-row .vg-btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 320px) {
  .vg-hero-stage { min-height: 360px; }
  .vg-hero-body { padding: 1.5rem 1rem 1.5rem; }
}

/* ============================================================
   A11Y — prefers-reduced-motion + contrast safety
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .vg-hero-stage::before { animation: none; }
  .vg-scanline { display: none; }
  .vg-rec::before { animation: none; opacity: 1; }
  .vg-btn, .products article, .product-miniature { transition: none !important; }
}

/* High-contrast fallback */
@media (prefers-contrast: more) {
  .vg-subhead { color: #fff; opacity: 1; }
  .vg-chip { border-color: var(--vg-cyan-bright); }
}
