/* WebAudit — couleurs du logo : vert #0AA896, bleu marine #0B1437 */
:root {
  --navy: #0b1437; --navy-2: #16214f; --teal: #0aa896; --teal-d: #088877; --teal-l: #e3f6f3;
  --bg: #f4f6fb; --card: #fff; --text: #0b1437; --muted: #64708b; --line: #e3e7f0;
  --critique: #d92d20; --eleve: #f04e0f; --moyen: #e0a100; --faible: #2b7fd6; --info: #8a94a8; --ok: #0aa896;
  --gA: #0aa896; --gB: #58b947; --gC: #e0a100; --gD: #f06a0f; --gE: #d92d20;
  --radius: 14px; --shadow: 0 1px 2px rgba(11,20,55,.05), 0 8px 24px rgba(11,20,55,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--teal-d); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; margin: 0 0 8px; overflow-wrap: anywhere; }
h2 { font-size: 18px; margin: 0 0 14px; }
.muted { color: var(--muted); font-weight: 400; }
.small { font-size: 13px; }
.right { text-align: right; }
.ok-text { color: var(--teal-d); } .bad-text { color: var(--critique); } .warn-text { color: #b45309; }
code { background: #eef1f7; padding: 1px 6px; border-radius: 5px; font-size: 13px; }

/* ---------- En-tête */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 10px 28px;
       background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-icon { width: 34px; height: 34px; }
.brand-name { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.brand-name b { color: var(--navy); }
.menu { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.menu a { padding: 8px 12px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; }
.menu a:hover { background: var(--bg); color: var(--navy); }
.menu a.active { background: var(--teal-l); color: var(--teal-d); }
@media (max-width: 1000px) { .top { gap: 12px; padding-left: 18px; padding-right: 18px; } .menu a { padding: 8px 9px; } }
.who { display: flex; align-items: center; gap: 14px; }
.who form { margin: 0; }
.user-chip { display: flex; align-items: center; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 600; }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; }
.avatar.small { width: 24px; height: 24px; font-size: 11px; vertical-align: middle; }

.wrap { max-width: 1040px; margin: 28px auto; padding: 0 20px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px 36px; }

/* ---------- Cartes, formulaires, boutons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h1, .card-head h2 { margin: 0; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.center-card { margin-top: 48px; }
.empty { text-align: center; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > .card { margin-bottom: 20px; }
.form label { display: block; font-weight: 600; margin: 14px 0; }
.form label small { font-weight: 400; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 180px auto; gap: 14px; align-items: end; }
.grid-3 label { margin: 0; }
input[type=text], input[type=password], select {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font: inherit; color: var(--text);
  background: #fff; border: 1.5px solid #d5dbe8; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(10,168,150,.15); }
.check { display: flex; gap: 9px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--teal); width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 20px; border-radius: 10px; border: 0;
       font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .1s, background .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 4px 14px rgba(10,168,150,.3); }
.btn-primary:hover { background: var(--teal-d); }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn:disabled { opacity: .6; cursor: wait; }
.link { background: none; border: 0; color: var(--teal-d); cursor: pointer; font: inherit; padding: 0; font-weight: 600; }
.link.danger { color: var(--critique); }
.who .link { color: var(--muted); }
.alert { padding: 13px 16px; border-radius: 11px; margin-bottom: 18px; font-weight: 500; }
.alert-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }
.alert-ok { background: var(--teal-l); border: 1px solid #a6e3da; color: var(--teal-d); }
.inline { display: inline; margin: 0; }
.inline select { margin: 0; padding: 6px 10px; width: auto; }

/* ---------- Accueil */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 40px 40px 34px; margin-bottom: 20px; color: #fff;
        background: radial-gradient(900px 300px at 85% -20%, rgba(10,168,150,.45), transparent 60%), linear-gradient(135deg, var(--navy), var(--navy-2)); }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
               border: 28px solid rgba(10,168,150,.18); }
.hero-text { position: relative; z-index: 1; max-width: 640px; }
.hero h1 { font-size: 32px; color: #fff; }
.hero p { color: #c9d2ea; margin: 0 0 22px; }
.scan-form { position: relative; z-index: 1; }
.scan-input { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 7px 7px 7px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.scan-input svg { width: 22px; height: 22px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; flex-shrink: 0; }
.scan-input input { border: 0; margin: 0; padding: 10px 4px; font-size: 17px; box-shadow: none !important; background: transparent; }
.scan-options { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; color: #dfe5f5; font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 26px; color: var(--navy); }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- Tableaux */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.table th { border-top: 0; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.table form { margin: 0; }
.table tbody tr:hover { background: #fafbfe; }
.host { font-weight: 700; color: var(--navy); text-decoration: none; }
.host:hover { color: var(--teal-d); }
.eye { color: var(--teal); font-size: 10px; vertical-align: middle; }
.grade-pill { display: inline-flex; align-items: baseline; gap: 5px; padding: 3px 11px; border-radius: 999px; font-weight: 800; color: #fff; }
.grade-pill small { font-weight: 600; opacity: .85; }
.g-A .grade-pill, .grade-pill.g-A { background: var(--gA); } .grade-pill.g-B { background: var(--gB); } .grade-pill.g-C { background: var(--gC); }
.grade-pill.g-D { background: var(--gD); } .grade-pill.g-E { background: var(--gE); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill-navy { background: var(--navy); color: #fff; } .pill-soft { background: #eef1f7; color: var(--muted); }

/* ---------- Rapport */
.report-head { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.score-ring { position: relative; width: 150px; height: 150px; flex-shrink: 0; --c: var(--gC); }
.score-ring.g-A { --c: var(--gA); } .score-ring.g-B { --c: var(--gB); } .score-ring.g-C { --c: var(--gC); }
.score-ring.g-D { --c: var(--gD); } .score-ring.g-E { --c: var(--gE); }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #edf0f6; stroke-width: 11; }
.ring-fg { fill: none; stroke: var(--c); stroke-width: 11; stroke-linecap: round; animation: ring 1.2s ease-out both; }
@keyframes ring { from { stroke-dashoffset: 327; } }
.score-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-text b { font-size: 50px; line-height: 1; color: var(--c); }
.score-text span { font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.report-title { flex: 1; min-width: 260px; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--teal-d); margin: 0 0 4px; }
.verdict { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.counts { list-style: none; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.counts li { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; font-size: 13px; background: #fff; }
.c-critique b { color: var(--critique); } .c-eleve b { color: var(--eleve); } .c-moyen b { color: var(--moyen); }
.c-faible b { color: var(--faible); } .c-ok b { color: var(--ok); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.actions form { margin: 0; }
.compare .delta { font-size: 28px; font-weight: 800; margin: 0 0 8px; color: var(--muted); }
.compare .delta.up { color: var(--teal-d); } .compare .delta.down { color: var(--critique); }
.cmp-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.cmp-list .fixed b { color: var(--teal-d); } .cmp-list .new b { color: var(--critique); }
.chart { width: 100%; height: auto; display: block; }
.chart .grid { stroke: #edf0f6; } .chart .axis { font-size: 10px; fill: var(--muted); }
.chart .area { fill: rgba(10,168,150,.12); } .chart .line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; }
.chart .pt { fill: #fff; stroke: var(--teal); stroke-width: 2.5; } .chart .pt.current { fill: var(--teal); }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 8px 18px; margin: 0; }
.facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-soft { background: #eef1f7; border-radius: 7px; padding: 2px 9px; font-size: 13px; }
.tag-soft i { color: var(--muted); font-style: normal; }
.count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: #fdecea; color: var(--critique); font-size: 12px; vertical-align: middle; }
.count.ok { background: var(--teal-l); color: var(--teal-d); }

.finding { border: 1px solid var(--line); border-left: 4px solid var(--c, var(--info)); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.finding summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; }
.finding summary::-webkit-details-marker { display: none; }
.finding summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .2s; }
.finding[open] summary::after { transform: rotate(180deg); }
.f-title { font-weight: 700; }
.cat { font-size: 12px; color: var(--muted); white-space: nowrap; }
.f-body { padding: 0 14px 12px 14px; }
.f-body p { margin: 4px 0; overflow-wrap: anywhere; }
.fix { color: #2b3555; }
.sev { flex: 0 0 auto; min-width: 72px; text-align: center; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em;
       border-radius: 6px; padding: 3px 8px; color: #fff; background: var(--c, var(--info)); }
.lv-critique { --c: var(--critique); } .lv-eleve { --c: var(--eleve); } .lv-moyen { --c: var(--moyen); }
.lv-faible { --c: var(--faible); } .lv-info { --c: var(--info); }
.goods { margin: 0; padding: 0; list-style: none; }
.goods li { position: relative; padding: 5px 0 5px 28px; }
.goods li::before { content: "✓"; position: absolute; left: 0; top: 4px; width: 19px; height: 19px; border-radius: 50%; background: var(--teal-l); color: var(--teal-d);
                    display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.code { background: var(--navy); color: #d6f5f0; border-radius: 10px; padding: 16px 18px; overflow-x: auto; font: 13px/1.6 Consolas, "Cascadia Mono", monospace; margin: 0 0 10px; white-space: pre; }
.copy-line { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.copy-line code { padding: 7px 10px; overflow-wrap: anywhere; }
.howto li { margin-bottom: 10px; }
.disclaimer { color: var(--muted); font-size: 13px; text-align: center; }

/* ---------- Écran d'analyse (radar animé) */
.scan-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px;
               background: radial-gradient(800px 500px at 30% 20%, rgba(10,168,150,.25), transparent 60%), rgba(8,13,38,.96);
               animation: fadein .3s ease-out; }
.scan-screen[hidden] { display: none; }
[hidden] { display: none !important; }
@keyframes fadein { from { opacity: 0; } }
.scan-box { display: flex; align-items: center; gap: 48px; max-width: 880px; width: 100%; color: #fff; }
.radar { position: relative; width: 300px; height: 300px; flex-shrink: 0; border-radius: 50%;
         background: radial-gradient(circle, rgba(10,168,150,.12), rgba(10,168,150,.02) 70%); box-shadow: 0 0 80px rgba(10,168,150,.25) inset; }
.radar-ring { position: absolute; border: 1px solid rgba(10,168,150,.35); border-radius: 50%; }
.r1 { inset: 0; } .r2 { inset: 50px; } .r3 { inset: 100px; }
.radar::before, .radar::after { content: ""; position: absolute; background: rgba(10,168,150,.25); }
.radar::before { left: 50%; top: 0; bottom: 0; width: 1px; } .radar::after { top: 50%; left: 0; right: 0; height: 1px; }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%;
               background: conic-gradient(from 0deg, rgba(10,168,150,.55), rgba(10,168,150,0) 70deg, transparent 360deg);
               animation: sweep 2.4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.radar-core { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
              background: var(--navy); border: 2px solid var(--teal); display: grid; place-items: center; animation: pulse 1.6s ease-in-out infinite; }
.radar-core svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linecap: round; }
@keyframes pulse { 50% { box-shadow: 0 0 0 14px rgba(10,168,150,0); } 0% { box-shadow: 0 0 0 0 rgba(10,168,150,.5); } }
.blip { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 12px var(--teal); opacity: 0; animation: blip 2.4s linear infinite; }
.b1 { left: 72%; top: 28%; animation-delay: .35s; } .b2 { left: 22%; top: 34%; animation-delay: 1.6s; background: #ffb020; box-shadow: 0 0 12px #ffb020; }
.b3 { left: 64%; top: 74%; animation-delay: .95s; } .b4 { left: 30%; top: 68%; animation-delay: 1.9s; }
@keyframes blip { 0%, 5% { opacity: 0; transform: scale(.4); } 10% { opacity: 1; transform: scale(1.3); } 45% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; } }
.scan-info { flex: 1; min-width: 0; }
.scan-kicker { color: var(--teal); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; margin: 0 0 6px; }
.scan-host { font-size: 28px; margin: 0 0 18px; color: #fff; overflow-wrap: anywhere; }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.1); overflow: hidden; }
.progress-bar { height: 100%; width: 3%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), #5ee0cf); transition: width .6s ease;
                background-size: 200% 100%; animation: shine 1.5s linear infinite; }
@keyframes shine { from { background-position: 200% 0; } to { background-position: 0 0; } }
.scan-meta { color: #9fb0d6; font-size: 13px; margin: 8px 0 16px; font-variant-numeric: tabular-nums; }
.steps { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }
.steps li { display: flex; align-items: center; gap: 11px; color: #6f7ea6; transition: color .3s; }
.steps .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #3a4775; flex-shrink: 0; transition: all .3s; position: relative; }
.steps li.active { color: #fff; font-weight: 600; }
.steps li.active .dot { border-color: var(--teal); border-top-color: transparent; animation: spin .8s linear infinite; }
.steps li.done { color: #b9c5e3; }
.steps li.done .dot { background: var(--teal); border-color: var(--teal); }
.steps li.done .dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 10px; color: var(--navy); font-weight: 900; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-note { color: #7d8bb3; font-size: 13px; margin: 0; }
.scan-error { color: #ffb4ab; background: rgba(217,45,32,.15); border: 1px solid rgba(217,45,32,.4); border-radius: 10px; padding: 10px 14px; }

/* ---------- Note par catégorie */
.cat-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: center; }
.radar-chart { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; overflow: visible; }
.radar-chart .web { fill: none; stroke: #e3e7f0; }
.radar-chart .web:last-of-type { stroke: #cfd6e4; }
.radar-chart .spoke { stroke: #e3e7f0; }
.radar-chart .shape { fill: rgba(10,168,150,.22); stroke: var(--teal); stroke-width: 2.5; stroke-linejoin: round; animation: grow .9s ease-out both; transform-origin: center; }
@keyframes grow { from { transform: scale(.2); opacity: 0; } }
.radar-chart .dot { fill: #fff; stroke-width: 2.5; stroke: var(--teal); }
.radar-chart .dot.bad { stroke: var(--critique); } .radar-chart .dot.mid { stroke: var(--moyen); } .radar-chart .dot.na { stroke: var(--muted); }
.radar-chart .lbl { font-size: 11.5px; font-weight: 700; fill: var(--navy); }
.radar-chart .val { font-size: 11px; font-weight: 700; fill: var(--muted); }
.radar-chart .val.good { fill: var(--teal-d); } .radar-chart .val.mid { fill: #b07e00; } .radar-chart .val.bad { fill: var(--critique); }
.cat-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat-bars li { display: grid; grid-template-columns: 120px 1fr 36px; align-items: center; gap: 12px; }
.cat-name { font-weight: 600; font-size: 14px; }
.bar { height: 10px; border-radius: 99px; background: #edf0f6; overflow: hidden; }
.fill { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1s ease-out; background: var(--teal); }
.fill.mid { background: var(--moyen); } .fill.bad { background: var(--critique); }
.cat-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.cat-bars b.good { color: var(--teal-d); } .cat-bars b.mid { color: #b07e00; } .cat-bars b.bad { color: var(--critique); } .cat-bars b.na { color: var(--muted); }
.paper-cats .cat-grid { grid-template-columns: 260px 1fr; }
@media (max-width: 700px) { .cat-grid, .paper-cats .cat-grid { grid-template-columns: 1fr; } }

/* ---------- Partage et Discord */
.share-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 11px; background: var(--teal-l); }
.share-box code { background: #fff; padding: 7px 10px; overflow-wrap: anywhere; flex: 1; min-width: 220px; }
.share-box form { margin: 0; }
.temp-pass { font: 700 18px/1.2 Consolas, monospace; letter-spacing: .04em; background: #fff; padding: 8px 12px; border-radius: 8px; display: inline-block; margin: 6px 0; }
.temp-card { border: 2px solid var(--teal); }
.actions-cell { white-space: nowrap; }
.actions-cell form { display: inline-block; margin-left: 14px; }
.share-banner { background: var(--navy); color: #cfd8f0; text-align: center; font-size: 13px; padding: 8px 12px; }

/* ---------- Onglet SEO */
.hero-seo { background: radial-gradient(900px 300px at 85% -20%, rgba(94,224,207,.35), transparent 60%), linear-gradient(135deg, #0b1437, #123a5a); }
.serp { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card); font-family: Arial, sans-serif; margin-bottom: 10px; }
.serp-site { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); line-height: 1.3; }
.serp-site small { color: var(--muted); }
.serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #eef1f7; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--navy); }
.serp-title { color: #1a0dab; font-size: 19px; margin: 8px 0 3px; line-height: 1.3; }
.serp-desc { color: #4d5156; font-size: 14px; margin: 0; line-height: 1.5; }
.gauges { display: flex; gap: 22px; margin-bottom: 10px; }
.mini-gauge { width: 112px; height: 112px; }
.mini-gauge .score-text b { font-size: 30px; }
.mini-gauge .score-text span { font-size: 11px; }
.small-facts { grid-template-columns: 1fr auto; font-size: 13.5px; }
.tips { margin: 4px 0 0; padding-left: 18px; }
.kw-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 26px; align-items: start; }
.kw-table td, .kw-table th { padding: 6px 8px; }
.kw-bar { display: block; width: 110px; height: 8px; border-radius: 99px; background: #edf0f6; overflow: hidden; }
.kw-bar .fill { background: var(--teal); }
.yes { color: var(--teal-d); font-weight: 800; } .no { color: var(--critique); font-weight: 700; }
.kw-tags .tag-soft { padding: 4px 10px; }
.kw-tags .in-title { background: var(--teal-l); color: var(--teal-d); font-weight: 600; }
h3 { font-size: 15px; margin: 0 0 10px; }
.table-scroll { overflow-x: auto; }
.pages-table { font-size: 13.5px; min-width: 640px; }
.pages-table td { padding: 8px 6px; }
.page-cell a { color: var(--navy); font-weight: 600; text-decoration: none; }
.page-cell a:hover { color: var(--teal-d); }
.len { display: inline-block; min-width: 34px; text-align: center; padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.len.good { background: var(--teal-l); color: var(--teal-d); } .len.mid { background: #fff4d6; color: #a06a00; } .len.bad { background: #fdecea; color: var(--critique); }
.row-bad { background: #fff6f5; }
.delta-chip { align-self: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.delta-chip.up { color: var(--teal-d); } .delta-chip.down { color: var(--critique); }
@media (max-width: 760px) { .kw-grid { grid-template-columns: 1fr; } .gauges { justify-content: center; } }

/* « Où et quoi » : emplacement exact de chaque problème */
.where { margin: 10px 0 8px; }
.where-title { font-weight: 700; font-size: 13px; margin: 0 0 6px !important; }
.where-table { width: 100%; border-collapse: collapse; font-size: 13px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.where-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 7px 10px; background: #f6f8fc; border-bottom: 1px solid var(--line); }
.where-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.where-table tr:last-child td { border-bottom: 0; }
.where-page { width: 30%; min-width: 120px; font-weight: 600; }
.where-page a { text-decoration: none; }
.where-page a:hover { text-decoration: underline; }
.where-count { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #eef1f7; color: var(--muted); font-size: 11.5px; font-weight: 600; vertical-align: 1px; }

/* Onglet GEO */
.hero-geo { background: radial-gradient(900px 300px at 85% -20%, rgba(155,140,255,.35), transparent 60%), linear-gradient(135deg, #0b1437, #2a1f5c); }
.id-facts { grid-template-columns: 150px 1fr; margin-bottom: 12px; }
.id-facts .id-mark { display: inline-block; width: 16px; }
.bot-table td, .bot-table th { padding: 7px 8px; }
.qa-list { margin: 0; padding-left: 18px; display: grid; gap: 10px; }
.qa-list li { overflow-wrap: anywhere; }
.tools-grid { gap: 22px; margin: 0; }
.tools-grid h3 { font-size: 15px; margin: 0 0 6px; }
.code-box { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow-y: auto; font-size: 12px; }
.tool-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Onglet RGPD */
.hero-rgpd { background: radial-gradient(900px 300px at 85% -20%, rgba(43,127,214,.4), transparent 60%), linear-gradient(135deg, #0b1437, #13325e); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.bodacc-list { margin: 0; padding-left: 16px; font-size: 13px; }
.legal-pages { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.disclaimer { margin: 10px 0 0; }

/* Mot-clé cible par page */
.kw-pages { display: grid; gap: 8px; }
.kw-page { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.kw-page.has-kw { border-color: #cfe9e4; }
.kw-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kw-path { flex: 0 1 260px; min-width: 120px; font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kw-form input[type=text] { flex: 1 1 200px; min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.kw-score { padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.kw-score.good { background: var(--teal-l); color: var(--teal-d); } .kw-score.mid { background: #fff4d6; color: #a06a00; } .kw-score.bad { background: #fdecea; color: var(--critique); }
.kw-result summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 6px 0 2px; }
.kw-checks { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 16px; }
.kw-checks li { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.kw-ico { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.st-ok .kw-ico { background: var(--teal-l); color: var(--teal-d); }
.st-mid .kw-ico { background: #fff4d6; color: #a06a00; }
.st-bad .kw-ico { background: #fdecea; color: var(--critique); }

/* Rapport client : emplacements et rapport complet */
.paper-where { margin: 6px 0 0; padding-left: 16px; font-size: 11.5px; color: #3b4560; }
.paper-where li { margin: 1px 0; overflow-wrap: anywhere; }
.full-scores { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 6px 0 22px; }
.full-score { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.full-score .score-ring { width: 92px; height: 92px; flex: none; }
.full-score p { margin: 4px 0 0; font-size: 13px; }
.full-note { grid-column: 1 / -1; margin: -6px 0 0; }
.part-title { font-size: 20px; margin: 26px 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--navy); color: #fff; }
.share-full { margin: 6px 0 4px; }
@media (max-width: 760px) { .full-scores { grid-template-columns: 1fr; } .kw-path { flex-basis: 100%; } }
html[data-theme="dark"] body:not(.print-page) .serp { background: #fff; }
html[data-theme="dark"] body:not(.print-page) .serp-site { color: #202124; }
html[data-theme="dark"] body:not(.print-page) .serp-site small { color: #4d5156; }
html[data-theme="dark"] body:not(.print-page) .serp-fav { color: #0b1437; }
html[data-theme="dark"] body:not(.print-page) .kw-bar { background: #1f2a55; }
html[data-theme="dark"] body:not(.print-page) .hero-rgpd { background: radial-gradient(900px 300px at 85% -20%, rgba(43,127,214,.32), transparent 60%), linear-gradient(135deg, #0d1640, #13325e); }
html[data-theme="dark"] body:not(.print-page) .hero-geo { background: radial-gradient(900px 300px at 85% -20%, rgba(155,140,255,.3), transparent 60%), linear-gradient(135deg, #0d1640, #2a1f5c); }
html[data-theme="dark"] body:not(.print-page) .where-table { background: #0d1530; border-color: #2b3866; }
html[data-theme="dark"] body:not(.print-page) .where-table th { background: #111b3d; border-color: #2b3866; }
html[data-theme="dark"] body:not(.print-page) .where-table td { border-color: #22305c; }
html[data-theme="dark"] body:not(.print-page) .where-count { background: #1b2550; color: #c9d3ee; }
html[data-theme="dark"] body:not(.print-page) .kw-page { border-color: #2b3866; }
html[data-theme="dark"] body:not(.print-page) .kw-page.has-kw { border-color: rgba(10,168,150,.45); }
html[data-theme="dark"] body:not(.print-page) :is(.kw-score.mid, .st-mid .kw-ico) { background: rgba(224,161,0,.16); color: #f2c14e; }
html[data-theme="dark"] body:not(.print-page) :is(.kw-score.bad, .st-bad .kw-ico) { background: rgba(217,45,32,.18); color: #ff9a8f; }
html[data-theme="dark"] body:not(.print-page) :is(.kw-score.good, .st-ok .kw-ico) { background: rgba(10,168,150,.18); color: #5ee0cf; }
html[data-theme="dark"] body:not(.print-page) .len.mid { background: rgba(224,161,0,.16); color: #f2c14e; }
html[data-theme="dark"] body:not(.print-page) .len.bad { background: rgba(217,45,32,.18); color: #ff9a8f; }
html[data-theme="dark"] body:not(.print-page) .row-bad { background: rgba(217,45,32,.08); }
html[data-theme="dark"] body:not(.print-page) .hero-seo { background: radial-gradient(900px 300px at 85% -20%, rgba(94,224,207,.3), transparent 60%), linear-gradient(135deg, #0d1640, #123a5a); }

/* ---------- Bouton thème */
.theme-toggle { margin-left: auto; order: 5; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card);
                display: grid; place-items: center; cursor: pointer; color: var(--navy); flex-shrink: 0; }
.theme-toggle:hover { border-color: var(--teal); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.top .menu { order: 2; } .top .who { order: 6; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; }

/* ---------- Mode sombre (la page A4 du rapport client reste claire) */
html[data-theme="dark"] body:not(.print-page) {
  --bg: #0a1024; --card: #111a3a; --text: #e6ebf8; --navy: #e6ebf8; --muted: #93a0c2; --line: #24305a;
  --teal-l: rgba(10,168,150,.16); --teal-d: #2fd3bd; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}
html[data-theme="dark"] body:not(.print-page) .top { background: rgba(10,16,36,.9); }
html[data-theme="dark"] body:not(.print-page) :is(input[type=text], input[type=password], select) { background: #0d1530; border-color: #2b3866; color: var(--text); }
html[data-theme="dark"] body:not(.print-page) :is(.btn-ghost, .counts li, .finding, .share-box code, .temp-pass) { background: #0d1530; }
html[data-theme="dark"] body:not(.print-page) .btn-ghost { color: var(--text); border-color: #2b3866; }
html[data-theme="dark"] body:not(.print-page) .scan-input { background: #0d1530; border: 1.5px solid #2b3866; }
html[data-theme="dark"] body:not(.print-page) .scan-input input { background: transparent; border: 0; }
html[data-theme="dark"] body:not(.print-page) :is(code, .tag-soft, .pill-soft) { background: #1b2550; color: #c9d3ee; }
html[data-theme="dark"] body:not(.print-page) .table tbody tr:hover { background: #142048; }
html[data-theme="dark"] body:not(.print-page) :is(.ring-bg, .bar) { stroke: #1f2a55; background: #1f2a55; }
html[data-theme="dark"] body:not(.print-page) :is(.radar-chart .web, .radar-chart .spoke, .chart .grid) { stroke: #26325f; }
html[data-theme="dark"] body:not(.print-page) :is(.radar-chart .dot, .chart .pt) { fill: #111a3a; }
html[data-theme="dark"] body:not(.print-page) .chart .pt.current { fill: var(--teal); }
html[data-theme="dark"] body:not(.print-page) .avatar { background: var(--teal); color: #08122e; }
html[data-theme="dark"] body:not(.print-page) .pill-navy { background: var(--teal); color: #08122e; }
html[data-theme="dark"] body:not(.print-page) .fix { color: #c4cde6; }
html[data-theme="dark"] body:not(.print-page) .alert-error { background: rgba(217,45,32,.15); border-color: rgba(217,45,32,.45); color: #ffb4ab; }
html[data-theme="dark"] body:not(.print-page) .alert-ok { border-color: rgba(10,168,150,.45); }
html[data-theme="dark"] body:not(.print-page) .count { background: rgba(217,45,32,.18); color: #ff9a8f; }
html[data-theme="dark"] body:not(.print-page) .update-modal { background: var(--card); }
html[data-theme="dark"] body:not(.print-page) .brand-logo { background: #fff; border-radius: 8px; padding: 3px 6px; }
html[data-theme="dark"] body:not(.print-page) .brand-icon { filter: drop-shadow(0 0 0 transparent); }
html[data-theme="dark"] body:not(.print-page) .code { background: #060b1c; }
html[data-theme="dark"] body:not(.print-page) .hero { background: radial-gradient(900px 300px at 85% -20%, rgba(10,168,150,.4), transparent 60%), linear-gradient(135deg, #0d1640, #162257); }

/* ---------- Nouvelle version : fenêtre bloquante */
body.locked { overflow: hidden; }
.update-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
                  background: rgba(8,13,38,.72); backdrop-filter: blur(6px); animation: fadein .25s ease-out; }
.update-modal { width: 100%; max-width: 420px; background: #fff; border-radius: 18px; padding: 30px 28px 26px; text-align: center;
                box-shadow: 0 30px 80px rgba(0,0,0,.35); animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
.update-modal h2 { font-size: 22px; margin: 6px 0 8px; }
.update-modal p { color: var(--muted); margin: 0 0 18px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.update-icon { width: 64px; height: 64px; margin: 0 auto 6px; border-radius: 50%; background: var(--teal-l); display: grid; place-items: center; }
.update-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--teal-d); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
                   animation: spin 2.4s linear infinite; }
.update-card { text-align: center; }

/* ---------- Rapport client (page A4) */
.print-page { background: #e9ecf3; }
.print-toolbar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; background: var(--navy); color: #fff; z-index: 5; }
.paper { width: 210mm; min-height: 297mm; margin: 24px auto; background: #fff; padding: 18mm 18mm 14mm; box-shadow: 0 10px 40px rgba(11,20,55,.15); color: var(--navy); font-size: 13.5px; }
.paper-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 3px solid var(--teal); }
.paper-brand { display: flex; align-items: center; gap: 10px; }
.paper-brand img { height: 40px; width: auto; }
.paper-brand .brand-icon { width: 40px; height: 40px; }
.paper-agency { text-align: right; font-size: 12px; color: var(--muted); }
.paper-agency b { color: var(--navy); font-size: 14px; }
.paper-cover { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0 18px; }
.paper-cover h1 { font-size: 30px; margin: 4px 0; }
.paper-cover .score-ring { width: 130px; height: 130px; }
.paper-cover .score-text b { font-size: 44px; }
.paper h2 { font-size: 16px; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.paper-summary { background: var(--teal-l); border-radius: 12px; padding: 4px 18px 10px; }
.paper-summary h2 { border: 0; }
.paper-summary p { margin: 6px 0; }
.paper-summary .evolution { margin-top: 10px; }
.paper-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.paper-table th { text-align: left; background: var(--navy); color: #fff; padding: 7px 9px; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.paper-table td { padding: 8px 9px; border-bottom: 1px solid var(--line); vertical-align: top; }
.paper-table td:first-child { width: 86px; }
.paper-table tr { break-inside: avoid; }
.two-cols { columns: 2; column-gap: 24px; }
.two-cols li { break-inside: avoid; }
.paper-method p { color: var(--muted); font-size: 12px; }
.paper-foot { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }

/* ---------- Petits écrans */
@media (max-width: 860px) {
  .top { flex-wrap: wrap; gap: 10px 16px; padding: 10px 16px; }
  .menu, .top .menu { order: 7; width: 100%; overflow-x: auto; }
  .theme-toggle { margin-left: auto; }
  .who { margin-left: auto; }
  .user-chip span + * { display: none; }
  .grid-2, .stats { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .scan-box { flex-direction: column; gap: 26px; text-align: left; }
  .radar { width: 200px; height: 200px; } .r2 { inset: 33px; } .r3 { inset: 66px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 12px; margin-top: 16px; }
  .card { padding: 18px 16px; }
  .hero { padding: 26px 18px; }
  .hero h1 { font-size: 24px; }
  .scan-input { flex-wrap: wrap; padding: 8px; }
  .scan-input input { flex: 1; min-width: 0; }
  .scan-input .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; } .facts dt { margin-top: 6px; }
  .report-head { flex-direction: column; align-items: flex-start; }
  .finding summary { flex-wrap: wrap; } .cat { display: none; }
  .table.history th:nth-child(3), .table.history td:nth-child(3) { display: none; }
  .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(4), .table td:nth-child(4) { display: none; }
  .who .link { display: none; }
  .paper { width: auto; min-height: 0; margin: 12px; padding: 18px; }
  .paper-cover { flex-direction: column-reverse; align-items: flex-start; }
}

/* ---------- Impression */
@page { size: A4; margin: 0; }
@media print {
  body, .print-page { background: #fff; }
  .top, .noprint, .foot, .actions, .scan-screen { display: none !important; }
  .paper { width: auto; min-height: 0; margin: 0; padding: 14mm 15mm 12mm; box-shadow: none; }
  .card { box-shadow: none; break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .finding:not([open]) .f-body { display: block; }
  .page-break { break-before: page; }
  .fill { transition: none; }
  .radar-chart .shape { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ---------- v2.9 : groupes de boutons, sous-onglets des rapports, avertissement ---------- */
.report-head .report-title { flex: 1 1 380px; }
.action-groups { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.action-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.action-group form { margin: 0; }
.ag-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.rtabs { position: sticky; top: 64px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; margin: 0 0 20px; padding: 6px;
         background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); scrollbar-width: thin; }
.rtabs button { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border: 0; border-radius: 10px;
                background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rtabs button:hover { background: var(--bg); color: var(--navy); }
.rtabs button.active { background: var(--navy); color: #fff; }
.rtab-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
              background: var(--bg); color: var(--navy); font-size: 12px; font-weight: 700; }
.rtab-count.bad { background: #fde8e8; color: #b42318; }
.rtab-count.good { background: var(--teal-l); color: var(--teal-d); }
.rtabs button.active .rtab-count { background: rgba(255,255,255,.18); color: #fff; }
[data-tab] { scroll-margin-top: 140px; }
.notice-evol { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius);
               background: #eef3ff; border: 1px solid #d5e0fb; color: var(--navy); font-size: 14px; line-height: 1.5; }
.notice-evol svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: #3b5bdb; stroke-width: 2; stroke-linecap: round; margin-top: 1px; }
.notice-evol p { margin: 0; }
html[data-theme="dark"] body:not(.print-page) .notice-evol { background: #131d45; border-color: #24306a; color: #dfe5ff; }
html[data-theme="dark"] body:not(.print-page) .rtab-count { background: #1f2a55; color: #dfe5ff; }
html[data-theme="dark"] body:not(.print-page) .rtabs button.active { background: var(--teal); }
@media (max-width: 600px) { .rtabs { top: 0; } .rtabs button { padding: 9px 12px; } }
@media print { .rtabs, .action-groups, .notice-evol { display: none !important; } [data-tab] { display: block !important; } section.grid-2[data-tab] { display: grid !important; } }
a.stat { text-decoration: none; color: inherit; } a.stat:hover { border-color: var(--teal); }
.limits { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius);
          background: #fff7e6; border: 1px solid #f5d48a; color: #6b4a00; font-size: 14px; line-height: 1.5; }
.limits svg { flex: 0 0 22px; width: 22px; height: 22px; fill: none; stroke: #d99100; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.limits ul { margin: 4px 0 0; padding-left: 18px; }
html[data-theme="dark"] body:not(.print-page) .limits { background: #2e2410; border-color: #6b5214; color: #ffe2a6; }
@media print { .limits { display: flex !important; } }
.scan-profile { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; color: inherit; font-weight: 600; }
.scan-profile select { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); font: inherit; font-weight: 500; max-width: 100%; }
