/* ============================================================================
   UNITED RP — BOUTIQUE DU SERVEUR (refonte 2026-10-15)
   Identité : noir profond teinté d'émeraude, accents émeraude (#12946b) et
   menthe (#31f0b3), surfaces de verre, lueurs douces. Typographies : Sora
   (titres), Inter (texte), JetBrains Mono (petites étiquettes).
   Mobile d'abord : les règles de base visent le téléphone, les @media
   (min-width) enrichissent la mise en page sur les grands écrans.
   Animations : transform / opacity uniquement ; rien ne bouge si le
   visiteur préfère moins d'animations. Couleurs principales réglables dans
   l'administration (--red = émeraude, --violet = menthe : noms historiques
   gardés pour admin.css et events.js). Styles de l'administration : admin.css.
   ========================================================================== */

:root {
    --red: #12946b;
    --red-rgb: 18, 148, 107;
    --violet: #31f0b3;
    --violet-rgb: 49, 240, 179;
    --bg: #050807;
    --surface: #0b1512;
    --surface-2: color-mix(in srgb, var(--surface) 80%, #ffffff 5%);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.075);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #ecf6f1;
    --muted: #9db1a8;
    --faint: #61746b;
    --ok: #31f0b3;
    --warn: #ffc04d;
    --grad: linear-gradient(115deg, color-mix(in srgb, var(--red) 88%, #fff) 0%, var(--red) 45%, color-mix(in srgb, var(--red) 70%, #000) 100%);
    --grad-text: linear-gradient(100deg, #e9fff6 0%, var(--violet) 45%, color-mix(in srgb, var(--red) 70%, var(--violet)) 100%);
    --radius: 14px;
    --r-lg: calc(var(--radius) + 8px);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Sora", "Inter", system-ui, sans-serif;
    --font-display: var(--display);
    --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.95);
    --top: 64px;
    --gutter: 16px;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 20px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
    background: var(--bg); color: var(--text);
    font: 400 15.5px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Voile d'émeraude en haut de page + grain très léger : de la matière aux aplats noirs. */
body::before {
    content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(1100px 600px at 50% -260px, rgba(var(--red-rgb), 0.22), transparent 70%),
        radial-gradient(700px 500px at 100% 30%, rgba(var(--violet-rgb), 0.045), transparent 70%);
}
body.no-scroll { overflow: hidden; }
main { flex: 1; outline: none; position: relative; z-index: 1; }
::selection { background: rgba(var(--violet-rgb), 0.35); color: #fff; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.03em; font-family: var(--display); font-weight: 700; }
p { margin: 0; }
button { font-family: inherit; color: inherit; }
code { font-family: var(--mono); font-size: 0.86em; background: rgba(255, 255, 255, 0.06); padding: 2px 6px; border-radius: 6px; }
kbd { font: 600 11px var(--mono); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }

.wrap { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; position: relative; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i--fill { fill: currentColor; stroke: none; }
.ico { width: 18px; height: 18px; flex: none; }

.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
    font: 600 11.5px/1.2 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--violet)); flex: none; }
.kicker { font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.lead { color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); letter-spacing: -0.045em; line-height: 1.02; }
.h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); letter-spacing: -0.035em; }
.link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; white-space: nowrap; }
.link:hover { color: var(--violet); }
.link .i { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link:hover .i { transform: translateX(3px); }

/* ── Boutons ─────────────────────────────────────────────────────────────── */

.btn {
    --h: 44px;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: var(--h); padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
    font: 600 14.5px/1 var(--font); letter-spacing: -0.005em; text-decoration: none; white-space: nowrap;
    cursor: pointer; isolation: isolate; overflow: hidden;
    transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s, opacity 0.2s;
}
.btn .i { width: 17px; height: 17px; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary {
    color: #fff; background: var(--grad); border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 12px 30px -12px rgba(var(--red-rgb), 0.9), 0 0 0 1px rgba(var(--red-rgb), 0.35);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}
.btn--primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 18px 40px -12px rgba(var(--red-rgb), 1), 0 0 0 1px rgba(var(--violet-rgb), 0.45), 0 0 30px -6px rgba(var(--violet-rgb), 0.35); }
.btn--glass { color: var(--text); background: var(--glass-2); border-color: var(--line-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover:not(:disabled) { background: rgba(255, 255, 255, 0.1); border-color: rgba(var(--violet-rgb), 0.4); }
.btn--ghost { color: var(--muted); background: transparent; border-color: var(--line); }
.btn--ghost:hover:not(:disabled) { color: var(--text); border-color: var(--line-strong); background: var(--glass); }
.btn--discord { color: #fff; background: #5865f2; box-shadow: 0 12px 28px -14px rgba(88, 101, 242, 0.9); }
.btn--discord:hover { background: #6772f5; }
.btn--danger { color: #ffb4b4; background: rgba(255, 70, 70, 0.08); border-color: rgba(255, 70, 70, 0.3); }
.btn--danger:hover { background: rgba(255, 70, 70, 0.16); }
.btn--lg { --h: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 14px; }
.btn--small { --h: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn.is-added { color: var(--violet); border-color: rgba(var(--violet-rgb), 0.35); background: rgba(var(--violet-rgb), 0.07); }
/* Reflet qui traverse le bouton principal au survol. */
.btn--shine::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 48%, transparent 66%);
    transform: translateX(-120%); transition: transform 0.8s var(--ease-out);
}
.btn--shine:hover::after { transform: translateX(120%); }
.icon-btn {
    display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px;
    border: 1px solid var(--line); background: var(--glass); color: var(--muted); cursor: pointer; font-size: 15px;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--glass-2); }
.icon-btn--small { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }

/* ── Bandeaux, barre de progression, en-tête ─────────────────────────────── */

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--violet)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(var(--violet-rgb), 0.7); }

.announce { position: relative; z-index: 41; font-size: 13.5px; text-align: center; color: #d9fff0; background: linear-gradient(90deg, rgba(var(--red-rgb), 0.35), rgba(var(--violet-rgb), 0.18), rgba(var(--red-rgb), 0.35)); border-bottom: 1px solid rgba(var(--violet-rgb), 0.18); }
.announce .wrap { padding: 9px 0; }
.announce a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.announce a:hover { color: #fff; }
.announce__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--violet); margin-right: 8px; box-shadow: 0 0 10px var(--violet); vertical-align: 1px; }
.announce__timer { font: 600 12px var(--mono); padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.3); margin-left: 6px; }

.topbar {
    position: sticky; top: 0; z-index: 40; height: var(--top);
    transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
    border-bottom: 1px solid transparent;
}
.topbar.is-scrolled { background: rgba(5, 8, 7, 0.78); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.topbar__in { height: 100%; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand__mark {
    width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none;
    background: radial-gradient(circle at 30% 20%, rgba(var(--violet-rgb), 0.25), transparent 60%), #0b1713;
    border: 1px solid rgba(var(--violet-rgb), 0.22); box-shadow: 0 8px 22px -10px rgba(var(--red-rgb), 0.8);
}
.brand__mark img { width: 24px; height: 24px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name b { font: 700 16px var(--display); letter-spacing: -0.02em; }
.brand__name small { font: 600 9.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }

.nav { display: none; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.admin-pill { font: 600 11px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 6px 10px; border-radius: 99px; color: var(--warn); border: 1px solid rgba(255, 192, 77, 0.35); background: rgba(255, 192, 77, 0.06); }
.cart-btn {
    position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 12px;
    border: 1px solid var(--line-strong); background: var(--glass); cursor: pointer; font: 600 14px var(--font);
    transition: border-color 0.2s, background-color 0.2s;
}
.cart-btn:hover { border-color: rgba(var(--violet-rgb), 0.45); background: var(--glass-2); }
.cart-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__label { display: none; }
.cart-btn__count {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center;
    font: 700 11px var(--mono); color: var(--faint); background: rgba(255, 255, 255, 0.07);
}
.cart-btn__count.is-on { color: #04140e; background: var(--violet); box-shadow: 0 0 14px rgba(var(--violet-rgb), 0.6); }
.cart-btn.is-bump { animation: bump 0.5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(0.96); } }
.burger { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--glass); cursor: pointer; display: grid; place-content: center; gap: 6px; }
.burger span { display: block; width: 18px; height: 1.8px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease); }
body.menu-open .burger span:first-child { transform: translateY(3.9px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.9px) rotate(-45deg); }

/* Menu téléphone : panneau plein écran sous l'en-tête. */
body.menu-open .nav {
    display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: var(--top); bottom: 0; z-index: 39;
    padding: 18px var(--gutter) 40px; gap: 4px; overflow-y: auto;
    background: rgba(5, 8, 7, 0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    animation: fade 0.25s var(--ease);
}
body.menu-open .nav a { padding: 16px 6px; font: 600 22px var(--display); letter-spacing: -0.02em; text-decoration: none; border-bottom: 1px solid var(--line); }
body.menu-open .nav a.is-on { color: var(--violet); }
body.menu-open { overflow: hidden; }
/* Pas de backdrop-filter quand le menu est ouvert : il ferait du menu (position fixe) un enfant de l'en-tête. */
body.menu-open .topbar { background: #050807; border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }

.demo-banner { position: relative; z-index: 2; text-align: center; font-size: 13px; padding: 8px 16px; color: #ffe2a3; background: rgba(255, 192, 77, 0.08); border-bottom: 1px solid rgba(255, 192, 77, 0.2); }

/* ── Héros ───────────────────────────────────────────────────────────────── */

.hero { position: relative; isolation: isolate; overflow: hidden; padding: 36px 0 56px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.28; -webkit-mask: linear-gradient(180deg, #000 30%, transparent 95%); mask: linear-gradient(180deg, #000 30%, transparent 95%); }
.hero__aurora {
    position: absolute; left: 50%; top: -30%; width: 1400px; height: 900px; margin-left: -700px;
    background:
        radial-gradient(closest-side at 35% 45%, rgba(var(--red-rgb), 0.55), transparent 70%),
        radial-gradient(closest-side at 70% 55%, rgba(var(--violet-rgb), 0.22), transparent 70%);
    filter: blur(40px); opacity: 0.75; animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora { from { transform: translate3d(-6%, 0, 0) rotate(-4deg) scale(1); } to { transform: translate3d(6%, 4%, 0) rotate(5deg) scale(1.08); } }
.hero__grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px; background-position: center top;
    -webkit-mask: radial-gradient(70% 60% at 50% 30%, #000 10%, transparent 75%); mask: radial-gradient(70% 60% at 50% 30%, #000 10%, transparent 75%);
}
.hero__beam { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--violet-rgb), 0.5), transparent); }
.hero__word {
    position: absolute; left: 50%; bottom: -0.16em; transform: translateX(-50%); white-space: nowrap;
    font: 800 clamp(5rem, 22vw, 19rem)/0.9 var(--display); letter-spacing: -0.06em; text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px rgba(var(--violet-rgb), 0.07);
    background: linear-gradient(180deg, rgba(var(--violet-rgb), 0.035), transparent 75%); -webkit-background-clip: text; background-clip: text;
}
.hero__in { display: grid; gap: 40px; align-items: center; }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 22px; }
.hero__kicker .eyebrow { margin: 0; }
.live {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 99px;
    font: 700 12px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #dafff0;
    background: rgba(var(--violet-rgb), 0.08); border: 1px solid rgba(var(--violet-rgb), 0.28);
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 0 rgba(var(--violet-rgb), 0.7); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(var(--violet-rgb), 0.6); } 80%, 100% { box-shadow: 0 0 0 9px rgba(var(--violet-rgb), 0); } }
.display { font-size: clamp(2.4rem, 10vw, 4.7rem); line-height: 1; letter-spacing: -0.05em; font-weight: 800; }
.display .w { display: inline-block; animation: wordin 0.9s var(--ease-out) both; animation-delay: calc(80ms + var(--i, 0) * 70ms); }
.display .grad { padding-bottom: 0.08em; }
@keyframes wordin { from { opacity: 0; transform: translateY(0.45em); filter: blur(8px); } }
.hero .lead { margin-top: 22px; max-width: 34em; animation: rise 0.9s var(--ease-out) 0.35s both; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; animation: rise 0.9s var(--ease-out) 0.45s both; }
.hero__cta .btn { flex: 1 1 auto; }
.hero__trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 13.5px; animation: rise 0.9s var(--ease-out) 0.55s both; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .i { width: 16px; height: 16px; color: var(--violet); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes fade { from { opacity: 0; } }

/* Visuel : paquet de couvertures de grades, en éventail. */
.hero__visual { position: relative; height: 300px; isolation: isolate; animation: rise 1.1s var(--ease-out) 0.3s both; }
.deck { position: absolute; inset: 0; }
.deck__card { container-type: inline-size;
    position: absolute; left: 50%; top: 50%; width: min(78%, 420px); aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
    background: #07110e; border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(var(--tone-rgb, var(--red-rgb)), 0.15), 0 30px 70px -40px rgba(var(--tone-rgb, var(--red-rgb)), 0.8);
    transform: translate(-50%, -50%);
}
.deck__card img { width: 100%; height: 100%; object-fit: cover; }
.deck__card .ph { position: absolute; inset: 0; }
.deck--3 .deck__card:nth-child(1) { transform: translate(-74%, -60%) rotate(-8deg) scale(0.82); opacity: 0.75; animation: drift-a 9s ease-in-out infinite alternate; }
.deck--3 .deck__card:nth-child(2) { transform: translate(-26%, -40%) rotate(7deg) scale(0.82); opacity: 0.75; animation: drift-b 10s ease-in-out infinite alternate; }
.deck--3 .deck__card:nth-child(3) { z-index: 2; animation: floaty 7s ease-in-out infinite; }
.deck--2 .deck__card:nth-child(1) { transform: translate(-70%, -56%) rotate(-7deg) scale(0.88); opacity: 0.8; }
.deck--2 .deck__card:nth-child(2) { z-index: 2; transform: translate(-36%, -44%) rotate(3deg); }
@keyframes drift-a { to { transform: translate(-77%, -62%) rotate(-10deg) scale(0.82); } }
@keyframes drift-b { to { transform: translate(-23%, -38%) rotate(9deg) scale(0.82); } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.deck--3 .deck__card:nth-child(3) { transform: translate(-50%, -50%); }
.chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
    background: rgba(8, 16, 13, 0.82); border: 1px solid var(--line-strong); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.chip small { display: block; font: 600 10px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.chip b { font: 700 15px var(--display); letter-spacing: -0.02em; }
.chip--price { left: 0; bottom: 4%; flex-direction: column; align-items: flex-start; gap: 2px; animation: floaty 6s ease-in-out -2s infinite; }
.chip--price b { font-size: 22px; color: var(--violet); }
.chip--live { right: 0; top: 6%; animation: floaty 7s ease-in-out -4s infinite; }
.chip--live small { letter-spacing: 0.04em; text-transform: none; font: 500 12px var(--font); color: var(--muted); }
.chip__ok { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #04140e; background: var(--violet); box-shadow: 0 0 18px rgba(var(--violet-rgb), 0.55); }
.chip__ok .i { width: 16px; height: 16px; stroke-width: 2.6; }

/* Vidéo de présentation des grades dans le héros : aperçu muet en boucle,
   un clic ouvre le lecteur complet avec le son (.vmodal). */
.hero__visual--video { height: auto; display: flex; align-items: center; padding: 10px 0 26px; }
.hvid {
    position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; margin: 0; overflow: hidden; cursor: pointer;
    border: 1px solid rgba(var(--violet-rgb), 0.28); border-radius: var(--r-lg); background: #030806; color: #fff; font: inherit; text-align: left;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95), 0 30px 90px -40px rgba(var(--violet-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform 0.6s var(--ease-out), border-color 0.3s;
}
.hvid:hover, .hvid:focus-visible { transform: perspective(1400px) rotateY(0deg) rotateX(0deg) scale(1.01); border-color: rgba(var(--violet-rgb), 0.6); }
.hvid:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
.hvid__video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hvid__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 5, 0.7) 72%, rgba(2, 6, 5, 0.95)); }
.hvid__bar { position: absolute; left: 14px; right: 62px; bottom: 13px; display: flex; align-items: center; gap: 12px; pointer-events: none; }
.hvid__play {
    flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #03140d;
    background: linear-gradient(135deg, #b9ffe3, var(--violet));
    box-shadow: 0 0 0 6px rgba(var(--violet-rgb), 0.16), 0 12px 30px -8px rgba(var(--violet-rgb), 0.8); transition: transform 0.45s var(--ease-out), box-shadow 0.3s;
}
.hvid__play svg { width: 20px; height: 20px; margin-left: 3px; fill: currentColor; }
.hvid:hover .hvid__play, .hvid:focus-visible .hvid__play { transform: scale(1.1); box-shadow: 0 0 0 9px rgba(var(--violet-rgb), 0.2), 0 14px 34px -8px rgba(var(--violet-rgb), 0.9); }
.hvid__cap { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hvid__cap b { font: 700 16px/1.2 var(--display); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hvid__cap small { font: 600 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: rgba(220, 240, 232, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hvid__muted { position: absolute; right: 14px; bottom: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.5); border: 1px solid rgba(255, 255, 255, 0.18); }
.hvid__muted svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero__visual--video .chip--price { left: auto; right: -6px; top: -8px; bottom: auto; }
@media (min-width: 1000px) { .hero__visual--video .chip--price { left: -10px; right: auto; top: auto; bottom: -6px; } }
.vmodal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 60px 14px 24px; opacity: 0; transition: opacity 0.3s; }
.vmodal.is-open { opacity: 1; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(2, 4, 3, 0.93); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vmodal__box { position: relative; width: min(1200px, 100%, calc((100vh - 110px) * 16 / 9)); transform: scale(0.96); transition: transform 0.45s var(--ease-out); }
.vmodal.is-open .vmodal__box { transform: none; }
.vmodal__box video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); background: #000; border: 1px solid rgba(var(--violet-rgb), 0.25); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.95), 0 30px 100px -50px rgba(var(--violet-rgb), 0.6); }
.vmodal__close { position: absolute; top: -50px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 17px; cursor: pointer; }
.vmodal__close:hover, .vmodal__close:focus-visible { border-color: var(--violet); color: var(--violet); }
@media (prefers-reduced-motion: reduce) { .hvid, .vmodal, .vmodal__box { transition: none; } .hvid { transform: none; } }

/* Bande de chiffres sous le héros. */
.stats { position: relative; z-index: 1; border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent); }
.stats__in { display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 20px 6px; }
.stat:nth-child(odd) { padding-right: 14px; }
.stat b { display: block; font: 700 clamp(1.5rem, 5vw, 2rem)/1 var(--display); letter-spacing: -0.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }

/* ── Sections ────────────────────────────────────────────────────────────── */

.section { position: relative; z-index: 1; padding: 64px 0; }
.section--tight { padding-top: 24px; }
.shead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 30px; }
.shead h2 { font-size: clamp(1.8rem, 5.5vw, 2.9rem); letter-spacing: -0.045em; max-width: 18em; }
.shead__sub { margin-top: 12px; color: var(--muted); max-width: 40em; }

/* Étapes : connexion → paiement → en jeu. */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; position: relative; }
.step {
    position: relative; padding: 24px 22px 26px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)); border: 1px solid var(--line);
}
.step__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--violet); background: rgba(var(--violet-rgb), 0.08); border: 1px solid rgba(var(--violet-rgb), 0.22); box-shadow: 0 0 30px -8px rgba(var(--violet-rgb), 0.35); }
.step__icon .i { width: 22px; height: 22px; }
.step__n { font: 800 44px/1 var(--display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.16); }
.step h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* Halo qui suit la souris (variables posées par app.js), sous le contenu. */
.rank, .card, .step, .perk, .review, .cta, .helpcard { --mx: 50%; --my: 0%; }
.rank::after, .card::after, .step::after, .perk::after, .review::after, .helpcard::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity 0.35s;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--tone-rgb, var(--violet-rgb)), 0.1), transparent 45%);
}
.is-glow::after { opacity: 1; }

/* ── Couvertures (image ou visuel par défaut) ────────────────────────────── */

.cover { position: relative; display: block; overflow: hidden; background: #07110e; container-type: inline-size; text-decoration: none; color: inherit; text-align: left; }
.cover__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out), filter 0.4s; }
.ph {
    position: relative; width: 100%; height: 100%; min-height: 100%; overflow: hidden; isolation: isolate;
    display: flex; align-items: center; padding: 0 8%;
    background: radial-gradient(120% 120% at 85% 40%, rgba(var(--tone-rgb, var(--red-rgb)), 0.32), transparent 55%), linear-gradient(135deg, #0a1a15, #040807 70%);
}
.ph__grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask: radial-gradient(60% 80% at 75% 45%, #000, transparent 75%); mask: radial-gradient(60% 80% at 75% 45%, #000, transparent 75%); }
.ph__glow { position: absolute; right: 8%; top: 50%; width: 45%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, rgba(var(--tone-rgb, var(--red-rgb)), 0.5), transparent); filter: blur(18px); }
.ph__gem { position: absolute; right: 8%; top: 50%; width: 32%; transform: translateY(-50%); filter: drop-shadow(0 0 22px rgba(var(--tone-rgb, var(--red-rgb)), 0.55)); }
.ph__gem .f { fill: rgba(var(--tone-rgb, var(--red-rgb)), 0.38); stroke: var(--tone, var(--violet)); stroke-width: 1.3; stroke-linejoin: round; }
.ph__gem .s { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 1; stroke-linejoin: round; }
.ph__gem .h { fill: rgba(255, 255, 255, 0.22); }
.ph__txt { display: flex; flex-direction: column; gap: 0.6cqi; max-width: 58%; }
.ph__kicker { font: 700 max(8px, 1.6cqi) var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--tone, var(--violet)); }
.ph__name { font: 800 10cqi/0.95 var(--display); letter-spacing: -0.05em; color: #f2fff9; white-space: nowrap; }
.ph__sub { font-size: max(9px, 2.2cqi); color: var(--muted); margin-top: 0.8cqi; }
.ph__brand { position: absolute; left: 8%; bottom: 9%; font: 700 max(7px, 1.5cqi) var(--mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }

.badge {
    position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px; border-radius: 99px; font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.badge .i { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.badge--hot { color: #04140e; background: var(--violet); box-shadow: 0 0 22px rgba(var(--violet-rgb), 0.5); }
.badge--promo { color: #fff; background: #e0484d; }
.badge--new { color: #e9fff6; background: rgba(var(--red-rgb), 0.7); border: 1px solid rgba(var(--violet-rgb), 0.4); }

/* ── Cartes des grades ───────────────────────────────────────────────────── */

/* Téléphone : carrousel horizontal (glisser), une carte et demie visible. */
.ranks {
    display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter)); padding: 8px var(--gutter) 22px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
}
.ranks::-webkit-scrollbar { display: none; }
.rank {
    --tone: var(--violet); --tone-rgb: var(--violet-rgb);
    position: relative; isolation: isolate; scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0;
    border-radius: var(--r-lg); overflow: hidden;
    background: linear-gradient(180deg, rgba(var(--tone-rgb), 0.07), rgba(255, 255, 255, 0.015) 40%), #08100d;
    border: 1px solid var(--line);
    transition: transform 0.45s var(--ease-out), border-color 0.3s, box-shadow 0.45s;
}
.rank::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, var(--tone), transparent); opacity: 0.85; }
.rank:hover { transform: translateY(-6px); border-color: rgba(var(--tone-rgb), 0.38); box-shadow: 0 34px 70px -34px rgba(var(--tone-rgb), 0.55); }
.rank:hover .cover__img { transform: scale(1.05); }
.rank--hot { border-color: rgba(var(--tone-rgb), 0.45); box-shadow: 0 0 0 1px rgba(var(--tone-rgb), 0.25), 0 30px 80px -40px rgba(var(--tone-rgb), 0.8); }
.rank--hot::before { height: 3px; opacity: 1; }
.rank__cover { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.rank__cover .ph__name { font-size: 13cqi; }
.rank__cover .ph__sub, .rank__cover .ph__brand { display: none; }
.rank__tier {
    position: absolute; left: 12px; top: 12px; z-index: 2; padding: 4px 9px; border-radius: 8px;
    font: 600 10.5px var(--mono); letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.82); background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.rank__body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.rank__head { display: flex; align-items: center; gap: 10px; }
.rank__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; transform: rotate(45deg); background: var(--tone, var(--violet)); box-shadow: 0 0 12px var(--tone, var(--violet)); }
.rank h3 { font-size: 1.55rem; letter-spacing: -0.04em; }
.rank h3 a { text-decoration: none; }
.rank__tag { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; min-height: 3em; }
.rank__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 18px 0 16px; }
.rank__price b { font: 700 2rem/1 var(--display); letter-spacing: -0.045em; }
.rank__price small { color: var(--faint); font-size: 13px; }
.rank__price s { color: var(--faint); font-size: 14px; }
.rank__cta { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.rank__cta .btn { padding: 0 14px; }
.rank__perks { list-style: none; padding: 18px 0 0; margin: 18px 0 0; border-top: 1px dashed var(--line-strong); display: grid; gap: 10px; font-size: 13.5px; }
.rank__perks li { display: flex; gap: 10px; align-items: flex-start; color: #d4e6de; line-height: 1.4; }
.rank__perks .i { width: 16px; height: 16px; margin-top: 1px; color: var(--tone); stroke-width: 2.4; }
.rank__more a { color: var(--tone); font-weight: 600; text-decoration: none; padding-left: 26px; }
.rank__more a:hover { text-decoration: underline; }

/* Cartes génériques (offres qui ne sont pas des grades). */
.grid { display: grid; gap: 16px; }
.card { position: relative; isolation: isolate; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: #08100d; border: 1px solid var(--line); transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card__cover { aspect-ratio: 16 / 9; }
.card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.2rem; }
.card h3 a { text-decoration: none; }
.card p { color: var(--muted); font-size: 14px; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tag { align-self: flex-start; font: 600 10.5px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; color: var(--violet); background: rgba(var(--violet-rgb), 0.08); border: 1px solid rgba(var(--violet-rgb), 0.2); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; }
.price b { font: 700 1.15rem var(--display); letter-spacing: -0.03em; }
.price small { color: var(--faint); font-size: 12.5px; }
.price s { color: var(--faint); font-size: 13px; }
.price--big b { font-size: clamp(2.2rem, 8vw, 2.9rem); line-height: 1; letter-spacing: -0.05em; }
.price--big small { font-size: 14px; }

/* ── Tableau comparatif ──────────────────────────────────────────────────── */

.cmp { margin-top: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); overflow: hidden; }
.cmp__scroll { overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(var(--violet-rgb), 0.3) transparent; }
.cmp table { width: 100%; min-width: 720px; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.cmp th, .cmp td { padding: 13px 12px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp tbody tr:hover th, .cmp tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
.cmp tbody th { text-align: left; font-weight: 500; color: #cfe2d9; white-space: nowrap; }
.cmp thead th { vertical-align: bottom; padding-top: 20px; padding-bottom: 16px; background: rgba(5, 8, 7, 0.6); }
.cmp thead th a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; }
.cmp thead th i { width: 11px; height: 11px; border-radius: 3px; transform: rotate(45deg); background: var(--tone); box-shadow: 0 0 12px var(--tone); }
.cmp thead th b { font: 700 1.05rem var(--display); letter-spacing: -0.02em; }
.cmp thead th small { font: 600 12px var(--mono); color: var(--muted); }
.cmp thead th.is-hot { background: linear-gradient(180deg, rgba(var(--tone-rgb), 0.16), rgba(5, 8, 7, 0.6)); }
.cmp__corner { display: block; text-align: left; font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
/* Première colonne figée pendant le défilement horizontal (téléphone). */
.cmp th:first-child { position: sticky; left: 0; z-index: 1; background: #070d0b; box-shadow: 1px 0 0 var(--line); }
.cmp__yes b { font: 600 13px var(--mono); color: var(--violet); white-space: nowrap; }
.cmp__yes .i { width: 18px; height: 18px; color: var(--violet); stroke-width: 2.6; margin: auto; }
.cmp__no .i { width: 14px; height: 14px; color: rgba(255, 255, 255, 0.18); margin: auto; }
.cmp tfoot td, .cmp tfoot th { border-bottom: 0; padding: 16px 10px; }
.cmp tfoot .btn { width: 100%; }
.cmp__foot { padding: 14px 18px; font-size: 13px; color: var(--faint); border-top: 1px solid var(--line); }

/* ── Atouts, avis, FAQ, appel final ──────────────────────────────────────── */

.perks { display: grid; gap: 14px; }
.perk { position: relative; isolation: isolate; overflow: hidden; padding: 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.perk__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: #04140e; background: linear-gradient(135deg, var(--violet), color-mix(in srgb, var(--red) 70%, var(--violet))); box-shadow: 0 12px 28px -12px rgba(var(--violet-rgb), 0.7); }
.perk__icon .i { width: 21px; height: 21px; stroke-width: 2.1; }
.perk h3 { font-size: 1.12rem; margin-bottom: 8px; }
.perk p { color: var(--muted); font-size: 14.5px; }

.reviews { display: grid; gap: 14px; }
.review { position: relative; isolation: isolate; margin: 0; padding: 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.stars { color: var(--violet); letter-spacing: 2px; }
.stars i { font-style: normal; color: rgba(255, 255, 255, 0.15); }
.review blockquote { margin: 12px 0 18px; color: #d6e8e0; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.review figcaption a { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.review__avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #04140e; background: var(--violet); }

.faqwrap { display: grid; gap: 28px; }
.faqwrap__side h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.045em; margin-bottom: 12px; }
.faqwrap__btns { margin-top: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.faqwrap__list, .faqlist { display: grid; gap: 10px; }
.faq { border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); transition: border-color 0.25s, background-color 0.25s; scroll-margin-top: calc(var(--top) + 24px); }
.faq[open] { border-color: rgba(var(--violet-rgb), 0.3); background: rgba(var(--violet-rgb), 0.04); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 600 15.5px/1.4 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); color: var(--muted); transition: transform 0.35s var(--ease), color 0.2s, background-color 0.2s; }
.faq summary i .i { width: 15px; height: 15px; }
.faq[open] summary i { transform: rotate(45deg); color: #04140e; background: var(--violet); border-color: var(--violet); }
.faq__a { padding: 0 20px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }
.faq[open] .faq__a { animation: rise 0.4s var(--ease-out); }
.faq__a a { color: var(--violet); }

.helpcard { position: relative; isolation: isolate; overflow: hidden; padding: 26px; border-radius: var(--r-lg); border: 1px solid rgba(var(--violet-rgb), 0.2); background: radial-gradient(120% 90% at 0% 0%, rgba(var(--red-rgb), 0.22), transparent 60%), #08100d; }
.helpcard__icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; color: var(--violet); background: rgba(var(--violet-rgb), 0.08); border: 1px solid rgba(var(--violet-rgb), 0.25); }
.helpcard h2 { font-size: 1.35rem; margin-bottom: 10px; }
.helpcard .muted { font-size: 14px; margin-bottom: 20px; }
.helpcard .dcount { margin-top: 14px; }
.helpcard__links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.helpcard__links a { color: var(--muted); }

.dcount { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.dcount b { color: var(--text); }
.dcount__dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; box-shadow: 0 0 10px #3ba55d; }
.dcount--center { justify-content: center; width: 100%; }

.cta {
    position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 26px; padding: 34px 24px; border-radius: 28px;
    border: 1px solid rgba(var(--violet-rgb), 0.22);
    background: radial-gradient(90% 140% at 100% 0%, rgba(var(--violet-rgb), 0.14), transparent 55%), radial-gradient(90% 140% at 0% 100%, rgba(var(--red-rgb), 0.35), transparent 60%), #07100d;
}
.cta__glow { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask: radial-gradient(70% 90% at 80% 20%, #000, transparent 70%); mask: radial-gradient(70% 90% at 80% 20%, #000, transparent 70%); }
.cta h2 { font-size: clamp(1.7rem, 5vw, 2.5rem); letter-spacing: -0.045em; margin-bottom: 12px; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__actions .btn { flex: 1 1 auto; }

/* ── En-tête de page (grades, FAQ, légal) ────────────────────────────────── */

.phead { position: relative; isolation: isolate; padding: 30px 0 34px; overflow: hidden; }
.phead__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask: radial-gradient(60% 100% at 50% 0%, #000, transparent 80%); mask: radial-gradient(60% 100% at 50% 0%, #000, transparent 80%); }
.phead .lead { margin-top: 18px; max-width: 40em; }
.phead--small { padding-bottom: 18px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 26px; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.crumbs b { color: var(--text); font-weight: 500; }
.pills { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 99px; font-size: 13px; color: #d2e5dc; background: var(--glass); border: 1px solid var(--line); }
.pills .i { width: 15px; height: 15px; color: var(--violet); }

/* ── Fiche d'un grade ────────────────────────────────────────────────────── */

.pdp { position: relative; isolation: isolate; padding: 26px 0 30px; }
.pdp__bg { position: absolute; left: 0; right: 0; top: -120px; height: 760px; z-index: -1; pointer-events: none; background: radial-gradient(800px 460px at 30% 30%, rgba(var(--tone-rgb), 0.16), transparent 70%); }
.switch { display: flex; gap: 8px; overflow-x: auto; margin: -8px calc(-1 * var(--gutter)) 22px; padding: 4px var(--gutter); scrollbar-width: none; }
.switch::-webkit-scrollbar { display: none; }
.switch__item { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 99px; text-decoration: none; font: 600 13.5px var(--display); color: var(--muted); border: 1px solid var(--line); background: var(--glass); transition: color 0.2s, border-color 0.2s, background-color 0.2s; }
.switch__item i { width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--tone); }
.switch__item:hover { color: var(--text); border-color: rgba(var(--tone-rgb), 0.45); }
.switch__item.is-on { color: #04140e; background: var(--tone); border-color: var(--tone); box-shadow: 0 8px 24px -10px rgba(var(--tone-rgb), 0.8); }
.switch__item.is-on i { background: #04140e; }
.pdp__grid { display: grid; gap: 26px; }
.pdp__main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.pdp__cover {
    width: 100%; padding: 0; border: 1px solid rgba(var(--tone-rgb), 0.25); border-radius: var(--r-lg); aspect-ratio: 16 / 9; cursor: zoom-in;
    box-shadow: 0 50px 100px -50px rgba(var(--tone-rgb), 0.7), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
}
.pdp__cover:disabled { cursor: default; opacity: 1; }
.pdp__cover:hover .cover__img { transform: scale(1.025); }

.thumbs { display: flex; gap: 10px; overflow-x: auto; }
.thumb { flex: none; width: 96px; aspect-ratio: 16 / 10; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: none; cursor: pointer; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on, .thumb:hover { opacity: 1; border-color: var(--tone); }
.video { aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.video iframe { width: 100%; height: 100%; border: 0; }
.pblock { padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.pblock__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.pblock__head h2 { font-size: 1.35rem; }
.pblock__head span { font: 600 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feat { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); transition: border-color 0.25s, transform 0.3s var(--ease-out); }
.feat:hover { border-color: rgba(var(--tone-rgb), 0.35); }
.feat__ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #04140e; background: var(--tone); box-shadow: 0 0 16px -2px rgba(var(--tone-rgb), 0.55); }
.feat__ic .i { width: 16px; height: 16px; stroke-width: 2.8; }
.feat div > b { display: block; font: 600 15px var(--display); letter-spacing: -0.015em; }
.feat div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.excl { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.excl li { display: flex; gap: 10px; align-items: center; }
.excl .i { width: 14px; height: 14px; color: var(--faint); }

.buybox { position: relative; display: flex; flex-direction: column; gap: 12px; }
.buybox__in {
    position: relative; padding: 24px; border-radius: var(--r-lg); overflow: hidden;
    background: linear-gradient(180deg, rgba(var(--tone-rgb), 0.09), rgba(255, 255, 255, 0.02) 45%), rgba(8, 15, 12, 0.85);
    border: 1px solid rgba(var(--tone-rgb), 0.28); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.buybox__in::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--tone), transparent); }
.buybox__kicker { display: flex; align-items: center; gap: 10px; font: 600 11.5px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--tone); }
.buybox h1 { font-size: clamp(2.6rem, 11vw, 3.6rem); letter-spacing: -0.055em; margin: 10px 0 0; }
.buybox__lead { margin-top: 12px; color: var(--muted); font-size: 15px; }
.buybox .price--big { margin-top: 20px; }
.save { margin-top: 6px; font-size: 13px; color: var(--violet); }
.buybox__actions { display: grid; gap: 10px; margin-top: 22px; }
.buybox__note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.buybox__note a { color: var(--violet); }
.included { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 13.5px; color: var(--muted); }
.included li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.45; }
.included .i { width: 17px; height: 17px; color: var(--tone); margin-top: 1px; }
.included b { color: var(--text); font-weight: 600; }
.paysafe { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; font-size: 12.5px; color: var(--faint); }
.paysafe .i { width: 15px; height: 15px; }
.paysafe span { margin-right: auto; }
.paysafe b { font: 700 10.5px var(--mono); padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }
.buybox__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buybox__nav a { padding: 12px 14px; border-radius: 14px; text-decoration: none; border: 1px solid var(--line); background: var(--glass); transition: border-color 0.2s; }
.buybox__nav a:hover { border-color: var(--line-strong); }
.buybox__nav a.is-next { text-align: right; }
.buybox__nav small { display: block; font-size: 11.5px; color: var(--faint); }
.buybox__nav b { font: 600 14px var(--display); }
.buybox__cmp { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.buybox__cmp:hover { color: var(--violet); }
.buybox__cmp .i { width: 15px; height: 15px; }
.optsel { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.optsel__btn { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--glass); cursor: pointer; text-align: left; }
.optsel__btn.is-on { border-color: var(--violet); background: rgba(var(--violet-rgb), 0.1); }
.optsel__btn b, .optsel__btn small { display: block; }
.optsel__btn small { color: var(--muted); font-size: 12px; }

.prose { color: #cfe0d8; font-size: 15px; line-height: 1.75; }
.prose p + p { margin-top: 12px; }
.prose a { color: var(--violet); }
.prose ul { padding-left: 20px; }

/* Barre d'achat fixe en bas d'écran (téléphone), quand l'encadré d'achat n'est plus visible. */
.mbar {
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 35;
    display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 18px;
    background: rgba(8, 15, 12, 0.88); border: 1px solid rgba(var(--tone-rgb, var(--violet-rgb)), 0.3); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.95);
    transform: translateY(140%); transition: transform 0.45s var(--ease-out);
}
body.show-mbar .mbar { transform: none; }
.mbar__info { min-width: 0; flex: 1; }
.mbar__info b { display: block; font: 600 14px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar .price b { font-size: 14px; color: var(--violet); }
.mbar .price small { font-size: 11px; }

/* ── Pages de messages : merci, paiement, 404 ────────────────────────────── */

.msgpage { position: relative; isolation: isolate; padding: 56px 0 72px; }
.msgpage__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(600px 400px at 50% 10%, rgba(var(--red-rgb), 0.28), transparent 70%); }
.message { text-align: center; padding: 40px 24px; border-radius: 28px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.message .lead { margin: 14px auto 0; max-width: 32em; }
.message__icon { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 18px; display: grid; place-items: center; color: var(--violet); background: rgba(var(--violet-rgb), 0.08); border: 1px solid rgba(var(--violet-rgb), 0.25); }
.message__icon .i { width: 28px; height: 28px; }
.message__icon.is-spin .i { animation: spin 1.4s linear infinite; }
.message__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.big404 { font: 800 clamp(5rem, 24vw, 9rem)/0.9 var(--display); letter-spacing: -0.06em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 12px; }

.thanks { max-width: 760px; margin: 0 auto; text-align: center; }
.thanks .lead { margin: 16px auto 0; max-width: 34em; }
.thanks__seal { position: relative; width: 96px; height: 96px; margin: 0 auto 26px; display: grid; place-items: center; }
.thanks__seal i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(var(--violet-rgb), 0.45); animation: ring 2.6s var(--ease-out) infinite; }
.thanks__seal i + i { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(0.7); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.thanks__seal .i { position: relative; width: 64px; height: 64px; padding: 16px; box-sizing: border-box; border-radius: 50%; color: #04140e; background: var(--violet); stroke-width: 3; box-shadow: 0 0 40px rgba(var(--violet-rgb), 0.6); animation: pop 0.7s var(--ease-out) both; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } 60% { transform: scale(1.1); } }
.timeline { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 10px; text-align: left; }
.timeline li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.timeline li > span { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line-strong); }
.timeline li > span .i { width: 17px; height: 17px; }
.timeline li.is-done > span { color: #04140e; background: var(--violet); border-color: var(--violet); }
.timeline li.is-live { border-color: rgba(var(--violet-rgb), 0.3); }
.timeline li.is-live > span i { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); animation: pulse 1.6s ease-out infinite; }
.timeline b { display: block; font: 600 15px var(--display); }
.timeline small { display: block; margin-top: 3px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.timeline small b { display: inline; font: inherit; color: var(--text); font-weight: 600; }
.thanks__note { display: flex; gap: 14px; align-items: flex-start; margin-top: 18px; padding: 16px 18px; border-radius: 16px; text-align: left; font-size: 14px; color: var(--muted); background: rgba(255, 192, 77, 0.05); border: 1px solid rgba(255, 192, 77, 0.2); }
.thanks__note .i { color: var(--warn); margin-top: 2px; }
.thanks__note b { color: #ffe2a3; }

/* Pages légales. */
.legal h2 { font-size: 1.2rem; margin: 30px 0 10px; color: var(--text); }
.legal h2:first-child { margin-top: 0; }
.legal p + p { margin-top: 10px; }
.news { list-style: none; padding: 0; display: grid; gap: 18px; }
.news time { font: 600 12px var(--mono); color: var(--faint); }

/* Contenu écrit par le serveur pour Google, remplacé au chargement. */
.seo-prerender { padding: 60px 0; color: var(--muted); }
.seo-prerender h1 { font-size: 2rem; margin-bottom: 14px; color: var(--text); }
.seo-list { padding-left: 18px; }

/* ── Pied de page ────────────────────────────────────────────────────────── */

.footer { position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(var(--red-rgb), 0.05), transparent 40%); overflow: hidden; }
.footer__top { display: grid; gap: 34px; padding: 48px 0 10px; }
.footer__brand p { margin-top: 16px; max-width: 26em; color: var(--muted); font-size: 14px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer__social a { font-size: 13px; padding: 7px 12px; border-radius: 99px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); transition: color 0.2s, border-color 0.2s; }
.footer__social a:hover { color: var(--text); border-color: rgba(var(--violet-rgb), 0.4); }
.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.footer__cols h4 { font: 600 11px var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer__cols a { display: block; padding: 5px 0; font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer__cols a:hover { color: var(--violet); }
.footer__word { font: 800 clamp(3.6rem, 19vw, 14rem)/0.85 var(--display); letter-spacing: -0.065em; text-transform: uppercase; white-space: nowrap; text-align: center; margin: 26px 0 -0.06em; user-select: none; background: linear-gradient(180deg, rgba(var(--violet-rgb), 0.16), rgba(var(--violet-rgb), 0) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 20px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }
.footer__bottom p { max-width: 60em; }
.footer__pay { display: flex; gap: 6px; }
.footer__pay span { font: 700 10.5px var(--mono); padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--muted); }

/* ── Panier ──────────────────────────────────────────────────────────────── */

.drawer { position: fixed; inset: 0; z-index: 70; pointer-events: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.35s; }
.drawer__panel {
    position: absolute; right: 0; top: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column;
    background: #070d0b; border-left: 1px solid var(--line-strong); box-shadow: -40px 0 80px -30px rgba(0, 0, 0, 0.9);
    transform: translateX(105%); transition: transform 0.45s var(--ease-out);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.5rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; align-content: start; gap: 10px; }
.drawer__foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); display: grid; gap: 12px; }
.line { display: grid; grid-template-columns: 72px 1fr auto auto; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.025); }
.line__cover { width: 72px; aspect-ratio: 16 / 10; border-radius: 9px; }
.line__cover .ph { padding: 0 8%; }
.line__cover .ph__name { font-size: 17cqi; }
.line__cover .ph__kicker, .line__cover .ph__sub, .line__cover .ph__brand, .line__cover .ph__gem { display: none; }
.line__info { min-width: 0; }
.line__info a { display: block; font: 600 14.5px var(--display); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line__info span { font-size: 12px; color: var(--faint); }
.line__price { font: 700 14px var(--display); }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); display: grid; justify-items: center; gap: 14px; }
.empty__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; color: var(--faint); border: 1px dashed var(--line-strong); }
.empty__icon .i { width: 26px; height: 26px; }
.empty--wide { padding: 60px 10px; }
.coupon { display: flex; gap: 8px; }
.coupon input, .palette input, .search input {
    flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--text); font: 500 14px var(--font);
}
.coupon input:focus { outline: none; border-color: rgba(var(--violet-rgb), 0.5); }
.drawer__total { display: flex; align-items: baseline; justify-content: space-between; }
.drawer__total span { color: var(--muted); font-size: 14px; }
.drawer__total strong { font: 700 1.6rem var(--display); letter-spacing: -0.04em; }
.drawer__steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11.5px; color: var(--muted); text-align: center; }
.drawer__steps li { padding: 8px 4px; border-radius: 10px; background: var(--glass); border: 1px solid var(--line); }
.drawer__steps b { display: block; font: 700 11px var(--mono); color: var(--violet); }
.drawer__hint { font-size: 12.5px; color: var(--faint); text-align: center; }
.upsell { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid rgba(var(--violet-rgb), 0.3); background: rgba(var(--violet-rgb), 0.05); }
.upsell div { flex: 1; }
.upsell strong, .upsell span { display: block; }
.upsell span { font-size: 12.5px; color: var(--muted); }

/* ── Recherche rapide, visionneuse, notifications, Discord flottant ──────── */

.palette { position: fixed; inset: 0; z-index: 80; display: grid; align-items: start; justify-items: center; padding: 12vh 16px 16px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.palette__panel { width: min(560px, 100%); border-radius: 18px; overflow: hidden; background: #08100d; border: 1px solid var(--line-strong); box-shadow: var(--shadow); animation: rise 0.3s var(--ease-out); }
.palette__field { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.palette__field svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.palette input { border: 0; background: none; padding: 0; }
.palette input:focus { outline: none; }
.palette__list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; }
.palette__item.is-on, .palette__item:hover { background: rgba(var(--violet-rgb), 0.08); }
.palette__item img, .palette__ico { width: 56px; aspect-ratio: 16 / 10; border-radius: 7px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--glass); color: var(--muted); }
.palette__item b, .palette__item small { display: block; }
.palette__item small { color: var(--muted); font-size: 12.5px; }
.palette__empty { padding: 20px; text-align: center; color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 50px 12px; background: rgba(2, 4, 3, 0.94); }
.lightbox img { max-height: 85vh; border-radius: 14px; }
.lightbox__close { position: absolute; top: 14px; right: 14px; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 26px; cursor: pointer; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
.lightbox__count { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font: 600 12px var(--mono); color: var(--muted); }

.toast {
    position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 95; max-width: min(92vw, 480px);
    padding: 12px 18px; border-radius: 14px; font-size: 14px; text-align: center; color: var(--text);
    background: rgba(10, 20, 16, 0.94); border: 1px solid rgba(var(--violet-rgb), 0.3); box-shadow: var(--shadow);
    transform: translate(-50%, 160%); opacity: 0; pointer-events: none; transition: transform 0.45s var(--ease-out), opacity 0.3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
body.show-mbar .toast { bottom: calc(96px + env(safe-area-inset-bottom)); }

.fab-discord {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px;
    height: 48px; padding: 0 16px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 14px; color: #fff;
    background: #5865f2; box-shadow: 0 16px 34px -12px rgba(88, 101, 242, 0.85); transition: transform 0.25s var(--ease), opacity 0.3s;
}
.fab-discord svg { width: 20px; height: 20px; }
.fab-discord:hover { transform: translateY(-2px); }
.fab-discord span { display: none; }
body.show-mbar .fab-discord, body.menu-open .fab-discord { opacity: 0; pointer-events: none; }

.admin-strip { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; width: max-content; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 16px; font-size: 13px; background: rgba(20, 15, 5, 0.94); border: 1px solid rgba(255, 192, 77, 0.35); box-shadow: var(--shadow); }
.admin-strip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }

.loading { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.loading__ring { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(var(--violet-rgb), 0.15); border-top-color: var(--violet); animation: spin 0.9s linear infinite; }

/* ── Apparition au défilement, transition de page ────────────────────────── */

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.view-enter { animation: fade 0.45s var(--ease) both; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.25s; }

/* ══ GRANDS ÉCRANS ═════════════════════════════════════════════════════════ */

@media (min-width: 560px) {
    :root { --gutter: 24px; }
    .stats__in { grid-template-columns: repeat(4, 1fr); }
    .stat { padding: 26px 18px 26px 0; }
    .stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
    .stat:nth-child(odd) { padding-right: 18px; }
    .hero__cta .btn { flex: 0 0 auto; }
    .cta__actions .btn { flex: 0 0 auto; }
    .perks, .reviews, .grid { grid-template-columns: repeat(2, 1fr); }
    .feats { grid-template-columns: repeat(2, 1fr); }
    .cart-btn__label { display: inline; }
    .fab-discord span { display: inline; }
    .hero__visual { height: 380px; }
    .timeline { grid-template-columns: repeat(3, 1fr); }
    .timeline li { flex-direction: column; }
}

@media (min-width: 760px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    /* Fine ligne qui relie les trois étapes. */
    .steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 48px; height: 1px; z-index: -1; background: linear-gradient(90deg, transparent, rgba(var(--violet-rgb), 0.45), transparent); }
    .ranks { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 0; padding: 0; gap: 16px; }
    .footer__top { grid-template-columns: 1.1fr 1.4fr; }
    .footer__cols { grid-template-columns: repeat(3, 1fr); }
    .cta { grid-template-columns: 1.4fr auto; align-items: center; padding: 48px; }
    .cta__actions { flex-direction: column; }
    .message { padding: 56px 48px; }
    .phead { padding: 46px 0 40px; }
}

@media (min-width: 1000px) {
    :root { --top: 72px; }
    body { font-size: 16px; }
    .nav { display: flex; align-items: center; gap: 2px; margin-left: 26px; }
    .nav a { position: relative; padding: 8px 13px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s, background-color 0.2s; }
    .nav a:hover { color: var(--text); background: var(--glass); }
    .nav a.is-on { color: var(--text); }
    .nav a.is-on::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--violet)); box-shadow: 0 0 10px rgba(var(--violet-rgb), 0.6); }
    .nav__discord { margin-left: 6px; }
    .burger { display: none; }
    .hero { padding: 56px 0 84px; min-height: min(780px, calc(100vh - var(--top))); display: flex; align-items: center; }
    .hero > .wrap { width: min(1240px, 100% - 2 * var(--gutter)); }
    .hero__in { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
    .hero__visual { height: 480px; }
    .deck__card { container-type: inline-size; width: 80%; }
    .hero__visual { margin-right: -10px; }
    .chip--price { left: -2%; bottom: 8%; }
    .chip--live { right: -2%; top: 10%; }
    .section { padding: 96px 0; }
    .section--tight { padding-top: 30px; }
    .shead { margin-bottom: 40px; }
    .perks { grid-template-columns: repeat(4, 1fr); }
    .reviews, .grid { grid-template-columns: repeat(3, 1fr); }
    .ranks { grid-template-columns: repeat(3, 1fr); }
    .faqwrap { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
    .faqwrap__side { position: sticky; top: calc(var(--top) + 30px); }
    .pdp { padding-top: 34px; }
    .pdp__grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 34px; align-items: start; }
    .buybox { position: sticky; top: calc(var(--top) + 22px); }
    .buybox h1 { font-size: 3.4rem; }
    .mbar { left: 50%; right: auto; width: min(560px, 100% - 40px); transform: translate(-50%, 140%); }
    body.show-mbar .mbar { transform: translate(-50%, 0); }
    .msgpage { padding: 90px 0 110px; }
}

/* Cinq grades côte à côte sur grand écran. */
@media (min-width: 1280px) {
    .ranks { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
    .rank__body { padding: 18px 18px 20px; }
    .rank h3 { font-size: 1.45rem; }
    .rank__price b { font-size: 1.8rem; }
    .rank__cta { grid-template-columns: 1fr; }
}

/* Moins d'animations : tout est affiché immédiatement, rien ne bouge. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ══ Repris de l'ancienne feuille : page de maintenance et décors d'événement ══ */
/* ══ MAINTENANCE ═══════════════════════════════════════════════════════════ */

body.is-maintenance .nav, body.is-maintenance .search-btn, body.is-maintenance .cart-btn, body.is-maintenance .burger,
body.is-maintenance .fab-discord, body.is-maintenance .announce, body.is-maintenance .footer__cols, body.is-maintenance .demo-banner { display: none !important; }
body.is-maintenance .footer { margin-top: 0; }
.mnt { position: relative; min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 40px 16px 72px; isolation: isolate; }
.mnt__scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.mnt__art { position: absolute; inset: 0; background: radial-gradient(800px 520px at 20% 10%, rgba(var(--red-rgb), 0.24), transparent 70%), radial-gradient(900px 600px at 85% 90%, rgba(var(--violet-rgb), 0.3), transparent 70%); }
.mnt__art::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.2px); background-size: 28px 28px; -webkit-mask: radial-gradient(60% 60% at 50% 45%, #000, transparent 80%); mask: radial-gradient(60% 60% at 50% 45%, #000, transparent 80%); }
.mnt__beams, .mnt__floor { display: none; }
.mnt__word { position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%); white-space: nowrap; user-select: none; font: 700 clamp(4rem, 17vw, 16rem)/1 var(--display); letter-spacing: -0.06em; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mnt__preview { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; width: max-content; max-width: calc(100% - 32px); padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #ffd98a; text-align: center; background: rgba(20, 14, 4, 0.8); border: 1px solid rgba(255, 192, 77, 0.3); }
.mnt__preview a { color: #fff; }
.mnt__inner { position: relative; width: min(880px, 100%); text-align: center; animation: rise 0.9s var(--ease) both; }
.mnt__logo { position: relative; width: 120px; height: 120px; margin: 0 auto 26px; display: grid; place-items: center; }
.mnt__logo::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--red-rgb), 0.4), rgba(var(--violet-rgb), 0.2) 55%, transparent); }
.mnt__logo img { position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 22px; }
.mnt__ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, var(--red), var(--violet), transparent 62%, var(--red)); -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(closest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: spin 6s linear infinite; }
.mnt__ring--b { inset: -14px; opacity: 0.4; animation-duration: 12s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.mnt__status { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px; font: 600 12px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #ffd98a; background: rgba(255, 192, 77, 0.08); border: 1px solid rgba(255, 192, 77, 0.28); }
.mnt__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); animation: pulse 1.8s ease-out infinite; }
.mnt__title { margin: 20px 0 14px; font: 700 clamp(2.5rem, 7vw, 5rem)/1.02 var(--display); letter-spacing: -0.05em; }
.mnt__msg { margin: 0 auto; max-width: 36em; color: var(--muted); font-size: 1.08rem; white-space: pre-line; }
.mnt__count { display: flex; justify-content: center; gap: 12px; margin: 34px auto 0; }
.mnt__unit { width: 100px; padding: 16px 0 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); }
.mnt__unit b { display: block; font: 700 42px/1 var(--mono); font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mnt__unit b.is-tick { animation: tick 0.45s var(--ease); }
@keyframes tick { from { transform: translateY(-35%); opacity: 0; } }
.mnt__unit span { display: block; margin-top: 8px; font: 600 11px var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.mnt__bar { margin: 32px auto 0; width: min(420px, 80%); height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mnt__bar i { display: block; width: 35%; height: 100%; border-radius: inherit; background: var(--grad); animation: slide 1.9s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
.mnt__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.mnt__tease { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
.mnt__tease li { padding: 18px 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); animation: rise 0.8s var(--ease) both; animation-delay: calc(300ms + var(--d, 0ms)); }
.mnt__tease svg { width: 24px; height: 24px; padding: 7px; box-sizing: content-box; border-radius: 10px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; background: var(--grad); }
.mnt__tease b { display: block; margin-top: 12px; font: 700 15px var(--display); }
.mnt__tease span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.mnt__foot { margin-top: 30px; font-size: 13px; color: var(--faint); }
.mnt__foot a { color: var(--muted); }

/* ══ THÈMES D'ÉVÉNEMENT (décors injectés par events.js) ═══════════════════ */

.evx-garland { position: absolute; left: 0; right: 0; top: 100%; height: 40px; z-index: 2; pointer-events: none; background-repeat: repeat-x; background-size: auto 100%; background-position: center top; }
.evx-corner { position: absolute; top: 0; left: 0; width: clamp(130px, 13vw, 220px); aspect-ratio: 1; z-index: 30; pointer-events: none; background: left top / contain no-repeat; opacity: 0.85; }
.evx-corner--r { left: auto; right: 0; transform: scaleX(-1); }
.evx-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-repeat: no-repeat, no-repeat, repeat, repeat; background-size: auto, auto, 240px 240px, 240px 240px; background-position: 0 0, 0 0, 0 0, 120px 120px; }
.evx-badge {
    display: flex; width: max-content; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 14px 5px 6px; border-radius: 999px;
    font: 600 13px/1 var(--font); letter-spacing: 0; white-space: nowrap; color: #fff;
    background: linear-gradient(90deg, rgba(var(--red-rgb), 0.22), rgba(var(--violet-rgb), 0.2)); border: 1px solid rgba(var(--red-rgb), 0.4);
}
.evx-badge i { width: 22px; height: 22px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.evx-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(700px 380px at 72% 30%, rgba(var(--ev-glow, var(--red-rgb)), 0.18), transparent 70%); }
/* Pas de décor d'événement sur la vitrine : il masquait les légendes. */
.stage3d .evx-stage { display: none; }
.evx-stage { position: absolute; z-index: 5; pointer-events: none; background: center / contain no-repeat; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.6)); }
.evx-stage--main { width: 110px; height: 110px; left: -4%; bottom: 0; top: auto; animation: floaty 6s ease-in-out infinite; }
.evx-stage--side { display: none; }
.evx-cta { position: absolute; right: 40px; top: 50%; width: 180px; height: 180px; margin-top: -90px; z-index: -1; pointer-events: none; background: center / contain no-repeat; opacity: 0.9; }
body.has-event .cta__mark { display: none; }
body.has-event .card::before, body.has-event .cta::before, body.has-event .buybox::before {
    content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 12px; z-index: 4; pointer-events: none; background-repeat: repeat-x; background-size: auto 100%;
}
body.has-event .card:hover { box-shadow: 0 30px 60px -30px rgba(var(--ev-glow, var(--red-rgb)), 0.7); }
body.has-event .eyebrow::before { width: 16px; height: 16px; background: center / contain no-repeat; }
body.has-event .footer__word { background: linear-gradient(180deg, rgba(var(--ev-glow, var(--red-rgb)), 0.22), transparent 80%); -webkit-background-clip: text; background-clip: text; }
.evx-ground { position: relative; z-index: 1; height: 150px; margin-top: 24px; margin-bottom: -110px; pointer-events: none; background-repeat: repeat-x; background-size: auto 100%; background-position: center bottom; }
.evx-ground::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--bg)); }
.evx-motif { position: absolute; bottom: 34px; width: 84px; height: 84px; background: center bottom / contain no-repeat; animation: floaty 5s ease-in-out infinite; }
.evx-motif.evx-motif--main { left: 7%; }
.evx-motif.evx-motif--side { right: 7%; width: 70px; height: 70px; animation-delay: -2.5s; }
.evx-fall { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; contain: strict; }
.evx-fall i { position: absolute; top: 0; display: block; background: center / contain no-repeat; opacity: 0.85; will-change: transform; animation: evx-fall linear infinite; }
@keyframes evx-fall { from { transform: translate3d(0, -8vh, 0) rotate(0deg); } to { transform: translate3d(var(--dx, 0px), 108vh, 0) rotate(var(--rot, 180deg)); } }
.evx-flyer { position: fixed; top: 90px; left: 0; z-index: 3; pointer-events: none; width: 100%; height: 0; }
.evx-fly { position: absolute; left: 0; top: 0; width: 46px; height: 46px; background: center / contain no-repeat; will-change: transform; animation: evx-fly 26s linear infinite; animation-delay: 4s; opacity: 0; }
@keyframes evx-fly { 0% { transform: translate3d(-80px, 40px, 0); opacity: 0; } 2% { opacity: 1; } 30% { transform: translate3d(calc(100vw + 80px), -10px, 0); opacity: 1; } 31%, 100% { transform: translate3d(calc(100vw + 80px), -10px, 0); opacity: 0; } }
.message, .drawer__head { position: relative; }
body.has-event .message::before, body.has-event .drawer__head::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; pointer-events: none; background-repeat: repeat-x; background-size: auto 100%; }
body.is-admin-view .evx-fall, body.is-admin-view .evx-flyer { display: none; }


@media (max-width: 759px) {
    .mnt__tease { grid-template-columns: repeat(2, 1fr); }
    .mnt__count { gap: 8px; }
    .mnt__unit { width: 72px; }
    .mnt__unit b { font-size: 30px; }
}


/* ============================================================================
   v2 (2026-10-15) — FOND ANIMÉ + COUVERTURES VIVANTES DES GRADES
   Fond : canvas WebGL posé par fx.js (classe has-bgfx sur <html>) ; s'il
   manque, le dégradé de .bgfx reste affiché (classe bgfx-off).
   Couvertures : covers.js (structure + emblèmes), fx.js (inclinaison).
   ========================================================================== */

/* ── Fond ────────────────────────────────────────────────────────────────── */
.bgfx {
    position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none;
    background:
        radial-gradient(1200px 640px at 50% -12%, rgba(var(--red-rgb), 0.3), transparent 66%),
        radial-gradient(760px 560px at 100% 18%, rgba(var(--violet-rgb), 0.07), transparent 70%),
        radial-gradient(900px 700px at 0% 70%, rgba(var(--red-rgb), 0.08), transparent 70%),
        #040706;
    opacity: 0; transition: opacity 1.4s ease;
}
.bgfx.is-on, .bgfx-off .bgfx { opacity: 1; }
html.has-bgfx body { background: transparent; }
html.has-bgfx body::before { display: none; }
/* Grain de pellicule, très léger, à pleine résolution (au-dessus du fond, sous le contenu). */
html.has-bgfx body::after {
    content: ""; position: fixed; inset: -60px; z-index: -1; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 0.9s steps(5) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-22px, 14px); } 40% { transform: translate(18px, -26px); } 60% { transform: translate(-12px, -8px); } 80% { transform: translate(26px, 20px); } }
html.has-bgfx .hero__aurora { display: none; }
html.has-bgfx .hero__grid { opacity: 0.55; }
body.is-admin-view .bgfx { display: none; }
/* Grand mot du héros : simple filigrane, il ne doit plus rien disputer au texte. */
.hero__word {
    -webkit-text-stroke: 1px rgba(var(--violet-rgb), 0.045);
    background: linear-gradient(180deg, rgba(var(--violet-rgb), 0.05), transparent 70%); -webkit-background-clip: text; background-clip: text;
    -webkit-mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent); mask: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.footer__word { background: linear-gradient(180deg, rgba(var(--violet-rgb), 0.11), rgba(var(--violet-rgb), 0) 78%); -webkit-background-clip: text; background-clip: text; }
.footer { background: linear-gradient(180deg, rgba(4, 8, 7, 0.55), rgba(3, 6, 5, 0.85)); backdrop-filter: blur(2px); }

/* ── Couverture vivante : carte de métal ─────────────────────────────────── */
@property --px { syntax: "<number>"; inherits: true; initial-value: 0.5; }
@property --py { syntax: "<number>"; inherits: true; initial-value: 0.4; }

.uc {
    position: absolute; inset: 0; display: block; container: uc / inline-size; isolation: isolate; color: var(--m1);
    -webkit-user-select: none; user-select: none;
    animation: uc-idle 12s ease-in-out infinite alternate;
}
.uc:not(.is-vis), .uc:not(.is-vis) * { animation-play-state: paused !important; }
.uc.is-hover { animation: none; }
@keyframes uc-idle { 0% { --px: 0.15; --py: 0.2; } 50% { --px: 0.62; --py: 0.42; } 100% { --px: 0.92; --py: 0.8; } }

.uc--t1 { --m1: #f5f9f7; --m2: #c9d4d0; --m3: #7f8d88; --m4: #222b28; --acc: #5ff5c4; --glow: 49, 240, 179; --foil-o: 0.18; --line-o: 0.13;
    --foil: repeating-linear-gradient(115deg, #e9f2ef 0%, #9fb2ab 6%, #b8ffe3 12%, #dfe9e6 18%, #8aa39a 24%, #e9f2ef 30%); }
.uc--t2 { --m1: #ecfff7; --m2: #8ef3cb; --m3: #22b07f; --m4: #053a29; --acc: #6dffcf; --glow: 49, 240, 179; --foil-o: 0.2; --line-o: 0.15;
    --foil: repeating-linear-gradient(115deg, #b8ffe6 0%, #3fe0a8 7%, #e0fff3 13%, #11946b 20%, #8cffd6 26%, #b8ffe6 32%); }
.uc--t3 { --m1: #f0fffe; --m2: #9cf7f2; --m3: #25b8c2; --m4: #053741; --acc: #74f6ff; --glow: 64, 226, 240; --foil-o: 0.32; --line-o: 0.2;
    --foil: repeating-linear-gradient(115deg, #ff7ad9 0%, #ffd27a 6%, #8affc1 12%, #6fe7ff 18%, #a98bff 24%, #ff7ad9 30%); }
.uc--t4 { --m1: #fff9e6; --m2: #f0dba4; --m3: #b8944a; --m4: #3e2e10; --acc: #f3dfa6; --glow: 236, 204, 130; --foil-o: 0.2; --line-o: 0.17;
    --foil: repeating-linear-gradient(115deg, #fff3cf 0%, #d6ac5a 7%, #fffaf0 13%, #a37a2c 20%, #f5dfa0 26%, #fff3cf 32%); }
.uc--t5 { --m1: #fffbea; --m2: #ffda7e; --m3: #d99322; --m4: #4e2803; --acc: #ffd36e; --glow: 255, 186, 72; --foil-o: 0.24; --line-o: 0.17;
    --foil: repeating-linear-gradient(115deg, #fff1c2 0%, #e09a2a 7%, #fff8e0 13%, #b06a12 20%, #ffe08a 26%, #fff1c2 32%); }

.uc__in { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background: #050807; }
.uc__base::after { content: ""; position: absolute; inset: 0; background: radial-gradient(125% 125% at 42% 40%, transparent 52%, rgba(0, 0, 0, 0.5)); }
.uc__base, .uc__guil, .uc__foil, .uc__veins, .uc__sweep, .uc__glare, .uc__edge { position: absolute; inset: 0; pointer-events: none; }

/* Matières */
.uc--t1 .uc__base { background:
    radial-gradient(62% 92% at 77% 50%, rgba(49, 240, 179, 0.2), transparent 62%),
    linear-gradient(165deg, rgba(236, 246, 242, 0.2) 0%, rgba(236, 246, 242, 0.05) 26%, transparent 44%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, rgba(0, 0, 0, 0.06) 1px 2px, transparent 2px 4px),
    conic-gradient(from 200deg at 28% 125%, #1d2624, #3e4a47 10%, #171e1c 22%, #303b38 38%, #121816 58%, #36433f 78%, #1d2624); }
.uc--t2 .uc__base { background:
    radial-gradient(58% 90% at 77% 50%, rgba(49, 240, 179, 0.3), transparent 60%),
    radial-gradient(38% 50% at 12% 88%, rgba(49, 240, 179, 0.12), transparent 70%),
    radial-gradient(30% 40% at 38% 6%, rgba(170, 255, 225, 0.1), transparent 70%),
    linear-gradient(165deg, rgba(220, 255, 240, 0.12), transparent 32%),
    linear-gradient(128deg, #10513c 0%, #072b1f 38%, #04170f 62%, #0a3828 100%); }
.uc--t3 .uc__base { background:
    radial-gradient(58% 90% at 77% 50%, rgba(80, 236, 250, 0.22), transparent 60%),
    conic-gradient(from 140deg at 77% 50%, rgba(255, 120, 220, 0.09), rgba(80, 240, 250, 0.12), rgba(120, 255, 170, 0.09), rgba(255, 220, 120, 0.08), rgba(170, 130, 255, 0.1), rgba(255, 120, 220, 0.09)),
    linear-gradient(165deg, rgba(220, 255, 255, 0.12), transparent 32%),
    linear-gradient(128deg, #093f49 0%, #04232b 40%, #021116 65%, #062e37 100%); }
.uc--t4 .uc__base { background:
    radial-gradient(54% 86% at 77% 50%, rgba(240, 210, 140, 0.22), transparent 62%),
    linear-gradient(165deg, rgba(255, 240, 205, 0.1), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255, 236, 190, 0.022) 0 2px, transparent 2px 6px),
    linear-gradient(128deg, #211a10 0%, #0d0b07 40%, #060504 65%, #17120a 100%); }
.uc--t5 .uc__base { background:
    radial-gradient(50% 82% at 77% 48%, rgba(255, 186, 72, 0.3), transparent 62%),
    radial-gradient(120% 80% at 8% 125%, rgba(255, 130, 20, 0.14), transparent 60%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.09), transparent 28%),
    linear-gradient(128deg, #151210 0%, #070606 45%, #020202 70%, #0e0a06 100%); }

/* Guilloché irisé (les lignes prennent la teinte de la feuille holographique). */
.uc__guil {
    background: var(--foil); background-size: 260% 260%; background-position: calc(var(--px) * 100%) calc(var(--py) * 100%);
    opacity: var(--line-o); mix-blend-mode: screen;
    -webkit-mask: var(--gmask) center / cover no-repeat, linear-gradient(90deg, rgba(0, 0, 0, 0.3) 15%, #000 62%); -webkit-mask-composite: source-in;
    mask: var(--gmask) center / cover no-repeat intersect, linear-gradient(90deg, rgba(0, 0, 0, 0.3) 15%, #000 62%);
    transform: translate(calc((var(--px) - 0.5) * -1.6cqi), calc((var(--py) - 0.5) * -1.6cqi)) scale(1.03);
}
/* Veines d'or en fusion (PRESTIGE). */
.uc__veins {
    background: linear-gradient(100deg, rgba(255, 160, 40, 0.1) 0%, rgba(255, 160, 40, 0.1) 38%, #ffc55a 46%, #fff4cc 50%, #ffc55a 54%, rgba(255, 160, 40, 0.1) 62%) 0 0 / 320% 100%;
    -webkit-mask: var(--vmask) center / cover no-repeat; mask: var(--vmask) center / cover no-repeat;
    animation: uc-molten 7s linear infinite; opacity: 0.85;
}
@keyframes uc-molten { from { background-position: 100% 0; } to { background-position: -40% 0; } }
/* Feuille holographique qui suit le curseur. */
.uc__foil {
    background: var(--foil); background-size: 320% 320%; background-position: calc(var(--px) * 100%) calc(var(--py) * 100%);
    mix-blend-mode: color-dodge; opacity: var(--foil-o);
    -webkit-mask: radial-gradient(circle at calc(var(--px) * 100%) calc(var(--py) * 100%), #000 0, rgba(0, 0, 0, 0.45) 32%, rgba(0, 0, 0, 0.08) 70%);
    mask: radial-gradient(circle at calc(var(--px) * 100%) calc(var(--py) * 100%), #000 0, rgba(0, 0, 0, 0.45) 32%, rgba(0, 0, 0, 0.08) 70%);
}
.uc.is-hover .uc__foil { opacity: calc(var(--foil-o) * 1.5); }

/* Halo + rayons derrière l'emblème. */
.uc__aura {
    position: absolute; right: 1cqi; top: 50%; width: 50cqi; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
    transform: translateY(-50%); background: radial-gradient(closest-side, rgba(var(--glow), 0.34), rgba(var(--glow), 0.08) 55%, transparent);
}
.uc--t3 .uc__aura::before, .uc--t4 .uc__aura::before, .uc--t5 .uc__aura::before {
    content: ""; position: absolute; inset: -18%; border-radius: 50%;
    background: repeating-conic-gradient(from 0deg, rgba(var(--glow), 0) 0deg 6deg, rgba(var(--glow), 0.26) 8.5deg, rgba(var(--glow), 0) 11deg 15deg);
    -webkit-mask: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, 0.35) 52%, transparent 78%); mask: radial-gradient(closest-side, #000 18%, rgba(0, 0, 0, 0.35) 52%, transparent 78%);
    animation: uc-spin 60s linear infinite;
}
.uc--t3 .uc__aura::before { background: conic-gradient(from 0deg, #ff7ad9, #ffd27a, #8affc1, #6fe7ff, #a98bff, #ff7ad9); opacity: 0.22;
    -webkit-mask: radial-gradient(closest-side, transparent 52%, #000 60%, transparent 70%); mask: radial-gradient(closest-side, transparent 52%, #000 60%, transparent 70%); animation-duration: 14s; }
.uc--t5 .uc__aura { background: radial-gradient(closest-side, rgba(255, 200, 90, 0.45), rgba(255, 150, 40, 0.12) 55%, transparent); }
.uc--t5 .uc__aura::before { animation-duration: 36s; }
@keyframes uc-spin { to { transform: rotate(360deg); } }

/* Emblème */
.uc__emb {
    position: absolute; right: 5.5cqi; top: 50%; width: 41cqi; height: 41cqi; pointer-events: none;
    transform: translate(calc((var(--px) - 0.5) * 3.2cqi), calc(-50% + (var(--py) - 0.5) * 3.2cqi));
    filter: drop-shadow(0 1.4cqi 1.8cqi rgba(0, 0, 0, 0.7)) drop-shadow(0 0 2.6cqi rgba(var(--glow), 0.32));
}
.uc-emb { display: block; width: 100%; height: 100%; overflow: visible; }
.uc-shine { transform: translateX(-70px); animation: uc-shine 6s ease-in-out infinite; }
@keyframes uc-shine { 0%, 8% { transform: translateX(-70px); } 42%, 100% { transform: translateX(200px); } }
.uc--t2 .uc-shine { animation-delay: -1.2s; } .uc--t3 .uc-shine { animation-delay: -2.4s; } .uc--t4 .uc-shine { animation-delay: -3.6s; } .uc--t5 .uc-shine { animation-delay: -4.8s; }

/* Textes */
.uc__top { position: absolute; left: 6cqi; top: 5.6cqi; display: flex; align-items: center; gap: 1.4cqi; color: var(--m2); }
.uc__logo { width: max(11px, 3.3cqi); height: max(11px, 3.3cqi); filter: drop-shadow(0 0 0.8cqi rgba(var(--glow), 0.45)); }
.uc__logo-a { fill: var(--acc); }
.uc__brand { font: 700 max(7.5px, 1.6cqi)/1 var(--mono); letter-spacing: 0.34em; text-transform: uppercase; color: var(--m2); opacity: 0.78; }
.uc__txt {
    position: absolute; left: 6cqi; top: 50%; display: flex; flex-direction: column; gap: 1.3cqi; max-width: 58%;
    transform: translate(calc((var(--px) - 0.5) * 1.2cqi), calc(-50% + (var(--py) - 0.5) * 1.2cqi));
}
.uc__kicker { font: 700 max(7.5px, 1.6cqi)/1 var(--mono); letter-spacing: 0.3em; text-transform: uppercase; color: var(--acc); opacity: 0.92; }
.uc__name {
    display: block; font: 800 calc(var(--fs, 14) * 1cqi)/0.92 var(--display); letter-spacing: -0.045em; white-space: nowrap; padding: 0.04em 0.06em 0.08em 0;
    background:
        linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.95) 50%, transparent 58%) 100% 0 / 300% 100% no-repeat,
        linear-gradient(180deg, var(--m1) 6%, var(--m2) 38%, var(--m3) 55%, var(--m2) 76%, var(--m1) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: drop-shadow(0 0.35cqi 0.7cqi rgba(0, 0, 0, 0.65)) drop-shadow(0 0 2.2cqi rgba(var(--glow), 0.22));
    animation: uc-name 7s ease-in-out infinite;
}
@keyframes uc-name { 0%, 55% { background-position: 100% 0, 0 0; } 85%, 100% { background-position: 0% 0, 0 0; } }
.uc__bot { position: absolute; left: 6cqi; right: 6cqi; bottom: 5.6cqi; display: flex; align-items: center; justify-content: space-between; }
.uc__pips { display: flex; gap: 1.2cqi; }
.uc__pip { width: max(5px, 1.3cqi); height: max(5px, 1.3cqi); transform: rotate(45deg); border: 1px solid rgba(255, 255, 255, 0.2); }
.uc__pip.is-on { border-color: transparent; background: linear-gradient(135deg, var(--m1), var(--m3)); box-shadow: 0 0 1.2cqi rgba(var(--glow), 0.7); }
.uc__no { font: 600 max(7.5px, 1.55cqi)/1 var(--mono); letter-spacing: 0.22em; color: var(--m2); opacity: 0.7; }

/* Étincelles, poussière d'or, balayage lumineux, reflet, filets */
.uc__sp {
    position: absolute; left: var(--x); top: var(--y); width: calc(var(--s) * 1cqi); height: calc(var(--s) * 1cqi); margin: calc(var(--s) * -0.5cqi) 0 0 calc(var(--s) * -0.5cqi);
    background:
        radial-gradient(closest-side, #fff 0, rgba(255, 255, 255, 0.85) 10%, rgba(var(--glow), 0.35) 30%, transparent 62%),
        linear-gradient(90deg, transparent 0, rgba(255, 255, 255, 0.9) 50%, transparent 100%) center / 100% 6% no-repeat,
        linear-gradient(0deg, transparent 0, rgba(255, 255, 255, 0.9) 50%, transparent 100%) center / 6% 100% no-repeat;
    opacity: 0; mix-blend-mode: screen; pointer-events: none; animation: uc-tw var(--t) ease-in-out var(--d) infinite;
}
@keyframes uc-tw { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(40deg); } 60% { opacity: 0.7; transform: scale(0.85) rotate(55deg); } }
.uc__dust {
    position: absolute; left: var(--x); bottom: -2%; width: calc(var(--s) * 1cqi); height: calc(var(--s) * 1cqi); border-radius: 50%; pointer-events: none;
    background: rgb(var(--glow)); box-shadow: 0 0 1.2cqi rgba(var(--glow), 0.9); opacity: 0; animation: uc-rise var(--t) linear var(--d) infinite;
}
@keyframes uc-rise { 0% { transform: translate(0, 0); opacity: 0; } 15% { opacity: 0.85; } 70% { opacity: 0.5; } 100% { transform: translate(3cqi, -62cqi); opacity: 0; } }
.uc__sweep {
    inset: -10% -40%; mix-blend-mode: screen;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 45%, rgba(255, 255, 255, 0.13) 50%, rgba(255, 255, 255, 0.04) 55%, transparent 60%);
    transform: translateX(-70%); animation: uc-sweep 8s ease-in-out infinite;
}
.uc--t2 .uc__sweep { animation-delay: -1.5s; } .uc--t3 .uc__sweep { animation-delay: -3s; } .uc--t4 .uc__sweep { animation-delay: -4.5s; } .uc--t5 .uc__sweep { animation-delay: -6s; }
@keyframes uc-sweep { 0%, 50% { transform: translateX(-70%); } 80%, 100% { transform: translateX(70%); } }
.uc__glare {
    mix-blend-mode: overlay; opacity: 0.6; transition: opacity 0.35s;
    background: radial-gradient(circle at calc(var(--px) * 100%) calc(var(--py) * 100%), rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.06) 24%, transparent 50%);
}
.uc.is-hover .uc__glare { opacity: 1; }
.uc__frame { position: absolute; inset: 3cqi; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 1.6cqi; pointer-events: none; }
.uc--t4 .uc__frame, .uc--t5 .uc__frame { border-color: rgba(var(--glow), 0.2); }
.uc--t5 .uc__frame { box-shadow: inset 0 0 0 0.5cqi rgba(0, 0, 0, 0), inset 0 0 0 calc(0.5cqi + 1px) rgba(var(--glow), 0.08); }
.uc__edge {
    border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.06) 28%, rgba(255, 255, 255, 0) 60%, rgba(var(--glow), 0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* Carte détachée (héros, fiche) : coins arrondis, ombre, inclinaison 3D. */
.uc--card {
    border-radius: 18px; transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.8s var(--ease-out);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(0, 0, 0, 0.6), 0 30px 90px -50px rgba(var(--glow), 0.75);
}
.uc--card.is-tilt { transition: transform 0.1s linear; }

/* Petites tailles : panier (emblème seul), cartes étroites. */
@container uc (max-width: 160px) {
    .uc__top, .uc__txt, .uc__bot, .uc__sp, .uc__dust, .uc__frame { display: none; }
    .uc__emb { right: 50%; width: 66cqi; height: 66cqi; transform: translate(50%, -50%); }
    .uc__aura { right: 50%; transform: translate(50%, -50%); width: 90cqi; }
}
/* Carte étroite (grille des grades) : nom en bas à gauche, emblème en haut à droite. */
@container uc (max-width: 330px) {
    .uc__brand { letter-spacing: 0.22em; }
    .uc__emb { width: 37cqi; height: 37cqi; right: 6cqi; top: 44%; }
    .uc__aura { top: 44%; width: 46cqi; }
    .uc__txt { top: auto; bottom: 14cqi; transform: translate(calc((var(--px) - 0.5) * 1.2cqi), calc((var(--py) - 0.5) * 1.2cqi)); max-width: 88%; gap: 1.8cqi; }
    .uc__name { font-size: min(calc(var(--fs, 14) * 1.12cqi), calc(80cqi / var(--len, 5))); }
    .uc__kicker { letter-spacing: 0.2em; }
}

/* Intégration dans les pages */
.cover--live { background: #050807; }
.deck__card--live { overflow: visible; background: none; border: 0; box-shadow: none; border-radius: 18px; }
.pdp__cover.cover--live { overflow: visible; background: none; border: 0; box-shadow: none; cursor: default; }
.pdp__cover.cover--live .uc { border-radius: var(--r-lg); }
.pdp__cover.cover--live .badge { z-index: 3; top: 16px; right: 16px; }
.rank__cover.cover--live { border-bottom-color: rgba(255, 255, 255, 0.06); }
.rank.reveal.is-in {
    transform: perspective(1200px) translateY(var(--lift, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: opacity 0.8s var(--ease-out) var(--d, 0ms), transform 0.7s var(--ease-out), border-color 0.3s, box-shadow 0.45s;
}
.rank.reveal.is-in:hover { --lift: -6px; }
.rank.reveal.is-in.is-tilt { transition: opacity 0.8s, transform 0.12s linear, border-color 0.3s, box-shadow 0.45s; }
.rank--t4, .rank--t5 { background: linear-gradient(180deg, rgba(var(--tone-rgb), 0.06), rgba(255, 255, 255, 0.012) 40%), #0a0b08; }
.cmp__emb { display: block; width: 42px; height: 42px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6)); }
.cmp__emb .uc-emb { width: 100%; height: 100%; }

@media (prefers-reduced-motion: reduce) {
    html.has-bgfx body::after { animation: none; }
    .uc, .uc *, .uc *::before { animation: none !important; }
    .uc__sp { opacity: 0.8; transform: none; }
    .uc--card, .rank.reveal.is-in { transform: none; }
}
