/* ═══════════════════════════════════════════════════════════════════
   GAME POINT — DESIGN v3 : Studio-grade refinements
   Inspirations croisées : Active Theory · Lusion · Resn · Cabbi.bo ·
   ManvsMachine · Wedge · Federico Tobon · Locomotive Mtl
   Stratégie : compositions audacieuses, profondeur, mouvement, lumière
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --glass:           rgba(255, 255, 255, 0.06);
  --glass-strong:    rgba(255, 255, 255, 0.12);
  --glass-border:    rgba(255, 255, 255, 0.16);
  --ink-glass:       rgba(10, 10, 10, 0.04);
  --shadow-soft:     0 30px 60px -20px rgba(10, 10, 10, 0.18);
  --shadow-deep:     0 50px 100px -30px rgba(10, 10, 10, 0.25);
  --grain-opacity:   0.045;
}

/* ═══════════════════════════════════════════════════════════════════
   GRAIN — Texture de bruit sur tout le body (look print premium)
   Ajouté via pseudo-element global pour ne pas alourdir le DOM
   ═══════════════════════════════════════════════════════════════════ */
main[data-barba-namespace="home"]::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: var(--grain-opacity);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════════════════
   CURSOR SPOTLIGHT — halo lumineux suivant le curseur
   Géré par JS qui set --cx / --cy sur le body
   ═══════════════════════════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  main[data-barba-namespace="home"]::before {
    content: '';
    position: fixed;
    pointer-events: none;
    inset: 0;
    z-index: 9997;
    background: radial-gradient(
      400px circle at var(--cx, 50%) var(--cy, 50%),
      rgba(255, 94, 0, 0.10),
      transparent 60%
    );
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
  }
  main[data-barba-namespace="home"].gpv3-cursor-active::before {
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   HERO RECOMPOSÉ — Titre traversant, photo qui transperce
   Plus de split 7/5 — composition stratifiée avec z-layers
   ═══════════════════════════════════════════════════════════════════ */
.gp-light-hero {
  padding: clamp(110px, 13vw, 180px) 0 0 !important;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}
.gp-light-hero .gp-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.gp-light-hero__grid {
  display: block !important;     /* casse la grid 7/5 */
  position: relative !important;
  flex: 1;
  min-height: auto !important;
}

/* Texte du hero — passe en pleine largeur, position absolute pour stratifier */
.gp-light-hero__text {
  position: relative !important;
  z-index: 3 !important;
  padding: 0 !important;
  max-width: none !important;
}

/* Le titre devient une "affiche" pleine largeur */
.gp-light-hero__title {
  font-size: clamp(64px, 14vw, 240px) !important;
  line-height: 0.82 !important;
  letter-spacing: -0.024em !important;
  margin: 0 0 var(--sp-32) !important;
  position: relative;
  z-index: 4;
  mix-blend-mode: multiply;        /* le titre interagit avec ce qu'il y a derrière */
}
.gp-light-hero__title em {
  display: inline-block;
  position: relative;
}
.gp-light-hero__title em::after {
  /* trait orange sous le mot accentué — détail Awwwards */
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: -0.08em;
  height: 0.05em;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.2s var(--ease-out) 0.8s;
}
.gpv2-hero-loaded .gp-light-hero__title em::after {
  transform: scaleX(1);
}

/* Le visual — photo des joueuses repositionnée pour transpercer le titre */
.gp-light-hero__visual {
  position: absolute !important;
  right: 0 !important;
  bottom: 0 !important;
  width: clamp(320px, 42vw, 620px) !important;
  max-width: none !important;
  height: clamp(540px, 78vh, 880px);
  z-index: 2 !important;
  pointer-events: none;
  margin: 0 !important;
}
.gp-light-hero__photo {
  width: 100% !important;
  height: 100% !important;
}
.gp-light-hero__photo img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: bottom right !important;
  filter: contrast(1.05) saturate(1.1);
}

/* Lede + ctas se positionnent EN BAS, sous le titre */
.gp-light-hero__lede {
  max-width: 420px !important;
  margin-top: clamp(48px, 8vw, 120px) !important;
  position: relative;
  z-index: 5;
}
.gp-light-hero__ctas {
  position: relative;
  z-index: 5;
}

/* Numéro "01 / 05" éditorial en haut à droite (façon poster de magazine) */
.gp-light-hero::after {
  content: '01 / 05';
  position: absolute;
  top: clamp(120px, 14vw, 190px);
  right: var(--grid-pad);
  font-family: 'GeneralSans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.32em;
  color: var(--ink-40);
  z-index: 6;
  writing-mode: horizontal-tb;
}

/* ═══════════════════════════════════════════════════════════════════
   MARQUEE TICKER — bande de mots clés défilante entre sections
   Position : entre Hero et 3 cartes (inséré via HTML)
   ═══════════════════════════════════════════════════════════════════ */
.gpv3-ticker {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3vw, 40px) 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.gpv3-ticker__track {
  display: flex;
  width: max-content;
  animation: gpv3-tick 38s linear infinite;
  gap: clamp(48px, 6vw, 96px);
}
.gpv3-ticker:hover .gpv3-ticker__track {
  animation-play-state: paused;
}
.gpv3-ticker__group {
  display: flex;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  flex-shrink: 0;
}
.gpv3-ticker__item {
  font-family: 'Bulevar', 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 6vw, 88px);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}
.gpv3-ticker__item em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.gpv3-ticker__item::before {
  content: '✦';
  color: var(--accent);
  font-size: 0.45em;
  display: inline-block;
  transform: translateY(-0.4em);
}
@keyframes gpv3-tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════════════
   PILIERS — Sticky scroll : le numéro reste pinned, le contenu défile
   ═══════════════════════════════════════════════════════════════════ */
.gp-light-pillars__item {
  position: relative !important;
  align-items: start !important;
  padding: clamp(100px, 14vw, 180px) 0 !important;
}

/* Le numéro devient sticky dans sa colonne */
.gp-light-pillars__num {
  position: sticky !important;
  top: 18vh !important;
  font-size: clamp(180px, 28vw, 520px) !important;
  line-height: 0.8 !important;
  -webkit-text-stroke: 1.5px var(--ink-24) !important;
  z-index: 1;
}
.gp-light-pillars__item:hover .gp-light-pillars__num {
  -webkit-text-stroke: 1.5px var(--accent) !important;
  color: transparent !important;
}

/* Le contenu de chaque pilier devient une "page" avec plus d'air */
.gp-light-pillars__title {
  font-size: clamp(40px, 4.2vw, 72px) !important;
  margin: 0 0 var(--sp-32) !important;
}
.gp-light-pillars__lead {
  font-size: clamp(18px, 1.4vw, 22px) !important;
  line-height: 1.5 !important;
  margin: 0 0 var(--sp-48) !important;
}

/* Reset alternance — le sticky marche mieux en uni-directionnel */
.gp-light-pillars__item:nth-child(even) {
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important;
}
.gp-light-pillars__item:nth-child(even) .gp-light-pillars__num {
  order: 0 !important;
  text-align: left !important;
  grid-column: 1 !important;
}
.gp-light-pillars__item:nth-child(even) .gp-light-pillars__title,
.gp-light-pillars__item:nth-child(even) .gp-light-pillars__lead,
.gp-light-pillars__item:nth-child(even) .gp-light-pillars__list,
.gp-light-pillars__item:nth-child(even) .gp-light-pillars__tagline,
.gp-light-pillars__item:nth-child(even) .gp-light-pillars__triplet {
  order: 1 !important;
  grid-column: 2 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SERVICES — Cards 3D tilt + glass overlay
   Perspective + rotateX/Y au hover, glassmorphism sur info bottom
   ═══════════════════════════════════════════════════════════════════ */
.gp-light-services__grid {
  perspective: 1600px;
}
.gp-light-services__card {
  transform-style: preserve-3d;
  transition:
    transform 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out) !important;
  will-change: transform;
  background: var(--ink) !important;
  box-shadow: var(--shadow-soft) !important;
}
.gp-light-services__card:hover {
  transform: translateY(-8px) rotateX(2deg) rotateY(-2deg) scale(1.01) !important;
  box-shadow: var(--shadow-deep) !important;
}

/* Glassmorphism sur l'info bottom des cards */
.gp-light-services__info {
  background: rgba(10, 10, 10, 0.32);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: var(--sp-24) var(--sp-32) !important;
  transform: translateZ(20px);
}

/* Overlay plus dramatique */
.gp-light-services__overlay {
  background: linear-gradient(
    180deg,
    rgba(10, 10, 10, 0) 0%,
    rgba(10, 10, 10, 0.2) 50%,
    rgba(10, 10, 10, 0.85) 100%
  ) !important;
}

/* Petit chevron qui apparaît au hover sur chaque card */
.gp-light-services__card::after {
  content: '→';
  position: absolute;
  top: var(--sp-24);
  right: var(--sp-24);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-family: serif;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  opacity: 0;
  transform: translateY(-8px) translateZ(40px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.gp-light-services__card:hover::after {
  opacity: 1;
  transform: translateY(0) translateZ(40px);
}

/* ═══════════════════════════════════════════════════════════════════
   POURQUOI (slot SELECTED CASES) — mix-blend titre sur fond texturé
   ═══════════════════════════════════════════════════════════════════ */
.section-home-work-intro h3 {
  font-size: clamp(72px, 14vw, 220px) !important;
  line-height: 0.8 !important;
  letter-spacing: -0.02em !important;
  mix-blend-mode: multiply;
}

/* ═══════════════════════════════════════════════════════════════════
   PARTENAIRES — Glass cards flottantes
   ═══════════════════════════════════════════════════════════════════ */
.gp-light-partners__card {
  background: var(--glass) !important;
  backdrop-filter: blur(20px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.1) !important;
  border: 1px solid rgba(10, 10, 10, 0.06) !important;
  border-right: 1px solid var(--hairline);
  transition: background 0.4s var(--ease-out),
              transform 0.4s var(--ease-out),
              border-color 0.4s var(--ease-out) !important;
}
.gp-light-partners__card:hover {
  background: rgba(255, 94, 0, 0.05) !important;
  border-color: rgba(255, 94, 0, 0.18) !important;
  transform: translateY(-4px) !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SCROLL PROGRESS BAR — barre subtile en haut de page
   ═══════════════════════════════════════════════════════════════════ */
.gpv3-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  z-index: 9999;
  pointer-events: none;
}
.gpv3-progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  transform-origin: left;
  transition: width 0.1s linear;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — désactivation des effets coûteux sur mobile
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gp-light-hero__visual {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    margin-top: var(--sp-48) !important;
  }
  .gp-light-hero__title {
    font-size: clamp(56px, 14vw, 120px) !important;
    mix-blend-mode: normal;
  }
  .gp-light-pillars__num {
    position: relative !important;
    top: auto !important;
    font-size: clamp(96px, 18vw, 160px) !important;
  }
  .gp-light-services__card:hover {
    transform: translateY(-4px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gpv3-ticker__track { animation: none; }
  main[data-barba-namespace="home"]::after { display: none; }
  main[data-barba-namespace="home"]::before { display: none !important; }
  .gpv3-progress { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   PILIERS — Refonte façon propulse8.com Vision (DA cohérente cross-brand)
   - Grille 2 colonnes (sauf 5e pilier full-width)
   - Format "01 / Nom" eyebrow accent orange en haut de chaque item
   - Trait hairline top, padding-top 56px par section
   - Stagger reveal en cascade (effet profondeur 3D)
   - Hover subtil : numéro qui glisse vers la droite
   ═══════════════════════════════════════════════════════════════════ */

/* On annule le sticky + numéros géants outline du push précédent */
.gp-light-pillars__num {
  position: static !important;
  font-size: 12px !important;
  letter-spacing: 0.42em !important;
  font-family: 'GeneralSans', 'Manrope', sans-serif !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  color: var(--accent) !important;
  -webkit-text-stroke: 0 !important;
  line-height: 1.4 !important;
  margin: 0 0 var(--sp-24) !important;
  grid-column: auto !important;
  align-self: auto !important;
  transition: transform .6s var(--ease-out), letter-spacing .6s var(--ease-out) !important;
}

/* La section pilier elle-même redevient une grille éditoriale 2 cols */
.gp-light-pillars {
  padding: var(--sp-section) 0 !important;
}
.gp-light-pillars::before {
  content: '— Notre méthode';
  display: block;
  max-width: var(--grid-max);
  margin: 0 auto clamp(48px, 6vw, 80px);
  padding: 0 var(--grid-pad);
  font-family: 'GeneralSans', sans-serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--ink-56);
  text-transform: uppercase;
}
.gp-light-pillars__title-anchor {
  display: block;
  max-width: var(--grid-max);
  margin: 0 auto var(--sp-48);
  padding: 0 var(--grid-pad);
}

.gp-light-pillars .gp-container {
  max-width: var(--grid-max);
  padding: 0 var(--grid-pad);
}
/* Conteneur des piliers — grille 2 cols, le 5e prend toute la largeur */
.gp-light-pillars__items,
.gp-light-pillars .gp-container > .gp-light-pillars__item:first-child::before {
  /* fallback container : on enroulera via JS si besoin */
}

/* Chaque pilier devient un BLOC dans la grille (plus un grid row interne) */
.gp-light-pillars__item {
  display: flex !important;
  flex-direction: column !important;
  gap: var(--sp-16) !important;
  padding: clamp(56px, 6vw, 80px) 0 !important;
  border-top: 1px solid var(--ink-12) !important;
  border-bottom: 0 !important;
  /* reveal cascade — animé via JS .is-in-view */
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out);
}
.gp-light-pillars__item:last-child {
  border-bottom: 1px solid var(--ink-12) !important;
}
.gp-light-pillars__item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger en cascade — c'est ce qui donne l'effet "3D profondeur" propulse8 */
.gp-light-pillars__item:nth-child(1).is-visible { transition-delay: .15s; }
.gp-light-pillars__item:nth-child(2).is-visible { transition-delay: .25s; }
.gp-light-pillars__item:nth-child(3).is-visible { transition-delay: .35s; }
.gp-light-pillars__item:nth-child(4).is-visible { transition-delay: .45s; }
.gp-light-pillars__item:nth-child(5).is-visible { transition-delay: .55s; }

/* Layout — 2 colonnes par défaut */
.gp-light-pillars .gp-container {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  column-gap: clamp(32px, 5vw, 80px) !important;
  row-gap: 0 !important;
  align-items: stretch !important;
}
.gp-light-pillars::before {
  grid-column: 1 / -1;
  margin-bottom: var(--sp-48) !important;
  padding: 0 !important;
}

/* Le 5e pilier prend toute la largeur (mise en valeur du closing) */
.gp-light-pillars__item:nth-child(5),
.gp-light-pillars__item:last-child {
  grid-column: 1 / -1 !important;
  border-top: 1px solid var(--ink) !important;   /* trait plus marqué pour le closing */
  padding-top: clamp(72px, 8vw, 120px) !important;
}

/* Titres en Bulevar mais taille modérée pour l'éditorial */
.gp-light-pillars__title {
  font-family: 'Bulevar', 'Barlow Condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(32px, 3vw, 48px) !important;
  line-height: 0.96 !important;
  letter-spacing: -0.014em !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  margin: 0 0 var(--sp-16) !important;
  grid-column: auto !important;
}
.gp-light-pillars__item:nth-child(5) .gp-light-pillars__title,
.gp-light-pillars__item:last-child .gp-light-pillars__title {
  font-size: clamp(48px, 5vw, 88px) !important;
}

/* Lede — typo GeneralSans plus généreuse */
.gp-light-pillars__lead {
  font-family: 'GeneralSans', 'Barlow', sans-serif !important;
  font-weight: 400 !important;
  font-size: clamp(15px, 1.1vw, 17px) !important;
  line-height: 1.55 !important;
  color: var(--ink-72) !important;
  max-width: 540px !important;
  margin: 0 0 var(--sp-24) !important;
  grid-column: auto !important;
}

/* Liste à puces : tirets horizontaux discrets */
.gp-light-pillars__list {
  list-style: none !important;
  margin: 0 0 var(--sp-16) !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 6px clamp(16px, 2vw, 32px) !important;
  max-width: 540px !important;
  grid-column: auto !important;
}
.gp-light-pillars__list li {
  padding-left: 20px !important;
  font-family: 'GeneralSans', 'Barlow', sans-serif !important;
  font-weight: 400 !important;
  font-size: 14px !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--ink) !important;
  line-height: 1.55 !important;
  position: relative;
}
.gp-light-pillars__list li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.7em !important;
  width: 12px !important;
  height: 1px !important;
  background: var(--accent) !important;
  border-radius: 0 !important;
  transform: none !important;
}

/* Tagline pilier 1 */
.gp-light-pillars__tagline {
  font-family: 'GeneralSans', sans-serif !important;
  font-style: italic !important;
  font-size: 14px !important;
  color: var(--ink-56) !important;
  margin: var(--sp-8) 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  grid-column: auto !important;
}

/* Triplet du pilier 5 — closing fort */
.gp-light-pillars__triplet {
  grid-column: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: var(--sp-12) var(--sp-32) !important;
  margin-top: var(--sp-24) !important;
}
.gp-light-pillars__triplet span {
  font-family: 'Bulevar', 'Barlow Condensed', sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(18px, 1.8vw, 26px) !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  color: var(--ink) !important;
  padding-bottom: 4px !important;
  border-bottom: 2px solid var(--accent) !important;
  width: fit-content !important;
}

/* Hover : le numéro glisse légèrement à droite (subtil 3D) */
.gp-light-pillars__item:hover .gp-light-pillars__num {
  transform: translateX(6px) !important;
  letter-spacing: 0.48em !important;
}

/* Responsive — passe en 1 col sur tablette */
@media (max-width: 900px) {
  .gp-light-pillars .gp-container {
    grid-template-columns: 1fr !important;
  }
  .gp-light-pillars__item:nth-child(5),
  .gp-light-pillars__item:last-child {
    grid-column: 1 !important;
  }
}
