/* Page d'accueil */

/* Héros avec diaporama */
.home-hero { position: relative; min-height: 720px; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--night); }
.slideshow img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: contrast(1.06) saturate(.92); opacity: 0; animation: pdm-slide 15s ease-in-out infinite;
}
.slideshow img:nth-child(1) { opacity: 1; }
.slideshow img:nth-child(2) { animation-delay: 5s; }
.slideshow img:nth-child(3) { animation-delay: 10s; }
.home-hero__epure { z-index: 1; right: max(40px, calc((100vw - var(--container)) / 2 + 40px)); top: 50%; transform: translateY(-50%); width: min(34vw, 480px); }
.home-hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(43, 37, 30, .94) 0%, rgba(43, 37, 30, .78) 38%, rgba(43, 37, 30, .18) 72%, rgba(43, 37, 30, .05) 100%),
    linear-gradient(0deg, rgba(43, 37, 30, .7) 0%, rgba(43, 37, 30, 0) 40%);
}
.home-hero__body { position: relative; z-index: 2; padding-top: 208px; padding-bottom: 96px; }
.home-hero__copy { max-width: 700px; display: flex; flex-direction: column; gap: 28px; }
.home-hero__lead { margin: 0; max-width: 560px; font: 400 17px/1.6 var(--font-body); color: var(--line); text-wrap: pretty; }
.home-hero__actions { --gap: 16px; }
.home-hero__pills { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font: 600 14px/1 var(--font-body); }
.home-hero__pills li {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 99px; white-space: nowrap;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
}
.home-hero__pills .pulse::after { box-shadow: 0 0 8px 2px var(--pulse); }

/* Chiffres clés qui chevauchent le héros */
.key-facts { position: relative; z-index: 2; margin-top: -56px; padding-bottom: 24px; }
.key-facts::before {
  content: ""; position: absolute; left: 0; right: 0; top: 56px; bottom: 0; z-index: -1;
  background-color: var(--cream); background-image: var(--noise); background-position: 0 -56px;
}
.key-facts__grid { align-items: start; }
.stat {
  background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 18px 40px -28px rgba(43, 37, 30, .35);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.stat:nth-child(even) { margin-top: 18px; }
.stat:hover { transform: translateY(-6px); box-shadow: 0 28px 48px -20px rgba(43, 37, 30, .4); }
.stat__bar { display: block; height: 4px; background: var(--brand); transform: scaleX(.25); transform-origin: left center; transition: transform .6s var(--ease-out); }
.stat:hover .stat__bar { transform: scaleX(1); }
.stat__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.stat__n { font: 700 clamp(28px, 2.6vw, 38px)/1 var(--font-display); letter-spacing: -.02em; color: var(--brand); }
.stat__l { font: 500 14px/1.45 var(--font-body); color: var(--ink); }

/* Prestations en onglets */
.services { --cols: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
.services__intro { display: flex; flex-direction: column; gap: 40px; }
.services__lead { max-width: 420px; }
.services__tabs { border-bottom: 1px solid var(--stone); }
.service-tab {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; padding: 24px 0;
  display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--stone); color: var(--ink); transition: color .35s;
}
.service-tab:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.service-tab__ico {
  flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  border: 1.5px solid var(--brand); color: var(--brand); transition: background-color .35s, color .35s;
}
.service-tab__t { flex: 1; font: 700 clamp(22px, 2.2vw, 30px)/1.15 var(--font-display); transition: transform .5s var(--ease-out); }
.service-tab__arrow { flex: none; font: 400 22px/1 var(--font-body); color: var(--brand); opacity: 0; transform: translateX(-10px); transition: opacity .35s, transform .5s var(--ease-out); }
.service-tab.is-active { color: var(--brand); }
.service-tab.is-active .service-tab__ico { background: var(--brand); color: #fff; }
.service-tab.is-active .service-tab__t { transform: translateX(10px); }
.service-tab.is-active .service-tab__arrow { opacity: 1; transform: none; }
.services__panel { display: flex; flex-direction: column; gap: 24px; }
.services__media { position: relative; aspect-ratio: 16 / 11; border-radius: 12px; overflow: hidden; background: var(--line); }
.services__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.06); transition: opacity .6s ease, transform 1.4s var(--ease-out);
}
.services__media img.is-active { opacity: 1; transform: none; }
.service-detail { display: none; flex-direction: column; gap: 24px; }
.service-detail.is-active { display: flex; }
.service-detail__grid { --cols: minmax(0, 1.2fr) minmax(0, 1fr); --gap: 20px 40px; align-items: start; }
.service-detail__copy { --gap: 12px; }

/* Présentation */
.about__grid { --cols: minmax(0, 5fr) minmax(0, 6fr); --gap: 96px; align-items: stretch; }
.about { padding: 128px 0; }
.about__media { position: relative; height: 100%; }
.about__media img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; object-position: 70% center; border-radius: 12px; }
.about__badge {
  position: absolute; right: -32px; bottom: 48px; background: var(--deep); color: #fff; border-radius: 12px;
  padding: 24px 28px; box-shadow: 0 24px 48px -20px rgba(43, 37, 30, .45); display: flex; flex-direction: column; gap: 6px;
}
.about__badge strong { font: 700 48px/1 var(--font-display); letter-spacing: -.02em; }
.about__badge span { font: 500 14px/1.4 var(--font-body); color: var(--line); }
.about__copy { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.about__actions { margin-top: 8px; }
.about__more:hover { gap: 14px; }

/* Démarche */
.method__epure { z-index: 0; right: -40px; bottom: -60px; width: min(36vw, 440px); }
.method__inner { position: relative; z-index: 1; }
.method__title { margin: 20px 0 64px; }
.method__steps { list-style: none; margin: 0; padding: 0; }
.method-step {
  position: relative; overflow: hidden; height: 100%; padding: 28px 26px 30px; border-radius: 16px;
  background: var(--line-dark); border: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-direction: column; gap: 14px; transition: background .4s, transform .5s var(--ease-out);
}
.method-step:hover { background: var(--warm); transform: translateY(-6px); }
.method-step__dot { width: 10px; height: 10px; margin-bottom: 6px; border-radius: 50%; background: var(--stone); box-shadow: 0 0 12px 2px rgba(210, 198, 180, .6); }
.method-step h3 { margin: 0; font: 600 22px/1.2 var(--font-display); color: #fff; }
.method-step p { margin: 0; font: 400 14px/1.6 var(--font-body); color: var(--line); }
.method__cta { margin-top: 64px; }

/* Réalisations */
.works__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.works__all { font-size: 16px; gap: 12px; }
.work-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 12px;
  overflow: hidden; cursor: zoom-in; background: var(--night);
}
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-tile:hover img, .work-tile:focus-visible img { transform: scale(1.04); }
.work-tile__label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 20px; pointer-events: none; text-align: left;
  background: linear-gradient(0deg, rgba(43, 37, 30, .88), rgba(43, 37, 30, 0));
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
}
.work-tile__label span { font: 600 11px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--stone); }
.work-tile__label strong { font: 600 18px/1.2 var(--font-display); color: #fff; }

/* Pourquoi Pierre du Midi */
.why__title { margin: 20px 0 56px; }
.why__grid { --gap: clamp(12px, 1.8vw, 24px); }
.why-card {
  position: relative; overflow: hidden; background: rgba(255, 255, 255, .5); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 20px;
  transition: background .3s, transform .45s var(--ease-soft), box-shadow .35s, border-color .3s;
}
.why-card::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 3px; border-radius: 3px; background: var(--brand);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-soft);
}
.why-card__ico {
  width: 60px; height: 60px; border-radius: 50%; background: var(--mist); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, transform .45s var(--ease-soft), box-shadow .3s;
}
.why-card__text { display: flex; flex-direction: column; gap: 12px; transition: transform .45s var(--ease-soft); }
.why-card h3 { margin: 0; font: 600 22px/1.15 var(--font-display); color: var(--ink); transition: color .3s; }
.why-card p { margin: 0; font: 400 15px/1.6 var(--font-body); color: var(--muted); }
.why-card:hover { background: #fff; border-color: #fff; box-shadow: var(--shadow-card); transform: translateY(-8px); }
.why-card:hover::after { transform: scaleX(1); }
.why-card:hover .why-card__ico { background: var(--brand); color: #fff; transform: translateY(-4px) rotate(-8deg) scale(1.1); box-shadow: 0 12px 24px -8px rgba(128, 110, 86, .6); }
.why-card:hover .why-card__text { transform: translateX(4px); }
.why-card:hover h3 { color: var(--brand); }
/* La révélation au défilement ne doit pas écraser le survol. */
.why-card.reveal.is-in:hover { transform: translateY(-8px); }

/* FAQ résumée */
.home-faq { --cols: minmax(0, 1fr) minmax(0, 2fr); --gap: 96px; align-items: start; }
.home-faq__call { align-self: flex-start; }
.home-faq__more { font: 600 15px/1 var(--font-body); margin-top: 4px; }

/* Zone d'intervention sur carte */
.zone { position: relative; min-height: 600px; background: var(--mist); overflow: hidden; display: flex; align-items: center; }
.zone__map { position: absolute; inset: 0; }
.zone__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.6) sepia(.3) contrast(.95); }
.zone__map .map-consent { padding-left: 50%; }
.zone__fade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(250, 248, 244, .92) 0%, rgba(250, 248, 244, .55) 38%, rgba(250, 248, 244, 0) 62%); }
.zone__inner { position: relative; z-index: 1; padding-top: 80px; padding-bottom: 80px; pointer-events: none; }
.zone-card { pointer-events: auto; }

/* Appel à l'action final */
.home-cta { position: relative; overflow: hidden; background: var(--deep); color: #fff; }
.home-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; filter: saturate(.85); }
.home-cta__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(53, 45, 36, .86) 0%, rgba(53, 45, 36, .78) 50%, rgba(53, 45, 36, .9) 100%); }
.home-cta__inner { position: relative; padding-top: 120px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 40px; }
.home-cta .h2 { max-width: 720px; }
.home-cta p { margin: -16px 0 0; max-width: 600px; font: 400 18px/1.6 var(--font-body); color: var(--line); text-wrap: pretty; }
.home-cta__actions { --gap: 16px; justify-content: center; }

@media (max-width: 1100px) {
  .about__badge { right: 16px; }
  .about__media img { min-height: 420px; }
  .stat:nth-child(even) { margin-top: 0; }
}
@media (max-width: 768px) {
  .home-hero__body { padding-top: 150px; padding-bottom: 72px; }
  .home-hero { min-height: 0; }
  .about { padding: 72px 0; }
  .about__badge strong { font-size: 36px; }
  .method__title { margin-bottom: 40px; }
  .method__cta { margin-top: 40px; }
  .home-cta__inner { padding-top: 80px; padding-bottom: 80px; }
  .zone { display: block; min-height: 0; }
  .zone__map { position: relative; height: 320px; }
  .zone__map .map-consent { padding: 24px 24px 104px; }
  .zone__fade { display: none; }
  .zone__inner { padding-top: 24px; padding-bottom: 48px; margin-top: -80px; }
  .zone-card { padding: 28px; }
}
