/* ============================================================
   Halte Nuisibles — Sites Niches — Shared CSS
   Mobile-first, one-pager landing page
   ============================================================ */

:root {
  --hn-green-dark: #0E3022;
  --hn-green: #5CA444;
  --hn-green-light: #e8f5e3;
  --hn-white: #FFFFFF;
  --hn-gray-50: #f9fafb;
  --hn-gray-100: #f3f4f6;
  --hn-gray-200: #e5e7eb;
  --hn-gray-400: #9ca3af;
  --hn-gray-600: #4b5563;
  --hn-gray-800: #1f2937;
  --hn-red: #dc2626;
  --hn-orange: #f59e0b;
  --hn-radius: 8px;
  --hn-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --hn-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--hn-gray-800);
  line-height: 1.6;
  background: var(--hn-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--hn-green); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.header {
  background: var(--hn-white);
  border-bottom: 1px solid var(--hn-gray-200);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-logo img { height: 40px; width: auto; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-phone {
  font-weight: 700;
  color: var(--hn-green-dark);
  font-size: .95rem;
  white-space: nowrap;
}
.header-phone svg { vertical-align: middle; margin-right: 4px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--hn-radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  text-decoration: none;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--hn-shadow-lg); }
.btn-primary {
  background: var(--hn-green);
  color: var(--hn-white);
}
.btn-primary:hover { background: #4e9339; }
.btn-secondary {
  background: transparent;
  color: var(--hn-green);
  border: 2px solid var(--hn-green);
}
.btn-secondary:hover { background: var(--hn-green-light); }
.btn-white {
  background: var(--hn-white);
  color: var(--hn-green-dark);
}
.btn-white:hover { background: var(--hn-gray-100); }
.btn-sm { padding: 10px 20px; font-size: .9rem; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--hn-green-dark) 0%, #1a5c3a 100%);
  color: var(--hn-white);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent, rgba(14,48,34,.3));
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 16px;
  font-weight: 800;
}
.hero .subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  opacity: .92;
  margin-bottom: 28px;
  max-width: 640px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--hn-white);
  white-space: nowrap;
}
.badge svg { flex-shrink: 0; }

/* ── Sections ── */
section { padding: 56px 0; }
section:nth-child(even) { background: var(--hn-gray-50); }

.section-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--hn-green-dark);
  margin-bottom: 12px;
  font-weight: 800;
  line-height: 1.25;
}
.section-subtitle {
  color: var(--hn-gray-600);
  font-size: 1.05rem;
  margin-bottom: 32px;
  max-width: 640px;
}

/* ── Pain points ── */
.pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .pain-grid { grid-template-columns: 1fr 1fr; } }

.pain-card {
  background: var(--hn-white);
  border-radius: var(--hn-radius);
  padding: 24px;
  box-shadow: var(--hn-shadow);
  border-left: 4px solid var(--hn-red);
}
.pain-card h3 {
  font-size: 1rem;
  color: var(--hn-gray-800);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pain-card p { font-size: .92rem; color: var(--hn-gray-600); }
.pain-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: #fef2f2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}

/* ── Solution ── */
.solution-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 640px) { .solution-grid { grid-template-columns: 1fr 1fr; } }

.solution-card {
  background: var(--hn-white);
  border-radius: var(--hn-radius);
  padding: 24px;
  box-shadow: var(--hn-shadow);
  border-left: 4px solid var(--hn-green);
}
.solution-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.solution-card p { font-size: .92rem; color: var(--hn-gray-600); }
.check-icon { color: var(--hn-green); font-weight: 700; }

/* ── Simulator ── */
.simulator-wrapper {
  background: var(--hn-white);
  border-radius: var(--hn-radius);
  box-shadow: var(--hn-shadow-lg);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}
.simulator-wrapper h3 {
  font-size: 1.2rem;
  color: var(--hn-green-dark);
  margin-bottom: 24px;
  text-align: center;
}
.sim-field { margin-bottom: 20px; }
.sim-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 6px;
  color: var(--hn-gray-800);
}
.sim-field select,
.sim-field input[type="range"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hn-gray-200);
  border-radius: var(--hn-radius);
  font-size: .95rem;
  background: var(--hn-white);
  color: var(--hn-gray-800);
  appearance: auto;
}
.sim-field select:focus { outline: 2px solid var(--hn-green); border-color: var(--hn-green); }
.sim-range-value {
  text-align: center;
  font-weight: 600;
  color: var(--hn-green-dark);
  margin-top: 4px;
  font-size: .9rem;
}

.sim-result {
  display: none;
  background: var(--hn-green-light);
  border-radius: var(--hn-radius);
  padding: 24px;
  margin-top: 24px;
  text-align: center;
}
.sim-result.active { display: block; }
.sim-result .frequency {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hn-green-dark);
  margin-bottom: 8px;
}
.sim-result .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hn-green);
  margin-bottom: 8px;
}
.sim-result .reassurance {
  font-size: .88rem;
  color: var(--hn-gray-600);
  margin-bottom: 16px;
}

/* ── Trust / Certifications ── */
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 32px;
}
.trust-logos img { height: 56px; width: auto; filter: grayscale(20%); transition: filter .2s; }
.trust-logos img:hover { filter: grayscale(0%); }

.reviews-box {
  background: var(--hn-white);
  border-radius: var(--hn-radius);
  padding: 24px;
  box-shadow: var(--hn-shadow);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}
.stars { color: var(--hn-orange); font-size: 1.4rem; margin-bottom: 8px; }
.review-score { font-size: 1.1rem; font-weight: 700; color: var(--hn-green-dark); margin-bottom: 4px; }
.review-count { font-size: .85rem; color: var(--hn-gray-400); }

/* ── FAQ ── */
.faq-list { max-width: 700px; }
.faq-item {
  border-bottom: 1px solid var(--hn-gray-200);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--hn-gray-800);
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
}
.faq-question:hover { color: var(--hn-green); }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform .2s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer-inner {
  padding: 0 0 18px;
  font-size: .92rem;
  color: var(--hn-gray-600);
  line-height: 1.65;
}

/* ── Contact Form (modal) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--hn-white);
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--hn-gray-400);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal h3 {
  font-size: 1.2rem;
  color: var(--hn-green-dark);
  margin-bottom: 20px;
}
.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 4px;
  color: var(--hn-gray-800);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hn-gray-200);
  border-radius: var(--hn-radius);
  font-size: .95rem;
  font-family: inherit;
  background: var(--hn-white);
  color: var(--hn-gray-800);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--hn-green);
  border-color: var(--hn-green);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.form-success.active { display: block; }
.form-success svg { margin: 0 auto 12px; }
.form-success p { font-size: 1rem; color: var(--hn-green-dark); font-weight: 600; }
.form-success .sub { font-size: .88rem; color: var(--hn-gray-600); font-weight: 400; margin-top: 4px; }

/* ── CTA Footer ── */
.cta-footer {
  background: linear-gradient(135deg, var(--hn-green-dark) 0%, #1a5c3a 100%);
  color: var(--hn-white);
  padding: 56px 0;
  text-align: center;
}
.cta-footer h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 8px;
  font-weight: 800;
}
.cta-footer .urgency {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 24px;
}
.cta-footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}
.cta-footer .back-link {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-top: 20px;
  display: inline-block;
}
.cta-footer .back-link:hover { color: var(--hn-white); }

/* ── Sticky CTA mobile ── */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--hn-white);
  border-top: 1px solid var(--hn-gray-200);
  padding: 10px 16px;
  z-index: 90;
  box-shadow: 0 -4px 12px rgba(0,0,0,.1);
}
.sticky-cta .btn { width: 100%; text-align: center; }

@media (max-width: 768px) {
  .sticky-cta { display: block; }
  section { padding: 40px 0; }
  .hero { padding: 40px 0 36px; }
  body { padding-bottom: 70px; }
  .header-phone span { display: none; }
}

/* ── Urgency bar ── */
.urgency-bar {
  background: var(--hn-green);
  color: var(--hn-white);
  text-align: center;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
