/* ============================================================
   LGM Software — thème rouge & noir, style "landing premium"
   ============================================================ */
:root {
    --accent: #8b5cf6;
    --accent-b: #ff2fb3;                                             /* seconde couleur : dégradés, lueurs */
    --accent-2: color-mix(in srgb, var(--accent) 60%, #fff);        /* teinte claire pour titres/boutons */
    --grad: linear-gradient(120deg, var(--accent), var(--accent-b));
    --grad-text: linear-gradient(90deg, #fff 0%, var(--accent-2) 35%, var(--accent-b) 100%);
    --bg: #07060a;
    --bg-2: #0d0b11;
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .07);
    --line: rgba(255, 255, 255, .08);
    --line-2: rgba(255, 255, 255, .16);
    --text: #f4f2f6;
    --muted: #a39fae;
    --ok: #34c26b;
    --warn: #e0a400;
    --radius: 18px;
    --radius-sm: 12px;
    --pill: 999px;
    --shadow: 0 30px 80px rgba(0, 0, 0, .55);
    --head: "Archivo", "Inter", sans-serif;
    --body: "Inter", "Segoe UI", system-ui, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--body); -webkit-font-smoothing: antialiased; position: relative; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video, iframe { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; word-break: break-all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
main.container { padding: 28px 0 80px; position: relative; z-index: 1; }
main.home { padding-bottom: 80px; position: relative; z-index: 1; }
main.home > section.container { margin-top: 90px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.right { text-align: right; }
.hp { position: absolute; left: -9999px; }
.ic { vertical-align: -4px; flex-shrink: 0; }
.err-text, .danger-text { color: #ff6b6b; }

/* Lueurs de fond */
.bg-glow { position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(900px 600px at 15% -10%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 60%),
        radial-gradient(800px 700px at 90% 10%, color-mix(in srgb, var(--accent-b) 22%, transparent), transparent 60%),
        radial-gradient(700px 500px at 50% 110%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%); }
body.admin .bg-glow { display: none; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--grad); background-size: 160% 100%; color: #fff; border: 1px solid color-mix(in srgb, var(--accent-2) 60%, #fff);
    padding: 12px 26px; border-radius: var(--pill); font-weight: 700; font-size: .92rem; letter-spacing: -.01em;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent);
    transition: .25s var(--ease); white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 16px 40px color-mix(in srgb, var(--accent-b) 45%, transparent); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); box-shadow: none; backdrop-filter: blur(10px); }
.btn.ghost:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); filter: none; }
.btn.lg { padding: 16px 34px; font-size: 1rem; }
.btn.small { padding: 8px 16px; font-size: .78rem; }
.btn.block { width: 100%; }
.btn.loading { opacity: .6; pointer-events: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--line-2); background: rgba(255,255,255,.04); backdrop-filter: blur(12px); font-weight: 600; font-size: .9rem; transition: .2s; position: relative; }
.pill:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); }
.pill span { white-space: nowrap; }
@media (max-width: 900px) { .pill:not(.solid):not(.menu-btn) span { display: none; } .pill:not(.solid):not(.menu-btn) { padding: 0 13px; } }
.pill.solid { background: var(--grad); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.pill.solid:hover { filter: brightness(1.08); }
.pill.cart-link { padding: 0 14px; }
.cart-link b { position: absolute; top: -6px; right: -4px; background: var(--accent); color: #fff; font-size: .66rem; min-width: 19px; height: 19px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 5px; transition: transform .3s; border: 2px solid var(--bg); }
.cart-link b.bump { transform: scale(1.4); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--text); position: relative; transition: .2s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn.danger:hover { color: #ff6b6b; border-color: #ff6b6b; }
.icon-btn.add { background: var(--grad); color: #fff; width: 40px; height: 40px; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.icon-btn.add:hover { filter: brightness(1.15); transform: translateY(-1px); }
.link { background: none; border: 0; color: var(--accent-2); padding: 0; text-decoration: underline; }
.link-reset { display: block; text-align: center; margin-top: 12px; color: var(--muted); font-size: .85rem; }
.link-reset:hover { color: var(--accent-2); }
.chip { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); border-radius: var(--pill); padding: 4px 12px; font-size: .74rem; font-weight: 600; }
.chip.on { background: color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); color: #fff; }

/* ---------- Formulaires ---------- */
label { display: block; font-size: .76rem; font-weight: 600; margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea {
    width: 100%; padding: 13px 16px; background: rgba(0,0,0,.35); color: var(--text);
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); font: inherit; margin-bottom: 16px; transition: border .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 110px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type=checkbox], input[type=radio] { width: auto; margin: 0 8px 0 0; accent-color: var(--accent); }
input[type=file] { padding: 10px; background: transparent; border-style: dashed; cursor: pointer; }
input[type=color].color { width: 60px; height: 42px; padding: 3px; margin: 0; }
input[type=number] { -moz-appearance: textfield; }
input[type=range] { padding: 0; background: none; border: 0; accent-color: var(--accent); height: 28px; cursor: pointer; box-shadow: none !important; }
.check { display: flex; align-items: center; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); margin-bottom: 12px; cursor: pointer; }
.check.switch input { appearance: none; width: 40px; height: 22px; border-radius: 20px; background: var(--line-2); position: relative; transition: .2s; margin-right: 10px; flex-shrink: 0; }
.check.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.check.switch input:checked { background: var(--accent); }
.check.switch input:checked::after { left: 21px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.row.three { grid-template-columns: 1fr 1fr 1fr; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline input, .inline select { margin: 0; }
.file-info { font-size: .78rem; color: var(--muted); margin: -10px 0 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; backdrop-filter: blur(10px); }
.panel h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.panel h3 .num { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; background: var(--accent); border-radius: 50%; font-size: .85rem; }
.panel.narrow { max-width: 620px; }
.panel.sticky { position: sticky; top: 100px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; border: 1px solid; font-weight: 500; }
.alert.err { background: rgba(120,20,20,.25); border-color: rgba(255,90,90,.4); color: #ffb3b3; }
.alert.ok { background: rgba(20,90,40,.25); border-color: rgba(60,200,110,.4); color: #b6f0c6; }
.alert.warn { background: rgba(110,80,0,.25); border-color: rgba(230,180,40,.4); color: #f3dd94; }
.alert a { color: inherit; text-decoration: underline; }
.alert .btn { text-decoration: none; margin-left: 8px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 90vw); }
.toast { background: #141218; border: 1px solid var(--line-2); border-left: 4px solid var(--ok); padding: 12px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); transition: .3s var(--ease); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.toast.show { opacity: 1; transform: none; }
.toast.err { border-left-color: var(--accent); }
.toast a { color: var(--accent-2); font-weight: 700; white-space: nowrap; }

/* ---------- Header ---------- */
.topbar { position: relative; z-index: 2; background: linear-gradient(90deg, var(--accent), var(--accent-b), var(--accent)); background-size: 200% 100%; animation: topbar 8s linear infinite; color: #fff; text-align: center; font-size: .8rem; font-weight: 600; padding: 8px 12px; }
@keyframes topbar { to { background-position: 200% 0; } }
.site-header { position: sticky; top: 0; z-index: 100; transition: .25s; }
.site-header .wrap { width: min(1200px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 84px; }
.site-header.scrolled { background: rgba(7,6,10,.75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.site-header.scrolled .wrap { height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; }
.logo img { width: 44px; height: 44px; border-radius: 0; object-fit: contain; background: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.logo span { white-space: nowrap; }
.header-links { display: flex; align-items: center; gap: 4px; margin-right: auto; margin-left: 26px; }
.header-links a.discord { display: inline-flex; align-items: center; gap: 6px; color: #c7b8ff; }
.header-links a, .header-link { padding: 9px 14px; border-radius: var(--pill); font-weight: 600; font-size: .9rem; color: #d7d2e2; transition: .2s; position: relative; }
.header-links a:hover, .header-link:hover { color: #fff; background: rgba(255,255,255,.06); }
.header-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
.header-links a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn.cta { height: 44px; padding: 0 20px; border-radius: 12px; font-size: .9rem; gap: 8px; }
.btn.cta .ic { transition: transform .25s var(--ease); }
.btn.cta:hover .ic { transform: translateX(4px); }
.menu-btn { gap: 10px; }
.menu-btn .burger { display: flex; flex-direction: column; justify-content: center; gap: 4px; width: 18px; height: 18px; }
.menu-btn .burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: .3s var(--ease); transform-origin: center; }
.menu-btn .lbl-close { display: none; }
body.nav-open .menu-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); }
body.nav-open .menu-btn .lbl-open { display: none; }
body.nav-open .menu-btn .lbl-close { display: inline; }
body.nav-open .menu-btn .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .menu-btn .burger i:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.nav-open .menu-btn .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav { position: fixed; inset: 0; z-index: 95; overflow-y: auto; background: rgba(7,6,10,.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); opacity: 0; visibility: hidden; transition: .3s var(--ease); }
.nav::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(800px 500px at 10% 100%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%), radial-gradient(600px 400px at 95% 0%, color-mix(in srgb, var(--accent-b) 22%, transparent), transparent 60%); }
body.nav-open .nav { opacity: 1; visibility: visible; }
body.nav-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; z-index: 101; }
.nav-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 140px 0 60px; min-height: 100%; align-items: start; position: relative; }
.nav-eyebrow { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-b); margin-bottom: 16px; }
.nav-main a { display: block; font-family: var(--head); font-weight: 900; font-size: clamp(2.2rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; text-transform: uppercase; color: #fff; padding: 4px 0; opacity: 0; transform: translateY(22px); transition: color .2s, transform .5s var(--ease) calc(var(--i, 0) * 50ms + 80ms), opacity .5s var(--ease) calc(var(--i, 0) * 50ms + 80ms); -webkit-text-stroke: 1px rgba(255,255,255,.35); -webkit-text-fill-color: transparent; }
.nav-main a:hover { -webkit-text-fill-color: #fff; -webkit-text-stroke-color: transparent; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
body.nav-open .nav-main a { opacity: 1; transform: none; }
.nav-side { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 14px; opacity: 0; transition: opacity .4s var(--ease) .25s; }
body.nav-open .nav-side { opacity: 1; }
.nav-side .search { grid-column: 1 / -1; max-width: none; }
.nav-col a { display: block; padding: 6px 0; font-size: 1rem; font-weight: 500; color: #ddd9e4; }
.nav-col a:hover { color: #fff; padding-left: 6px; }
.nav-col a.accent { color: var(--accent-2); }
.nav-backdrop { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 90; }
body.admin-side-open .nav-backdrop { display: block; }
.search { display: flex; align-items: center; background: rgba(0,0,0,.35); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 0 6px 0 16px; height: 44px; margin-top: 10px; max-width: 320px; }
.search:focus-within { border-color: var(--accent-2); }
.search input { background: none; border: 0; margin: 0; padding: 0; font-size: .9rem; box-shadow: none !important; }
.search button { background: none; border: 0; color: var(--muted); display: flex; padding: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero, none) center/cover; filter: brightness(.35) saturate(1.2); z-index: -1; }
.hero-inner { padding: 70px 0 0; text-align: center; }
.hero-copy { max-width: 900px; margin: 0 auto; }
.eyebrow { display: inline-block; color: #fff; font-weight: 700; letter-spacing: .35em; text-transform: uppercase; font-size: .72rem; margin-bottom: 22px; opacity: .85; }
.eyebrow.mono, .mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: .74rem; font-weight: 600; color: var(--accent-b); opacity: 1; }
.fx-neon .eyebrow.mono { border: 0; background: none; box-shadow: none; padding: 0; }
.fx-neon .eyebrow.mono::before { display: none; }
.wordmark { display: flex; align-items: flex-end; justify-content: center; gap: 14px; margin: 14px 0 22px; position: relative; }
.wordmark img { width: clamp(64px, 10vw, 120px); height: auto; border-radius: 0; align-self: center; margin-top: -8px; filter: drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 60%, transparent)); }
.wm-main { font-family: var(--head); font-weight: 900; font-size: clamp(4rem, 15vw, 11rem); line-height: .85; letter-spacing: -.06em; text-transform: uppercase; color: #fff; text-shadow: 0 0 40px rgba(255,255,255,.15), 0 30px 80px rgba(0,0,0,.6); }
.wm-suffix { font-family: var(--head); font-weight: 800; font-size: clamp(1.3rem, 3.6vw, 2.6rem); letter-spacing: -.02em; color: #fff; margin-bottom: .2em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1.tagline { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 500; line-height: 1.2; letter-spacing: -.02em; text-transform: none; margin: 0 0 18px; color: #8f8a9c; text-shadow: none; }
.hero h1.tagline span { color: #8f8a9c; }
.hero h1.tagline em { font-style: normal; font-weight: 800; color: #fff; background: var(--grad-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: gradshift 6s ease-in-out infinite alternate; }
@keyframes gradshift { to { background-position: 100% 0; } }
.hero p { font-size: clamp(.98rem, 1.4vw, 1.1rem); color: #b9b3c6; max-width: 600px; margin: 0 auto 22px; }
.hero-proof { display: inline-flex; align-items: center; gap: 12px; margin: 0 auto 26px; padding: 8px 18px 8px 8px; border-radius: var(--pill); border: 1px solid var(--line-2); background: rgba(255,255,255,.04); font-size: .86rem; color: #d7d2e2; transition: .2s; }
.hero-proof:hover { border-color: var(--accent-2); color: #fff; }
.hero-proof b { color: var(--accent-b); }
.avatars { display: flex; }
.avatars i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--bg); margin-right: -8px; background: var(--grad); }
.avatars i:nth-child(2) { background: linear-gradient(135deg, var(--accent-b), #ffb86b); }
.avatars i:nth-child(3) { background: linear-gradient(135deg, #5cc8ff, var(--accent)); }
.hero-stats { display: flex; justify-content: center; gap: 44px; margin: 6px 0 34px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--head); font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1; letter-spacing: -.03em; }
.hero-stats span { color: var(--muted); font-size: .8rem; font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Mockup flottant */
.hero-preview { max-width: 980px; margin: 70px auto 0; position: relative; perspective: 1400px; }
.hero-preview::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 45%; background: linear-gradient(180deg, transparent, var(--bg)); pointer-events: none; z-index: 3; }
.preview-tabs { display: flex; gap: 10px; align-items: center; background: rgba(20,17,26,.9); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 14px; margin: 0 auto 14px; width: min(100%, 640px); transform: rotateX(8deg); transform-origin: bottom; }
.preview-tabs span { height: 10px; flex: 1; border-radius: 10px; background: rgba(255,255,255,.08); }
.preview-tabs span.on { flex: 0 0 auto; height: auto; padding: 5px 16px; background: var(--grad); border: 1px solid color-mix(in srgb, var(--accent-2) 60%, transparent); color: #fff; font-size: .74rem; font-weight: 700; }
.preview-frame { background: #0b0a0f; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; transform: rotateX(6deg); transform-origin: top; box-shadow: 0 40px 120px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04), -40px 0 160px color-mix(in srgb, var(--accent) 30%, transparent), 40px 0 160px color-mix(in srgb, var(--accent-b) 22%, transparent); }
.preview-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #141218; border-bottom: 1px solid var(--line); }
.preview-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3a3540; }
.preview-bar span:first-child { background: var(--accent-b); }
.preview-bar span:nth-child(2) { background: var(--accent); }
.preview-bar em { margin-left: auto; font-style: normal; font-size: .7rem; color: var(--muted); letter-spacing: .15em; text-transform: uppercase; }
.preview-main { position: relative; aspect-ratio: 16/9.5; background: #000; }
.preview-main .gallery-item { position: absolute; inset: 0; }
.preview-main .gallery-item.active { position: absolute; }
.preview-main img, .preview-main iframe { width: 100%; height: 100%; object-fit: cover; object-position: top; border: 0; }
.preview-thumbs { margin-top: 18px; justify-content: center; position: relative; z-index: 4; }
.preview-thumbs button { flex: 0 0 96px; height: 60px; }

/* ---------- Sections ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head .eyebrow { margin-bottom: 10px; }
h2 em, .usp-lead h2 em, .spot-head h2 em { font-style: normal; color: #8f8a9c; font-weight: 500; }
.section-head a { color: var(--muted); font-weight: 600; font-size: .88rem; display: inline-flex; gap: 4px; align-items: center; }
.section-head a:hover { color: #fff; }
.page-head { margin-bottom: 28px; }
.page-head h1 { display: flex; align-items: center; gap: 12px; }
.page-head h1 .ic { color: var(--accent-2); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: #fff; }
.crumbs span { color: var(--text); }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.steps span { font-size: .76rem; font-weight: 600; color: var(--muted); padding: 6px 14px; border-radius: var(--pill); border: 1px solid var(--line-2); }
.steps .done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.steps .active { color: #fff; background: var(--accent); border-color: var(--accent); }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty .ic { color: var(--accent-2); margin-bottom: 10px; }
.empty p { font-size: 1.05rem; margin-bottom: 20px; }

/* Atouts (boutique physique) */
.usp-old { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 50px !important; }
.usp-old > div { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.usp-old .ic { color: var(--accent-2); width: 26px; height: 26px; }
.usp-old b { display: block; font-size: .92rem; }
.usp-old small { color: var(--muted); }

/* À la une */
.spotlight { margin-top: 120px !important; }
.spot-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.spot-head h2 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); line-height: 1; letter-spacing: -.04em; margin: 10px 0 18px; }
.spot-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.spot-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; }
.spot-media { position: relative; display: block; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #0b0a0f; aspect-ratio: 16/10; box-shadow: 0 40px 120px rgba(0,0,0,.6), -30px 0 120px color-mix(in srgb, var(--accent) 25%, transparent), 30px 0 120px color-mix(in srgb, var(--accent-b) 18%, transparent); transition: .4s var(--ease); }
.spot-media img, .spot-media .ph { width: 100%; height: 100%; object-fit: cover; object-position: top; aspect-ratio: auto; transition: transform .8s var(--ease); }
.spot-media:hover { transform: translateY(-6px); }
.spot-media:hover img { transform: scale(1.04); }
.spot-tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); background: rgba(0,0,0,.7); border: 1px solid var(--line-2); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; backdrop-filter: blur(6px); }
.spot-tag .ic { color: var(--accent-b); }
.spot-copy h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 10px 0 10px; letter-spacing: -.03em; }
.spot-copy > p { color: #cfc9da; font-size: 1.02rem; margin: 0 0 14px; }
.spot-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.spot-actions .price { font-size: 1.6rem; }

/* Catégories (mode physique) */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cat-tile { position: relative; min-height: 180px; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; border: 1px solid var(--line); isolation: isolate; transition: .3s var(--ease); background: var(--surface); }
.cat-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--img, linear-gradient(135deg, #1a151e, #0e0c12)) center/cover; transition: .5s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85)); }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--accent-2); }
.cat-tile:hover::before { transform: scale(1.06); }
.cat-name { font-family: var(--head); font-size: 1.5rem; font-weight: 800; }
.cat-count { color: #cfcfd6; font-size: .82rem; display: flex; gap: 4px; align-items: center; }

/* ---------- Grille produits ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .3s var(--ease); backdrop-filter: blur(10px); }
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #0b0a0f; display: block; }
.card-media .thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.card-media .thumb.hover { position: absolute; inset: 0; opacity: 0; }
.card:hover .card-media .thumb { transform: scale(1.05); }
.card:hover .card-media .thumb.hover { opacity: 1; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.badge { display: inline-block; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: var(--pill); text-transform: uppercase; letter-spacing: .05em; }
.badge.grey { background: #4a4552; }
.badge.dark { background: rgba(0,0,0,.75); border: 1px solid var(--line-2); }
.badge.big { position: absolute; top: 16px; left: 16px; font-size: .95rem; padding: 7px 14px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .cat { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.card h3 { font-size: 1.05rem; margin: 0; }
.card h3 a:hover { color: var(--accent-2); }
.card-desc { margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.card-foot form { margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-row.big { margin: 10px 0 14px; }
.price-row.big .price { font-size: 2.2rem; }
.price-row s { color: var(--muted); font-size: .9em; }
.price { color: #fff; font-weight: 900; font-size: 1.15rem; font-family: var(--head); letter-spacing: -.02em; }
.rating-row { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .8rem; }
.stars { display: inline-flex; gap: 1px; color: #3a3540; }
.stars .on { color: #f5b301; }
.stars .on svg { fill: currentColor; }

/* Placeholder produit sans image */
.ph { width: 100%; height: 100%; aspect-ratio: 4/5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative;
    background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 30%, #0b0a0f), #0b0a0f 70%); }
.ph span { font-family: var(--head); font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 900; color: var(--accent-2); line-height: 1; }
.ph small { letter-spacing: .4em; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.ph.mini, img.mini { width: 48px; height: 48px; aspect-ratio: 1; border-radius: 8px; object-fit: cover; }
.ph.mini span { font-size: 1.2rem; }
.ph.mini small { display: none; }

/* ---------- Boutique ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; }
.filters { position: sticky; top: 100px; }
.filter-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.filter-form h4 { margin: 14px 0 10px; }
.filter-form h4:first-child { margin-top: 0; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills.vertical { flex-direction: column; gap: 4px; }
.pill-link, .pills .pill { height: auto; padding: 8px 16px; font-size: .8rem; color: var(--muted); }
.pills.vertical .pill { border-radius: var(--radius-sm); border-color: transparent; background: none; backdrop-filter: none; }
.pills .pill:hover { color: #fff; }
.pills .pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pills .pill.warn.active { background: var(--warn); border-color: var(--warn); color: #000; }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row input { margin: 0; }
.filter-form .btn { margin-top: 14px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.sort-form { display: flex; align-items: center; gap: 10px; }
.sort-form label { margin: 0; }
.sort-form select { margin: 0; width: auto; padding: 9px 36px 9px 14px; border-radius: var(--pill); }
.filters-toggle { display: none; }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; }
.pagination a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font-weight: 600; }
.pagination a.active, .pagination a:hover { background: var(--accent); border-color: var(--accent); }

/* ---------- Produit ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; margin-bottom: 70px; }
.product.digital { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.gallery { position: sticky; top: 100px; }
.gallery-main { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: #0b0a0f; border: 1px solid var(--line-2); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.gallery-main.wide { aspect-ratio: 16/10; }
.gallery-main.wide img, .gallery-main.wide video { object-fit: contain; background: #000; }
.gallery-main img, .gallery-main video, .gallery-main iframe, .gallery-main .main { width: 100%; height: 100%; object-fit: cover; border: 0; }
/* Le média actif reste en absolu : c'est .gallery-main qui porte la hauteur (aspect-ratio).
   En relatif, une iframe n'a plus de hauteur de référence et retombe à 150 px. */
.gallery-item { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .35s; }
.gallery-item.active { opacity: 1; pointer-events: auto; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery-thumbs button { flex: 0 0 76px; height: 92px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); background: var(--surface-2); padding: 0; position: relative; transition: .2s; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--accent-2); }
.gallery-thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; }
.product-info h1 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin: 6px 0 8px; }
.product-info .cat { color: var(--accent-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .18em; font-weight: 700; }
.product-info .lead { font-size: 1.05rem; color: #d4cfdc; }
.plan-duration { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 4px 12px; width: max-content; }
.plan-features, .req, .plan ul { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; gap: 9px; font-size: .92rem; color: #d4cfdc; }
.plan-features li, .req li, .plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan-features li .ic, .req li .ic, .plan li .ic { color: var(--accent-2); margin-top: 3px; }
.stock { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin: 10px 0 16px; }
.stock.in { color: var(--ok); }
.stock.out { color: var(--accent-2); }
.add-form { display: flex; gap: 12px; align-items: stretch; margin-bottom: 24px; flex-wrap: wrap; }
.add-form .btn { flex: 1; }
.from-lbl { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-right: 2px; }
.durations { flex: 1 0 100%; }
.dur-lbl { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.dur-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.dur-opt input { position: absolute; opacity: 0; pointer-events: none; }
.dur-opt span { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s, background .15s; }
.dur-opt span b { font-size: .95rem; }
.dur-opt span em { font-style: normal; font-size: .85rem; color: var(--muted); }
.dur-opt span:hover { border-color: var(--accent); }
.dur-opt input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.dur-opt input:checked + span em { color: var(--text); font-weight: 700; }
.dur-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.dur-opt.out span { opacity: .45; cursor: not-allowed; }
.dur-opt.out span:hover { border-color: var(--line-2); }
.dur-opt.out span b { text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--pill); background: rgba(0,0,0,.35); height: 52px; }
.qty button { width: 44px; height: 100%; background: none; border: 0; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: #fff; }
.qty input { width: 48px; text-align: center; border: 0; background: none; margin: 0; padding: 0; font-weight: 700; box-shadow: none !important; }
.trust { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: .88rem; color: #cfc9da; }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust .ic { color: var(--accent-2); }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { cursor: pointer; padding: 18px 0; font-family: var(--head); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--accent-2); font-size: 1.4rem; line-height: 1; flex-shrink: 0; }
.accordion details[open] summary::after { content: "–"; }
.rich { padding: 0 0 18px; color: #d4cfdc; line-height: 1.75; }

/* Avis */
.reviews { margin-bottom: 70px; }
.reviews-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.review time { color: var(--muted); font-size: .8rem; margin-left: auto; }
.review p { margin: 0; color: #d4cfdc; }
.rate-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin-bottom: 14px; }
.rate-input input { display: none; }
.rate-input label { cursor: pointer; color: #3a3540; margin: 0; }
.rate-input label svg { fill: currentColor; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: #f5b301; }

/* ---------- Landing logiciel ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: .25s var(--ease); backdrop-filter: blur(10px); }
.feature:hover { border-color: color-mix(in srgb, var(--accent-2) 50%, transparent); transform: translateY(-3px); background: var(--surface-2); }
.feature .ic { color: var(--accent-2); width: 44px; height: 44px; padding: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent); border-radius: 12px; margin-bottom: 16px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: .92rem; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 10px; transition: .25s var(--ease); backdrop-filter: blur(10px); }
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.plan.hot { border-color: color-mix(in srgb, var(--accent-2) 70%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 22%, transparent), color-mix(in srgb, var(--accent-b) 10%, transparent) 50%, var(--surface)); box-shadow: 0 0 80px color-mix(in srgb, var(--accent) 25%, transparent); }
.plan-shots { position: relative; display: block; height: 118px; border-radius: 14px; overflow: hidden; margin: 4px 0 10px; background: #0b0a0f; border: 1px solid var(--line); }
.plan-shots img { position: absolute; top: 10px; left: calc(10px + var(--k) * 26%); width: 62%; height: 100%; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 10px 30px rgba(0,0,0,.6); transform: rotate(calc(var(--k) * 2deg - 2deg)); transition: .35s var(--ease); z-index: calc(3 - var(--k)); }
.plan-shots:hover img { transform: translateY(-6px) rotate(0); }
.plan-shots span { position: absolute; right: 8px; bottom: 8px; z-index: 5; display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 10px; border-radius: var(--pill); background: rgba(0,0,0,.7); border: 1px solid var(--line-2); backdrop-filter: blur(6px); }
.plan-shots::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,6,10,.9)); z-index: 4; pointer-events: none; }
.plan-tag { position: absolute; top: -13px; left: 24px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; padding: 5px 12px; border-radius: var(--pill); }
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.plan-price .price { font-size: 2.4rem; }
.plan-price s { color: var(--muted); }
.plan form { margin-top: auto; }
.plan-more { text-align: center; color: var(--muted); font-size: .82rem; }
.plan-more:hover { color: #fff; }
.how { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; color: #e9e3f0; }
.how b { color: var(--accent-2); margin-right: 6px; font-family: var(--head); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.community { margin-top: 24px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.community h3 { width: 100%; margin-bottom: 4px; }

/* ---------- Panier / checkout / commande ---------- */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.layout-2.reverse { grid-template-columns: minmax(0, 1fr) 320px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; backdrop-filter: blur(10px); }
.summary h3 { margin-bottom: 14px; }
.summary .line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; font-size: .92rem; }
.summary .line.item span:nth-child(2) { flex: 1; }
.summary .line.ok { color: var(--ok); }
.summary .total { font-size: 1.3rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-family: var(--head); }
.summary .total span:last-child { color: var(--accent-2); }
.summary .btn { margin-top: 14px; }
.summary .check { align-items: flex-start; font-size: .8rem; margin: 14px 0 0; }
.summary .check input { margin-top: 3px; }
.thumb-mini { width: 44px; height: 52px; flex-shrink: 0; border-radius: 8px; overflow: hidden; display: block; }
.thumb-mini img, .thumb-mini .ph { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.thumb-mini .ph span { font-size: 1.2rem; }
.thumb-mini .ph small { display: none; }
.cart-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.cart-thumb { width: 96px; aspect-ratio: 4/5; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.cart-thumb img, .cart-thumb .ph { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb .ph span { font-size: 2rem; }
.cart-info { display: flex; flex-direction: column; gap: 6px; }
.cart-qty { margin-top: 4px; }
.cart-qty .qty { height: 38px; }
.cart-qty .qty button { width: 34px; }
.cart-line { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line form { margin: 0; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.coupon-form { margin-bottom: 12px; }
.coupon-ok { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ok); }
.coupon-ok .link { margin-left: auto; color: var(--muted); font-size: .8rem; }
.pay-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.pay-badges.center { justify-content: center; }
.pay-badges span { display: inline-flex; gap: 5px; align-items: center; font-size: .72rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--pill); padding: 5px 10px; }
.methods { display: grid; gap: 10px; }
.methods.compact { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.method input { display: none; }
.method-box { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: .2s; background: rgba(0,0,0,.3); width: 100%; text-align: left; }
.method-box .ic { color: var(--accent-2); }
.method-box b { display: block; }
.method-box small { color: var(--muted); }
.method-box:hover, .method input:checked + .method-box { border-color: var(--accent-2); background: color-mix(in srgb, var(--accent) 10%, rgba(0,0,0,.3)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.method-box.as-btn { font: inherit; }
.pay-panel #paypal-buttons { max-width: 420px; margin: 16px 0; }
/* Compte à rebours de paiement */
.pay-timer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 13px 18px; margin-bottom: 20px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 12%, transparent), rgba(255,255,255,.02)); }
.pay-timer .pt-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-2); }
.pay-timer .pt-txt { font-size: .86rem; color: #d7d2e2; }
.pay-timer b { font-family: var(--mono); font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: .04em; margin-left: auto; }
.pay-timer .pt-bar { flex: 0 0 100%; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.pay-timer .pt-bar i { display: block; height: 100%; width: 100%; background: var(--grad); transition: width 1s linear; }
.pay-timer.low { border-color: rgba(255,159,67,.5); }
.pay-timer.low b { color: #ff9f43; }
.pay-timer.low .pt-bar i { background: #ff9f43; }
.pay-expired { align-items: center; flex-wrap: wrap; }
.pay-expired form { margin-left: auto; }

/* Paiement manuel en 3 étapes (PayPal, virement) */
.manual-panel { max-width: 620px; }
.pay-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: s; }
.pay-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.ps-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: .9rem; color: #fff; background: var(--grad); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent); }
.pay-steps b { display: block; margin-bottom: 9px; font-size: .96rem; }
.pay-steps small { display: block; margin-top: 7px; font-size: .8rem; line-height: 1.5; }
.ps-amount { color: var(--accent-2); font-weight: 900; }
.ps-copy { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ps-copy code { flex: 1; min-width: 180px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid var(--line-2); font-size: .92rem; color: #fff; }
.ps-copy code.ps-ref { font-family: var(--mono); font-size: 1.15rem; letter-spacing: .14em; text-align: center; color: var(--accent-2); border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pay-steps .btn.small { margin-top: 8px; }
.pay-steps form { margin-top: 10px; }

/* Paiement par carte */
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h3 { margin: 0; }
.secure-tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--pill); font-size: .72rem; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); white-space: nowrap; }

/* Formulaire de paiement par carte — sobre, sans visuel décoratif */
.checkout-card { max-width: 480px; }
.co-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.co-head h3 { margin: 0 0 3px; font-size: 1.05rem; }
.co-head p { margin: 0; font-size: .8rem; color: var(--muted); }
.co-amount { font-family: var(--head); font-size: 1.5rem; letter-spacing: -.03em; white-space: nowrap; }

.co-form { display: grid; gap: 16px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co-field { position: relative; display: grid; gap: 7px; }
.co-field label { margin: 0; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
/* Fond blanc assumé : le texte saisi vit dans une iframe PayPal dont on ne peut pas
   imposer le fond, donc on garantit le contraste depuis l'extérieur. */
.co-input { height: 48px; background: #fff; border: 1px solid #cfccd8; border-radius: 10px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.co-input iframe { height: 100% !important; }
.co-field:focus-within .co-input { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
.co-field:focus-within label { color: var(--text); }
.co-brands { position: absolute; right: 12px; bottom: 13px; display: flex; gap: 7px; align-items: center; pointer-events: none; opacity: .9; }

.co-msg { margin: 0; font-size: .85rem; line-height: 1.45; display: none; }
.co-msg.err, .co-msg.ok, .co-msg.wait { display: block; padding: 11px 13px; border-radius: 9px; border: 1px solid; }
.co-msg.err { color: #ffbcbc; background: rgba(140,30,30,.18); border-color: rgba(255,100,100,.3); }
.co-msg.ok { color: #b6f0c6; background: rgba(20,90,40,.2); border-color: rgba(60,200,110,.35); }
.co-msg.wait { color: var(--muted); background: rgba(255,255,255,.04); border-color: var(--line-2); }

.co-submit { position: relative; height: 50px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-family: var(--head); font-size: .98rem; font-weight: 700; letter-spacing: -.01em; cursor: pointer; transition: filter .15s, opacity .15s; }
.co-submit:hover:not(:disabled) { filter: brightness(1.1); }
.co-submit:disabled { opacity: .6; cursor: default; }
.co-spinner { display: none; position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: cospin .6s linear infinite; }
@keyframes cospin { to { transform: rotate(360deg); } }
.co-form.busy .co-submit-txt { visibility: hidden; }
.co-form.busy .co-spinner { display: block; }
.co-form.offline .co-input, .co-form.offline .co-submit { opacity: .4; pointer-events: none; }

.co-note { display: flex; gap: 8px; align-items: flex-start; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.5; color: var(--muted); }
.co-note svg { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 420px) { .co-row { grid-template-columns: 1fr; } }
.wallets { display: grid; gap: 14px; margin: 18px 0; }
.wallet { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(0,0,0,.3); flex-wrap: wrap; }
.wallet .qr { width: 110px; height: 110px; background: #fff; padding: 4px; border-radius: 8px; flex-shrink: 0; }
.wallet .qr img, .wallet .qr canvas { width: 100%; height: 100%; }
.wallet > div:last-child { flex: 1; min-width: 200px; display: grid; gap: 6px; }
.wallet .addr { display: block; font-size: .8rem; }
.wallet .btn { justify-self: start; }
.txid-form { margin-top: 10px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 30px; position: relative; }
.timeline > div { text-align: center; font-size: .8rem; color: var(--muted); position: relative; padding-top: 38px; }
.timeline > div::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line-2); }
.timeline > div:first-child::before { display: none; }
.timeline .dot { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-size: .8rem; z-index: 1; }
.timeline .done { color: #fff; }
.timeline .done .dot { background: var(--accent); border-color: var(--accent); }
.timeline .done::before { background: var(--accent); }
.order-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-item:last-child { border: 0; }
.licenses-panel { border-color: color-mix(in srgb, var(--accent-2) 50%, transparent); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 18%, transparent); }
.license { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.license:last-of-type { border-bottom: 0; }
.license .key { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: .1em; color: #fff; background: #000; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); margin-top: 4px; }
.licenses-panel .btn.lg { margin: 16px 0 10px; }
.install summary { cursor: pointer; color: var(--muted); font-size: .9rem; }

/* ---------- Tableaux & statuts ---------- */
.table-wrap { overflow-x: auto; }
.table-wrap.panel { padding: 0; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { background: rgba(0,0,0,.3); color: var(--muted); text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; text-align: left; font-weight: 600; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr.inactive td { opacity: .5; }
td.actions, th.actions { white-space: nowrap; }
td.actions { display: flex; gap: 2px; align-items: center; justify-content: flex-end; }
td.actions form { margin: 0; display: inline; }
td.thumb-cell { width: 60px; }
.total-row td { border-top: 2px solid var(--line-2); }
.status { display: inline-block; padding: 3px 11px; border-radius: var(--pill); font-size: .7rem; font-weight: 700; background: #3a3540; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.status.s-paid, .status.s-delivered { background: #14532d; color: #c8f7d6; }
.status.s-processing, .status.s-shipped { background: #1e3a8a; color: #dbe6ff; }
.status.s-pending, .status.s-unpaid { background: #713f12; color: #ffe8b3; }
.status.s-cancelled, .status.s-failed { background: #7a1010; color: #ffd0d0; }
.status.s-refunded { background: #4c1d95; color: #ead8ff; }

/* ---------- Onglets ---------- */
.tabs > nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs > nav button { background: none; border: 0; padding: 12px 18px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs > nav button.active { color: #fff; border-bottom-color: var(--accent); }
.tabs > [data-panel] { display: none; }
.tabs > [data-panel].active { display: block; }
.tabs > .admin-grid[data-panel].active { display: grid; }

/* ---------- Auth ---------- */
.auth { display: grid; place-items: center; padding: 20px 0; }
.auth-card { width: min(440px, 100%); padding: 34px; }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 20px; }
.auth-card p a { color: var(--accent-2); font-weight: 600; }

/* ---------- Bannière & footer ---------- */
.banner { margin-top: 90px; position: relative; isolation: isolate; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 300px at 50% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 70%); }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 60px 40px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(10px); }
.banner h2 { margin-bottom: 6px; }
.banner p { color: var(--muted); margin: 0; }
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--line); margin-top: 20px; background: rgba(0,0,0,.35); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; padding: 60px 0 30px; }
.footer-brand p { color: var(--muted); margin: 14px 0; max-width: 320px; }
.site-footer h4 { color: var(--text); margin-bottom: 14px; }
.site-footer a:not(.logo):not(.btn) { display: block; color: var(--muted); padding: 4px 0; font-size: .9rem; }
.site-footer a:not(.logo):hover { color: #fff; }
.socials { display: flex; gap: 6px; }
.socials a { display: inline-flex !important; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; align-items: center; justify-content: center; padding: 0 !important; }
.socials a:hover { border-color: var(--accent-2); }
.site-footer .pay-badges { margin: 0 0 12px; }
.site-footer .pay-badges span { display: inline-flex; }
.site-footer p.small { color: var(--muted); margin: 6px 0; }
.footer-compact { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 34px 0 24px; }
.footer-links { display: flex; gap: 6px 22px; flex-wrap: wrap; }
.footer-links a { display: inline-flex !important; font-weight: 600; }
.copy { text-align: center; color: var(--muted); font-size: .78rem; padding: 20px 0; border-top: 1px solid var(--line); }
/* Modales (mention légale, Discord) */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; background: rgba(5,4,9,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .35s var(--ease); }
.modal[hidden] { display: none; }
.modal.show { opacity: 1; }
.modal-card { position: relative; width: min(520px, 100%); background: linear-gradient(180deg, #16121f, #0d0b13); border: 1px solid rgba(255,255,255,.1); border-radius: 22px; box-shadow: 0 50px 140px rgba(0,0,0,.7), 0 0 120px color-mix(in srgb, var(--accent) 22%, transparent); transform: translateY(18px) scale(.97); transition: transform .4s var(--ease); max-height: calc(100vh - 40px); overflow: auto; }
.modal.show .modal-card { transform: none; }
.modal-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(0,0,0,.4); color: #fff; display: grid; place-items: center; }
.modal-close:hover { border-color: #fff; }
/* Mention légale : panneau ancré en bas, distinct du modal Discord */
.legal-modal { --legal-op: .72; --legal-dim: .45; align-items: end; padding: 20px; background: linear-gradient(180deg, rgba(5,4,9,calc(var(--legal-dim) * .35)), rgba(5,4,9,var(--legal-dim))); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.legal-modal.pos-center { align-items: center; }
.legal-sheet { position: relative; isolation: isolate; width: min(1080px, 100%); display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 26px 30px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(26,20,40,var(--legal-op)), rgba(12,10,18,var(--legal-op))); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
    box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); transform: translateY(26px); opacity: 0; transition: transform .5s var(--ease), opacity .5s var(--ease); }
.legal-sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: -1; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 80%, transparent), rgba(255,255,255,.12) 40%, color-mix(in srgb, var(--accent-b) 80%, transparent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.legal-sheet::after { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent-b), transparent); opacity: .9; filter: blur(.3px); z-index: -1; }
.modal.show .legal-sheet { transform: none; opacity: 1; }
.legal-modal.w-compact .legal-sheet { width: min(620px, 100%); grid-template-columns: auto 1fr; }
.legal-modal.w-compact .legal-actions { grid-column: 1 / -1; }
.legal-modal.w-compact .legal-actions .btn { width: 100%; }
.legal-ic { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.4); }
.legal-copy .modal-eyebrow { color: var(--accent-b); }
.legal-copy h2 { font-size: 1.35rem; letter-spacing: -.025em; margin: 4px 0 8px; }
.legal-copy p { margin: 0 0 6px; color: #d9d3e4; font-size: .92rem; line-height: 1.65; }
.legal-cookies { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 4px !important; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .82rem !important; color: #cfc9da !important; }
.legal-cookies .ck { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); margin-top: 2px; }
.legal-actions { display: grid; justify-items: center; gap: 8px; }
.legal-hint { font-size: .7rem; color: var(--muted); }
.legal-foot { font-size: .74rem !important; color: var(--muted) !important; margin-top: 8px !important; }
.legal-foot a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-actions .btn { white-space: nowrap; box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.35); }
.modal-foot { margin: 16px 0 0; font-size: .74rem; color: var(--muted); line-height: 1.5; }
.legal-page p { color: #d4cfdc; line-height: 1.8; }
/* Page CGV */
.legal-hero { text-align: center; padding: 30px 0 40px; max-width: 760px; margin: 0 auto; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.04em; margin: 10px 0 8px; background: linear-gradient(90deg, #fff 30%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.legal-intro { color: #d4cfdc; line-height: 1.75; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.legal-toc { position: sticky; top: 100px; padding: 18px; }
.legal-toc a { display: flex; gap: 10px; align-items: baseline; padding: 8px 10px; border-radius: 10px; color: var(--muted); font-size: .9rem; }
.legal-toc a span { font-family: var(--mono); font-size: .72rem; color: var(--accent-b); min-width: 16px; }
.legal-toc a:hover { background: rgba(255,255,255,.06); color: #fff; }
.legal-toc a.accent { color: var(--accent-2); margin-top: 8px; border-top: 1px solid var(--line); padding-top: 12px; border-radius: 0; }
.legal-articles { display: grid; gap: 14px; }
.legal-art { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); scroll-margin-top: 110px; transition: .25s var(--ease); }
.legal-art:hover { border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); background: var(--surface-2); }
.legal-num { font-family: var(--head); font-weight: 900; font-size: 2rem; line-height: 1; letter-spacing: -.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.legal-art h2 { font-size: 1.15rem; margin: 2px 0 8px; }
.legal-art p { margin: 0; color: #d4cfdc; line-height: 1.75; font-size: .95rem; }
.legal-end { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 28px; border-radius: var(--radius); border: 1px dashed var(--line-2); margin-top: 10px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-toc { position: static; } .legal-art { grid-template-columns: 1fr; gap: 6px; padding: 20px; } }
@media (max-width: 860px) { .legal-sheet { grid-template-columns: 1fr; gap: 14px; padding: 22px; } .legal-ic { display: none; } .legal-actions .btn { width: 100%; } }

/* Modal Discord : visuels superposés à gauche, texte à droite */
.dc-card { width: min(920px, 100%); display: grid; grid-template-columns: 1fr 1.05fr; overflow: hidden; background: linear-gradient(135deg, #1a1426 0%, #0d0b13 55%); }
.dc-card.no-img { grid-template-columns: 1fr; width: min(520px, 100%); }
.dc-media { position: relative; min-height: 440px; overflow: hidden; background: radial-gradient(80% 60% at 30% 30%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%), radial-gradient(60% 50% at 80% 90%, color-mix(in srgb, var(--accent-b) 22%, transparent), transparent 70%), #0d0b13; }
.dc-media .shot { position: absolute; width: 78%; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 30px 80px rgba(0,0,0,.65); object-fit: cover; aspect-ratio: 16/10; }
.dc-media .s0 { top: 12%; left: 6%; transform: rotate(-5deg); z-index: 1; }
.dc-media .s1 { top: 42%; left: 24%; transform: rotate(4deg); z-index: 2; width: 82%; }
.dc-media::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(90deg, transparent 60%, rgba(13,11,19,.9)), linear-gradient(180deg, transparent 60%, rgba(13,11,19,.85)); }
.dc-badge { position: absolute; left: 22px; bottom: 22px; z-index: 4; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #5865f2; color: #fff; box-shadow: 0 10px 30px rgba(88,101,242,.5); }
.dc-content { padding: 48px 40px 28px; display: flex; flex-direction: column; gap: 10px; }
.dc-content h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: .94; letter-spacing: -.05em; text-transform: uppercase; margin: 8px 0 6px; }
.dc-lead { color: #cfc9da; margin: 0 0 6px; font-size: 1.02rem; }
.dc-perks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: .9rem; color: #e9e3f0; }
.dc-perks li { display: flex; gap: 10px; align-items: center; }
.dc-perks .ic { color: var(--accent-b); }
.dc-content .link-reset { background: none; border: 0; cursor: pointer; }
.btn.light { background: linear-gradient(180deg, #f1ebff, #c9b6ff); color: #1a0b2e; border-color: #fff; box-shadow: 0 10px 30px rgba(201,182,255,.25); }
.btn.light:hover { filter: brightness(1.03); }
@media (max-width: 760px) { .dc-card { grid-template-columns: 1fr; } .dc-media { min-height: 230px; } .dc-content { padding: 26px 22px 22px; } }
.lang-switch a { display: inline-block !important; margin-right: 14px; font-size: .9rem; }
.lang-switch a.on, .copy a.on { color: var(--accent-2); font-weight: 700; }
.copy a { color: var(--muted); display: inline !important; padding: 0 2px !important; }

/* Cartes d'offres groupées par durée — pleine largeur, séparées par des filets */
.pricing { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: rgba(10,8,16,.45); backdrop-filter: blur(10px); }
.plan.fam { background: transparent; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 26px 26px; gap: 10px; overflow: hidden; }
.plan.fam:first-child { border-left: 0; }
.plan.fam:hover { transform: none; box-shadow: none; background: rgba(255,255,255,.025); }
.fx-neon .plan.fam::before { display: none; }
.fx-neon .plan.fam.hot { box-shadow: inset 0 0 120px color-mix(in srgb, var(--accent) 10%, transparent); }
.plan.fam .plan-tag { top: 14px; left: 14px; z-index: 3; }
/* max-height : avec une seule offre la carte occupe toute la largeur et le ratio seul
   donnerait un visuel de plus de 600 px de haut. */
.plan-visual { position: relative; display: block; aspect-ratio: 16/11; max-height: 320px; margin: 0 -26px 20px; overflow: hidden; background: #0b0a0f; }
.plan-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(.5) saturate(1.1); transition: transform .8s var(--ease), filter .4s; }
.plan.fam:hover .plan-visual img { transform: scale(1.05); }
.plan-visual::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(60% 60% at 50% 50%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), linear-gradient(180deg, transparent 55%, rgba(10,8,16,1)); }
.plan-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s var(--ease); }
.plan-visual.playing .plan-video { opacity: 1; }
.plan-visual.playing .plan-name { opacity: 0; transform: translateY(-8px); }
.plan-visual .plan-name { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -.05em; text-transform: uppercase; color: #fff; text-shadow: 0 10px 40px rgba(0,0,0,.6); background: linear-gradient(180deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding: 0 16px; text-align: center; transition: opacity .35s, transform .35s; }
.plan-visual .watch { position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 8px); z-index: 3; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px 0 8px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.18); background: rgba(14,12,20,.78); backdrop-filter: blur(10px); color: #fff; font-weight: 700; font-size: .9rem; opacity: 0; transition: .3s var(--ease); }
.plan-visual .watch .ic { width: 30px; height: 30px; padding: 8px; border-radius: 50%; background: #fff; color: #1a0b2e; }
.plan.fam:hover .watch, .plan-visual .watch:focus-visible { opacity: 1; transform: translate(-50%, 0); }
.plan-visual .watch:hover { border-color: var(--accent-2); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 40%, transparent); }
.lightbox video, .lightbox iframe { width: min(1200px, 100%); aspect-ratio: 16/9; max-height: 100%; border-radius: 14px; border: 1px solid var(--line-2); background: #000; box-shadow: 0 40px 120px rgba(0,0,0,.8); }
@media (max-width: 640px) { .plan.fam { border-left: 0; border-top: 1px solid var(--line); } .plan.fam:first-child { border-top: 0; } .plan-visual .watch { opacity: 1; transform: translate(-50%, 0); } }
.plan-desc { text-align: center; color: var(--muted); font-size: .92rem; margin: 0 0 8px; min-height: 2.6em; }
.plan-tabs { display: flex; justify-content: center; gap: 22px; margin: 6px 0 10px; }
.plan-tabs button { background: none; border: 0; padding: 6px 0 8px; font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); position: relative; }
.plan-tabs button::after { content: ""; position: absolute; left: 25%; right: 25%; bottom: 0; height: 3px; border-radius: 3px; background: var(--grad); transform: scaleX(0); transition: transform .25s var(--ease); }
.plan-tabs button.active { color: #fff; }
.plan-tabs button.active::after { transform: scaleX(1); }
.plan-variant { display: none; flex-direction: column; gap: 10px; text-align: center; }
.plan-variant.active { display: flex; }
.plan-variant .plan-price { justify-content: center; align-items: baseline; margin: 0; }
.plan-variant .plan-price .price { font-size: 2.6rem; }
.plan-variant .plan-price small { color: var(--muted); font-size: .85rem; }
.plan-save { font-size: .82rem; color: var(--muted); }
.plan-save b { color: var(--ok); margin-left: 6px; }
.plan-variant ul { text-align: left; margin: 6px auto 10px; max-width: 280px; }
.plan-pay { display: flex; justify-content: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 4px; }
.plan-pay button { background: none; border: 0; font-family: var(--head); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 4px 2px 6px; border-bottom: 2px solid transparent; transition: .2s; }
.plan-pay button:hover { color: #fff; }
.plan-pay button.active { color: #fff; border-color: var(--accent-2); text-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.plan-pay button.soon { opacity: .6; }

/* Choix du moyen de paiement sur la page de l'offre */
.pay-choice { margin: 4px 0 20px; }
.pay-choice-lbl { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 9px; }
.pay-choice-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pay-opt { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--pill); border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: .85rem; font-weight: 600; color: #d7d2e2; transition: .2s var(--ease); }
.pay-opt .ic { color: var(--muted); transition: color .2s; }
.pay-opt:hover { border-color: var(--line-2); background: rgba(255,255,255,.07); color: #fff; }
.pay-opt.active { color: #fff; border-color: var(--accent-2); background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.pay-opt.active .ic { color: var(--accent-2); }
.pay-opt.soon { opacity: .5; }
.pay-choice small { display: block; font-size: .8rem; }

/* Invitation Discord discrète */
.dc-pop { position: fixed; left: 18px; bottom: 18px; z-index: 150; display: flex; gap: 12px; align-items: flex-start; width: min(320px, calc(100vw - 36px)); padding: 14px 14px 14px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.12); background: rgba(14,12,20,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 20px 60px rgba(0,0,0,.45); opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.dc-pop[hidden] { display: none; }
.dc-pop.show { opacity: .92; transform: none; }
.dc-pop:hover { opacity: 1; border-color: color-mix(in srgb, var(--accent-2) 45%, transparent); }
.dc-ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #5865f2, var(--accent)); color: #fff; box-shadow: 0 6px 18px rgba(88,101,242,.35); }
.dc-body { min-width: 0; }
.dc-body b { display: block; font-size: .92rem; margin-bottom: 2px; }
.dc-body p { margin: 0 0 10px; font-size: .8rem; color: var(--muted); line-height: 1.5; }
.dc-close { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.dc-close:hover { background: rgba(255,255,255,.1); color: #fff; }
@media (max-width: 640px) { .dc-pop { left: 12px; bottom: 12px; } }
.to-top { position: fixed; right: 18px; bottom: 80px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20,17,26,.9); backdrop-filter: blur(10px); color: #fff; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .3s; z-index: 150; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--accent-2); }

/* ============================================================
   AMBIANCE — vidéo de fond, grille, halo, grain
   ============================================================ */
.bg-video { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-video video { width: 100%; height: 100%; object-fit: cover; opacity: var(--video-opacity, .35); filter: saturate(1.15) contrast(1.05); }
.bg-video.tint::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(7,6,10,.55), rgba(7,6,10,.35) 40%, rgba(7,6,10,.85)), radial-gradient(900px 500px at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
/* Fond animé de secours quand aucune vidéo n'est définie */
.bg-aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; opacity: .6; }
.bg-aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; will-change: transform;
    background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 40%, transparent), color-mix(in srgb, var(--accent) 12%, transparent) 35%, transparent 65%); animation: aurora 22s ease-in-out infinite alternate; }
.bg-aurora i:nth-child(1) { top: -25vmax; left: -15vmax; }
.bg-aurora i:nth-child(2) { top: 10vmax; right: -25vmax; animation-duration: 28s; animation-delay: -8s; background: radial-gradient(circle, color-mix(in srgb, var(--accent-b) 38%, transparent), color-mix(in srgb, var(--accent-b) 10%, transparent) 35%, transparent 62%); }
.bg-aurora i:nth-child(3) { bottom: -30vmax; left: 25vw; animation-duration: 32s; animation-delay: -15s; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 35%, #1a0b3a), color-mix(in srgb, var(--accent-b) 12%, transparent) 40%, transparent 62%); }
@keyframes aurora { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(12vw, 8vh) scale(1.15); } 100% { transform: translate(-8vw, 14vh) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .bg-aurora i { animation: none; } }
body.has-bg-video .feature, body.has-bg-video .plan, body.has-bg-video .card, body.has-bg-video .panel, body.has-bg-video .banner-inner, body.has-bg-video .summary, body.has-bg-video .cart-row, body.has-bg-video .community { background-color: rgba(10, 8, 14, .62); }
body.has-bg-video .site-footer { background: rgba(5, 4, 8, .7); backdrop-filter: blur(14px); }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }


/* ============================================================
   NÉON — activable dans Admin → Réglages → Ambiance
   ============================================================ */
::selection { background: var(--accent); color: #fff; }
body.nocopy { -webkit-user-select: none; user-select: none; }
body.nocopy input, body.nocopy textarea, body.nocopy select, body.nocopy code, body.nocopy .key, body.nocopy [contenteditable] { -webkit-user-select: text; user-select: text; }
body.nocopy img, body.nocopy video { -webkit-user-drag: none; pointer-events: auto; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #07060a; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--accent), var(--accent-b)); border-radius: 10px; border: 2px solid #07060a; }
/* Agrandissement d'image (galerie) */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(5,4,8,.92); backdrop-filter: blur(14px); opacity: 0; animation: fadein .25s forwards; cursor: zoom-out; }
@keyframes fadein { to { opacity: 1; } }
.lightbox img { max-width: min(1400px, 100%); max-height: 100%; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 40px 120px rgba(0,0,0,.8), 0 0 120px color-mix(in srgb, var(--accent) 35%, transparent); }
.lightbox button { position: absolute; top: 18px; right: 18px; }
.gallery-item img { cursor: zoom-in; }
.fx-neon .hero h1 span { text-shadow: 0 0 24px rgba(255,255,255,.18), 0 20px 60px rgba(0,0,0,.6); }
.fx-neon .hero h1 em { filter: drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 40%, transparent)); }
@keyframes neonflick { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .78; } 94% { opacity: 1; } 97% { opacity: .85; } 98% { opacity: 1; } }
.fx-neon .eyebrow { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px; border-radius: var(--pill); border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 25%, transparent), inset 0 0 12px color-mix(in srgb, var(--accent) 12%, transparent); }
.fx-neon .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
@keyframes blink { 50% { opacity: .35; } }
.fx-neon .hero-stats b { background: linear-gradient(180deg, #fff, #d9d2e6); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(255,255,255,.18)); }
.fx-neon .btn:not(.ghost) { position: relative; isolation: isolate; }
.fx-neon .btn:not(.ghost):hover::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); background-size: 250% 100%; animation: shine 1.2s linear 1; z-index: -1; pointer-events: none; }
@keyframes shine { from { background-position: 150% 0; } to { background-position: -150% 0; } }
.fx-neon .pill:not(.solid):hover { border-color: var(--accent-2); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 25%, transparent); }
.fx-neon .logo img { filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 55%, transparent)); }
.fx-neon .section-head h2 { position: relative; padding-left: 18px; }
.fx-neon .section-head h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--accent-b), var(--accent)); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 50%, transparent); }
.fx-neon .section-head h2 { background: linear-gradient(90deg, #fff 40%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-neon .preview-frame { transition: transform .25s var(--ease); }
/* Bordure animée (conique) sur les cartes */
.fx-neon .feature, .fx-neon .plan, .fx-neon .card, .fx-neon .banner-inner, .fx-neon .community, .fx-neon .cat-tile { position: relative; isolation: isolate; }
.fx-neon .feature::before, .fx-neon .plan::before, .fx-neon .card::before, .fx-neon .banner-inner::before, .fx-neon .community::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
    background: conic-gradient(from var(--a, 0deg), transparent 0 60%, var(--accent) 74%, var(--accent-b) 82%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.fx-neon .feature:hover::before, .fx-neon .plan:hover::before, .fx-neon .card:hover::before, .fx-neon .banner-inner::before, .fx-neon .community:hover::before { opacity: .9; animation: spin 4s linear infinite; }
.fx-neon .plan.hot::before { opacity: .55; animation: spin 6s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.fx-neon .feature:hover, .fx-neon .plan:hover, .fx-neon .card:hover { box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 30px color-mix(in srgb, var(--accent) 14%, transparent); }
.fx-neon .plan.hot { box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 16%, transparent); }
.fx-neon .plan-tag { box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 40%, transparent); }
.fx-neon .feature .ic { border: 1px solid color-mix(in srgb, var(--accent-2) 40%, transparent); }
.fx-neon .feature:hover .ic { transform: translateY(-2px) scale(1.06); }
.fx-neon .feature .ic { transition: .3s var(--ease); }
.fx-neon .price { text-shadow: 0 0 18px rgba(255,255,255,.15); }
.fx-neon .plan-price .price { background: linear-gradient(120deg, #fff, var(--accent-2) 60%, var(--accent-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-neon .hero-stats b { background: linear-gradient(120deg, #fff, var(--accent-2) 70%, var(--accent-b)); -webkit-background-clip: text; background-clip: text; }
.fx-neon .feature:nth-child(3n+2) .ic { color: var(--accent-b); background: color-mix(in srgb, var(--accent-b) 16%, transparent); border-color: color-mix(in srgb, var(--accent-b) 40%, transparent); }
.fx-neon .plan li .ic, .fx-neon .plan-features li .ic { color: var(--accent-b); }
.fx-neon .license .key { border-color: color-mix(in srgb, var(--accent-2) 60%, transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--accent) 25%, transparent), inset 0 0 14px color-mix(in srgb, var(--accent) 10%, transparent); }
.fx-neon input:focus, .fx-neon select:focus, .fx-neon textarea:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.fx-neon .accordion details[open] summary { color: var(--accent-2); text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 50%, transparent); }
.fx-neon .nav-col a:hover { text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent); }
.fx-neon .to-top:hover, .fx-neon .socials a:hover { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 45%, transparent); }
.fx-neon .topbar { box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 45%, transparent); }
.fx-neon .cat-tile:hover { box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent); }

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .fx-neon .btn:not(.ghost)::after, .fx-neon .hero h1 em, .topbar { animation: none !important; }
    .bg-video video { display: none; }
}

/* ============================================================
   ADMIN
   ============================================================ */
body.admin { display: flex; min-height: 100vh; background: #0b0a0f; }
.admin-side { width: 240px; flex-shrink: 0; background: #08070b; border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; z-index: 100; }
.admin-side .logo { padding: 20px 22px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.admin-side .logo img { width: 38px; height: 38px; border-radius: 0; }
.admin-side nav { padding: 12px; flex: 1; overflow-y: auto; }
.admin-side nav a, .side-foot a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--radius-sm); font-weight: 500; color: #c8c3cf; margin-bottom: 2px; font-size: .9rem; }
.admin-side nav a:hover, .side-foot a:hover { background: var(--surface-2); color: #fff; }
.admin-side nav a.active { background: var(--accent); color: #fff; }
.admin-side nav a b { margin-left: auto; background: var(--accent); color: #fff; font-size: .7rem; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; }
.admin-side nav a.active b { background: #fff; color: var(--accent); }
.side-foot { padding: 12px; border-top: 1px solid var(--line); }
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.admin-top { display: flex; align-items: center; gap: 16px; padding: 0 28px; height: 68px; background: rgba(11,10,15,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-top h1 { font-size: 1.3rem; margin: 0; flex: 1; }
.admin-content { padding: 26px 28px 60px; max-width: 1400px; width: 100%; }
.admin .burger { display: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .ic { color: var(--accent-2); width: 40px; height: 40px; padding: 9px; background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 10px; }
.stat b { display: block; font-family: var(--head); font-size: 1.5rem; line-height: 1; }
.qr-wrap { position: relative; width: max-content; margin: 0 auto 12px; padding: 12px; background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px var(--line-2), 0 20px 50px rgba(0,0,0,.45), 0 0 40px color-mix(in srgb, var(--accent) 30%, transparent); }
.qr-wrap #qr img, .qr-wrap #qr canvas { border-radius: 8px; }
.qr-logo { position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; transform: translate(-50%, -50%); border-radius: 14px; background: #fff; padding: 4px; box-shadow: 0 0 0 3px #fff; }
.totp-live { display: grid; gap: 6px; justify-items: center; text-align: center; padding: 14px; margin-bottom: 16px; border-radius: var(--radius-sm); background: rgba(0,0,0,.3); border: 1px solid var(--line); }
.totp-live b { font-family: var(--mono); font-size: 1.9rem; letter-spacing: .12em; color: #fff; }
.totp-bar { display: block; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; }
.totp-bar i { display: block; height: 100%; width: 100%; background: var(--grad); transition: width 1s linear; }
.totp-bar i.low { background: var(--warn); }
.stat.active { border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.warn-text { color: var(--warn); }
.stat span { color: var(--muted); font-size: .78rem; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; align-items: start; }
.admin-grid > .span-2 { grid-column: span 2; }
.admin-grid .panel { margin-bottom: 0; }
.admin-grid > div > .panel { margin-bottom: 20px; }
.admin-grid .line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.admin-grid .line:last-child { border: 0; }
.inline-forms { display: flex; gap: 4px; }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 18px; }
.media-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line-2); background: #000; }
.media-item img, .media-item video { width: 100%; height: 100%; object-fit: cover; }
.media-item .tagm { position: absolute; top: 6px; left: 6px; background: rgba(0,0,0,.7); font-size: .64rem; padding: 2px 7px; border-radius: 4px; text-transform: uppercase; font-weight: 700; }
.media-item .tagm.main { background: var(--accent); top: auto; bottom: 44px; }
.media-actions { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 2px; align-items: center; padding: 4px; background: rgba(0,0,0,.75); }
.media-actions input { width: 44px; margin: 0; padding: 5px; font-size: .78rem; text-align: center; }
.media-actions .icon-btn { width: 30px; height: 30px; }
.video-failed { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 120px; height: 100%; padding: 18px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: rgba(0,0,0,.3); color: var(--muted); font-size: .82rem; line-height: 1.45; }
.video-failed b { color: var(--text); font-size: .9rem; }
.wallet-due { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.wallet-due code { font-weight: 700; color: var(--text); }
.opt-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.opt-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.opt-row > button { margin-bottom: 4px; }
.dropzone { background: rgba(0,0,0,.25); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 14px; }
.dropzone input { margin: 0; }
.preview-img { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.preview-img img { max-height: 120px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); }
.preview-img.small img { max-height: 70px; }
.save-bar { position: sticky; bottom: 0; background: rgba(11,10,15,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); padding: 14px 0; margin-top: 24px; display: flex; justify-content: flex-end; }
.message.read { opacity: .7; }
.message header, .review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.message time { color: var(--muted); font-size: .8rem; margin-left: auto; }
.log-line { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.settings h4 { margin: 18px 0 10px; }
.products-table td:nth-child(2) { min-width: 180px; }

@media print {
    .admin-side, .admin-top, .toolbar, .toasts, form button, .danger-text, .bg-glow { display: none !important; }
    body.admin { background: #fff; color: #000; }
    .panel { border-color: #ccc; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .usp-old { grid-template-columns: 1fr 1fr; }
    .spot-row { grid-template-columns: 1fr; gap: 30px; }
    .header-links { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-grid { grid-template-columns: 1fr 1fr; }
    .admin-grid > .span-2 { grid-column: span 2; }
    .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .nav-inner { grid-template-columns: 1fr; gap: 28px; padding: 110px 0 40px; }
    .nav-side { grid-template-columns: 1fr; }
    .product, .product.digital, .layout-2, .layout-2.reverse, .reviews-layout { grid-template-columns: 1fr; }
    .gallery, .summary, .filters, .panel.sticky { position: static; }
    .shop-layout { grid-template-columns: 1fr; }
    .filters { display: none; }
    body.filters-open .filters { display: block; }
    .filters-toggle { display: inline-flex; }
    .admin .burger { display: inline-flex; }
    .admin-side { position: fixed; left: 0; transform: translateX(-100%); transition: transform .3s var(--ease); }
    body.admin-side-open .admin-side { transform: none; }
    .admin-top, .admin-content { padding-inline: 16px; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-grid > .span-2 { grid-column: auto; }
}
@media (max-width: 640px) {
    .container, .site-header .wrap { width: calc(100% - 32px); }
    .site-header .wrap { height: 68px; gap: 8px; }
    .logo span { display: none; }
    .pill span { display: none; }
    .pill { padding: 0 13px; }
    .pill.menu-btn span, .pill.solid span { display: inline; }
    .menu-btn .lbl-open, .menu-btn .lbl-close { display: none !important; }
    .header-link { display: none; }
    .btn.cta { padding: 0 14px; }
    .hero-inner { padding-top: 40px; }
    .hero-stats { gap: 24px; }
    .hero-preview { margin-top: 44px; }
    .preview-tabs { display: none; }
    .preview-frame { transform: none; }
    .usp-old { grid-template-columns: 1fr; margin-top: 30px !important; }
    .spotlight { margin-top: 70px !important; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .card-body { padding: 12px; }
    .row, .row.three { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .cart-row { grid-template-columns: 72px 1fr; }
    .cart-thumb { width: 72px; }
    .cart-line { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
    .timeline > div { font-size: .68rem; }
    .banner-inner { padding: 36px 24px; }
    .stats { grid-template-columns: 1fr 1fr; }
    main.home > section.container { margin-top: 60px; }
}
