/* ============================================================
   Les Yeux de Dieu — thème type see-know.ru (noir + grille)
============================================================ */
:root {
  --bg: #000;
  --bg-2: #0a0a0a;
  --panel: #101012;
  --panel-2: #161618;
  --border: rgba(255, 255, 255, .1);
  --border-2: rgba(255, 255, 255, .22);
  --text: #fff;
  --muted: #9a9aa2;
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --mono: ui-monospace, "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-color: var(--border-2) var(--bg); scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14.5px; line-height: 1.55; min-height: 100vh; }
a { color: var(--text); text-decoration: none; }
a:hover { opacity: .85; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

.view { display: none; }
.view.active { display: block; }

/* ============ LANDING : fond quadrillé ============ */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 95% 70% at 50% 25%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 95% 70% at 50% 25%, #000 25%, transparent 78%);
}
#view-landing { position: relative; z-index: 1; }

/* ============ NAVIGATION en pilule ============ */
.nav-pill {
  position: sticky; top: 16px; z-index: 30;
  margin: 16px auto 0; width: min(1160px, calc(100% - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px 18px;
  background: rgba(24, 24, 26, .72);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}
.nav-pill .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; white-space: nowrap; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; color: #e8e8ec; padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.nav-links a:hover { background: rgba(255,255,255,.07); opacity: 1; }
.nav-links a.active { background: #222226; color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nav-actions .login { font-size: 13.5px; color: #e8e8ec; }
.nav-actions .signup {
  font-size: 13.5px; font-weight: 600; color: #000; background: #fff;
  padding: 8px 18px; border-radius: 999px; transition: opacity .15s;
}
.nav-actions .signup:hover { opacity: .85; }
.nav-quota {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  padding: 3px 10px; border-radius: 999px;
}
.nav-quota b { color: var(--text); }
.nav-quota.low b { color: var(--amber); }
.nav-quota.crit b { color: var(--red); }

/* ============ HERO ============ */
.hero {
  max-width: 900px; margin: 0 auto; padding: 46px 20px 30px;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
.hero-tag {
  font-size: 13px; color: #d8d8de; background: rgba(255,255,255,.05);
  border: 1px solid var(--border); padding: 7px 18px; border-radius: 999px; margin-bottom: 26px;
}
.eye-logo { width: 230px; height: auto; margin-bottom: 22px; filter: drop-shadow(0 0 14px rgba(255,255,255,.45)); }
.hero-title {
  font-size: 25px; font-weight: 600; line-height: 1.45; color: #f4f4f6;
  margin-bottom: 30px; letter-spacing: .2px;
}

/* ============ BARRE DE RECHERCHE ============ */
.search-wrap { width: 100%; max-width: 780px; }
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: #0d0d0f; border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px; padding: 7px 8px 7px 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,.5);
}
.search-icon { font-size: 16px; opacity: .8; }
.search-bar input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px; font-family: var(--sans); padding: 8px 0;
}
.search-bar input::placeholder { color: #6a6a72; }
.info-btn {
  background: transparent; border: none; color: #6a6a72; cursor: pointer;
  font-size: 16px; padding: 6px 8px; border-radius: 50%;
}
.info-btn:hover { color: #fff; }
.search-btn {
  background: #fff; color: #000; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 600; padding: 11px 22px; border-radius: 999px;
  white-space: nowrap; transition: opacity .15s;
}
.search-btn:hover { opacity: .85; }
.search-btn:disabled { opacity: .5; cursor: wait; }

.type-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; flex-wrap: wrap;
}
.type-label { font-size: 13px; color: var(--muted); margin-right: 4px; }
.type-pill {
  font-size: 13px; color: #e2e2e6; background: rgba(255,255,255,.06);
  border: 1px solid var(--border); padding: 7px 15px; border-radius: 999px; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.type-pill:hover { border-color: var(--border-2); }
.type-pill.active { background: #fff; color: #000; border-color: #fff; font-weight: 600; }

.hero-sub {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; font-size: 12.5px; flex-wrap: wrap;
}
.advanced-link { color: var(--accent-2); }
.advanced-link:hover { text-decoration: underline; opacity: 1; }

.hero-results { margin-top: 22px; text-align: left; }
.hero-results .cards { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }

/* ============ STATS ============ */
.stats {
  max-width: 1160px; margin: 40px auto 0; padding: 26px 20px 10px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.stat { text-align: center; flex: 1; min-width: 130px; }
.stat-num { font-size: 34px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1.2px; }

/* ============ SECTIONS ============ */
.section { max-width: 1000px; margin: 0 auto; padding: 60px 20px 10px; }
.section h2 { font-size: 26px; margin-bottom: 22px; text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.feature-card {
  background: rgba(255,255,255,.035); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.feature-card h3 { font-size: 15.5px; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 13.5px; }

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan-card {
  background: rgba(255,255,255,.035); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; text-align: center;
}
.plan-card.current { border-color: #fff; box-shadow: 0 0 24px rgba(255,255,255,.08); }
.plan-card h3 { font-size: 16px; margin-bottom: 10px; }
.plan-num { font-size: 34px; font-weight: 700; }
.plan-card p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.plan-card ul { list-style: none; color: var(--muted); font-size: 13px; }
.plan-card li { padding: 3px 0; }

.about { max-width: 760px; }
.about p { color: #cfcfd6; text-align: center; }

.landing-footer {
  max-width: 1160px; margin: 70px auto 0; padding: 22px 20px 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 12.5px; color: #b8b8c0;
}

/* ============ CHAT FLOTTANT (assistant IA) ============ */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: #000; border: none; font-size: 22px; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.6); transition: transform .15s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-panel {
  position: fixed; right: 22px; bottom: 84px; z-index: 40;
  width: 350px; height: 500px; background: #111113;
  border: 1px solid var(--border-2); border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.65);
}
.chat-panel.hidden { display: none; }
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--border-2);
  font-size: 14px; font-weight: 700; color: #e8f1ff; flex-shrink: 0;
}
.chat-close {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 15px; padding: 2px 6px; border-radius: 6px;
}
.chat-close:hover { color: #fff; background: rgba(255,255,255,.08); }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }
.chat-msg .bubble {
  max-width: 88%; padding: 9px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.5; color: #e8f1ff;
}
.chat-msg.ai .bubble {
  background: rgba(255,255,255,.06); border: 1px solid var(--border-2);
  border-top-left-radius: 4px;
}
.chat-msg.user .bubble {
  background: rgba(96,165,250,.18); border: 1px solid rgba(96,165,250,.35);
  border-top-right-radius: 4px;
}
.chat-msg .bubble.err { color: #fca5a5; }
.chat-msg .bubble p { margin: 0 0 6px; }
.chat-msg .bubble p:last-child { margin-bottom: 0; }
.chat-msg .bubble ul { margin: 4px 0 6px; padding-left: 18px; }
.chat-msg .bubble li { margin: 2px 0; }
.chat-msg .bubble code {
  background: rgba(0,0,0,.45); padding: 1px 5px; border-radius: 5px;
  font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.chat-msg .bubble pre.md-code {
  background: rgba(0,0,0,.5); padding: 8px 10px; border-radius: 8px;
  font-size: 12px; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  margin: 4px 0;
}
.chat-form {
  display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid var(--border-2); flex-shrink: 0;
}
.chat-form input {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid var(--border-2);
  border-radius: 10px; padding: 9px 12px; color: #fff; font-size: 13px; outline: none;
  min-width: 0;
}
.chat-form input:focus { border-color: rgba(96,165,250,.6); }
.chat-form input::placeholder { color: var(--muted); }
.chat-form button {
  background: #fff; color: #000; border: none; border-radius: 10px;
  padding: 0 16px; cursor: pointer; font-size: 14px; transition: background .15s;
}
.chat-form button:hover { background: #dbeafe; }
.chat-form button:disabled { opacity: .5; cursor: wait; }
.typing { display: inline-flex; gap: 4px; padding: 5px 2px; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%; background: #7dd3fc;
  animation: typingB 1.2s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typingB {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* ============ STATUS DOT (partagé) ============ */
.status-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--muted);
  display: inline-block; flex-shrink: 0;
}
.status-dot.ok { background: var(--green); box-shadow: 0 0 8px var(--green); }
.status-dot.warn { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.status-dot.err { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ============ VUE OUTIL : topbar ============ */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 20px; border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,.9); backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; }
.back-link { font-size: 13px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; }
.back-link:hover { color: #fff; border-color: var(--border-2); opacity: 1; }
.brand h1 { font-size: 18px; letter-spacing: .5px; font-weight: 700; }
.brand h1 span { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.ratelimit { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rate-badge {
  font-family: var(--mono); font-size: 11.5px; padding: 3px 9px; border-radius: 20px;
  border: 1px solid var(--border-2); background: var(--panel-2); color: var(--muted); white-space: nowrap;
}
.rate-badge b { color: var(--text); font-weight: 600; }
.rate-badge.low b { color: var(--amber); }
.rate-badge.crit b { color: var(--red); }
.plan-badge {
  font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent-2); border: 1px solid var(--accent); padding: 3px 10px; border-radius: 20px;
  background: rgba(34,211,238,.07); white-space: nowrap;
}

/* ============ TABS ============ */
.tabs {
  display: flex; gap: 4px; padding: 10px 20px 0; border-bottom: 1px solid var(--border);
  background: rgba(10,10,10,.6); position: sticky; top: 53px; z-index: 19;
}
.tab {
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-family: var(--sans); font-size: 13.5px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px 8px 0 0; cursor: pointer; border-bottom: 2px solid transparent;
}
.tab:hover { color: var(--text); background: var(--panel-2); }
.tab.active { color: var(--accent-2); border-bottom-color: var(--accent); background: rgba(34,211,238,.05); }

/* ============ LAYOUT OUTIL ============ */
main { max-width: 1280px; margin: 0 auto; padding: 20px; }
.panel { display: none; }
.panel.active { display: block; animation: fadein .18s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.panel > h2 { font-size: 18px; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.plan-note { color: var(--muted); font-size: 12px; font-weight: 400; }
.layout { display: grid; grid-template-columns: 400px 1fr; gap: 20px; align-items: start; }

/* ============ FORMULAIRE ============ */
.search-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 18px;
  position: sticky; top: 110px; max-height: calc(100vh - 130px); overflow-y: auto;
}
.search-card h2 { font-size: 15.5px; margin-bottom: 6px; }
.field-group { margin-bottom: 16px; }
.field-group > summary {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.1px; color: var(--accent);
  font-weight: 700; cursor: pointer; padding: 6px 0; user-select: none; display: flex; align-items: center; gap: 8px;
}
.field-group details { border-bottom: 1px dashed var(--border); }
.field-group details[open] { padding-bottom: 10px; }
.fg-body { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.fg-body .full { grid-column: 1 / -1; }
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.input {
  width: 100%; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--border-2); border-radius: 7px; padding: 7px 9px;
  font-size: 13px; font-family: var(--sans); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34,211,238,.12); }
.input::placeholder { color: #56565e; }
select.input { appearance: none; }

.options {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 14px 0;
  padding: 10px 12px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px;
}
.opt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; margin: 0; }
.opt input[type="number"] { width: 64px; }
.opt.check input { accent-color: var(--accent); }

/* ============ BOUTONS ============ */
.btn {
  font-family: var(--sans); font-size: 13.5px; font-weight: 600; padding: 9px 16px;
  border-radius: 8px; cursor: pointer; border: 1px solid var(--border-2);
  background: var(--panel-2); color: var(--text); transition: filter .15s, border-color .15s;
}
.btn:hover { filter: brightness(1.15); border-color: var(--accent); }
.btn.primary { background: linear-gradient(135deg, #0891b2, #0e7490); border-color: #155e75; color: #fff; width: 100%; }
.btn.primary:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.small { padding: 5px 10px; font-size: 12px; }

/* ============ RÉSULTATS ============ */
.meta-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: 13px; }
.meta-bar .pager { display: flex; gap: 8px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: var(--border-2); }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; background: var(--panel-2); border-bottom: 1px solid var(--border);
}
.card-title { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.conf { font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.conf.high { color: #052e16; background: var(--green); }
.conf.mid { color: #451a03; background: var(--amber); }
.conf.low { color: #450a0a; background: var(--red); }
.conf.unknown { color: var(--muted); background: var(--border-2); }
.sources { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.chip { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 20px; border: 1px solid var(--border-2); background: var(--panel-2); color: var(--accent-2); }
.chip.db { color: var(--amber); }
.card-body { padding: 12px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.fld { padding: 4px 0; overflow: hidden; }
.fld.full { grid-column: 1 / -1; }
.fld .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.fld .v { font-family: var(--mono); font-size: 13px; color: var(--text); word-break: break-all; }
.fld .v a { word-break: break-all; }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 60px 20px; border: 1px dashed var(--border-2); border-radius: 12px; }

/* ============ LOOKUP ============ */
.lookup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 20px; }
.lookup-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.lookup-card h3 { font-size: 14.5px; margin-bottom: 10px; }
.lookup-form { display: flex; gap: 8px; }
.lookup-form .input { flex: 1; }
.results-block { margin-top: 6px; }

/* ============ COMPTE ============ */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.stat-card .k { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.stat-card .v { font-size: 22px; font-weight: 700; font-family: var(--mono); }
.stat-card .v.small { font-size: 15px; }
.stat-card .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.progress { height: 8px; background: var(--panel-2); border: 1px solid var(--border-2); border-radius: 20px; overflow: hidden; margin-top: 10px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--accent), var(--green)); border-radius: 20px; transition: width .4s; }
.progress.warn > div { background: linear-gradient(90deg, var(--amber), var(--red)); }
.headers {
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; font-family: var(--mono); font-size: 12.5px; display: flex; flex-wrap: wrap; gap: 8px;
}
.headers .hdr { background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 5px 10px; }
.headers .hdr b { color: var(--accent-2); font-weight: 600; }

/* ============ JOURNAL ============ */
.usage-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); border-bottom: 1px solid var(--border-2); padding: 8px 10px; }
.tbl td { border-bottom: 1px solid var(--border); padding: 8px 10px; font-family: var(--mono); font-size: 12px; vertical-align: top; }
.tbl tr:hover td { background: rgba(34, 211, 238, .04); }

/* ============ FOOTER OUTIL ============ */
.footer {
  display: flex; justify-content: space-between; gap: 12px; max-width: 1280px;
  margin: 0 auto; padding: 24px 20px 40px; color: var(--muted); font-size: 12.5px; flex-wrap: wrap;
}

/* ============ TOAST ============ */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--panel); border: 1px solid var(--border-2); color: var(--text);
  padding: 11px 18px; border-radius: 10px; font-size: 13.5px; z-index: 60;
  box-shadow: 0 10px 30px rgba(0,0,0,.5); max-width: min(640px, calc(100vw - 40px));
}
.toast.error { border-color: rgba(248, 113, 113, .5); }
.toast.error::before { content: "⚠ "; }
.toast.ok::before { content: "✓ "; color: var(--green); }
.toast.hidden { display: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .nav-pill { flex-wrap: wrap; border-radius: 24px; justify-content: center; }
  .nav-links { order: 3; width: 100%; justify-content: center; }
  .layout { grid-template-columns: 1fr; }
  .search-card { position: static; max-height: none; }
}
@media (max-width: 640px) {
  main { padding: 14px; }
  .tabs { padding: 8px 10px 0; top: 56px; overflow-x: auto; }
  .cards { grid-template-columns: 1fr; }
  .card-body { grid-template-columns: 1fr; }
  .fg-body { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .ratelimit { justify-content: flex-start; }
  .hero-title { font-size: 20px; }
  .eye-logo { width: 170px; }
  .search-btn { padding: 11px 14px; }
  .stat-num { font-size: 26px; }
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.anim-up { opacity: 0; animation: fadeUp .7s cubic-bezier(.22,.61,.36,1) forwards; }

/* Grille en dérive lente */
@keyframes gridDrift { from { background-position: 0 0, 0 0; } to { background-position: 46px 46px, 46px 46px; } }
.grid-bg { animation: gridDrift 60s linear infinite; }

/* Œil : flottement, pulsation lumineuse, clignement, pupille, scan */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
/* IMPORTANT : .eye-anim ne doit PAS déclarer d'animation propre — elle
   écraserait l'entrée fadeUp de .anim-up (même spécificité, déclarée plus
   tard) et l'œil resterait bloqué à opacity:0, donc invisible. */
@keyframes glowPulse { 0%,100% { filter: drop-shadow(0 0 8px rgba(255,255,255,.3)); } 50% { filter: drop-shadow(0 0 26px rgba(255,255,255,.75)); } }
.eye-logo { animation: glowPulse 3.2s ease-in-out infinite, floaty 6s ease-in-out infinite; }
@keyframes blink { 0%, 91%, 100% { transform: scaleY(1); } 94%, 96% { transform: scaleY(.08); } }
.eye-blink { transform-box: fill-box; transform-origin: center; animation: blink 6.5s ease-in-out infinite; }
@keyframes pupilBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.28); } }
.pupil { transform-box: fill-box; transform-origin: center; animation: pupilBreathe 3.4s ease-in-out infinite; }
@keyframes scanline { 0% { transform: translateY(-34px); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(34px); opacity: 0; } }
.scan { transform-box: fill-box; transform-origin: center; opacity: 0; animation: scanline 2.8s ease-in-out infinite; }

/* Barre de recherche : halo au focus */
.search-bar { transition: border-color .3s, box-shadow .3s, transform .3s; }
.search-bar:focus-within { border-color: rgba(255,255,255,.45); box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 10px 36px rgba(0,0,0,.6); transform: translateY(-1px); }

/* Pills : rebond d'entrée + survol */
@keyframes pillIn { 0% { opacity: 0; transform: translateY(10px) scale(.9); } 60% { transform: translateY(-2px) scale(1.02); } 100% { opacity: 1; transform: none; } }
/* backwards : après l'entrée, le fill est relâché pour que les effets
   :hover / :active (lift, scale) fonctionnent à nouveau. */
.type-pill { animation: pillIn .5s cubic-bezier(.22,.61,.36,1) backwards; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.type-pill:nth-child(2) { animation-delay: .55s; }
.type-pill:nth-child(3) { animation-delay: .62s; }
.type-pill:nth-child(4) { animation-delay: .69s; }
.type-pill:nth-child(5) { animation-delay: .76s; }
.type-pill:nth-child(6) { animation-delay: .83s; }
.type-pill:nth-child(7) { animation-delay: .9s; }
.type-pill:nth-child(8) { animation-delay: .97s; }
.type-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255,255,255,.14); }
.type-pill.active:hover { transform: translateY(-2px); }

/* Bouton rechercher */
.search-btn { transition: transform .2s, box-shadow .2s, opacity .2s; }
.search-btn:hover { transform: scale(1.03); }
.search-btn:active { transform: scale(.97); }

/* Nav : glissement d'entrée */
@keyframes navIn { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
.nav-pill { animation: navIn .6s cubic-bezier(.22,.61,.36,1) both; }

/* Stats : survol */
.stat { transition: transform .3s; }
.stat:hover { transform: translateY(-4px); }

/* Reveal au scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
.feature-card.reveal:nth-child(2) { transition-delay: .06s; }
.feature-card.reveal:nth-child(3) { transition-delay: .12s; }
.feature-card.reveal:nth-child(4) { transition-delay: .18s; }
.feature-card.reveal:nth-child(5) { transition-delay: .24s; }
.feature-card.reveal:nth-child(6) { transition-delay: .3s; }
.plan-card.reveal:nth-child(2) { transition-delay: .1s; }
.plan-card.reveal:nth-child(3) { transition-delay: .2s; }

/* Cartes de résultats : entrée en cascade (backwards = lift au survol OK) */
@keyframes cardIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.card.card-in { animation: cardIn .45s cubic-bezier(.22,.61,.36,1) backwards; }
.card { transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.5); }

/* Boutons outil */
.btn { transition: filter .15s, border-color .15s, transform .15s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.4); }

/* Chat : hochement périodique */
@keyframes chatWiggle { 0%, 84%, 100% { transform: rotate(0); } 86% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 94% { transform: rotate(-4deg); } }
.chat-fab { animation: chatWiggle 6s ease-in-out infinite; }

/* Bouton Discord (support) en bas à gauche */
.discord-fab {
  position: fixed; left: 22px; bottom: 22px; z-index: 40;
  width: 52px; height: 52px; border-radius: 50%;
  background: #5865F2; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(88,101,242,.45); transition: transform .15s, box-shadow .2s;
  animation: chatWiggle 6s ease-in-out infinite;
}
.discord-fab:hover { transform: scale(1.1); box-shadow: 0 10px 30px rgba(88,101,242,.65); }
.discord-fab svg { display: block; }
@keyframes discordPulse { 0% { box-shadow: 0 0 0 0 rgba(88,101,242,.5); } 70% { box-shadow: 0 0 0 14px rgba(88,101,242,0); } 100% { box-shadow: 0 0 0 0 rgba(88,101,242,0); } }
.discord-fab { animation: chatWiggle 6s ease-in-out infinite, discordPulse 2.4s ease-out infinite; }

/* Quota critique : clignotement */
@keyframes blinkWarn { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.rate-badge.crit, .nav-quota.crit { animation: blinkWarn 1.4s ease-in-out infinite; }

/* Accessibilité : réduire les animations si demandé */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .anim-up, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ============ ŒIL SUIVANT LA SOURIS ============ */
.iris-group { transform-box: fill-box; transform-origin: center; will-change: transform; transition: transform .14s ease-out; }

/* ============ AUTH (Clerk) ============ */
.auth-area { display: flex; align-items: center; gap: 10px; }
.auth-area .login { font-size: 13.5px; color: #e8e8ec; }
.auth-area .signup {
  font-size: 13.5px; font-weight: 600; color: #000; background: #fff;
  padding: 8px 18px; border-radius: 999px; transition: opacity .15s;
}
.auth-area .signup:hover { opacity: .85; }
.user-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 999px; padding: 4px 6px 4px 4px;
}
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, #fff, #9a9aa2); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.user-name { font-size: 12.5px; color: #e8e8ec; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auth-area .signout { font-size: 12.5px; color: var(--muted); padding: 6px 10px; border-radius: 999px; }
.auth-area .signout:hover { color: #fff; background: rgba(255,255,255,.07); opacity: 1; }

/* ============ PANNEAU D'ACTIVATION CLERK ============ */
.setup-panel {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 55; width: min(430px, calc(100vw - 40px));
  background: #141416; border: 1px solid var(--border-2); border-radius: 14px;
  padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.7);
}
.setup-panel.hidden { display: none; }
.setup-panel h3 { font-size: 16px; margin-bottom: 8px; }
.setup-panel .hint { margin-bottom: 12px; }
.setup-panel code { background: rgba(255,255,255,.08); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 12px; }
.setup-actions { display: flex; gap: 10px; margin-top: 14px; }

/* ============ PAGE LÉGALE (CGU) ============ */
.view-legal { min-height: 100vh; display: none; justify-content: center; padding: 44px 20px 70px; }
.view-legal.active { display: flex; }
.legal { max-width: 860px; width: 100%; }
.legal h1 { font-size: 30px; margin: 20px 0 4px; letter-spacing: .2px; }
.legal .legal-sub { color: #8a9099; font-size: 13px; margin-bottom: 10px; }
.legal h2 { font-size: 19px; margin: 34px 0 10px; color: #fff; }
.legal h2::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; margin-right: 10px; vertical-align: middle; opacity: .85; }
.legal p, .legal li { color: #c7ccd4; line-height: 1.75; font-size: 14.5px; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal strong { color: #fff; }
.legal a { color: #7fd4ff; text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal .back-link { color: #c7ccd4; font-size: 14px; }
.legal .legal-updated { color: #8a9099; font-size: 12.5px; margin-top: 34px; }
.legal-link { color: #c7ccd4; font-size: 13px; margin-left: 14px; }
.legal-link:hover { color: #fff; }


/* ============ CRÉDIT (bas de page) ============ */
.made-by {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}
.made-by::before {
  content: "◆ ";
  color: var(--accent);
  opacity: .8;
}

/* ============ FOND DÉGRADÉ BLEU-NOIR ANIMÉ (coulant fluide) ============ */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 750px at 12% 18%, rgba(12, 36, 104, .20), transparent 62%),
    radial-gradient(950px 700px at 88% 78%, rgba(14, 40, 110, .15), transparent 60%),
    radial-gradient(700px 500px at 60% 40%, rgba(7, 52, 96, .08), transparent 65%),
    linear-gradient(135deg, #01030b 0%, #030919 32%, #020512 62%, #01030b 100%);
  background-size: 220% 220%;
  animation: bgFlow 26s ease-in-out infinite alternate;
}
.bg-glow::before,
.bg-glow::after {
  content: '';
  position: absolute;
  width: 55vmax; height: 55vmax;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .38;
  pointer-events: none;
}
.bg-glow::before {
  top: -18%; left: -12%;
  background: radial-gradient(circle, rgba(10, 26, 78, .40), transparent 68%);
  animation: orbA 34s ease-in-out infinite alternate;
}
.bg-glow::after {
  bottom: -22%; right: -14%;
  background: radial-gradient(circle, rgba(5, 20, 58, .44), transparent 68%);
  animation: orbB 41s ease-in-out infinite alternate;
}
@keyframes bgFlow {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 100%; }
}
@keyframes orbA {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(14vmax, 10vmax) scale(1.25); }
}
@keyframes orbB {
  from { transform: translate(0, 0) scale(1.15); }
  to   { transform: translate(-12vmax, -8vmax) scale(.9); }
}
/* La grille reste au-dessus du dégradé */
.grid-bg { z-index: 0; }

/* ============ SECTION LEAKS / BASES DE DONNÉES ============ */
.leak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.leak-card {
  display: flex; align-items: center; gap: 10px;
  background: rgba(7, 23, 51, .55);
  border: 1px solid rgba(59, 130, 246, .25);
  border-radius: 12px;
  padding: 12px 14px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.leak-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96, 165, 250, .6);
  box-shadow: 0 8px 26px rgba(29, 78, 216, .25);
}
.leak-ico { font-size: 17px; }
.leak-card b { font-size: 13.5px; color: #e6eefb; }
.tag {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.tag.leak { color: #fca5a5; background: rgba(239, 68, 68, .14); border: 1px solid rgba(248, 113, 113, .35); }
.tag.db   { color: #7dd3fc; background: rgba(14, 116, 144, .16); border: 1px solid rgba(56, 189, 248, .35); }


/* ============ ANALYSE DE DOMAINE ============ */
.domain-report { display: flex; flex-direction: column; gap: 10px; margin-bottom: 6px; }
.report-head {
  font-size: 15px; font-weight: 700; color: #e8f1ff;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(7, 20, 44, .6);
  border: 1px solid rgba(96, 165, 250, .28);
  display: flex; align-items: center; flex-wrap: wrap;
}
.report-head b { color: #7dd3fc; }
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.report-card { animation: cardIn .45s cubic-bezier(.22,.61,.36,1) backwards; }
.report-card:nth-child(2) { animation-delay: .06s; }
.report-card:nth-child(3) { animation-delay: .12s; }
.report-card:nth-child(4) { animation-delay: .18s; }
.report-card .fld .v.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px; word-break: break-all;
}

/* ============ BARRE INTELLIGENTE ============ */
.auto-hint {
  color: #7dd3fc; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .6px;
}

/* ============================================================
   RAFINEMENTS D'ANIMATIONS
============================================================ */

/* Nav : rétrécissement subtil au scroll (classe .scrolled posée par JS) */
.nav-pill { transition: padding .3s ease, box-shadow .3s ease, background .3s ease; }
.nav-pill.scrolled { padding: 7px 14px; background: rgba(8,8,10,.9); box-shadow: 0 12px 34px rgba(0,0,0,.55); }
.nav-links a { transition: background .2s ease, color .2s ease; }

/* Ancres : décalage sous la nav sticky */
#accueil, section[id] { scroll-margin-top: 92px; }

/* Vue : fondu + léger glissement à la bascule landing / légale */
.view.active { animation: viewIn .35s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Stats : cascade d'entrée quand la section devient visible */
.stats.visible .stat { animation: statIn .6s cubic-bezier(.22,.61,.36,1) backwards; }
.stats.visible .stat:nth-child(2) { animation-delay: .07s; }
.stats.visible .stat:nth-child(3) { animation-delay: .14s; }
.stats.visible .stat:nth-child(4) { animation-delay: .21s; }
.stats.visible .stat:nth-child(5) { animation-delay: .28s; }
@keyframes statIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Fuites : cascade d'entrée (backwards = survol OK une fois entré) */
.leaks.visible .leak-card { animation: leakIn .55s cubic-bezier(.22,.61,.36,1) backwards; }
.leaks.visible .leak-card:nth-child(2) { animation-delay: .04s; }
.leaks.visible .leak-card:nth-child(3) { animation-delay: .08s; }
.leaks.visible .leak-card:nth-child(4) { animation-delay: .12s; }
.leaks.visible .leak-card:nth-child(5) { animation-delay: .16s; }
.leaks.visible .leak-card:nth-child(6) { animation-delay: .2s; }
.leaks.visible .leak-card:nth-child(7) { animation-delay: .24s; }
.leaks.visible .leak-card:nth-child(8) { animation-delay: .28s; }
.leaks.visible .leak-card:nth-child(9) { animation-delay: .32s; }
.leaks.visible .leak-card:nth-child(10) { animation-delay: .36s; }
.leaks.visible .leak-card:nth-child(11) { animation-delay: .4s; }
.leaks.visible .leak-card:nth-child(12) { animation-delay: .44s; }
@keyframes leakIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* Cartes fonctionnalités / plans : lift + halo cyan au survol (compatible reveal) */
.feature-card.reveal {
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1),
              border-color .25s ease, box-shadow .25s ease;
}
.feature-card.reveal:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.4);
  box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(34,211,238,.1);
}
.plan-card.reveal {
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1),
              border-color .25s ease, box-shadow .25s ease;
}
.plan-card.reveal:hover {
  transform: translateY(-4px);
  border-color: rgba(34,211,238,.4);
  box-shadow: 0 14px 34px rgba(0,0,0,.45), 0 0 0 1px rgba(34,211,238,.1);
}

/* Toast : entrée / sortie animées */
.toast { animation: toastIn .3s cubic-bezier(.22,.61,.36,1) both; }
.toast.out { animation: toastOut .25s ease-in both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { from { opacity: 1; transform: translate(-50%, 0); } to { opacity: 0; transform: translate(-50%, 12px); } }

/* Panneau chat : ouverture / fermeture animées (classes .opening/.closing) */
.chat-panel.opening { animation: chatPanelIn .3s cubic-bezier(.22,.61,.36,1) both; }
.chat-panel.closing { animation: chatPanelOut .22s ease-in both; }
@keyframes chatPanelIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes chatPanelOut { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(.97); } }

/* Boutons : pulsation pendant le chargement (classe .loading) */
.search-btn.loading, .btn.loading { animation: btnPulse 1.1s ease-in-out infinite; }
@keyframes btnPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,255,255,.35); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 9px rgba(255,255,255,0); }
}
.loading-empty { animation: softBlink 1.6s ease-in-out infinite; }
@keyframes softBlink { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Point de statut : anneau pulsant quand tout va bien */
.status-dot { position: relative; }
.status-dot.ok::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--green);
  animation: pingRing 2.6s ease-out infinite;
}
@keyframes pingRing { 0% { transform: scale(.5); opacity: 1; } 75%, 100% { transform: scale(1.7); opacity: 0; } }

/* Bouton primaire : reflet de dégradé qui glisse au survol */
.btn.primary {
  background: linear-gradient(135deg, #0e7490 0%, #0aa5c4 50%, #0e7490 100%);
  background-size: 220% 100%;
  background-position: 0% 0%;
  transition: background-position .6s ease, filter .15s, border-color .15s, transform .15s, box-shadow .2s;
}
.btn.primary:hover { background-position: 100% 0%; }

/* Pills : léger enfoncement au clic */
.type-pill:active { transform: scale(.94); }

/* Œil : anticipation GPU pour un suivi souris fluide */
.eye-blink, .pupil, .scan, .iris-group { will-change: transform; }
