/* Landing PonsGrass : un parcours a pied dans la ferme.
   La scene 3D occupe tout l'ecran, les blocs de texte restent colles pendant qu'on avance. */
html { scroll-behavior: auto; }
body { overflow-x: hidden; background: var(--bg); }

#stage { position: fixed; inset: 0; z-index: 0; }
#stage canvas { width: 100%; height: 100%; display: block; filter: saturate(.86) brightness(.8) contrast(1.04); }
#stage .float-layer { display: none; }
/* juste ce qu'il faut de voile : l'horizon reste visible, les bords s'eteignent */
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 12, 10, .72) 0, rgba(9, 12, 10, .2) 11%, rgba(9, 12, 10, .04) 30%, rgba(9, 12, 10, .06) 62%, rgba(9, 12, 10, .68) 100%),
              radial-gradient(ellipse at 50% 50%, rgba(9, 12, 10, 0) 34%, rgba(9, 12, 10, .42) 76%, rgba(9, 12, 10, .8) 100%); }
.page { position: relative; z-index: 2; }

/* flash de transition entre deux etapes : il masque le saut de camera */
#flash { position: fixed; inset: 0; z-index: 6; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at 50% 55%, rgba(233, 237, 226, .9), rgba(190, 226, 170, .5) 55%, transparent 78%); }
#flash.go { animation: flashGo .55s ease-out; }
@keyframes flashGo { 0% { opacity: .85; } 100% { opacity: 0; } }

/* ============================================ navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 26px; background: linear-gradient(180deg, rgba(9, 12, 10, .78), rgba(9, 12, 10, .3)); backdrop-filter: blur(14px); transition: background .3s; }
.nav.stuck { background: rgba(9, 12, 10, .88); border-bottom: 1px solid var(--line); }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.nav-brand img { width: 28px; height: 28px; }
.nav-brand span { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
/* bloc central : onglets en pastilles, et sous eux la jauge d'avancement de la marche */
.nav-mid { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; max-width: 460px; }
.nav-links { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(18, 23, 20, .7); border: 1px solid var(--line); }
.nav-pill { border: 0; background: transparent; color: var(--muted); font-family: var(--font); font-size: 13.5px; font-weight: 500; padding: 7px 13px; border-radius: 9px; cursor: pointer; transition: background .15s, color .15s; }
.nav-pill:hover { color: var(--ink); }
.nav-pill.on { background: var(--surface-3); color: var(--ink); }
.nav-progress { width: 100%; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.nav-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .18s linear; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta { padding: 9px 18px; font-size: 13.5px; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: rgba(9, 12, 10, .4); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .16s, border-color .16s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-3); }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 13px; }
.eq i { width: 2px; height: 4px; background: var(--muted); border-radius: 1px; transition: background .2s; }
.icon-btn.on { border-color: var(--accent-line); }
.icon-btn.on .eq i { background: var(--accent); animation: eq .9s ease-in-out infinite; }
.icon-btn.on .eq i:nth-child(2) { animation-delay: .18s; } .icon-btn.on .eq i:nth-child(3) { animation-delay: .36s; } .icon-btn.on .eq i:nth-child(4) { animation-delay: .54s; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 13px; } }

/* ============================================ etapes du parcours */
.st { min-height: 176vh; position: relative; }
.st-hero { min-height: 132vh; }
.st-in { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding: 0 7vw; }
.st-in.left { justify-content: flex-start; }
.st-in.right { justify-content: flex-end; }
.st-in.center { justify-content: center; text-align: center; flex-direction: column; }
/* voile local derriere le titre : sans lui le texte se perd dans l'herbe */
.st-hero .st-in { background: radial-gradient(ellipse 700px 480px at 50% 50%, rgba(6, 10, 7, .88), rgba(6, 10, 7, .6) 52%, rgba(6, 10, 7, .18) 74%, transparent 86%); }
.reveal { opacity: 0; transition: opacity .8s ease; }
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; } }

/* ---------- arrivee */
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(9, 12, 10, .55); backdrop-filter: blur(10px); font-size: 12.5px; color: var(--ink-2); margin-bottom: 28px; }
.eyebrow b { color: var(--ink); font-weight: 500; }
.ping { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
.st-hero h1 { font-size: clamp(44px, 7.2vw, 88px); line-height: 1.02; margin: 0; letter-spacing: -.04em; text-shadow: 0 6px 40px rgba(0, 0, 0, .75); }
.st-hero .tagline { font-size: 18px; color: var(--ink-2); margin: 26px auto 0; max-width: 500px; line-height: 1.6; text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.hero-cta { margin-top: 36px; }
.stat-row { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.stat-cell { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 0 28px; position: relative; }
.stat-cell + .stat-cell::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: var(--line-2); }
.stat-cell b { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -.035em; }
.stat-cell span { font-size: 12px; color: var(--ink-2); }
.hint { margin-top: 46px; color: var(--muted); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hint::after { content: ""; width: 1px; height: 34px; background: linear-gradient(180deg, var(--line-3), transparent); animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { opacity: .3; transform: scaleY(.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- bloc de dialogue : ce que dit l'etape */
.talk { position: relative; width: min(430px, 88vw); padding: 30px 30px 32px; border-radius: var(--r-xl); background: linear-gradient(180deg, rgba(24, 32, 26, .9), rgba(12, 17, 14, .92)); border: 1px solid var(--line-2); backdrop-filter: blur(16px); box-shadow: var(--lip), 0 26px 60px rgba(0, 0, 0, .6); }
/* petite pointe vers la scene, comme une bulle */
.st-in.right .talk::before, .st-in.left .talk::before { content: ""; position: absolute; top: 46px; width: 12px; height: 12px; background: inherit; border: 1px solid var(--line-2); transform: rotate(45deg); }
.st-in.right .talk::before { left: -7px; border-right: 0; border-top: 0; }
.st-in.left .talk::before { right: -7px; border-left: 0; border-bottom: 0; }
.talk h2 { margin: 0 0 15px; font-size: clamp(26px, 2.6vw, 35px); letter-spacing: -.04em; }
.talk p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.66; }
.talk .label { margin-bottom: 14px; }
.talk .btn { margin-top: 22px; }
.talk-facts { display: flex; gap: 10px; margin-top: 22px; }
.talk-facts span { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--r); background: rgba(9, 12, 10, .5); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.talk-facts b { font-family: var(--display); font-size: 19px; color: var(--ink); font-weight: 800; letter-spacing: -.03em; }

/* en-tete de PNJ */
.npc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.npc-av { width: 36px; height: 36px; border-radius: 10px; flex: none; background: linear-gradient(160deg, var(--c), rgba(0, 0, 0, .5)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.npc-head b { display: block; font-family: var(--display); font-size: 14.5px; font-weight: 600; }
.npc-head span { font-size: 12px; color: var(--muted); }
.npc-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.npc-steps li { counter-increment: s; position: relative; padding-left: 38px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.npc-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 25px; height: 25px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--accent-dim); border: 1px solid var(--accent-line); color: var(--accent); font-family: var(--display); font-weight: 600; font-size: 12px; }
.npc-steps b { color: var(--ink); font-weight: 600; }

/* outil en cours de presentation dans les mains du marchand */
.now-showing { display: flex; align-items: center; gap: 10px; margin: 20px 0 14px; padding: 11px 14px; border-radius: var(--r); background: rgba(9, 12, 10, .55); border: 1px solid var(--line); font-family: var(--display); font-size: 13.5px; font-weight: 600; }
.ns-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); flex: none; animation: pulse 1.1s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
#ns-name { flex: 1; }
.ns-rar { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ns-rar.r-Common { color: var(--c-Common); } .ns-rar.r-Uncommon { color: var(--c-Uncommon); } .ns-rar.r-Rare { color: var(--c-Rare); } .ns-rar.r-Epic { color: var(--c-Epic); } .ns-rar.r-Legendary { color: var(--c-Legendary); } .ns-rar.r-Mythic { color: var(--c-Mythic); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }

/* bande d'apercu des zones */
.zone-strip { display: flex; gap: 7px; margin: 20px 0 4px; overflow: hidden; }
.zone-strip img { width: 62px; height: 38px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); filter: saturate(.85) brightness(.9); transition: transform .3s, filter .3s; }
.zone-strip img:hover { transform: translateY(-3px); filter: none; }

/* ============================================ fin du parcours */
.end { position: relative; background: linear-gradient(180deg, rgba(9, 12, 10, .55) 0, rgba(9, 12, 10, .95) 16%, var(--bg) 40%); padding-top: 16vh; }
.end-in { max-width: 1140px; margin: 0 auto; padding: 0 26px 0; }
.end-cta { text-align: center; padding: 60px 0 80px; }
.end-cta h2 { margin: 0; font-size: clamp(34px, 5vw, 62px); letter-spacing: -.04em; }
.end-cta p { margin: 22px auto 34px; max-width: 500px; color: var(--ink-2); font-size: 18px; line-height: 1.6; }
.cta-row { display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; }
.cta-note { font-size: 13px; color: var(--muted); } .cta-note b { color: var(--ink-2); font-weight: 500; }

/* trois portes de sortie */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 54px; text-align: left; }
.door { position: relative; cursor: pointer; padding: 24px 46px 24px 24px; border-radius: 13px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(28, 36, 30, .6), rgba(16, 21, 18, .6)); box-shadow: var(--lip); transition: border-color .22s, transform .22s, background .22s; font: inherit; color: inherit; }
.door:hover { border-color: var(--accent-line); transform: translateY(-3px); background: linear-gradient(180deg, rgba(34, 46, 34, .7), rgba(18, 25, 19, .7)); }
.door b { display: block; font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.door span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.door .arrow { position: absolute; right: 22px; top: 26px; color: var(--accent); font-style: normal; font-size: 16px; }
.door:hover .arrow { transform: translateX(3px); }

/* ---------- faq */
.faq { padding: 40px 0 90px; }
.faq .head { margin-bottom: 34px; }
.faq .head h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.04em; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; align-items: start; }
.faq details { padding: 0; overflow: hidden; border-radius: 13px; }
.faq details:hover { transform: none; }
.faq details[open] { border-color: var(--line-3); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 19px 22px; outline: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .3s, border-color .2s; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); border-color: var(--accent); }
.faq details .body { padding: 0 22px 22px; }
.faq details p { color: var(--ink-2); line-height: 1.68; margin: 0; font-size: 14.5px; }

/* ---------- pied de page */
footer { border-top: 1px solid var(--line); }
footer .cols { padding: 56px 0 30px; display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 46px; }
footer h4 { margin: 0 0 15px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
footer p { margin: 0; font-size: 13px; line-height: 1.72; color: var(--muted); max-width: 400px; }
footer a { display: block; color: var(--ink-2); text-decoration: none; font-size: 13px; padding: 6px 0; transition: color .15s; }
footer a:hover { color: var(--accent); }
footer .bottom { border-top: 1px solid var(--line); text-align: center; font-size: 12px; padding: 22px; color: var(--muted); }
.foot-mark { width: 22px; height: 22px; }

/* ---------- contenu des panneaux */
.zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }
.tile { overflow: hidden; padding: 0; }
.tile-img { position: relative; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.tile-img img { display: block; width: 100%; aspect-ratio: 18 / 11; object-fit: cover; filter: saturate(.85) brightness(.94); transition: transform .5s cubic-bezier(.2, .8, .3, 1); }
.tile:hover .tile-img img { transform: scale(1.07); }
.tile-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 48%, rgba(9, 12, 10, .72) 100%); }
.tile-idx { position: absolute; z-index: 2; top: 10px; left: 10px; font-family: var(--display); font-weight: 600; font-size: 11px; padding: 4px 9px; border-radius: 7px; background: rgba(6, 10, 7, .65); backdrop-filter: blur(6px); color: var(--ink-2); letter-spacing: .06em; }
.tile-meta { padding: 14px 16px 18px; }
.tile-n { font-family: var(--display); font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.tile-s { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.tile-b { font-size: 12.5px; color: var(--accent); margin-top: 6px; }
.token-figure { display: flex; flex-direction: column; gap: 2px; margin-bottom: 22px; }
.token-figure b { font-family: var(--display); font-size: 72px; font-weight: 600; line-height: .9; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.token-figure span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 860px) {
  footer .cols { grid-template-columns: 1fr; gap: 30px; }
  .st-in { padding: 0 5vw; }
  .st-in.left, .st-in.right { justify-content: center; }
  .talk::before { display: none; }
  .nav-links { display: none; }
  .nav-mid { max-width: 140px; }
}
