@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/dmsans-500.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrainsmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root {
  --bg: #000; --s1: #0A0B10; --s2: #111319; --s3: #171A22;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.16);
  --ink: #F2F3F7; --dim: #8E94A3; --faint: #565C6A;
  --or: #F5B841; --violet: #B84DFF; --vert: #4ADE80; --rouge: #F0506E;
  --sans: "DM Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-weight: 400; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; letter-spacing: -.025em; line-height: 1.05; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font: 500 .9rem var(--sans); border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--ink); cursor: pointer; transition: background .2s; }
.btn:hover { background: rgba(255,255,255,.09); }
.btn.plein { background: #fff; color: #000; border-color: #fff; }
.btn.or { background: var(--or); color: #1a1200; border-color: var(--or); }
.btn.gros { padding: 14px 26px; font-size: 1rem; border-radius: 12px; }

/* en-tête */
.top { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.pleine { background: rgba(0,0,0,.72); backdrop-filter: blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; height: 64px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 500; letter-spacing: .02em; font-size: 1.1rem; }
.logo img { width: 26px; height: 26px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: .88rem; color: var(--dim); }
.nav a:hover { color: var(--ink); }
.top .actions { display: flex; gap: 8px; }

/* héros */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 104px 24px 48px; overflow: hidden; }
.etoiles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 4.2rem); font-weight: 400; max-width: 20ch; margin: 0 auto; text-shadow: 0 0 28px rgba(255,255,255,.28), 0 0 70px rgba(255,255,255,.12); }
.hero h1 .brille { position: relative; text-shadow: none; filter: drop-shadow(0 0 22px rgba(245,184,65,.35)); }
.hero h1 .brille::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--or), #fff, var(--or), transparent); transform: scaleX(0); transform-origin: left; animation: souligne 1.2s cubic-bezier(.2,.7,.2,1) 1.4s forwards; }
@keyframes souligne { to { transform: scaleX(1); } }
.ancre-main { position: absolute; left: calc(50% + 215px); top: calc(100% - 118px); width: 64px; height: 64px; }
.main-salut { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; opacity: 0; animation: apparait-t .8s ease-out 1.7s forwards; will-change: transform; }
@keyframes apparait-t { from { opacity: 0; } to { opacity: 1; } }
.main-salut .main { display: block; font-size: 58px; line-height: 1; transform-origin: 70% 90%; animation: salut 2.4s ease-in-out 2.4s infinite; filter: drop-shadow(0 0 18px rgba(255,255,255,.3)); transition: transform .35s, opacity .25s; }
@keyframes salut { 0%, 55%, 100% { rotate: 0deg; } 8% { rotate: 20deg; } 16% { rotate: -10deg; } 24% { rotate: 18deg; } 32% { rotate: -6deg; } 40% { rotate: 12deg; } }
.main-salut .fleche { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; gap: 2px; opacity: 0; transform: scale(.3); transform-origin: 0 0; transition: transform .35s cubic-bezier(.2,.9,.3,1.3), opacity .25s; }
.main-salut .fleche svg { width: 24px; filter: drop-shadow(0 0 8px rgba(245,184,65,.6)); }
.main-salut .fleche span { margin-top: 18px; padding: 3px 9px; border-radius: 6px 10px 10px 10px; background: var(--or); color: #1a1200; font: 500 .74rem var(--sans); }
.main-salut.curseur-mode .main { opacity: 0; transform: scale(.2) rotate(-40deg); }
.main-salut.curseur-mode .fleche { opacity: 1; transform: none; }
.main-salut.clic .fleche svg { transform: scale(.8); }
.hero.suivi, .hero.suivi a { cursor: none; }
@keyframes salue { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-12px) rotate(8deg); } }
.brille { background: linear-gradient(90deg, var(--or) 0%, #fff 25%, var(--or) 50%, var(--violet) 75%, var(--or) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brille 6s linear infinite; }
@keyframes brille { to { background-position: -200% 0; } }
.hero .sous { margin: 6px auto 0; max-width: 520px; color: var(--dim); font-size: 1.08rem; line-height: 1.6; }
.hero .ctas { margin-top: 34px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 22px; }

/* portail : Mimir au centre d'anneaux 3D. Les anneaux sont dessinés derrière lui,
   puis leur moitié proche est redessinée par-dessus (clip-path) pour qu'ils l'entourent. */
.etincelles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.portail { --t: min(40vh, 400px); position: relative; width: var(--t); height: var(--t); margin: 34px auto 26px; }
.portail::before { content: ""; position: absolute; inset: -45%; background: radial-gradient(closest-side, rgba(184,77,255,.32), rgba(245,184,65,.1) 55%, transparent); pointer-events: none; }
.portail .couche { position: absolute; inset: -40%; display: grid; place-items: center; pointer-events: none; }
.portail .avant-bas { z-index: 3; clip-path: inset(50% 0 0 0); }
.portail .avant-gauche { z-index: 3; clip-path: inset(0 50% 0 0); }
.portail .scene3d { width: var(--t); height: var(--t); position: relative; perspective: 1200px; transition: transform .3s ease-out; }
.portail .anneau { position: absolute; inset: 0; border-radius: 50%; border: 5px solid rgba(245,184,65,.9); box-shadow: 0 0 30px rgba(245,184,65,.45), inset 0 0 30px rgba(245,184,65,.25); }
.portail .r1 { animation: pr1 9s linear infinite; }
.portail .r2 { inset: 8%; border-width: 3px; border-color: rgba(184,77,255,.9); box-shadow: 0 0 40px rgba(184,77,255,.6); animation: pr2 13s linear infinite; }
.portail .r3 { inset: -14%; border: 3px dashed rgba(255,255,255,.35); box-shadow: none; animation: pr3 30s linear infinite; }
@keyframes pr1 { from { transform: rotateX(66deg) rotateZ(0); } to { transform: rotateX(66deg) rotateZ(360deg); } }
@keyframes pr2 { from { transform: rotateY(68deg) rotateZ(0); } to { transform: rotateY(68deg) rotateZ(-360deg); } }
@keyframes pr3 { from { transform: rotateX(80deg) rotateZ(0); } to { transform: rotateX(80deg) rotateZ(360deg); } }
.portail .orbite-rangs { position: absolute; inset: -14%; animation: pr3 30s linear infinite; transform-style: preserve-3d; }
.portail .orbite-rangs img { position: absolute; width: 56px; height: 56px; translate: -50% -50%; transform: rotateX(-80deg); }
.portail .mimir { position: absolute; z-index: 2; left: 50%; top: 50%; height: 108%; translate: -50% -52%; filter: drop-shadow(0 0 50px rgba(184,77,255,.6)); -webkit-mask-image: radial-gradient(ellipse 50% 52% at 50% 46%, #000 64%, transparent 100%); mask-image: radial-gradient(ellipse 50% 52% at 50% 46%, #000 64%, transparent 100%); }
@media (max-width: 700px) { .portail { --t: min(66vw, 280px); margin: 40px auto 34px; } .portail .orbite-rangs img { width: 38px; height: 38px; } }

/* planète */
.planete .globe { position: absolute; left: 50%; top: 18vh; width: 170vh; height: 170vh; transform: translateX(-12%); border-radius: 50%; background: radial-gradient(circle at 25% 20%, #0c0b12 0%, #030305 40%, #000 65%); box-shadow: inset 2px 2px 2px rgba(255,255,255,.7), inset 10px 8px 24px rgba(200,210,255,.2), inset 40px 30px 90px rgba(184,77,255,.07), -4px -4px 40px rgba(200,210,255,.1); }
.planete .orbite { position: absolute; left: 50%; top: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.planete .mimir { position: absolute; left: 18%; top: 34vh; width: 210px; filter: drop-shadow(0 0 40px rgba(184,77,255,.45)); animation: flotte 8s ease-in-out infinite; }
@keyframes flotte { 50% { transform: translateY(-18px) rotate(-2deg); } }
.planete .bulle { position: absolute; left: calc(18% + 190px); top: 36vh; max-width: 250px; padding: 12px 15px; border-radius: 14px 14px 14px 4px; background: rgba(17,19,25,.85); border: 1px solid var(--line-2); font-size: .9rem; color: var(--dim); backdrop-filter: blur(8px); }
.planete .bulle b { color: var(--or); font-weight: 500; }

/* phrase en cercles */
.cercles span.c { position: absolute; left: 50%; top: 50%; border: 1px solid var(--line); border-radius: 50%; transform: translate(-50%, -50%); }
.cercles h2 { position: relative; font-size: clamp(2.2rem, 5vw, 4.2rem); text-align: center; }
.cercles h2 .mot { opacity: .18; transition: opacity .5s; }
.cercles h2 .mot.vu { opacity: 1; }
.cercles h2 .point { color: var(--or); }

/* trois modes */
.modes { padding: 60px 0 140px; }
.modes .tete { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.modes h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.modes .tete p { max-width: 420px; color: var(--dim); line-height: 1.6; }
.modes .grille { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.etape { min-height: 78vh; padding-bottom: 60px; }
.etape h3 { font-size: 1.7rem; margin-top: 26px; }
.etape p { margin-top: 10px; color: var(--dim); max-width: 520px; line-height: 1.6; }
.ecran { border: 1px solid var(--line); border-radius: 16px; background: var(--s1); overflow: hidden; }
.ecran .barre { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ecran .barre i { width: 9px; height: 9px; border-radius: 50%; background: var(--s3); }
.ecran .barre .url { margin-left: 12px; font: .72rem var(--mono); color: var(--faint); }
.ecran .corps { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; }
.ecran .cote { border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; font-size: .8rem; color: var(--dim); }
.ecran .cote span { padding: 6px 8px; border-radius: 7px; }
.ecran .cote span.on { background: var(--s3); color: var(--ink); }
.ecran .main { padding: 18px; }
.ecran .main h4 { margin: 0 0 14px; font-weight: 400; font-size: 1.05rem; }
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.tuile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.tuile small { display: block; font: .62rem var(--mono); letter-spacing: .1em; color: var(--faint); text-transform: uppercase; }
.tuile b { font-weight: 400; font-size: 1.25rem; }
.tuile em { font-style: normal; font-size: .72rem; color: var(--vert); margin-left: 6px; }
.partie { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); font-size: .82rem; }
.partie img { width: 28px; height: 28px; border-radius: 7px; }
.partie .kda { margin-left: auto; font-family: var(--mono); font-size: .75rem; color: var(--dim); }
.partie .lp { width: 54px; text-align: right; font-family: var(--mono); font-size: .75rem; }
.partie .lp.p { color: var(--vert); } .partie .lp.m { color: var(--rouge); }
.chrono { position: relative; height: 54px; margin: 6px 0 14px; border-top: 1px dashed var(--line-2); }
.chrono .ev { position: absolute; top: -6px; width: 11px; height: 11px; border-radius: 50%; background: var(--s3); border: 1px solid var(--line-2); }
.chrono .ev.rouge { background: var(--rouge); border-color: var(--rouge); box-shadow: 0 0 14px var(--rouge); }
.chrono .ev small { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: .62rem var(--mono); color: var(--faint); }
.chrono .ev.rouge small { color: var(--rouge); }

/* panneau Mimir collé */
.panneau { position: sticky; top: 90px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--s1); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(184,77,255,.06); }
.onglets { display: flex; gap: 4px; padding: 10px; }
.onglets button { flex: 1; padding: 7px 0; border-radius: 8px; border: 0; background: none; color: var(--faint); font: .78rem var(--sans); cursor: pointer; }
.onglets button.on { background: var(--s3); color: var(--ink); }
.onglets button b { font: .7rem var(--mono); margin-right: 4px; }
.fil { padding: 6px 16px 16px; min-height: 380px; }
.msg-j { margin-left: auto; max-width: 85%; padding: 10px 13px; border-radius: 12px; background: var(--s3); font-size: .86rem; line-height: 1.45; }
.qui { display: flex; align-items: center; gap: 8px; margin: 16px 0 10px; font-size: .82rem; }
.qui img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--s3); }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.plan li { list-style: none; display: flex; gap: 9px; align-items: center; padding: 6px 2px; font-size: .8rem; color: var(--faint); transition: color .4s; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--line-2); }
.plan li.ok { color: var(--dim); }
.plan li.ok::before { border-color: var(--vert); background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23000' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan li.cours { color: var(--ink); }
.plan li.cours::before { border-color: var(--or); box-shadow: 0 0 10px var(--or); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 2px var(--or); } }
.plan ul { margin: 0; padding: 0; }
.rep { margin-top: 12px; font-size: .86rem; color: var(--dim); line-height: 1.55; }
.rep b { color: var(--ink); font-weight: 500; }
.sources { margin-top: 10px; font: .66rem var(--mono); color: var(--faint); letter-spacing: .08em; }
.saisie { margin: 0 12px 12px; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--faint); font-size: .84rem; }
.saisie i { width: 26px; height: 26px; border-radius: 8px; background: var(--or); }

/* contexte de partie */
.contexte { padding: 120px 0; text-align: center; position: relative; }
.contexte h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 18ch; margin: 0 auto; }
.contexte .sous { max-width: 560px; margin: 20px auto 56px; color: var(--dim); line-height: 1.6; }
.carte-partie { position: relative; max-width: 900px; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 18px; background: var(--s1); padding: 22px; text-align: left; perspective: 1000px; }
.carte-partie .ligne { display: grid; grid-template-columns: 180px 1fr; gap: 22px; }
.carte-partie .carte { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.carte-partie .carte img { width: 100%; opacity: .55; filter: grayscale(.3); }
.carte-partie .repere { position: absolute; padding: 3px 7px; border-radius: 6px; font: .6rem var(--mono); border: 1px dashed var(--or); color: var(--or); background: rgba(0,0,0,.6); white-space: nowrap; }
.etiquette { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 5px; font: .6rem var(--mono); border: 1px dashed rgba(184,77,255,.6); color: #d6a6ff; }
.carte-partie .faits { display: grid; gap: 10px; }
.fait { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .88rem; }
.fait .t { font: .72rem var(--mono); color: var(--faint); width: 44px; }
.fait.chaud { border-color: rgba(240,80,110,.4); background: rgba(240,80,110,.05); }

/* bento */
.bento-sec { padding: 120px 0; }
.bento-sec h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 48px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.case { grid-column: span 2; border: 1px solid var(--line); border-radius: 18px; background: var(--s1); padding: 20px; display: flex; flex-direction: column; min-height: 300px; overflow: hidden; }
.case.l { grid-column: span 3; }
.case .vis { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; margin-bottom: 18px; }
.case p { color: var(--dim); font-size: .9rem; line-height: 1.5; }
.case p b { color: var(--ink); font-weight: 500; }
.puce { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; background: var(--s2); }
.puce .k { margin-left: auto; font: .66rem var(--mono); color: var(--faint); }
.puce.var { border-style: dashed; border-color: rgba(245,184,65,.45); }
.rec { display: inline-flex; gap: 6px; align-items: center; font: .66rem var(--mono); color: var(--rouge); }
.rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rouge); animation: pulse 1.2s infinite; }
.logos { display: flex; flex-wrap: wrap; gap: 8px; }
.logos span { padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--s2); font-size: .8rem; }
.gros-chiffre { font-size: 3rem; font-weight: 300; }
.barres { display: grid; gap: 7px; }
.barres div { display: grid; grid-template-columns: 1fr 40px; gap: 10px; align-items: center; font-size: .8rem; color: var(--dim); }
.barres div i { display: block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--violet), var(--or)); margin-top: 4px; }
.barres div b { font: .72rem var(--mono); color: var(--faint); text-align: right; font-weight: 400; }
.colere { align-self: flex-start; padding: 9px 12px; border-radius: 12px; background: var(--s3); font-size: .85rem; }
.colere + .colere { align-self: flex-end; background: rgba(245,184,65,.12); color: var(--or); }

/* partout */
.partout { padding: 120px 0; }
.partout h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.partout .sous { margin: 16px 0 48px; color: var(--dim); }
.trois { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.app { border: 1px solid var(--line); border-radius: 18px; background: var(--s1); overflow: hidden; }
.app .h { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: .85rem; }
.app .h small { color: var(--faint); font-size: .75rem; }
.app .b { padding: 16px; display: grid; gap: 10px; font-size: .84rem; }
.app .q { justify-self: end; padding: 8px 12px; border-radius: 10px; background: var(--s3); }
.app .r { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.app .r ol { margin: 8px 0 0; padding-left: 18px; color: var(--dim); line-height: 1.7; }
.app .sig { font: .64rem var(--mono); color: var(--faint); }

/* chiffres */
.chiffres { padding: 100px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chiffres .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.chiffres b { display: block; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 300; letter-spacing: -.03em; }
.chiffres span { color: var(--dim); }

/* prix */
.prix { padding: 120px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.prix h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.prix .muted { color: var(--dim); margin-top: 16px; line-height: 1.6; }
.offre { border: 1px solid var(--line-2); border-radius: 20px; background: var(--s1); padding: 28px; }
.bascule { display: inline-flex; padding: 4px; border-radius: 10px; background: var(--s2); margin-bottom: 22px; }
.bascule button { padding: 7px 16px; border: 0; border-radius: 7px; background: none; color: var(--dim); font: .84rem var(--sans); cursor: pointer; }
.bascule button.on { background: var(--s3); color: var(--ink); }
.offre .montant { font-size: 3.6rem; font-weight: 300; letter-spacing: -.03em; }
.offre .montant small { font-size: 1rem; color: var(--dim); }
.offre ul { margin: 18px 0 24px; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--dim); font-size: .92rem; }
.offre ul li::before { content: "✓"; color: var(--or); margin-right: 10px; }

/* faq */
.faq { padding: 60px 0 120px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; }
.faq h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 1.02rem; }
summary::after { content: "+"; color: var(--faint); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 12px; color: var(--dim); line-height: 1.6; }

/* fin */
.fin { position: relative; padding: 160px 24px; text-align: center; overflow: hidden; }
.fin::before { content: ""; position: absolute; left: 50%; bottom: -60%; width: 1200px; height: 900px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(184,77,255,.25), rgba(245,184,65,.08) 60%, transparent); }
.fin h2 { position: relative; font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
.fin p { position: relative; margin: 18px 0 32px; color: var(--dim); }
.fin .ctas { position: relative; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: .8rem; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

.apparait { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.apparait.vu { opacity: 1; transform: none; }

/* scènes pilotées par le défilement : --p va de 0 à 1 */
.scene { position: relative; --p: 0; }
.colle { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.w { display: inline-block; opacity: 0; transform: translateY(.6em); filter: blur(10px); animation: monte 1s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes monte { to { opacity: 1; transform: none; filter: none; } }
.hero .contenu { transform: translateY(calc(var(--p) * -120px)) scale(calc(1 - var(--p) * .12)); opacity: calc(1 - var(--p) * 1.4); }

.planete { height: 240vh; }
.planete .globe { transform: translate(calc(-12% + var(--p) * -18%), calc((1 - var(--p)) * 45vh)) scale(calc(.6 + var(--p) * .55)) rotate(calc(var(--p) * 25deg)); }
.planete .orbite { transform: translate(-50%, -50%) scale(calc(.5 + var(--p) * .9)) rotate(calc(var(--p) * 90deg)); opacity: calc(.3 + var(--p)); border-style: dashed; }
.planete .mimir { width: 300px; left: calc(6% + var(--p) * 14%); top: calc(56vh - var(--p) * 30vh); filter: drop-shadow(0 0 30px rgba(184,77,255,.35));
  -webkit-mask-image: radial-gradient(ellipse 50% 52% at 56% 40%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 50% 52% at 56% 40%, #000 55%, transparent 100%); }
.planete .aura { position: absolute; width: 520px; height: 520px; border-radius: 50%; pointer-events: none; left: calc(6% + var(--p) * 14% - 110px); top: calc(56vh - var(--p) * 30vh - 90px);
  background: radial-gradient(closest-side, rgba(184,77,255,.35), rgba(245,184,65,.08) 55%, transparent 75%); animation: flotte 8s ease-in-out infinite; }
.planete .bulle { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s, transform .5s; left: calc(6% + var(--p) * 14% + 270px); top: calc(58vh - var(--p) * 30vh); }
.planete .bulle.vu { opacity: 1; transform: none; }
.planete .legende { position: absolute; right: 8%; bottom: 14vh; max-width: 380px; text-align: right; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 300; letter-spacing: -.02em; opacity: calc((var(--p) - .55) * 3); transform: translateY(calc((1 - var(--p)) * 60px)); }
.planete .legende span { color: var(--or); }
.planete .trainee { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(255,255,255,.7); }

.cercles { height: 220vh; }
.cercles .colle { display: grid; place-items: center; }
.cercles span.c { transform: translate(-50%, -50%) scale(calc(.3 + var(--p) * 1.3)); opacity: calc(1.2 - var(--p) * .6); transition: none; }
.cercles span.c::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--or); box-shadow: 0 0 12px var(--or); }
.cercles span.c:nth-child(2n)::after { top: auto; bottom: -3px; background: var(--violet); box-shadow: 0 0 12px var(--violet); }
.cercles span.c:nth-child(1) { animation: tourne 18s linear infinite; } .cercles span.c:nth-child(2) { animation: tourne 26s linear infinite reverse; }
.cercles span.c:nth-child(3) { animation: tourne 34s linear infinite; } .cercles span.c:nth-child(4) { animation: tourne 46s linear infinite reverse; }
@keyframes tourne { from { rotate: 0deg; } to { rotate: 360deg; } }
.cercles h2 { transform: scale(calc(.85 + var(--p) * .25)); }

.contexte { height: 260vh; padding: 0; }
.contexte .colle { display: flex; flex-direction: column; justify-content: center; padding: 70px 0 20px; }
.contexte .sous { margin-bottom: 36px; }
.contexte .sol { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 60%; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 60px 60px; transform: perspective(600px) rotateX(70deg); transform-origin: bottom; -webkit-mask-image: linear-gradient(transparent, #000 60%); mask-image: linear-gradient(transparent, #000 60%); pointer-events: none; animation: avance 4s linear infinite; }
@keyframes avance { to { background-position: 0 60px; } }
.carte-partie { --q: 0; transform: perspective(1200px) rotateX(calc((1 - var(--q)) * 48deg)) translateY(calc((1 - var(--q)) * 140px)) scale(calc(.82 + var(--q) * .18)); opacity: calc(.2 + var(--q)); box-shadow: 0 40px 120px rgba(184,77,255, calc(var(--q) * .18)); }
.carte-partie .fait { opacity: 0; transform: translateX(20px); transition: opacity .5s, transform .5s; }
.carte-partie .fait.vu { opacity: 1; transform: none; }
.carte-partie .etiquette, .carte-partie .repere { opacity: 0; transition: opacity .4s; }
.carte-partie.etiq .etiquette, .carte-partie.etiq .repere { opacity: 1; }
.carte-partie .repere { animation: pulse-rep 1.6s ease-in-out infinite; }
@keyframes pulse-rep { 50% { box-shadow: 0 0 14px rgba(245,184,65,.6); } }
.carte-partie .point { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 18px 4px rgba(245,184,65,.8); left: calc(8% + var(--q) * 50%); top: calc(85% - var(--q) * 55%); }

/* curseur dans les écrans */
.ecran { position: relative; }
.curseur { position: absolute; left: 60%; top: 70%; width: 20px; height: 20px; z-index: 3; pointer-events: none; transition: left .8s cubic-bezier(.5,0,.2,1), top .8s cubic-bezier(.5,0,.2,1); filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.curseur::after { content: ""; position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--or); opacity: 0; }
.curseur.clic::after { animation: clic .5s ease-out; }
@keyframes clic { from { opacity: 1; transform: scale(.3); } to { opacity: 0; transform: scale(1.8); } }
[data-cible] { transition: box-shadow .3s, background .3s; border-radius: 8px; }
[data-cible].cible-on { box-shadow: 0 0 0 1px var(--or), 0 0 24px rgba(245,184,65,.25); background: rgba(245,184,65,.06); }
.toast { position: absolute; right: 14px; bottom: 14px; padding: 8px 12px; border-radius: 9px; background: var(--s3); border: 1px solid var(--line-2); font-size: .76rem; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; z-index: 2; }
.toast.vu { opacity: 1; transform: none; }
.toast::before { content: "● "; color: var(--vert); }
.etape .ecran { transform: scale(.94); opacity: .45; transition: transform .6s, opacity .6s; }
.etape.actif .ecran { transform: none; opacity: 1; }
.curseur-tape::after { content: "▍"; color: var(--or); animation: clignote 1s steps(2) infinite; }
@keyframes clignote { 50% { opacity: 0; } }

/* bento animé */
.case { transition-delay: calc(var(--i, 0) * 90ms); }
.case .puce.on { border-color: var(--or); color: var(--ink); background: rgba(245,184,65,.08); }
.case .puce { transition: border-color .3s, background .3s; }
.puce.var { animation: pointille 1.6s ease-in-out infinite; }
@keyframes pointille { 50% { border-color: rgba(245,184,65,.9); } }
.barres i { width: 0 !important; transition: width 1.4s cubic-bezier(.2,.7,.2,1) .3s; }
.case.vu .barres i { width: var(--w) !important; }
.colere { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.case.vu .colere { opacity: 1; transform: none; }
.case.vu .colere + .colere { transition-delay: 1.2s; }
.logos span { animation: flotte-l 4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.8s); }
@keyframes flotte-l { 50% { transform: translateY(-5px); } }

/* partout : réponses qui arrivent */
.app .q, .app .r, .app .r li, .app .sig { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s; }
.app.vu .q { opacity: 1; transform: none; transition-delay: .2s; }
.app.vu .r { opacity: 1; transform: none; transition-delay: .9s; }
.app.vu .r li { opacity: 1; transform: none; }
.app.vu .r li:nth-child(1) { transition-delay: 1.3s; } .app.vu .r li:nth-child(2) { transition-delay: 1.6s; } .app.vu .r li:nth-child(3) { transition-delay: 1.9s; }
.app.vu .sig { opacity: 1; transform: none; transition-delay: 2.2s; }
.trois .app:nth-child(2) { transition-delay: .15s; } .trois .app:nth-child(3) { transition-delay: .3s; }
.fin::before { animation: respire 6s ease-in-out infinite; }
@keyframes respire { 50% { transform: translateX(-50%) scale(1.12); opacity: .7; } }

/* tunnel quadrillé */
.tunnel { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: grid; place-items: center; }
.tunnel canvas, .champ canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tunnel-txt { position: relative; text-align: center; margin-top: -18vh; padding: 0 24px; }
.tunnel h2, .champ h2, .histoires h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); background: linear-gradient(90deg, #fff 0%, #fff 45%, #6f7482 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.invite { margin: 40px auto 0; width: min(820px, 92vw); display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 14px; border-radius: 22px; background: rgba(14,15,20,.85); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.02); backdrop-filter: blur(8px); text-align: left; }
.invite .vis { width: 46px; height: 46px; border-radius: 13px; overflow: hidden; flex: none; background: linear-gradient(160deg, #3a2f5a, #15121f); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.invite .vis img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 12%; transform: scale(1.6); transform-origin: 55% 18%; }
.invite #inviteTxt { flex: 1; font-size: 1.25rem; color: var(--dim); }
.invite #inviteTxt::after { content: "▍"; color: var(--or); animation: clignote 1s steps(2) infinite; }
.invite button { width: 52px; height: 52px; border-radius: 50%; border: 0; background: #d9dbe2; color: #111; font-size: 1.2rem; cursor: pointer; box-shadow: 0 0 30px rgba(255,255,255,.25); }

/* interface en verre + faisceau */
.carte-partie { background: linear-gradient(160deg, rgba(30,32,44,.75), rgba(10,11,16,.85)); backdrop-filter: blur(10px); border-color: rgba(255,255,255,.14); overflow: hidden; }
.carte-partie .faisceau { position: absolute; top: -20%; bottom: -20%; width: 90px; left: -120px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(160,200,255,.06) 35%, rgba(220,235,255,.35) 50%, rgba(160,200,255,.06) 65%, transparent);
  transform: skewX(-12deg); animation: balaye 4.5s cubic-bezier(.45,0,.25,1) infinite; }
.carte-partie .faisceau::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.7); box-shadow: 0 0 12px #fff; }
@keyframes balaye { 0% { left: -120px; } 70%, 100% { left: calc(100% + 40px); } }
.contexte .colle::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 120px 120px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }

/* champ de points */
.champ { position: relative; height: 110vh; min-height: 720px; overflow: hidden; }
.champ-txt { position: relative; z-index: 2; text-align: center; padding-top: 12vh; }
.champ-txt h2 { background: linear-gradient(90deg, #fff 0%, #fff 55%, #6f7482 100%); -webkit-background-clip: text; background-clip: text; }
.champ-txt p { margin-top: 14px; color: var(--dim); }
.bulle-q { position: absolute; left: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; transform-origin: 0 0; opacity: 0; transition: opacity .7s; will-change: transform; }
.champ.vu .bulle-q { opacity: 1; }
.bulle-q span { padding: 9px 14px; border-radius: 12px; background: rgba(22,24,30,.9); border: 1px solid var(--line-2); font-size: .9rem; white-space: nowrap; }
.bulle-q img { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); }
.bulle-q.droite { flex-direction: row-reverse; }

/* histoires */
.histoires { padding: 120px 0; }
.histoires .tete { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); scrollbar-width: none; }
.histoire { flex: none; width: 344px; height: 300px; scroll-snap-align: start; display: grid; grid-template-columns: 1fr 176px; gap: 12px; padding: 20px; border-radius: 22px; border: 1px solid var(--line-2); background: #050507; transition: transform .35s, border-color .35s; }
.histoire:hover { transform: translateY(-6px); border-color: rgba(245,184,65,.4); }
.histoire .g { display: flex; flex-direction: column; justify-content: space-between; }
.histoire .nom { font-weight: 500; font-size: 1.1rem; }
.histoire .lien { font-size: .85rem; color: var(--dim); }
.histoire .fiche { position: relative; border-radius: 12px; background: linear-gradient(160deg, #26272c, #18191d); border-left: 6px solid #303136; padding: 16px 14px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: -8px 0 20px rgba(0,0,0,.5); }
.histoire .fiche::after { content: ""; position: absolute; top: 0; right: 12px; width: 14px; height: 22px; background: #3a3b40; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 75%, 0 100%); }
.histoire .portrait { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid #3a3b40; background: #111; display: grid; place-items: center; font-size: 1.8rem; color: var(--faint); }
.histoire .portrait img { width: 100%; height: 100%; object-fit: cover; }
.histoire .fiche b { display: block; font-size: 2.1rem; font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.histoire .fiche small { display: block; margin-top: 6px; color: var(--dim); font-size: .8rem; line-height: 1.35; }
.histoire.libre .fiche { background: repeating-linear-gradient(135deg, #16171b 0 10px, #1b1c21 10px 20px); }

@media (max-width: 900px) {
  .bulle-q { display: none; }
  .tunnel-txt { margin-top: 0; }
  .nav { display: none; }
  .modes .grille, .prix, .faq { grid-template-columns: 1fr; }
  .panneau { position: relative; top: 0; order: -1; }
  .etape { min-height: 0; }
  .bento { grid-template-columns: 1fr; }
  .case, .case.l { grid-column: auto; min-height: 0; }
  .trois, .chiffres .g { grid-template-columns: 1fr; }
  .carte-partie .ligne { grid-template-columns: 1fr; }
  .planete .mimir { width: 200px; }
  .planete .aura { width: 340px; height: 340px; margin-left: 40px; }
  .planete .bulle { left: 16px; right: 16px; top: 18vh; max-width: none; }
  .planete .legende { left: 16px; right: 16px; text-align: left; }
  .contexte { height: auto; padding: 80px 0; }
  .contexte .colle { position: relative; height: auto; }
  .ecran .corps { grid-template-columns: 1fr; }
  .ecran .cote { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } .main-salut, .apparait, .w, .app .q, .app .r, .app .r li, .app .sig, .colere { opacity: 1; transform: none; filter: none; } }

/* ===== pages intérieures ===== */
.top .nav a.ici { color: var(--ink); }
.page-hero { position: relative; min-height: 88vh; display: grid; place-items: center; text-align: center; padding: 130px 24px 70px; overflow: hidden; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 400; max-width: 16ch; margin: 22px auto 0; text-shadow: 0 0 28px rgba(255,255,255,.25); }
.page-hero .sous { margin: 24px auto 0; max-width: 580px; color: var(--dim); font-size: 1.08rem; line-height: 1.6; }
.page-hero .ctas { margin-top: 32px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.page-hero .note { margin-top: 20px; }
.page-hero .halo-bas { position: absolute; left: 50%; bottom: -55%; width: 1300px; height: 800px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(184,77,255,.18), rgba(245,184,65,.05) 60%, transparent); pointer-events: none; animation: respire 7s ease-in-out infinite; }
.section { padding: 110px 0; }
.section h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.section .chapo { margin-top: 16px; max-width: 620px; color: var(--dim); line-height: 1.6; }
.titre-g { background: linear-gradient(90deg, #fff 0%, #fff 50%, #6f7482 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* panneau en verre incliné, balayé par un faisceau */
.verre-scene { height: 220vh; }
.verre-scene .colle { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 60px 24px 20px; }
.verre-scene .colle::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 120px 120px; -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.verre-scene h2 { position: relative; margin-bottom: 34px; }
.verre { --q: 0; position: relative; width: min(1000px, 94vw); border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); background: linear-gradient(160deg, rgba(30,32,44,.7), rgba(10,11,16,.85)); padding: 10px;
  transform: perspective(1300px) rotateX(calc((1 - var(--q)) * 45deg)) translateY(calc((1 - var(--q)) * 120px)) scale(calc(.82 + var(--q) * .18)); opacity: calc(.25 + var(--q)); box-shadow: 0 40px 120px rgba(184,77,255, calc(var(--q) * .16)); }
.verre img { width: 100%; border-radius: 14px; opacity: .92; }
.verre .faisceau { position: absolute; top: -20%; bottom: -20%; width: 90px; left: -120px; pointer-events: none; z-index: 2; background: linear-gradient(90deg, transparent, rgba(160,200,255,.06) 35%, rgba(220,235,255,.32) 50%, rgba(160,200,255,.06) 65%, transparent); transform: skewX(-12deg); animation: balaye 4.5s cubic-bezier(.45,0,.25,1) infinite; }
.verre .faisceau::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255,255,255,.7); box-shadow: 0 0 12px #fff; }
.verre .etiq { position: absolute; z-index: 3; padding: 3px 8px; border-radius: 6px; font: .64rem var(--mono); border: 1px dashed rgba(184,77,255,.7); color: #e0bcff; background: rgba(0,0,0,.65); opacity: 0; transition: opacity .5s; }
.verre.etiq-on .etiq { opacity: 1; }

/* liste numérotée en frise */
.frise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; position: relative; }
.frise::before { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 1px; background: linear-gradient(90deg, var(--or), var(--violet), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.frise.vu::before { transform: scaleX(1); }
.frise .pas { padding-top: 54px; position: relative; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.frise.vu .pas { opacity: 1; transform: none; }
.frise .pas::before { content: attr(data-n); position: absolute; top: 6px; left: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #000; border: 1px solid var(--or); color: var(--or); font: .75rem var(--mono); box-shadow: 0 0 18px rgba(245,184,65,.35); }
.frise .pas b { display: block; font-weight: 500; font-size: 1.1rem; }
.frise .pas p { margin-top: 8px; color: var(--dim); font-size: .92rem; line-height: 1.55; }
.frise.vu .pas:nth-child(2) { transition-delay: .3s; } .frise.vu .pas:nth-child(3) { transition-delay: .6s; } .frise.vu .pas:nth-child(4) { transition-delay: .9s; }

/* conversation Discord rejouée */
.salon { border: 1px solid var(--line-2); border-radius: 18px; background: #0b0c10; overflow: hidden; }
.salon .h { padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--dim); display: flex; gap: 8px; align-items: center; }
.salon .h b { color: var(--ink); font-weight: 500; }
.salon .fil-d { padding: 16px; display: grid; gap: 16px; min-height: 200px; }
.msg { display: grid; grid-template-columns: 38px 1fr; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.msg.vu { opacity: 1; transform: none; }
.msg .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #2a2d36; font-weight: 500; overflow: hidden; }
.msg .av img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 12%; transform: scale(1.6); transform-origin: 55% 18%; }
.msg .qui-d { font-size: .86rem; font-weight: 500; }
.msg .qui-d small { margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--violet); color: #fff; font-size: .6rem; vertical-align: 2px; }
.msg .txt { margin-top: 3px; color: #cfd3dc; font-size: .92rem; line-height: 1.5; }
.msg .cmd { color: #8ab4ff; background: rgba(90,130,255,.12); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: .82rem; }
.carte-db { margin-top: 8px; border-left: 3px solid var(--or); border-radius: 6px; background: #12141a; padding: 10px 12px; display: flex; gap: 14px; flex-wrap: wrap; font: .72rem var(--mono); color: var(--dim); }
.carte-db b { color: var(--ink); font-weight: 400; }
.ecrit { color: var(--faint); font-size: .8rem; font-style: italic; }
.parcours { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.parcours .legende-p { margin-top: 12px; color: var(--dim); font-size: .92rem; }
.parcours .legende-p b { color: var(--or); font-family: var(--mono); font-weight: 400; margin-right: 6px; }

/* grille de points */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.point-c { border: 1px solid var(--line); border-radius: 16px; background: var(--s1); padding: 20px; transition: border-color .3s, transform .3s; }
.point-c:hover { border-color: rgba(245,184,65,.4); transform: translateY(-4px); }
.point-c b { display: block; font-weight: 500; }
.point-c p { margin-top: 8px; color: var(--dim); font-size: .9rem; line-height: 1.55; }
.point-c.large { grid-column: span 3; display: flex; gap: 20px; align-items: center; border-color: rgba(245,184,65,.35); background: linear-gradient(90deg, rgba(245,184,65,.06), var(--s1)); }

/* analyse : jauges et barres comparées au rang */
.analyse { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.panneau-a { border: 1px solid var(--line-2); border-radius: 18px; background: var(--s1); padding: 22px; }
.notes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.notes div { border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: .8rem; color: var(--dim); }
.notes b { display: block; color: var(--ink); font-weight: 500; margin-top: 4px; }
.notes .alerte b { color: var(--or); }
.barre-r { margin-top: 16px; }
.barre-r .l { display: flex; justify-content: space-between; font-size: .84rem; color: var(--dim); }
.barre-r .l b { color: var(--ink); font-weight: 500; }
.barre-r .piste { position: relative; height: 8px; margin-top: 8px; border-radius: 4px; background: var(--s3); }
.barre-r .piste i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--violet), var(--or)); transition: width 1.4s cubic-bezier(.2,.7,.2,1); }
.barre-r .piste u { position: absolute; top: -4px; width: 2px; height: 16px; background: #8e94a3; }
.vu .barre-r .piste i { width: var(--w); }
.oeil { margin-top: 18px; padding: 14px; border-radius: 12px; background: rgba(184,77,255,.07); border: 1px solid rgba(184,77,255,.25); color: #d9d3e8; font-size: .92rem; line-height: 1.55; }

/* courbe d'élo */
.courbe svg { width: 100%; height: 220px; overflow: visible; }
.courbe path.ligne { fill: none; stroke: url(#degrade-elo); stroke-width: 2.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.2s cubic-bezier(.2,.7,.2,1); }
.courbe.vu path.ligne { stroke-dashoffset: 0; }
.courbe path.aire { fill: url(#aire-elo); opacity: 0; transition: opacity 1.2s 1s; }
.courbe.vu path.aire { opacity: 1; }
.courbe text { fill: var(--faint); font: 11px var(--mono); }
.kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.kpi div { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.kpi b { display: block; font-size: 1.8rem; font-weight: 400; }
.kpi span { color: var(--dim); font-size: .8rem; }

/* tableau des formules */
.tableau { margin-top: 48px; border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; background: var(--s1); }
.tableau .ligne-t { display: grid; grid-template-columns: 1fr 150px 150px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); font-size: .94rem; opacity: 0; transform: translateX(-14px); transition: opacity .5s, transform .5s; }
.tableau.vu .ligne-t { opacity: 1; transform: none; }
.tableau .ligne-t:first-child { border-top: 0; background: var(--s2); font-weight: 500; }
.tableau .ligne-t span { text-align: center; color: var(--dim); }
.tableau .ligne-t span.oui { color: var(--vert); } .tableau .ligne-t span.non { color: var(--faint); }
.tableau .ligne-t .prem { color: var(--or); }
.bandeau-beta { margin-top: 28px; padding: 16px 20px; border-radius: 14px; border: 1px dashed rgba(245,184,65,.5); color: #f3dca5; background: rgba(245,184,65,.05); line-height: 1.55; }

/* recherche Riot ID */
.riot { margin: 36px auto 0; width: min(760px, 92vw); display: flex; gap: 10px; padding: 10px; border-radius: 20px; background: rgba(14,15,20,.85); border: 1px solid var(--line-2); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.riot input { flex: 1; min-width: 0; background: none; border: 0; color: var(--ink); font: 1.15rem var(--sans); padding: 0 12px; outline: none; }
.riot input::placeholder { color: var(--faint); }
.riot select { background: var(--s3); color: var(--ink); border: 0; border-radius: 10px; padding: 0 10px; font: .9rem var(--sans); }
.profil { display: grid; grid-template-columns: 280px 1fr; gap: 16px; margin-top: 48px; }
.profil .rang { text-align: center; }
.profil .rang img { width: 120px; margin: 10px auto; filter: drop-shadow(0 0 30px rgba(184,77,255,.35)); }
.pool { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.pool div { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; border: 1px solid var(--line); font-size: .82rem; }
.pool img { width: 28px; height: 28px; border-radius: 7px; }

/* pied de page complet */
.pied { border-top: 1px solid var(--line); padding: 56px 0 30px; color: var(--faint); font-size: .84rem; }
.pied .g { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.pied b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 12px; }
.pied a { display: block; margin: 6px 0; } .pied a:hover { color: var(--ink); }
.pied .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .74rem; line-height: 1.6; }

@media (max-width: 900px) {
  .frise, .parcours, .points, .analyse, .profil, .pied .g { grid-template-columns: 1fr; }
  .point-c.large { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .verre-scene { height: auto; } .verre-scene .colle { position: relative; height: auto; padding: 80px 16px; }
  .tableau .ligne-t { grid-template-columns: 1fr 70px 70px; padding: 12px 14px; font-size: .84rem; }
  .notes, .kpi { grid-template-columns: repeat(2, 1fr); }
}

/* haut de page : fondu vers le noir, pas de coupure avec la section suivante */
.hero::after, .page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; pointer-events: none; background: linear-gradient(to bottom, rgba(0,0,0,0), #000 92%); }
.hero .contenu, .page-hero .contenu { z-index: 1; }

/* en-tête sur téléphone : un seul bouton, sans retour à la ligne */
.top .btn { white-space: nowrap; }
.top .actions { margin-left: auto; }
@media (max-width: 600px) {
  .top .wrap { gap: 12px; padding: 0 16px; }
  .top .actions .btn:first-child { display: none; }
  .top .actions .btn { padding: 8px 14px; font-size: .84rem; }
}
