/* ============================================================================
   ThorManager — landing page (design dédié, indépendant de style.css/admin)
   ========================================================================== */

:root {
  --bg: #05060c;
  --bg-2: #090b16;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f2f5fc;
  --muted: #98a3bb;
  --faint: #6b768e;
  --brand: #7c80ff;
  --cyan: #28d8e6;
  --gold: #ffc24b;
  --green: #34d399;
  --grad: linear-gradient(120deg, #8b8cff 0%, #5ad7ec 55%, #c9a4ff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 128, 255, 0.22), transparent 60%),
    radial-gradient(820px 520px at 92% 4%, rgba(40, 216, 230, 0.16), transparent 60%),
    radial-gradient(700px 700px at 60% 110%, rgba(201, 164, 255, 0.12), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 70%);
  opacity: 0.5;
}

h1, h2, h3, h4 {
  font-family: "Sora", "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.i { width: 1em; height: 1em; stroke-width: 2; vertical-align: -0.125em; }
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--cyan);
  background: rgba(40, 216, 230, 0.08);
  border: 1px solid rgba(40, 216, 230, 0.22);
  padding: 6px 13px; border-radius: 999px;
}
.eyebrow .i { width: 15px; height: 15px; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.98rem;
  padding: 13px 22px; border-radius: 13px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s;
  white-space: nowrap;
}
.btn .i { width: 18px; height: 18px; }
.btn-primary {
  color: #16140a;
  background: linear-gradient(135deg, #ffd479, var(--gold));
  box-shadow: 0 14px 36px rgba(255, 194, 75, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(255, 194, 75, 0.4); }
.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line-2);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--panel-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 11px; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 12, 0.6);
  backdrop-filter: blur(16px);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a:not(.btn) {
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
  padding: 8px 12px; border-radius: 9px; transition: color 0.15s, background 0.15s;
}
.nav-links a:not(.btn):hover { color: var(--text); background: var(--panel); }

/* ---- Hero ---- */
.hero { text-align: center; padding: 78px 0 20px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  line-height: 1.04; margin: 24px auto 18px; max-width: 14ch;
}
.hero .lead {
  color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.22rem);
  max-width: 620px; margin: 0 auto;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.trust {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  margin-top: 30px; color: var(--faint); font-size: 0.86rem; font-weight: 500;
}
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .i { width: 16px; height: 16px; color: var(--green); }

/* ---- Cadre capture app ---- */
.shot {
  margin: 56px auto 0; max-width: 1000px; position: relative;
}
.shot::before {
  content: ""; position: absolute; inset: -8% 4% auto; height: 70%; z-index: -1;
  background: var(--grad); filter: blur(90px); opacity: 0.32; border-radius: 50%;
}
.browser {
  border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: var(--bg-2); box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; background: #0a0d1a; border-bottom: 1px solid var(--line);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .url {
  margin-left: 10px; flex: 1; max-width: 320px;
  font-size: 0.78rem; color: var(--faint);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: 8px; padding: 5px 12px;
}
.browser img { display: block; width: 100%; }

/* ---- Sections ---- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 16px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }

/* ---- Grille de fonctions ---- */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: 1fr 1fr; } }

.feature {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--panel-2); }
.feat-ico {
  width: 48px; height: 48px; border-radius: 13px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(124, 128, 255, 0.12); border: 1px solid rgba(124, 128, 255, 0.22);
  color: #b8baff;
}
.feat-ico .i { width: 23px; height: 23px; }
.feature h3 { font-size: 1.12rem; margin-bottom: 7px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---- Bloc duo (app / extension) ---- */
.duo { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 22px; padding: 32px;
}
.panel-card .ribbon { position: absolute; inset: 0 0 auto 0; height: 3px; }
.panel-card.a .ribbon { background: linear-gradient(90deg, var(--gold), transparent); }
.panel-card.b .ribbon { background: linear-gradient(90deg, var(--cyan), var(--brand), transparent); }
.pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pc-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; }
.panel-card.a .pc-ico { background: rgba(255, 194, 75, 0.13); border: 1px solid rgba(255, 194, 75, 0.25); color: var(--gold); }
.panel-card.b .pc-ico { background: rgba(40, 216, 230, 0.12); border: 1px solid rgba(40, 216, 230, 0.25); color: var(--cyan); }
.pc-ico .i { width: 26px; height: 26px; }
.pc-head h3 { font-size: 1.3rem; }
.pc-head .role { font-size: 0.82rem; color: var(--faint); }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.list li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.97rem; }
.list li .i { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; color: var(--green); }

/* ---- Étapes (timeline) ---- */
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; counter-reset: s; position: relative; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.step-n {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-family: "Sora", sans-serif; font-weight: 600; font-size: 1.2rem;
  color: #0b0d16; background: var(--grad); margin-bottom: 16px;
}
.step h4 { font-size: 1.12rem; margin-bottom: 7px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---- Sites compatibles ---- */
.site {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; transition: transform 0.2s, border-color 0.2s;
}
.site:hover { transform: translateY(-3px); border-color: var(--line-2); }
.site-badge {
  width: 50px; height: 50px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center; color: #07101f;
  font-family: "Sora", sans-serif; font-weight: 700; font-size: 1.05rem;
}
.site h3 { font-size: 1.1rem; margin-bottom: 4px; }
.site .host { font-size: 0.78rem; color: var(--cyan); font-weight: 600; }
.site p { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 15px;
}
.chip .i { width: 15px; height: 15px; color: var(--cyan); }
.chip b { color: var(--text); font-weight: 600; }

/* ---- Installation (carte horizontale) ---- */
.install {
  background: linear-gradient(180deg, rgba(124, 128, 255, 0.06), rgba(40, 216, 230, 0.03));
  border: 1px solid var(--line); border-radius: 26px; padding: 44px clamp(20px, 4vw, 48px);
}
.toggle-demo { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.sw { width: 38px; height: 21px; border-radius: 99px; background: var(--cyan); position: relative; }
.sw::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #061018; top: 3px; right: 3px; }
.kbd { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.85em; background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--cyan); }
.done {
  display: flex; align-items: center; gap: 12px; margin-top: 28px;
  background: rgba(52, 211, 153, 0.08); border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 14px; padding: 16px 20px; font-size: 0.96rem;
}
.done .i { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; }

/* ---- CTA final ---- */
.cta-band {
  text-align: center; position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 28px;
  padding: 64px 24px; margin: 40px 0;
  background: radial-gradient(700px 320px at 50% 0%, rgba(124, 128, 255, 0.22), transparent 70%), var(--bg-2);
}
.cta-band h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; font-size: 1.05rem; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding: 40px 0; text-align: center; color: var(--faint); }
.foot img { height: 30px; opacity: 0.7; margin-bottom: 10px; }
.foot p { font-size: 0.9rem; }

@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 64px 0; }
}
