:root {
  --primary: #F59E0B;
  --primary-dark: #D97706;
  --secondary: #059669;
  --secondary-dark: #047857;
  --dark: #111827;
  --dark-2: #1F2937;
  --dark-3: #374151;
  --gray: #6B7280;
  --light: #F9FAFB;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p { color: var(--gray); }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark-3);
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--dark);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,150,105,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, #FFFBEB 0%, #ECFDF5 100%);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.15);
  color: var(--primary-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }

.hero h1 em {
  font-style: normal;
  color: var(--primary-dark);
}

.hero-sub {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-3);
}

.trust-item svg { color: var(--secondary); }

/* ── FORM CARD ── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 36px;
  border: 1px solid var(--border);
}

.form-card h3 {
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.form-card p {
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-2);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--dark);
  transition: border-color 0.2s;
  background: var(--white);
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 1rem;
  padding: 16px;
}

.form-mention {
  text-align: center;
  font-size: 0.75rem;
  color: var(--gray);
  margin-top: 12px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--dark);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

/* ── HOW IT WORKS ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.step {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.step:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-number {
  width: 52px;
  height: 52px;
  background: var(--primary);
  color: var(--dark);
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step h3 { margin-bottom: 12px; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block;
  background: rgba(5,150,105,0.1);
  color: var(--secondary-dark);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ── AIDES SECTION ── */
.aides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.aide-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.aide-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.aide-card h3 { font-size: 1rem; margin-bottom: 8px; }
.aide-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 8px;
}

/* ── VILLES ── */
.villes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.ville-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.2s;
  text-align: center;
}

.ville-card:hover {
  border-color: var(--primary);
  background: #FFFBEB;
  transform: translateY(-2px);
}

.ville-card .ville-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.ville-name { font-weight: 700; font-size: 0.95rem; }
.ville-info { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 32px; font-size: 1.05rem; }

/* ── FAQ ── */
.faq-list { max-width: 720px; margin: 48px auto 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover { background: var(--light); }
.faq-question.active { color: var(--primary-dark); }

.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  color: var(--gray);
}

.faq-answer.open {
  padding: 0 24px 20px;
  max-height: 300px;
}

.faq-icon { transition: transform 0.3s; }
.faq-question.active .faq-icon { transform: rotate(45deg); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  border-top: 3px solid var(--primary);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 48px;
}

.footer-brand .footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-brand .footer-logo span { color: var(--primary); }

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 240px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.12);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
}

.footer-col-title {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 18px;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
  line-height: 1.4;
}

.footer-nav a:hover { color: var(--primary); }

.footer-nav .footer-nav-arrow {
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
  margin-left: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── VILLE PAGE SPECIFIC ── */
.hero-ville {
  background: linear-gradient(135deg, #FFFBEB 0%, #ECFDF5 100%);
  padding: 60px 0;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 20px;
  align-items: center;
}

.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray); }

.ville-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ensoleillement-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.ensoleillement-card h2 { margin-bottom: 16px; font-size: 0.9rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: 0.04em; }

.meteo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.meteo-item {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--light);
  text-align: center;
}

.meteo-value { font-size: 1.5rem; font-weight: 800; color: var(--dark); }
.meteo-label { font-size: 0.75rem; color: var(--gray); margin-top: 4px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .aides-grid { grid-template-columns: 1fr; }
  .villes-grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .ville-hero-grid { grid-template-columns: 1fr; }
}
