/* ============================================
   COUVREUR MOSELLE - CSS PAGES VILLES
   ============================================ */

/* Variables CSS (fallback si style.css ne les définit pas) */
:root {
  --primary: #2C3E50;
  --secondary: #C0392B;
  --accent: #F39C12;
  --success: #27AE60;
  --light-bg: #ECF0F1;
  --dark-bg: #1A252F;
  --text: #2C3E50;
  --white: #ffffff;
  --gray-200: #e9ecef;
  --gray-500: #6c757d;
  --shadow: 0 2px 15px rgba(0,0,0,0.1);
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

/* ---------- VILLE HERO ---------- */
.ville-hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, #2C3E50 50%, #34495E 100%);
  color: #fff;
  padding: 100px 0 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ville-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(243,156,18,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.ville-hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(192,57,43,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.ville-hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.ville-hero .hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.85;
  margin-bottom: 25px;
}

/* ---------- VILLE INFOS ---------- */
.ville-infos {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.ville-info {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 15px 25px;
  text-align: center;
  min-width: 150px;
}

.ville-info-icon {
  font-size: 1.5rem;
  margin-bottom: 5px;
  display: block;
}

.ville-info-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.65;
  margin-bottom: 3px;
}

.ville-info-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

/* ---------- CONTENT TEXT ENHANCEMENTS ---------- */
.ville-content .content-text {
  max-width: 850px;
}

.ville-content .content-text h2 {
  font-size: 1.6rem;
  margin-top: 40px;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.ville-content .content-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, var(--accent), #e67e22);
  border-radius: 3px;
}

.ville-content .content-text p {
  font-size: 1rem;
  line-height: 1.85;
}

/* ---------- SERVICES CARDS IN VILLE ---------- */
.ville-services .services-grid {
  grid-template-columns: repeat(2, 1fr);
}

.ville-services .service-card {
  text-align: center;
}

.ville-services .service-card .icon {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.ville-services .service-card .price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  margin: 10px 0;
}

.ville-services .service-card .price-prefix {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--gray-500);
  display: block;
}

/* ---------- AVANTAGES GRID ---------- */
.avantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.avantage-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

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

.avantage-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #F39C12, #E67E22, #C0392B);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.avantage-card p {
  font-size: 0.92rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ---------- FAQ ENHANCEMENTS FOR VILLE ---------- */
.ville-faq .faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}

.ville-faq .faq-question {
  padding: 18px 22px;
  font-size: 1rem;
}

.ville-faq .faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(243,156,18,0.1);
}

/* ---------- COMMUNES VOISINES ---------- */
.communes-voisines {
  padding: 50px 0;
  background: var(--light-bg);
}

.communes-voisines h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.5rem;
}

.communes-voisines .communes-list {
  max-width: 900px;
  margin: 0 auto;
}

.communes-voisines .communes-list a {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 8px 18px;
  border-radius: 25px;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.communes-voisines .communes-list a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243,156,18,0.25);
}

/* ---------- VILLE FORM ---------- */
.ville-form .form-container {
  border-top: 4px solid var(--accent);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
  .ville-hero {
    padding: 60px 0 40px;
  }

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

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

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

  .ville-info {
    min-width: 200px;
    padding: 12px 20px;
  }

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

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

  .avantage-number {
    font-size: 2.5rem;
  }

  .communes-voisines .communes-list a {
    font-size: 0.82rem;
    padding: 6px 12px;
  }
}

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

  .ville-info {
    min-width: 160px;
  }

  .ville-info-value {
    font-size: 1rem;
  }
}
