:root {
  --navy: #1B2360;
  --navy-deep: #10173F;
  --navy-mid: #2E3A85;
  --cream: #FFFCF1;
  --cream-soft: #FBF6E3;
  --yellow: #FFDD15;
  --yellow-hover: #FFE85A;
  --coral: #FF6B5C;
  --blue: #4A90E2;
  --green: #00C896;
  --ink: #0E1130;
  --gray-700: #4A5072;
  --gray-500: #8087A8;
  --gray-300: #D2D5E2;
  --gray-100: #EEF0F7;
  --danger: #E5484D;
  --font-display: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Geist', system-ui, sans-serif;
  --font-mono: 'Geist Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--blue); }
button { font-family: inherit; }
::selection { background: var(--yellow); }
img { max-width: 100%; display: block; }

.container { padding-left: clamp(16px, 4vw, 56px); padding-right: clamp(16px, 4vw, 56px); }

/* Quick exit */
.quick-exit {
  position: fixed; top: 16px; right: 16px; z-index: 200;
  display: flex; align-items: center; gap: 7px; white-space: nowrap;
  background: #FFFFFF; border: 1px solid var(--gray-300); border-radius: 999px;
  padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--gray-700);
  box-shadow: 0 4px 14px rgba(14,17,48,0.10); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.quick-exit:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(14,17,48,0.16); color: var(--danger); }
.quick-exit__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--danger); flex: none; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px clamp(16px, 4vw, 56px); padding-right: clamp(150px, 20vw, 220px);
  background: var(--cream); border-bottom: 1px solid var(--gray-100);
  position: sticky; top: 0; z-index: 150;
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--navy); color: var(--yellow);
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 17px;
}
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--navy); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-link {
  padding: 9px 16px; border-radius: 999px; border: none; background: transparent;
  color: var(--gray-700); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-link.is-active { background: var(--navy); color: var(--yellow); }

/* Hero */
.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 40px; align-items: center;
  padding: 56px clamp(16px, 4vw, 56px) 40px; background: var(--navy); color: var(--cream);
}
.hero-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--yellow); background: rgba(255,221,21,0.12); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(32px, 5vw, 52px); line-height: 1.35;
  letter-spacing: -0.02em; margin: 0 0 18px;
}
.hero h1 mark {
  color: var(--navy); background: var(--yellow); padding: 0.05em 0.15em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.hero p { font-size: 18px; line-height: 1.5; color: var(--gray-300); max-width: 560px; margin: 0 0 28px; }
.hero-search {
  display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; background: #fff; border-radius: 14px; padding: 6px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
.hero-search input {
  flex: 1; min-width: 180px; padding: 12px 14px; border-radius: 9px; border: none; font-size: 16px;
  background: transparent; color: var(--ink); outline: none; font-family: inherit;
}
.hero-search input:focus { background: var(--gray-100); }
.hero-search button {
  padding: 12px 24px; border-radius: 9px; border: none; background: var(--yellow); color: var(--navy);
  font-weight: 700; font-size: 16px; cursor: pointer; transition: background 0.15s ease;
}
.hero-search button:hover { background: var(--yellow-hover); }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--gray-300); }
.hero-photo { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; background: var(--navy-mid); box-shadow: 0 24px 60px rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Urgency banner */
.urg-banner {
  padding: 64px clamp(16px, 4vw, 56px); background: var(--coral); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.urg-banner__title { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin-bottom: 6px; }
.urg-banner__sub { font-size: 15px; color: #FFF0EE; }
.btn-outline {
  padding: 14px 24px; border-radius: 12px; border: 2px solid var(--cream); background: transparent; color: var(--cream);
  font-weight: 700; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background 0.15s ease, color 0.15s ease;
}
.btn-outline:hover { background: var(--cream); color: var(--coral); }

/* Section */
.section { padding: 72px clamp(16px, 4vw, 56px); }
.section--soft { background: var(--cream-soft); }
.section h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 34px); margin: 0 0 8px; color: var(--navy); }
.section > p { font-size: 16px; color: var(--gray-700); margin: 0 0 32px; max-width: 640px; }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.service-card { background: var(--gray-100); border-radius: 18px; padding: 24px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(14,17,48,0.10); }
.service-card__icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px; display: grid; place-items: center; }
.service-card__title { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.service-card__desc { font-size: 14px; color: var(--gray-700); line-height: 1.4; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.step-num { font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--yellow); -webkit-text-stroke: 1.5px var(--navy); margin-bottom: 10px; }
.step-title { font-weight: 700; font-size: 17px; margin-bottom: 6px; color: var(--navy); }
.step-desc { font-size: 14px; color: var(--gray-700); line-height: 1.5; }

/* Partners */
.partners { padding: 56px clamp(16px, 4vw, 56px); text-align: center; }
.partners-label { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 18px; }
.partners-list { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pill { padding: 10px 18px; border-radius: 999px; background: var(--gray-100); font-size: 14px; font-weight: 600; color: var(--navy); }

/* Directory */
.directory { padding: 32px clamp(16px, 4vw, 56px) 72px; }
.directory h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; color: var(--navy); }
.directory > p.results-count { font-size: 15px; color: var(--gray-700); margin: 0 0 20px; }
.search-input {
  width: 100%; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--gray-300); font-size: 15px;
  margin-bottom: 18px; background: #fff; color: var(--ink); font-family: inherit;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-row--scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.chip-row--scroll .chip { flex: none; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gray-300); background: #fff; color: var(--gray-700);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.chip.is-active { border: none; color: #fff; box-shadow: 0 4px 12px rgba(27,35,96,0.18); }

.directory-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 28px; align-items: start; margin-top: 28px; }
.map-panel { border-radius: 20px; overflow: hidden; border: 1px solid var(--gray-300); height: 420px; position: sticky; top: 96px; }
.results-list { display: flex; flex-direction: column; gap: 14px; }

.result-card {
  background: #fff; border: 1px solid var(--gray-100); border-radius: 16px; padding: 20px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.result-card:hover { border-color: var(--blue); box-shadow: 0 10px 26px rgba(14,17,48,0.10); transform: translateY(-2px); }
.result-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.result-card__name { font-weight: 700; font-size: 17px; color: var(--navy); }
.result-card__meta { font-size: 13px; color: var(--gray-500); margin-bottom: 10px; }
.chip-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--gray-100); color: var(--gray-700); }

.badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge--lg { font-size: 13px; padding: 6px 14px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--gray-500); font-size: 15px; }
.empty-state a { cursor: pointer; }

/* Detail */
.detail { padding: 32px clamp(16px, 4vw, 56px) 72px; max-width: 760px; margin: 0 auto; }
.detail-back { background: none; border: none; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 20px; transition: opacity 0.15s ease; }
.detail-back:hover { opacity: 0.7; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.detail-head h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); margin: 0; color: var(--navy); }
.detail-address { font-size: 15px; color: var(--gray-700); margin-bottom: 24px; }
.detail-note { background: var(--gray-100); border-radius: 16px; padding: 18px 22px; display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.detail-note__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.detail-note__text { font-size: 14px; color: var(--navy); font-weight: 600; }
.detail-desc { font-size: 16px; line-height: 1.6; color: var(--ink); margin-bottom: 28px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 28px; }
.detail-grid__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); margin-bottom: 6px; }
.detail-grid__value { font-size: 15px; color: var(--ink); font-weight: 600; }
.detail-services { margin-bottom: 28px; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  padding: 15px 24px; border-radius: 12px; background: var(--navy); color: var(--yellow); font-weight: 700; font-size: 15px;
  transition: transform 0.15s ease; border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); color: var(--yellow); }
.btn-secondary {
  padding: 15px 24px; border-radius: 12px; border: 1px solid var(--gray-300); background: #fff; color: var(--navy);
  font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color 0.15s ease;
}
.btn-secondary:hover { border-color: var(--navy); }

/* Urgence */
.urgence-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.urgence-item {
  display: flex; justify-content: space-between; align-items: center; border-radius: 16px; padding: 20px 24px;
  transition: transform 0.15s ease, box-shadow 0.15s ease; background: #fff; border: 1px solid var(--gray-300); color: var(--ink);
}
.urgence-item:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14,17,48,0.12); }
.urgence-item__label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 4px; }
.urgence-item__desc { font-size: 14px; color: var(--gray-700); }
.urgence-item__number { font-family: var(--font-mono); font-weight: 700; font-size: 17px; color: var(--navy); white-space: nowrap; margin-left: 16px; }
.urgence-steps { background: var(--cream-soft); border-radius: 16px; padding: 22px 24px; margin-bottom: 24px; }
.urgence-steps__title { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 12px; }
.urgence-steps ol { margin: 0; padding-left: 20px; font-size: 14px; color: var(--gray-700); line-height: 1.7; }
.urgence-note { background: var(--cream-soft); border-radius: 16px; padding: 22px 24px; }
.urgence-note__title { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 8px; }
.urgence-note__text { font-size: 14px; color: var(--gray-700); line-height: 1.6; }

/* Leaflet popup */
.vz-popup { font-family: var(--font-body); }
.vz-popup b { display: block; font-size: 14px; margin-bottom: 2px; color: var(--navy); }
.vz-popup span { font-size: 12px; color: var(--gray-700); }
.vz-popup button {
  margin-top: 6px; background: var(--navy); color: var(--yellow); border: none; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.leaflet-popup-content-wrapper { border-radius: 12px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--gray-300); padding: 48px clamp(16px, 4vw, 56px) 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--cream); margin-bottom: 10px; }
.footer-title { font-weight: 700; font-size: 14px; color: var(--cream); margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links a { color: var(--gray-300); cursor: pointer; }
.footer-links a:hover { color: var(--cream); }
.site-footer p { font-size: 14px; line-height: 1.6; margin: 0; }
.footer-bottom { border-top: 1px solid var(--navy-mid); padding-top: 20px; font-size: 13px; color: var(--gray-500); }

@media (max-width: 640px) {
  .site-header { padding-right: clamp(16px, 4vw, 56px); }
  .quick-exit__label { display: none; }
}
