/* Notre terroir — modules éditoriaux de l’accueil, sans les anciens cadres. */
.page-terroir .hb-container {
  width: min(1180px, calc(100% - 128px));
  margin-inline: auto;
}
.page-terroir .hb-section { padding-block: 90px; scroll-margin-top: 120px; }
.page-terroir .hb-heading {
  margin: 0 0 28px;
  font: 400 clamp(38px, 4.8vw, 64px)/1.04 Baskerville, Georgia, 'Times New Roman', serif;
  letter-spacing: -.025em;
  text-transform: none;
  color: var(--c-dark);
}
.page-terroir .hb-heading em { font-weight: 400; }
.page-terroir .hb-copy { font-size: 16px; line-height: 1.8; }
.page-terroir .hb-copy p {
  margin: 0 0 22px;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}
.page-terroir .hb-copy .hb-kicker {
  margin-bottom: 24px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1.5;
  text-align: left;
  text-transform: uppercase;
}
.page-terroir .hb-more {
  display: inline-block;
  padding-block: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--c-dark);
  font-size: 13px;
  line-height: 1.7;
  text-decoration: none;
}
.page-terroir .hb-more span { margin-left: 20px; }
.page-terroir .hb-more:hover { border-color: transparent; }
.page-terroir .hb-container a:focus-visible {
  outline: 2px solid var(--c-dark);
  outline-offset: 5px;
}
.page-terroir .hb-container figure { margin: 0; min-width: 0; }
.page-terroir .hb-container figure > a { display: block; }
.page-terroir .hb-container figure img { display: block; width: 100%; height: auto; object-fit: cover; }
.page-terroir .hb-container figcaption { margin-top: 12px; font-size: 11px; line-height: 1.5; color: var(--c-text); }

/* La photographie d’ouverture garde le village et les vignes dans le cadre. */
.page-terroir .hb-terroir-hero {
  height: clamp(400px, 62svh, 620px);
  isolation: isolate;
  overflow: hidden;
}
.page-terroir .hb-terroir-hero .banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% 48%;
  z-index: -2;
}
.page-terroir .hb-terroir-hero::after {
  content: '';
  position: absolute;
  inset: 30% 0 0;
  background: linear-gradient(transparent, rgba(30, 27, 20, .58));
  z-index: -1;
}
.page-terroir .hb-terroir-hero__content {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 48px;
  color: var(--c-paper);
}
.page-terroir .hb-terroir-hero h1 {
  margin: 0;
  color: inherit;
  font: 400 clamp(60px, 7.8vw, 112px)/1 Baskerville, Georgia, 'Times New Roman', serif;
  letter-spacing: -.035em;
  text-transform: none;
}
.page-terroir .hb-terroir-hero__content p { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; }
.page-terroir .hb-breadcrumb { padding-block: 28px 0; font-size: 11px; }
.page-terroir .hb-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.page-terroir .hb-breadcrumb li + li::before { content: '/'; margin-right: 12px; opacity: .5; }
.page-terroir .hb-breadcrumb a { color: inherit; text-decoration: none; }
.page-terroir .hb-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Un portrait et un détail sous le texte, puis la même grille en miroir. */
.page-terroir .hb-portrait-detail { display: grid; grid-template-columns: 43% 49%; gap: 8%; align-items: start; }
.page-terroir .hb-portrait { padding-top: 12px; }
.page-terroir .hb-portrait img { aspect-ratio: 3 / 4; }
.page-terroir .hb-detail-story { min-width: 0; }
.page-terroir .hb-container .hb-detail { margin-top: 40px; }
.page-terroir .hb-detail img { aspect-ratio: 1.6; }
@media (min-width: 701px) {
  .page-terroir .hb-category--reverse .hb-portrait-detail { grid-template-columns: 49% 43%; }
  .page-terroir .hb-category--reverse .hb-portrait { grid-column: 2; grid-row: 1; }
  .page-terroir .hb-category--reverse .hb-detail-story { grid-column: 1; grid-row: 1; }
}

/* Les gravures se prolongent entre les chapitres, comme sur la page d’accueil. */
.page-terroir .hb-story-flow { position: relative; isolation: isolate; overflow: clip; }
.page-terroir .hb-story-flow > .brion-section { overflow: visible; isolation: auto; }
.page-terroir .hb-story-flow .hb-container { position: relative; z-index: 1; }
.page-terroir .hb-story-flow .hb-motif--pierre {
  top: 280px; left: -250px; width: min(52vw, 720px); opacity: .12;
}
.page-terroir .hb-story-flow .hb-motif--vigne {
  top: 340px; left: auto; right: -210px; width: min(48vw, 650px); opacity: .12;
  transform: rotate(12deg);
}
.page-terroir .hb-next { padding-block: 105px; background: var(--c-stone); }
.page-terroir .hb-next__layout { display: grid; grid-template-columns: 43% 49%; gap: 8%; align-items: center; }
.page-terroir .hb-next__photo img { aspect-ratio: 4 / 3; }
.page-terroir .hb-next .hb-copy { max-width: 460px; }
.page-terroir .hb-next .hb-more { margin-top: 12px; }

@media (max-width: 1000px) {
  .page-terroir .hb-container { width: calc(100% - 80px); }
  .page-terroir .hb-section { padding-block: 65px; }
  .page-terroir .hb-heading { font-size: clamp(36px, 4.8vw, 52px); }
  .page-terroir .hb-copy { font-size: 15px; }
  .page-terroir .hb-container .hb-detail { margin-top: 32px; }
}
@media (max-width: 700px) {
  .page-terroir .hb-container { width: calc(100% - 48px); }
  .page-terroir .hb-section { padding-block: 46px; scroll-margin-top: 85px; }
  .page-terroir .hb-heading { font-size: clamp(35px, 8.2vw, 48px); margin-bottom: 24px; }
  .page-terroir .hb-terroir-hero { height: 460px; max-height: 70svh; min-height: 350px; }
  .page-terroir .hb-terroir-hero__content { flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 18px; padding-bottom: 32px; }
  .page-terroir .hb-terroir-hero h1 { font-size: clamp(54px, 12vw, 76px); }
  .page-terroir .hb-terroir-hero__content p { font-size: 10px; margin: 0; }
  .page-terroir .hb-breadcrumb { padding-top: 22px; }
  .page-terroir .hb-portrait-detail { grid-template-columns: 1fr; gap: 32px; }
  .page-terroir .hb-portrait { width: 78%; padding-top: 0; }
  .page-terroir .hb-detail-story { padding-left: 10%; }
  .page-terroir .hb-category--reverse .hb-portrait { justify-self: end; }
  .page-terroir .hb-category--reverse .hb-detail-story { padding-left: 0; padding-right: 10%; }
  .page-terroir .hb-container .hb-detail { margin-top: 28px; }
  .page-terroir .hb-detail img { aspect-ratio: 1.35; }
  .page-terroir .hb-container figcaption { margin-top: 8px; font-size: 10px; }
  .page-terroir .hb-story-flow .hb-motif--pierre { top: 240px; left: -260px; width: 460px; opacity: .08; }
  .page-terroir .hb-story-flow .hb-motif--vigne { top: 320px; right: -280px; width: 460px; opacity: .08; }
  .page-terroir .hb-next { padding-block: 56px; }
  .page-terroir .hb-next__layout { grid-template-columns: 1fr; gap: 32px; }
  .page-terroir .hb-next__photo { width: 90%; justify-self: end; }
}

/* Les cartes postales remplacent le portrait de tuffeau, sans recadrage. */
.page-terroir .hb-postcards { display: grid; gap: 32px; }
.page-terroir .hb-postcards figure:first-child { width: min(100%, 433px); }
.page-terroir .hb-postcards figure:last-child { width: min(100%, 401px); justify-self: end; }
.page-terroir .hb-postcards img { aspect-ratio: auto; height: auto; object-fit: contain; }
@media (max-width: 700px) {
  .page-terroir .hb-postcards { width: 100%; gap: 22px; }
  .page-terroir .hb-postcards figure:first-child { width: min(92%, 433px); }
  .page-terroir .hb-postcards figure:last-child { width: min(92%, 401px); }
}

/* Le cadastre conserve son format panoramique et tous ses repères. */
.page-terroir .hb-cadastre__layout { display: grid; gap: 40px; }
.page-terroir .hb-cadastre .hb-copy { width: 100%; max-width: 900px; margin-inline: auto; }
.page-terroir .hb-cadastre .hb-copy p:last-child { margin-bottom: 0; }
.page-terroir .hb-cadastre__map img { aspect-ratio: auto; height: auto; object-fit: contain; }
.page-terroir .hb-cadastre__map a { cursor: zoom-in; }
@media (max-width: 700px) {
  .page-terroir .hb-cadastre__layout { gap: 28px; }
}
