:root {
  --cream: #faf4f2; --paper: #fff; --ink: #0b0b0b; --muted: #5b5552; --line: #e9dfdb;
  --blue: #d2edff; --pink: #ffc3c3; --green: #2bb673; --green-ink: #137445; --orange: #ff6235; --red: #cf3434;
  --mint: #d9f4e6; --sev-critical: #cf3434; --sev-high: #ff6235; --sev-medium: #f2a93b; --sev-low: #6fb1dc; --sev-info: #a8a29e;
  --r-lg: 32px; --r-md: 20px; --r-sm: 12px;
  --head: "Poppins", system-ui, sans-serif; --body: "Lato", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--cream); padding: 8px 14px; border-radius: 99px; z-index: 50; }
.skip:focus { left: 12px; }
[hidden] { display: none !important; }

/* en-tête */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(250, 244, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.top-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }

/* boutons et pastilles */
.btn { font: 600 .95rem var(--head); border: 2px solid var(--ink); border-radius: 99px; padding: 11px 24px; cursor: pointer; background: transparent; color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #222; }
.btn-green { background: var(--green); border-color: var(--green); color: #0b0b0b; }
.btn-small { padding: 7px 16px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: progress; transform: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font: 500 .9rem var(--head); border: 1.5px solid var(--ink); background: transparent; border-radius: 99px; padding: 7px 16px; cursor: pointer; color: var(--ink); }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.pill .n { opacity: .6; margin-left: 6px; font-weight: 400; }

/* mise en page */
main:focus { outline: none; }
main { padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 48px) 72px; max-width: 1280px; margin: 0 auto; outline: none; }
.eyebrow { font: 600 .8rem var(--head); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.hero { display: grid; gap: 20px; max-width: 900px; margin-bottom: 44px; }
.hero p { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.section { margin-top: 56px; }
.section > header { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.card { background: var(--paper); border-radius: var(--r-lg); padding: 28px; position: relative; }
.card.blue { background: var(--blue); } .card.pink { background: var(--pink); } .card.ink { background: var(--ink); color: var(--cream); } .card.green { background: var(--green); }
.card h3 { margin-bottom: 6px; }
.muted { color: var(--muted); }
.card.ink .muted { color: #b9b2ae; }
a.card { text-decoration: none; display: block; transition: transform .2s; }


/* cartes projet */
.site-card { display: grid; gap: 20px; min-height: 200px; align-content: space-between; }
.site-card .row { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.site-card .name { font: 700 1.3rem var(--head); word-break: break-word; }
.delta { font: 600 .85rem var(--head); display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: rgba(0,0,0,.07); }
.delta.up { background: #c9f0dc; color: #0b5a33; } .delta.down { background: #ffd9d9; color: #8d1f1f; }
.sevs { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; vertical-align: baseline; }

/* score */
.ring { position: relative; width: var(--s, 96px); height: var(--s, 96px); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .v { position: absolute; inset: 0; display: grid; place-items: center; font: 700 calc(var(--s, 96px) * .32) var(--head); }
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.kpi { border-radius: var(--r-md); padding: 20px 22px; background: var(--paper); }
.kpi .v { font: 700 2.2rem/1.1 var(--head); display: block; }
.kpi .l { font-size: .9rem; color: var(--muted); }
.kpi.blue { background: var(--blue); } .kpi.pink { background: var(--pink); } .kpi.blue .l, .kpi.pink .l { color: var(--ink); opacity: .78; }

/* en-tête de page détail */
.page-head { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }
.page-head .grow { flex: 1; min-width: 260px; display: grid; gap: 12px; }
.crumb { font: 500 .9rem var(--head); text-decoration: none; color: var(--muted); }
.crumb:hover { color: var(--ink); }

/* graphiques */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 12px var(--body); fill: var(--muted); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .area { opacity: .16; }

/* tableaux et listes */
.table-wrap { background: var(--paper); border-radius: var(--r-lg); padding: 8px 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th { text-align: left; font: 600 .75rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 14px 14px 10px; white-space: nowrap; }
td { padding: 13px 14px; border-top: 1px solid var(--line); vertical-align: top; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--cream); }
td a { text-underline-offset: 3px; }
.url { word-break: break-all; }
.detail { display: block; color: var(--muted); font-size: .85rem; margin-top: 2px; word-break: break-word; }
.sev-badge { display: inline-flex; align-items: center; font: 600 .75rem var(--head); white-space: nowrap; }

.acc { background: var(--paper); border-radius: var(--r-md); margin-bottom: 10px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 14px; font: 600 1rem var(--head); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { margin-left: auto; font-weight: 500; color: var(--muted); }
.acc summary::after { content: "+"; font: 400 1.5rem var(--head); width: 24px; text-align: center; }
.acc[open] summary::after { content: "–"; }
.acc ul { list-style: none; margin: 0; padding: 0 22px 18px; font-size: .92rem; }
.acc li { padding: 8px 0; border-top: 1px solid var(--line); }

/* formulaires */
.field { display: grid; gap: 6px; }
.field label { font: 600 .85rem var(--head); }
input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="password"], select {
  font: 400 1rem var(--body); padding: 12px 18px; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); min-width: 0; }
input[type="search"] { min-width: 240px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.form-row .field { flex: 1; min-width: 200px; }
.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.note { font-size: .9rem; color: var(--muted); max-width: 70ch; }

/* idées de mots-clés */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper); border-radius: 99px; padding: 8px 16px; font-size: .95rem; border: 0; cursor: pointer; font-family: var(--body); color: var(--ink); }
.chip:hover { background: var(--ink); color: #fff; }
.chip.question { background: var(--blue); } .chip.search_console { background: var(--pink); }
.chip:hover { background: var(--ink); }

/* comparaison concurrents */
.cmp td.best { background: #d9f4e6; color: #0b5a33; font-weight: 700; }
.cmp td:first-child, .cmp th:first-child { position: sticky; left: 0; background: var(--paper); }

/* superposition (nouvel audit, tâches) */
#overlay { position: fixed; inset: 0; z-index: 65; background: rgba(11,11,11,.55); display: flex; padding: 16px; overflow: auto; }
#overlay[hidden] { display: none; }
.modal { background: var(--cream); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); width: min(620px, 100%); display: grid; gap: 20px; margin: auto; }
.log { background: #0b0b0b; color: #d9d3cf; font: 12px/1.6 ui-monospace, Menlo, monospace; border-radius: var(--r-md); padding: 14px 16px; max-height: 220px; overflow: auto; white-space: pre-wrap; word-break: break-all; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.error { background: #ffd9d9; color: #7a1818; padding: 12px 18px; border-radius: var(--r-md); font-weight: 700; }

.empty { text-align: center; padding: 56px 24px; display: grid; gap: 16px; justify-items: center; }
.empty .art { width: 120px; height: 120px; }
.foot { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 36px 16px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.foot a { color: var(--muted); }

/* page publique */
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; margin-bottom: 72px; }
.landing-hero .hero { margin: 0; }
.hero-art { aspect-ratio: 1; border-radius: 48px; background: var(--blue); display: grid; place-items: center; position: relative; overflow: hidden; }
.hero-art img { width: 58%; }
.hero-art .bubble { position: absolute; background: #fff; border-radius: 99px; padding: 10px 18px; font: 600 .9rem var(--head); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.features { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.features .card p { color: inherit; opacity: .8; margin-top: 8px; }
.icon { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 26px; height: 26px; }
.price { font: 700 2.6rem/1 var(--head); margin: 14px 0 4px; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 8px; }
.plan li::before { content: "✓"; color: var(--green-ink); font-weight: 700; margin-right: 10px; }
.plan.ink li::before { color: var(--green); }
.tag { display: inline-block; font: 600 .75rem var(--head); text-transform: uppercase; letter-spacing: .1em; background: var(--green); color: #0b0b0b; padding: 4px 12px; border-radius: 99px; }

/* compte */
.meter { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.meter.full span { background: var(--orange); }
.progress { height: 14px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); transition: width .4s; }
.danger { border-color: var(--red); color: var(--red); }

@media (max-width: 860px) { .landing-hero { grid-template-columns: 1fr; } .hero-art { max-width: 360px; } }

@media (max-width: 720px) {
  .top { flex-wrap: wrap; gap: 12px; }
  .brand img { height: 28px; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 1.5s !important; } html { scroll-behavior: auto; } }
.th-sort { border: 0; padding: 0; background: none; font: inherit; text-transform: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan.ink .price small { color: #b9b2ae; }

/* recommandations */
.insights { display: grid; gap: 18px; }
.insight { display: grid; gap: 14px; }
.insight.good { background: var(--mint); }
.insight-head { display: flex; gap: 16px; align-items: center; }
.insight-n { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font: 700 1.1rem var(--head); }
.insight-n.ok { background: var(--green-ink); }
.insight-action { font-weight: 700; }
.table-wrap.inner { border-radius: var(--r-md); padding: 4px 8px; }
.table-wrap.inner td, .table-wrap.inner th { padding: 10px; font-size: .9rem; }
.chips.small .chip { font-size: .85rem; padding: 5px 12px; cursor: default; background: rgba(255,255,255,.7); }
.chips.small .chip:hover { background: rgba(255,255,255,.7); color: var(--ink); }

/* plan d'action */
.impact { font: 600 .95rem var(--head); padding: 10px 16px; border-radius: var(--r-md); background: var(--cream); }
.impact.good { background: #d9f4e6; color: #0b5a33; }
.pages-list summary { cursor: pointer; font: 600 .9rem var(--head); }
.pages-list ul { margin: 10px 0 0; padding-left: 18px; font-size: .9rem; display: grid; gap: 4px; }

/* mots-clés */
.kd { display: inline-block; min-width: 38px; text-align: center; font: 700 .85rem var(--head); padding: 3px 8px; border-radius: 99px; }
.kd-easy { background: #c9f0dc; color: #0b5a33; } .kd-mid { background: #fdebc4; color: #7a5200; }
.kd-hard { background: #ffd9c7; color: #8a3200; } .kd-vhard { background: #ffd0d0; color: #8d1f1f; }
.intent { font: 600 .78rem var(--head); padding: 3px 10px; border-radius: 99px; background: #efe7e3; color: #0b0b0b; white-space: nowrap; }
.intent-commercial { background: #d2edff; } .intent-transactionnel { background: #c9f0dc; } .intent-info { background: #f1e8ff; } .intent-navigation { background: #ffc3c3; } .intent-local { background: #fdebc4; }
.table-wrap td svg { width: 90px; height: 24px; display: block; }

/* suivi de positions */
tr.me td { background: var(--mint); }
.legend-row { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; margin-top: 8px; }
.top10 { margin: 0; padding-left: 24px; display: grid; gap: 8px; font-size: .92rem; }
.top10 li.me { background: var(--mint); border-radius: 8px; padding: 4px 8px; }
.delta { white-space: nowrap; }

/* analyse de domaine */
.dist { display: flex; height: 22px; border-radius: 99px; overflow: hidden; background: var(--line); }
.dist span { display: block; }

/* ===== barre de navigation ===== */
.top { gap: 18px; transition: background .3s, border-color .3s; }
.top-section { display: inline-flex; align-items: center; gap: 10px; font: 600 .95rem var(--head); text-decoration: none; padding: 8px 16px;
  border-radius: 99px; background: var(--paper); border: 1.5px solid var(--line); margin-left: 6px; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(43,182,115,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(43,182,115,0); } 100% { box-shadow: 0 0 0 0 rgba(43,182,115,0); } }
.top-link { font: 600 .95rem var(--head); text-decoration: none; padding: 8px 14px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font: 700 1.1rem var(--head);
  text-decoration: none; border: 2px solid var(--ink); transition: transform .2s, background .2s; }
.avatar:hover { transform: rotate(-8deg) scale(1.06); background: var(--blue); }

.burger { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px 0 14px; border-radius: 99px; border: 2px solid var(--ink);
  background: var(--ink); color: var(--cream); cursor: pointer; font: 600 .95rem var(--head); position: relative; z-index: 61; transition: background .3s, color .3s, border-color .3s; }
.burger:hover { background: #222; }
.burger-lines { position: relative; width: 22px; height: 14px; display: block; }
.burger-lines span { position: absolute; left: 0; width: 100%; height: 2.5px; border-radius: 3px; background: var(--green);
  transition: transform .45s cubic-bezier(.7,-0.4,.3,1.4), top .3s, width .3s; }
.burger-lines span:first-child { top: 1px; }
.burger-lines span:last-child { top: 10px; width: 70%; }
.burger:hover .burger-lines span:last-child { width: 100%; }
.menu-open .burger { background: var(--green); border-color: var(--green); color: #0b0b0b; }
.menu-open .burger-lines span { background: #0b0b0b; width: 100%; }
.menu-open .burger-lines span:first-child { top: 6px; transform: rotate(45deg); }
.menu-open .burger-lines span:last-child { top: 6px; transform: rotate(-45deg); }

/* barre au-dessus du menu ouvert : fond transparent, logo clair */
.top { z-index: 60; }
.top.menu-open { background: transparent; border-color: transparent; backdrop-filter: none; }
.top.menu-open .top-section, .top.menu-open .top-actions { opacity: 0; pointer-events: none; }
.top-section, .top-actions { transition: opacity .25s; }
html.no-scroll { overflow: hidden; }

/* ===== menu plein écran ===== */
.menu { position: fixed; inset: 0; z-index: 55; background: #0b0b0b; color: #faf4f2; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 70px) 38px); transition: clip-path .6s cubic-bezier(.77,0,.18,1); }
.menu::before { content: ""; position: fixed; width: 60vmax; height: 60vmax; right: -20vmax; bottom: -25vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,182,115,.28), transparent 65%); pointer-events: none; }
.menu.open { clip-path: circle(150% at calc(100% - 70px) 38px); }
.menu.closing { clip-path: circle(0 at calc(100% - 70px) 38px); transition-duration: .42s; }
.menu-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 120px clamp(20px, 5vw, 64px) 48px; min-height: 100%; display: grid; gap: 48px; align-content: space-between; }
.menu-groups { display: grid; gap: 40px 56px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.menu-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.menu-label { font: 600 .78rem var(--head); text-transform: uppercase; letter-spacing: .16em; color: var(--green); margin: 0 0 18px; }
.menu-item { display: grid; gap: 4px; text-decoration: none; color: #faf4f2; padding: 10px 0; border-radius: 16px; transition: transform .35s cubic-bezier(.2,.9,.3,1.3); }
.menu-title { font: 700 clamp(2rem, 4.2vw, 3.3rem)/1.05 var(--head); letter-spacing: -.02em; display: inline-flex; align-items: center; gap: 14px; transition: color .25s; }
.menu-arrow { font-size: .6em; color: var(--green); opacity: 0; transform: translateX(-14px); transition: opacity .25s, transform .35s cubic-bezier(.2,.9,.3,1.3); }
.menu-desc { color: #a8a19d; font-size: .98rem; }
.menu-item:hover, .menu-item:focus-visible { transform: translateX(10px); outline: none; }
.menu-item:hover .menu-title, .menu-item:focus-visible .menu-title { color: var(--green); }
.menu-item:hover .menu-arrow, .menu-item:focus-visible .menu-arrow { opacity: 1; transform: none; }
.menu-item[aria-current="page"] .menu-title::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--green); flex: none; }
.menu-foot { display: flex; flex-wrap: wrap; gap: 12px; border-top: 1px solid #2a2725; padding-top: 28px; }
.btn-ghost { border-color: #4a4643; color: #faf4f2; background: transparent; }
.btn-ghost:hover { border-color: #faf4f2; }
/* apparition des rubriques depuis le bas, l'une après l'autre */
.menu .menu-label, .menu li, .menu-foot { opacity: 0; transform: translateY(46px); }
.menu.open .menu-label, .menu.open li, .menu.open .menu-foot {
  animation: riseIn .7s cubic-bezier(.2,.9,.25,1) forwards; animation-delay: calc(var(--i) * 55ms + 180ms); }
.menu.closing .menu-label, .menu.closing li, .menu.closing .menu-foot { opacity: 1; transform: none; transition: opacity .2s, transform .3s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }

/* ===== menus déroulants ===== */
.sel { position: relative; display: block; min-width: 0; }
.field .sel, .form-row > .sel { width: 100%; }
.sel select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.sel-btn { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; font: 400 1rem var(--body); color: var(--ink);
  padding: 7px 7px 7px 20px; min-height: 50px; border-radius: 99px; border: 2px solid var(--ink); background: var(--paper); cursor: pointer;
  transition: box-shadow .2s, transform .15s; }
.sel-btn:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.sel.open .sel-btn { box-shadow: 4px 4px 0 var(--green); transform: translate(-2px, -2px); }
.sel-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sel-arrow { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--green); display: grid; place-items: center;
  transition: transform .45s cubic-bezier(.3,1.6,.5,1), background .25s, color .25s; }
.sel-btn:hover .sel-arrow { transform: translateY(2px); }
.sel.open .sel-arrow { transform: rotate(180deg); background: var(--green); color: var(--ink); }
.sel-list { position: absolute; z-index: 70; top: calc(100% + 10px); left: 0; min-width: 100%; max-height: 320px; overflow-y: auto; margin: 0; padding: 8px;
  list-style: none; background: var(--cream); border: 2px solid var(--ink); border-radius: 22px; box-shadow: 6px 8px 0 var(--ink);
  transform-origin: top center; animation: selOpen .32s cubic-bezier(.2,.9,.3,1.25); }
.sel.up .sel-list { top: auto; bottom: calc(100% + 10px); transform-origin: bottom center; }
@keyframes selOpen { from { opacity: 0; transform: translateY(-8px) scale(.94); } }
.sel-opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 11px 14px; border-radius: 14px; cursor: pointer;
  white-space: nowrap; font-size: .98rem; opacity: 0; animation: optIn .35s cubic-bezier(.2,.9,.3,1.2) forwards; animation-delay: calc(var(--i) * 28ms); }
@keyframes optIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.sel-opt.active { background: var(--blue); }
.sel-opt:nth-child(3n+2).active { background: var(--pink); }
.sel-opt:nth-child(3n).active { background: var(--mint); }
.sel-list .sel-opt[aria-selected="true"] { background: var(--ink); color: var(--cream); font-weight: 700; }
.sel-list .sel-opt[aria-selected="true"].active { background: var(--ink); opacity: .9; }
.sel-check { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #0b0b0b; display: grid; place-items: center; font-size: .8rem; }

@media (max-width: 720px) {
  .top-section, .top-cta, .burger-text { display: none; }
  .burger { padding: 0 13px; }
  .menu-inner { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu, .menu.open, .menu.closing { clip-path: none; transition: none; }
  .menu .menu-label, .menu li, .menu-foot { opacity: 1; transform: none; animation: none !important; }
  .sel-opt { opacity: 1; animation: none; } .sel-list { animation: none; } .dot-live { animation: none; }
}

/* interrupteurs */
.switch-row { display: flex; align-items: center; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; position: relative; }
.switch-row:first-child { border-top: 0; padding-top: 0; }
.switch-text { flex: 1; display: grid; gap: 2px; }
.switch-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch { flex: none; width: 58px; height: 32px; border-radius: 99px; background: var(--line); border: 2px solid var(--ink); position: relative; transition: background .25s; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink);
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), background .25s; }
.switch-row input:checked + .switch { background: var(--green); }
.switch-row input:checked + .switch .switch-knob { transform: translateX(26px); background: #fff; }
.switch-row input:focus-visible + .switch { outline: 3px solid var(--ink); outline-offset: 3px; }

/* notifications maison */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; width: min(460px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--cream); padding: 14px 14px 14px 18px;
  border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.25); font: 600 .95rem var(--head); animation: toastIn .45s cubic-bezier(.2,.9,.3,1.3); }
.toast.leaving { animation: toastOut .3s ease-in forwards; }
.toast > span:nth-child(2) { flex: 1; }
.toast-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--sev-low); flex: none; }
.toast.good .toast-dot { background: var(--green); } .toast.bad .toast-dot { background: var(--orange); }
.toast-close { background: none; border: 0; color: #a8a19d; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { animation: none; } }

/* ===== mode sombre ===== */
:root[data-theme="dark"] {
  --cream: #121110; --paper: #1c1a19; --ink: #f3eeea; --muted: #a8a19d; --line: #2e2b29;
  --blue: #1b3140; --pink: #45282b; --mint: #17382a; --green-ink: #5fd59b;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #121110; --paper: #1c1a19; --ink: #f3eeea; --muted: #a8a19d; --line: #2e2b29;
    --blue: #1b3140; --pink: #45282b; --mint: #17382a; --green-ink: #5fd59b;
  }
}
:root[data-theme="dark"] .top { background: rgba(18,17,16,.88); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .top { background: rgba(18,17,16,.88); } }
:root[data-theme="dark"] .chips.small .chip, :root[data-theme="dark"] .chips.small .chip:hover { background: rgba(255,255,255,.08); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chips.small .chip, :root:not([data-theme="light"]) .chips.small .chip:hover { background: rgba(255,255,255,.08); color: var(--ink); } }
.theme-switch { margin-left: auto; }

/* ===== transitions entre les pages ===== */
main.enter > * { animation: pageIn .55s cubic-bezier(.2,.9,.3,1) backwards; animation-delay: calc(var(--n, 0) * 55ms); }
main.enter .grid > *, main.enter .kpis > *, main.enter .features > * { animation: pageIn .55s cubic-bezier(.2,.9,.3,1) backwards; animation-delay: calc(var(--n2, 0) * 45ms + 140ms); }
@keyframes pageIn { from { opacity: 0; transform: translateY(16px); } }

/* ===== anneaux de score animés ===== */
.ring circle:last-child { transition: stroke-dasharray 1.2s cubic-bezier(.2,.9,.3,1); }

/* ===== cartes vivantes ===== */
a.card { border: 2px solid transparent; transition: transform .3s cubic-bezier(.2,.9,.3,1.4), box-shadow .3s, border-color .2s; }
a.card:hover, a.card:focus-visible { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--ink); border-color: var(--ink); outline: none; }
a.card:active { transform: translate(-1px, -1px); box-shadow: 2px 2px 0 var(--ink); }

@media (prefers-reduced-motion: reduce) {
  main.enter > *, main.enter .grid > *, main.enter .kpis > *, main.enter .features > * { animation: none; }
  .ring circle:last-child { transition: none; }
  a.card:hover { transform: none; }
}

/* ===== l'œil de la vigie ===== */
.brand svg.logo { height: 34px; width: auto; display: block; overflow: visible; }
.eye-bg, .logo-word { fill: var(--logo-ink, var(--ink)); }
.eye-white { fill: var(--logo-eye, var(--cream)); }
.top.menu-open .brand { --logo-ink: #faf4f2; --logo-eye: #0b0b0b; }
.eye-pupil { transition: transform .22s cubic-bezier(.2,.9,.3,1); }
.eye-lid { transform-box: fill-box; transform-origin: center; }
.blink .eye-lid { animation: blink .22s ease-in-out; }
@keyframes blink { 45%, 55% { transform: scaleY(.06); } }
.hero-art svg.hero-eye { width: 58%; height: auto; }
@media (max-width: 720px) { .brand svg.logo { height: 28px; } }
@media (prefers-reduced-motion: reduce) { .eye-pupil { transition: none; } .blink .eye-lid { animation: none; } }

/* suppression */
.btn.danger { border-color: var(--red); color: var(--red); }
.btn.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }
.site-card { position: relative; }
.card-delete { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper);
  color: var(--ink); font: 700 1.1rem/1 var(--head); cursor: pointer; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .2s, background .2s; z-index: 2; }
.site-card:hover .card-delete, .card-delete:focus-visible { opacity: 1; transform: none; }
.card-delete:hover { background: var(--red); border-color: var(--red); color: #fff; }
@media (hover: none) { .card-delete { opacity: 1; transform: none; } }

/* ===== démo vivante (accueil) ===== */
.live { position: relative; background: var(--blue); border-radius: 44px; padding: 26px 26px 84px; display: grid; gap: 16px; overflow: hidden;
  box-shadow: 10px 10px 0 var(--ink); border: 2px solid var(--ink); }
.live-head { display: flex; align-items: center; gap: 12px; }
.live-head b { font: 700 1.05rem var(--head); display: block; }
.live-sub { font-size: .82rem; color: var(--muted); }
.live-badge-on { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem var(--head); background: var(--paper);
  padding: 6px 12px; border-radius: 99px; text-transform: uppercase; letter-spacing: .08em; }
.live-grid { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.live-tile { background: var(--paper); border-radius: 22px; padding: 16px; display: grid; gap: 6px; justify-items: center; align-content: center; }
.live-label { font: 600 .78rem var(--head); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.live-chart { justify-items: start; position: relative; }
.live-up { font: 700 1.6rem/1 var(--head); color: var(--green-ink); }
.live-curve { width: 100%; height: 80px; overflow: visible; }
.live-line { fill: none; stroke: var(--green); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.live-area { fill: var(--green); opacity: .14; }
.live-tip { fill: var(--paper); stroke: var(--green); stroke-width: 3; vector-effect: non-scaling-stroke; }
.live.play .live-line { animation: draw 2.4s cubic-bezier(.4,0,.2,1) .3s backwards; }
.live.play .live-area { animation: fadeUp 1.2s ease 1.6s backwards; }
.live.play .live-tip { animation: tipIn .5s cubic-bezier(.3,1.6,.5,1) 2.5s backwards; }
@keyframes draw { from { stroke-dashoffset: 100; } }
@keyframes fadeUp { from { opacity: 0; } }
@keyframes tipIn { from { r: 0; } }
.live-kws { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-kws li { display: flex; align-items: center; gap: 10px; background: var(--paper); border-radius: 16px; padding: 10px 14px; font-size: .92rem; }
.live-kw { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-pos { font: 700 1.05rem var(--head); min-width: 28px; text-align: right; }
.live-badge { font: 600 .75rem var(--head); background: #c9f0dc; color: #0b5a33; border-radius: 99px; padding: 3px 9px; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .4s cubic-bezier(.3,1.6,.5,1); }
.live-kws li.up .live-badge { opacity: 1; transform: none; }
.live-pops { position: absolute; left: 26px; right: 26px; bottom: 22px; height: 44px; display: grid; justify-items: center; align-items: end; pointer-events: none; }
.live-pops > * { grid-area: 1 / 1; }
.live-pop { background: var(--ink); color: var(--cream); font: 600 .88rem var(--head); padding: 10px 16px; border-radius: 14px; box-shadow: 0 10px 24px rgba(0,0,0,.25);
  animation: toastIn .45s cubic-bezier(.2,.9,.3,1.3); }
.live-pop.good::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; }
.live-pop.out { animation: toastOut .35s ease-in forwards; }
@media (max-width: 860px) { .live { max-width: 460px; } }

/* ===== pied de page ===== */
#foot { padding: 0 clamp(16px, 4vw, 48px) 32px; }
.bigfoot { max-width: 1280px; margin: 40px auto 0; background: #0b0b0b; color: #faf4f2; border-radius: 44px; padding: clamp(28px, 5vw, 64px);
  display: grid; gap: 44px; position: relative; overflow: hidden; }
.bigfoot::after { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(43,182,115,.3), transparent 65%); pointer-events: none; }
.bigfoot-cta { display: grid; gap: 14px; justify-items: start; max-width: 640px; position: relative; z-index: 1; }
.bigfoot-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); color: #faf4f2; }
.bigfoot-cta p { color: #a8a19d; font-size: 1.05rem; }
.bigfoot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; border-top: 1px solid #2a2725; padding-top: 32px; position: relative; z-index: 1; }
.fcol-title { font: 600 .78rem var(--head); text-transform: uppercase; letter-spacing: .14em; color: var(--green); margin: 0 0 14px; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fcol a { color: #faf4f2; text-decoration: none; transition: color .2s, padding .2s; }
.fcol a:hover { color: var(--green); padding-left: 4px; }
.bigfoot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #a8a19d; font-size: .9rem;
  border-top: 1px solid #2a2725; padding-top: 24px; position: relative; z-index: 1; }
.bigfoot-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.3rem var(--head); color: #faf4f2; --logo-ink: #faf4f2; --logo-eye: #0b0b0b; }
.bigfoot-brand b { font-weight: 700; } .bigfoot-brand .g { color: var(--green); margin-left: -6px; }
@media (prefers-reduced-motion: reduce) { .live.play .live-line, .live.play .live-area, .live.play .live-tip, .live-pop { animation: none; } }

/* ===== pages de connexion ===== */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: stretch; min-height: calc(100vh - 220px); }
.auth-narrow { grid-template-columns: minmax(0, 480px); justify-content: center; }
.auth-panel { background: var(--paper); border-radius: 36px; padding: clamp(26px, 4vw, 48px); display: grid; gap: 14px; align-content: center; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.auth-panel.center { justify-items: center; text-align: center; }
.auth-panel h1 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.auth-sub { font-size: 1.05rem; margin-bottom: 6px; }
.auth-form { display: grid; gap: 14px; }
.auth-form input[type="email"], .auth-form input[type="text"], .auth-form input[type="password"] { width: 100%; }
.btn-block { width: 100%; justify-content: center; padding: 14px 24px; font-size: 1rem; }
.btn.loading { color: transparent !important; position: relative; }
.btn.loading::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: var(--cream); animation: spin .8s linear infinite; }
.auth-forgot { justify-self: end; font-size: .9rem; margin-top: -6px; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-google { width: 100%; justify-content: center; background: var(--paper); gap: 12px; }
.btn-google:hover { box-shadow: 4px 4px 0 var(--ink); transform: translate(-2px, -2px); }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; font-weight: 700; }
.auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--cream); border: 2px solid var(--ink); border-radius: 99px; padding: 4px; margin-bottom: 8px; }
.auth-tabs::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 99px; background: var(--ink);
  transition: transform .45s cubic-bezier(.3,1.4,.5,1); }
.auth-tabs[data-active="signup"]::before { transform: translateX(100%); }
.auth-tabs a { position: relative; z-index: 1; text-align: center; padding: 10px; font: 600 .95rem var(--head); text-decoration: none; border-radius: 99px; transition: color .3s; }
.auth-tabs a[aria-selected="true"] { color: var(--cream); }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 54px; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--cream); }
.pw-row { display: flex; align-items: center; gap: 12px; }
.pw-meter { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pw-meter span { height: 6px; border-radius: 99px; background: var(--line); transition: background .3s; }
.pw-meter[data-score="1"] span:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-score="2"] span:nth-child(-n+2) { background: var(--sev-medium); }
.pw-meter[data-score="3"] span:nth-child(-n+3) { background: var(--green); }
.pw-meter[data-score="4"] span { background: var(--green-ink); }
.pw-hint { font: 600 .8rem var(--head); min-width: 70px; text-align: right; color: var(--muted); }
.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 20%, 80% { transform: translateX(-3px); } 30%, 50%, 70% { transform: translateX(6px); } 40%, 60% { transform: translateX(-6px); } }

/* panneau visuel à droite */
.auth-visual { position: relative; background: #0b0b0b; color: #faf4f2; border-radius: 36px; display: grid; place-items: center; align-content: center; gap: 26px; overflow: hidden; padding: 40px;
  --logo-ink: #faf4f2; --logo-eye: #0b0b0b; }
.auth-visual::before { content: ""; position: absolute; width: 140%; height: 140%; background: radial-gradient(circle at 70% 30%, rgba(43,182,115,.35), transparent 50%),
  radial-gradient(circle at 20% 80%, rgba(210,237,255,.16), transparent 45%); animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-6%, 4%) rotate(8deg); } }
.auth-visual svg.auth-eye { position: relative; width: min(220px, 60%); height: auto; }
.auth-line { position: relative; font: 700 clamp(1.2rem, 2vw, 1.6rem)/1.3 var(--head); text-align: center; max-width: 420px; transition: opacity .35s, transform .35s; }
.auth-line.out { opacity: 0; transform: translateY(10px); }
.auth-float { position: absolute; background: #faf4f2; color: #0b0b0b; font: 600 .9rem var(--head); padding: 10px 16px; border-radius: 99px; box-shadow: 0 10px 24px rgba(0,0,0,.3); animation: float 6s ease-in-out infinite; }
.auth-float.f1 { top: 12%; left: 10%; } .auth-float.f2 { top: 22%; right: 8%; animation-delay: -2s; background: var(--green); } .auth-float.f3 { bottom: 14%; left: 16%; animation-delay: -4s; background: #d2edff; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-2deg); } }
.auth-sent { display: grid; gap: 14px; justify-items: center; text-align: center; }
.mail-anim { width: 110px; height: 110px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; animation: pop .6s cubic-bezier(.3,1.6,.5,1); }
.mail-env { font-size: 3rem; animation: float 3s ease-in-out infinite; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth-visual { min-height: 260px; order: -1; } .auth-float.f3 { display: none; } }

/* code à 6 chiffres */
.code { display: flex; gap: 10px; justify-content: center; }
.code input { width: 52px; height: 62px; text-align: center; font: 700 1.6rem var(--head); border-radius: 16px; padding: 0; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); }
.code input:focus { outline: none; box-shadow: 4px 4px 0 var(--green); transform: translate(-2px, -2px); }
.qr { display: grid; place-items: center; background: #fff; border-radius: 20px; padding: 14px; width: fit-content; margin: 0 auto; border: 2px solid var(--ink); }
.secret { display: block; margin-top: 8px; word-break: break-all; background: var(--cream); padding: 10px; border-radius: 10px; font-size: .9rem; }
.badge-on { font: 600 .8rem var(--head); background: #c9f0dc; color: #0b5a33; padding: 5px 12px; border-radius: 99px; white-space: nowrap; }
.badge-soon { font: 600 .8rem var(--head); background: var(--cream); color: var(--muted); padding: 5px 12px; border-radius: 99px; border: 1.5px dashed var(--muted); white-space: nowrap; }

/* page Connexions */
.conn-stage { position: relative; max-width: 520px; margin: 0 auto 28px; --logo-ink: var(--ink); }
.conn-illus { width: 100%; height: auto; display: block; }
.conn-line { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 6 8; opacity: .5; animation: dash 1.4s linear infinite; }
.conn-line.on { stroke: var(--green); opacity: 1; stroke-dasharray: none; animation: none; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.conn-node { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.conn-node.on { fill: var(--green); }
.conn-stage svg.conn-eye { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.tool { display: grid; gap: 14px; align-content: start; }
.tool.on { border: 2px solid var(--green); }
.tool.soon { opacity: .75; }
.tool-head { display: flex; gap: 14px; align-items: flex-start; }
.tool-head > div { flex: 1; }
.tool-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font: 700 1.3rem var(--head); color: #0b0b0b; border: 2px solid var(--ink); }
@media (prefers-reduced-motion: reduce) { .auth-visual::before, .auth-float, .mail-env, .conn-line { animation: none; } .auth-tabs::before { transition: none; } }

/* ===== landing : apparitions au défilement ===== */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.9,.3,1), transform .8s cubic-bezier(.2,.9,.3,1); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
h2.big { font-size: clamp(2rem, 4.4vw, 3.4rem); max-width: 18ch; margin-bottom: 30px; }
.hero-title .w { display: inline-block; animation: wordIn .8s cubic-bezier(.2,.9,.3,1.1) backwards; }
.hero-title .w:nth-child(1) { animation-delay: .05s; } .hero-title .w:nth-child(2) { animation-delay: .1s; } .hero-title .w:nth-child(3) { animation-delay: .15s; }
.hero-title .w:nth-child(4) { animation-delay: .2s; } .hero-title .w:nth-child(5) { animation-delay: .25s; } .hero-title .w:nth-child(6) { animation-delay: .3s; }
.hero-title .w:nth-child(7) { animation-delay: .35s; } .hero-title .w:nth-child(8) { animation-delay: .4s; } .hero-title .w:nth-child(9) { animation-delay: .45s; }
@keyframes wordIn { from { opacity: 0; transform: translateY(40%) rotate(4deg); } }
.hero-title .hl { position: relative; }
.hero-title .hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--green); z-index: -1; border-radius: 99px;
  transform-origin: left; animation: underline .7s cubic-bezier(.2,.9,.3,1) .9s backwards; }
@keyframes underline { from { transform: scaleX(0); } }
.live { transition: transform .25s ease-out; will-change: transform; }

/* bandeau défilant */
.marquee { margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); overflow: hidden; background: #0b0b0b; color: #faf4f2; padding: 18px 0; transform: rotate(-1.2deg);
  --logo-ink: #faf4f2; --logo-eye: #0b0b0b; }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; align-items: center; gap: 26px; padding-right: 26px; font: 700 1.3rem var(--head); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* étapes */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps-line { position: absolute; top: 58px; left: 10%; right: 10%; height: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 10px, transparent 10px 20px);
  transform-origin: left; transform: scaleX(0); opacity: 1; transition: transform 1.4s cubic-bezier(.2,.9,.3,1) .3s; }
.steps-line.in { transform: scaleX(1); }
.step { position: relative; display: grid; gap: 10px; border: 2px solid var(--ink); }
.step-n { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #0b0b0b; display: grid; place-items: center; font: 700 1.7rem var(--head); border: 2px solid var(--ink); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } .steps-line { display: none; } }

/* lignes de fonctionnalités */
.feat-rows { display: grid; gap: clamp(40px, 7vw, 90px); }
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.feat-row.rev .feat-text { order: 2; }
.feat-text { display: grid; gap: 14px; }
.feat-text h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.1; }
.feat-text p { font-size: 1.08rem; color: var(--muted); }
.feat-tag { justify-self: start; font: 600 .8rem var(--head); text-transform: uppercase; letter-spacing: .12em; background: var(--ink); color: var(--cream); padding: 6px 14px; border-radius: 99px; }
.feat-art { min-height: 300px; display: grid; place-items: center; border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.card.mint { background: var(--mint); }
@media (max-width: 860px) { .feat-row { grid-template-columns: 1fr; } .feat-row.rev .feat-text { order: 0; } }

/* illustrations */
.il { width: 100%; max-width: 420px; display: grid; gap: 10px; }
.il-head { display: flex; justify-content: space-between; align-items: center; font: 700 1rem var(--head); }
.il-count { font-size: .8rem; background: var(--paper); padding: 4px 10px; border-radius: 99px; }
.il ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.il-audit li { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: 14px; padding: 11px 14px; font-size: .95rem; }
.il-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-size: .8rem; color: transparent; flex: none; }
.in .il-audit li .il-check { animation: tick .4s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(var(--i) * 380ms + 300ms); }
@keyframes tick { to { background: var(--green); color: #0b0b0b; border-color: var(--green); } }
.il-task { display: flex; gap: 12px; align-items: center; background: var(--paper); border-radius: 16px; padding: 14px; }
.il-task > div { display: grid; } .il-task .muted { font-size: .85rem; }
.il-box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--ink); flex: none; position: relative; }
.in .il-plan .il-task .il-box { animation: tick .4s cubic-bezier(.3,1.6,.5,1) forwards; animation-delay: calc(var(--i) * 600ms + 400ms); }
.in .il-plan .il-task .il-box::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: .85rem; opacity: 0; animation: fadeIn .2s forwards; animation-delay: calc(var(--i) * 600ms + 500ms); }
@keyframes fadeIn { to { opacity: 1; } }
.il-impact { justify-self: start; background: #c9f0dc; color: #0b5a33; font: 700 .9rem var(--head); padding: 8px 14px; border-radius: 99px; opacity: 0; transform: translateY(10px); }
.in .il-impact { animation: riseIn .6s cubic-bezier(.2,.9,.3,1.3) 2.4s forwards; }
.il-search { background: var(--paper); border: 2px solid var(--ink); border-radius: 99px; padding: 10px 16px; font-size: .95rem; }
.il-rank ol { list-style: none; margin: 0; padding: 0; position: relative; height: 260px; }
.il-rank li { position: absolute; left: 0; right: 0; height: 44px; top: calc(var(--p) * 52px); display: flex; align-items: center; gap: 12px; background: var(--paper);
  border-radius: 14px; padding: 0 14px; font-size: .95rem; transition: top 1s cubic-bezier(.3,1.3,.5,1); }
.il-pos { width: 26px; font: 700 1rem var(--head); }
.il-rank li.me { background: var(--ink); color: var(--cream); font-weight: 700; }
.in .il-rank li.me { animation: climb 1.4s cubic-bezier(.3,1.3,.5,1) 1s forwards; }
.in .il-rank li:not(.me):nth-child(-n+2) { animation: down1 1.4s cubic-bezier(.3,1.3,.5,1) 1s forwards; }
@keyframes climb { to { top: 0; } }
@keyframes down1 { to { top: calc((var(--p) + 1) * 52px); } }
.il-kwrow { display: grid; grid-template-columns: 1.3fr 1fr auto; align-items: center; gap: 12px; background: var(--paper); border-radius: 14px; padding: 12px 14px; font-size: .92rem; }
.il-kwname { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.il-bartrack { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.il-bar { display: block; height: 100%; width: 0; background: var(--green); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.9,.3,1); }
.in .il-bar { width: var(--w); transition-delay: calc(var(--i) * 200ms + 300ms); }
.il-mail { justify-items: center; position: relative; padding-top: 20px; }
.il-bell { font-size: 2.4rem; transform-origin: top center; }
.in .il-bell { animation: ring 1.2s ease .4s 2; }
@keyframes ring { 10%, 30%, 50% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } 60% { transform: none; } }
.il-envelope { width: 100%; background: var(--paper); border-radius: 18px; padding: 18px; display: grid; gap: 6px; border: 2px solid var(--ink); opacity: 0; transform: translateY(30px) scale(.95); }
.in .il-envelope { animation: riseIn .7s cubic-bezier(.2,.9,.3,1.3) .9s forwards; }
.il-envelope span { color: var(--muted); font-size: .9rem; }
.il-alert { background: var(--ink); color: var(--cream); font: 600 .88rem var(--head); padding: 10px 16px; border-radius: 14px; opacity: 0; transform: translateY(20px); }
.in .il-alert { animation: riseIn .6s cubic-bezier(.2,.9,.3,1.3) 1.8s forwards; }

/* chiffres clés */
.stats { margin-top: 72px; background: #0b0b0b; color: #faf4f2; border-radius: 40px; padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.stat .kpi { background: none; padding: 0; } .stat .kpi .v { font-size: clamp(2.6rem, 5vw, 3.6rem); color: var(--green); }
.stat p { color: #c9c1bd; }

/* comparaison */
.compare th.us, .compare td.us { background: var(--mint); text-align: center; }
.compare th.us { border-radius: 14px 14px 0 0; color: var(--ink); }
.compare td.muted { text-align: center; }
.compare tr { transition: background .2s; }
.compare tbody tr:hover td { background: var(--cream); } .compare tbody tr:hover td.us { background: #c9f0dc; color: #0b0b0b; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq-item { background: var(--paper); border-radius: 22px; border: 2px solid transparent; transition: border-color .2s, box-shadow .25s, transform .25s; }
.faq-item:hover { border-color: var(--ink); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: none; border: 0; cursor: pointer; text-align: left;
  padding: 20px 24px; font: 600 1.08rem var(--head); color: var(--ink); }
.faq-plus { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); position: relative; transition: transform .45s cubic-bezier(.3,1.6,.5,1), background .25s; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; background: var(--green); border-radius: 3px; transform: translate(-50%, -50%); }
.faq-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s; }
.faq-q[aria-expanded="true"] .faq-plus { transform: rotate(180deg); background: var(--green); }
.faq-q[aria-expanded="true"] .faq-plus::before, .faq-q[aria-expanded="true"] .faq-plus::after { background: #0b0b0b; }
.faq-q[aria-expanded="true"] .faq-plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.9,.3,1); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--muted); font-size: 1.02rem; max-width: 70ch; }
.faq-a.open { grid-template-rows: 1fr; }
.faq-item:has(.faq-q[aria-expanded="true"]) { border-color: var(--ink); box-shadow: 6px 6px 0 var(--ink); transform: translate(-3px, -3px); }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .hero-title .w, .hero-title .hl::after { animation: none; }
  .marquee-track { animation: none; }
  .steps-line { transform: none; transition: none; }
  .il * { animation: none !important; transition: none !important; }
  .il-check, .il-box { background: var(--green); color: #0b0b0b; } .il-impact, .il-envelope, .il-alert { opacity: 1; transform: none; } .il-bar { width: var(--w); }
  .faq-a { transition: none; }
}
.il-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: none; }
.il-rank li.me .il-dot { background: var(--green); }
.il-climb { margin-left: auto; font: 700 .8rem var(--head); background: var(--green); color: #0b0b0b; padding: 3px 10px; border-radius: 99px; opacity: 0; transform: scale(.6); }
.in .il-climb { animation: riseIn .5s cubic-bezier(.3,1.6,.5,1) 2.3s forwards; }

/* trafic */
.kpi .delta { margin-top: 6px; display: inline-flex; }
.channels { display: grid; gap: 12px; }
.ch-row { display: grid; grid-template-columns: minmax(140px, 1.2fr) 2fr 70px 60px 90px; align-items: center; gap: 12px; }
.ch-name { font-weight: 700; }
.ch-track { height: 12px; background: var(--line); border-radius: 99px; overflow: hidden; }
.ch-bar { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 99px; animation: growW 1s cubic-bezier(.2,.9,.3,1) backwards; animation-delay: calc(var(--i) * 80ms); }
.ch-bar.org { background: var(--green); }
@keyframes growW { from { width: 0; } }
.ch-val { text-align: right; } .ch-share { text-align: right; }
.eng { font-weight: 700; } .eng.low { color: var(--red); } .eng.ok { color: var(--green-ink); }
.chart .draw { stroke-dasharray: 100; animation: draw 1.6s cubic-bezier(.4,0,.2,1) backwards; }
@media (max-width: 720px) { .ch-row { grid-template-columns: 1fr 60px 70px; } .ch-track, .ch-row .delta, .ch-row > .muted { display: none; } }
@media (prefers-reduced-motion: reduce) { .ch-bar, .chart .draw { animation: none; } }
.ga-help { flex-basis: 100%; } .ga-help summary { cursor: pointer; font-weight: 700; } .ga-help ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; } .ga-help p { margin-top: 8px; }

/* ---------- GitHub : dépôts et corrections automatiques ---------- */
.repo-list { display: grid; gap: 10px; width: 100%; }
.repo-row { display: grid; grid-template-columns: minmax(110px, 1fr) 2fr; gap: 12px; align-items: center; }
.repo-row label { font: 600 .9rem var(--head); overflow-wrap: anywhere; }
@media (max-width: 560px) { .repo-row { grid-template-columns: 1fr; gap: 6px; } }
.fix-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--ink) 18%, transparent); border-top-color: #3fb27f; animation: fixspin .8s linear infinite; flex: none; }
.fix-step { font: 600 .92rem var(--head); animation: fixfade .5s ease; margin: 0; }
@keyframes fixspin { to { transform: rotate(360deg); } }
@keyframes fixfade { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .fix-spin { animation-duration: 2.4s; } .fix-step { animation: none; } }

/* panneau de correction : étapes, relecture, validation */
.fix-panel { display: grid; gap: 12px; margin: 14px 0; padding: 16px 18px; border-radius: 18px; background: var(--paper);
  border: 1.5px dashed color-mix(in srgb, var(--ink) 25%, transparent); }
.fix-panel p { margin: 0; }
.fix-panel.review { border: 2px solid #f0b429; box-shadow: 4px 4px 0 #f0b429; }
.fix-panel.ok { border: 1.5px solid #3fb27f; background: color-mix(in srgb, #3fb27f 12%, var(--paper)); }
.fix-panel.bad { border-color: #e06c6c; }
.fix-panel.running { border-style: solid; }
.fix-run { display: flex; gap: 12px; align-items: center; }
.fix-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; counter-reset: none; }
.fix-steps li { display: inline-flex; align-items: center; gap: 8px; font: 600 .85rem var(--head); color: var(--muted); position: relative; }
.fix-steps li + li::before { content: ""; width: 14px; height: 2px; background: var(--line); margin-right: 4px; }
.fix-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); font-size: .78rem; background: var(--paper); }
.fix-steps li.current { color: var(--ink); }
.fix-steps li.current .fix-num { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.fix-panel.review .fix-steps li.current .fix-num { border-color: #f0b429; background: #f0b429; color: #0b0b0b; }
.fix-steps li.done { color: #1f8f5c; }
.fix-steps li.done .fix-num { border-color: #3fb27f; background: #3fb27f; color: #0b0b0b; }
.fix-files { display: grid; gap: 8px; }
.btn-ghost-link { border-color: transparent; }
.claude-chip { margin-left: auto; font: 600 .75rem var(--head); padding: 4px 10px; border-radius: 99px; background: #c9f0dc; color: #0b5a33; white-space: nowrap; }
.claude-chip.wait { background: #ffe7a8; color: #6b4a00; }
.claude-chip.ok { background: #3fb27f; color: #0b0b0b; }
.acc summary .claude-chip + .n { margin-left: 10px; }
details.acc.fixable > summary { flex-wrap: wrap; }
details.acc > .fix-panel { margin: 0 22px 8px; }
.pill-claude { border-color: #3fb27f; }
.pill-claude[aria-pressed="true"] { background: #3fb27f; color: #0b0b0b; border-color: #3fb27f; }
.claude-card { position: relative; overflow: hidden; display: grid; gap: 18px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg);
  background: linear-gradient(120deg, #ffc3c3, #ffd9cf 45%, #ffc3d9 75%, #ffc3c3); background-size: 260% 260%; color: #0b0b0b;
  border: 2px solid #0b0b0b; box-shadow: 6px 6px 0 #0b0b0b; animation: claudeglow 12s ease-in-out infinite, claudein .6s cubic-bezier(.2,1.2,.4,1); }
.claude-card > * { position: relative; z-index: 1; }
.claude-card h2 { color: #0b0b0b; margin: 0; }
.claude-card p { margin: 0; color: #3d3734; }
.claude-head { display: flex; gap: 16px; align-items: center; }
.claude-star { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; flex: none; font-size: 1.5rem;
  background: #0b0b0b; color: #ffc3c3; box-shadow: 3px 3px 0 #3fb27f; animation: claudestar 4s ease-in-out infinite; }
.claude-spark { position: absolute; z-index: 0; color: #fff; font-size: 1.4rem; opacity: .75; pointer-events: none; animation: claudefloat 6s ease-in-out infinite; }
.claude-spark.s1 { top: 14%; right: 9%; font-size: 2.2rem; }
.claude-spark.s2 { top: 58%; right: 22%; animation-delay: -1.5s; font-size: 1rem; color: #0b0b0b; opacity: .25; }
.claude-spark.s3 { bottom: 12%; right: 4%; animation-delay: -3s; font-size: 1.6rem; }
.claude-spark.s4 { top: 10%; right: 38%; animation-delay: -4.5s; font-size: .9rem; }
.claude-progress { display: grid; gap: 8px; }
.claude-progress-label { display: flex; justify-content: space-between; font: 600 .9rem var(--head); }
.claude-bar { height: 14px; border-radius: 99px; background: rgba(255,255,255,.65); border: 2px solid #0b0b0b; overflow: hidden; }
.claude-bar-fill { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.9,.3,1);
  background: repeating-linear-gradient(-45deg, #3fb27f 0 10px, #2bb673 10px 20px); background-size: 28px 28px; animation: claudestripes 1s linear infinite; }
.claude-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.claude-stats div { background: #fff; border: 2px solid #0b0b0b; border-radius: 18px; padding: 14px 16px; display: grid; gap: 2px;
  transition: transform .25s ease, box-shadow .25s ease; animation: claudepop .5s cubic-bezier(.2,1.4,.4,1) both; }
.claude-stats div:nth-child(2) { animation-delay: .08s; } .claude-stats div:nth-child(3) { animation-delay: .16s; }
.claude-stats div:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #0b0b0b; }
.claude-stats b { font: 700 2rem/1.1 var(--head); color: #0b0b0b; justify-self: start; transform-origin: left center; }
.claude-stats span { font-size: .88rem; color: #5b5552; }
.claude-stats .todo.on { background: #fff; }
.claude-stats .wait.on { background: #ffe7a8; } .claude-stats .wait.on b { animation: claudepulse 1.6s ease-in-out infinite; }
.claude-stats .ok.on { background: #c9f0dc; }
.claude-card .btn-dark { background: #0b0b0b; color: #fff; border-color: #0b0b0b; }
.claude-go { border: 2px solid #0b0b0b; box-shadow: 3px 3px 0 #0b0b0b; }
@keyframes claudeglow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes claudein { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes claudestar { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.1); } }
@keyframes claudefloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(25deg); } }
@keyframes claudestripes { to { background-position: 28px 0; } }
@keyframes claudepop { from { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes claudepulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .claude-card, .claude-star, .claude-spark, .claude-bar-fill, .claude-stats div, .claude-stats .wait.on b { animation: none; }
  .claude-bar-fill { transition: none; }
}
:root[data-theme="dark"] .claude-card { box-shadow: 6px 6px 0 #3fb27f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .claude-card { box-shadow: 6px 6px 0 #3fb27f; } }
@media (max-width: 560px) { .claude-stats { grid-template-columns: 1fr; } }

/* pastilles des outils branchés sur un projet */
.conn-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.conn-badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem var(--head); padding: 4px 10px 4px 4px; border-radius: 99px;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-badge b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .72rem; color: #0b0b0b; flex: none; }
.conn-badge.gh b { background: #c9f0dc; } .conn-badge.gsc b { background: #d2edff; } .conn-badge.ga4 b { background: #ffc3c3; }
.conn-badge.add { padding: 4px 12px; border-style: dashed; color: var(--muted); border-color: var(--muted); text-decoration: none; }
.conn-badge.add:hover { color: var(--ink); border-color: var(--ink); }

/* bouton flottant « Corriger avec Claude » */
.fix-fab { position: fixed; right: 24px; bottom: 24px; z-index: 35; display: inline-flex; align-items: center; gap: 10px;
  font: 700 1rem var(--head); color: #fff; background: #0b0b0b; border: 0; border-radius: 99px; padding: 14px 22px 14px 16px; cursor: pointer;
  box-shadow: 4px 4px 0 #3fb27f, 0 10px 30px rgba(0,0,0,.18); transition: transform .2s ease, box-shadow .2s ease; animation: fabin .5s cubic-bezier(.2,1.4,.4,1); }
.fix-fab:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #3fb27f, 0 14px 34px rgba(0,0,0,.22); }
.fix-fab:focus-visible { outline: 3px solid #3fb27f; outline-offset: 3px; }
.fix-fab[hidden] { display: none; }
.fix-fab-star { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #3fb27f; color: #0b0b0b; animation: fabstar 3s ease-in-out infinite; }
:root[data-theme="dark"] .fix-fab { background: #f3eeea; color: #0b0b0b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fix-fab { background: #f3eeea; color: #0b0b0b; } }
@keyframes fabin { from { transform: translateY(30px) scale(.8); opacity: 0; } }
@keyframes fabstar { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .fix-fab, .fix-fab-star { animation: none; } }
@media (max-width: 560px) { .fix-fab { right: 16px; bottom: 16px; padding: 12px 18px 12px 12px; font-size: .92rem; } }

body.has-fab main { padding-bottom: 96px; }

/* relecture d'une correction */
.diff { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.diff summary { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; cursor: pointer; font-size: .9rem; }
.diff summary code { overflow-wrap: anywhere; }
.diff-n { display: inline-flex; gap: 8px; font: 700 .8rem var(--head); flex: none; }
.diff-n .add { color: #1f8f5c; } .diff-n .del { color: #c94848; }
.diff pre { margin: 0; padding: 10px 0; font: .78rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.diff pre span { display: block; padding: 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff pre .add { background: color-mix(in srgb, #3fb27f 18%, transparent); }
.diff pre .del { background: color-mix(in srgb, #e06c6c 16%, transparent); }
.diff pre .hunk { color: var(--muted); }

.claude-zone, .section, .fix-panel { scroll-margin-top: 110px; }

/* Search Console : Claude sous les recommandations */
.insight-claude { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1.5px dashed color-mix(in srgb, var(--ink) 20%, transparent); }
.insight-claude-head { display: flex; align-items: center; gap: 10px; font: 700 .95rem var(--head); margin: 0; }
.claude-star.small { width: 28px; height: 28px; font-size: .85rem; box-shadow: 2px 2px 0 #3fb27f; }
.insight-claude-item { background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; }
.insight-claude-item > summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; font: 600 .92rem var(--head); list-style: none; }
.insight-claude-item > summary::-webkit-details-marker { display: none; }
.insight-claude-item > .fix-panel { margin: 0 12px 12px; }
.insight-claude > .fix-panel { margin: 0; }

/* requêtes : conseil par ligne et aide */
.qtip { display: inline-block; font: 600 .75rem var(--head); padding: 4px 10px; border-radius: 99px; white-space: nowrap; background: var(--cream); border: 1.5px solid var(--line); }
.qtip.ok { background: #c9f0dc; border-color: #c9f0dc; color: #0b5a33; }
.qtip.wait { background: #ffe7a8; border-color: #ffe7a8; color: #6b4a00; }
.qtip.go { background: var(--blue); border-color: var(--blue); color: #0b3a5c; }
.qtip.far { background: var(--pink); border-color: var(--pink); color: #6b1f1f; }
.qtip-long { margin: 0 0 14px; line-height: 1.6; }
.query-help { margin-bottom: 18px; }
.query-help-body { padding: 0 22px 20px; display: grid; gap: 12px; }
.query-help-body p { margin: 0; }
.query-help-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.query-help-body dt { font: 700 .9rem var(--head); }
.query-help-body dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .query-help-body dl { grid-template-columns: 1fr; } .query-help-body dd { margin-bottom: 6px; } }

/* conseils personnalisés de Claude */
.advice-card { margin-bottom: 24px; }
.advice-summary { font: 600 1.05rem/1.55 var(--head); color: #0b0b0b !important; }
.advice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.advice-item { background: #fff; border: 2px solid #0b0b0b; border-radius: 20px; padding: 18px 20px; display: grid; gap: 10px;
  animation: claudepop .5s cubic-bezier(.2,1.4,.4,1) both; animation-delay: calc(var(--k) * 90ms); }
.advice-item p { color: #3d3734; }
.advice-top { display: flex; gap: 12px; align-items: center; }
.advice-top h3 { margin: 0; font-size: 1.05rem; }
.advice-top .insight-n { width: 32px; height: 32px; font-size: .95rem; }
.advice-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.advice-tags .tag { background: var(--cream); text-transform: none; letter-spacing: 0; border: 1.5px solid #0b0b0b; }
.advice-tags .tag.pink { background: #ff9fb0; } .advice-tags .tag.blue { background: var(--blue); }
.advice-steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #3d3734; }
.advice-card .chip { background: var(--cream); color: #0b0b0b; }
@media (prefers-reduced-motion: reduce) { .advice-item { animation: none; } }
