/* =============================================
   ACCUEIL – Elementor post-15 + Stop-Scroll + Hero Video
   ============================================= */

/* 1. HERO 3D ICON + MARQUEE (100vh layout with 8px spacing) */
.site-header-shell:has(+ .site-main > .home-hero-section) .rogue-nav-desktop {
  padding: 8px 8px 0 8px;
}

@media (max-width: 1250px) {
  .site-header-shell:has(+ .site-main > .home-hero-section) .rogue-nav-mobile {
    padding: 10px 10px 0 10px;
  }
}

.home-hero-section {
  width: 100%;
  margin: 8px 0;
  padding: 0 8px;
  position: relative;
  z-index: 10;
}

.home-hero-video-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 46px - clamp(60px, 12vw, 125px) - 24px);
  height: calc(100svh - 46px - clamp(60px, 12vw, 125px) - 24px);
  border-radius: 10px;
  overflow: hidden;
  background-color: #08080a;
}

@media (max-width: 1250px) {
  .home-hero-video-wrap {
    height: calc(100vh - 52px - clamp(60px, 12vw, 125px) - 24px);
    height: calc(100svh - 52px - clamp(60px, 12vw, 125px) - 24px);
  }
}

.home-hero-section + .rogue-marquee {
  margin: 0 0 8px 0;
  padding: 0;
}

.home-hero-video-wrap video,
.home-hero-video-wrap canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-hero-video-wrap video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  filter: blur(8px) brightness(0.75);
  transform: scale(1.05);
}

.home-hero-video-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='linear' slope='2.2' intercept='-0.6'/%3E%3CfeFuncG type='linear' slope='2.2' intercept='-0.6'/%3E%3CfeFuncB type='linear' slope='2.2' intercept='-0.6'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 150px 150px;
}

.home-hero-video-wrap canvas {
  position: relative;
  z-index: 1;
  cursor: grab;
  touch-action: pan-y;
}

.home-hero-video-wrap canvas.is-dragging {
  cursor: grabbing;
}

.mute-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: transparent !important;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  padding: 10px !important;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.mute-button:hover {
  transform: translateX(-50%) scale(1.06);
}

/* =============================================
   SYSTÈME D'ANIMATION REVEAL UNIFIÉ (TOUS LES TITRES HOMEPAGE)
   ============================================= */
.apple-reveal-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.04em;
  perspective: 1100px;
}

.home-spotlight-header .apple-reveal-title {
  align-items: flex-start;
}

.apple-line-wrap {
  display: block;
  overflow: visible;
}

.apple-line {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em;
}

.home-spotlight-header .apple-line {
  justify-content: flex-start;
}

.apple-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 62px, -36px) rotateX(-26deg) scale(0.93);
  filter: blur(15px);
  transform-origin: 50% 100%;
  transition:
    opacity 1100ms cubic-bezier(0.16, 1, 0.3, 1) calc(80ms + var(--word-index, 0) * 125ms),
    transform 1300ms cubic-bezier(0.16, 1, 0.3, 1) calc(80ms + var(--word-index, 0) * 125ms),
    filter 1100ms cubic-bezier(0.16, 1, 0.3, 1) calc(80ms + var(--word-index, 0) * 125ms);
  will-change: transform, opacity, filter;
}

[data-anim="apple-reveal"].is-animated .apple-word {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg) scale(1);
  filter: blur(0);
}

/* Couleurs des mots par section */
.home-spotlight-title .apple-word {
  color: #ffffff;
}

.home-fans-title .apple-word {
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #a89f9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-fans-title .apple-word--accent {
  background: linear-gradient(135deg, #ffffff 0%, #ff6b5e 45%, #EA362A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-agency-title .apple-word {
  color: var(--e-global-color-primary, #EA362A);
}

.home-brandcare-title .apple-word {
  color: #141414;
}

/* Sous-titres & boutons unifiés */
.apple-reveal-sub {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  filter: blur(8px);
  transition:
    opacity 1050ms cubic-bezier(0.16, 1, 0.3, 1) 520ms,
    transform 1150ms cubic-bezier(0.16, 1, 0.3, 1) 520ms,
    filter 1050ms cubic-bezier(0.16, 1, 0.3, 1) 520ms;
}

[data-anim="apple-reveal"].is-animated .apple-reveal-sub {
  opacity: 1;
  transform: none;
  filter: none;
}

.apple-reveal-cta {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  filter: blur(6px);
  transition:
    opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1) 680ms,
    transform 1100ms cubic-bezier(0.16, 1, 0.3, 1) 680ms,
    filter 1000ms cubic-bezier(0.16, 1, 0.3, 1) 680ms;
}

.home-spotlight-header .apple-reveal-cta {
  transition-delay: 320ms;
}

[data-anim="apple-reveal"].is-animated .apple-reveal-cta {
  opacity: 1;
  transform: none;
  filter: none;
}

/* Reveal échelonné des 2 lignes de marquee images */
.home-marquee-rows[data-anim="apple-reveal"] .home-marquee-row {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 1150ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 1000ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home-marquee-rows[data-anim="apple-reveal"] .home-marquee-row:nth-child(2) {
  transition-delay: 160ms;
}

.home-marquee-rows[data-anim="apple-reveal"].is-animated .home-marquee-row {
  opacity: 1;
  transform: none;
  filter: none;
}

/* =============================================
   2. PROJETS À LA UNE (DOUBLE MARQUEE OPPOSE PLEINE LARGEUR)
   ============================================= */
.home-spotlight-wrap {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--e-global-color-2619ceb, #141414);
  position: relative;
  z-index: 10;
  padding: clamp(140px, 18vh, 220px) 0 clamp(64px, 10vh, 120px);
  overflow: hidden;
}

.home-spotlight-container {
  width: 100%;
}

.home-spotlight-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  width: 98%;
  margin: 0 auto clamp(32px, 4.5vh, 52px);
}

.home-spotlight-title {
  font-family: "jaf-lapture-display", serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 0.85;
  text-transform: uppercase;
  color: #ffffff;
  margin: 0;
}

.home-spotlight-controls {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Double Marquee */
.home-marquee-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4.5vh, 52px);
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  filter: blur(10px);
  transition:
    opacity 1150ms cubic-bezier(0.16, 1, 0.3, 1) 180ms,
    transform 1300ms cubic-bezier(0.16, 1, 0.3, 1) 180ms,
    filter 1150ms cubic-bezier(0.16, 1, 0.3, 1) 180ms;
}

.home-marquee-rows.is-animated {
  opacity: 1;
  transform: none;
  filter: none;
}

.home-marquee-row {
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.home-marquee-row.is-dragging {
  cursor: grabbing;
}

.home-marquee-row.is-dragging a {
  pointer-events: none;
}

.home-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.home-marquee-row:not(.is-js-ready).home-marquee-row--left .home-marquee-track {
  animation: homeProjectsMarqueeLeft 54s linear infinite;
}

.home-marquee-row:not(.is-js-ready).home-marquee-row--right .home-marquee-track {
  animation: homeProjectsMarqueeRight 58s linear infinite;
}

@keyframes homeProjectsMarqueeLeft {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes homeProjectsMarqueeRight {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

.home-marquee-card {
  width: 44vw;
  margin-right: 1.2vw;
  flex-shrink: 0;
}

/* Rythme asymétrique : alternance de largeurs tout en gardant un défilement continu parfait */
.home-marquee-card[data-card-mod="0"] {
  width: 50vw;
}

.home-marquee-card[data-card-mod="1"] {
  width: 38vw;
}

.home-marquee-card[data-card-mod="2"] {
  width: 44vw;
}

.home-marquee-card-link {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.home-marquee-media {
  position: relative;
  width: 100%;
  height: clamp(360px, 56vh, 660px);
  border-radius: 4px;
  overflow: hidden;
  background-color: #222222;
}

.home-marquee-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.home-marquee-meta {
  display: flex;
  flex-direction: column;
}

.home-marquee-name {
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 600;
  color: #ffffff;
  font-family: "jaf-lapture-display", serif;
  line-height: 1.2;
}

.home-marquee-desc {
  color: #A19591;
  font-size: 24px;
  font-family: "jaf-lapture-display", serif;
  line-height: 1.25;
}

/* =============================================
   3. TURN CLIENTS INTO FANS
   ============================================= */
.home-fans-section {
  background-color: var(--e-global-color-2619ceb, #141414);
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.home-fans-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 96%;
  margin: 0 auto;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px 8vh;
}

.home-fans-title {
  font-family: "jaf-lapture-display", sans-serif;
  font-size: clamp(56px, 7.2vw, 120px);
  font-weight: 400;
  line-height: 1.05;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
}

.home-fans-sub {
  font-family: "jaf-lapture-display", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff;
  max-width: 1200px;
  margin: 24px 0 0 0;
}

.home-fans-cta {
  margin-top: 40px;
}

@media (prefers-reduced-motion: reduce) {
  .apple-word,
  .apple-reveal-sub,
  .apple-reveal-cta,
  .home-marquee-rows,
  .home-marquee-row {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .home-marquee-track {
    animation: none !important;
  }
}

/* 4. BRANDING AGENCY IN GENEVA */
.home-agency-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  overflow: visible;
  background-color: var(--e-global-color-2619ceb, #141414);
  z-index: 10;
}

.home-agency-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-agency-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
  pointer-events: none;
}

.home-agency-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 96%;
  margin: 0 auto;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px 8vh;
}

.home-agency-title {
  font-family: "jaf-lapture-display", sans-serif;
  font-size: clamp(56px, 7.2vw, 120px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--e-global-color-primary, #EA362A);
  text-transform: uppercase;
  margin: 0;
}

.home-agency-sub {
  font-family: "jaf-lapture-display", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff;
  max-width: 1200px;
  margin: 24px 0 0 0;
}

.home-agency-cta {
  margin-top: 40px;
}

/* 5. BRANDCARE SECTION */
.home-brandcare-section {
  background-color: var(--e-global-color-primary, #EA362A);
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 20;
}

.home-brandcare-inner {
  width: 100%;
  max-width: 96%;
  margin: 0 auto;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px 8vh;
}

.home-brandcare-title {
  font-family: "jaf-lapture-display", sans-serif;
  font-size: clamp(56px, 7.2vw, 120px);
  font-weight: 400;
  line-height: 1.05;
  color: #141414;
  margin: 0;
}

.home-brandcare-sub {
  font-family: "jaf-lapture-display", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.35;
  color: #141414;
  max-width: 1200px;
  margin: 24px 0 0 0;
}

.home-brandcare-cta {
  margin-top: 40px;
}

/* =============================================
   RESPONSIVE ACCUEIL (post-15 breakpoints)
   ============================================= */
@media (max-width: 1024px) {
  .home-spotlight-title {
    font-size: 48px;
  }

  .home-marquee-card,
  .home-marquee-card[data-card-mod="0"],
  .home-marquee-card[data-card-mod="1"],
  .home-marquee-card[data-card-mod="2"] {
    width: 62vw;
    margin-right: 2vw;
  }

  .home-marquee-media {
    height: clamp(320px, 48vh, 500px);
  }

  .home-fans-inner,
  .home-agency-inner,
  .home-brandcare-inner {
    padding: 0 3% 7vh;
  }

  .home-fans-title,
  .home-agency-title,
  .home-brandcare-title {
    font-size: clamp(44px, 7.2vw, 76px);
    line-height: 1.05;
  }

  .home-fans-sub,
  .home-agency-sub,
  .home-brandcare-sub {
    font-size: 22px;
    margin-top: 20px;
  }

  .home-fans-cta,
  .home-agency-cta,
  .home-brandcare-cta {
    margin-top: 32px;
  }
}

@media (max-width: 767px) {
  .home-spotlight-wrap {
    padding: 110px 0 64px;
    margin-bottom: 0;
  }

  .home-spotlight-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 10px;
    width: 100%;
  }

  .home-spotlight-title {
    font-size: clamp(38px, 10.5vw, 48px);
    line-height: 1;
  }

  .home-marquee-card,
  .home-marquee-card[data-card-mod="0"],
  .home-marquee-card[data-card-mod="1"],
  .home-marquee-card[data-card-mod="2"] {
    width: 82vw;
    margin-right: 3.5vw;
  }

  .home-marquee-media {
    height: 330px;
    border-radius: 6px;
  }

  .home-marquee-name {
    font-size: 22px;
  }

  .home-marquee-desc {
    font-size: 20px;
  }

  .home-fans-section {
    height: auto;
    min-height: 0;
    margin-top: 0;
  }

  .home-fans-inner {
    height: auto;
    min-height: 70svh;
    max-width: 100%;
    padding: 110px 14px 130px;
  }

  .home-agency-section,
  .home-brandcare-section {
    height: 100vh;
    min-height: 100vh;
    margin-top: 0;
  }

  .home-agency-stage {
    height: 100vh;
    min-height: 100vh;
    padding: 0;
  }

  .home-agency-inner,
  .home-brandcare-inner {
    height: 100vh;
    min-height: 100vh;
    max-width: 100%;
    padding: 0 14px 6vh;
  }

  .home-fans-title,
  .home-agency-title,
  .home-brandcare-title {
    font-size: clamp(48px, 13.5vw, 68px);
    line-height: 1.04;
    text-wrap: balance;
  }

  .home-fans-sub,
  .home-agency-sub,
  .home-brandcare-sub {
    font-size: clamp(22px, 5.8vw, 26px);
    line-height: 1.35;
    max-width: 100%;
    margin-top: 22px;
    text-wrap: balance;
  }

  .home-brandcare-sub br {
    display: none;
  }

  .home-fans-cta,
  .home-agency-cta,
  .home-brandcare-cta {
    margin-top: 28px;
  }
}
