:root{
  --accent:#6233f6; --accent-light:#7c4df8;
  --ink:#0f172a; --muted:#64748b; --subtle:#94a3b8;
  --border:#e7e8ef; --bg:#f4f3f9; --card:#ffffff;
  --radius:24px; --radius-sm:16px; --radius-xs:12px;
  --pad:28px; --gap:22px;
  --content-max:1400px;
  --font:'Inter',system-ui,-apple-system,sans-serif;
  --display:'Plus Jakarta Sans','Inter',sans-serif;
  --shadow:0 4px 24px rgba(15,23,42,.05);
  --shadow-float:0 18px 48px -16px rgba(98,51,246,.32);
}
*{box-sizing:border-box;}
html,body{margin:0;height:100%;}
body{
  font-family:var(--font); color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
button{font-family:inherit;cursor:pointer;border:none;background:none;}
img{display:block;}

/* ---------- App shell ---------- */
.sg-app{
  display:flex; min-height:100vh;
  background:linear-gradient(180deg,#f1eefb 0%, #f6f5fb 36%, #fbfbfe 100%);
}
.sg-side{
  width:248px; flex-shrink:0; padding:22px 16px;
  background:rgba(255,255,255,.7); backdrop-filter:blur(12px);
  border-right:1px solid var(--border);
  display:flex; flex-direction:column; gap:8px;
  position:sticky; top:0; height:100vh;
}
.sg-brand{display:flex; align-items:center; gap:11px; padding:6px 8px 22px;}
.sg-brand-mark{
  width:38px;height:38px;border-radius:12px; display:grid;place-items:center;
  background:linear-gradient(135deg,var(--accent),var(--accent-light));
  color:#fff;font-family:var(--display);font-weight:800;font-size:19px;
  box-shadow:0 8px 20px rgba(98,51,246,.35);
}
.sg-brand-type{font-family:var(--display);font-weight:800;font-size:17px;letter-spacing:-.02em;}
.sg-brand-type b{color:var(--accent);font-weight:800;}
.sg-nav{display:flex;flex-direction:column;gap:3px;}
.sg-nav-item{
  display:flex;align-items:center;gap:11px;width:100%;text-align:left;
  padding:11px 13px;border-radius:12px;color:var(--muted);
  font-size:14.5px;font-weight:500;transition:.15s;
}
.sg-nav-item:hover{background:#f2f1f8;color:var(--ink);}
.sg-nav-item.is-active{background:rgba(98,51,246,.1);color:var(--accent);font-weight:600;}
.sg-side-coach{
  margin-top:14px;padding:16px;border-radius:var(--radius-sm);
  background:linear-gradient(150deg,#f6f4ff,#fff);border:1px solid var(--border);
  text-align:center;
}
.sg-side-coach img{width:60px;height:60px;border-radius:50%;object-fit:cover;object-position:center top;margin:0 auto 10px;background:#ede9fe;}
.sg-side-coach p{font-size:12.5px;line-height:1.5;color:var(--muted);margin:0;}
.sg-side-coach b{color:var(--ink);}
.sg-side-shop{margin-top:auto;padding-top:14px;border-top:1px solid var(--border);}
.sg-side-shop-row{display:flex;align-items:center;gap:11px;padding:6px 4px;}
.sg-shop-logo{width:36px;height:36px;border-radius:10px;background:#0f172a;color:#fff;display:grid;place-items:center;font-weight:700;font-size:15px;}
.sg-shop-name{font-size:13.5px;font-weight:600;}
.sg-plan{display:inline-block;margin-top:3px;font-size:11px;font-weight:600;color:var(--accent);background:rgba(98,51,246,.1);padding:2px 9px;border-radius:999px;}

.sg-main{flex:1;min-width:0;padding:28px clamp(18px,2.5vw,42px) 56px;}
.sg-screen{
  display:flex;flex-direction:column;gap:var(--gap);
  width:100%;max-width:var(--content-max);margin:0 auto;
}

/* ---------- Page header ---------- */
.sg-pagehead{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;}
.sg-greeting{font-size:15px;color:var(--muted);margin:0 0 8px;}
.sg-h1{font-family:var(--display);font-size:clamp(28px,3.4vw,38px);font-weight:800;letter-spacing:-.03em;line-height:1.1;margin:0;max-width:620px;}
.sg-h1 span{color:var(--accent);}
.sg-sub{font-size:15.5px;line-height:1.55;color:var(--muted);margin:12px 0 0;max-width:540px;}
.sg-statuspill{display:inline-flex;align-items:center;gap:8px;flex-shrink:0;font-size:12.5px;font-weight:600;color:var(--accent);background:rgba(98,51,246,.08);border:1px solid rgba(98,51,246,.18);padding:8px 14px;border-radius:999px;margin-top:6px;}
.sg-dot{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.22);animation:pulse 2s ease-in-out infinite;}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.5}}

/* ---------- Carte prochain article ---------- */
.sg-next{
  display:grid;grid-template-columns:300px 1fr;gap:8px;align-items:stretch;
  background:linear-gradient(135deg,#1e1b4b 0%, #4c2bd4 52%, #6233f6 100%);
  border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow-float);
  min-height:300px;color:#fff;
}
.sg-next-visual{position:relative;display:flex;align-items:flex-end;justify-content:center;padding:24px 12px 0;}
.sg-next-visual::before{content:"";position:absolute;inset:0;background:radial-gradient(closest-side,rgba(255,255,255,.16),transparent 72%);}
.sg-next-mascot{width:240px;max-width:100%;height:auto;position:relative;z-index:1;animation:float 5s ease-in-out infinite;}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
.sg-coach-bubble{
  position:absolute;top:26px;left:50%;transform:translateX(-46%);z-index:2;
  background:#fff;color:var(--ink);font-size:12.5px;font-weight:600;
  padding:9px 13px;border-radius:14px;border-bottom-left-radius:4px;
  box-shadow:0 10px 24px rgba(0,0,0,.18);white-space:nowrap;
  animation:bubblein .5s cubic-bezier(.34,1.56,.64,1) both .3s;
}
@keyframes bubblein{from{opacity:0;transform:translateX(-46%) translateY(6px) scale(.92)}to{opacity:1}}
.sg-next-body{background:var(--card);color:var(--ink);margin:6px;border-radius:18px;padding:26px 30px;display:flex;flex-direction:column;min-width:0;}
.sg-next-eyebrow{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);}
.sg-next-title{font-family:var(--display);font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1.25;margin:12px 0 16px;overflow-wrap:anywhere;word-break:break-word;}
.sg-next-meta{display:flex;flex-wrap:wrap;gap:10px 22px;font-size:13.5px;color:var(--muted);}
.sg-next-meta b{display:block;font-size:11px;font-weight:600;color:var(--subtle);text-transform:uppercase;letter-spacing:.04em;margin-bottom:2px;}
.sg-next-meta > span{color:var(--ink);font-weight:600;min-width:0;flex:1 1 140px;overflow-wrap:anywhere;}
.sg-next-angle{display:flex;gap:8px;align-items:flex-start;font-size:13.5px;line-height:1.5;color:var(--muted);margin:18px 0 0;padding:12px 14px;background:#f6f5fb;border-radius:12px;}
.sg-next-angle svg{color:var(--accent);flex-shrink:0;margin-top:1px;}
.sg-next-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:auto;padding-top:22px;flex-wrap:wrap;}
.sg-next-foot-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;min-width:0;flex:1 1 auto;}
.sg-next-score{display:flex;align-items:center;gap:11px;font-size:12px;color:var(--muted);line-height:1.3;flex:none;}
.sg-next-score b{color:#2563eb;font-size:13px;}
.sg-next-quota-note{
  display:inline-flex;flex-direction:column;gap:1px;font-size:12px;color:var(--muted);
  background:#f6f5fb;border-radius:10px;padding:8px 11px;line-height:1.25;
}
.sg-next-quota-note b{color:var(--ink);}
.sg-next-quota-note small{font-size:11px;color:var(--subtle);}
.sg-next-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:flex-end;min-width:0;}
.sg-next-actions .sg-btn-primary,.sg-next-actions .sg-btn-ghost{flex:0 1 auto;}
.sg-next.publishing,.sg-next.done{transition:.3s;}
.sg-next-success{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:26px;padding:40px;text-align:left;animation:fadein .4s ease;}
.sg-next-success .sg-next-mascot{max-width:150px;}
.sg-next-success-title{font-family:var(--display);font-size:30px;font-weight:800;margin:0 0 8px;}
.sg-next-success-sub{font-size:15px;opacity:.9;margin:0;max-width:420px;line-height:1.5;}
@keyframes fadein{from{opacity:0;transform:scale(.97)}to{opacity:1}}

/* ---------- Boutons ---------- */
.sg-btn-primary,.sg-btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:600;border-radius:13px;padding:12px 20px;transition:.15s;white-space:nowrap;}
.sg-btn-primary{background:var(--accent);color:#fff;box-shadow:0 8px 22px rgba(98,51,246,.32);}
.sg-btn-primary:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(98,51,246,.4);}
.sg-btn-primary:disabled{opacity:.7;cursor:default;transform:none;}
.sg-btn-ghost{background:#fff;color:var(--ink);border:1px solid var(--border);}
.sg-btn-ghost:hover{background:#faf9fd;border-color:#d7d6e4;}
.sg-btn-ghost:disabled{opacity:.5;cursor:default;}
.sg-btn-primary.sm,.sg-btn-ghost.sm{padding:8px 14px;font-size:13px;border-radius:10px;}
.sg-spinner{width:14px;height:14px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- Pilotage auto ---------- */
.sg-auto{display:flex;align-items:center;gap:6px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px 24px;box-shadow:var(--shadow);}
.sg-auto-item{display:flex;align-items:center;gap:13px;flex:1;}
.sg-auto-ic{width:40px;height:40px;border-radius:12px;background:rgba(98,51,246,.1);color:var(--accent);display:grid;place-items:center;flex-shrink:0;}
.sg-auto-val{font-size:15px;font-weight:700;margin:0;letter-spacing:-.01em;}
.sg-auto-lab{font-size:12.5px;color:var(--muted);margin:2px 0 0;}
.sg-auto-sep{width:1px;align-self:stretch;background:var(--border);margin:2px 0;}

/* ---------- KPIs ---------- */
.sg-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;}
.sg-kpis.is-3{grid-template-columns:repeat(3,1fr);}
.sg-kpi{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);transition:.2s;}
.sg-kpi:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(98,51,246,.12);}
.sg-kpi-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:14px;}
.sg-kpi-icon{width:44px;height:44px;border-radius:13px;overflow:hidden;}
.sg-kpi-icon img{width:100%;height:100%;object-fit:cover;}
.sg-kpi-delta{font-size:12.5px;font-weight:700;color:var(--accent);background:rgba(98,51,246,.09);padding:4px 9px;border-radius:999px;}
.sg-kpi-delta.is-down{color:#dc2626;background:#fef2f2;}
.sg-kpi-label{font-size:13px;color:var(--subtle);margin:0 0 4px;}
.sg-kpi-value{font-family:var(--display);font-size:28px;font-weight:800;letter-spacing:-.02em;margin:0;}

/* ---------- Comparatif ---------- */
.sg-compare,.sg-panel{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:24px var(--pad);box-shadow:var(--shadow);}
.sg-compare-head,.sg-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px;}
.sg-block-title{font-family:var(--display);font-size:17px;font-weight:700;letter-spacing:-.01em;margin:0;}
.sg-block-note,.sg-legend{font-size:13px;color:var(--muted);}
.sg-compare-grid{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;}
.sg-compare-card{text-align:center;padding:24px 18px;border-radius:18px;border:1px solid var(--border);background:#faf9fd;}
.sg-compare-card.is-after{background:linear-gradient(150deg,#f3effe,#fff);border-color:rgba(98,51,246,.28);}
.sg-compare-progress{
  display:flex;align-items:stretch;gap:14px;
  padding:18px 20px;border-radius:16px;border:1px solid rgba(98,51,246,.22);
  background:linear-gradient(150deg,#f7f4ff,#fff);
}
.sg-compare-step{flex:1;min-width:0;}
.sg-compare-lab{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--subtle);margin:0 0 6px;}
.sg-compare-val{font-family:var(--display);font-size:28px;font-weight:800;letter-spacing:-.02em;margin:0;line-height:1.15;overflow-wrap:anywhere;}
.sg-compare-val span{font-size:14px;font-weight:600;color:var(--muted);margin-left:4px;}
.sg-compare-step.is-after .sg-compare-val,
.sg-compare-card.is-after .sg-compare-val{color:var(--accent);}
.sg-compare-meta{font-size:13px;color:var(--muted);margin:6px 0 0;line-height:1.45;}
.sg-compare-arrow{color:var(--accent);opacity:.75;display:grid;place-items:center;flex:none;align-self:center;}
.sg-compare-card .sg-compare-val{font-size:34px;}
.sg-compare-card .sg-compare-lab{margin-bottom:8px;}
.sg-compare-card .sg-compare-meta{margin-top:8px;}

/* ---------- Pills / ring ---------- */
.sg-pill{display:inline-block;font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:999px;}
.sg-pill.is-published{background:#ede9fe;color:#5b21b6;}
.sg-pill.is-scheduled{background:#e0f2fe;color:#0369a1;}
.sg-pill.is-draft{background:#fef3c7;color:#92400e;}
.sg-ring{position:relative;display:grid;place-items:center;}
.sg-ring svg{transform:rotate(0);overflow:visible;}
.sg-ring-num{position:absolute;font-size:12px;font-weight:800;font-family:var(--display);color:#1e3a8a;}
.sg-seo-human-note{
  display:block;margin:4px 0 0;font-size:10.5px;font-weight:600;line-height:1.35;
  color:#92700a;max-width:16rem;
}
.sg-next-score .sg-seo-human-note{margin-top:3px;font-size:10px;max-width:15rem;line-height:1.35;}
.sg-review-score .sg-seo-human-note{margin-top:3px;max-width:12rem;}
.ob-art-score .sg-seo-human-note{margin-top:4px;}

/* ---------- Articles list ---------- */
.sg-tovalidate{display:flex;align-items:center;gap:16px;background:linear-gradient(120deg,#f3effe,#fff);border:1px solid rgba(98,51,246,.25);border-radius:var(--radius);padding:16px 22px;box-shadow:var(--shadow);}
.sg-tovalidate img{width:58px;height:58px;object-fit:cover;object-position:center top;border-radius:14px;background:#ede9fe;}
.sg-tovalidate-title{font-size:15.5px;font-weight:700;margin:0;}
.sg-tovalidate-sub{font-size:13.5px;color:var(--muted);margin:3px 0 0;}
.sg-tovalidate button{margin-left:auto;}
.sg-list{display:flex;flex-direction:column;gap:10px;}
.sg-row{display:flex;align-items:center;gap:16px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:14px 18px;box-shadow:var(--shadow);transition:.15s;}
.sg-row:hover{border-color:#d8d6e6;}
.sg-row.is-proposed{border-color:rgba(98,51,246,.32);background:linear-gradient(120deg,#faf8ff,#fff);}
.sg-row-thumb{width:46px;height:46px;border-radius:12px;flex-shrink:0;display:grid;place-items:center;background:linear-gradient(135deg,#ede9fe,#ddd6fe);color:var(--accent);font-family:var(--display);font-weight:800;font-size:18px;}
.sg-row-main{flex:1;min-width:0;}
.sg-row-title{font-size:14.5px;font-weight:600;margin:0 0 5px;line-height:1.3;}
.sg-row-meta{font-size:12.5px;color:var(--subtle);margin:0;display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
.sg-row-kw{color:var(--muted);}
.sg-row-stat{width:78px;text-align:center;display:flex;flex-direction:column;align-items:center;}
.sg-row-stat b{font-family:var(--display);font-size:17px;font-weight:800;}
.sg-row-stat span{font-size:11px;color:var(--subtle);}
.sg-row-action{flex-shrink:0;display:flex;flex-direction:column;align-items:stretch;gap:8px;}

/* ---------- Résultats ---------- */
.sg-spark{width:100%;height:220px;display:block;}
.sg-legend-dot{display:inline-block;width:10px;height:10px;border-radius:3px;background:var(--accent);margin-right:7px;vertical-align:middle;}
.sg-top{display:flex;flex-direction:column;}
.sg-top-row{display:flex;align-items:center;gap:16px;padding:14px 0;border-bottom:1px solid #f1f0f7;}
.sg-top-row:last-child{border-bottom:none;}
.sg-top-rank{width:26px;height:26px;border-radius:8px;background:#f3effe;color:var(--accent);font-weight:800;font-size:13px;display:grid;place-items:center;flex-shrink:0;}
.sg-top-main{flex:1;min-width:0;}
.sg-top-title{font-size:14px;font-weight:600;margin:0 0 3px;}
.sg-top-kw{font-size:12px;color:var(--subtle);margin:0;}
.sg-top-pos,.sg-top-vis{text-align:right;flex-shrink:0;}
.sg-top-pos b,.sg-top-vis b{display:block;font-family:var(--display);font-size:16px;font-weight:800;}
.sg-top-pos span,.sg-top-vis span{font-size:11px;color:var(--subtle);}
.sg-top-vis{width:72px;}

/* ---------- Réglages ---------- */
.sg-set-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:6px 0;}
.sg-set-title{font-size:15px;font-weight:700;margin:0 0 4px;}
.sg-set-sub{font-size:13px;color:var(--muted);margin:0;max-width:440px;line-height:1.45;}
.sg-set-sep{height:1px;background:var(--border);margin:18px 0;}
.sg-switch{width:48px;height:28px;border-radius:999px;background:#d7d6e4;position:relative;transition:.2s;flex-shrink:0;}
.sg-switch span{position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 2px 6px rgba(0,0,0,.2);transition:.2s;}
.sg-switch.is-on{background:var(--accent);}
.sg-switch.is-on span{left:23px;}
.sg-seg{display:flex;background:#f2f1f8;border-radius:11px;padding:3px;gap:2px;flex-shrink:0;}
.sg-seg button{padding:8px 15px;border-radius:9px;font-size:13px;font-weight:600;color:var(--muted);transition:.15s;}
.sg-seg button.is-active{background:#fff;color:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.08);}
.sg-conn{display:flex;align-items:center;justify-content:space-between;padding:13px 0;border-bottom:1px solid #f1f0f7;}
.sg-conn:last-child{border-bottom:none;}
.sg-conn-name{font-size:14px;font-weight:500;}

/* ---------- Review overlay ---------- */
.sg-overlay{position:fixed;inset:0;z-index:100;background:rgba(20,18,50,.5);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:20px;animation:fadein .2s ease;}
.sg-review{width:min(980px,100%);height:min(92vh,860px);max-height:92vh;background:var(--card);border-radius:var(--radius);overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 300px;box-shadow:0 40px 80px rgba(0,0,0,.4);animation:reviewin .35s cubic-bezier(.16,1,.3,1) both;}
@keyframes reviewin{from{opacity:0;transform:translateY(20px) scale(.98)}to{opacity:1}}
.sg-review-doc{padding:24px 28px;overflow-y:auto;position:relative;min-height:0;}
.sg-review-close{position:absolute;top:20px;right:22px;width:32px;height:32px;border-radius:50%;background:#f2f1f8;color:var(--muted);font-size:15px;display:grid;place-items:center;}
.sg-review-close:hover{background:#e8e7f0;}
.sg-review-title{font-family:var(--display);font-size:26px;font-weight:800;letter-spacing:-.02em;line-height:1.2;margin:12px 0 18px;}
.sg-review-hero{height:180px;border-radius:16px;background:repeating-linear-gradient(135deg,#ede9fe,#ede9fe 12px,#e4def9 12px,#e4def9 24px);display:grid;place-items:center;margin-bottom:20px;}
.sg-review-hero--loading{gap:10px;color:#5b4f8a;font-size:13px;}
.sg-review-hero--loading .sg-spinner{width:22px;height:22px;border-width:2px;}
.sg-review-hero span{font-family:ui-monospace,monospace;font-size:12px;color:#7c6fb5;background:rgba(255,255,255,.7);padding:5px 12px;border-radius:8px;}
.sg-review-intro{font-size:15px;line-height:1.65;color:#334155;margin:0 0 22px;}
.sg-review-h{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--subtle);margin:0 0 10px;}
.sg-review-outline{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:9px;}
.sg-review-outline li{display:flex;align-items:center;gap:10px;font-size:14.5px;color:#334155;}
.sg-review-outline svg{color:var(--accent);flex-shrink:0;}
.sg-review-faded{height:60px;margin-top:8px;background:linear-gradient(180deg,#f6f5fb,transparent);border-radius:8px;}
.sg-review-side{background:#faf9fd;border-left:1px solid var(--border);padding:12px 14px;display:flex;flex-direction:column;gap:10px;overflow:hidden;min-height:0;}
.sg-review-hint{font-size:12px;line-height:1.45;color:var(--muted);margin:0;}
.sg-review-metrics{background:#fff;border:1px solid var(--border);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column;gap:8px;flex-shrink:0;}
.sg-review-score{display:flex;align-items:center;gap:10px;padding:0;}
.sg-review-score-lab{font-size:11px;color:var(--subtle);margin:0;}
.sg-review-score-val{font-family:var(--display);font-size:14px;font-weight:800;color:#2563eb;margin:1px 0 0;}
.sg-checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.sg-checklist.is-compact{gap:5px;}
.sg-checklist.is-2col{display:grid;grid-template-columns:1fr 1fr;gap:4px 8px;}
.sg-checklist li{display:flex;align-items:center;gap:10px;font-size:13px;color:#334155;}
.sg-checklist.is-compact li{gap:6px;font-size:11px;line-height:1.25;color:#475569;}
.sg-checklist.is-compact .sg-check-ic{width:16px;height:16px;}
.sg-check-ic{width:20px;height:20px;border-radius:50%;background:rgba(98,51,246,.12);color:var(--accent);display:grid;place-items:center;flex-shrink:0;font-size:11px;font-weight:700;}
.sg-check-ic.is-fail{background:#f1f5f9;color:var(--subtle);}
.sg-row-score-muted{font-size:13px;color:var(--subtle);}
.sg-row-score-mini{display:block;font-size:11px;color:#2563eb;font-weight:700;margin-top:2px;}
.sg-review-hero-wrap{position:relative;margin-bottom:12px;overflow:hidden;max-height:320px;transition:max-height .28s ease,opacity .22s ease,margin .22s ease;}
.sg-review-hero-wrap.is-collapsed{max-height:0 !important;opacity:0;margin:0;pointer-events:none;}
.sg-review-hero-busy{position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.75);border-radius:12px;font-size:13px;color:var(--muted);gap:8px;}
.sg-review-stats-toggle{margin-top:2px;}
.sg-review-stats-sheet{
  padding:10px;background:#faf9fd;border:1px solid var(--border);border-radius:12px;
}
.sg-review-stats-sheet .sg-review-metrics{
  border:none;padding:0;background:transparent;box-shadow:none;
}
.sg-review-cta{display:flex;flex-direction:column;gap:8px;flex-shrink:0;}
.sg-review-cta .sg-btn-primary{width:100%;}
.sg-review-cta-primary{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.sg-review-cta-primary.is-3{grid-template-columns:1fr 1fr 1fr;}
.sg-review-cta-primary .sg-btn-ghost,
.sg-review-cta-primary .sg-btn-primary{width:100%;min-width:0;padding:8px 6px;font-size:12px;white-space:nowrap;}
.sg-review-cta-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.sg-review-cta-grid .sg-btn-ghost{width:100%;white-space:normal;line-height:1.25;min-height:36px;padding:7px 8px;font-size:11.5px;}
.sg-review-more-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  width:100%;padding:10px 12px;border-radius:12px;border:1px dashed #d8d4ea;
  background:#faf9fd;color:var(--muted);font:inherit;font-size:12.5px;font-weight:700;
  cursor:pointer;transition:.15s;
}
.sg-review-more-toggle span{display:inline-flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap;}
.sg-review-stats-badge{
  font-style:normal;font-size:11px;font-weight:700;color:var(--accent);
  background:rgba(98,51,246,.1);padding:2px 8px;border-radius:999px;white-space:nowrap;
}
.sg-review-stats-sheet .sg-review-metrics{
  border:none;padding:0;background:transparent;box-shadow:none;
}
.sg-review-side{gap:8px;}
.sg-review-cta{gap:6px;}
.sg-review-more-toggle:hover{background:#f3f1fa;color:var(--ink);}
.sg-review-more-toggle svg{transform:rotate(90deg);transition:transform .2s;}
.sg-review-more-toggle.is-open{background:#efeafc;color:var(--accent);border-color:rgba(98,51,246,.35);}
.sg-review-more-toggle.is-open svg{transform:rotate(-90deg);}
.sg-review-more-sheet{
  display:flex;flex-direction:column;gap:6px;padding:10px;
  background:#fff;border:1px solid var(--border);border-radius:14px;
  animation:reviewin .25s ease both;max-height:42vh;overflow:auto;
}
.sg-review-more-sheet .sg-btn-ghost{width:100%;justify-content:flex-start;}
.sg-html-editor{
  border:1px solid var(--border);border-radius:14px;overflow:visible;background:#fff;
  display:flex;flex-direction:column;
}
.sg-html-editor.is-disabled{opacity:.65;pointer-events:none;}
.sg-html-toolbar{
  display:flex;flex-wrap:wrap;gap:4px;padding:8px;border-bottom:1px solid var(--border);
  background:#faf9fd;position:sticky;top:0;z-index:8;
  border-radius:14px 14px 0 0;box-shadow:0 1px 0 rgba(15,23,42,.04);
}
.sg-html-toolbar-sep{width:1px;align-self:stretch;background:#e4e2ef;margin:2px 4px;}
.sg-html-tool{
  min-width:32px;height:30px;padding:0 8px;border-radius:8px;border:1px solid transparent;
  background:transparent;font:inherit;font-size:12px;font-weight:700;color:var(--ink);cursor:pointer;
}
.sg-html-tool:hover{background:#fff;border-color:var(--border);}
.sg-html-tool.is-bold{font-weight:800;}
.sg-html-tool.is-italic{font-style:italic;}
.sg-html-tool.is-underline{text-decoration:underline;}
.sg-html-surface{
  min-height:240px;max-height:none;overflow:visible;padding:14px 16px;
  font-size:14px;line-height:1.65;color:var(--ink);outline:none;
}
.sg-html-surface h1{font-size:1.55em;font-weight:800;margin:0 0 .5em;}
.sg-html-surface h2{font-size:1.35em;font-weight:800;margin:1em 0 .4em;}
.sg-html-surface h3{font-size:1.18em;font-weight:750;margin:1em 0 .35em;}
.sg-html-surface h4{font-size:1.05em;font-weight:700;margin:.9em 0 .3em;}
.sg-html-surface p{margin:0 0 .75em;}
.sg-html-surface blockquote{
  margin:.8em 0;padding:.55em .9em;border-left:3px solid var(--accent);
  background:#f6f3ff;color:#4338a0;border-radius:0 10px 10px 0;
}
.sg-html-surface ul{margin:0 0 .75em;padding-left:1.2em;}
.sg-html-surface a{color:var(--accent);}
.ob-card-top{display:flex;align-items:flex-start;gap:10px;margin-bottom:28px;}
.ob-card-top .ob-progress{flex:1;margin-bottom:0;min-width:0;}
.ob-quit-btn{
  flex:none;margin-top:2px;padding:7px 12px;border-radius:10px;
  border:1.5px solid var(--border);background:#fff;color:var(--muted);
  font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;transition:.15s;
}
.ob-quit-btn:hover{background:#f7f6fb;color:var(--ink);}
.ob-quit-overlay{
  position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;
  padding:20px;background:rgba(15,12,40,.45);
}
.ob-quit-dialog{
  width:min(400px,100%);background:#fff;border-radius:20px;padding:24px 22px 18px;
  box-shadow:0 28px 60px rgba(0,0,0,.28);
}
.ob-quit-dialog h3{margin:0 0 8px;font-family:var(--display);font-size:18px;font-weight:800;}
.ob-quit-dialog p{margin:0 0 18px;font-size:14px;line-height:1.5;color:var(--muted);}
.ob-quit-actions{display:flex;flex-direction:column;gap:8px;}
.ob-quit-actions .ob-btn-primary,.ob-quit-actions .ob-btn-ghost{width:100%;justify-content:center;}
.ob-quit-cancel{border-style:dashed;}
.sg-review-done{grid-column:1/-1;text-align:center;padding:56px 40px;display:flex;flex-direction:column;align-items:center;gap:8px;}
.sg-review-done img{width:140px;height:auto;margin-bottom:8px;}
.sg-review-done h2{font-family:var(--display);font-size:26px;font-weight:800;margin:0;}
.sg-review-done p{font-size:15px;color:var(--muted);margin:0 0 18px;max-width:380px;line-height:1.5;}

/* ---------- Interviews ---------- */
.sg-iv-intro{display:flex;align-items:center;gap:18px;padding:18px 22px;background:linear-gradient(120deg,rgba(98,51,246,.07),rgba(98,51,246,.02));border:1px solid rgba(98,51,246,.16);border-radius:var(--radius-sm);}
.sg-iv-intro img{width:64px;height:64px;border-radius:50%;object-fit:cover;object-position:center top;background:#ede9fe;flex-shrink:0;}
.sg-iv-intro-title{font-family:var(--display);font-size:17px;font-weight:800;margin:0 0 3px;letter-spacing:-.01em;}
.sg-iv-intro-sub{font-size:14px;color:var(--muted);margin:0;line-height:1.5;}
.sg-iv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);}
.sg-iv-card{display:flex;flex-direction:column;gap:11px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:20px;transition:.18s;}
.sg-iv-card:hover{border-color:rgba(98,51,246,.4);box-shadow:0 12px 30px rgba(98,51,246,.1);transform:translateY(-2px);}
.sg-iv-card-title{font-family:var(--display);font-size:18px;font-weight:800;line-height:1.25;letter-spacing:-.01em;margin:0;text-wrap:pretty;}
.sg-iv-card-angle{display:flex;gap:8px;font-size:13.5px;color:var(--muted);line-height:1.5;margin:0;}
.sg-iv-card-angle svg{color:var(--accent);flex-shrink:0;margin-top:2px;}
.sg-iv-card-meta{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted);line-height:1.4;}
.sg-iv-card-meta span{display:flex;gap:8px;}
.sg-iv-card-meta b{color:var(--ink);font-weight:600;font-size:12px;white-space:nowrap;flex-shrink:0;min-width:74px;}
.sg-iv-card-who{display:flex;align-items:center;gap:9px;font-size:13px;color:var(--muted);padding:9px 0;border-top:1px solid #f1f0f7;}
.sg-iv-card-who b{color:var(--ink);font-weight:600;}
.sg-iv-who-ic,.sg-iv-past-ic{width:28px;height:28px;border-radius:9px;background:rgba(98,51,246,.1);color:var(--accent);display:grid;place-items:center;flex-shrink:0;}
.sg-iv-card-foot{margin-top:auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;}
.sg-iv-card-time{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--subtle);font-weight:500;white-space:nowrap;}
.sg-iv-past{display:flex;flex-direction:column;gap:4px;}
.sg-iv-past .sg-iv-past-ic{width:34px;height:34px;border-radius:10px;}

/* Salle d'interview (overlay) */
.sg-iv-room{width:min(720px,100%);max-height:90vh;background:var(--card);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 40px 80px rgba(0,0,0,.4);animation:reviewin .35s cubic-bezier(.16,1,.3,1) both;}
.sg-iv-room-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:26px 30px 0;}
.sg-iv-room-title{font-family:var(--display);font-size:22px;font-weight:800;letter-spacing:-.02em;line-height:1.2;margin:8px 0 0;}
.sg-iv-progress{display:flex;align-items:center;gap:14px;padding:18px 30px 4px;}
.sg-iv-progress-bar{flex:1;height:7px;border-radius:99px;background:#ece9f6;overflow:hidden;}
.sg-iv-progress-bar span{display:block;height:100%;border-radius:99px;background:var(--accent);transition:width .35s cubic-bezier(.16,1,.3,1);}
.sg-iv-progress-lab{font-size:12.5px;font-weight:600;color:var(--muted);white-space:nowrap;}
.sg-iv-qa{padding:18px 30px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;}
.sg-iv-ask{display:flex;gap:13px;align-items:flex-start;}
.sg-iv-ask img{width:46px;height:46px;border-radius:50%;object-fit:cover;object-position:center top;background:#ede9fe;flex-shrink:0;}
.sg-iv-question{font-family:var(--display);font-size:19px;font-weight:700;line-height:1.35;letter-spacing:-.01em;margin:6px 0 0;text-wrap:pretty;}
.sg-iv-answer{width:100%;min-height:150px;resize:vertical;border:1.5px solid var(--border);border-radius:14px;padding:15px 16px;font:inherit;font-size:15px;line-height:1.6;color:var(--ink);background:#fdfdff;transition:.15s;}
.sg-iv-answer:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(98,51,246,.12);}
.sg-iv-answer::placeholder{color:#a7a3bd;}
.sg-iv-hint{display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--subtle);margin:0;}
.sg-iv-hint svg{color:var(--accent);}
.sg-iv-room-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 30px;border-top:1px solid var(--border);background:#faf9fd;}
.sg-iv-foot-count{font-size:13px;color:var(--muted);font-weight:500;}
.sg-iv-writing{text-align:center;padding:54px 40px;display:flex;flex-direction:column;align-items:center;gap:6px;}
.sg-iv-writing-mascot{width:120px;height:auto;margin-bottom:6px;}
.sg-iv-writing h2{font-family:var(--display);font-size:24px;font-weight:800;margin:0;}
.sg-iv-writing p{font-size:14.5px;color:var(--muted);margin:0 0 20px;max-width:380px;line-height:1.5;}
.sg-iv-writing-steps{display:flex;flex-direction:column;gap:10px;align-items:flex-start;}
.sg-iv-writing-steps span{display:flex;align-items:center;gap:9px;font-size:14px;color:var(--subtle);}
.sg-iv-writing-steps span.is-on{color:var(--ink);}
.sg-iv-writing-steps svg{color:var(--accent);}
.sg-spinner.sm{width:14px;height:14px;border-width:2px;border-color:rgba(98,51,246,.25);border-top-color:var(--accent);}
.sg-spinner.lg{width:28px;height:28px;border-width:3px;}
.sg-iv-thinking{display:grid;grid-template-columns:minmax(120px,180px) 1fr;gap:20px;align-items:center;padding:24px;border-radius:20px;background:linear-gradient(135deg,#1e3a8a 0%,#2563eb 48%,#3b82f6 100%);color:#fff;box-shadow:0 16px 40px rgba(37,99,235,.28);}
@media (max-width:640px){.sg-iv-thinking{grid-template-columns:1fr;text-align:center;}}
.sg-iv-thinking-img{display:block;width:100%;max-width:160px;margin:0 auto;filter:drop-shadow(0 12px 28px rgba(0,0,0,.25));}
.sg-iv-thinking-body{display:flex;flex-direction:column;gap:10px;align-items:flex-start;}
@media (max-width:640px){.sg-iv-thinking-body{align-items:center;}}
.sg-iv-thinking-title{font-family:var(--display);font-size:17px;font-weight:700;margin:0;line-height:1.45;}
.sg-iv-thinking-sub{font-size:14px;margin:0;opacity:.9;line-height:1.5;}
.sg-iv-saved-block{margin-bottom:16px;padding:16px;border-radius:16px;background:#F8F7FF;border:1px solid #E8E4FF;}
.sg-iv-theme-pick{padding:16px 18px;border-radius:16px;border:1.5px solid var(--border);margin-bottom:10px;cursor:pointer;transition:border-color .15s,box-shadow .15s;}
.sg-iv-theme-pick.is-selected{border-color:var(--accent);box-shadow:0 0 0 3px rgba(98,51,246,.12);}
.sg-iv-theme-pick h4{font-family:var(--display);font-size:16px;font-weight:700;margin:0 0 6px;}
.sg-iv-theme-pick p{font-size:13px;color:var(--muted);margin:0;line-height:1.45;}
.sg-iv-theme-pick-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.sg-iv-done-actions{display:flex;gap:10px;}
.sg-iv-invite{text-align:left;max-width:100%;margin-top:8px;}
.sg-iv-invite-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:12px;}
.sg-iv-invite-input{flex:1;min-width:200px;padding:10px 12px;font-size:13px;resize:none;min-height:auto;}
.sg-iv-link-opts{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.sg-iv-link-opts .sg-btn-ghost.sm.is-active{background:rgba(98,51,246,.12);color:var(--accent);border-color:var(--accent);}
.sg-iv-wizard-body{padding:20px 30px 8px;overflow-y:auto;flex:1;}
.sg-iv-wizard-panel{margin:0;border:1px solid var(--border);box-shadow:none;}
.sg-iv-success{padding:28px 30px 24px;display:flex;flex-direction:column;gap:20px;}
.sg-iv-success-head{display:flex;gap:18px;align-items:flex-start;}
.sg-iv-success-guy{width:72px;height:auto;flex-shrink:0;}
.sg-iv-success-title{font-family:var(--display);font-size:22px;font-weight:800;margin:6px 0 8px;letter-spacing:-.02em;}
.sg-iv-success-card{background:linear-gradient(135deg,#f8f6ff 0%,#fff 100%);border:1px solid var(--border);border-radius:16px;padding:18px 20px;}
.sg-iv-success-label{display:block;font-size:12px;font-weight:700;color:var(--muted);margin-bottom:8px;text-transform:uppercase;letter-spacing:.06em;}
.sg-iv-success-actions{display:flex;flex-wrap:wrap;gap:10px;padding-top:4px;}

/* ---------- Onglets (Résultats) ---------- */
.sg-tabs{display:flex;gap:4px;background:#f0eef8;border-radius:14px;padding:4px;width:fit-content;}
.sg-tab{display:flex;align-items:center;gap:8px;padding:9px 18px;border-radius:11px;font-size:14px;font-weight:600;color:var(--muted);transition:.15s;}
.sg-tab.is-active{background:#fff;color:var(--accent);box-shadow:0 2px 10px rgba(98,51,246,.1);}
.sg-tab:hover:not(.is-active){color:var(--ink);}

/* ---------- Mots-clés ---------- */
.sg-kw-opps{display:flex;flex-direction:column;gap:16px;}
.sg-kw-opp-head{display:flex;align-items:center;gap:16px;}
.sg-kw-opp-img{width:56px;height:56px;border-radius:50%;object-fit:cover;object-position:center top;background:#ede9fe;flex-shrink:0;}
.sg-kw-opp-title{font-family:var(--display);font-size:16px;font-weight:800;margin:0 0 3px;}
.sg-kw-opp-sub{font-size:13.5px;color:var(--muted);margin:0;line-height:1.4;}
.sg-kw-chips{display:flex;flex-direction:column;gap:8px;}
.sg-kw-chip{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;background:#f7f5ff;border:1px solid rgba(98,51,246,.14);border-radius:12px;}
.sg-kw-chip-info{display:flex;flex-direction:column;gap:3px;min-width:0;}
.sg-kw-chip-kw{font-size:14px;font-weight:600;color:var(--ink);}
.sg-kw-chip-vol{display:flex;align-items:center;gap:5px;font-size:12.5px;color:var(--muted);}
.sg-kw-chip-vol svg{color:var(--accent);}
.sg-kw-thead{display:grid;grid-template-columns:1fr 90px 120px 130px 100px 130px;gap:0 12px;padding:10px 14px;background:#f7f6fb;border-radius:10px;margin-bottom:4px;}
.sg-kw-thead span{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--subtle);}
.sg-kw-list{display:flex;flex-direction:column;}
.sg-kw-row{display:grid;grid-template-columns:1fr 90px 120px 130px 100px 130px;gap:0 12px;align-items:center;padding:11px 14px;border-bottom:1px solid #f1f0f7;transition:.12s;}
.sg-kw-row:last-child{border-bottom:none;}
.sg-kw-row:hover{background:#faf9fd;}
.sg-kw-col-kw{min-width:0;}
.sg-kw-col-num,.sg-kw-col-badge,.sg-kw-col-pos,.sg-kw-col-act{display:flex;align-items:center;}
.sg-kw-col-act{justify-content:flex-end;}
.sg-kw-name{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:500;}
.sg-kw-vol{font-size:14px;font-weight:600;color:var(--ink);}
.sg-star{font-size:16px;color:#d1cfdc;cursor:pointer;transition:.1s;line-height:1;flex-shrink:0;background:none;padding:0;border:none;}
.sg-star.is-fav{color:#f59e0b;}
/* Badges de difficulté et intention */
.sg-badge{display:inline-block;font-size:11.5px;font-weight:600;padding:3px 9px;border-radius:999px;white-space:nowrap;}
.diff-easy{background:#dcfce7;color:#166534;}
.diff-med{background:#fef3c7;color:#92400e;}
.diff-hard{background:#fee2e2;color:#991b1b;}
.intent-info{background:#dbeafe;color:#1e40af;}
.intent-com{background:#ede9fe;color:#5b21b6;}
.intent-tx{background:#d1fae5;color:#065f46;}
/* Couleurs de position */
.sg-pos-top{color:#16a34a;}
.sg-pos-mid{color:#d97706;}
.sg-pos-low{color:#dc2626;}
.sg-pos-none{color:var(--subtle);font-size:13px;}

/* ---------- Concurrents ---------- */
.sg-comp-list{display:flex;flex-direction:column;gap:4px;}
.sg-comp-row{display:flex;align-items:center;gap:16px;padding:12px 8px;border-bottom:1px solid #f1f0f7;}
.sg-comp-row:last-child{border-bottom:none;}
.sg-comp-own{background:#f7f5ff;border-radius:10px;padding:12px 12px;}
.sg-comp-domain-ic{width:36px;height:36px;border-radius:10px;background:#e2e0ef;color:var(--ink);display:grid;place-items:center;font-weight:800;font-size:16px;flex-shrink:0;}
.sg-comp-main{flex:1;min-width:0;}
.sg-comp-domain{font-size:14px;font-weight:600;display:flex;align-items:center;flex-wrap:wrap;gap:4px;}
.sg-comp-stat{display:flex;flex-direction:column;align-items:flex-end;gap:1px;width:100px;flex-shrink:0;}
.sg-comp-stat b{font-family:var(--display);font-size:15px;font-weight:800;}
.sg-comp-stat span{font-size:11px;color:var(--subtle);}
.sg-comp-change{font-size:13px;font-weight:600;width:160px;flex-shrink:0;text-align:right;}
.sg-comp-add{display:flex;gap:10px;margin-top:14px;padding-top:14px;border-top:1px solid var(--border);}
.sg-comp-input{flex:1;padding:10px 14px;border:1.5px solid var(--border);border-radius:12px;font:inherit;font-size:14px;color:var(--ink);transition:.15s;}
.sg-comp-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(98,51,246,.1);}
/* SERP table */
.sg-serp-table{display:flex;flex-direction:column;}
.sg-serp-thead,.sg-serp-row{display:grid;grid-template-columns:1fr 80px 80px 80px 80px;align-items:center;gap:8px;padding:10px 8px;}
.sg-serp-thead{background:#f7f6fb;border-radius:10px;margin-bottom:4px;}
.sg-serp-thead span{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--subtle);text-align:center;}
.sg-serp-thead span.sg-serp-col-kw{text-align:left;}
.sg-serp-row{border-bottom:1px solid #f1f0f7;}
.sg-serp-row:last-child{border-bottom:none;}
.sg-serp-col-kw{font-size:13.5px;font-weight:500;}
.sg-serp-col-pos{text-align:center;font-size:14px;}
.sg-serp-own{font-weight:700;}
.sg-serp-none{color:var(--subtle);}

/* ---------- GSC Table ---------- */
.sg-gsc-thead,.sg-gsc-row{display:grid;grid-template-columns:1fr 80px 110px 70px 100px;align-items:center;gap:8px;padding:10px 12px;}
.sg-gsc-thead{background:#f7f6fb;border-radius:10px;margin-bottom:4px;}
.sg-gsc-thead span{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--subtle);text-align:right;}
.sg-gsc-thead .sg-gsc-col-q{text-align:left;}
.sg-gsc-list{display:flex;flex-direction:column;}
.sg-gsc-row{border-bottom:1px solid #f1f0f7;transition:.12s;}
.sg-gsc-row:last-child{border-bottom:none;}
.sg-gsc-row:hover{background:#faf9fd;}
.sg-gsc-col-q{font-size:13.5px;font-weight:500;}
.sg-gsc-col-n{text-align:right;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;}
.sg-gsc-query{color:var(--ink);}
.sg-gsc-check{display:flex;align-items:center;gap:10px;cursor:pointer;}
.sg-gsc-check input{accent-color:var(--accent);width:15px;height:15px;flex:none;cursor:pointer;}

/* ---------- GSC Properties ---------- */
.sg-gsc-account-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #f1f0f7;}
.sg-gsc-account-id{display:flex;align-items:center;gap:10px;}
.sg-gsc-account-id .ob-gsc-logo{width:34px;height:34px;font-size:16px;flex:none;}
.sg-gsc-account-mail{font-size:13.5px;font-weight:600;color:var(--ink);}
.sg-gsc-properties{display:flex;flex-direction:column;gap:8px;margin-top:10px;}
.sg-gsc-prop{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1.5px solid var(--border);border-radius:12px;cursor:pointer;transition:.12s;}
.sg-gsc-prop:hover{border-color:var(--accent);background:#faf9fd;}
.sg-gsc-prop.is-active{border-color:var(--accent);background:#f6f2ff;}
.sg-gsc-prop.is-locked,.sg-gsc-prop.is-locked:hover{cursor:default;border-color:var(--accent);background:#f6f2ff;}
.sg-gsc-prop input{accent-color:var(--accent);width:16px;height:16px;flex:none;cursor:pointer;}
.sg-gsc-prop-url{font-size:14px;font-weight:600;color:var(--ink);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sg-gsc-prop-perm{font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--subtle);background:#f4f3f8;padding:3px 10px;border-radius:999px;flex:none;}
.sg-gsc-head-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;}
.sg-gsc-head-row .sg-block-title{margin:0;}

/* =========================================
   ONBOARDING
   ========================================= */
.ob-shell{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;}
.ob-bg{position:absolute;inset:0;background:linear-gradient(135deg,#1e1b4b 0%,#3b2fa0 45%,#6233f6 100%);}
.ob-bg::after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse 80% 60% at 60% 40%,rgba(255,255,255,.06),transparent);}
.ob-card{position:relative;z-index:1;width:min(660px,100%);background:#fff;border-radius:28px;padding:38px 42px 34px;box-shadow:0 48px 96px rgba(0,0,0,.35);max-height:90vh;overflow-y:auto;}

/* Progression */
.ob-progress{display:flex;align-items:center;gap:0;margin-bottom:34px;}
.ob-prog-step{display:flex;align-items:center;gap:8px;flex:1;}
.ob-prog-step:last-child{flex:none;}
.ob-prog-step::after{content:"";flex:1;height:2px;background:#e8e7f0;margin:0 6px;border-radius:99px;transition:.3s;}
.ob-prog-step:last-child::after{display:none;}
.ob-prog-step.is-done::after{background:var(--accent);}
.ob-prog-dot{width:28px;height:28px;border-radius:50%;border:2px solid #e8e7f0;background:#fff;display:grid;place-items:center;font-size:12px;font-weight:700;color:var(--subtle);flex-shrink:0;transition:.3s;}
.ob-prog-step.is-done .ob-prog-dot{background:var(--accent);border-color:var(--accent);color:#fff;}
.ob-prog-step.is-current .ob-prog-dot{border-color:var(--accent);color:var(--accent);box-shadow:0 0 0 4px rgba(98,51,246,.15);}
.ob-prog-label{font-size:11.5px;font-weight:600;color:var(--subtle);white-space:nowrap;}
.ob-prog-step.is-current .ob-prog-label,.ob-prog-step.is-done .ob-prog-label{color:var(--accent);}

/* Typo */
.ob-h1{font-family:var(--display);font-size:clamp(24px,3vw,30px);font-weight:800;letter-spacing:-.03em;line-height:1.15;margin:0 0 8px;}
.ob-h2{font-family:var(--display);font-size:22px;font-weight:800;letter-spacing:-.02em;margin:0 0 4px;}
.ob-sub{font-size:15px;color:var(--muted);line-height:1.55;margin:0 0 26px;}

/* Étape 1 : Analyse */
.ob-step-analyse{display:flex;flex-direction:column;}
.ob-analyse-hero{position:relative;display:flex;justify-content:center;margin-bottom:18px;}
.ob-mascot-big{width:130px;height:auto;}
.ob-mascot-sm{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:center top;background:#ede9fe;flex-shrink:0;}
.ob-analyse-bubble{position:absolute;top:8px;right:50%;transform:translateX(80px);background:#fff;border:1.5px solid var(--border);font-size:13px;font-weight:600;padding:8px 13px;border-radius:14px;border-bottom-left-radius:3px;box-shadow:0 8px 20px rgba(0,0,0,.1);white-space:nowrap;animation:bubblein .5s cubic-bezier(.34,1.56,.64,1) both .6s;}
.ob-insights{display:flex;flex-direction:column;gap:10px;margin-bottom:28px;opacity:0;transform:translateY(10px);transition:.4s ease;}
.ob-insights.is-visible{opacity:1;transform:none;}
.ob-insight{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid var(--border);border-radius:14px;background:#faf9fd;}
.ob-insight-main{border-color:rgba(98,51,246,.25);background:linear-gradient(120deg,#f7f5ff,#fff);}
.ob-insight-ic{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;}
.ob-insight-val{font-family:var(--display);font-size:17px;font-weight:800;margin:0 0 2px;letter-spacing:-.01em;}
.ob-insight-lab{font-size:13px;color:var(--muted);margin:0;}

/* Étape 2 : Config */
.ob-step-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:24px;}
.ob-fields{display:flex;flex-direction:column;gap:22px;margin-bottom:28px;}
.ob-field{display:flex;flex-direction:column;gap:4px;}
.ob-field-row{flex-direction:row;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid var(--border);border-radius:14px;background:#faf9fd;}
.ob-label{font-size:14px;font-weight:700;color:var(--ink);margin:0;}
.ob-field-hint{font-size:13px;color:var(--muted);margin:0;}
.ob-seg{display:flex;background:#f2f1f8;border-radius:12px;padding:4px;gap:2px;margin-top:8px;}
.ob-seg-btn{flex:1;padding:9px 12px;border-radius:9px;font-size:13.5px;font-weight:600;color:var(--muted);transition:.15s;}
.ob-seg-btn.is-active{background:#fff;color:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.08);}

.ob-card-wide{width:min(920px,100%);}
.ob-section-label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--subtle);margin:18px 0 10px;}
.ob-personas{display:flex;flex-direction:column;gap:12px;}
.ob-persona{display:flex;gap:12px;padding:14px;border:1px solid var(--border);border-radius:14px;background:#faf9fd;}
.ob-persona-avatar{width:48px;height:48px;border-radius:50%;background:linear-gradient(135deg,#6C5CE7,#7F6CFF);display:grid;place-items:center;font-size:22px;flex-shrink:0;}
.ob-persona-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;}
.ob-persona-name,.ob-persona-desc,.ob-persona-tone{width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:10px;font:inherit;font-size:13.5px;background:#fff;}
.ob-persona-name{font-weight:700;}
.ob-persona-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px;}
.ob-persona-preset{width:34px;height:34px;border-radius:50%;border:2px solid transparent;background:#f2f1f8;font-size:16px;cursor:pointer;}
.ob-persona-preset.is-active{border-color:var(--accent);box-shadow:0 0 0 3px rgba(98,51,246,.15);}

/* Étape Cibles — en-tête bulle + onglets persona + carte persona riche */
.ob-bubble-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;}
.ob-bubble-head .ob-mascot-sm{width:52px;height:52px;border-radius:50%;flex-shrink:0;}
.ob-bubble{flex:1;background:#f3f1fb;border:1px solid rgba(98,51,246,.12);border-radius:16px;padding:14px 18px;}
.ob-bubble-title{font-family:var(--display);font-size:18px;font-weight:800;margin:0 0 4px;color:var(--ink);}
.ob-bubble-sub{font-size:13.5px;color:var(--muted);margin:0;line-height:1.5;}
.ob-persona-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px;}
.ob-persona-tab{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1.5px solid var(--border);border-radius:13px;background:#fff;font:inherit;font-size:13.5px;font-weight:600;color:var(--muted);cursor:pointer;transition:.15s;}
.ob-persona-tab:hover{border-color:rgba(98,51,246,.4);}
.ob-persona-tab.is-active{border-color:var(--accent);background:rgba(98,51,246,.07);color:var(--accent);box-shadow:0 0 0 1px var(--accent);}
.ob-persona-tab-emoji{font-size:16px;line-height:1;}
.ob-persona-tab-add{color:var(--accent);border-style:dashed;border-color:rgba(98,51,246,.45);}
.ob-persona-card{background:#f8f7fc;border:1px solid var(--border);border-radius:18px;padding:20px 22px;margin-bottom:18px;}
.ob-persona-card-head{display:flex;align-items:flex-start;gap:14px;margin-bottom:18px;}
.ob-persona-avatar-block{flex-shrink:0;display:flex;flex-direction:column;align-items:center;gap:8px;}
.ob-persona-card-avatar{width:100px;height:100px;border-radius:16px;background:linear-gradient(135deg,#ede9fe,#dbeafe);display:grid;place-items:center;flex-shrink:0;overflow:hidden;}
.ob-persona-card-avatar--photo{border:2px solid rgba(98,51,246,.2);}
.ob-persona-avatar-img{width:100%;height:100%;object-fit:cover;display:block;}
.ob-persona-avatar-initials{font-family:var(--display);font-size:28px;font-weight:800;color:var(--accent);}
.ob-persona-avatar-actions{display:flex;flex-direction:column;gap:4px;width:100px;}
.ob-persona-avatar-btn{font:inherit;font-size:11px;font-weight:600;color:var(--accent);background:#fff;border:1px solid rgba(98,51,246,.25);border-radius:8px;padding:5px 6px;cursor:pointer;line-height:1.2;}
.ob-persona-avatar-btn:hover{background:rgba(98,51,246,.06);}
.ob-persona-avatar-btn:disabled{opacity:.55;cursor:default;}
.ob-persona-avatar-btn--muted{color:var(--muted);border-color:var(--border);}
.ob-error-inline{font-size:11px;padding:6px 8px;margin-top:4px;}
.ob-persona-tab-photo{width:22px;height:22px;border-radius:50%;object-fit:cover;}
.ob-persona-tab-initials{width:22px;height:22px;border-radius:50%;background:rgba(98,51,246,.12);color:var(--accent);font-size:11px;font-weight:700;display:grid;place-items:center;}
.ob-persona-card-id{flex:1;min-width:0;}
.ob-persona-eyebrow{display:block;font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--subtle);margin-bottom:2px;}
.ob-persona-card-name{width:100%;border:none;background:none;font-family:var(--display);font-size:21px;font-weight:800;color:var(--ink);padding:2px 0;outline:none;}
.ob-persona-card-name:focus{border-bottom:2px solid var(--accent);}
.ob-persona-card-presets{display:flex;gap:5px;flex-shrink:0;}
.ob-persona-card-remove{flex-shrink:0;width:30px;height:30px;border-radius:9px;border:1px solid var(--border);background:#fff;color:var(--muted);cursor:pointer;}
.ob-persona-card-remove:hover{background:#fef2f2;color:#b91c1c;border-color:#fecaca;}
.ob-persona-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.ob-persona-section-head .ob-section-label{margin:0;}
.ob-persona-regen{display:inline-flex;align-items:center;gap:5px;font:inherit;font-size:12px;font-weight:600;color:var(--accent);background:rgba(98,51,246,.1);border:none;border-radius:999px;padding:6px 12px;cursor:pointer;transition:.15s;}
.ob-persona-regen:hover{background:rgba(98,51,246,.18);}
.ob-persona-regen:disabled{opacity:.65;cursor:default;}
.ob-persona-textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:12px 14px;font:inherit;font-size:13.5px;line-height:1.55;background:#fff;resize:vertical;min-height:64px;margin-top:8px;}
.ob-persona-textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(98,51,246,.12);}
.ob-persona-interests{display:flex;flex-wrap:wrap;gap:8px;}
.ob-interest-chip{padding:8px 14px;border:1.5px solid var(--border);border-radius:999px;background:#fff;font:inherit;font-size:13px;color:var(--muted);cursor:pointer;transition:.15s;}
.ob-interest-chip:hover{border-color:rgba(98,51,246,.4);}
.ob-interest-chip.is-on{border-color:var(--accent);background:rgba(98,51,246,.1);color:var(--accent);font-weight:600;}
.ob-tone-seg{display:flex;background:#ece9f6;border-radius:13px;padding:4px;gap:3px;}
.ob-tone-seg-btn{flex:1;padding:10px 12px;border-radius:10px;font:inherit;font-size:13.5px;font-weight:600;color:var(--muted);background:none;border:none;cursor:pointer;transition:.15s;}
.ob-tone-seg-btn.is-on{background:#fff;color:var(--accent);box-shadow:0 2px 8px rgba(0,0,0,.1);}
.ob-foot-counter{font-size:13px;font-weight:600;color:var(--subtle);}
.ob-foot-3{justify-content:space-between;}
.ob-foot-3 .ob-btn-back{margin-right:0;}
.ob-plan-toggle{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;margin:8px 0 14px;font-size:13px;font-weight:600;color:var(--muted);direction:ltr;}
.ob-plan-toggle button{padding:6px 14px;border-radius:999px;border:none;background:none;font:inherit;color:inherit;cursor:pointer;}
.ob-plan-toggle button.is-active{background:rgba(98,51,246,.12);color:var(--accent);}
.ob-plan-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;}
@media(min-width:760px){.ob-plan-grid{grid-template-columns:repeat(4,1fr);}}
.ob-plan-card{position:relative;text-align:left;padding:14px 12px;border:1.5px solid var(--border);border-radius:14px;background:#fff;cursor:pointer;transition:.15s;}
.ob-plan-card:hover{box-shadow:0 4px 16px rgba(0,0,0,.06);}
.ob-plan-card.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);}
.ob-plan-card.is-highlighted{border-color:rgba(98,51,246,.35);}
.ob-plan-badge{position:absolute;top:-9px;right:8px;background:var(--accent);color:#fff;font-size:10px;font-weight:700;padding:3px 8px;border-radius:999px;}
.ob-plan-name{font-size:13px;font-weight:800;margin:0 0 4px;}
.ob-plan-tag{font-size:11px;color:var(--muted);margin:0 0 8px;line-height:1.35;}
.ob-plan-price{font-family:var(--display);font-size:20px;font-weight:800;margin:0;}
.ob-plan-period{font-size:11px;color:var(--muted);font-weight:600;}
.ob-plan-highlights{margin:8px 0 0;padding:0;list-style:none;font-size:10.5px;color:var(--muted);line-height:1.4;}
.ob-plan-highlights li::before{content:"✓ ";color:#10b981;font-weight:700;}
.ob-plan-intro{font-size:13px;color:var(--muted);line-height:1.5;margin:0 0 12px;}
.ob-plan-kpi{font-size:12.5px;margin:4px 0;display:flex;align-items:center;gap:6px;color:var(--ink);}
.ob-plan-billing{font-size:11px;color:var(--muted);margin:6px 0 0;}
.ob-plan-save{color:var(--accent);font-weight:700;}
.ob-plan-card-wrap{display:flex;flex-direction:column;gap:6px;}
.ob-plan-detail-btn{font-size:11px;color:var(--accent);background:none;border:none;cursor:pointer;text-align:left;padding:0 4px;}
.ob-plan-features{list-style:none;margin:0;padding:8px 10px;background:#f7f5ff;border-radius:10px;font-size:11px;}
.ob-plan-features li{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-bottom:1px solid rgba(98,51,246,.08);}
.ob-plan-features li:last-child{border-bottom:none;}
.ob-plan-selected-note{font-size:12px;color:var(--muted);margin-top:10px;padding:10px 12px;background:#faf9fd;border-radius:10px;}
.ob-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.ob-summary-regen{display:inline-flex;align-items:center;gap:6px;font:inherit;font-size:12px;font-weight:600;color:var(--accent);background:none;border:none;cursor:pointer;padding:0;}
.ob-summary-regen:hover{text-decoration:underline;}
.ob-summary-wrap{margin-bottom:4px;}
.ob-summary-wrap .ob-field-hint{margin-top:6px;}
.ob-products .ob-field-hint{margin-top:2px;}
.ob-summary-textarea{width:100%;border:1px solid var(--border);border-radius:12px;padding:12px 14px;font:inherit;font-size:13.5px;line-height:1.55;background:#fff;resize:vertical;min-height:88px;}
.ob-summary-textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(98,51,246,.12);}
.ob-summary-loading{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding:14px;border:1px dashed var(--border);border-radius:12px;background:#faf9fd;}
.ob-products{display:flex;flex-direction:column;gap:10px;}
.ob-product-chips{display:flex;flex-wrap:wrap;gap:8px;}
.ob-product-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1.5px solid var(--border);border-radius:999px;background:#fff;font:inherit;font-size:13px;color:var(--muted);cursor:pointer;transition:.15s;}
.ob-product-chip:hover{border-color:rgba(98,51,246,.4);}
.ob-product-chip.is-on{border-color:var(--accent);background:rgba(98,51,246,.08);color:var(--ink);font-weight:600;}
.ob-product-chip svg{color:var(--accent);}
.ob-product-manual{display:flex;align-items:center;gap:8px;width:100%;}
.ob-product-manual .ob-persona-name{flex:0 0 38%;}
.ob-product-manual .ob-persona-desc{flex:1;}
.ob-product-remove{flex-shrink:0;width:32px;height:32px;border-radius:9px;border:1px solid var(--border);background:#fff;color:var(--muted);cursor:pointer;}
.ob-product-remove:hover{background:#fef2f2;color:#b91c1c;border-color:#fecaca;}
.ob-product-add{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:13px;font-weight:600;color:var(--accent);background:none;border:1.5px dashed rgba(98,51,246,.4);border-radius:11px;padding:9px 14px;cursor:pointer;}
.ob-product-add:hover{background:rgba(98,51,246,.06);}
.ob-art-preview--skeleton{display:flex;flex-direction:column;gap:10px;}
.ob-skel-line{height:14px;border-radius:7px;background:linear-gradient(90deg,#f0eef8 25%,#e6e3f3 37%,#f0eef8 63%);background-size:400% 100%;animation:obskel 1.4s ease infinite;}
.ob-skel-line.lg{height:20px;width:80%;}
.ob-skel-line.sm{width:55%;}
@keyframes obskel{0%{background-position:100% 50%}100%{background-position:0 50%}}
.ob-error{padding:10px 12px;border-radius:10px;background:#fef2f2;color:#b91c1c;font-size:13px;margin-bottom:12px;}
.ob-gsc-note.ok{background:#d1fae5;color:#065f46;padding:10px 12px;border-radius:10px;font-size:13px;margin-bottom:12px;}
.ob-foot-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.ob-btn-back{margin-right:auto;}
.ob-gsc-modal-overlay{position:fixed;inset:0;background:rgba(15,12,40,.55);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;}
.ob-gsc-modal{background:#fff;border-radius:20px;padding:24px;max-width:440px;width:100%;box-shadow:0 24px 64px rgba(0,0,0,.25);}
.ob-gsc-modal-close{position:absolute;top:14px;right:14px;border:none;background:none;font-size:18px;cursor:pointer;}
.ob-gsc-modal{position:relative;}
.ob-gsc-modal-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px;}
.ob-gsc-modal-head h3{margin:0 0 6px;font-size:18px;}
.ob-gsc-modal-head p{margin:0;font-size:13px;color:var(--muted);line-height:1.45;}
.ob-gsc-modal-actions{display:flex;flex-direction:column;gap:10px;}
.sg-review-body-html{font-size:14px;line-height:1.65;color:var(--ink);max-height:none;overflow:visible;padding-right:4px;}
.sg-review-body-html h2,.sg-review-body-html h3,.sg-review-body-html h4{font-weight:700;margin:14px 0 8px;}
.sg-review-body-html h2{font-size:1.25em;}
.sg-review-body-html h3{font-size:1.12em;}
.sg-review-body-html h4{font-size:1.02em;}
.sg-review-hero-img{width:100%;border-radius:12px;margin:0;aspect-ratio:16/9;object-fit:contain;background:#fff;display:block;}
.sg-review-editor{width:100%;min-height:280px;font:inherit;font-size:14px;line-height:1.55;padding:12px;border:1px solid var(--border);border-radius:12px;resize:vertical;}
.sg-review-title-input{width:100%;font:inherit;font-size:20px;font-weight:800;border:none;border-bottom:2px solid var(--border);margin-bottom:12px;padding:8px 0;}
.sg-review-schedule{
  display:grid;grid-template-columns:1fr 1fr;gap:6px;align-items:center;
  padding:8px;background:#f6f5fb;border-radius:10px;
}
.sg-review-schedule input{
  min-width:0;width:100%;box-sizing:border-box;
  padding:6px 8px;border:1px solid var(--border);border-radius:8px;font:inherit;font-size:12px;
}
.sg-review-schedule .sg-btn-primary{
  grid-column:1 / -1;width:100%;justify-content:center;
}
.sg-review-error{color:#b91c1c;font-size:13px;margin-top:8px;}
.sg-review-loading{font-size:13px;color:var(--muted);}

/* Étape 3 : GSC */
.ob-gsc-logo{width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,#4285F4,#34A853);color:#fff;font-size:26px;font-weight:900;display:grid;place-items:center;flex-shrink:0;}
.ob-gsc-benefits{display:flex;flex-direction:column;gap:12px;margin-bottom:18px;}
.ob-benefit{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:12px;background:#f7f5ff;}
.ob-benefit-ic{width:32px;height:32px;border-radius:9px;background:rgba(98,51,246,.12);color:var(--accent);display:grid;place-items:center;flex-shrink:0;}
.ob-benefit p{font-size:13.5px;color:var(--ink);line-height:1.45;margin:0;margin-top:6px;}
.ob-gsc-note{display:flex;align-items:center;gap:9px;padding:12px 14px;background:#fef3c7;border-radius:12px;font-size:13px;color:#92400e;margin-bottom:26px;}
.ob-gsc-note svg{color:#d97706;flex-shrink:0;}

/* Étape 4 : Premier article */
.ob-step-finale{text-align:center;}
.ob-finale-mascot{display:flex;justify-content:center;margin-bottom:12px;}
.ob-art-preview{background:#faf9fd;border:1.5px solid rgba(98,51,246,.2);border-radius:18px;padding:20px;margin:0 0 26px;text-align:left;}
.ob-art-title{font-family:var(--display);font-size:18px;font-weight:800;line-height:1.25;margin:10px 0 12px;letter-spacing:-.01em;}
.ob-art-meta{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px;color:var(--muted);margin-bottom:14px;}
.ob-art-meta b{color:var(--ink);font-weight:600;font-size:12px;margin-right:4px;}
.ob-art-score{display:flex;align-items:center;gap:14px;padding:12px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);margin-bottom:12px;}
.ob-score-label{font-size:12px;color:var(--subtle);margin:0;}
.ob-score-val{font-family:var(--display);font-size:16px;font-weight:800;color:#2563eb;margin:3px 0 0;}
.ob-art-intro{font-size:14px;color:var(--muted);line-height:1.6;margin:0;}
.ob-foot-finale{justify-content:center;}

/* Footer nav */
.ob-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:4px;flex-wrap:wrap;}
.ob-btn-primary{display:inline-flex;align-items:center;gap:8px;font-family:inherit;font-size:15px;font-weight:700;padding:13px 24px;background:var(--accent);color:#fff;border-radius:14px;cursor:pointer;transition:.15s;box-shadow:0 8px 22px rgba(98,51,246,.32);border:none;}
.ob-btn-primary:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(98,51,246,.4);}
.ob-btn-primary.lg{padding:15px 28px;font-size:16px;}
.ob-btn-ghost{display:inline-flex;align-items:center;gap:7px;font-family:inherit;font-size:14px;font-weight:600;padding:11px 18px;background:none;color:var(--muted);border:1.5px solid var(--border);border-radius:13px;cursor:pointer;transition:.15s;}
.ob-btn-ghost:hover{background:#f7f6fb;color:var(--ink);}

/* Bandeau de reprise */
.ob-resume{display:flex;align-items:center;gap:14px;padding:16px 22px;background:linear-gradient(120deg,#faf8ff,#fff);border:1.5px solid rgba(98,51,246,.22);border-radius:var(--radius-sm);box-shadow:0 2px 12px rgba(98,51,246,.08);}
.ob-resume-ic{width:36px;height:36px;border-radius:10px;background:rgba(98,51,246,.1);color:var(--accent);display:grid;place-items:center;flex-shrink:0;}
.ob-resume-txt{flex:1;font-size:14px;color:var(--muted);}
.ob-resume-txt b{color:var(--ink);}

/* ---------- Articles à valider (cartes) ---------- */
.sg-art-validate{display:flex;flex-direction:column;gap:16px;}
.sg-art-validate-head{display:flex;align-items:center;justify-content:space-between;gap:16px;}
.sg-art-validate-title-row{display:flex;align-items:center;gap:14px;}
.sg-art-validate-img{width:52px;height:52px;border-radius:50%;object-fit:cover;object-position:center top;background:#ede9fe;flex-shrink:0;}
.sg-art-validate-sub{font-size:13.5px;color:var(--muted);margin:3px 0 0;}
.sg-art-cards{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--gap);}
.sg-art-card{
  display:flex;flex-direction:column;gap:12px;
  background:#fff;
  border:1.5px solid rgba(98,51,246,.22);
  border-radius:var(--radius-sm);padding:20px;
  text-align:left;
  box-shadow:0 2px 14px rgba(98,51,246,.08);
  transition:.18s;position:relative;
}
.sg-art-card:not(.is-generating):hover{border-color:rgba(98,51,246,.55);box-shadow:0 14px 36px rgba(98,51,246,.14);transform:translateY(-2px);}
.sg-art-card.is-generating{align-items:center;justify-content:center;min-height:220px;background:linear-gradient(180deg,#faf9fd,#fff);}
.sg-art-card.is-pepite{
  padding-top:0;
  border-color:rgba(98,51,246,.45);
  box-shadow:0 16px 44px rgba(98,51,246,.16);
  background:linear-gradient(180deg,#faf8ff 0%,#fff 130px);
}
.sg-pepite-banner{
  display:flex;align-items:center;justify-content:center;
  margin:-1px -1px 6px;
  padding:11px 16px;
  border-radius:var(--radius-sm) var(--radius-sm) 0 0;
  background:linear-gradient(115deg,#4f2bd0 0%,#6233f6 35%,#9333ea 70%,#7c3aed 100%);
  color:#fff;
  position:relative;overflow:hidden;
}
.sg-pepite-banner::before{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(circle at 12% 50%,rgba(255,255,255,.22) 0,transparent 45%),
    repeating-linear-gradient(-55deg,transparent,transparent 7px,rgba(255,255,255,.05) 7px,rgba(255,255,255,.05) 14px);
  pointer-events:none;
}
.sg-pepite-banner span{
  position:relative;z-index:1;
  display:inline-flex;align-items:center;gap:7px;
  font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;
  text-shadow:0 1px 2px rgba(0,0,0,.15);
}
.sg-next.is-pepite-home{
  border-color:rgba(98,51,246,.4);
  box-shadow:0 20px 50px rgba(98,51,246,.14);
}
.sg-pepite-banner-home{
  margin:0 0 10px;
  border-radius:12px;
  align-self:flex-start;
  min-width:min(100%,320px);
}
.sg-art-empty-proposals{
  display:flex;flex-direction:column;align-items:flex-start;gap:12px;
  padding:20px 22px;
}
.sg-guy-thinking{display:flex;align-items:center;gap:14px;text-align:left;}
.sg-guy-thinking.is-block{flex-direction:column;text-align:center;padding:28px 20px;margin:12px 0;background:linear-gradient(180deg,rgba(98,51,246,.06),transparent);border-radius:16px;border:1px solid rgba(98,51,246,.12);}
.sg-guy-thinking.is-compact{flex-direction:column;text-align:center;gap:10px;padding:8px 0;}
.sg-guy-thinking-img{width:88px;height:auto;flex-shrink:0;animation:guypulse 2.4s ease-in-out infinite;}
.sg-guy-thinking.is-block .sg-guy-thinking-img{width:120px;}
.sg-guy-thinking.is-compact .sg-guy-thinking-img{width:72px;}
.sg-guy-thinking-img.is-xs{width:48px;}
@keyframes guypulse{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
.sg-guy-thinking-title{font-family:var(--display);font-size:17px;font-weight:800;margin:0 0 4px;letter-spacing:-.02em;}
.sg-guy-thinking.is-compact .sg-guy-thinking-title{font-size:15px;}
.sg-guy-thinking-sub{font-size:13px;color:var(--muted);margin:0 0 8px;line-height:1.45;}
.sg-guy-thinking-status{display:flex;align-items:center;justify-content:center;gap:8px;font-size:12.5px;color:var(--subtle);margin:0;}
.sg-art-card-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;}
.sg-art-card-title{font-family:var(--display);font-size:17px;font-weight:800;line-height:1.25;letter-spacing:-.01em;margin:0;text-wrap:pretty;color:var(--ink);}
.sg-art-card-meta{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--muted);}
.sg-art-card-meta span{display:flex;gap:6px;}
.sg-art-card-meta b{color:var(--ink);font-weight:600;font-size:11.5px;min-width:60px;flex-shrink:0;}
.sg-art-card-angle{display:flex;align-items:flex-start;gap:7px;font-size:13px;color:var(--muted);line-height:1.5;margin:0;padding:10px 12px;background:#f3effe;border-radius:10px;}
.sg-art-card-angle svg{color:var(--accent);flex-shrink:0;margin-top:1px;}
.sg-art-card-cta{margin-top:auto;padding-top:4px;display:flex;flex-direction:column;gap:8px;}
.sg-art-card-cta .sg-btn-primary{width:100%;justify-content:center;}
.sg-art-cover{display:flex;flex-direction:column;gap:6px;width:100%;}
.sg-art-card-cover{width:100%;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#f3effe;}
.sg-art-card-cover img{width:100%;height:100%;object-fit:cover;display:block;}
.sg-art-cover-btn{width:100%;justify-content:center;cursor:pointer;}
.sg-art-cover-btn.is-busy{pointer-events:none;opacity:.7;}
.sg-art-cover-hint{font-size:11.5px;color:var(--subtle);line-height:1.4;margin:0;}
.sg-review-cover-hint{margin:-4px 0 12px;}
.sg-row-action{display:flex;flex-direction:column;align-items:stretch;gap:8px;}

/* ---------- Densité compacte ---------- */
.sg-app[data-density="compact"]{--pad:20px;--gap:14px;--radius:18px;}
.sg-app[data-density="compact"] .sg-kpi{padding:15px;}
.sg-app[data-density="compact"] .sg-next-body{padding:20px 22px;}
.sg-app[data-density="compact"] .sg-next{min-height:0;}

/* ---------- Responsive ---------- */
/* ---------- SEO GUY Web V2 extensions ---------- */
.sg-nav-section{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.1em;color:var(--subtle);padding:14px 13px 6px;margin:0;}
.sg-nav-item--sub{font-size:13.5px;padding:9px 13px;}
.sg-side-shop-btn{width:100%;text-align:left;border:none;background:none;cursor:pointer;border-radius:12px;padding:4px;}
.sg-side-shop-btn:hover{background:#f2f1f8;}
.sg-pagehead-aside{display:flex;flex-direction:column;align-items:flex-end;gap:10px;}
.sg-hero-band{
  display:grid;grid-template-columns:1fr minmax(160px,220px);gap:24px;align-items:center;
  width:100%;max-width:var(--content-max);margin:0 auto var(--gap);
  padding:24px 28px;border-radius:var(--radius);
  background:linear-gradient(125deg,#F8F7FF 0%,#FFFFFF 42%,#FAFAFC 100%);
  border:1px solid #E8E4FF;box-shadow:var(--shadow);
}
.sg-hero-eyebrow{font-size:11px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin:0 0 6px;}
.sg-hero-title{font-family:var(--display);font-size:clamp(20px,2.5vw,26px);font-weight:800;margin:0 0 8px;letter-spacing:-.02em;}
.sg-hero-tip{font-size:14px;line-height:1.55;color:var(--muted);margin:0;max-width:52ch;}
.sg-hero-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;}
.sg-hero-pill{font-size:12px;font-weight:600;padding:6px 12px;border-radius:999px;background:#F4F3F8;border:1px solid #E2E8F0;color:#475569;}
.sg-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px;}
.sg-hero-guy{display:flex;align-items:center;justify-content:center;}
.sg-hero-guy-img{max-width:200px;max-height:180px;object-fit:contain;filter:drop-shadow(0 14px 28px rgba(98,51,246,.15));}
.sg-alerts{display:flex;flex-direction:column;gap:8px;margin-bottom:16px;}
.sg-alert{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-radius:12px;font-size:14px;border:1px solid transparent;cursor:pointer;width:100%;text-align:left;}
.sg-alert.is-success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46;}
.sg-alert.is-info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af;}
.sg-alert.is-warning{background:#fffbeb;border-color:#fde68a;color:#92400e;}
.sg-toolbar-inline{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px;}
.sg-kpi-emoji{font-size:22px;display:grid;place-items:center;width:44px;height:44px;background:#f7f5ff;border-radius:13px;}
.sg-assistant-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);}
.sg-assistant-grid.is-2{grid-template-columns:repeat(2,1fr);}
.sg-assistant-grid.is-1{grid-template-columns:1fr;}
.sg-assistant-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:22px;display:flex;flex-direction:column;gap:12px;}
.sg-assistant-ic{width:44px;height:44px;border-radius:12px;background:rgba(98,51,246,.1);color:var(--accent);display:grid;place-items:center;}
.sg-assistant-card h3{font-family:var(--display);font-size:17px;margin:0;}
.sg-assistant-card p{font-size:14px;color:var(--muted);line-height:1.5;margin:0;flex:1;}

/* ---- Assistants Premium (hub enrichi) ---- */
.sg-assistant-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:var(--gap);}
.sg-assistant-stat{display:flex;align-items:flex-start;gap:12px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:16px 18px;box-shadow:var(--shadow);}
.sg-assistant-stat-ic{width:38px;height:38px;flex-shrink:0;border-radius:11px;background:rgba(98,51,246,.1);color:var(--accent);display:grid;place-items:center;}
.sg-assistant-stat-val{font-family:var(--display);font-size:22px;font-weight:800;letter-spacing:-.02em;margin:0;line-height:1.1;}
.sg-assistant-stat-lab{font-size:13px;font-weight:600;color:var(--ink);margin:2px 0 0;}
.sg-assistant-stat-hint{font-size:12px;color:var(--subtle);margin:1px 0 0;}
.sg-assistant-card.is-rich{gap:14px;padding:24px;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;}
.sg-assistant-card.is-rich:hover{transform:translateY(-3px);border-color:rgba(98,51,246,.4);box-shadow:0 16px 40px rgba(98,51,246,.12);}
.sg-assistant-head{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.sg-assistant-card.is-rich h3{font-size:18px;}
.sg-assistant-desc{font-size:13.5px;color:var(--muted);line-height:1.55;margin:0;}
.sg-assistant-desc strong{color:var(--ink);font-weight:700;}
.sg-assistant-bullets{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;flex:1;}
.sg-assistant-bullets li{display:flex;align-items:flex-start;gap:8px;font-size:13px;color:var(--ink);line-height:1.4;}
.sg-assistant-bullets li svg{flex-shrink:0;margin-top:1px;color:#16a34a;}
.sg-assistant-cta{width:100%;justify-content:center;margin-top:4px;}
.sg-assistant-footnote{font-size:12.5px;color:var(--subtle);margin:18px 2px 0;line-height:1.5;}

/* ---- Segments & personas (même langage visuel que le hub) ---- */
.sg-screen-assistants .sg-pagehead{margin-bottom:var(--gap);}
.sg-assistant-ic.has-photo{padding:0;overflow:hidden;}
.sg-assistant-ic.has-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.sg-seg-add-card{
  border-style:dashed;
  border-color:rgba(98,51,246,.32);
  background:linear-gradient(160deg,#faf8ff 0%,#fff 55%);
}
.sg-seg-add-card:not(.is-disabled):hover{
  border-color:rgba(98,51,246,.5);
  background:linear-gradient(160deg,#f3efff 0%,#fff 55%);
}
.sg-seg-add-card.is-disabled{
  opacity:.78;
  cursor:default;
}
.sg-seg-add-card.is-disabled:hover{
  transform:none;
  box-shadow:var(--shadow);
  border-color:rgba(98,51,246,.32);
}
.sg-seg-back{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:20px;
  font:inherit;
  font-size:13.5px;
  font-weight:600;
  color:var(--muted);
  background:none;
  border:none;
  padding:0;
  cursor:pointer;
  transition:color .15s;
}
.sg-seg-back:hover{color:var(--accent);}
.sg-editorial-timeline{display:flex;flex-direction:column;gap:12px;}
.sg-editorial-timeline--funnel{max-height:42vh;overflow-y:auto;padding-right:4px;}
.sg-editorial-entry{
  display:grid;grid-template-columns:minmax(108px,132px) minmax(0,1fr);gap:16px 20px;
  padding:16px 18px;border-radius:16px;
  background:linear-gradient(135deg,#F8F7FF 0%,#FFFFFF 72%);border:1px solid #E8E4FF;
}
.sg-editorial-entry-aside{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0;}
.sg-editorial-entry-body{display:flex;flex-direction:column;gap:8px;min-width:0;}
.sg-editorial-week{
  display:inline-flex;align-items:center;font-size:12px;font-weight:700;color:var(--accent);
  background:rgba(98,51,246,.1);padding:6px 12px;border-radius:999px;line-height:1.2;
}
.sg-editorial-date{font-size:12px;color:var(--subtle);line-height:1.35;word-break:break-word;}
.sg-editorial-title{margin:0;font-size:16px;font-weight:700;line-height:1.35;color:var(--ink);}
.sg-editorial-tags{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.sg-editorial-format{
  display:inline-flex;align-items:center;font-size:11px;font-weight:700;padding:4px 10px;border-radius:999px;
  background:rgba(14,165,233,.12);color:#0369a1;text-transform:lowercase;
}
.sg-editorial-format.is-itw{background:rgba(245,158,11,.15);color:#b45309;}
.sg-editorial-kw{
  display:inline-flex;align-items:center;font-size:12px;font-weight:600;padding:4px 10px;border-radius:999px;
  background:#f4f3f8;color:var(--ink);line-height:1.3;word-break:break-word;
}
.sg-editorial-persona{margin:0;font-size:12.5px;color:var(--muted);line-height:1.45;word-break:break-word;}
.sg-editorial-event{
  display:inline-flex;align-items:center;align-self:flex-start;font-size:11px;font-weight:600;
  padding:4px 10px;border-radius:999px;background:rgba(98,51,246,.1);color:var(--accent);line-height:1.3;
}
.sg-editorial-angle{margin:0;font-size:13.5px;color:var(--muted);line-height:1.5;word-break:break-word;}
.sg-editorial-footer{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px;}
.sg-editorial-entry.is-interview{border-color:rgba(245,158,11,.35);background:rgba(245,158,11,.05);}
.sg-plan-funnel{width:min(820px,100%);}
.sg-plan-funnel-context{margin-bottom:14px;padding:12px 14px;border-radius:12px;background:rgba(98,51,246,.06);border:1px solid rgba(98,51,246,.12);}
.sg-plan-funnel-personas{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px;}
.sg-plan-funnel-persona-chip{font-size:12px;padding:6px 10px;border-radius:999px;background:#fff;border:1px solid var(--border);}
.sg-badge.plan-p1{background:#fee2e2;color:#991b1b;}
.sg-liability-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:16px;}
.sg-rhythm-slot-modal{max-width:480px;width:100%;margin:auto;padding:22px 24px;}
.sg-rhythm-modal-section{display:flex;flex-direction:column;gap:8px;margin-top:16px;}
.sg-rhythm-modal-time{display:flex;flex-direction:column;gap:8px;}
.sg-rhythm-modal-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--border);}
.sg-rhythm-modal-actions-right{display:flex;gap:8px;}
.sg-rhythm-modal-delete{color:#b45309!important;}
.sg-rhythm-cell-time{font-size:8px;font-weight:700;line-height:1;color:var(--muted);}
.sg-rhythm-slot-row--compact{grid-template-columns:1fr auto;}
.sg-rhythm-slot-list--compact .sg-rhythm-slot-row--compact{align-items:center;padding:8px 12px;}
.sg-rhythm-slot-summary{
  flex:1;display:flex;align-items:center;gap:10px;min-width:0;padding:0;border:none;background:transparent;
  cursor:pointer;text-align:left;
}
.sg-rhythm-slot-summary:hover .sg-rhythm-slot-summary-text{color:var(--accent);}
.sg-rhythm-slot-summary-text{font-size:13px;color:var(--ink);line-height:1.35;}
.sg-settings-card .sg-set-row{align-items:flex-start;}
.sg-settings-row{flex-wrap:wrap;}
.sg-settings-modes{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.sg-settings-mode{text-align:left;padding:16px 18px;border-radius:14px;border:1px solid var(--border);background:#fff;cursor:pointer;transition:border-color .18s,box-shadow .18s,background .18s;display:flex;flex-direction:column;gap:6px;}
.sg-settings-mode:hover:not(:disabled){border-color:rgba(98,51,246,.35);}
.sg-settings-mode.is-active{border-color:var(--accent);background:rgba(98,51,246,.05);box-shadow:0 0 0 1px rgba(98,51,246,.25);}
.sg-settings-mode:disabled{opacity:.55;cursor:not-allowed;}
.sg-settings-mode-title{font-family:var(--display);font-size:15px;font-weight:700;color:var(--ink);}
.sg-settings-mode-desc{font-size:13px;line-height:1.45;color:var(--muted);margin:0;}
.sg-settings-warn{display:flex;gap:10px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:rgba(245,158,11,.08);border:1px solid rgba(245,158,11,.25);font-size:13px;line-height:1.45;color:var(--ink);}
.sg-settings-warn svg{color:#d97706;flex-shrink:0;margin-top:2px;}
.sg-seg-wrap{flex-wrap:wrap;justify-content:flex-end;max-width:420px;}
.sg-rhythm-section{margin-top:4px;border-radius:14px;border:1px solid var(--border);background:#fafafa;overflow:hidden;}
.sg-rhythm-section-header{padding:4px 0 12px;}
.sg-rhythm-section-trigger{
  display:flex;align-items:flex-start;gap:10px;width:100%;padding:12px 14px 8px;
  border:none;background:transparent;cursor:pointer;text-align:left;
}
.sg-rhythm-section-trigger:hover .sg-rhythm-section-toggle{color:var(--accent);}
.sg-rhythm-section-titles{flex:1;min-width:0;}
.sg-rhythm-section-toggle{
  flex-shrink:0;font-size:13px;font-weight:600;color:var(--muted);padding-top:2px;
}
.sg-rhythm-section.is-open .sg-rhythm-section-header{padding-bottom:4px;border-bottom:1px solid var(--border);margin-bottom:4px;}
.sg-rhythm-section.is-open .sg-rhythm-editor{padding:0 14px 14px;}
.sg-rhythm-summary{display:flex;flex-wrap:wrap;gap:6px;padding:0 14px 4px 38px;}
.sg-rhythm-summary-empty{padding:0 14px 4px 38px;margin:0;}
.sg-rhythm-chip{
  display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border-radius:999px;
  font-size:12px;font-weight:600;color:var(--accent);background:rgba(98,51,246,.1);
  border:1px solid rgba(98,51,246,.18);
}
.sg-rhythm-chip.is-interview{color:#b45309;background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.35);}
.sg-rhythm-chip-kind{font-size:10px;font-weight:800;letter-spacing:.03em;padding:1px 5px;border-radius:4px;}
.sg-rhythm-chip-kind.is-art{background:rgba(98,51,246,.15);color:var(--accent);}
.sg-rhythm-chip-kind.is-itw{background:rgba(245,158,11,.2);color:#b45309;}
.sg-rhythm-slot-explainer{margin:0 0 4px;line-height:1.45;}
.sg-rhythm-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;padding:8px 10px;border-radius:10px;background:#fff;border:1px solid var(--border);}
.sg-rhythm-legend-kind{font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;}
.sg-rhythm-legend-kind.is-article{color:var(--accent);background:rgba(98,51,246,.1);}
.sg-rhythm-legend-kind.is-interview{color:#b45309;background:rgba(245,158,11,.12);}
.sg-rhythm-legend-persona{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;color:var(--muted);}
.sg-rhythm-legend-dot{width:8px;height:8px;border-radius:50%;flex-shrink:0;}
.sg-rhythm-legend-note{font-size:11px;color:var(--subtle);}
.sg-rhythm-chevron{
  flex-shrink:0;width:8px;height:8px;margin-top:6px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(-45deg);transition:transform .18s ease;
}
.sg-rhythm-fold.is-open>.sg-rhythm-fold-head .sg-rhythm-chevron,
.sg-rhythm-section.is-open>.sg-rhythm-section-header .sg-rhythm-chevron{
  transform:rotate(45deg);margin-top:8px;
}
.sg-rhythm-fold{
  border:1px solid var(--border);border-radius:12px;background:#fff;overflow:hidden;
}
.sg-rhythm-fold-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 10px 0 0;}
.sg-rhythm-fold-trigger{
  display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:10px 12px;
  border:none;background:transparent;cursor:pointer;text-align:left;
}
.sg-rhythm-fold-trigger:hover .sg-rhythm-fold-title{color:var(--accent);}
.sg-rhythm-fold-title{font-size:13px;font-weight:700;color:var(--ink);}
.sg-rhythm-fold-badge{font-size:11px!important;padding:2px 8px!important;}
.sg-rhythm-fold-hint{margin:0;padding:0 12px 10px 28px;font-size:12px;line-height:1.4;}
.sg-rhythm-fold-panel{padding:0 12px 12px;display:flex;flex-direction:column;gap:10px;}
.sg-rhythm-fold-actions{flex-shrink:0;padding-right:4px;display:flex;flex-wrap:wrap;gap:4px;justify-content:flex-end;}
.sg-rhythm-editor{display:flex;flex-direction:column;gap:10px;}
.sg-rhythm-grid{
  display:grid;
  grid-template-columns:44px repeat(7,minmax(0,1fr));
  gap:5px;
  padding:12px;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(98,51,246,.04),rgba(98,51,246,.01));
  border:1px solid rgba(98,51,246,.12);
}
.sg-rhythm-grid-corner{min-height:1px;}
.sg-rhythm-grid-head{font-size:11px;font-weight:700;text-align:center;color:var(--muted);padding:4px 0;}
.sg-rhythm-hour-label{font-size:11px;font-weight:600;color:var(--muted);display:flex;align-items:center;justify-content:flex-end;padding-right:6px;}
.sg-rhythm-cell{
  min-height:40px;border-radius:9px;border:1px solid var(--border);background:#fff;
  cursor:pointer;transition:border-color .15s,background .15s,transform .12s;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:2px;
}
.sg-rhythm-cell.is-on.is-article{background:rgba(98,51,246,.12);border-color:var(--accent);}
.sg-rhythm-cell:hover:not(:disabled){border-color:rgba(98,51,246,.45);transform:translateY(-1px);}
.sg-rhythm-cell.is-disabled{opacity:.35;cursor:not-allowed;}
.sg-rhythm-cell.is-on.is-interview{background:rgba(245,158,11,.14);border-color:#d97706;}
.sg-rhythm-cell-kind{font-size:9px;font-weight:800;line-height:1;letter-spacing:.04em;}
.sg-rhythm-cell-kind.is-art{color:var(--accent);}
.sg-rhythm-cell-kind.is-itw{color:#b45309;}
.sg-rhythm-cell-persona{font-size:8px;font-weight:700;line-height:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.sg-rhythm-cell-dot{width:10px;height:10px;border-radius:50%;background:var(--accent);}
.sg-rhythm-presets{display:flex;flex-direction:column;gap:8px;}
.sg-rhythm-slots{display:flex;flex-direction:column;gap:10px;}
.sg-rhythm-slots-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.sg-rhythm-slot-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.sg-rhythm-slot-row{
  display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:flex-start;
  padding:12px 14px;border-radius:14px;background:#f8f7fc;border:1px solid var(--border);
  border-left-width:3px;border-left-color:var(--accent);
}
.sg-rhythm-slot-row.is-interview{border-left-color:#d97706;background:rgba(245,158,11,.06);}
.sg-rhythm-slot-main{display:flex;flex-direction:column;gap:10px;min-width:0;}
.sg-rhythm-slot-meta{display:flex;flex-direction:column;gap:8px;}
.sg-rhythm-kind-seg{flex-wrap:wrap;}
.sg-rhythm-kind-btn.is-interview.is-active{background:rgba(245,158,11,.15)!important;border-color:#d97706!important;color:#b45309!important;}
.sg-rhythm-persona-picks{display:flex;flex-wrap:wrap;gap:4px;}
.sg-rhythm-persona-pick{font-size:11px!important;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.sg-rhythm-slot-persona-hint{margin:0;font-size:12px;}
.sg-rhythm-slot-num{
  width:26px;height:26px;border-radius:50%;background:rgba(98,51,246,.12);color:var(--accent);
  font-size:12px;font-weight:700;display:grid;place-items:center;flex-shrink:0;
}
.sg-rhythm-slot-days{display:flex;flex-wrap:wrap;gap:4px;}
.sg-rhythm-day-pick{padding:6px 9px!important;font-size:11px!important;}
.sg-rhythm-slot-times{display:flex;flex-direction:column;gap:6px;min-width:0;}
.sg-rhythm-time-seg{flex-wrap:wrap;max-width:280px;}
.sg-rhythm-time-scroll{flex-wrap:nowrap;overflow-x:auto;max-width:min(100%,320px);padding-bottom:2px;}
.sg-rhythm-time-scroll button{flex-shrink:0;}
.sg-rhythm-min-seg{max-width:200px;}
.sg-rhythm-slot-remove{padding:6px 10px!important;min-width:36px;}
@media (max-width:900px){
  .sg-settings-modes{grid-template-columns:1fr;}
  .sg-settings-row .sg-seg,.sg-settings-row .ob-tone-seg{width:100%;max-width:none;justify-content:flex-start;}
  .sg-rhythm-slot-row{grid-template-columns:1fr;gap:12px;}
  .sg-rhythm-slot-remove{justify-self:flex-end;}
  .sg-rhythm-grid{overflow-x:auto;}
  .sg-rhythm-summary,.sg-rhythm-summary-empty{padding-left:14px;}
  .sg-cms-field{max-width:none;}
  .sg-editorial-entry{grid-template-columns:1fr;gap:12px;}
}
.sg-liability-modal{max-width:480px;margin:auto;padding:24px;}
.sg-badge.plan-p2{background:#fef3c7;color:#92400e;}
.sg-badge.plan-p3{background:#dbeafe;color:#1e40af;}
.sg-persona-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--gap);margin-bottom:20px;}
.sg-persona-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:20px;display:flex;flex-direction:column;gap:8px;}
.sg-persona-card--add{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);border-style:dashed;cursor:pointer;}
.sg-persona-card--add.is-disabled{opacity:.55;cursor:not-allowed;pointer-events:none;}
.sg-seg-card-avatar{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#ede9fe;}
.sg-seg-card-avatar--empty{display:grid;place-items:center;font-weight:700;color:var(--accent);font-size:18px;}
.sg-seg-card-points{margin:0;padding-left:18px;font-size:12.5px;color:var(--muted);line-height:1.45;}
.sg-seg-funnel{width:min(760px,100%);}
.sg-seg-product-picks{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px;}
.sg-seg-product-pick{font:inherit;font-size:12.5px;font-weight:600;padding:8px 12px;border-radius:999px;border:1px solid var(--border);background:#faf9fd;color:var(--ink);cursor:pointer;transition:.15s;}
.sg-seg-product-pick.is-on{background:rgba(98,51,246,.12);border-color:rgba(98,51,246,.35);color:var(--accent);}
.sg-seg-product-search{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.sg-field-error{color:#c0392b;font-size:13px;font-weight:600;margin:0 0 12px;}
.sg-field-label{display:block;margin:14px 0 6px;font-size:12px;font-weight:700;color:var(--ink);}
.sg-optional-tag{font-style:normal;font-size:12px;font-weight:600;color:var(--subtle);background:#f4f3f8;padding:2px 8px;border-radius:999px;margin-left:4px;}
.sg-set-sub.is-muted-note{color:var(--subtle);font-size:13px;}
.sg-gsc-connect{display:flex;gap:20px;align-items:flex-start;}
.sg-textarea{width:100%;border:1.5px solid var(--border);border-radius:14px;padding:14px;font:inherit;font-size:14px;line-height:1.55;resize:vertical;}
.sg-textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(98,51,246,.12);}
.sg-product-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.sg-field-hint{font-size:12.5px;color:var(--subtle);margin:0 0 12px;line-height:1.45;}
.sg-sync-ok{color:var(--ok,#0a7a4b);margin-top:8px;}
.sg-sync-err{color:var(--danger,#c0392b);margin-top:8px;}
.sg-cfg-note{display:flex;align-items:center;gap:10px;padding:12px 16px;margin-bottom:16px;border-radius:14px;background:rgba(98,51,246,.07);border:1px solid rgba(98,51,246,.18);color:var(--ink);font-size:13.5px;}
.sg-cfg-note svg{color:var(--accent);flex-shrink:0;}
.sg-cfg-list{display:flex;flex-direction:column;gap:10px;margin-bottom:12px;}
.sg-cfg-row{display:flex;align-items:center;gap:10px;}
.sg-cfg-product-card{
  display:flex;align-items:flex-start;gap:12px;
  border:1px solid var(--border);border-radius:14px;padding:12px;background:#faf9fd;
}
.sg-cfg-product-photo-wrap{flex-shrink:0;}
.sg-cfg-product-photo{
  width:72px;height:72px;border-radius:12px;object-fit:cover;background:#fff;border:1px solid var(--border);
}
.sg-cfg-product-photo--empty{
  display:grid;place-items:center;font-size:10px;font-weight:700;letter-spacing:.04em;
  text-transform:uppercase;color:var(--subtle);background:linear-gradient(135deg,#ede9fe,#dbeafe);
}
  .sg-cfg-product-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;}
.sg-cfg-product-photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px;}
.sg-cfg-product-file{display:inline-flex;align-items:center;cursor:pointer;margin:0;}
.sg-cfg-product-file.is-disabled{opacity:.55;pointer-events:none;}
.sg-cfg-personas{display:flex;flex-direction:column;gap:16px;}
.sg-cfg-persona-card{border:1px solid var(--border);border-radius:14px;padding:16px;background:#faf9fd;}
.sg-cfg-persona-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:12px;}
.sg-cfg-persona-photo{width:56px;height:56px;border-radius:12px;object-fit:cover;flex-shrink:0;}
.sg-cfg-persona-photo--empty{display:grid;place-items:center;background:linear-gradient(135deg,#ede9fe,#dbeafe);font-weight:800;color:var(--accent);}
.sg-cfg-persona-fields{flex:1;min-width:0;display:flex;flex-direction:column;gap:8px;}
.sg-cfg-persona-desc{min-height:56px;font-size:13px;}
.sg-cfg-sub-label{margin:10px 0 6px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--subtle);}
.sg-cfg-interests{display:flex;flex-wrap:wrap;gap:6px;}
.sg-cfg-interest{font:inherit;font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid var(--border);background:#fff;color:var(--muted);cursor:pointer;}
.sg-cfg-interest.is-on{border-color:var(--accent);background:rgba(98,51,246,.08);color:var(--accent);font-weight:600;}
.sg-cfg-tone-seg{margin-top:4px;}
.sg-cfg-input{flex:1;min-width:0;border:1.5px solid var(--border);border-radius:12px;padding:11px 14px;font:inherit;font-size:14px;background:#fff;}
.sg-cfg-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(98,51,246,.12);}
.sg-cfg-select{
  width:100%;max-width:320px;border:1.5px solid var(--border);border-radius:12px;padding:11px 14px;
  font:inherit;font-size:14px;background:#fff;color:var(--ink);cursor:pointer;
}
.sg-cfg-select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(98,51,246,.12);}
.sg-cfg-select:disabled{opacity:.6;cursor:not-allowed;}
.sg-cms-section{margin-top:8px;}
.sg-cms-panel{padding:0 14px 14px;}
.sg-cms-row{align-items:flex-start;}
.sg-cms-field{flex-shrink:0;width:100%;max-width:320px;}
.sg-cms-author-input{width:100%;max-width:320px;}
.sg-locale-countries-block{margin-top:4px;}
.sg-locale-countries{display:flex;flex-wrap:wrap;gap:6px;max-height:168px;overflow-y:auto;padding:4px 2px;}
.sg-locale-country-pick{font-size:12px!important;padding:7px 11px!important;}
.sg-conn-card{
  display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:12px;
  background:#f8f7fc;border:1px solid var(--border);
}
.sg-conn-card-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.sg-conn-value{font-size:13px;font-weight:600;color:var(--ink);word-break:break-all;}
.sg-cfg-remove{flex-shrink:0;width:38px;height:38px;border-radius:11px;border:1px solid var(--border);background:#fff;color:var(--muted);cursor:pointer;transition:.15s;}
.sg-cfg-remove:hover{background:#fef2f2;color:#b91c1c;border-color:#fecaca;}
.sg-cfg-add{display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:13.5px;font-weight:600;color:var(--accent);background:none;border:1.5px dashed rgba(98,51,246,.4);border-radius:12px;padding:10px 16px;cursor:pointer;transition:.15s;}
.sg-cfg-add:hover{background:rgba(98,51,246,.06);}
.sg-plans-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:var(--gap);}
.sg-plan-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm);padding:22px;position:relative;}
.sg-plan-card.is-highlighted{border-color:rgba(98,51,246,.35);box-shadow:0 12px 32px rgba(98,51,246,.12);}
.sg-plan-card.is-current{background:#f7f5ff;}
.sg-plan-badge{position:absolute;top:12px;right:12px;font-size:10px;font-weight:700;padding:4px 8px;border-radius:999px;background:var(--accent);color:#fff;}
.sg-plan-badge.is-current{background:#16a34a;}
.sg-plan-price{font-family:var(--display);font-size:28px;font-weight:800;margin:8px 0;}
.sg-plan-price span{font-size:14px;font-weight:600;color:var(--muted);}
.sg-plan-tagline{font-size:13px;color:var(--muted);margin:0 0 12px;}
.sg-plan-card ul{margin:0 0 16px;padding:0;list-style:none;font-size:13px;color:var(--ink);line-height:1.8;}

/* ---- Abonnements (maquette) ---- */
.sg-billing-screen{padding-top:4px;}
.sg-billing-head{
  display:flex;align-items:flex-start;justify-content:space-between;gap:20px;
  margin-bottom:28px;flex-wrap:wrap;
}
.sg-billing-title{
  font-family:var(--display);font-size:clamp(1.75rem,3vw,2.25rem);font-weight:800;
  letter-spacing:-.03em;margin:0 0 6px;color:var(--ink);
}
.sg-billing-sub{margin:0;font-size:14px;color:var(--muted);line-height:1.5;max-width:520px;}
.sg-billing-cycle{
  display:inline-flex;flex-direction:row;align-items:center;gap:2px;
  direction:ltr;padding:4px;border-radius:999px;background:#eceaf3;border:1px solid rgba(98,51,246,.08);
}
.sg-billing-cycle button{
  border:none;background:transparent;font:inherit;font-size:13px;font-weight:600;
  color:var(--muted);padding:8px 16px;border-radius:999px;cursor:pointer;transition:.15s;
}
.sg-billing-cycle button.is-active{
  background:#fff;color:var(--ink);box-shadow:0 2px 10px rgba(15,23,42,.08);
}
.sg-billing-save{
  display:inline-block;margin-left:4px;padding:2px 7px;border-radius:999px;
  background:rgba(22,163,74,.12);color:#15803d;font-size:11px;font-weight:800;
}
.sg-billing-coupon{
  display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 16px;
  margin:-8px 0 22px;padding:14px 16px;background:#faf9fd;border:1px solid #eceaf3;
  border-radius:14px;
}
.sg-billing-coupon label{
  display:block;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;
  color:var(--muted);margin-bottom:6px;
}
.sg-billing-coupon .sg-input{min-width:220px;max-width:320px;}
.sg-billing-coupon p{margin:0;font-size:12.5px;color:var(--muted);flex:1 1 220px;}
.ob-plan-coupon{margin-top:16px;}
.ob-plan-coupon .ob-section-label{margin-bottom:6px;}
.ob-plan-coupon .ob-field-hint{margin-top:6px;}
.ob-legal{margin-top:22px;display:flex;flex-direction:column;gap:14px;}
.ob-legal-check{display:flex;align-items:flex-start;gap:10px;font-size:13.5px;line-height:1.45;color:#3f3a4d;}
.ob-legal-check input{margin-top:3px;flex-shrink:0;}
.ob-legal-check a{color:#6233f6;font-weight:600;}
.ob-legal-desc{display:block;margin-top:4px;color:#6b6578;font-weight:400;}
.ob-legal-notice{margin:0;padding:12px 14px;background:#faf6ff;border:1px solid #ece4fb;border-radius:12px;font-size:12.5px;line-height:1.5;color:#4a4458;}
.ob-wp-kicker{margin:0;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#7c7489;}
.ob-wp-steps{margin:0 0 18px;padding-left:1.2rem;font-size:14px;line-height:1.55;color:#3f3a4d;}
.ob-wp-steps a{color:#6233f6;font-weight:600;}
.ob-wp-ok{margin:8px 0 0;color:#047857;font-size:13.5px;font-weight:600;}
.ob-wp-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.sg-billing-grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:18px;
  align-items:stretch;margin-bottom:22px;
}
.sg-billing-card{
  position:relative;display:flex;flex-direction:column;
  background:#fff;border:1px solid #e8e6f0;border-radius:18px;
  padding:26px 22px 22px;box-shadow:0 4px 24px rgba(15,23,42,.05);
  transition:transform .18s ease,box-shadow .18s ease;
}
.sg-billing-card:hover{box-shadow:0 14px 40px rgba(15,23,42,.08);}
.sg-billing-card.is-featured{
  border-color:rgba(98,51,246,.45);
  box-shadow:0 0 0 1px rgba(98,51,246,.25),0 16px 44px rgba(98,51,246,.14);
}
.sg-billing-card.is-business{
  background:linear-gradient(165deg,#0f172a 0%,#1e293b 100%);
  border-color:#334155;color:#f8fafc;
  box-shadow:0 18px 48px rgba(15,23,42,.28);
}
.sg-billing-card.is-business .sg-billing-card-sub,
.sg-billing-card.is-business .sg-billing-price span{color:#94a3b8;}
.sg-billing-card.is-business .sg-billing-price{color:#fff;}
.sg-billing-badge{
  position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;
  padding:5px 12px;border-radius:999px;white-space:nowrap;
}
.sg-billing-badge.is-rec{background:var(--accent);color:#fff;box-shadow:0 6px 18px rgba(98,51,246,.35);}
.sg-billing-badge.is-active-plan{background:#334155;color:#fff;border:1px solid #475569;}
.sg-billing-badge.is-pending-plan{background:#fef3c7;color:#92400e;border:1px solid #fcd34d;}
.sg-billing-cta.is-pending{opacity:.75;cursor:wait;}
.sg-billing-icon{
  width:44px;height:44px;border-radius:999px;display:grid;place-items:center;
  font-family:var(--display);font-size:18px;font-weight:800;color:#fff;margin-bottom:14px;
}
.sg-billing-icon.is-discovery{background:#9ca3af;}
.sg-billing-icon.is-starter{background:#2563eb;}
.sg-billing-icon.is-pro{background:var(--accent);}
.sg-billing-icon.is-business{background:#475569;}
.sg-billing-card-name{
  font-family:var(--display);font-size:18px;font-weight:800;margin:0 0 4px;letter-spacing:-.02em;
}
.sg-billing-card-sub{font-size:13px;color:var(--muted);margin:0 0 14px;line-height:1.45;}
.sg-billing-price{
  font-family:var(--display);font-size:32px;font-weight:800;margin:0 0 18px;
  letter-spacing:-.03em;line-height:1;
}
.sg-billing-price span{font-size:14px;font-weight:600;color:var(--muted);margin-left:2px;}
.sg-billing-features{
  list-style:none;margin:0 0 20px;padding:0;flex:1;
  display:flex;flex-direction:column;gap:9px;
}
.sg-billing-features li{
  display:flex;align-items:flex-start;gap:8px;font-size:13px;line-height:1.4;
}
.sg-billing-feat-icon{
  flex-shrink:0;width:18px;height:18px;border-radius:999px;
  display:grid;place-items:center;font-size:11px;font-weight:800;
}
.sg-billing-features li.is-ok .sg-billing-feat-icon{background:rgba(22,163,74,.12);color:#16a34a;}
.sg-billing-features li.is-no{color:#9ca3af;}
.sg-billing-features li.is-no .sg-billing-feat-icon{background:#f3f4f6;color:#c4c4cc;}
.sg-billing-card.is-business .sg-billing-features li.is-ok .sg-billing-feat-icon{
  background:rgba(167,139,250,.18);color:#c4b5fd;
}
.sg-billing-card.is-business .sg-billing-features li.is-no{color:#64748b;}
.sg-billing-cta{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  width:100%;border-radius:14px;padding:12px 16px;font:inherit;
  font-size:14px;font-weight:700;cursor:pointer;transition:.15s;border:none;
}
.sg-billing-cta:disabled{opacity:.72;cursor:default;}
.sg-billing-cta.is-discovery{background:#fff;color:var(--ink);border:1.5px solid #d8d8e4;}
.sg-billing-cta.is-starter{background:#2563eb;color:#fff;box-shadow:0 8px 22px rgba(37,99,235,.28);}
.sg-billing-cta.is-pro{background:var(--accent);color:#fff;box-shadow:0 8px 24px rgba(98,51,246,.32);}
.sg-billing-cta.is-business{background:#334155;color:#fff;border:1px solid #475569;}
.sg-billing-cta.is-active{background:#475569;color:#fff;}
.sg-billing-addon{
  display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  background:#fff;border:1px solid #e8e6f0;border-radius:18px;
  padding:20px 22px;box-shadow:0 4px 24px rgba(15,23,42,.04);
}
.sg-billing-addon-icon{
  width:52px;height:52px;border-radius:14px;flex-shrink:0;
  display:grid;place-items:center;background:rgba(98,51,246,.1);color:var(--accent);
}
.sg-billing-addon-body{flex:1;min-width:220px;}
.sg-billing-addon-title{font-family:var(--display);font-size:16px;font-weight:800;margin:0 0 4px;}
.sg-billing-addon-sub{margin:0;font-size:13px;color:var(--muted);line-height:1.5;}
.sg-billing-addon-sub strong{color:var(--ink);}
.sg-billing-addon-btn{
  display:inline-flex;align-items:center;gap:8px;flex-shrink:0;
  border:none;border-radius:14px;padding:12px 18px;font:inherit;
  font-size:14px;font-weight:700;color:#fff;background:var(--accent);
  cursor:pointer;box-shadow:0 8px 22px rgba(98,51,246,.28);
}
.sg-billing-addon-btn:disabled{opacity:.6;cursor:not-allowed;}
.sg-account-list{display:flex;flex-direction:column;gap:8px;}
.sg-account-row{
  display:flex;align-items:center;gap:14px;padding:14px 16px;
  border:1px solid var(--border);border-radius:12px;min-width:0;
}
.sg-account-row.is-current{background:#f7f5ff;border-color:rgba(98,51,246,.25);}
.sg-account-main{min-width:0;flex:1 1 180px;}
.sg-account-main strong{display:block;font-size:14px;overflow-wrap:anywhere;}
.sg-account-main span,.sg-account-row span{font-size:12.5px;color:var(--muted);overflow-wrap:anywhere;}
.sg-account-stats{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:13px;color:var(--muted);flex:1 1 auto;min-width:0;}
.sg-account-actions{display:flex;align-items:center;justify-content:flex-end;flex:none;gap:8px;}
.sg-account-actions .sg-hero-pill.is-active{
  background:rgba(98,51,246,.12);border-color:rgba(98,51,246,.28);color:var(--accent);
}
.sg-account-add{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.sg-account-add .sg-input{flex:1 1 220px;min-width:0;}
.sg-account-add .sg-btn-primary{flex:none;}
.sg-input{
  width:100%;border:1.5px solid var(--border);border-radius:12px;
  padding:11px 13px;font:inherit;font-size:14px;background:#fff;color:var(--ink);
}
.sg-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px rgba(98,51,246,.12);}
.sg-account-session{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;}
.sg-account-form{display:flex;flex-direction:column;gap:12px;max-width:640px;margin-top:8px;}
.sg-account-form .sg-field-label{margin:0;}
.sg-account-form .sg-input{margin-top:6px;}
.sg-account-form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.sg-account-form-actions{display:flex;gap:10px;margin-top:4px;}
.sg-iv-wizard-steps{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px;}
.sg-iv-wizard-step{font-size:12px;font-weight:600;padding:6px 12px;border-radius:999px;background:#f4f3f8;color:var(--muted);}
.sg-iv-wizard-step.is-done{background:rgba(98,51,246,.12);color:var(--accent);}
.sg-iv-wizard-step.is-current{background:var(--accent);color:#fff;}
.sg-iv-cover-upload{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;}
.sg-iv-wordgauge{display:flex;flex-direction:column;gap:6px;margin-bottom:12px;font-size:12.5px;color:var(--muted);}
.sg-login{min-height:100vh;display:grid;place-items:center;background:var(--bg);padding:24px;}
.sg-login-card{max-width:420px;width:100%;background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow);text-align:center;}
.sg-login-logo{width:72px;height:72px;border-radius:50%;object-fit:cover;margin-bottom:16px;}
.sg-login-sub{font-size:14px;color:var(--muted);margin:8px 0 20px;line-height:1.5;}
.sg-login-error{color:#b91c1c;font-size:13px;margin-bottom:12px;}
.sg-login-list{display:flex;flex-direction:column;gap:8px;}
.sg-login-site{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--border);border-radius:12px;background:#fff;cursor:pointer;text-align:left;}
.sg-login-site.is-active{border-color:rgba(98,51,246,.45);background:#f7f5ff;}
.sg-login-site strong{font-size:14px;}
.sg-login-site span{font-size:12px;color:var(--muted);}
.sg-login-form{display:flex;flex-direction:column;gap:12px;text-align:left;margin-top:8px;}
.sg-login-field{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted);}
.sg-login-field input{padding:10px 12px;border:1px solid var(--border);border-radius:10px;font-size:14px;}
.sg-login-submit{width:100%;margin-top:4px;}
.sg-login-link-shopify{width:100%;margin-top:8px;}
.sg-login-logout{margin-top:16px;width:100%;}
.sg-login-divider{display:flex;align-items:center;gap:12px;margin:16px 0;color:var(--muted);font-size:12px;}
.sg-login-divider::before,.sg-login-divider::after{content:"";flex:1;height:1px;background:var(--border);}
.sg-login-google{width:100%;}
.sg-login-social{display:grid;grid-template-columns:1fr;gap:10px;margin-bottom:4px;}
.sg-login-social-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;font-size:14px;font-weight:500;cursor:pointer;}
.sg-login-social-btn:disabled{opacity:.6;cursor:not-allowed;}
.sg-login-social-google:hover:not(:disabled){border-color:#4285F4;background:#f8fbff;}
.sg-login-social-icon{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:13px;font-weight:700;}
.sg-login-social-google .sg-login-social-icon{background:#fff;border:1px solid #dadce0;color:#4285F4;}
.sg-login-card-wide{max-width:520px;text-align:left;}
.sg-login-card-wide h1,.sg-login-card-wide .sg-login-logo{text-align:center;}
.sg-login-card-wide .sg-login-sub{text-align:center;}
.sg-login-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.sg-signup-choices{display:flex;flex-direction:column;gap:10px;margin:16px 0;}
.sg-signup-choice{display:flex;flex-direction:column;gap:4px;padding:16px;border:1px solid var(--border);border-radius:12px;background:#fff;cursor:pointer;text-align:left;}
.sg-signup-choice:hover{border-color:rgba(98,51,246,.35);background:#f7f5ff;}
.sg-signup-choice strong{font-size:14px;color:var(--ink);}
.sg-signup-choice span{font-size:12px;color:var(--muted);}
.sg-login-switch{margin-top:16px;font-size:13px;color:var(--muted);text-align:center;}
.sg-link-btn{background:none;border:none;padding:0;color:var(--accent);font-weight:600;cursor:pointer;text-decoration:underline;}
.sg-login-back{margin-top:12px;width:100%;}
.sg-btn-secondary{width:100%;margin-top:12px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;font-weight:600;cursor:pointer;}
.sg-discovered-shops{padding:12px;border-radius:10px;background:#f7f5ff;border:1px solid rgba(98,51,246,.2);font-size:13px;}
.sg-discovered-shops ul{margin:8px 0 0;padding-left:18px;}
@media(max-width:560px){.sg-login-row{grid-template-columns:1fr;}}
@media(min-width:1081px){
  .sg-art-cards{grid-template-columns:repeat(3,1fr);}
  .sg-billing-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:1080px){
  .sg-hero-band{grid-template-columns:1fr;}
  .sg-hero-guy{order:-1;}
  .sg-assistant-grid,.sg-assistant-grid.is-2,.sg-plans-grid,.sg-persona-grid,.sg-billing-grid{grid-template-columns:1fr;}
  .sg-assistant-stats{grid-template-columns:1fr;}
  .sg-next{grid-template-columns:1fr;}
  .sg-next-visual{display:none;}
  .sg-kpis,.sg-kpis.is-3{grid-template-columns:repeat(2,1fr);}
  .sg-review{grid-template-columns:1fr;}
  .sg-iv-grid{grid-template-columns:1fr;}
  .sg-art-cards{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:720px){
  .sg-art-cards{grid-template-columns:1fr;}
}

/* ---------- Mobile shell (nav drawer) ---------- */
.sg-mobile-bar{display:none;}
.sg-side-backdrop{display:none;}
.sg-side-close{display:none;}
.sg-brand-mark.sm{width:30px;height:30px;border-radius:9px;font-size:15px;}

@media(max-width:900px){
  /* Critic : .sg-app est flex-row → la barre mobile devenait une colonne à gauche.
     On passe en colonne : barre au-dessus, contenu en dessous. */
  .sg-app{
    flex-direction:column;
    width:100%;
    max-width:100vw;
    overflow-x:clip;
  }
  .sg-mobile-bar{
    display:flex;align-items:center;gap:12px;
    position:fixed;top:0;left:0;right:0;z-index:70;
    width:100%;flex:none;
    padding:10px 14px;min-height:56px;
    padding-top:max(10px, env(safe-area-inset-top));
    background:rgba(255,255,255,.96);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
    border-bottom:1px solid var(--border);
    box-shadow:0 4px 18px rgba(15,23,42,.06);
  }
  .sg-mobile-menu-btn{
    width:42px;height:42px;border-radius:12px;flex-shrink:0;
    display:grid;place-items:center;color:var(--ink);
    background:#f4f3f9;border:1px solid var(--border);
  }
  .sg-mobile-brand{display:flex;align-items:center;gap:8px;flex:1;min-width:0;}
  .sg-mobile-brand .sg-brand-type{font-size:15px;}
  .sg-mobile-title{display:none;}

  .sg-side-backdrop{
    display:block;position:fixed;inset:0;z-index:80;
    background:rgba(15,23,42,.45);opacity:0;pointer-events:none;transition:opacity .2s;
  }
  .sg-side-backdrop.is-open{opacity:1;pointer-events:auto;}

  .sg-side{
    position:fixed !important;top:0;left:0;bottom:0;z-index:90;
    width:min(300px,86vw);height:100vh;height:100dvh;
    transform:translateX(-105%);transition:transform .22s ease;
    box-shadow:none;overflow-y:auto;-webkit-overflow-scrolling:touch;
    margin:0;flex:none;
  }
  .sg-side.is-open{
    transform:translateX(0);
    box-shadow:24px 0 48px rgba(15,23,42,.18);
  }
  .sg-side-close{
    display:grid;place-items:center;margin-left:auto;
    width:36px;height:36px;border-radius:10px;color:var(--muted);
    background:#f4f3f9;border:1px solid var(--border);
  }
  .sg-side-coach{display:none;}
  .sg-app.is-nav-open{overflow:hidden;}

  .sg-main{
    flex:1;width:100%;max-width:100%;min-width:0;
    padding:16px 14px 40px;
    padding-top:calc(56px + max(10px, env(safe-area-inset-top)) + 12px);
  }
  .sg-screen{max-width:100%;}

  /* Carte prochain article / état vide : full width */
  .sg-next{grid-template-columns:1fr !important;min-height:0;}
  .sg-next-visual{display:none !important;}
  .sg-next-empty,.sg-next-success{
    grid-column:1/-1;
    display:flex;flex-direction:column;align-items:center;text-align:center;
    gap:14px;padding:28px 18px;
  }
  .sg-next-empty .sg-next-mascot,
  .sg-next-success .sg-next-mascot{max-width:120px;width:40%;}
  .sg-next-body{margin:0;border-radius:0;padding:20px 16px;}
  .sg-next-title{font-size:20px;}
  .sg-next-meta{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px;}
  .sg-next-meta > span{flex:none;}
  .sg-next-foot{
    flex-direction:column;align-items:stretch;gap:14px;padding-top:18px;
  }
  .sg-next-foot-meta{justify-content:space-between;width:100%;}
  .sg-next-actions{flex-direction:column;align-items:stretch;width:100%;}
  .sg-next-actions .sg-btn-primary,
  .sg-next-actions .sg-btn-ghost{
    width:100%;justify-content:center;white-space:normal;text-align:center;
  }

  .sg-pagehead{flex-direction:column;align-items:stretch;gap:12px;}
  .sg-pagehead-aside{align-items:flex-start;}
  .sg-h1{font-size:clamp(24px,7vw,32px);max-width:none;}
  .sg-sub{max-width:none;font-size:14.5px;}
  .sg-statuspill{
    align-self:stretch;margin-top:0;white-space:normal;line-height:1.35;
    max-width:100%;overflow-wrap:anywhere;word-break:break-word;
  }
  .sg-account-row{flex-direction:column;align-items:stretch;gap:12px;}
  .sg-account-main,.sg-account-stats{flex:none;width:100%;}
  .sg-account-actions{width:100%;justify-content:stretch;}
  .sg-account-actions .sg-btn-primary,
  .sg-account-actions .sg-hero-pill{
    width:100%;justify-content:center;text-align:center;
  }
  .sg-account-add{flex-direction:column;align-items:stretch;}
  .sg-account-add .sg-input{width:100%;flex:none;}
  .sg-account-add .sg-btn-primary{width:100%;justify-content:center;}
  .sg-account-form-row{grid-template-columns:1fr;}

  .sg-hero-band{padding:18px;gap:16px;border-radius:20px;grid-template-columns:1fr;}
  .sg-hero-guy{max-width:120px;margin:0 auto;order:-1;}
  .sg-hero-actions{flex-wrap:wrap;gap:8px;}
  .sg-hero-actions .sg-btn-primary,
  .sg-hero-actions .sg-btn-ghost{width:100%;justify-content:center;}

  .sg-kpis,.sg-kpis.is-3{grid-template-columns:1fr 1fr;gap:10px;}
  .sg-kpi{padding:14px;}
  .sg-kpi-value{font-size:22px;}
  .sg-kpi-icon{width:36px;height:36px;border-radius:10px;}

  .sg-compare,.sg-panel{padding:18px 16px;border-radius:18px;}
  .sg-compare-head,.sg-panel-head{flex-wrap:wrap;align-items:flex-start;}
  .sg-compare-progress{
    flex-direction:column;gap:10px;padding:14px 14px;
  }
  .sg-compare-arrow{transform:rotate(90deg);padding:2px 0;}
  .sg-compare-val{font-size:22px;}
  .sg-compare-val span{font-size:13px;}
  .sg-compare-meta{font-size:12.5px;}
  .sg-compare-grid{grid-template-columns:1fr;gap:10px;}
  .sg-compare-grid .sg-compare-arrow{display:none;}
  .sg-toolbar-inline{flex-wrap:wrap;gap:8px;}
  .sg-toolbar-inline .sg-btn-primary,
  .sg-toolbar-inline .sg-btn-ghost{flex:1 1 auto;}

  .sg-auto{flex-wrap:wrap;gap:10px;}
  .sg-auto-sep{display:none;}
  .sg-auto-item{flex:1 1 45%;}

  /* GSC table → scroll horizontal */
  .sg-gsc-thead,.sg-gsc-row{
    grid-template-columns:minmax(160px,1.4fr) 64px 88px 64px 72px;
    min-width:480px;gap:6px;padding:10px 8px;
  }
  .sg-gsc-list,.sg-panel:has(.sg-gsc-thead){overflow-x:auto;-webkit-overflow-scrolling:touch;}
  .sg-gsc-head-row{flex-direction:column;align-items:stretch;}
  .sg-gsc-head-row .sg-btn-primary{width:100%;}
  .sg-gsc-prop{flex-wrap:wrap;}
  .sg-gsc-prop-url{white-space:normal;overflow:visible;text-overflow:unset;}
  .sg-gsc-connect{flex-direction:column;align-items:stretch;}

  .sg-cfg-persona-head{flex-direction:column;}
  .sg-cfg-row{flex-wrap:wrap;}
  .sg-cfg-product-card{flex-wrap:wrap;}
  .sg-plans-grid{grid-template-columns:1fr;}
  .sg-plan-card{padding:18px;}

  /* Review drawer plein écran — au-dessus de la barre mobile */
  .sg-overlay{z-index:110;padding:0;align-items:stretch;}
  .sg-review{
    position:fixed;inset:0;z-index:111;border-radius:0;max-width:none;width:100%;
    height:100%;height:100dvh;overflow:hidden;
    grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) auto;
    box-shadow:none;max-height:none;margin:0;
  }
  .sg-overlay .sg-review{margin:0;max-height:none;box-shadow:none;}
  .sg-review-side{
    border-left:none;border-top:1px solid var(--border);
    padding:8px 12px calc(10px + env(safe-area-inset-bottom));
    flex:none;max-height:none;overflow:visible;
  }
  .sg-review-doc{
    padding:14px 14px 10px;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;
  }
  .sg-review-title{font-size:20px;padding-right:36px;margin:8px 0 10px;line-height:1.25;}
  .sg-review-title-input{font-size:18px;margin-bottom:8px;}
  .sg-review-close{top:10px;right:10px;z-index:2;}
  .sg-review-hero-wrap{max-height:160px;margin-bottom:10px;}
  .sg-review-hero{height:120px;margin-bottom:0;}
  .sg-review-hero-img{max-height:160px;aspect-ratio:16/9;}
  .sg-review-cta-grid{grid-template-columns:1fr;}
  .sg-review-more-sheet{max-height:min(46vh,360px);}
  .sg-review-stats-toggle{width:100%;}
  .sg-html-editor{min-height:0;}
  .sg-html-surface{min-height:220px;max-height:none;padding:12px;}
  .sg-html-toolbar{
    padding:6px;gap:3px;position:sticky;top:0;z-index:8;
    background:#faf9fd;
  }
  .sg-html-tool{min-width:28px;height:28px;padding:0 6px;font-size:11px;}
  .ob-card-top{margin-bottom:18px;align-items:center;}
  .ob-quit-btn{padding:8px 12px;}
  .sg-modal-backdrop{padding:0;align-items:stretch;}
  .sg-modal-backdrop .sg-review{margin:0;}

  /* Onboarding mobile */
  .ob-shell{padding:0;align-items:stretch;}
  .ob-card,.ob-card-wide{
    width:100%;max-width:none;min-height:100%;max-height:none;
    border-radius:0;padding:20px 16px 28px;
  }
  .ob-progress{margin-bottom:22px;overflow-x:auto;padding-bottom:4px;}
  .ob-prog-label{display:none;}
  .ob-prog-step{flex:none;}
  .ob-prog-step::after{width:28px;flex:none;margin:0 4px;}
  .ob-analyse-bubble{display:none;}
  .ob-mascot-big{width:96px;}
  .ob-persona-card{padding:14px;}
  .ob-persona-card-head{flex-direction:column;align-items:center;text-align:center;}
  .ob-plan-grid{grid-template-columns:1fr;}
  .ob-foot,.ob-foot-finale{flex-direction:column-reverse;align-items:stretch;gap:10px;}
  .ob-foot-right{flex-direction:column;width:100%;}
  .ob-btn-primary,.ob-btn-ghost,.ob-btn-primary.lg{width:100%;justify-content:center;}
  .ob-art-meta{flex-direction:column;align-items:flex-start;gap:6px;}
}

@media(max-width:560px){
  .sg-kpis,.sg-kpis.is-3{grid-template-columns:1fr;}
  .sg-auto-item{flex:1 1 100%;}
  .sg-btn-primary,.sg-btn-ghost{min-height:44px;}
  .sg-seg{flex-wrap:wrap;}
  .sg-seg button{flex:1 1 auto;}
}

/* ── Module Concurrents — composants spécifiques (charte = sg-panel, sg-tabs, sg-btn-*) ── */
.sg-comp-alert{padding:14px 16px;border-radius:var(--radius-sm);font-size:14px;border:1px solid transparent;margin-bottom:0;}
.sg-comp-alert.is-info{background:#eff6ff;border-color:#bfdbfe;color:#1e40af;}
.sg-comp-alert.is-critical{background:#fef2f2;border-color:#fecaca;color:#991b1b;}
.sg-comp-steal-hero{border-left:3px solid var(--accent);}
.sg-comp-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:var(--gap);}
@media(max-width:900px){.sg-comp-grid-2{grid-template-columns:1fr;}}
.sg-comp-checkbox{width:18px;height:18px;accent-color:var(--accent);cursor:pointer;margin:0;flex-shrink:0;}
.sg-comp-chk-label{display:inline-flex;align-items:center;gap:8px;cursor:pointer;flex-shrink:0;user-select:none;}
.sg-comp-chk-text{font-size:12px;font-weight:600;color:var(--muted);}
.sg-comp-kw-name{flex:1;font-weight:600;font-size:14px;min-width:100px;}
.sg-comp-import-actions{display:flex;align-items:center;gap:14px;margin-top:16px;flex-wrap:wrap;}
.sg-comp-kw-list{max-height:480px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--border);border-radius:var(--radius-sm);background:#faf9fd;}
.sg-comp-kw-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid var(--border);font-size:13px;flex-wrap:wrap;}
.sg-comp-kw-row:last-child{border-bottom:none;}
.sg-comp-kw-row.is-highlight{background:rgba(98,51,246,.06);}
.sg-comp-kw-row-label{cursor:pointer;user-select:none;}
.sg-comp-kw-row-label:hover{background:#f0effe;}
.sg-comp-kw-row-label.is-checked{background:rgba(98,51,246,.06);}
.sg-comp-kw-list-toolbar{display:flex;align-items:center;gap:14px;margin-bottom:10px;flex-wrap:wrap;}
.sg-comp-pill{display:inline-block;font-size:11.5px;font-weight:600;padding:3px 10px;border-radius:999px;flex-shrink:0;}
.sg-comp-pill.is-gap{background:#fef3c7;color:#92400e;}
.sg-comp-pill.is-exclusive{background:#e0f2fe;color:#0369a1;}
.sg-comp-pill.is-shared{background:#ede9fe;color:#5b21b6;}
.sg-comp-pill.is-relevance-high{background:#ecfdf5;color:#166534;}
.sg-comp-pill.is-relevance-medium{background:#e0f2fe;color:#0369a1;}
.sg-comp-pill.is-relevance-low{background:#f1f5f9;color:#64748b;}
.sg-comp-pill.is-blog-highlight{background:#fef3c7;color:#92400e;}
.sg-comp-domain-row{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-radius:var(--radius-xs);background:#faf9fd;border:1px solid var(--border);margin-bottom:8px;gap:12px;flex-wrap:wrap;}
.sg-comp-domain-row.is-in-basket{border-color:rgba(98,51,246,.35);background:rgba(98,51,246,.05);}
.sg-comp-domain-name{font-weight:600;font-size:14px;}
.sg-comp-domain-meta{font-size:12px;color:var(--subtle);}
.sg-comp-chart-bars{display:flex;align-items:flex-end;gap:12px;height:200px;padding-top:12px;overflow-x:auto;}
.sg-comp-bar-col{flex:1;min-width:56px;display:flex;flex-direction:column;align-items:center;gap:6px;}
.sg-comp-bar{width:100%;max-width:48px;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,rgba(98,51,246,.45) 0%,rgba(98,51,246,.8) 100%);min-height:4px;}
.sg-comp-bar.is-own{background:linear-gradient(180deg,#34d399 0%,#059669 100%);}
.sg-comp-bar-label{font-size:10px;font-weight:600;color:var(--subtle);text-align:center;max-width:72px;word-break:break-word;}

/* Nouveau bar chart comparatif */
.sg-comp-barchart{display:flex;flex-direction:column;gap:12px;}
.sg-comp-barchart-bars{display:flex;align-items:flex-end;gap:16px;overflow-x:auto;padding-bottom:6px;}
.sg-comp-barchart-col{display:flex;flex-direction:column;align-items:center;gap:8px;flex:1;min-width:64px;max-width:120px;}
.sg-comp-barchart-col.is-own .sg-comp-barchart-label{color:var(--accent);font-weight:800;}
.sg-comp-barchart-stack{display:flex;align-items:flex-end;justify-content:center;gap:4px;width:100%;}
.sg-comp-barchart-bar{width:32px;border-radius:6px 6px 3px 3px;min-height:3px;background:#d1d5db;transition:height .3s ease;}
.sg-comp-barchart-bar.is-own{background:linear-gradient(180deg,#818cf8 0%,#6233f6 100%);}
.sg-comp-barchart-bar.is-gsc{background:linear-gradient(180deg,#34d399 0%,#059669 100%);width:28px;}
.sg-comp-barchart-bar.is-est{background:linear-gradient(180deg,#a5b4fc 0%,#6233f6 100%);width:28px;opacity:.7;}
.sg-comp-barchart-label{font-size:11px;font-weight:600;color:var(--subtle);text-align:center;word-break:break-word;line-height:1.3;}
.sg-comp-barchart-legend{display:flex;flex-wrap:wrap;gap:16px;font-size:12px;font-weight:600;color:var(--subtle);}
.sg-comp-legend-dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:middle;}
.sg-comp-legend-dot.is-gsc{background:#059669;}
.sg-comp-legend-dot.is-est{background:rgba(98,51,246,.7);}
.sg-comp-legend-dot.is-comp{background:#d1d5db;border:1px solid #9ca3af;}
.sg-comp-table{width:100%;border-collapse:collapse;font-size:13px;}
.sg-comp-table th{text-align:left;padding:10px 8px;color:var(--subtle);font-weight:600;border-bottom:1px solid var(--border);}
.sg-comp-table td{padding:10px 8px;border-bottom:1px solid var(--border);}
.sg-comp-table tr.is-own td{background:rgba(98,51,246,.04);font-weight:600;}
.sg-comp-field-input{width:100%;padding:10px 14px;border:1.5px solid var(--border);border-radius:var(--radius-xs);font:inherit;font-size:14px;color:var(--ink);background:#fff;}
.sg-comp-field-input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 4px rgba(98,51,246,.1);}
.sg-comp-watch-card{padding:24px var(--pad);border-radius:var(--radius);border:1px solid var(--border);background:var(--card);box-shadow:var(--shadow);}
.sg-comp-watch-entry{padding:12px 14px;border-radius:var(--radius-xs);border:1px solid var(--border);background:#fff;}
.sg-comp-delta-up{margin-left:10px;color:#059669;font-weight:600;}
.sg-comp-delta-down{margin-left:10px;color:#dc2626;font-weight:600;}
.sg-comp-steps{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px;}
.sg-comp-step-pill{padding:6px 14px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid var(--border);color:var(--muted);background:#fff;}
.sg-comp-step-pill.is-active{background:rgba(98,51,246,.1);border-color:rgba(98,51,246,.35);color:var(--accent);}
.sg-comp-step-pill.is-done{background:#ecfdf5;border-color:#a7f3d0;color:#166534;}
.sg-comp-kw-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:var(--radius-sm);border:1px solid var(--border);margin-bottom:10px;cursor:pointer;background:#fff;width:100%;text-align:left;box-shadow:var(--shadow);}
.sg-comp-kw-choice.is-selected{border-color:rgba(98,51,246,.45);background:rgba(98,51,246,.06);}
.sg-comp-kw-choice-meta{font-size:13px;color:var(--muted);}
.sg-comp-nav-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px;align-items:center;}
.sg-comp-basket{border:1px solid var(--border);border-radius:var(--radius);padding:24px var(--pad);background:var(--card);box-shadow:var(--shadow);}
.sg-comp-basket-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:6px;}
.sg-comp-basket-title{font-family:var(--display);font-size:17px;font-weight:700;margin:0;letter-spacing:-.02em;}
.sg-comp-basket-count{font-size:12px;font-weight:700;color:var(--accent);background:rgba(98,51,246,.1);padding:4px 12px;border-radius:999px;}
.sg-comp-basket-hint{font-size:13px;color:var(--muted);margin:0 0 14px;line-height:1.5;}
.sg-comp-basket-saving{font-size:13px;color:var(--accent);font-weight:600;margin:0 0 10px;}
.sg-comp-basket-empty{font-size:13px;color:var(--muted);margin:0;line-height:1.5;}
.sg-comp-basket-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;}
.sg-comp-basket-card{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:var(--radius-sm);background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);}
.sg-comp-basket-card.is-flash{border-color:rgba(98,51,246,.55);box-shadow:0 0 0 3px rgba(98,51,246,.15);animation:sg-comp-card-flash .45s ease;}
.sg-comp-basket-card-add{border-style:dashed;background:rgba(98,51,246,.04);}
.sg-comp-basket-card-host{font-size:14px;font-weight:700;word-break:break-word;}
.sg-comp-basket-card-add-label{font-size:12px;font-weight:600;color:var(--muted);margin:0;}
.sg-comp-basket-card-remove{align-self:flex-start;padding:6px 12px;border-radius:8px;border:1px solid var(--border);background:#fff;font-size:12px;font-weight:600;cursor:pointer;color:var(--muted);}
.sg-comp-basket-card-remove:hover:not(:disabled){border-color:#fecaca;color:#dc2626;background:#fef2f2;}
.sg-comp-basket-add-row{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;}
.sg-comp-basket-add-row>input{flex:1;min-width:140px;}
.sg-comp-btn-in-basket{background:#ecfdf5!important;border-color:#a7f3d0!important;color:#166534!important;cursor:default!important;}
.sg-comp-theme-card{padding:14px 16px;border-radius:var(--radius-sm);border:1px solid var(--border);background:#faf9fd;margin-bottom:10px;}
.sg-comp-theme-title{font-size:15px;font-weight:700;margin:0 0 6px;}
.sg-comp-theme-meta{font-size:12px;color:var(--subtle);margin:0 0 8px;}
.sg-comp-theme-angle{font-size:13px;line-height:1.5;margin:0 0 8px;color:var(--muted);}
.sg-comp-theme-kws{font-size:12px;color:var(--subtle);margin:0;}
.sg-comp-suggest-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;}
.sg-comp-suggest-card{display:block;width:100%;text-align:left;padding:16px;border-radius:var(--radius-sm);border:1px solid var(--border);background:#fff;cursor:pointer;transition:.15s;box-shadow:var(--shadow);}
.sg-comp-suggest-card.is-selected{border-color:rgba(98,51,246,.45);background:rgba(98,51,246,.06);box-shadow:0 0 0 3px rgba(98,51,246,.1);}
.sg-comp-suggest-card:disabled{opacity:.6;cursor:not-allowed;}
.sg-comp-suggest-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:8px;}
.sg-comp-suggest-host{font-size:15px;font-weight:700;word-break:break-word;}
.sg-comp-suggest-kws{font-size:12px;color:var(--subtle);margin:8px 0 0;}
.sg-comp-line-chart-wrap{margin-top:8px;}
.sg-comp-line-chart{width:100%;height:220px;display:block;}
.sg-comp-line-chart-labels{display:flex;justify-content:space-between;gap:8px;margin-top:8px;font-size:11px;font-weight:600;color:var(--subtle);}
.sg-comp-line-chart-legend{display:flex;flex-wrap:wrap;gap:12px;margin-top:12px;font-size:12px;font-weight:600;color:var(--subtle);}
.sg-comp-line-chart-legend i{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:6px;vertical-align:middle;}
.sg-comp-kw-trend{display:flex;flex-direction:column;gap:16px;}
.sg-comp-kw-trend-row{display:flex;flex-direction:column;gap:6px;}
.sg-comp-kw-trend-label{font-size:12px;font-weight:700;color:var(--subtle);}
@keyframes sg-comp-card-flash{0%{box-shadow:0 0 0 0 rgba(98,51,246,.35);}100%{box-shadow:0 0 0 3px rgba(98,51,246,.15);}}
@media(prefers-reduced-motion:reduce){.sg-comp-basket-card.is-flash{animation:none;}}

/* Stepper parcours concurrents */
.sg-comp-stepper{display:flex;align-items:center;gap:0;margin:4px 0 22px;flex-wrap:wrap;}
.sg-comp-stepper-item{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:var(--radius-sm);border:1px solid transparent;background:transparent;cursor:pointer;transition:.15s;text-align:left;}
.sg-comp-stepper-item:hover:not(:disabled){background:rgba(98,51,246,.05);}
.sg-comp-stepper-item.is-locked{opacity:.5;cursor:not-allowed;}
.sg-comp-stepper-item.is-active{background:rgba(98,51,246,.08);border-color:rgba(98,51,246,.3);}
.sg-comp-stepper-num{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:999px;font-size:14px;font-weight:800;background:var(--border);color:var(--muted);flex-shrink:0;transition:.15s;}
.sg-comp-stepper-item.is-active .sg-comp-stepper-num{background:var(--accent);color:#fff;}
.sg-comp-stepper-item.is-done .sg-comp-stepper-num{background:#059669;color:#fff;}
.sg-comp-stepper-text{display:flex;flex-direction:column;gap:1px;}
.sg-comp-stepper-label{font-size:14px;font-weight:700;letter-spacing:-.01em;color:var(--text,inherit);}
.sg-comp-stepper-item.is-active .sg-comp-stepper-label{color:var(--accent);}
.sg-comp-stepper-hint{font-size:11px;color:var(--subtle);}
.sg-comp-stepper-line{flex:1;min-width:16px;height:2px;background:var(--border);margin:0 2px;}
.sg-comp-stepper-line.is-filled{background:linear-gradient(90deg,var(--accent),rgba(98,51,246,.35));}

/* Intro d'étape + navigation bas de page */
.sg-comp-step-intro{margin-bottom:16px;}
.sg-comp-step-intro .sg-block-title{margin:0 0 6px;}
.sg-comp-stepnav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:22px;padding-top:18px;border-top:1px solid var(--border);}

/* Bouton "ajouter" dans les cartes suggestion */
.sg-comp-suggest-add{display:inline-block;margin-top:12px;font-size:12px;font-weight:700;color:var(--accent);}
.sg-comp-suggest-card.is-selected .sg-comp-suggest-add{color:#059669;}

/* Graphique landscape (bulles) */
.sg-comp-landscape{margin-top:6px;}
.sg-comp-landscape-svg{width:100%;height:auto;display:block;overflow:visible;}
.sg-comp-landscape-dot-label{font-size:12px;font-weight:700;fill:var(--muted);}
.sg-comp-landscape-dot-label.is-own{fill:var(--accent);}
.sg-comp-landscape-axis{font-size:11px;font-weight:700;fill:var(--subtle);text-transform:uppercase;letter-spacing:.04em;}
.sg-comp-landscape-note{font-size:12px;color:var(--subtle);margin:12px 0 0;line-height:1.5;}

.sg-forbid-chips-wrap{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0 0 14px;}
.sg-forbid-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0;}
.sg-forbid-clear{
  display:inline-flex;margin:4px 0 14px;color:#8a1f16;border-color:rgba(180,70,80,.35)!important;background:#fdf4f4!important;
}
.sg-forbid-clear:disabled{opacity:.45;cursor:not-allowed;}
.sg-forbid-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:7px 8px 7px 12px;border-radius:999px;border:1px solid rgba(180,70,80,.22);background:#fdf4f4;color:#6b2a2a;font-size:12.5px;font-weight:600;}
.sg-forbid-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:280px;}
.sg-forbid-chip-x{display:grid;place-items:center;width:22px;height:22px;border:0;border-radius:999px;background:transparent;color:inherit;cursor:pointer;padding:0;flex-shrink:0;}
.sg-forbid-chip-x:hover{background:rgba(180,70,80,.14);}
.sg-forbid-chip-x:disabled{opacity:.5;cursor:not-allowed;}
.sg-forbid-add{display:flex;gap:8px;align-items:center;margin-bottom:14px;flex-wrap:wrap;}
.sg-forbid-add .sg-cfg-input{flex:1;min-width:180px;}
.sg-forbid-empty{font-size:13px;color:var(--subtle);margin:0 0 12px;}
.sg-forbid-block{margin-top:4px;}
.sg-forbid-block .sg-set-title{margin:0 0 4px;}
.sg-forbid-block .sg-set-sub{margin:0 0 10px;}
.sg-forbid-block .sg-textarea{min-height:88px;margin-bottom:10px;}
.sg-forbid-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:2px;}
.sg-forbid-pack{margin:0 0 16px;padding:12px 14px;border:1px solid rgba(98,51,246,.12);border-radius:14px;background:#faf8ff;}
.sg-forbid-pack-select{width:100%;margin:8px 0 10px;}
.sg-forbid-checks{display:flex;flex-direction:column;gap:8px;margin:0 0 12px;}
.sg-forbid-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.35;color:#334155;cursor:pointer;}
.sg-forbid-check input{margin-top:3px;flex-shrink:0;}
.sg-forbid-check small{display:block;font-size:12px;color:var(--subtle);font-weight:400;margin-top:2px;}
.sg-forbid-legal{font-size:12px;color:var(--subtle);margin:8px 0 0;line-height:1.4;}
.sg-forbid-chip.is-pack{border-color:rgba(98,51,246,.25);background:#f5f1ff;color:#3d2a7a;}
.sg-forbid-chip.is-document{border-color:rgba(30,90,140,.22);background:#f0f6fb;color:#1e3a5f;}
