/* Vision — matte red and gold.
   Everything is class-based: the Content-Security-Policy blocks inline style attributes. */

:root {
  --bg: #0e0909;
  --bg-2: #130c0c;
  --surface: #181111;
  --surface-2: #201616;
  --red: #9a2b2e;
  --red-hover: #b1363a;
  --red-deep: #5c1a1d;
  --gold: #c9a24b;
  --gold-soft: #e3c985;
  --gold-dim: #8c7035;
  --text: #f2eadd;
  --muted: #aa9e8e;
  --line: rgba(201, 162, 75, 0.24);
  --line-soft: rgba(242, 234, 221, 0.09);
  --ok: #7bb886;
  --warn: #d8a052;
  --danger: #ea9396;
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: 'Syne', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
/* Matte finish: a faint film grain over everything. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
main { flex: 1; position: relative; }
a { color: var(--gold-soft); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--red); color: #fff; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: 0.88em; padding: 0.12em 0.45em; border-radius: 5px; background: rgba(201, 162, 75, 0.1); color: var(--gold-soft); }

.container { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(720px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.gold { color: var(--gold); }
.center { text-align: center; }
.mono { font-family: var(--font-mono); font-size: 0.85rem; }

/* ───────── Header ───────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14, 9, 9, 0.96);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; }
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 10px; transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.brand:hover img { transform: rotate(-6deg) scale(1.06); box-shadow: 0 0 22px rgba(201, 162, 75, 0.4); }
.nav-links { display: flex; gap: 0.4rem; align-items: center; }
.nav-links a:not(.btn) { color: var(--muted); font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0.85rem; border-radius: 999px; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); background: rgba(242, 234, 221, 0.06); }

/* ───────── Buttons ───────── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.55rem; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.95rem var(--font-body); cursor: pointer; text-align: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease), box-shadow 0.25s;
}
.btn::after { /* a slow gold glint that crosses the button on hover */
  content: ''; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(227, 201, 133, 0.28) 50%, transparent 70%);
  transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--red); color: #fff3e4; border-color: #b8484b; box-shadow: 0 10px 28px -12px rgba(154, 43, 46, 0.9); }
.btn-primary:hover { background: var(--red-hover); color: #fff; box-shadow: 0 14px 34px -10px rgba(177, 54, 58, 0.9), 0 0 0 1px rgba(201, 162, 75, 0.5); transform: translateY(-1px); }
.btn-gold { background: transparent; color: var(--gold-soft); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: #1a1208; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-soft); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(234, 147, 150, 0.35); }
.btn-danger:hover { background: rgba(154, 43, 46, 0.3); color: #ffc1c3; }
.btn-sm { padding: 0.42rem 1rem; font-size: 0.82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ───────── Hero ───────── */
.hero { position: relative; padding: 4.5rem 0 5.5rem; overflow: hidden; }
.hero::before { /* crimson glow behind the logo */
  content: ''; position: absolute; width: 900px; height: 900px; right: -260px; top: -240px; z-index: 0;
  background: radial-gradient(closest-side, rgba(154, 43, 46, 0.34), transparent 70%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 3rem; }
.hero-copy h1 { max-width: 11ch; }
.hero-copy .lead { max-width: 46ch; font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }
.hero-copy .cta { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-copy > * { animation: rise 0.8s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.12s; }
.hero-copy > :nth-child(3) { animation-delay: 0.24s; }

/* The orbit rig: rings draw themselves in on load, then drift. This is the one big moment on the page. */
.rig { position: relative; width: min(520px, 100%); aspect-ratio: 1; justify-self: center; }
.rig svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rig .core { position: absolute; inset: 20%; width: 60%; height: 60%; border-radius: 22%; box-shadow: 0 0 90px rgba(154, 43, 46, 0.55), 0 0 0 1px rgba(201, 162, 75, 0.25); animation: core-in 1.1s 0.6s var(--ease) both; }
.rig .draw { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) forwards; }
.rig .draw.d2 { stroke: var(--red); stroke-width: 1.4; animation-delay: 0.3s; }
.rig .draw.d3 { stroke: var(--gold-dim); animation-delay: 0.6s; }
.rig .hair { stroke: var(--gold-dim); stroke-width: 1; opacity: 0; animation: fade 1.6s 1.2s forwards; }
.rig .ticks { fill: none; stroke: var(--gold-dim); stroke-width: 9; stroke-dasharray: 1.2 15.9; transform-box: view-box; transform-origin: 50% 50%; opacity: 0; animation: fade 1.4s 0.8s forwards, spin 160s linear infinite; }
.rig .orbit { transform-box: view-box; transform-origin: 50% 50%; animation: spin 56s linear infinite; }
.rig .orbit.rev { animation-direction: reverse; animation-duration: 84s; }
.rig .orb { fill: url(#orb-grad); }
.rig .diamond { fill: var(--gold); opacity: 0; animation: fade 1s 1.8s forwards; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes core-in { from { opacity: 0; transform: scale(0.82) rotate(-8deg); } to { opacity: 1; transform: none; } }

/* ───────── Sections ───────── */
.section { padding: 4.5rem 0; }
.section-head { max-width: 760px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); margin: 0; }
.rule { height: 1px; border: 0; margin: 0; background: linear-gradient(90deg, transparent, var(--gold-dim), transparent); opacity: 0.55; }

/* How it works: a real sequence, so it is numbered and joined by a line. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; position: relative; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ''; position: absolute; left: 0; right: 0; top: 21px; height: 1px; background: linear-gradient(90deg, var(--gold-dim), var(--line-soft)); }
.steps li { position: relative; counter-increment: step; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--gold); color: var(--gold-soft); font: 700 1rem var(--font-display);
  transition: background 0.3s, color 0.3s;
}
.steps li:hover::before { background: var(--gold); color: #1a1208; }
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--muted); margin: 0; max-width: 32ch; }

/* Catalog rows */
.catalog { border-top: 1px solid var(--line-soft); }
.row {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 1.5rem;
  padding: 1.5rem 0.25rem; border-bottom: 1px solid var(--line-soft); position: relative; transition: background 0.25s;
}
.row::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.row:hover { background: linear-gradient(90deg, rgba(154, 43, 46, 0.12), transparent 70%); }
.row-main { display: flex; align-items: center; gap: 1rem; min-width: 0; transition: transform 0.25s var(--ease); }
.row:hover .row-main { transform: translateX(0.85rem); }
.row-thumb { flex: none; width: 112px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-soft); background: var(--bg-2); }
.row-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.row:hover::before { transform: scaleY(1); }
.row h3 { margin: 0 0 0.15em; font-size: 1.25rem; }
.row h3 a { color: var(--text); }
.row h3 a:hover { color: var(--gold-soft); }
.row .tagline { margin: 0; color: var(--muted); font-size: 0.95rem; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--gold-soft); letter-spacing: -0.01em; white-space: nowrap; }

.badge { display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 0.16rem 0.65rem; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.badge-ok { color: var(--ok); border-color: rgba(123, 184, 134, 0.4); }
.badge-out { color: var(--danger); border-color: rgba(234, 147, 150, 0.4); }
.badge-warn { color: var(--warn); border-color: rgba(216, 160, 82, 0.42); }
.badge-off { color: var(--muted); border-color: var(--line-soft); }
.badge-owner { color: var(--gold); border-color: var(--gold); background: rgba(201, 162, 75, 0.08); }
.badge-admin { color: var(--danger); border-color: rgba(234, 147, 150, 0.45); }
.badge-support { color: var(--muted); border-color: var(--line-soft); }

.empty { padding: 3.5rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.7rem; }
.card h3 { margin-bottom: 1rem; }

/* ───────── Product page ───────── */
.product-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; padding: 3.5rem 0 4rem; align-items: start; }
.back-link { display: inline-block; margin-bottom: 1.2rem; color: var(--muted); font-size: 0.92rem; }
.product-title { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 0.3em; }
.product-tagline { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.8rem; }
.prose { color: #d9cfc0; white-space: pre-line; max-width: 65ch; }
.buy-box { position: sticky; top: 94px; border-color: var(--line); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(154, 43, 46, 0.8); }
.buy-box .price { font-size: 2.4rem; display: block; }
.buy-box .stock { margin: 0.5rem 0 1.4rem; }
.buy-box .hint { margin-top: 0.8rem; }
.perks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.55rem; color: var(--muted); font-size: 0.92rem; }
.perks li { display: flex; gap: 0.6rem; align-items: baseline; }
.perks li::before { content: ''; flex: none; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg) translateY(-1px); }

/* ───────── Forms ───────── */
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--muted); margin: 0 0 0.4rem; }
input[type='text'], input[type='number'], input[type='email'], input[type='password'], input[type='url'],
input[type='search'], input[type='tel'], input[type='datetime-local'], input[type='date'], textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem; font: 1rem var(--font-body); transition: border-color 0.15s, box-shadow 0.15s;
}
/* L'autofill du navigateur ne doit pas repasser le champ en blanc. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 1000px var(--bg-2) inset; caret-color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.16); }
textarea { min-height: 140px; resize: vertical; }
textarea.mono { font-family: var(--font-mono); font-size: 0.9rem; }
.field { margin-bottom: 1.2rem; }
.hint { font-size: 0.83rem; color: var(--muted); margin-top: 0.35rem; }
.check { display: flex; align-items: center; gap: 0.6rem; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.check label { margin: 0; font-size: 0.95rem; color: var(--text); font-weight: 500; }
.form-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* Access options editor (product form) */
.form-subhead { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.3rem; }
.option-presets { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 1rem; }
.options-editor { display: flex; flex-direction: column; gap: 0.9rem; }
.option-row { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 1rem 1.1rem; }
.option-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
.option-title { font-family: var(--font-display); color: var(--gold-soft); font-size: 0.95rem; }
.option-grid { display: grid; grid-template-columns: 2fr 0.8fr 1.1fr 1fr; gap: 0.8rem; align-items: end; }
.option-grid label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.78rem; color: var(--muted); font-weight: 500; margin: 0; }
.option-row.is-lifetime .option-grid label:nth-child(2) { opacity: 0.4; }
.link-danger { background: none; border: none; color: var(--red-hover); font: 500 0.85rem var(--font-body); cursor: pointer; padding: 0; }
.link-danger:hover { color: #d2575b; text-decoration: underline; }
@media (max-width: 680px) { .option-grid { grid-template-columns: 1fr 1fr; } }

.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1.4rem; font-size: 0.94rem; border: 1px solid; }
.alert-ok { background: rgba(123, 184, 134, 0.1); border-color: rgba(123, 184, 134, 0.35); color: #acdbb5; }
.alert-err { background: rgba(154, 43, 46, 0.22); border-color: rgba(234, 147, 150, 0.4); color: #f5b6b8; }
.alert-warn { background: rgba(216, 160, 82, 0.1); border-color: rgba(216, 160, 82, 0.35); color: #e8c590; }
.flash { padding-top: 1.4rem; }

/* Key display */
.keybox {
  font-family: var(--font-mono); font-size: clamp(1rem, 3.4vw, 1.35rem); letter-spacing: 0.05em; text-align: center;
  padding: 1.3rem 1rem; border: 1px dashed var(--gold); border-radius: var(--radius-sm); background: rgba(201, 162, 75, 0.06);
  color: var(--gold-soft); word-break: break-all; user-select: all;
}
.order-head { margin-bottom: 2rem; }
.order-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 1rem 0 0.3em; }
.key-actions { margin: 1rem 0 0; text-align: center; }
.key-note { margin: 1.4rem 0 0; }

/* ───────── FAQ ───────── */
.faq-head h1, .page-h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
details { border-bottom: 1px solid var(--line-soft); padding: 1.15rem 0.25rem; }
details:first-of-type { border-top: 1px solid var(--line-soft); }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: color 0.15s; }
summary:hover { color: var(--gold-soft); }
summary::after { content: ''; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
summary::-webkit-details-marker { display: none; }
details p { margin: 0.9rem 0 0; color: var(--muted); max-width: 60ch; }
details ul { margin: 0.7rem 0 0; padding-left: 1.2rem; color: var(--muted); max-width: 62ch; }
details li { margin: 0.45rem 0; }
details[open] p { animation: rise 0.4s var(--ease); }

.terms h3 { margin-top: 2rem; margin-bottom: 0.35em; }
.terms p { color: var(--muted); }

/* ───────── Footer ───────── */
.site-footer { border-top: 1px solid var(--line-soft); padding: 2.4rem 0; margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold-soft); }

/* ───────── Admin ───────── */
.admin-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 2.4rem; padding: 2.5rem 0 4rem; align-items: start; }
.admin-nav { position: sticky; top: 94px; display: flex; flex-direction: column; gap: 0.2rem; }
.admin-nav a { padding: 0.62rem 0.9rem; border-radius: var(--radius-sm); color: var(--muted); font-size: 0.95rem; font-weight: 500; border-left: 2px solid transparent; }
.admin-nav a:hover { color: var(--text); background: rgba(242, 234, 221, 0.05); }
.admin-nav a.active { color: var(--gold-soft); background: var(--surface-2); border-left-color: var(--gold); }
.admin-nav form { margin-top: 0.8rem; }
.admin-nav .btn { width: 100%; }
.whoami { margin: 1.2rem 0 0; padding: 0.9rem; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); font-size: 0.85rem; color: var(--muted); }
.whoami strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 0.35rem; word-break: break-word; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 1.1rem 1.2rem; transition: border-color 0.2s; }
.stat:hover { border-color: var(--line); }
.stat .n { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--gold-soft); line-height: 1.2; }
.stat .l { font-size: 0.85rem; color: var(--muted); }
.page-title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.page-title h2 { margin: 0; }
.section-title { margin: 2rem 0 1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.table-wrap.spaced, .spaced-card { margin-bottom: 2rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: 0.82rem; color: var(--muted); font-weight: 600; background: var(--bg-2); white-space: nowrap; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(242, 234, 221, 0.025); }
tr:last-child td { border-bottom: 0; }
td.mono { font-family: var(--font-mono); font-size: 0.84rem; }
td.actions > .btn, td.actions > form { margin: 0.15rem 0.4rem 0.15rem 0; vertical-align: middle; }
td form { display: inline; margin: 0; }
.slug { display: block; font-size: 0.8rem; color: var(--muted); }
.login-card { max-width: 440px; margin: 5rem auto; text-align: center; }
.login-card img { width: 72px; height: 72px; margin: 0 auto 1.2rem; border-radius: 18px; box-shadow: 0 0 40px rgba(154, 43, 46, 0.5); }
.login-card h2 { margin-bottom: 0.3em; }
.login-card p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.two-col.spaced { margin-bottom: 2rem; }
.stock-line { margin-bottom: 1.4rem; }

@media (max-width: 900px) {
  .hero { padding: 3rem 0 4rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .rig { width: min(380px, 86%); order: -1; }
  .hero-copy h1 { max-width: none; }
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
  .buy-box { position: static; }
  .admin-wrap { grid-template-columns: 1fr; gap: 1.4rem; }
  .admin-nav { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav form { margin-top: 0; }
  .admin-nav .btn { width: auto; }
  .whoami { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before { top: 0; bottom: 0; left: 21px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--gold-dim), var(--line-soft)); }
  .steps li { padding: 0 0 0 3.6rem; min-height: 42px; }
}
@media (max-width: 640px) {
  .row { grid-template-columns: 1fr auto; gap: 0.8rem 1rem; }
  .row .badge { justify-self: start; grid-row: 2; grid-column: 1; }
  .row .price { grid-row: 1; grid-column: 2; }
  .row .btn { grid-row: 3; grid-column: 1 / -1; }
  .nav-links a:not(.btn):not(.keep) { display: none; }
  .section { padding: 3.2rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rig .draw { stroke-dashoffset: 0; }
  .rig .hair, .rig .ticks, .rig .diamond, .rig .core, .hero-copy > * { opacity: 1; }
}

/* ───────── Help menu, reviews, tickets, account ───────── */
details.menu { position: relative; border: 0; padding: 0; }
.menu summary { display: inline-block; cursor: pointer; list-style: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0.85rem; border-radius: 999px; }
.menu summary::after { display: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { color: var(--text); background: rgba(242, 234, 221, 0.06); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); z-index: 40; min-width: 210px; padding: 0.4rem; display: grid; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9); animation: rise 0.25s var(--ease); }
.menu-panel a { padding: 0.6rem 0.8rem; border-radius: var(--radius-sm); color: var(--text); font-size: 0.93rem; }
.menu-panel a:hover { background: rgba(201, 162, 75, 0.12); color: var(--gold-soft); }
.nav-links { flex-wrap: nowrap; }

.stars { color: var(--gold); letter-spacing: 0.08em; white-space: nowrap; }
.rating-line { margin: 0 0 1.6rem; }
.rating-line a { color: var(--text); }
.rating-summary { font-size: 1.15rem; color: var(--text); }
.reviews-title { margin-top: 3rem; font-size: 1.4rem; }
.narrow-wide { width: min(820px, 100% - 2.5rem); }
.review-list { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.review { padding: 1.3rem 1.4rem; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.review-head { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.5rem; font-size: 0.9rem; }
.review-body { margin: 0 0 0.8rem; white-space: pre-line; color: #dcd2c3; }
.review-by { margin: 0; font-size: 0.92rem; }

.rating-field { border: 0; padding: 0; margin-inline: 0; min-width: 0; }
.rating-field legend { font-size: 0.88rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 0.5rem; }
.rating-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rating-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-options label { margin: 0; padding: 0.55rem 1rem; border: 1px solid var(--line-soft); border-radius: 999px; cursor: pointer; color: var(--muted); font-weight: 600; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.rating-options label:hover { border-color: var(--gold); color: var(--gold-soft); }
.rating-options input:checked + label { background: var(--gold); border-color: var(--gold); color: #1a1208; }
.rating-options input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 3px; }

.help-list { border-top: 1px solid var(--line-soft); }
.help-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0.25rem; border-bottom: 1px solid var(--line-soft); color: var(--text); transition: background 0.25s, padding 0.25s var(--ease); }
.help-row > span:first-child { display: grid; gap: 0.2rem; }
.help-row:hover { background: linear-gradient(90deg, rgba(154, 43, 46, 0.12), transparent 70%); padding-left: 1.1rem; color: var(--text); }
.help-go { color: var(--gold); font-size: 1.3rem; transition: transform 0.25s var(--ease); }
.help-row:hover .help-go { transform: translateX(4px); }

.account-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0; }
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.key-text { margin-right: 0.5rem; word-break: break-all; }
.promo-field { margin-bottom: 1rem; }
.promo-field input:not(:placeholder-shown) { text-transform: uppercase; }

.ticket-head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem 1rem; margin-bottom: 0.4rem; }
.ticket-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.thread { display: grid; gap: 0.9rem; margin: 1.6rem 0; }
.msg { padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line-soft); background: var(--surface); max-width: 92%; }
.msg-staff { background: linear-gradient(180deg, rgba(154, 43, 46, 0.2), rgba(154, 43, 46, 0.1)); border-color: rgba(234, 147, 150, 0.25); justify-self: end; }
.msg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; margin-bottom: 0.4rem; font-size: 0.88rem; }
.msg-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.close-form { margin-top: 1rem; }
.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.chip { padding: 0.4rem 1rem; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.active { color: #1a1208; background: var(--gold); border-color: var(--gold); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 0.3rem; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.75rem; font-weight: 700; }
.review-cell { max-width: 340px; white-space: pre-line; overflow-wrap: anywhere; }
.stars-cell { white-space: nowrap; }

@media (max-width: 900px) {
  .stats-3 { grid-template-columns: repeat(3, 1fr); }
  .msg { max-width: 100%; }
}
@media (max-width: 640px) {
  .nav-links > a:not(.btn):not(.keep) { display: none; }
  .menu-panel { right: -3rem; }
  .stats-3 { grid-template-columns: 1fr; }
}

/* ───────────── Authentification (connexion, inscription, vérification) ───────────── */
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.login-links { margin-top: 18px; text-align: center; font-size: .9rem; }
.login-links a { color: var(--gold-soft); }
.resend-form { margin-top: 10px; }
.check-row { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px; color: var(--muted); font-size: .9rem; }
.check-row input { width: auto; }

/* ───────────── Admin : clés, HWID, téléchargements ───────────── */
.tabs { display: flex; gap: 6px; margin: 0 0 18px; flex-wrap: wrap; }
.tabs a { padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); color: var(--muted); font-size: .9rem; }
.tabs a.active { border-color: var(--gold-dim); color: var(--gold-soft); background: var(--surface-2); }
.bulk-card { margin-bottom: 18px; }
.bulk-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bulk-row input[type="number"] { width: 90px; }
.bulk-row select { width: auto; }
.key-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.key-actions form { display: inline-flex; margin: 0; }
.inline-expiry { display: inline-flex; gap: 4px; align-items: center; }
.inline-expiry input[type="number"] { width: 64px; }
.inline-expiry select { width: auto; }
.redeem-card { margin-bottom: 8px; }
.redeem-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.redeem-row input { flex: 1; min-width: 220px; }

/* ───────────── Boutique : bannière, statut, panier, parrainage ───────────── */
.announce { margin: 12px 0 0; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); font-size: .92rem; text-align: center; }
.announce-info { background: rgba(90,166,216,.12); border-color: rgba(90,166,216,.4); color: #cfe6f5; }
.announce-ok { background: rgba(123,184,134,.12); border-color: rgba(123,184,134,.4); color: #cfe9d3; }
.announce-warn { background: rgba(216,160,82,.12); border-color: rgba(216,160,82,.4); color: #f0d8b0; }
.status-line { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.price .from { font-size: .7em; color: var(--muted); font-weight: 500; }
.add-cart-form { margin-top: 8px; }
.cart-total { text-align: right; font-size: 1.05rem; margin: 14px 0; }
.clear-cart-form { margin-top: 10px; }
.check-result { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.referral-card { margin: 8px 0 18px; }
.referral-stats { margin: 14px 0; }
.status-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-form select, .status-form input { width: auto; }
.status-form input[type="text"] { flex: 1; min-width: 160px; }

/* ───────────── Places (slots) ───────────── */
.slots-line { font-size: .85rem; color: var(--gold-soft); margin: 6px 0 0; font-weight: 600; }
.slots-urgent { color: var(--danger); animation: slotpulse 1.6s ease-in-out infinite; }
@keyframes slotpulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.buy-box .slots-line { margin: 8px 0 0; font-size: .95rem; }

/* ───────────── Bouton rôle staff ───────────── */
.role-btn { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; border: 1px solid var(--gold); }
.role-owner { color: #f6e2a8; border-color: var(--gold); background: rgba(201, 162, 75, 0.14); }
.role-admin { color: #cfe6f5; border-color: #5aa6d8; background: rgba(90, 166, 216, 0.14); }
.role-support { color: #cfe9d3; border-color: var(--ok); background: rgba(123, 184, 134, 0.14); }

/* ── Product status dot (classes: inline styles are blocked by the CSP) ── */
.status-dot.status-undetected { background: #7bb886; }
.status-dot.status-updating { background: #d8a052; }
.status-dot.status-maintenance { background: #5aa6d8; }
.status-dot.status-down, .status-dot.status-detected { background: #ea9396; }

/* ── Product images ── */
.countdown { margin: 0.7rem 0 0; color: var(--gold-soft); font-weight: 600; font-variant-numeric: tabular-nums; }
.gallery { margin: 0 0 1.6rem; }
.gallery-main { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); background: var(--bg-2); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.7rem; overflow-x: auto; padding-bottom: 0.2rem; }
.gallery-thumb { flex: none; width: 88px; height: 56px; padding: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-soft); background: var(--bg-2); cursor: pointer; opacity: 0.7; transition: opacity 0.15s, border-color 0.15s; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumb:hover, .gallery-thumb.is-active { opacity: 1; border-color: var(--gold); }

/* ── Admin: images ── */
.spaced-top { margin-top: 1.6rem; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.8rem; margin: 0.6rem 0 1rem; }
.image-grid:empty { display: none; }
.image-tile { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.image-tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; display: block; background: var(--bg-2); }
.image-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; padding: 0.5rem; }
.image-upload { display: grid; gap: 0.6rem; justify-items: start; }
input[type="file"] { display: block; width: 100%; padding: 0.55rem; color: var(--muted); font: inherit; font-size: 0.9rem; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--bg-2); cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 0.9rem; padding: 0.42rem 1rem; border: 1px solid var(--gold-dim); border-radius: 999px; background: transparent; color: var(--gold-soft); font: inherit; font-weight: 600; cursor: pointer; }
.is-busy { opacity: 0.6; pointer-events: none; }

@media (max-width: 640px) {
  .row-thumb { width: 72px; }
  .row-main { gap: 0.75rem; }
  .row:hover .row-main { transform: none; }
}

.image-tile { position: relative; }
#image-order .image-tile { cursor: grab; }
#image-order .image-tile.is-dragging { opacity: 0.45; outline: 2px dashed var(--gold); }
.image-pos { position: absolute; top: 0.4rem; left: 0.4rem; min-width: 1.6rem; height: 1.6rem; padding: 0 0.4rem; display: grid; place-items: center; border-radius: 999px; background: rgba(14, 9, 9, 0.85); color: var(--gold-soft); font-size: 0.8rem; font-weight: 700; }
.image-actions form { margin: 0; }

/* ───────── Statut produit, bannière, fil d'Ariane et motion ───────── */

/* Statut sur la page produit : lisible d'un coup d'œil, et toujours présent
   (un produit sans ligne en base retombe sur le statut par défaut). */
.status-block {
  display: flex; align-items: flex-start; gap: 0.7rem;
  margin: 0 0 1rem; padding: 0.75rem 0.9rem;
  border: 1px solid var(--line-soft); border-left-width: 3px;
  border-radius: var(--radius-sm); background: var(--bg-2);
}
.status-block .status-dot { margin-top: 0.42rem; flex: none; }
.status-block-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.status-block-label { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.01em; }
.status-block-desc { font-size: 0.86rem; color: var(--muted); }
.status-block-time { font-size: 0.76rem; color: var(--muted); opacity: 0.75; }
.status-is-undetected { border-left-color: var(--ok); }
.status-is-updating { border-left-color: var(--warn); }
.status-is-maintenance { border-left-color: #5aa6d8; }
.status-is-down, .status-is-detected { border-left-color: var(--danger); }
/* Le point respire doucement : on voit que l'information est vivante, sans clignotement. */
.status-block .status-dot { animation: status-pulse 2.8s var(--ease) infinite; }
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.22); }
  50% { box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}

/* Bannière : un lien optionnel, et un reflet qui passe lentement. */
.announce {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem 1rem; flex-wrap: wrap;
  animation: announce-in 0.5s var(--ease) both;
}
.announce-text { position: relative; }
.announce-sheen {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 38%, rgba(242, 234, 221, 0.12) 50%, transparent 62%);
  transform: translateX(-100%);
  animation: announce-sheen 7s var(--ease) 1.2s infinite;
}
.announce-cta {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.22rem 0.7rem; border-radius: 999px;
  border: 1px solid currentColor; font-weight: 600; font-size: 0.86rem;
  text-decoration: none; color: inherit;
  transition: background-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.announce-cta:hover, .announce-cta:focus-visible { background: rgba(242, 234, 221, 0.1); transform: translateY(-1px); }
.announce-arrow { transition: transform 0.18s var(--ease); }
.announce-cta:hover .announce-arrow { transform: translateX(3px); }
@keyframes announce-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes announce-sheen { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* Fil d'Ariane : il reprend le BreadcrumbList envoyé aux moteurs de recherche. */
.crumbs { margin: 0 0 0.9rem; font-size: 0.86rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover, .crumbs a:focus-visible { color: var(--gold-soft); }
.crumbs [aria-current='page'] { color: var(--text); }

.prose-title { font-family: var(--font-display); font-size: 1.15rem; margin: 1.6rem 0 0.6rem; }

/* Apparition au défilement : la classe est posée par app.js, donc rien ne disparaît
   si le JavaScript ne tourne pas. Seuls opacity et transform sont animés. */
.reveal-ready .reveal { opacity: 0; transform: translateY(14px); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal-ready .reveal-stagger > * { opacity: 0; transform: translateY(14px); }
.reveal-ready .reveal-stagger.is-in > * { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal-ready .reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.07s; }
.reveal-ready .reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.14s; }
.reveal-ready .reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.21s; }

/* Micro-interactions : les boutons répondent au survol (les cartes s'inclinent en 3D, plus bas). */
.row { transition: border-color 0.18s var(--ease); }
.row:hover { border-color: var(--line); }
.btn { transition: transform 0.15s var(--ease), background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease); }
.btn:hover:not([disabled]) { transform: translateY(-1px); }
.btn:active:not([disabled]) { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .announce, .announce-sheen, .status-block .status-dot { animation: none !important; }
  .announce-sheen { display: none; }
  .reveal-ready .reveal, .reveal-ready .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ───────── 3D : héros en perspective, cartes et galerie inclinables ─────────
   Les angles (--rx, --ry) et la position du reflet (--gx, --gy) sont posés par app.js via le CSSOM,
   que la CSP autorise (elle bloque seulement les attributs style=""). Les mouvements d'attente passent
   par les propriétés individuelles translate/rotate, qui se composent avec transform au lieu de l'écraser. */
.rig { perspective: 1100px; }
.rig-stage {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.9s var(--ease);
  animation: stage-float 11s ease-in-out infinite;
}
.rig.is-tilting .rig-stage { transition: transform 0.12s linear; }
@keyframes stage-float {
  0%, 100% { translate: 0 0; rotate: y -7deg; }
  50% { translate: 0 -12px; rotate: y 7deg; }
}
.rig-stage > svg { transform: translateZ(0); }
.rig .core { translate: 0 0 70px; }
/* En 3D, Chromium découpe un box-shadow sur la boîte carrée de l'élément au lieu de suivre ses coins arrondis :
   l'ombre rouge du logo devient un dégradé radial juste derrière lui, et le liseré doré un outline, qui suit l'arrondi. */
.rig-stage .core { box-shadow: none; outline: 1px solid rgba(201, 162, 75, 0.28); }
.rig-glow {
  inset: 12%; border-radius: 50%; translate: 0 0 30px;
  background: radial-gradient(circle, rgba(154, 43, 46, 0.62) 22%, rgba(154, 43, 46, 0) 68%);
}
.rig-depth { position: absolute; pointer-events: none; }
/* Halo rouge loin derrière le logo : il donne la profondeur quand la scène pivote. */
.rig-halo {
  inset: 10%; border-radius: 50%; translate: 0 0 -140px;
  background: radial-gradient(circle, rgba(154, 43, 46, 0.5), rgba(154, 43, 46, 0) 66%);
  filter: blur(6px);
}
/* Anneau incliné qui orbite autour du logo, comme celui d'une planète. */
.rig-ring3d {
  inset: 4%; border-radius: 50%; transform-style: preserve-3d;
  border: 1.5px solid rgba(201, 162, 75, 0.55);
  box-shadow: 0 0 26px rgba(201, 162, 75, 0.18), inset 0 0 26px rgba(201, 162, 75, 0.12);
  transform: rotateX(72deg); /* inclinaison de base, gardée même sans animation */
  animation: ring-spin 18s linear infinite;
}
@keyframes ring-spin { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }
/* La perle tourne avec l'anneau mais se contre-tourne pour rester face à l'écran (même durée, même cadence). */
.rig-ring3d-orb {
  position: absolute; top: -7px; left: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #f6e2a8, #c9a24b 55%, #6b4f1c);
  box-shadow: 0 0 16px rgba(246, 226, 168, 0.85);
  transform: rotateX(-72deg);
  animation: orb-face 18s linear infinite;
}
@keyframes orb-face { from { transform: rotateZ(0deg) rotateX(-72deg); } to { transform: rotateZ(-360deg) rotateX(-72deg); } }
/* Éclats dorés à des profondeurs différentes : la parallaxe se voit dès que la scène bouge. */
.rig-chip { width: 10px; height: 10px; background: var(--gold); rotate: 45deg; box-shadow: 0 0 14px rgba(201, 162, 75, 0.6); opacity: 0.85; }
.rig-chip.c1 { top: 13%; left: 11%; animation: chip-1 6s ease-in-out infinite; }
.rig-chip.c2 { bottom: 17%; right: 9%; width: 7px; height: 7px; background: var(--red-hover); animation: chip-2 7s ease-in-out infinite; }
.rig-chip.c3 { top: 21%; right: 17%; width: 6px; height: 6px; animation: chip-3 8s ease-in-out infinite; }
@keyframes chip-1 { 0%, 100% { translate: 0 0 120px; } 50% { translate: 0 -12px 120px; } }
@keyframes chip-2 { 0%, 100% { translate: 0 0 60px; } 50% { translate: 0 10px 60px; } }
@keyframes chip-3 { 0%, 100% { translate: 0 0 160px; } 50% { translate: 0 -8px 160px; } }

/* Cartes produit et image principale : inclinaison qui suit le pointeur, avec un reflet de lumière. */
[data-tilt="card"] {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.5s var(--ease), border-color 0.18s var(--ease);
}
[data-tilt="card"].is-tilting { --lift: -3px; transition: transform 0.1s linear, border-color 0.18s var(--ease); }
[data-tilt="card"]::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(242, 234, 221, 0.1), transparent 46%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
[data-tilt="card"].is-tilting::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .rig-stage, .rig-ring3d, .rig-ring3d-orb, .rig-chip { animation: none !important; }
  .rig-stage, [data-tilt="card"] { transform: none !important; }
}

/* ───────── Bannière : bordure dégradée qui tourne, ton Promo, étiquette ─────────
   La bordure est un dégradé conique en border-box sous deux couches en padding-box : la teinte du ton,
   puis le fond de page opaque (sinon le dégradé transparaîtrait sous une teinte semi-transparente).
   L'angle est une propriété enregistrée (@property) pour pouvoir l'animer ; un navigateur qui ne la
   connaît pas garde simplement une bordure dégradée fixe. */
@property --announce-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.announce {
  --fill: linear-gradient(rgba(90, 166, 216, 0.12), rgba(90, 166, 216, 0.12));
  --edge: rgba(120, 186, 232, 0.85);
  border: 1px solid transparent;
  background:
    var(--fill) padding-box,
    linear-gradient(var(--bg), var(--bg)) padding-box,
    conic-gradient(from var(--announce-angle), var(--edge), rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 48%,
      var(--edge) 60%, rgba(255, 255, 255, 0) 82%, var(--edge)) border-box;
  box-shadow: 0 10px 28px -18px var(--edge);
  padding: 11px 18px;
  animation: announce-in 0.5s var(--ease) both, announce-edge 7s linear infinite;
}
@keyframes announce-edge { to { --announce-angle: 360deg; } }
.announce-info { color: #cfe6f5; }
.announce-ok { --fill: linear-gradient(rgba(123, 184, 134, 0.12), rgba(123, 184, 134, 0.12)); --edge: rgba(143, 204, 154, 0.85); color: #cfe9d3; }
.announce-warn { --fill: linear-gradient(rgba(216, 160, 82, 0.13), rgba(216, 160, 82, 0.13)); --edge: rgba(232, 178, 98, 0.9); color: #f0d8b0; }
.announce-promo {
  --fill: linear-gradient(100deg, rgba(154, 43, 46, 0.42), rgba(92, 26, 29, 0.3) 45%, rgba(201, 162, 75, 0.22));
  --edge: rgba(227, 201, 133, 0.95);
  color: var(--text); font-weight: 500;
}
.announce-promo .announce-cta { background: var(--gold); border-color: var(--gold); color: #160d0d; }
.announce-promo .announce-cta:hover, .announce-promo .announce-cta:focus-visible { background: var(--gold-soft); }
.announce-badge {
  position: relative; flex: none;
  padding: 0.14rem 0.6rem; border-radius: 999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--edge); color: #160d0d;
  animation: badge-pop 0.6s 0.35s var(--ease) both;
}
@keyframes badge-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }

/* Pastille de statut sous le nom du produit : lisible dès l'arrivée, même sur mobile où la zone d'achat
   (et son bloc de statut détaillé) passe sous la description. */
.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; margin: 0.2rem 0 0.9rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--bg-2);
  font-size: 0.86rem; font-weight: 600;
}
.status-pill-desc { font-weight: 400; color: var(--muted); }
.status-pill.status-is-undetected { border-color: rgba(123, 184, 134, 0.45); }
.status-pill.status-is-updating { border-color: rgba(216, 160, 82, 0.5); }
.status-pill.status-is-maintenance { border-color: rgba(90, 166, 216, 0.5); }
.status-pill.status-is-down, .status-pill.status-is-detected { border-color: rgba(234, 147, 150, 0.5); }
.status-pill .status-dot { animation: status-pulse 2.8s var(--ease) infinite; }
@media (max-width: 640px) { .status-pill-desc { display: none; } }

/* Admin › Downloads : état des annonces Discord. */
.announce-status { margin: 1rem 0 1.4rem; }
.announce-status p { margin: 0; }
.announce-status .inline-form { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
