/* ═══════════════════════════════════════════════════
   ÉcoloLab Déchets Aube — style.css
   Palette, variables CSS, reset, composants, sections
═══════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  /* Couleurs principales */
  --green-dark:   #1B4D3E;
  --green:        #2E7D5A;
  --green-light:  #6FBF73;
  --lime:         #c8e330;
  --beige:        #F3E9D2;
  --cream:        #FAF7EF;
  --yellow:       #F2C94C;
  --white:        #FFFFFF;

  /* Texte */
  --text:         #2E2E2E;
  --text-muted:   #6B7280;
  --text-light:   #9CA3AF;

  /* Surfaces */
  --surface:      #FFFFFF;
  --surface-alt:  #F3F0E6;
  --border:       rgba(27,77,62,.12);

  /* Ombres */
  --shadow-sm:    0 2px 10px rgba(27,77,62,.08);
  --shadow:       0 8px 32px rgba(27,77,62,.12);
  --shadow-lg:    0 20px 60px rgba(27,77,62,.18);

  /* Rayon */
  --radius:       16px;
  --radius-lg:    28px;
  --radius-xl:    40px;

  /* Transitions */
  --transition:   .22s cubic-bezier(.22,1,.36,1);
}

/* ── MODE SOMBRE ── */
[data-theme="dark"] {
  --green-dark:   #a8d5b5;
  --green:        #6FBF73;
  --green-light:  #a8d5b5;
  --beige:        #1e2c24;
  --cream:        #141d18;
  --text:         #e8f0eb;
  --text-muted:   #9ab5a3;
  --surface:      #1a2820;
  --surface-alt:  #1e2c24;
  --border:       rgba(111,191,115,.15);
  --shadow-sm:    0 2px 10px rgba(0,0,0,.3);
  --shadow:       0 8px 32px rgba(0,0,0,.35);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.45);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── UTILITAIRES ── */
.container {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
}
.tag-green { background: rgba(27,77,62,.10); color: var(--green-dark); }
[data-theme="dark"] .tag-green { background: rgba(111,191,115,.15); }
.tag-white { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }

.text-accent { color: var(--green-light); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes countUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.fade-up { opacity: 0; animation: fadeUp .7s cubic-bezier(.22,1,.36,1) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }

/* ── BOUTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }

.btn-primary {
  background: var(--green-dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(27,77,62,.28);
}
.btn-primary:hover { background: var(--green); box-shadow: 0 12px 32px rgba(27,77,62,.38); }

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--green); background: rgba(27,77,62,.05); }

.btn-lime {
  background: var(--lime);
  color: var(--green-dark);
  box-shadow: 0 8px 24px rgba(200,227,48,.35);
}
.btn-lime:hover { background: #d4ee3a; }

.btn-white {
  background: #fff;
  color: var(--green-dark);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.btn-white:hover { background: #f0f8f2; }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}
.btn-outline-white:hover { background: rgba(255,255,255,.10); }

/* ── SECTIONS ── */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--green-dark); color: #fff; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  width: 22px; height: 3px;
  background: var(--lime);
  border-radius: 2px;
  display: inline-block;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}
[data-theme="dark"] .section-header h2 { color: var(--text); }
.section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 640px;
  margin-inline: auto;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,247,239,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
[data-theme="dark"] .navbar { background: rgba(20,29,24,.92); }
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--green-dark);
  white-space: nowrap;
}
.nav-logo strong { font-weight: 900; }
.logo-icon { font-size: 22px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--green-dark); background: rgba(27,77,62,.07); }
.nav-cta {
  background: var(--green-dark) !important;
  color: #fff !important;
  padding: 9px 18px !important;
  transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--green) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--green-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  padding: 80px 0 96px;
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 900;
  line-height: .97;
  letter-spacing: -3px;
  color: var(--green-dark);
  margin: 16px 0 24px;
}
[data-theme="dark"] .hero h1 { color: var(--text); }
.hero-desc {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 34px;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Stats hero */
.hero-stats {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stats-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat-card {
  background: var(--surface-alt);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
}
.stat-card.accent { background: rgba(27,77,62,.07); border-color: rgba(27,77,62,.18); }
.stat-card strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
  margin-bottom: 4px;
}
[data-theme="dark"] .stat-card strong { color: var(--text); }
.stat-card span { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* Deco bg */
.hero-bg-deco {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111,191,115,.12) 0%, transparent 70%);
  right: -150px; top: -150px;
  pointer-events: none;
}

/* ── CARTES ── */
.cards-grid {
  display: grid;
  gap: 20px;
}
.cards-grid-3 { grid-template-columns: repeat(3,1fr); }
.cards-grid-4 { grid-template-columns: repeat(4,1fr); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon { font-size: 32px; margin-bottom: 16px; }
.card h3 { font-size: 17px; font-weight: 800; color: var(--green-dark); margin-bottom: 10px; line-height: 1.3; }
[data-theme="dark"] .card h3 { color: var(--text); }
.card p   { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.card-badge {
  margin-top: 16px;
  display: inline-block;
  padding: 4px 12px;
  background: rgba(27,77,62,.08);
  color: var(--green);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.card-feature { min-height: 200px; }

/* ── ASSISTANT ── */
.assistant-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 760px;
  margin-inline: auto;
}
.assistant-search {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.assistant-search input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}
.assistant-search input::placeholder { color: rgba(255,255,255,.45); }
.assistant-search input:focus { border-color: var(--lime); }

.quick-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.quick-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.18);
  transition: background var(--transition), transform var(--transition);
}
.quick-btn:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }

.assistant-result {
  min-height: 120px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
}
.result-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 10px;
  color: rgba(255,255,255,.45);
  text-align: center;
  font-size: 15px;
}
.result-placeholder span { font-size: 32px; }

.result-card { color: #fff; }
.result-category {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--lime);
  margin-bottom: 8px;
}
.result-destination {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
}
.result-conseil {
  font-size: 15px;
  color: rgba(255,255,255,.75);
  margin-bottom: 12px;
}
.result-impact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(200,227,48,.15);
  border: 1px solid rgba(200,227,48,.3);
  border-radius: 999px;
  font-size: 13px;
  color: var(--lime);
  font-weight: 600;
}
.result-not-found {
  color: rgba(255,255,255,.7);
  font-style: italic;
  font-size: 15px;
}

/* ── SECTION CARTE (Leaflet) ── */
.section-map-full {
  background: var(--surface-alt);
  padding-top: 96px;
  padding-bottom: 0;
}

/* Barre de contrôle */
.map-controls-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  margin-top: 40px;
  position: sticky;
  top: 54px;   /* hauteur navbar desktop */
  z-index: 150;
  box-shadow: var(--shadow-sm);
}
.map-controls-inner {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Filtres type */
.map-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.map-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--border);
  color: var(--text-muted);
  background: var(--surface-alt);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.map-filter-btn:hover { border-color: var(--green); color: var(--green-dark); }
.map-filter-btn.active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
[data-theme="dark"] .map-filter-btn.active { background: var(--green); border-color: var(--green); }
.mfb-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.map-filter-btn.active .mfb-dot { background: rgba(255,255,255,.6) !important; }
.mfb-count {
  min-width: 20px; height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(27,77,62,.10);
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
}
.map-filter-btn.active .mfb-count { background: rgba(255,255,255,.2); color: #fff; }

/* Recherche commune dans la barre */
.map-search-wrap { position: relative; }
.map-search-wrap input {
  padding: 8px 16px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  width: 200px;
  transition: border-color var(--transition), width var(--transition);
}
.map-search-wrap input:focus { border-color: var(--green); width: 240px; }

/* Bouton localisation */
.map-locate-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--green-dark);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.map-locate-btn:hover { background: var(--green); }

/* Layout carte + sidebar */
.map-layout-wrap {
  display: flex;
  height: 560px;
  position: relative;
}

/* Sidebar liste */
.map-sidebar {
  width: 320px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width var(--transition), opacity var(--transition);
}
.map-sidebar.collapsed { width: 0; opacity: 0; pointer-events: none; }
.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 800;
  color: var(--text-muted);
  flex-shrink: 0;
}
.sidebar-close {
  font-size: 20px;
  color: var(--text-muted);
  line-height: 1;
  transition: color var(--transition);
}
.sidebar-close:hover { color: var(--text); }
.sidebar-list {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}
.sidebar-item:hover { background: var(--surface-alt); }
.sidebar-item.active { background: rgba(27,77,62,.07); border-left: 3px solid var(--green-dark); }
.si-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.si-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.si-commune { font-size: 12px; color: var(--text-muted); }

/* Conteneur carte Leaflet */
.map-container-outer {
  flex: 1;
  position: relative;
  height: 100%;
  min-height: 0;
}
#map {
  width: 100%;
  height: 100%;
  min-height: 560px;
  background: #e8f0e4;
}

/* Bouton toggle sidebar */
.sidebar-toggle-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}
.sidebar-toggle-btn:hover { background: var(--green-dark); color: #fff; box-shadow: var(--shadow); }

/* Note technique */
.map-tech-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  padding: 18px 0 28px;
}

/* ── POPUP LEAFLET PERSONNALISÉE ── */
.leaflet-popup-content-wrapper {
  border-radius: 16px !important;
  box-shadow: 0 12px 36px rgba(27,77,62,.22) !important;
  border: 1px solid rgba(27,77,62,.12) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: auto !important; min-width: 260px; }
.leaflet-popup-tip-container { margin-top: -1px; }

.lf-popup {
  padding: 18px 20px;
  font-family: 'Inter', system-ui, sans-serif;
}
.lf-popup-type {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.lf-popup-name {
  font-size: 16px;
  font-weight: 900;
  color: #1B4D3E;
  margin-bottom: 5px;
  line-height: 1.3;
}
.lf-popup-addr {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 5px;
}
.lf-popup-hours {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.lf-popup-divider {
  border: none;
  border-top: 1px solid rgba(27,77,62,.10);
  margin: 10px 0;
}
.lf-popup-accepts-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9CA3AF;
  margin-bottom: 7px;
}
.lf-popup-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.lf-popup-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(27,77,62,.08);
  color: #1B4D3E;
}
.lf-popup-maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #1B4D3E;
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
.lf-popup-maps-link:hover { background: #2E7D5A; }

/* ── MARQUEURS PERSONNALISÉS ── */
.custom-marker {
  width: 36px; height: 36px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  border: 2.5px solid rgba(255,255,255,.9);
  transition: transform .15s;
}
.custom-marker-inner {
  transform: rotate(45deg);
  font-size: 16px;
  line-height: 1;
}
.cm-decheterie { background: #c0392b; }
.cm-verre      { background: #2980b9; }
.cm-compost    { background: #27ae60; }
.cm-textile    { background: #8e44ad; }
.cm-piles      { background: #e67e22; }

/* Cluster personnalisé */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large { background: transparent !important; }
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: #1B4D3E !important;
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 13px;
}

/* Note technique */
.map-note { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* ── STAT BAR (cartes problème) ── */
.card-stat-bar {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(27,77,62,.07);
  border-left: 3px solid var(--green);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.card-stat-bar strong {
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 900;
  display: inline;
}
.card-stat-bar span { font-size: 11px; opacity: .75; }
[data-theme="dark"] .card-stat-bar { background: rgba(111,191,115,.1); border-color: var(--green-light); }
[data-theme="dark"] .card-stat-bar strong { color: var(--green-light); }

/* ── SECTION IMPACT CHIFFRÉ ── */
.ic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.ic-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ic-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }

.ic-eco { background: var(--surface); border-top: 4px solid #e67e22; }
.ic-green { background: var(--surface); border-top: 4px solid var(--green); }

.ic-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.ic-number {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
[data-theme="dark"] .ic-number { color: var(--text); }
.ic-eco .ic-number { color: #c0612b; }
[data-theme="dark"] .ic-eco .ic-number { color: #e6a97c; }

.ic-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}
.ic-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.ic-detail strong { color: var(--text); font-weight: 700; }

.ic-source {
  text-align: center;
  font-size: 12px;
  color: var(--text-light);
  padding: 16px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

/* ── KPI DASHBOARD ── */
.kpi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.kpi-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.kpi-icon { font-size: 32px; margin-bottom: 14px; }
.kpi-value {
  font-size: 46px;
  font-weight: 900;
  color: var(--green-dark);
  line-height: 1;
}
[data-theme="dark"] .kpi-value { color: var(--text); }
.kpi-unit { font-size: 13px; color: var(--green); font-weight: 700; margin: 4px 0; }
.kpi-label { font-size: 14px; color: var(--text-muted); margin-top: 6px; }

/* ── IMPACT ── */
.impact-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.impact-left h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--green-dark);
  margin-bottom: 16px;
}
[data-theme="dark"] .impact-left h2 { color: var(--text); }
.impact-left p { color: var(--text-muted); font-size: 16px; }

.impact-list {
  display: grid;
  gap: 16px;
}
.impact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition);
}
.impact-list li:hover { transform: translateX(6px); }
.impact-check {
  width: 28px; height: 28px;
  background: rgba(27,77,62,.10);
  color: var(--green-dark);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  flex-shrink: 0;
}
[data-theme="dark"] .impact-check { background: rgba(111,191,115,.2); color: var(--green-light); }
.impact-list strong { display: block; font-size: 15px; color: var(--green-dark); margin-bottom: 3px; }
[data-theme="dark"] .impact-list strong { color: var(--text); }
.impact-list p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ── TIMELINE ── */
.timeline {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 0 0 36px 0;
  position: relative;
}
.timeline-num {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 14px rgba(27,77,62,.25);
}
.timeline-body {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex: 1;
}
.timeline-body h3 { font-size: 18px; font-weight: 800; color: var(--green-dark); margin-bottom: 8px; }
[data-theme="dark"] .timeline-body h3 { color: var(--text); }
.timeline-body p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.timeline-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.timeline-status.active { background: rgba(27,77,62,.10); color: var(--green-dark); border-color: rgba(27,77,62,.2); }
.timeline-status.done  { background: rgba(27,77,62,.90); color: #fff; border-color: transparent; }
[data-theme="dark"] .timeline-status.done { background: var(--green); }

.timeline-num.done { background: var(--green); font-size: 20px; }

/* ── CTA ── */
.section-cta { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  border-radius: var(--radius-xl);
  padding: 72px 60px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 60px;
}
.cta-box::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(200,227,48,.10);
  right: -100px; top: -100px;
}
.cta-content { position: relative; z-index: 2; }
.cta-box h2 {
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: -2px;
  margin: 16px 0 14px;
}
.cta-box p { font-size: 17px; color: rgba(255,255,255,.78); max-width: 640px; margin-inline: auto 0; margin-bottom: 34px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Formulaire */
.contact-form-wrap {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 760px;
  margin-inline: auto;
}
.contact-form-wrap h3 {
  font-size: 26px;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 6px;
}
[data-theme="dark"] .contact-form-wrap h3 { color: var(--text); }
.form-note { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 7px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; }
.form-success {
  margin-top: 18px;
  padding: 16px 20px;
  background: rgba(27,77,62,.08);
  border: 1px solid rgba(27,77,62,.18);
  border-radius: var(--radius);
  color: var(--green-dark);
  font-weight: 600;
}
[data-theme="dark"] .form-success { color: var(--green-light); background: rgba(111,191,115,.1); }

/* ── FOOTER ── */
.footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.8);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.footer-logo strong { font-weight: 900; }
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,.45); }

/* ── BACK TO TOP / THEME TOGGLE ── */
.back-to-top,
.theme-toggle {
  position: fixed;
  z-index: 300;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: opacity var(--transition), transform var(--transition);
  font-size: 18px;
}
.back-to-top {
  bottom: 24px; right: 24px;
  background: var(--green-dark);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-4px); }

.theme-toggle {
  bottom: 76px; right: 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  color: var(--text);
}
.theme-toggle:hover { transform: scale(1.1); }

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

@media (max-width: 1100px) {
  .nav-burger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 0;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  [data-theme="dark"] .nav-links { background: #141d18; }
  .nav-links.open { display: flex; }
  .nav-links a { border-radius: 0; width: 100%; padding: 12px 24px; font-size: 14px; }
  .navbar { position: relative; }
  .map-controls-bar { position: static; margin-top: 24px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { letter-spacing: -2px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cards-grid-3 { grid-template-columns: 1fr 1fr; }
  .impact-inner { grid-template-columns: 1fr; gap: 36px; }

  /* Carte responsive */
  .map-sidebar { width: 280px; }
  .map-layout-wrap { height: 500px; }
  .map-search-wrap input { width: 160px; }
  .map-search-wrap input:focus { width: 180px; }
}

@media (max-width: 700px) {
  /* Sidebar cachée par défaut sur mobile */
  .map-sidebar { position: absolute; z-index: 500; top: 0; left: 0; height: 100%; width: 280px; transform: translateX(-100%); transition: transform var(--transition); }
  .map-sidebar.mobile-open { transform: translateX(0); }
  .map-layout-wrap { height: 440px; }
  .map-controls-inner { gap: 8px; }
  .map-filters { gap: 6px; }
  .map-filter-btn { padding: 6px 10px; font-size: 12px; }
  .mfb-count { display: none; }
  .map-search-wrap { display: none; }
}

@media (max-width: 620px) {
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 60px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cards-grid-3,
  .cards-grid-4 { grid-template-columns: 1fr; }
  .ic-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 24px; border-radius: var(--radius-lg); }
  .cta-actions { flex-direction: column; align-items: center; }
  .contact-form-wrap { padding: 28px 20px; }
  .timeline::before { left: 20px; }
  .timeline-num { width: 42px; height: 42px; font-size: 16px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .map-layout-wrap { height: 380px; }
}
