@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/*
Theme Name: Campagne Zakaria Waiss - CEPEO Zone 9
Theme URI: https://zakaria-waiss-cepeo.ca
Author: Équipe de Campagne Zakaria Iltireh Waiss
Author URI: https://zakaria-waiss-cepeo.ca
Description: Thème WordPress officiel moderne, percutant et interactif pour la campagne de Zakaria Iltireh Waiss, candidat au poste de Conseiller Scolaire pour le CEPEO (Zone 9 : Quartiers 14, 15, 17, 18 d'Ottawa). Intègre une carte interactive dynamique Leaflet, une boîte à idées citoyenne et des formulaires d'engagement.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: zakaria-cepeo
*/

/* --------------------------------------------------------------------------
   1. COLOR PALETTE & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', system-ui, sans-serif;

  /* Primary Theme Colors */
  --color-navy-950: #06152B;
  --color-navy-900: #0B2545;
  --color-navy-800: #133966;
  --color-navy-700: #1C4E8A;
  
  --color-emerald-950: #062817;
  --color-emerald-800: #1B5E20;
  --color-emerald-700: #1E7E34;
  --color-emerald-600: #16A34A;
  --color-emerald-500: #22C55E;
  --color-emerald-400: #4ADE80;
  
  --color-amber-500: #F59E0B;
  --color-amber-400: #FBBF24;
  --color-amber-300: #FCD34D;

  --color-slate-900: #0F172A;
  --color-slate-800: #1E293B;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748B;
  --color-slate-400: #94A3B8;
  --color-slate-300: #CBD5E1;
  --color-slate-200: #E2E8F0;
  --color-slate-100: #F1F5F9;
  --color-slate-50: #F8FAFC;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--color-slate-800);
  background-color: var(--color-slate-50);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.5;
}

.font-display {
  font-family: var(--font-display);
}

.bg-navy-950 { background-color: var(--color-navy-950); }
.bg-navy-900 { background-color: var(--color-navy-900); }
.bg-navy-800 { background-color: var(--color-navy-800); }
.text-navy-950 { color: var(--color-navy-950); }
.text-navy-900 { color: var(--color-navy-900); }
.text-navy-800 { color: var(--color-navy-800); }

.bg-emerald-950 { background-color: var(--color-emerald-950); }
.bg-emerald-800 { background-color: var(--color-emerald-800); }
.bg-emerald-700 { background-color: var(--color-emerald-700); }
.bg-emerald-600 { background-color: var(--color-emerald-600); }
.bg-emerald-500 { background-color: var(--color-emerald-500); }
.text-emerald-900 { color: #064e3b; }
.text-emerald-800 { color: var(--color-emerald-800); }
.text-emerald-700 { color: var(--color-emerald-700); }
.text-emerald-600 { color: var(--color-emerald-600); }
.text-emerald-400 { color: var(--color-emerald-400); }
.text-emerald-300 { color: #86efac; }
.text-emerald-200 { color: #bbf7d0; }

.bg-amber-400 { background-color: var(--color-amber-400); }
.bg-amber-500 { background-color: var(--color-amber-500); }
.text-amber-300 { color: var(--color-amber-300); }
.text-amber-400 { color: var(--color-amber-400); }
.text-amber-500 { color: var(--color-amber-500); }

.max-w-7xl { max-width: 80rem; }
.backdrop-blur-xs { backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.backdrop-blur-xl { backdrop-filter: blur(24px); }

.nav-link {
  position: relative;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-slate-700);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.nav-link:hover {
  color: var(--color-navy-950);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-emerald-600);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.btn-primary, .btn-secondary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
}

button {
  cursor: pointer;
}

#zone9-map {
  border-radius: 1.25rem;
  z-index: 10;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Custom Modern Map Pins */
.custom-modern-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.pin-body {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #065f46);
  border: 3px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.custom-modern-pin:hover .pin-body {
  transform: scale(1.25) translateY(-4px);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 12px 24px rgba(245, 158, 11, 0.5);
}

.custom-modern-pin.marker-secondary .pin-body {
  background: linear-gradient(135deg, #4f46e5, #1e1b4b);
}

.custom-modern-pin.marker-secondary:hover .pin-body {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.pin-pulse {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.35);
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: 1;
}

.custom-modern-pin.marker-secondary .pin-pulse {
  background: rgba(79, 70, 229, 0.35);
}

.pin-label {
  margin-top: 5px;
  padding: 2px 8px;
  background: #0b2545;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 9999px;
  border: 1.5px solid #22c55e;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.02em;
  pointer-events: none;
}

.custom-modern-pin.marker-secondary .pin-label {
  border-color: #818cf8;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  80% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

.modern-ward-tooltip {
  background: rgba(255, 255, 255, 0.95) !important;
  color: #06152b !important;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(6, 21, 43, 0.15) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3) !important;
  padding: 8px 12px !important;
}

.leaflet-popup-content-wrapper {
  background: #ffffff !important;
  color: #0f172a !important;
  border-radius: 1.25rem !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.4) !important;
  padding: 8px !important;
}

.leaflet-popup-tip {
  background: #ffffff !important;
}

.ward-btn {
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.2s ease;
}

.ward-btn.active {
  background-color: var(--color-amber-400) !important;
  color: var(--color-navy-950) !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.modal.active {
  display: flex !important;
  opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   8. BILINGUAL LANGUAGE SWITCHER (FR / EN)
   -------------------------------------------------------------------------- */
.lang-switcher-container {
  display: inline-flex;
  align-items: center;
  background: rgba(11, 37, 69, 0.08);
  border: 1px solid rgba(11, 37, 69, 0.15);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  transition: all 0.25s ease;
}

.lang-btn {
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: var(--color-slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn:hover {
  color: var(--color-navy-950);
}

.lang-btn.active {
  background: var(--color-navy-900);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(11, 37, 69, 0.35);
}

.lang-switcher-container.dark-mode {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.lang-switcher-container.dark-mode .lang-btn {
  color: var(--color-slate-300);
}

.lang-switcher-container.dark-mode .lang-btn:hover {
  color: #ffffff;
}

.lang-switcher-container.dark-mode .lang-btn.active {
  background: var(--color-amber-400);
  color: var(--color-navy-950);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

