:root {
  --bg: #0a0e1c;
  --bg2: #0f1528;
  --card: #151c33;
  --card2: #1b2340;
  --ink: #eef1fb;
  --mut: #9aa6c8;
  --acc: #6d5efc;
  --acc2: #22d3ee;
  --line: #263056;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, #1a2450 0%, transparent 55%),
              radial-gradient(900px 500px at -10% 10%, #142a44 0%, transparent 50%),
              var(--bg);
  color: var(--ink);
  font: 16px/1.65 -apple-system, "Segoe UI", Roboto, Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--acc2); text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--mut); }
.center { text-align: center; }

/* --- Nav --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 28, .72);
  border-bottom: 1px solid var(--line);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -.6px; display: flex; align-items: center; gap: 9px; }
.logo b { color: var(--ink); }
.logo .dot { color: var(--acc); }
.logo .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--acc), var(--acc2));
  display: inline-grid; place-items: center; font-size: 15px;
}
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--mut); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border: none; cursor: pointer; font-weight: 600; font-size: 15px;
  padding: 11px 20px; border-radius: 12px; color: #fff;
  background: linear-gradient(135deg, var(--acc), #8b7bff);
  transition: transform .12s ease, box-shadow .2s ease; text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(109, 94, 252, .4); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--acc); box-shadow: none; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* --- Hero --- */
.hero { padding: 90px 0 40px; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card);
  padding: 7px 14px; border-radius: 30px; font-size: 13px; color: var(--mut); margin-bottom: 26px;
}
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.hero h1 { font-size: clamp(34px, 6vw, 58px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -1.5px; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(120deg, var(--acc2), var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--mut); max-width: 720px; margin: 0 auto 34px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.logos { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; margin-top: 42px; opacity: .9; }
.logos .eng { display: flex; align-items: center; gap: 9px; color: var(--mut); font-weight: 600; font-size: 15px; }
.logos .eng i { font-style: normal; font-size: 20px; }

/* --- Sections --- */
section.block { padding: 64px 0; }
.h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -1px; margin: 0 0 12px; text-align: center; }
.lead { color: var(--mut); text-align: center; max-width: 640px; margin: 0 auto 46px; font-size: 18px; }

.grid { display: grid; gap: 20px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.c4 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .grid.c4, .grid.c2 { grid-template-columns: 1fr; } .nav-links a:not(.btn) { display: none; } }

.feature {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.feature .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px;
  background: rgba(109,94,252,.14); border: 1px solid rgba(109,94,252,.3); margin-bottom: 14px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--mut); font-size: 15px; }

/* --- Steps --- */
.steps { counter-reset: s; }
.step { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step .num { counter-increment: s; }
.step .num::before { content: counter(s); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--acc), var(--acc2)); flex: 0 0 auto; }
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--mut); }

/* --- Pricing --- */
.prices { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .prices { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .prices { grid-template-columns: 1fr; } }
.price {
  background: linear-gradient(180deg, var(--card), var(--bg2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 18px; display: flex; flex-direction: column;
}
.price.pop { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 20px 50px rgba(109,94,252,.25); position: relative; }
.price.pop .tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--acc), var(--acc2)); color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 20px; }
.price h3 { margin: 0 0 6px; font-size: 20px; }
.price .amt { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.price .amt small { font-size: 15px; color: var(--mut); font-weight: 500; }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; flex: 1; }
.price li { display: flex; gap: 10px; font-size: 14px; color: var(--ink); }
.price li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* --- Modal --- */
.overlay { position: fixed; inset: 0; background: rgba(4,7,16,.72); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.overlay.show { display: flex; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: 18px; width: 100%; max-width: 420px;
  padding: 30px; box-shadow: var(--shadow); }
.modal h3 { margin: 0 0 6px; font-size: 22px; }
.modal .switch { color: var(--mut); font-size: 14px; margin-top: 16px; text-align: center; }
.modal .switch a { cursor: pointer; }
.field { margin: 14px 0; }
.field label { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--ink); font: inherit; font-size: 15px;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--acc); }
.err { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4); color: #fecaca;
  padding: 10px 12px; border-radius: 10px; font-size: 14px; margin: 8px 0; display: none; }
.err.show { display: block; }
.close { float: right; cursor: pointer; color: var(--mut); font-size: 22px; line-height: 1; }

#faq ul { margin: 8px 0 0; padding-left: 20px; }
#faq li { padding: 4px 0; color: var(--mut); font-size: 15px; }
#faq h3 { font-size: 17px; margin: 0 0 8px; }

footer.site { border-top: 1px solid var(--line); padding: 40px 0; color: var(--mut); margin-top: 40px; }
footer.site .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }

/* --- Dashboard --- */
.dash { padding: 34px 0 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.card { background: linear-gradient(180deg, var(--card), var(--bg2)); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0; }
@media (max-width: 760px){ .stat-row { grid-template-columns: repeat(2,1fr); } }
.ring { width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-weight: 800; font-size: 22px; margin: 0 auto 8px; }
.ring::after { content: ""; position: absolute; inset: 9px; background: var(--card); border-radius: 50%; }
.ring span { position: relative; z-index: 1; }
.stat .lbl { text-align: center; color: var(--mut); font-size: 13px; }
.checks li { list-style: none; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: flex-start; }
.chip { font-size: 10px; padding: 1px 7px; border-radius: 6px; background: #20284a; color: var(--mut); }
.chip.geo { background: #251f4a; color: #b6a8ff; }
.prio { font-size: 11px; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; }
.prio.haute { background: rgba(248,113,113,.16); color: #fca5a5; }
.prio.moyenne { background: rgba(251,191,36,.16); color: #fcd34d; }
.prio.faible { background: rgba(34,211,238,.14); color: #7dd3fc; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--mut); font-weight: 600; }
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }
.badge-sim { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(251,191,36,.16); color: #fcd34d; }
.tag-q { display:inline-flex; align-items:center; gap:6px; background: var(--card2); border:1px solid var(--line);
  padding:6px 10px; border-radius: 20px; font-size:13px; margin:4px 6px 0 0; }
.tag-q b { cursor:pointer; color: var(--mut); }

/* Blocs verrouillés (offre gratuite) + incitation à l'achat */
.lockbox { background: var(--bg2); border: 1px dashed var(--line); border-radius: 14px; padding: 18px; }
.locked-note { margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.35); color: #fcd34d; }
.upsell-cta { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(109,94,252,.20), rgba(34,211,238,.14));
  border: 1px solid var(--acc); border-radius: 16px; padding: 20px 22px; }
.upsell-cta .btn { white-space: nowrap; }

/* Extraits des réponses IA */
.qa-block { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 10px 0; background: var(--bg2); }
.qa-query { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.qa-answer { border-left: 3px solid var(--acc); padding: 2px 0 2px 12px; margin: 10px 0; }
.qa-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.qa-text { margin: 4px 0 0; font-size: 13px; color: var(--mut); font-style: italic; }
.mention { font-size: 11px; padding: 2px 8px; border-radius: 20px; font-weight: 600; }
.mention.yes { background: rgba(52,211,153,.16); color: #6ee7b7; }
.mention.no { background: rgba(248,113,113,.16); color: #fca5a5; }
/* Fil d'étapes (parcours guidé) */
.steps-bar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12px; }
.steps-bar span { padding: 3px 10px; border-radius: 20px; background: var(--card2);
  border: 1px solid var(--line); color: var(--mut); }
.steps-bar span.on { background: rgba(109,94,252,.2); border-color: var(--acc); color: var(--ink); font-weight: 600; }
.steps-bar span.done { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.4); color: #6ee7b7; }
.pf-card textarea { min-height: 70px; resize: vertical; }

/* Sujets manquants */
.gap-tag { display: inline-flex; align-items: center; gap: 7px; background: rgba(251,191,36,.10);
  border: 1px solid rgba(251,191,36,.35); color: #fcd34d; padding: 5px 11px;
  border-radius: 20px; font-size: 13px; margin: 0 6px 6px 0; }
.gap-tag b { font-size: 11px; opacity: .7; font-weight: 600; }

/* Structure du site (crawl) */
.crawl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.crawl-stat { border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
  text-align: center; background: var(--bg2); }
.crawl-stat.ok { border-color: rgba(52,211,153,.4); background: rgba(52,211,153,.07); }
.crawl-stat.meh { border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.07); }
.crawl-stat.bad { border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.07); }
.crawl-n { font-size: 22px; font-weight: 800; }
.crawl-l { font-size: 11px; color: var(--mut); margin-top: 3px; }
.crawl-det { font-size: 13px; }
.crawl-det b { display: block; margin-bottom: 4px; }
.crawl-det .ck li { word-break: break-all; }
.depth-b { font-size: 10px; padding: 2px 6px; border-radius: 6px; background: var(--card2); color: var(--mut); }

/* Core Web Vitals */
.cwv { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.cwv-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px 8px;
  text-align: center; background: var(--bg2); }
.cwv-card.good { border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.08); }
.cwv-card.meh { border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.08); }
.cwv-card.bad { border-color: rgba(248,113,113,.45); background: rgba(248,113,113,.08); }
.cwv-val { font-size: 19px; font-weight: 800; }
.cwv-key { font-size: 11px; color: var(--mut); margin-top: 2px; letter-spacing: .5px; }
.cwv-rate { font-size: 11px; margin-top: 4px; }
.cwv-card.good .cwv-rate { color: #6ee7b7; }
.cwv-card.meh .cwv-rate { color: #fcd34d; }
.cwv-card.bad .cwv-rate { color: #fca5a5; }

/* Qualité GEO */
.gq { display: grid; gap: 18px; }
.gq-head { display: flex; justify-content: space-between; align-items: baseline;
  font-size: 14px; margin-bottom: 6px; }
.gq-head span { font-weight: 700; }
.gq-bar { display: block; height: 8px; background: #2a3252; border-radius: 6px; overflow: hidden; }
.gq-bar > span { display: block; height: 100%; border-radius: 6px; }
.ok-i { color: #6ee7b7; font-weight: 700; }
.ko-i { color: #fca5a5; font-weight: 700; }

/* Accès des robots d'IA */
.crawl-alert { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 12px; }
.crawl-alert.bad { background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.45); color: #fca5a5; }
.crawl-alert.warn { background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.35); color: #fcd34d; }
.crawl-alert.ok { background: rgba(52,211,153,.10); border: 1px solid rgba(52,211,153,.35); color: #6ee7b7; }
.bots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 18px; }
@media (max-width: 720px) { .bots { grid-template-columns: 1fr; } }
.bot-row { display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 13px;
  border-bottom: 1px solid var(--line); }
.bot-state { flex: 0 0 18px; }
.bot-name { flex: 0 0 auto; font-weight: 600; }
.bot-crit { font-size: 9px; padding: 1px 5px; border-radius: 5px; background: rgba(248,113,113,.16); color: #fca5a5; }
.bot-purpose { flex: 1; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Share of Voice */
.sov { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sov-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.sov-row:last-child { border-bottom: none; }
.sov-row.you { background: rgba(109,94,252,.12); }
.sov-rank { flex: 0 0 22px; color: var(--mut); font-size: 12px; text-align: right; }
.sov-name { flex: 0 0 34%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sov-row.you .sov-name { font-weight: 700; }
.sov-badge { font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--acc); color: #fff; }
.sov-bar { flex: 1; height: 8px; background: #2a3252; border-radius: 6px; overflow: hidden; }
.sov-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.sov-row.you .sov-bar span { background: linear-gradient(90deg, #34d399, #22d3ee); }
.sov-pct { flex: 0 0 42px; text-align: right; font-weight: 600; font-size: 13px; }
@media (max-width: 560px) { .sov-name { flex: 0 0 45%; } }

.notmeasured-note { font-size: 13px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px;
  background: rgba(251,191,36,.10); border: 1px solid rgba(251,191,36,.35); color: #fcd34d; }

/* Sources citées par les IA */
.src-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-bottom: 1px solid var(--line); font-size: 14px; }
.src-row:last-child { border-bottom: none; }
.src-row.is-you { background: rgba(52,211,153,.10); }
.src-dom { flex: 0 0 30%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--acc2); text-decoration: none; }
.src-dom:hover { text-decoration: underline; }
.src-type { flex: 0 0 82px; font-size: 10px; text-align: center; padding: 2px 6px; border-radius: 6px;
  background: #20284a; color: var(--mut); }
.src-type.you { background: rgba(52,211,153,.18); color: #6ee7b7; }
.src-type.dir { background: rgba(109,94,252,.18); color: #b6a8ff; }
.src-type.media { background: rgba(251,191,36,.16); color: #fcd34d; }
.src-count { flex: 0 0 34px; text-align: right; font-weight: 600; font-size: 13px; }
@media (max-width: 560px) { .src-dom { flex: 0 0 40%; } .src-type { display: none; } }

.qa-src { margin-top: 6px; font-size: 12px; }
.src-tag { display: inline-block; background: var(--card2); border: 1px solid var(--line);
  padding: 1px 8px; border-radius: 6px; margin: 2px 3px 0 0; color: var(--acc2); text-decoration: none; }
.src-tag:hover { border-color: var(--acc); }

/* Carte d'identité du site */
.pf-card { background: var(--bg2); }
.pf-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pf-row:last-child { border-bottom: none; }
.pf-k { flex: 0 0 110px; color: var(--mut); font-weight: 600; }
.pf-v { flex: 1; }
.pf-tag { display: inline-block; background: var(--card2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 8px; font-size: 12px; margin: 2px 3px 2px 0; }
.pf-conf { font-size: 12px; font-weight: 600; }

.badge-down { font-size: 11px; padding: 2px 8px; border-radius: 20px; background: rgba(148,166,200,.16); color: var(--mut); }
.prov-down td { opacity: .75; }
.qa-answer.down { border-left-color: var(--mut); opacity: .8; }

/* Éditeur de requêtes */
.qedit { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); }
.sugg { margin: 4px 0 10px; padding: 12px; border: 1px dashed var(--acc); border-radius: 10px; background: rgba(109,94,252,.06); }
.sugg-tag { cursor: pointer; border-color: var(--acc); color: var(--ink); transition: background .15s; }
.sugg-tag:hover { background: rgba(109,94,252,.22); }
.pending-cta { margin-top: 18px; padding: 20px; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, rgba(109,94,252,.16), rgba(34,211,238,.10)); border: 1px solid var(--acc); }

/* Recommandations exécutables : checklist + snippet */
.ck { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.ck li { padding: 3px 0; border: none !important; display: list-item; }
.ck a { color: var(--acc2); }
.ck > li { margin-bottom: 8px; }
.ck > li.ck-done > a { color: #6ee7b7; }
.ck-steps { margin: 5px 0 0; padding-left: 16px; list-style: '→ '; }
.ck-steps li { padding: 2px 0; color: var(--mut); font-size: 12.5px; }
.snip { margin-top: 10px; }
.snip-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); margin-bottom: 4px; }
.snip pre { background: #0b1020; border: 1px solid var(--line); border-radius: 8px; padding: 12px;
  overflow-x: auto; font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; margin: 0; color: #cdd6f4; }
