/* =========================================================
   237Web — UI styles for Nav & Footer
   Combines CSS variables, 3D transforms, visual marks,
   and hover/after effects that complement Tailwind + GSAP.
   ========================================================= */

:root {
  --brand-blue: #0A66FC;
  --brand-blue-deep: #0844B8;
  --brand-blue-soft: #60A5FA;
  --brand-ink: #0B1220;
  --brand-white: #FFFFFF;
  --brand-gray: #F3F6FC;
}

/* Smooth font rendering */
.font-display { font-family: 'Space Grotesk', system-ui, sans-serif; letter-spacing: -0.01em; }
.font-body    { font-family: 'Inter', system-ui, sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* =========================================================
   NAV — White background, blue marks on the borders
   ========================================================= */

.nav-237 {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  backdrop-filter: saturate(140%) blur(10px);
  isolation: isolate;
  perspective: 1200px;
  border-bottom: 1px solid rgba(10, 102, 252, 0.08);
}

/* Animated blue marks/streaks along the nav borders (flyer-style) */
.nav-237::before,
.nav-237::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(90deg,
      rgba(10, 102, 252, 0.0)  0px,
      rgba(10, 102, 252, 0.0)  18px,
      rgba(10, 102, 252, 0.85) 18px,
      rgba(10, 102, 252, 0.85) 22px,
      rgba(10, 102, 252, 0.0)  22px,
      rgba(10, 102, 252, 0.0)  44px),
    repeating-linear-gradient(60deg,
      rgba(8, 68, 184, 0.0)  0px,
      rgba(8, 68, 184, 0.0)  10px,
      rgba(8, 68, 184, 0.55) 10px,
      rgba(8, 68, 184, 0.55) 12px,
      rgba(8, 68, 184, 0.0)  12px,
      rgba(8, 68, 184, 0.0)  26px);
  mix-blend-mode: multiply;
  opacity: 0.85;
  filter: blur(0.3px);
}
.nav-237::before { top: -4px; }
.nav-237::after  { bottom: -4px; transform: scaleX(-1); }

/* Edge streaks on left & right corners */
.nav-237 .edge-streak {
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  pointer-events: none;
  background:
    radial-gradient(120px 60px at 0% 50%,
      rgba(10, 102, 252, 0.25), rgba(10, 102, 252, 0) 70%),
    repeating-linear-gradient(135deg,
      rgba(10, 102, 252, 0.0) 0 6px,
      rgba(10, 102, 252, 0.35) 6px 8px);
  opacity: 0.75;
}
.nav-237 .edge-streak.left  { left: 0; }
.nav-237 .edge-streak.right { right: 0; transform: scaleX(-1); }

/* Nav link with 3D hover + animated underline (::after) */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.9rem;
  color: var(--brand-ink);
  font-weight: 500;
  transform-style: preserve-3d;
  transition: color .3s ease,
              transform .45s cubic-bezier(.2,.9,.2,1.1),
              background-color .3s ease;
  will-change: transform;
}
.nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(10,102,252,0.10), rgba(96,165,250,0.08));
  opacity: 0;
  transform: scale(.9);
  transition: opacity .35s ease, transform .35s ease;
  z-index: -1;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-soft), var(--brand-blue));
  background-size: 200% 100%;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .45s cubic-bezier(.2,.9,.2,1.1), background-position .6s ease;
}
.nav-link:hover {
  color: var(--brand-blue);
  transform: translateY(-2px) rotateX(6deg);
}
.nav-link:hover::before { opacity: 1; transform: scale(1); }
.nav-link:hover::after  { transform: scaleX(1); transform-origin: left center; background-position: 100% 0; }
.nav-link.is-active { color: var(--brand-blue); }
.nav-link.is-active::after { transform: scaleX(1); }

/* Floating dot badge on hover */
.nav-link .dot {
  width: 5px; height: 5px;
  border-radius: 999px;
  background: var(--brand-blue);
  opacity: 0;
  transform: translateY(-6px) scale(.6);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.9,.2,1.1);
}
.nav-link:hover .dot { opacity: 1; transform: translateY(0) scale(1); }

/* Primary CTA button in nav */
.btn-primary-3d {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  box-shadow:
    0 10px 22px -10px rgba(10, 102, 252, 0.55),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.9,.2,1.1), box-shadow .35s ease;
}
.btn-primary-3d::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0.9rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.btn-primary-3d:hover {
  transform: translateY(-3px) rotateX(6deg) rotateY(-2deg);
  box-shadow:
    0 18px 32px -12px rgba(10, 102, 252, 0.75),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Language toggle pill */
.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem;
  border-radius: 999px;
  background: #F3F6FC;
  border: 1px solid rgba(10,102,252,0.15);
  position: relative;
  overflow: hidden;
}
.lang-pill a {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  color: #334155;
  transition: color .3s ease;
}
.lang-pill a.is-on { color: #fff; }
.lang-pill .slider {
  position: absolute;
  top: 4px; bottom: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
  transition: left .4s cubic-bezier(.2,.9,.2,1.1);
  box-shadow: 0 4px 10px -4px rgba(10,102,252,0.6);
}
.lang-pill[data-lang="fr"] .slider { left: 4px; }
.lang-pill[data-lang="en"] .slider { left: calc(50% + 0px); }

/* Mobile burger */
.burger { width: 28px; height: 22px; position: relative; }
.burger span {
  position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px;
  background: var(--brand-ink); transition: transform .35s ease, top .35s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 10px; }
.burger span:nth-child(3) { top: 18px; }
.burger.is-open span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* Mobile sheet */
.mobile-sheet {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.2,.9,.2,1.1);
}
.mobile-sheet.is-open { max-height: 80vh; }

/* =========================================================
   FOOTER — Blue background with white marks (flyer style)
   ========================================================= */

.footer-237 {
  position: relative;
  isolation: isolate;
  color: #E8EEFB;
  background:
    radial-gradient(1000px 400px at 85% 0%, rgba(96,165,250,0.35), transparent 70%),
    radial-gradient(800px 300px at 10% 100%, rgba(8,68,184,0.55), transparent 70%),
    linear-gradient(180deg, #0A66FC 0%, #0844B8 70%, #06307F 100%);
  overflow: hidden;
}

/* White marks/streaks overlay */
.footer-237::before,
.footer-237::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: screen;
}
.footer-237::before {
  background-image:
    repeating-linear-gradient(60deg,
      rgba(255,255,255,0) 0px,
      rgba(255,255,255,0) 14px,
      rgba(255,255,255,0.9) 14px,
      rgba(255,255,255,0.9) 16px,
      rgba(255,255,255,0) 16px,
      rgba(255,255,255,0) 38px),
    repeating-linear-gradient(120deg,
      rgba(255,255,255,0) 0px,
      rgba(255,255,255,0) 22px,
      rgba(255,255,255,0.55) 22px,
      rgba(255,255,255,0.55) 24px,
      rgba(255,255,255,0) 24px,
      rgba(255,255,255,0) 52px);
  filter: blur(0.2px);
}
.footer-237::after {
  background:
    radial-gradient(300px 180px at 20% 30%, rgba(255,255,255,0.25), transparent 70%),
    radial-gradient(380px 220px at 80% 70%, rgba(255,255,255,0.2), transparent 70%);
  opacity: 0.6;
}

/* Floating decorative blobs */
.footer-237 .blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.45;
  pointer-events: none;
}
.footer-237 .blob.a { width: 360px; height: 360px; top: -120px; left: -100px; background: #60A5FA; }
.footer-237 .blob.b { width: 420px; height: 420px; bottom: -180px; right: -140px; background: #93C5FD; opacity: 0.35; }

/* Section title */
.footer-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  position: relative;
  padding-bottom: 0.6rem;
}
.footer-title::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 34px; height: 3px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,0.6);
}

/* Footer link with right-arrow appear effect */
.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(232,238,251,0.85);
  padding: 0.25rem 0;
  transition: color .3s ease, transform .35s ease, padding-left .35s ease;
}
.footer-link::before {
  content: "→";
  font-family: 'JetBrains Mono', monospace;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .3s ease, transform .35s ease;
  color: #fff;
}
.footer-link:hover {
  color: #ffffff;
  transform: translateX(2px);
  padding-left: 4px;
}
.footer-link:hover::before { opacity: 1; transform: translateX(0); }

/* Ad cards */
.ad-card {
  position: relative;
  display: block;
  padding: 1.1rem 1.2rem;
  border-radius: 1.1rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.2,.9,.2,1.1),
              box-shadow .4s ease,
              border-color .4s ease;
  backdrop-filter: blur(6px);
}
.ad-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 200px at var(--mx,50%) var(--my,50%),
              rgba(255,255,255,0.28), transparent 60%);
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.ad-card::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 120px; height: 120px;
  border-radius: 999px;
  background: repeating-linear-gradient(45deg,
              rgba(255,255,255,0.0) 0 6px,
              rgba(255,255,255,0.35) 6px 8px);
  opacity: 0.55;
  transform: rotate(10deg);
  pointer-events: none;
}
.ad-card:hover {
  transform: translateY(-6px) rotateX(6deg) rotateY(-4deg);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,0.45);
  border-color: rgba(255,255,255,0.45);
}
.ad-card:hover::before { opacity: 1; }

/* Flyer frame */
.flyer-frame {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5);
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.9,.2,1.1), box-shadow .5s ease;
}
.flyer-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 40%);
  pointer-events: none;
}
.flyer-frame:hover {
  transform: rotateX(6deg) rotateY(-4deg) translateY(-4px);
  box-shadow: 0 30px 55px -18px rgba(0,0,0,0.55);
}
.flyer-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .8s ease;
}
.flyer-frame:hover img { transform: scale(1.04); }

/* Newsletter */
.newsletter-form {
  position: relative;
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.65); }
.newsletter-form button {
  border: none;
  background: #fff;
  color: var(--brand-blue-deep);
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -8px rgba(0,0,0,0.35);
  background: #F3F6FC;
}

/* Social icons */
.social-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  transition: transform .35s cubic-bezier(.2,.9,.2,1.1), background .3s ease, box-shadow .3s ease;
}
.social-btn:hover {
  transform: translateY(-3px) rotate(-4deg);
  background: #fff;
  color: var(--brand-blue-deep);
  box-shadow: 0 14px 22px -10px rgba(0,0,0,0.45);
}

/* Logo container: ensures SVG displays large and undistorted */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
}
.brand-logo-wrap img,
.brand-logo-wrap object,
.brand-logo-wrap svg {
  display: block;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.nav-brand-logo  { height: 28px; }
@media (min-width: 768px) { .nav-brand-logo { height: 32px; } }

.footer-brand-logo { height: 110px; max-width: 420px; }
@media (min-width: 768px) { .footer-brand-logo { height: 150px; max-width: 560px; } }

/* Entrance animation (plays with AnimXYZ) */
[data-reveal] { opacity: 0; transform: translateY(20px); }
[data-reveal].is-in { opacity: 1; transform: translateY(0); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.2,1.1); }

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
