@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
  --navy: #0a1628;
  --navy2: #0f2040;
  --blue: #1a56db;
  --blue-light: #3b82f6;
  --accent: #f97316;
  --accent2: #ef4444;
  --gold: #f59e0b;
  --ok: #10b981;
  --light: #f0f4ff;
  --light2: #e8eef8;
  --ink: #0a1628;
  --muted: #5a6a8a;
  --border: #d1ddf0;
  --white: #ffffff;
  --maxw: 1100px;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(10,22,40,0.10);
  --shadow-lg: 0 12px 48px rgba(10,22,40,0.18);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* === UTILITY === */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.accent-text { color: var(--accent); }
.blue-text { color: var(--blue); }

/* === HEADER === */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  max-width: var(--maxw);
  margin: 0 auto;
  gap: 12px;
}
.logo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--accent); }
.logo-icon {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.site-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.site-nav .nav-cta {
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  padding: 8px 16px;
}
.site-nav .nav-cta:hover { background: #ea6c0a; }

/* === HERO === */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 50%, #132040 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,86,219,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.35);
  color: #fbbf7a;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.9;
  margin-bottom: 28px;
  line-height: 1.7;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.88);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  white-space: normal;
  word-break: break-word;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(249,115,22,0.4);
}
.btn-primary:hover { background: #ea6c0a; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(249,115,22,0.5); text-decoration: none; color: #fff; }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-secondary:hover { background: rgba(255,255,255,0.18); text-decoration: none; color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; text-decoration: none; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }

/* === FORM CARD === */
.form-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.form-card-header {
  background: var(--navy);
  color: #fff;
  margin: -28px -28px 24px;
  padding: 18px 28px;
  border-radius: 20px 20px 0 0;
  text-align: center;
}
.form-card-header .prime-amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.form-card-header p { font-size: 13px; opacity: 0.8; margin-top: 4px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  margin-top: 14px;
}
.form-label:first-of-type { margin-top: 0; }
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.form-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; }
.form-privacy { font-size: 11px; color: var(--muted); text-align: center; margin-top: 10px; }

/* === SECTIONS === */
.section { padding: 64px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: #fff; }
.section-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  margin-bottom: 40px;
  max-width: 600px;
}

/* === CARDS === */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card-icon-blue { background: rgba(26,86,219,0.1); }
.card-icon-orange { background: rgba(249,115,22,0.1); }
.card-icon-green { background: rgba(16,185,129,0.1); }
.card h3 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* === GRIDS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* === STATS BAR === */
.stats-bar {
  background: var(--accent);
  padding: 20px 0;
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.stat-item { text-align: center; color: #fff; }
.stat-number {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  display: block;
}
.stat-label { font-size: 13px; opacity: 0.88; margin-top: 4px; }

/* === HOW IT WORKS === */
.steps { display: flex; gap: 0; position: relative; }
.steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 28px; right: 28px;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 22px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(26,86,219,0.3);
}
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* === TESTIMONIALS === */
.testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}
.testimonial::before {
  content: '"';
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 64px;
  color: var(--accent);
  line-height: 1;
  position: absolute;
  top: 8px; left: 20px;
  opacity: 0.25;
}
.testimonial-text { font-size: 15px; line-height: 1.65; margin-bottom: 16px; color: var(--ink); padding-top: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 10px; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.author-name { font-weight: 700; font-size: 14px; }
.author-city { font-size: 13px; color: var(--muted); }
.stars { color: var(--gold); font-size: 14px; }

/* === FAQ === */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}
.faq-item summary {
  padding: 18px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--blue);
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 12px;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item summary:hover { background: var(--light); }
.faq-item[open] summary { background: var(--light); color: var(--blue); }
.faq-body { padding: 0 24px 20px; font-size: 15px; color: var(--muted); line-height: 1.7; }

/* === COMMUNES GRID === */
.communes-search-bar {
  width: 100%;
  max-width: 500px;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 28px;
  transition: border-color 0.2s;
}
.communes-search-bar:focus { outline: none; border-color: var(--blue); }
.communes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.commune-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all 0.2s;
  text-decoration: none;
}
.commune-link:hover {
  border-color: var(--blue);
  background: var(--light);
  color: var(--blue);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.commune-link .arrow { opacity: 0.4; font-size: 12px; }
.commune-link:hover .arrow { opacity: 1; }

/* === LOCAL INFO BOX (commune pages) === */
.hardness-bar-wrap { margin: 16px 0; }
.hardness-label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: flex; justify-content: space-between; }
.hardness-bar {
  height: 10px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.hardness-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ok), var(--gold), var(--accent), var(--accent2));
}
.info-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  margin: 4px 4px 4px 0;
}
.info-chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--accent2); }
.dot-orange { background: var(--accent); }
.dot-green { background: var(--ok); }

/* === BREADCRUMB === */
.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 6px; }

/* === BENEFITS LIST === */
.benefit-list { list-style: none; }
.benefit-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list .check {
  color: var(--ok);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* === TRUST STRIP === */
.trust-strip {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.trust-strip-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 40px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}
.trust-item .ti-icon { font-size: 18px; }

/* === FOOTER === */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.6; max-width: 260px; }
.footer-col h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  padding: 3px 0;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

/* === PRIME RIBBON (commune pages) === */
.prime-ribbon {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  border-radius: var(--radius);
  padding: 24px;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}
.prime-ribbon .amount {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.prime-ribbon .label { font-size: 14px; opacity: 0.8; margin-top: 4px; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 24px; }
  .steps::before { display: none; }
  .step { padding: 0; text-align: left; display: flex; gap: 16px; align-items: flex-start; }
  .step-num { flex-shrink: 0; margin: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-strip-inner { gap: 16px 28px; }
  .stats-inner { gap: 24px; }
  .header-inner { flex-wrap: nowrap; }
  .site-nav { display: none; }
  .site-nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); padding: 16px; }
  .menu-toggle { display: flex !important; }
  .section { padding: 48px 0; }
  .btn { white-space: normal; word-break: break-word; text-align: center; }
  .btn-lg { padding: 14px 20px; font-size: 15px; }
  .wrap { padding: 0 16px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 26px; }
  .btn-lg { padding: 14px 20px; font-size: 15px; }
  .form-card { padding: 20px; }
  .form-card-header { margin: -20px -20px 20px; padding: 14px 20px; }
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .header-inner { position: relative; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; font-size: 15px; }
}
