/* Ginza — direction artistique « Solaris » : nuit, or, verre. */
:root {
  --bg0: #07080d;
  --bg1: #0d1020;
  --gold: #e8c46a;
  --gold-hi: #fff1c2;
  --gold-deep: #9a7a2e;
  --text: #e9e4d6;
  --muted: #9a968b;
  --glass: rgba(255, 255, 255, 0.03);
  --line: rgba(232, 196, 106, 0.2);
  --line-hi: rgba(232, 196, 106, 0.55);
  --ok: #9ad4a6;
  --warn: #f0b35a;
  --bad: #e5737a;
  --serif: 'Cinzel', 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bv: 8px;
  --nav-h: 58px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg0) linear-gradient(165deg, #07080d 0%, #0a0d19 45%, #0d1020 100%);
  color: var(--text);
  font: 15px/1.6 var(--sans);
  overflow-x: clip;
}
img { max-width: 100%; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
button { font: inherit; color: inherit; }
code { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 0.92em; color: var(--gold-hi); background: rgba(232, 196, 106, 0.1); padding: 1px 6px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.serif { font-family: var(--serif); letter-spacing: 0.06em; }
.label { font: 600 11px/1.4 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Fond ---------- */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-halo {
  position: absolute; top: -32vh; left: -24vw; width: 95vw; height: 95vh; min-width: 520px; min-height: 520px;
  background: radial-gradient(closest-side, rgba(232, 196, 106, 0.26), rgba(232, 196, 106, 0.08) 42%, transparent 72%);
  filter: blur(38px);
}
.bg-rays {
  position: absolute; inset: -45%;
  background: repeating-linear-gradient(112deg, transparent 0 150px, rgba(255, 238, 190, 0.04) 150px 196px, transparent 196px 430px);
  filter: blur(26px);
  animation: rays 46s ease-in-out infinite alternate;
}
.bg-stars {
  position: absolute; inset: 0; opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 241, 194, 0.7), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 12%, rgba(255, 241, 194, 0.55), transparent 60%),
    radial-gradient(1px 1px at 64% 42%, rgba(255, 241, 194, 0.5), transparent 60%),
    radial-gradient(1.4px 1.4px at 30% 70%, rgba(255, 241, 194, 0.45), transparent 60%),
    radial-gradient(1px 1px at 88% 66%, rgba(255, 241, 194, 0.5), transparent 60%),
    radial-gradient(1px 1px at 45% 88%, rgba(255, 241, 194, 0.4), transparent 60%),
    radial-gradient(1.2px 1.2px at 8% 52%, rgba(255, 241, 194, 0.4), transparent 60%);
}
.bg-grain {
  position: absolute; inset: 0; opacity: 0.055; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
@keyframes rays { from { transform: translateX(-4%) rotate(0.001deg); } to { transform: translateX(4%) rotate(0.001deg); } }

/* ---------- Mise en page ---------- */
.container { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: calc(var(--nav-h) + 48px) 0 60px; }
.page { display: none; }
.page.on { display: block; animation: fadeup 0.4s ease both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sec-head { text-align: center; margin: 0 auto 34px; max-width: 760px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 40px); margin-top: 10px; color: var(--gold-hi); text-shadow: 0 0 24px rgba(232, 196, 106, 0.25); }
.sec-sub { color: var(--muted); margin-top: 14px; }
.rule { height: 1px; border: 0; margin: 26px 0; background: linear-gradient(90deg, transparent, rgba(232, 196, 106, 0.6), transparent); }
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px auto; max-width: 420px; color: var(--gold); }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 196, 106, 0.7)); }
.ornament span:last-child { background: linear-gradient(90deg, rgba(232, 196, 106, 0.7), transparent); }
.ornament i { font-style: normal; font-size: 10px; text-shadow: 0 0 10px rgba(232, 196, 106, 0.8); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 100;
  /* min-height FIXE : --nav-h est mesurée par app.js (hauteur réelle) et ne sert qu'au contenu,
     sinon une hauteur transitoire (menu sur deux lignes) deviendrait un plancher définitif. */
  width: min(1180px, calc(100% - 24px)); min-height: 58px;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px 7px 18px;
  background: rgba(9, 10, 18, 0.74);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 241, 194, 0.06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-hi); font: 700 17px/1 var(--serif); letter-spacing: 0.34em; margin-right: 6px; }
.brand-mark { font-size: 9px; color: var(--gold); text-shadow: 0 0 10px rgba(232, 196, 106, 0.9); }
.brand-text { background: linear-gradient(180deg, #fff6dc, #f1d27a 55%, #c9a24a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 8px;
  color: var(--muted); font: 600 11.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav-links a.active { color: var(--gold-hi); background: rgba(232, 196, 106, 0.07); text-shadow: 0 0 12px rgba(243, 207, 122, 0.35); }
.nav-links a[hidden] { display: none; }
.ico { position: relative; width: 20px; height: 20px; display: inline-grid; place-items: center; color: #aeaba3; transition: color 0.3s, filter 0.3s; }
.ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; position: relative; z-index: 1; }
.ico::before {
  content: ""; position: absolute; inset: -8px; border-radius: 50%; z-index: 0; opacity: 0; transform: scale(0.6);
  background: radial-gradient(circle, rgba(255, 241, 194, 0.7), rgba(232, 184, 74, 0.28) 42%, transparent 70%);
  transition: opacity 0.35s, transform 0.35s;
}
.nav-links a.active .ico { color: var(--gold-hi); filter: drop-shadow(0 0 5px rgba(243, 207, 122, 0.95)) drop-shadow(0 0 12px rgba(232, 184, 74, 0.5)); }
.nav-links a.active .ico::before { opacity: 1; transform: scale(1); animation: pastille 2.6s ease-in-out infinite; }
@keyframes pastille { 0%, 100% { transform: scale(1); opacity: 0.85; } 50% { transform: scale(1.18); opacity: 1; } }
/* Étincelles de l'onglet actif (toujours animées, même avec les animations système réduites) */
.sparks { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.sparks i {
  position: absolute; left: 50%; bottom: 40%; width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-hi); box-shadow: 0 0 6px 1px rgba(243, 207, 122, 0.9); opacity: 0;
}
.nav-links a.active .sparks i { animation: spark 1.9s ease-out infinite; }
.sparks i:nth-child(1) { --dx: -9px; animation-delay: 0s; }
.sparks i:nth-child(2) { --dx: 7px; animation-delay: 0.45s; width: 2px; height: 2px; }
.sparks i:nth-child(3) { --dx: -3px; animation-delay: 0.9s; }
.sparks i:nth-child(4) { --dx: 11px; animation-delay: 1.25s; width: 2px; height: 2px; }
.sparks i:nth-child(5) { --dx: 2px; animation-delay: 1.55s; }
@keyframes spark {
  0% { transform: translate(-50%, 0) scale(0.5); opacity: 0; }
  18% { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), -24px) scale(0); opacity: 0; }
}
.cart-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 100px; display: inline-grid; place-items: center; background: linear-gradient(180deg, #f1d27a, #c9a24a); color: #1b1505; font-size: 10.5px; font-weight: 700; letter-spacing: 0; }
.cart-badge[hidden] { display: none; }
/* Fil lumineux doré (nav-wave.js) : couleurs via variables sur .nav-links */
.nav-links {
  --nav-wave-glow: #f3cf7a; --nav-wave-core: #fff6dc; --nav-wave-fringe-a: #ff9f43; --nav-wave-fringe-b: #ffe8a3;
  --nav-wave-halo: #e8b84a; --nav-wave-halo-2: #7a5a1a; --nav-wave-base: #6b5a35;
}
.nav-wire{position:absolute;left:26px;right:26px;bottom:-15.5px;height:32px;pointer-events:none;}
.nav-wire svg{display:block;width:100%;height:32px;overflow:visible;}
.nav-wire path{fill:none;stroke-linecap:round;stroke-linejoin:round;}
.nav-wire-base{stroke-width:1.1;}
.nav-wire-glow{stroke-width:4.5;opacity:0.75;}
.nav-wire-fringe-a{stroke-width:1.2;opacity:0.85;mix-blend-mode:screen;}
.nav-wire-fringe-b{stroke-width:1.7;opacity:0.9;}
.nav-wire-core{stroke-width:1.5;}

.nav-user { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 100px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); color: var(--text); font-size: 12.5px; font-weight: 600;
}
.pill img, .avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: rgba(232, 196, 106, 0.15); border: 1px solid var(--line-hi); }
.btn-login { padding: 9px 14px; }
.nav-toggle { display: none; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--text); font: 600 11.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.nav-toggle-bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle-bars i { width: 16px; height: 1.5px; background: var(--gold); display: block; }

/* ---------- Panneaux de verre (angles biseautés) ---------- */
.panel {
  position: relative; padding: 22px; --bv: 8px;
  background: linear-gradient(135deg, rgba(232, 196, 106, 0.5), rgba(232, 196, 106, 0.18) 30%, rgba(232, 196, 106, 0.16) 70%, rgba(232, 196, 106, 0.45));
  clip-path: polygon(var(--bv) 0, calc(100% - var(--bv)) 0, 100% var(--bv), 100% calc(100% - var(--bv)), calc(100% - var(--bv)) 100%, var(--bv) 100%, 0 calc(100% - var(--bv)), 0 var(--bv));
  transition: background 0.3s;
}
.panel::before {
  content: ""; position: absolute; inset: 1px; z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), rgba(10, 12, 22, 0.84);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  clip-path: polygon(calc(var(--bv) - 0.6px) 0, calc(100% - var(--bv) + 0.6px) 0, 100% calc(var(--bv) - 0.6px), 100% calc(100% - var(--bv) + 0.6px), calc(100% - var(--bv) + 0.6px) 100%, calc(var(--bv) - 0.6px) 100%, 0 calc(100% - var(--bv) + 0.6px), 0 calc(var(--bv) - 0.6px));
}
.panel > * { position: relative; z-index: 1; }
.panel:hover { background: linear-gradient(135deg, rgba(232, 196, 106, 0.7), rgba(232, 196, 106, 0.28) 30%, rgba(232, 196, 106, 0.26) 70%, rgba(232, 196, 106, 0.65)); }
.panel-tight { padding: 16px 18px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 4px;
  font: 600 12px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-align: center;
  cursor: pointer; transition: filter 0.25s, background 0.25s, color 0.25s, border-color 0.25s, transform 0.15s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: linear-gradient(180deg, #f1d27a, #c9a24a); color: #1b1505; border-color: rgba(255, 241, 194, 0.5); }
.btn-gold:hover { color: #120e03; filter: drop-shadow(0 0 9px rgba(241, 210, 122, 0.6)) brightness(1.05); }
.btn-line { background: rgba(232, 196, 106, 0.04); color: var(--gold); border-color: rgba(232, 196, 106, 0.6); }
.btn-line:hover { background: rgba(232, 196, 106, 0.12); color: var(--gold-hi); border-color: var(--gold); }
.btn-ghost { background: transparent; color: var(--muted); border-color: rgba(255, 255, 255, 0.12); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.3); }
.btn-danger { background: transparent; color: var(--bad); border-color: rgba(229, 115, 122, 0.5); }
.btn-danger:hover { background: rgba(229, 115, 122, 0.12); }
.btn-sm { padding: 9px 14px; font-size: 11px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; pointer-events: none; }
.btn-ok { background: rgba(154, 212, 166, 0.1); color: var(--ok); border-color: rgba(154, 212, 166, 0.45); }

/* ---------- Montants ---------- */
.amount { white-space: nowrap; font-variant-numeric: tabular-nums; }
.coin { width: 1.05em; height: 1.05em; vertical-align: -0.2em; margin-left: 0.3em; display: inline-block; }
.btn-gold .coin { filter: brightness(0.3) contrast(1.2); }   /* pièce lisible sur le dégradé or */
.price-big { font: 700 26px/1 var(--serif); color: var(--gold-hi); }
.strike { color: var(--muted); text-decoration: line-through; opacity: 0.8; }
.eur { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Accueil ---------- */
.hero { text-align: center; padding: 18px 0 30px; }
.hero-kicker { margin-bottom: 18px; color: var(--gold); }
.hero-title-wrap { filter: drop-shadow(0 0 30px rgba(232, 196, 106, 0.35)); }
.hero-title {
  font: 700 clamp(56px, 11vw, 118px)/1 var(--serif); letter-spacing: 0.24em; margin-right: -0.24em;
  background: linear-gradient(180deg, #fff8e3 0%, #f3d27e 48%, #b48c37 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 640px; margin: 10px auto 0; color: var(--muted); font-size: 16px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 36px 0 54px; }
.trio .panel { display: flex; flex-direction: column; gap: 10px; min-height: 200px; }
.trio h3 { font-size: 20px; color: var(--gold-hi); }
.trio .trio-ico { width: 38px; height: 38px; display: grid; place-items: center; color: var(--gold); border: 1px solid var(--line-hi); border-radius: 50%; background: radial-gradient(circle, rgba(232, 196, 106, 0.18), transparent 70%); }
.trio .trio-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.trio p { color: var(--muted); flex: 1; }
.trio .from { color: var(--text); font-size: 13px; }
.band { padding: 10px 0 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
.step { position: relative; padding: 24px 18px 20px; border: 1px solid var(--line); background: var(--glass); border-radius: 6px; }
.step-n { position: absolute; top: -16px; left: 18px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(180deg, #f1d27a, #c9a24a); color: #1b1505; font: 700 13px/1 var(--serif); box-shadow: 0 0 16px rgba(241, 210, 122, 0.5); }
.step h3 { font-size: 15px; color: var(--gold-hi); margin: 6px 0 8px; }
.step p { color: var(--muted); font-size: 14px; }

/* ---------- Rangs (échelle verticale) ---------- */
.ladder { position: relative; padding-left: 36px; display: grid; gap: 16px; max-width: 880px; margin: 0 auto; }
.ladder::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(180deg, rgba(232, 196, 106, 0.15), rgba(232, 196, 106, 0.75) 50%, rgba(255, 241, 194, 0.95)); }
.tier-slot { position: relative; }
.tier-slot::before {
  content: ""; position: absolute; left: -30px; top: 28px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle, #fff1c2, var(--gold) 55%, var(--gold-deep));
  opacity: calc(0.35 + var(--k) * 0.65); box-shadow: 0 0 calc(4px + var(--k) * 14px) rgba(243, 207, 122, calc(0.3 + var(--k) * 0.7));
}
.tier-slot.worn { filter: drop-shadow(0 0 16px rgba(243, 207, 122, 0.5)); }
.tier {
  --k: 0;
  background: linear-gradient(135deg, rgba(232, 196, 106, calc(0.22 + var(--k) * 0.6)), rgba(232, 196, 106, calc(0.12 + var(--k) * 0.3)) 35%, rgba(232, 196, 106, calc(0.1 + var(--k) * 0.3)) 65%, rgba(232, 196, 106, calc(0.2 + var(--k) * 0.6)));
}
.tier.worn { background: linear-gradient(135deg, #fff1c2, #e8c46a 40%, #c9a24a 60%, #fff1c2); }
.tier.worn::before { background: linear-gradient(180deg, rgba(243, 207, 122, 0.12), rgba(255, 255, 255, 0.01) 40%), rgba(12, 13, 24, 0.9); }
.tier-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tier-ico { width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; border: 1px solid rgba(232, 196, 106, calc(0.3 + var(--k) * 0.6)); background: radial-gradient(circle, rgba(232, 196, 106, calc(0.08 + var(--k) * 0.22)), transparent 72%); }
.tier-title { flex: 1; min-width: 160px; }
.tier-title h3 { font-size: 20px; color: var(--gold-hi); }
.tier-title .label { margin-top: 4px; }
.tier-price { text-align: right; }
.tier-price .price-big { display: block; margin-top: 4px; }
.tier-desc { margin-top: 12px; color: var(--muted); }
.tier-status { margin-top: 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.tier-status b { color: var(--gold-hi); }
.tier-more { margin-top: 12px; border-top: 1px solid rgba(232, 196, 106, 0.14); padding-top: 10px; }
.tier-more summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.tier-more summary::-webkit-details-marker { display: none; }
.tier-more summary::before { content: "+"; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid var(--line-hi); border-radius: 50%; font-size: 13px; }
.tier-more[open] summary::before { content: "–"; }
.tier-more dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: 14px; }
.tier-more dt { color: var(--muted); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; padding-top: 3px; }
.tier-more dd { margin: 0; }
.tier-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 100px; border: 1px solid var(--line-hi); color: var(--gold-hi); font-size: 10.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; background: rgba(232, 196, 106, 0.1); }
.badge-worn { background: linear-gradient(180deg, #f1d27a, #c9a24a); color: #1b1505; border-color: transparent; box-shadow: 0 0 14px rgba(241, 210, 122, 0.55); }
.badge-ok { color: var(--ok); border-color: rgba(154, 212, 166, 0.5); background: rgba(154, 212, 166, 0.08); }
.badge-warn { color: var(--warn); border-color: rgba(240, 179, 90, 0.5); background: rgba(240, 179, 90, 0.08); }
.badge-muted { color: var(--muted); border-color: rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.03); }
.contrib { max-width: 880px; margin: 26px auto 0; }
.contrib-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.field { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-hi); border-radius: 4px; background: rgba(0, 0, 0, 0.25); }
.field input { width: 120px; padding: 11px 0; border: 0; background: transparent; color: var(--gold-hi); font: 600 16px/1 var(--sans); outline: none; }
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ---------- Abonnements ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan { --plan: #c9a24a; display: flex; flex-direction: column; gap: 12px; }
.plan::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--plan), transparent); opacity: 0.9; }
.plan.current { background: linear-gradient(135deg, #fff1c2, var(--plan) 45%, #c9a24a 70%, #fff1c2); }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-gem { width: 14px; height: 14px; transform: rotate(45deg); background: linear-gradient(135deg, #fff, var(--plan) 50%, #000); box-shadow: 0 0 14px var(--plan); flex-shrink: 0; }
.plan-head h3 { font-size: 19px; color: var(--gold-hi); flex: 1; }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan-off { color: var(--ok); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; }
.plan-cond { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-adv { display: grid; align-content: start; gap: 6px; font-size: 14px; color: var(--text); flex: 1; }
.plan-adv li { position: relative; padding-left: 16px; }
.plan-adv li::before { content: "◆"; position: absolute; left: 0; top: 0.1em; font-size: 8px; color: var(--plan); }
.plan .btn { margin-top: 4px; }

/* Sélecteur de durée (mois) */
.months { display: grid; gap: 10px; padding: 12px; border: 1px solid rgba(232, 196, 106, 0.16); border-radius: 6px; background: rgba(0, 0, 0, 0.22); }
.months-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 100px; background: transparent; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; cursor: pointer; transition: 0.2s; }
.chip:hover { color: var(--text); border-color: var(--line-hi); }
.chip.on { color: var(--gold-hi); border-color: var(--gold); background: rgba(232, 196, 106, 0.14); box-shadow: 0 0 12px rgba(232, 196, 106, 0.28); }
.months-range { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px; margin: 4px 0; outline: none; background: linear-gradient(90deg, var(--gold) var(--pct, 0%), rgba(255, 255, 255, 0.12) var(--pct, 0%)); }
.months-range::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; border: 0; background: radial-gradient(circle, #fff6dc, #e8c46a 60%, #9a7a2e); box-shadow: 0 0 10px rgba(243, 207, 122, 0.7); cursor: pointer; }
.months-range::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; border: 0; background: radial-gradient(circle, #fff6dc, #e8c46a 60%, #9a7a2e); box-shadow: 0 0 10px rgba(243, 207, 122, 0.7); cursor: pointer; }
.months-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted); }
.months-sum b { color: var(--gold-hi); font-size: 17px; font-family: var(--serif); }

/* ---------- Accès ---------- */
.acces-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.acces { display: flex; flex-direction: column; gap: 10px; }
/* Accès possédé : seul le liseré est atténué, le texte garde son contraste (≥ 4,5:1). */
.acces.owned, .acces.owned:hover { background: linear-gradient(135deg, rgba(232, 196, 106, 0.24), rgba(232, 196, 106, 0.09) 30%, rgba(232, 196, 106, 0.08) 70%, rgba(232, 196, 106, 0.22)); }
.acces.owned .acces-head h3 { color: var(--gold); }
.acces.owned .btn.is-disabled { opacity: 1; color: var(--text); border-color: rgba(232, 196, 106, 0.35); background: rgba(232, 196, 106, 0.07); }
.acces-head { display: flex; align-items: flex-start; gap: 10px; }
.acces-head h3 { font-size: 15px; letter-spacing: 0.1em; color: var(--gold-hi); flex: 1; }
.acces-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acces-price small { color: var(--muted); font-size: 12px; }
.acces-cond { font-size: 13px; color: var(--muted); }
.acces-desc { font-size: 14px; flex: 1; }
.cond-ok { color: var(--ok); }
.cond-ko { color: var(--warn); }

/* ---------- Panier ---------- */
.cart { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); background: var(--glass); border-radius: 6px; }
.line-title { font-weight: 600; color: var(--gold-hi); }
.line-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.line-amt { font: 700 17px/1 var(--serif); color: var(--gold-hi); }
.line-rm { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.line-rm:hover { color: var(--bad); border-color: rgba(229, 115, 122, 0.6); }
.line-rm svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.recap { position: sticky; top: calc(var(--nav-h) + 30px); }
.recap-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(232, 196, 106, 0.12); font-size: 14px; }
.recap-row:last-of-type { border-bottom: 0; }
.recap-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line-hi); }
.recap-total b { font: 700 28px/1 var(--serif); color: var(--gold-hi); }
.recap-actions { display: grid; gap: 10px; margin-top: 18px; }
.note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.empty { text-align: center; padding: 40px 20px; }
.empty p { color: var(--muted); margin: 10px 0 20px; }
.code-box { text-align: center; padding: 10px 0; }
.code-box .code { font: 700 34px/1.2 var(--serif); letter-spacing: 0.2em; color: var(--gold-hi); text-shadow: 0 0 22px rgba(232, 196, 106, 0.5); margin: 8px 0; user-select: all; }
.alert { padding: 12px 14px; border-radius: 6px; border: 1px solid; font-size: 14px; }
.alert-warn { color: var(--warn); border-color: rgba(240, 179, 90, 0.4); background: rgba(240, 179, 90, 0.07); }
.alert-bad { color: var(--bad); border-color: rgba(229, 115, 122, 0.4); background: rgba(229, 115, 122, 0.07); }
.alert-ok { color: var(--ok); border-color: rgba(154, 212, 166, 0.4); background: rgba(154, 212, 166, 0.07); }

/* ---------- Profil ---------- */
.profile-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.profile-head .avatar { width: 68px; height: 68px; box-shadow: 0 0 24px rgba(232, 196, 106, 0.35); }
.profile-head h3 { font-size: 24px; color: var(--gold-hi); }
.profile-head .actions { margin-left: auto; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--glass); }
.stat .label { margin-bottom: 8px; }
.stat-v { font: 700 22px/1.1 var(--serif); color: var(--gold-hi); }
.stat-s { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.orders { display: grid; gap: 10px; margin-top: 12px; }
.order { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--glass); }
.order-code { font: 700 15px/1 var(--serif); letter-spacing: 0.12em; color: var(--gold-hi); }
.order-date { font-size: 12px; color: var(--muted); margin-top: 4px; }
.order-lines { font-size: 13.5px; }
.order-lines li { color: var(--text); }
.order-lines li span { color: var(--muted); }
.order-lines .line-detail { font-size: 12px; color: var(--muted); margin: 1px 0 4px; }
.order-right { text-align: right; display: grid; gap: 6px; justify-items: end; }
.order-total { font: 700 17px/1 var(--serif); color: var(--gold-hi); }
.order-note { grid-column: 1 / -1; font-size: 13px; color: var(--warn); }
.order-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.st { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid; }
.st-attente { color: var(--warn); border-color: rgba(240, 179, 90, 0.5); }
.st-payee { color: #9ec8f0; border-color: rgba(158, 200, 240, 0.5); }
.st-livree { color: var(--ok); border-color: rgba(154, 212, 166, 0.5); }
.st-a_traiter { color: var(--gold); border-color: var(--line-hi); }
.st-annulee { color: var(--muted); border-color: rgba(255, 255, 255, 0.15); }
.section-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 8px; }
.section-title h3 { font-size: 17px; color: var(--gold-hi); }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(232, 196, 106, 0.5), transparent); }
.search-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search-row .field { flex: 1; min-width: 200px; }
.search-row .field input { width: 100%; font-size: 14px; letter-spacing: 0.1em; }

/* ---------- Pied de page, toast ---------- */
.foot { position: relative; z-index: 1; text-align: center; padding: 10px 16px 40px; color: var(--muted); font-size: 13px; }
.foot p { margin: 6px 0; }
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 200; transform: translate(-50%, 20px); opacity: 0;
  max-width: min(520px, calc(100% - 32px)); padding: 12px 18px; border-radius: 6px;
  background: rgba(14, 15, 26, 0.95); border: 1px solid var(--line-hi); color: var(--text); font-size: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: rgba(229, 115, 122, 0.6); color: #f3b9bd; }
.toast.ok { border-color: rgba(154, 212, 166, 0.6); }
.loading { text-align: center; color: var(--muted); padding: 30px; letter-spacing: 0.2em; text-transform: uppercase; font-size: 11px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .plans, .acces-grid, .trio { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { flex-wrap: wrap; padding: 7px 10px 7px 14px; }
  .nav-toggle { display: inline-flex; order: 3; }
  .nav-user { order: 2; margin-left: auto; }
  .nav-links { order: 4; display: none; flex-direction: column; align-items: stretch; width: 100%; gap: 2px; padding: 10px 0 6px; margin-top: 6px; border-top: 1px solid var(--line); }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .cart { grid-template-columns: 1fr; }
  .recap { position: static; }
}
@media (max-width: 620px) {
  .plans, .acces-grid, .trio, .steps, .stats { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .panel { padding: 18px; }
  .ladder { padding-left: 28px; }
  .tier-slot::before { left: -24px; }
  .ladder::before { left: 7px; }
  .tier-price { text-align: left; width: 100%; }
  .line { grid-template-columns: 1fr auto; }
  .line-amt { grid-column: 1; }
  .line-rm { grid-column: 2; grid-row: 1 / span 2; }
  .order { grid-template-columns: 1fr; }
  .order-right { justify-items: start; text-align: left; }
  .pill span { display: none; }
  .pill { padding: 3px; }
  .nav { gap: 6px; padding: 7px 8px 7px 12px; }
  .btn-login span, .nav-toggle > span:last-child { display: none; }
  .btn-login { padding: 9px 11px; }
  .nav-toggle { padding: 9px 10px; }
  .hero-actions .btn { width: 100%; }
  .btn { white-space: normal; }
  .brand { letter-spacing: 0.26em; }
  .months { padding: 10px; }
  .months-quick { gap: 5px; }
  .chip { padding: 6px 8px; letter-spacing: 0; font-size: 11px; }
}

/* Animations douces respectées… sauf la navigation (fil lumineux et étincelles forcés) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .page.on { animation: none; }
  .bg-rays { animation: none; }
  .panel, .btn, .chip, .ico { transition: none; }
}
