/* Ragnarok: The New World — landing page V7, style « site officiel de jeu » (TAF 2, US/Canada 01) */

@font-face { font-family: "Cinzel"; font-weight: 700; font-display: swap; src: url("./assets/fonts/cinzel-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cinzel"; font-weight: 900; font-display: swap; src: url("./assets/fonts/cinzel-latin-900-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0c1d;
  --bg-2: #0f1328;
  --panel: #141a35;
  --line: rgba(214,178,108,.22);
  --line-soft: rgba(255,255,255,.08);
  --text: #f3efe4;
  --muted: #b9b4c9;
  --gold: #e8bf6a;
  --gold-hi: #ffe2a0;
  --gold-deep: #a8792b;
  --ink: #241600;
  --blue: #6fc3ff;
  --display: "Cinzel", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Leelawadee UI", "Noto Sans Thai", Tahoma, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.2; }
p { margin: 0 0 1em; }
a { color: inherit; }
section[id] { scroll-margin-top: 12px; }
.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.center { text-align: center; margin-top: 2.6rem; }
.fine { font-size: .82rem; color: #9893ad; margin: .9rem 0 0; }
.skip { position: absolute; left: 1rem; top: -80px; z-index: 200; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 6px; font-weight: 800; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.display { font-family: var(--display); font-weight: 900; }

/* Bouton : forme « bouton de jeu » dorée, biseautée */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: .85rem 2.2rem; text-decoration: none; color: var(--ink); font-weight: 900; letter-spacing: .02em;
  background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 55%, #d29b3c 100%);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);
  filter: drop-shadow(0 8px 22px rgba(232,191,106,.35));
  transition: transform .15s ease, filter .15s ease;
}
.btn::before { content: ""; position: absolute; inset: 3px; clip-path: inherit; border: 0; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 55%); pointer-events: none; }
.btn:hover { transform: translateY(-2px); filter: drop-shadow(0 12px 30px rgba(232,191,106,.55)) brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn__main { position: relative; font-size: 1.05rem; }
.btn--lg { min-height: 58px; padding: 1rem 2.8rem; } .btn--lg .btn__main { font-size: 1.12rem; }
.btn--xl { min-height: 66px; padding: 1.1rem 3.4rem; } .btn--xl .btn__main { font-size: 1.25rem; }
@media (prefers-reduced-motion: no-preference) {
  .btn--xl { animation: breathe 3s ease-in-out 1.5s infinite; }
  @keyframes breathe { 0%, 100% { filter: drop-shadow(0 8px 22px rgba(232,191,106,.35)); } 50% { filter: drop-shadow(0 8px 38px rgba(232,191,106,.7)); } }
}

/* Titres de section : centrés, ornement doré, comme sur les sites officiels */
.title { text-align: center; margin-bottom: 2.8rem; }
.title--left { text-align: left; margin-bottom: 1.6rem; }
.title__kicker { font-size: .78rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: .6rem; }
.title__h { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin: 0; }
.title__orn { display: block; width: 180px; height: 14px; margin: 1rem auto 0; position: relative;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent) center / 100% 1px no-repeat; }
.title__orn::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; background: var(--gold); transform: translate(-50%, -50%) rotate(45deg); box-shadow: 0 0 0 4px var(--bg); }
.section--alt .title__orn::after { box-shadow: 0 0 0 4px var(--bg-2); }

/* 1. Hero */
.hero { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 3rem 0 5rem; }
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__bg img { object-fit: cover; object-position: center 30%; }
@media (prefers-reduced-motion: no-preference) {
  .hero__bg img { animation: kenburns 24s ease-in-out infinite alternate; }
  @keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse at center, rgba(10,12,29,.45) 0%, rgba(10,12,29,.82) 70%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero__inner { display: flex; flex-direction: column; align-items: center; }
.hero__logo { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.6rem; }
.hero__logo span { font-family: var(--display); font-weight: 900; font-size: 1.6rem; line-height: 1; text-align: left; display: flex; flex-direction: column; letter-spacing: .02em; }
.hero__logo small { font-family: var(--sans); font-size: .64rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-top: .35rem; }
.hero__tag { font-size: .85rem; font-weight: 700; letter-spacing: .06em; color: var(--gold-hi); padding: .45rem 1.1rem; border: 1px solid var(--line); background: rgba(10,12,29,.55); margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.05; text-shadow: 0 6px 30px rgba(0,0,0,.6); margin-bottom: 1.1rem; }
.hero h1 span { display: block; font-size: .62em; margin-top: .3em; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: #ebe6f5; max-width: 38ch; margin-bottom: 2rem; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; list-style: none; padding: 0; margin: 1.8rem 0 0; font-size: .9rem; font-weight: 600; color: #d9d4e6; }
.hero__facts li { display: flex; align-items: center; gap: .5rem; }
.hero__facts li::before { content: ""; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.hero__scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: grid; place-items: center; }
.hero__scroll span { width: 14px; height: 14px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll span { animation: nudge 1.8s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(-4px) rotate(45deg); opacity: .6; } 50% { transform: translateY(4px) rotate(45deg); opacity: 1; } }
}

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7rem) 0; background: var(--bg); }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-block: 1px solid var(--line-soft); }

/* 2. Vitrine à onglets */
.showcase { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(20,26,53,.9), rgba(10,12,29,.9)); position: relative; }
.showcase::before, .showcase::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); }
.showcase::before { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.showcase::after { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: .15rem; min-height: 72px; padding: 1rem .6rem; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 800; font-size: .98rem; cursor: pointer; transition: color .2s ease, background-color .2s ease; }
.tab + .tab { border-left: 1px solid var(--line-soft); }
.tab__n { font-family: var(--display); font-size: .78rem; color: #77718f; letter-spacing: .1em; }
.tab:hover { color: #fff; background: rgba(255,255,255,.03); }
.tab[aria-selected="true"] { color: var(--gold-hi); background: linear-gradient(180deg, rgba(232,191,106,.14), transparent); }
.tab[aria-selected="true"] .tab__n { color: var(--gold); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: -1px; height: 3px; background: var(--gold); box-shadow: 0 0 14px rgba(232,191,106,.7); }
.panel { display: grid; grid-template-columns: 1.35fr 1fr; gap: 0; }
.panel[hidden] { display: none; }
.panel__media { position: relative; overflow: hidden; min-height: 320px; background: var(--panel); }
.panel__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.panel__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(10,12,29,.9)); }
.panel__text { padding: clamp(1.6rem, 3.5vw, 2.8rem); align-self: center; }
.panel__text h3 { font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.3vw, 1.8rem); }
.panel__text > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .65rem; }
.ticks li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: .55em; background: var(--gold); transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .panel:not([hidden]) .panel__media img { animation: fadein .5s ease; }
  .panel:not([hidden]) .panel__text { animation: slidein .45s ease; }
  @keyframes fadein { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
  @keyframes slidein { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 860px) {
  .tabs { grid-template-columns: 1fr 1fr; }
  .tab:nth-child(3) { border-left: 0; }
  .tab:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .panel { grid-template-columns: 1fr; }
  .panel__media { min-height: 0; aspect-ratio: 16/9; }
  .panel__media::after { background: linear-gradient(0deg, rgba(10,12,29,.9), transparent 50%); }
}

/* 3. Étapes */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .5; }
.steps li { position: relative; text-align: center; padding: 0 .6rem; }
.steps__n { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 1.1rem; font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--gold); background: var(--bg-2); border: 1px solid var(--line); transform: rotate(45deg); }
.steps__n::first-line { line-height: 1; }
.steps li h3 { font-size: 1.1rem; }
.steps li p { color: var(--muted); font-size: .97rem; margin: 0; }
.steps__key .steps__n { border-color: var(--blue); color: var(--blue); }
.steps__goal .steps__n { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.steps__n { line-height: 1; }
.steps__n { text-indent: 0; }
.steps__n > span { display: block; transform: rotate(-45deg); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 2.2rem; } .steps::before { display: none; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* 4. Avis + FAQ */
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.quote { margin: 0 0 1.4rem; padding: 1.6rem 1.7rem; border: 1px solid var(--line); background: var(--panel); position: relative; }
.quote::before { content: "\201C"; position: absolute; top: -.35em; left: 1rem; font-family: var(--display); font-size: 4.5rem; color: var(--gold); line-height: 1; }
.quote p { font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1.3; margin: .4rem 0 .7rem; }
.quote footer { color: var(--gold); font-weight: 700; font-size: .92rem; }
.stat { padding: 1.3rem 1.7rem; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); }
.stat strong { display: block; font-family: var(--display); font-weight: 900; font-size: 2.2rem; color: var(--gold); line-height: 1.1; }
.stat span { color: var(--muted); }
.faq { display: grid; gap: .6rem; }
.faq details { border: 1px solid var(--line-soft); background: var(--panel); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 1.05rem 3.2rem 1.05rem 1.2rem; font-weight: 800; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--muted); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* 5. Final */
.final { position: relative; isolation: isolate; text-align: center; padding: clamp(5.5rem, 12vw, 9rem) 0; overflow: hidden; border-top: 1px solid var(--line); }
.final__bg, .final__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.final__bg img { object-fit: cover; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(10,12,29,.55), rgba(10,12,29,.92) 75%); }
.final__inner { display: flex; flex-direction: column; align-items: center; }
.final h2 { font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.1; text-shadow: 0 6px 30px rgba(0,0,0,.6); max-width: 18ch; }
.final p { font-size: 1.2rem; color: #ebe6f5; margin-bottom: 2rem; }
.final .final__micro { font-size: .86rem; color: #c3bed3; margin: 1.4rem 0 0; }

/* Pied de page + bouton fixe */
.footer { background: #06070f; color: #8e89a3; font-size: .86rem; padding: 2rem 0 6rem; border-top: 1px solid var(--line-soft); }
.footer p { margin: 0 0 .35rem; } .footer strong { color: #d6d1e2; }
@media (min-width: 900px) { .footer { padding-bottom: 2.2rem; } }
.sticky { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 1.4rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(10,12,29,.94); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; }
.sticky.is-visible { transform: none; visibility: visible; transition: transform .3s ease, visibility 0s; }
.sticky__text { font-size: .92rem; color: var(--muted); }
.sticky__text strong { color: #fff; }
.sticky .btn { min-height: 46px; padding: .6rem 1.8rem; filter: none; }
@media (max-width: 600px) { .sticky__text { display: none; } .sticky .btn { width: 100%; } .btn--xl { width: 100%; padding-inline: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
.voices .quote { margin-top: 1.4rem; }
@media (max-width: 600px) { .btn__main { font-size: 1rem; } .btn--xl .btn__main { font-size: 1.08rem; } .btn--xl, .btn--lg { padding-inline: 1.4rem; } }

/* Qualité des images : voiles plus légers pour laisser voir les visuels officiels, couleurs légèrement relevées */
.hero::before { background: linear-gradient(180deg, rgba(10,12,29,.35) 0%, rgba(10,12,29,.15) 35%, rgba(10,12,29,.55) 70%, var(--bg) 100%), radial-gradient(ellipse at center, rgba(10,12,29,.55) 0%, rgba(10,12,29,0) 60%); }
.hero__bg img, .panel__media img, .final__bg img { filter: saturate(1.12) contrast(1.05); }
.hero__inner { padding: 1.6rem 1.4rem; }
.hero h1, .hero__lead { text-shadow: 0 2px 4px rgba(0,0,0,.7), 0 8px 30px rgba(0,0,0,.6); }
.panel__media::after { background: linear-gradient(90deg, transparent 72%, rgba(10,12,29,.85)); }
.final::before { background: radial-gradient(ellipse at center, rgba(10,12,29,.45), rgba(10,12,29,.85) 80%); }
@media (max-width: 860px) { .panel__media::after { background: linear-gradient(0deg, rgba(10,12,29,.8), transparent 40%); } }
.hero h1 span { text-shadow: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)) drop-shadow(0 6px 18px rgba(0,0,0,.5)); }

/* V8 — médias officiels de l'équipe */
.hero__bg picture, .hero__bg img, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__bg img { animation: none; }
.final__bg picture { position: absolute; inset: 0; }
.panel__media picture { position: absolute; inset: 0; }
.panel__media--class { background: radial-gradient(circle at 50% 60%, #2c3470 0%, #121735 70%); display: grid; place-items: center; }
.panel__media--class img { position: relative; inset: auto; width: auto; height: auto; max-width: 88%; max-height: 92%; object-fit: contain; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); }
.panel__media--class::after { display: none; }
.cls-info { margin: 1rem 0 1.1rem; padding: .9rem 1.1rem; border-left: 3px solid var(--gold); background: rgba(232,191,106,.07); min-height: 82px; }
.cls-info strong { display: block; font-family: var(--display); font-size: 1.25rem; color: var(--gold-hi); }
.cls-info span { color: var(--muted); font-size: .97rem; }
.cls-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.cls { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: .45rem .2rem; min-height: 76px; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03); color: var(--muted); font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease; }
.cls img { width: 40px; height: 40px; object-fit: cover; object-position: top; border-radius: 50%; background: #1b2147; }
.cls:hover { color: #fff; border-color: var(--line); }
.cls.is-on { color: var(--gold-hi); border-color: var(--gold); background: rgba(232,191,106,.1); }
@media (prefers-reduced-motion: no-preference) { #cls-img.swap { animation: fadein .4s ease; } }
@media (max-width: 860px) { .panel__media--class { aspect-ratio: 4/3; } }

/* V8.1 — barre du haut : logo, langue, musique, bouton */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: .7rem 1.4rem; transition: background-color .3s ease, padding .3s ease; }
.topbar.is-solid { background: rgba(10,12,29,.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-block: .45rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1400px; margin: 0 auto; }
.topbar__logo img { width: 128px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.6)); transition: width .3s ease; }
.topbar.is-solid .topbar__logo img { width: 96px; }
.topbar__right { display: flex; align-items: center; gap: .7rem; }
.lang { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(10,12,29,.65); border: 1px solid var(--line); }
.lang__btn { min-width: 44px; min-height: 36px; padding: 0 .75rem; border: 0; border-radius: 999px; background: transparent; color: #d9d4e6; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.lang__btn:hover { color: #fff; }
.lang__btn.is-on { background: var(--gold); color: var(--ink); }
.music { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(10,12,29,.65); color: var(--gold); cursor: pointer; }
.music svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.music svg path:first-child { stroke: none; }
.music__on, .music__bars { display: none; }
.music[aria-pressed="true"] .music__off { display: none; }
.music[aria-pressed="true"] .music__on { display: block; }
.music[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,191,106,.18); }
.btn--top { min-height: 44px; padding: .5rem 1.4rem; filter: drop-shadow(0 4px 12px rgba(232,191,106,.3)); }
.btn--top .btn__main { font-size: .92rem; }
.hero { padding-top: 6.5rem; }
html[lang="th"] body { font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, var(--sans); line-height: 1.75; }
html[lang="th"] .display, html[lang="th"] .title__h, html[lang="th"] .panel__text h3, html[lang="th"] .quote p, html[lang="th"] .cls-info strong { font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, var(--sans); font-weight: 800; letter-spacing: 0; }
@media (max-width: 640px) {
  .topbar { padding: .5rem .8rem; }
  .topbar__logo img { width: 84px; }
  .topbar.is-solid .topbar__logo img { width: 72px; }
  .topbar__right { gap: .4rem; }
  .lang__btn { min-width: 38px; padding: 0 .5rem; font-size: .78rem; }
  .btn--top { display: none; }
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.hero h1 span { font-size: .5em; max-width: none; margin-inline: auto; }
/* Sur ordinateur, le bouton de la barre du haut suffit : la barre du bas ne s'affiche que sur téléphone */
@media (min-width: 641px) { .sticky { display: none; } .footer { padding-bottom: 2.2rem; } }
.tab__short { display: none; }
@media (max-width: 860px) { .tab__full { display: none; } .tab__short { display: inline; } }

/* Version finale : étape clé, témoignages, FAQ, appel final */
.steps__key { position: relative; }
.steps__badge { position: absolute; top: -1.9rem; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: .2rem .6rem; }
.steps__key .steps__n { border-color: var(--gold); color: var(--gold-hi); background: rgba(232,191,106,.12); }
@media (prefers-reduced-motion: no-preference) {
  .steps__key .steps__n { animation: keyglow 2.4s ease-in-out infinite; }
  @keyframes keyglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,191,106,.0); } 50% { box-shadow: 0 0 0 8px rgba(232,191,106,.18); } }
}
.voices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; max-width: 1000px; margin: 0 auto; }
.voices .quote { margin: 0; padding-top: 2.2rem; }
.voices:has(.quote:only-child) { grid-template-columns: minmax(0, 640px); justify-content: center; }
.quote::before { top: .2rem; }
.quote__tag { position: absolute; top: 1rem; right: 1.2rem; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: .15rem .55rem; }
.discord { text-align: center; margin: 2rem 0 0; color: var(--muted); font-size: 1.05rem; }
.discord strong { font-family: var(--display); font-size: 1.6rem; color: var(--gold); margin-right: .3rem; }
.wrap--faq { width: min(820px, 100% - 2.5rem); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin: -.6rem 0 1.6rem; }
.pills li { font-size: .85rem; font-weight: 700; padding: .3rem .85rem; border: 1px solid var(--line); background: rgba(10,12,29,.6); color: #ece7f5; }
@media (max-width: 860px) { .steps__badge { top: -1.6rem; } }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); max-width: 22ch; }
/* Appel final aligné à gauche */
.final__inner--left { align-items: flex-start; text-align: left; }
.final__inner--left h2 { max-width: 14ch; }
.final h2 span { display: block; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 3px rgba(0,0,0,.8)); }
.final__kicker { font-size: .78rem; font-weight: 800; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.final__inner--left .pills { justify-content: flex-start; }
.final::before { background: linear-gradient(90deg, rgba(10,12,29,.95) 0%, rgba(10,12,29,.75) 45%, rgba(10,12,29,.2) 100%); }
@media (max-width: 760px) { .final::before { background: linear-gradient(0deg, rgba(10,12,29,.95) 20%, rgba(10,12,29,.55) 100%); } }
.final .final__kicker { color: var(--gold); font-size: .78rem; margin-bottom: .8rem; }
.voices { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1080px; }
.voices .quote p { font-size: 1.22rem; }
@media (max-width: 760px) { .voices { grid-template-columns: 1fr; } }
.voices .quote { padding-top: 2rem; }

/* Étapes V2 : cartes, icônes, ruban « Étape clé », ligne de progression */
.steps--v2 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; list-style: none; padding: 0; margin: 0; position: relative; counter-reset: none; }
.steps--v2::before { content: ""; position: absolute; left: 6%; right: 6%; top: 46px; height: 2px; z-index: 0;
  background: linear-gradient(90deg, rgba(232,191,106,.15), var(--gold) 55%, var(--gold-hi)); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; padding: 1.4rem 1.3rem 1.5rem; text-align: left;
  background: linear-gradient(180deg, #171d3c 0%, #10142b 100%); border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  transition: transform .25s ease, border-color .25s ease; }
.step:hover { transform: translateY(-4px); border-color: var(--line); }
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.step__num { font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1; background: linear-gradient(180deg, #fff, #9c97b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(232,191,106,.1); border: 1px solid var(--line); }
.step__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .96rem; margin: 0; }
/* Étape clé */
.step--key { background: linear-gradient(180deg, #2a2347 0%, #15122e 100%); border-color: rgba(232,191,106,.55); box-shadow: 0 30px 60px -30px rgba(232,191,106,.55); }
.step--key .step__num { background: linear-gradient(180deg, var(--gold-hi), var(--gold)); -webkit-background-clip: text; background-clip: text; }
.step--key .step__ico { background: var(--gold); border-color: var(--gold); }
.step--key .step__ico svg { stroke: var(--ink); }
.step__ribbon { position: absolute; top: 0; right: 0; padding: .3rem .9rem .3rem 1.2rem; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(90deg, var(--gold), var(--gold-hi)); clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%); }
/* Objectif */
.step--goal { border-color: rgba(232,191,106,.3); }
.step--goal .step__ico { background: rgba(232,191,106,.2); }
@media (prefers-reduced-motion: no-preference) {
  .step--key { animation: keypulse 3s ease-in-out infinite; }
  @keyframes keypulse { 0%, 100% { box-shadow: 0 30px 60px -30px rgba(232,191,106,.45); } 50% { box-shadow: 0 30px 70px -24px rgba(232,191,106,.8); } }
  .step--key .step__ico { animation: icoglow 3s ease-in-out infinite; }
  @keyframes icoglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232,191,106,.4); } 50% { box-shadow: 0 0 0 8px rgba(232,191,106,0); } }
}
@media (max-width: 980px) { .steps--v2 { grid-template-columns: 1fr 1fr; } .steps--v2::before { display: none; } }
@media (max-width: 520px) { .steps--v2 { grid-template-columns: 1fr; } }
.steps--v2 .step { text-align: left; padding-top: 2.4rem; }
.steps--v2 .step h3, .steps--v2 .step p { text-align: left; }
.step__ribbon { top: 0; left: 0; right: auto; padding: .32rem 1.1rem .32rem .9rem; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.final .final__kicker { letter-spacing: .18em; }
/* H1 du hero : ne déborde jamais, retour à la ligne équilibré */
.hero h1 { max-width: min(100%, 22ch); font-size: clamp(2.1rem, 4.8vw, 4rem); text-wrap: balance; overflow-wrap: break-word; }
.hero h1 span { font-size: .5em; text-wrap: balance; }
/* Bouton qui suit le défilement : barre de progression + bouton du haut mis en valeur après le hero */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: left; transform: scaleX(0); }
@media (prefers-reduced-motion: no-preference) {
  .topbar.is-past-hero .btn--top { animation: topglow 2.6s ease-in-out infinite; }
  @keyframes topglow { 0%, 100% { filter: drop-shadow(0 4px 12px rgba(232,191,106,.3)); } 50% { filter: drop-shadow(0 4px 22px rgba(232,191,106,.75)); } }
}
.hero__micro { margin: .9rem 0 0; font-size: .88rem; font-weight: 600; color: #e6e1f2; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
#joueurs .center { margin-top: 2rem; }

/* Design de la zone vitrine + étapes */
/* Transitions douces entre sections */
#midgard, #demarrer, #joueurs { position: relative; }
#midgard::before, #demarrer::before, #joueurs::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 120px; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(232,191,106,.06), transparent); }
#midgard > .wrap, #demarrer > .wrap, #joueurs > .wrap { position: relative; z-index: 1; }
#midgard { background: radial-gradient(1000px 500px at 50% 0%, rgba(80,70,160,.25), transparent 70%), var(--bg); }
.title__orn { filter: drop-shadow(0 0 6px rgba(232,191,106,.5)); }
/* Vitrine plus vivante */
.showcase { box-shadow: 0 50px 100px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(232,191,106,.08); }
.showcase__progress { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255,255,255,.04); z-index: 3; overflow: hidden; }
.showcase__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: left; transform: scaleX(0); }
.tab { flex-direction: column; gap: .25rem; }
.tab__ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-soft); margin-bottom: .1rem; transition: background-color .2s ease, border-color .2s ease; }
.tab__ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tab[aria-selected="true"] .tab__ico { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.tab__n { display: none; }
.panel__media img { transition: transform 6s ease; }
.panel:not([hidden]) .panel__media img { transform: scale(1.06); }
.panel__media--class img { transform: none !important; }
.panel__text h3 { background: linear-gradient(180deg, #fff, #e9dcc0); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Fond d'ambiance des étapes */
.section--art { position: relative; overflow: hidden; }
.steps-bg { position: absolute; inset: 0; z-index: 0; }
.steps-bg picture, .steps-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steps-bg img { opacity: .18; filter: blur(2px) saturate(1.1); }
.steps-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(15,19,40,.4), rgba(10,12,29,.95) 75%); }
.section--art > .wrap { position: relative; z-index: 1; }
.step { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: linear-gradient(180deg, rgba(23,29,60,.92), rgba(16,20,43,.92)); }
.step--key { background: linear-gradient(180deg, rgba(42,35,71,.95), rgba(21,18,46,.95)); }
@media (prefers-reduced-motion: reduce) { .panel:not([hidden]) .panel__media img { transform: none; } }
@media (max-width: 860px) { .tab__ico { width: 28px; height: 28px; } }

/* Fonds de section avec les visuels officiels du jeu (au lieu d'une couleur unie) */
.section--art2 { position: relative; overflow: hidden; }
.sec-art { position: absolute; inset: 0; z-index: 0; }
.sec-art picture, .sec-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sec-art img { opacity: .32; filter: blur(3px) saturate(1.15); transform: scale(1.05); }
.sec-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(10,12,29,.55) 22%, rgba(10,12,29,.6) 78%, var(--bg) 100%), radial-gradient(ellipse at center, rgba(10,12,29,.25), rgba(10,12,29,.75) 85%); }
.section--art2 > .wrap { position: relative; z-index: 1; }
.steps-bg img { opacity: .32; }
.steps-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(10,12,29,.55) 22%, rgba(10,12,29,.6) 78%, var(--bg) 100%); }
/* Les blocs posés sur ces fonds deviennent légèrement translucides */
.showcase, .faq details, .voices .quote { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.showcase { background: linear-gradient(180deg, rgba(20,26,53,.88), rgba(10,12,29,.88)); }
.faq details { background: rgba(20,26,53,.85); }
.voices .quote { background: rgba(20,26,53,.85); }

/* Icônes 3D : médaillons dorés en relief */
.tab__ico, .step__ico {
  position: relative; border: 0 !important;
  background: radial-gradient(circle at 35% 30%, #fff6d8 0%, #f2c96e 28%, #b8862f 62%, #6e4a12 100%) !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.7), inset 0 -3px 5px rgba(60,35,0,.65), 0 6px 14px rgba(0,0,0,.55), 0 0 0 2px rgba(20,16,40,.9), 0 0 0 3px rgba(232,191,106,.55);
}
.tab__ico::after, .step__ico::after { content: ""; position: absolute; top: 10%; left: 22%; width: 45%; height: 30%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,.75), rgba(255,255,255,0)); pointer-events: none; }
.tab__ico svg, .step__ico svg { position: relative; z-index: 1; stroke: #2a1a00 !important; filter: drop-shadow(0 1px 0 rgba(255,240,200,.6)); }
.tab__ico { width: 40px; height: 40px; }
.tab__ico svg { width: 19px; height: 19px; }
.step__ico { width: 54px; height: 54px; }
.step__ico svg { width: 24px; height: 24px; }
/* Onglets inactifs : médaillon en argent mat, l'onglet actif passe à l'or brillant */
.tab:not([aria-selected="true"]) .tab__ico { background: radial-gradient(circle at 35% 30%, #ffffff 0%, #c9cbe0 30%, #7d80a3 65%, #3a3c5c 100%) !important;
  box-shadow: inset 0 2px 2px rgba(255,255,255,.6), inset 0 -3px 5px rgba(20,20,45,.7), 0 5px 12px rgba(0,0,0,.5), 0 0 0 2px rgba(20,16,40,.9), 0 0 0 3px rgba(160,165,210,.35); }
.tab:not([aria-selected="true"]) .tab__ico svg { stroke: #1b1d36 !important; filter: none; }
.tab[aria-selected="true"] .tab__ico { transform: translateY(-2px) scale(1.08); }
.tab__ico { transition: transform .25s ease; }
.step--key .step__ico { box-shadow: inset 0 2px 2px rgba(255,255,255,.7), inset 0 -3px 5px rgba(60,35,0,.65), 0 6px 18px rgba(232,191,106,.55), 0 0 0 2px rgba(20,16,40,.9), 0 0 0 3px var(--gold-hi); }
@media (max-width: 860px) { .tab__ico { width: 32px; height: 32px; } .tab__ico svg { width: 16px; height: 16px; } }

/* Fond de page : nébuleuse magique + motif runique discret + braises dorées */
html { background: #07091a; }
body {
  background:
    radial-gradient(900px 600px at 10% 20%, rgba(98,72,190,.16), transparent 70%),
    radial-gradient(800px 700px at 90% 55%, rgba(40,90,190,.14), transparent 70%),
    radial-gradient(700px 500px at 30% 90%, rgba(232,191,106,.07), transparent 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23e8bf6a' stroke-opacity='.045' stroke-width='1'%3E%3Cpath d='M60 8l52 52-52 52L8 60z'/%3E%3Ccircle cx='60' cy='60' r='14'/%3E%3Cpath d='M60 46v28M46 60h28'/%3E%3C/g%3E%3C/svg%3E"),
    #07091a;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}
/* les sections sans image laissent voir ce fond */
#midgard { background: transparent; }
.section--alt:not(.section--art):not(.section--art2) { background: rgba(14,18,40,.55); }
.sec-art::after { background: linear-gradient(180deg, rgba(7,9,26,1) 0%, rgba(10,12,29,.55) 22%, rgba(10,12,29,.6) 78%, rgba(7,9,26,1) 100%), radial-gradient(ellipse at center, rgba(10,12,29,.25), rgba(10,12,29,.75) 85%); }
.steps-bg::after { background: linear-gradient(180deg, rgba(7,9,26,1) 0%, rgba(10,12,29,.55) 22%, rgba(10,12,29,.6) 78%, rgba(7,9,26,1) 100%); }
.embers { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 80; mix-blend-mode: screen; opacity: .8; }
.footer { position: relative; background: linear-gradient(180deg, transparent, rgba(232,191,106,.04)); border-top: 1px solid rgba(232,191,106,.15); }
@media (max-width: 640px) { body { background-attachment: scroll; } }

/* FAQ : la question ouverte change de couleur (or), survol mis en valeur */
.faq summary { transition: color .2s ease, background-color .2s ease; }
.faq details:not([open]) summary:hover { color: var(--gold-hi); background: rgba(232,191,106,.05); }
.faq details { transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease; }
.faq details[open] { border-color: var(--gold); background: linear-gradient(180deg, rgba(58,46,96,.92), rgba(24,22,52,.92)); box-shadow: 0 0 0 1px rgba(232,191,106,.25), 0 14px 34px -14px rgba(232,191,106,.35); }
.faq details[open] summary { color: var(--gold-hi); border-bottom: 1px solid rgba(232,191,106,.2); margin-bottom: .9rem; }
.faq details[open] p { color: #e9e4f5; }
.faq details[open] summary::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); }

/* Fonds image plus visibles, comme la section « 4 étapes » */
.sec-art img { opacity: .5; filter: blur(1.5px) saturate(1.2); }
.sec-art::after { background: linear-gradient(180deg, rgba(7,9,26,1) 0%, rgba(10,12,29,.5) 20%, rgba(10,12,29,.5) 80%, rgba(7,9,26,1) 100%); }
.steps-bg img { opacity: .45; filter: blur(1.5px) saturate(1.2); }
