/* ============================================
   POMPE À CHALEUR VOSGES - STYLES PAGES VILLES
   ============================================ */

/* ============================================
   VILLE HERO
   ============================================ */

.ville-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

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

.ville-hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -50px;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.ville-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.ville-hero h1 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: 0.75rem;
}

.ville-hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

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

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

.ville-info-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.ville-info-label {
  font-size: 0.875rem;
  opacity: 0.85;
}

.ville-hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ville-hero .btn-outline {
  color: var(--text-white);
  border-color: var(--text-white);
}

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

/* ============================================
   VILLE INTRODUCTION
   ============================================ */

.ville-intro {
  padding: 4rem 0;
}

.ville-intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.ville-intro h2 {
  margin-bottom: 1.5rem;
  text-align: center;
}

.ville-intro p {
  color: var(--text-light);
  line-height: 1.8;
  text-align: justify;
}

.content-text ul {
  margin: 1.5rem 0;
}

.content-text ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-light);
}

.content-text ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-text ul li::after {
  content: '✓';
  position: absolute;
  left: 4px;
  top: 0.35rem;
  font-size: 0.75rem;
  color: white;
  font-weight: bold;
}

/* ============================================
   VILLE SERVICES
   ============================================ */

.ville-services {
  padding: 4rem 0;
  background: var(--bg-alt);
}

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

.service-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

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

.service-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--text-white);
}

.service-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-light);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-card .price {
  display: inline-block;
  background: var(--bg-alt);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9375rem;
}

/* ============================================
   VILLE AVANTAGES
   ============================================ */

.ville-avantages {
  padding: 4rem 0;
}

.avantages-numbered {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.avantage-numbered {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.avantage-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.avantage-text h4 {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.avantage-text p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================
   VILLE FAQ
   ============================================ */

.ville-faq {
  padding: 4rem 0;
  background: var(--bg-alt);
}

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

.faq-item {
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

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

.faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.faq-toggle svg {
  width: 14px;
  height: 14px;
  color: var(--primary);
  transition: transform var(--transition);
}

.faq-item.active .faq-toggle {
  background: var(--primary);
}

.faq-item.active .faq-toggle svg {
  color: var(--text-white);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.faq-answer-content {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-light);
  line-height: 1.7;
}

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

/* ============================================
   COMMUNES VOISINES
   ============================================ */

.communes-voisines {
  padding: 4rem 0;
}

.communes-voisines-header {
  text-align: center;
  margin-bottom: 2rem;
}

.communes-voisines-header h2 {
  margin-bottom: 0.5rem;
}

.communes-voisines-header p {
  color: var(--text-light);
}

.communes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.commune-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.commune-link:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

.commune-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* ============================================
   VILLE FORMULAIRE
   ============================================ */

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

.ville-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.ville-form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ville-form-header h2 {
  margin-bottom: 0.5rem;
}

.ville-form-header p {
  color: var(--text-light);
}

/* ============================================
   URGENCE SECTION
   ============================================ */

.ville-urgence {
  background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
  color: var(--text-white);
  padding: 3rem 0;
  text-align: center;
}

.ville-urgence h3 {
  color: var(--text-white);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.ville-urgence p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.ville-urgence .btn {
  background: var(--text-white);
  color: var(--danger);
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.ville-urgence .btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* ============================================
   STATS SECTION
   ============================================ */

.ville-stats {
  padding: 3rem 0;
  background: var(--bg);
}

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

.stat-item {
  padding: 1.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   RESPONSIVE PAGES VILLES
   ============================================ */

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

@media (max-width: 768px) {
  .ville-hero {
    padding: 3rem 0;
  }

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

  .ville-hero-subtitle {
    font-size: 1.0625rem;
  }

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

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

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

  .ville-hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

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

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

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

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-value {
    font-size: 1.75rem;
  }

  .section, .ville-intro, .ville-services,
  .ville-avantages, .ville-faq, .communes-voisines,
  .ville-form-section {
    padding: 3rem 0;
  }
}

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

  .commune-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }
}
