/* Maquette locale : maison sans cadre, sur le fond vert du site. */
.abc-top-zone {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.abc-top-zone__floor {
  position: absolute;
  z-index: 0;
  inset: -8% -24% -8% -18%;
  opacity: .58;
  transform: perspective(1100px) rotateX(58deg) rotateZ(-14deg) scale(1.85);
  transform-origin: 64% 47%;
  background-image:
    linear-gradient(rgba(0, 116, 91, .54) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 116, 91, .54) 1px, transparent 1px),
    linear-gradient(rgba(0, 91, 76, .34) 2px, transparent 2px),
    linear-gradient(90deg, rgba(0, 91, 76, .34) 2px, transparent 2px);
  background-size: 56px 56px, 56px 56px, 224px 224px, 224px 224px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .42), #000 16%, #000 86%, transparent);
  pointer-events: none;
}

.abc-top-zone > .hero,
.abc-top-zone > .cta-band,
.abc-top-zone > .section {
  position: relative;
  z-index: 1;
}

.abc-house-preview {
  position: absolute;
  inset: 0;
  margin: 0;
}

.abc-house-preview__float {
  position: absolute;
  z-index: 1;
  inset: 0;
  animation: abc-house-drift 6s cubic-bezier(.77, 0, .175, 1) 1s infinite alternate;
}

.abc-house-preview__image {
  position: absolute;
  pointer-events: none;
  left: -29%;
  bottom: 4%;
  width: 158%;
  max-width: none;
  height: auto;
  filter: drop-shadow(0 26px 26px rgba(16, 24, 32, .12));
  animation: abc-house-arrive 850ms cubic-bezier(.23, 1, .32, 1) both;
}

.abc-house-preview__label {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 5px 9px;
  border: 1px solid rgba(0, 124, 102, .18);
  border-radius: 7px;
  color: var(--ink);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 18px rgba(16, 24, 32, .09);
  font-family: "Outfit", sans-serif;
  font-size: .74rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  opacity: .65;
  animation: abc-house-label 12s cubic-bezier(.77, 0, .175, 1) infinite;
}

.abc-house-preview__label::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--oxide);
}

.abc-house-preview__label--chassis { left: 4%; top: 45%; animation-delay: 0s; }
.abc-house-preview__label--door { left: 7%; bottom: 28%; }
.abc-house-preview__label--isolation { right: 4%; top: 22%; animation-delay: -3s; }
.abc-house-preview__label--vmc { right: 3%; top: 46%; animation-delay: -6s; }
.abc-house-preview__label--heat { left: 4%; bottom: 17%; animation-delay: -9s; }

.abc-house-preview__label--chassis,
.abc-house-preview__label--door {
  opacity: 1;
  animation: none;
  transition: transform 180ms cubic-bezier(.23, 1, .32, 1), box-shadow 180ms cubic-bezier(.23, 1, .32, 1), border-color 180ms ease;
}

.abc-house-preview__label--chassis::before,
.abc-house-preview__label--door::before {
  transition: transform 180ms cubic-bezier(.23, 1, .32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .nav-links .abc-nav-specialty {
    transition: color 180ms ease, background 180ms ease, transform 180ms cubic-bezier(.23, 1, .32, 1);
  }

  .nav-links .abc-nav-specialty:hover {
    transform: translateY(-2px);
  }

  .abc-house-preview__label--chassis:hover,
  .abc-house-preview__label--door:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(0, 124, 102, .5);
    box-shadow: 0 9px 22px rgba(0, 124, 102, .15);
  }

  .abc-house-preview__label--chassis:hover::before,
  .abc-house-preview__label--door:hover::before {
    transform: scale(1.3);
  }
}

.abc-house-preview__caption {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 15px;
  color: #53656a;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: right;
  text-transform: uppercase;
}

@keyframes abc-house-arrive {
  from { opacity: .4; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes abc-house-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}

@keyframes abc-house-label {
  0%, 20% { opacity: 1; transform: translateY(-2px); }
  25%, 100% { opacity: .65; transform: translateY(0); }
}

@media (max-width: 920px) {
  .abc-top-zone__floor { transform: perspective(1100px) rotateX(58deg) rotateZ(-14deg) scale(1.55); }
  .abc-house-preview__image { left: -2.5%; bottom: -12%; width: 105%; }
  .abc-house-preview__label--chassis { left: 9%; top: 39%; }
  .abc-house-preview__label--door { left: 10%; bottom: 23%; }
  .abc-house-preview__label--isolation { right: 11%; top: 15%; }
  .abc-house-preview__label--vmc { right: 5%; top: 45%; }
  .abc-house-preview__label--heat { left: 7%; bottom: 22%; }
}

@media (max-width: 560px) {
  .abc-top-zone__floor { inset: -6% -95% -7% -95%; opacity: .48; transform: perspective(850px) rotateX(58deg) rotateZ(-14deg) scale(1.45); }
  .abc-house-preview__image { left: -32%; bottom: 4%; width: 165%; }
  .abc-house-preview__label { min-height: 26px; padding: 4px 6px; font-size: .57rem; }
  .abc-house-preview__label::before { width: 5px; height: 5px; margin-right: 5px; }
  .abc-house-preview__label--chassis { left: 3%; top: 39%; }
  .abc-house-preview__label--door { left: 4%; bottom: 27%; }
  .abc-house-preview__label--isolation { right: 3%; top: 14%; }
  .abc-house-preview__label--vmc { right: 2%; top: 45%; }
  .abc-house-preview__label--heat { left: 3%; bottom: 13%; }
  .abc-house-preview__caption { right: 10px; bottom: 9px; font-size: .51rem; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-links .abc-nav-specialty { transition: color 180ms ease, background 180ms ease; }
  .nav-links .abc-nav-specialty:hover { transform: none; }
  .abc-house-preview__float { animation: none; }
  .abc-house-preview__image { animation: abc-house-fade 200ms cubic-bezier(.23, 1, .32, 1) both; }
  .abc-house-preview__label { animation: none; opacity: 1; }
  .abc-house-preview__label--chassis,
  .abc-house-preview__label--door { transition: none; }
}

@keyframes abc-house-fade {
  from { opacity: .7; }
  to { opacity: 1; }
}

.abc-extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.abc-extra-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(16, 24, 32, .08);
  border-radius: 24px;
  background: rgba(255, 255, 255, .75);
  box-shadow: 0 20px 50px rgba(16, 24, 32, .07);
}
.abc-extra-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.abc-extra-card > div { padding: 24px; }
.abc-extra-card h3 { margin: 8px 0; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.abc-extra-card p { min-height: 5.4em; margin: 0 0 17px; color: var(--soft-ink); }
.abc-extra-card a { color: var(--spruce); font-weight: 800; text-underline-offset: 3px; }
.abc-extra-card a:hover { text-decoration: underline; }
.abc-aid-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 20px;
  padding: 30px;
  border: 1px solid rgba(0, 124, 102, .16);
  border-radius: 24px;
  background: rgba(0, 168, 139, .08);
}
.abc-aid-note h3 { margin: 7px 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.abc-aid-note p { max-width: 760px; margin: 0; color: var(--soft-ink); }
.abc-aid-note .btn { flex: none; }
@media (max-width: 800px) {
  .abc-extra-grid { grid-template-columns: 1fr; }
  .abc-extra-card { display: grid; grid-template-columns: 38% 1fr; }
  .abc-extra-card img { height: 100%; min-height: 230px; }
  .abc-extra-card p { min-height: 0; }
  .abc-aid-note { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .abc-extra-card { display: block; }
  .abc-extra-card img { height: 200px; min-height: 0; }
  .abc-aid-note { padding: 24px; }
}
