﻿.front-page .section-spacing {
  padding: 5rem 0;
}

/* ── Hero ──────────────────────────────────────────────── */

.hero-banner {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding-top: 7rem;
  padding-bottom: 2rem;
}

.hero-kicker {
  letter-spacing: 0.11em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  font-size: 0.82rem;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: clamp(2rem, 8vw, 6rem);
  line-height: 0.95;
  margin: 0;
  font-weight: 400;
}

/* ── Home Intro ────────────────────────────────────────── */

.home-intro {
  background: #000000;
  color: #fff;
}

.home-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.home-intro__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.home-intro__copy h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
}

.home-intro__copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 520px;
  margin: 0;
  line-height: 1.7;
}

.home-intro__visual img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  display: block;
}

/* ── Section kicker (partage) ──────────────────────────── */

.section-kicker {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.home-intro .section-kicker {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Home Services ─────────────────────────────────────── */

.home-services {
  background: #090909;
  color: #fff;
}

.home-services__layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.home-services__heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.home-services__heading h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 3rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
  color: #fff;
}

.home-services__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
}

.service-card__media {
  position: absolute;
  inset: 0;
}

.service-card img,
.service-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card__content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  color: #fff;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: background 0.3s ease;
}

.service-card:hover::after {
  background: rgba(0, 0, 0, 0.06);
}

.service-card:hover .service-card__video {
  opacity: 1;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  margin: 0 0 0.25rem;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

/* ── Home Latest Work ─────────────────────────────────── */

.home-latest-work {
  background: #FCF7F3;
  color: #050505;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.home-latest-work .container {
  width: min(1500px, calc(100% - 2rem));
}

.home-latest-work__layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 34%) minmax(0, 66%);
  gap: clamp(1.5rem, 2.6vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
}

.home-latest-work__intro {
  position: sticky;
  top: 110px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  max-width: 470px;
}

.home-latest-work__intro h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
}

.home-latest-work__intro p {
  margin: 0;
  color: rgba(0, 0, 0, 0.75);
  max-width: 440px;
  line-height: 1.7;
}

.home-latest-work__scroller {
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 0;
}

.home-latest-work__scroller::-webkit-scrollbar {
  display: none;
}

.home-latest-work__track {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.1rem, 1.8vw, 1.6rem);
  min-width: 0;
  width: min(80%, 900px);
  margin: auto;
  padding: 2.2rem 0 2.2rem 0;
}

.latest-work-card {
  width: min(100%, 900px);
  flex-shrink: 0;
  scroll-snap-align: start;
}

.latest-work-card__link {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}

.latest-work-card__media {
  aspect-ratio: 16 / 9;
}

.latest-work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.latest-work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.12);
  transition: background 0.3s ease;
  padding: 1rem;
}

.latest-work-card__overlay h3 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.1;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.latest-work-card__link:hover .latest-work-card__overlay,
.latest-work-card__link:focus-visible .latest-work-card__overlay {
  background: rgba(0, 0, 0, 0.58);
}

.latest-work-card__link:hover .latest-work-card__overlay h3,
.latest-work-card__link:focus-visible .latest-work-card__overlay h3 {
  opacity: 1;
  transform: translateY(0);
}

.home-latest-work__empty {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Home Trusted (marquee) ───────────────────────────── */

.home-trusted {
  background: #090909;
  color: #fff;
  overflow: hidden;
}

.home-trusted__heading {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 3rem;
}

.home-trusted__heading h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
  color: #fff;
}

.home-trusted .section-kicker {
  color: rgba(255, 255, 255, 0.5);
}

.home-trusted__track-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.home-trusted__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  width: max-content;
  animation: marquee 35s linear infinite;
}

.trusted-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1) brightness(0.7);
  transition: filter 0.3s ease;
}

.trusted-logo:hover {
  filter: grayscale(0) brightness(1);
}

.trusted-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-trusted__track {
    animation: none;
  }
}

/* ── Home Contact ──────────────────────────────────────── */

.home-contact {
  background: #050505;
  color: #fff;
  text-align: center;
}

.home-contact__heading {
  margin-bottom: 3rem;
}

.home-contact__heading h2 {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 5vw, 2rem);
  line-height: 1.2;
  margin: 0;
  font-weight: 400;
  color: #fff;
}

.home-contact .section-kicker {
  color: rgba(255, 255, 255, 0.5);
}

.home-contact__inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: left;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.contact-form__row {
  width: 100%;
}

.contact-form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-form__label {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.74);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: transparent;
  color: #fff;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.75rem 0.1rem;
  outline: none;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-bottom-color: #fff;
}

.home-contact .contact-form__submit {
  margin-top: 0.9rem;
}

.contact-notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  border-left: 2px solid currentColor;
  font-size: 0.9rem;
}

.contact-notice--success {
  color: #2d6b3f;
  background: rgba(45, 107, 63, 0.08);
}

.contact-notice--error {
  color: #842f2f;
  background: rgba(132, 47, 47, 0.08);
}

/* ── Animations reveal ─────────────────────────────────── */

[data-reveal="up"],
[data-reveal="fade"] {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}

[data-reveal="up"] {
  transform: translateY(28px);
}

[data-reveal="fade"] {
  transform: none;
}

[data-reveal="up"].is-visible,
[data-reveal="fade"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal="up"],
  [data-reveal="fade"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1080px) {
  .home-latest-work__layout {
    grid-template-columns: minmax(240px, 32%) minmax(0, 1fr);
    max-width: 1180px;
  }

  .home-latest-work__track,
  .latest-work-card {
    width: min(100%, 760px);
  }

  .home-services__cards {
    grid-template-columns: 1fr 1fr;
  }

  .service-card {
    min-height: 360px;
  }
}

@media (max-width: 860px) {
  .front-page .section-spacing {
    padding: 3.5rem 0;
  }

  .home-latest-work {
    min-height: auto;
  }

  .home-latest-work__layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .home-latest-work__intro {
    position: static;
    padding-top: 0;
    padding-bottom: 0;
  }

  .home-latest-work__scroller {
    min-height: auto;
    align-items: flex-start;
    max-height: 72vh;
  }

  .home-latest-work__track {
    padding: 0 0 0.4rem 0;
    width: 100%;
  }

  .hero-content {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-intro__grid {
    grid-template-columns: 1fr;
  }

  .home-intro__visual img {
    height: 380px;
  }

  .home-services__cards,
  .contact-form__row--split {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 320px;
  }

  .home-contact__inner {
    max-width: 100%;
  }
}
