/* ============================================
   PANNEAU SOLAIRE ÉVREUX — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --primary: #0077B6;
  --primary-dark: #005A8C;
  --primary-light: #00A3E0;
  --secondary: #F59E0B;
  --secondary-dark: #D97706;
  --secondary-light: #FBBF24;
  --accent: #10B981;
  --accent-light: #34D399;
  --dark: #0F172A;
  --dark-700: #1E293B;
  --dark-600: #334155;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --white: #FFFFFF;
  --danger: #EF4444;
  --success: #10B981;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; }

/* ============ CONTAINER ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 20px; }

/* ============ NAV ============ */
.nav-wrapper {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,119,182,0.08);
  transition: var(--transition);
}
.nav-wrapper.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--dark);
}
.nav-logo svg { width: 36px; height: 36px; }
.nav-logo span { color: var(--secondary); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--dark-600);
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--secondary); border-radius: 2px; transition: var(--transition);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white) !important; padding: 10px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); color: var(--white) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-toggle span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--transition); }

/* ============ NAV DROPDOWN ============ */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 4px; cursor: pointer;
}
.nav-dropdown-trigger::after { display: none !important; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); border: 1px solid var(--gray-200);
  padding: 12px; min-width: 260px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}
.nav-dropdown-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--dark-600);
  transition: var(--transition); white-space: nowrap;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover {
  background: rgba(0,119,182,0.06); color: var(--primary);
}
.nav-dropdown-menu a i { color: var(--secondary); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #001D3D 0%, #003566 40%, #0077B6 100%);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.15); border: 1px solid rgba(245,158,11,0.3);
  color: var(--secondary-light); padding: 8px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 {
  font-size: 3.5rem; color: var(--white); margin-bottom: 20px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text { font-size: 1.15rem; color: rgba(255,255,255,0.8); margin-bottom: 36px; line-height: 1.8; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; }
.hero-stat {
  text-align: center; padding: 16px 20px;
  background: rgba(255,255,255,0.08); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--secondary); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.hero-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-image img { width: 100%; height: 450px; object-fit: cover; }
.hero-image-badge {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
  padding: 16px 20px; border-radius: var(--radius);
  display: flex; align-items: center; gap: 12px;
}
.hero-image-badge svg { width: 40px; height: 40px; color: var(--accent); flex-shrink: 0; }
.hero-image-badge-text strong { display: block; font-size: 0.95rem; color: var(--dark); }
.hero-image-badge-text span { font-size: 0.8rem; color: var(--gray-500); }

/* ============ THEMATIC HERO ============ */
.thematic-hero {
  padding: 20px 0 80px;
  background: linear-gradient(135deg, #001D3D 0%, #003566 40%, #0077B6 100%);
  color: var(--white);
}
.thematic-hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.thematic-hero h1 {
  font-size: 2.8rem; color: var(--white); margin-bottom: 20px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.thematic-hero h1 .highlight {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.thematic-hero .hero-image img { height: 380px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius); font-weight: 600;
  font-size: 1rem; cursor: pointer; border: none; transition: var(--transition);
  font-family: var(--font-main);
}
.btn-primary {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.4); color: var(--white); }
.btn-secondary {
  background: rgba(255,255,255,0.1); color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); color: var(--white); }
.btn-outline {
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ SECTIONS ============ */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}
.section-label svg { width: 18px; height: 18px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; color: var(--dark); }
.section-header p { font-size: 1.1rem; color: var(--gray-500); max-width: 650px; margin: 0 auto; }

.bg-gradient { background: linear-gradient(180deg, var(--gray-100) 0%, var(--white) 100%); }
.bg-dark {
  background: linear-gradient(135deg, #001D3D, #003566);
  color: var(--white);
}
.bg-dark h2, .bg-dark h3 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.8); }
.bg-dark .section-label { color: var(--secondary); }

/* ============ CARDS ============ */
.card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  box-shadow: var(--shadow); border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(0,119,182,0.05));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--primary);
}
.card-icon svg { width: 28px; height: 28px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ============ RELATED PAGE CARDS ============ */
.related-page-card {
  display: block; background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; border: 2px solid var(--gray-200);
  transition: var(--transition); color: var(--dark);
}
.related-page-card:hover {
  border-color: var(--primary); transform: translateY(-4px);
  box-shadow: var(--shadow-lg); color: var(--dark);
}
.related-page-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.05));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--secondary);
}
.related-page-icon svg { width: 28px; height: 28px; }
.related-page-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.related-page-card p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; line-height: 1.6; }

/* ============ SOLUTIONS PRO CARDS (Homepage) ============ */
.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.solution-card {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 28px 16px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200); transition: var(--transition);
  color: var(--dark);
}
.solution-card:hover {
  border-color: var(--secondary); transform: translateY(-6px);
  box-shadow: var(--shadow-lg); color: var(--dark);
}
.solution-card-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(0,119,182,0.1), rgba(245,158,11,0.1));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--primary);
  transition: var(--transition);
}
.solution-card:hover .solution-card-icon { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--white); }
.solution-card-icon svg { width: 28px; height: 28px; }
.solution-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.solution-card p { font-size: 0.8rem; color: var(--gray-500); }

/* ============ THEMATIC TABLE ============ */
.thematic-table { width: 100%; border-collapse: collapse; }
.thematic-table tr { border-bottom: 1px solid var(--gray-200); }
.thematic-table tr:last-child { border-bottom: 2px solid var(--secondary); }
.thematic-table td { padding: 14px 0; }
.thematic-table td:first-child { font-weight: 500; color: var(--dark-600); }
.thematic-table td:last-child { text-align: right; font-weight: 700; color: var(--primary); font-family: var(--font-display); }
.thematic-table tr:last-child td:last-child { color: var(--secondary); font-size: 1.1rem; }

/* ============ CADASTRE TOOL ============ */
.cadastre-tool {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-xl); padding: 40px;
  backdrop-filter: blur(10px);
}
.cadastre-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px;
}
.cadastre-tool .sim-field label { color: rgba(255,255,255,0.9); }
.cadastre-tool .sim-field input[type="text"],
.cadastre-tool .sim-field select {
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2);
  color: var(--white);
}
.cadastre-tool .sim-field input[type="text"]::placeholder { color: rgba(255,255,255,0.4); }
.cadastre-tool .sim-field input[type="text"]:focus,
.cadastre-tool .sim-field select:focus {
  border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(245,158,11,0.2);
}
.cadastre-tool .sim-field select option { background: var(--dark); color: var(--white); }
.cadastre-tool .sim-value { color: var(--secondary-light); }

.cadastre-suggestions {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); z-index: 50;
  display: none; max-height: 200px; overflow-y: auto;
}
.cadastre-suggestion {
  padding: 10px 16px; cursor: pointer; font-size: 0.9rem;
  color: var(--dark); transition: var(--transition);
}
.cadastre-suggestion:hover { background: var(--gray-100); color: var(--primary); }
.cadastre-tool .sim-field { position: relative; }

/* ============ SIMULATOR ============ */
.simulator {
  background: var(--white); border-radius: var(--radius-xl); padding: 48px;
  box-shadow: var(--shadow-lg); border: 2px solid var(--gray-200);
  position: relative; overflow: hidden;
}
.simulator::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.08), transparent 70%);
  border-radius: 50%;
}
.simulator h3 { font-size: 1.5rem; margin-bottom: 32px; }
.sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
.sim-field label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--dark-600);
  margin-bottom: 8px;
}
.sim-field select,
.sim-field input[type="range"],
.sim-field input[type="number"],
.sim-field input[type="text"] {
  width: 100%; padding: 12px 16px; border: 2px solid var(--gray-200);
  border-radius: var(--radius); font-size: 1rem; font-family: var(--font-main);
  background: var(--gray-100); color: var(--dark); transition: var(--transition);
}
.sim-field select:focus,
.sim-field input:focus {
  border-color: var(--primary); outline: none;
  box-shadow: 0 0 0 4px rgba(0,119,182,0.1);
}
.sim-field input[type="range"] {
  -webkit-appearance: none; height: 8px; border-radius: 4px; padding: 0;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
}
.sim-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.15); cursor: pointer;
}
.sim-value { font-size: 0.9rem; color: var(--primary); font-weight: 600; margin-top: 4px; }
.sim-result {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); padding: 32px; color: var(--white);
  text-align: center;
}
.sim-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.sim-result-item h4 { font-size: 2rem; color: var(--secondary-light); }
.sim-result-item p { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }
.sim-btn {
  width: 100%; padding: 16px; margin-top: 24px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white); border: none; border-radius: var(--radius);
  font-size: 1.1rem; font-weight: 700; cursor: pointer;
  font-family: var(--font-main); transition: var(--transition);
}
.sim-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245,158,11,0.4); }

/* ============ CITIES GRID ============ */
.cities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.city-card {
  display: flex; align-items: center; gap: 12px; padding: 16px 20px;
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-200);
  transition: var(--transition); color: var(--dark);
}
.city-card:hover {
  border-color: var(--primary); background: rgba(0,119,182,0.03);
  transform: translateX(4px); color: var(--primary);
}
.city-card svg { width: 18px; height: 18px; color: var(--secondary); flex-shrink: 0; }
.city-card span { font-weight: 500; font-size: 0.9rem; }
.city-card .city-zip { font-size: 0.75rem; color: var(--gray-400); margin-left: auto; }

/* ============ INSTALLATEUR CARDS ============ */
.installateur-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 28px;
  border: 1px solid var(--gray-200); transition: var(--transition);
}
.installateur-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.installateur-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.installateur-avatar {
  width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.2rem;
}
.installateur-name { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.installateur-location { font-size: 0.85rem; color: var(--gray-500); display: flex; align-items: center; gap: 4px; }
.installateur-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.installateur-rating .stars { color: var(--secondary); display: flex; gap: 2px; }
.installateur-rating .stars svg { width: 16px; height: 16px; }
.installateur-rating span { font-size: 0.85rem; color: var(--gray-500); }
.installateur-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.installateur-badge {
  font-size: 0.7rem; font-weight: 600; padding: 4px 10px; border-radius: 50px;
  background: rgba(16,185,129,0.1); color: var(--accent);
}
.installateur-desc { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; line-height: 1.6; }
.installateur-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-weight: 600; font-size: 0.9rem;
}
.installateur-link:hover { gap: 10px; }

/* ============ LEADRS FORM ============ */
.leadrs-section { background: linear-gradient(135deg, #001D3D, #003566); padding: 80px 0; }
.leadrs-wrapper {
  max-width: 700px; margin: 0 auto; background: var(--white);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.leadrs-wrapper iframe { width: 100%; height: 1000px; border: none; }

/* ============ FAQ ============ */
.faq-item {
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden; background: var(--white);
}
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; font-weight: 600;
  font-size: 1rem; color: var(--dark); background: none; border: none;
  width: 100%; text-align: left; font-family: var(--font-main);
  transition: var(--transition);
}
.faq-question:hover { background: var(--gray-100); }
.faq-question svg { width: 20px; height: 20px; color: var(--primary); transition: var(--transition); flex-shrink: 0; }
.faq-question.active svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease;
  padding: 0 24px; color: var(--gray-500); line-height: 1.8;
}
.faq-answer.open { max-height: 500px; padding: 0 24px 20px; }

/* ============ BREADCRUMB ============ */
.breadcrumb {
  padding: 16px 0; font-size: 0.85rem; color: var(--gray-400);
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ============ PAGINATION ============ */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem; transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.pagination a { color: var(--dark-600); background: var(--white); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .active {
  background: var(--primary); color: var(--white); border-color: var(--primary);
}

/* ============ SEARCH ============ */
.search-bar {
  display: flex; gap: 12px; margin-bottom: 32px;
  background: var(--white); padding: 8px; border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200); box-shadow: var(--shadow);
}
.search-bar input {
  flex: 1; padding: 14px 20px; border: none; font-size: 1rem;
  font-family: var(--font-main); background: transparent; color: var(--dark);
}
.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--gray-400); }
.search-bar button {
  padding: 14px 28px; border: none; border-radius: var(--radius);
  background: var(--primary); color: var(--white); font-weight: 600;
  font-family: var(--font-main); cursor: pointer; transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

.alpha-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; justify-content: center; }
.alpha-filter a {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); font-weight: 600; font-size: 0.85rem;
  color: var(--dark-600); border: 1px solid var(--gray-200); transition: var(--transition);
}
.alpha-filter a:hover, .alpha-filter a.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ============ VILLE PAGE ============ */
.ville-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #001D3D 0%, #003566 40%, #0077B6 100%);
  color: var(--white);
}
.ville-hero h1 { font-size: 2.8rem; margin-bottom: 16px; }
.ville-hero p { font-size: 1.1rem; opacity: 0.85; max-width: 700px; }
.ville-stats { display: flex; gap: 24px; margin-top: 32px; flex-wrap: wrap; }
.ville-stat {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px;
  background: rgba(255,255,255,0.1); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
}
.ville-stat svg { width: 22px; height: 22px; color: var(--secondary); }
.ville-stat strong { color: var(--secondary); }

.content-section h2 { font-size: 2rem; margin-bottom: 20px; }
.content-section h3 { font-size: 1.4rem; margin-bottom: 16px; }
.content-section p { margin-bottom: 16px; color: var(--dark-600); }
.content-section ul { margin-bottom: 16px; }
.content-section ul li {
  padding: 8px 0 8px 28px; position: relative; color: var(--dark-600);
}
.content-section ul li::before {
  content: ''; position: absolute; left: 0; top: 16px; width: 8px; height: 8px;
  background: var(--secondary); border-radius: 50%;
}

/* ============ AIDES ============ */
.aide-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 32px;
  border-left: 4px solid var(--secondary); box-shadow: var(--shadow);
  transition: var(--transition);
}
.aide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.aide-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.aide-amount {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 800;
  color: var(--accent); margin-bottom: 8px;
}
.aide-card p { font-size: 0.95rem; color: var(--gray-500); }

/* ============ STICKY FOOTER CTA ============ */
.sticky-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%); transition: var(--transition);
}
.sticky-footer.visible { transform: translateY(0); }
.sticky-footer p { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.sticky-footer .btn {
  background: var(--white); color: var(--secondary-dark);
  padding: 10px 24px; font-size: 0.9rem;
}
.sticky-footer .btn:hover { transform: translateY(-2px); }

/* ============ EXIT POPUP ============ */
.exit-popup-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10000;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.exit-popup-overlay.active { display: flex; }
.exit-popup {
  background: var(--white); border-radius: var(--radius-xl); padding: 48px;
  max-width: 520px; width: 100%; text-align: center; position: relative;
  box-shadow: var(--shadow-xl); animation: popIn 0.4s ease;
}
@keyframes popIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.exit-popup-close {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px;
  border-radius: 50%; border: none; background: var(--gray-100);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); color: var(--dark);
}
.exit-popup-close:hover { background: var(--gray-200); }
.exit-popup h3 { font-size: 1.6rem; margin-bottom: 12px; }
.exit-popup p { color: var(--gray-500); margin-bottom: 24px; }
.exit-popup .btn { width: 100%; justify-content: center; }

/* ============ FOOTER ============ */
.footer {
  background: var(--dark); color: rgba(255,255,255,0.7);
  padding: 80px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-top: 16px; }
.footer-links a { display: block; padding: 6px 0; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-links a:hover { color: var(--secondary); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--secondary); }

/* ============ REVEAL ANIMATIONS ============ */
.reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }

/* ============ 404 ============ */
.page-404 {
  min-height: 80vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: 100px;
}
.page-404 h1 { font-size: 8rem; color: var(--primary); opacity: 0.2; }
.page-404 h2 { font-size: 2rem; margin-bottom: 16px; }
.page-404 p { color: var(--gray-500); margin-bottom: 32px; }

/* ============ DEVIS PAGE ============ */
.devis-page { padding: 140px 0 80px; background: var(--gray-100); min-height: 100vh; }
.devis-page h1 { text-align: center; font-size: 2.5rem; margin-bottom: 16px; }
.devis-page .subtitle { text-align: center; color: var(--gray-500); font-size: 1.1rem; margin-bottom: 40px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
  .section-header h2 { font-size: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .simulator { padding: 32px; }
  .sim-result-grid { grid-template-columns: 1fr; gap: 12px; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .thematic-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .thematic-hero .hero-image { display: none; }
  .cadastre-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--white);
    padding: 24px; gap: 16px; box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }
  .nav-toggle { display: flex; }
  .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    pointer-events: auto; box-shadow: none; border: none;
    padding: 0 0 0 16px; min-width: auto; display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; gap: 4px; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-image { display: none; }
  .hero-stats { gap: 16px; }
  .hero-stat { flex: 1; min-width: 100px; }
  .section-header h2 { font-size: 1.7rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: 1fr 1fr; }
  .sim-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .ville-hero h1 { font-size: 2rem; }
  .ville-stats { flex-direction: column; }
  .sticky-footer { flex-direction: column; gap: 8px; padding: 10px 16px; }
  .sticky-footer p { font-size: 0.85rem; }
  body { padding-bottom: 80px; }
  .exit-popup { padding: 32px 24px; }
  .exit-popup h3 { font-size: 1.3rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; justify-content: center; }
  .aide-card { padding: 24px; }
  .aide-amount { font-size: 1.4rem; }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .solution-card { padding: 20px 12px; }
  .thematic-hero h1 { font-size: 2rem; }
  .cadastre-tool { padding: 24px; }
  .sim-result-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-stats { flex-direction: column; }
  .cities-grid { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar button { width: 100%; }
  .alpha-filter a { width: 30px; height: 30px; font-size: 0.75rem; }
  .solutions-grid { grid-template-columns: 1fr; }
}