/* MG Informatique - Custom styles
   Tailwind utilities come from CDN; this file holds animations, glass, particles etc. */

:root {
  --mg-bg: #0F172A;
  --mg-bg-2: #0B1224;
  --mg-primary: #2563EB;
  --mg-secondary: #38BDF8;
  --mg-accent: #60A5FA;
  --mg-text: #F8FAFC;
  --mg-muted: #94A3B8;
  --mg-border: rgba(255, 255, 255, 0.08);
  --mg-surface: rgba(255, 255, 255, 0.04);
}

html { scroll-behavior: smooth; }

body {
  background: var(--mg-bg);
  color: var(--mg-text);
  font-family: 'Manrope', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Page-level ambient backgrounds */
.bg-grid {
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
}

.bg-radial-glow {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0) 70%),
    radial-gradient(40% 40% at 90% 30%, rgba(56, 189, 248, 0.18) 0%, rgba(15, 23, 42, 0) 70%);
}

/* Glassmorphism */
.glass {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--mg-border);
}

/* Navbar */
.mg-nav {
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.mg-nav.scrolled {
  background: rgba(11, 18, 36, 0.85);
  border-bottom-color: var(--mg-border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #2563EB 0%, #38BDF8 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px rgba(56, 189, 248, 0.45); }
.btn-secondary {
  background: transparent;
  color: var(--mg-text);
  border: 1px solid rgba(255,255,255,0.18);
}
.btn-secondary:hover { background: rgba(255,255,255,0.06); border-color: rgba(56,189,248,0.5); }

/* Badges */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.3);
  background: rgba(37, 99, 235, 0.12);
  color: #BFDBFE;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--mg-secondary);
  box-shadow: 0 0 12px var(--mg-secondary);
}

/* Cards */
.card {
  position: relative;
  background: var(--mg-surface);
  border: 1px solid var(--mg-border);
  border-radius: 20px;
  padding: 1.75rem;
  transition: transform .35s ease, border-color .3s ease, background .3s ease, box-shadow .35s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 80% at 0% 0%, rgba(56,189,248,0.10), rgba(15,23,42,0) 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.4);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 25px 60px rgba(2, 6, 23, 0.55);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(56,189,248,0.15));
  border: 1px solid rgba(96,165,250,0.3);
  color: #BFDBFE;
  font-size: 22px;
  margin-bottom: 1rem;
}

/* Section spacing */
.section { padding: 6rem 0; }
@media (min-width: 768px) { .section { padding: 8rem 0; } }

/* Hero canvas */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0) 70%),
    linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 1; pointer-events: none;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(120deg, #F8FAFC 0%, #93C5FD 50%, #38BDF8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal animation */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
[data-reveal].revealed { opacity: 1; transform: translateY(0); }

/* Floating glow */
.glow-pulse {
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.25); }
  50% { box-shadow: 0 0 50px 0 rgba(56, 189, 248, 0.35); }
}

/* Marquee */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-item {
  font-size: 1.05rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.5rem;
  opacity: 0.85;
}
.marquee-item i { color: #60A5FA; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem 1.5rem;
  background: rgba(11, 18, 36, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--mg-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 0.75rem 0.5rem;
  border-radius: 10px;
  color: #E2E8F0;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.04); color: #fff; }

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(15,23,42,0) 0%, #070C19 100%);
  border-top: 1px solid var(--mg-border);
}
.footer a:hover { color: var(--mg-secondary); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem; right: 1rem; bottom: 1rem;
  display: none;
  z-index: 60;
}
.cookie-banner.show { display: block; }
.cookie-banner .inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
}
@media (min-width: 768px) {
  .cookie-banner .inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 1.5rem; }
}

/* Timeline (projects) */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(56,189,248,0.4), transparent);
}
@media (max-width: 767px) {
  .timeline::before { left: 18px; }
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  align-items: stretch;
  margin: 2rem 0;
}
@media (max-width: 767px) {
  .timeline-item { grid-template-columns: 36px 1fr; }
}
.timeline-dot {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: var(--mg-secondary);
  box-shadow: 0 0 0 6px rgba(56,189,248,0.15), 0 0 28px rgba(56,189,248,0.5);
  justify-self: center;
  align-self: center;
}
.timeline-card { grid-column: 1 / 2; }
.timeline-item.right .timeline-card { grid-column: 3 / 4; }
@media (max-width: 767px) {
  .timeline-card, .timeline-item.right .timeline-card { grid-column: 2 / 3; }
  .timeline-dot { grid-column: 1 / 2; }
}

/* Form */
.field {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.field label { font-size: 0.85rem; color: #CBD5E1; font-weight: 600; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--mg-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: #F8FAFC;
  font-size: 0.95rem;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: #64748B; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(96,165,250,0.6);
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
}
.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  font-size: 0.95rem;
}
.form-status.show { display: block; }

/* Map placeholder */
.map-placeholder {
  position: relative;
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mg-border);
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(37,99,235,0.25), rgba(15,23,42,0)),
    radial-gradient(60% 60% at 70% 80%, rgba(56,189,248,0.2), rgba(15,23,42,0)),
    #0B1224;
}
.map-placeholder .pin {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 999px;
  background: #38BDF8;
  box-shadow: 0 0 0 8px rgba(56,189,248,0.2), 0 0 0 18px rgba(56,189,248,0.1), 0 0 40px rgba(56,189,248,0.6);
  animation: pinPulse 2s ease-in-out infinite;
}
.map-placeholder .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
}
@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(56,189,248,0.2), 0 0 0 18px rgba(56,189,248,0.1), 0 0 40px rgba(56,189,248,0.6); }
  50% { box-shadow: 0 0 0 14px rgba(56,189,248,0.15), 0 0 0 28px rgba(56,189,248,0.05), 0 0 60px rgba(56,189,248,0.7); }
}

/* Lists */
.tech-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--mg-border);
  color: #CBD5E1;
  font-size: 0.85rem;
  font-weight: 500;
}
.tech-pill i { color: #60A5FA; }

/* Hide React root if present (preview-only) */
#root { display: none !important; }

/* ============================================================
   LIGHT THEME OVERRIDES
   Activated by adding data-theme="light" on <html>.
   Default (no attribute) = dark.
   ============================================================ */

[data-theme="light"] {
  --mg-bg: #F8FAFC;
  --mg-bg-2: #FFFFFF;
  --mg-primary: #2563EB;
  --mg-secondary: #0284C7;
  --mg-accent: #2563EB;
  --mg-text: #0F172A;
  --mg-muted: #475569;
  --mg-border: rgba(15, 23, 42, 0.10);
  --mg-surface: rgba(15, 23, 42, 0.03);
  color-scheme: light;
}

/* Smooth theme transitions */
html { transition: background-color .35s ease, color .35s ease; }
body, .mg-nav, .card, .footer, .glass, .cookie-banner .inner,
.tech-pill, .field input, .field textarea, .field select,
.btn-secondary, .marquee-item, .map-placeholder,
.mobile-menu, .mobile-menu a {
  transition: background-color .35s ease, color .35s ease,
              border-color .35s ease, box-shadow .35s ease;
}

/* Body */
[data-theme="light"] body {
  background: var(--mg-bg);
  color: var(--mg-text);
}

/* Background utilities */
[data-theme="light"] .bg-mg-bg { background-color: #F8FAFC !important; }
[data-theme="light"] .text-mg-text { color: #0F172A !important; }
[data-theme="light"] .text-mg-secondary { color: #0284C7 !important; }
[data-theme="light"] .text-mg-muted { color: #475569 !important; }

/* Slate text -> darker shades on light */
[data-theme="light"] .text-slate-100,
[data-theme="light"] .text-slate-200,
[data-theme="light"] .text-white { color: #0F172A !important; }
[data-theme="light"] .text-slate-300 { color: #1E293B !important; }
[data-theme="light"] .text-slate-400 { color: #475569 !important; }
[data-theme="light"] .text-slate-500 { color: #64748B !important; }
[data-theme="light"] .text-slate-100.hover\:text-white:hover,
[data-theme="light"] .text-slate-200.hover\:text-white:hover,
[data-theme="light"] .text-slate-300.hover\:text-white:hover { color: #2563EB !important; }

/* Borders */
[data-theme="light"] .border-white\/10,
[data-theme="light"] .border-white\/5,
[data-theme="light"] [class*="border-white"] { border-color: rgba(15,23,42,0.12) !important; }

/* Surfaces using white/X */
[data-theme="light"] .bg-white\/5 { background-color: rgba(15,23,42,0.035) !important; }
[data-theme="light"] .bg-white\/10 { background-color: rgba(15,23,42,0.06) !important; }

/* Grid background lines slightly stronger on white */
[data-theme="light"] .bg-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
}

/* Hero radial glow softened for light */
[data-theme="light"] .bg-radial-glow {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(37, 99, 235, 0.10) 0%, rgba(248, 250, 252, 0) 70%),
    radial-gradient(40% 40% at 90% 30%, rgba(2, 132, 199, 0.10) 0%, rgba(248, 250, 252, 0) 70%);
}

/* Glassmorphism on light */
[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.18);
}

/* Navbar light */
[data-theme="light"] .mg-nav {
  background: rgba(255, 255, 255, 0.55);
}
[data-theme="light"] .mg-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

/* Cards light */
[data-theme="light"] .card {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: #FFFFFF;
  box-shadow: 0 25px 60px -25px rgba(37, 99, 235, 0.25);
}
[data-theme="light"] .card::before {
  background: radial-gradient(120% 80% at 0% 0%, rgba(37,99,235,0.06), rgba(255,255,255,0) 60%);
}
[data-theme="light"] .card-icon {
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(2,132,199,0.06));
  border-color: rgba(37, 99, 235, 0.20);
  color: #2563EB;
}

/* Eyebrow / badges */
[data-theme="light"] .eyebrow {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: #1D4ED8;
}

/* Buttons */
[data-theme="light"] .btn-secondary {
  border-color: rgba(15, 23, 42, 0.18);
  color: #0F172A;
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.4);
  color: #1D4ED8;
}

/* Gradient hero text adapted to light */
[data-theme="light"] .text-gradient {
  background: linear-gradient(120deg, #0F172A 0%, #1D4ED8 55%, #0284C7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Tech pills */
[data-theme="light"] .tech-pill {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.10);
  color: #1E293B;
}
[data-theme="light"] .tech-pill i { color: #2563EB; }

/* Marquee */
[data-theme="light"] .marquee-item { color: #334155; }
[data-theme="light"] .marquee-item i { color: #2563EB; }

/* Footer light */
[data-theme="light"] .footer {
  background: linear-gradient(180deg, #FFFFFF 0%, #EEF4FF 100%);
  border-top-color: rgba(15, 23, 42, 0.08);
  color: #1E293B;
}
[data-theme="light"] .footer a { color: #475569; }
[data-theme="light"] .footer a:hover { color: #2563EB; }
[data-theme="light"] .footer h4 { color: #0F172A !important; }

/* Form fields */
[data-theme="light"] .field label { color: #334155; }
[data-theme="light"] .field input,
[data-theme="light"] .field textarea,
[data-theme="light"] .field select {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0F172A;
}
[data-theme="light"] .field input::placeholder,
[data-theme="light"] .field textarea::placeholder { color: #94A3B8; }
[data-theme="light"] .field input:focus,
[data-theme="light"] .field textarea:focus,
[data-theme="light"] .field select:focus {
  background: #FFFFFF;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
[data-theme="light"] .form-status {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.35);
  color: #15803D;
}

/* Map placeholder light */
[data-theme="light"] .map-placeholder {
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(37,99,235,0.10), rgba(255,255,255,0)),
    radial-gradient(60% 60% at 70% 80%, rgba(2,132,199,0.10), rgba(255,255,255,0)),
    #F1F5F9;
  border-color: rgba(15, 23, 42, 0.10);
}
[data-theme="light"] .map-placeholder .grid-overlay {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
}
[data-theme="light"] .map-placeholder .pin { background: #2563EB; }

/* Mobile menu light */
[data-theme="light"] .mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-top-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .mobile-menu a { color: #0F172A; }
[data-theme="light"] .mobile-menu a:hover { background: rgba(37, 99, 235, 0.06); color: #1D4ED8; }

/* Cookie banner */
[data-theme="light"] .cookie-banner .inner {
  background: rgba(255, 255, 255, 0.96);
}

/* Timeline line on light */
[data-theme="light"] .timeline::before {
  background: linear-gradient(180deg, transparent, rgba(37,99,235,0.35), transparent);
}
[data-theme="light"] .timeline-dot {
  background: #2563EB;
  box-shadow: 0 0 0 6px rgba(37,99,235,0.12), 0 0 28px rgba(37,99,235,0.35);
}

/* Theme toggle button (icon is swapped via JS, not CSS) */
.theme-toggle-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  color: #E2E8F0;
  background: transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  cursor: pointer;
}
.theme-toggle-btn:hover { background: rgba(255,255,255,0.06); color: #fff; transform: translateY(-1px); }
[data-theme="light"] .theme-toggle-btn {
  border-color: rgba(15,23,42,0.14); color: #1E293B;
}
[data-theme="light"] .theme-toggle-btn:hover { background: rgba(37,99,235,0.08); color: #1D4ED8; }

/* Lang toggle border in light */
[data-theme="light"] [data-testid="lang-toggle-btn"] {
  border-color: rgba(15,23,42,0.14) !important;
  color: #1E293B !important;
}
[data-theme="light"] [data-testid="lang-toggle-btn"]:hover { color: #1D4ED8 !important; }

/* Mobile menu button border in light */
[data-theme="light"] [data-testid="mobile-menu-btn"] {
  border-color: rgba(15,23,42,0.14) !important;
  color: #0F172A !important;
}

/* Social icon buttons in footer */
[data-theme="light"] .footer a[aria-label]:hover { background: rgba(37,99,235,0.08); }

/* Hero overlay for light theme */
[data-theme="light"] .hero-overlay {
  background:
    radial-gradient(50% 50% at 50% 0%, rgba(37, 99, 235, 0.10) 0%, rgba(248, 250, 252, 0) 70%),
    linear-gradient(180deg, rgba(248, 250, 252, 0) 30%, rgba(248, 250, 252, 0.95) 100%);
}

/* Glow pulse softer on light */
[data-theme="light"] .glow-pulse { animation: none; box-shadow: 0 30px 80px -40px rgba(37,99,235,0.35); }


/* Real Google Maps embed */
.map-embed {
  position: relative;
  height: 320px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--mg-border);
  background: #0B1224;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.45);
}
.map-embed iframe {
  width: 100%; height: 100%; border: 0;
  /* Subtle filter to fit dark theme */
  filter: invert(0.92) hue-rotate(180deg) saturate(0.85) contrast(0.95);
  transition: filter .35s ease;
}
[data-theme="light"] .map-embed iframe { filter: none; }
.map-cta {
  position: absolute;
  bottom: 12px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  color: #F8FAFC;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.map-cta:hover { transform: translateY(-1px); background: rgba(37, 99, 235, 0.95); }
[data-theme="light"] .map-cta {
  background: rgba(255,255,255,0.95);
  color: #0F172A;
  border-color: rgba(15,23,42,0.10);
}
[data-theme="light"] .map-cta:hover { background: #2563EB; color: #fff; }

/* Form status error state */
.form-status.error {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}
[data-theme="light"] .form-status.error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.30);
  color: #b91c1c;
}
