/* RYZ Solution — noir, rouge sombre chaud, éclat ambré (repris du logo) */
:root {
  --ink: #0a0506;
  --ink-2: #120909;
  --oxblood: #2a0c0b;
  --panel: #170b0b;
  --panel-2: #1e0f0e;
  --line: #3a1f1b;
  --line-soft: #2a1614;
  --ember: #9c1f14;
  --ember-hot: #c8321f;
  --amber: #ffb35e;
  --amber-soft: #ffd79a;
  --cream: #ffe9c2;
  --text: #f4e7dc;
  --muted: #a89084;
  --ok: #7fd49a;
  --warn: #ffb35e;
  --bad: #ff6b5a;
  --radius: 14px;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--cream); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
::selection { background: var(--ember-hot); color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(2200px, 100% - clamp(32px, 5vw, 96px)); margin-inline: auto; }
.wrap.co-page { width: min(1280px, 100% - 40px); } /* checkout / product: keep a readable width */
.muted { color: var(--muted); }
.hidden { display: none !important; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }

/* ---------- Boutons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-body); cursor: pointer; color: var(--text);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, background .25s ease, border-color .25s ease, color .2s ease;
  white-space: nowrap; position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent;
}
.btn:hover:not([disabled]) { transform: translateY(-2px); }
.btn:active:not([disabled]) { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn-primary::before { /* reflet qui traverse le bouton au survol */
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg);
}
.btn-primary:hover::before { animation: shine .75s ease; }
@keyframes shine { to { left: 130%; } }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: ripple .65s ease-out forwards; pointer-events: none; }
.btn-ghost .ripple, .tabs .ripple, .side .ripple { background: rgba(255,179,94,.28); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,244,228,.35); border-top-color: #fff4e4; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn[disabled]:not(.is-loading) { opacity: .55; cursor: not-allowed; }
.btn.is-loading[disabled] { opacity: 1; }
.btn-primary {
  background: linear-gradient(135deg, var(--ember-hot), var(--ember) 60%, #6e120e);
  box-shadow: 0 0 0 1px rgba(255,179,94,.35) inset, 0 10px 30px -10px rgba(200,50,31,.7);
  color: #fff4e4;
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,179,94,.7) inset, 0 14px 40px -8px rgba(255,120,60,.65); color: #fff; }
.btn-amber { background: linear-gradient(135deg, var(--cream), var(--amber)); color: #2a0c0b; }
.btn-amber:hover { color: #000; box-shadow: 0 10px 34px -8px rgba(255,179,94,.6); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--amber); color: var(--cream); }
.btn-danger { background: transparent; border-color: #5a1f19; color: var(--bad); }
.btn-danger:hover { background: rgba(255,107,90,.1); border-color: var(--bad); }
.btn-sm { --h: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Formulaires ---------- */
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); }
input, select, textarea {
  width: 100%; background: var(--ink-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font: 400 15px/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(255,179,94,.15); }
input::placeholder, textarea::placeholder { color: #6d5a52; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ember-hot); }
.form-error { color: var(--bad); font-size: 14px; min-height: 20px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }

/* ---------- En-tête ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(10,5,6,.88), rgba(10,5,6,.55));
  border-bottom: 1px solid var(--line-soft);
}
.nav { transition: box-shadow .3s ease, background .3s ease; }
.nav.scrolled { box-shadow: 0 10px 40px -20px #000; background: linear-gradient(to bottom, rgba(10,5,6,.95), rgba(10,5,6,.75)); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font: 700 18px/1 var(--font-display); letter-spacing: -.01em; }
.brand img { height: 30px; width: auto; }
.brand b { font-weight: 800; }
.brand span { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--cream); }
.nav-end { display: flex; gap: 10px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; z-index: -2;
  background: radial-gradient(closest-side, rgba(255,160,70,.32), rgba(200,50,31,.18) 45%, transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: auto auto -30% -20%; width: 60vw; height: 60vw; z-index: -2;
  background: radial-gradient(closest-side, rgba(110,18,14,.55), transparent 70%);
}
#embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.hero .wrap { width: min(1700px, 100% - 12vw); } /* hero a bit less wide so text and logo sit closer to the middle */
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-family: 'Outfit', 'Segoe UI', system-ui, sans-serif; font-size: clamp(38px, 4.6vw, 66px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; max-width: 10.5ch;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #cfd3db 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--cream), var(--amber) 60%, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero p.lead { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); color: #cdb8ab; max-width: 46ch; }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 22px; font-size: 14px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 8px; box-shadow: 0 0 10px var(--amber); vertical-align: 1px; }
.mark-stage { position: relative; aspect-ratio: 1; display: grid; place-items: center; perspective: 900px; }
.mark-stage::before {
  content: ''; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,179,94,.35), rgba(200,50,31,.12) 60%, transparent 72%);
  animation: breathe 5s ease-in-out infinite;
}
.mark { width: 78%; transition: transform .25s ease-out; filter: drop-shadow(0 20px 60px rgba(255,140,50,.45)); will-change: transform; }
@keyframes breathe { 0%,100% { transform: scale(.96); opacity: .8; } 50% { transform: scale(1.06); opacity: 1; } }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 52px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 18px; }

.assure { border-block: 1px solid var(--line-soft); background: linear-gradient(to right, var(--ink-2), var(--oxblood) 50%, var(--ink-2)); }
.assure ul { list-style: none; margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.assure li { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
.assure li b { color: var(--cream); font: 600 16px/1.3 var(--font-display); }

/* ---------- Cartes produit (image plein cadre, puces, prix, bouton) ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 400px)); justify-content: center; gap: 22px; }
#shop .section-head { margin-inline: auto; text-align: center; }
.pcard {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 400px; padding: 26px; border-radius: 22px; overflow: hidden; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .35s ease;
}
.pcard:hover { border-color: rgba(255,179,94,.55); box-shadow: 0 30px 70px -30px rgba(200,50,31,.75); }
.pcard:focus-visible { outline-offset: 4px; }
.pcard-art { position: absolute; inset: 0; z-index: -3; background: radial-gradient(90% 70% at 70% 0%, rgba(255,150,60,.35), transparent 60%), linear-gradient(160deg, #4a150f, #12080a 75%); }
.pcard-art::after { content: ''; position: absolute; inset: 0; background: url('/img/ryz-mark.svg') center 32% / 42% no-repeat; opacity: .16; filter: saturate(.8); }
.pcard-art.has-img::after { display: none; }
.pcard-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.pcard:hover .pcard-art img { transform: scale(1.07); }
.pcard::before { /* dégradé de lisibilité */
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to top, rgba(10,5,6,.96) 0%, rgba(10,5,6,.78) 34%, rgba(10,5,6,.18) 68%, rgba(10,5,6,.05) 100%);
}
.pcard::after { /* halo qui suit le curseur */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255,179,94,.2), transparent 60%);
}
.pcard:hover::after { opacity: 1; }
.pcard .ribbon { position: absolute; top: 18px; left: 18px; background: linear-gradient(135deg, var(--cream), var(--amber)); color: #2a0c0b; font: 700 12px/1 var(--font-body); padding: 7px 12px; border-radius: 999px; box-shadow: 0 8px 22px -8px rgba(255,179,94,.7); }
.pcard .soldout { position: absolute; top: 18px; right: 18px; background: rgba(10,5,6,.8); color: var(--bad); border: 1px solid rgba(255,107,90,.45); font: 600 12px/1 var(--font-body); padding: 7px 12px; border-radius: 999px; }
.pcard h3 { font-size: 30px; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { padding: 6px 12px; border-radius: 9px; font-size: 12px; font-weight: 500; color: #e9d6c8; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); transition: background .25s, border-color .25s; }
.pcard:hover .chip { background: rgba(255,179,94,.14); border-color: rgba(255,179,94,.4); }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.pcard-foot small { display: block; font: 600 11px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pcard-foot .amount { font: 800 34px/1 var(--font-display); letter-spacing: -.03em; color: #fff; }
.pcard-foot .amount span { display: block; font: 500 13px var(--font-body); color: var(--muted); letter-spacing: 0; margin-top: 8px; white-space: nowrap; }

/* Fenêtre détail produit */
.pm-cover { position: relative; height: 200px; overflow: hidden; border-radius: 12px; background: linear-gradient(160deg, #4a150f, #12080a 75%); }
.pm-cover img { width: 100%; height: 100%; object-fit: cover; }
.pm-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,11,11,.65), transparent 60%); }
.pm-body > * + * { margin-top: 14px; }
.pm-body .pm-price { margin: 10px 0 0; }
.pm-price { font: 800 38px/1 var(--font-display); letter-spacing: -.03em; color: var(--cream); margin: 4px 0 18px; }
.pm-price span { font: 500 14px var(--font-body); color: var(--muted); margin-left: 8px; }
.pm-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; color: #d8c4b8; font-size: 15px; }
.pm-list li { padding-left: 24px; position: relative; }
.pm-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg) scale(.9); }
.stock-out { color: var(--bad); font-size: 13px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 30px 28px 10px 0; border-right: 1px solid var(--line-soft); margin-right: 28px; }
.step:last-child { border-right: 0; margin-right: 0; }
.step i { font: 800 15px/1 var(--font-display); font-style: normal; color: var(--amber); }
.step h3 { margin: 14px 0 10px; font-size: 22px; }
.step p { color: var(--muted); }

.faq { max-width: 780px; margin-inline: auto; }
#faq .section-head { margin-inline: auto; text-align: center; max-width: 780px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font: 600 19px/1.3 var(--font-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--amber); font-size: 26px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--muted); max-width: 62ch; }

.final { text-align: left; padding: clamp(64px, 8vw, 100px) 0; border-top: 1px solid var(--line-soft); background: radial-gradient(70% 120% at 100% 100%, rgba(200,50,31,.28), transparent 60%); }
.final .wrap { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.final h2 { font-size: clamp(30px, 4.4vw, 56px); max-width: 16ch; }

.footer { border-top: 1px solid var(--line-soft); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* ---------- Toasts / modales ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; }
.toast { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--amber); padding: 12px 16px; border-radius: 10px; font-size: 14px; max-width: 360px; box-shadow: 0 16px 40px -12px #000; animation: tin .25s ease-out; }
.toast.bad { border-left-color: var(--bad); }
.toast.ok { border-left-color: var(--ok); }
@keyframes tin { from { transform: translateX(24px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.leaving { animation: tout .25s ease-in forwards; }
@keyframes tout { to { transform: translateX(24px); opacity: 0; } }
.overlay { position: fixed; inset: 0; z-index: 150; background: rgba(5,2,2,.78); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; overflow-y: auto; animation: fade .22s ease both; }
.overlay.leaving { animation: fade .2s ease reverse both; }
.overlay.leaving .modal { animation: pop .2s ease reverse both; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.95); } to { opacity: 1; transform: none; } }
.modal { width: min(560px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 40px 100px -20px #000; max-height: 92vh; overflow-y: auto; animation: pop .32s cubic-bezier(.2,.8,.2,1) both; }
.modal.wide { width: min(760px, 100%); }
.modal h3 { font-size: 24px; margin-bottom: 18px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }

/* ---------- Auth ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(90% 70% at 80% 0%, rgba(255,150,60,.35), transparent 60%), linear-gradient(160deg, #3a110d, #0a0506 70%); border-right: 1px solid var(--line-soft); }
.auth-side h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 14ch; }
.auth-side .mark { width: 220px; transform: none; }
.auth-main { display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: min(420px, 100%); }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; }
.tabs button { flex: 1; height: 40px; border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font-body); border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.tabs button[aria-selected="true"] { background: var(--oxblood); color: var(--cream); box-shadow: 0 0 0 1px var(--line) inset; }
.strength { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.strength i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .25s, background .25s; }

/* ---------- Layout d'application (dashboards) ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 16px; border-right: 1px solid var(--line-soft); background: linear-gradient(180deg, var(--ink-2), var(--ink)); display: flex; flex-direction: column; gap: 22px; }
.side .brand { padding: 0 8px; }
.side nav { display: grid; gap: 4px; }
.side nav button, .side nav a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border: 0; background: transparent; color: var(--muted); font: 500 15px var(--font-body); border-radius: 10px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.side nav button:hover, .side nav a:hover { background: var(--panel); color: var(--text); }
.side nav button[aria-current="page"] { background: linear-gradient(90deg, rgba(200,50,31,.28), rgba(200,50,31,.05)); color: var(--cream); box-shadow: inset 2px 0 0 var(--amber); }
.side nav svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.side .foot { margin-top: auto; display: grid; gap: 10px; font-size: 13px; color: var(--muted); padding: 0 8px; }
.side .foot b { color: var(--text); font-weight: 600; word-break: break-all; }
.main { padding: 36px clamp(20px, 4vw, 48px) 60px; min-width: 0; }
.main-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.main-head h1 { font-size: clamp(28px, 3.2vw, 40px); }
.main-head p { color: var(--muted); margin-top: 6px; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { padding: 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.stat small { color: var(--muted); font-size: 13px; }
.stat b { display: block; margin-top: 6px; font: 800 30px/1.1 var(--font-display); letter-spacing: -.02em; color: var(--cream); }
.stat em { font-style: normal; font-size: 13px; color: var(--muted); }
.stat.hot { background: linear-gradient(135deg, rgba(200,50,31,.35), var(--panel)); border-color: #5a2a1f; }

.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.panel h3 { font-size: 18px; margin-bottom: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; }
.cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 13px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:hover td { background: rgba(255,179,94,.03); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); color: var(--muted); }
.pill.ok { color: var(--ok); border-color: rgba(127,212,154,.4); background: rgba(127,212,154,.08); }
.pill.warn { color: var(--warn); border-color: rgba(255,179,94,.4); background: rgba(255,179,94,.08); }
.pill.bad { color: var(--bad); border-color: rgba(255,107,90,.4); background: rgba(255,107,90,.08); }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h4 { color: var(--text); font-size: 20px; margin-bottom: 8px; }

.key-list { display: grid; gap: 12px; }
.key-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-soft); }
.key-item h4 { font-size: 17px; }
.key-item small { color: var(--muted); }
.key-val { margin-top: 10px; display: inline-block; padding: 8px 12px; border-radius: 8px; background: var(--ink); border: 1px dashed var(--line); font-size: 14px; letter-spacing: .04em; color: var(--amber-soft); word-break: break-all; user-select: all; }
.banner { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; border: 1px solid rgba(255,179,94,.4); background: rgba(255,179,94,.08); color: var(--cream); }
.banner.ok { border-color: rgba(127,212,154,.4); background: rgba(127,212,154,.08); }

/* Graphiques SVG */
.chart { width: 100%; height: auto; }
.chart text { fill: var(--muted); font: 11px var(--font-body); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: 13px; margin: 8px 0; }
.bar-row .bar { height: 8px; border-radius: 8px; background: var(--line-soft); overflow: hidden; }
.bar-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ember-hot), var(--amber)); }
.link-url { display: inline-flex; gap: 8px; align-items: center; background: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px 4px 10px; font-size: 13px; }
.link-url button { border: 0; background: var(--panel-2); color: var(--amber); border-radius: 6px; padding: 4px 8px; cursor: pointer; font: 600 12px var(--font-body); }

.mobile-top { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mark-stage { max-width: 340px; order: -1; margin-inline: 0; }
  .assure ul { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line-soft); padding-bottom: 24px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 120; inset: 0 auto 0 0; width: 270px; transform: translateX(-100%); transition: transform .25s; }
  .side.open { transform: none; box-shadow: 30px 0 80px #000; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 60; background: rgba(10,5,6,.92); backdrop-filter: blur(10px); }
  .cols { grid-template-columns: 1fr; }
  .nav-links a:not(.btn) { display: none; }
  .form-grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .assure ul { grid-template-columns: 1fr; }
  .key-item { grid-template-columns: 1fr; }
}

/* ---------- Page de paiement ---------- */
.co-page { padding-block: clamp(32px, 5vw, 64px) 90px; }
.co-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }
.co-main { display: grid; gap: 18px; }
.co-head h1 { font-size: clamp(30px, 4vw, 46px); }
.co-head p { margin-top: 8px; }
.co-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.co-card h2 { font-size: 20px; margin-bottom: 16px; }
.co-card.center { text-align: center; padding: 48px 28px; }
.co-card.center h2 { font-size: 28px; margin-bottom: 10px; }
.co-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.co-main > .co-actions { justify-content: flex-start; margin-top: 0; }
.co-summary { position: sticky; top: 92px; display: grid; gap: 14px; }
.co-summary h3 { font-size: 26px; }
.co-art { height: 140px; border-radius: 14px; overflow: hidden; background: radial-gradient(90% 70% at 70% 0%, rgba(255,150,60,.35), transparent 60%), linear-gradient(160deg, #4a150f, #12080a 75%); position: relative; }
.co-art::after { content: ''; position: absolute; inset: 0; background: url('/img/ryz-mark.svg') center / 22% no-repeat; opacity: .2; }
.co-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.sum-lines { display: grid; gap: 10px; padding: 14px 0; border-block: 1px solid var(--line-soft); }
.sum-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 15px; }
.sum-line.disc { color: var(--ok); animation: rise .35s ease both; }
.sum-line.sum-total { color: var(--text); font-size: 17px; align-items: baseline; }
.sum-total b { font: 800 30px/1 var(--font-display); letter-spacing: -.02em; color: var(--cream); display: inline-block; }
.sum-total b.bump { animation: bump .45s cubic-bezier(.2,.8,.2,1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); color: var(--amber); } 100% { transform: scale(1); } }
.btn-lg { --h: 54px; font-size: 16px; }

.methods { display: grid; gap: 12px; }
.method { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; text-align: left; padding: 16px 18px; border-radius: 16px; cursor: pointer; color: var(--text); font: inherit; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .25s, background .25s, transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.method:hover { border-color: #6b3a2a; transform: translateX(4px); }
.method.on { border-color: var(--amber); background: linear-gradient(90deg, rgba(200,50,31,.22), rgba(200,50,31,.05)); box-shadow: 0 0 0 1px rgba(255,179,94,.35), 0 18px 40px -24px rgba(200,50,31,.8); }
.method-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.method.on .method-ico { transform: scale(1.08) rotate(-4deg); }
.method-ico svg { width: 22px; height: 22px; stroke: var(--amber); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.method-ico b { font: 800 20px/1 var(--font-display); }
.method-ico.btc b { color: #f7931a; } .method-ico.ltc b { color: #b8c4d6; } .method-ico.sol b { color: #9b6bff; }
.method-txt { display: grid; gap: 2px; }
.method-txt small { color: var(--muted); font-size: 13px; }
.method-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); position: relative; transition: border-color .25s; }
.method-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber); transform: scale(0); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.method.on .method-dot { border-color: var(--amber); } .method.on .method-dot::after { transform: scale(1); }

.promo-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.promo-row input.upper { text-transform: uppercase; letter-spacing: .06em; }
.promo-msg { min-height: 20px; margin-top: 10px; font-size: 14px; color: var(--muted); }
.promo-msg.ok { color: var(--ok); animation: rise .3s ease both; } .promo-msg.bad { color: var(--bad); animation: rise .3s ease both; }
.promo-chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 999px; background: rgba(127,212,154,.1); border: 1px solid rgba(127,212,154,.4); color: var(--ok); animation: pop .35s cubic-bezier(.2,.8,.2,1) both; }
.promo-chip button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(127,212,154,.18); color: var(--ok); cursor: pointer; line-height: 1; transition: transform .2s, background .2s; }
.promo-chip button:hover { transform: rotate(90deg); background: rgba(127,212,154,.3); }

.copy-field { display: grid; gap: 6px; margin-bottom: 14px; }
.copy-field small { color: var(--muted); font-size: 13px; }
.copy-field > div { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 10px 10px 14px; border-radius: 12px; background: var(--ink); border: 1px dashed var(--line); }
.copy-field code { color: var(--amber-soft); word-break: break-all; font-size: 14px; user-select: all; }
.warn-note { padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--cream); background: rgba(255,179,94,.08); border: 1px solid rgba(255,179,94,.35); }
.waiting { display: flex; gap: 16px; align-items: center; }
.spinner { width: 42px; height: 42px; margin: 0 auto 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--amber); animation: spin .8s linear infinite; }
.spinner.sm { width: 26px; height: 26px; margin: 0; flex: none; border-width: 2px; }
.success .check { width: 78px; height: 78px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(127,212,154,.28), rgba(127,212,154,.06)); border: 2px solid var(--ok); animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }
.success .tick { font-size: 38px; color: var(--ok); animation: tickin .5s .25s ease both; }
@keyframes tickin { from { transform: scale(0) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
.small { font-size: 13px; }

@media (max-width: 900px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; order: -1; }
}

/* ---------- Animations d'entrée ---------- */
.fx-ready main { animation: pagein .25s ease both; }
@keyframes pagein { from { opacity: 0; } to { opacity: 1; } }
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 80ms); }
.rv.in { opacity: 1; transform: none; }
.pcard.rv.in { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: opacity .7s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 80ms), transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, box-shadow .35s ease; }
.hero h1, .hero .lead, .hero-cta, .hero-note { animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
.hero .lead { animation-delay: .12s; } .hero-cta { animation-delay: .24s; } .hero-note { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.mark-stage { animation: rise 1.1s .2s cubic-bezier(.2,.8,.2,1) both; }
.mark { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.faq details[open] p { animation: rise .35s ease both; }
#view > * { animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
#view > *:nth-child(2) { animation-delay: .05s; } #view > *:nth-child(3) { animation-delay: .1s; } #view > *:nth-child(4) { animation-delay: .15s; } #view > *:nth-child(n+5) { animation-delay: .2s; }
.stat { transition: transform .25s ease, border-color .25s ease; }
.stat:hover { transform: translateY(-3px); border-color: #5a2a1f; }
.key-item, .panel { transition: border-color .25s ease, transform .25s ease; }
.key-item:hover { border-color: #5a2a1f; transform: translateX(3px); }
tbody tr td { transition: background .2s ease; }
.pill { transition: transform .2s ease; }
.pill:hover { transform: scale(1.06); }
.side nav button { position: relative; overflow: hidden; }
.auth-card { animation: rise .7s cubic-bezier(.2,.8,.2,1) both; }
.tabs button { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Page 404 ---------- */
.page-404 { min-height: 100vh; }
.center { text-align: center; }
.mark-sm { width: 120px; margin: 0 auto 28px; transform: none; }
.page-404 h1 { font-size: 40px; }
.page-404 p { margin: 14px 0 28px; }
.account-form { max-width: 420px; }

/* ---------- Page produit : choix de la durée ---------- */
.pp-back { display: block; margin-bottom: 18px; }
.back-link { color: var(--muted); font-size: 14px; width: fit-content; transition: color .2s; }
.back-link:hover { color: var(--cream); }
.pp-art { height: clamp(180px, 28vw, 300px); border-radius: 20px; overflow: hidden; position: relative; border: 1px solid var(--line); background: radial-gradient(90% 70% at 70% 0%, rgba(255,150,60,.35), transparent 60%), linear-gradient(160deg, #4a150f, #12080a 75%); }
.pp-art::after { content: ''; position: absolute; inset: 0; background: url('/img/ryz-mark.svg') center / 24% no-repeat; opacity: .18; }
.pp-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.pp-badge { margin-left: 14px; vertical-align: middle; font-size: 13px; }
.plans { display: grid; gap: 10px; }
.plan { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 15px 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); color: inherit; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.plan:hover:not(:disabled) { border-color: rgba(255,179,94,.5); transform: translateY(-1px); }
.plan.on { border-color: var(--amber); background: rgba(255,179,94,.1); }
.plan:disabled { opacity: .45; cursor: not-allowed; }
.plan-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; position: relative; }
.plan.on .plan-dot { border-color: var(--amber); }
.plan.on .plan-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--amber); }
.plan-label { flex: 1; display: grid; gap: 2px; }
.plan-label small { color: var(--bad); font-size: 12px; }
.plan-price { font: 800 20px var(--font-display); letter-spacing: -.02em; }
a.btn.disabled { opacity: .5; pointer-events: none; }

/* ---------- Categories ---------- */
.products.left { justify-content: start; }
.pcard-tag { margin-top: 8px; color: #e9d6c8; opacity: .85; font-size: 14px; text-shadow: 0 2px 16px rgba(0,0,0,.6); }
.ccard h3 { font-size: 34px; }
.other-title { font-size: 22px; margin: 56px 0 20px; text-align: center; }
.cat-page { padding-block: clamp(28px, 4vw, 56px) 90px; }
.cat-back { display: block; margin-bottom: 22px; }
.cat-title { font-size: clamp(36px, 5vw, 60px); margin-bottom: 8px; }
.cat-sub { color: var(--muted); font-size: 18px; max-width: 640px; margin-bottom: 8px; }
.cat-page { width: min(1010px, 100% - 40px); }
.cat-page .products { margin-top: 28px; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
.cat-page .pcard { min-height: 343px; padding: 18px; }
.cat-page .pcard h3 { font-size: 22px; }
.cat-page .pcard-foot .amount { font-size: 26px; }
@media (max-width: 900px) { .cat-page .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cat-page .products { grid-template-columns: 1fr; } }
