/* ═══════════════════════════════════════════════════════════════════════════
   GoMySeo — Outils SEO gratuits (/outils-seo-gratuits/). Complète lp-shell.css :
   mêmes tokens (chat-ds.css), même hero sombre à particules, même orange de marque.
   1. Hero + boîte de l'outil   2. Statut / résultats   3. Composants de résultats
   4. Simulateur SERP   5. Générateur Schema   6. Encart CTA, guide, hub   7. Responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Hero + boîte de l'outil ─────────────────────────────────────────── */
.tool .hero { padding-bottom: 120px; }
.tool .hero-inner { width: min(1040px, calc(100% - 32px)); }
.tool-box { position: relative; z-index: 2; margin: 40px auto 0; padding: 22px; text-align: left; background: var(--bg-card); color: var(--text-primary); border: 1px solid #252729; border-radius: 7px; box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.06) inset; }
.tool-form { display: flex; gap: 10px; align-items: stretch; }
.tool-form.is-stack { flex-direction: column; }
.tool-field { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool-field label { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); display: flex; justify-content: space-between; gap: 10px; }
.tool-field label small { font-weight: 500; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.tool-field label small.is-warn { color: var(--warning); }
.tool-field label small.is-bad { color: var(--danger); }
.tool-input { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--border); border-radius: 7px; background: var(--bg-primary); color: var(--text-primary); font: inherit; font-size: 15px; outline: none; transition: border-color 0.15s, box-shadow 0.15s; box-sizing: border-box; }
textarea.tool-input { height: auto; min-height: 76px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.tool-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); background: var(--bg-card); }
.tool-input::placeholder { color: var(--text-muted); }
.tool-form .btn-cta { height: 48px; padding: 0 22px; border-radius: 7px; font-size: 15px; flex-shrink: 0; align-self: flex-end; }
.tool-form .btn-cta[disabled] { opacity: 0.6; cursor: wait; }
.tool-form .btn-cta .ic.is-spin { animation: tool-spin 0.9s linear infinite; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
.tool-hint { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.tool-note { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 13.5px; color: #A0A1A2; }
.tool-note .ic { color: var(--accent); width: 14px; height: 14px; }
.tool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-row.is-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── 2. Statut et zone de résultats ─────────────────────────────────────── */
.tool-results-sec { padding-top: 0; padding-bottom: 0; }
.tool-results-sec .lp-container { padding: 0 0 clamp(56px, 7vw, 96px); }
.tool-results-sec:not(.is-live) .lp-container:has(.tool-result[hidden]):has(.tool-status[hidden]) { padding-bottom: 0; }
.tool-status { margin: -56px auto 0; position: relative; z-index: 3; max-width: 720px; padding: 18px 22px; border-radius: 7px; background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-md); font-size: 14.5px; line-height: 1.5; display: flex; gap: 12px; align-items: flex-start; }
.tool-status.is-loading { color: var(--text-secondary); }
.tool-status.is-error { border-color: #F2ABAB; color: #991B1B; background: #FEF2F2; }
.tool-status .ic { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.tool-status.is-loading .ic { color: var(--accent); animation: tool-spin 0.9s linear infinite; }
.tool-status.is-error .ic { color: var(--danger); }
.tool-result { margin-top: -56px; position: relative; z-index: 3; display: grid; gap: 20px; }
.tool-results-sec.is-live .tool-result { margin-top: -72px; }
.tool-result[hidden], .tool-status[hidden], .tool-cta[hidden] { display: none; }

/* ── 3. Composants de résultats ─────────────────────────────────────────── */
.tr-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 7px; padding: 24px; box-shadow: var(--shadow-sm); }
.tr-card h3 { margin: 0 0 14px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.tr-card h3 .ic { color: var(--accent); width: 18px; height: 18px; }
.tr-card h3 small { margin-left: auto; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.tr-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.tr-head-text h2 { margin: 0 0 6px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; }
.tr-head-text p { margin: 0; font-size: 14px; color: var(--text-secondary); line-height: 1.5; overflow-wrap: anywhere; }
.tr-head-text a { color: var(--accent-hover); text-decoration: none; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tr-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 7px; font-size: 12.5px; font-weight: 600; background: var(--bg-primary); border: 1px solid var(--border); color: var(--text-secondary); }
.tr-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
.tr-chip.ok .dot { background: var(--success); } .tr-chip.warn .dot { background: var(--warning); } .tr-chip.bad .dot { background: var(--danger); } .tr-chip.info .dot { background: var(--accent); }
.tr-score { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.tr-score svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tr-score circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.tr-score .track { stroke: var(--bg-secondary); }
.tr-score .fill { stroke: var(--accent); stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1s cubic-bezier(0.22,0.8,0.24,1); }
.tr-score.ok .fill { stroke: var(--success); } .tr-score.warn .fill { stroke: var(--warning); } .tr-score.bad .fill { stroke: var(--danger); }
.tr-score b { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.tr-score b small { margin-top: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.tr-score.is-sm { width: 96px; height: 96px; } .tr-score.is-sm b { font-size: 28px; }
.tr-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tr-check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 10px; border-radius: 7px; }
.tr-check:hover { background: var(--bg-primary); }
.tr-check .ic { width: 20px; height: 20px; margin-top: 1px; }
.tr-check.ok .ic { color: var(--success); } .tr-check.warn .ic { color: var(--warning); } .tr-check.bad .ic { color: var(--danger); } .tr-check.info .ic { color: var(--accent); }
.tr-check b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.tr-check span { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); overflow-wrap: anywhere; }
.tr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tr-kv { margin: 0; display: grid; grid-template-columns: minmax(120px, auto) 1fr; gap: 8px 16px; font-size: 13.5px; }
.tr-kv dt { color: var(--text-muted); font-weight: 500; }
.tr-kv dd { margin: 0; color: var(--text-primary); overflow-wrap: anywhere; }
.tr-kv dd.muted { color: var(--text-muted); }
.tr-list { margin: 0; padding: 0 0 0 18px; font-size: 13.5px; line-height: 1.55; color: var(--text-secondary); }
.tr-list li { margin: 4px 0; overflow-wrap: anywhere; }
.tr-list code, .tr-code { font-family: var(--font-mono, ui-monospace, "JetBrains Mono", Menlo, monospace); font-size: 12.5px; background: var(--bg-primary); border: 1px solid var(--border-light); border-radius: 6px; padding: 1px 6px; }
.tr-tree { margin: 0; padding: 0; list-style: none; font-size: 13.5px; }
.tr-tree li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid var(--border-light); }
.tr-tree li:last-child { border-bottom: 0; }
.tr-tree .tag { flex-shrink: 0; width: 30px; height: 20px; border-radius: 6px; background: var(--accent-subtle); color: var(--accent); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tr-tree .tag.h2 { background: var(--bg-secondary); color: var(--text-secondary); margin-left: 14px; }
.tr-tree .tag.h3 { background: var(--bg-secondary); color: var(--text-muted); margin-left: 28px; }
.tr-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tr-table th { text-align: left; padding: 8px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.tr-table td { padding: 10px; border-bottom: 1px solid var(--border-light); vertical-align: top; overflow-wrap: anywhere; }
.tr-table tr:last-child td { border-bottom: 0; }
.tr-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.tr-metric { padding: 14px; border-radius: 7px; background: var(--bg-primary); border: 1px solid var(--border-light); }
.tr-metric small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.tr-metric b { display: block; margin-top: 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tr-metric span { display: block; margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.tr-metric.ok b { color: var(--success); } .tr-metric.warn b { color: var(--warning); } .tr-metric.bad b { color: var(--danger); }
.tr-metric.na b { color: var(--text-muted); font-size: 16px; }
.tr-shot { width: 100%; border-radius: 7px; border: 1px solid var(--border); display: block; }
.tr-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tr-sub { margin: 18px 0 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.tr-pre { margin: 0; max-height: 320px; overflow: auto; padding: 14px 16px; border-radius: 7px; background: #121417; color: #E5E7EB; font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 12.5px; line-height: 1.55; white-space: pre; }
.tr-details summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent-hover); margin-top: 8px; }
.tr-empty { padding: 14px; border-radius: 7px; background: var(--bg-primary); color: var(--text-muted); font-size: 13.5px; text-align: center; }

/* ── 4. Simulateur SERP ─────────────────────────────────────────────────── */
.serp-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.serp-device { padding: 20px 22px; border-radius: 7px; background: #fff; border: 1px solid var(--border); font-family: Arial, Helvetica, sans-serif; }
.serp-device.is-mobile { max-width: 380px; width: 100%; padding: 16px; border-radius: 7px; box-shadow: 0 0 0 8px #121417, 0 24px 60px rgba(0,0,0,0.25); margin: 8px auto 0; }
.serp-label { font-family: var(--font-ui); font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 14px; display: flex; justify-content: space-between; }
.serp-site { display: flex; align-items: center; gap: 10px; }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #F1F3F4; display: inline-flex; align-items: center; justify-content: center; color: #5F6368; flex-shrink: 0; }
.serp-fav .ic { width: 14px; height: 14px; }
.serp-site b { display: block; font-size: 14px; font-weight: 400; color: #202124; line-height: 20px; }
.serp-site span { display: block; font-size: 12px; color: #4D5156; line-height: 16px; overflow-wrap: anywhere; }
.serp-title { margin: 6px 0 0; font-size: 20px; line-height: 26px; color: #1A0DAB; font-weight: 400; cursor: pointer; overflow: hidden; }
.serp-device.is-mobile .serp-title { font-size: 20px; line-height: 26px; }
.serp-title:hover { text-decoration: underline; }
.serp-desc { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: #4D5156; overflow: hidden; }
.serp-desc .date { color: #70757A; }
.serp-counters { display: grid; gap: 10px; }
.serp-counter { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 7px; background: var(--bg-primary); border: 1px solid var(--border-light); font-size: 13.5px; }
.serp-counter b { font-variant-numeric: tabular-nums; }
.serp-counter .bar { position: relative; flex: 1; height: 6px; margin: 0 12px; border-radius: 3px; background: var(--bg-secondary); overflow: hidden; }
.serp-counter .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--success); border-radius: 3px; transition: width 0.2s; }
.serp-counter.warn .bar i { background: var(--warning); } .serp-counter.bad .bar i { background: var(--danger); }
.serp-counter.warn b { color: var(--warning); } .serp-counter.bad b { color: var(--danger); }

/* ── 5. Générateur Schema.org ───────────────────────────────────────────── */
.sch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sch-tab { height: 36px; padding: 0 14px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-secondary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; }
.sch-tab:hover { border-color: var(--text-muted); color: var(--text-primary); }
.sch-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.sch-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sch-form .tool-field.is-full { grid-column: 1 / -1; }
.sch-group { grid-column: 1 / -1; padding: 14px; border-radius: 7px; border: 1px dashed var(--border); display: grid; gap: 12px; }
.sch-group-title { font-size: 12.5px; font-weight: 600; color: var(--text-secondary); display: flex; justify-content: space-between; align-items: center; }
.sch-group-title button, .sch-add { height: 32px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-primary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sch-group-title button:hover, .sch-add:hover { background: var(--bg-hover); }
.sch-item { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.sch-item.is-1 { grid-template-columns: 1fr auto; }
.sch-item .sch-del { height: 48px; width: 48px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sch-item .sch-del:hover { color: var(--danger); border-color: var(--danger); }
.sch-out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.sch-out-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sch-out-bar .toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-secondary); cursor: pointer; }
.sch-out-bar .btn-cta { height: 38px; padding: 0 16px; border-radius: 7px; }
.sch-out-bar .btn-cta.is-ghost { background: var(--bg-card); color: var(--text-primary); }
.sch-out-bar .ok { font-size: 13px; color: var(--success); font-weight: 600; }
.sch-missing { font-size: 13px; color: var(--warning); }
select.tool-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }

/* ── 6. Encart CTA, guide, hub ──────────────────────────────────────────── */
.tool-cta { position: relative; z-index: 3; margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border-radius: 7px; background: #121417; color: #fff; border: 1px solid #252729; }
.tool-cta-text { display: grid; gap: 6px; }
.tool-cta-text strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.tool-cta-text span { font-size: 13.5px; line-height: 1.5; color: #A5A6A7; }
.tool-cta .btn-cta { flex-shrink: 0; }
.tool-guide { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.tool-intro .h2 { margin-bottom: 18px; }
.tool-intro p, .tool-reading p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.tool-intro p strong, .tool-reading p strong, .tool-reading li strong { color: var(--text-primary); font-weight: 600; }
.tool-reading { padding: 26px 28px; border-radius: 7px; background: var(--bg-card); border: 1px solid var(--border); }
.tool-reading h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.tool-reading ul { margin: 0; padding: 0 0 0 18px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.tool-reading li { margin: 8px 0; }
.hub-list.is-tools a { grid-template-columns: auto 1fr auto auto; }
.hub-kind { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 7px; font-size: 12px; font-weight: 600; background: var(--accent-subtle); color: var(--accent); white-space: nowrap; }
.hub-why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.hub-why div { padding: 24px; border-radius: 7px; background: var(--bg-card); border: 1px solid var(--border); }
.hub-why .ic { width: 22px; height: 22px; color: var(--accent); display: block; margin-bottom: 12px; }
.hub-why b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.hub-why p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }

/* ── 7. Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .serp-wrap { grid-template-columns: 1fr; }
  .tool-guide { grid-template-columns: 1fr; }
  .tr-two { grid-template-columns: 1fr; }
  .hub-why { grid-template-columns: 1fr; }
  .tool-cta { flex-direction: column; align-items: flex-start; }
  .hub-list.is-tools a { grid-template-columns: auto 1fr auto; }
  .hub-list.is-tools .hub-kind { display: none; }
}
@media (max-width: 640px) {
  .tool-box { padding: 16px; border-radius: 7px; margin-top: 28px; }
  .tool-form:not(.is-stack) { flex-direction: column; }
  .tool-form .btn-cta { width: 100%; align-self: stretch; }
  .tool-row, .tool-row.is-3, .sch-form { grid-template-columns: 1fr; }
  .sch-item, .sch-item.is-1 { grid-template-columns: 1fr; }
  .sch-item .sch-del { width: 100%; height: 40px; }
  .tr-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .tr-chips { justify-content: center; }
  .tr-card { padding: 18px; border-radius: 7px; }
  .tool-result, .tool-status { margin-top: -40px; }
  .tool .hero { padding-bottom: 96px; }
  .tool-note { text-align: left; align-items: flex-start; }
  .tr-kv { grid-template-columns: 1fr; gap: 2px 0; }
  .tr-kv dt { margin-top: 8px; }
}
