/* ============================================================
   Atlas Forestier Interactif de la RDC
   Design System : "CANOPEE PRO MAX"
   Version: 3.0 | 2026
   ============================================================ */

/* --- 0. Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

/* --- 1. Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
::selection { background: rgba(201, 162, 39, 0.22); color: #003d20; }

/* --- 2. Design Tokens --- */
:root {
  --forest-950:  #010f07;
  --forest-900:  #012c18;
  --forest-800:  #023820;
  --forest-700:  #014d2c;
  --forest-600:  #005c34;
  --forest-500:  #007a45;
  --forest-400:  #1a9e5e;
  --forest-300:  #3bbf7d;
  --forest-200:  #7dd4a8;
  --forest-100:  #c4edd8;
  --forest-50:   #edfaf3;

  --gold-700:    #8a6500;
  --gold-600:    #a07800;
  --gold-500:    #c9a227;
  --gold-400:    #e2bc3c;
  --gold-300:    #f0c040;
  --gold-200:    #f9df8a;
  --gold-100:    #fef3c7;

  --sapphire-700: #002b47;
  --sapphire-600: #003d63;
  --sapphire-500: #005587;
  --sapphire-400: #1a72a8;
  --sapphire-300: #4d9fc7;
  --sapphire-100: #cce8f8;

  --danger:      #c0392b;
  --warn:        #d97706;
  --success:     #059669;

  --bg:          #f5f7f5;
  --bg-soft:     #eff2ee;
  --surface:     #ffffff;
  --surface-2:   #f5f7f4;
  --surface-3:   #edf0ec;
  --surface-4:   #e5e9e4;
  --border:      rgba(0, 61, 32, 0.09);
  --border-mid:  rgba(0, 61, 32, 0.16);

  --text-primary:  #0a1f14;
  --text-body:     #253427;
  --text-muted:    #5a7265;
  --text-faint:    #8faa9a;

  --font-display: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  --nav-h: 88px;
  --nav-bg: #ffffff;
  --nav-bg-scrolled: rgba(255, 255, 255, 0.96);
  --nav-border: rgba(1, 44, 24, 0.1);
  --nav-link: rgba(10, 31, 20, 0.78);
  --nav-link-active: var(--forest-700);
  --container: 1280px;

  /* Menu déroulant type « liste simple » (compact, lisible) */
  --nav-list-radius: 10px;
  --nav-list-shadow: 0 12px 40px rgba(1, 24, 12, 0.1), 0 2px 10px rgba(1, 24, 12, 0.05);

  --r-xs:   4px;
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   18px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-full: 9999px;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 32px rgba(0,0,0,.09), 0 4px 12px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.11), 0 8px 24px rgba(0,0,0,.06);
  --shadow-green: 0 8px 32px rgba(0, 77, 44, .28);
  --shadow-gold:  0 8px 28px rgba(201, 162, 39, .30);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 150ms cubic-bezier(.4,0,.2,1);
  --t: 280ms cubic-bezier(.4,0,.2,1);
  --t-slow: 500ms cubic-bezier(.4,0,.2,1);

  --glass-bg: rgba(255,255,255,.65);
  --glass-border: rgba(255,255,255,.45);
  --glass-blur: blur(20px) saturate(1.8);
  --glass-dark-bg: rgba(1, 44, 24, .55);
  --glass-dark-border: rgba(255,255,255,.10);
}

/* --- 3. Global Typography --- */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -.02em;
}
p { line-height: 1.75; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: none;
  color: var(--forest-500); margin-bottom: 12px;
}
.section-eyebrow::before {
  content: ''; display: block; width: 28px; height: 2px;
  background: linear-gradient(90deg, var(--forest-500), var(--gold-400));
  border-radius: 2px;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800;
  color: var(--text-primary); letter-spacing: -.03em; line-height: 1.15;
}
.section-desc {
  font-size: 1.02rem; color: var(--text-muted);
  max-width: 600px; line-height: 1.82;
}
.gradient-text {
  background: linear-gradient(135deg, var(--forest-600) 0%, var(--forest-400) 50%, var(--gold-400) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* --- 4. Layout --- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* --- 5. Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .875rem; font-weight: 700;
  padding: 13px 26px; border-radius: var(--r-xl);
  transition: all 280ms cubic-bezier(.4,0,.2,1); cursor: pointer;
  white-space: nowrap; border: 1.5px solid transparent;
  letter-spacing: -.01em; position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--forest-700) 0%, var(--forest-500) 100%);
  color: #fff; box-shadow: var(--shadow-green);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(0,77,44,.38); }
.btn-primary:active { transform: translateY(0); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-700) 0%, var(--gold-400) 100%);
  color: #fff; box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(201,162,39,.40); }
.btn-glass {
  background: var(--glass-bg); backdrop-filter: var(--glass-blur);
  border-color: var(--glass-border); color: var(--text-primary);
}
.btn-glass:hover { background: rgba(255,255,255,.88); transform: translateY(-1px); }
.btn-outline-white {
  background: transparent; border: 1.5px solid rgba(255,255,255,.38);
  color: #fff; backdrop-filter: blur(8px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.7);
  transform: translateY(-1px);
}
.btn-sm { padding: 9px 18px; font-size: .82rem; border-radius: var(--r-lg); }
.btn-lg { padding: 17px 36px; font-size: .95rem; border-radius: var(--r-2xl); }
.btn-icon { padding: 11px; border-radius: var(--r-lg); }

/* --- 6. Navbar (fond blanc — aligné logo institutionnel MEDD) --- */
.navbar {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
  background: var(--nav-bg);
  transition: background 500ms cubic-bezier(.4,0,.2,1), box-shadow 500ms cubic-bezier(.4,0,.2,1);
}
.navbar::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--nav-border);
}
.navbar.scrolled {
  background: var(--nav-bg-scrolled);
  box-shadow: 0 4px 28px rgba(1, 44, 24, 0.08), 0 1px 0 var(--nav-border);
}
/* Flou sur ::before pour ne pas piéger #navMenu (position:fixed) dans la navbar */
.navbar.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px) saturate(1.15);
  pointer-events: none;
}
.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 0;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 20px;
}
.brand-logo {
  display: block;
  height: 62px;
  width: auto;
  max-width: min(420px, 62vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  box-shadow: none;
  transition: opacity var(--t-fast), box-shadow var(--t-fast);
}
.navbar-brand:hover .brand-logo {
  box-shadow: 0 0 0 1px rgba(0, 92, 52, 0.15);
  opacity: 0.96;
}
.navbar-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: visible;
}
.nav-link {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--nav-link);
  padding: 10px 14px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: all 150ms cubic-bezier(.4, 0, 0.2, 1);
  position: relative;
}
.nav-link:hover { color: var(--forest-900); background: var(--forest-50); }
.nav-link.active { color: var(--nav-link-active); background: rgba(0, 92, 52, 0.08); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%); width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-400)); border-radius: 2px;
}
.nav-mega {
  position: relative;
  padding: 10px 0 16px;
  margin: -10px 0 -16px;
}
.nav-mega::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 18px;
}
.nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--nav-link);
  white-space: nowrap;
  transition: all var(--t-fast);
  position: relative;
}
.nav-trigger:hover,
.nav-mega.open .nav-trigger,
.nav-mega.active .nav-trigger,
.nav-mega:focus-within .nav-trigger {
  color: var(--forest-900); background: var(--forest-50);
}
.nav-mega.active .nav-trigger::after {
  content: ''; position: absolute; bottom: 4px; left: 50%;
  transform: translateX(-50%); width: 18px; height: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-400)); border-radius: 2px;
}
.nav-chevron {
  font-size: .72rem; opacity: .78; transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav-mega:hover .nav-chevron,
.nav-mega.open .nav-chevron,
.nav-mega:focus-within .nav-chevron,
.nav-mega.active .nav-chevron {
  opacity: 1; transform: rotate(180deg);
}
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  width: min(300px, calc(100vw - 28px));
  min-width: 0;
  max-width: calc(100vw - 24px);
  padding: 10px;
  border-radius: var(--nav-list-radius);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--nav-list-shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(10px) scale(.985);
  transition:
    opacity 240ms var(--ease),
    transform 240ms var(--ease),
    visibility 240ms var(--ease),
    box-shadow 240ms var(--ease);
}
.nav-mega.align-right .nav-dropdown {
  left: auto; right: 0;
}
.nav-mega:hover .nav-dropdown,
.nav-mega.open .nav-dropdown,
.nav-mega:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0) scale(1);
}
.nav-dropdown-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
}
.nav-dropdown-col {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(1, 44, 24, 0.07);
  align-self: start;
  min-width: 0;
}
/* Ne masquer que les colonnes réellement vides (évite de cacher repères + feature) */
.nav-dropdown-col:empty {
  display: none;
}
.nav-dropdown-feature {
  display: none;
}
.nav-dropdown-title,
.nav-dropdown-kicker {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.35;
}
.nav-dropdown-title {
  color: var(--forest-600);
  margin-bottom: 2px;
}
.nav-dropdown-kicker { color: var(--forest-500); }
.nav-dropdown-feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.28;
}
.nav-dropdown-feature p {
  font-size: 0.84rem;
  line-height: 1.62;
  color: var(--text-muted);
}
.nav-dropdown-col > .nav-dropdown-copy + .nav-dropdown-copy {
  margin-top: 4px;
}
.nav-dropdown-link {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 11px 10px;
  min-height: 48px;
  border-radius: 10px;
  min-width: 0;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible,
.nav-dropdown-link.active {
  background: rgba(1,77,44,.08);
  transform: translateX(2px);
  box-shadow: inset 0 0 0 1px rgba(1,77,44,.08);
}
.nav-dropdown-link.active {
  background: linear-gradient(135deg, rgba(1,77,44,.10), rgba(201,162,39,.12));
}
.nav-dropdown-link.active .nav-dropdown-icon {
  background: linear-gradient(135deg, var(--forest-600), var(--forest-400));
  color: #fff; border-color: transparent;
}
.nav-dropdown-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(1, 44, 24, 0.09);
  background: linear-gradient(135deg, rgba(1, 77, 44, 0.09), rgba(201, 162, 39, 0.11));
  color: var(--forest-600);
  font-size: 0.88rem;
}
.nav-dropdown-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.nav-dropdown-copy strong {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.nav-dropdown-copy span {
  font-size: 0.74rem;
  line-height: 1.48;
  color: var(--text-muted);
}
.nav-dropdown-feature .btn {
  justify-content: center;
}

/* Desktop : menu type capture — liste verticale, blanc, largeur au contenu */
@media (min-width: 1025px) {
  .nav-dropdown {
    width: max-content;
    max-width: min(320px, calc(100vw - 28px));
    min-width: min(220px, 100%);
    padding: 6px 0;
    border-radius: var(--nav-list-radius);
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: var(--nav-list-shadow);
  }
  .nav-dropdown-grid {
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    max-width: 100%;
  }
  /* Colonnes sans lien direct (repères texte, encart) : masquées pour alléger */
  .nav-dropdown-col:not(:has(a.nav-dropdown-link)) {
    display: none;
  }
  .nav-dropdown-col {
    padding: 0;
    gap: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }
  .nav-dropdown-col + .nav-dropdown-col {
    margin-top: 2px;
  }
  .nav-dropdown-title {
    display: none;
  }
  .nav-dropdown-feature {
    display: none !important;
  }
  .nav-dropdown-link {
    display: block;
    padding: 14px 22px;
    min-height: 0;
    border-radius: 0;
    gap: 0;
  }
  .nav-dropdown-icon {
    display: none !important;
  }
  .nav-dropdown-copy {
    display: block;
  }
  .nav-dropdown-copy span {
    display: none;
  }
  .nav-dropdown-copy strong {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: rgba(42, 48, 44, 0.92);
    letter-spacing: 0.01em;
    line-height: 1.35;
  }
  .nav-dropdown-link:hover,
  .nav-dropdown-link:focus-visible {
    background: rgba(1, 77, 44, 0.06);
    transform: none;
    box-shadow: none;
  }
  .nav-dropdown-link.active {
    background: rgba(1, 77, 44, 0.09);
    transform: none;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown {
    transition-duration: 0.01ms;
    transform: none !important;
  }
  .nav-mega:hover .nav-dropdown,
  .nav-mega.open .nav-dropdown,
  .nav-mega:focus-within .nav-dropdown {
    transform: none;
  }
  .nav-dropdown-link {
    transition-duration: 0.01ms;
  }
  .nav-dropdown-link:hover,
  .nav-dropdown-link:focus-visible,
  .nav-dropdown-link.active {
    transform: none;
  }
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest-600);
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  cursor: pointer;
}
.lang-btn:hover {
  color: var(--forest-900);
  border-color: var(--forest-200);
  background: var(--forest-50);
}
.lang-btn i {
  font-size: 0.58rem;
  opacity: 0.72;
  transition: transform 150ms;
}
.lang-switcher {
  position: relative;
}
.lang-switcher.open .lang-btn i {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 148px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 150ms, transform 150ms, visibility 150ms;
}
.lang-switcher.open .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  border-radius: var(--r-md);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: background 150ms, color 150ms;
}
.lang-menu button:hover,
.lang-menu button.active {
  background: var(--forest-50);
  color: var(--forest-800);
}
html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}
html[dir="rtl"] .lang-menu button {
  text-align: right;
}
html[dir="rtl"] .navbar-inner {
  direction: rtl;
}
html[dir="rtl"] .nav-dropdown-link {
  direction: rtl;
}
html[dir="rtl"] .nav-dropdown-copy {
  text-align: right;
}
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .footer-col ul {
  text-align: right;
}
html.cf-locale-ar body {
  font-family: "Noto Sans Arabic", var(--font-body);
}
html.cf-locale-ar .hero h1,
html.cf-locale-ar .section-title,
html.cf-locale-ar .nav-link,
html.cf-locale-ar .nav-trigger {
  font-family: "Noto Sans Arabic", var(--font-display);
}
html[dir="rtl"] .map-shell,
html[dir="rtl"] .map-page-wrap,
html[dir="rtl"] #map {
  direction: ltr;
}
.search-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-600);
  border-radius: var(--r-md);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.search-btn:hover {
  background: var(--forest-50);
  color: var(--forest-800);
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .navbar-inner {
    padding: 0 16px;
  }
  .navbar-brand {
    margin-right: 8px;
  }
  .brand-logo {
    height: 54px;
    max-width: 220px;
  }
  .navbar-menu {
    gap: 3px;
  }
  .nav-link,
  .nav-trigger {
    padding: 8px 8px;
    font-size: 0.8rem;
  }
  .navbar-actions {
    margin-left: 6px;
  }
  .lang-btn {
    padding: 6px 10px;
  }
  .search-btn {
    width: 38px;
    height: 38px;
  }
}

/* --- 7. Hamburger --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
  margin-left: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest-800);
  border-radius: 2px;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }
.mobile-menu {
  display: none; position: fixed; inset: var(--nav-h) 0 0 0;
  background: var(--forest-900); z-index: 999;
  padding: 20px; overflow-y: auto; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: .95rem; padding: 13px 16px; border-radius: var(--r-lg); }

/* --- 8. Hero Section --- */
.hero {
  position: relative; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: center 38%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(1,28,16,.78) 0%, rgba(1,20,12,.52) 40%, rgba(1,44,24,.90) 100%);
}
.hero-orb {
  position: absolute; z-index: 2; border-radius: 50%;
  filter: blur(80px); pointer-events: none; opacity: .3;
}
.hero-orb-1 { width: 600px; height: 600px; top: -100px; right: -100px; background: radial-gradient(circle, var(--forest-500), transparent 70%); }
.hero-orb-2 { width: 400px; height: 400px; bottom: 10%; left: -80px; background: radial-gradient(circle, var(--gold-400), transparent 70%); opacity: .18; }
.hero-content {
  position: relative; z-index: 10; text-align: center; padding: 0 24px;
  max-width: 940px; padding-bottom: 180px;
}
@media (min-width: 768px) { .hero-content { padding-bottom: 210px; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.18); color: var(--gold-200);
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .14em;
  padding: 7px 16px; border-radius: var(--r-full); margin-bottom: 28px;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-300);
  box-shadow: 0 0 8px var(--gold-300); animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; box-shadow: 0 0 8px var(--gold-300); }
  50%      { opacity: .6; box-shadow: 0 0 0 var(--gold-300); }
}
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800; color: #fff; line-height: 1.08;
  letter-spacing: -.04em; margin-bottom: 24px;
  text-shadow: 0 2px 40px rgba(0,0,0,.3);
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc {
  font-size: 1.08rem; color: rgba(255,255,255,.72);
  line-height: 1.82; margin: 0 auto 40px; max-width: 580px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero-stats-bar {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
  background: rgba(1,28,16,.82); backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-stats-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.hero-stat {
  padding: 22px 24px; text-align: center;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: background 280ms cubic-bezier(.4,0,.2,1); cursor: default;
}
.hero-stat:last-child { border-right: none; }
.hero-stat:hover { background: rgba(255,255,255,.04); }
.hero-stat-value {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 800;
  color: var(--gold-300); line-height: 1; letter-spacing: -.02em;
}
.hero-stat-label {
  font-family: var(--font-display); font-size: .63rem; font-weight: 600;
  letter-spacing: .10em; text-transform: uppercase;
  color: rgba(255,255,255,.42); margin-top: 5px;
}

/* --- 9. Reveal Animations --- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-scale { opacity: 0; transform: scale(.96); transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.34,1.56,.64,1); }
.reveal-scale.visible { opacity: 1; transform: scale(1); }

/* --- 10. About Section --- */
.about-section { background: var(--surface); padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text > p { font-size: .975rem; color: var(--text-muted); line-height: 1.82; margin-bottom: 18px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.about-badge {
  font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .05em;
  padding: 6px 14px; border-radius: var(--r-full);
  background: var(--surface-3); border: 1px solid var(--border); color: var(--text-muted);
  transition: all 150ms cubic-bezier(.4,0,.2,1);
}
.about-badge:hover { background: var(--forest-50); color: var(--forest-600); border-color: var(--forest-200); }
.about-media { position: relative; }
.about-media-inner {
  position: relative; border-radius: var(--r-2xl); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--shadow-xl); border: 1px solid var(--border);
}
.about-media-inner img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.4,0,.2,1); }
.about-media:hover .about-media-inner img { transform: scale(1.04); }
.about-media-badge {
  position: absolute; top: 20px; left: 20px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(1,44,24,.88); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12); color: #fff;
  font-family: var(--font-display); font-size: .73rem; font-weight: 700;
  padding: 8px 14px; border-radius: var(--r-full);
}
.about-media-badge .live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,.3); animation: pulse-green 2s ease infinite;
}
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 2px rgba(34,197,94,.3); }
  50%      { box-shadow: 0 0 0 5px rgba(34,197,94,.0); }
}
.about-media-cta {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.0); transition: background 280ms cubic-bezier(.4,0,.2,1); cursor: pointer;
}
.about-media-cta:hover { background: rgba(0,0,0,.15); }
.about-media-cta .play-btn {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.25); color: var(--forest-700);
  transform: scale(0); transition: transform 500ms cubic-bezier(.34,1.56,.64,1) .1s;
}
.about-media-cta:hover .play-btn { transform: scale(1); }
.about-media::before {
  content: ''; position: absolute; inset: -20px; z-index: -1;
  background: radial-gradient(ellipse at 60% 60%, rgba(0,122,69,.14), transparent 70%);
  border-radius: 50%;
}
.about-media-panel {
  position: absolute; left: 20px; right: 20px; bottom: 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  background: linear-gradient(135deg, rgba(1,44,24,.90), rgba(1,28,16,.82));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  padding: 16px 18px;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.about-media-panel h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 4px;
}
.about-media-panel p {
  font-size: .84rem;
  line-height: 1.55;
  color: rgba(255,255,255,.78);
  max-width: 380px;
}
.about-media-link {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 700;
  transition: all var(--t-fast);
}
.about-media-link:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.28);
}

/* --- 11. Services Grid --- */
.services-section { background: var(--bg-soft); padding: 100px 0; }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--r-2xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.service-card {
  position: relative; padding: 44px 36px;
  background: var(--surface); border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: all 500ms cubic-bezier(.4,0,.2,1); overflow: hidden; display: block;
}
.service-card:nth-child(3n) { border-right: none; }
.service-card:nth-last-child(-n+3) { border-bottom: none; }
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--forest-700) 0%, var(--forest-500) 100%);
  opacity: 0; transition: opacity 500ms cubic-bezier(.4,0,.2,1);
}
.service-card:hover::before { opacity: 1; }
.service-card-content { position: relative; z-index: 1; }
.service-icon {
  width: 56px; height: 56px; border-radius: var(--r-xl);
  background: var(--forest-50); border: 1px solid var(--forest-100);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px; color: var(--forest-600);
  transition: all 280ms cubic-bezier(.4,0,.2,1);
}
.service-card:hover .service-icon { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.25); color: var(--gold-300); }
.service-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; transition: color 280ms cubic-bezier(.4,0,.2,1); }
.service-card:hover h3 { color: #fff; }
.service-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.72; transition: color 280ms cubic-bezier(.4,0,.2,1); }
.service-card:hover p { color: rgba(255,255,255,.68); }
.service-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  color: var(--forest-500); margin-top: 22px; transition: all 280ms cubic-bezier(.4,0,.2,1);
}
.service-card:hover .service-arrow { color: var(--gold-300); gap: 10px; }

/* --- 12. Stats Section --- */
.stats-section {
  background: linear-gradient(160deg, var(--forest-900) 0%, var(--forest-800) 40%, var(--forest-700) 100%);
  position: relative; overflow: hidden; padding: 100px 0;
}
.stats-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 50%, rgba(201,162,39,.10), transparent 50%), radial-gradient(circle at 85% 30%, rgba(0,122,69,.15), transparent 50%);
}
.stats-section::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stats-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(255,255,255,.08);
  border-radius: var(--r-2xl); overflow: hidden; border: 1px solid rgba(255,255,255,.08);
}
.stat-card {
  background: rgba(1,28,16,.62); padding: 44px 32px; text-align: center;
  backdrop-filter: blur(8px); transition: background 280ms cubic-bezier(.4,0,.2,1); cursor: default;
}
.stat-card:hover { background: rgba(255,255,255,.05); }
.stat-card-value {
  font-family: var(--font-display); font-size: 3rem; font-weight: 800;
  color: var(--gold-300); line-height: 1; letter-spacing: -.04em; margin-bottom: 8px;
}
.stat-card-label {
  font-family: var(--font-display); font-size: .64rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.42); margin-bottom: 14px;
}
.stat-card-sub {
  font-family: var(--font-display); font-size: .98rem; font-weight: 700; color: rgba(255,255,255,.78);
}
.stat-card-accent {
  display: inline-block; margin-top: 12px; width: 32px; height: 3px;
  border-radius: 2px; background: linear-gradient(90deg, var(--gold-400), var(--gold-300));
}

/* --- 13. CTA Map Section --- */
.cta-section { background: var(--surface); padding: 100px 0; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.cta-features { list-style: none; margin: 24px 0 36px; }
.cta-features li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: .9rem; color: var(--text-muted);
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.cta-features li:last-child { border-bottom: none; }
.cta-feature-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--forest-50); border: 1px solid var(--forest-100);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--forest-600); margin-top: 1px;
}
.map-widget {
  border-radius: var(--r-2xl); overflow: hidden; border: 1px solid var(--border);
  box-shadow: var(--shadow-xl); background: var(--forest-800); position: relative;
}
.map-widget-bar {
  background: rgba(1,28,16,.8); backdrop-filter: blur(12px);
  height: 40px; display: flex; align-items: center;
  padding: 0 16px; gap: 8px; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.map-widget-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.map-widget-body { aspect-ratio: 16/10; position: relative; overflow: hidden; }
.map-widget-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0a2f1e 0%, #1a5c38 35%, #0f3d28 60%, #003020 100%);
}
.map-grid-lines {
  position: absolute; inset: 0; opacity: .12;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 48px 48px;
}
.map-province { position: absolute; border: 1.5px solid rgba(255,255,255,.22); border-radius: 4px; background: rgba(255,255,255,.03); }
.map-protected { position: absolute; background: rgba(59,191,125,.22); border: 1px solid rgba(59,191,125,.5); border-radius: 3px; }
.map-alert { position: absolute; width: 10px; height: 10px; border-radius: 50%; }
.map-alert::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; animation: ring 1.8s ease infinite; }
.map-alert-glad { background: var(--warn); }
.map-alert-glad::after { border: 2px solid var(--warn); }
.map-alert-radd { background: var(--danger); }
.map-alert-radd::after { border: 2px solid var(--danger); }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.5); opacity: 0; } }
.map-sidebar-mini {
  position: absolute; left: 0; top: 0; bottom: 0; width: 100px;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px); padding: 10px 8px;
  border-right: 1px solid rgba(255,255,255,.08);
}
.map-layer-item { display: flex; align-items: center; gap: 5px; padding: 5px 6px; border-radius: 5px; margin-bottom: 4px; background: rgba(255,255,255,.07); }
.map-layer-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.map-layer-label { font-family: var(--font-display); font-size: 7.5px; color: rgba(255,255,255,.65); font-weight: 600; }
.map-widget-hover {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.0); transition: background 280ms cubic-bezier(.4,0,.2,1); cursor: pointer;
}
.map-widget-hover:hover { background: rgba(0,0,0,.18); }
.map-widget-launch {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gold-300); color: var(--forest-900);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  transform: scale(0); transition: transform 500ms cubic-bezier(.34,1.56,.64,1) .1s;
}
.map-widget-hover:hover .map-widget-launch { transform: scale(1); }

/* --- 14. KPI Cards --- */
.kpi-card {
  background: var(--surface); border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-md); border: 1px solid var(--border);
  border-top: 3px solid var(--forest-500); transition: all 280ms cubic-bezier(.4,0,.2,1);
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.kpi-card.card-red    { border-top-color: var(--danger); }
.kpi-card.card-green  { border-top-color: var(--success); }
.kpi-card.card-orange { border-top-color: var(--warn); }
.kpi-card.card-blue   { border-top-color: var(--sapphire-500); }
.kpi-card.card-gold   { border-top-color: var(--gold-400); }
.kpi-label { font-family: var(--font-display); font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .10em; color: var(--text-faint); margin-bottom: 10px; }
.kpi-value { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; color: var(--text-primary); line-height: 1; letter-spacing: -.04em; margin-bottom: 6px; }
.kpi-value.green  { color: var(--success); }
.kpi-value.red    { color: var(--danger); }
.kpi-value.orange { color: var(--warn); }
.kpi-value.gold   { color: var(--gold-600); }
.kpi-sub { font-size: .8rem; color: var(--text-muted); }
.kpi-trend { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-size: .73rem; font-weight: 700; padding: 4px 10px; border-radius: var(--r-full); margin-top: 12px; }
.kpi-trend.up   { background: rgba(192,57,43,.08); color: var(--danger); }
.kpi-trend.down { background: rgba(5,150,105,.08);  color: var(--success); }

/* --- 15. Progress Bars --- */
.progress-wrap { margin-top: 14px; }
.progress-labels { display: flex; justify-content: space-between; font-size: .76rem; color: var(--text-muted); margin-bottom: 6px; }
.progress-bar { height: 7px; background: var(--surface-4); border-radius: var(--r-full); overflow: hidden; }
.progress-fill { height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--forest-700), var(--forest-400)); transition: width .8s cubic-bezier(.4,0,.2,1); }
.progress-fill.red    { background: linear-gradient(90deg, var(--danger), #e74c3c); }
.progress-fill.orange { background: linear-gradient(90deg, #b34800, var(--warn)); }
.progress-fill.gold   { background: linear-gradient(90deg, var(--gold-700), var(--gold-300)); }

/* --- 16. Alert Cards --- */
.alert-card { background: var(--surface); border-radius: var(--r-xl); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-md); transition: all 280ms cubic-bezier(.4,0,.2,1); }
.alert-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.alert-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.alert-badge { font-family: var(--font-display); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-full); }
.badge-glad { background: rgba(217,119,6,.12); color: var(--warn); border: 1px solid rgba(217,119,6,.2); }
.badge-radd { background: rgba(192,57,43,.10); color: var(--danger); border: 1px solid rgba(192,57,43,.2); }
.alert-dot { width: 10px; height: 10px; border-radius: 50%; animation: pulse-alert 1.8s ease-in-out infinite; }
.dot-orange { background: var(--warn); }
.dot-red    { background: var(--danger); }
@keyframes pulse-alert { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(1.4); } }
.alert-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--text-primary); line-height: 1; letter-spacing: -.04em; }
.alert-value.orange { color: var(--warn); }
.alert-value.red    { color: var(--danger); }
.alert-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; margin: 10px 0; }
.alert-latest { font-size: .78rem; padding: 9px 13px; border-radius: var(--r-md); display: flex; align-items: center; gap: 8px; font-weight: 500; }
.alert-latest.orange-bg { background: rgba(217,119,6,.06); color: var(--warn); border: 1px solid rgba(217,119,6,.15); }
.alert-latest.red-bg    { background: rgba(192,57,43,.06); color: var(--danger); border: 1px solid rgba(192,57,43,.15); }

/* --- 17. Data Tables --- */
.data-table-wrap { overflow-x: auto; border-radius: var(--r-xl); box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { background: linear-gradient(135deg, var(--forest-800), var(--forest-700)); color: rgba(255,255,255,.85); padding: 14px 20px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.data-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); background: var(--surface); transition: background 150ms cubic-bezier(.4,0,.2,1); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-2); }
.loss-bar { display: flex; align-items: center; gap: 10px; }
.loss-bar-inner { flex: 1; height: 6px; background: var(--surface-4); border-radius: var(--r-full); overflow: hidden; }
.loss-bar-fill { height: 100%; border-radius: var(--r-full); background: linear-gradient(90deg, var(--danger), var(--warn)); }

/* --- 18. Download Cards --- */
.download-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.download-card { background: var(--surface); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; transition: all 280ms cubic-bezier(.4,0,.2,1); }
.download-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-mid); }
.download-icon { width: 48px; height: 48px; border-radius: var(--r-lg); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.icon-pdf  { background: rgba(192,57,43,.08);  color: var(--danger); border: 1px solid rgba(192,57,43,.15); }
.icon-shp  { background: rgba(0,77,44,.08);    color: var(--forest-600); border: 1px solid rgba(0,77,44,.15); }
.icon-tif  { background: rgba(0,61,99,.08);    color: var(--sapphire-500); border: 1px solid rgba(0,61,99,.15); }
.icon-csv  { background: rgba(116,91,0,.08);   color: var(--gold-600); border: 1px solid rgba(116,91,0,.15); }
.download-info h4 { font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.download-info p  { font-size: .77rem; color: var(--text-muted); line-height: 1.55; }

/* --- 19. Page Hero (inner pages) --- */
.page-hero { background: linear-gradient(160deg, var(--forest-900) 0%, var(--forest-700) 100%); padding: 60px 0; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 0%, rgba(201,162,39,.12), transparent 60%); }
.page-hero h1 { color: #fff; font-size: clamp(1.6rem,3vw,2.4rem); letter-spacing: -.03em; margin-bottom: 10px; position: relative; z-index: 1; }
.page-hero p { color: rgba(255,255,255,.68); font-size: .975rem; max-width: 640px; position: relative; z-index: 1; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { font-size: .78rem; color: rgba(255,255,255,.55); transition: color 150ms cubic-bezier(.4,0,.2,1); }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb span { font-size: .78rem; color: rgba(255,255,255,.35); }

/* --- 20. Chart Cards --- */
.chart-card { background: var(--surface); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: box-shadow 280ms cubic-bezier(.4,0,.2,1); }
.chart-card:hover { box-shadow: var(--shadow-md); }
.chart-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.chart-header h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
.chart-header p  { font-size: .76rem; color: var(--text-muted); margin-top: 3px; }
.chart-wrap { position: relative; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.legend-item { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* --- 21. Map Page Layout --- */
.map-page-wrap { display: flex; height: calc(100vh - var(--nav-h)); overflow: hidden; }
.map-sidebar { width: 320px; flex-shrink: 0; background: var(--surface); overflow-y: auto; box-shadow: 4px 0 20px rgba(0,0,0,.07); display: flex; flex-direction: column; transition: transform 280ms cubic-bezier(.4,0,.2,1), margin 280ms cubic-bezier(.4,0,.2,1); z-index: 100; }
.map-sidebar.collapsed { transform: translateX(-100%); margin-left: -320px; }
.sidebar-header { background: linear-gradient(135deg, var(--forest-800), var(--forest-700)); color: #fff; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.sidebar-header h3 { font-size: .9rem; font-weight: 700; }
.sidebar-toggle-btn { background: rgba(255,255,255,.12); color: #fff; border-radius: var(--r-md); padding: 5px 8px; font-size: .78rem; transition: background 150ms cubic-bezier(.4,0,.2,1); }
.sidebar-toggle-btn:hover { background: rgba(255,255,255,.22); }
.layer-group { border-bottom: 1px solid var(--border); }
.layer-group-header { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; cursor: pointer; transition: background 150ms cubic-bezier(.4,0,.2,1); user-select: none; }
.layer-group-header:hover { background: var(--surface-2); }
.layer-group-title { font-family: var(--font-display); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.layer-group-toggle { font-size: .68rem; color: var(--text-faint); transition: transform 150ms cubic-bezier(.4,0,.2,1); }
.layer-group-toggle.open { transform: rotate(90deg); }
.layer-items { padding: 4px 0; display: none; }
.layer-items.open { display: block; }
.layer-item { display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 24px; cursor: pointer; transition: background 150ms cubic-bezier(.4,0,.2,1); font-size: .85rem; }
.layer-item:hover { background: var(--surface-2); }
.layer-item input[type="checkbox"] { display: none; }
.layer-checkbox { width: 18px; height: 18px; border-radius: var(--r-xs); border: 2px solid var(--border-mid); flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: all 150ms cubic-bezier(.4,0,.2,1); }
.layer-item.active .layer-checkbox { background: var(--forest-600); border-color: var(--forest-600); }
.layer-item.active .layer-checkbox::after { content: 'v'; color: #fff; font-size: .62rem; font-weight: 900; }
.layer-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.map-stats-panel { padding: 16px; background: var(--surface-2); border-top: 1px solid var(--border); flex-shrink: 0; }
.map-stats-panel h4 { font-family: var(--font-display); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); margin-bottom: 12px; }
.map-stat-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .82rem; }
.map-stat-row:last-child { border-bottom: none; }

/* --- 22. Blog Cards --- */
.blog-card { background: var(--surface); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 280ms cubic-bezier(.4,0,.2,1); border: 1px solid var(--border); }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border-mid); }
.blog-card-img { height: 190px; object-fit: cover; width: 100%; background: linear-gradient(135deg, var(--forest-700), var(--forest-500)); display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.4,0,.2,1); }
.blog-card:hover .blog-card-img img { transform: scale(1.06); }
.blog-card-body { padding: 22px; }
.blog-tag { display: inline-block; font-family: var(--font-display); font-size: .64rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-full); margin-bottom: 10px; }
.tag-rapport   { background: rgba(0,77,44,.08);  color: var(--forest-600); border: 1px solid rgba(0,77,44,.15); }
.tag-alerte    { background: rgba(217,119,6,.08); color: var(--warn); border: 1px solid rgba(217,119,6,.15); }
.tag-formation { background: rgba(0,85,135,.08);  color: var(--sapphire-500); border: 1px solid rgba(0,85,135,.15); }
.tag-donnees   { background: rgba(116,91,0,.08);  color: var(--gold-600); border: 1px solid rgba(116,91,0,.15); }
.blog-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; line-height: 1.45; letter-spacing: -.01em; }
.blog-card p  { font-size: .83rem; color: var(--text-muted); line-height: 1.65; }
.blog-meta    { font-size: .74rem; color: var(--text-faint); margin-top: 14px; display: flex; gap: 14px; }

/* --- 23. Licence Section --- */
.licence-section { background: var(--surface-2); border-top: 1px solid var(--border); padding: 56px 0; }

/* --- 24. Footer --- */
.footer { background: var(--forest-950); color: rgba(255,255,255,.55); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand { max-width: 280px; }
.footer-brand-name { font-family: var(--font-display); font-weight: 800; font-size: .93rem; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.footer-brand p { font-size: .84rem; line-height: 1.78; }
.footer-social-links { display: flex; gap: 8px; margin-top: 24px; }
.footer-social { width: 36px; height: 36px; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.45); transition: all 150ms cubic-bezier(.4,0,.2,1); }
.footer-social:hover { background: var(--gold-400); color: var(--forest-900); border-color: var(--gold-400); }
.footer-col h4 { font-family: var(--font-display); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.88); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .84rem; transition: color 150ms cubic-bezier(.4,0,.2,1); }
.footer-col a:hover { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0; margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.footer-bottom p { font-size: .77rem; }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: .77rem; transition: color 150ms cubic-bezier(.4,0,.2,1); }
.footer-bottom-links a:hover { color: var(--gold-300); }

/* --- 25. Cookie Banner --- */
#cookieBanner { display: none; }
#cookieBanner.show { display: flex; }

/* --- 26. Toast --- */
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* --- 27. Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-mid); }

/* --- 28. Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-card:nth-child(3n) { border-right: 1px solid var(--border); }
  .service-card:nth-child(even) { border-right: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .hero-stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 1024px) {
  .navbar,
  .navbar-inner {
    overflow: visible;
  }
  .navbar.scrolled::before {
    display: none;
  }
  .navbar-menu {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100dvh - var(--nav-h));
    max-height: calc(100dvh - var(--nav-h));
    z-index: 999;
    padding: 18px 18px 32px;
    background:
      linear-gradient(180deg, #ffffff 0%, var(--forest-50) 100%),
      radial-gradient(circle at top right, rgba(201,162,39,.14), transparent 36%);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }
  .navbar-menu.open { display: flex; }
  .hamburger { display: flex; }
  .nav-link,
  .nav-trigger {
    width: 100%; justify-content: space-between;
    padding: 14px 16px; border-radius: 18px; font-size: .95rem;
    color: var(--text-primary);
    background: rgba(255,255,255,.95);
    border: 1px solid var(--border);
  }
  .nav-link.active,
  .nav-mega.active .nav-trigger {
    background: rgba(0, 92, 52, 0.08);
    color: var(--forest-800);
  }
  .nav-mega {
    width: 100%; padding: 0; margin: 0;
    overflow: visible;
  }
  .nav-mega::after { display: none; }
  .nav-dropdown {
    position: static; width: 100%; min-width: 0; margin-top: 8px;
    padding: 14px; border-radius: 20px;
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    display: none; box-shadow: inset 0 0 0 1px var(--border);
    background: var(--surface);
    overflow: visible;
    max-height: none;
  }
  .nav-mega.open .nav-dropdown { display: block; }
  .nav-dropdown-grid { grid-template-columns: 1fr; gap: 10px; }
  .nav-dropdown-col {
    background: var(--surface-2);
    border-color: var(--border);
  }
  .nav-dropdown-feature {
    display: grid;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(
      160deg,
      var(--forest-900) 0%,
      var(--forest-800) 52%,
      var(--forest-700) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-dropdown-feature .nav-dropdown-kicker {
    color: rgba(255, 255, 255, 0.68);
  }
  .nav-dropdown-feature h4 {
    color: #fff;
    font-size: 1.04rem;
    line-height: 1.28;
  }
  .nav-dropdown-feature p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.84rem;
    line-height: 1.55;
  }
  .nav-dropdown-title { color: var(--forest-600); }
  .nav-dropdown-title,
  .nav-dropdown-col:not(:has(a.nav-dropdown-link)),
  .nav-dropdown-feature {
    display: none;
  }
  .nav-dropdown-link:hover,
  .nav-dropdown-link.active {
    background: rgba(0, 92, 52, 0.07);
  }
  .nav-dropdown-copy strong { color: var(--text-primary); }
  .nav-dropdown-copy span { color: var(--text-muted); }
  .nav-dropdown-feature .btn.btn-outline-white {
    border-color: var(--forest-200);
    color: var(--forest-700);
    background: var(--forest-50);
  }
  .nav-dropdown-feature .btn.btn-outline-white:hover {
    border-color: var(--forest-400);
    background: #fff;
    color: var(--forest-900);
  }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { border-right: none !important; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats-grid { grid-template-columns: repeat(2,1fr); }
  .hero {
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + 8px);
  }
  .hero-media img {
    object-position: center 32%;
  }
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(1, 28, 16, 0.62) 0%,
      rgba(1, 20, 12, 0.78) 42%,
      rgba(1, 44, 24, 0.94) 100%
    );
  }
  .hero-orb-1 {
    width: min(320px, 72vw);
    height: min(320px, 72vw);
    top: -60px;
    right: -80px;
    opacity: 0.22;
  }
  .hero-orb-2 {
    width: min(220px, 55vw);
    height: min(220px, 55vw);
    bottom: 28%;
    left: -60px;
    opacity: 0.12;
  }
  .hero-content {
    position: relative;
    z-index: 10;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    padding: 20px 20px 16px;
    box-sizing: border-box;
  }
  .hero-badge {
    align-self: center;
    max-width: 100%;
    white-space: normal;
    text-align: center;
    line-height: 1.45;
    letter-spacing: 0.08em;
    font-size: 0.64rem;
    padding: 8px 14px;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 7.5vw, 2.45rem);
    margin-bottom: 18px;
  }
  .hero-desc {
    font-size: 0.96rem;
    line-height: 1.72;
    margin-bottom: 28px;
    max-width: 36ch;
  }
  .hero-actions {
    width: 100%;
    max-width: 420px;
  }
  .hero-actions .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.4;
    padding-top: 15px;
    padding-bottom: 15px;
  }
  .hero-stats-bar {
    position: relative;
    flex-shrink: 0;
    margin-top: auto;
    background: rgba(1, 28, 16, 0.94);
    backdrop-filter: none;
  }
  .hero-stats-grid {
    padding: 0 12px;
  }
  .hero-stat {
    padding: 16px 10px;
  }
  .hero-stat-value {
    font-size: 1.12rem;
  }
  .hero-stat-label {
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    line-height: 1.35;
  }
  :root {
    --nav-h: 76px;
  }
  .brand-logo {
    height: 52px;
    max-width: min(360px, 70vw);
  }
  .about-media-panel {
    left: 14px; right: 14px; bottom: 14px;
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
  .about-media-panel p { max-width: none; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero {
    padding-top: calc(var(--nav-h) + 4px);
  }
  .hero-content {
    padding: 16px 16px 12px;
  }
  .hero h1 {
    font-size: clamp(1.65rem, 8.2vw, 2rem);
    line-height: 1.12;
  }
  .hero-badge {
    font-size: 0.6rem;
    padding: 7px 12px;
  }
  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 22px;
  }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    padding: 0 8px;
  }
  .hero-stat {
    padding: 14px 8px;
  }
  .hero-stat:nth-child(2n) { border-right: none; }
  .hero-stat:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .hero-stat-value {
    font-size: 1rem;
  }
}

/* --- 29. Utility classes --- */
.text-muted-c  { color: var(--text-muted); }
.text-forest   { color: var(--forest-600); }
.text-gold     { color: var(--gold-500); }
.bg-forest     { background: var(--forest-700); }
.glass { background: var(--glass-bg); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-border); }
.glass-dark { background: var(--glass-dark-bg); backdrop-filter: var(--glass-blur); border: 1px solid var(--glass-dark-border); }

/* --- 30. Mapbox logo --- */
.mapboxgl-ctrl-logo { display: none !important; }
