/* ==========================================================================
   Play4Geek Messenger — landing produit
   ========================================================================== */

/* Break out of theme chrome on this page */
body.page-template-page-messenger-app,
body.page-template-page-messenger-app-php,
.p4g-lp {
  --lp-accent: var(--bg-blue, #fc5f20);
  --lp-brown: var(--bg-dark, #442127);
  --lp-night: #140c0e;
  --lp-night-2: #1e1013;
  --lp-ink: #fff7f2;
  --lp-mute: rgba(255, 247, 242, 0.68);
  --lp-faint: rgba(255, 247, 242, 0.42);
  --lp-paper: #f4eee8;
  --lp-paper-2: #ebe3db;
  --lp-ink-dark: #1c1214;
  --lp-mute-dark: #5a4c46;
  --lp-display: "Syne", var(--font-sans, system-ui, sans-serif);
  --lp-body: "Figtree", var(--font-sans, system-ui, sans-serif);
}

body.page-template-page-messenger-app .site-content,
body.page-template-page-messenger-app-php .site-content,
body.page-template-page-messenger-app #content,
body.page-template-page-messenger-app-php #content,
body.page-template-page-messenger-app .content-area,
body.page-template-page-messenger-app-php .content-area {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.page-template-page-messenger-app .site-main,
body.page-template-page-messenger-app-php .site-main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.p4g-lp {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  font-family: var(--lp-body);
  color: var(--lp-ink);
  background: var(--lp-night);
  overflow-x: clip;
}

.p4g-lp h1,
.p4g-lp h2,
.p4g-lp .p4g-lp__brand-name,
.p4g-lp .p4g-lp__brand-app,
.p4g-lp .p4g-lp__path-n {
  font-family: var(--lp-display);
}

.p4g-lp__wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.p4g-lp__wrap--narrow {
  width: min(720px, calc(100% - 2.5rem));
}

.p4g-lp__kicker {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lp-accent);
}

/* --------------------------------------------------------------------------
   Hero — full-bleed composition
   -------------------------------------------------------------------------- */
.p4g-lp__hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: var(--lp-ink);
  background: var(--lp-night);
}

.p4g-lp__hero-visual {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.p4g-lp__hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 42%;
  transform: scale(1.06);
  animation: p4g-lp-drift 26s ease-in-out infinite alternate;
}

.p4g-lp__hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(20, 12, 14, 0.98) 0%,
      rgba(20, 12, 14, 0.9) 28%,
      rgba(20, 12, 14, 0.45) 55%,
      rgba(20, 12, 14, 0.2) 100%
    ),
    linear-gradient(
      180deg,
      rgba(20, 12, 14, 0.15) 0%,
      rgba(20, 12, 14, 0.55) 55%,
      rgba(20, 12, 14, 0.92) 100%
    ),
    radial-gradient(
      ellipse 50% 45% at 20% 75%,
      color-mix(in srgb, var(--lp-accent) 34%, transparent),
      transparent 70%
    );
}

.p4g-lp__hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 6rem 0 5.5rem;
  max-width: 36rem;
}

.p4g-lp__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  margin: 0 0 1.6rem;
  animation: p4g-lp-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.p4g-lp__brand--compact {
  margin-bottom: 1.25rem;
  justify-content: center;
  text-align: left;
}

.p4g-lp__logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.p4g-lp__brand--compact .p4g-lp__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.p4g-lp__brand-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 0.95;
}

.p4g-lp__brand-name {
  font-size: clamp(2.15rem, 5.5vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #fff;
}

.p4g-lp__brand-app {
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--lp-accent);
}

.p4g-lp__brand--compact .p4g-lp__brand-name {
  font-size: 1.55rem;
}

.p4g-lp__brand--compact .p4g-lp__brand-app {
  font-size: 1.15rem;
}

.p4g-lp__headline {
  margin: 0 0 0.95rem;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--lp-ink);
  max-width: 18ch;
  animation: p4g-lp-rise 0.95s cubic-bezier(0.16, 1, 0.3, 1) 0.08s both;
}

.p4g-lp__lead {
  margin: 0 0 1.85rem;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--lp-mute);
  max-width: 34ch;
  animation: p4g-lp-rise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.14s both;
}

.p4g-lp__actions {
  animation: p4g-lp-rise 1.05s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.p4g-lp__download {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.05rem 1.45rem;
  border-radius: 14px;
  background: var(--lp-accent);
  color: #fff !important;
  text-decoration: none !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 16px 40px color-mix(in srgb, var(--lp-accent) 40%, transparent);
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.p4g-lp__download:hover,
.p4g-lp__download:focus-visible {
  background: color-mix(in srgb, var(--lp-accent) 86%, #000);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 20px 46px color-mix(in srgb, var(--lp-accent) 48%, transparent);
  color: #fff !important;
}

.p4g-lp__download i {
  font-size: 1.75rem;
}

.p4g-lp__download-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}

.p4g-lp__download strong {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.p4g-lp__download small {
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.9;
}

.p4g-lp__fine {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  color: var(--lp-faint);
  letter-spacing: 0.01em;
  animation: p4g-lp-rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}

.p4g-lp__unavailable {
  margin: 0;
  color: var(--lp-mute);
}

.p4g-lp__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 2;
  width: 28px;
  height: 42px;
  margin-left: -14px;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  text-decoration: none;
}

.p4g-lp__scroll span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--lp-accent);
  animation: p4g-lp-scroll 1.6s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Story + stage
   -------------------------------------------------------------------------- */
.p4g-lp__story {
  padding: 5.5rem 0 0;
  background: var(--lp-night);
  text-align: center;
}

.p4g-lp__story h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
}

.p4g-lp__story-text {
  margin: 0 auto;
  max-width: 42ch;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--lp-mute);
}

.p4g-lp__stage {
  margin: 3.25rem 0 0;
  width: 100%;
}

.p4g-lp__stage img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */
.p4g-lp__pillar {
  padding: 5rem 0;
  background: var(--lp-paper);
  color: var(--lp-ink-dark);
}

.p4g-lp__pillar:nth-of-type(even) {
  background: var(--lp-paper-2);
}

.p4g-lp__pillar-inner {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 2.75rem 3.5rem;
  align-items: center;
}

.p4g-lp__pillar.is-flip .p4g-lp__pillar-inner {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.p4g-lp__pillar.is-flip .p4g-lp__pillar-copy {
  order: 2;
}

.p4g-lp__pillar.is-flip .p4g-lp__pillar-shot {
  order: 1;
}

.p4g-lp__pillar-copy h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  max-width: 16ch;
}

.p4g-lp__pillar-copy p:last-child {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--lp-mute-dark);
  max-width: 36ch;
}

.p4g-lp__pillar-shot {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(28, 18, 20, 0.16);
}

.p4g-lp__pillar-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------------
   Capabilities
   -------------------------------------------------------------------------- */
.p4g-lp__kit {
  padding: 5rem 0;
  background: var(--lp-night-2);
}

.p4g-lp__kit-head {
  max-width: 28rem;
  margin-bottom: 2.5rem;
}

.p4g-lp__kit-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
}

.p4g-lp__kit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.p4g-lp__kit-list li {
  padding: 1.15rem 1.1rem 1.15rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--lp-ink);
  position: relative;
  padding-left: 1.1rem;
}

.p4g-lp__kit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--lp-accent);
  border-radius: 1px;
}

/* --------------------------------------------------------------------------
   Path
   -------------------------------------------------------------------------- */
.p4g-lp__path {
  padding: 5rem 0;
  background: var(--lp-night);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.p4g-lp__path h2 {
  margin: 0 0 2.5rem;
  font-size: clamp(1.55rem, 2.8vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  max-width: 16ch;
}

.p4g-lp__path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.p4g-lp__path-n {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--lp-accent);
}

.p4g-lp__path-list strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.p4g-lp__path-list span:last-child {
  display: block;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--lp-mute);
  max-width: 24ch;
}

/* --------------------------------------------------------------------------
   Close
   -------------------------------------------------------------------------- */
.p4g-lp__close {
  position: relative;
  padding: 5.5rem 0 6rem;
  text-align: center;
  background: var(--lp-brown);
  overflow: hidden;
}

.p4g-lp__close::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% -10%,
    color-mix(in srgb, var(--lp-accent) 38%, transparent),
    transparent 70%
  );
  animation: p4g-lp-glow 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.p4g-lp__close-inner {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.p4g-lp__close h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
}

.p4g-lp__close-text {
  margin: 0 0 1.85rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--lp-mute);
}

.p4g-lp__close .p4g-lp__download {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */
@keyframes p4g-lp-rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes p4g-lp-drift {
  from {
    transform: scale(1.06) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(-1.5%, -0.8%, 0);
  }
}

@keyframes p4g-lp-scroll {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(10px);
  }
}

@keyframes p4g-lp-glow {
  from {
    opacity: 0.7;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .p4g-lp__hero {
    min-height: auto;
  }

  .p4g-lp__hero-visual img {
    object-position: 80% 30%;
    opacity: 0.65;
  }

  .p4g-lp__hero-veil {
    background:
      linear-gradient(
        180deg,
        rgba(20, 12, 14, 0.45) 0%,
        rgba(20, 12, 14, 0.88) 38%,
        rgba(20, 12, 14, 0.97) 100%
      ),
      radial-gradient(
        ellipse 90% 45% at 50% 0%,
        color-mix(in srgb, var(--lp-accent) 26%, transparent),
        transparent 70%
      );
  }

  .p4g-lp__hero-content {
    max-width: none;
    padding: 4.25rem 0 4rem;
  }

  .p4g-lp__headline {
    max-width: none;
  }

  .p4g-lp__pillar-inner,
  .p4g-lp__pillar.is-flip .p4g-lp__pillar-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .p4g-lp__pillar.is-flip .p4g-lp__pillar-copy,
  .p4g-lp__pillar.is-flip .p4g-lp__pillar-shot {
    order: initial;
  }

  .p4g-lp__pillar-copy {
    order: 1;
  }

  .p4g-lp__pillar-shot {
    order: 2;
  }

  .p4g-lp__pillar-copy h2 {
    max-width: none;
  }

  .p4g-lp__kit-list,
  .p4g-lp__path-list {
    grid-template-columns: 1fr;
  }

  .p4g-lp__scroll {
    display: none;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .p4g-lp__kit-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .p4g-lp__download {
    width: 100%;
    justify-content: center;
  }

  .p4g-lp__download-copy {
    align-items: center;
    text-align: center;
  }

  .p4g-lp__brand-name {
    font-size: clamp(1.9rem, 10vw, 2.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .p4g-lp__hero-visual img,
  .p4g-lp__brand,
  .p4g-lp__headline,
  .p4g-lp__lead,
  .p4g-lp__actions,
  .p4g-lp__fine,
  .p4g-lp__download,
  .p4g-lp__scroll span,
  .p4g-lp__close::before {
    animation: none !important;
    transition: none !important;
  }

  .p4g-lp__hero-visual img {
    transform: none;
  }
}
