/* NexForge — feuille de style commune */
:root {
  --bg: #0f141d;
  --surface: #161c27;
  --raised: #1c2432;
  --line: rgba(255, 255, 255, .075);
  --line-strong: rgba(255, 255, 255, .14);
  --text: #eef1f6;
  --soft: #c4ccd9;
  --muted: #8d98ad;
  --sodium: #ffb547;
  --sodium-deep: #f29a1d;
  --dusk: #e86a92;
  --display: "Bahnschrift", "DIN Alternate", "Arial Narrow", system-ui, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: rgba(255, 181, 71, .35); }
:focus-visible { outline: 2px solid var(--sodium); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.012em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }

/* ---------------------------------------------------------------- en-tête */
.top { position: sticky; top: 0; z-index: 20; background: rgba(15, 20, 29, .78); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; height: 68px; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 700 21px var(--display); letter-spacing: .005em; }
.brand svg { width: 28px; height: 28px; flex: none; }
.menu { display: flex; gap: 6px; }
.menu a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 12px; border-radius: 6px; }
.menu a:hover { color: var(--text); }
.menu a[aria-current="page"] { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-account { margin-left: auto; display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--soft); font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav-account:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-account img { width: 26px; height: 26px; border-radius: 50%; }

/* connexion */
.auth { min-height: calc(100vh - 68px - 260px); display: grid; place-items: center; padding: 72px 24px; }
.auth-card { width: min(460px, 100%); padding: 40px; border-radius: 16px; background: linear-gradient(180deg, var(--surface), rgba(22, 28, 39, .5)); border: 1px solid var(--line-strong); text-align: center; box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9); }
.auth-card h1 { font-size: 40px; }
.auth-card > p { margin-top: 14px; color: var(--soft); }
.auth-card .btn { margin-top: 28px; width: 100%; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752c4; }
.auth-note { font-size: 13px; color: var(--muted) !important; }
.auth-error { margin-top: 18px !important; padding: 12px 14px; border-radius: 8px; background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .35); color: #ffb4b6 !important; font-size: 15px; }
.who { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--raised); border: 1px solid var(--line); font-weight: 600; }
.who img, .who .noav { width: 36px; height: 36px; border-radius: 50%; background: var(--line-strong); }
.devcode-label { margin-top: 26px !important; font-size: 14px; }
.devcode { margin-top: 10px; font: 600 34px var(--mono); letter-spacing: .12em; color: var(--sodium); }
.done { margin-top: 24px; padding: 16px; border-radius: 10px; background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .35); color: #b6f5d0; }

/* mon compte */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 32px; }
.who.big { margin: 0; padding: 0; background: none; border: 0; gap: 22px; }
.who.big img, .who.big .noav { width: 84px; height: 84px; }
.who.big h1 { font-size: clamp(36px, 4.6vw, 56px); }
.who.big p { margin-top: 6px; color: var(--muted); font-weight: 400; }
.account section { padding: 40px 0; border-top: 1px solid var(--line); }
.account h2 { font-size: 28px; margin-bottom: 24px; }
.rows { display: flex; flex-direction: column; }
.rowline { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.rowline:first-child { border-top: 0; }
.rowline .grow { flex: 1; }
.rowline .sub { color: var(--muted); font-size: 14px; }
.rowline code { font: 14px var(--mono); color: var(--sodium); }
.hint-line { margin-top: 16px; color: var(--muted); font-size: 15px; }
.card .del { margin-top: 10px; align-self: flex-start; }

/* ---------------------------------------------------------------- boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 8px; font: 600 16px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s; }
.btn-primary { background: var(--sodium); color: #1b1305; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 28px -10px rgba(255, 181, 71, .55); }
.btn-primary:hover { background: #ffc266; }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .28); }
.btn-small { padding: 9px 16px; font-size: 14px; }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; box-shadow: none; }
.btn[hidden] { display: none; }

/* ---------------------------------------------------------------- titres de page */
.page-head { padding: 96px 0 56px; }
.page-head h1 { font-size: clamp(44px, 6vw, 76px); max-width: 15ch; }
.page-head p { margin-top: 22px; font-size: 20px; color: var(--soft); max-width: 58ch; }

section { padding: 88px 0; }
.section-title { font-size: clamp(32px, 4vw, 48px); max-width: 20ch; }
.section-intro { margin-top: 16px; color: var(--soft); font-size: 18px; max-width: 58ch; }

/* ---------------------------------------------------------------- accueil */
.hero { padding: 104px 0 0; position: relative; }
.hero h1 { font-size: clamp(52px, 7.6vw, 104px); max-width: 13ch; }
.hero .lead { margin-top: 26px; font-size: 21px; color: var(--soft); max-width: 50ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero .fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.stage { position: relative; margin-top: 72px; }
.stage::before { content: ""; position: absolute; inset: -18% -10% 20%; background: radial-gradient(closest-side, rgba(255, 181, 71, .13), rgba(232, 106, 146, .05) 55%, transparent); pointer-events: none; }
.frame { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a0e15; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .8); }
.frame .bar { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: #121823; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3242; }
.frame .bar span { margin-left: 10px; }
.frame img { width: 100%; aspect-ratio: 1366 / 697; object-fit: cover; }
.caption { position: absolute; left: 22px; bottom: 22px; max-width: 420px; background: rgba(12, 16, 24, .86); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); border-radius: 10px; padding: 14px 18px; font-size: 15px; color: var(--soft); }
.caption b { color: var(--text); display: block; font-weight: 600; margin-bottom: 2px; }
.rise { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } html { scroll-behavior: auto; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 96px; }
.facts div { padding: 30px 28px; }
.facts div + div { border-left: 1px solid var(--line); }
.facts strong { display: block; font: 600 34px var(--display); }
.facts span { color: var(--muted); font-size: 15px; }

.showcase { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.showcase + .showcase { margin-top: 120px; }
.showcase.flip > .copy { order: 2; }
.showcase .copy h3 { font-size: clamp(30px, 3.4vw, 42px); }
.showcase .copy p { margin-top: 18px; color: var(--soft); }
.showcase .copy ul { margin: 22px 0 0; padding: 0; list-style: none; }
.showcase .copy li { padding: 10px 0 10px 26px; position: relative; color: var(--soft); border-top: 1px solid var(--line); font-size: 16px; }
.showcase .copy li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 2px; background: var(--sodium); }
.shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); background: #0a0e15; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.closing { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); background: radial-gradient(50% 80% at 50% 100%, rgba(255, 181, 71, .09), transparent 70%); }
.closing h2 { font-size: clamp(40px, 5.4vw, 68px); margin-inline: auto; max-width: 16ch; }
.closing p { margin: 20px auto 0; color: var(--soft); max-width: 50ch; }
.closing .actions { justify-content: center; display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- fonctionnalités */
.group { display: grid; grid-template-columns: 280px 1fr; gap: 56px; padding: 56px 0; border-top: 1px solid var(--line); }
.group h2 { font-size: 30px; position: sticky; top: 100px; align-self: start; }
.group h2 small { display: block; margin-top: 10px; font: 400 15px/1.5 var(--body); color: var(--muted); letter-spacing: 0; }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.item h3 { font-size: 21px; display: flex; align-items: center; gap: 12px; }
.item h3 svg { width: 22px; height: 22px; flex: none; color: var(--sodium); }
.item p { margin-top: 8px; color: var(--soft); font-size: 16px; }
.item kbd { font: 13px var(--mono); padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }

/* ---------------------------------------------------------------- communauté */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 36px; }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: none; color: var(--text); font: 16px var(--body); padding: 13px 0; outline: none; }
.search:focus-within { border-color: rgba(255, 181, 71, .6); }
.tabs { display: inline-flex; padding: 4px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); }
.tabs button { border: 0; background: none; color: var(--muted); font: 15px var(--body); padding: 8px 14px; border-radius: 6px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 40px 28px; }
.card { text-decoration: none; display: flex; flex-direction: column; }
.card .thumb { aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img { transform: scale(1.03); }
.card h3 { margin-top: 16px; font-size: 22px; }
.card .meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.card .meta .kind { color: var(--sodium); }
.empty { padding: 56px 32px; border: 1px dashed var(--line-strong); border-radius: 12px; color: var(--soft); text-align: center; }
.empty strong { display: block; color: var(--text); font: 600 24px var(--display); margin-bottom: 8px; }
.pager { display: flex; justify-content: center; margin-top: 48px; }

/* fiche d'une création */
.detail { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; padding: 64px 0 96px; }
.detail .shot img { aspect-ratio: 16 / 9; }
.detail h1 { font-size: clamp(36px, 4.4vw, 56px); }
.detail .by { margin-top: 12px; color: var(--muted); }
.detail .desc { margin-top: 22px; color: var(--soft); white-space: pre-line; }
.specs { margin: 28px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.code { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 16px 18px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.code span { color: var(--muted); font-size: 14px; }
.code b { font: 600 20px var(--mono); color: var(--sodium); letter-spacing: .04em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags a { text-decoration: none; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--soft); }
.report { margin-top: 36px; font-size: 14px; color: var(--muted); }
.report summary { cursor: pointer; }
.report .reasons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.report button { font: 14px var(--body); color: var(--soft); background: var(--surface); border: 1px solid var(--line-strong); padding: 7px 12px; border-radius: 6px; cursor: pointer; }

/* ---------------------------------------------------------------- guide / règles / téléchargement */
.prose h2 { font-size: 32px; margin-top: 64px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--soft); }
.prose p { margin-top: 16px; }
.prose ol, .prose ul { margin: 16px 0 0; padding-left: 22px; }
.prose li { margin-top: 10px; }
.prose li::marker { color: var(--sodium); }
.prose code { font: 14px var(--mono); padding: 2px 7px; border-radius: 5px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.prose b { color: var(--text); font-weight: 600; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font: 600 20px var(--display); list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; color: var(--sodium); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin-top: 12px; color: var(--soft); }
.dl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; padding-bottom: 96px; }
.dl .box { padding: 36px; border-radius: 14px; background: linear-gradient(180deg, var(--surface), rgba(22, 28, 39, .4)); border: 1px solid var(--line-strong); }
.dl .box h2 { font-size: 30px; }
.dl .box .btn { margin-top: 24px; width: 100%; }
.dl .box .small { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.req { margin: 0; padding: 0; list-style: none; }
.req li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 16px; }
.req li span { color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 32px 0 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 26px 52px; color: var(--soft); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--sodium); color: var(--sodium); display: grid; place-items: center; font: 700 15px var(--display); }
.steps li b { color: var(--text); display: block; }

/* ---------------------------------------------------------------- pied de page */
.foot { border-top: 1px solid var(--line); padding: 64px 0 48px; color: var(--muted); font-size: 14px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot h4 { font: 600 15px var(--body); color: var(--text); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-top: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .tagline { margin-top: 14px; max-width: 32ch; }
.foot .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.foot .legal span { display: block; max-width: 90ch; }

/* ---------------------------------------------------------------- petits écrans */
@media (max-width: 960px) {
  .menu { display: none; }
  .showcase, .detail, .dl { grid-template-columns: 1fr; gap: 36px; }
  .showcase.flip > .copy { order: 0; }
  .group { grid-template-columns: 1fr; gap: 28px; }
  .group h2 { position: static; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .facts { grid-template-columns: 1fr; }
  .facts div + div { border-left: 0; border-top: 1px solid var(--line); }
  .items { grid-template-columns: 1fr; }
  .caption { position: static; max-width: none; border-radius: 0; border-width: 1px 0 0; }
  .hero { padding-top: 64px; }
  section { padding: 64px 0; }
  .req li { grid-template-columns: 1fr; gap: 4px; }
}

/* ================================================================ interface annotée */
.anno { position: relative; }
.anno .hs { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: var(--sodium); color: #1b1305; font: 700 14px var(--display); box-shadow: 0 0 0 5px rgba(255, 181, 71, .25), 0 6px 18px rgba(0, 0, 0, .5); }
.anno .hs::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%) translateY(4px); width: max-content; max-width: 260px;
  padding: 10px 12px; border-radius: 8px; background: rgba(12, 16, 24, .96); border: 1px solid var(--line-strong); color: var(--soft); font: 400 13px/1.45 var(--body);
  text-align: left; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; white-space: normal; }
.anno .hs:hover::after, .anno .hs:focus-visible::after, .anno .hs.on::after { opacity: 1; transform: translateX(-50%); }
.anno .hs.down::after { bottom: auto; top: calc(100% + 12px); }
.legend-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; counter-reset: l; }
.legend-list li { counter-increment: l; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.legend-list li::before { content: counter(l); width: 26px; height: 26px; border-radius: 50%; background: var(--sodium); color: #1b1305; font: 700 13px var(--display); display: grid; place-items: center; }
.legend-list b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }

/* ================================================================ visite guidée */
.tour { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; margin-top: 48px; }
.tour-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }
.tour-list button { all: unset; cursor: pointer; display: block; padding: 14px 16px; border-radius: 10px; border: 1px solid transparent; }
.tour-list button b { display: block; font: 600 19px var(--display); color: var(--muted); }
.tour-list button span { display: none; margin-top: 6px; color: var(--soft); font-size: 15px; line-height: 1.55; }
.tour-list button:hover b { color: var(--text); }
.tour-list button[aria-selected="true"] { background: var(--surface); border-color: var(--line-strong); }
.tour-list button[aria-selected="true"] b { color: var(--text); }
.tour-list button[aria-selected="true"] span { display: block; }
.tour-list button:focus-visible { outline: 2px solid var(--sodium); }
.tour-view .frame img { transition: opacity .25s ease; }
.tour-view .frame img.fade { opacity: .25; }
.tour-view .kbd-hint { margin-top: 14px; color: var(--muted); font-size: 14px; }

/* ================================================================ pile de captures (accueil) */
.stack { position: relative; }
.stack .back { position: absolute; inset: 0; transform: translate(4.5%, -7%) scale(.94); opacity: .45; filter: saturate(.7); }
.stack .front { position: relative; }

/* ================================================================ agrandir une capture */
img.zoomable { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 12, .9); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 32px; cursor: zoom-out; }
.lightbox img { max-width: min(1600px, 100%); max-height: 100%; border-radius: 10px; border: 1px solid var(--line-strong); box-shadow: 0 40px 120px rgba(0, 0, 0, .8); }
.lightbox p { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--soft); font-size: 14px; }

@media (max-width: 960px) {
  .tour { grid-template-columns: 1fr; }
  .tour-list { position: static; flex-direction: row; overflow-x: auto; gap: 6px; }
  .tour-list button { white-space: nowrap; padding: 10px 14px; }
  .tour-list button span { display: none !important; }
  .legend-list { grid-template-columns: 1fr; }
  .anno .hs { width: 22px; height: 22px; font-size: 11px; }
  .anno .hs::after { display: none; }
  .stack .back { display: none; }
}
.anno .hs.end::after { left: auto; right: -8px; transform: translateY(4px); }
.anno .hs.end:hover::after, .anno .hs.end:focus-visible::after, .anno .hs.end.on::after { transform: none; }
.anno .hs.start::after { left: -8px; transform: translateY(4px); }
.anno .hs.start:hover::after, .anno .hs.start:focus-visible::after, .anno .hs.start.on::after { transform: none; }

/* captures de l'interface : jamais rognées, toujours à la largeur du cadre */
.anno, .stack, .tour-view { min-width: 0; }
.tour { grid-template-columns: 300px minmax(0, 1fr); }
.anno .frame img, .tour-view .frame img, .stack .frame img { width: 100%; height: auto; aspect-ratio: auto; object-fit: fill; }

/* ================================================================ hero plein écran (accueil) */
.hero2 { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 900px); display: flex; align-items: center; padding: 120px 0 200px; }
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; animation: heroBg 2.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes heroBg { from { transform: scale(1.09); filter: saturate(.6) brightness(.8); } to { transform: scale(1.02); filter: none; } }
.hero2::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 20, 29, .97) 0%, rgba(15, 20, 29, .86) 30%, rgba(15, 20, 29, .35) 58%, rgba(15, 20, 29, .12) 100%),
    linear-gradient(180deg, rgba(15, 20, 29, .55) 0%, transparent 24%, transparent 55%, var(--bg) 100%); }
.hero2-in { position: relative; }
.hero2 h1 { font-size: clamp(56px, 8.4vw, 120px); line-height: .96; max-width: 8.5ch; letter-spacing: -.02em; text-shadow: 0 4px 40px rgba(0, 0, 0, .35); }
.hero2 .lead { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); color: #d5dbe6; max-width: 44ch; }
.hero2 .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero2 .fineprint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.btn-glass { color: var(--text); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); }
.hero-note { position: absolute; right: max(24px, calc((100vw - 1160px) / 2)); bottom: 230px; max-width: 290px; margin: 0; padding: 12px 16px; font-size: 13px; line-height: 1.5;
  color: var(--soft); background: rgba(12, 16, 24, .72); backdrop-filter: blur(10px); border: 1px solid var(--line-strong); border-radius: 10px; }
.ui-reveal { padding: 0 0 72px; margin-top: -170px; position: relative; z-index: 2; }
.ui-reveal .frame { box-shadow: 0 50px 140px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .06); }
.ui-caption { margin-top: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.ui-reveal .facts { margin-top: 72px; }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }
@media (max-width: 960px) {
  .hero2 { min-height: 0; padding: 96px 0 150px; }
  .hero2::before { background: linear-gradient(180deg, rgba(15, 20, 29, .7) 0%, rgba(15, 20, 29, .82) 60%, var(--bg) 100%); }
  .hero-note { display: none; }
  .ui-reveal { margin-top: -110px; }
}

/* hero : texte en haut à gauche, la scène reste visible au centre-bas */
.hero2 { min-height: min(96vh, 1000px); align-items: flex-start; padding: 104px 0 120px; }
.hero-bg { object-position: 50% 100%; }
.hero2::before {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(15, 20, 29, .97) 0%, rgba(15, 20, 29, .88) 32%, rgba(15, 20, 29, .35) 58%, rgba(15, 20, 29, 0) 75%),
    linear-gradient(180deg, rgba(15, 20, 29, .45) 0%, transparent 18%, transparent 82%, var(--bg) 100%); }
.hero-note { bottom: 150px; }
.ui-reveal { margin-top: -70px; }
@media (max-width: 960px) { .ui-reveal { margin-top: -60px; } }

/* lisibilité du texte du hero : bande sombre sur toute la colonne de gauche */
.hero2::before {
  background:
    linear-gradient(90deg, rgba(15, 20, 29, .94) 0%, rgba(15, 20, 29, .86) 30%, rgba(15, 20, 29, .45) 48%, rgba(15, 20, 29, 0) 64%),
    linear-gradient(180deg, rgba(15, 20, 29, .55) 0%, transparent 20%, transparent 80%, var(--bg) 100%); }
.hero2 .lead, .hero2 .fineprint { text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.hero2 .fineprint { color: #aab3c4; }
.btn-glass { background: rgba(15, 20, 29, .55); border-color: rgba(255, 255, 255, .28); }
@media (max-width: 960px) { .hero2::before { background: linear-gradient(180deg, rgba(15, 20, 29, .78) 0%, rgba(15, 20, 29, .86) 60%, var(--bg) 100%); } }
@media (max-width: 960px) { .hero2 { min-height: 0; padding: 84px 0 110px; } .hero-bg { object-position: 40% 100%; } }
