﻿/* ════════════════════════════════════════════════════════════════
   QUASAR — Design System « Fusion »
   IntelHunt (bleu électrique, rideaux de lumière)
   + OathNet (aurore violette, étoiles, pills, glow)
   + SeekNow (grille fine, néon blanc, chiffres mono, numéros fantômes)
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg: #050508;
  --bg-2: #0a0a12;
  --panel: #0c0c16;
  --glass: rgba(255, 255, 255, 0.025);
  --glass-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4ff;
  --text-2: rgba(230, 236, 255, 0.55);
  --text-3: rgba(230, 236, 255, 0.3);

  --violet: #683FEA;
  --violet-2: #A47CF3;
  --blue: #3b5bff;
  --blue-glow: #2934ff;
  --blue-2: #8aa5ff;

  --grad: linear-gradient(135deg, #683FEA 0%, #3b5bff 100%);
  --grad-soft: linear-gradient(135deg, rgba(var(--acc-rgb),0.25), rgba(var(--acc-deep-rgb),0.25));
  --grad-text: linear-gradient(105deg, #c3ccff 10%, #A47CF3 55%, #683FEA 110%);

  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
  --cyan: #06b6d4;

  /* Triplets RGB d'accent — surchargés par les thèmes */
  --acc-rgb: 104, 63, 234;        /* violet profond */
  --acc-soft-rgb: 138, 125, 255;  /* violet clair */
  --acc-deep-rgb: 41, 52, 255;    /* bleu électrique */
  --cta-text: #fff;
  --grid-line: rgba(255, 255, 255, 0.038);
  --star: #cdd6ff;
  --star-alt: #A47CF3;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --glow-cta: 0 -4px 16px -4px rgba(255,255,255,0.4), 0 6px 24px rgba(var(--acc-deep-rgb), 0.45);
  --glow-cta-hover: 0 -4px 18px -4px rgba(255,255,255,0.55), 0 8px 34px rgba(var(--acc-deep-rgb), 0.65);
}

/* ════════════════════════════════════════════════════════════
   THÈMES — Fusion (défaut) · OathNet · IntelHunt · SeekNow
   ════════════════════════════════════════════════════════════ */

/* OathNet — violet cosmique, tout en aurore et étoiles */
html[data-theme="oathnet"] {
  --bg: #07060c;
  --acc-rgb: 104, 63, 234;
  --acc-soft-rgb: 164, 124, 243;
  --acc-deep-rgb: 124, 58, 237;
  --blue-2: #a78bfa;
  --grad: linear-gradient(180deg, #683FEA 49%, #A47CF3 114%);
  --grad-text: linear-gradient(105deg, #e3d9ff 10%, #A47CF3 60%, #683FEA 125%);
  --grid-line: rgba(255, 255, 255, 0.015);
  --star: #d6c9ff;
  --star-alt: #A47CF3;
}

/* IntelHunt — bleu électrique, rideaux de lumière */
html[data-theme="intelhunt"] {
  --bg: #07070f;
  --acc-rgb: 41, 52, 255;
  --acc-soft-rgb: 138, 165, 255;
  --acc-deep-rgb: 41, 52, 255;
  --blue-2: #8aa5ff;
  --grad: linear-gradient(135deg, #2934ff, #3b5bff);
  --grad-text: linear-gradient(105deg, #c3ccff 15%, #3b5bff 125%);
  --grid-line: rgba(255, 255, 255, 0.017);
  --star: #aebfff;
  --star-alt: #3b5bff;
}
html[data-theme="intelhunt"] .bg-curtain {
  background:
    radial-gradient(ellipse at 50% -10%, rgba(41,52,255,0.45) 0%, rgba(41,52,255,0.18) 45%, transparent 78%),
    linear-gradient(180deg, rgba(59,91,255,0.25) 0%, rgba(41,65,220,0.10) 30%, transparent 62%);
}

/* SeekNow — monochrome noir/blanc néon, grille marquée */
html[data-theme="seeknow"] {
  --bg: #000000;
  --acc-rgb: 255, 255, 255;
  --acc-soft-rgb: 255, 255, 255;
  --acc-deep-rgb: 255, 255, 255;
  --blue-2: #e8ebf5;
  --grad: linear-gradient(180deg, #ffffff, #d9dce6);
  --grad-soft: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
  --grad-text: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  --cta-text: #0a0a0a;
  --grid-line: rgba(255, 255, 255, 0.045);
  --star: #ffffff;
  --star-alt: #9aa0b4;
  --glow-cta: 0 0 22px rgba(255, 255, 255, 0.22);
  --glow-cta-hover: 0 0 36px rgba(255, 255, 255, 0.38);
}
html[data-theme="seeknow"] ::selection { background: rgba(255,255,255,0.85); color: #000; }
html[data-theme="seeknow"] .aurora { opacity: 0.4; animation: none; filter: blur(26px); }
html[data-theme="seeknow"] .bg-grid { mask-image: none; -webkit-mask-image: none; }
html[data-theme="seeknow"] .sb-item.is-active,
html[data-theme="seeknow"] .admin-nav-item.active { color: #fff; }

/* Texte des éléments posés sur le dégradé d'accent */
.btn-grad, .pillnav-cta, .price-btn.primary, .sb-credits-btn,
.compare-badge, .price-float .bv, .tab-btn.active, .topbar-badge,
.badge-admin, .sb-user-av { color: var(--cta-text); }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(var(--acc-rgb), 0.45); color: #fff; }

/* Texte non sélectionnable par défaut (esthétique). On ré-autorise
   uniquement les champs de saisie et les valeurs explicitement copiables. */
body { -webkit-user-select: none; -moz-user-select: none; user-select: none; }
input, textarea, select, [contenteditable="true"], .copyable, .result-field-value, .set-value, kbd, pre, code {
  -webkit-user-select: text; -moz-user-select: text; user-select: text;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c1c2c; border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #2a2a44; }

/* ════════════════════════════════════════════════════════════
   FONDS — grille (SeekNow) + étoiles (OathNet) + aurore + rideau
   ════════════════════════════════════════════════════════════ */

.bg-grid {
  pointer-events: none;
  position: fixed; inset: 0; z-index: 0;
  background-size: 44px 44px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 18%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 18%, black 25%, transparent 78%);
}

.bg-stars { pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.bg-stars .star {
  position: absolute;
  border-radius: 50%;
  background: var(--star);
  animation: star-twinkle ease-in-out infinite;
}
.bg-stars .star.alt { background: var(--star-alt); }
@keyframes star-twinkle {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 0.55; }
}

/* Rideau de lumière IntelHunt — halo bleu/violet en haut de page */
.bg-curtain {
  pointer-events: none;
  position: absolute; top: 0; left: 0; right: 0; height: 90vh; z-index: 0;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(var(--acc-deep-rgb),0.32) 0%, rgba(var(--acc-deep-rgb),0.14) 45%, transparent 75%),
    radial-gradient(ellipse at 22% 0%, rgba(var(--acc-rgb),0.16) 0%, transparent 60%);
}

/* Aurore OathNet — arc lumineux posé sous les éléments clés */
.aurora {
  pointer-events: none;
  position: absolute; left: 50%; transform: translateX(-50%);
  width: min(1100px, 130vw); height: 480px; z-index: 0;
  background:
    radial-gradient(ellipse 60% 42% at 50% 62%, rgba(228,222,255,0.30) 0%, transparent 58%),
    radial-gradient(ellipse 75% 55% at 50% 68%, rgba(var(--acc-soft-rgb),0.34) 0%, rgba(var(--acc-rgb),0.20) 45%, transparent 75%),
    radial-gradient(ellipse 95% 70% at 50% 80%, rgba(var(--acc-deep-rgb),0.22) 0%, transparent 70%);
  filter: blur(18px);
  animation: aurora-breathe 9s ease-in-out infinite;
}
@keyframes aurora-breathe {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.04); }
}

/* Lueur curseur */
.cursor-glow {
  pointer-events: none;
  position: fixed; z-index: 1;
  width: 480px; height: 480px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--acc-rgb),0.07) 0%, rgba(var(--acc-deep-rgb),0.04) 40%, transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}

/* ════════════════════════════════════════════════════════════
   NAVBAR PILL FLOTTANTE (OathNet)
   ════════════════════════════════════════════════════════════ */

.pillnav-wrap {
  position: fixed; top: 18px; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: center;
  padding: 0 18px;
  pointer-events: none;
}
.pillnav {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  width: 100%; max-width: 880px;
  background: rgba(10, 10, 18, 0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 8px 8px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.38);
}
.pillnav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.pillnav-brand svg { width: 32px; height: 32px; filter: drop-shadow(0 0 7px rgba(200,205,255,0.35)); }
.pillnav-brand-name {
  font-weight: 800; font-size: 15px; letter-spacing: 0.10em;
}
.pillnav-links { display: flex; align-items: center; gap: 2px; }
.pillnav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px; font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.pillnav-link:hover { color: var(--text); }
.pillnav-link.active { color: var(--text); background: rgba(255,255,255,0.08); }
.pillnav-right { display: flex; align-items: center; gap: 8px; }
.pillnav-cta-ghost {
  color: var(--text);
  text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 18px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}
.pillnav-cta-ghost:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.pillnav-cta {
  color: #fff;
  text-decoration: none;
  font-size: 13.5px; font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: var(--glow-cta);
  transition: box-shadow 0.2s, transform 0.2s;
}
.pillnav-cta:hover { box-shadow: var(--glow-cta-hover); transform: translateY(-1px); }
.pillnav-burger {
  display: none;
  background: none; border: none; color: var(--text); cursor: pointer;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
}
.pillnav-burger svg { width: 20px; height: 20px; }

.mobile-menu {
  position: fixed; top: 78px; left: 18px; right: 18px; z-index: 99;
  background: rgba(10, 10, 18, 0.92);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px;
  display: none;
  flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text-2); text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 12px 16px; border-radius: 12px;
}
.mobile-menu a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

@media (max-width: 860px) {
  .pillnav-links { display: none; }
  .pillnav-cta-ghost { display: none; }
  .pillnav-burger { display: flex; }
}

/* ════════════════════════════════════════════════════════════
   BOUTONS & BADGES
   ════════════════════════════════════════════════════════════ */

.btn-grad, .btn-ghost, .btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font);
  font-size: 14.5px; font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn-grad { background: var(--grad); color: #fff; box-shadow: var(--glow-cta); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: var(--glow-cta-hover); }
.btn-grad svg { width: 17px; height: 17px; }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.btn-ghost svg { width: 17px; height: 17px; }

.btn-white {
  background: linear-gradient(180deg, #ffffff, #d8dcff);
  color: #07070f;
  box-shadow: 0 0 24px rgba(255,255,255,0.18);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 0 34px rgba(255,255,255,0.3); }

.btn-sm { padding: 9px 18px; font-size: 13px; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(104, 63, 234, 0.10);
  border: 1px solid rgba(138, 125, 255, 0.28);
  color: var(--blue-2);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  font-family: var(--mono);
}
.badge-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 8px var(--blue-2);
  animation: dot-blink 1.6s ease-in-out infinite;
}
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ════════════════════════════════════════════════════════════
   TYPO DE SECTION
   ════════════════════════════════════════════════════════════ */

.sec-label {
  display: flex; justify-content: center; margin-bottom: 18px;
}
.sec-title {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 14px;
}
.sec-title .fade { color: var(--text-3); }
.sec-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ════════════════════════════════════════════════════════════
   CARTES
   ════════════════════════════════════════════════════════════ */

.card {
  position: relative;
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(24, 24, 44, 0.6) 0%, rgba(8, 8, 14, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover { border-color: var(--border-2); }
.card-lift:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--acc-soft-rgb),0.12); }

.icon-tile {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(138, 125, 255, 0.10);
  border: 1px solid rgba(138, 125, 255, 0.22);
  color: var(--blue-2);
  margin-bottom: 18px;
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.white { background: #fff; border-color: #fff; color: #0a0a12; box-shadow: 0 0 18px rgba(255,255,255,0.25); }
.icon-tile.green { background: rgba(34,197,94,0.10); border-color: rgba(34,197,94,0.3); color: var(--green); }
.icon-tile.red { background: rgba(239,68,68,0.10); border-color: rgba(239,68,68,0.3); color: var(--red); }
.icon-tile.round { border-radius: 50%; }

/* ════════════════════════════════════════════════════════════
   FENÊTRE macOS (OathNet — FAQ, démos)
   ════════════════════════════════════════════════════════════ */

.macwin {
  background: rgba(9, 9, 16, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
}
.macwin-bar {
  display: flex; align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.macwin-dots { display: flex; gap: 7px; }
.macwin-dots span { width: 11px; height: 11px; border-radius: 50%; }
.macwin-dots span:nth-child(1) { background: #ff5f57; }
.macwin-dots span:nth-child(2) { background: #febc2e; }
.macwin-dots span:nth-child(3) { background: #28c840; }
.macwin-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; color: var(--text-3);
  font-family: var(--mono);
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════════════════════════════
   FAQ (accordéon dans fenêtre macOS)
   ════════════════════════════════════════════════════════════ */

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px; font-weight: 600;
  text-align: left;
  padding: 18px 22px;
  cursor: pointer;
  transition: background 0.15s;
}
.faq-q:hover { background: rgba(255,255,255,0.025); }
.faq-q svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--blue-2); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-a-inner {
  padding: 0 22px 20px;
  color: var(--text-2);
  font-size: 14px; line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */

.footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  margin-top: 110px;
  padding: 54px 28px 34px;
  background: linear-gradient(180deg, transparent, rgba(10,10,18,0.8));
}
.footer-grid {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand svg { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(200,205,255,0.3)); }
.footer-brand-name { font-weight: 800; letter-spacing: 0.1em; font-size: 14px; }
.footer-tagline { color: var(--text-3); font-size: 13px; line-height: 1.7; max-width: 240px; }
.footer-col-title {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 16px;
  font-family: var(--mono);
}
.footer-col a {
  display: block;
  color: var(--text-2); text-decoration: none;
  font-size: 13.5px;
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: 1080px; margin: 44px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-3); font-size: 12.5px;
  font-family: var(--mono);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

/* ════════════════════════════════════════════════════════════
   PAGE PUBLIQUE — sections marketing
   ════════════════════════════════════════════════════════════ */

.page-wrap { position: relative; z-index: 2; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.hero {
  position: relative;
  padding: 170px 0 90px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.hero-title {
  font-size: clamp(44px, 7.4vw, 84px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.04;
  margin: 26px 0 8px;
}
.hero-title .fade { color: var(--text-3); }
.hero-title .grad {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(var(--acc-soft-rgb),0.35));
}
.hero-tagline {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--text-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.hero-sub {
  max-width: 590px;
  color: var(--text-2);
  font-size: 15.5px; line-height: 1.7;
  margin-bottom: 38px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Barre de recherche démo du héro (SeekNow / OathNet) */
.hero-search {
  position: relative;
  width: 100%; max-width: 680px;
  margin-top: 58px;
}
.hero-search .aurora { top: -190px; height: 420px; }
.hero-search-card {
  position: relative; z-index: 2;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(var(--acc-soft-rgb),0.06);
}
.hero-search-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 6px 6px 18px;
}
.hero-search-row svg.lens { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.hero-search-input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
}
.hero-search-input::placeholder { color: var(--text-3); }
.hero-search-chips {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
  padding: 12px 6px 4px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.chip svg, .chip img { width: 13px; height: 13px; }
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active {
  background: var(--grad-soft);
  border-color: rgba(var(--acc-soft-rgb),0.45);
  color: #dfe4ff;
}

/* Logos sources estompés */
.brands { padding: 30px 0 10px; text-align: center; }
.brands-label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3); font-family: var(--mono);
  margin-bottom: 24px;
}
.brands-row {
  display: flex; align-items: center; justify-content: center;
  gap: 14px 42px; flex-wrap: wrap;
}
.brand-word {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em;
  color: rgba(235, 240, 255, 0.34);
  transition: color 0.2s, filter 0.2s;
  cursor: default;
}
.brand-word svg { width: 18px; height: 18px; fill: currentColor; }
.brand-word:hover { color: rgba(235, 240, 255, 0.9); filter: drop-shadow(0 0 12px rgba(235,240,255,0.25)); }

/* Sections */
.section { position: relative; padding: 96px 0 30px; }

/* Stats — chiffres mono géants (SeekNow) */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 880px; margin: 0 auto;
}
.stat-tile {
  text-align: center;
  padding: 34px 20px 30px;
}
.stat-tile .stat-num {
  font-family: var(--mono);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 20%, var(--blue-2) 120%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -0.02em;
}
.stat-tile .stat-lbl {
  margin-top: 10px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-2);
  font-family: var(--mono);
}
.stat-tile .stat-note { margin-top: 7px; font-size: 12.5px; color: var(--text-3); line-height: 1.55; }
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr; } }

/* Cartes features avec coin arche (OathNet) */
.features-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.feature-card { padding: 34px 30px; }
.feature-card.arch-l { border-top-left-radius: 80px; padding-left: 38px; }
.feature-card.arch-r { border-top-right-radius: 80px; }
.feature-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-text { color: var(--text-2); font-size: 14px; line-height: 1.7; }
.feature-pills { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 760px) { .features-grid { grid-template-columns: 1fr; } }

/* How — numéros fantômes (SeekNow) */
.how-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.how-card { padding: 30px 26px; overflow: hidden; }
.how-num {
  position: absolute; top: 6px; left: 18px;
  font-family: var(--mono);
  font-size: 84px; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.07);
  pointer-events: none;
}
.how-card .icon-tile { position: relative; margin-left: auto; margin-bottom: 26px; }
.how-title { font-size: 16.5px; font-weight: 700; margin-bottom: 10px; }
.how-body { color: var(--text-2); font-size: 13.5px; line-height: 1.7; margin-bottom: 12px; }
.how-note { color: var(--text-3); font-size: 12.5px; line-height: 1.65; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }

/* Comparatif ✓ / ✗ (IntelHunt) */
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 940px; margin: 0 auto;
}
.compare-col { padding: 26px; }
.compare-col.quasar {
  border-color: rgba(var(--acc-soft-rgb),0.35);
  box-shadow: 0 0 44px rgba(var(--acc-rgb),0.14), var(--shadow-card);
}
.compare-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 18px; margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.compare-head .icon-tile { margin-bottom: 0; width: 38px; height: 38px; border-radius: 10px; }
.compare-name { font-weight: 700; font-size: 15.5px; }
.compare-badge {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--mono);
  padding: 4px 12px; border-radius: 999px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 14px rgba(var(--acc-deep-rgb),0.45);
}
.compare-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 4px;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.compare-item:last-child { border-bottom: none; }
.compare-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.compare-item.pro svg { color: var(--green); filter: drop-shadow(0 0 6px rgba(34,197,94,0.5)); }
.compare-item.con { color: var(--text-2); }
.compare-item.con svg { color: var(--red); opacity: 0.7; }
@media (max-width: 760px) { .compare-grid { grid-template-columns: 1fr; } }

/* ════════════════════════════════════════════════════════════
   PRICING (OathNet)
   ════════════════════════════════════════════════════════════ */

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
  max-width: 1020px; margin: 0 auto;
}
.price-card { display: flex; flex-direction: column; padding: 30px 28px; }
.price-card.featured {
  border-color: rgba(var(--acc-soft-rgb),0.5);
  box-shadow: 0 0 54px rgba(var(--acc-rgb),0.22), var(--shadow-card);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(40, 30, 80, 0.55) 0%, rgba(8, 8, 14, 0.92) 100%);
}
.price-float {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; white-space: nowrap;
}
.price-float .bv {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--mono);
  padding: 5px 14px; border-radius: 999px;
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 18px rgba(var(--acc-deep-rgb),0.5);
}
.price-float .mf {
  font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  font-family: var(--mono);
  padding: 5px 14px; border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff;
  box-shadow: 0 4px 18px rgba(34,197,94,0.4);
}
.price-name { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.price-desc { color: var(--text-3); font-size: 12.5px; margin-bottom: 18px; }
.price-amount {
  font-family: var(--mono);
  font-size: 42px; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.price-amount span { font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.price-btn {
  display: block; text-align: center;
  text-decoration: none;
  font-size: 13.5px; font-weight: 700;
  color: var(--text);
  padding: 12px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgba(255,255,255,0.03);
  transition: all 0.18s;
  margin-bottom: 24px;
}
.price-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.3); }
.price-btn.primary {
  background: var(--grad); border-color: transparent; color: #fff;
  box-shadow: var(--glow-cta);
}
.price-btn.primary:hover { box-shadow: var(--glow-cta-hover); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.price-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: var(--text-2);
}
.price-list li::before {
  content: '';
  width: 17px; height: 17px; flex-shrink: 0;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3ccff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat,
    rgba(var(--acc-soft-rgb),0.16);
  border: 1px solid rgba(var(--acc-soft-rgb),0.35);
}
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; max-width: 420px; } }

/* Tableau comparatif des plans */
.ptable { max-width: 1020px; margin: 26px auto 0; padding: 8px 22px; }
.ptable-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 13px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  font-size: 13.5px;
}
.ptable-row:last-child { border-bottom: none; }
.ptable-row.head {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
}
.ptable-feat { color: var(--text-2); }
.ptable-col { text-align: center; color: var(--text); }
.tick {
  display: inline-block; width: 17px; height: 17px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 9px no-repeat,
    rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.3);
}
.dash-no { color: var(--text-3); }

/* CTA final */
.final-cta {
  position: relative;
  text-align: center;
  padding: 130px 0 60px;
}
.final-cta .aurora { top: 40px; }
.final-cta > * { position: relative; z-index: 2; }

/* ════════════════════════════════════════════════════════════
   AUTH (login / register)
   ════════════════════════════════════════════════════════════ */

.auth-wrap {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 20px 60px;
}
.auth-card {
  position: relative;
  width: 100%; max-width: 410px;
  background: rgba(10, 10, 20, 0.78);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 38px 34px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(var(--acc-rgb),0.10);
}
.auth-logo {
  width: 54px; height: 54px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--grad-soft);
  border: 1px solid rgba(var(--acc-soft-rgb),0.35);
  display: flex; align-items: center; justify-content: center;
  color: #dfe4ff;
  box-shadow: 0 0 28px rgba(var(--acc-rgb),0.3);
}
.auth-logo svg { width: 26px; height: 26px; }
.auth-title { text-align: center; font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }
.auth-sub { text-align: center; color: var(--text-2); font-size: 13.5px; margin: 6px 0 28px; }

.field { margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-2);
  font-family: var(--mono);
  margin-bottom: 8px;
}
.field-label .optional { color: var(--text-3); text-transform: none; letter-spacing: 0; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon {
  position: absolute; left: 14px;
  width: 16px; height: 16px;
  color: var(--text-3);
  pointer-events: none;
}
.field-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  padding: 12.5px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input-wrap .field-input { padding-left: 41px; }
.field-input:focus {
  border-color: rgba(var(--acc-soft-rgb),0.55);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb),0.18);
  background: rgba(255,255,255,0.045);
}
.field-input::placeholder { color: var(--text-3); }
.code-input {
  font-family: var(--mono);
  font-size: 19px; letter-spacing: 0.5em; text-align: center;
}
.input-eye {
  position: absolute; right: 12px;
  background: none; border: none; cursor: pointer;
  color: var(--text-3);
  width: 22px; height: 22px;
}
.input-eye:hover { color: var(--text-2); }

.btn-block { width: 100%; margin-top: 6px; }
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
  color: var(--text-3); font-size: 11.5px;
  font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-discord {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #aab4ff;
  font-family: var(--font);
  font-size: 14px; font-weight: 600;
  padding: 12.5px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-discord:hover { background: rgba(88, 101, 242, 0.2); }
.btn-discord svg { width: 18px; height: 18px; }
.switch-text { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-2); }
.btn-link {
  background: none; border: none; cursor: pointer;
  color: var(--blue-2); font-size: 13px; font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
}
.btn-link:hover { text-decoration: underline; }
.step-info {
  display: flex; align-items: center; gap: 10px;
  background: rgba(var(--acc-rgb),0.08);
  border: 1px solid rgba(var(--acc-soft-rgb),0.25);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13px; color: var(--text-2);
  margin-bottom: 18px;
}
.step-info svg { width: 16px; height: 16px; color: var(--blue-2); flex-shrink: 0; }

.tab-row {
  display: flex; gap: 3px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
}
.tab-btn {
  flex: 1;
  background: none; border: none; cursor: pointer;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 12.5px; font-weight: 700;
  padding: 9px;
  border-radius: 999px;
  transition: all 0.15s;
}
.tab-btn.active { background: var(--grad); color: #fff; box-shadow: 0 2px 14px rgba(var(--acc-deep-rgb),0.4); }
.tab-btn:hover:not(.active) { color: var(--text-2); }

/* ── Streaks (traînées de lumière, injectées par login.js) ──── */
.streaks { pointer-events: none; position: fixed; inset: 0; z-index: 0; overflow: hidden; }
.streak { position: absolute; width: 2px; border-radius: 999px; opacity: 0; animation: streak-fall linear infinite; transform-origin: top center; }
@keyframes streak-fall {
  0%   { opacity: 0; transform: translateY(-120%) rotate(var(--angle)); }
  10%  { opacity: var(--op); }
  80%  { opacity: var(--op); }
  100% { opacity: 0; transform: translateY(220%) rotate(var(--angle)); }
}

/* ── Auth : layout 2 colonnes (panneau de marque + carte) ───── */
.auth-split {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: grid; grid-template-columns: 1.05fr 0.95fr;
}
.auth-aside {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px clamp(40px, 6vw, 96px);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.auth-aside .aurora { top: 28%; opacity: 0.6; }
.auth-aside-inner { position: relative; z-index: 2; max-width: 460px; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 34px; text-decoration: none; color: var(--text); }
.auth-brand svg { width: 34px; height: 34px; filter: drop-shadow(0 0 7px rgba(255,255,255,0.4)); }
.auth-brand-name { font-weight: 800; letter-spacing: 0.12em; font-size: 16px; }
.auth-headline { font-size: clamp(28px, 3.3vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 20px 0 16px; }
.auth-headline .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-aside-sub { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 30px; }
.auth-feats { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.auth-feat { display: flex; align-items: center; gap: 14px; }
.auth-feat .icon-tile { width: 40px; height: 40px; margin: 0; border-radius: 11px; flex-shrink: 0; }
.auth-feat-t { font-size: 14px; font-weight: 700; }
.auth-feat-s { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.auth-mini-stats { display: flex; gap: 30px; padding-top: 26px; border-top: 1px solid var(--border); }
.auth-mini-stat .n { font-family: var(--mono); font-size: 22px; font-weight: 700; background: linear-gradient(135deg,#fff 30%, var(--blue-2) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-mini-stat .l { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-family: var(--mono); margin-top: 4px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 96px 28px 60px; }
.auth-main .auth-card { flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(var(--acc-rgb),0.08); }
.auth-topbrand { position: fixed; top: 22px; left: 26px; z-index: 30; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.auth-topbrand svg { width: 26px; height: 26px; }
.auth-topbrand span { font-weight: 800; letter-spacing: 0.12em; font-size: 14px; }
.hint-text { display: block; margin-top: 12px; font-size: 12.5px; color: var(--text-3); text-align: center; min-height: 15px; }
.hint-text.error { color: #fca5a5; }
.hint-text.success { color: #6ee7a0; }
.optional { color: var(--text-3); font-weight: 400; text-transform: none; letter-spacing: 0; }
.btn-resend { display: block; margin: 14px auto 0; }
@media (max-width: 940px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 90px 20px 50px; }
  .auth-topbrand { display: none; }
}

/* ════════════════════════════════════════════════════════════
   APP SHELL — sidebar + main (pages connectées)
   ════════════════════════════════════════════════════════════ */

.app { position: relative; z-index: 2; display: flex; min-height: 100vh; }

.sb {
  position: sticky; top: 0;
  width: 252px; height: 100vh;
  flex-shrink: 0;
  display: flex; flex-direction: column;
  background: rgba(8, 8, 15, 0.72);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  padding: 20px 14px 16px;
}
.sb-logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  padding: 6px 10px 20px;
}
.sb-logo svg { width: 34px; height: 34px; filter: drop-shadow(0 0 7px rgba(200,205,255,0.35)); }
.sb-logo-name {
  color: var(--text);
  font-weight: 800; font-size: 15px; letter-spacing: 0.12em;
}
.sb-logo-sub {
  display: block;
  color: var(--text-3); font-size: 9.5px;
  letter-spacing: 0.3em; text-transform: uppercase;
  font-family: var(--mono);
}
.sb-nav { flex: 1; overflow-y: auto; padding-bottom: 12px; }
.sb-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--mono);
  padding: 16px 12px 8px;
}
.sb-item {
  display: flex; align-items: center; gap: 11px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 13.5px; font-weight: 600;
  padding: 9.5px 12px;
  border-radius: 12px;
  margin-bottom: 2px;
  position: relative;
  transition: all 0.15s;
  border: 1px solid transparent;
}
.sb-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.sb-item:hover { color: var(--text); background: rgba(255,255,255,0.045); }
.sb-item.is-active {
  color: #fff;
  background: var(--grad-soft);
  border-color: rgba(var(--acc-soft-rgb),0.35);
  box-shadow: 0 0 18px rgba(var(--acc-rgb),0.18), inset 0 0 14px rgba(var(--acc-rgb),0.08);
}
.sb-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 17px; height: 17px;
  border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  box-shadow: 0 0 10px rgba(239,68,68,0.5);
}

.sb-credits {
  margin: 6px 4px;
  background:
    radial-gradient(120% 130% at 50% 0%, rgba(40, 30, 80, 0.55) 0%, rgba(8, 8, 14, 0.9) 100%);
  border: 1px solid rgba(var(--acc-soft-rgb),0.25);
  border-radius: var(--r);
  padding: 14px;
}
.sb-credits-row {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 21px; font-weight: 700;
  color: #fff;
}
.sb-credits-row svg { width: 16px; height: 16px; color: var(--blue-2); filter: drop-shadow(0 0 6px rgba(138,165,255,0.8)); }
.sb-credits-sub { color: var(--text-3); font-size: 11px; margin: 3px 0 12px; }
.sb-credits-btn {
  display: block; text-align: center;
  background: var(--grad);
  color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700;
  padding: 8.5px;
  border-radius: 999px;
  box-shadow: 0 3px 16px rgba(var(--acc-deep-rgb),0.4);
  transition: box-shadow 0.18s;
}
.sb-credits-btn:hover { box-shadow: 0 5px 24px rgba(var(--acc-deep-rgb),0.6); }

.sb-user {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--border);
  padding: 14px 8px 2px;
}
.sb-user-av {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff;
  box-shadow: 0 0 14px rgba(var(--acc-rgb),0.4);
}
.sb-user-name { font-size: 13px; font-weight: 700; }
.sb-user-mail { font-size: 11px; color: var(--text-3); }
.sb-logout {
  margin-left: auto;
  background: none; border: none; cursor: pointer;
  color: var(--text-3);
  width: 30px; height: 30px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.sb-logout:hover { color: var(--red); background: rgba(239,68,68,0.1); }
.sb-logout svg { width: 16px; height: 16px; }

.app-main { flex: 1; min-width: 0; padding: 38px 42px 70px; }

.mbar { display: none; }
@media (max-width: 900px) {
  .sb { position: fixed; left: 0; z-index: 200; transform: translateX(-100%); transition: transform 0.25s; }
  .app.drawer-open .sb { transform: translateX(0); }
  .mbar {
    display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 150;
    background: rgba(8,8,15,0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 13px 18px;
  }
  .mbar-burger { background: none; border: none; color: var(--text); cursor: pointer; }
  .mbar-burger svg { width: 21px; height: 21px; }
  .mbar-logo { color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: 0.12em; font-size: 14px; }
  .app { flex-direction: column; }
  .app-main { padding: 26px 18px 60px; }
}

/* ── Tête de page app ──────────────────────────────────────── */
.page-head { margin-bottom: 26px; }
.page-title {
  font-size: 27px; font-weight: 800; letter-spacing: -0.02em;
}
.page-sub { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.page-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.page-meta { color: var(--text-3); font-size: 12.5px; font-family: var(--mono); }

.announce-bar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(var(--acc-rgb),0.10);
  border: 1px solid rgba(var(--acc-soft-rgb),0.3);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 13px; color: #dfe4ff;
  margin-bottom: 24px;
}
.announce-bar svg { width: 16px; height: 16px; color: var(--blue-2); flex-shrink: 0; }

/* ── Recherche dashboard ───────────────────────────────────── */
.search-box {
  position: relative;
  background: rgba(10, 10, 20, 0.72);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}
.search-row {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 5px 5px 5px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-row:focus-within {
  border-color: rgba(var(--acc-soft-rgb),0.5);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb),0.15);
}
.search-row > svg { width: 18px; height: 18px; color: var(--text-3); flex-shrink: 0; }
.search-input {
  flex: 1; min-width: 0;
  background: none; border: none; outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  padding: 10px 0;
}
.search-input::placeholder { color: var(--text-3); }
.search-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 8px 3px;
  font-size: 12px; color: var(--text-3);
  flex-wrap: wrap; gap: 8px;
}
.search-type { color: var(--blue-2); font-family: var(--mono); font-size: 11.5px; }
kbd {
  font-family: var(--mono); font-size: 10.5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 1.5px 6px;
}
.search-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 6px 2px; }

/* ── Cartes de stats app ───────────────────────────────────── */
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 26px;
}
.stat-card { padding: 20px 22px; }
.stat-card-label {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--mono);
  display: flex; align-items: center; gap: 8px;
}
.stat-card-label svg { width: 13px; height: 13px; color: var(--blue-2); }
.stat-card-value {
  font-family: var(--mono);
  font-size: 30px; font-weight: 700;
  margin-top: 9px;
  background: linear-gradient(135deg, #ffffff 30%, var(--blue-2) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-card-value.green { background: linear-gradient(135deg, #fff 30%, #22c55e 140%); -webkit-background-clip: text; background-clip: text; }
.stat-card-value.red { background: linear-gradient(135deg, #fff 30%, #ef4444 140%); -webkit-background-clip: text; background-clip: text; }
.stat-card-value.amber { background: linear-gradient(135deg, #fff 30%, #f59e0b 140%); -webkit-background-clip: text; background-clip: text; }

/* ── Résultats de recherche (cartes fiches) ────────────────── */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 28px 0 14px;
  flex-wrap: wrap; gap: 10px;
}
.results-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.results-count {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--blue-2);
  background: rgba(var(--acc-rgb),0.12);
  border: 1px solid rgba(var(--acc-soft-rgb),0.3);
  padding: 3px 11px; border-radius: 999px;
}
.results-ms { color: var(--text-3); font-size: 12px; font-family: var(--mono); }

.result-card { padding: 22px 24px; margin-bottom: 14px; }
.result-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 18px;
}
.result-av {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid rgba(var(--acc-soft-rgb),0.35);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; color: #dfe4ff;
  flex-shrink: 0;
}
.result-name { font-size: 16px; font-weight: 700; }
.result-sub { color: var(--text-3); font-size: 12px; margin-top: 2px; font-family: var(--mono); }
.result-src-badge {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.06em;
  color: var(--blue-2);
  background: rgba(var(--acc-rgb),0.10);
  border: 1px solid rgba(var(--acc-soft-rgb),0.28);
  padding: 5px 12px; border-radius: 999px;
}
.result-src-badge img { width: 13px; height: 13px; border-radius: 3px; }
.result-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 3px 18px;
}
.result-field {
  display: flex; flex-direction: column;
  padding: 9px 10px;
  border-radius: 9px;
  transition: background 0.12s;
}
.result-field:hover { background: rgba(255,255,255,0.03); }
.result-field-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--mono);
  margin-bottom: 3px;
}
.result-field-value { font-size: 13.5px; color: var(--text); word-break: break-all; }
.copyable { cursor: pointer; }
.copyable:hover { color: var(--blue-2); }
.fav-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-3);
  width: 32px; height: 32px;
  border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.fav-btn svg { width: 17px; height: 17px; }
.fav-btn:hover { color: var(--amber); background: rgba(245,158,11,0.1); }
.fav-btn.saved { color: var(--amber); filter: drop-shadow(0 0 8px rgba(245,158,11,0.5)); }

/* ── Lignes historique / notifications ─────────────────────── */
.hist-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  margin-bottom: 10px;
  cursor: pointer;
}
.hist-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 11px;
  background: rgba(var(--acc-soft-rgb),0.10);
  border: 1px solid rgba(var(--acc-soft-rgb),0.22);
  color: var(--blue-2);
  display: flex; align-items: center; justify-content: center;
}
.hist-icon svg { width: 17px; height: 17px; }
.hist-main { flex: 1; min-width: 0; }
.hist-query {
  font-family: var(--mono);
  font-size: 13.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hist-meta { display: flex; gap: 14px; margin-top: 4px; font-size: 11.5px; color: var(--text-3); }
.hist-count { color: var(--green); font-family: var(--mono); }
.hist-ms { font-family: var(--mono); }
.hist-date { margin-left: auto; color: var(--text-3); font-size: 11.5px; font-family: var(--mono); white-space: nowrap; }
.hist-row.unread { border-color: rgba(var(--acc-soft-rgb),0.4); }
.hist-row.unread .hist-query::after {
  content: '';
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue-2);
  box-shadow: 0 0 8px var(--blue-2);
  margin-left: 9px;
  vertical-align: middle;
}

.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 24px; }
.pager-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-size: 12.5px; font-weight: 600;
  font-family: var(--font);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.pager-btn:hover:not(:disabled) { background: rgba(255,255,255,0.07); }
.pager-btn:disabled { opacity: 0.35; cursor: default; }
.pager-info { color: var(--text-3); font-size: 12px; font-family: var(--mono); }

/* ── Graphiques CSS ────────────────────────────────────────── */
.chart-box { padding: 24px 26px; margin-top: 18px; }
.chart-title {
  font-size: 13px; font-weight: 700;
  margin-bottom: 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.chart-total { font-family: var(--mono); font-size: 11.5px; color: var(--blue-2); }
.chart-bars {
  display: flex; align-items: flex-end; gap: 10px;
  height: 150px;
}
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart-val { font-family: var(--mono); font-size: 10.5px; color: var(--text-2); }
.chart-bar {
  width: 100%;
  border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, rgba(var(--acc-soft-rgb),0.85), rgba(var(--acc-deep-rgb),0.45));
  box-shadow: 0 0 16px rgba(var(--acc-rgb),0.25);
  min-height: 4px;
  transition: filter 0.15s;
}
.chart-col:hover .chart-bar { filter: brightness(1.3); }
.chart-day { font-family: var(--mono); font-size: 10px; color: var(--text-3); text-transform: uppercase; }

.top-row { display: flex; align-items: center; gap: 14px; padding: 9px 0; }
.top-name { width: 110px; font-size: 12.5px; color: var(--text-2); font-family: var(--mono); }
.top-track {
  flex: 1; height: 7px;
  background: rgba(255,255,255,0.05);
  border-radius: 99px;
  overflow: hidden;
}
.top-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(var(--acc-rgb),0.5);
}
.top-count { width: 40px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--text); }

/* ── Statut services ───────────────────────────────────────── */
.status-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  border-radius: var(--r);
  background: rgba(34,197,94,0.07);
  border: 1px solid rgba(34,197,94,0.3);
  color: #6ee7a0;
  font-weight: 600; font-size: 14.5px;
  margin-bottom: 18px;
  box-shadow: 0 0 34px rgba(34,197,94,0.08);
}
.status-banner::before {
  content: '';
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: dot-blink 1.8s ease-in-out infinite;
}
.status-banner.down { background: rgba(239,68,68,0.07); border-color: rgba(239,68,68,0.35); color: #fda4a4; }
.status-banner.down::before { background: var(--red); box-shadow: 0 0 12px var(--red); }
.status-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 22px;
  margin-bottom: 10px;
}
.status-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 12px; }
.status-name svg { width: 16px; height: 16px; color: var(--text-3); }
.status-state {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green);
}
.status-state::before {
  content: '';
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.status-state.degraded { color: var(--amber); }
.status-state.degraded::before { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.status-uptime { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }

/* ── Sections / formulaires (docs, settings, contact) ──────── */
.card-section { padding: 26px 28px; margin-bottom: 16px; }
.card-section-title {
  font-size: 15px; font-weight: 700;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.card-section-title::before {
  content: '';
  width: 3px; height: 16px;
  border-radius: 99px;
  background: var(--grad);
  box-shadow: 0 0 10px rgba(var(--acc-rgb),0.6);
}
.doc-p { color: var(--text-2); font-size: 14px; line-height: 1.75; margin-bottom: 10px; }
.doc-p strong { color: var(--text); }
.set-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  font-size: 13.5px;
  gap: 18px;
}
.set-row:last-child { border-bottom: none; }
.set-label { color: var(--text-2); }
.set-value { font-family: var(--mono); font-size: 12.5px; color: var(--text); text-align: right; }
.set-desc { color: var(--text-2); font-size: 13.5px; line-height: 1.65; margin-bottom: 16px; }
.form-field { margin-bottom: 14px; max-width: 360px; }
.form-hint { display: block; margin-top: 10px; font-size: 12px; color: var(--text-3); }

.danger-section { border-color: rgba(239,68,68,0.3); }
.danger-section .card-section-title::before { background: var(--red); box-shadow: 0 0 10px rgba(239,68,68,0.5); }
.btn-danger {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.45);
  color: #fda4a4;
  font-family: var(--font);
  font-size: 13px; font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-danger:hover { background: rgba(239,68,68,0.2); box-shadow: 0 0 20px rgba(239,68,68,0.2); }

/* ── États vides / loaders ─────────────────────────────────── */
.empty-state {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 80px 20px;
}
.empty-state .icon-tile { width: 62px; height: 62px; border-radius: 18px; margin-bottom: 22px; }
.empty-state .icon-tile svg { width: 28px; height: 28px; }
.empty-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.empty-sub { color: var(--text-2); font-size: 13.5px; max-width: 360px; line-height: 1.65; }
.empty-hint { margin-top: 16px; color: var(--text-3); font-size: 12px; }

/* ── Toggle switch ─────────────────────────────────────────── */
.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding: 4px 0;
  cursor: pointer;
}
.toggle-label { font-size: 13.5px; font-weight: 600; display: block; }
.toggle-sub { font-size: 11.5px; color: var(--text-3); display: block; margin-top: 2px; }
.toggle-sw {
  position: relative;
  width: 42px; height: 23px; flex-shrink: 0;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: all 0.2s;
}
.toggle-sw::after {
  content: '';
  position: absolute; top: 2px; left: 2px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #888da8;
  transition: all 0.2s;
}
.toggle-sw.on { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(var(--acc-deep-rgb),0.45); }
.toggle-sw.on::after { left: 21px; background: #fff; }

/* ════════════════════════════════════════════════════════════
   RECHERCHE AVANCÉE (layout 2 colonnes)
   ════════════════════════════════════════════════════════════ */

.adv-layout { display: flex; gap: 22px; align-items: flex-start; }
.adv-panel {
  width: 300px; flex-shrink: 0;
  position: sticky; top: 30px;
  padding: 22px;
}
.adv-section { margin-bottom: 18px; }
.adv-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--mono);
  margin-bottom: 10px;
}
.adv-field { margin-bottom: 9px; }
.adv-field label {
  display: block;
  font-size: 11.5px; color: var(--text-2);
  margin-bottom: 5px;
}
.adv-field input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 12.5px;
  padding: 9px 12px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.adv-field input:focus {
  border-color: rgba(var(--acc-soft-rgb),0.5);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb),0.14);
}
.adv-field input::placeholder { color: var(--text-3); }
.adv-main { flex: 1; min-width: 0; }
@media (max-width: 980px) {
  .adv-layout { flex-direction: column; }
  .adv-panel { width: 100%; position: static; }
}

/* ════════════════════════════════════════════════════════════
   ADMIN
   ════════════════════════════════════════════════════════════ */

.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: rgba(8, 8, 15, 0.82);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 13px 24px;
}
.topbar-left { display: flex; align-items: center; gap: 13px; }
.topbar-left svg.logo { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(200,205,255,0.3)); }
.topbar-name { font-weight: 800; letter-spacing: 0.12em; font-size: 14px; }
.topbar-sep { width: 1px; height: 20px; background: var(--border-2); }
.topbar-badge {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em;
  font-family: var(--mono);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 14px rgba(var(--acc-deep-rgb),0.5);
}
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-user { font-size: 12.5px; color: var(--text-2); font-family: var(--mono); }
.maint-toggle {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3);
}

.admin-layout { position: relative; z-index: 2; display: flex; min-height: calc(100vh - 61px); }
.admin-sb {
  width: 224px; flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: rgba(8, 8, 15, 0.55);
  padding: 20px 12px;
}
.admin-sb .sb-label { padding: 14px 12px 8px; }
.admin-nav-item {
  width: 100%;
  display: flex; align-items: center; gap: 11px;
  background: none;
  border: 1px solid transparent;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 13px; font-weight: 600;
  text-align: left;
  padding: 9.5px 12px;
  border-radius: 12px;
  margin-bottom: 2px;
  cursor: pointer;
  transition: all 0.15s;
}
.admin-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav-item:hover { color: var(--text); background: rgba(255,255,255,0.045); }
.admin-nav-item.active {
  color: #fff;
  background: var(--grad-soft);
  border-color: rgba(var(--acc-soft-rgb),0.35);
  box-shadow: 0 0 18px rgba(var(--acc-rgb),0.18);
}
.badge-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--blue-2);
  background: rgba(var(--acc-rgb),0.14);
  border: 1px solid rgba(var(--acc-soft-rgb),0.3);
  padding: 1.5px 8px;
  border-radius: 999px;
}
.admin-main { flex: 1; min-width: 0; padding: 32px 34px 70px; }

.admin-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
@media (max-width: 1100px) { .admin-stats-grid { grid-template-columns: repeat(2, 1fr); } }

select.field-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888da8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 13px;
  cursor: pointer;
}
select.field-input option { background: #0c0c16; color: #f2f4ff; }

.filters-row {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filters-row .field-input { width: auto; padding: 8.5px 14px; font-size: 13px; }
.filters-row .spacer { flex: 1; }

.warn-banner {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 13px;
  padding: 13px 16px;
  font-size: 13px; color: #fcd9a0;
  line-height: 1.55;
  margin-bottom: 16px;
}
.warn-banner svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--amber); margin-top: 1px; }

.src-toggle-row td { vertical-align: middle; }
.plan-edit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-edit-grid .form-field { max-width: none; }
@media (max-width: 920px) { .plan-edit-grid { grid-template-columns: 1fr; } }

/* Tables admin */
.table-wrap { padding: 0; overflow: hidden; }
.table-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.table-title { font-size: 14px; font-weight: 700; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--mono);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  font-size: 13px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}
tbody tr { transition: background 0.12s; }
tbody tr:hover { background: rgba(255,255,255,0.025); }
tbody tr:last-child td { border-bottom: none; }
.mono { font-family: var(--mono); font-size: 12px; }
td .muted { color: var(--text-3); }

.badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3.5px 11px;
  border-radius: 999px;
}
.badge-free { background: rgba(255,255,255,0.06); border: 1px solid var(--border-2); color: var(--text-2); }
.badge-pro { background: rgba(var(--acc-rgb),0.14); border: 1px solid rgba(var(--acc-soft-rgb),0.4); color: var(--blue-2); }
.badge-elite { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.4); color: var(--amber); }
.badge-admin { background: var(--grad); color: #fff; border: none; }
.badge-ok { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.35); color: var(--green); }
.badge-banned { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.4); color: #fda4a4; }

.btn-icon {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text-2);
  width: 29px; height: 29px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.btn-icon svg { width: 14px; height: 14px; }
.btn-icon:hover { color: var(--text); border-color: var(--border-2); }
.btn-icon.danger:hover { color: var(--red); border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.08); }
.row-actions { display: flex; gap: 6px; }

/* ── Modales ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(2, 2, 6, 0.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fade-in 0.18s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 430px;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7), 0 0 60px rgba(var(--acc-rgb),0.12);
  animation: modal-up 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-up {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-title { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.modal-text { color: var(--text-2); font-size: 13.5px; line-height: 1.65; margin-bottom: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ── Toasts ────────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 600;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--panel);
  border: 1px solid rgba(var(--acc-soft-rgb),0.4);
  border-radius: 13px;
  padding: 13px 20px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 24px rgba(var(--acc-rgb),0.15);
  opacity: 0; transform: translateY(10px);
  transition: all 0.25s;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(34,197,94,0.5); }
.toast.error { border-color: rgba(239,68,68,0.5); }

/* ── Skeletons ─────────────────────────────────────────────── */
@keyframes skel-pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.skel-line {
  height: 13px; border-radius: 7px;
  background: rgba(255,255,255,0.06);
  animation: skel-pulse 1.4s ease-in-out infinite;
}

/* ── Accueil : sections de détail (stats live, démo, avis…) ── */
.split {
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: 44px; align-items: center;
}
.split.rev { grid-template-columns: 1.25fr 1fr; }
.split .sec-title, .split .sec-sub { text-align: left; margin-left: 0; }
.split .sec-label { justify-content: flex-start; }
@media (max-width: 880px) { .split, .split.rev { grid-template-columns: 1fr; } }

.live-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.live-stat { text-align: center; padding: 18px 12px; }
.live-stat .stat-num { font-size: 24px; }
.live-stat .stat-lbl { font-size: 9px; margin-top: 6px; }
@media (max-width: 560px) { .live-stats-row { grid-template-columns: 1fr; } }

.stats-inline {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px 54px;
  padding: 26px 0 8px;
  border-top: 1px solid var(--border);
  max-width: 940px; margin: 0 auto;
}
.stats-inline .stat-tile { padding: 16px 6px; }
.stats-inline .stat-num { font-size: clamp(28px, 3.6vw, 40px); }

.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap-card { padding: 28px 26px; }
@media (max-width: 920px) { .cap-grid { grid-template-columns: 1fr; } }

.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quote-card { padding: 20px; }
.quote-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.quote-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid rgba(var(--acc-soft-rgb), 0.4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--text);
}
.quote-name { font-size: 13px; font-weight: 700; }
.quote-stars { color: #fbbf24; font-size: 11px; letter-spacing: 2px; filter: drop-shadow(0 0 5px rgba(251,191,36,0.5)); }
.quote-text { color: var(--text-2); font-size: 13px; line-height: 1.6; }
@media (max-width: 980px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .quote-grid { grid-template-columns: 1fr; } }

.file-row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.045);
  font-family: var(--mono); font-size: 12px;
}
.file-row:hover { background: rgba(255,255,255,0.025); }
.file-row svg { width: 14px; height: 14px; color: var(--text-3); flex-shrink: 0; }
.file-row .fname { color: var(--text); }
.file-row .fkind { color: var(--text-3); font-size: 10.5px; }
.file-row .fsize { margin-left: auto; color: var(--text-3); font-size: 10.5px; }
.file-row.sel {
  background: rgba(var(--acc-rgb), 0.10);
  border-left: 2px solid rgb(var(--acc-soft-rgb));
}
.term {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.85;
  color: var(--text-2);
  padding: 14px 18px;
  background: rgba(0,0,0,0.35);
}
.term .tk { color: var(--blue-2); }

.trust-band {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.ent-card {
  border-color: rgba(6, 182, 212, 0.35) !important;
  box-shadow: 0 0 44px rgba(6, 182, 212, 0.10), var(--shadow-card);
  max-width: 1020px; margin: 22px auto 0;
  padding: 26px 28px;
}
.ent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.ent-head .icon-tile { margin-bottom: 0; background: rgba(6,182,212,0.10); border-color: rgba(6,182,212,0.3); color: var(--cyan); }
.ent-name { font-size: 17px; font-weight: 800; }
.ent-sub { color: var(--cyan); font-size: 12px; margin-top: 2px; }
.ent-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.ent-tile {
  text-align: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 15px 10px;
}
.ent-tile b { display: block; font-family: var(--mono); font-size: 17px; color: var(--cyan); }
.ent-tile span { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--mono); }
.ent-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.btn-cyan {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 22px rgba(6,182,212,0.35);
  transition: box-shadow 0.18s, transform 0.18s;
}
.btn-cyan:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(6,182,212,0.5); }
@media (max-width: 760px) { .ent-tiles { grid-template-columns: repeat(2, 1fr); } }

.theme-card { text-align: center; padding: 38px 30px; max-width: 720px; margin: 0 auto; }
.theme-card.red { border-color: rgba(239,68,68,0.4); box-shadow: 0 0 44px rgba(239,68,68,0.08), var(--shadow-card); }
.theme-card.green { border-color: rgba(34,197,94,0.4); box-shadow: 0 0 44px rgba(34,197,94,0.08), var(--shadow-card); }
.theme-card .icon-tile { margin: 0 auto 18px; }
.theme-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 12px; }
.theme-card p { color: var(--text-2); font-size: 13.5px; line-height: 1.75; max-width: 540px; margin: 0 auto; }
.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  margin-top: 22px;
  box-shadow: 0 4px 22px rgba(34,197,94,0.35);
  transition: box-shadow 0.18s, transform 0.18s;
}
.btn-green:hover { transform: translateY(-1px); box-shadow: 0 6px 30px rgba(34,197,94,0.5); }

/* ── Graphique interactif (accueil) ────────────────────────── */
.ichart { position: relative; touch-action: none; }
.ichart svg { display: block; width: 100%; height: auto; cursor: crosshair; }
.ichart .ic-line {
  filter: drop-shadow(0 0 8px rgba(var(--acc-soft-rgb), 0.45));
}
.ichart .ic-pt {
  fill: #fff;
  stroke: rgba(var(--acc-soft-rgb), 0.6);
  stroke-width: 4;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.ichart.drawn .ic-pt { transform: scale(1); }
.ichart .ic-cross { stroke: rgba(255,255,255,0.16); stroke-width: 1; opacity: 0; transition: opacity 0.25s; }
.ichart .ic-focus {
  fill: #fff;
  filter: drop-shadow(0 0 10px rgba(var(--acc-soft-rgb), 0.95));
  opacity: 0;
  transition: opacity 0.25s;
}
.ichart .ic-halo {
  fill: rgba(var(--acc-soft-rgb), 0.18);
  opacity: 0;
  transition: opacity 0.25s;
}
.ichart.hovering .ic-cross, .ichart.hovering .ic-focus, .ichart.hovering .ic-halo { opacity: 1; }
.ichart .ic-day { font-family: var(--mono); font-size: 10px; fill: rgba(230,236,255,0.3); transition: fill 0.2s; }
.ichart .ic-day.on { fill: #fff; }
.ic-tip {
  position: absolute; top: 0; left: 0; z-index: 5;
  pointer-events: none;
  background: rgba(12, 12, 24, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(var(--acc-soft-rgb), 0.45);
  border-radius: 11px;
  padding: 8px 13px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 18px rgba(var(--acc-rgb), 0.2);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.22s;
  white-space: nowrap;
  text-align: center;
}
.ichart.hovering .ic-tip { opacity: 1; }
.ic-tip .tip-day {
  font-family: var(--mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.ic-tip .tip-val {
  font-family: var(--mono); font-size: 15px; font-weight: 700;
  background: linear-gradient(135deg, #ffffff 30%, var(--blue-2) 130%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Sélecteur de thème flottant ───────────────────────────── */
.theme-dock {
  position: fixed; bottom: 18px; left: 18px; z-index: 700;
  display: flex; align-items: center; gap: 9px;
  background: rgba(10, 10, 18, 0.78);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
}
.theme-dock-label {
  font-family: var(--mono);
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
  padding-right: 2px;
}
.th-dot {
  width: 21px; height: 21px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.th-dot:hover { transform: scale(1.18); }
.th-dot.active { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.45); }
.th-fusion { background: linear-gradient(135deg, #683FEA 40%, #3b5bff 100%); }
.th-oathnet { background: linear-gradient(180deg, #683FEA, #A47CF3); }
.th-intelhunt { background: linear-gradient(135deg, #2934ff, #3b5bff); }
.th-seeknow { background: linear-gradient(135deg, #ffffff, #777a88); }

/* ── Reveal au scroll ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Logo Quasar animé du héro (canvas, repris de websitev2) ── */
.hero-logo {
  width: min(300px, 62vw);
  height: auto;
  margin-top: 26px;
  margin-bottom: -10px;
  filter: drop-shadow(0 0 38px rgba(160, 170, 255, 0.28));
}

/* ── Sélecteur de langue EN/FR ─────────────────────────────── */
.lang-toggle { display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-toggle button { background: none; border: none; color: var(--text-3); font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 999px; cursor: pointer; transition: all .15s; letter-spacing: .04em; }
.lang-toggle button:hover { color: var(--text); }
.lang-toggle button.active { background: var(--grad); color: var(--cta-text); box-shadow: var(--glow-cta); }
