/* =====================================================================
   BOTIX.fr — Thème « Pro »
   ---------------------------------------------------------------------
   Chargé EN DERNIER, après botix.css et botix-ui.css. Cette couche
   remplace l'identité visuelle « néon / glassmorphism » par une charte
   sobre et professionnelle :

     · une seule couleur d'accent (indigo), plus de dégradés arc-en-ciel ;
     · des surfaces opaques, des bordures fines, des ombres discrètes ;
     · des rayons réduits (8–12 px), une typographie plus posée ;
     · plus de halos animés, de reflets, de grilles ni de lumière suivant
       le curseur ;
     · des marges latérales de 5 % sur toute la largeur du site.

   Les deux feuilles précédentes restent chargées : elles fournissent la
   structure (grilles, positions, tailles). Ici, on ne fait que repeindre.
   ===================================================================== */

/* ---------- 1. Jetons ----------
   `html[data-accent]` neutralise les cinq palettes réglables de la couche
   UI : quel que soit l'accent choisi autrefois, le site reste cohérent. */
:root,
html[data-accent] {
    /* Fonds — opaques */
    --bg:            #0b0e14;
    --bg-soft:       #0f131b;
    --bg-elevated:   #151a25;
    --surface:       #121722;
    --surface-2:     #171d29;
    --pane:          #121722;
    --pane-2:        #121722;
    --pane-solid:    #121722;
    --border:        rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .15);

    /* Texte */
    --text:      #e8ebf1;
    --text-soft: #a4acba;
    --text-dim:  #6f7889;

    /* Accent unique */
    --accent:    #5b6cff;
    --accent-2:  #8a97ff;
    --accent-3:  #5b6cff;
    --accent-dk: #4756e6;

    /* Anciens jetons de marque, redirigés vers l'accent : tout ce qui les
       référence (y compris les styles inline des vues) suit sans retouche. */
    --violet:   var(--accent);
    --violet-2: var(--accent-2);
    --blue:     var(--accent);
    --cyan:     var(--accent-2);
    --pink:     var(--accent-2);

    --brand-grad:   linear-gradient(135deg, var(--accent), var(--accent-dk));
    --brand-grad-2: linear-gradient(135deg, var(--accent), var(--accent-dk));

    /* États */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger:  #ef4444;
    --info:    #3b82f6;

    /* Rayons */
    --r-sm:  6px;
    --r:     8px;
    --r-lg:  10px;
    --r-xl:  12px;
    --r-2xl: 12px;

    /* Ombres — discrètes, jamais colorées */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow:    0 6px 18px rgba(0, 0, 0, .3);
    --shadow-lg: 0 18px 44px rgba(0, 0, 0, .42);
    --glow:      0 0 0 3px rgba(91, 108, 255, .22);

    /* Effets de matière désactivés (valeurs valides mais invisibles :
       ces jetons sont combinés dans des listes box-shadow). */
    --edge:        0 0 0 0 transparent;
    --edge-strong: 0 0 0 0 transparent;
    --lift:        0 0 0 0 transparent;
    --ring:        0 0 0 3px rgba(91, 108, 255, .22);
    --spot:        transparent;
    --frame:       linear-gradient(var(--border), var(--border));
    --frame-hover: linear-gradient(var(--border-strong), var(--border-strong));

    --nav-h: 64px;
    --maxw:  100%;
    --gutter: 5%;
    --ease:  cubic-bezier(.22, 1, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- 2. Socle ---------- */
body {
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
}

html { scrollbar-color: rgba(255, 255, 255, .18) transparent; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .26); }

::selection { background: rgba(91, 108, 255, .35); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.015em; }

/* ---------- 3. Décor de fond : supprimé ---------- */
.bg-fx,
.hero::before,
.scroll-progress,
.bot-card-aura,
.bot-card-sheen,
.appearance { display: none !important; }

/* Halo suivant le curseur (couche 21.5) */
.card::after,
.bot-card::after,
.stat::after,
.cat-card::after,
.metric::after { display: none !important; }

/* Textes en dégradé → couleur pleine */
.gradient-text,
.text-grad,
.stat-value,
.footer-stat b,
.podium-score b,
.rank-1 .podium-score b,
.logo-text .tld {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: currentColor;
    color: var(--accent-2);
    animation: none;
    text-shadow: none;
}

.stat-value,
.footer-stat b,
.podium-score b,
.rank-1 .podium-score b { color: var(--text); }

/* ---------- 4. Gabarit : marges de 5 % partout ---------- */
.container,
.nav-inner,
.bot-bar-inner {
    width: 100%;
    max-width: none;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Les conteneurs dont une vue borne la largeur (formulaires, pages
   légales, connexion) gardent leur max-width inline et se centrent ; un
   retrait fixe évite qu'un pourcentage de l'écran ne les rétrécisse
   davantage. Sur mobile, ils reprennent la marge de 5 % (voir §21). */
.container[style*="max-width"] { padding-inline: 20px; }

.page    { padding: 36px 0 72px; }
.section { padding: 56px 0; }

.section-head { margin-bottom: 24px; }
.section-title { font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; }
.section-sub   { font-size: 14.5px; }

.grid { gap: 18px; }

/* ---------- 5. Navigation ---------- */
.nav {
    height: var(--nav-h);
    background: rgba(11, 14, 20, .86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav.is-scrolled {
    background: rgba(11, 14, 20, .96);
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25);
}

.nav::after { display: none; }
.nav-inner { gap: 24px; }

.logo { font-size: 18px; font-weight: 700; letter-spacing: -.02em; gap: 9px; }

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    box-shadow: none;
}

.logo:hover .logo-mark { transform: none; }

.nav-links { gap: 2px; }

.nav-link {
    padding: 7px 12px;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 500;
}

.nav-link::after { display: none; }
.nav-link:hover { background: rgba(255, 255, 255, .05); }

.nav-link.is-active {
    color: var(--text);
    background: rgba(255, 255, 255, .07);
    box-shadow: none;
}

.nav-search { width: 220px; }

.nav-search input {
    height: 36px;
    border-radius: var(--r);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    font-size: 13.5px;
}

.nav-search input:focus { background: var(--bg-soft); border-color: var(--accent); box-shadow: var(--ring); }

.cmdk-trigger {
    height: 36px;
    border-radius: var(--r);
    background: var(--bg-soft);
    border-color: var(--border);
}

.user-trigger {
    padding: 4px 10px 4px 4px;
    border-radius: var(--r);
    background: var(--bg-soft);
}

.user-trigger img { width: 26px; height: 26px; border-radius: 6px; }

.dropdown {
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    padding: 6px;
}

.dropdown-item { border-radius: var(--r-sm); font-size: 13.5px; padding: 8px 10px; }
.dropdown-item:hover { background: rgba(255, 255, 255, .06); }

@media (max-width: 900px) {
    .nav-links {
        padding: 12px var(--gutter) 20px;
        background: var(--bg);
        backdrop-filter: none;
        border-bottom: 1px solid var(--border);
    }
}

/* ---------- 6. Boutons ---------- */
.btn {
    height: 40px;
    padding: 0 16px;
    border-radius: var(--r);
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
}

.btn:hover { transform: none; background: #1b2130; border-color: rgba(255, 255, 255, .22); }
.btn:active { transform: none; }
.btn:focus-visible { box-shadow: var(--ring); }

.btn-primary,
.btn-primary:hover {
    background: var(--accent);
    background-size: auto;
    border-color: transparent;
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover { background: var(--accent-dk); }
.btn-primary::after { display: none; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--text-soft); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); border-color: transparent; color: var(--text); }

.btn-vote { background: #16a34a; border-color: transparent; box-shadow: none; }
.btn-vote:hover { background: #15803d; box-shadow: none; }

.btn-discord { background: #5865f2; box-shadow: none; }
.btn-discord:hover { background: #4752c4; box-shadow: none; }

.btn-danger { background: rgba(239, 68, 68, .1); border-color: rgba(239, 68, 68, .3); color: #f87171; }
.btn-danger:hover { background: rgba(239, 68, 68, .18); }

.btn-try { background: rgba(91, 108, 255, .1); border-color: rgba(91, 108, 255, .35); color: var(--accent-2); }
.btn-try:hover { background: rgba(91, 108, 255, .18); }

.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; border-radius: var(--r-lg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn-icon { width: 40px; }

.icon-btn { border-radius: var(--r-sm); background: var(--bg-elevated); backdrop-filter: none; }
.icon-btn:hover { transform: none; }
.icon-btn.is-on { box-shadow: none; }

.to-top,
.social a {
    border-radius: var(--r);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}

.to-top:hover,
.social a:hover { background: var(--accent); border-color: transparent; transform: none; }

/* ---------- 7. Surfaces ----------
   Le !important répond à celui de la couche UI (section 23), qui peignait
   une bordure dégradée en border-box. */
.card,
.bot-card,
.sidebar-card,
.chart-box,
.metric,
.stat,
.feature-card,
.cat-card,
.empty,
.cta-card,
.quick-panel,
.compare-dock,
.recent-card,
.bot-hero,
.filters,
.table-wrap,
.report-card,
.price-card,
.podium-card,
.dash-nav,
.tk-row,
.try-stage,
.fact,
.endpoint,
.uptime-live,
.uptime-figure,
.try-stat,
.kpi-chip,
.panel-stat,
.quick-stat,
.dev-stats,
.tk-sync {
    background-image: none !important;
    background-color: var(--surface);
    border: 1px solid var(--border) !important;
    border-radius: var(--r-lg);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.card:hover,
.bot-card:hover,
.sidebar-card:hover,
.chart-box:hover,
.feature-card:hover,
.cat-card:hover,
.stat:hover,
.card-hover:hover,
.report-card:hover,
.tk-row:hover,
a.fact:hover,
a.panel-stat:hover {
    background-image: none !important;
    border-color: var(--border-strong) !important;
    box-shadow: var(--shadow);
}

.bot-card:hover,
.card-hover:hover,
.cat-card:hover,
.stat:hover,
.price-card:hover,
.podium-card:hover,
.recent-card:hover,
.tk-row:hover,
a.fact:hover { transform: translateY(-2px); }

.card-pad { padding: 22px; }

.empty { border-style: dashed !important; border-color: var(--border-strong) !important; }
.empty-icon { animation: none; opacity: .5; }

.kpi-chip, .panel-stat, .quick-stat, .dev-stats, .uptime-figure, .try-stat, .fact { border-radius: var(--r); }
.kpi-chip { background-color: var(--bg-soft); }

/* Carte bot */
.bot-card { padding: 18px; }
.bot-card::before { display: none; }
.bot-card.is-premium { border-color: rgba(138, 151, 255, .4) !important; }

.bot-avatar-ring {
    width: 60px;
    height: 60px;
    padding: 1px;
    border-radius: var(--r-lg);
    background: var(--border-strong);
}

.bot-card:hover .bot-avatar-ring { background: var(--accent); transform: none; }
.is-premium .bot-avatar-ring { background: var(--accent); }
.bot-avatar { border-radius: 9px; }
.bot-card:hover .bot-avatar { transform: none; }

.bot-name { font-size: 16.5px; font-weight: 650; }
.bot-name a:hover { color: var(--accent-2); }
.bot-desc { font-size: 13.8px; }

.bot-card-meta {
    border-image: none;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 10px 0 12px;
}

.bot-card-meta .growth { color: #34d399; }

.bot-rank {
    border-radius: var(--r-sm);
    background: var(--bg-elevated);
    box-shadow: none;
}

.bot-rank.top1, .bot-rank.top2, .bot-rank.top3 { box-shadow: none; }

.bot-score-badge { border-color: var(--surface); }

.grid.is-list .bot-card-aura { display: none; }

/* Carte argument (accueil) */
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--r);
    font-size: 22px;
    background: rgba(91, 108, 255, .12);
    border: 1px solid rgba(91, 108, 255, .22);
    box-shadow: none;
}

.feature-card:hover .feature-icon { transform: none; background: rgba(91, 108, 255, .18); }
.feature-title { font-size: 16.5px; }

.cta-card { border-left: 3px solid var(--accent) !important; }

/* ---------- 8. Badges, puces, étiquettes ---------- */
.badge,
.tag,
.cat-chip,
.chip,
.tk-badge { box-shadow: none; font-weight: 600; }

.badge { border-radius: 6px; padding: 3px 8px; font-size: 11.5px; }

.badge-premium  { background: rgba(138, 151, 255, .14); color: var(--accent-2); border-color: rgba(138, 151, 255, .32); }
.badge-growing  { background: rgba(52, 211, 153, .12); color: #34d399; border-color: rgba(52, 211, 153, .3); }
.badge-verified,
.badge-approved { background: rgba(34, 197, 94, .12); color: #4ade80; border-color: rgba(34, 197, 94, .3); }
.badge-popular,
.badge-pending  { background: rgba(245, 158, 11, .12); color: #fbbf24; border-color: rgba(245, 158, 11, .3); }
.badge-rejected { background: rgba(239, 68, 68, .12); color: #f87171; border-color: rgba(239, 68, 68, .3); }

.cat-chip:hover,
a.tag:hover { background: rgba(91, 108, 255, .12); border-color: rgba(91, 108, 255, .35); color: var(--accent-2); }

.chip { border-radius: var(--r); padding: 7px 13px; font-size: 13px; background: var(--bg-elevated); }
.chip:hover { transform: none; }
.chip.is-active { background: var(--accent); box-shadow: none; }

.check-icon circle { fill: var(--success); }

/* ---------- 9. Champs ---------- */
.input,
.select,
.textarea {
    background: var(--bg-soft);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    font-size: 14px;
    box-shadow: none;
}

.input:focus,
.select:focus,
.textarea:focus {
    background: var(--bg-soft);
    border-color: var(--accent);
    box-shadow: var(--ring);
}

.select option { background: var(--bg-elevated); }
.checkbox input { accent-color: var(--accent); }

.label { font-size: 13.5px; font-weight: 600; }

.filters { padding: 14px; border-radius: var(--r-lg); }

/* ---------- 10. Accueil ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }

.hero-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    backdrop-filter: none;
    font-size: 12.5px;
    margin-bottom: 22px;
}

.hero-pill:hover { transform: none; border-color: var(--border-strong); }
.hero-pill b { background: var(--accent); }

.hero h1 {
    font-size: clamp(32px, 5.2vw, 54px);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.08;
}

.hero p.lead { font-size: clamp(15px, 1.8vw, 17.5px); max-width: 620px; margin-bottom: 30px; }

.hero-search { margin-bottom: 40px; }

.hero-search input {
    height: 54px;
    border-radius: var(--r-lg);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    backdrop-filter: none;
    box-shadow: var(--shadow-sm);
    font-size: 15px;
}

.hero-search input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.hero-search:focus-within input { transform: none; }
.hero-search .btn { top: 7px; right: 7px; height: 40px; }

.stats-row { gap: 14px; max-width: 960px; }
.stat { padding: 20px 16px; }
.stat-value { font-size: clamp(24px, 3vw, 32px); font-weight: 700; }
.stat-label { font-size: 12px; letter-spacing: .06em; }

.cat-card { padding: 20px 12px; gap: 6px; border-radius: var(--r-lg); }
.cat-card:hover { background-color: var(--surface-2); }
.cat-card:hover .cat-icon { transform: none; }
.cat-icon { font-size: 24px; }
.cat-name { font-size: 14px; font-weight: 600; }

/* ---------- 11. Podium ---------- */
.podium-card { border-radius: var(--r-lg) var(--r-lg) 4px 4px; }
.podium-crown { animation: none; filter: none; font-size: 26px; }
.rank-1 .podium-card { box-shadow: none; border-color: rgba(251, 191, 36, .35) !important; }
.rank-2 .podium-card { border-color: rgba(203, 213, 225, .28) !important; }
.rank-3 .podium-card { border-color: rgba(251, 146, 60, .3) !important; }
.podium-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.podium-avatar { border-radius: 18px; box-shadow: none !important; }
.podium-avatar img { border-radius: 14px; }
.rank-1 .podium-avatar img { border-radius: 18px; }
.podium-card:hover .podium-avatar { transform: none; }
.podium-step { border-radius: 0 0 4px 4px; }
.podium-step::after { display: none; }
.podium-step-number { text-shadow: none; }

/* ---------- 12. Fiche d'un bot ---------- */
.bot-hero { border-radius: var(--r-xl); box-shadow: none; }

.bot-hero-cover {
    height: 128px;
    background: linear-gradient(120deg, rgba(91, 108, 255, .22), rgba(91, 108, 255, .06));
    border-bottom: 1px solid var(--border);
}

.bot-hero-cover::before { opacity: .35; }
.bot-hero-cover::after { display: none; }

.bot-hero-avatar { border-radius: 18px; border: 3px solid var(--surface); box-shadow: var(--shadow-sm); }

.bot-hero h1 { font-weight: 700; }
.bot-check { box-shadow: none; }

.meta-rating,
.meta-owner { border-radius: var(--r); background: var(--bg-soft); }
.meta-rating:hover, .meta-owner:hover { transform: none; background: var(--bg-elevated); }

.bot-hero-panel {
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--bg-soft);
    box-shadow: none;
    backdrop-filter: none;
}

.panel-icons .btn-icon { border-radius: var(--r); }
.panel-edit:hover { color: var(--accent-2); }

.metric { padding: 16px; }
.metric-value { font-size: 22px; font-weight: 700; }
.metric-label { letter-spacing: .05em; }
.metric-trend.is-up { color: #34d399; }

.section-heading { font-weight: 650; }

.similar-row:hover .similar-go { color: var(--accent-2); }

.score-ring { filter: none; }
.score-ring::before { background: var(--surface); }

.tabs { border-bottom-color: var(--border); }
.tab { font-weight: 550; }
.tab.is-active { color: var(--text); border-bottom-color: var(--accent); }

.review-reply { border-left-color: var(--accent); background: rgba(91, 108, 255, .07); border-radius: 0 var(--r) var(--r) 0; }
.review-reply strong { color: var(--accent-2); }

.crumbs a:hover { color: var(--accent-2); }

.bot-bar { background: rgba(11, 14, 20, .94); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.bot-bar img { border-radius: var(--r-sm); }

.cmd-name { border-radius: var(--r-sm); background: rgba(91, 108, 255, .12); border-color: rgba(91, 108, 255, .25); color: var(--accent-2); }

/* ---------- 13. Contenu riche ---------- */
.prose { font-size: 15px; line-height: 1.75; color: #c6cdd8; }
.prose h2 { font-size: 20px; font-weight: 650; margin: 26px 0 10px; }
.prose h3 { font-size: 17px; font-weight: 600; }
.prose a { color: var(--accent-2); }
.prose a:hover { color: #fff; }
.prose li::before { background: var(--accent); }
.prose code { background: rgba(255, 255, 255, .07); color: #dfe3ea; border-radius: 5px; }
.prose pre { background: var(--bg-soft); border-radius: var(--r); }
.prose strong { color: var(--text); font-weight: 650; }

.code-block { background: var(--bg-soft); border-radius: var(--r); box-shadow: none; }
.code-block code { color: #cfd6e2; }

.method { border-radius: 5px; }
.endpoint { border-radius: var(--r); }

/* ---------- 14. Tableau de bord & admin ---------- */
.dash-layout { gap: 24px; }
.dash-nav { padding: 10px; }
.dash-nav-title { font-size: 11px; padding: 8px 10px; }

.dash-link { padding: 9px 10px; border-radius: var(--r-sm); font-size: 14px; }
.dash-link:hover { background: rgba(255, 255, 255, .05); }

.dash-link.is-active {
    background: rgba(91, 108, 255, .14);
    color: var(--text);
    box-shadow: inset 0 0 0 1px rgba(91, 108, 255, .3);
}

.dash-link .count { background: rgba(255, 255, 255, .1); border-radius: 5px; }

.page-head { margin-bottom: 22px; }
.page-title { font-size: clamp(22px, 2.8vw, 28px); font-weight: 700; }
.page-desc { font-size: 14px; }

/* Tableaux */
.table-wrap { border-radius: var(--r-lg); }
.table th { background: var(--bg-soft); border-bottom-color: var(--border-strong); font-size: 11px; }
.table thead th { background: var(--bg-soft); }
.table tbody tr:nth-child(even) { background: transparent; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); box-shadow: none; }
.table-user img { border-radius: var(--r-sm); }

.chart-box { padding: 18px; }
.chart-title { font-size: 15px; font-weight: 600; }

/* Signalements */
.report-card.is-severe { border-color: rgba(239, 68, 68, .35) !important; }
.report-details { border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--bg-soft); }

/* Assistance */
.tk-row { border-radius: var(--r-lg); }
.tk-row:hover { transform: none; }
.tk-msg-text { border-radius: var(--r-lg); background: var(--surface-2); }
.tk-msg.is-mine .tk-msg-text { background: rgba(91, 108, 255, .14); border-color: rgba(91, 108, 255, .3); }
.tk-answered { background: rgba(91, 108, 255, .14); color: var(--accent-2); border-color: rgba(91, 108, 255, .32); }
.tk-compose { backdrop-filter: none; }

/* Premium */
.price-card { border-radius: var(--r-xl); padding: 28px 24px; }
.price-card.is-featured { border-color: var(--accent) !important; box-shadow: none; }
.price-tag { background: var(--accent); }
.price-value { font-weight: 750; }

/* ---------- 15. Alertes, toasts, modales, palette ---------- */
.alert { border-radius: var(--r); box-shadow: none; font-size: 14px; }
.alert-success { background: rgba(34, 197, 94, .1);  border-color: rgba(34, 197, 94, .3);  color: #86efac; }
.alert-error   { background: rgba(239, 68, 68, .1);  border-color: rgba(239, 68, 68, .3);  color: #fca5a5; }
.alert-warning { background: rgba(245, 158, 11, .1); border-color: rgba(245, 158, 11, .3); color: #fcd34d; }
.alert-info    { background: rgba(59, 130, 246, .1); border-color: rgba(59, 130, 246, .3); color: #93c5fd; }

.toast { border-radius: var(--r-lg); background: var(--bg-elevated); box-shadow: var(--shadow-lg); }

.modal-backdrop { background: rgba(5, 7, 11, .72); backdrop-filter: blur(3px); }
.modal { border-radius: var(--r-xl); background: var(--bg-elevated); border-color: var(--border-strong); }
.modal-title { font-weight: 650; }

.cmdk-panel { border-radius: var(--r-xl); background: var(--bg-elevated); box-shadow: var(--shadow-lg); }
.cmdk-item { border-radius: var(--r); }
.cmdk-item[aria-selected="true"] { background: rgba(91, 108, 255, .16); box-shadow: inset 0 0 0 1px rgba(91, 108, 255, .3); }
.cmdk-item img, .cmdk-item .glyph { border-radius: var(--r-sm); }

kbd { border-radius: 4px; background: rgba(255, 255, 255, .06); }

.quick-cover { background: linear-gradient(120deg, rgba(91, 108, 255, .3), rgba(91, 108, 255, .08)); }
.quick-top img { border-color: var(--surface); border-radius: 14px; }

.compare-dock { border-radius: var(--r-xl); background-color: var(--bg-elevated); box-shadow: var(--shadow-lg); backdrop-filter: none; }
.compare-slot { border-radius: var(--r); }
.compare-slot img { border-radius: 7px; }
.compare-table thead th { background: var(--bg-elevated); }

.pagination { margin-top: 30px; }
.page-btn { border-radius: var(--r-sm); background: var(--bg-elevated); }
.page-btn.is-active { background: var(--accent); }

.rank-medal { border-radius: var(--r-sm); }
.rank-medal.is-1 { box-shadow: none; }
.rank-row a:hover { color: var(--accent-2); }

.view-switch { border-radius: var(--r); background: var(--bg-soft); }
.view-switch button { border-radius: 6px; }
.view-switch button.is-active { box-shadow: none; }

.recent-card { border-radius: var(--r-lg); }
.recent-card img { border-radius: var(--r-sm); }

.spark { color: var(--accent-2); }

.uptime-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent); }
.uptime-void { border-radius: var(--r); }

.try-ring::after { background: var(--surface); box-shadow: none; }
.try-avatar { box-shadow: none; }
.try-step.is-current .try-step-num { background: var(--accent); box-shadow: none; }
.try-card { border-color: rgba(91, 108, 255, .3) !important; }

/* ---------- 16. Pied de page ---------- */
.footer {
    margin-top: 64px;
    padding: 36px 0 20px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 300px; }
.footer-brand p { color: var(--text-soft); font-size: 13.5px; margin: 10px 0 14px; line-height: 1.55; }

.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }

.footer-col { display: flex; flex-direction: column; gap: 7px; }
.footer-col h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 4px; font-weight: 600; }
.footer-col a { font-size: 13.5px; color: var(--text-soft); transition: color .15s; }
.footer-col a:hover { color: var(--text); padding-left: 0; }

/* Bouton « Cookies », habillé comme un lien. */
.footer-link-btn {
    padding: 0;
    font: inherit;
    color: var(--text-dim);
    cursor: pointer;
    transition: color .15s;
}

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

.footer-bottom a { color: var(--text-dim); transition: color .15s; }
.footer-bottom a:hover,
.footer-link-btn:hover { color: var(--text); }

.footer-legal-links { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.to-top { width: 30px; height: 30px; margin-left: 4px; }
.to-top svg { width: 14px; height: 14px; }

.social { gap: 8px; }
.social a { width: 32px; height: 32px; }

@media (max-width: 760px) {
    .footer { padding-top: 28px; }
    .footer-top { flex-direction: column; gap: 24px; }
    .footer-links { gap: 28px 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ---------- 17. Pages légales ---------- */
.legal-nav {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow-x: auto;
    scrollbar-width: none;
}

.legal-nav::-webkit-scrollbar { display: none; }

.legal-tab {
    flex: 1;
    padding: 9px 14px;
    border-radius: var(--r-sm);
    font-size: 13.5px;
    font-weight: 550;
    color: var(--text-soft);
    text-align: center;
    white-space: nowrap;
    transition: background .15s, color .15s;
}

.legal-tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.legal-tab.is-active { background: var(--accent); color: #fff; }

.legal-card { padding: 32px; }

.legal-facts {
    display: grid;
    gap: 0;
    margin: 12px 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--bg-soft);
}

.legal-facts > div {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.legal-facts > div:last-child { border-bottom: 0; }
.legal-facts dt { color: var(--text-dim); font-weight: 500; }
.legal-facts dd { margin: 0; color: var(--text); }

.legal-credit {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 13.5px;
    color: var(--text-dim);
}

@media (max-width: 640px) {
    .legal-card { padding: 22px 18px; }
    .legal-facts > div { grid-template-columns: 1fr; gap: 2px; }
    .legal-tab { flex: 0 0 auto; }
}

/* ---------- 18. Connexion ---------- */
.auth-card { padding: 40px 32px; text-align: center; }
.auth-logo { justify-content: center; margin-bottom: 20px; }
.auth-logo .logo-mark { width: 48px; height: 48px; border-radius: 12px; }
.auth-logo .logo-mark svg { width: 26px; height: 26px; }
.auth-title { font-size: 25px; font-weight: 700; letter-spacing: -.025em; margin-bottom: 8px; }
.auth-sub { margin-bottom: 28px; font-size: 14.5px; }

.auth-remember {
    margin-top: 16px;
    padding: 12px 14px;
    text-align: left;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--r);
    align-items: center;
}

.auth-remember input { margin-top: 0; }
.auth-remember strong { display: block; color: var(--text); font-size: 14px; font-weight: 600; }
.auth-remember small { display: block; font-size: 12.5px; line-height: 1.45; margin-top: 2px; }

.auth-perks { margin: 28px 0 0; text-align: left; }
.auth-perks li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-soft); margin-bottom: 12px; }
.auth-perks li span { font-size: 18px; width: 26px; text-align: center; }

.auth-legal { margin-top: 20px; font-size: 12.5px; }
.auth-legal a { color: var(--accent-2); }

@media (max-width: 640px) { .auth-card { padding: 28px 20px; } }

/* ---------- 19. Bandeau cookies ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 290;
    padding: 0 var(--gutter) 20px;
    transform: translateY(115%);
    transition: transform .3s var(--ease-out);
    pointer-events: none;
}

.cookie-banner.is-open { transform: none; pointer-events: auto; }

.cookie-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}

.cookie-text { min-width: 0; }
.cookie-text strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.cookie-text p { margin: 0; font-size: 13.5px; color: var(--text-soft); line-height: 1.5; max-width: 760px; }
.cookie-text a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }

.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

@media (max-width: 760px) {
    .cookie-banner { padding-bottom: 12px; }
    .cookie-banner-inner { flex-direction: column; align-items: stretch; padding: 16px; }
    .cookie-actions { flex-direction: column-reverse; }
    .cookie-actions .btn { width: 100%; }
}

/* ---------- 20. Mouvement ----------
   Les apparitions au défilement restent, mais courtes et discrètes. */
.reveal { transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }

.tab-panel.is-active { animation: none; }

img[data-fade] { transform: none; transition: opacity .3s ease; }

/* ---------- 21. Petits écrans ---------- */
@media (max-width: 640px) {
    .container,
    .nav-inner,
    .bot-bar-inner { padding-inline: var(--gutter); }

    .container[style*="max-width"] { padding-inline: var(--gutter); }

    .page    { padding: 24px 0 56px; }
    .section { padding: 40px 0; }
    .bot-card { padding: 16px; border-radius: var(--r-lg); }
    .hero-search input { height: 50px; }
}

/* ---------- 22. Impression ---------- */
@media print {
    .cookie-banner { display: none !important; }
}
