/* ============================================================
   piscine-proximitoria.com — style.css
   Site de services geolocalisés — Piscine Coque, Kit & Dur
   ============================================================ */

/* ============================================================
   1. CSS VARIABLES & RESET
   ============================================================ */

:root {
  /* Couleurs principales */
  --primary: #0077B6;
  --primary-dark: #023E8A;
  --secondary: #00B4D8;
  --accent: #90E0EF;
  --cta: #E67E22;
  --cta-dark: #CA6F1E;

  /* Textes */
  --text: #2D3436;
  --text-secondary: #636E72;
  --text-light: #B2BEC3;

  /* Fonds */
  --bg-light: #F8F9FA;
  --bg-section: #CAF0F8;
  --bg-dark: #023E8A;
  --white: #ffffff;

  /* Etats */
  --success: #27AE60;
  --error: #E74C3C;
  --warning: #F39C12;

  /* Niveaux de gris */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* Rayons */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 300ms ease;
  --transition-slow: 500ms ease;

  /* Typographie */
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-heading: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   2. LAYOUT
   ============================================================ */

.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.container-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.container-wide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

/* ============================================================
   3. HEADER & NAVIGATION
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-lg);
}

.header-top {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.8125rem;
  padding: 0.4rem 0;
}

.header-top .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-top a {
  color: var(--accent);
}

.header-top a:hover {
  color: var(--white);
}

/* ---- Header-top CTA (homepage uniquement) ---- */
.header-top.header-top-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #01497c 100%);
  padding: 0.6rem 0;
  font-size: 0.8125rem;
}

.header-top-trust {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.header-top-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.header-top-trust i {
  color: var(--accent);
  font-size: 0.75rem;
}

.header-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cta);
  color: var(--white) !important;
  padding: 0.55rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.35);
}

.header-top-btn:hover {
  background: var(--cta-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(230, 126, 34, 0.5);
  color: var(--white) !important;
}

.header-top-btn i {
  font-size: 0.8125rem;
}

@media (max-width: 768px) {
  .header-top.header-top-cta {
    padding: 0.5rem 0;
  }

  .header-top-trust {
    display: none;
  }

  .header-top.header-top-cta .container {
    justify-content: center;
  }

  .header-top-btn {
    font-size: 0.8125rem;
    padding: 0.5rem 1.25rem;
  }
}

.header-main {
  padding: 0.75rem 0;
  background: var(--white);
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

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

/* Navigation principale */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li > a {
  display: block;
  padding: 0.625rem 0.875rem;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  background: var(--gray-50);
  color: var(--primary);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.has-dropdown > a::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), visibility var(--transition-fast), transform var(--transition-fast);
  z-index: 200;
  padding: 0.5rem 0;
}

.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text);
  font-size: 0.9rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.nav-dropdown a:hover {
  background: var(--gray-50);
  color: var(--primary);
}

/* Telephone dans le header */
.header-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cta);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.header-phone:hover {
  background: var(--cta-dark);
  color: var(--white);
  transform: scale(1.02);
}

/* Logo Proximitoria (partenaire) a droite du menu */
.logo-proximitoria {
  flex-shrink: 0;
  margin-left: auto;
}

.logo-proximitoria img {
  height: 50px;
  width: auto;
}

/* Bouton menu mobile */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 6px;
  transition: border-color var(--transition-fast);
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  border-color: var(--primary);
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   4. HERO SECTIONS
   ============================================================ */

/* Hero principal (page d'accueil) */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(144, 224, 239, 0.08);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* Hero variante canton (dept + region) */
.hero.hero-canton {
  padding: 4rem 0 3.5rem;
  min-height: auto;
  text-align: center;
}

.hero.hero-canton .hero-subtitle {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero.hero-canton .hero-stats {
  justify-content: center;
}

.hero.hero-canton .hero-cta {
  justify-content: center;
}

/* Breadcrumb integre au hero (fond transparent, texte clair)
   Specificite .breadcrumb.breadcrumb-hero (0,2,0) pour ecraser
   .breadcrumb (0,1,0) qui arrive plus tard dans la feuille. */
.breadcrumb.breadcrumb-hero {
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 1.75rem;
}

.breadcrumb.breadcrumb-hero .breadcrumb-list {
  justify-content: center;
  font-size: 0.8125rem;
}

.breadcrumb.breadcrumb-hero .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
}

.breadcrumb.breadcrumb-hero .breadcrumb-item a:hover {
  color: var(--white);
  text-decoration: none;
}

.breadcrumb.breadcrumb-hero .breadcrumb-item.active,
.breadcrumb.breadcrumb-hero .breadcrumb-item:last-child a,
.breadcrumb.breadcrumb-hero .breadcrumb-item:last-child span {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb.breadcrumb-hero .breadcrumb-separator {
  color: rgba(255, 255, 255, 0.35);
}

/* Boutons dans le hero canton : outline lisible sur fond bleu */
.hero.hero-canton .btn.btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero.hero-canton .btn.btn-outline:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

/* Stats du hero canton : espacement */
.hero.hero-canton .hero-stats {
  margin: 2rem 0;
  gap: 1rem;
}

.hero.hero-canton .hero-stat {
  padding: 0.875rem 1.75rem;
}

/* Hero badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero .hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Stats dans le hero */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 140px;
}

.hero-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Boutons CTA hero */
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Hero Ville */
.ville-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--secondary) 100%);
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  text-align: center;
}

.ville-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.ville-hero::after {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -80px;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: rgba(144, 224, 239, 0.07);
  pointer-events: none;
}

.ville-hero .container {
  position: relative;
  z-index: 1;
}

.ville-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.875rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ville-hero .hero-subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Meta items sur la page ville */
.ville-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ville-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.875rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

/* ============================================================
   5. BREADCRUMB
   ============================================================ */

.breadcrumb {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 0.625rem 0;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--primary);
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb-item:last-child a,
.breadcrumb-item span {
  color: var(--text-secondary);
  font-weight: 400;
}

.breadcrumb-separator {
  color: var(--gray-400);
  margin: 0 0.5rem;
  font-size: 0.75rem;
}

/* ============================================================
   6. SECTIONS
   ============================================================ */

.section {
  padding: 4rem 0;
}

.section-gray {
  padding: 4rem 0;
  background: var(--gray-50);
}

.section-light {
  padding: 4rem 0;
  background: var(--bg-section);
}

.section-dark {
  padding: 4rem 0;
  background: var(--primary-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-primary {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.section-primary h2,
.section-primary h3 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
}

.section-dark .section-header p,
.section-primary .section-header p {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   7. BOUTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}

.btn-accent:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

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

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

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

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

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* ============================================================
   8. BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
}

.badge-primary {
  background: var(--primary);
  color: var(--white);
}

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

.badge-accent {
  background: var(--cta);
  color: var(--white);
}

.badge-light {
  background: var(--gray-100);
  color: var(--text-secondary);
}

.badge-success {
  background: var(--success);
  color: var(--white);
}

/* ============================================================
   9. CARTES
   ============================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-xl);
}

.card-body {
  padding: 1.5rem;
}

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* Cartes de service */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  border: 1px solid var(--gray-100);
  /* Colonne flex pour aligner le prix + le bouton en bas de chaque carte,
     quelle que soit la longueur du paragraphe. */
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.service-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-size: 1.75rem;
  color: var(--white);
  flex-shrink: 0;
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  color: var(--primary-dark);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Prix + bouton pousses en bas de la carte via margin-top:auto sur le prix.
   Le paragraphe reste en flux naturel (pas de texte ancre en haut d'une
   zone stretched). Les deux elements sont auto-centres horizontalement. */
.service-card .service-price {
  align-self: center;
  margin-top: auto;
  margin-bottom: 1rem;
}

.service-card .btn {
  align-self: center;
}

.service-price {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
}

/* Cartes features */
.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--white);
  flex-shrink: 0;
}

.feature-card-content h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
  color: var(--primary-dark);
}

.feature-card-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   10. GRILLES
   ============================================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.services-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.services-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.avantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.avantage-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.avantage-item .icon {
  font-size: 2.25rem;
  margin-bottom: 0.875rem;
  display: block;
}

.avantage-item h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.avantage-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ============================================================
   11. PROCESSUS STEPS
   ============================================================ */

.processus-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

.processus-grid::before {
  content: "";
  position: absolute;
  top: 45px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 0;
}

.processus-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.processus-step-number {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--primary);
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 1;
  transition: transform var(--transition);
}

.processus-step:hover .processus-step-number {
  transform: scale(1.1);
  background: var(--primary);
  color: var(--white);
}

.processus-step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.processus-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================================
   12. COMMUNES & CANTONS
   ============================================================ */

.communes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.commune-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
  display: block;
}

.commune-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.commune-card-main {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.9375rem;
  margin-bottom: 0.2rem;
}

.commune-pop {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.communes-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.communes-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.communes-list a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.commune-item {
  display: block;
  padding: 0.5rem 0.75rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.commune-item:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ============================================================
   13. FAQ ACCORDION
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  gap: 1rem;
  transition: background var(--transition-fast), color var(--transition-fast);
  font-family: var(--font-body);
}

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

/* .active est ajoute sur .faq-item par le JS, pas sur .faq-question */
.faq-item.active .faq-question {
  color: var(--primary);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

/* Icone chevron dans un cercle bleu (HTML: <i class="fas fa-chevron-down">) */
.faq-question > i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background 0.3s ease;
}

.faq-item.active .faq-question > i {
  transform: rotate(180deg);
  background: var(--primary-dark);
}

/* Reponse : pas de wrapper .faq-answer-content dans le HTML,
   le <p> est directement dans .faq-answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer > p,
.faq-answer-content {
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin: 0;
  background: var(--gray-50);
}

.faq-answer-content p {
  margin-bottom: 0.75rem;
}

/* ============================================================
   14. FORMULAIRES
   ============================================================ */

/* CRITIQUE: overflow visible pour l'autocomplete */
.form-group,
.form-grid,
.form-container {
  overflow: visible !important;
}

.form-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
}

.contact-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label .required {
  color: var(--error);
  margin-left: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Autocomplete */
.autocomplete-wrapper {
  position: relative;
}

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--primary);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
}

.autocomplete-item {
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--gray-50);
  color: var(--primary);
}

/* Message feedback formulaire */
.form-feedback {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: 1rem;
  display: none;
}

.form-feedback.success {
  background: rgba(39, 174, 96, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

.form-feedback.error {
  background: rgba(231, 76, 60, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
  display: block;
}

/* ============================================================
   15. URGENCE SECTION
   ============================================================ */

.urgence-section {
  background: linear-gradient(135deg, var(--cta) 0%, var(--cta-dark) 100%);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.urgence-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.urgence-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.urgence-content h2 {
  color: var(--white);
  font-size: 1.875rem;
}

.urgence-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.urgence-phone-number {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--cta);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.urgence-phone-number:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-xl);
  color: var(--cta-dark);
}

/* Urgence banner (variante inline dans page) */
.urgence-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  text-align: center;
}

.urgence-banner h3 {
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

/* ============================================================
   16. VILLE INFO LAYOUT
   ============================================================ */

.ville-infos-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.ville-infos-main {
  min-width: 0;
}

.ville-infos-sidebar {
  position: sticky;
  top: 100px;
}

.ville-info-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ville-infos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.ville-info {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  color: var(--white);
  font-size: 0.9rem;
}

/* ============================================================
   17. SERVICE STATS
   ============================================================ */

.service-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.service-stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.stat-value {
  display: block;
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================================
   18. SERVICE HERO
   ============================================================ */

.service-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0;
  min-height: 350px;
  display: flex;
  align-items: center;
  text-align: center;
}

.service-hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.service-hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.service-hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
}

/* ============================================================
   19. SERVICES NAV
   ============================================================ */

.services-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition), box-shadow var(--transition);
  gap: 0.5rem;
}

.service-nav-card:hover,
.service-nav-card.active {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

/* Icone directe <i> dans la nav card (pas de wrapper .service-nav-card-icon) */
.service-nav-card > i {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--white);
  flex-shrink: 0;
}

/* Wrapper optionnel (si utilise dans le HTML) */
.service-nav-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--white);
}

.service-nav-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.service-nav-card:hover span,
.service-nav-card.active span {
  color: var(--primary);
}

.service-nav-card small {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--gray-100);
  padding: 0.15rem 0.625rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.price-tag {
  display: inline-flex;
  align-items: center;
  background: var(--gray-100);
  color: var(--text-secondary);
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}

/* ============================================================
   20. SERVICES DETAILED
   ============================================================ */

.services-detailed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-100);
}

.service-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  flex-shrink: 0;
}

.service-detail-header h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.service-detail-header p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.service-detail-price {
  margin-left: auto;
  text-align: center;
  flex-shrink: 0;
}

.service-detail-price .price-amount {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.service-detail-price .price-unit {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.service-detail-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover,
.pricing-card.featured {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.pricing-card.featured {
  border-width: 2px;
}

.pricing-card-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0;
  line-height: 1;
}

.pricing-card-price .price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.service-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Coche via FontAwesome dans le HTML (<i class="fas fa-check">) —
   pas de ::before pour eviter un double checkmark */
.service-features-list li > i {
  color: var(--success);
  font-size: 0.8125rem;
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* ============================================================
   21. ZONES CONTENT
   ============================================================ */

.zones-content {
  padding: 3rem 0;
}

.canton-section {
  margin-bottom: 2.5rem;
}

.canton-section h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-200);
}

.villes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

/* ============================================================
   22. FOOTER
   ============================================================ */

footer.footer {
  background: var(--gray-900);
  color: var(--gray-300);
}

.footer-main {
  padding: 3.5rem 0 2.5rem;
}

.footer-main .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand {
  grid-column: 1;
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.25rem;
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-400);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.footer-column h4 {
  color: var(--white);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  position: relative;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-column ul li a {
  color: var(--gray-400);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding: 1.25rem 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom-links li a {
  font-size: 0.875rem;
  color: var(--gray-500);
  transition: color var(--transition-fast);
}

.footer-bottom-links li a:hover {
  color: var(--white);
}

/* Social links */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gray-700);
  color: var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.social-link:hover {
  background: var(--primary);
  color: var(--white);
}

/* ============================================================
   23. BLOG (INFOS PRATIQUES)
   ============================================================ */

.blog-index {
  padding: 3rem 0;
}

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

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

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

.blog-card-image {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.0625rem;
  color: var(--text);
  margin-bottom: 0.625rem;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  flex: 1;
}

.blog-category {
  padding: 3rem 0;
}

.blog-article {
  padding: 3rem 0;
}

.blog-article-content {
  max-width: 760px;
  margin: 0 auto;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid var(--gray-100);
}

.blog-sidebar-card h4 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gray-100);
}

/* ============================================================
   24. CONTENT TEXT
   ============================================================ */

.content-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}

.content-text h2 {
  font-size: 1.625rem;
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.content-text h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-text p {
  margin-bottom: 1rem;
}

.content-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.content-text ul li {
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.content-text ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-text ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.content-text ol li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ============================================================
   25. REGION / DEPARTEMENT PAGES
   ============================================================ */

.region-hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}

.region-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.region-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.dept-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dept-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--primary-dark);
}

.dept-card .dept-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.dept-card .dept-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 0.25rem;
}

.dept-card .dept-meta {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ============================================================
   26. MENTIONS LEGALES
   ============================================================ */

.mentions-content {
  padding: 3rem 0;
  max-width: 860px;
  margin: 0 auto;
}

.mentions-content h2 {
  font-size: 1.375rem;
  color: var(--primary-dark);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.mentions-content h2:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* ============================================================
   27. STATS GRID
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--primary);
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-bottom: 0.375rem;
}

.stat-card .stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ============================================================
   28. ALERT ET NOTIFICATION
   ============================================================ */

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  border-left: 4px solid;
}

.alert-info {
  background: rgba(0, 119, 182, 0.08);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.alert-success {
  background: rgba(39, 174, 96, 0.08);
  border-color: var(--success);
  color: #1e7e40;
}

.alert-warning {
  background: rgba(243, 156, 18, 0.08);
  border-color: var(--warning);
  color: #a1620a;
}

.alert-error {
  background: rgba(231, 76, 60, 0.08);
  border-color: var(--error);
  color: #a93226;
}

/* ============================================================
   29. UTILITY CLASSES
   ============================================================ */

/* Spacing */
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 1rem; padding-right: 1rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-inline-flex { display: inline-flex; }

/* Flex */
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--cta); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* Background */
.bg-gray-50 { background-color: var(--gray-50); }
.bg-gray-100 { background-color: var(--gray-100); }
.bg-primary { background-color: var(--primary); }
.bg-white { background-color: var(--white); }

/* Rounded */
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

/* Width/Height */
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ============================================================
   30. ANIMATIONS
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animate-fade-in { animation: fadeIn 0.3s ease forwards; }
.animate-slide-up { animation: slideUp 0.3s ease forwards; }
.animate-slide-left { animation: slideInLeft 0.3s ease forwards; }

/* Intersection Observer — apparition au scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   31. RESPONSIVE — MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

  /* Typographie */
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  /* Header */
  .header-top {
    display: none;
  }

  .header-main .container {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 9998;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 1.5rem 2rem;
    overflow-y: auto;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-menu > li > a {
    padding: 0.875rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--gray-100);
    border-radius: 0;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    background: var(--gray-50);
    display: none;
  }

  .has-dropdown.open .nav-dropdown {
    display: block;
  }

  .logo-proximitoria {
    display: none;
  }

  .header-phone {
    font-size: 0.8125rem;
    padding: 0.4rem 0.875rem;
  }

  /* Hero */
  .hero {
    padding: 3rem 0 2.5rem;
    min-height: auto;
  }

  .hero h1,
  .ville-hero h1,
  .service-hero h1 {
    font-size: 1.75rem;
  }

  .hero.hero-canton {
    padding: 2.5rem 0 2rem;
  }

  .hero-stats {
    gap: 0.875rem;
  }

  .hero-stat {
    min-width: auto;
    flex: 1;
    padding: 0.75rem 1rem;
  }

  .hero-stat-number {
    font-size: 1.375rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Ville hero */
  .ville-hero {
    padding: 3rem 0 2.5rem;
  }

  .ville-meta {
    gap: 0.5rem;
  }

  /* Infos ville */
  .ville-infos-grid {
    grid-template-columns: 1fr;
  }

  .ville-infos-sidebar {
    position: static;
    order: -1;
  }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .service-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Grilles */
  .services-grid,
  .services-grid-2,
  .services-grid-3,
  .services-grid-4 {
    grid-template-columns: 1fr;
  }

  .avantages-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .services-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: auto;
  }

  /* Footer */
  .footer-main .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Communes */
  .communes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .communes-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .villes-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* FAQ */
  .faq-question {
    padding: 1rem;
    font-size: 0.9375rem;
  }

  .faq-answer-content {
    padding: 0 1rem 1rem;
  }

  /* Processus */
  .processus-grid {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
  }

  .processus-grid::before {
    display: none;
  }

  .processus-step {
    max-width: 280px;
    width: 100%;
  }

  /* Section spacing */
  .section,
  .section-gray,
  .section-light,
  .section-dark,
  .section-primary {
    padding: 2.5rem 0;
  }

  /* Form container */
  .form-container {
    padding: 1.5rem;
  }

  /* Urgence */
  .urgence-phone {
    flex-direction: column;
    align-items: center;
  }

  .urgence-phone-number {
    font-size: 1.125rem;
    padding: 0.75rem 1.5rem;
  }

  /* Services nav */
  .services-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Dept grid */
  .dept-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Pricing */
  .pricing-card {
    margin-bottom: 1rem;
  }

  /* Service hero */
  .service-hero {
    padding: 2.5rem 0;
    min-height: auto;
  }

  /* Service stats */
  .service-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service detail */
  .service-detail-header {
    flex-direction: column;
    text-align: center;
  }

  .service-detail-price {
    margin-left: 0;
  }
}

/* Petit mobile (max 480px) */
@media (max-width: 480px) {
  .communes-grid {
    grid-template-columns: 1fr;
  }

  .communes-list {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .service-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
  }

  .hero-stat {
    width: 100%;
  }

  h1 { font-size: 1.5rem; }

  .services-nav {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   32. PRINT STYLES
   ============================================================ */

@media print {
  .header,
  .footer,
  .urgence-section,
  .urgence-banner,
  .hero-buttons,
  .btn,
  .mobile-menu-toggle {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}

/* ============================================================
   33. BLOG LAYOUT EXTENDED (Phase 5.5)
   ============================================================ */

/* Blog article layout with sidebar */
.blog-article > .container > div,
.blog-article main > .container > div {
  align-items: start;
}

.blog-article-content.content-text {
  min-width: 0;
}

/* Article TOC */
.article-toc {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.article-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.article-toc li {
  margin-bottom: 0.4rem;
}

.article-toc a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9375rem;
}

.article-toc a:hover {
  text-decoration: underline;
}

/* Article intro */
.article-intro {
  font-size: 1.05rem;
  color: #555;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Blog silo index cards */
.blog-silo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Content table styles */
.content-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.content-text table th {
  background: var(--primary);
  color: white;
  padding: 0.75rem;
  text-align: left;
}

.content-text table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--gray-100);
}

.content-text table tr:nth-child(even) td {
  background: #f8f9fa;
}

/* Responsive blog layout */
@media (max-width: 1024px) {
  .blog-silo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .blog-article .container > div {
    grid-template-columns: 1fr !important;
  }

  .blog-sidebar {
    position: static !important;
  }
}

/* ============================================================
   33. CORRECTIFS DE LAYOUT (classes manquantes)
   ============================================================
   Ce bloc ajoute toutes les classes utilisees dans le HTML mais
   qui n'etaient pas definies au-dessus. Appliquees en cascade,
   elles restaurent le design cible (hero 2 colonnes, grilles de
   cards, sidebars, formulaires devis, temoignages, etc.).
   ============================================================ */

/* --------- HERO (homepage) --------- */
.hero-bg-circles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
}

.hero-circle-1 {
  top: -120px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-circle-2 {
  bottom: -180px;
  left: -80px;
  width: 520px;
  height: 520px;
  background: rgba(144, 224, 239, 0.12);
}

.hero-circle-3 {
  top: 40%;
  right: 30%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
}

/* Homepage hero : 2 colonnes (texte | stats 2x2) */
.hero:not(.hero-canton) .hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Region hero : .hero-content est juste un wrapper, pas une grille */
.hero.hero-canton .hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero.hero-canton .hero-text {
  max-width: 760px;
  margin: 0 auto;
}

.hero-text {
  max-width: 620px;
}

/* Hero stats sur pages region/dept : .hero-stat utilise .stat-number / .stat-label
   (existants pour la homepage en couleur sombre) — on les force en blanc sur le hero */
.hero .hero-stat .stat-number,
.hero .hero-stat .hero-stat-number {
  display: block;
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.hero .hero-stat .stat-label,
.hero .hero-stat .hero-stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  display: block;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* Grille 2x2 des cartes stats dans le hero homepage uniquement
   (sur les pages region, .hero-stats reste en flex grace a l'existant) */
.hero:not(.hero-canton) .hero-content .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  transition: transform var(--transition), background var(--transition);
}

.hero-stat-card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-stat-card .stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.hero-stat-card .stat-number {
  display: block;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}

.hero-stat-card .stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

/* --------- SECTIONS generiques --------- */
.section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.section-header-light h2,
.section-header-light p {
  color: var(--white);
}

.section-header-light p {
  color: rgba(255, 255, 255, 0.88);
}

.section-devis {
  background: linear-gradient(135deg, var(--bg-section) 0%, var(--gray-50) 100%);
}

/* .section-intro : utilise uniquement sur les pages region (contient
   .content-with-sidebar) — PAS de max-width ni text-align center ici,
   sinon ca ecrase le layout 2 colonnes (main + sidebar). */
.section-intro {
  padding: 2.5rem 0 1.5rem;
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 1rem;
}

/* --------- HOMEPAGE : section "Nos Services Piscine" aeree --------- */
#services {
  padding: 5.5rem 0;
}

#services .section-header {
  margin-bottom: 3.5rem;
}

#services .services-grid {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 2rem;
}

#services .service-card {
  padding: 2.25rem 1.75rem;
}

#services .service-card-icon {
  margin-bottom: 1.5rem;
}

#services .service-card h3 {
  margin-bottom: 0.875rem;
}

#services .service-card p {
  margin-bottom: 1.5rem;
}

#services .section-cta {
  margin-top: 3.5rem;
}

@media (max-width: 768px) {
  #services {
    padding: 3.5rem 0;
  }

  #services .section-header {
    margin-bottom: 2.5rem;
  }

  #services .services-grid {
    gap: 1.25rem;
  }

  #services .section-cta {
    margin-top: 2.5rem;
  }
}

/* Avantages en variante horizontale (regions — dans .main-content) */
.main-content .avantages-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.main-content .avantage-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  gap: 1rem;
  padding: 1.25rem;
}

.main-content .avantage-item > i {
  font-size: 1.375rem;
  color: var(--primary);
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.main-content .avantage-item strong {
  display: block;
  color: var(--primary-dark);
  margin-bottom: 0.2rem;
  font-size: 0.9375rem;
}

.main-content .avantage-item p {
  font-size: 0.8125rem;
  margin: 0;
}

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

/* --------- AVANTAGES (alias) --------- */
.avantage-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  margin: 0 auto 1rem;
}

/* --------- ZONES PREVIEW (section-primary sur homepage) --------- */
.section-primary {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.regions-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.region-preview-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.25rem 0.875rem;
  text-align: center;
  color: var(--white);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  font-size: 0.875rem;
  font-weight: 600;
}

.region-preview-card i {
  font-size: 1.625rem;
  opacity: 0.9;
}

.region-preview-card:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  color: var(--white);
}

.region-preview-more {
  background: rgba(230, 126, 34, 0.2);
  border-color: rgba(230, 126, 34, 0.5);
}

.region-preview-more:hover {
  background: var(--cta);
  border-color: var(--cta);
}

/* --------- FORMULAIRE DEVIS (homepage + services + dept) --------- */
.form-wrapper {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.form-group.form-group-full,
.form-group-full {
  grid-column: 1 / -1;
}

.form-submit {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.btn-submit {
  min-width: 280px;
  justify-content: center;
}

.form-notice {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin: 0;
}

.form-message {
  margin-top: 1.25rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  display: none;
}

.form-message--success {
  background: rgba(39, 174, 96, 0.12);
  color: var(--success);
  border: 1px solid var(--success);
  display: block;
}

.form-message--error {
  background: rgba(231, 76, 60, 0.12);
  color: var(--error);
  border: 1px solid var(--error);
  display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: var(--error);
}

.form-group .error-message {
  font-size: 0.8125rem;
  color: var(--error);
  margin-top: 0.25rem;
}

/* Sidebar a cote du formulaire */
.form-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  padding: 1.5rem;
}

.form-sidebar-card h3 {
  font-size: 1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-sidebar-card h3 i {
  color: var(--primary);
}

.form-sidebar-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form-sidebar-card ul li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.form-sidebar-card ul li i {
  color: var(--success);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.form-sidebar-contact {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  border-color: transparent;
}

.form-sidebar-contact h3,
.form-sidebar-contact p {
  color: var(--white);
}

.form-sidebar-contact p {
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
  opacity: 0.9;
}

.form-sidebar-contact .btn {
  width: 100%;
  justify-content: center;
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.form-sidebar-contact .btn:hover {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}

/* --------- TEMOIGNAGES --------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.testimonial-stars {
  color: #f1c40f;
  font-size: 1rem;
  display: flex;
  gap: 0.15rem;
}

.testimonial-card p {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.65;
  font-style: italic;
  margin: 0;
  flex: 1;
}

.testimonial-author {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding-top: 0.75rem;
  border-top: 1px solid var(--gray-100);
}

.testimonial-author strong {
  color: var(--primary-dark);
}

/* --------- URGENCE (variantes text / actions) --------- */
.urgence-content {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  text-align: left;
}

.urgence-text {
  flex: 1;
  min-width: 260px;
}

.urgence-text h3 {
  color: var(--white);
  font-size: 1.375rem;
  margin-bottom: 0.25rem;
}

.urgence-text p {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-size: 0.9375rem;
}

.urgence-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --------- BOUTONS supplementaires --------- */
.btn-nav {
  background: var(--cta);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.875rem;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-nav:hover {
  background: var(--cta-dark);
  transform: translateY(-1px);
}

.btn-warning {
  background: var(--cta);
  color: var(--white);
  border: 2px solid var(--cta);
}

.btn-warning:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
  color: var(--white);
}

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

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

/* --------- FOOTER extras --------- */
.footer-logo-text {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo-text i {
  color: var(--secondary);
}

.footer-legal-note {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 0.75rem;
  font-style: italic;
}

/* --------- CANTONS / COMMUNES (dept + region pages) --------- */
.cantons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.625rem;
  margin: 0.5rem 0 0;
}

.canton-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

a.canton-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.canton-name {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.8125rem;
}

.commune-count {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --------- PAGES DEPARTEMENT --------- */
.departement-header {
  margin-bottom: 0.75rem;
}

.departement-header h2 {
  font-size: 1.125rem;
}

.departement-title {
  color: var(--primary-dark);
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.dept-stats {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.dept-stats strong {
  color: var(--primary);
  font-weight: 700;
}

.departement-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
}

.departement-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* --------- PAGES REGION (layout 2 colonnes) --------- */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  align-items: start;
}

.main-content {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Sticky retire : cause des problemes quand la sidebar est plus haute
   que le contenu principal (le header chevauche en scroll, vide a gauche).
   On garde un comportement statique aligne en haut via align-items: start
   sur le parent .content-with-sidebar. */
.sticky-sidebar {
  position: static;
}

.sidebar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
  padding: 1.125rem;
}

.sidebar-card h3 {
  font-size: 0.9375rem;
  color: var(--primary-dark);
  margin-bottom: 0.625rem;
}

.sidebar-info-list,
.sidebar-dept-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-info-list li,
.sidebar-dept-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-info-list li:last-child,
.sidebar-dept-list li:last-child {
  border-bottom: none;
}

/* Limiter la hauteur de la liste departements pour ne pas etirer
   la sidebar au-dela du contenu principal */
.sidebar-dept-list {
  max-height: 260px;
  overflow-y: auto;
}

.sidebar-dept-list li {
  padding: 0.3rem 0;
}

.sidebar-info-list li {
  padding: 0.3rem 0;
}

.sidebar-dept-list a {
  color: var(--text);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-dept-list a:hover {
  color: var(--primary);
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
  text-align: center;
}

.sidebar-cta h3 {
  color: var(--white);
}

.sidebar-cta p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 0.5rem 0 1rem;
}

.sidebar-cta .btn {
  width: 100%;
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
  justify-content: center;
}

.sidebar-cta .btn:hover {
  background: var(--cta-dark);
  border-color: var(--cta-dark);
}

/* Departements list sur page region */
.departements-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.region-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 0.75rem;
}

.region-section:last-child {
  margin-bottom: 0;
}

.region-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 1.0625rem;
  color: var(--primary-dark);
  font-weight: 700;
  background: var(--gray-50);
  margin: 0;
  cursor: pointer;
}

.region-title:hover {
  background: var(--gray-100);
}

.region-title .region-chevron {
  transition: transform var(--transition);
}

.region-title.active .region-chevron {
  transform: rotate(180deg);
}

.region-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.region-chevron {
  color: var(--primary);
  transition: transform var(--transition);
}

.region-section.open .region-chevron {
  transform: rotate(180deg);
}

.region-content {
  /* Masque par defaut — padding et border a 0 sinon ils debordent
     malgre max-height:0. Le padding est retabli quand .region-title
     recoit .active (sibling selector). */
  max-height: 0;
  overflow: hidden;
  padding: 0 1.25rem;
  border-top: none;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.region-title.active + .region-content {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--gray-100);
}

/* Formulaire devis region (variante) */
.devis-wrapper {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.devis-form-container {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  overflow: visible;
}

.devis-form {
  width: 100%;
}

.devis-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

/* Autocomplete variante region */
.autocomplete-input {
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-family: var(--font-body);
  width: 100%;
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.autocomplete-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--primary);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  display: none;
}

.autocomplete-list .autocomplete-item {
  padding: 0.625rem 1rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--transition-fast);
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
}

.autocomplete-list .autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-list .autocomplete-item:hover,
.autocomplete-list .autocomplete-item.active {
  background: var(--gray-50);
  color: var(--primary);
}

/* --------- SERVICES DETAIL (services.html) --------- */
.service-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin: 0.25rem 0 1.25rem;
}

/* .service-detail-content : colonne gauche (texte + features)
   Le grid 2 colonnes est sur .service-detail-body (parent). */
.service-detail-content {
  min-width: 0;
}

.service-detail-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.service-detail-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pricing-card-header {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1rem;
}

.price-from {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.25rem;
}

.price-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-top: 0.25rem;
}

.pricing-card-includes {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-card-includes li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Coche via FontAwesome dans le HTML — pas de ::before */
.pricing-card-includes li > i {
  color: var(--success);
  font-size: 0.8125rem;
  flex-shrink: 0;
  margin-top: 0.2em;
}

/* --------- LEGAL / MENTIONS --------- */
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 0;
}

.legal-date {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-style: italic;
}

.legal-block {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.legal-block:last-child {
  border-bottom: none;
}

.legal-block h2 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.875rem;
}

.legal-block p,
.legal-block li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-block-warning {
  background: rgba(230, 126, 34, 0.08);
  border-left: 4px solid var(--cta);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
}

/* --------- DIVERS --------- */
.badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.5rem;
  background: var(--gray-100);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-small {
  min-height: 220px;
  padding: 3rem 0 2rem;
  text-align: center;
}

.hero-small .hero-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.hero-small .hero-stats {
  justify-content: center;
}

.zones-intro {
  max-width: 860px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.service-stat {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 1rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-stat .stat-number {
  display: block;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
}

.service-stat .stat-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
}

.service-hero .service-stats {
  margin-top: 2rem;
  gap: 1rem;
  justify-content: center;
}

/* Animation scroll (Intersection Observer)
   Scoped sur .animate-ready (ajoute par main.js) pour rester visible
   si JS desactive / IntersectionObserver indisponible. */
.animate-on-scroll.animate-ready {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

.animate-on-scroll.animate-ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   34. RESPONSIVE — CORRECTIFS LAYOUT
   ============================================================ */

@media (max-width: 1024px) {
  .hero:not(.hero-canton) .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero:not(.hero-canton) .hero-content .hero-stats {
    max-width: 560px;
  }

  .regions-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .form-wrapper,
  .devis-wrapper {
    grid-template-columns: 1fr;
  }

  .form-sidebar {
    position: static;
    order: -1;
  }

  .content-with-sidebar {
    grid-template-columns: 1fr;
  }

  .sticky-sidebar {
    position: static;
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero:not(.hero-canton) .hero-content .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-stat-card {
    padding: 0.875rem 0.5rem;
  }

  .hero-stat-card .stat-number {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .regions-preview-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .urgence-content {
    flex-direction: column;
    text-align: center;
  }

  .urgence-text {
    text-align: center;
  }

  .cantons-grid {
    grid-template-columns: 1fr;
  }

  .dept-stats {
    gap: 1rem;
    font-size: 0.875rem;
  }

  .form-container,
  .devis-form-container {
    padding: 1.5rem;
  }

  .btn-submit {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero:not(.hero-canton) .hero-content .hero-stats {
    grid-template-columns: 1fr;
  }

  .regions-preview-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   35. WIZARD FORM (formulaire multi-etapes)
   ============================================================ */

.wizard-container {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem;
  overflow: visible;
}

.wizard-progress {
  position: relative;
  height: 6px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  margin-bottom: 2rem;
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.wizard-progress-text {
  position: absolute;
  top: 12px;
  right: 0;
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: wizardFadeIn 0.3s ease;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-question {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.wizard-question i {
  color: var(--primary);
  font-size: 1.125rem;
}

/* Options radio-tiles */
.wizard-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.wizard-options-row {
  grid-template-columns: repeat(3, 1fr);
}

.wizard-options-compact {
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.wizard-option {
  cursor: pointer;
  display: block;
}

.wizard-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.wizard-option span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.125rem 0.875rem;
  background: var(--gray-50);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.wizard-option span i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.15rem;
}

.wizard-option span small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.wizard-option:hover span {
  border-color: var(--primary);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.wizard-option input:checked + span {
  border-color: var(--primary);
  background: rgba(0, 119, 182, 0.08);
  color: var(--primary-dark);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

/* Compact options (step 9) — horizontal text only */
.wizard-options-compact .wizard-option span {
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  text-align: left;
}

.wizard-options-compact .wizard-option span::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.wizard-options-compact .wizard-option input:checked + span::before {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px var(--white);
}

/* Text input / textarea steps */
.wizard-field {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
}

.wizard-input {
  padding: 0.875rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.wizard-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.12);
}

.wizard-next-btn {
  align-self: flex-start;
}

/* Navigation */
.wizard-nav {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start;
}

.wizard-back-btn {
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .wizard-container {
    padding: 1.5rem;
  }

  .wizard-options {
    grid-template-columns: 1fr 1fr;
  }

  .wizard-options-row {
    grid-template-columns: 1fr;
  }

  .wizard-question {
    font-size: 1.0625rem;
  }
}

@media (max-width: 480px) {
  .wizard-options {
    grid-template-columns: 1fr;
  }
}

/* Checkbox de consentement RGPD */
.form-group-consent {
  margin-top: 0.5rem;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.consent-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}

.consent-label a {
  color: var(--primary);
  text-decoration: underline;
}

/* ============================================================
   36. SEARCH OVERLAY
   ============================================================ */

.search-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.35rem 0.625rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.search-toggle:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 1.5rem 2rem;
}

.search-overlay.active {
  display: flex;
}

.search-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: wizardFadeIn 0.2s ease;
}

.search-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.search-header i {
  color: var(--primary);
  font-size: 1.125rem;
}

.search-header input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.0625rem;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
}

.search-header input::placeholder {
  color: var(--gray-400);
}

.search-close {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: var(--radius);
  transition: color 0.2s;
}

.search-close:hover {
  color: var(--text);
}

.search-results {
  overflow-y: auto;
  padding: 0.5rem 0;
  flex: 1;
}

.search-result {
  display: block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
  border-bottom: 1px solid var(--gray-50);
}

.search-result:hover,
.search-result.active {
  background: var(--gray-50);
}

.search-result-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 0.15rem;
}

.search-result-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(0, 119, 182, 0.08);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  margin-right: 0.4rem;
}

.search-empty {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Notice Bloctel sous le champ téléphone */
.bloctel-notice {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.3rem;
}

.bloctel-notice i {
  color: var(--primary);
  margin-right: 0.2rem;
}

.bloctel-notice a {
  color: var(--primary);
  text-decoration: underline;
}
