/* HOMAZEK — finition commune : rythme plus compact et surfaces plus nettes. */
body.hz-terre {
  --hz-section-space: clamp(28px, 3.5vw, 44px);
  --hz-content-gap: clamp(16px, 2.6vw, 34px);
}

/* Rythme compact commun à toutes les pages. */
body.hz-terre main#contenu > .section,
body.hz-terre main#contenu > .hom-cms-section,
body.hz-terre main#contenu > .galerie-observations,
body.hz-terre main#contenu > .institut-intro,
body.hz-terre main#contenu > .institut-expertises,
body.hz-terre main#contenu > .institut-methode,
body.hz-terre main#contenu > .institut-mission {
  padding-block: clamp(16px, 2.2vw, 26px) !important;
}

body.hz-terre main#contenu > .section > .conteneur > :first-child,
body.hz-terre main#contenu > .hom-cms-section > .conteneur > :first-child {
  margin-top: 0 !important;
}

body.hz-terre main#contenu h2 {
  margin-bottom: 8px;
}

body.hz-terre main#contenu h3 {
  margin-bottom: 4px;
}

body.hz-terre main#contenu p {
  margin-bottom: 7px;
}

body.hz-terre main#contenu .institut-section-heading,
body.hz-terre main#contenu .projets-cms-en-tete,
body.hz-terre main#contenu .hom-cms-section-heading {
  margin-bottom: 10px !important;
}

body.hz-terre main#contenu .institut-intro-grid,
body.hz-terre main#contenu .institut-section-heading,
body.hz-terre main#contenu .institut-methode-grid,
body.hz-terre main#contenu .institut-mission-grid,
body.hz-terre main#contenu .institut-cta-inner,
body.hz-terre main#contenu .projets-cms-grille,
body.hz-terre main#contenu .hom-cms-grid,
body.hz-terre main#contenu .devis-etapes {
  gap: clamp(8px, 1.4vw, 16px) !important;
}

body.hz-terre main#contenu .institut-card div {
  padding-top: 6px;
}

body.hz-terre main#contenu .institut-etapes li {
  padding-block: 6px;
}

body.hz-terre main#contenu .projets-cms-corps {
  padding: 12px 14px 14px;
}

body.hz-terre main#contenu .hom-cms-card-body {
  padding: 10px;
}

body.hz-terre main#contenu .formulaire-panel {
  padding: 14px !important;
}

body.hz-terre main#contenu .formulaire-contact {
  gap: 8px;
  margin-top: 7px;
}

body.hz-terre main#contenu .institut-cta {
  padding-block: 22px;
}

body.hz-terre .pied-page {
  padding-top: 16px;
}

body.hz-terre .pied-bas {
  margin-top: 10px;
  padding-block: 5px;
}

/* Le diaporama reste vivant, sans commandes visuelles ni flèches. */
body .commandes-diaporama {
  display: none !important;
}

body .service-item {
  grid-template-columns: 75px minmax(0, 1fr);
}

body.hz-terre .section,
body.hz-terre .hom-cms-section,
body.hz-terre .galerie-observations {
  padding-block: var(--hz-section-space);
}

body.hz-terre main#contenu > .hero.hero-accueil {
  height: clamp(620px, 84svh, 790px) !important;
  min-height: 620px !important;
}

body.hz-terre main#contenu > .hero.hero-secondaire {
  height: clamp(430px, 58svh, 570px) !important;
  min-height: 430px !important;
}

body.hz-terre .hero h1 {
  max-width: 860px !important;
}

body.hz-terre .hom-v4-intro-grid,
body.hz-terre .contact-grid,
body.hz-terre .expertise-ligne,
body.hz-terre .editorial {
  gap: var(--hz-content-gap) !important;
}

body.hz-terre .hom-v4-intro-grid > div:nth-child(2) {
  font-size: 1rem;
}

body.hz-terre .hom-v4-intro-grid > div:nth-child(2) p {
  margin-bottom: 7px;
}

body.hz-terre .hom-v4-section-heading {
  margin-bottom: 10px !important;
}

body.hz-terre .hom-v4-cards {
  gap: clamp(12px, 1.7vw, 20px) !important;
}

body.hz-terre .hom-v4-card > div {
  padding-top: 10px !important;
}

body.hz-terre .hom-v4-card h3 {
  margin-top: 4px !important;
}

body.hz-terre .formulaire-panel {
  padding: clamp(18px, 2.6vw, 28px) !important;
}

body.hz-terre .formulaire-contact {
  gap: 13px;
  margin-top: 14px;
}

body.hz-terre .pied-page {
  padding-top: 28px;
}

body.hz-terre .pied-bas {
  margin-top: 20px;
  padding-block: 10px;
}

body.hz-terre.hz-plain-page main#contenu {
  min-height: 0;
}

body.hz-terre.hz-plain-page .contenu-legal {
  padding-block: 30px 36px;
}

@media (max-width: 680px) {
  body.hz-terre main#contenu > .hero.hero-accueil {
    height: min(700px, 100svh) !important;
    min-height: 560px !important;
  }

  body.hz-terre main#contenu > .hero.hero-secondaire {
    height: 480px !important;
    min-height: 480px !important;
  }

  body.hz-terre .section,
  body.hz-terre .hom-cms-section,
  body.hz-terre .galerie-observations {
    padding-block: 26px;
  }

  body.hz-terre main#contenu > .section,
  body.hz-terre main#contenu > .hom-cms-section,
  body.hz-terre main#contenu > .galerie-observations,
  body.hz-terre main#contenu > .institut-intro,
  body.hz-terre main#contenu > .institut-expertises,
  body.hz-terre main#contenu > .institut-methode,
  body.hz-terre main#contenu > .institut-mission {
    padding-block: 14px !important;
  }

  body.hz-terre .hom-v4-cards {
    row-gap: 20px !important;
  }

  body.hz-terre .hom-v4-card > img {
    height: 190px !important;
  }

  body .service-item {
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 10px;
  }
}
