/* ============================================
   RAMONEUR AUBE - Styles Globaux
   ============================================ */

/* Variables CSS */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --secondary: #e94560;
  --accent: #f39c12;
  --accent-dark: #d68910;
  --success: #27ae60;
  --warning: #f1c40f;
  --danger: #e74c3c;
  --light: #f8f9fa;
  --dark: #212529;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --white: #ffffff;
  --shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
}

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

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

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

ul {
  list-style: none;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-top {
  background: var(--secondary);
  padding: 8px 0;
  text-align: center;
}

.header-top a {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
}

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

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
}

.logo img {
  height: 50px;
}

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

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-list {
  display: flex;
  gap: 25px;
}

.nav-list a {
  color: var(--white);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--secondary);
  color: var(--white) !important;
  padding: 12px 25px !important;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.nav-logo-partner {
  height: 40px;
  width: auto;
  margin-left: 15px;
  background: var(--white);
  padding: 5px 10px;
  border-radius: var(--radius);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 5%;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: url('../images/hero-bg.jpg') center/cover;
  opacity: 0.1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--accent);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.8;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

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

.btn-primary:hover {
  background: #d63850;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--white);
}

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

.btn-secondary:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--dark);
}

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

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

/* Variante pour fonds sombres */
.hero .btn-outline,
.section-dark .btn-outline,
.urgence-banner .btn-outline {
  border-color: var(--white);
  color: var(--white);
}

.hero .btn-outline:hover,
.section-dark .btn-outline:hover,
.urgence-banner .btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

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

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 80px 5%;
}

.section-light {
  background: var(--light);
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary);
}

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

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

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

/* ============================================
   CARDS - SERVICES
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.service-card p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* ============================================
   AVANTAGES
   ============================================ */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.avantage-card {
  display: flex;
  gap: 20px;
  padding: 25px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.avantage-number {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--dark);
  flex-shrink: 0;
}

.avantage-content h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.avantage-content p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ============================================
   ZONES / CANTONS
   ============================================ */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
}

.zone-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
  transition: var(--transition);
}

.zone-card:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-lg);
}

.zone-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zone-card .zone-count {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.zone-villes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zone-villes a {
  font-size: 0.9rem;
  color: var(--gray);
  padding: 4px 10px;
  background: var(--light);
  border-radius: 15px;
  transition: var(--transition);
}

.zone-villes a:hover {
  background: var(--accent);
  color: var(--dark);
}

/* ============================================
   FORMULAIRE
   ============================================ */
.form-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 50px;
  box-shadow: var(--shadow-lg);
  overflow: visible;
}

.form-container h2 {
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  overflow: visible;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.form-group label .required {
  color: var(--secondary);
}

.form-control {
  width: 100%;
  padding: 15px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

.form-submit .form-disclaimer {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 15px;
}

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

.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 250px;
  overflow-y: auto;
  z-index: 9999;
  display: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.autocomplete-results.show {
  display: block;
}

.autocomplete-item {
  padding: 12px 15px;
  cursor: pointer;
  border-bottom: 1px solid var(--gray-light);
  transition: var(--transition);
}

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

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--light);
}

.autocomplete-item .ville-nom {
  display: block;
  font-weight: 600;
  color: var(--primary);
}

.autocomplete-item .ville-nom strong {
  color: var(--secondary);
}

.autocomplete-item .ville-canton {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-top: 2px;
}

.autocomplete-item.no-results {
  color: var(--gray);
  font-style: italic;
  cursor: default;
}

.autocomplete-item.no-results:hover {
  background: transparent;
}

/* ============================================
   AVIS CLIENTS
   ============================================ */
.avis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
}

.avis-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.avis-stars {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.avis-text {
  color: var(--dark);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7;
}

.avis-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avis-avatar {
  width: 50px;
  height: 50px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--dark);
}

.avis-info h4 {
  font-size: 1rem;
  color: var(--primary);
}

.avis-info span {
  font-size: 0.85rem;
  color: var(--gray);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.trust-badge {
  text-align: center;
  padding: 20px;
}

.trust-badge img {
  height: 50px;
  margin-bottom: 10px;
}

.trust-badge span {
  display: block;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

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

.faq-item.active .faq-answer {
  padding: 0 25px 20px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.7;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 15px 5%;
  background: var(--light);
  border-bottom: 1px solid var(--gray-light);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1400px;
  margin: 0 auto;
  font-size: 0.9rem;
}

.breadcrumb-list li::after {
  content: '>';
  margin-left: 10px;
  color: var(--gray);
}

.breadcrumb-list li:last-child::after {
  display: none;
}

.breadcrumb-list a {
  color: var(--gray);
}

.breadcrumb-list a:hover {
  color: var(--secondary);
}

.breadcrumb-list li:last-child {
  color: var(--primary);
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--primary);
  color: var(--white);
  padding: 60px 5% 30px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  margin-top: 15px;
  opacity: 0.8;
  line-height: 1.7;
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul a {
  color: rgba(255, 255, 255, 0.8);
}

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

.footer-certifs {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.footer-certif {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.footer-bottom {
  max-width: 1400px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  opacity: 0.7;
  font-size: 0.9rem;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   PAGE VILLE
   ============================================ */
.ville-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ville-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.ville-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}

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

.ville-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.ville-hero h1 span {
  color: var(--accent);
  display: inline-block;
}

.ville-hero > .container > p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.ville-infos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.ville-info {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 25px 35px;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 160px;
}

.ville-info strong {
  display: block;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 5px;
}

.ville-info span,
.ville-info:not(:has(span)) {
  font-size: 0.95rem;
  opacity: 0.9;
}

.ville-hero .hero-buttons {
  margin-top: 35px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.ville-hero .hero-buttons .btn {
  min-width: 180px;
}

/* Contenu texte enrichi */
.content-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--dark);
}

.content-text p {
  margin-bottom: 20px;
  line-height: 1.9;
}

.content-text ul {
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.content-text ul li {
  position: relative;
  padding: 12px 0 12px 35px;
  border-bottom: 1px solid var(--gray-light);
}

.content-text ul li:last-child {
  border-bottom: none;
}

.content-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Prix dans les cartes service */
.service-card .price {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--gray-light);
  color: var(--secondary);
  font-size: 1.1rem;
}

.service-card .price strong {
  font-size: 1.25rem;
}

/* Section FAQ améliorée */
.faq-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

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

.faq-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

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

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 300;
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-item.active .faq-question {
  background: var(--light);
}

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

.faq-item.active .faq-answer {
  padding: 20px 25px;
  max-height: 500px;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.7;
  margin: 0;
}

/* Communes voisines amélioré */
.communes-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.communes-list p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.communes-list a {
  padding: 10px 20px;
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: 25px;
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.communes-list a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
}

/* Section introduction avec icône */
.intro-section {
  position: relative;
}

.intro-section .section-header::before {
  content: '🏠';
  font-size: 3rem;
  display: block;
  margin-bottom: 20px;
}

/* Responsive ville */
@media (max-width: 768px) {
  .ville-hero {
    padding: 60px 5%;
  }

  .ville-hero h1 {
    font-size: 2rem;
  }

  .ville-infos {
    flex-direction: column;
    align-items: center;
  }

  .ville-info {
    width: 100%;
    max-width: 280px;
  }

  .content-text ul li {
    padding-left: 30px;
  }

  .faq-question {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}

/* ============================================
   PAGE CANTON
   ============================================ */
.canton-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 5%;
  text-align: center;
}

.canton-hero h1 span {
  color: var(--accent);
}

.canton-hero p {
  max-width: 700px;
  margin: 0 auto;
}

.canton-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
}

.villes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.ville-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.ville-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--accent);
}

.ville-card h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.ville-card .population {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ============================================
   PROCESS / ETAPES
   ============================================ */
.process-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--gray-light);
}

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

.step-number {
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: var(--shadow);
}

.process-step h3 {
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--gray);
}

/* ============================================
   URGENCE BANNER
   ============================================ */
.urgence-banner {
  background: var(--secondary);
  color: var(--white);
  padding: 15px 5%;
  text-align: center;
}

.urgence-banner p {
  font-size: 1.1rem;
}

.urgence-banner a {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-buttons {
    justify-content: center;
  }

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

  .process-steps {
    flex-direction: column;
    gap: 30px;
  }

  .process-steps::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .header-main {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 20px;
  }

  .nav.active {
    display: flex;
  }

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

  .nav-list a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: flex;
  }

  .nav-logo-partner {
    display: none;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .section {
    padding: 50px 5%;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

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

  .form-container {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

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

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .canton-stats {
    flex-direction: column;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.6rem;
  }

  .btn {
    width: 100%;
  }

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

  .trust-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-center {
  text-align: center;
}

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

.text-accent {
  color: var(--accent);
}

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

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ============================================
   FORMULAIRE MULTI-ETAPES (WIZARD DEVIS)
   ============================================ */

.form-wizard {
  position: relative;
}

/* --- Barre de progression --- */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

.wizard-progress .step-dot {
  width: 34px;
  height: 6px;
  border-radius: 999px;
  background: var(--gray-light);
  transition: var(--transition);
}

.wizard-progress .step-dot.active {
  background: var(--accent);
}

.wizard-progress .step-dot.done {
  background: var(--success);
}

/* --- Etapes --- */
.wizard-step {
  display: none;
  animation: wizardFadeIn 0.25s ease;
}

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

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

@media (prefers-reduced-motion: reduce) {
  .wizard-step { animation: none; }
}

.wizard-step-counter {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
  margin-bottom: 8px;
}

.wizard-step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.wizard-step-subtitle {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 24px;
}

/* --- Options radio en cartes cliquables --- */
.wizard-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.wizard-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--white);
  transition: var(--transition);
}

.wizard-option:hover {
  border-color: var(--accent);
  background: #fffaf2;
  transform: translateY(-2px);
}

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

.wizard-option .option-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light);
  color: var(--secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

.wizard-option .option-label {
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
}

.wizard-option:has(input[type="radio"]:checked),
.wizard-option.selected {
  border-color: var(--secondary);
  background: #fdf2f4;
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.12);
}

.wizard-option:has(input[type="radio"]:checked) .option-icon,
.wizard-option.selected .option-icon {
  background: var(--secondary);
  color: var(--white);
}

.wizard-option:focus-within {
  outline: 3px solid rgba(243, 156, 18, 0.45);
  outline-offset: 2px;
}

/* --- Grille de champs (etape coordonnees) --- */
.wizard-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.wizard-fields-grid .form-group {
  margin-bottom: 0;
}

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

/* --- Cases a cocher de consentement --- */
.wizard-consent {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--light);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
}

.wizard-consent input[type="checkbox"] {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--secondary);
}

.wizard-consent label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: 0.87rem;
  line-height: 1.5;
  color: var(--dark);
  cursor: pointer;
}

.wizard-consent label a {
  text-decoration: underline;
}

.wizard-consent.has-error {
  border-color: var(--danger);
  background: #fdeceb;
}

/* --- Navigation --- */
.wizard-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
}

.wizard-nav .btn-wizard-prev {
  background: none;
  border: none;
  padding: 10px 4px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
}

.wizard-nav .btn-wizard-prev:hover {
  color: var(--primary);
}

.wizard-nav .btn-wizard-next,
.wizard-nav .btn-wizard-submit {
  margin-left: auto;
}

/* --- Messages d'erreur / succes --- */
.wizard-field-error {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--danger);
}

/* Le message d'erreur d'un groupe d'options est un enfant direct de la
   grille : il doit occuper toute la largeur et non une seule colonne. */
.wizard-options > .wizard-field-error {
  grid-column: 1 / -1;
  margin-top: 2px;
}

/* Idem dans les blocs de consentement : ce sont des conteneurs flex
   (case a cocher + libelle). Sans cette regle le message d'erreur devient
   une troisieme colonne de quelques dizaines de pixels de large, illisible
   — le visiteur ne comprend pas pourquoi son envoi ne part pas. */
.wizard-consent > .wizard-field-error {
  flex: 1 0 100%;
  margin-top: 2px;
}

.wizard-alert {
  margin-top: 20px;
  margin-bottom: 4px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
}

.wizard-alert-error {
  background: #fdeceb;
  border: 1px solid var(--danger);
  color: #8c1c13;
}

.wizard-alert-success {
  background: #e8f8ef;
  border: 1px solid var(--success);
  color: #145c37;
}

.wizard-alert-info {
  background: #eef4fb;
  border: 1px solid #b9d2ec;
  color: #1c3f63;
}

/* Recapitulatif des champs a corriger, affiche juste au-dessus du bouton
   d'envoi apres un clic infructueux. */
.wizard-alert-title {
  margin: 0;
  font-weight: 700;
}

.wizard-alert-list {
  margin: 8px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.wizard-alert-list li {
  margin-top: 3px;
}

.form-control.error,
.wizard-options.has-error .wizard-option {
  border-color: var(--danger);
}

.form-wizard.is-sending {
  opacity: 0.6;
  pointer-events: none;
}

/* --- Reassurance sous le formulaire --- */
.wizard-trust {
  margin-top: 22px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .wizard-options,
  .wizard-fields-grid {
    grid-template-columns: 1fr;
  }

  .wizard-step-title {
    font-size: 1.2rem;
  }

  .wizard-progress .step-dot {
    width: 24px;
  }

  .wizard-nav {
    flex-wrap: wrap;
  }

  .wizard-nav .btn-wizard-next,
  .wizard-nav .btn-wizard-submit {
    width: 100%;
    margin-left: 0;
  }
}
