:root {
  color-scheme: dark;
  --bg: #11110f;
  --surface: #1a1916;
  --surface-raised: #211f1b;
  --surface-soft: #28251f;
  --ink: #eee9de;
  --mute: #aaa397;
  --line: #3a3630;
  --line-strong: #514a40;
  --acc: #c83b32;
  --acc-hover: #df4b40;
  --gold: #d4a65b;
  --bg1: #11110f;
  --bg2: #171512;
  --panel: var(--surface);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 48px 48px;
  font: 400 16px/1.6 "DM Sans", system-ui, sans-serif;
}
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .16; }
.wrap { position: relative; z-index: 1; width: min(1160px, 100% - 56px); margin: 0 auto; }
h1,h2,h3,p { margin-top: 0; }
h1,h2,h3 { color: var(--ink); font-family: "Bricolage Grotesque", "DM Sans", sans-serif; line-height: 1.12; letter-spacing: -.035em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { color: var(--mute); }
.hero,.ow,header .logo { color: var(--ink); }
.ow.note,.hero p { color: var(--mute); }
header {
  display: flex; justify-content: space-between; align-items: center; gap: 28px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--ink); font: 700 18px/1 "Bricolage Grotesque", sans-serif; letter-spacing: -.02em; }
.mark { display: block; width: 40px; height: 40px; object-fit: contain; border-radius: 4px; box-shadow: none; animation: none; }
.logo .mark { width: 38px; height: 38px; }
nav { display: flex; gap: 6px; flex-wrap: wrap; }
nav button,.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--surface); color: var(--ink); font: 600 14px/1.2 "DM Sans", sans-serif;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
nav button:hover,.btn:hover { border-color: #81776a; background: var(--surface-soft); }
nav button:active,.btn:active { transform: translateY(1px); }
nav button[aria-pressed="true"],.btn.main { border-color: var(--acc); background: var(--acc); color: #fff; }
nav button[aria-pressed="true"]:hover,.btn.main:hover { border-color: var(--acc-hover); background: var(--acc-hover); }
.btn.rb { border-color: var(--c); background: var(--c); color: var(--ci); }
.btn.rb:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .42; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible,[tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lucide { width: 17px; height: 17px; stroke-width: 1.8; flex: 0 0 auto; vertical-align: middle; }
.hero { padding: 58px 0 46px; border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: minmax(170px, 230px) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 74px); }
.hero-emblem { display: grid; place-items: center; min-height: 200px; background-color: #181714; border: 1px solid var(--line); border-radius: 4px; box-shadow: inset 0 0 0 6px #11110f; }
.mark.big { width: 132px; height: 132px; margin: 0; border-radius: 4px; display: block; }
.eyebrow { margin: 0 0 15px; color: var(--gold) !important; font: 400 11px/1.5 "Silkscreen", monospace; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { padding: 0 5px; color: var(--line-strong); }
.hero h1 { max-width: 14ch; margin: 0; }
.hero-copy > p:not(.eyebrow) { max-width: 58ch; margin: 16px 0 0; font-size: 16px; }
.ip-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.ip { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 4px; background: #151411; color: var(--mute); font: 500 13px "DM Sans", sans-serif; }
.ip span { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.ip:hover { border-color: var(--gold); color: var(--ink); }
.ip .lucide { color: var(--gold); }
.shop-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 28px 0 10px; padding: 0; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.shop-tabs button { position: relative; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; justify-content: start; align-content: center; gap: 1px 10px; min-height: 78px; padding: 14px 20px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; text-align: left; font-size: 15px; }
.shop-tabs button:last-child { border-right: 0; }
.shop-tabs button[aria-pressed="true"] { background: #24201a; color: var(--ink); box-shadow: inset 3px 0 var(--acc); }
.shop-tabs button > .lucide { grid-row: 1 / 3; align-self: center; color: var(--gold); }
.shop-tabs button > span { align-self: end; }
.shop-tabs small { grid-column: 2; color: var(--mute); font-size: 12px; font-weight: 400; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; margin: 16px 0 64px; }
.card { --c: #8b8174; --ci: var(--ink); position: relative; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: 4px; background: var(--surface); box-shadow: none; transition: border-color .15s, background-color .15s; }
.card:hover { transform: none; border-color: #635b4f; background: #1e1c18; }
.card.top { border-color: color-mix(in srgb, var(--c) 62%, var(--line)); box-shadow: inset 0 2px var(--c); }
.card h3 { margin: 4px 0 0; color: var(--ink); font-size: 1.5rem; }
.price { color: var(--ink); font: 700 28px/1.15 "Bricolage Grotesque", sans-serif; letter-spacing: -.04em; }
.price small { margin-left: 4px; color: var(--mute); font: 400 13px "DM Sans", sans-serif; letter-spacing: 0; }
.card ul { flex: 1; margin: 0; padding: 14px 0 14px 18px; border-top: 1px solid var(--line); color: var(--mute); }
.card li { padding: 3px 0; }
.card li::marker { color: var(--c); }
.card .tag { align-self: flex-start; padding: 4px 7px; border: 1px solid #65502e; border-radius: 2px; background: #2c2519; color: #e6c27f; font: 400 9px "Silkscreen", monospace; }
.card .proof { margin-top: -2px; }
.product-art { display: grid; place-items: center; height: 128px; border: 1px solid var(--line); border-radius: 3px; background: #151411; overflow: hidden; }
.product-art .lucide { width: 48px; height: 48px; color: var(--c); stroke-width: 1.4; filter: none; }
.product-art img { max-width: 100%; max-height: 116px; object-fit: contain; image-rendering: pixelated; }
.product-note { color: var(--mute); font-size: 13px; line-height: 1.5; }
#gallery { padding: 0 0 54px; }
.gt { margin: 0 0 18px; padding-bottom: 13px; border-bottom: 1px solid var(--line); font-size: clamp(1.5rem, 3vw, 2rem); }
.gal { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 14px; margin-bottom: 0; }
.tile { min-width: 0; margin: 0; }
.media { position: relative; aspect-ratio: 16/10; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: #0a0a09; cursor: pointer; --x:50%; --y:50%; --r:0px; box-shadow: none; }
.media .base,.media .col { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.media .base { filter: grayscale(1) brightness(.34) contrast(1.08); }
.media:not(.act) .col { visibility: hidden; }
.media .col { --b:4px; --blobs:radial-gradient(circle at var(--x) var(--y),#000 calc(var(--r)*.5),transparent calc(var(--r)*.5 + var(--b))),radial-gradient(circle at calc(var(--x) + var(--r)*.38) calc(var(--y) - var(--r)*.22),#000 calc(var(--r)*.3),transparent calc(var(--r)*.3 + var(--b))),radial-gradient(circle at calc(var(--x) - var(--r)*.4) calc(var(--y) + var(--r)*.2),#000 calc(var(--r)*.32),transparent calc(var(--r)*.32 + var(--b))),radial-gradient(circle at calc(var(--x) + var(--r)*.1) calc(var(--y) + var(--r)*.42),#000 calc(var(--r)*.22),transparent calc(var(--r)*.22 + var(--b))),radial-gradient(circle at calc(var(--x) - var(--r)*.18) calc(var(--y) - var(--r)*.45),#000 calc(var(--r)*.2),transparent calc(var(--r)*.2 + var(--b))); -webkit-mask-image: var(--blobs); mask-image: var(--blobs); }
.media figcaption { position: absolute; inset: auto 0 0; z-index: 2; padding: 34px 15px 13px; background: linear-gradient(transparent,rgba(0,0,0,.82)); color: #fff; font: 500 12px/1.5 "DM Sans", sans-serif; pointer-events: none; }
.cart { position: sticky; bottom: 12px; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 0 0 54px; padding: 14px 16px; border: 1px solid var(--line-strong); border-left: 3px solid var(--acc); border-radius: 4px; background: #191815; box-shadow: 0 10px 28px #0008; }
#cartText { color: var(--ink); font-weight: 600; }
.chk { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; color: var(--mute); font-size: 12px; }
.chk input { min-width: 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--acc); }
a { color: #e0b66c; font-weight: 600; text-decoration-color: #866b40; text-underline-offset: 3px; }
a:hover { color: #f0cd8d; }
main:not(#shop) > .hero { padding: 42px 0 20px; border: 0; }
main:not(#shop) > .hero h2 { margin: 0; }
.panel { margin: 16px 0 22px; padding: 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.panel h3 { margin-bottom: 14px; font-size: 1.25rem; }
.panel p:last-child { margin-bottom: 0; }
.terms { max-width: 72ch; color: var(--mute); white-space: pre-wrap; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tags span { padding: 4px 8px; border: 1px solid #504637; border-radius: 2px; background: #262219; color: #d7b76f; font: 400 9px "Silkscreen", monospace; }
#ab-text p { max-width: 70ch; margin: 0 0 13px; }
.member { display: flex; align-items: center; gap: 24px; margin: 0 0 14px; padding: 18px; border: 1px solid var(--line); border-left: 2px solid var(--acc); border-radius: 4px; background: var(--surface); box-shadow: none; }
.member .pic { display: grid; flex: 0 0 116px; place-items: center; min-height: 126px; padding: 8px; border: 1px solid var(--line); background: #151411; }
.member img { width: auto; max-width: 96px; height: 116px; object-fit: contain; filter: none; animation: none; }
.member .ini,.stpic .ini { display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 3px; background: #29251e; color: var(--gold); font: 700 30px "Bricolage Grotesque", sans-serif; }
.member .ini { width: 72px; height: 72px; margin: 0; }
.member h3 { margin: 0 0 6px; font-size: 1.3rem; }
.member p { margin: 0; max-width: 56ch; }
.role { display: inline-block; margin: 0 0 9px; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: 2px; background: #29251e; color: var(--gold); font: 400 9px "Silkscreen", monospace; }
.role.owner,.role.admin,.role.builder { border-color: var(--line-strong); background: #29251e; color: var(--gold); }
.stline { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.stpic { display: flex; align-items: center; justify-content: center; width: 72px; height: 96px; }
.stpic img { max-width: 72px; max-height: 96px; }
.stpic .ini { width: 58px; height: 58px; font-size: 24px; }
.gt { font-size: 28px; }
/* Formulaires et outils d'administration */
.field { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.field > div { min-width: 0; }
label { display: block; margin-bottom: 5px; color: var(--mute); font-size: 13px; }
input,select,textarea { width: auto; max-width: 100%; min-width: 190px; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 3px; background: #121210; color: var(--ink); font: 400 14px/1.4 "DM Sans", sans-serif; }
input::placeholder,textarea::placeholder { color: #746e64; }
input[type="color"] { width: 48px; min-width: 48px; height: 40px; padding: 3px; }
input[type="checkbox"] { width: 16px; min-width: 16px; height: 16px; padding: 0; }
textarea { width: 100%; min-height: 90px; resize: vertical; }
.hide { display: none !important; }
.note { color: var(--mute); font-size: 13px; }
.erow { border-left: 2px solid var(--acc); }
.scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th,td { padding: 11px 13px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; white-space: nowrap; }
th { background: #201e1a; color: var(--mute); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
#toast { position: fixed; left: 50%; bottom: 22px; z-index: 8; max-width: min(520px,calc(100% - 28px)); padding: 12px 16px; transform: translateX(-50%); border: 1px solid var(--line-strong); border-left: 3px solid var(--gold); border-radius: 3px; background: #211f1b; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .18s; }
#toast.on { opacity: 1; }
.pp { position: fixed; z-index: 9; width: 6px; height: 6px; border-radius: 0; pointer-events: none; }
.proof { margin: 0; padding-top: 10px; border-top: 1px solid var(--line); color: var(--mute); font-size: 12px; }
@media (max-width: 760px) {
  .wrap { width: min(100% - 36px, 640px); }
  header { align-items: flex-start; flex-direction: column; gap: 14px; }
  nav { gap: 5px; }
  nav button { min-height: 38px; padding: 8px 10px; font-size: 13px; }
  .hero { padding: 38px 0 32px; }
  .hero-inner { grid-template-columns: 110px minmax(0,1fr); gap: 22px; }
  .hero-emblem { min-height: 112px; box-shadow: inset 0 0 0 4px #11110f; }
  .mark.big { width: 76px; height: 76px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3.6rem); }
  .hero-copy > p:not(.eyebrow) { font-size: 14px; }
  .shop-tabs button { min-height: 72px; padding: 10px; gap: 1px 7px; font-size: 13px; }
  .shop-tabs small { font-size: 10px; }
  .member { gap: 16px; }
}
@media (max-width: 500px) {
  .wrap { width: min(100% - 28px, 440px); }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero-emblem { display: none; }
  .hero { padding: 32px 0 27px; }
  .hero h1 { max-width: 12ch; }
  .ip-buttons { display: grid; grid-template-columns: 1fr; }
  .ip { justify-content: flex-start; }
  .shop-tabs button { grid-template-columns: 1fr; justify-items: center; min-height: 72px; padding: 9px 4px; text-align: center; }
  .shop-tabs button > .lucide { grid-row: auto; }
  .shop-tabs small { grid-column: 1; font-size: 9px; }
  .grid { gap: 11px; margin-bottom: 42px; }
  .card { padding: 17px; }
  .cart { bottom: 8px; align-items: stretch; }
  .cart > div,.cart > button { width: 100%; }
  .cart .chk { align-items: flex-start; }
  .member { flex-direction: column; align-items: stretch; text-align: left; }
  .member .pic { flex-basis: auto; min-height: 110px; }
  .panel { padding: 17px; }
  .field > div { width: 100%; }
  input,select { width: 100%; }
  input[type="color"],input[type="checkbox"] { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
/* Curseur pixel rouge/cramoisi assorti au thème sombre de Kryon SMP */
html, body, body * { cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiPjxwYXRoIGZpbGw9IiMxNzA3MGIiIGQ9Ik00IDFoNHY0aDR2NGg0djRoNHY0aDR2NGg0djRoLTh2NGgtNHYtNGgtNHYtNGgtNHYtNEg0eiIvPjxwYXRoIGZpbGw9IiNlMDI0MmMiIGQ9Ik03IDVoNHY0aDR2NGg0djRoNHY0aDR2MmgtOHY0aC0ydi00aC00di00aC00di00aC0yeiIvPjxwYXRoIGZpbGw9IiNmZjYyNjgiIGQ9Ik03IDVoNHY0aDR2NGgtNHYtNEg3eiIvPjxwYXRoIGZpbGw9IiM4ZTExMWMiIGQ9Ik0xOSAxN2g0djRoNHYyaC04eiIvPjxwYXRoIGZpbGw9IiNmNGU5ZTQiIGQ9Ik04IDdoMnYyaDJ2MmgydjJoLTJ2LTJoLTJWOUg4eiIvPjwvc3ZnPg==" ) 4 1, auto !important; }
a, button, [role="button"], input[type="submit"], input[type="button"], .btn, nav button { cursor: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiPjxwYXRoIGZpbGw9IiMxNzA3MGIiIGQ9Ik00IDFoNHY0aDR2NGg0djRoNHY0aDR2NGg0djRoLTh2NGgtNHYtNGgtNHYtNGgtNHYtNEg0eiIvPjxwYXRoIGZpbGw9IiNlMDI0MmMiIGQ9Ik03IDVoNHY0aDR2NGg0djRoNHY0aDR2MmgtOHY0aC0ydi00aC00di00aC00di00aC0yeiIvPjxwYXRoIGZpbGw9IiNmZjYyNjgiIGQ9Ik03IDVoNHY0aDR2NGgtNHYtNEg3eiIvPjxwYXRoIGZpbGw9IiM4ZTExMWMiIGQ9Ik0xOSAxN2g0djRoNHYyaC04eiIvPjxwYXRoIGZpbGw9IiNmNGU5ZTQiIGQ9Ik04IDdoMnYyaDJ2MmgydjJoLTJ2LTJoLTJWOUg4eiIvPjwvc3ZnPg==") 4 1, pointer !important; }
/* Curseur différent au survol des éléments cliquables : main pixelisée rouge/blanc */
a:hover, button:hover, [role="button"]:hover, input[type="submit"]:hover, input[type="button"]:hover, .btn:hover, nav button:hover { cursor: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%2732%27 height=%2732%27 viewBox=%270 0 32 32%27 shape-rendering=%27crispEdges%27%3E%3Cpath fill=%27%2317070b%27 d=%27M11 2h5v3h3v3h3v5h3v9h-3v4h-3v3H9v-3H6v-4H3v-8h4v5h2V7h2z%27/%3E%3Cpath fill=%27%23e0242c%27 d=%27M12 5h3v11h2V9h3v10h2v-5h2v9h-3v4H10v-3H7v-4H5v-5h2v5h3V7h2z%27/%3E%3Cpath fill=%27%23ffffff%27 d=%27M12 7h2v8h-2z M17 11h1v5h-1z M7 17h2v3H7z%27/%3E%3C/svg%3E") 12 3, pointer !important; }

/* Accent rouge Kryon : blocs francs, texture pixel et contrastes de braise */
:root {
  --bg: #120b0c;
  --surface: #1d1415;
  --surface-raised: #281819;
  --surface-soft: #302020;
  --line: #493031;
  --line-strong: #694143;
  --acc: #e23b36;
  --acc-hover: #f04b43;
  --bg1: #120b0c;
  --bg2: #1d0e10;
  --panel: var(--surface);
}
body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% -25%, rgba(157, 26, 31, .23), transparent 62%), linear-gradient(rgba(226,59,54,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(226,59,54,.035) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
.logo { position: relative; }
.logo::before { content: ""; width: 4px; height: 30px; background: var(--acc); box-shadow: 3px 3px 0 #6f2221; }
.logo .mark { margin-left: 2px; }
.hero { border-bottom-color: #623638; }
.hero-emblem {
  position: relative;
  overflow: hidden;
  border-color: #6b3535;
  border-top: 3px solid var(--acc);
  background-color: #261516;
  background-image: linear-gradient(90deg, transparent 0 88%, rgba(226,59,54,.12) 88%), linear-gradient(0deg, transparent 0 88%, rgba(226,59,54,.12) 88%);
  background-size: 32px 32px;
  box-shadow: inset 0 0 0 6px #171011;
}
.hero-emblem::before,.hero-emblem::after { content: ""; position: absolute; z-index: 0; width: 9px; height: 9px; background: var(--acc); opacity: .75; }
.hero-emblem::before { top: 15px; left: 15px; box-shadow: 12px 0 #a82d2a, 0 12px #a82d2a; }
.hero-emblem::after { right: 15px; bottom: 15px; box-shadow: -12px 0 #a82d2a, 0 -12px #a82d2a; }
.hero-emblem .mark { position: relative; z-index: 1; filter: drop-shadow(0 4px 0 #130b0b); }
.eyebrow { color: #f06a5e !important; }
.ip { border-color: #664142; background: #1b1213; }
.ip:hover { border-color: var(--acc); }
.ip .lucide { color: #f06a5e; }
.shop-tabs { border-color: #633536; background: #1a1213; }
.shop-tabs button { border-color: #493031; }
.shop-tabs button[aria-pressed="true"] { background: #381b1c; box-shadow: inset 3px 0 var(--acc); }
.shop-tabs button[aria-pressed="true"] > .lucide { color: #ff756a; }
.shop-tabs button:hover:not([aria-pressed="true"]) { background: #261819; }
.card { border-color: #4b3031; border-top: 2px solid #8c302e; background: #1c1415; }
.card:hover { border-color: #884441; background: #241819; }
.card.top { border-color: #a3473e; box-shadow: inset 0 2px #f05247; }
.card h3 { color: #f0e9df; }
.price { color: #ff665b; }
.card ul { border-top-color: #493031; }
.card .tag { border-color: #9e3d38; background: #4a2020; color: #ffb2a1; }
.product-art { border-color: #4b3031; background-color: #211617; background-image: linear-gradient(90deg, transparent 0 94%, rgba(226,59,54,.08) 94%), linear-gradient(0deg, transparent 0 94%, rgba(226,59,54,.08) 94%); background-size: 24px 24px; }
.product-art .lucide { color: #f05247; }
.gt { border-bottom-color: #633536; }
.media { border-color: #513334; }
.media:hover { border-color: #a34842; }
.cart { border-color: #74403d; border-left-color: #f04b43; background: #211617; }
.btn.main,nav button[aria-pressed="true"] { border-color: #e23b36; background: #c83230; }
.btn.main:hover,nav button[aria-pressed="true"]:hover { border-color: #f26156; background: #e0443b; }
.member { border-color: #493031; border-left-color: #e23b36; background: #1d1415; }
.member .pic { border-color: #493031; background: #211617; }
.panel { border-color: #493031; background: #1d1415; }
.panel h3 { color: #f0e9df; }
.erow { border-left-color: #e23b36; }
input,select,textarea { border-color: #604042; background: #151011; }
input:focus,select:focus,textarea:focus { border-color: #e45a50; }
.scroll { border-color: #493031; }
th { background: #2b1b1c; }
#toast { border-color: #604042; border-left-color: #e3a04e; background: #26191a; }
.tags span { border-color: #8c3b37; background: #3c1d1d; color: #ff9b81; }

/* Rayons adoucis pour une interface moins anguleuse */
nav button,.btn,.ip,input,select,textarea { border-radius: 9px; }
.shop-tabs { border-radius: 12px; overflow: hidden; }
.shop-tabs button:first-child { border-radius: 10px 0 0 10px; }
.shop-tabs button:last-child { border-radius: 0 10px 10px 0; }
.card,.panel,.member,.cart,.scroll,.media,.product-art,.hero-emblem { border-radius: 12px; }
.card .tag,.tags span,.role { border-radius: 6px; }
.member .pic { border-radius: 9px; }
.member .ini,.stpic .ini { border-radius: 9px; }
#toast { border-radius: 9px; }
.logo .mark,.mark.big { border-radius: 9px; }
@media (max-width: 500px) {
  .shop-tabs button:first-child { border-radius: 9px 0 0 9px; }
  .shop-tabs button:last-child { border-radius: 0 9px 9px 0; }
}

/* Titre pixel du hero */
.hero h1 {
  max-width: 28ch;
  font-family: "Silkscreen", monospace;
  font-size: clamp(1.2rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(1.05rem, 4.4vw, 1.55rem); }
}

@font-face {
  font-family: "Minecraft Text";
  src: url("./assets/fonts/minecraft-text.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.hero h1 {
  font-family: "Minecraft Text", "Bricolage Grotesque", sans-serif;
  font-weight: 400;
}

/* Page Description */
#about .subpage-hero { padding: 48px 0 28px; }
#about .subpage-hero h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); }
#about .subpage-hero > p:last-child { margin: 12px 0 0; }
.about-panel { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.5fr); margin: 0 0 56px; padding: 0; overflow: hidden; }
.about-aside { padding: 28px; border-right: 1px solid #633536; background-color: #291718; background-image: linear-gradient(90deg, transparent 0 92%, rgba(226,59,54,.08) 92%), linear-gradient(0deg, transparent 0 92%, rgba(226,59,54,.08) 92%); background-size: 28px 28px; }
.about-badge { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border: 1px solid #9b4540; border-radius: 10px; background: #3b1b1c; color: #fa665b; }
.about-badge .lucide { width: 29px; height: 29px; stroke-width: 1.6; }
.about-label { margin: 0 0 16px; color: var(--ink); font: 700 17px "Bricolage Grotesque", sans-serif; }
.about-label span { color: var(--acc); }
.about-aside .tags { display: grid; gap: 7px; margin: 0; }
.about-aside .tags span { width: fit-content; max-width: 100%; padding: 6px 9px; overflow-wrap: anywhere; font: 500 11px "DM Sans", sans-serif; letter-spacing: .01em; }
.about-copy { align-self: center; padding: clamp(24px, 5vw, 52px); }
.about-index { margin: 0 0 20px; color: #ed6a5e; font: 400 9px "Silkscreen", monospace; letter-spacing: .08em; }
#about #ab-text p { max-width: 64ch; margin: 0 0 16px; color: #c9c0b6; font-size: 16px; line-height: 1.8; }
#about #ab-text p:first-child { color: var(--ink); font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
#about #ab-text p:last-child { margin-bottom: 0; }
@media (max-width: 620px) {
  #about .subpage-hero { padding: 34px 0 22px; }
  .about-panel { grid-template-columns: 1fr; }
  .about-aside { padding: 20px; border-right: 0; border-bottom: 1px solid #633536; }
  .about-badge { width: 48px; height: 48px; margin-bottom: 14px; }
  .about-copy { padding: 24px 20px; }
}

/* Conditions d'utilisation : lecture claire et sections repérables */
#terms .legal-hero { padding: 42px 0 26px; }
#terms .legal-title { display: flex; align-items: center; gap: 16px; }
#terms .legal-title h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
#terms .legal-title p { margin: 9px 0 0; color: var(--mute); }
#terms .legal-mark { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid #884441; border-radius: 12px; background: #35191b; color: #ff756a; }
#terms .legal-mark .lucide { width: 24px; height: 24px; }
#terms .legal-callout { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 15px 18px; border: 1px solid #633536; border-left: 3px solid var(--acc); border-radius: 10px; background: #211617; color: #d0c5bb; }
#terms .legal-callout .lucide { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: #f06a5e; }
#terms .legal-callout p { margin: 0; line-height: 1.65; }
#terms .terms-panel { margin-bottom: 48px; padding: clamp(20px, 4vw, 38px); }
#termsText.terms { display: grid; gap: 0; max-width: 82ch; color: var(--mute); white-space: normal; }
#termsText .term-item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid #493031; }
#termsText .term-item:first-child { padding-top: 0; }
#termsText .term-item:last-child { padding-bottom: 0; border-bottom: 0; }
#termsText .term-number { display: grid; place-items: center; width: 38px; height: 34px; border: 1px solid #82413c; border-radius: 8px; background: #35191b; color: #ff8275; font: 700 12px "Bricolage Grotesque", sans-serif; }
#termsText .term-item h3 { margin: 2px 0 8px; color: #f0e9df; font-size: 17px; }
#termsText .term-item p, #termsText > p { margin: 0; color: #c9c0b6; line-height: 1.8; white-space: pre-line; }
#termsText > p { padding: 14px 0; }
@media (max-width: 520px) {
  #terms .legal-hero { padding: 32px 0 22px; }
  #terms .legal-title { align-items: flex-start; gap: 12px; }
  #terms .legal-mark { flex-basis: 44px; width: 44px; height: 44px; }
  #terms .legal-callout { padding: 13px; }
  #termsText .term-item { grid-template-columns: 34px minmax(0, 1fr); gap: 11px; padding: 18px 0; }
  #termsText .term-number { width: 32px; height: 30px; }
}

/* Espace de connexion joueur */
#login .login-hero { padding: 42px 0 30px; }
#login .login-hero h2 { margin: 0; font-size: clamp(30px, 4.5vw, 44px); }
#login .login-hero > p:last-child { max-width: 58ch; margin: 12px 0 0; }
.login-layout { display: grid; grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr); max-width: 900px; margin: 4px auto 0; overflow: hidden; border: 1px solid #493031; border-radius: 14px; background: #1d1415; box-shadow: 0 22px 60px #0003; }
.login-aside { display: flex; flex-direction: column; justify-content: center; min-height: 430px; padding: 34px; border-right: 1px solid #633536; background-color: #291718; background-image: linear-gradient(90deg, transparent 0 92%, rgba(226,59,54,.08) 92%), linear-gradient(0deg, transparent 0 92%, rgba(226,59,54,.08) 92%); background-size: 28px 28px; }
.login-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 26px; border: 1px solid #9b4540; border-radius: 12px; background: #3b1b1c; color: #fa665b; }
.login-icon .lucide { width: 28px; height: 28px; }
.login-aside .login-aside-label { margin: 0 0 8px; color: var(--ink); font: 700 21px/1.25 "Bricolage Grotesque", sans-serif; }
.login-aside > p:not(.login-aside-label) { margin: 0; line-height: 1.7; }
.login-aside-rule { display: flex; align-items: center; gap: 9px; margin-top: 30px; padding-top: 16px; border-top: 1px solid #633536; color: #d9c8bd; font-size: 12px; }
.login-aside-rule .lucide { color: #fa7568; }
#login .login-panel { align-self: center; width: 100%; max-width: 520px; margin: 0 auto; padding: clamp(24px, 4vw, 42px); border: 0; border-radius: 0; background: transparent; }
.auth-tabs { display: flex; gap: 8px; margin-bottom: 28px; padding: 4px; border: 1px solid #493031; border-radius: 10px; background: #171112; }
.auth-tabs .btn { min-height: 40px; border-color: transparent; border-radius: 7px; background: transparent; color: var(--mute); }
.auth-tabs .btn.main { border-color: #8e3835; background: #432020; color: #ffb1a6; }
#login .login-panel h3 { margin: 0 0 8px; font-size: 22px; }
#login .login-panel .note { margin: 0 0 20px; }
.auth-field { margin-top: 14px; }
.auth-field label { margin-bottom: 6px; color: #d2c6bd; font-size: 12px; }
.auth-field label span { color: var(--mute); font-weight: 400; }
.auth-field input,.auth-field select { width: 100%; min-height: 44px; border-radius: 8px; }
.auth-submit { margin: 22px 0 0; }
.auth-submit .btn { width: 100%; min-height: 46px; border-radius: 8px; }
.admin-access { max-width: 900px; margin: 18px auto 42px; color: #77716b; font-size: 11px; }
.admin-access summary { width: fit-content; cursor: pointer; list-style: none; opacity: .65; transition: opacity .15s, color .15s; }
.admin-access summary::-webkit-details-marker { display: none; }
.admin-access summary::before { content: "+"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 7px; border: 1px solid currentColor; border-radius: 50%; font-size: 11px; }
.admin-access[open] summary::before { content: "−"; }
.admin-access summary:hover,.admin-access[open] summary { color: #ba8179; opacity: 1; }
.admin-access #panel2 { max-width: 420px; margin-top: 14px; padding: 20px; border-radius: 11px; }
.admin-access #panel2 h3 { font-size: 17px; }
@media (max-width: 680px) {
  #login .login-hero { padding: 32px 0 24px; }
  .login-layout { grid-template-columns: 1fr; }
  .login-aside { min-height: auto; padding: 22px; border-right: 0; border-bottom: 1px solid #633536; }
  .login-icon { width: 46px; height: 46px; margin-bottom: 14px; }
  .login-aside-rule { margin-top: 17px; padding-top: 12px; }
  #login .login-panel { padding: 24px 20px; }
  .admin-access { margin-bottom: 30px; }
}

/* Transition à chaque arrivée dans une page, y compris au rafraîchissement */
.page-arrive { animation: page-arrive .48s cubic-bezier(.2,.75,.25,1) both; }
@keyframes page-arrive {
  from { opacity: 0; transform: translateY(12px); filter: blur(3px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .page-arrive { animation-duration: .01ms; }
}

/* Logo d'accueil : rotation au centre puis vol vers le hero */
.logo-intro { position: fixed; inset: 0; z-index: 30; pointer-events: none; background: radial-gradient(ellipse at center, rgba(18,8,10,.38), rgba(18,8,10,.14) 44%, transparent 76%); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.logo-intro img { position: absolute; left: 50%; top: 50%; width: 118px; height: 118px; object-fit: contain; transform: translate(-50%, -50%); filter: drop-shadow(0 0 22px rgba(226,59,54,.52)); }
@media (prefers-reduced-motion: reduce) {
  .logo-intro { display: none; }
}
