/* DivAntiBotter — styles du site (accueil, guide, admin) */

:root {
  --bg: #07080d;
  --bg2: #0c0e15;
  --card: #12151f;
  --card2: #181c28;
  --card3: #222839;
  --line: rgba(255,255,255,.07);
  --line2: rgba(255,255,255,.14);
  --text: #f1f3f9;
  --text2: #c2c8d6;
  --muted: #8189a0;
  --accent: #5b7cff;
  --accent2: #9a5cff;
  --tres: #ff3d6e;
  --suspect: #ff9640;
  --verifier: #f5c84b;
  --sur: #2fe0a0;
  --live: #ff2e4d;
  --radius: 22px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(91,124,255,.4); }
[hidden] { display: none !important; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(100deg, #8fa6ff 0%, var(--accent) 35%, var(--accent2) 70%, #ff6aa8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px;
  border-radius: 14px; border: 1px solid var(--line2); background: var(--card2); color: var(--text);
  font: 700 15px/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .45; cursor: default; transform: none; filter: none; }
.btn.primary { border-color: transparent; background: linear-gradient(135deg, var(--accent), #7a5cff); color: #fff; box-shadow: 0 12px 30px rgba(91,124,255,.35), inset 0 1px 0 rgba(255,255,255,.2); }
.btn.live { border-color: transparent; background: linear-gradient(135deg, #ff2e4d, #ff7a3d); color: #fff; box-shadow: 0 12px 30px rgba(255,46,77,.3); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--tres); border-color: rgba(255,61,110,.4); background: transparent; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 11px; }
.btn.xs { height: 32px; padding: 0 10px; font-size: 12.5px; border-radius: 9px; gap: 6px; }
.btn.lg { height: 56px; padding: 0 28px; font-size: 16.5px; border-radius: 16px; }
.btn svg { flex: none; }

/* ---------- En-tête ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(7,8,13,.72); border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; font-size: 19px; letter-spacing: -.02em; }
.logo {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--accent), var(--accent2)); box-shadow: 0 8px 22px rgba(91,124,255,.4), inset 0 1px 0 rgba(255,255,255,.3);
}
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--text2); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }

/* ---------- Accueil : héros ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; }
.hero::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 40% at 30% 30%, rgba(91,124,255,.28), transparent 70%),
    radial-gradient(35% 35% at 75% 25%, rgba(154,92,255,.22), transparent 70%),
    radial-gradient(30% 30% at 55% 60%, rgba(255,46,77,.12), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000, transparent);
}
.hero-in { position: relative; z-index: 1; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line2); font-size: 13.5px; font-weight: 650; color: var(--text2);
}
.badge b { padding: 3px 9px; border-radius: 999px; background: var(--live); color: #fff; font-size: 11.5px; letter-spacing: .05em; }
.hero h1 { margin-top: 22px; font-size: clamp(42px, 7vw, 82px); line-height: 1.02; font-weight: 900; letter-spacing: -.045em; }
.hero p.lead { margin: 22px auto 0; max-width: 680px; font-size: clamp(16px, 2vw, 19px); color: var(--text2); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.shot {
  position: relative; margin: 56px auto 0; max-width: 1080px; border-radius: 22px; padding: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.02)); border: 1px solid var(--line2);
  box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.4), 0 0 120px rgba(91,124,255,.15);
}
.shot img { border-radius: 14px; width: 100%; }
.shot-bar { display: flex; gap: 6px; padding: 4px 6px 10px; }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.18); }
.float-tag {
  position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 14px;
  background: rgba(18,21,31,.9); border: 1px solid var(--line2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: 13.5px; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.45); animation: bob 5s ease-in-out infinite;
}
.float-tag .dot { width: 9px; height: 9px; border-radius: 50%; }
.float-tag.t1 { left: -22px; top: 22%; }
.float-tag.t2 { right: -26px; top: 48%; animation-delay: -2s; }
.float-tag.t3 { left: 8%; bottom: -20px; animation-delay: -3.5s; }

/* ---------- Sections ---------- */
section.block { padding: 96px 0 0; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.block h2 { margin-top: 10px; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; font-weight: 850; letter-spacing: -.035em; }
.block .sub { margin-top: 14px; max-width: 640px; color: var(--text2); font-size: 17px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 64px; }
.strip div { padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.strip b { display: block; font-size: 17px; font-weight: 800; }
.strip span { font-size: 14px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.feature {
  position: relative; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: border-color .2s ease, transform .2s ease;
}
.feature:hover { border-color: var(--line2); transform: translateY(-3px); }
.feature::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: radial-gradient(70% 60% at 0% 0%, color-mix(in srgb, var(--c, var(--accent)) 14%, transparent), transparent 70%);
}
.feature > * { position: relative; }
.f-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 16%, transparent); }
.feature h3 { margin-top: 18px; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.feature p { margin-top: 8px; color: var(--text2); font-size: 15px; }
.feature .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 750; letter-spacing: .03em; background: var(--card2); border: 1px solid var(--line); color: var(--text2); }
.tag.red { color: var(--tres); border-color: rgba(255,61,110,.35); background: rgba(255,61,110,.1); }
.tag.green { color: var(--sur); border-color: rgba(47,224,160,.35); background: rgba(47,224,160,.08); }
.feature.big { grid-column: span 2; }

.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.verdict { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); font-size: 14.5px; }
.verdict b { flex: 1; font-weight: 700; }
.pill { padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.pill.tres { color: var(--tres); background: rgba(255,61,110,.14); }
.pill.sur { color: var(--sur); background: rgba(47,224,160,.12); }
.pill.verifier { color: var(--verifier); background: rgba(245,200,75,.12); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; counter-reset: s; }
.step { position: relative; padding: 28px 24px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.step::before {
  counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  font-weight: 900; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.step h3 { margin-top: 16px; font-size: 18px; font-weight: 800; }
.step p { margin-top: 6px; color: var(--text2); font-size: 15px; }

.secure {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; margin-top: 96px; padding: 40px;
  border-radius: 28px; background: radial-gradient(100% 120% at 0% 0%, rgba(47,224,160,.12), transparent 60%), var(--card); border: 1px solid var(--line);
}
.secure ul { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.secure li { display: flex; gap: 12px; color: var(--text2); }
.secure li svg { color: var(--sur); flex: none; margin-top: 3px; }
.flow { display: flex; flex-direction: column; gap: 10px; }
.flow-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); font-weight: 650; }
.flow-row small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.flow-row .f-ic { width: 40px; height: 40px; border-radius: 12px; }
.flow-arrow { align-self: center; color: var(--muted); }

/* ---------- Tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 44px; align-items: stretch; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 30px 26px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.plan.hot { position: relative; border-color: rgba(91,124,255,.6); background: linear-gradient(180deg, rgba(91,124,255,.14), var(--card) 60%); box-shadow: 0 30px 80px rgba(91,124,255,.18); }
.plan.hot::before { content: 'Recommandé'; position: absolute; top: -13px; left: 26px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); }
.plan h3 { font-size: 18px; font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 44px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-size: 14px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; font-size: 15px; color: var(--text2); }
.plan li svg { color: var(--accent); flex: none; margin-top: 4px; }
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 40px auto 0; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 18px; background: var(--card); border: 1px solid var(--line); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 20px 0; font-weight: 750; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text2); }

.final {
  margin: 110px 0 0; padding: 56px 30px; border-radius: 30px; text-align: center; overflow: hidden; position: relative;
  background: radial-gradient(80% 120% at 50% 0%, rgba(91,124,255,.3), transparent 70%), var(--card); border: 1px solid var(--line2);
}
.final h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: -.03em; }
.final p { margin: 12px auto 26px; max-width: 560px; color: var(--text2); }

footer { margin-top: 90px; padding: 34px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--text2); text-decoration: none; }

/* ---------- Guide d'installation ---------- */
.page-head { padding: 64px 0 10px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -.04em; line-height: 1.05; }
.page-head p { margin-top: 12px; color: var(--text2); max-width: 680px; font-size: 17px; }
.tabs { display: inline-flex; gap: 4px; padding: 5px; margin-top: 30px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.tabs button { height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: transparent; color: var(--text2); font: 700 15px var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tabs button[aria-selected="true"] { background: var(--card3); color: var(--text); }
.guide { margin-top: 24px; display: grid; gap: 14px; }
.gstep { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 24px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.gnum { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 900; font-size: 20px; background: var(--card3); }
.gstep h3 { font-size: 18px; font-weight: 800; }
.gstep p, .gstep li { color: var(--text2); }
.gstep p { margin-top: 6px; }
.gstep .btn { margin-top: 14px; }
code, kbd { font: 600 14px var(--mono); padding: 2px 7px; border-radius: 7px; background: var(--card3); color: var(--text); }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: 16px; background: rgba(255,150,64,.08); border: 1px solid rgba(255,150,64,.3); color: var(--text2); }
.note svg { color: var(--suspect); flex: none; margin-top: 3px; }

/* ---------- Admin ---------- */
.admin-body { min-height: 100vh; }
.admin-top { display: flex; align-items: center; gap: 16px; height: 72px; border-bottom: 1px solid var(--line); }
.admin-top .grow { flex: 1; }
.login { width: min(420px, calc(100% - 40px)); margin: 12vh auto 0; padding: 32px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login h1 { font-size: 24px; font-weight: 850; }
.field {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 13px; background: var(--card2); border: 1px solid var(--line2);
  color: var(--text); font: 500 16px var(--font); outline: none;
}
.field:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(91,124,255,.15); }
select.field { cursor: pointer; }
.err { color: var(--tres); font-weight: 650; font-size: 14px; }
.err:empty { display: none; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.kpi { padding: 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.kpi b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 13px; color: var(--muted); }
.kpi.g b { color: var(--sur); }
.kpi.r b { color: var(--tres); }
.kpi.y b { color: var(--verifier); }
.panel { margin-top: 16px; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.panel h2 { font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.create { display: grid; grid-template-columns: 1.2fr .6fr .6fr 2fr auto; gap: 10px; margin-top: 16px; align-items: end; }
.create label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.created { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.created-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(47,224,160,.07); border: 1px solid rgba(47,224,160,.3); }
.created-row code { font-size: 15px; letter-spacing: .04em; flex: 1; background: transparent; padding: 0; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.toolbar .field { max-width: 300px; height: 42px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 13px; background: var(--card2); border: 1px solid var(--line); }
.seg button { height: 34px; padding: 0 13px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: 700 13px var(--font); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--card3); color: var(--text); }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 750; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,.02); }
td code { font-size: 13.5px; white-space: nowrap; }
.st { padding: 4px 9px; border-radius: 8px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st.active { color: var(--sur); background: rgba(47,224,160,.12); }
.st.unused { color: var(--accent); background: rgba(91,124,255,.14); }
.st.revoked { color: var(--tres); background: rgba(255,61,110,.14); }
.st.expired { color: var(--verifier); background: rgba(245,200,75,.12); }
.row-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 100; padding: 12px 18px; border-radius: 14px;
  background: #f4f6fb; color: #111; font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.5); animation: rise .25s ease both;
}
.toast.err { background: var(--tres); color: #fff; }
.empty { padding: 40px; text-align: center; color: var(--muted); }

/* ---------- Animations ---------- */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 980px) {
  .features, .pricing, .steps { grid-template-columns: minmax(0, 1fr); }
  .feature.big, .feature[style*="grid-column"] { grid-column: auto !important; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secure { grid-template-columns: minmax(0, 1fr); padding: 26px; }
  .nav-links { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .create { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .float-tag { display: none; }
}
@media (max-width: 560px) {
  .verdicts { grid-template-columns: minmax(0, 1fr); }
  .nav-cta .btn.ghost { display: none; }
  .gstep { grid-template-columns: minmax(0, 1fr); }
}
