/* =====================================================
   Bons plans – IDEE&CO
   Page spécifique : zone-intervention.php
   ===================================================== */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px 50px
}

.breadcrumb {
  font-size: .95rem;
  margin: 10px 0 12px;
  color: #666
}

.breadcrumb a {
  color: #666;
  text-decoration: none
}

.intro {
  background: #f9f9f9;
  border-left: 4px solid #da532c;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0
}

.stats-hero {
  background: linear-gradient(135deg, #da532c 0%, #b86b3c 100%);
  padding: 50px 30px;
  border-radius: 16px;
  color: #fff;
  text-align: center;
  margin: 30px 0;
  box-shadow: 0 8px 24px rgba(218, 83, 44, 0.25);
}

.stats-hero h2 {
  margin: 0 0 30px;
  font-size: clamp(26px, 4vw, 36px);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15)
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin: 25px 0
}

.stat-box {
  text-align: center
}

.stat-number {
  font-size: clamp(44px, 8vw, 64px);
  font-weight: 800;
  display: block;
  margin-bottom: 8px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2)
}

.stat-label {
  font-size: clamp(15px, 2.5vw, 18px);
  opacity: 0.95
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0
}

.category-card {
  background: #fff;
  border: 2px solid #e5e5e5;
  border-radius: 14px;
  padding: 26px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: #da532c;
  box-shadow: 0 12px 30px rgba(218, 83, 44, 0.2);
}

.category-card h3 {
  margin: 0 0 10px;
  color: #da532c;
  font-size: clamp(19px, 3vw, 23px)
}

.category-card .ville-count {
  display: inline-block;
  background: #da532c;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.category-card p {
  margin: 0 0 15px;
  color: #666;
  line-height: 1.6;
  font-size: 15px
}

.category-card .cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #da532c;
  font-weight: 700;
  font-size: 15px;
}

.villes-section {
  margin: 50px 0
}

.villes-section h2 {
  color: #da532c;
  font-size: clamp(24px, 3.5vw, 30px);
  margin: 0 0 25px;
  border-bottom: 3px solid #da532c;
  padding-bottom: 12px
}

.villes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

/* VILLE CLIQUABLE - CORRIGÉ */
.ville-item {
  position: relative;
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 15px;
  text-align: center;
  transition: all 0.2s;
  font-weight: 500;
  cursor: pointer;
  z-index: 1;
  /* Base z-index */
}

.ville-item:hover {
  background: #fff;
  border-color: #da532c;
  color: #da532c;
  font-weight: 700;
  /* ⚠️ PAS DE TRANSFORM ICI */
}

/* Quand la ville est active (menu ouvert) */
.ville-item.active {
  z-index: 10000;
  /* ⬅️ TRÈS IMPORTANT : AU-DESSUS DE TOUT */
  background: #fff;
  border-color: #da532c;
  color: #da532c;
  font-weight: 700;
}

/* MENU DÉROULANT - CORRIGÉ */
.ville-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 2px solid #da532c;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  padding: 8px;
  display: none;
  min-width: 240px;
  white-space: nowrap;
}

.ville-item.active .ville-menu {
  display: block;
}

.ville-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.ville-menu a:hover {
  background: #fef5f0;
  border-color: #da532c;
  color: #da532c;
  transform: translateX(4px);
}

.ville-menu .icon {
  font-size: 18px
}

/* Message si aucune catégorie */
.ville-menu .no-pages {
  padding: 12px;
  color: #999;
  font-style: italic;
  text-align: center;
  font-size: 14px;
}

.cta-box {
  background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
  color: #fff;
  padding: 45px 30px;
  border-radius: 16px;
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-box h3 {
  margin: 0 0 18px;
  font-size: clamp(24px, 4vw, 30px)
}

.cta-box p {
  margin: 0 0 28px;
  font-size: clamp(16px, 2.5vw, 18px);
  opacity: 0.9;
  line-height: 1.5
}

.btn-cta {
  display: inline-block;
  background: #da532c;
  color: #fff;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  margin: 8px;
  font-size: 16px;
  transition: all 0.3s;
  box-shadow: 0 4px 14px rgba(218, 83, 44, 0.35);
}

.btn-cta:hover {
  background: #b86b3c;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(218, 83, 44, 0.45);
}

.info-box {
  background: #fff;
  border: 2px solid #da532c;
  border-radius: 12px;
  padding: 28px;
  margin: 35px 0;
}

.info-box h3 {
  color: #da532c;
  margin-top: 0;
  font-size: 22px
}

.info-box p {
  line-height: 1.7;
  margin: 12px 0
}

.info-box a {
  color: #da532c;
  font-weight: 700;
  text-decoration: none
}

.info-box a:hover {
  text-decoration: underline
}

@media (max-width:768px) {
  .stats-grid {
    gap: 30px
  }

  .categories-grid {
    grid-template-columns: 1fr
  }

  .villes-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr))
  }
}