/* =====================================================================
   BOTIX.fr — Design System
   Dark · Glassmorphism · Néon · Futuriste
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
    /* Fonds */
    --bg:            #0d1117;
    --bg-soft:       #11161f;
    --bg-elevated:   #161c27;
    --surface:       rgba(22, 28, 39, .72);
    --surface-2:     rgba(30, 38, 52, .6);
    --border:        rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .16);

    /* Texte */
    --text:      #e8edf5;
    --text-soft: #9aa8bd;
    --text-dim:  #6b7889;

    /* Marque */
    --violet:  #8b5cf6;
    --violet-2:#a78bfa;
    --blue:    #4f7dff;
    --cyan:    #22d3ee;
    --pink:    #e879f9;

    --brand-grad:  linear-gradient(135deg, #8b5cf6 0%, #4f7dff 55%, #22d3ee 100%);
    --brand-grad-2:linear-gradient(135deg, #e879f9 0%, #8b5cf6 50%, #4f7dff 100%);

    /* États */
    --success: #3fb950;
    --warning: #d29922;
    --danger:  #f85149;
    --info:    #58a6ff;

    /* Rayons & ombres */
    --r-sm: 8px;
    --r:    14px;
    --r-lg: 20px;
    --r-xl: 28px;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
    --shadow:    0 8px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    --glow:      0 0 0 1px rgba(139, 92, 246, .35), 0 8px 32px rgba(139, 92, 246, .22);

    /* Lumière : l'arête claire en haut des surfaces, signature des interfaces
       sombres soignées. Toujours posée AVANT l'ombre portée. */
    --edge:        inset 0 1px 0 rgba(255, 255, 255, .07);
    --edge-strong: inset 0 1px 0 rgba(255, 255, 255, .13);

    /* Halo violet, pour les états actifs et le suivi du curseur */
    --lift:  0 18px 44px -18px rgba(139, 92, 246, .55);
    --ring:  0 0 0 3px rgba(139, 92, 246, .32);
    --spot:  rgba(139, 92, 246, .15);

    --nav-h: 68px;
    --maxw:  1240px;
    --ease:  cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

::selection { background: rgba(139, 92, 246, .35); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--violet), var(--blue));
    border-radius: 10px;
    border: 2px solid var(--bg);
}

:focus-visible {
    outline: 2px solid var(--violet-2);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ---------- 3. Décor de fond ---------- */
.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

.bg-fx::before,
.bg-fx::after {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: .16;
}

.bg-fx::before {
    top: -260px;
    left: -160px;
    background: var(--violet);
    animation: float1 22s ease-in-out infinite;
}

.bg-fx::after {
    top: 120px;
    right: -220px;
    background: var(--blue);
    animation: float2 26s ease-in-out infinite;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(80px, 60px) scale(1.15); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(-90px, 40px) scale(1.1); }
}

/* ---------- 4. Layout ---------- */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
}

.page { padding: 40px 0 80px; }

.section { padding: 72px 0; }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.section-title {
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 800;
    letter-spacing: -.02em;
}

.section-sub {
    color: var(--text-soft);
    font-size: 15px;
    margin-top: 6px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---------- 5. Navigation ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(13, 17, 23, .72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--border);
    transition: background .3s var(--ease), box-shadow .3s var(--ease);
}

.nav.is-scrolled {
    background: rgba(13, 17, 23, .92);
    box-shadow: 0 6px 32px rgba(0, 0, 0, .45);
}

.nav-inner {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 20px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 19px;
    letter-spacing: -.03em;
    flex-shrink: 0;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--brand-grad);
    display: grid;
    place-items: center;
    box-shadow: 0 4px 18px rgba(139, 92, 246, .45);
    transition: transform .35s var(--ease);
}

.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-mark svg { width: 20px; height: 20px; }

.logo-text .tld {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--text-soft);
    transition: color .2s, background .2s;
}

.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

.nav-link.is-active {
    color: var(--text);
    background: rgba(139, 92, 246, .14);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .3);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-toggle { display: none; padding: 8px; border-radius: 10px; }
.nav-toggle:hover { background: rgba(255, 255, 255, .06); }

/* Recherche navbar */
.nav-search {
    position: relative;
    width: 210px;
}

.nav-search input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    font-size: 14px;
    transition: border-color .2s, background .2s, width .3s var(--ease);
}

.nav-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(139, 92, 246, .55);
}

.nav-search svg {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-dim);
}

/* Menu utilisateur */
.user-menu { position: relative; }

.user-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 11px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    transition: border-color .2s, background .2s;
}

.user-trigger:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, .08); }
.user-trigger img { width: 28px; height: 28px; border-radius: 50%; }
.user-trigger span { font-size: 14px; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 232px;
    padding: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.97);
    transform-origin: top right;
    transition: all .22s var(--ease);
    z-index: 120;
}

.dropdown.is-open { opacity: 1; visibility: visible; transform: none; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--text-soft);
    width: 100%;
    text-align: left;
    transition: background .18s, color .18s;
}

.dropdown-item:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.dropdown-item.is-danger:hover { background: rgba(248, 81, 73, .12); color: #ff8880; }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 4px; }

.dropdown-head {
    padding: 10px 11px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 6px;
}

.dropdown-head strong { display: block; font-size: 14px; }
.dropdown-head small { color: var(--text-dim); font-size: 12px; }

/* ---------- 6. Boutons ---------- */
.btn {
    --btn-bg: rgba(255, 255, 255, .06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 20px;
    border-radius: 11px;
    background: var(--btn-bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .18s var(--ease), box-shadow .25s var(--ease),
                background .2s, border-color .2s, opacity .2s;
}

.btn:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
    background: var(--brand-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 22px rgba(99, 102, 241, .35);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .28), transparent 70%);
    transform: translateX(-120%);
    transition: transform .7s var(--ease);
}

.btn-primary:hover { box-shadow: 0 12px 34px rgba(99, 102, 241, .5); }
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }

.btn-vote {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 22px rgba(34, 197, 94, .3);
}

.btn-vote:hover { box-shadow: 0 12px 30px rgba(34, 197, 94, .45); }
.btn-danger { background: rgba(248, 81, 73, .14); border-color: rgba(248, 81, 73, .3); color: #ff8880; }
.btn-danger:hover { background: rgba(248, 81, 73, .22); }
.btn-discord { background: #5865f2; border-color: transparent; color: #fff; box-shadow: 0 6px 22px rgba(88, 101, 242, .35); }
.btn-discord:hover { background: #4752c4; box-shadow: 0 12px 30px rgba(88, 101, 242, .5); }

.btn-lg { height: 52px; padding: 0 30px; font-size: 16px; border-radius: 13px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-icon { width: 42px; padding: 0; }
.btn-block { width: 100%; }

.btn[disabled], .btn.is-disabled {
    opacity: .5;
    pointer-events: none;
    transform: none;
}

/* ---------- 7. Cartes (glassmorphism) ---------- */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}

.card-pad { padding: 24px; }

.card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, .4);
    box-shadow: var(--shadow-lg);
}

/* ---------- 8. Carte bot ---------- */
.bot-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .32s var(--ease), border-color .3s, box-shadow .32s;
    height: 100%;
}

.bot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--brand-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.bot-card { position: relative; }
.bot-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.bot-card:hover::before { opacity: .85; }

.bot-card.is-premium {
    border-color: rgba(232, 121, 249, .3);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(232, 121, 249, .1), transparent 60%),
        var(--surface);
}

.bot-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

/* Anneau dégradé autour du logo */
.bot-avatar-ring {
    position: relative;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(140deg, rgba(139, 92, 246, .55), rgba(79, 125, 255, .35) 45%, rgba(255, 255, 255, .06));
    display: grid;
    place-items: center;
    transition: background .3s var(--ease), transform .3s var(--ease);
}

.bot-card:hover .bot-avatar-ring {
    background: var(--brand-grad);
    transform: scale(1.04) rotate(-2deg);
}

.is-premium .bot-avatar-ring {
    background: linear-gradient(140deg, #e879f9, #8b5cf6 60%, #4f7dff);
}

.bot-avatar {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    background: var(--bg-elevated);
    display: block;
}

.bot-card-id { min-width: 0; flex: 1; }

.bot-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 17.5px;
    font-weight: 750;
    letter-spacing: -.015em;
    line-height: 1.25;
    margin-bottom: 5px;
}

.bot-name a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color .2s;
}

.bot-name a:hover { color: var(--violet-2); }
.check-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* Ligne note + catégorie */
.bot-card-sub {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    font-size: 12.8px;
    color: var(--text-soft);
    min-height: 24px;
}

.bot-card-sub .rating-value { font-weight: 700; color: #fbbf24; }

.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    font-size: 11.5px;
    font-weight: 550;
    color: var(--text-soft);
    white-space: nowrap;
    transition: all .2s;
}

.cat-chip:hover {
    background: rgba(139, 92, 246, .16);
    border-color: rgba(139, 92, 246, .38);
    color: var(--violet-2);
}

.bot-desc {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.62;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 45px;
}

.bot-card-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    min-height: 22px;
}

/* Bandeau de statistiques, détaché du contenu */
.bot-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12.8px;
    color: var(--text-soft);
    padding: 11px 0 13px;
    margin-bottom: 14px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.bot-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.bot-card-meta b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.bot-card-meta svg { width: 14px; height: 14px; opacity: .65; flex-shrink: 0; }
.bot-card-meta .growth { color: #67e8f9; font-weight: 650; }

.bot-card-actions {
    display: flex;
    gap: 9px;
    margin-top: auto;
}

.bot-card-actions .btn { flex: 1; height: 39px; font-size: 13.5px; }
.bot-card-actions .btn-ghost { flex: 0 0 34%; }

.bot-rank {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 30px;
    height: 26px;
    padding: 0 8px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 800;
    color: var(--text-soft);
    letter-spacing: -.02em;
    z-index: 2;
}

.bot-rank.top1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1200; border-color: transparent; }
.bot-rank.top2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #10151d; border-color: transparent; }
.bot-rank.top3 { background: linear-gradient(135deg, #fb923c, #c2410c); color: #1a0d00; border-color: transparent; }

/* ---------- 9. Badges & tags ---------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em;
    white-space: nowrap;
    border: 1px solid transparent;
}

.badge-verified { background: rgba(63, 185, 80, .14); color: #56d364; border-color: rgba(63, 185, 80, .3); }
.badge-premium  { background: rgba(232, 121, 249, .14); color: #f0abfc; border-color: rgba(232, 121, 249, .32); }
.badge-popular  { background: rgba(210, 153, 34, .14); color: #e3b341; border-color: rgba(210, 153, 34, .3); }
.badge-growing  { background: rgba(34, 211, 238, .14); color: #67e8f9; border-color: rgba(34, 211, 238, .3); }
.badge-pending  { background: rgba(210, 153, 34, .14); color: #e3b341; border-color: rgba(210, 153, 34, .3); }
.badge-rejected { background: rgba(248, 81, 73, .14); color: #ff8880; border-color: rgba(248, 81, 73, .3); }
.badge-approved { background: rgba(63, 185, 80, .14); color: #56d364; border-color: rgba(63, 185, 80, .3); }
.badge-neutral  { background: rgba(255, 255, 255, .06); color: var(--text-soft); border-color: var(--border); }

.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-soft);
    transition: background .2s, color .2s, border-color .2s;
}

a.tag:hover { background: rgba(139, 92, 246, .16); color: var(--violet-2); border-color: rgba(139, 92, 246, .35); }

/* Étoiles */
.stars { position: relative; display: inline-block; font-size: var(--star-size, 16px); line-height: 1; white-space: nowrap; }
.stars-bg { color: rgba(255, 255, 255, .16); }
.stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; color: #fbbf24; }

/* ---------- 9 bis. Podium du classement ---------- */
.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: end;          /* les marches alignent le bas : le n°1 monte */
    margin: 8px 0 44px;
}

/* Moins de trois bots : on centre au lieu de coller à gauche */
.podium-1 { grid-template-columns: minmax(0, 320px); justify-content: center; }
.podium-2 { grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; }

.podium-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
}

/* Ordre visuel : 2 · 1 · 3 (l'ordre du HTML reste 1, 2, 3) */
.podium-col.rank-1 { order: 2; }
.podium-col.rank-2 { order: 1; }
.podium-col.rank-3 { order: 3; }

/* --- La carte --- */
.podium-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl) var(--r-xl) 6px 6px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .32s var(--ease), box-shadow .32s, border-color .3s;
}

.podium-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.rank-1 .podium-card {
    padding: 34px 22px 24px;
    border-color: rgba(251, 191, 36, .45);
    background:
        radial-gradient(130% 95% at 50% 0%, rgba(251, 191, 36, .17), transparent 62%),
        var(--surface);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, .16), 0 22px 55px rgba(0, 0, 0, .5);
}

.rank-2 .podium-card {
    border-color: rgba(203, 213, 225, .3);
    background: radial-gradient(130% 95% at 50% 0%, rgba(203, 213, 225, .1), transparent 62%), var(--surface);
}

.rank-3 .podium-card {
    border-color: rgba(251, 146, 60, .3);
    background: radial-gradient(130% 95% at 50% 0%, rgba(251, 146, 60, .1), transparent 62%), var(--surface);
}

/* Couronne du champion */
.podium-crown {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, .5));
    animation: crownFloat 3.2s ease-in-out infinite;
}

@keyframes crownFloat {
    0%, 100% { transform: translate(-50%, 0) rotate(-4deg); }
    50%      { transform: translate(-50%, -6px) rotate(4deg); }
}

.podium-medal { font-size: 26px; line-height: 1; margin-bottom: 8px; }
.rank-1 .podium-medal { font-size: 32px; }

/* --- Le logo, en grand --- */
.podium-avatar {
    display: block;
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 14px;
    background: linear-gradient(140deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .05));
    transition: transform .35s var(--ease), box-shadow .35s;
}

.rank-1 .podium-avatar {
    background: linear-gradient(140deg, #fde68a, #fbbf24 45%, #f59e0b);
    box-shadow: 0 10px 34px rgba(251, 191, 36, .32);
}

.rank-2 .podium-avatar {
    background: linear-gradient(140deg, #f1f5f9, #cbd5e1 45%, #94a3b8);
    box-shadow: 0 8px 26px rgba(203, 213, 225, .2);
}

.rank-3 .podium-avatar {
    background: linear-gradient(140deg, #fed7aa, #fb923c 45%, #c2410c);
    box-shadow: 0 8px 26px rgba(251, 146, 60, .22);
}

.podium-card:hover .podium-avatar { transform: scale(1.06) rotate(-2deg); }

.podium-avatar img {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 26px;
    object-fit: cover;
    background: var(--bg-elevated);
}

.rank-1 .podium-avatar img { width: 124px; height: 124px; border-radius: 32px; }

.podium-name {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: 100%;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -.02em;
    margin-bottom: 5px;
}

.rank-1 .podium-name { font-size: 21px; }
.podium-name a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-name a:hover { color: var(--violet-2); }

.podium-desc {
    font-size: 12.8px;
    color: var(--text-soft);
    line-height: 1.55;
    margin-bottom: 13px;
    min-height: 39px;
}

.podium-score { margin-bottom: 8px; }

.podium-score b {
    display: block;
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rank-1 .podium-score b {
    font-size: 34px;
    background: linear-gradient(135deg, #fde68a, #fbbf24 50%, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
}

.podium-score span {
    font-size: 11.5px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 600;
}

.podium-meta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: var(--text-dim);
    margin-bottom: 15px;
    min-height: 19px;
}

.podium-actions { display: flex; gap: 8px; width: 100%; }
.podium-actions .btn { flex: 1; }

/* --- Les marches --- */
.podium-step {
    position: relative;
    display: grid;
    place-items: center;
    border-radius: 0 0 4px 4px;
    border: 1px solid var(--border);
    border-top: 0;
    overflow: hidden;
}

.podium-step::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 100% 14px;
    opacity: .6;
}

.rank-1 .podium-step {
    height: 132px;
    background: linear-gradient(180deg, rgba(251, 191, 36, .28), rgba(245, 158, 11, .06));
    border-color: rgba(251, 191, 36, .3);
}

.rank-2 .podium-step {
    height: 88px;
    background: linear-gradient(180deg, rgba(203, 213, 225, .2), rgba(148, 163, 184, .05));
    border-color: rgba(203, 213, 225, .22);
}

.rank-3 .podium-step {
    height: 58px;
    background: linear-gradient(180deg, rgba(251, 146, 60, .2), rgba(194, 65, 12, .05));
    border-color: rgba(251, 146, 60, .22);
}

.podium-step-number {
    position: relative;
    z-index: 1;
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1;
    color: rgba(255, 255, 255, .16);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.rank-1 .podium-step-number { font-size: 58px; color: rgba(255, 255, 255, .26); }

@media (max-width: 860px) {
    .podium { gap: 8px; }
    .podium-avatar img { width: 74px; height: 74px; border-radius: 20px; }
    .rank-1 .podium-avatar img { width: 96px; height: 96px; border-radius: 26px; }
    .podium-card { padding: 22px 12px 16px; }
    .rank-1 .podium-card { padding: 28px 14px 18px; }
    .podium-desc { display: none; }
    .podium-actions { flex-direction: column; }
    .rank-1 .podium-step { height: 92px; }
    .rank-2 .podium-step { height: 62px; }
    .rank-3 .podium-step { height: 42px; }
    .podium-step-number { font-size: 32px; }
    .rank-1 .podium-step-number { font-size: 42px; }
}

@media (max-width: 620px) {
    .podium { grid-template-columns: 1fr; gap: 14px; align-items: stretch; }
    .podium-col.rank-1, .podium-col.rank-2, .podium-col.rank-3 { order: 0; }
    .podium-card { border-radius: var(--r-xl) var(--r-xl) 0 0; }
    .podium-desc { display: block; min-height: 0; }
    .podium-actions { flex-direction: row; }
    .rank-1 .podium-step, .rank-2 .podium-step, .rank-3 .podium-step { height: 46px; }
    .podium-step-number, .rank-1 .podium-step-number { font-size: 26px; }
}

/* ---------- 10. Hero ---------- */
.hero {
    position: relative;
    padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 80px);
    text-align: center;
    overflow: hidden;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-soft);
    margin-bottom: 26px;
    backdrop-filter: blur(10px);
}

.hero-pill b {
    padding: 2px 9px;
    border-radius: 999px;
    background: var(--brand-grad);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(34px, 6.4vw, 66px);
    line-height: 1.06;
    font-weight: 850;
    letter-spacing: -.035em;
    margin-bottom: 22px;
}

.gradient-text {
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% auto;
    animation: shine 6s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

.hero p.lead {
    max-width: 660px;
    margin: 0 auto 34px;
    font-size: clamp(15px, 2vw, 18.5px);
    color: var(--text-soft);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

/* Barre de recherche hero */
.hero-search {
    max-width: 640px;
    margin: 0 auto 52px;
    position: relative;
}

.hero-search input {
    width: 100%;
    height: 58px;
    padding: 0 130px 0 52px;
    border-radius: 16px;
    background: rgba(22, 28, 39, .8);
    border: 1px solid var(--border);
    font-size: 15.5px;
    backdrop-filter: blur(14px);
    transition: border-color .25s, box-shadow .25s;
}

.hero-search input::placeholder { color: var(--text-dim); }

.hero-search input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, .6);
    box-shadow: var(--glow);
}

.hero-search > svg {
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translateY(-50%);
    width: 19px;
    height: 19px;
    color: var(--text-dim);
}

.hero-search .btn {
    position: absolute;
    right: 8px;
    top: 8px;
    height: 42px;
}

/* Statistiques */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    max-width: 900px;
    margin-inline: auto;
}

.stat {
    padding: 24px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(14px);
    text-align: center;
    transition: transform .3s var(--ease), border-color .3s;
}

.stat:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, .35); }

.stat-value {
    font-size: clamp(26px, 4vw, 36px);
    font-weight: 850;
    letter-spacing: -.03em;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 13px;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    margin-top: 4px;
}

/* ---------- 11. Catégories ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
    gap: 14px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-align: center;
    transition: transform .28s var(--ease), border-color .28s, background .28s;
}

.cat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, .4);
    background: rgba(139, 92, 246, .08);
}

.cat-icon { font-size: 26px; line-height: 1; }
.cat-name { font-weight: 650; font-size: 14.5px; }
.cat-count { font-size: 12px; color: var(--text-dim); }

/* ---------- 12. Filtres ---------- */
.filters {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 26px;
    backdrop-filter: blur(14px);
}

.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    flex: 1;
}

.filter-chips::-webkit-scrollbar { display: none; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    font-size: 13.5px;
    font-weight: 550;
    color: var(--text-soft);
    white-space: nowrap;
    transition: all .2s;
}

.chip:hover { color: var(--text); border-color: var(--border-strong); }

.chip.is-active {
    background: var(--brand-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 16px rgba(139, 92, 246, .35);
}

/* Champs */
.field { margin-bottom: 20px; }

.label {
    display: block;
    font-size: 13.5px;
    font-weight: 650;
    margin-bottom: 7px;
    color: var(--text);
}

.label .req { color: var(--danger); }

.hint { font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }

.input,
.select,
.textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 11px;
    font-size: 14.5px;
    color: var(--text);
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.input::placeholder, .textarea::placeholder { color: var(--text-dim); }

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, .06);
    border-color: rgba(139, 92, 246, .55);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .14);
}

.textarea { min-height: 140px; resize: vertical; line-height: 1.7; font-family: inherit; }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8bd' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 38px;
    cursor: pointer;
}

.select option { background: var(--bg-elevated); color: var(--text); }

.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-soft);
}

.checkbox input { width: 18px; height: 18px; accent-color: var(--violet); margin-top: 2px; flex-shrink: 0; }

/* ---------- 13. Page bot ---------- */
.bot-hero {
    position: relative;
    padding: 34px;
    border-radius: var(--r-xl);
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(139, 92, 246, .16), transparent 55%),
        radial-gradient(120% 140% at 100% 0%, rgba(79, 125, 255, .14), transparent 55%),
        var(--surface);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    display: flex;
    gap: 26px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.bot-hero-avatar {
    width: 118px;
    height: 118px;
    border-radius: 26px;
    border: 1px solid var(--border-strong);
    background: var(--bg-elevated);
    box-shadow: var(--shadow);
    flex-shrink: 0;
}

.bot-hero-main { flex: 1; min-width: 260px; }

.bot-hero h1 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -.03em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.bot-hero .short {
    color: var(--text-soft);
    font-size: 16px;
    margin-bottom: 16px;
    max-width: 640px;
}

.bot-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.bot-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 28px;
}

.metric {
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    text-align: center;
}

.metric-value { font-size: 23px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.metric-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .07em; margin-top: 2px; font-weight: 600; }

.bot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.sidebar-card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(14px);
    margin-bottom: 18px;
}

.sidebar-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-dim);
    font-weight: 700;
    margin-bottom: 14px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.info-row:last-child { border-bottom: 0; }
.info-row .k { color: var(--text-dim); }
.info-row .v { font-weight: 600; text-align: right; }

/* Contenu riche */
.prose { font-size: 15.3px; line-height: 1.8; color: #c9d4e3; }
.prose h2 { font-size: 22px; font-weight: 750; margin: 28px 0 12px; color: var(--text); letter-spacing: -.02em; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 22px 0 10px; color: var(--text); }
.prose ul { margin: 12px 0; padding-left: 4px; }
.prose li { position: relative; padding-left: 22px; margin-bottom: 7px; }
.prose li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.prose a { color: var(--violet-2); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--cyan); }
.prose code { padding: 2px 7px; border-radius: 6px; background: rgba(139, 92, 246, .13); color: #d6bcfa; font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; }
.prose pre { margin: 16px 0; padding: 16px 18px; background: #0a0e14; border: 1px solid var(--border); border-radius: var(--r); overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: #a5d6ff; }
.prose strong { color: #fff; font-weight: 680; }

/* Onglets */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    padding: 11px 17px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-soft);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}

.tab:hover { color: var(--text); }
.tab.is-active { color: var(--violet-2); border-bottom-color: var(--violet); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeIn .35s var(--ease); }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* Graphiques */
.chart-box {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 20px;
}

.chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.chart-title { font-size: 15.5px; font-weight: 700; }
.chart-canvas { position: relative; height: 260px; }

/* Avis */
.review {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.review:last-child { border-bottom: 0; }
.review img { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.review-author { font-weight: 650; font-size: 14.5px; }
.review-date { font-size: 12.5px; color: var(--text-dim); }
.review-body { color: var(--text-soft); font-size: 14.5px; line-height: 1.7; }

.review-reply {
    margin-top: 12px;
    padding: 12px 14px;
    border-left: 2px solid var(--violet);
    background: rgba(139, 92, 246, .07);
    border-radius: 0 10px 10px 0;
    font-size: 14px;
}

.review-reply strong { color: var(--violet-2); font-size: 13px; }

.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }

.rating-input label {
    font-size: 26px;
    color: rgba(255, 255, 255, .18);
    cursor: pointer;
    transition: color .18s, transform .18s;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: #fbbf24; }
.rating-input label:hover { transform: scale(1.15); }

.rating-bar { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.rating-bar .track { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rating-bar .fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* ---------- 14. Dashboard ---------- */
.dash-layout {
    display: grid;
    grid-template-columns: 244px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.dash-nav {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    backdrop-filter: blur(14px);
}

.dash-nav-title {
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-dim);
    font-weight: 700;
    padding: 8px 11px;
}

.dash-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14.2px;
    font-weight: 550;
    color: var(--text-soft);
    transition: background .2s, color .2s;
}

.dash-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }

.dash-link.is-active {
    background: rgba(139, 92, 246, .15);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .3);
}

.dash-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.dash-link .count { margin-left: auto; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); }

.page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.page-title { font-size: clamp(23px, 3.2vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.page-desc { color: var(--text-soft); font-size: 14.5px; margin-top: 3px; }

/* Tableaux */
.table-wrap {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}

.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }

.table th {
    text-align: left;
    padding: 13px 16px;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--text-dim);
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .18s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .028); }
.table tbody tr.is-podium { background: linear-gradient(90deg, rgba(251, 191, 36, .06), transparent 55%); }
.table tbody tr.is-podium:hover { background: linear-gradient(90deg, rgba(251, 191, 36, .1), rgba(255, 255, 255, .03) 55%); }

.table-user { display: flex; align-items: center; gap: 10px; }
.table-user img { width: 32px; height: 32px; border-radius: 9px; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* ---------- 15. Premium ---------- */
.pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 22px;
    max-width: 940px;
    margin-inline: auto;
}

.price-card {
    position: relative;
    padding: 32px 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    backdrop-filter: blur(14px);
    transition: transform .3s var(--ease), border-color .3s;
}

.price-card:hover { transform: translateY(-5px); }

.price-card.is-featured {
    border-color: rgba(139, 92, 246, .45);
    background:
        radial-gradient(110% 90% at 50% 0%, rgba(139, 92, 246, .16), transparent 60%),
        var(--surface);
    box-shadow: var(--glow);
}

.price-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 16px;
    border-radius: 999px;
    background: var(--brand-grad);
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
    white-space: nowrap;
}

.price-name { font-size: 19px; font-weight: 750; margin-bottom: 6px; }
.price-value { font-size: 42px; font-weight: 850; letter-spacing: -.035em; margin: 14px 0 4px; }
.price-value small { font-size: 15px; font-weight: 500; color: var(--text-dim); }
.price-desc { color: var(--text-soft); font-size: 14px; margin-bottom: 22px; }
.price-list { margin-bottom: 26px; }

.price-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14.3px;
    color: var(--text-soft);
}

.price-list svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.price-list li.off { color: var(--text-dim); opacity: .6; }
.price-list li.off svg { color: var(--text-dim); }

/* ---------- 16. Divers ---------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 17px;
    border-radius: var(--r);
    font-size: 14.3px;
    margin-bottom: 20px;
    border: 1px solid;
    line-height: 1.6;
}

.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(63, 185, 80, .1);  border-color: rgba(63, 185, 80, .28);  color: #7ee787; }
.alert-error   { background: rgba(248, 81, 73, .1);  border-color: rgba(248, 81, 73, .28);  color: #ff9d97; }
.alert-warning { background: rgba(210, 153, 34, .1); border-color: rgba(210, 153, 34, .28); color: #e3b341; }
.alert-info    { background: rgba(88, 166, 255, .1); border-color: rgba(88, 166, 255, .28); color: #79c0ff; }

/* ---------- Signalements ---------- */
.report-card {
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 14px;
    transition: border-color .25s;
}

.report-card:hover { border-color: var(--border-strong); }

.report-card.is-severe {
    border-color: rgba(248, 81, 73, .32);
    background: linear-gradient(90deg, rgba(248, 81, 73, .07), transparent 45%), var(--surface);
}

.report-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.report-date { margin-left: auto; font-size: 12.5px; color: var(--text-dim); }

.report-target { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.report-target a { color: var(--text); }
.report-target a:hover { color: var(--violet-2); }

.report-details {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.65;
    padding: 10px 13px;
    background: rgba(255, 255, 255, .03);
    border-left: 2px solid var(--border-strong);
    border-radius: 0 9px 9px 0;
    margin-bottom: 12px;
}

.report-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.report-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* Mini-formulaire de signalement d'un avis */
.report-inline { margin-top: 8px; }

.report-inline > summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    list-style: none;
    font-size: 12.5px;
    color: var(--text-dim);
    transition: color .2s;
    width: fit-content;
}

.report-inline > summary::-webkit-details-marker { display: none; }
.report-inline > summary:hover { color: #ff8880; }
.report-inline[open] > summary { color: #ff8880; margin-bottom: 9px; }

.report-inline-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    padding: 12px;
    background: rgba(248, 81, 73, .06);
    border: 1px solid rgba(248, 81, 73, .2);
    border-radius: var(--r);
}

.report-inline-form .select { width: auto; min-width: 170px; height: 36px; min-height: 36px; padding: 0 34px 0 11px; font-size: 13px; }
.report-inline-form .input { flex: 1; min-width: 180px; height: 36px; min-height: 36px; font-size: 13px; }

.empty {
    padding: 64px 24px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border-strong);
    border-radius: var(--r-lg);
}

.empty-icon { font-size: 44px; margin-bottom: 14px; opacity: .55; }
.empty h3 { font-size: 19px; font-weight: 700; margin-bottom: 7px; }
.empty p { color: var(--text-soft); font-size: 14.5px; margin-bottom: 20px; max-width: 420px; margin-inline: auto; }

.pagination { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 34px; flex-wrap: wrap; }

.page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-soft);
    transition: all .2s;
}

.page-btn:hover { color: var(--text); border-color: var(--border-strong); }
.page-btn.is-active { background: var(--brand-grad); border-color: transparent; color: #fff; }
.page-btn.is-disabled { opacity: .35; pointer-events: none; }
.page-dots { color: var(--text-dim); padding: 0 4px; }

.toast-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: min(380px, calc(100vw - 32px));
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 17px;
    border-radius: var(--r);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    animation: toastIn .35s var(--ease);
}

.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--info); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: none; }
}

@keyframes toastOut {
    to { opacity: 0; transform: translateX(40px); }
}

/* Modale */
.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(5, 7, 11, .7);
    backdrop-filter: blur(6px);
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
}

.modal-backdrop.is-open { opacity: 1; visibility: visible; }

.modal {
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 26px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
    transform: translateY(16px) scale(.97);
    transition: transform .3s var(--ease);
}

.modal-backdrop.is-open .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-title { font-size: 19px; font-weight: 750; }

/* Code / API */
.code-block {
    position: relative;
    background: #0a0e14;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin: 14px 0;
}

.code-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 14px;
    background: rgba(255, 255, 255, .03);
    border-bottom: 1px solid var(--border);
    font-size: 12.5px;
    color: var(--text-dim);
}

.code-block pre { padding: 16px; overflow-x: auto; }

.code-block code {
    font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #a5d6ff;
    white-space: pre;
}

.endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r);
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 13.5px;
    flex-wrap: wrap;
}

.method {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .04em;
}

.method-get  { background: rgba(63, 185, 80, .16);  color: #56d364; }
.method-post { background: rgba(88, 166, 255, .16); color: #79c0ff; }
.endpoint-desc { margin-left: auto; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-dim); }

/* Compte à rebours de vote */
.vote-timer {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}

/* ---------- 17. Pied de page ---------- */
.footer {
    position: relative;
    margin-top: 90px;
    padding: 0 0 28px;
    border-top: 1px solid var(--border);
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(139, 92, 246, .07), transparent 60%),
        linear-gradient(180deg, transparent, rgba(79, 125, 255, .04));
}

/* Bandeau de chiffres */
.footer-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1px;
    margin: 0 0 52px;
    padding: 26px 0;
    border-bottom: 1px solid var(--border);
}

.footer-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    position: relative;
}

.footer-stat + .footer-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    height: 76%;
    width: 1px;
    background: var(--border);
}

.footer-stat b {
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-stat span {
    font-size: 12px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 600;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(auto-fit, minmax(132px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about p { color: var(--text-soft); font-size: 14px; margin: 14px 0 18px; max-width: 330px; line-height: 1.7; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--text); margin-bottom: 15px; font-weight: 700; }
.footer-col li { margin-bottom: 9px; }

.footer-col a {
    color: var(--text-soft);
    font-size: 14px;
    transition: color .2s, padding-left .2s;
    display: inline-block;
}

.footer-col a:hover { color: var(--violet-2); padding-left: 3px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13.2px;
    flex-wrap: wrap;
}

.footer-made { display: inline-flex; align-items: center; gap: 12px; }

.to-top {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: all .22s var(--ease);
}

.to-top:hover {
    color: #fff;
    background: var(--brand-grad);
    border-color: transparent;
    transform: translateY(-3px);
}

.to-top svg { width: 16px; height: 16px; }

.social { display: flex; gap: 9px; }

.social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-soft);
    transition: all .22s var(--ease);
}

.social a:hover {
    color: #fff;
    background: var(--brand-grad);
    border-color: transparent;
    transform: translateY(-3px);
}

.social svg { width: 17px; height: 17px; }

/* ---------- 18. Animations d'apparition ---------- */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, .04) 25%, rgba(255, 255, 255, .09) 50%, rgba(255, 255, 255, .04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: var(--r);
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

.spinner {
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 19. Utilitaires ---------- */
.text-soft   { color: var(--text-soft); }
.text-dim    { color: var(--text-dim); }
.text-center { text-align: center; }
.text-grad   { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flex        { display: flex; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-6 { gap: 6px; }
.gap-10 { gap: 10px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.mt-8 { margin-top: 8px; }  .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1080px) {
    .bot-layout { grid-template-columns: 1fr; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-nav { position: static; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
    .dash-nav::-webkit-scrollbar { display: none; }
    .dash-nav-title { display: none; }
    .dash-link { white-space: nowrap; }
}

@media (max-width: 900px) {
    .nav-search { display: none; }
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 14px 20px 22px;
        background: rgba(13, 17, 23, .98);
        backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all .3s var(--ease);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }
    .nav-links.is-open { transform: none; opacity: 1; visibility: visible; }
    .nav-link { padding: 12px 14px; font-size: 15.5px; }
    .nav-toggle { display: grid; place-items: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 640px) {
    .container { padding-inline: 16px; }
    .section { padding: 52px 0; }
    .bot-hero { padding: 22px; gap: 18px; }
    .bot-hero-avatar { width: 84px; height: 84px; border-radius: 20px; }
    .bot-hero-actions .btn, .hero-actions .btn { flex: 1; min-width: 140px; }
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 1px; margin-bottom: 40px; }
    .footer-stat + .footer-stat::before { display: none; }
    .hero-search input { padding-right: 16px; height: 52px; }
    .hero-search .btn { display: none; }
    .toast-wrap { left: 16px; right: 16px; bottom: 16px; max-width: none; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

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

@media print {
    .nav, .footer, .bg-fx, .toast-wrap, .scroll-progress { display: none !important; }
    body { background: #fff; color: #000; }
}

/* =====================================================================
   21. RAFFINEMENTS
   Couche posée sur le design system : lumière, matière et micro-mouvements.
   Elle ne redéfinit aucune structure — uniquement la finition.
   ===================================================================== */

/* ---------- 21.1 Typographie ---------- */
/* Resserrement discret : Inter respire mieux en interface avec un chouïa
   d'approche négative. Aucune substitution de glyphe, la forme des lettres
   reste celle de la police. */
body { letter-spacing: -.006em; }

/* Les titres se répartissent sur des lignes de longueur voisine plutôt que de
   laisser un mot seul en bas ; les paragraphes évitent les lignes orphelines. */
h1, h2, h3,
.hero h1,
.section-title,
.page-title,
.bot-name,
.feature-title,
.sidebar-title { text-wrap: balance; }

.lead,
.page-desc,
.section-sub,
.bot-desc,
.feature-text,
.hint { text-wrap: pretty; }

/* Zéro barré dans les identifiants et les jetons : plus de confusion 0 / O. */
.mono { font-feature-settings: 'zero' 1; letter-spacing: -.015em; }

/* Chiffres alignés partout où ils défilent ou se comparent */
.stat-value, .metric-value, .footer-stat b,
.bot-card-meta b, .table td, .rating-value { font-variant-numeric: tabular-nums; }

/* ---------- 21.2 Matière du fond ---------- */
/* Grain très fin : casse les aplats et donne de la profondeur aux dégradés. */
.bg-grid::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .032;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Troisième halo, plus bas dans la page : le fond ne s'éteint plus au scroll. */
.bg-fx {
    background: radial-gradient(60% 40% at 50% 118%, rgba(34, 211, 238, .07), transparent 70%);
}

html {
    scrollbar-color: rgba(139, 92, 246, .55) transparent;
    scrollbar-width: thin;
}

::selection { background: rgba(139, 92, 246, .32); color: #fff; text-shadow: none; }

/* ---------- 21.3 Progression de lecture ---------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 200;
    background: var(--brand-grad);
    transform: scaleX(var(--p, 0));
    transform-origin: 0 50%;
    transition: transform .12s linear, opacity .3s;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(139, 92, 246, .6);
}

.scroll-progress.is-on { opacity: 1; }

/* ---------- 21.4 Arête lumineuse des surfaces ---------- */
.card,
.bot-card,
.stat,
.cat-card,
.metric,
.filters,
.dropdown,
.hero-pill,
.toast,
.code-block,
.table-wrap { box-shadow: var(--edge), var(--shadow-sm); }

.dropdown { box-shadow: var(--edge-strong), var(--shadow-lg); }

/* L'ombre au survol reste teintée : elle appartient à la marque. */
.card-hover:hover,
.bot-card:hover,
.stat:hover,
.cat-card:hover { box-shadow: var(--edge-strong), var(--shadow-lg), var(--lift); }

/* ---------- 21.5 Halo qui suit le curseur ---------- */
/* Les coordonnées --mx / --my sont écrites par botix.js au survol. */
.card,
.bot-card,
.stat,
.cat-card,
.metric {
    --mx: 50%;
    --my: 0%;
    position: relative;
    isolation: isolate;
}

.card::after,
.bot-card::after,
.stat::after,
.cat-card::after,
.metric::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .4s var(--ease);
    background: radial-gradient(420px circle at var(--mx) var(--my), var(--spot), transparent 68%);
}

.card:hover::after,
.bot-card:hover::after,
.stat:hover::after,
.cat-card:hover::after,
.metric:hover::after { opacity: 1; }

.bot-card.is-premium { --spot: rgba(232, 121, 249, .16); }

/* ---------- 21.6 Boutons ---------- */
.btn {
    box-shadow: var(--edge);
    transition: transform .16s var(--ease-out), box-shadow .25s var(--ease),
                background .2s, border-color .2s, opacity .2s;
}

.btn:active { transform: translateY(1px) scale(.985); }

.btn:focus-visible {
    outline: none;
    box-shadow: var(--edge), var(--ring);
}

.btn-primary {
    background-size: 180% 180%;
    background-position: 0% 50%;
    box-shadow: var(--edge-strong), 0 6px 22px rgba(99, 102, 241, .35);
    transition: transform .16s var(--ease-out), box-shadow .25s var(--ease),
                background-position .6s var(--ease);
}

.btn-primary:hover {
    background-position: 100% 50%;
    box-shadow: var(--edge-strong), 0 14px 38px -8px rgba(99, 102, 241, .6);
}

.btn-vote:hover  { box-shadow: var(--edge-strong), 0 14px 34px -8px rgba(34, 197, 94, .55); }
.btn-discord:hover { box-shadow: var(--edge-strong), 0 14px 34px -8px rgba(88, 101, 242, .55); }

/* Bouton en cours de traitement : le libellé s'efface, un anneau tourne. */
.btn.is-loading { color: transparent !important; pointer-events: none; position: relative; }

.btn.is-loading::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

/* ---------- 21.7 Champs de saisie ---------- */
.input, .select, .textarea { box-shadow: var(--edge); }

.input:focus,
.select:focus,
.textarea:focus,
.hero-search input:focus,
.nav-search input:focus {
    box-shadow: var(--edge), var(--ring);
}

.input:hover:not(:focus),
.select:hover:not(:focus),
.textarea:hover:not(:focus) { border-color: var(--border-strong); }

/* ---------- 21.8 Navigation ---------- */
.nav { background: rgba(13, 17, 23, .6); }

.nav.is-scrolled {
    background: rgba(13, 17, 23, .88);
    border-bottom-color: rgba(139, 92, 246, .18);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04), 0 10px 34px rgba(0, 0, 0, .5);
}

/* Filet dégradé sous la barre, révélé au défilement */
.nav::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .55), rgba(34, 211, 238, .45), transparent);
    opacity: 0;
    transition: opacity .35s var(--ease);
}

.nav.is-scrolled::after { opacity: 1; }

/* Soulignement animé des liens */
.nav-link { position: relative; }

.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-grad);
    transform: scaleX(0);
    transform-origin: 50% 50%;
    transition: transform .3s var(--ease-out);
}

/* Le lien actif porte déjà sa pastille : pas de soulignement en plus. */
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active::after { display: none; }

.logo-mark { box-shadow: var(--edge-strong), 0 4px 18px rgba(139, 92, 246, .45); }

/* ---------- 21.9 Hero ---------- */
/* Aurore derrière le titre. Le hero étant en overflow:hidden, le voile reste
   entièrement dans ses limites : aucune coupure franche sur les bords. */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1100px, 120%);
    height: 560px;
    /* Le centrage vit dans le transform, y compris dans l'animation :
       aucun décalage si le voile est figé (mouvement réduit). */
    transform: translate3d(-50%, 0, 0);
    z-index: -1;
    pointer-events: none;
    opacity: .5;
    filter: blur(90px);
    background:
        radial-gradient(38% 46% at 28% 42%, rgba(139, 92, 246, .5), transparent 70%),
        radial-gradient(34% 40% at 72% 34%, rgba(79, 125, 255, .42), transparent 70%),
        radial-gradient(30% 34% at 52% 72%, rgba(34, 211, 238, .32), transparent 70%);
    animation: aurora 18s ease-in-out infinite alternate;
}

@keyframes aurora {
    0%   { transform: translate3d(-53%, 0, 0) scale(1); }
    50%  { transform: translate3d(-48%, 2%, 0) scale(1.06); }
    100% { transform: translate3d(-46%, -2%, 0) scale(1.02); }
}

.hero-search input {
    box-shadow: var(--edge), var(--shadow);
    transition: border-color .25s, box-shadow .25s, transform .25s var(--ease-out);
}

.hero-search:focus-within input { transform: translateY(-2px); }

.hero-pill { transition: border-color .25s, background .25s, transform .25s var(--ease-out); }
.hero-pill:hover { border-color: rgba(139, 92, 246, .4); transform: translateY(-1px); }

.stat-value { text-shadow: 0 0 34px rgba(139, 92, 246, .28); }

/* ---------- 21.10 Carte bot ---------- */
.bot-card { transition: transform .32s var(--ease-out), border-color .3s, box-shadow .32s; }
.bot-card:hover { transform: translateY(-6px); border-color: rgba(139, 92, 246, .28); }

.bot-avatar { transition: transform .35s var(--ease-out); }
.bot-card:hover .bot-avatar { transform: scale(1.02); }

.bot-card-meta {
    border-image: linear-gradient(90deg, transparent, var(--border) 15%, var(--border) 85%, transparent) 1;
}

.bot-rank { box-shadow: var(--edge), 0 4px 14px rgba(0, 0, 0, .35); }
.bot-rank.top1 { box-shadow: var(--edge-strong), 0 6px 20px -4px rgba(251, 191, 36, .6); }
.bot-rank.top2 { box-shadow: var(--edge-strong), 0 6px 20px -4px rgba(203, 213, 225, .45); }
.bot-rank.top3 { box-shadow: var(--edge-strong), 0 6px 20px -4px rgba(251, 146, 60, .5); }

/* ---------- 21.11 Badges, pastilles, catégories ---------- */
.badge, .cat-chip, .chip { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }

.chip { transition: transform .2s var(--ease-out), background .2s, border-color .2s, color .2s; }
.chip:hover { transform: translateY(-1px); }

.chip.is-active { box-shadow: var(--edge-strong), 0 6px 18px -6px rgba(139, 92, 246, .6); }

.cat-card { transition: transform .28s var(--ease-out), border-color .28s, background .28s, box-shadow .3s; }
.cat-icon { transition: transform .35s var(--ease-out); }
.cat-card:hover .cat-icon { transform: scale(1.14) translateY(-2px); }

/* ---------- 21.12 Tableaux ---------- */
/* Le conteneur garde son défilement horizontal : les tableaux ont une largeur
   minimale de 620 px et doivent rester lisibles sur mobile. */
.table thead th {
    background: rgba(255, 255, 255, .022);
    border-bottom-color: var(--border-strong);
}

/* Alternance très légère : le regard suit la ligne sans que ça fasse « grille ». */
.table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .013); }
.table tbody tr { transition: background .18s, box-shadow .18s; }
.table tbody tr:hover { box-shadow: inset 3px 0 0 var(--violet); }

/* ---------- 21.13 Images ---------- */
/* Les logos de bots apparaissent en fondu une fois chargés (voir botix.js). */
img[data-fade] {
    opacity: 0;
    transform: scale(.98);
    transition: opacity .45s var(--ease), transform .45s var(--ease-out);
}

img[data-fade].is-loaded { opacity: 1; transform: none; }

/* ---------- 21.14 États vides ---------- */
/* La carte pointillée reste telle quelle : on n'anime que l'icône, pour que
   la page ne paraisse pas figée quand il n'y a rien à afficher. */
.empty {
    background:
        radial-gradient(80% 60% at 50% 0%, rgba(139, 92, 246, .07), transparent 70%),
        var(--surface);
}

.empty-icon { animation: floaty 4.5s ease-in-out infinite; }

@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-7px); }
}

/* ---------- 21.15 Alertes ---------- */
.alert { box-shadow: var(--edge), var(--shadow-sm); }

/* ---------- 21.16 Carte argument (accueil) ---------- */
.feature-card { padding: 26px 24px; }

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 26px;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(140deg, rgba(139, 92, 246, .22), rgba(79, 125, 255, .1));
    border: 1px solid rgba(139, 92, 246, .22);
    box-shadow: var(--edge);
    transition: transform .4s var(--ease-out), background .4s, border-color .4s;
}

.feature-card:hover .feature-icon {
    transform: translateY(-3px) rotate(-6deg) scale(1.06);
    background: linear-gradient(140deg, rgba(139, 92, 246, .4), rgba(34, 211, 238, .18));
    border-color: rgba(139, 92, 246, .5);
}

.feature-title {
    font-size: 17.5px;
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: 8px;
}

.feature-text { color: var(--text-soft); font-size: 14.3px; line-height: 1.7; }

/* ---------- 21.17 Classement des votants ---------- */
.rank-row {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    transition: background .2s, padding-left .25s var(--ease-out);
}

.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: rgba(255, 255, 255, .02); padding-left: 6px; }

.rank-medal {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-dim);
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    font-variant-numeric: tabular-nums;
}

.rank-medal.is-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #1a1200; border-color: transparent; box-shadow: 0 4px 14px -4px rgba(251, 191, 36, .7); }
.rank-medal.is-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #10151d; border-color: transparent; }
.rank-medal.is-3 { background: linear-gradient(135deg, #fb923c, #c2410c); color: #1a0d00; border-color: transparent; }

.rank-row img { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; }
.rank-row a { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row a:hover { color: var(--violet-2); }

/* ---------- 21.18 Encart d'appel à l'action ---------- */
.cta-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(139, 92, 246, .2), transparent 60%),
        var(--surface);
}

.cta-card h3 {
    font-size: clamp(20px, 2.6vw, 25px);
    font-weight: 800;
    letter-spacing: -.025em;
    margin-bottom: 10px;
    text-wrap: balance;
}

/* ---------- 21.19 Transitions entre pages ---------- */
/* Navigateurs compatibles (Chrome 126+) : fondu enchaîné d'une page à l'autre.
   La barre de navigation est nommée, donc elle ne clignote pas au passage.
   Ailleurs, la règle est simplement ignorée. */
@view-transition { navigation: auto; }

.nav { view-transition-name: botix-nav; }

::view-transition-old(root) { animation: fade-out .18s var(--ease) both; }
::view-transition-new(root) { animation: fade-in .28s var(--ease-out) both; }

@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in  { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 21.20 Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
    .card::after,
    .bot-card::after,
    .stat::after,
    .cat-card::after,
    .metric::after,
    .nav-link::after { display: none; }

    .hero::before { animation: none; }
    .empty-icon { animation: none; }
    .scroll-progress { display: none; }
    img[data-fade] { opacity: 1; transform: none; }

    ::view-transition-old(root),
    ::view-transition-new(root) { animation: none; }
}

/* Le halo au curseur n'a aucun sens au doigt : on l'éteint sur tactile. */
@media (hover: none) {
    .card::after,
    .bot-card::after,
    .stat::after,
    .cat-card::after,
    .metric::after { display: none; }

    .bot-card:hover { transform: none; }
}

/* =====================================================================
   DISPONIBILITÉ MESURÉE — pastille, frise 30 jours, chiffres
   ===================================================================== */

.container-narrow { max-width: 760px; }
.justify-center   { justify-content: center; }

/* ---- Pastille d'état ---- */
.uptime-dot {
    --dot: var(--text-dim);
    position: relative;
    display: inline-block;
    flex: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--dot);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 22%, transparent);
}

.uptime-dot.is-online  { --dot: #3fb950; }
.uptime-dot.is-idle    { --dot: #d29922; }
.uptime-dot.is-dnd     { --dot: #f0883e; }
.uptime-dot.is-offline { --dot: #f85149; }
.uptime-dot.is-unknown { --dot: #6b7889; }

/* Le battement ne s'affiche que pour un bot vivant : il porte l'information. */
.uptime-dot.is-beating::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 1px solid var(--dot);
    animation: uptimePulse 2.4s var(--ease-out) infinite;
}

@keyframes uptimePulse {
    0%   { transform: scale(.7); opacity: .9; }
    70%  { transform: scale(2.1); opacity: 0; }
    100% { transform: scale(2.1); opacity: 0; }
}

.kpi-uptime { display: inline-flex; align-items: center; gap: 7px; }

/* ---- Carte de la fiche ---- */
.uptime-card .sidebar-title { display: flex; align-items: center; gap: 8px; }

.uptime-live {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-2);
    box-shadow: var(--edge);
}

.uptime-live p { margin: 2px 0 0; }

.uptime-void {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--r);
    background: rgba(107, 120, 137, .07);
}

.uptime-void .uptime-dot { margin-top: 5px; }

.uptime-figures {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.uptime-figure {
    flex: 1;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
}

.uptime-value {
    display: block;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.uptime-value small { font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-left: 1px; }

.uptime-caption {
    display: block;
    font-size: 11.6px;
    color: var(--text-dim);
    margin-top: 1px;
}

/* ---- Frise des 30 jours ---- */
.uptime-strip {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    margin-top: 14px;
    height: 34px;
}

.uptime-bar {
    flex: 1;
    min-width: 2px;
    height: 100%;
    border-radius: 2px;
    background: rgba(107, 120, 137, .22);
    transition: transform .18s var(--ease-out), filter .18s;
}

.uptime-bar.is-up      { background: linear-gradient(180deg, #4ad66d, #2ea043); }
.uptime-bar.is-partial { background: linear-gradient(180deg, #e3b341, #c69026); }
.uptime-bar.is-down    { background: linear-gradient(180deg, #ff7b72, #da3633); }
.uptime-bar.is-unknown { background: repeating-linear-gradient(45deg, rgba(107,120,137,.3) 0 3px, transparent 3px 6px); }

.uptime-bar:hover { transform: scaleY(1.12); filter: brightness(1.2); }

.uptime-scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 6px;
}

/* ---- Journal des changements ---- */
.uptime-log { margin-top: 12px; }

.uptime-log summary {
    cursor: pointer;
    font-size: 12.8px;
    color: var(--text-soft);
    padding: 5px 0;
}

.uptime-log summary:hover { color: var(--text); }

.uptime-log-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.6px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border);
}

.uptime-log-row:last-child { border-bottom: 0; }

/* =====================================================================
   BAC À SABLE D'ESSAI — bouton, scène, compte à rebours
   ===================================================================== */

.btn-try {
    background: linear-gradient(135deg, rgba(34, 211, 238, .16), rgba(139, 92, 246, .16));
    border-color: rgba(34, 211, 238, .34);
    color: #a5f3fc;
}

.btn-try:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, .26), rgba(139, 92, 246, .26));
    border-color: rgba(34, 211, 238, .5);
}

.btn-try.is-running { border-color: rgba(63, 185, 80, .45); color: #7ee787; }

.try-card { border-color: rgba(34, 211, 238, .22); }

.try-stage {
    padding: 30px 26px;
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    background: var(--surface);
    box-shadow: var(--edge), var(--shadow);
    backdrop-filter: blur(14px);
}

.try-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.try-avatar { border-radius: 18px; box-shadow: var(--edge), var(--shadow-sm); }

/* ---- Progression ---- */
.try-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    list-style: none;
    padding: 20px 0;
    margin: 0;
}

.try-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
}

.try-step-num {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    font-size: 11.5px;
    font-weight: 700;
}

.try-step.is-current { color: var(--text); }
.try-step.is-current .try-step-num {
    border-color: transparent;
    background: var(--brand-grad);
    color: #fff;
    box-shadow: var(--ring);
}

.try-step.is-done { color: var(--text-soft); }
.try-step.is-done .try-step-num {
    border-color: rgba(63, 185, 80, .5);
    background: rgba(63, 185, 80, .16);
    color: #7ee787;
}

/* ---- Scène ---- */
.try-panel { padding: 22px 0 6px; text-align: center; }

.try-title {
    font-size: clamp(19px, 2.6vw, 24px);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.try-panel p { max-width: 52ch; margin-inline: auto; }

.try-done { font-size: 46px; line-height: 1; margin-bottom: 12px; }

/* Anneau de compte à rebours : un simple conic-gradient, pas de canvas. */
.try-ring {
    --pct: 100;
    position: relative;
    display: grid;
    place-content: center;
    width: 132px;
    height: 132px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background:
        conic-gradient(#22d3ee calc(var(--pct) * 1%), rgba(255, 255, 255, .07) 0),
        var(--bg-elevated);
    transition: background .6s linear;
}

.try-ring::after {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--bg-soft);
    box-shadow: var(--edge);
}

.try-ring b,
.try-ring small {
    position: relative;
    z-index: 1;
    display: block;
    text-align: center;
}

.try-ring b {
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.try-ring small { font-size: 11.5px; color: var(--text-dim); }

.try-ring.is-live { background: conic-gradient(#8b5cf6 calc(var(--pct) * 1%), rgba(255,255,255,.07) 0), var(--bg-elevated); }
.try-ring.is-urgent { background: conic-gradient(#f85149 calc(var(--pct) * 1%), rgba(255,255,255,.07) 0), var(--bg-elevated); }
.try-ring.is-urgent b { color: #ff8880; }

/* ---- Récapitulatif ---- */
.try-recap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
}

.try-stat {
    min-width: 118px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    background: var(--surface-2);
}

.try-stat b {
    display: block;
    font-size: 26px;
    font-weight: 850;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.try-stat span { font-size: 12px; color: var(--text-dim); }

.is-disabled { pointer-events: none; opacity: .45; }

@media (max-width: 620px) {
    .try-stage { padding: 22px 16px; }
    .uptime-figures { flex-direction: column; }
    .uptime-strip { height: 28px; }
}
