/* ═══════════════════════════════════════════════════════════
   NJIADATA — Shared Stylesheet
   Version 1.0 — February 2026
   De la source au sens.
   ═══════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ── */
:root {
  --deep: #0A1628;
  --navy: #1B2A4A;
  --teal: #0D7377;
  --mint: #14919B;
  --gold: #D4A843;
  --gold-light: #E8C876;
  --cream: #F8FAFC;
  --muted: #94A3B8;
  --text: #334155;
  --text-light: #64748B;
  --white: #FFF;
  --purple: #7C3AED;
  --green: #16A34A;
  --orange: #EA580C;
}

/* ── 2. RESET & BASE ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 2rem; }
img { max-width: 100%; height: auto; display: block; }
a { transition: color 0.2s; }

/* ── 3. UTILITY GRID CLASSES ── */
/* These replace inline style="display:grid;grid-template-columns:..." */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.gap-xs { gap: 0.6rem; }
.gap-sm { gap: 0.8rem; }
.gap-md { gap: 1rem; }
.gap-lg { gap: 3rem; }
.flex-wrap-gap { display: flex; flex-wrap: wrap; gap: 1.5rem; }

/* ── 4. TYPOGRAPHY — Section Labels ── */
.sl {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem;
}
.st {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700;
  color: var(--navy); line-height: 1.2; margin-bottom: 1rem;
}
.ss {
  font-size: 0.98rem; color: var(--text-light);
  max-width: 620px; line-height: 1.75; margin-bottom: 3rem;
}

/* ── 5. NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,22,40,0.95); backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(212,168,67,0.08);
  transition: background 0.4s, box-shadow 0.4s;
}
nav.scrolled {
  background: rgba(10,22,40,0.98);
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 700;
  color: var(--white); letter-spacing: 2px; text-decoration: none;
  text-transform: uppercase; display: flex; align-items: center; flex-shrink: 0;
}
.nav-logo span { color: var(--gold); }
.nav-icon { height: 36px; width: auto; margin-right: 8px; border-radius: 5px; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  white-space: nowrap; color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 0.8rem; font-weight: 500; letter-spacing: 0.8px;
  text-transform: uppercase; transition: color 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  display: inline-block; background: var(--gold); color: var(--deep);
  padding: 0.55rem 1.5rem; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; text-decoration: none;
  transition: all 0.3s;
}
.nav-cta:hover { background: var(--gold-light); }

/* ── 5b. DROPDOWN NAV ── */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(10,22,40,0.98); border: 1px solid rgba(212,168,67,0.1);
  padding: 0.6rem 0; min-width: 240px;
  opacity: 0; visibility: hidden; transition: all 0.25s; z-index: 1010;
  pointer-events: none;
}
.has-dropdown:hover .dropdown {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown a {
  display: block; padding: 0.5rem 1.2rem; font-size: 0.78rem;
  color: rgba(255,255,255,0.6); text-decoration: none; transition: all 0.2s;
  letter-spacing: 0; text-transform: none; font-weight: 400;
}
.dropdown a:hover {
  color: var(--white); background: rgba(255,255,255,0.04); padding-left: 1.4rem;
}

/* ── 5c. HAMBURGER & MOBILE MENU ── */
.hamburger {
  display: none; cursor: pointer; flex-direction: column; gap: 5px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; position: relative;
  background: none; border: none;
}
.hamburger span {
  width: 24px; height: 2.5px; background: var(--white);
  transition: all 0.3s; border-radius: 1px; display: block;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Base mobile-menu — overridden by premium fullscreen below */
.mobile-menu {
  position: fixed; display: flex; top: 0; left: 0; right: 0; bottom: 0;
  flex-direction: column;
  transform: translateX(100%); visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }

/* Premium mobile menu sections */
.mobile-menu .mm-section{font-size:0.62rem;text-transform:uppercase;letter-spacing:2.5px;color:var(--gold);font-weight:700;padding:1rem 0 0.3rem;border-bottom:none;margin-top:0.5rem;pointer-events:none;cursor:default}
.mobile-menu .mm-section:first-child{margin-top:0;padding-top:0}
.mobile-menu .mm-sub{font-size:1.05rem !important;padding-left:1rem !important;color:rgba(255,255,255,0.65) !important;border-bottom-color:rgba(255,255,255,0.02) !important}
.mobile-menu .mm-sub:hover{color:var(--white) !important}
.mobile-menu .mm-active{color:var(--gold) !important;font-weight:600}
.mobile-menu .mm-cta{display:block;background:var(--gold);color:var(--deep) !important;font-weight:700;font-size:0.9rem !important;text-align:center;padding:0.8rem 1.5rem !important;border-radius:8px;border-bottom:none !important;margin-top:1rem;letter-spacing:0.5px;transition:background 0.3s}
.mobile-menu .mm-cta:hover{background:var(--gold-light)}
.mobile-menu a:not(.mm-section):not(.mm-cta):hover{padding-left:0.5rem}

.mobile-menu a {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 1.05rem; padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* ── 5d. LANGUAGE SWITCH ── */
/* Legacy styles kept for backward compat */
.lang-switch { display: none; } /* Replaced by .lang-pill */
.lang-switch-mobile { display: none; } /* Replaced by .mobile-lang-pill */
/* ── PREMIUM LANG PILL TOGGLE ── */
.lang-pill {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px; padding: 2px;
  margin-left: 1rem; gap: 0;
}
.lang-pill a {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.7rem; border-radius: 18px;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.5px; text-decoration: none;
  transition: all 0.3s ease; white-space: nowrap;
  color: rgba(255,255,255,0.35);
}
.lang-pill a.active {
  background: rgba(212,168,67,0.15);
  color: var(--gold);
  border: 1px solid rgba(212,168,67,0.25);
}
.lang-pill a:not(.active):hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
}
.lang-pill .flag { font-size: 0.82rem; line-height: 1; }

/* Mobile lang pill */
.mobile-lang-pill {
  display: flex; gap: 0.5rem;
  padding: 1rem 0; margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mobile-lang-pill a {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.82rem; font-weight: 600;
  color: rgba(255,255,255,0.35); text-decoration: none;
  padding: 0.4rem 0.8rem; border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.3s;
}
.mobile-lang-pill a.active {
  color: var(--gold);
  border-color: rgba(212,168,67,0.25);
  background: rgba(212,168,67,0.08);
}
.mobile-lang-pill a:not(.active):hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}


/* ── 6. PAGE HERO ── */
.page-hero {
  padding: 10rem 0 5rem; position: relative; overflow: hidden;
  /* Default background — pages override with hero image via inline or page CSS */
  background: var(--deep);
}
.page-hero::after {
  content: ''; position: absolute; top: 72px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%);
  opacity: 0.3;
}
.page-hero .container { position: relative; z-index: 2; }
.breadcrumb {
  font-size: 0.72rem; color: var(--muted);
  letter-spacing: 1px; margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb em { color: var(--gold); font-style: normal; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 800;
  color: var(--white); line-height: 1.15; margin-bottom: 1.2rem; max-width: 700px;
}
.page-hero h1 i {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.page-hero .container > p {
  font-size: 1.05rem; color: var(--muted); line-height: 1.75; max-width: 620px;
}

/* ── 7. REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.22,0.61,0.36,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.r1 { transition-delay: 0.1s; }
.r2 { transition-delay: 0.2s; }
.r3 { transition-delay: 0.3s; }
.reveal-d2 { transition-delay: 0.15s; }

/* ── 8. FOOTER ── */
footer {
  padding: 3.5rem 0 2rem; background: var(--deep);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.foot-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem; margin-bottom: 2rem;
}
.foot-brand .fb {
  display: flex; align-items: center;
  font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 700;
  color: var(--white); letter-spacing: 3.5px; text-transform: uppercase;
  text-decoration: none;
}
.foot-brand .fb span { color: var(--gold); }
.foot-icon {
  height: 32px; width: auto; margin-right: 8px;
  vertical-align: middle; border-radius: 5px;
}
.foot-tagline { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-top: 0.5rem; }
.foot-col h4 {
  font-size: 0.68rem; font-weight: 700; color: var(--gold);
  letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 0.8rem;
}
.foot-col a {
  display: block; font-size: 0.8rem; color: var(--muted);
  text-decoration: none; padding: 0.2rem 0; transition: color 0.2s;
}
.foot-col a:hover { color: var(--white); }
.foot-bottom {
  padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.04); text-align: center;
}
.foot-bottom span { font-size: 0.68rem; color: rgba(148,163,184,0.4); }

/* ── 9. WIDGETS: WhatsApp + Back to Top ── */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,0.4); z-index: 998; transition: all 0.3s;
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(37,211,102,0.5); }
.back-to-top {
  position: fixed; bottom: 1.5rem; right: 5rem;
  width: 42px; height: 42px; background: var(--navy);
  border: 1px solid rgba(212,168,67,0.15); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 998; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: var(--deep); border-color: var(--gold); }

/* ── 10. FORM VALIDATION ── */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea,
input.field-error, select.field-error, textarea.field-error {
  border-color: #e74c3c !important; background: rgba(231,76,60,0.04) !important;
}
input.field-success, select.field-success { border-color: #27ae60 !important; }
.field-msg { display: none; font-size: 0.75rem; margin-top: 0.3rem; }
.field-msg.error { color: #e74c3c; display: block; }
.field-msg.success { color: #27ae60; display: block; }

/* ── 11. 404 STYLES ── */
.code {
  font-size: 4rem; font-weight: 700; color: var(--gold);
  font-family: 'Playfair Display', serif;
}
.ssub {
  font-size: 0.95rem; color: var(--text); max-width: 600px;
  line-height: 1.7; margin: 0 auto 2rem;
}

/* ── 12. SECTION BACKGROUND PATTERNS ── */
.bg-dots {
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='rgba(13,115,119,0.07)'/%3E%3C/svg%3E");
  background-size: 40px 40px;
}
.bg-grid {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='none' stroke='rgba(13,115,119,0.06)' stroke-width='0.5'/%3E%3Cline x1='30' y1='0' x2='30' y2='60' stroke='rgba(13,115,119,0.03)' stroke-width='0.5'/%3E%3Cline x1='0' y1='30' x2='60' y2='30' stroke='rgba(13,115,119,0.03)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.bg-diamond {
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40 L40 0 L80 40 L40 80Z' fill='none' stroke='rgba(212,168,67,0.04)' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
}


/* ═══════════════════════════════════════════════════════════
   13. RESPONSIVE — CLEAN ARCHITECTURE
   No more div[style*=...] hacks. Uses proper class selectors.
   ═══════════════════════════════════════════════════════════ */

/* ── DESKTOP ONLY (min 769px) ── */
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
  .hamburger { display: none !important; }
  .nav-links { display: flex !important; }
  .nav-cta { display: inline-block !important; }
}

/* ── TABLET (max 1024px) ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── MOBILE (max 768px) ── */
@media (max-width: 768px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  /* Nav mobile */
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  
  /* Mobile dropdown */
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.dropdown-open .dropdown {
    display: block; position: relative; top: 0; left: 0;
    min-width: 100%; border: none; background: rgba(10,22,40,0.95);
    padding: 0; opacity: 1; visibility: visible;
    transform: none;
  }
  .dropdown a { padding: 0.5rem 1rem 0.5rem 1.5rem; }
  
  /* Grids → responsive */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  /* Footer */
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  
  /* Widgets */
  .whatsapp-float { bottom: 1rem; right: 1rem; width: 50px; height: 50px; }
  .back-to-top { bottom: 1rem; right: 4.5rem; width: 38px; height: 38px; }
  
  /* Hero adjustments */
  .page-hero { padding: 8rem 0 3rem; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  
  /* Container padding */
  .container { padding: 0 1.2rem; }
}

/* ── SMALL MOBILE (max 480px) ── */
@media (max-width: 480px) {
  .foot-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .page-hero { padding: 7rem 0 2.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   14. LEGACY INLINE STYLE OVERRIDES
   Migration complete (v31). 34 inline grids migrated to .grid-2/.grid-3/.grid-4/.grid-auto classes.
   5 remaining inline grids are intentionally inline (single-column wrappers and asymmetric layouts).
   The selectors below remain for backward compatibility with any edge cases.
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Inline grid overrides — LEGACY, remove after migration */
  div[style*="grid-template-columns:1fr 1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr 1fr"],
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns:repeat(4"],
  div[style*="grid-template-columns:1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  
  /* Inline flex large gaps */
  div[style*="display:flex"][style*="gap:4rem"],
  div[style*="display:flex"][style*="gap:3rem"],
  div[style*="display:flex"][style*="gap:2.5rem"],
  div[style*="display:flex"][style*="gap: 4rem"],
  div[style*="display:flex"][style*="gap: 3rem"] {
    flex-wrap: wrap !important;
  }
  
  /* Cost banner override */
  div[style*="grid-template-columns:1fr auto 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1024px) {
  div[style*="grid-template-columns:1fr 1fr 1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }
}


/* ═══════════════════════════════════════════════════════════
   15. REUSABLE COMPONENT CLASSES
   Extracted from inline styles across services, international,
   entreprises, institutions pages.
   ═══════════════════════════════════════════════════════════ */

/* Service icon inline (gold SVG beside text) */
.svc-icon-inline { display:inline-flex; align-items:center; color:var(--gold); vertical-align:middle; margin-right:0.3rem; }
.svc-icon-inline svg { width:18px; height:18px; }

/* Compact text blocks */
.text-navy { color:var(--navy); }
.text-gold { color:var(--gold); }
.text-sm { font-size:0.82rem; }
.text-xs { font-size:0.72rem; }
.text-muted-sm { font-size:0.78rem; color:var(--text-light); line-height:1.6; }
.fw-600 { font-weight:600; }
.fw-700 { font-weight:700; }

/* Card variants */
.card-cream { padding:0.8rem; background:var(--cream); font-size:0.85rem; color:var(--text); line-height:1.6; }
.card-white { padding:0.8rem; background:var(--white); font-size:0.85rem; color:var(--text); line-height:1.6; }
.card-dark { margin-top:1.5rem; padding:1.2rem; background:var(--deep); color:var(--white); }
.card-bordered { padding:1rem; background:var(--white); border:1px solid rgba(0,0,0,0.04); }
.card-gold-left { display:flex; align-items:center; gap:1rem; padding:0.8rem; background:var(--white); border-left:3px solid var(--gold); }

/* Playfair display numbers */
.num-gold { font-family:'Playfair Display',serif; font-size:2rem; font-weight:700; color:var(--gold); }
.num-gold-lg { font-family:'Playfair Display',serif; font-size:1.4rem; font-weight:700; color:var(--gold); min-width:40px; }

/* Section backgrounds */
.bg-deep { background:var(--deep); }
.bg-cream { background:var(--cream); }
.bg-white { background:var(--white); }
.bg-navy { background:var(--navy); }

/* Padding utilities */
.py-4 { padding:4rem 0; }
.py-5 { padding:5rem 0; }
.py-6 { padding:6rem 0; }
.pt-2 { padding-top:2rem; }
.pb-1 { padding-bottom:1rem; }
.mb-1 { margin-bottom:1rem; }
.mb-2 { margin-bottom:2rem; }
.mt-2 { margin-top:2rem; }
.text-center { text-align:center; }

/* Flex utilities */
.flex-center { display:flex; align-items:center; justify-content:center; }
.flex-gap-1 { display:flex; gap:1rem; flex-wrap:wrap; }
.flex-gap-05 { display:flex; gap:0.5rem; flex-wrap:wrap; }

/* ═══════════════════════════════════════════════════════════
   16. MICRO-INTERACTIONS PREMIUM
   Subtle hover effects, parallax hints, card animations
   ═══════════════════════════════════════════════════════════ */

/* ── Card hover lift + glow ── */
.card-lift {
  transition: transform 0.35s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.35s ease;
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(212,168,67,0.06);
}

/* ── Gold accent underline on hover ── */
.hover-gold-line {
  position: relative;
  display: inline-block;
}
.hover-gold-line::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.4s cubic-bezier(0.22,0.61,0.36,1);
}
.hover-gold-line:hover::after { width: 100%; }

/* ── Image parallax on hero sections ── */
.hero-parallax {
  background-attachment: fixed;
}
@media (max-width: 768px) {
  .hero-parallax { background-attachment: scroll; } /* Disable on mobile for perf */
}

/* ── Smooth scale on hover for images/cards ── */
.hover-scale {
  transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
}
.hover-scale:hover { transform: scale(1.03); }

/* ── Shimmer effect for KPI numbers ── */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
.kpi-shimmer {
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 40%, #fff 50%, var(--gold-light) 60%, var(--gold) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* ── Subtle pulse on CTA buttons ── */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(212,168,67,0.2); }
  50% { box-shadow: 0 6px 20px rgba(212,168,67,0.4); }
}
.btn-gold-pulse { animation: ctaPulse 3s ease-in-out infinite; }
.btn-gold-pulse:hover { animation: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,168,67,0.35); }

/* ── Navigation link active indicator ── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 60%; }

/* ── Footer link hover slide ── */
.foot-col a {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease, color 0.2s;
}
.foot-col a:hover {
  padding-left: 0.4rem;
  color: var(--white);
}

/* ── Staggered reveal for grid children ── */
.reveal-stagger > * {
  opacity: 0; transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.22,0.61,0.36,1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

/* ── Gradient border cards ── */
.card-gradient-border {
  position: relative;
  background: var(--white);
  border: 1px solid transparent;
  transition: all 0.35s;
}
.card-gradient-border::before {
  content: '';
  position: absolute; inset: -1px;
  background: linear-gradient(135deg, rgba(212,168,67,0.15), rgba(13,115,119,0.15));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.35s;
}
.card-gradient-border:hover::before { opacity: 1; }

/* ── Section divider gold line ── */
.section-divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto 2rem;
}

/* ── Typing cursor for hero badge ── */
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.hero-badge-cursor::after {
  content: '|';
  margin-left: 0.3rem;
  color: var(--gold);
  animation: blink 1s step-end infinite;
}

/* ── Smooth counter increment glow ── */
.counter-glow {
  text-shadow: 0 0 20px rgba(212,168,67,0.3);
  transition: text-shadow 0.5s;
}

/* ── Section title decorative dot ── */
.st-dot::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  margin-right: 0.6rem;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════════════════
   17. RESPONSIVE ADDITIONS
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-parallax { background-attachment: scroll; }
  .kpi-shimmer { animation: none; }
  .reveal-stagger > * { transition-delay: 0s !important; }
}


/* ── COOKIE CONSENT BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--deep); border-top: 1px solid rgba(212,168,67,0.15);
  padding: 1.2rem 2rem; z-index: 9999;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p {
  font-size: 0.78rem; color: var(--muted); line-height: 1.6;
  margin: 0; flex: 1;
}
.cookie-banner a { color: var(--gold); text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.6rem; flex-shrink: 0; }
.cookie-accept {
  padding: 0.5rem 1.4rem; background: var(--gold); color: var(--deep);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: all 0.3s;
}
.cookie-accept:hover { background: var(--gold-light); transform: translateY(-1px); }
.cookie-decline {
  padding: 0.5rem 1.2rem; background: transparent;
  color: var(--muted); font-size: 0.72rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.1); cursor: pointer;
  transition: all 0.3s;
}
.cookie-decline:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }
@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; padding: 1rem 1.2rem; gap: 1rem; }
  .cookie-btns { width: 100%; justify-content: flex-end; }
}


/* ── PREMIUM PRELOADER ── */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--deep);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.fade-out {
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.preloader-logo {
  display: flex; flex-direction: column; align-items: center;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 800;
  color: var(--white); letter-spacing: 2px;
}
.preloader-brand span { color: var(--gold); }
.preloader-line {
  width: 60px; height: 2px; margin-top: 1rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  animation: preloaderLine 1.2s ease-in-out infinite;
}
.preloader-tagline {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 0.72rem;
  color: var(--gold); opacity: 0.5;
  margin-top: 0.8rem; letter-spacing: 1px;
}
@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.02); opacity: 0.85; }
}
@keyframes preloaderLine {
  0% { width: 0; opacity: 0; }
  50% { width: 60px; opacity: 1; }
  100% { width: 0; opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   18. VISUAL POLISH — MICRO-DÉTAILS PREMIUM
   ═══════════════════════════════════════════════════════════ */

/* ── Custom text selection (gold highlight) ── */
::selection {
  background: rgba(212, 168, 67, 0.25);
  color: var(--white);
}
::-moz-selection {
  background: rgba(212, 168, 67, 0.25);
  color: var(--white);
}

/* ── Custom scrollbar (Webkit) ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--deep);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold), rgba(212,168,67,0.4));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}
/* Firefox scrollbar */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(212,168,67,0.5) var(--deep);
}

/* ── Focus-visible styles (accessibility + beauty) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Smooth scroll globally ── */
html {
  scroll-behavior: smooth;
}

/* ── Nav glass morphism on scroll ── */
#navbar.scrolled {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(212,168,67,0.08);
}

/* ── Section separator — decorative gold dot pattern ── */
.section-dots {
  display: flex; justify-content: center; gap: 8px;
  padding: 2rem 0;
}
.section-dots::before,
.section-dots::after,
.section-dots span {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); opacity: 0.3;
}
.section-dots::before { opacity: 0.15; }
.section-dots::after { opacity: 0.15; }

/* ── Gradient text utility ── */
.text-gradient {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Glowing border on focus for form inputs ── */
input:focus, textarea:focus, select:focus {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(212,168,67,0.12);
  outline: none;
}

/* ── Smooth image reveal on load ── */
.img-reveal {
  opacity: 0; transform: scale(0.98);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.img-reveal.loaded {
  opacity: 1; transform: scale(1);
}

/* ── Decorative corner accent for premium cards ── */
.card-corner {
  position: relative; overflow: hidden;
}
.card-corner::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 40px; height: 40px;
  background: linear-gradient(135deg, transparent 50%, rgba(212,168,67,0.08) 50%);
  transition: all 0.3s;
}
.card-corner:hover::before {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(212,168,67,0.15) 50%);
}

/* ── Subtle text shadow on hero headings ── */
.art-hero h1,
.page-hero h1,
.page-hero-premium h1,
.hero h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ── Animated underline on article links ── */
.art-content a {
  color: var(--teal);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.3s ease;
}
.art-content a:hover {
  background-size: 100% 1px;
}

/* ── WhatsApp button enhanced hover ── */
.whatsapp-float {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

/* ── Back to top button enhanced ── */
.back-to-top {
  transition: transform 0.3s ease, background 0.3s ease;
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: var(--gold);
  color: var(--deep);
}

/* ── Blockquote pull-quote enhanced ── */
.art-content blockquote {
  position: relative;
}
.art-content blockquote::before {
  content: '"';
  position: absolute; top: -10px; left: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 3rem; color: var(--gold); opacity: 0.15;
  line-height: 1;
}

/* ── Footer brand glow on hover ── */
.foot-brand .fb:hover span,
.nav-logo:hover span {
  text-shadow: 0 0 12px rgba(212,168,67,0.4);
}

/* ── Reading progress bar enhancement ── */
.reading-progress {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--teal));
  background-size: 200% 100%;
  animation: progressGradient 3s linear infinite;
}
@keyframes progressGradient {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ═══════════════════════════════════════════════════════════
   19. PRINT STYLES
   ═══════════════════════════════════════════════════════════ */
@media print {
  .preloader, .cookie-banner, .whatsapp-float, .back-to-top,
  .reading-progress, #navbar, .mobile-menu, .share-bar,
  .cta-band, footer { display: none !important; }
  body { background: #fff; color: #000; }
  .art-content { max-width: 100%; }
  a { color: #000; text-decoration: underline; }
  a::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ═══════════════════════════════════════════════════════
   OPTION C — SIDEBAR MEGA-MENU NAVIGATION
   Premium consulting-grade navigation with sidebar detail
   ═══════════════════════════════════════════════════════ */

/* Nav container for Option C */
.nav-c-inner { position: static !important; }

/* Mega panel base */
.mega-c {
  position: absolute; top: 72px; left: 0; right: 0;
  background: linear-gradient(180deg, var(--navy) 0%, var(--deep) 100%);
  border-bottom: 2px solid var(--gold);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s cubic-bezier(0.22,0.61,0.36,1);
  z-index: 100;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.mega-c.mega-open {
  opacity: 1; visibility: visible; transform: translateY(0);
}

/* Inner layout: sidebar + detail */
.mega-c-inner {
  max-width: 1140px; margin: 0 auto;
  display: grid; grid-template-columns: 270px 1fr;
  min-height: 360px;
}

/* Sidebar */
.mega-c-sidebar {
  background: rgba(255,255,255,0.015);
  border-right: 1px solid rgba(255,255,255,0.04);
  padding: 1.5rem 0;
}
.mc-sb-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.5); font-size: 0.85rem;
  text-decoration: none; transition: all 0.25s;
  border-left: 2px solid transparent;
  font-family: 'Inter', -apple-system, sans-serif;
}
.mc-sb-item:hover {
  color: var(--white); background: rgba(255,255,255,0.03);
  border-left-color: rgba(212,168,67,0.4);
}
.mc-sb-item.mc-sb-active,
.mc-sb-item.mc-sb-hover {
  color: var(--gold); font-weight: 600;
  background: rgba(255,255,255,0.03);
  border-left-color: var(--gold);
}
.mc-sb-icon { font-size: 1.1rem; width: 24px; text-align: center; }

/* Detail panel */
.mega-c-detail { padding: 2rem 2.5rem; position: relative; }
.mc-d-panel { display: none; }
.mc-d-panel.active { display: block; animation: mcFadeIn 0.25s ease; }
@keyframes mcFadeIn { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: translateX(0); } }

.mc-d-label {
  font-size: 0.58rem; text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); font-weight: 700; margin-bottom: 0.6rem;
}
.mega-c-detail h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--white); margin-bottom: 0.5rem;
  font-weight: 600;
}
.mc-d-desc {
  font-size: 0.85rem; color: var(--muted); line-height: 1.7;
  max-width: 480px; margin-bottom: 1.2rem;
}

/* Highlight cards */
.mc-d-highlights {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem;
  margin-bottom: 1.2rem;
}
.mc-d-hl {
  padding: 0.7rem 0.9rem; border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  transition: border-color 0.3s;
}
.mc-d-hl:hover { border-color: rgba(212,168,67,0.15); }
.mc-d-hl strong {
  font-size: 0.78rem; color: var(--white); display: block; margin-bottom: 0.15rem;
}
.mc-d-hl span { font-size: 0.72rem; color: var(--muted); }

/* Action links */
.mc-d-actions { display: flex; gap: 1.5rem; }
.mc-d-link {
  font-size: 0.82rem; color: var(--gold); text-decoration: none;
  font-weight: 600; transition: color 0.2s;
}
.mc-d-link:hover { color: var(--gold-light); }
.mc-d-link-alt { color: var(--teal); }
.mc-d-link-alt:hover { color: #10a0a5; }

/* Markets grid */
.mega-c-markets-grid {
  display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem; padding: 2.5rem 1.5rem;
  max-width: 1140px; margin: 0 auto;
}
.mc-market-card {
  text-align: center; padding: 2rem 1rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  transition: all 0.3s; text-decoration: none;
}
.mc-market-card:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(13,115,119,0.3);
  transform: translateY(-3px);
}
.mc-market-card.mc-m-active {
  border-color: rgba(212,168,67,0.25);
  background: rgba(255,255,255,0.02);
}
.mc-m-icon { font-size: 2rem; margin-bottom: 0.6rem; display: block; }
.mc-market-card h4 {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem; color: var(--white); margin-bottom: 0.3rem;
}
.mc-market-card p { font-size: 0.72rem; color: var(--muted); line-height: 1.4; }
.mc-m-active h4 { color: var(--gold); }

/* ── MOBILE: hide mega panels ── */
@media (max-width: 768px) {
  .mega-c { display: none !important; }
  .mega-trigger-c::after { display: none; }
}

/* ── DESKTOP: trigger arrow ── */
@media (min-width: 769px) {
  .mega-trigger-c > a::after {
    content: '▾'; margin-left: 4px; font-size: 0.6rem; opacity: 0.4;
  }
}

/* ═══════════════════════════════════════════════════════
   PREMIUM FULLSCREEN MOBILE MENU — Option C
   ═══════════════════════════════════════════════════════ */

/* Premium fullscreen mobile menu */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(170deg, rgba(10,22,40,0.99) 0%, rgba(6,14,28,0.99) 100%);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; gap: 0;
  padding: 5rem 2rem 6rem;
  z-index: 9999; overflow-y: scroll; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; touch-action: pan-y;
  height: 100vh; height: 100dvh;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.22,0.61,0.36,1), visibility 0.5s;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }

/* Close button */
.mm-close {
  position: absolute; top: 1.2rem; right: 1.5rem;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 1001; border: none; background: none;
}
.mm-close::before, .mm-close::after {
  content: ''; position: absolute; width: 24px; height: 1.5px;
  background: rgba(255,255,255,0.6); transition: background 0.3s;
}
.mm-close::before { transform: rotate(45deg); }
.mm-close::after { transform: rotate(-45deg); }
.mm-close:hover::before, .mm-close:hover::after { background: var(--gold); }

/* Stagger animation */
.mobile-menu.open > *:nth-child(1) { animation: mmSlideIn 0.4s 0.05s both; }
.mobile-menu.open > *:nth-child(2) { animation: mmSlideIn 0.4s 0.08s both; }
.mobile-menu.open > *:nth-child(3) { animation: mmSlideIn 0.4s 0.11s both; }
.mobile-menu.open > *:nth-child(4) { animation: mmSlideIn 0.4s 0.14s both; }
.mobile-menu.open > *:nth-child(5) { animation: mmSlideIn 0.4s 0.17s both; }
.mobile-menu.open > *:nth-child(6) { animation: mmSlideIn 0.4s 0.20s both; }
.mobile-menu.open > *:nth-child(7) { animation: mmSlideIn 0.4s 0.23s both; }
.mobile-menu.open > *:nth-child(8) { animation: mmSlideIn 0.4s 0.26s both; }
.mobile-menu.open > *:nth-child(9) { animation: mmSlideIn 0.4s 0.29s both; }
.mobile-menu.open > *:nth-child(10) { animation: mmSlideIn 0.4s 0.32s both; }
.mobile-menu.open > *:nth-child(11) { animation: mmSlideIn 0.4s 0.35s both; }
.mobile-menu.open > *:nth-child(12) { animation: mmSlideIn 0.4s 0.38s both; }
.mobile-menu.open > *:nth-child(13) { animation: mmSlideIn 0.4s 0.41s both; }
.mobile-menu.open > *:nth-child(14) { animation: mmSlideIn 0.4s 0.44s both; }
.mobile-menu.open > *:nth-child(n+15) { animation: mmSlideIn 0.4s 0.47s both; }
@keyframes mmSlideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }

/* Section labels */
.mm-label {
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); margin: 1.5rem 0 0.5rem; display: block; pointer-events: none;
}
.mm-label:first-of-type { margin-top: 0; }
.mm-label::after {
  content: ''; display: block; width: 24px; height: 1px;
  background: var(--gold); opacity: 0.3; margin-top: 0.4rem;
}

/* Primary links */
.mobile-menu > a {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: rgba(255,255,255,0.8);
  text-decoration: none; padding: 0.5rem 0; display: block;
  border: none !important; transition: color 0.3s, transform 0.3s;
}
.mobile-menu > a:hover { color: var(--white); transform: translateX(6px); }
.mobile-menu > a.mm-active { color: var(--gold); }

/* Sub-links */
.mobile-menu > a.mm-sub {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.95rem; color: rgba(255,255,255,0.4);
  padding: 0.4rem 0 0.4rem 0.8rem;
  border-left: 1px solid rgba(212,168,67,0.15) !important;
  margin-left: 0.2rem;
}
.mobile-menu > a.mm-sub:hover { color: rgba(255,255,255,0.8); border-left-color: var(--gold) !important; }
.mobile-menu > a.mm-sub.mm-active { color: var(--gold); border-left-color: var(--gold) !important; font-weight: 600; }

/* CTA wrap */
.mm-cta-wrap { margin-top: auto; padding-top: 1.5rem; }
.mobile-menu .mm-cta {
  display: block; background: linear-gradient(135deg, var(--gold), #e0ba52);
  color: var(--deep) !important; font-weight: 700; font-size: 0.88rem;
  text-align: center; text-decoration: none; padding: 1rem 1.5rem !important;
  border-radius: 10px; border: none !important; letter-spacing: 0.5px;
  box-shadow: 0 4px 20px rgba(212,168,67,0.25);
}

/* Decorative top line */
.mobile-menu::before {
  content: ''; position: absolute; top: 0; left: 2rem; right: 2rem;
  height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0.2;
}

/* Body scroll lock */
body.menu-open { overflow: hidden; }

/* ── KPI cards contrast boost ── */
.mc-d-hl {
  background: rgba(255,255,255,0.035) !important;
  border-color: rgba(255,255,255,0.06) !important;
}
.mc-d-hl:hover {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(212,168,67,0.2) !important;
}

/* ── Market cards visible border ── */
.mc-market-card {
  border-color: rgba(255,255,255,0.06) !important;
}
.mc-market-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ── Mega-menu footer row ── */
.mega-c-footer {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 0.5rem;
}
.mega-c-footer a {
  font-size: 0.78rem; color: var(--muted);
  text-decoration: none; font-weight: 500;
  transition: color 0.3s;
}
.mega-c-footer a:hover { color: var(--white); }
.mega-c-footer .mcf-cta {
  margin-left: auto;
  color: var(--gold); font-weight: 700;
}
.mega-c-footer .mcf-cta:hover { color: var(--gold-light); }

/* ============================================= */
/* RESPONSIVE — Pillar pages new sections        */
/* ============================================= */

/* Diagnostic transversal banner */
@media(max-width:768px){
  .container[style*="display:flex"][style*="justify-content:space-between"]{
    flex-direction:column !important;
    text-align:center;
  }
}

/* Comparison table scroll hint */
@media(max-width:900px){
  table{font-size:0.7rem !important}
  th,td{padding:0.5rem 0.6rem !important}
}

/* Cost grids: 3 cols → 1 col on mobile */
@media(max-width:768px){
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns: repeat(3,1fr)"]{
    grid-template-columns:1fr !important;
  }
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns: repeat(2,1fr)"]{
    grid-template-columns:1fr !important;
  }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"]{
    grid-template-columns:1fr !important;
  }
}

/* Calcul section: 2 cols → 1 col on tablet */
@media(max-width:1024px){
  [style*="grid-template-columns:1fr 1fr"]{
    grid-template-columns:1fr !important;
  }
}

/* BA grid: ensure single column on small screens */
@media(max-width:640px){
  .ba-grid{grid-template-columns:1fr !important}
  .tech-grid{grid-template-columns:1fr !important}
  .eng-grid{grid-template-columns:1fr !important}
}

/* SVG viewBox responsive */
@media(max-width:640px){
  svg[viewBox]{max-width:100%;height:auto}
}
