/* =====================================================================
   DELTA-IMMO — page d'accueil
   ===================================================================== */

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--ivory);
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero__slides { will-change: transform; }
.hero__slides,
.hero__slide,
.hero__slide picture,
.hero__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__slide {
  opacity: 0;
  transition: opacity 1.4s var(--ease-in-out);
  will-change: opacity;
}
.hero__slide img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 7s linear;
}
.hero__slide:nth-child(2) img { transform-origin: 72% 40%; }
.hero__slide:nth-child(3) img { transform-origin: 28% 65%; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide.is-active img { transform: scale(1); }

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(14, 15, 18, 0.55) 0%, rgba(14, 15, 18, 0.15) 35%, rgba(14, 15, 18, 0.35) 70%, rgba(14, 15, 18, 0.85) 100%),
    linear-gradient(90deg, rgba(14, 15, 18, 0.55) 0%, rgba(14, 15, 18, 0) 60%);
}

.hero__content {
  position: relative;
  z-index: 3;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
  display: grid;
  gap: var(--space-3);
  padding-top: calc(var(--header-h) + var(--space-5));
  padding-bottom: clamp(7rem, 14vh, 11rem);
  max-width: 60rem;
}
.hero .eyebrow { color: var(--gold); }
.hero__title {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__title em,
.hero__title .word:last-of-type > span { color: var(--gold); font-style: italic; font-weight: 400; }
.hero__lead {
  max-width: 44rem;
  font-size: var(--fs-lg);
  font-weight: 300;
  color: rgba(247, 243, 236, 0.85);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}

.hero__footer {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 4;
  border-top: 1px solid rgba(247, 243, 236, 0.16);
  background: linear-gradient(180deg, rgba(14, 15, 18, 0) , rgba(14, 15, 18, 0.35));
}
.hero__footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-height: 4.75rem;
}
.hero__caption {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  color: rgba(247, 243, 236, 0.8);
}
.hero__caption strong { font-weight: 500; color: var(--ivory); }
.hero__caption span { opacity: 0.7; }

.hero__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.hero__counter {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: rgba(247, 243, 236, 0.7);
}
.hero__counter strong { font-weight: 500; color: var(--ivory); }

.hero__dots { display: flex; gap: 0.6rem; }
.hero__dot {
  position: relative;
  width: 2.4rem;
  height: 2px;
  background: rgba(247, 243, 236, 0.3);
  overflow: hidden;
  border-radius: 2px;
}
.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
}
.hero__dot.is-active::after {
  transform: scaleX(1);
  transition: transform var(--hero-delay, 6s) linear;
}
.hero.is-paused .hero__dot.is-active::after { transition: none; transform: scaleX(1); }

.hero__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(247, 243, 236, 0.4);
  border-radius: 50%;
  color: var(--ivory);
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease-out);
}
.hero__arrow:hover { border-color: var(--gold); background: rgba(198, 168, 106, 0.18); }
.hero__arrow:active { transform: scale(0.94); }
.hero__arrow svg { width: 1rem; height: 1rem; }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 6.5rem;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.7);
  writing-mode: vertical-rl;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 3.5rem;
  background: linear-gradient(180deg, var(--gold), transparent);
  animation: scroll-hint 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-hint {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 900px) {
  .hero { align-items: flex-end; }
  .hero__content { padding-bottom: 7.5rem; }
  .hero__scroll { display: none; }
  .hero__caption { display: none; }
  .hero__footer-inner { justify-content: center; }
}

/* ---------------- INTRO ---------------- */
.intro__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-5);
  align-items: start;
}
.intro__text {
  display: grid;
  gap: var(--space-3);
  padding-top: 0.5rem;
}
.intro__text p { max-width: 52ch; color: var(--muted); font-weight: 300; font-size: var(--fs-lg); }
.intro__text p + p { font-size: var(--fs-base); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
}
.stat { display: grid; gap: 0.35rem; }
.stat__value {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
}
.stat__value sup { font-size: 0.45em; color: var(--gold-2); vertical-align: super; margin-left: 0.1em; }
.stat__label {
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 900px) {
  .intro__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------------- SÉLECTION ---------------- */
.featured .properties { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .featured .properties { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .featured .properties { grid-template-columns: 1fr; } }

/* ---------------- SERVICES ---------------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}
.service {
  display: grid;
  gap: 1.25rem;
  padding: clamp(2rem, 3vw, 3rem);
  background: var(--ink);
  transition: background 0.5s;
}
.service:hover { background: var(--ink-2); }
.service__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(198, 168, 106, 0.5);
  border-radius: 50%;
  margin-bottom: 0.5rem;
}
.service__icon img {
  width: 1.4rem;
  height: 1.4rem;
  filter: invert(78%) sepia(28%) saturate(486%) hue-rotate(2deg) brightness(92%) contrast(88%);
}
.service__num {
  font-family: var(--font-serif);
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  color: var(--gold);
}
.service h3 { font-size: var(--fs-h3); color: var(--ivory); }
.service p { font-weight: 300; color: rgba(247, 243, 236, 0.72); }
@media (max-width: 900px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------------- TÉMOIGNAGE ---------------- */
.testimonial {
  text-align: center;
}
.testimonial__quote {
  position: relative;
  max-width: 50rem;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.35;
  text-wrap: balance;
}
.testimonial__quote::before {
  content: "\201C";
  display: block;
  margin-bottom: 0.5rem;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--gold);
  font-style: normal;
}
.testimonial__author {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.testimonial__author strong { color: var(--ink); font-weight: 500; }

/* ---------------- GRAND VISUEL ---------------- */
.showcase {
  position: relative;
  min-height: 60vh;
  display: grid;
  align-items: end;
  color: var(--ivory);
  overflow: hidden;
}
.showcase picture {
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 136%;
  will-change: transform;
}
.showcase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 18, 0.1), rgba(14, 15, 18, 0.8));
}
.showcase__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  max-width: 44rem;
}
.showcase .eyebrow { color: var(--gold); }
.showcase h2 { font-size: var(--fs-h2); }
.showcase p { font-weight: 300; color: rgba(247, 243, 236, 0.8); }
