/* ============================================================
   MDJLABS - pages produit du labo · HERO (gabarit commun, teinte --pc)
   Swap namespace (pgh-) + teinte produit (--pc) du hero
   ProLearn. Le Hero N'EST PAS un
   scrollytelling : c'est l'OUVERTURE, portée par une animation
   d'entrée forte jouée UNE FOIS au chargement (geste signature :
   le wordmark du produit atterrit depuis la profondeur → IMPACT
   tremor + poussière Canvas → le reste du contenu se révèle).
   Fond : amorce d'interface iso. Teinte produit teal --pl ; accent
   phosphore --acc. Version vitrine : CTA de conversion greffés.
   ⚠️ Le bloc `.plx-rail button.is-here { --acc }` de l'atelier a été
   RETIRÉ (non scopé → repeindrait le marqueur actif de toutes les
   scènes de la page assemblée). Le rail reste géré par prolearn-scroll.
   ============================================================ */

/* ============================================================
   SECTION HERO - ≈1 viewport, centré, profondeur iso
   ============================================================ */
.pgh-hero { position: relative; z-index: 2; min-height: 100vh; display: flex; align-items: center; padding: clamp(96px, 14vh, 150px) 0 clamp(60px, 9vh, 110px); overflow: hidden; }
.pgh-hero .ct { position: relative; z-index: 3; }
.pgh-inner { max-width: 1000px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }

/* -- amorce d'interface en perspective iso (fond, réactive au thème) -- */
.pgh-iso { position: absolute; left: 50%; top: 50%; width: min(120vw, 1500px); height: 120vh; transform: translate(-50%, -50%); z-index: 1; pointer-events: none; perspective: 1600px; opacity: .34; }
.pgh-iso .hi-plane { position: absolute; inset: 12% 8%; transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-42deg); animation: pghIsoBreath 16s var(--ease) infinite alternate; }
@keyframes pghIsoBreath { from { transform: rotateX(57deg) rotateZ(-44deg) translateZ(0); } to { transform: rotateX(52deg) rotateZ(-38deg) translateZ(26px); } }
.pgh-iso .hi-panel { position: absolute; border: 1px solid var(--pc-line); border-radius: var(--r-sm); background: color-mix(in oklab, var(--bg-1) 72%, transparent); box-shadow: 0 30px 70px -34px var(--pc-glow); display: flex; flex-direction: column; gap: 9px; padding: 14px; }
.pgh-iso .hi-a { left: 2%;  top: 6%;  width: 40%; height: 24%; transform: translateZ(70px); }
.pgh-iso .hi-b { right: 4%; top: 2%;  width: 38%; height: 34%; transform: translateZ(38px); }
.pgh-iso .hi-c { left: 8%;  bottom: 8%; width: 34%; height: 30%; transform: translateZ(52px); }
.pgh-iso .hi-d { right: 6%; bottom: 4%; width: 40%; height: 28%; transform: translateZ(20px); }
.pgh-iso .hi-card { gap: 8px; }
.pgh-iso .hi-risk { display: flex; gap: 5px; align-items: center; font-family: var(--ff-mono); font-size: 10px; letter-spacing: .08em; color: var(--fg-2); }
.pgh-iso .hi-risk i { width: 22px; height: 6px; border-radius: 999px; background: var(--line-strong); }
.pgh-iso .hi-risk i:first-of-type { background: var(--pc); box-shadow: 0 0 8px var(--pc-glow); }
.pgh-iso .hi-title { height: 10px; width: 78%; border-radius: 999px; background: var(--line-strong); }
.pgh-iso .hi-choice { height: 16px; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--bg-2); }
.pgh-iso .hi-choice.is-reco { background: var(--pc); border-color: var(--pc); opacity: .85; width: 100%; }
.pgh-iso .hi-bubble { display: flex; flex-direction: column; gap: 8px; margin: auto 0; }
.pgh-iso .hi-ok { width: 26px; height: 26px; border-radius: 999px; background: var(--pc-soft); border: 1.5px solid var(--pc); }
.pgh-iso .hi-line { height: 8px; border-radius: 999px; background: var(--line); }
.pgh-iso .hi-line.sm { width: 60%; }
.pgh-iso .hi-sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; height: 100%; }
.pgh-iso .hi-sessions i { border-radius: var(--r-xs); background: var(--bg-2); border: 1px solid var(--line); }
.pgh-iso .hi-sessions i:nth-child(1) { background: var(--pc-soft); border-color: var(--pc-line); }
@media (max-width: 820px) { .pgh-iso { opacity: .18; } }

/* -- canvas poussière (au-dessus du fond, sous/autour du texte) -- */
.pgh-dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }

/* ============================================================
   CONTENU DU HERO
   ============================================================ */
.pgh-eyebrow { font-family: var(--ff-mono); font-size: clamp(10px, 1vw, 12.5px); letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-2); margin: 0 0 clamp(20px, 3.6vh, 34px); text-wrap: balance; }
.pgh-eyebrow .wm { letter-spacing: 0.06em; font-size: 1em; }
.pgh-eyebrow b { color: var(--acc); font-weight: 500; }

.pgh-pain { font-family: var(--ff-mono); font-size: clamp(12px, 1.3vw, 16px); letter-spacing: 0.02em; color: var(--fg-1); margin: 0 0 clamp(20px, 3vh, 30px); }
.pgh-pain::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: var(--danger, #FF7E7E); box-shadow: 0 0 8px var(--danger-soft, rgba(255,126,126,.4)); margin-right: 10px; vertical-align: middle; }

/* -- LE WORDMARK QUI ATTERRIT (héros du geste) -- */
.pgh-wm { margin: 0 0 clamp(14px, 2.4vh, 26px); line-height: 1; will-change: transform, opacity; }
.pgh-wm .wm { font-size: clamp(30px, 7.2vw, 104px); letter-spacing: 0.02em; line-height: 1; text-shadow: 0 0 60px var(--pc-glow); }
.pgh-wm .wm b { color: var(--pc); }

.pgh-triad { font-family: var(--ff-sans); font-size: clamp(26px, 4.4vw, 58px); font-weight: 700; letter-spacing: -0.035em; line-height: 1; margin: 0 0 clamp(22px, 3.4vh, 36px); color: var(--fg-0); text-wrap: balance; }
.pgh-triad em { font-style: normal; color: var(--pc); text-shadow: 0 0 44px var(--pc-glow); }

.pgh-pitch { max-width: 66ch; margin: 0 0 clamp(28px, 4.2vh, 44px); font-size: clamp(15px, 1.55vw, 20px); line-height: 1.58; color: var(--fg-1); text-wrap: pretty; }
.pgh-pitch b { color: var(--fg-0); font-weight: 600; }

/* -- CTA de conversion (greffés version vitrine) -- */
.pgh-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 clamp(28px, 4.2vh, 44px); }

/* -- bandeau normes (rangée mono discrète) -- */
.pgh-norms { max-width: 860px; margin: 0 0 clamp(30px, 4.6vh, 48px); }
.pgh-norms-lbl { font-family: var(--ff-mono); font-size: clamp(9.5px, .95vw, 11.5px); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; text-wrap: balance; }
.pgh-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 8px; }
.pgh-tags li { font-family: var(--ff-mono); font-size: clamp(9px, .92vw, 11px); letter-spacing: 0.06em; color: var(--fg-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 5px 9px; background: color-mix(in oklab, var(--bg-1) 60%, transparent); font-feature-settings: "zero","tnum"; }

/* -- bouton « défiler » -- */
.pgh-scroll { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--ff-mono); font-size: clamp(10px, 1vw, 12px); letter-spacing: 0.2em; text-transform: uppercase; color: var(--fg-2); background: none; border: 0; cursor: pointer; padding: 4px; }
.pgh-scroll:hover { color: var(--acc); }
.pgh-scroll:focus-visible { outline: none; color: var(--acc); box-shadow: var(--glow-focus); border-radius: var(--r-sm); }
.pgh-scroll .ring { width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--acc-line); display: inline-flex; align-items: center; justify-content: center; color: var(--acc); }
.pgh-scroll:hover .ring { background: var(--acc-soft); box-shadow: 0 0 14px -2px var(--acc-glow); }
.pgh-scroll .ring svg { animation: pghBob 2.1s var(--ease) infinite; }
@keyframes pghBob { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ============================================================
   LE GESTE - états d'animation posés par le JS
   ============================================================ */
/* état de vol : wordmark loin dans la profondeur, incliné, invisible */
.pgh-hero.is-arming .pgh-wm { transform: perspective(1200px) translate3d(0, -16vh, -1100px) rotateX(42deg) rotateY(-16deg) scale(1.24); opacity: 0; }
/* atterrissage : transition pilotée par le JS (décélération dure en fin) */
.pgh-hero.is-landing .pgh-wm { transition: transform 1000ms cubic-bezier(.16,.9,.28,1), opacity 620ms ease-out; transform: perspective(1200px) translate3d(0,0,0) rotateX(0) rotateY(0) scale(1); opacity: 1; }

/* tremor de la scène à l'impact (secousse brève) */
.pgh-inner.tremor { animation: pghTremor 460ms cubic-bezier(.36,.07,.19,.97) both; }
@keyframes pghTremor {
  0% { transform: translate3d(0,0,0); }
  12% { transform: translate3d(-5px, 3px, 0) rotate(-.35deg); }
  26% { transform: translate3d(6px, -2px, 0) rotate(.3deg); }
  42% { transform: translate3d(-4px, 2px, 0); }
  58% { transform: translate3d(3px, -1px, 0); }
  74% { transform: translate3d(-2px, 1px, 0); }
  100% { transform: translate3d(0,0,0); }
}
/* léger flash de la lueur du logo à l'atterrissage */
.pgh-wm.impact .wm { animation: pghFlash 560ms var(--ease) both; }
@keyframes pghFlash { 0% { text-shadow: 0 0 60px var(--pc-glow); } 22% { text-shadow: 0 0 6px var(--pc-glow), 0 0 120px var(--pc); } 100% { text-shadow: 0 0 60px var(--pc-glow); } }

/* contenu qui se révèle APRÈS l'atterrissage (fondu/montée, staggeré) */
.pgh-reveal { opacity: 0; transform: translateY(22px); }
.pgh-hero.revealed .pgh-reveal { opacity: 1; transform: none; transition: opacity 640ms var(--ease), transform 640ms var(--ease); transition-delay: var(--rd, 0ms); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 700px) {
  .pgh-tags { gap: 6px; }
  .pgh-pitch { font-size: clamp(14px, 4vw, 17px); }
}

/* ============================================================
   ÉCRANS COURTS - le hero (avec CTA greffés) doit tenir dans le viewport :
   wordmark et rythme vertical resserrés
   ============================================================ */
@media (max-height: 820px) {
  .pgh-hero { padding: clamp(66px, 9vh, 96px) 0 clamp(24px, 3.5vh, 48px); }
  .pgh-wm .wm { font-size: clamp(28px, 5.6vw, 72px); }
  .pgh-wm { margin-bottom: clamp(4px, 1.1vh, 12px); }
  .pgh-eyebrow { margin-bottom: clamp(8px, 1.8vh, 16px); }
  .pgh-inner .sol-chip { margin-bottom: clamp(8px, 1.6vh, 14px); }
  .pgh-pain { margin-bottom: clamp(8px, 1.6vh, 14px); }
  .pgh-triad { margin-bottom: clamp(10px, 2vh, 18px); }
  .pgh-pitch { margin-bottom: clamp(10px, 2vh, 20px); }
  .pgh-cta { margin-bottom: clamp(10px, 2vh, 20px); }
  .pgh-norms { margin-bottom: clamp(8px, 1.6vh, 16px); }
}

/* ============================================================
   REPLI - reduced-motion : logo POSÉ d'emblée, contenu visible,
   pas de vol / poussière / tremor. Transitions neutralisées.
   ============================================================ */
html.pgh-still .pgh-wm { transform: none !important; opacity: 1 !important; }
html.pgh-still .pgh-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
html.pgh-still .pgh-iso .hi-plane { animation: none !important; }
html.pgh-still .pgh-dust { display: none; }

@media (prefers-reduced-motion: reduce) {
  .pgh-iso .hi-plane, .pgh-scroll .ring svg { animation: none !important; }
  .pgh-wm, .pgh-reveal { transition: none !important; transform: none !important; opacity: 1 !important; }
}

/* ===== briques isométriques supplémentaires (PlanTrack, ProMovie, MiamBoost, ProJob, OpenStyle) ===== */
.pgh-iso .hi-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; height: 100%; align-items: start; }
.pgh-iso .hi-cols > i { display: block; height: 100%; border-radius: var(--r-xs); background: var(--bg-2); border: 1px solid var(--line); }
.pgh-iso .hi-cols > i:nth-child(2) { height: 62%; background: var(--pc-soft); border-color: var(--pc-line); }
.pgh-iso .hi-cols > i:nth-child(3) { height: 40%; }
.pgh-iso .hi-pill { align-self: flex-start; height: 14px; width: 42%; border-radius: 999px; border: 1px solid var(--pc); background: var(--pc-soft); }
.pgh-iso .hi-term { display: flex; flex-direction: column; gap: 7px; margin: auto 0; }
.pgh-iso .hi-term .hi-line:first-child { width: 36%; background: var(--pc); opacity: .8; }
.pgh-iso .hi-tracks { display: flex; flex-direction: column; gap: 8px; height: 100%; justify-content: center; }
.pgh-iso .hi-tracks > i { display: block; height: 12px; border-radius: var(--r-xs); background: var(--bg-2); border: 1px solid var(--line); }
.pgh-iso .hi-tracks > i:nth-child(1) { width: 78%; background: var(--pc-soft); border-color: var(--pc-line); }
.pgh-iso .hi-tracks > i:nth-child(2) { width: 54%; margin-left: 18%; }
.pgh-iso .hi-tracks > i:nth-child(3) { width: 66%; margin-left: 6%; background: var(--pc); opacity: .7; border-color: var(--pc); }
.pgh-iso .hi-frame { margin: auto; width: 82%; aspect-ratio: 16 / 9; border-radius: var(--r-xs); border: 1.5px solid var(--pc); background: var(--pc-soft); }
.pgh-iso .hi-bars { display: flex; align-items: flex-end; gap: 7px; height: 100%; }
.pgh-iso .hi-bars > i { flex: 1; border-radius: var(--r-xs) var(--r-xs) 0 0; background: var(--bg-2); border: 1px solid var(--line); height: 55%; }
.pgh-iso .hi-bars > i:nth-child(2) { height: 40%; }
.pgh-iso .hi-bars > i:nth-child(3) { height: 28%; background: var(--pc-soft); border-color: var(--pc-line); }
.pgh-iso .hi-bars > i:nth-child(4) { height: 48%; background: var(--pc); opacity: .75; border-color: var(--pc); }
.pgh-iso .hi-bars > i:nth-child(5) { height: 66%; background: var(--pc); opacity: .85; border-color: var(--pc); }
.pgh-iso .hi-ring { margin: auto; width: 64px; height: 64px; border-radius: 999px; border: 7px solid var(--line-strong); border-top-color: var(--pc); border-right-color: var(--pc); box-shadow: 0 0 14px var(--pc-glow); }
.pgh-iso .hi-docs { display: flex; flex-direction: column; gap: 7px; height: 100%; justify-content: center; }
.pgh-iso .hi-docs > i { display: block; height: 14px; border-radius: var(--r-xs); background: var(--bg-2); border: 1px solid var(--line); }
.pgh-iso .hi-docs > i:first-child { background: var(--pc-soft); border-color: var(--pc-line); }
.pgh-iso .hi-cal { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; height: 100%; }
.pgh-iso .hi-cal > i { display: block; border-radius: 3px; background: var(--bg-2); border: 1px solid var(--line); }
.pgh-iso .hi-cal > i.is-on { background: var(--pc-soft); border-color: var(--pc); box-shadow: 0 0 12px var(--pc-glow); }
