/* HOMAZEK — finition commune : système visuel, profondeur et états d'interface. */
:root {
  --hz-shadow-soft: 0 18px 55px rgba(19, 42, 35, .10);
  --hz-shadow-hover: 0 24px 70px rgba(19, 42, 35, .16);
  --hz-radius: 2px;
}

body.hz-terre {
  background:
    radial-gradient(circle at 8% 0%, rgba(205, 189, 152, .13), transparent 30rem),
    var(--craie);
}

body.hz-terre .entete {
  transition: background-color .25s ease, backdrop-filter .25s ease, box-shadow .25s ease;
}

body.hz-terre:not(.hz-plain-page) .entete:has(+ main .hero) {
  background: linear-gradient(180deg, rgba(10, 28, 22, .18), transparent);
}

body.hz-terre .logo,
body.hz-terre .nav-contact,
body.hz-terre .bouton,
body.hz-terre .hom-v4-card,
body.hz-terre .publication-carte,
body.hz-terre .hom-cms-card,
body.hz-terre .formulaire-panel {
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease,
    border-color .25s ease, color .25s ease;
}

body.hz-terre .logo:hover {
  transform: translateY(2px);
  box-shadow: var(--hz-shadow-hover);
}

body.hz-terre .bouton,
body.hz-terre .nav-contact {
  position: relative;
  overflow: hidden;
}

body.hz-terre .bouton::after,
body.hz-terre .nav-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.22), transparent 80%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}

body.hz-terre .bouton:hover::after,
body.hz-terre .nav-contact:hover::after {
  transform: translateX(120%);
}

body.hz-terre .section {
  position: relative;
}

body.hz-terre .section h2::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 20px;
  background: var(--ble);
}

body.hz-terre .hom-v4-card {
  position: relative;
}

body.hz-terre .hom-v4-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid transparent;
  transition: border-color .25s ease;
}

body.hz-terre .hom-v4-card:hover {
  transform: translateY(-5px);
}

body.hz-terre .hom-v4-card:hover::before {
  border-color: var(--ble);
}

body.hz-terre .hom-v4-card > div {
  position: relative;
  z-index: 2;
}

body.hz-terre .hom-v4-card > img,
body.hz-terre .hom-cms-photo,
body.hz-terre .publication-carte-lien > img {
  filter: saturate(.82) contrast(1.04);
}

body.hz-terre .hom-v4-card:hover > img,
body.hz-terre .hom-cms-card:hover .hom-cms-photo,
body.hz-terre .publication-carte:hover img {
  filter: saturate(1.03) contrast(1.04);
}

body.hz-terre .publication-carte:hover,
body.hz-terre .hom-cms-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hz-shadow-soft);
}

body.hz-terre .formulaire-panel {
  box-shadow: var(--hz-shadow-soft);
}

body.hz-terre .formulaire-panel:focus-within {
  border-color: var(--mousse);
  box-shadow: 0 22px 65px rgba(19, 42, 35, .14);
}

body.hz-terre input,
body.hz-terre textarea,
body.hz-terre select {
  min-height: 48px;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

body.hz-terre input:focus,
body.hz-terre textarea:focus,
body.hz-terre select:focus {
  background: #fffef9;
  box-shadow: 0 0 0 3px rgba(160, 172, 141, .25);
}

body.hz-terre .pied-page {
  position: relative;
  overflow: hidden;
}

body.hz-terre .pied-page::before {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  top: -18rem;
  right: -8rem;
  border: 1px solid rgba(205, 189, 152, .18);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 680px) {
  body.hz-terre .section h2::after {
    margin-top: 15px;
  }

  body.hz-terre .hero-actions {
    width: 100%;
  }

  body.hz-terre .hero-actions > .bouton {
    flex: 1 1 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hz-terre .logo,
  body.hz-terre .nav-contact,
  body.hz-terre .bouton,
  body.hz-terre .hom-v4-card,
  body.hz-terre .publication-carte,
  body.hz-terre .hom-cms-card {
    transition: none;
  }
}

/* Système final commun : hiérarchie, rythme et responsive maîtrisés. */
body.hz-terre {
  overflow-x: hidden;
  color: var(--encre);
}

body.hz-terre .conteneur {
  width: min(1180px, calc(100% - 56px)) !important;
}

body.hz-terre .entete-interieur {
  width: min(1320px, calc(100% - 56px)) !important;
}

body.hz-terre .hero-copie,
body.hz-terre .section,
body.hz-terre .pied-page {
  text-rendering: optimizeLegibility;
}

body.hz-terre .section + .section {
  border-top: 1px solid rgba(213, 230, 217, .55);
}

body.hz-terre .section h2 {
  max-width: 18ch;
}

body.hz-terre .section p {
  max-width: 70ch;
}

body.hz-terre .hom-v4-card,
body.hz-terre .hom-cms-card,
body.hz-terre .publication-carte {
  min-width: 0;
}

body.hz-terre .hom-v4-card:focus-visible,
body.hz-terre .hom-cms-card:focus-within,
body.hz-terre .publication-carte:focus-within {
  outline: 2px solid var(--ble);
  outline-offset: 5px;
}

body.hz-terre .hom-v4-card img,
body.hz-terre .hom-cms-photo,
body.hz-terre .publication-carte img {
  background: var(--lin);
}

body.hz-terre .formulaire-panel {
  padding: clamp(24px, 4vw, 44px) !important;
}

body.hz-terre .formulaire-contact input,
body.hz-terre .formulaire-contact select,
body.hz-terre .formulaire-contact textarea {
  color-scheme: light;
}

body.hz-terre .pied-page .conteneur {
  position: relative;
  z-index: 1;
}

@media (max-width: 1050px) {
  body.hz-terre .conteneur {
    width: min(760px, calc(100% - 44px)) !important;
  }

  body.hz-terre .entete-interieur {
    width: calc(100% - 44px) !important;
  }
}

@media (max-width: 680px) {
  body.hz-terre .conteneur {
    width: calc(100% - 36px) !important;
  }

  body.hz-terre .entete-interieur {
    width: calc(100% - 28px) !important;
  }

  body.hz-terre .section h2 {
    max-width: none;
  }

  body.hz-terre .hero-actions > .bouton {
    min-width: 0;
  }

  body.hz-terre .navigation {
    left: 14px !important;
    right: 14px !important;
  }
}
