/* ============================================
   DERATISATION.FR — Stylesheet v2 (Amélioré)
   Design : Bleu marine + Ambre + Performance
   Mobile-first responsive
   ============================================ */

/* --- Font loading optimisé --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('https://fonts.gstatic.com/s/inter/v18/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIw2boKDuKmMg.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0a1628;
  --primary-light: #132244;
  --primary-lighter: #1c3058;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f1f5f9;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;
  --gray-600: #334155;
  --gray-700: #1e293b;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  /* Multi-layer shadows inspired by Stripe design system */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(50,50,93,0.15);
  --shadow-card: 0 1px 3px rgba(50,50,93,0.08), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-card-hover: 0 2px 8px rgba(50,50,93,0.10), 0 8px 28px rgba(0,0,0,0.08);
  --max-width: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-height: 72px;
}


/* --- Entrance fade-in on page load --- */

  to { opacity: 1; transform: translateY(0); }
}

/* --- Header scroll effects --- */
.header {
}



.solution-card:hover,
.trust-card:hover,
.price-card:hover,
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 4px 16px rgba(50,50,93,0.1) !important;
}

.zone-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* --- Stagger entrance delay --- */
.hero-badge:nth-child(1) { animation-delay: 0.1s; }
.hero-badge:nth-child(2) { animation-delay: 0.2s; }
.hero-badge:nth-child(3) { animation-delay: 0.3s; }
.hero-badge:nth-child(4) { animation-delay: 0.4s; }


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

/* Offset for fixed header on anchor scroll */
#devis, section[id] { scroll-margin-top: 80px; }

body {
  font-family: var(--font);
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container { padding: 0 32px; }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--gray-500); }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 600px;
  margin: -0.5rem auto 2.5rem;
  text-align: center;
}

.overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  line-height: 1;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--primary);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-hover), #b45309);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.25s ease;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); background: rgba(245,158,11,0.05); }

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

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

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav a:not(.btn):hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(10, 22, 40, 0.98);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; padding: 12px 14px; }
}

/* --- Hero Section --- */
.hero {
  min-height: 85vh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--primary-lighter) 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, rgba(10,22,40,0.82) 0%, rgba(19,34,68,0.78) 50%, rgba(28,48,88,0.85) 100%),
                    url('/images/hero-main.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  pointer-events: none;
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-content { max-width: 560px; }

.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 .highlight { color: var(--accent); }
.hero p { color: var(--gray-300); font-size: 1.1rem; margin-bottom: 1.5rem; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--gray-200);
}

.hero-badge .icon { color: var(--accent); font-weight: 700; }
.hero-badge .urgent { color: var(--danger); }

/* SVG inline icons */
.icn { display: inline-block; vertical-align: middle; width: 18px; height: 18px; margin-right: 4px; }
.hero-badge .icn { width: 16px; height: 16px; margin-right: 4px; }
.btn .icn { width: 18px; height: 18px; margin: -2px 4px 0 0; vertical-align: middle; }
.footer-links a .icn { width: 16px; height: 16px; margin-right: 6px; }
.contact-email { color: var(--accent); text-decoration: none; }
.contact-email:hover { text-decoration: underline; }

/* Pest icons in lists */
.pest-icon { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.step-arrow { width: 24px; height: 24px; display: block; margin: 0 auto; }

/* Connector arrows styling */
.step-connector { text-align: center; padding: 4px 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.hero-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-card h4 { color: var(--white); font-size: 0.9rem; margin: 8px 0 4px; }
.hero-card p { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin: 0; }
.hero-card-icon { font-size: 2rem; }
.hero-card-icon img,
.hero-card-icon .icon-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; border: 2px solid rgba(255,255,255,0.3); }

/* --- Stats Bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  margin-top: -60px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); padding: 24px; gap: 16px; }
}

.stat-item { text-align: center; }

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 6px;
  font-weight: 500;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-header .section-subtitle {
  color: var(--gray-500);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 16px auto 0;
}

/* --- Trust Section --- */
.trust-section {
  padding: 80px 0;
  background: var(--off-white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .trust-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

.trust-card {
  display: flex;
  gap: 16px;
  background: var(--white);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.trust-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--accent-light);
}

.trust-card h4 { margin-bottom: 6px; font-size: 1rem; color: var(--primary); }
.trust-card p { font-size: 0.9rem; margin: 0; color: var(--gray-500); line-height: 1.6; }

.trust-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(245,158,11,0.15);
}
.trust-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Statistiques locales sourcées (GEO : grounded facts + citations) ===== */
.stats-section {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr; }
}
.stat-card {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
  border-color: var(--accent-light);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat-card h4 { margin: 0; font-size: 1.05rem; color: var(--primary); }
.stat-card p { margin: 0; font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }
.stat-source { font-size: 0.78rem !important; color: var(--gray-400) !important; font-style: italic; border-top: 1px dashed var(--gray-200); padding-top: 8px; margin-top: 4px; }
.stats-footnote {
  margin-top: 28px;
  font-size: 0.82rem;
  color: var(--gray-400);
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* Trust photo banner */
.trust-photo-banner {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.trust-photo-banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.trust-photo-banner .photo-wrap {
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.trust-photo-banner .photo-wrap:hover img {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .trust-photo-banner {
    grid-template-columns: repeat(2, 1fr);
  }
  .trust-photo-banner img {
    height: 150px;
  }
}

/* --- Solutions Grid --- */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .solutions-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.solution-card-image {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  transition: transform 0.5s ease;
}

.solution-card:hover .solution-card-image {
  transform: scale(1.05);
}

.solution-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  pointer-events: none;
}

.solution-card-image .solution-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 20px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.solution-card-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: rgba(245,158,11,0.2);
}

.solution-icon { display: none; }

.solution-card-body h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.solution-card-body p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  flex: 1;
  color: var(--gray-600);
  line-height: 1.5;
}

.solution-price {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-hover);
  text-decoration: none;
}

.solution-link:hover {
  text-decoration: underline;
}

/* --- Pricing Section --- */
.pricing-section {
  padding: 80px 0;
  background: var(--off-white);
}

.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 2rem;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 4px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-tab {
  padding: 10px 24px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-500);
  transition: all 0.2s;
}

.pricing-tab.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* La note de bas de page tarifs s'étend sur toute la largeur de la grille,
   pour ne pas rester coincée dans une seule colonne à gauche. */
.pricing-grid .price-note {
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; }
  /* Confort mobile : cartes empilées avec un peu moins de padding,
     boutons/lignes plus aérés pour la lecture sur téléphone. */
  .price-card { padding: 20px; }
  .price-row { padding: 9px 0; }
}
.pricing-table {
  display: none;
}

.pricing-table.active {
  display: block;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.price-card h4 {
  flex-shrink: 0;
}

/* Égalise les cartes d'une même rangée : l'élément carte
   occupe toujours toute la hauteur de sa rangée (Grid stretch). */
.price-card .price-row {
  flex-shrink: 0;
}

.price-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.price-card h4 { font-size: 0.95rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }

.pricing-icon { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50);
}

.price-row:last-child { border-bottom: none; }

.price-row .service { font-size: 0.9rem; color: var(--gray-600); }
.price-row .price { font-weight: 700; color: var(--primary); font-size: 0.95rem; }
.price-row.price-detail .service { font-size: 0.8rem; color: var(--gray-400); padding-left: 1.2rem; }
.price-row.price-detail { border-bottom: none; padding: 2px 16px; }

.price-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--gray-400);
  font-style: italic;
}

/* --- Zones Section --- */
.zones-section {
  padding: 80px 0;
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 768px) {
  .zones-grid { grid-template-columns: repeat(2, 1fr); }
}

.zone-card {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.zone-card:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.zone-card .dept { font-weight: 700; font-size: 0.85rem; color: var(--accent); display: block; }
.zone-card .city { font-size: 0.8rem; color: var(--gray-500); }
.zone-card:hover .city { color: var(--gray-300); }
.zone-card:hover .dept { color: var(--accent); }

/* --- Formulaire 4 étapes --- */
.form-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
}

.form-section h2 { color: var(--white); }
.form-section .section-subtitle { color: var(--gray-300); }

.form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

@media (max-width: 600px) {
  .form-wrapper { padding: 24px 16px; }
}

/* Progress */
.form-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  position: relative;
}

.form-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gray-100);
  transform: translateY(-50%);
  z-index: 0;
}

.step-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gray-400);
  position: relative;
  z-index: 1;
  transition: all 0.3s;
}

.step-indicator.active {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 0 0 4px var(--accent-light);
}

.step-indicator.done {
  background: var(--success);
  color: var(--white);
}

.form-progress-bar {
  position: absolute;
  top: 50%;
  left: 0;
  height: 2px;
  background: var(--success);
  transform: translateY(-50%);
  transition: width 0.5s ease;
  z-index: 0;
}

/* Form steps */
.form-step {
  display: none;
}

.form-step.active { display: block; }

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

/* Selection grid */
.nuisible-grid, .lieu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .nuisible-grid, .lieu-grid { grid-template-columns: repeat(2, 1fr); }
}

.nuisible-option, .lieu-option {
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: var(--white);
}

.nuisible-option:hover, .lieu-option:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}

.nuisible-option.selected, .lieu-option.selected {
  border-color: var(--accent);
  background: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.nuisible-option .nuisible-icon, .lieu-option .lieu-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
}

.nuisible-icon-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 8px;
  border: 2px solid var(--gray-200);
  transition: border-color 0.2s;
}

.nuisible-option.selected .nuisible-icon-img,
.nuisible-option:hover .nuisible-icon-img {
  border-color: var(--accent);
}

.nuisible-option .nuisible-label, .lieu-option .lieu-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
}

/* Form fields */
.form-group {
  margin-bottom: 20px;
}

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--white);
  color: var(--gray-700);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-group .error-text {
  font-size: 0.8rem;
  color: var(--danger);
  margin-top: 4px;
  display: none;
}

.form-group.error .error-text { display: block; }

.form-error {
  background: var(--danger-bg);
  color: var(--danger);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  font-weight: 500;
  display: none;
}

/* Checkbox styling */
.form-group.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-group.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.form-group.checkbox label { margin-bottom: 0; }

/* Form nav */
.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
}

/* Success */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show { display: block; }

.form-success .success-icon {
  width: 64px;
  height: 64px;
  display: block;
  margin: 0 auto 16px;
}

.form-success h3 { color: var(--success); margin-bottom: 12px; }
.form-success p { color: var(--gray-400); }

.form-success .success-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.form-success .success-phone {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

/* Loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading .btn-text { visibility: hidden; }

.btn-loading .btn-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Témoignages --- */
.testimonials-section {
  padding: 80px 0;
  background: var(--off-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 768px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 28px;
}

.testimonial-card .stars { color: var(--accent); font-size: 1.1rem; margin-bottom: 12px; }
.testimonial-card blockquote {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.6;
}
.testimonial-card .author { font-weight: 700; font-size: 0.9rem; color: var(--primary); }
.testimonial-card .location { font-size: 0.8rem; color: var(--gray-400); }

/* --- Blog Section --- */
.blog-section {
  padding: 80px 0;
}

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

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}

.blog-card-body {
  padding: 24px;
}

.blog-card .blog-tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-hover);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.blog-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.blog-card h3 a { color: var(--primary); }
.blog-card h3 a:hover { color: var(--accent); }

.blog-card p { font-size: 0.9rem; margin-bottom: 12px; }

.blog-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  gap: 16px;
}

/* --- CTA Section --- */
.cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(245,158,11,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 { color: var(--white); margin-bottom: 1rem; position: relative; }
.cta-section p { color: var(--gray-300); max-width: 500px; margin: 0 auto 2rem; position: relative; }

/* --- Footer --- */
.footer {
  background: var(--primary);
  color: var(--gray-300);
  padding: 60px 0 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-brand p { font-size: 0.9rem; color: var(--gray-400); }

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin: 0;
}

.photo-credit {
  font-size: 0.7rem;
  opacity: 0.5;
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

.photo-credit a {
  color: var(--gray-500);
  text-decoration: underline;
}

.photo-credit a:hover {
  color: var(--accent);
}


/* --- Urgence Floating Bar --- */
.urgence-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: var(--white);
  border: 2px solid var(--danger);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  max-width: 320px;
  display: none;
}

.urgence-floating.show { display: block; }

.urgence-floating p {
  font-weight: 700;
  color: var(--danger);
  margin: 0 0 8px;
  font-size: 0.9rem;
}

.urgence-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--gray-400);
}

/* --- FAQ --- */
.faq-section {
  padding: 80px 0;
}

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

.faq-question {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  transition: background 0.2s;
  color: var(--primary);
}

.faq-question:hover { background: var(--gray-50); }

.faq-question .faq-arrow {
  transition: transform 0.3s;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

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

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin: 0;
}

/* --- Sub-page layout --- */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-hero p { color: var(--gray-300); max-width: 600px; margin: 0 auto; }

.page-content {
  padding: 60px 0;
}

.page-content h2 {
  margin-top: 2rem;
}

/* --- Toast notifications --- */
.toast {
  position: fixed;
  top: 90px;
  right: 20px;
  z-index: 9999;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.3s ease;
  max-width: 360px;
}

.toast.show { transform: translateX(0); }
.toast.success { background: var(--success-bg); color: var(--success); border-left: 4px solid var(--success); }
.toast.error { background: var(--danger-bg); color: var(--danger); border-left: 4px solid var(--danger); }

/* --- Skeleton loading --- */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-50) 25%, var(--gray-100) 50%, var(--gray-50) 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* --- Print --- */
@media print {
  .header, .footer, .urgence-floating, .btn, .nav-toggle { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  .page-hero { padding: 40px 0; }
}

/* --- Accessibility --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- Admin Panel Overrides --- */
.admin-body {
  background: #0d1117;
  color: #c9d1d9;
  font-size: 14px;
}

.admin-header {
  background: #161b22;
  border-bottom: 1px solid #30363d;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-main {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stat {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 16px;
}

.admin-stat .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
  margin-bottom: 4px;
}

.admin-stat .value {
  font-size: 28px;
  font-weight: 700;
  color: #f0f6fc;
}

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}

.admin-filters select {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.filter-btn {
  padding: 6px 14px;
  border: 1px solid #30363d;
  border-radius: 6px;
  background: #21262d;
  color: #c9d1d9;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s;
}

.filter-btn-primary {
  background: #238636;
  border-color: #2ea043;
  color: #fff;
}

.filter-btn-primary:hover { background: #2ea043; }

.filter-btn-secondary { background: #21262d; color: #c9d1d9; }
.filter-btn-secondary:hover { background: #30363d; }

.admin-table-wrap {
  overflow-x: auto;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  background: #21262d;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: #8b949e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #30363d;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #21262d;
  color: #c9d1d9;
}

.admin-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

.admin-empty {
  text-align: center;
  padding: 60px 20px;
  color: #8b949e;
}

.admin-empty .icon { font-size: 3rem; margin-bottom: 12px; }
.admin-empty p { color: #8b949e; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.badge-new { background: #1f6feb30; color: #58a6ff; }
.badge-attribue { background: #d2992230; color: #d29922; }
.badge-done { background: #23863630; color: #3fb950; }
.badge-refused { background: #da363330; color: #f85149; }

.phone-link { color: #58a6ff; text-decoration: none; }
.phone-link:hover { text-decoration: underline; }

.assign-select {
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.admin-seed {
  margin-top: 16px;
  text-align: center;
  padding: 20px;
  background: #161b22;
  border: 1px dashed #30363d;
  border-radius: 8px;
}

.admin-seed p { color: #8b949e; font-size: 13px; }

.admin-seed button {
  margin-top: 8px;
  padding: 8px 20px;
  background: #21262d;
  border: 1px solid #30363d;
  color: #c9d1d9;
  border-radius: 6px;
  cursor: pointer;
}

.admin-seed button:hover { background: #30363d; }

/* ===== ADMIN DARK THEME VARIABLES ===== */
:root .admin-body {
  --admin-bg: #0d1117;
  --admin-card: #161b22;
  --admin-card-hover: #1c2128;
  --admin-border: #30363d;
  --admin-text: #c9d1d9;
  --admin-muted: #8b949e;
  --admin-accent: #58a6ff;
  --admin-success: #3fb950;
  --admin-danger: #f85149;
}
