/* A2CP89 V9: final visual layer loaded after the historical site stylesheet. */

body {
  overflow-wrap: break-word;
  word-break: normal;
}

.a2cp-button-wrap {
  display: flex;
  height: 100%;
  margin: 0 !important;
}

.a2cp-button-wrap .a2cp-button {
  width: 100%;
}

.a2cp-home-contact__phone-wrap,
.a2cp-home-reviews__link-wrap {
  margin: 0 !important;
  max-width: none !important;
  width: 100%;
}

.a2cp-home-service-card p.a2cp-home-service-card__number {
  color: var(--a2cp-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 0 0 0.65rem;
}

.a2cp-breadcrumbs {
  box-sizing: border-box;
  margin-inline: auto;
  max-width: 72rem;
  padding-inline: 0;
  width: calc(100% - 2rem);
}

/* Immersive home hero: real portrait chantier, contained over a soft mirror. */
.a2cp-home-hero {
  background: var(--a2cp-paper);
  display: block;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow: hidden;
  position: relative;
  width: 100vw;
}

.a2cp-home-hero > * {
  margin-block: 0 !important;
}

.a2cp-home-hero__visual {
  background: #202520;
  height: clamp(34rem, 76svh, 54rem);
  min-height: 0;
  position: relative;
  width: 100%;
}

[data-a2cp-home-hero] .a2cp-home-hero__visual::before {
  background-image: linear-gradient(90deg, rgba(31, 35, 31, 0.18), rgba(31, 35, 31, 0.04)), url("../media/chantier-piece-de-vie.webp");
  background-position: center 56%;
  background-size: cover;
  filter: blur(22px) saturate(0.78);
  inset: -2rem;
  opacity: 0.72;
  transform: scale(1.07);
  z-index: 0;
}

[data-a2cp-home-hero] .a2cp-home-hero__visual::after {
  background: linear-gradient(180deg, rgba(31, 35, 31, 0.03), transparent 52%, rgba(52, 56, 50, 0.2) 72%, var(--a2cp-carbon));
  height: auto;
  inset: 0;
  transform: none;
  width: auto;
  z-index: 2;
}

.a2cp-home-hero__media {
  height: 100%;
  margin: 0 auto !important;
  max-width: 66rem;
  position: relative;
  width: 100%;
  z-index: 1;
}

.a2cp-home-hero__media img,
[data-a2cp-home-hero] .a2cp-home-hero__media img {
  filter: saturate(0.9) contrast(1.03);
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transform: translate3d(var(--a2cp-hero-x), calc(var(--a2cp-hero-y) + var(--a2cp-parallax)), 0) scale(1.035);
  width: 100%;
}

.a2cp-home-hero__caption {
  background: rgba(31, 35, 31, 0.7);
  border: 1px solid rgba(246, 243, 237, 0.24);
  bottom: 7.5rem;
  color: var(--a2cp-paper);
  left: 1rem;
  right: auto;
  z-index: 3;
}

.a2cp-home-hero__caption span {
  color: #b9d9d4;
}

.a2cp-home-hero__copy {
  background: linear-gradient(180deg, rgba(52, 56, 50, 0), rgba(52, 56, 50, 0.93) 6rem, var(--a2cp-carbon) 10rem, var(--a2cp-carbon) 82%, var(--a2cp-paper));
  color: var(--a2cp-paper);
  display: block;
  margin-top: -10rem !important;
  max-width: none;
  padding: 0.75rem max(1rem, calc((100vw - 72rem) / 2)) clamp(7rem, 16vw, 11rem);
  position: relative;
  width: 100%;
  z-index: 4;
}

.a2cp-home-hero__title,
.a2cp-home-hero__details,
.a2cp-home-hero__title > *,
.a2cp-home-hero__details > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
}

.a2cp-home-hero__title .a2cp-kicker {
  color: #b9d9d4;
  margin-bottom: 0.9rem;
}

.a2cp-home-hero__title h1,
.a2cp-home-hero h1 {
  color: var(--a2cp-paper);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(2.75rem, 10.7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  max-width: none;
  text-wrap: balance;
}

.a2cp-home-hero__details {
  margin-top: 1.4rem !important;
}

.a2cp-home-hero__details .a2cp-home-hero__lead {
  color: rgba(246, 243, 237, 0.78);
  font-size: clamp(1rem, 3.4vw, 1.24rem);
  line-height: 1.55;
  max-width: 46rem;
}

.a2cp-home-hero__details .a2cp-actions {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.4rem !important;
  max-width: 36rem;
  width: 100%;
}

.a2cp-home-hero__details .a2cp-button {
  border-radius: 0.7rem;
  height: 100%;
  justify-content: center;
  line-height: 1.15;
  min-height: 3.5rem;
  padding: 0.72rem 0.55rem;
  text-align: center;
  width: 100%;
}

.a2cp-home-hero__details .a2cp-button--ghost {
  border-color: rgba(246, 243, 237, 0.46);
  color: var(--a2cp-paper);
}

.a2cp-home-hero__details .a2cp-home-hero__proofs li,
.a2cp-home-hero__details .a2cp-home-hero__area {
  border-color: rgba(246, 243, 237, 0.2);
}

.a2cp-home-hero__details .a2cp-home-hero__proofs span,
.a2cp-home-hero__details .a2cp-home-hero__area {
  color: rgba(246, 243, 237, 0.7);
}

[data-a2cp-home-hero][data-motion="ready"] .a2cp-home-hero__title > .a2cp-kicker,
[data-a2cp-home-hero][data-motion="ready"] .a2cp-home-hero__details > * {
  opacity: 0;
  transform: translateY(1.1rem);
}

[data-a2cp-home-hero][data-motion="entered"] .a2cp-home-hero__title > .a2cp-kicker,
[data-a2cp-home-hero][data-motion="entered"] .a2cp-home-hero__details > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-a2cp-home-hero][data-motion="entered"] .a2cp-home-hero__details > :nth-child(1) { transition-delay: 260ms; }
[data-a2cp-home-hero][data-motion="entered"] .a2cp-home-hero__details > :nth-child(2) { transition-delay: 360ms; }
[data-a2cp-home-hero][data-motion="entered"] .a2cp-home-hero__details > :nth-child(3) { transition-delay: 450ms; }
[data-a2cp-home-hero][data-motion="entered"] .a2cp-home-hero__details > :nth-child(4) { transition-delay: 520ms; }

/* Tables and galleries stay readable at every breakpoint. */
.a2cp-cost-table th,
.a2cp-cost-table td {
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.a2cp-pillar-gallery .a2cp-section-heading {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: clamp(2rem, 6vw, 3.5rem);
  max-width: 72rem;
}

.a2cp-pillar-gallery .a2cp-section-heading h2 {
  max-width: 18ch;
}

.a2cp-pillar-gallery .a2cp-section-heading .a2cp-lead {
  margin-top: 0;
  max-width: 48rem;
}

/* Native Gutenberg editorial system. */
.a2cp-editorial-hero,
.a2cp-editorial-single-hero {
  background: radial-gradient(circle at 84% 20%, rgba(147, 170, 170, 0.25), transparent 24rem), var(--a2cp-carbon);
  color: var(--a2cp-paper);
  margin-block: 0;
  padding: clamp(4.5rem, 13vw, 8rem) max(1rem, calc((100vw - 72rem) / 2));
}

.a2cp-editorial-hero > *,
.a2cp-editorial-single-hero > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 68rem;
}

.a2cp-editorial-hero h1,
.a2cp-editorial-single-hero h1 {
  color: var(--a2cp-paper);
  font-size: clamp(2.65rem, 10vw, 5.8rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}

.a2cp-editorial-hero .a2cp-kicker,
.a2cp-editorial-single-hero .a2cp-kicker {
  color: #b9d9d4;
}

.a2cp-editorial-hero .a2cp-lead,
.a2cp-editorial-single-hero .wp-block-post-date {
  color: rgba(246, 243, 237, 0.72);
}

.a2cp-editorial-intro,
.a2cp-editorial-listing,
.a2cp-editorial-article {
  padding: clamp(3.5rem, 9vw, 6.5rem) max(1rem, calc((100vw - 72rem) / 2));
}

.a2cp-editorial-intro > *,
.a2cp-editorial-article > *,
.a2cp-editorial-article__body > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.a2cp-editorial-intro h2,
.a2cp-editorial-article__body h2 {
  font-size: clamp(2rem, 7vw, 3.7rem);
  letter-spacing: -0.045em;
  line-height: 1;
  max-width: 20ch;
}

.a2cp-editorial-query .wp-block-post-template {
  gap: 1rem;
}

.a2cp-editorial-card {
  background: var(--a2cp-paper);
  border: 1px solid var(--a2cp-line);
  border-radius: 1rem 1rem 0.25rem 1rem;
  height: 100%;
  overflow: hidden;
  padding-bottom: 1.35rem;
}

.a2cp-editorial-card > :not(.wp-block-post-featured-image) {
  margin-left: 1.2rem !important;
  margin-right: 1.2rem !important;
}

.a2cp-editorial-card .wp-block-post-featured-image {
  margin-top: 0;
  overflow: hidden;
}

.a2cp-editorial-card .wp-block-post-title {
  font-size: clamp(1.55rem, 5vw, 2.1rem);
  line-height: 1.04;
}

.a2cp-editorial-card .wp-block-post-title a {
  text-decoration: none;
}

.a2cp-editorial-card .wp-block-post-date {
  color: var(--a2cp-blue);
  font-size: 0.76rem;
  font-weight: 750;
  margin-top: 1.1rem;
}

.a2cp-editorial-article {
  background: var(--a2cp-paper);
}

.a2cp-editorial-article__lead {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.5;
  max-width: 48rem;
}

.a2cp-editorial-article__media {
  margin-block: clamp(2rem, 6vw, 4rem) !important;
  max-height: 46rem;
  overflow: hidden;
}

.a2cp-editorial-article__media img {
  display: block;
  max-height: 46rem;
  object-fit: cover;
  width: 100%;
}

.a2cp-editorial-article__body {
  max-width: 52rem;
}

.a2cp-editorial-article__body p,
.a2cp-editorial-article__body li {
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  line-height: 1.72;
}

.a2cp-editorial-article__body li + li {
  margin-top: 0.7rem;
}

.a2cp-editorial-actions {
  margin-top: 2.5rem !important;
}

@media (min-width: 48rem) {
  .a2cp-home-hero__visual {
    height: clamp(40rem, 78svh, 56rem);
  }

  .a2cp-home-hero__media img,
  [data-a2cp-home-hero] .a2cp-home-hero__media img {
    object-fit: contain;
  }

  .a2cp-home-hero__copy {
    margin-top: -11rem !important;
  }

  .a2cp-home-hero__title h1,
  .a2cp-home-hero h1 {
    font-size: clamp(4.35rem, 7vw, 6.05rem);
  }

  .a2cp-home-hero__details {
    align-items: start;
    column-gap: clamp(2rem, 6vw, 6rem);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  }

  .a2cp-home-hero__details .a2cp-actions {
    margin-top: 0 !important;
    max-width: none;
  }

  .a2cp-home-hero__details .a2cp-home-hero__proofs,
  .a2cp-home-hero__details .a2cp-home-hero__area {
    grid-column: 1 / -1;
  }

  .a2cp-cost-table tbody th { width: 26%; }
  .a2cp-cost-table td { width: 37%; }

  .a2cp-editorial-query .wp-block-post-template {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-a2cp-home-hero] .a2cp-home-hero__title > *,
  [data-a2cp-home-hero] .a2cp-home-hero__details > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
