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

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

.front-page h2{
    font-family: var(--font-title);
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    line-height: 1.2;
    margin: 0;
    font-weight: 600;
    color: #fff;
}

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

.hero-banner {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  border-radius: 0 !important;
}

.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.5);
}

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

.hero-banner--hp .hero-content {
  min-height: 50vh;
}

.hero-scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 3;
  animation: hero-scroll-pulse 1.9s ease-in-out infinite, hero-scroll-wrapper-bounce 1.9s ease-in-out infinite;
  transition: background-color 0.3s ease, fill 0.3s ease;
}

.hero-scroll-indicator__icon {
  width: 12px;
  height: 15px;
  fill: currentColor;
  display: block;
}

.hero-scroll-indicator:hover{
  background-color: white;
  fill: black;
}

.hero-scroll-indicator:hover .hero-scroll-indicator__icon {
  fill: black;
}

@keyframes hero-scroll-wrapper-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(-2px);
  }

  50% {
    transform: translateX(-50%) translateY(3px);
  }
}

/* @keyframes hero-scroll-pulse {
  0%,
  100% {
    opacity: 0.95;
  }

  50% {
    opacity: 0.45;
  }
} */

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

.hero-content h1 {
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
  width: 60%;
  font-weight: 600;
}

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

.button-hp{
  width: fit-content;
}

.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 {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1.8rem;
  justify-content: flex-start;
}

.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: 440px;
  object-fit: cover;
  display: block;
}

.button-hero-hp {
  text-underline-offset: 6px;
  font-size: 28px;
}

/* ── 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: #fff;
  color: var(--color-text);
}

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

.home-services__layout--frame {
  position: relative;
  padding: 2.5rem 1.4rem 1.4rem;
  --services-frame-gap: clamp(180px, 26vw, 320px);
  --services-frame-side-width: max(0px, calc((100% - var(--services-frame-gap)) / 2));
  --services-frame-color: rgba(30, 30, 30, 0.35);
  background-image: linear-gradient(var(--services-frame-color), var(--services-frame-color)), linear-gradient(var(--services-frame-color), var(--services-frame-color));
  background-repeat: no-repeat;
  background-position: left bottom, right bottom;
  background-size: 0 2px, 0 2px;
}

.home-services__layout--frame::before,
.home-services__layout--frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.home-services__layout--frame::before {
  top: 0;
  right: calc(50% + (var(--services-frame-gap) / 2));
  width: 0;
  height: 0;
  border-top: 2px solid var(--services-frame-color);
  border-left: 2px solid var(--services-frame-color);
}

.home-services__layout--frame::after {
  top: 0;
  left: calc(50% + (var(--services-frame-gap) / 2));
  bottom: auto;
  right: 0;
  width: 0;
  height: 0;
  border-top: 2px solid var(--services-frame-color);
  border-right: 2px solid var(--services-frame-color);
}

.home-services__layout--frame.is-drawn::before {
  animation: services-frame-left-draw 0.9s ease forwards;
}

.home-services__layout--frame.is-drawn::after {
  animation: services-frame-right-draw 0.9s ease forwards;
}

.home-services__layout--frame.is-drawn {
  animation: services-frame-bottom-draw 0.45s ease 0.85s forwards;
}

@keyframes services-frame-left-draw {
  0% {
    width: 0;
    height: 0;
  }

  45% {
    width: var(--services-frame-side-width);
    height: 0;
  }

  100% {
    width: var(--services-frame-side-width);
    height: 99.6%;
  }
}

@keyframes services-frame-right-draw {
  0% {
    width: 0;
    height: 0;
  }

  45% {
    width: var(--services-frame-side-width);
    height: 0;
  }

  100% {
    width: var(--services-frame-side-width);
    height: 99.6%;
  }
}

@keyframes services-frame-bottom-draw {
  from {
    background-size: 0 2px, 0 2px;
  }

  to {
    background-size: 50% 2px, 50% 2px;
  }
}

.home-services__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  z-index: 3;
  width: fit-content;
  margin: -4rem auto 0.8rem;
  padding: 0 0.9rem;
  background: #fff;
  border-radius: 6px;
}

.home-services__heading h2 {
  color: var(--color-text);
  text-align: center;
}

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

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

.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: #fff;
  color: #050505;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.home-latest-work h2{
  color: var(--color-text);
}

.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 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;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
}

.latest-work-card__link[disabled] {
  cursor: not-allowed;
}

.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__title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-align: center;
  margin: 0;
  padding: 1rem;
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  color: #fff;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.308);
  transition: opacity 0.25s ease;
}

.latest-work-card__teaser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.latest-work-card__link:hover .latest-work-card__teaser,
.latest-work-card__link:focus-visible .latest-work-card__teaser {
  opacity: 1;
}

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


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

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

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

/* ── 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;
  }

  .hero-scroll-indicator,
  .hero-scroll-indicator__icon {
    animation: 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) {

  .hero-content h1 {
    width: 100%;
  }
  @keyframes services-frame-left-draw {
      0% {
        width: 0;
        height: 0;
      }
  
      45% {
        width: var(--services-frame-side-width);
        height: 0;
      }
  
      100% {
        width: var(--services-frame-side-width);
        height: 99.8%;
      }
    }

  @keyframes services-frame-right-draw {
      0% {
        width: 0;
        height: 0;
      }
  
      45% {
        width: var(--services-frame-side-width);
        height: 0;
      }
  
      100% {
        width: var(--services-frame-side-width);
        height: 99.8%;
      }
    }

  .hero-banner {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-content {
    padding-top: 2rem;
  }

  .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;
    max-height: none;
    align-items: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .home-latest-work__track {
    flex-direction: row;
    width: max-content;
    padding: 0 1rem 0.4rem 1rem;
  }

  .latest-work-card {
    min-width: 78vw;
    width: 78vw;
  }

  .home-trusted {
    overflow: hidden;
  }

  .home-trusted__track-wrapper {
    overflow: hidden;
  }

  .home-trusted__track {
    animation: marquee 20s linear infinite;
    padding: 0;
  }

  .trusted-logo--clone {
    display: flex;
  }

  /* Désactiver les animations reveal sur le scroller horizontal */
  .home-latest-work__scroller[data-reveal],
  .home-latest-work__scroller [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

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

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

  .home-intro__visual img {
    height: 380px;
  }
  
  .home-intro__copy {
    align-items: center;
    text-align: center;
  }

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

  .home-services__layout--frame {
    padding: 2.6rem 0.9rem 0.9rem;
    --services-frame-gap: clamp(120px, 44vw, 190px);
    --services-frame-radius: 9px;
  }

  .home-services__heading {
    margin: -3.35rem auto 0.8rem;
    padding: 0 0.65rem;
  }

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

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

