:root {
    --bg: #0b0d14;
    --bg-2: #10131c;
    --surface: #151926;
    --surface-2: #1b2031;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #eef0f6;
    --muted: #9ba2b6;
    --faint: #6b7287;
    --blurple: #5865f2;
    --blurple-hover: #6b76f4;
    --blurple-soft: rgba(88, 101, 242, 0.14);
    --yellow: #fee75c;
    --green: #3ba55d;
    --green-text: #57f287;
    --red: #ed4245;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --display: "Sora", var(--font);
    --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.9em; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blurple-hover); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: 96px 0; }
.section[data-flush] { padding-top: 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blurple-hover);
    margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }

/* ---------- Boutons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font: 600 15px/1 var(--font);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blurple); color: #fff; }
.btn-primary:hover { background: var(--blurple-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(11, 13, 20, 0.78);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 17px var(--display); text-decoration: none; }
.logo-mark {
    width: 32px; height: 32px; border-radius: 9px;
    display: grid; place-items: center;
    background: linear-gradient(135deg, var(--blurple), #8b5cf6);
    font-size: 16px;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }

@media (max-width: 820px) {
    .nav-toggle { display: block; }
    .nav-links, .nav .nav-cta { display: none; }
    .nav.open .nav-links {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 68px; left: 0; right: 0;
        background: var(--bg-2); border-bottom: 1px solid var(--border);
        padding: 8px 16px 16px;
    }
    .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 72px; overflow: hidden; }
.hero::before {
    content: "";
    position: absolute; inset: -40% -10% auto;
    height: 720px;
    background: radial-gradient(closest-side, rgba(88, 101, 242, 0.28), transparent 70%);
    pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--blurple-hover); }
.hero-lead { color: var(--muted); font-size: 18px; margin-top: 22px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin-top: 22px; color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span::before { content: "✓ "; color: var(--green-text); }

@media (max-width: 900px) {
    .hero { padding-top: 48px; }
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Maquette Discord ---------- */
.discord {
    background: #313338;
    border-radius: var(--radius);
    box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06);
    font-size: 14px;
    color: #dbdee1;
    overflow: hidden;
}
.dc-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #26272b; color: #f2f3f5; font-weight: 600; }
.dc-top .hash { color: #80848e; font-size: 20px; line-height: 1; }
.dc-feed { padding: 16px 16px 20px; display: grid; gap: 16px; }
.dc-msg { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blurple); font-size: 19px; }
.dc-author { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.dc-author b { color: #f2f3f5; font-weight: 600; }
.dc-tag { background: var(--blurple); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 4px; }
.dc-time { color: #949ba4; font-size: 12px; }
.dc-embed {
    margin-top: 6px;
    background: #2b2d31;
    border-left: 4px solid #57f287;
    border-radius: 4px;
    padding: 12px 16px 14px;
    max-width: 440px;
    transition: border-color 0.4s;
}
.dc-embed-title { color: #f2f3f5; font-weight: 700; margin-bottom: 10px; }
.dc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.dc-fields .full { grid-column: 1 / -1; }
.dc-fields b { display: block; color: #f2f3f5; font-size: 13px; }
.dc-fields span { font-size: 13.5px; }
.dc-status { transition: opacity 0.25s; }
.dc-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dc-buttons span { padding: 6px 12px; border-radius: 4px; font-size: 13px; font-weight: 500; color: #fff; transition: box-shadow 0.25s; }
.dc-buttons .grey { background: #4e5058; }
.dc-buttons .blurple { background: var(--blurple); }
.dc-buttons .green { background: #248046; }
.dc-buttons .red { background: #da373c; }
.dc-buttons .lit { box-shadow: 0 0 0 2px #fff; }
.dc-system { color: #b5bac1; font-size: 13.5px; padding-left: 54px; min-height: 20px; transition: opacity 0.25s; }

/* ---------- Stats live ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-2); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { padding: 26px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-value { font: 700 30px var(--display); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 2px; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green-text); margin-right: 8px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(87, 242, 135, 0.6); animation: pulse 2s infinite; }
.live-dot.off { background: var(--faint); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(87, 242, 135, 0); } 100% { box-shadow: 0 0 0 0 rgba(87, 242, 135, 0); } }
@media (max-width: 640px) { .stat + .stat { border-left: 0; border-top: 1px solid var(--border); } }

/* ---------- Fonctionnalités ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
}
.feature-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--blurple-soft); font-size: 21px; margin-bottom: 18px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; }
.feature code { color: var(--text); background: var(--surface-2); padding: 1px 6px; border-radius: 5px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; min-width: 0; padding: 26px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.step::before {
    counter-increment: step;
    content: counter(step);
    display: grid; place-items: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--blurple); color: #fff;
    font: 700 15px var(--display);
    margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step .cmd { display: block; margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 13px; overflow-x: auto; white-space: nowrap; }
.step .btn { margin-top: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px 26px;
}
.plan.featured { border-color: var(--blurple); background: linear-gradient(180deg, rgba(88, 101, 242, 0.12), var(--surface) 55%); }
.plan-badge {
    position: absolute; top: -12px; left: 26px;
    background: var(--blurple); color: #fff;
    font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
    padding: 4px 10px; border-radius: 999px;
}
.plan h3 { font-size: 20px; }
.plan-tagline { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 22px; }
.plan-price { margin: 22px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font: 800 42px var(--display); letter-spacing: -0.03em; }
.plan-price span { color: var(--muted); }
.plan-sub { color: var(--green-text); font-size: 14px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--green-text); font-weight: 700; }
.plan .btn { margin-top: auto; }
.plan-error { color: #ff8a8c; font-size: 14px; margin-top: 10px; min-height: 0; }
.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite; min-height: 420px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pricing-note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 26px; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; gap: 26px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 20px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; color: var(--muted); }
.faq code { color: var(--text); }

/* ---------- CTA final + footer ---------- */
.cta-band {
    text-align: center;
    padding: 64px 24px;
    border-radius: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(88, 101, 242, 0.35), transparent 70%), var(--surface);
    border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); }
.cta-band p { color: var(--muted); margin: 12px auto 28px; max-width: 520px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

.footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--faint); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- Pages simples (merci / compte) ---------- */
.page { min-height: calc(100vh - 68px - 100px); padding: 64px 0 80px; }
.panel {
    width: min(620px, 100%);
    margin-inline: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px;
    box-shadow: var(--shadow);
}
@media (max-width: 600px) { .panel { padding: 26px 20px; } }
.panel h1 { font-size: clamp(26px, 4vw, 32px); }
.panel .lead { color: var(--muted); margin-top: 10px; }
.panel-icon { font-size: 40px; margin-bottom: 14px; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border-strong); border-top-color: var(--blurple); animation: spin 0.9s linear infinite; margin-bottom: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }

.keybox {
    display: flex; align-items: center; gap: 10px;
    margin-top: 24px; padding: 8px 8px 8px 18px;
    background: var(--bg); border: 1px solid var(--border-strong); border-radius: 12px;
}
.keybox code { flex: 1; font-size: clamp(16px, 4.2vw, 21px); font-weight: 600; letter-spacing: 0.04em; color: var(--yellow); overflow-wrap: anywhere; }
.copy-btn { flex-shrink: 0; }

.howto { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: howto; display: grid; gap: 16px; }
.howto li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.howto li::before {
    counter-increment: howto; content: counter(howto);
    display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
    background: var(--blurple-soft); color: var(--blurple-hover); font-weight: 700; font-size: 14px;
}
.howto p { color: var(--muted); }
.howto .cmd { display: block; margin-top: 8px; padding: 9px 12px; border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px; overflow-x: auto; white-space: nowrap; }
.howto .btn { margin-top: 10px; }

.notice { margin-top: 24px; padding: 14px 16px; border-radius: 10px; background: rgba(254, 231, 92, 0.08); border: 1px solid rgba(254, 231, 92, 0.25); color: #f5e79e; font-size: 14px; }

.form-row { display: flex; gap: 10px; margin-top: 26px; }
.input {
    flex: 1; min-width: 0; min-height: 48px;
    padding: 0 16px;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font: 600 16px var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
}
.input::placeholder { color: var(--faint); text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 400; }
.input:focus { outline: none; border-color: var(--blurple); }
@media (max-width: 520px) { .form-row { flex-direction: column; } }
.form-error { color: #ff8a8c; font-size: 14px; margin-top: 12px; }

.lic-card { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 24px; }
.lic-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lic-head h2 { font-size: 22px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--green-text); background: rgba(87, 242, 135, 0.1); }
.badge.warn { color: var(--yellow); background: rgba(254, 231, 92, 0.1); }
.badge.bad { color: #ff8a8c; background: rgba(237, 66, 69, 0.12); }
.badge.idle { color: var(--muted); background: rgba(255, 255, 255, 0.06); }
.lic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 22px 0 0; }
.lic-grid dt { color: var(--faint); font-size: 13px; }
.lic-grid dd { margin: 2px 0 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .lic-grid { grid-template-columns: 1fr; } }
.lic-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
    background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
    padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
    opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- Comptes ---------- */
.btn-discord { background: #5865f2; color: #fff; min-height: 50px; padding: 0 24px; font-size: 16px; }
.btn-discord:hover { background: #4752c4; }
.btn-danger-ghost { background: transparent; color: #ff8a8c; border-color: rgba(237, 66, 69, 0.35); }
.fineprint { color: var(--faint); font-size: 13px; margin-top: 16px; }
.muted { color: var(--muted); font-size: 15px; }
.nav-account { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px 0 6px; }
.nav-account img { width: 26px; height: 26px; border-radius: 50%; }

.account { width: min(860px, 100%); margin-inline: auto; }
.account-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); }
.account-id h1 { font-size: 26px; }
.account-id p { color: var(--muted); font-size: 14px; }
.account-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 32px 0 18px; }
.section-row h1, .section-row h2 { font-size: 24px; }

.lic-list { display: grid; gap: 16px; }
.lic-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; }
.lic-item .lic-grid { margin-top: 18px; }
.lic-item .lic-actions { margin-top: 20px; }
.panel.empty { text-align: center; box-shadow: none; }
.claim { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; }
.claim summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.claim p { color: var(--muted); font-size: 14px; }
.claim form { padding-bottom: 18px; }
.claim .form-row { margin-top: 14px; }

/* ---------- Configuration du bot ---------- */
.config { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--border-strong); }
.config-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.config-head img { width: 36px; height: 36px; border-radius: 10px; }
.config-head h3 { font-size: 18px; }
.config-head p { color: var(--muted); font-size: 13px; }
.fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.fieldset legend { font: 700 14px var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; padding: 0; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 640px) { .field-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.field small { color: var(--faint); font-weight: 400; }
.select, .text {
    width: 100%; min-height: 44px; padding: 0 12px;
    background: var(--bg); color: var(--text);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    font: 400 15px var(--font);
}
.select:focus, .text:focus { outline: none; border-color: var(--blurple); }
.services { display: grid; gap: 10px; }
.service-row { display: grid; grid-template-columns: 1fr 1.4fr 40px; gap: 8px; }
@media (max-width: 640px) { .service-row { grid-template-columns: 1fr 40px; } .service-row .text:nth-child(2) { grid-column: 1; grid-row: 2; } .service-row .icon-btn { grid-row: 1 / span 2; grid-column: 2; } }
.icon-btn { min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; }
.icon-btn:hover { color: #ff8a8c; border-color: rgba(237, 66, 69, 0.4); }
.config-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.save-status { font-size: 14px; color: var(--muted); }
.save-status.ok { color: var(--green-text); }
.save-status.err { color: #ff8a8c; }

/* ---------- Administration ---------- */
.input-search { flex: 0 1 380px; text-transform: none; letter-spacing: 0; font-family: var(--font); font-weight: 400; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 24px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.tile strong { display: block; font: 700 28px var(--display); font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.table th { text-align: left; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell img { width: 32px; height: 32px; border-radius: 50%; }
.user-cell small { display: block; color: var(--faint); font-size: 12px; }
.key-chip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 6px; }
.key-chip code { font-size: 12.5px; }
.key-chip small { color: var(--muted); }
.admin-sub { font-size: 22px; margin: 36px 0 6px; }
.admin-sub + .muted { margin-bottom: 14px; }

/* ---------- Bulle d'info au survol ---------- */
.tooltip { position: relative; cursor: help; border-bottom: 1px dotted var(--faint); }
.tooltip::after {
    content: attr(data-tip);
    position: absolute; left: -6px; bottom: calc(100% + 10px);
    transform: translateY(4px);
    width: max-content; max-width: min(260px, 80vw); text-align: left;
    padding: 8px 12px; border-radius: 8px;
    background: var(--surface-2); border: 1px solid var(--border-strong); color: var(--text);
    font-size: 13px; font-weight: 500; line-height: 1.4;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; z-index: 30;
}
.tooltip::before {
    content: ""; position: absolute; left: 18px; bottom: calc(100% + 4px);
    transform: translateY(4px) rotate(45deg);
    width: 10px; height: 10px; background: var(--surface-2);
    border-right: 1px solid var(--border-strong); border-bottom: 1px solid var(--border-strong);
    opacity: 0; transition: opacity 0.15s, transform 0.15s; z-index: 31;
}
.tooltip:hover::after, .tooltip:focus::after { opacity: 1; transform: none; }
.tooltip:hover::before, .tooltip:focus::before { opacity: 1; transform: rotate(45deg); }
.tooltip:focus { outline: none; }
/* ---------- Administration : gestion des clés ---------- */
.admin-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; margin-bottom: 8px; }
.admin-card h2 { font-size: 20px; margin-bottom: 16px; }
.gen-form { display: grid; grid-template-columns: 1.3fr 0.6fr 1fr 1.3fr auto; gap: 14px; align-items: end; }
.gen-actions { display: flex; }
@media (max-width: 900px) { .gen-form { grid-template-columns: 1fr 1fr; } .gen-actions { grid-column: 1 / -1; } }
@media (max-width: 520px) { .gen-form { grid-template-columns: 1fr; } }
.gen-result { margin-top: 16px; }
.gen-result p { color: var(--green-text); font-size: 14px; }
.keys-out { margin: 10px 0; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; font: 600 14px/1.7 var(--mono); color: var(--yellow); overflow-x: auto; }
.filter { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.filter .select { width: auto; min-width: 190px; }
.cell-actions { text-align: right; white-space: nowrap; }
.row-open td { background: rgba(88, 101, 242, 0.08); }
.manage-row td { background: var(--bg-2); padding: 18px 16px 20px; }
.key-manage { display: grid; gap: 14px; position: sticky; left: 16px; width: max-content; max-width: min(720px, calc(100vw - 72px)); }
.key-manage .lic-actions { margin-top: 0; }
.inline-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.inline-form .select { width: auto; min-width: 220px; max-width: 100%; }
.input-days { width: 90px; }
/* ---------- Accueil (hub de produits) ---------- */
.hub-hero { padding: 96px 0 72px; text-align: center; }
.hub-hero-inner { position: relative; max-width: 820px; }
.hub-hero .hero-lead { margin-inline: auto; max-width: 620px; }
.hub-hero .hero-actions { justify-content: center; }
.products { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .products { grid-template-columns: 1fr 1fr; } .product-featured { grid-column: 1 / -1; } }
@media (max-width: 600px) { .products { grid-template-columns: 1fr; } }
.product { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.product-featured { border-color: rgba(88, 101, 242, 0.55); background: linear-gradient(160deg, rgba(88, 101, 242, 0.16), var(--surface) 60%); }
.product-soon { border-style: dashed; background: transparent; }
.product-soon h3, .product-soon p { opacity: 0.85; }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.product-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--blurple-soft); font-size: 24px; }
.product h3 { font-size: 22px; }
.product p { color: var(--muted); font-size: 15px; }
.product-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14.5px; }
.product-points li::before { content: "✓ "; color: var(--green-text); font-weight: 700; }
.product-live { display: flex; align-items: center; font-size: 14px; color: var(--text) !important; }
.product-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.product-foot .lic-actions { margin-top: 0; }
.product-price { font-weight: 600; }
.product-price strong { font: 800 22px var(--display); }
/* ---------- Accueil : compétences, services, méthode ---------- */
.skills, .trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.skills li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 500; }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .services-grid { grid-template-columns: 1fr; } }
.service { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.service .feature-icon { margin-bottom: 6px; }
.service h3 { font-size: 19px; }
.service p { color: var(--muted); font-size: 15px; }
.service-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .steps-4 { grid-template-columns: 1fr; } }
.trust { justify-content: flex-start; margin-top: 26px; }
.trust li { padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(87, 242, 135, 0.08); border: 1px solid rgba(87, 242, 135, 0.2); color: var(--text); font-size: 14px; }
.trust li::before { content: "✓ "; color: var(--green-text); font-weight: 700; }