/* HomeRPG — feuille de style principale */

:root {
  --bg: #0c0b0f;
  --bg-2: #14121a;
  --surface: #1a1720;
  --surface-2: #221e29;
  --line: rgba(232, 190, 110, .16);
  --line-strong: rgba(232, 190, 110, .35);
  --text: #e9e4da;
  --muted: #a69e90;
  --gold: #e8be6e;
  --gold-2: #f5d796;
  --gold-deep: #b9822f;
  --ember: #e0702a;
  --fel: #6fd14a;
  --frost: #7cc8ff;
  --ok: #69d38a;
  --warn: #f0b44c;
  --dev: #8fa8ff;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --serif: "Cinzel", "Trajan Pro", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --container: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-2); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
code, kbd {
  font-family: var(--mono); font-size: .88em;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  padding: .1em .4em; border-radius: 5px; word-break: break-word;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: .02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: #000; padding: .5em 1em; border-radius: 6px; }
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .container { padding: 0 28px; } }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12, 11, 15, .82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--gold); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 8px rgba(232, 190, 110, .35)); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav a {
  display: block; padding: .45em .85em; border-radius: 8px;
  color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--gold-2); background: rgba(232, 190, 110, .08); }
.site-nav a[aria-current="page"] { color: var(--gold); background: rgba(232, 190, 110, .12); }
.nav-toggle { display: none; }
.site-nav { margin-left: auto; }
.lang-switch {
  padding: .35em .7em; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--gold); text-decoration: none; font-size: .85rem; font-weight: 700; letter-spacing: .06em;
}
.lang-switch:hover { color: var(--gold-2); background: rgba(232, 190, 110, .08); }

@media (max-width: 900px) {
  .lang-switch { margin-left: auto; }
  .nav-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line-strong); border-radius: 10px; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 20px; height: 2px; background: var(--gold); position: relative; content: ""; transition: transform .2s;
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: rgba(12, 11, 15, .97); border-bottom: 1px solid var(--line);
    display: none;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 16px 16px; }
  .site-nav a { padding: .8em 1em; font-size: 1.05rem; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.5em; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #1d1406;
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 45%, var(--gold-deep));
  box-shadow: 0 6px 24px rgba(232, 190, 110, .25), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:hover { color: #1d1406; box-shadow: 0 10px 34px rgba(232, 190, 110, .4), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn-ghost { color: var(--gold); border-color: var(--line-strong); background: rgba(12, 11, 15, .45); }
.btn-ghost:hover { color: var(--gold-2); border-color: var(--gold); background: rgba(232, 190, 110, .08); }
.btn-discord { color: #fff; background: #5865f2; }
.btn-discord:hover { color: #fff; background: #4752c4; }
.btn-patreon { color: #fff; background: #d63a43; }
.btn-patreon:hover { color: #fff; background: #b92f37; }
.btn-kofi { color: #04212d; background: #29abe0; }
.btn-kofi:hover { color: #04212d; background: #4cbbe8; }
.btn-download { flex-direction: column; gap: 0; padding: .8em 1.6em; text-align: center; }
.btn-download-main { font-size: 1.05rem; }
.btn-download-meta { font-size: .8rem; font-weight: 500; opacity: .8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-disabled {
  display: inline-flex; flex-direction: column; align-items: center; padding: .8em 1.6em; border-radius: 10px;
  border: 1px dashed var(--line-strong); color: var(--muted); font-weight: 600; text-align: center;
}
.btn-disabled small { font-weight: 500; font-size: .8rem; }

/* ---------- Héros ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(88vh, 820px); display: grid; align-items: center;
  padding: 90px 0 110px; text-align: center;
}
.hero-split { position: absolute; inset: 0; z-index: -2; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.hero-split div { background-size: cover; background-position: center; filter: saturate(.9); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 42% 50% at 50% 45%, rgba(12, 11, 15, .82), rgba(12, 11, 15, .35) 100%),
    linear-gradient(180deg, rgba(12, 11, 15, .15) 60%, var(--bg) 98%);
}
.hero-logo { width: clamp(140px, 22vw, 230px); margin: 0 auto 18px; filter: drop-shadow(0 0 30px rgba(232, 190, 110, .45)); animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { filter: drop-shadow(0 0 46px rgba(232, 190, 110, .7)); } }
@media (prefers-reduced-motion: reduce) { .hero-logo { animation: none; } html { scroll-behavior: auto; } }
.hero h1 { margin-bottom: .2em; background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, var(--gold-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero .tagline { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.75rem); color: var(--text); margin-bottom: .8em; }
.hero .lead { max-width: 700px; margin: 0 auto 2em; color: #d4cdc0; font-size: 1.08rem; }
.hero .btn-row { justify-content: center; }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 110px 0 80px; background-size: cover; background-position: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12, 11, 15, .95) 0%, rgba(12, 11, 15, .75) 50%, rgba(12, 11, 15, .35) 100%), linear-gradient(180deg, transparent 55%, var(--bg));
}
.page-hero .eyebrow { margin-bottom: .6em; }
.page-hero h1 { color: var(--gold); }
.page-hero .lead { max-width: 640px; font-size: 1.12rem; color: #d9d2c5; }
.page-hero-simple { padding: 70px 0 30px; }
.page-hero-simple::before { background: radial-gradient(ellipse at top, rgba(232, 190, 110, .08), transparent 60%); }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1em;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.divider { width: 120px; height: 2px; margin: 0 auto 1.2em; background: linear-gradient(90deg, transparent, var(--gold), transparent); border: 0; }

/* Schéma du principe */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; margin-bottom: 56px; }
.flow-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; text-align: center;
}
.flow-step .icon { font-size: 2rem; line-height: 1; margin-bottom: .4em; }
.flow-step h3 { font-size: 1.1rem; margin-bottom: .4em; color: var(--gold); }
.flow-step p { margin: 0; color: var(--muted); font-size: .95rem; }
.flow-step.is-core { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(232, 190, 110, .1), var(--surface)); box-shadow: 0 0 40px rgba(232, 190, 110, .08); }
.flow-arrow { display: grid; place-items: center; color: var(--gold); font-size: 1.6rem; }
@media (max-width: 860px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}

/* Cartes */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--line-strong); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards-3 { grid-template-columns: 1fr; } }
.card h3 { color: var(--gold); margin-bottom: .45em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { font-size: 1.7rem; margin-bottom: .5em; line-height: 1; }
.card p { color: #cfc8bb; }

/* Grandes cartes projet */
.projects { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.project-soon { cursor: default; }
.project-plain { background: radial-gradient(ellipse at top right, rgba(232, 190, 110, .16), transparent 60%), var(--surface); }
.project-soon:hover { transform: none; box-shadow: var(--shadow); }
.project-soon .badge { align-self: flex-start; margin-bottom: 14px; }
.project-soon .more { color: var(--dev); letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.btn-soon { cursor: default; border-style: dashed; color: var(--muted); }
.btn-soon:hover { transform: none; color: var(--muted); border-color: var(--line-strong); background: rgba(12, 11, 15, .45); }
.btn-soon small { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dev); }
.project {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px;
  border: 1px solid var(--line-strong); min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 32px; background-size: cover; background-position: center; color: var(--text); text-decoration: none;
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
}
.project::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 11, 15, .05) 0%, rgba(12, 11, 15, .7) 45%, rgba(12, 11, 15, .97) 100%); }
.project:hover { transform: translateY(-4px); box-shadow: 0 26px 70px rgba(0, 0, 0, .6), 0 0 0 1px var(--gold); color: var(--text); }
.project h3 { font-size: 2rem; color: var(--gold); margin-bottom: .25em; }
.project .game { font-weight: 600; color: var(--gold-2); margin-bottom: .8em; }
.project p { color: #d6cfc2; }
.project .more { font-weight: 600; color: var(--gold); }
.edition-logos { display: flex; gap: 10px; margin-bottom: 16px; }
.edition-logos img { width: 64px; height: 64px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }

/* Tableau d'état */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, .06); vertical-align: top; }
th { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: rgba(232, 190, 110, .05); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td a { font-weight: 600; }
.status-table td:nth-child(3) { white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: .4em; white-space: nowrap;
  font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .3em .75em; border-radius: 999px; border: 1px solid currentColor;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-dispo { color: var(--ok); background: rgba(105, 211, 138, .08); }
.badge-test { color: var(--warn); background: rgba(240, 180, 76, .08); }
.badge-dev { color: var(--dev); background: rgba(143, 168, 255, .08); }

/* Bloc CTA */
.cta {
  text-align: center; padding: 56px 24px; border-radius: 20px; border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse at top, rgba(232, 190, 110, .14), transparent 65%), var(--surface);
}
.cta p { color: var(--muted); max-width: 620px; margin: 0 auto 1.6em; }
.cta .btn-row { justify-content: center; }

/* ---------- Page HomeCraft : onglets d'édition ---------- */
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 34px; }
.tab {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; color: var(--text); font: inherit; text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
.tab img { width: 58px; height: 58px; flex: none; }
.tab strong { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); }
.tab span { display: block; font-size: .85rem; color: var(--muted); }
.tab:hover { border-color: var(--line-strong); transform: translateY(-2px); color: var(--text); }
.tab[aria-selected="true"] { border-color: var(--gold); background: linear-gradient(180deg, rgba(232, 190, 110, .12), var(--surface)); }
.tab[data-edition="bc"][aria-selected="true"] { border-color: var(--fel); background: linear-gradient(180deg, rgba(111, 209, 74, .1), var(--surface)); }
.tab[data-edition="wotlk"][aria-selected="true"] { border-color: var(--frost); background: linear-gradient(180deg, rgba(124, 200, 255, .1), var(--surface)); }
.tab[data-edition="bc"] strong { color: #9be27a; }
.tab[data-edition="wotlk"] strong { color: #a8dbff; }
@media (max-width: 760px) {
  .tabs { grid-template-columns: 1fr; }
}

.edition { scroll-margin-top: 90px; }
.js .edition[hidden] { display: none; }
.edition + .edition { margin-top: 60px; }
.js .edition + .edition { margin-top: 0; }
.edition-banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; border: 1px solid var(--line-strong);
  padding: 40px 32px; margin-bottom: 36px; background-size: cover; background-position: center;
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
.edition-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12, 11, 15, .94), rgba(12, 11, 15, .72) 60%, rgba(12, 11, 15, .45)); }
.edition-banner img { width: 150px; height: 150px; filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .7)); }
.edition-banner h2 { margin-bottom: .2em; color: var(--gold); }
.edition-bc .edition-banner h2 { color: #9be27a; }
.edition-wotlk .edition-banner h2 { color: #a8dbff; }
.edition-banner .game { font-weight: 600; margin-bottom: .7em; }
.edition-banner p { color: #d9d2c5; max-width: 640px; }
.edition-banner .badge { margin-bottom: 12px; }
@media (max-width: 680px) {
  .edition-banner { grid-template-columns: 1fr; text-align: center; padding: 30px 20px; }
  .edition-banner img { margin: 0 auto; width: 120px; height: 120px; }
  .edition-banner p { margin-left: auto; margin-right: auto; }
}

.two-col { display: grid; gap: 34px; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

.features { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 12px; }
.features li { position: relative; padding-left: 30px; color: #d6cfc2; }
.features li::before {
  content: "◆"; position: absolute; left: 4px; top: .05em; color: var(--gold); font-size: .85rem;
}
.features strong { color: var(--text); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.panel + .panel { margin-top: 18px; }
.panel h3 { font-size: 1.1rem; color: var(--gold); }
.specs { margin: 0; display: grid; gap: 10px; }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; font-size: .95rem; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.specs div:last-child { border-bottom: 0; padding-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.panel .btn, .panel .btn-disabled { width: 100%; }
.win-note {
  margin: 14px 0 0; padding: 12px 14px 12px 40px; position: relative;
  border: 1px solid rgba(240, 180, 76, .35); background: rgba(240, 180, 76, .07); border-radius: 10px;
  font-size: .86rem; color: #d9cfbd;
}
.win-note::before { content: "⚠"; position: absolute; left: 14px; top: 11px; color: var(--warn); font-size: 1rem; }
.win-note strong { color: var(--warn); }
.panel-note { font-size: .86rem; color: var(--muted); margin: 12px 0 0; }

.projects-status { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.projects-status .panel { margin: 0; }
.projects-status .panel > p { color: #cfc8bb; }
.bots-plan { border-color: var(--line-strong); background: radial-gradient(ellipse at top left, rgba(232, 190, 110, .12), transparent 60%), var(--surface); }
.bots-plan h3 { font-size: 1.4rem; }
.bots-plan p { color: #d6cfc2; }
.bots-plan p:last-child { margin-bottom: 0; }
.status-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.status-list li { position: relative; padding: 12px 14px 12px 40px; border-radius: 10px; background: rgba(255, 255, 255, .03); font-size: .94rem; color: #cfc8bb; }
.status-list li::before { position: absolute; left: 14px; top: 12px; font-weight: 700; }
.status-list .ok::before { content: "✓"; color: var(--ok); }
.status-list .partial::before { content: "◐"; color: var(--warn); }
.status-list .todo::before { content: "○"; color: var(--dev); }
.status-list .ok strong { color: var(--ok); }
.status-list .partial strong { color: var(--warn); }
.status-list .todo strong { color: var(--dev); }

.commands { display: grid; gap: 8px; margin: 0 0 1em; padding: 0; list-style: none; }
.commands li { font-size: .93rem; color: #cfc8bb; }

.callout {
  border-left: 3px solid var(--gold); background: rgba(232, 190, 110, .07);
  padding: 16px 20px; border-radius: 0 10px 10px 0; margin: 1.5em 0; color: #ddd5c7;
}
.callout strong { color: var(--gold-2); }
.callout-warn { border-color: var(--warn); background: rgba(240, 180, 76, .07); }
.callout p:last-child { margin-bottom: 0; }

/* Galerie */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 1.2em 0; }
.gallery figure { margin: 0; }
.gallery a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.gallery img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: top; transition: transform .35s, opacity .2s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }

.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 5, 8, .94);
  display: grid; place-items: center; padding: 56px 16px 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); border-radius: 8px; box-shadow: var(--shadow); }
.lightbox-caption { color: var(--muted); margin: 14px 0 0; text-align: center; }
.lightbox-close {
  position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line-strong); color: var(--text); font-size: 1.6rem; cursor: pointer;
}

/* Étapes d'installation */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps > li {
  counter-increment: step; position: relative; padding: 22px 24px 22px 84px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.steps > li::before {
  content: counter(step); position: absolute; left: 22px; top: 20px; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: #1d1406;
  background: linear-gradient(180deg, var(--gold-2), var(--gold-deep));
}
.steps h3 { font-size: 1.15rem; margin-bottom: .35em; }
.steps p { color: #cfc8bb; }
.steps p:last-child { margin-bottom: 0; }
@media (max-width: 560px) {
  .steps > li { padding: 74px 18px 20px; }
  .steps > li::before { left: 18px; top: 18px; }
}

/* Téléchargements */
.downloads { display: grid; gap: 22px; }
.download-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 18px; padding: 26px;
}
.download-card > img { width: 96px; height: 96px; }
.download-card h3 { margin-bottom: .2em; color: var(--gold); }
.download-card .meta { color: var(--muted); font-size: .94rem; margin-bottom: .6em; }
.sha {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted);
}
.sha code { font-size: .78rem; word-break: break-all; }
.sha-details { margin-top: 4px; font-size: .86rem; color: var(--muted); }
.sha-details summary {
  display: inline-flex; align-items: center; gap: .45em; cursor: pointer; list-style: none;
  color: var(--muted); font-weight: 600; padding: .2em 0;
}
.sha-details summary::-webkit-details-marker { display: none; }
.sha-details summary::before { content: "▸"; color: var(--gold); transition: transform .2s; }
.sha-details[open] summary::before { transform: rotate(90deg); }
.sha-details summary:hover { color: var(--gold-2); }
.sha-details p { margin: .5em 0; font-size: .84rem; }
@media (max-width: 820px) { .sha-details { text-align: left; } }
.copy {
  background: none; border: 1px solid var(--line-strong); color: var(--gold); border-radius: 6px;
  font: inherit; font-size: .78rem; padding: .2em .7em; cursor: pointer;
}
.copy:hover { background: rgba(232, 190, 110, .1); }
@media (max-width: 820px) {
  .download-card { grid-template-columns: 1fr; text-align: center; }
  .download-card > img { margin: 0 auto; }
  .sha { justify-content: center; }
  .download-card .btn { width: 100%; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 30px 18px 0; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; color: #cfc8bb; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Texte long (mentions légales) */
.prose { max-width: 800px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; color: var(--gold); margin-top: 1.8em; }
.prose p, .prose li { color: #d2cbbe; }
.prose ul { padding-left: 1.2em; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); background: #08080b; padding: 56px 0 24px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand p { color: var(--muted); }
.footer-brand strong { color: var(--gold); font-family: var(--serif); font-size: 1.15rem; }
.footer-title { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #cfc8bb; text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); color: #7d766a; font-size: .82rem; }
.footer-legal p { margin-bottom: .5em; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* Page 404 */
.notfound { text-align: center; padding: 120px 0; }
.notfound img { width: 140px; margin: 0 auto 20px; opacity: .85; }

/* Apparition douce au défilement */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
