/* ---------------------------------------------------------------------------
   Pages géographiques (répertoire, communes, quartiers) — habillage harmonisé
   avec l'accueil. Chargé après site.css, site-extras.css, typography.css et
   site-skin.css ; les composants partagés (en-tête, pied de page, boutons,
   modale) viennent de site-skin.css.
   --------------------------------------------------------------------------- */

.geo-page { background: #fff; }

/* --- Fil d'Ariane -------------------------------------------------------- */
.geo-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 24px 20px 0;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.geo-breadcrumb a {
  color: var(--ink);
  text-decoration: none;
}

.geo-breadcrumb a:hover { color: var(--red); }

.geo-breadcrumb a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (min-width: 640px) {
  .geo-breadcrumb { padding-inline: 24px; }
}

/* --- En-tête de zone ----------------------------------------------------- */
/* Les pages géo réutilisent le héros de l'accueil (`.home-hero` +
   `components/hero-copy.njk`) : plus de bannière pleine hauteur ni de styles
   propres ici, tout vient de site-skin.css. */

/* --- Contenu éditorial Markdown ----------------------------------------- */
.geo-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 20px 56px;
}

/* #affiner conclut l'article géo : un peu moins de respiration en haut
   qu'à l'accueil, pour rapprocher le bloc de la fin du contenu. */
.site-skin .geo-content + .home-estimation {
  padding-top: 36px;
}

@media (max-width: 820px) {
  .site-skin .geo-content + .home-estimation {
    padding-top: 32px;
  }
}

/* Titre éditorial de la page (le seul H1). Il doit dominer les H2 du contenu —
   sans quoi il passe sous le titre d'accroche du héros et sous les H2 voisins. */
.geo-content h1 {
  margin: 0 0 22px;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.geo-content h2 {
  margin: 44px 0 14px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.geo-content h2:first-child { margin-top: 0; }

.geo-content h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

.geo-content p,
.geo-content li {
  color: #2a2a2a;
  line-height: 1.75;
}

.geo-content p { margin: 0 0 14px; }

.geo-content ul,
.geo-content ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.geo-content li { margin-bottom: 8px; }

.geo-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.geo-content a:hover { color: var(--black); }

.geo-content a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.geo-content blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--cream);
  border-left: 3px solid var(--taupe);
  border-radius: 8px;
  color: #4a453f;
}

.geo-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: var(--shadow-photo);
}

/* --- Galerie (0 à 3 images) --------------------------------------------- */
.geo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  max-width: 1152px;
  margin: 0 auto;
  padding: 40px 20px 0;
}

.geo-gallery figure { margin: 0; }

.geo-gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow-1);
}

.geo-gallery figcaption {
  margin-top: 10px;
  color: var(--ink);
  font-size: .85rem;
  line-height: 1.5;
}

@media (min-width: 640px) {
  .geo-gallery { padding-inline: 24px; }
}

/* --- Vidéo optionnelle --------------------------------------------------- */
.geo-video {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

.geo-video h2 {
  margin: 0 0 14px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.15;
}

.geo-video video {
  display: block;
  width: 100%;
  max-width: 820px;
  border-radius: 18px;
  background: #000;
}

.geo-video-note {
  max-width: 820px;
  margin: 10px 0 0;
  color: var(--ink);
  font-size: .85rem;
}

/* --- Données de marché --------------------------------------------------- */
.geo-market {
  max-width: 1152px;
  margin: 0 auto;
  padding: 56px 20px;
}

.geo-market h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.geo-market-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 0;
}

.geo-market-list div {
  padding: 18px;
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
}

.geo-market-list dt {
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.geo-market-list dd {
  margin: 6px 0 0;
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 800;
}

.geo-market-note {
  margin: 16px 0 0;
  color: var(--ink);
  font-size: .85rem;
}

/* --- Zones liées --------------------------------------------------------- */
.geo-related {
  max-width: none;
  margin: 0;
  padding: 64px 0;
}

.geo-related .site-container { max-width: 1152px; }

.geo-related h2 {
  margin: 0 0 22px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.015em;
}

.geo-related-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.geo-related-list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: 14px;
  color: var(--black);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.geo-related-list a:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
}

.geo-related-list a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.geo-related-list strong {
  font-family: var(--font-brand);
  font-size: 1.05rem;
}

.geo-related-list span {
  color: var(--ink);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* --- Répertoire /immobilier/ -------------------------------------------- */
.geo-directory {
  max-width: 1152px;
  margin: 0 auto;
  padding: 56px 20px;
}

.geo-directory h2 {
  margin: 0 0 22px;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.geo-directory-group + .geo-directory-group { margin-top: 34px; }

.geo-directory-group h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Trois cartes par ligne dans le répertoire. `auto-fill` ne convenait pas :
   il compte les colonnes sur la taille maximale de la piste (360 px), d'où
   deux cartes seulement dans une colonne de contenu de 1112 px. */
.geo-zone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.geo-zone-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: 14px;
  color: var(--black);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.geo-zone-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.geo-zone-card:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.geo-zone-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.geo-zone-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px 20px;
}

.geo-zone-card-name {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  line-height: 1.2;
}

.geo-zone-card-meta {
  color: var(--ink);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* --- CTA final du répertoire -------------------------------------------- */
.geo-directory-cta {
  max-width: none;
  margin: 0;
  padding: 64px 0;
  background: var(--cream);
  text-align: center;
}

.geo-directory-cta .site-container { max-width: 900px; }

.geo-directory-cta h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.geo-directory-cta p {
  margin: 0 0 24px;
  color: #4a453f;
  font-size: 1rem;
  line-height: 1.65;
}

/* --- Prise de rendez-vous (pages géographiques) ------------------------- */
.geo-appointment {
  padding: 64px 0;
  background: var(--cream);
  border-top: 1px solid rgba(231, 227, 219, .65);
}

.geo-appointment-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  max-width: 1050px;
}

.geo-appointment-copy .eyebrow { margin-bottom: 0; }

.geo-appointment-copy h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.geo-appointment-copy p {
  max-width: 60ch;
  margin: 0;
  color: #4a453f;
  font-size: 1rem;
  line-height: 1.65;
}

.geo-appointment-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.geo-appointment-actions .btn {
  width: 100%;
}

.geo-appointment-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--stone);
  border-radius: 14px;
  color: var(--black);
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.geo-appointment-phone:hover {
  border-color: rgba(223, 16, 42, .45);
  box-shadow: var(--shadow-2);
}

.geo-appointment-phone:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 14px;
}

.geo-appointment-phone-icon {
  display: grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(223, 16, 42, .08);
  color: var(--red);
}

.geo-appointment-phone-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.geo-appointment-phone-label {
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.geo-appointment-phone-number {
  color: var(--black);
  font-family: var(--font-brand);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.2;
}

.geo-appointment-consent {
  grid-column: 1 / -1;
  margin: 0;
  color: #5f584f;
  font-size: .8rem;
  line-height: 1.55;
}


/* =========================================================
   Communes desservies — ligne discrète sous le slider
   ========================================================= */

.geo-communes-links {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.7rem;
  margin: 14px 0 0;
  padding: 12px 2px 22px;
  border-top: 1px solid var(--stone);
  color: var(--ink);
  font-size: 0.8rem;
  line-height: 1.5;
}

.geo-communes-links__label {
  flex: 0 0 auto;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.geo-communes-links__list {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
}

.geo-communes-links__item {
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.geo-communes-links__item:hover,
.geo-communes-links__item:focus-visible {
  color: var(--red);
  border-bottom-color: var(--red);
}

.geo-communes-links__item:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.geo-communes-links__sep {
  color: var(--stone);
}

@media (max-width: 640px) {
  .geo-communes-links {
    gap: 0.25rem 0.55rem;
    padding-top: 10px;
    padding-bottom: 18px;
  }

  .geo-communes-links__label {
    flex-basis: 100%;
  }
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1023px) {
  .geo-appointment-inner { grid-template-columns: 1fr; }
  .geo-appointment-actions { align-items: stretch; }
  .geo-appointment-actions .btn { width: 100%; }
  .geo-appointment-phone { justify-content: flex-start; }
}

@media (max-width: 820px) {
  .geo-gallery,
  .geo-related-list,
  .geo-market-list { grid-template-columns: 1fr; }
  .geo-content { padding-top: 44px; padding-bottom: 44px; }
  .geo-directory { padding-block: 44px; }
  .geo-related { padding-block: 48px; }
  .geo-appointment { padding-block: 48px; }
  .geo-directory-cta { padding-block: 48px; }
}

@media (max-width: 899px) {
  .geo-zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .geo-zone-grid { grid-template-columns: 1fr; }
}
