/* ============================================================
   Hub national /prix-immobilier/ — design dédié.
   Réutilise les tokens globaux + les .terr-* du gabarit commune
   (hero, boutons, fil d'Ariane) ; ajoute ici les blocs propres au hub.
   Site en thème clair uniquement.
   ============================================================ */

/* ---------- Chiffres clés (hero) ---------- */
.hub-cles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}
.hub-cle {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hub-cle__val {
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--color-primary-dark);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.hub-cle__lab {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.3;
}

/* ---------- Corps ---------- */
.hub-corps {
  padding: var(--spacing-2xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: 3.25rem;
}
.hub-titre {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -.015em;
  color: var(--color-text-primary);
  margin: 0;
}
.hub-soustitre {
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  margin: .4rem 0 var(--spacing-lg);
  max-width: 60ch;
}

/* ---------- Villes populaires ---------- */
.hub-villes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--spacing-md);
}
.hub-villes a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--spacing-md) 1.05rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hub-villes a:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hub-ville__nom {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--font-size-lg);
}
.hub-ville__prix {
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-bold);
  font-variant-numeric: tabular-nums;
}
.hub-ville__dept { font-size: var(--font-size-sm); color: var(--color-text-muted); }

/* ---------- Régions & départements ---------- */
.hub-region { margin-top: var(--spacing-xl); }
.hub-region:first-of-type { margin-top: 0; }
.hub-region__nom {
  display: flex;
  align-items: baseline;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-md);
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--color-border-light);
}
.hub-region__compte {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}
.hub-depts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--spacing-md);
}
.hub-depts a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
  padding: 1rem 1.1rem;
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.hub-depts a:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hub-dept__corps { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hub-dept__nom {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  font-size: var(--font-size-md);
}
.hub-dept__meta { font-size: var(--font-size-sm); color: var(--color-text-muted); }
.hub-dept__meta strong { color: var(--color-primary-dark); }
.hub-dept__fleche { color: var(--color-primary); flex: none; transition: transform .15s; }
.hub-depts a:hover .hub-dept__fleche { transform: translateX(3px); }

/* ---------- Bloc méthode (confiance) ---------- */
.hub-methode {
  background:
    radial-gradient(900px 300px at 100% 0%, rgba(255, 110, 20, .08), transparent 60%),
    linear-gradient(180deg, var(--color-bg-secondary) 0%, var(--color-bg-warm) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 4vw, 2.75rem);
}
.hub-methode__contenu { max-width: 62ch; }
.hub-methode__contenu p {
  font-size: var(--font-size-md);
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-lg);
}
.hub-methode .terr-surtitre { margin-bottom: var(--spacing-xs); }
.hub-methode .hub-titre { margin-bottom: var(--spacing-md); }

/* ---------- FAQ ---------- */
.hub-faq { display: flex; flex-direction: column; gap: var(--spacing-sm); }
.hub-faq details {
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hub-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}
.hub-faq summary::-webkit-details-marker { display: none; }
.hub-faq summary::after {
  content: "";
  width: 10px; height: 10px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
  transition: transform .15s;
  flex: none;
}
.hub-faq details[open] summary::after { transform: rotate(-135deg); }
.hub-faq details[open] summary { border-bottom: 1px solid var(--color-border-light); }
.hub-faq details p {
  margin: 0;
  padding: 1rem 1.2rem 1.15rem;
  font-size: var(--font-size-md);
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.hub-source { margin-top: var(--spacing-md); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hub-cles { grid-template-columns: repeat(2, 1fr); }
  .hub-corps { padding: var(--spacing-xl) var(--spacing-md); gap: 2.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-villes a, .hub-depts a, .hub-dept__fleche, .hub-faq summary::after { transition: none; }
  .hub-villes a:hover, .hub-depts a:hover { transform: none; }
}

/* ---------- Articles liés (À lire aussi), miroir de commune.css ---------- */
.terr-articles {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-sm);
}
.terr-articles a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--spacing-md);
  background: var(--color-bg-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.terr-articles a:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.terr-articles__titre { font-weight: var(--font-weight-semibold); color: var(--color-text-primary); }
.terr-articles__extrait { font-size: var(--font-size-sm); color: var(--color-text-muted); line-height: 1.4; }
@media (prefers-reduced-motion: reduce) {
  .terr-articles a { transition: none; }
  .terr-articles a:hover { transform: none; }
}
